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
SELECT * FROM tab1 AS cor0 WHERE NOT ( 4 ) IN ( 45, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT COUNT( * ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-5605
SELECT COUNT ( * ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
3
-3

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5607
SELECT DISTINCT COUNT( * ) AS col2, + 91 FROM tab1
----
3
91

skipif mysql # not compatible
query II rowsort label-5607
SELECT DISTINCT COUNT ( * ) AS col2, + 91 FROM tab1
----
3
91

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

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

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT - - 31 BETWEEN + col2 AND NULL
----
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col1 FROM tab2
----
46
51
64
77
75
67

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

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

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

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

query I rowsort
SELECT ALL - col1 * col0 * + 12 AS col1 FROM tab0 AS cor0
----
-1164
-14580
-21924

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

query I rowsort
SELECT DISTINCT ( + col2 ) + 54 AS col1 FROM tab0 AS cor0
----
101
153
64

query I rowsort
SELECT ALL - col2 + col0 + + col0 FROM tab0 cor0
----
-17
164
95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5618
SELECT ALL COUNT( * ) + - ( 23 ) AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-5618
SELECT ALL COUNT ( * ) + - ( 23 ) AS col2 FROM tab2
----
-20

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

skipif mysql # not compatible
query I rowsort label-5619
SELECT - - ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5620
SELECT ALL col0 * + + CAST( - 76 AS SIGNED ) - - + col0 - - col0 * col1 FROM tab0
----
-4698
-7178
90

skipif mysql # not compatible
query I rowsort label-5620
SELECT ALL col0 * + + CAST ( - 76 AS INTEGER ) - - + col0 - - col0 * col1 FROM tab0
----
-4698
-7178
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col1 * + - 2 col0 FROM tab2
----
10050
4692
9856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5622
SELECT - CAST( 79 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

skipif mysql # not compatible
query I rowsort label-5622
SELECT - CAST ( 79 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col1 FROM tab1 AS cor0 WHERE NOT + col0 * - + col0 + + + 93 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT 38 - - COUNT( * ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-5625
SELECT 38 - - COUNT ( * ) FROM tab1
----
41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL + COUNT( * ) * + 18 * 26 - 70 FROM tab2
----
1334

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + COUNT ( * ) * + 18 * 26 - 70 FROM tab2
----
1334

query I rowsort
SELECT DISTINCT + - col1 * - ( - - 51 ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col2 - - + ( - 99 ) FROM tab1
----
-3
-31
-40

query I rowsort
SELECT 9 - + col2 FROM tab2
----
-14
-31
-49

query I rowsort
SELECT ALL + 27 + + col0 - ( + col1 ) AS col1 FROM tab2
----
14
22
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 - 33 * - col1 col0 FROM tab1
----
1644
258
555

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 / 50 col0 FROM tab2 WHERE NOT + 91 + 33 > ( 13 + - 94 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 BETWEEN + - col0 AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5637
SELECT ALL - 42 col2, COUNT( * ) col0 FROM tab1 cor0
----
-42
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5637
SELECT ALL - 42 col2, COUNT ( * ) col0 FROM tab1 cor0
----
-42
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query II rowsort
SELECT ALL + 92, 15 + + col1 AS col1 FROM tab2 AS cor0
----
92
66
92
82
92
92

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

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

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

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 AS cor0 WHERE col2 * + - col0 + 57 < + + col0 + + 75
----
51
85
91

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

query I rowsort
SELECT + - 30 * + + ( - col2 ) AS col2 FROM tab0 AS cor0
----
1410
2970
300

query I rowsort
SELECT DISTINCT 91 FROM tab2 WHERE NOT 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 74 * col1 + col0 AS col0 FROM tab2
----
3843
5091
5802

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5648
SELECT - col2 * + ( + - 92 ) + - + 69 AS col1, - col1 AS col2 FROM tab2 WHERE NOT col2 BETWEEN NULL AND + - CAST( NULL AS SIGNED ) * - + col0 + - 51 - - col2
----

skipif mysql # not compatible
query II rowsort label-5648
SELECT - col2 * + ( + - 92 ) + - + 69 AS col1, - col1 AS col2 FROM tab2 WHERE NOT col2 BETWEEN NULL AND + - CAST ( NULL AS INTEGER ) * - + col0 + - 51 - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col1 + - col2 col0 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT ALL - col0 * - 53 AS col0 FROM tab0
----
4611
5141
795

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

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

query I rowsort
SELECT + 61 + col1 AS col1 FROM tab2 AS cor0
----
112
128
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT DISTINCT - MAX( + 20 ) AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5653
SELECT DISTINCT - MAX ( + 20 ) AS col1 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT ( - 60 ) FROM tab0 AS cor0
----
-60

query I rowsort
SELECT + 50 * - + col2 AS col0 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT DISTINCT ( - col0 ) + + ( + - col2 ) AS col1 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-5657
SELECT - - SUM( - ( + - ( 8 ) ) ) FROM tab1 cor0
----
24

skipif mysql # not compatible
query I rowsort label-5657
SELECT - - SUM ( - ( + - ( 8 ) ) ) FROM tab1 cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5658
SELECT ALL MIN( ALL - 87 ) + + COUNT( * ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-5658
SELECT ALL MIN ( ALL - 87 ) + + COUNT ( * ) FROM tab0
----
-84

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE ( 53 > + 4 + - + col2 )
----
-23
-40
-58

query I rowsort
SELECT ALL - 16 * - - col2 FROM tab1
----
-1088
-1536
-944

query I rowsort
SELECT + ( col2 ) * - 10 + + - col1 - + ( col2 ) FROM tab1 AS cor0
----
-1070
-654
-795

query I rowsort
SELECT ( - col1 ) + 67 AS col2 FROM tab0 AS cor0
----
-14
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT ALL + - SUM( - - col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-5663
SELECT ALL + - SUM ( - - col0 ) AS col1 FROM tab1 AS cor0
----
-227

query I rowsort
SELECT ALL + col0 + - 95 + + + 83 FROM tab0 AS cor0
----
3
75
85

query I rowsort
SELECT - 88 * - col2 + + col1 AS col0 FROM tab1 AS cor0
----
5197
6031
8462

query I rowsort
SELECT + 96 + + 70 FROM tab2 AS cor0
----
166
166
166

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

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

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

query I rowsort
SELECT DISTINCT + + col2 + 87 + col0 FROM tab2 AS cor0
----
156
191
220

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5670
SELECT - CAST( col1 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-5670
SELECT - CAST ( col1 AS REAL ) FROM tab2 AS cor0 WHERE NULL <= NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-5672
SELECT DISTINCT - col1 / - + col1 AS col0 FROM tab0
----
1

query III rowsort
SELECT * FROM tab1 WHERE NOT 53 / - + 64 * - 32 + + 23 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col2 * + - col1 col0 FROM tab0
----
308367
4410
99

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

skipif mysql # not compatible
query I rowsort label-5675
SELECT ALL col0 / - 42 AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5676
SELECT DISTINCT - 12 DIV - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT - 12 / - col2 FROM tab2
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5680
SELECT DISTINCT 41 * - MIN( - 68 ), 65 AS col0 FROM tab1 AS cor0
----
2788
65

skipif mysql # not compatible
query II rowsort label-5680
SELECT DISTINCT 41 * - MIN ( - 68 ), 65 AS col0 FROM tab1 AS cor0
----
2788
65

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL < ( + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 50 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT 19 + + + COUNT( - col2 ) * + 79 * + 78 FROM tab2 AS cor0
----
18505

skipif mysql # not compatible
query I rowsort label-5683
SELECT 19 + + + COUNT ( - col2 ) * + 79 * + 78 FROM tab2 AS cor0
----
18505

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 32 * - 84 <= NULL
----

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

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

query I rowsort
SELECT DISTINCT 73 + + - 94 FROM tab1 cor0
----
-21

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

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

query I rowsort
SELECT + col2 * ( + col2 ) AS col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 18 NOT BETWEEN ( NULL ) AND ( + + 94 )
----
0

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 18 NOT BETWEEN ( NULL ) AND ( + + 94 )
----
0

query I rowsort
SELECT 41 - col0 FROM tab1 AS cor0
----
-10
-44
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col1 * - col2 col2 FROM tab0 cor0
----
198
220
3854

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5692
SELECT * FROM tab2 AS cor0 WHERE + col0 / col2 + - 40 * CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-5692
SELECT * FROM tab2 AS cor0 WHERE + col0 / col2 + - 40 * CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5693
SELECT ALL CAST( col1 AS SIGNED ) + + + col2 - 36, col1 FROM tab2 cor0
----
38
51
81
77
89
67

skipif mysql # not compatible
query II rowsort label-5693
SELECT ALL CAST ( col1 AS INTEGER ) + + + col2 - 36, col1 FROM tab2 cor0
----
38
51
81
77
89
67

query I rowsort
SELECT col2 + + - 32 FROM tab2 AS cor0
----
-9
26
8

query I rowsort
SELECT DISTINCT - col1 + + + 38 * - col1 * 39 + - col1 + - + col0 * col1 FROM tab1 AS cor0
----
-21490
-74025
-7845

query I rowsort
SELECT ALL - 88 + - col0 FROM tab1
----
-139
-173
-179

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT DISTINCT 13 DIV 77 + - 89 col0 FROM tab1
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5697
SELECT DISTINCT 13 / 77 + - 89 col0 FROM tab1
----
-89

query I rowsort
SELECT - 47 + col1 AS col0 FROM tab2
----
20
30
4

query I rowsort
SELECT 23 + - - ( + ( col2 ) ) FROM tab1
----
119
82
91

query I rowsort
SELECT - col2 * + col2 AS col2 FROM tab2 WHERE - col0 / col1 + + col1 + 18 IS NOT NULL
----
-1600
-3364
-529

query I rowsort
SELECT - col1 * 38 * col0 AS col0 FROM tab0 cor0
----
-3686
-46170
-69426

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + col2 * - col0 col2 FROM tab1 AS cor0 WHERE NOT ( NULL NOT BETWEEN + - col0 AND + col1 * col1 * 57 + col1 )
----

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

onlyif mysql # DIV for integer division: 
query III rowsort label-5704
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 30 > + col1 DIV + col0 * + - 74 )
----

skipif mysql # not compatible
query III rowsort label-5704
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT - 30 > + col1 / + col0 * + - 74 )
----

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE NOT + 66 NOT IN ( - col2 / + + ( - 51 ) * + - col2, - col1, + col0 )
----

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

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

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

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

query I rowsort
SELECT ALL - 10 AS col1 FROM tab0 WHERE NOT 8 / - col2 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5710
SELECT 1 DIV + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5710
SELECT 1 / + COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT ALL - 97 + COUNT( - 7 ) FROM tab2 WHERE NULL IS NULL
----
-94

skipif mysql # not compatible
query I rowsort label-5711
SELECT ALL - 97 + COUNT ( - 7 ) FROM tab2 WHERE NULL IS NULL
----
-94

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

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

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

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

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

query I rowsort
SELECT - col1 * + col2 + + 26 * 51 AS col0 FROM tab2 AS cor0
----
-1754
-2560
153

query I rowsort
SELECT 86 * + - col1 FROM tab0 AS cor0
----
-1806
-6966
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5718
SELECT - 28 AS col0, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-28
3

skipif mysql # not compatible
query II rowsort label-5718
SELECT - 28 AS col0, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-28
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5719
SELECT ALL - 98 - - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-89

skipif mysql # not compatible
query I rowsort label-5719
SELECT ALL - 98 - - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-89

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

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

query II rowsort
SELECT DISTINCT - ( + 29 ) AS col1, 22 FROM tab1 AS cor0
----
-29
22

query I rowsort
SELECT ALL + - 86 + + 84 + + col1 AS col2 FROM tab2 AS cor0
----
49
65
75

query I rowsort
SELECT 0 + - + 12 FROM tab1
----
-12
-12
-12

query I rowsort
SELECT ALL - col1 + 87 * + ( - 50 ) FROM tab0
----
-4351
-4371
-4431

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5725
SELECT DISTINCT * FROM tab0 WHERE NULL = CAST( 99 AS SIGNED ) * + col2 / + - col1
----

skipif mysql # not compatible
query III rowsort label-5725
SELECT DISTINCT * FROM tab0 WHERE NULL = CAST ( 99 AS INTEGER ) * + col2 / + - col1
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5727
SELECT + col2 DIV + 10 FROM tab0 AS cor0
----
1
4
9

skipif mysql # not compatible
query I rowsort label-5727
SELECT + col2 / + 10 FROM tab0 AS cor0
----
1
4
9

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * - 22 AS col2 FROM tab1 AS cor0
----
-1034
-110
-308

query I rowsort
SELECT - + col1 * - col1 * + 13 * + col0 AS col0 FROM tab2 AS cor0
----
1555398
4376775
4932928

query I rowsort
SELECT - + 40 * - + col2 + - col1 FROM tab0 AS cor0
----
1799
379
3959

query I rowsort
SELECT DISTINCT - ( + 38 ) + - col1 + col2 * - 3 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 + 97 IS NULL
----
-260
-336
-89

query II rowsort
SELECT ALL + col0 * col2, col0 * - 28 + + + 48 + col1 AS col2 FROM tab2 AS cor0
----
1058
-1189
2560
-1667
4350
-1985

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5737
SELECT 71 DIV + col0 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5737
SELECT 71 / + col0 FROM tab0
----
0
0
4

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <> + col0
----

query I rowsort
SELECT ALL - 90 * col2 AS col2 FROM tab0
----
-4230
-8910
-900

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5741
SELECT DISTINCT col1 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-5741
SELECT DISTINCT col1 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT ALL + 14 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5743
SELECT + CAST( - - col0 AS SIGNED ) + + ( + ( - + col2 ) ) AS col0 FROM tab1
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-5743
SELECT + CAST ( - - col0 AS INTEGER ) + + ( + ( - + col2 ) ) AS col0 FROM tab1
----
-45
23
26

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT - 22 - 43 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT 53 * col0 - col2 FROM tab2 AS cor0
----
2415
3352
3917

query I rowsort
SELECT DISTINCT + + 3 FROM tab1 AS cor0 WHERE + col2 IN ( 30, col1 )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab0 AS cor0 WHERE col0 * col2 IS NULL
----

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

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

query I rowsort
SELECT ALL + col0 * + + col1 + + - col1 AS col1 FROM tab2 cor0
----
2295
4851
4958

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5753
SELECT + COUNT( * ) DIV ( + 24 ) FROM tab1 WHERE + 97 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5753
SELECT + COUNT ( * ) / ( + 24 ) FROM tab1 WHERE + 97 IS NOT NULL
----
0

query I rowsort
SELECT 51 * - ( + - 39 ) FROM tab0
----
1989
1989
1989

query I rowsort
SELECT ALL + 83 * - col2 AS col2 FROM tab0
----
-3901
-8217
-830

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT DISTINCT col2 + + col2 * 60 + + ( + col2 ) DIV + + col2 FROM tab1
----
3600
4149
5857

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT col2 + + col2 * 60 + + ( + col2 ) / + + col2 FROM tab1
----
3600
4149
5857

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * 31 col2 FROM tab0
----
2852
2852
2852

onlyif mysql # aggregate syntax: 
query I rowsort label-5758
SELECT 0 - MAX( ALL col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-5758
SELECT 0 - MAX ( ALL col0 ) FROM tab2
----
-75

query II rowsort
SELECT - col1 - 5 AS col2, col2 FROM tab0
----
-26
10
-6
99
-86
47

query I rowsort
SELECT DISTINCT + col1 - + + col2 + + col0 FROM tab2 AS cor0
----
101
74
84

query I rowsort
SELECT - 2 + + col0 FROM tab1 AS cor0
----
49
83
89

query I rowsort
SELECT - - col2 + - + col0 - col0 AS col2 FROM tab1 AS cor0
----
-111
-114
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5763
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-5763
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 >= ( NULL )
----

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

query I rowsort
SELECT ALL col1 * + 11 AS col1 FROM tab1 cor0
----
154
517
55

onlyif mysql # aggregate syntax: 
query I rowsort label-5767
SELECT ALL MIN( DISTINCT + 91 ) AS col2 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5767
SELECT ALL MIN ( DISTINCT + 91 ) AS col2 FROM tab0
----
91

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

skipif mysql # not compatible
query I rowsort label-5768
SELECT COUNT ( * ) / COUNT ( * ) AS col2 FROM tab0
----
1

query II rowsort
SELECT + col1 * + col1 AS col1, 74 FROM tab1
----
196
74
2209
74
25
74

query I rowsort
SELECT ALL col1 * + + 29 AS col1 FROM tab1
----
1363
145
406

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5771
SELECT ALL + + ( CAST( + col2 AS SIGNED ) ) DIV - - col2 + 48 AS col0 FROM tab0 AS cor0
----
49
49
49

skipif mysql # not compatible
query I rowsort label-5771
SELECT ALL + + ( CAST ( + col2 AS INTEGER ) ) / - - col2 + 48 AS col0 FROM tab0 AS cor0
----
49
49
49

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

query I rowsort
SELECT - 47 * 84 FROM tab0
----
-3948
-3948
-3948

query II rowsort
SELECT + col1 AS col2, col0 AS col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT ( 98 ) * - col1 * + + col1 AS col2 FROM tab2 AS cor0
----
-254898
-439922
-581042

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

query II rowsort
SELECT ALL col0 / - 53, 14 AS col0 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + + 18 + ( + + 51 ) AS col1 FROM tab0 AS cor0
----
69

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

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

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL - 76 / + COUNT ( * ) AS col2 FROM tab1 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT + 21 * + + COUNT( * ) + 74 + + 94 * + + MAX( DISTINCT - + ( + ( + col2 ) ) ) FROM tab2 AS cor0
----
-2025

skipif mysql # not compatible
query I rowsort label-5781
SELECT + 21 * + + COUNT ( * ) + 74 + + 94 * + + MAX ( DISTINCT - + ( + ( + col2 ) ) ) FROM tab2 AS cor0
----
-2025

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5782
SELECT ALL + 36 + CAST( - col2 AS SIGNED ) AS col1, col2 + - col0 FROM tab2 AS cor0
----
-22
-17
-4
-24
13
-23

skipif mysql # not compatible
query II rowsort label-5782
SELECT ALL + 36 + CAST ( - col2 AS INTEGER ) AS col1, col2 + - col0 FROM tab2 AS cor0
----
-22
-17
-4
-24
13
-23

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

query I rowsort
SELECT + - col2 * 28 + - col1 * + 94 FROM tab0 AS cor0
----
-2254
-2866
-8930

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5786
SELECT ALL - - COUNT( * ) FROM tab0 WHERE ( + col0 ) > col0
----
0

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL - - COUNT ( * ) FROM tab0 WHERE ( + col0 ) > col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT DISTINCT + MIN( - col1 ) + + SUM( - - col2 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-5787
SELECT DISTINCT + MIN ( - col1 ) + + SUM ( - - col2 ) FROM tab2
----
44

query I rowsort
SELECT DISTINCT ( - col1 ) - + col0 FROM tab1
----
-138
-65
-90

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

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

query I rowsort
SELECT ALL col2 + + + 50 * + col1 * + + col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10510
190397
5049

query II rowsort
SELECT DISTINCT - 95, 63 AS col0 FROM tab1 AS cor0
----
-95
63

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 * 50 <= NULL
----

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

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

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

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5802
SELECT - 24 DIV - col1 AS col2 FROM tab0
----
0
1
24

skipif mysql # not compatible
query I rowsort label-5802
SELECT - 24 / - col1 AS col2 FROM tab0
----
0
1
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5803
SELECT - 42 DIV col2 AS col2 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5803
SELECT - 42 / col2 AS col2 FROM tab0
----
-4
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5805
SELECT MIN( ALL - - 42 ) AS col0 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-5805
SELECT MIN ( ALL - - 42 ) AS col0 FROM tab0
----
42

onlyif mysql # DIV for integer division: 
query II rowsort label-5806
SELECT col1 AS col0, 11 DIV - - col0 * + + col1 AS col2 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-5806
SELECT col1 AS col0, 11 / - - col0 * + + col1 AS col2 FROM tab1
----
14
0
47
0
5
0

query II rowsort
SELECT DISTINCT - 2 AS col1, + col1 * + + col1 AS col0 FROM tab1 AS cor0
----
-2
196
-2
2209
-2
25

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5812
SELECT + - col0 * 42 DIV - col0 FROM tab2 AS cor0
----
42
42
42

skipif mysql # not compatible
query I rowsort label-5812
SELECT + - col0 * 42 / - col0 FROM tab2 AS cor0
----
42
42
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5813
SELECT ALL + - 75 * + + ( ( + - col1 ) ) FROM tab2 AS cor0 WHERE 82 DIV + 94 * - - col1 * + + col2 < + col2
----
3825
5025
5775

skipif mysql # not compatible
query I rowsort label-5813
SELECT ALL + - 75 * + + ( ( + - col1 ) ) FROM tab2 AS cor0 WHERE 82 / + 94 * - - col1 * + + col2 < + col2
----
3825
5025
5775

query I rowsort
SELECT ALL col0 - + - 86 FROM tab1
----
137
171
177

query I rowsort
SELECT DISTINCT 15 * - - ( + + 12 ) + + col2 FROM tab1
----
239
248
276

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT MIN( ALL - col1 ) - + + 4 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-5816
SELECT MIN ( ALL - col1 ) - + + 4 FROM tab2
----
-81

query I rowsort
SELECT ALL + col1 - + col0 AS col2 FROM tab0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - col0 + - + 31 FROM tab0
----
-118
-128
-46

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 WHERE NOT NULL = NULL AND ( NOT - 71 < NULL )
----

query I rowsort
SELECT col0 + + col1 * + col1 - + 60 AS col2 FROM tab1
----
187
2240
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5821
SELECT 67 * - 15 * + CAST( - 26 AS SIGNED ) + - 50 + - - COUNT( * ) FROM tab2
----
26083

skipif mysql # not compatible
query I rowsort label-5821
SELECT 67 * - 15 * + CAST ( - 26 AS INTEGER ) + - 50 + - - COUNT ( * ) FROM tab2
----
26083

query III rowsort
SELECT ALL - + 71, col2 AS col1, + - col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 41e6df76f29c6d3a2e21d7e8302dcdb9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5824
SELECT 35 * - - ( - - COUNT( * ) ) AS col0, + 74 FROM tab0
----
105
74

skipif mysql # not compatible
query II rowsort label-5824
SELECT 35 * - - ( - - COUNT ( * ) ) AS col0, + 74 FROM tab0
----
105
74

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5826
SELECT + CAST( NULL AS DECIMAL ) / - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5826
SELECT + CAST ( NULL AS REAL ) / - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 14 * + - 3 FROM tab0
----
-42
-42
-42

query I rowsort
SELECT - col2 + + - 35 FROM tab2
----
-58
-75
-93

query II rowsort
SELECT - 96 + + col1, 94 FROM tab0 WHERE NOT + ( - ( + col0 ) ) + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5830
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - - col0 AND + CAST( + + col2 AS SIGNED ) + - 19
----

skipif mysql # not compatible
query III rowsort label-5830
SELECT ALL * FROM tab1 WHERE NULL BETWEEN - - col0 AND + CAST ( + + col2 AS INTEGER ) + - 19
----

query I rowsort
SELECT DISTINCT + 18 * + 72 * - col2 + + 39 FROM tab0 AS cor0 WHERE col0 <> ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT 54 - 73 AS col0 FROM tab0
----
-19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT - COUNT( 14 ) + COUNT( - col2 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5835
SELECT - COUNT ( 14 ) + COUNT ( - col2 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 97 + - 41 FROM tab2 AS cor0
----
56

query I rowsort
SELECT 25 + - col0 AS col2 FROM tab2 AS cor0
----
-21
-39
-50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 52
----

query I rowsort
SELECT - + 28 + + - 90 FROM tab2 AS cor0
----
-118
-118
-118

query I rowsort
SELECT + 46 + col0 AS col2 FROM tab1 AS cor0
----
131
137
97

query I rowsort
SELECT DISTINCT - ( col0 ) + + - col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT DISTINCT ( - col1 ) + - col0 + - col1 * 95 + col0 FROM tab0
----
-2016
-7776
-96

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5844
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 36 BETWEEN + col2 * + CAST( - - ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) AND + col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-5844
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 36 BETWEEN + col2 * + CAST ( - - ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) AND + col0
----
15
81
47

query I rowsort
SELECT ALL - 37 * col0 + col0 FROM tab1 AS cor0
----
-1836
-3060
-3276

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT DISTINCT 12 DIV + 82 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5846
SELECT DISTINCT 12 / + 82 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5850
SELECT DISTINCT - - CAST( + + col0 AS SIGNED ) * col0, + col1 + col1 AS col0 FROM tab2 AS cor0
----
2116
102
4096
154
5625
134

skipif mysql # not compatible
query II rowsort label-5850
SELECT DISTINCT - - CAST ( + + col0 AS INTEGER ) * col0, + col1 + col1 AS col0 FROM tab2 AS cor0
----
2116
102
4096
154
5625
134

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT col0 * col0 - 9 + - 99 * col0 < - col2
----
0

skipif mysql # not compatible
query I rowsort label-5852
SELECT ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT col0 * col0 - 9 + - 99 * col0 < - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5853
SELECT + MAX( DISTINCT + CAST( - + 13 AS SIGNED ) ) FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5853
SELECT + MAX ( DISTINCT + CAST ( - + 13 AS INTEGER ) ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT ALL + col2 + + 24 FROM tab0 AS cor0
----
123
34
71

query I rowsort
SELECT ALL - + col2 * + - col0 FROM tab0 AS cor0 WHERE 3 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5857
SELECT - 81 AS col1, COUNT( * ) FROM tab2
----
-81
3

skipif mysql # not compatible
query II rowsort label-5857
SELECT - 81 AS col1, COUNT ( * ) FROM tab2
----
-81
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5859
SELECT + 44 * 78 * + + CAST( - col2 AS SIGNED ) * - col2 AS col2 FROM tab2
----
11545248
1815528
5491200

skipif mysql # not compatible
query I rowsort label-5859
SELECT + 44 * 78 * + + CAST ( - col2 AS INTEGER ) * - col2 AS col2 FROM tab2
----
11545248
1815528
5491200

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

query I rowsort
SELECT ( + 33 ) FROM tab1
----
33
33
33

query II rowsort
SELECT col0, col2 + col2 AS col0 FROM tab1
----
51
192
85
118
91
136

query II rowsort
SELECT ALL + - col2 + - 3, col1 FROM tab2 cor0
----
-26
51
-43
77
-61
67

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5865
SELECT DISTINCT + MIN( DISTINCT + + col1 ) DIV - 95 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5865
SELECT DISTINCT + MIN ( DISTINCT + + col1 ) / - 95 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5866
SELECT MIN( col0 ) * 99 * - - 42 AS col1 FROM tab1
----
212058

skipif mysql # not compatible
query I rowsort label-5866
SELECT MIN ( col0 ) * 99 * - - 42 AS col1 FROM tab1
----
212058

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT DISTINCT + 18 - + - COUNT( 57 ) AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-5868
SELECT DISTINCT + 18 - + - COUNT ( 57 ) AS col0 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= - - col2 + + ( + col0 ) + - col2 / + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT - MIN( ALL + col2 ) * - 55 * + COUNT( * ) AS col1 FROM tab2
----
3795

skipif mysql # not compatible
query I rowsort label-5870
SELECT - MIN ( ALL + col2 ) * - 55 * + COUNT ( * ) AS col1 FROM tab2
----
3795

onlyif mysql # aggregate syntax: 
query II rowsort label-5871
SELECT + COUNT( * ) AS col2, - 15 AS col2 FROM tab2
----
3
-15

skipif mysql # not compatible
query II rowsort label-5871
SELECT + COUNT ( * ) AS col2, - 15 AS col2 FROM tab2
----
3
-15

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 45 * + - 93 + col1 * + 2 * - + 36 * + 97 <> ( - col2 ) + - - col2 + + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT DISTINCT + MAX( ALL 71 ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-5873
SELECT DISTINCT + MAX ( ALL 71 ) FROM tab1
----
71

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5875
SELECT ALL - col0 DIV + + col1 col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5875
SELECT ALL - col0 / + + col1 col1 FROM tab1 AS cor0
----
-1
-17
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT ALL - CAST( + 14 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-14
-14
-14

skipif mysql # not compatible
query I rowsort label-5878
SELECT ALL - CAST ( + 14 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-14
-14
-14

query I rowsort
SELECT DISTINCT + col0 + + col2 * col2 AS col0 FROM tab2 WHERE 50 * + col1 + col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT + COUNT( - 47 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5881
SELECT + COUNT ( - 47 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5882
SELECT ALL + col0 * + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - col1 / col1
----

skipif mysql # not compatible
query I rowsort label-5882
SELECT ALL + col0 * + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - col1 / col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN NULL AND 34
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT ALL MIN( 74 ) + 11 AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-5885
SELECT ALL MIN ( 74 ) + 11 AS col0 FROM tab1
----
85

query I rowsort
SELECT ALL 58 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
58
58
58

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN ( 37 ) AND col1
----

query I rowsort
SELECT + col1 + 91 * + 16 AS col1 FROM tab1
----
1461
1470
1503

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

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

query I rowsort
SELECT 84 FROM tab2 WHERE NULL <= - 61
----

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

query I rowsort
SELECT 92 + col0 AS col1 FROM tab2
----
138
156
167

query I rowsort
SELECT + col1 + + 30 FROM tab0
----
111
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT DISTINCT + 68 * MAX( ALL + col1 ) AS col0 FROM tab2
----
5236

skipif mysql # not compatible
query I rowsort label-5894
SELECT DISTINCT + 68 * MAX ( ALL + col1 ) AS col0 FROM tab2
----
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ( + MAX( ALL 78 ) ) FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-5895
SELECT ( + MAX ( ALL 78 ) ) FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL + COUNT( * ) * 21 AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + COUNT ( * ) * 21 AS col2 FROM tab1
----
63

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL - MIN( ALL + 14 ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5898
SELECT ALL - MIN ( ALL + 14 ) col0 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5900
SELECT + COUNT( * ) * + ( 4 * 96 ) FROM tab2
----
1152

skipif mysql # not compatible
query I rowsort label-5900
SELECT + COUNT ( * ) * + ( 4 * 96 ) FROM tab2
----
1152

query I rowsort
SELECT - 85 * - col2 AS col1 FROM tab2
----
1955
3400
4930

query I rowsort
SELECT - 18 + 99 * col0 AS col0 FROM tab0
----
1467
8595
9585

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5905
SELECT ALL + 8 + COUNT( * ) col0 FROM tab1 cor0
----
11

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

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

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

query I rowsort
SELECT ALL + 14 - col2 FROM tab2
----
-26
-44
-9

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5910
SELECT + col2 col0 FROM tab0 AS cor0 WHERE 76 - + CAST( NULL AS SIGNED ) BETWEEN + 78 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5910
SELECT + col2 col0 FROM tab0 AS cor0 WHERE 76 - + CAST ( NULL AS INTEGER ) BETWEEN + 78 AND NULL
----

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

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

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

query I rowsort
SELECT ALL col1 - - 49 AS col0 FROM tab0 AS cor0
----
130
50
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 + 50 * - col0 col2 FROM tab1 AS cor0
----
-2533
-4233
-4533

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT - MIN( DISTINCT + 79 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5918
SELECT - MIN ( DISTINCT + 79 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-5919
SELECT + 36 DIV - ( col2 + 26 ) col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5919
SELECT + 36 / - ( col2 + 26 ) col0 FROM tab0 cor0
----
-1
0
0

query I rowsort
SELECT - col1 * + 43 AS col2 FROM tab2 cor0
----
-2193
-2881
-3311

query III rowsort
SELECT * FROM tab2 WHERE NOT 30 / + col0 <> ( - 91 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5923
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 / col2 >= ( + ( ( - CAST( NULL AS SIGNED ) ) ) - - col1 )
----

skipif mysql # not compatible
query III rowsort label-5923
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 / col2 >= ( + ( ( - CAST ( NULL AS INTEGER ) ) ) - - col1 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5927
SELECT DISTINCT - - CAST( + + col0 AS SIGNED ) FROM tab2 AS cor0
----
46
64
75

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

query I rowsort
SELECT - col1 * + 58 * + col1 AS col1 FROM tab0
----
-25578
-380538
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5929
SELECT - COUNT( * ) - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif mysql # not compatible
query I rowsort label-5929
SELECT - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( - 61 / 58 ) AND 85
----

query I rowsort
SELECT ALL - ( + 13 ) FROM tab2
----
-13
-13
-13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5932
SELECT ALL COUNT( * ) DIV + 29 + - - COUNT( * ) * 93 AS col1 FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-5932
SELECT ALL COUNT ( * ) / + 29 + - - COUNT ( * ) * 93 AS col1 FROM tab1 AS cor0
----
279

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5933
SELECT + 29 * COUNT( * ) * 92 * - COUNT( * ) + - ( - COUNT( * ) ) DIV 57 AS col1 FROM tab1 AS cor0
----
-24012

skipif mysql # not compatible
query I rowsort label-5933
SELECT + 29 * COUNT ( * ) * 92 * - COUNT ( * ) + - ( - COUNT ( * ) ) / 57 AS col1 FROM tab1 AS cor0
----
-24012

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL < col0 * - 4
----

query I rowsort
SELECT ALL col0 + + 50 AS col1 FROM tab0 AS cor0
----
137
147
65

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

query I rowsort
SELECT ALL - col1 + - 64 AS col2 FROM tab0 AS cor0
----
-145
-65
-85

onlyif mysql # aggregate syntax: 
query II rowsort label-5938
SELECT DISTINCT - COUNT( * ), - 53 + 73 AS col2 FROM tab2 AS cor0
----
-3
20

skipif mysql # not compatible
query II rowsort label-5938
SELECT DISTINCT - COUNT ( * ), - 53 + 73 AS col2 FROM tab2 AS cor0
----
-3
20

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

query I rowsort
SELECT ALL - 60 * - + col0 + + - 0 FROM tab0
----
5220
5820
900

query I rowsort
SELECT ALL - col1 * + col1 * col1 AS col1 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # DIV for integer division: 
query II rowsort label-5942
SELECT 11 DIV + col1 AS col2, + 33 AS col2 FROM tab0
----
0
33
0
33
11
33

skipif mysql # not compatible
query II rowsort label-5942
SELECT 11 / + col1 AS col2, + 33 AS col2 FROM tab0
----
0
33
0
33
11
33

query I rowsort
SELECT - 37 * - 67 FROM tab1
----
2479
2479
2479

query II rowsort
SELECT 75 - + col0, - ( + 78 ) AS col0 FROM tab0
----
-12
-78
-22
-78
60
-78

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5946
SELECT DISTINCT 24 DIV + 96 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5946
SELECT DISTINCT 24 / + 96 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - ( + - 90 ) FROM tab1
----
90

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

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

query I rowsort
SELECT + col2 * + ( - + 60 ) - + + 2 + - col2 * col2 AS col2 FROM tab2 AS cor0
----
-1911
-4002
-6846

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5951
SELECT ALL - COUNT( * ) * + CAST( NULL AS DECIMAL ), 30 col1 FROM tab0 cor0
----
NULL
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5951
SELECT ALL - COUNT ( * ) * + CAST ( NULL AS REAL ), 30 col1 FROM tab0 cor0
----
NULL
30

query I rowsort
SELECT - col0 * col1 * 31 + + - col1 + - col2 * col1 FROM tab0 AS cor0
----
-3107
-41553
-56868

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT ( + + ( 94 ) + col1 ) BETWEEN + col1 AND NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5958
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) > ( 33 + CAST( NULL AS SIGNED ) + + 42 )
----

skipif mysql # not compatible
query III rowsort label-5958
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) > ( 33 + CAST ( NULL AS INTEGER ) + + 42 )
----

query I rowsort
SELECT ALL + + col1 * - ( 89 ) FROM tab1 AS cor0
----
-1246
-4183
-445

query I rowsort
SELECT ( 13 ) * - ( + 16 ) + + col2 AS col2 FROM tab2 AS cor0
----
-150
-168
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5961
SELECT MIN( ALL + + 82 ) AS col1 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-5961
SELECT MIN ( ALL + + 82 ) AS col1 FROM tab1
----
82

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

query II rowsort
SELECT ALL - col1 AS col1, - col2 * + - col1 * - + 82 FROM tab2
----
-51
-96186
-67
-318652
-77
-252560

query I rowsort
SELECT col1 * + 33 AS col2 FROM tab1
----
1551
165
462

onlyif mysql # aggregate syntax: 
query I rowsort label-5965
SELECT COUNT( * ) FROM tab2 WHERE NOT + 50 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5965
SELECT COUNT ( * ) FROM tab2 WHERE NOT + 50 IS NULL
----
3

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

query I rowsort
SELECT DISTINCT + 47 - col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-20
-30
-4

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5969
SELECT ALL + 52 * + col0 + + 5 DIV col0 AS col0 FROM tab1 AS cor0
----
2652
4420
4732

skipif mysql # not compatible
query I rowsort label-5969
SELECT ALL + 52 * + col0 + + 5 / col0 AS col0 FROM tab1 AS cor0
----
2652
4420
4732

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

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

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

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

query I rowsort
SELECT ALL - 36 AS col0 FROM tab0 cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query II rowsort label-5973
SELECT DISTINCT + MIN( ALL - 65 ) + - 37 col2, + COUNT( * ) FROM tab2 AS cor0
----
-102
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5973
SELECT DISTINCT + MIN ( ALL - 65 ) + - 37 col2, + COUNT ( * ) FROM tab2 AS cor0
----
-102
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col1 * + col2 + - - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT - - MAX( ALL - col1 ) + SUM( - col1 ) FROM tab0 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-5975
SELECT - - MAX ( ALL - col1 ) + SUM ( - col1 ) FROM tab0 AS cor0
----
-104

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5977
SELECT ALL + 24 + - - COUNT( * ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-5977
SELECT ALL + 24 + - - COUNT ( * ) AS col2 FROM tab2
----
27

query I rowsort
SELECT - col1 + 28 FROM tab1
----
-19
14
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT DISTINCT 95 - 71 + + col1 DIV - col1 col1 FROM tab1
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5979
SELECT DISTINCT 95 - 71 + + col1 / - col1 col1 FROM tab1
----
23

query I rowsort
SELECT DISTINCT + 57 * + col0 + - + 53 FROM tab1
----
2854
4792
5134

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5981
SELECT - CAST( - 94 AS SIGNED ) + - col0 col0 FROM tab1
----
3
43
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5981
SELECT - CAST ( - 94 AS INTEGER ) + - col0 col0 FROM tab1
----
3
43
9

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5984
SELECT ALL 21 DIV + 66 * col2 - 18 + 29 FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-5984
SELECT ALL 21 / + 66 * col2 - 18 + 29 FROM tab1 AS cor0
----
11
11
11

query II rowsort
SELECT - ( - + col0 ) - col2, 0 AS col1 FROM tab0 AS cor0
----
-2
0
-32
0
77
0

query I rowsort
SELECT + col1 - - col1 + + col2 - + + 69 AS col2 FROM tab2 AS cor0
----
123
125
56

query I rowsort
SELECT DISTINCT + col0 + + col2 + - + col1 AS col0 FROM tab0
----
-19
195
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 > + col0 + - - col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-5989
SELECT DISTINCT + COUNT( * ) * - COUNT( DISTINCT - + 46 ) FROM tab1 AS cor0 WHERE NOT NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT DISTINCT + COUNT ( * ) * - COUNT ( DISTINCT - + 46 ) FROM tab1 AS cor0 WHERE NOT NULL <> col1
----
0

query I rowsort
SELECT DISTINCT col1 * + 6 AS col0 FROM tab1 AS cor0
----
282
30
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( col2 ) * - col1 col1 FROM tab1 AS cor0
----
-1344
-295
-3196

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - - col0, col2 / col0 )
----

query II rowsort
SELECT ALL + - 81 AS col1, col2 + - + col0 + - 66 * + col1 FROM tab2 WHERE NULL IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5995
SELECT COUNT( * ) DIV - 59 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5995
SELECT COUNT ( * ) / - 59 FROM tab1
----
0

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

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

query I rowsort
SELECT - - 99 AS col1 FROM tab1 AS cor0
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col1 FROM tab0 AS cor0 WHERE NOT - 56 IS NULL
----
-99

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col1, ( - ( + + col0 ) ) )
----

query I rowsort
SELECT DISTINCT + ( + 82 ) FROM tab2 WHERE NOT - ( - col2 ) + - - col0 > NULL
----

query I rowsort
SELECT 58 + - + col0 FROM tab1
----
-27
-33
7

query I rowsort
SELECT col0 * col2 + col2 AS col1 FROM tab0
----
752
880
9702

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6006
SELECT ALL CAST( NULL AS SIGNED ) * 67 + COUNT( DISTINCT ( - col1 ) ) FROM tab0 AS cor0 WHERE NOT ( + CAST( - 52 AS DECIMAL ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL CAST ( NULL AS INTEGER ) * 67 + COUNT ( DISTINCT ( - col1 ) ) FROM tab0 AS cor0 WHERE NOT ( + CAST ( - 52 AS REAL ) ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6007
SELECT - + CAST( NULL AS SIGNED ), col1 AS col0 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-6007
SELECT - + CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6008
SELECT DISTINCT + - 34 + + 92 + + col2 + - 67 * + 1 * + 86 AS col2, - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
-5605
-99
-5657
-47
-5694
-10

skipif mysql # not compatible
query II rowsort label-6008
SELECT DISTINCT + - 34 + + 92 + + col2 + - 67 * + 1 * + 86 AS col2, - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
-5605
-99
-5657
-47
-5694
-10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6010
SELECT - MAX( ALL - col1 ) FROM tab0 AS cor0 WHERE - 7 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6010
SELECT - MAX ( ALL - col1 ) FROM tab0 AS cor0 WHERE - 7 <> NULL
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6013
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + CAST( NULL AS SIGNED ) * - col2 + + col1 )
----

skipif mysql # not compatible
query III rowsort label-6013
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + CAST ( NULL AS INTEGER ) * - col2 + + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL COUNT( * ) - + 83 AS col1 FROM tab2
----
-80

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL COUNT ( * ) - + 83 AS col1 FROM tab2
----
-80

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

skipif mysql # not compatible
query I rowsort label-6016
SELECT + ( - COUNT ( * ) ) - + COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
-3

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

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

query I rowsort
SELECT ALL col2 * col0 + - - col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT - col2 - - 47 + - col2 AS col1 FROM tab1
----
-145
-71
-89

query I rowsort
SELECT col2 * col1 - - 16 FROM tab1
----
1360
311
3212

onlyif mysql # aggregate syntax: 
query I rowsort label-6021
SELECT ALL - SUM( col2 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6021
SELECT ALL - SUM ( col2 ) AS col1 FROM tab0
----
-156

query I rowsort
SELECT ALL + 56 FROM tab0 WHERE + col1 < + 54 * + 76 + col2
----
56
56
56

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 * + + col1 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-6027
SELECT ALL + col1 DIV + ( - + 47 ) AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6027
SELECT ALL + col1 / + ( - + 47 ) AS col0 FROM tab0
----
-1
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 17 AS col0, col1 * + col0 col1 FROM tab2
----
17
2346
17
4928
17
5025

query I rowsort
SELECT - - col0 / - 33 * + col0 AS col2 FROM tab1 WHERE NOT - ( + ( - 61 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * 88 AS col2 FROM tab1
----
1232
4136
440

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col2, - 5 + - col1 AS col0 FROM tab1 AS cor0
----
-59
-10
-68
-52
-96
-19

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

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

query I rowsort
SELECT DISTINCT + col0 * + 93 AS col2 FROM tab2 AS cor0
----
4278
5952
6975

query I rowsort
SELECT + - 97 * col1 AS col0 FROM tab1 AS cor0
----
-1358
-4559
-485

onlyif mysql # DIV for integer division: 
query II rowsort label-6036
SELECT DISTINCT col2 DIV - ( col0 ) + 97 col1, col1 + + col2 AS col0 FROM tab0 AS cor0
----
94
128
96
100
97
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6036
SELECT DISTINCT col2 / - ( col0 ) + 97 col1, col1 + + col2 AS col0 FROM tab0 AS cor0
----
94
128
96
100
97
31

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

query I rowsort
SELECT - 45 * col2 FROM tab1 AS cor0
----
-2655
-3060
-4320

query I rowsort
SELECT ALL + 62 * + 7 FROM tab2
----
434
434
434

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6041
SELECT DISTINCT - 52 + - ( + ( + 6 ) ) + + MIN( + - col0 ) + - + 38 + + MIN( ALL + col1 ) AS col0 FROM tab0 WHERE NOT - 66 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6041
SELECT DISTINCT - 52 + - ( + ( + 6 ) ) + + MIN ( + - col0 ) + - + 38 + + MIN ( ALL + col1 ) AS col0 FROM tab0 WHERE NOT - 66 >= NULL
----
NULL

query II rowsort
SELECT + 16 + - - 74 AS col0, 81 FROM tab1
----
90
81
90
81
90
81

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

query I rowsort
SELECT DISTINCT - 47 + 38 + - + col1 AS col1 FROM tab1
----
-14
-23
-56

onlyif mysql # aggregate syntax: 
query II rowsort label-6045
SELECT DISTINCT - MAX( 56 ) AS col0, MAX( DISTINCT + col1 ) FROM tab1 AS cor0
----
-56
47

skipif mysql # not compatible
query II rowsort label-6045
SELECT DISTINCT - MAX ( 56 ) AS col0, MAX ( DISTINCT + col1 ) FROM tab1 AS cor0
----
-56
47

query I rowsort
SELECT ALL + ( + col0 ) FROM tab0 AS cor0 WHERE NULL < NULL
----

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

query I rowsort
SELECT DISTINCT 95 + + - col0 AS col2 FROM tab2 AS cor0
----
20
31
49

query II rowsort
SELECT + col0, ( - - 42 ) * 25 + - col0 FROM tab2
----
46
1004
64
986
75
975

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 col2 FROM tab2, tab1 AS cor0
----
9 values hashing to 5a567947d14593676e3825756f8e6130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6051
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT col1 / col2 + - - 88 + 19 + - - 19 * + + col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6051
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT col1 / col2 + - - 88 + 19 + - - 19 * + + col0 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6052
SELECT * FROM tab1 AS cor0 WHERE NULL < + 28 * - CAST( + - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6052
SELECT * FROM tab1 AS cor0 WHERE NULL < + 28 * - CAST ( + - col2 AS INTEGER )
----

query I rowsort
SELECT - + 68 FROM tab1 AS cor0 WHERE - 56 * - col2 < NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 64 * + col0 IS NULL
----

query I rowsort
SELECT + col1 + + 22 AS col0 FROM tab2 AS cor0
----
73
89
99

query I rowsort
SELECT - + col1 + + + 36 FROM tab2 AS cor0
----
-15
-31
-41

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT ALL + MAX( DISTINCT - col2 ) - + 57 FROM tab0 WHERE - + 95 = + 25 * + - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT ALL + MAX ( DISTINCT - col2 ) - + 57 FROM tab0 WHERE - + 95 = + 25 * + - 39
----
NULL

query I rowsort
SELECT DISTINCT col2 * col2 * + + col1 + - 29 + - - col2 * + 2 AS col2 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6061
SELECT ALL - 54, COUNT( * ) + COUNT( * ) col1 FROM tab1
----
-54
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6061
SELECT ALL - 54, COUNT ( * ) + COUNT ( * ) col1 FROM tab1
----
-54
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6062
SELECT DISTINCT + 62 * - COUNT( * ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-6062
SELECT DISTINCT + 62 * - COUNT ( * ) FROM tab0 AS cor0
----
-186

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6065
SELECT - COUNT( ALL - + 28 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6065
SELECT - COUNT ( ALL - + 28 ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT 87 * + col0 AS col2 FROM tab1 AS cor0 WHERE col2 NOT IN ( 80 + - 45 * - col2 )
----
4437
7395
7917

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

query I rowsort
SELECT DISTINCT - 38 * 68 + 41 FROM tab1 AS cor0
----
-2543

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6069
SELECT ALL CAST ( NULL AS INTEGER ) * + 69 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6072
SELECT DISTINCT - + 28 DIV col1 DIV col0 - - 96 * + + col1 AS col1 FROM tab2 AS cor0
----
4896
6432
7392

skipif mysql # not compatible
query I rowsort label-6072
SELECT DISTINCT - + 28 / col1 / col0 - - 96 * + + col1 AS col1 FROM tab2 AS cor0
----
4896
6432
7392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-6074
SELECT COUNT( * ) * - + 17 AS col2 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-6074
SELECT COUNT ( * ) * - + 17 AS col2 FROM tab0
----
-51

query I rowsort
SELECT 28 * - col0 FROM tab0
----
-2436
-2716
-420

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( ( - - 39 ) ) NOT BETWEEN NULL AND col2 - col1 )
----
15
81
47
87
21
10

query I rowsort
SELECT ( ( - 85 ) ) AS col1 FROM tab1, tab0 cor0
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

query I rowsort
SELECT DISTINCT col1 * + 12 AS col0 FROM tab1
----
168
564
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6079
SELECT DISTINCT - COUNT( * ) DIV COUNT( * ) + - + 52 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-53

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - COUNT ( * ) / COUNT ( * ) + - + 52 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6081
SELECT ALL 66 * - COUNT( * ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL 66 * - COUNT ( * ) FROM tab0
----
-198

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

skipif mysql # not compatible
query I rowsort label-6082
SELECT ALL + + CAST ( NULL AS INTEGER ) * 83 + - 68 + col1 + - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col2 - + 62 * + col1 + 50 + - col0 + - - col2 AS col1 FROM tab2 AS cor0
----
-4308
-7828
-8007

onlyif mysql # DIV for integer division: 
query I rowsort label-6084
SELECT col1 DIV - col1 + col0 AS col1 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-6084
SELECT col1 / - col1 + col0 AS col1 FROM tab2
----
45
63
74

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 42 NOT BETWEEN - + 77 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6086
SELECT + CAST( NULL AS DECIMAL ) + + 90 FROM tab0
----
NULL
NULL
NULL

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

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

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

query II rowsort
SELECT DISTINCT + 13 - col0 AS col0, 53 FROM tab2
----
-33
53
-51
53
-62
53

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT ALL COUNT( * ) + - + MAX( - 42 ) FROM tab2 AS cor0 WHERE NOT ( - ( - + 13 ) ) <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6091
SELECT ALL COUNT ( * ) + - + MAX ( - 42 ) FROM tab2 AS cor0 WHERE NOT ( - ( - + 13 ) ) <> ( NULL )
----
NULL

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + ( col1 ) FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6096
SELECT ALL - 80 - + COUNT( * ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-6096
SELECT ALL - 80 - + COUNT ( * ) FROM tab1
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6097
SELECT - CAST( 67 AS SIGNED ) - 55 + + col0 AS col0 FROM tab0
----
-107
-25
-35

skipif mysql # not compatible
query I rowsort label-6097
SELECT - CAST ( 67 AS INTEGER ) - 55 + + col0 AS col0 FROM tab0
----
-107
-25
-35

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

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

query I rowsort
SELECT col1 - + 83 AS col1 FROM tab2
----
-16
-32
-6

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT 11 + + - COUNT ( * ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
2

query I rowsort
SELECT - 39 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

onlyif mysql # aggregate syntax: 
query II rowsort label-6106
SELECT 60 AS col2, - 92 * - + COUNT( * ) FROM tab0
----
60
276

skipif mysql # not compatible
query II rowsort label-6106
SELECT 60 AS col2, - 92 * - + COUNT ( * ) FROM tab0
----
60
276

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

skipif mysql # not compatible
query I rowsort label-6107
SELECT 3 / COUNT ( * ) AS col1 FROM tab2
----
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 23 + 54 + - col0 * + ( 43 ) + - col1 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 78 AS col1, 85 AS col1 FROM tab1 AS cor0
----
78
85

query II rowsort
SELECT ALL - col2 AS col0, ( ( col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query I rowsort
SELECT DISTINCT + 85 + + 54 FROM tab2
----
139

query I rowsort
SELECT col1 * 60 * + col0 AS col2 FROM tab2
----
140760
295680
301500

onlyif mysql # DIV for integer division: 
query II rowsort label-6113
SELECT + 82 DIV - 97 + + col2 AS col2, - 67 AS col0 FROM tab0
----
10
-67
47
-67
99
-67

skipif mysql # not compatible
query II rowsort label-6113
SELECT + 82 / - 97 + + col2 AS col2, - 67 AS col0 FROM tab0
----
10
-67
47
-67
99
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6114
SELECT 7 + - - COUNT( + - col2 ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-6114
SELECT 7 + - - COUNT ( + - col2 ) FROM tab2
----
10

query I rowsort
SELECT ( + + col0 ) + - col1 AS col2 FROM tab2
----
-13
-5
8

query I rowsort
SELECT DISTINCT ( - - col2 ) * 72 * + - 54 AS col2 FROM tab0
----
-182736
-384912
-38880

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

skipif mysql # not compatible
query I rowsort label-6117
SELECT - COUNT ( * ) * CAST ( NULL AS INTEGER ) / + 19 + + - COUNT ( * ) FROM tab0 cor0
----
NULL

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

query I rowsort
SELECT ALL 61 * + 22 FROM tab0
----
1342
1342
1342

query I rowsort
SELECT DISTINCT - col0 - - + 62 AS col0 FROM tab2 AS cor0
----
-13
-2
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6121
SELECT + 48 DIV + 71 + col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6121
SELECT + 48 / + 71 + col0 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT + - col0 * - col1 + + + col2 FROM tab1 cor0
----
4345
484
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col0 AS col1, col0 - - - col1 col2 FROM tab1 AS cor0
----
51
37
85
80
91
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT ALL - SUM( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-6124
SELECT ALL - SUM ( DISTINCT - col0 ) AS col1 FROM tab2 AS cor0
----
185

query II rowsort
SELECT - col0 + - - 87 + col2 AS col0, 15 AS col1 FROM tab2 AS cor0
----
63
15
64
15
70
15

query II rowsort
SELECT DISTINCT col2 + + 38 + + col2 AS col0, - col1 FROM tab2 AS cor0
----
118
-77
154
-67
84
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6127
SELECT + + 65 DIV + + col1 AS col1 FROM tab0 AS cor0
----
0
3
65

skipif mysql # not compatible
query I rowsort label-6127
SELECT + + 65 / + + col1 AS col1 FROM tab0 AS cor0
----
0
3
65

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

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

query III rowsort
SELECT ALL - - 70 * col0 * + + col2 AS col1, col0 AS col2, + col0 AS col0 FROM tab1 AS cor0
----
9 values hashing to 00565c40e73d6fa1f63e84d0cbd99cdc

query I rowsort
SELECT DISTINCT ( + ( + col2 ) ) FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68 * 57 col2, - col2 AS col2 FROM tab0
----
3876
-10
3876
-47
3876
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6132
SELECT + MIN( - + col1 ) AS col0, + COUNT( * ) * + MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
-77
-225

skipif mysql # not compatible
query II rowsort label-6132
SELECT + MIN ( - + col1 ) AS col0, + COUNT ( * ) * + MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
-77
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - 32 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-6133
SELECT - 32 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-96

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

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

query I rowsort
SELECT 61 FROM tab2 AS cor0 WHERE NOT NULL <> ( + 71 )
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6136
SELECT ALL col1 AS col1, col2 * + col1 + - - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6136
SELECT ALL col1 AS col1, col2 * + col1 + - - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

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

skipif mysql # not compatible
query I rowsort label-6137
SELECT col2 / + 68 FROM tab0
----
0
0
1

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

skipif mysql # not compatible
query I rowsort label-6138
SELECT ALL - ( + CAST ( - + col1 AS INTEGER ) ) AS col0 FROM tab2
----
51
67
77

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

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

query I rowsort
SELECT - - col2 + - 7 FROM tab2 AS cor0
----
16
33
51

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6142
SELECT ALL 89 * - SUM( ALL + col2 ) + - - COUNT( DISTINCT - - col0 ) * + COUNT( * ) AS col1, COUNT( * ) * + - COUNT( * ) DIV - - COUNT( * ) AS col0 FROM tab0
----
-13875
-3

skipif mysql # not compatible
query II rowsort label-6142
SELECT ALL 89 * - SUM ( ALL + col2 ) + - - COUNT ( DISTINCT - - col0 ) * + COUNT ( * ) AS col1, COUNT ( * ) * + - COUNT ( * ) / - - COUNT ( * ) AS col0 FROM tab0
----
-13875
-3

query I rowsort
SELECT DISTINCT - 65 * col1 + 98 * + col2 - - col1 FROM tab0
----
-364
-578
9638

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6145
SELECT CAST( NULL AS SIGNED ) AS col2, 67 * + col0 AS col0 FROM tab2
----
NULL
3082
NULL
4288
NULL
5025

skipif mysql # not compatible
query II rowsort label-6145
SELECT CAST ( NULL AS INTEGER ) AS col2, 67 * + col0 AS col0 FROM tab2
----
NULL
3082
NULL
4288
NULL
5025

query I rowsort
SELECT - col0 * col0 + + 38 * - 94 AS col1 FROM tab1 WHERE - 39 IS NULL
----

query II rowsort
SELECT + 94 AS col0, col0 FROM tab1
----
94
51
94
85
94
91

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 40 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT - - 47 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN + col1 / - 70 / 3 * - + 1 AND + col0 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 <> 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6152
SELECT + 9 * COUNT( * ) + - + MIN( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NOT + col0 + + col1 - - col2 < - col0
----
-32

skipif mysql # not compatible
query I rowsort label-6152
SELECT + 9 * COUNT ( * ) + - + MIN ( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NOT + col0 + + col1 - - col2 < - col0
----
-32

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT + MIN( ALL + + 76 ) col1 FROM tab1
----
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6156
SELECT + MIN ( ALL + + 76 ) col1 FROM tab1
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6157
SELECT + SUM( - - 76 ) AS col0 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-6157
SELECT + SUM ( - - 76 ) AS col0 FROM tab2
----
228

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

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

query I rowsort
SELECT ALL + col1 * 4 AS col1 FROM tab1 AS cor0
----
188
20
56

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT ALL 77 * - 49 * COUNT( * ) AS col2 FROM tab1
----
-11319

skipif mysql # not compatible
query I rowsort label-6161
SELECT ALL 77 * - 49 * COUNT ( * ) AS col2 FROM tab1
----
-11319

query I rowsort
SELECT ALL col1 * - 99 AS col2 FROM tab2 AS cor0
----
-5049
-6633
-7623

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6163
SELECT ALL + + CAST( + + col0 AS SIGNED ) FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6163
SELECT ALL + + CAST ( + + col0 AS INTEGER ) FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT ALL 17 FROM tab0 AS cor0 WHERE + 17 < + col2 * col0
----
17
17
17

query I rowsort
SELECT DISTINCT col2 + - - 88 * - col0 FROM tab0 AS cor0
----
-1273
-7646
-8437

onlyif mysql # aggregate syntax: 
query I rowsort label-6166
SELECT COUNT( * ) + - - 87 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6166
SELECT COUNT ( * ) + - - 87 FROM tab2 AS cor0
----
90

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - 11 - - - col1 col0 FROM tab0
----
1066
84
936

onlyif mysql # aggregate syntax: 
query I rowsort label-6169
SELECT DISTINCT + MAX( DISTINCT 73 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-6169
SELECT DISTINCT + MAX ( DISTINCT 73 ) FROM tab1
----
73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6171
SELECT - COUNT( * ) * + - COUNT( col0 ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-6171
SELECT - COUNT ( * ) * + - COUNT ( col0 ) AS col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( NULL ) <> NULL ) )
----

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

query I rowsort
SELECT DISTINCT + + 1 * - col1 + 96 FROM tab2 AS cor0
----
19
29
45

query I rowsort
SELECT ALL - - 4 * 9 + col2 FROM tab0 AS cor0
----
135
46
83

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6176
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col0 - - col0 <= + ( + CAST( + col1 AS SIGNED ) ) * 94 * - col1 * + col2 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6176
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + + col0 - - col0 <= + ( + CAST ( + col1 AS INTEGER ) ) * 94 * - col1 * + col2 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT COUNT( ALL 82 ) * COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6177
SELECT COUNT ( ALL 82 ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT + 36 FROM tab1 cor0 WHERE NOT ( NOT ( NOT - col1 BETWEEN + - col2 AND NULL ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6179
SELECT DISTINCT 13 DIV col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT 13 / col0 FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT ( - ( + - 92 ) ) * - ( + + 92 ) * 25 AS col0 FROM tab0
----
-211600

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( - 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6183
SELECT * FROM tab2 WHERE NOT - CAST( + col0 AS SIGNED ) NOT BETWEEN - + col1 + + ( 69 ) AND + 63 * 61 + + - 86
----

skipif mysql # not compatible
query III rowsort label-6183
SELECT * FROM tab2 WHERE NOT - CAST ( + col0 AS INTEGER ) NOT BETWEEN - + col1 + + ( 69 ) AND + 63 * 61 + + - 86
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 50 / 57 - + + 90 - - col2 * 93
----

query I rowsort
SELECT ( 69 ) AS col1 FROM tab1 AS cor0
----
69
69
69

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 - + 38 / col0 * col1 * + 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query II rowsort
SELECT DISTINCT - - 13, + 49 AS col1 FROM tab0 WHERE NOT + 7 IN ( 25, col2 )
----
13
49

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT 22 IS NOT NULL )
----

query I rowsort
SELECT 79 + - 86 AS col2 FROM tab0
----
-7
-7
-7

query I rowsort
SELECT ALL - col1 * - 56 AS col0 FROM tab0 AS cor0
----
1176
4536
56

onlyif mysql # DIV for integer division: 
query I rowsort label-6194
SELECT + 44 + col0 + - - ( - col2 ) DIV + - col0 FROM tab2 AS cor0
----
108
119
90

skipif mysql # not compatible
query I rowsort label-6194
SELECT + 44 + col0 + - - ( - col2 ) / + - col0 FROM tab2 AS cor0
----
108
119
90

query II rowsort
SELECT DISTINCT - col0 * + 33 + col0 AS col0, - col2 + - col2 FROM tab2 AS cor0
----
-1472
-46
-2048
-80
-2400
-116

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE 99 <= - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6197
SELECT + col2 * col0 DIV + - col1 FROM tab1 AS cor0
----
-1003
-131
-349

skipif mysql # not compatible
query I rowsort label-6197
SELECT + col2 * col0 / + - col1 FROM tab1 AS cor0
----
-1003
-131
-349

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

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

query I rowsort
SELECT ALL - - 74 + col1 + col2 AS col2 FROM tab0 AS cor0
----
105
174
202

query I rowsort
SELECT - col0 * - 31 FROM tab2
----
1426
1984
2325

query II rowsort
SELECT DISTINCT + col0 AS col2, + col0 AS col0 FROM tab2 WHERE - + 53 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6202
SELECT ALL - 47 + - 1 DIV + 31 col2 FROM tab2
----
-47
-47
-47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6202
SELECT ALL - 47 + - 1 / + 31 col2 FROM tab2
----
-47
-47
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-6203
SELECT + 81 * + 98 * + COUNT( * ) AS col2 FROM tab2
----
23814

skipif mysql # not compatible
query I rowsort label-6203
SELECT + 81 * + 98 * + COUNT ( * ) AS col2 FROM tab2
----
23814

onlyif mysql # aggregate syntax: 
query I rowsort label-6204
SELECT MIN( - + col2 ) - COUNT( * ) * - + ( - COUNT( * ) ) FROM tab1
----
-105

skipif mysql # not compatible
query I rowsort label-6204
SELECT MIN ( - + col2 ) - COUNT ( * ) * - + ( - COUNT ( * ) ) FROM tab1
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT col2 - - col1 DIV + col0 + + 6 * - col1 + + 99 - - col0 * + + col2 AS col1 FROM tab0
----
370
853
9795

skipif mysql # not compatible
query I rowsort label-6205
SELECT col2 - - col1 / + col0 + + 6 * - col1 + + 99 - - col0 * + + col2 AS col1 FROM tab0
----
370
853
9795

query II rowsort
SELECT + col0 + - 29, ( + 52 ) AS col0 FROM tab1
----
22
52
56
52
62
52

onlyif mysql # aggregate syntax: 
query I rowsort label-6207
SELECT ALL 51 + - MAX( + - col0 ) col1 FROM tab2 cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6207
SELECT ALL 51 + - MAX ( + - col0 ) col1 FROM tab2 cor0
----
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6208
SELECT DISTINCT + 66 DIV + 43 + MIN( ALL + 33 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-6208
SELECT DISTINCT + 66 / + 43 + MIN ( ALL + 33 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
34

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 12 + + col0 * col2 > + col0
----

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

query I rowsort
SELECT ALL - 12 * + 73 AS col0 FROM tab1 AS cor0
----
-876
-876
-876

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, + col2 * - 91 col2 FROM tab2 cor0
----
23
-2093
40
-3640
58
-5278

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

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

query II rowsort
SELECT + 0 AS col2, col2 + - 66 AS col2 FROM tab0
----
0
-19
0
-56
0
33

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

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

query I rowsort
SELECT DISTINCT - col1 * + + 32 FROM tab1
----
-1504
-160
-448

query I rowsort
SELECT DISTINCT - 83 * + 34 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * - + 12 AS col0 FROM tab1
----
-1020
-1092
-612

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * col1 col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query II rowsort
SELECT ( + 71 ), 48 - col1 * - col2 * - + col0 AS col1 FROM tab1
----
71
-25027
71
-290788
71
-68496

query I rowsort
SELECT - 52 * + 15 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5ced7e82b7662558286cd92c8686a733

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6229
SELECT + - col2 DIV + col1 - + col1 FROM tab1 AS cor0
----
-16
-20
-48

skipif mysql # not compatible
query I rowsort label-6229
SELECT + - col2 / + col1 - + col1 FROM tab1 AS cor0
----
-16
-20
-48

query I rowsort
SELECT ALL col1 * 40 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col1 + - + col1 + + - col1 * + col2 AS col2 FROM tab0 AS cor0
----
-210
-3807
-99

query I rowsort
SELECT + 16 + col1 - - col0 AS col1 FROM tab2 AS cor0
----
113
157
158

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

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

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

skipif mysql # not compatible
query I rowsort label-6235
SELECT + CAST ( NULL AS REAL ) + - COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT DISTINCT + ( + 53 ) + - COUNT( * ) FROM tab2 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-6236
SELECT DISTINCT + ( + 53 ) + - COUNT ( * ) FROM tab2 AS cor0
----
50

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6238
SELECT col0 DIV - ( - 72 ) + col0 - + - 48 - 48 * + col2 FROM tab2
----
-1010
-1808
-2660

skipif mysql # not compatible
query I rowsort label-6238
SELECT col0 / - ( - 72 ) + col0 - + - 48 - 48 * + col2 FROM tab2
----
-1010
-1808
-2660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6239
SELECT DISTINCT col1 - 21 + + CAST( col2 AS SIGNED ) col1 FROM tab2
----
104
53
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6239
SELECT DISTINCT col1 - 21 + + CAST ( col2 AS INTEGER ) col1 FROM tab2
----
104
53
96

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

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

query I rowsort
SELECT ALL 44 - - - col2 FROM tab1
----
-15
-24
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6242
SELECT DISTINCT COUNT( * ) * - AVG ( DISTINCT - - 51 ) AS col0 FROM tab1 WHERE ( 77 + - 4 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6242
SELECT DISTINCT COUNT ( * ) * - AVG ( DISTINCT - - 51 ) AS col0 FROM tab1 WHERE ( 77 + - 4 ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6243
SELECT - 48 * 11 + - CAST( NULL AS SIGNED ) FROM tab0 WHERE + - col1 <> + col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6243
SELECT - 48 * 11 + - CAST ( NULL AS INTEGER ) FROM tab0 WHERE + - col1 <> + col0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 9, - 13 AS col0 FROM tab2
----
9
-13
9
-13
9
-13

query I rowsort
SELECT col0 FROM tab1 WHERE - ( - col0 ) / col1 IN ( col0, col1 - - + 15, - col0 )
----

query I rowsort
SELECT ALL + 2 * col0 FROM tab0
----
174
194
30

query I rowsort
SELECT - 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT - col1 * + col0 + ( - + col1 ) + - + ( + + 44 ) + col0 - + 81 * col1 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 + - col1 AND NULL
----

query I rowsort
SELECT + - 9 * - - col0 + + + 1 FROM tab1 AS cor0
----
-458
-764
-818

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT + COUNT( ALL col2 ) * COUNT( * ) * - 32 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-6250
SELECT + COUNT ( ALL col2 ) * COUNT ( * ) * - 32 FROM tab1 AS cor0
----
-288

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6251
SELECT + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6251
SELECT + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 BETWEEN - col1 AND 59
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT COUNT( * ) * 6 col1 FROM tab0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6255
SELECT COUNT ( * ) * 6 col1 FROM tab0
----
18

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

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

query I rowsort
SELECT DISTINCT - 22 + + ( ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
1
18
36

onlyif mysql # aggregate syntax: 
query I rowsort label-6259
SELECT DISTINCT + + COUNT( * ) + + MIN( + 74 ) FROM tab1 cor0
----
77

skipif mysql # not compatible
query I rowsort label-6259
SELECT DISTINCT + + COUNT ( * ) + + MIN ( + 74 ) FROM tab1 cor0
----
77

query I rowsort
SELECT DISTINCT col2 + col1 - + col0 AS col0 FROM tab1
----
-21
24
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6261
SELECT DISTINCT - 50 DIV COUNT( * ) * + - 30 * - + COUNT( * ) FROM tab0 AS cor0
----
-1440

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - 50 / COUNT ( * ) * + - 30 * - + COUNT ( * ) FROM tab0 AS cor0
----
-1440

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT + - ( col1 ) DIV col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6262
SELECT + - ( col1 ) / col1 AS col0 FROM tab0 AS cor0
----
-1
-1
-1

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

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

query II rowsort
SELECT - - ( - 27 ) AS col2, 69 * + col0 AS col2 FROM tab0 AS cor0
----
-27
1035
-27
6003
-27
6693

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6265
SELECT CAST( - + 29 AS SIGNED ) - + + col0 * + 85 FROM tab2
----
-3939
-5469
-6404

skipif mysql # not compatible
query I rowsort label-6265
SELECT CAST ( - + 29 AS INTEGER ) - + + col0 * + 85 FROM tab2
----
-3939
-5469
-6404

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

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

query I rowsort
SELECT ALL + ( 36 ) + col1 - - ( col0 ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 40 * - 25 FROM tab0
----
1000
1000
1000

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT MIN ( col1 ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT - - col2 * + - col0 * + + col2 AS col1 FROM tab1 AS cor0
----
-295885
-420784
-470016

query I rowsort
SELECT ALL - col2 + + 5 * + col0 AS col1 FROM tab0
----
28
386
425

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE NOT + 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT MIN( - 89 ) + - COUNT( * ) AS col1 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-6275
SELECT MIN ( - 89 ) + - COUNT ( * ) AS col1 FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-6276
SELECT - COUNT( * ) * 28 + + SUM( DISTINCT col0 ) FROM tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-6276
SELECT - COUNT ( * ) * 28 + + SUM ( DISTINCT col0 ) FROM tab2 AS cor0
----
101

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

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

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

query I rowsort
SELECT DISTINCT - + 90 + - + col1 FROM tab0 AS cor0
----
-111
-171
-91

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

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

query I rowsort
SELECT col2 * + ( 98 ) - col0 + - col1 - col1 * + col1 FROM tab1
----
4317
5667
9147

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6282
SELECT ALL * FROM tab1 WHERE NOT - 37 NOT BETWEEN 3 * + + col2 + - CAST( + col0 AS SIGNED ) AND + col0 + - + 90 / - 24
----

skipif mysql # not compatible
query III rowsort label-6282
SELECT ALL * FROM tab1 WHERE NOT - 37 NOT BETWEEN 3 * + + col2 + - CAST ( + col0 AS INTEGER ) AND + col0 + - + 90 / - 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 + col2 + - col0 AS col0 FROM tab0 AS cor0
----
-164
-95
17

query II rowsort
SELECT ALL - ( + + 72 ) AS col0, - col2 * + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + col1 * col1 + - col1 + ( + + col0 ) - col0 * + col1 * + col2 + - 14 FROM tab0 AS cor0
----
-17777
-50624
-9520

onlyif mysql # DIV for integer division: 
query I rowsort label-6287
SELECT + 62 + 76 + + 53 + col0 DIV - + col1 AS col0 FROM tab2 cor0
----
190
191
191

skipif mysql # not compatible
query I rowsort label-6287
SELECT + 62 + 76 + + 53 + col0 / - + col1 AS col0 FROM tab2 cor0
----
190
191
191

query I rowsort
SELECT + col1 + + col2 * - - col1 AS col1 FROM tab1 cor0
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6289
SELECT - CAST( - 46 AS SIGNED ) + + + 34 - + - col2 * + 90 AS col1 FROM tab1 AS cor0
----
5390
6200
8720

skipif mysql # not compatible
query I rowsort label-6289
SELECT - CAST ( - 46 AS INTEGER ) + + + 34 - + - col2 * + 90 AS col1 FROM tab1 AS cor0
----
5390
6200
8720

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > ( + col2 * - + ( + 51 ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6292
SELECT DISTINCT col1 - + ( ( - 35 ) ) + CAST( + col1 AS SIGNED ) AS col1, col2 AS col2 FROM tab2 AS cor0
----
137
23
169
58
189
40

skipif mysql # not compatible
query II rowsort label-6292
SELECT DISTINCT col1 - + ( ( - 35 ) ) + CAST ( + col1 AS INTEGER ) AS col1, col2 AS col2 FROM tab2 AS cor0
----
137
23
169
58
189
40

query I rowsort
SELECT col2 * + 87 FROM tab1
----
5133
5916
8352

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-6294
SELECT ALL - COUNT( * ) AS col2, + CAST( NULL AS DECIMAL ) FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-6294
SELECT ALL - COUNT ( * ) AS col2, + CAST ( NULL AS REAL ) FROM tab1
----
-3
NULL

query II rowsort
SELECT ALL + - col1 AS col2, + col1 AS col1 FROM tab0 WHERE 7 NOT BETWEEN col2 AND + col0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT DISTINCT ( - + 69 ) AS col0 FROM tab2 WHERE NOT col1 IS NULL
----
-69

onlyif mysql # aggregate syntax: 
query II rowsort label-6297
SELECT DISTINCT - MIN( + - 85 ) AS col0, + COUNT( * ) AS col1 FROM tab0
----
85
3

skipif mysql # not compatible
query II rowsort label-6297
SELECT DISTINCT - MIN ( + - 85 ) AS col0, + COUNT ( * ) AS col1 FROM tab0
----
85
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT + SUM( DISTINCT + - 52 ) FROM tab1
----
-52

skipif mysql # not compatible
query I rowsort label-6298
SELECT + SUM ( DISTINCT + - 52 ) FROM tab1
----
-52

query I rowsort
SELECT + - 45 FROM tab0 cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col2 + + col1 col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

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

query I rowsort
SELECT DISTINCT - 69 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-69

query I rowsort
SELECT 63 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6304
SELECT DISTINCT - CAST ( 16 AS INTEGER ) FROM tab0
----
-16

query I rowsort
SELECT DISTINCT + 18 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL + col2 + + col1 + + col1 * - - 6 * + col0 AS col1 FROM tab0 AS cor0
----
10993
682
7418

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 58 col1 FROM tab2
----
-2668
-3712
-4350

query I rowsort
SELECT ALL 84 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6313
SELECT DISTINCT * FROM tab2 WHERE NOT - 39 / col0 + ( col1 ) BETWEEN + - col1 / col2 + + 0 AND - + CAST( col2 AS SIGNED ) + - + 49 * + - col2
----

skipif mysql # not compatible
query III rowsort label-6313
SELECT DISTINCT * FROM tab2 WHERE NOT - 39 / col0 + ( col1 ) BETWEEN + - col1 / col2 + + 0 AND - + CAST ( col2 AS INTEGER ) + - + 49 * + - col2
----

query I rowsort
SELECT + 20 * - + col0 FROM tab0
----
-1740
-1940
-300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6315
SELECT ALL * FROM tab1 WHERE NOT - col0 IN ( + col0, - 57, + - col2, - 91 + - - ( - + 75 ) + - - col0 * + 96 / - CAST( NULL AS SIGNED ) + - 12 + + - ( + - col0 ) * + 24, + col2 )
----

skipif mysql # not compatible
query III rowsort label-6315
SELECT ALL * FROM tab1 WHERE NOT - col0 IN ( + col0, - 57, + - col2, - 91 + - - ( - + 75 ) + - - col0 * + 96 / - CAST ( NULL AS INTEGER ) + - 12 + + - ( + - col0 ) * + 24, + col2 )
----

query II rowsort
SELECT + col1, col0 - - 19 AS col2 FROM tab2
----
51
65
67
94
77
83

onlyif mysql # DIV for integer division: 
query I rowsort label-6317
SELECT ALL 98 DIV col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL 98 / col2 FROM tab2
----
1
2
4

query I rowsort
SELECT + 9 * col1 AS col1 FROM tab0
----
189
729
9

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE ( + col1 + - ( col0 - 97 ) * - col0 ) NOT IN ( - ( 4 ) * 7 )
----
-51
-67
-77

query I rowsort
SELECT - ( + col2 ) * - 6 FROM tab0
----
282
594
60

query I rowsort
SELECT ( col1 ) * + col1 AS col0 FROM tab1
----
196
2209
25

query I rowsort
SELECT - 38 * col2 + + 76 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6323
SELECT DISTINCT 88 DIV col0 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-6323
SELECT DISTINCT 88 / col0 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6324
SELECT DISTINCT col1 DIV - 42 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6324
SELECT DISTINCT col1 / - 42 FROM tab0
----
-1
0

query I rowsort
SELECT - ( 4 ) * + col0 + - 71 FROM tab1
----
-275
-411
-435

query I rowsort
SELECT ALL col2 * 97 AS col1 FROM tab1
----
5723
6596
9312

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6327
SELECT ALL * FROM tab0 WHERE NOT + CAST( col0 AS SIGNED ) = ( 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6327
SELECT ALL * FROM tab0 WHERE NOT + CAST ( col0 AS INTEGER ) = ( 6 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 67 FROM tab1 WHERE + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6329
SELECT col2 DIV - col1 AS col0 FROM tab0 WHERE 18 IS NOT NULL
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6329
SELECT col2 / - col1 AS col0 FROM tab0 WHERE 18 IS NOT NULL
----
-99
0
0

query I rowsort
SELECT ALL + ( col1 ) * + 19 - 82 AS col2 FROM tab0
----
-63
1457
317

query I rowsort
SELECT ALL 13 * + 61 FROM tab2
----
793
793
793

query I rowsort
SELECT DISTINCT - col2 - - 82 FROM tab0
----
-17
35
72

onlyif mysql # DIV for integer division: 
query I rowsort label-6333
SELECT col0 + + col1 DIV - col2 FROM tab2
----
44
63
74

skipif mysql # not compatible
query I rowsort label-6333
SELECT col0 + + col1 / - col2 FROM tab2
----
44
63
74

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6334
SELECT - 46 * 47 + - CAST( NULL AS DECIMAL ) * ( ( 38 ) + 7 ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6334
SELECT - 46 * 47 + - CAST ( NULL AS REAL ) * ( ( 38 ) + 7 ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 68 + + col1 FROM tab0 WHERE + 95 / + col0 > ( - 98 )
----
149
69
89

query I rowsort
SELECT ALL + 94 + col1 FROM tab2
----
145
161
171

query I rowsort
SELECT - ( col0 ) + col0 * + 79 AS col0 FROM tab0
----
1170
6786
7566

query I rowsort
SELECT DISTINCT - ( 9 ) FROM tab1
----
-9

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

query I rowsort
SELECT ( col2 ) - - col0 AS col2 FROM tab0 WHERE ( - col2 ) BETWEEN NULL AND - col2 + 68
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT col1 NOT BETWEEN + col2 - + 33 AND ( + col0 * + col2 )
----
10
47

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 48 * - 19 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * 76 AS col0 FROM tab1 cor0
----
1064
3572
380

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6346
SELECT CAST( COUNT( * ) AS SIGNED ) * + MIN( ALL + 98 + + col0 ) AS col2 FROM tab2
----
432

skipif mysql # not compatible
query I rowsort label-6346
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + MIN ( ALL + 98 + + col0 ) AS col2 FROM tab2
----
432

query I rowsort
SELECT - ( 62 ) FROM tab0
----
-62
-62
-62

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 3 + + 73 ) >= ( - col1 )
----

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 70 + col2 ) < ( - col1 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6352
SELECT ALL 79 DIV - col2 + - col2 FROM tab2 AS cor0
----
-26
-41
-59

skipif mysql # not compatible
query I rowsort label-6352
SELECT ALL 79 / - col2 + - col2 FROM tab2 AS cor0
----
-26
-41
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT MAX( ALL - 88 ) AS col1 FROM tab0 AS cor0 WHERE + 98 * col2 IS NOT NULL
----
-88

skipif mysql # not compatible
query I rowsort label-6353
SELECT MAX ( ALL - 88 ) AS col1 FROM tab0 AS cor0 WHERE + 98 * col2 IS NOT NULL
----
-88

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

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

query I rowsort
SELECT DISTINCT - 94 + 78 AS col1 FROM tab1 cor0
----
-16

query I rowsort
SELECT ALL - - col1 * 84 FROM tab1 AS cor0
----
1176
3948
420

query I rowsort
SELECT ALL + col1 + ( 68 ) FROM tab1 cor0
----
115
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL - SUM( ALL 12 ) AS col1 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL - SUM ( ALL 12 ) AS col1 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT - col1 + 29 AS col1 FROM tab1 AS cor0
----
-18
15
24

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 84 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6361
SELECT ALL - ( - SUM( + col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - 81 * - col2 NOT BETWEEN ( NULL ) AND - 41 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6361
SELECT ALL - ( - SUM ( + col0 ) ) AS col2 FROM tab2 AS cor0 WHERE NOT - 81 * - col2 NOT BETWEEN ( NULL ) AND - 41 + - col0
----
NULL

query I rowsort
SELECT - + 90 + col1 AS col2 FROM tab0 AS cor0
----
-69
-89
-9

query I rowsort
SELECT col0 * 2 + 13 FROM tab1
----
115
183
195

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT DISTINCT 65 + + - SUM( + col1 ) col1 FROM tab2
----
-130

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6364
SELECT DISTINCT 65 + + - SUM ( + col1 ) col1 FROM tab2
----
-130

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6366
SELECT col2 DIV - col1 + - col1 * ( + col0 + + col0 ) FROM tab0
----
-2430
-293
-3654

skipif mysql # not compatible
query I rowsort label-6366
SELECT col2 / - col1 + - col1 * ( + col0 + + col0 ) FROM tab0
----
-2430
-293
-3654

query I rowsort
SELECT ALL + ( + col1 ) AS col2 FROM tab1 WHERE NOT col1 IN ( 66 + col0 )
----
14
47
5

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

skipif mysql # not compatible
query I rowsort label-6368
SELECT + ( 33 ) * + COUNT ( * ) + + 38 FROM tab2
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6369
SELECT + CAST( - MAX( DISTINCT + col2 ) AS SIGNED ) FROM tab1 WHERE col0 * - 17 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6369
SELECT + CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab1 WHERE col0 * - 17 < NULL
----
NULL

query I rowsort
SELECT + col1 + col0 + col1 * - 84 * - col2 AS col1 FROM tab1
----
112961
24870
268602

query I rowsort
SELECT - col1 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT col1 FROM tab0 WHERE ( - col1 * + col1 - - 56 ) < + col0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6373
SELECT ALL - AVG ( ALL col0 ) FROM tab1 WHERE NOT - 65 NOT IN ( + CAST( NULL AS SIGNED ) + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6373
SELECT ALL - AVG ( ALL col0 ) FROM tab1 WHERE NOT - 65 NOT IN ( + CAST ( NULL AS INTEGER ) + col2 )
----
NULL

query I rowsort
SELECT DISTINCT - 54 * col0 + col1 AS col2 FROM tab1 AS cor0
----
-2740
-4585
-4867

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - ( col1 ) + + 46 > NULL
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-6377
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON ( ( - CAST( NULL AS DECIMAL ) ) ) <= 0
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

skipif mysql # not compatible
query IIIIII rowsort label-6377
SELECT DISTINCT * FROM tab0 AS cor0 LEFT JOIN tab1 AS cor1 ON ( ( - CAST ( NULL AS REAL ) ) ) <= 0
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6378
SELECT - SUM( 60 ) * 59 AS col2 FROM tab0 WHERE col2 + - CAST( NULL AS SIGNED ) >= + col1 * + 79 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6378
SELECT - SUM ( 60 ) * 59 AS col2 FROM tab0 WHERE col2 + - CAST ( NULL AS INTEGER ) >= + col1 * + 79 + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6379
SELECT ALL - COUNT( * ) + 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
25

skipif mysql # not compatible
query I rowsort label-6379
SELECT ALL - COUNT ( * ) + 34 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6383
SELECT ALL - 5 * + 23 * + + MIN( + col0 ) FROM tab2 AS cor0
----
-5290

skipif mysql # not compatible
query I rowsort label-6383
SELECT ALL - 5 * + 23 * + + MIN ( + col0 ) FROM tab2 AS cor0
----
-5290

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6387
SELECT SUM( ALL + + 42 ) AS col2 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6387
SELECT SUM ( ALL + + 42 ) AS col2 FROM tab1 AS cor0
----
126

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 * + ( ( + col2 ) ) * - col2 - - 47 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + - 93 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 8 NOT BETWEEN NULL AND - col0 - - 36
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 NOT IN ( - col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + col1 * - col0 col2 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT + - col1 + + col1 + + 68 * 51 FROM tab2 AS cor0
----
3468
3468
3468

onlyif mysql # DIV for integer division: 
query I rowsort label-6397
SELECT DISTINCT - + ( - 4 ) DIV + 99 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6397
SELECT DISTINCT - + ( - 4 ) / + 99 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND + + 70
----

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE - col2 > ( - 38 + + col1 + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6400
SELECT + + COUNT( * ) DIV - 49 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6400
SELECT + + COUNT ( * ) / - 49 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - col1 + 48 * - ( col2 ) * + col0 + + 21 AS col1 FROM tab2 AS cor0
----
-122782
-208712
-50712

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 26 * col0 BETWEEN NULL AND col0 * - col1 * - col2
----

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 / + col0 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6408
SELECT DISTINCT col0 * col2, - col2 * CAST( col2 AS SIGNED ) AS col1 FROM tab2
----
1058
-529
2560
-1600
4350
-3364

skipif mysql # not compatible
query II rowsort label-6408
SELECT DISTINCT col0 * col2, - col2 * CAST ( col2 AS INTEGER ) AS col1 FROM tab2
----
1058
-529
2560
-1600
4350
-3364

query III rowsort
SELECT * FROM tab0 WHERE - + 14 + - col0 * - 0 BETWEEN ( + 74 ) AND - col0
----

query I rowsort
SELECT ALL + 22 + - 71 + col0 FROM tab0
----
-34
38
48

query I rowsort
SELECT 51 * - 34 FROM tab2
----
-1734
-1734
-1734

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6414
SELECT ALL col0 col1, ( - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6414
SELECT ALL col0 col1, ( - CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT col0 - + 51 AS col2, - col0 FROM tab1
----
0
-51
34
-85
40
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 - + col1 * - col0 * + col1 AS col1, col2 + - col2 + col0 col1 FROM tab0
----
156
97
38426
87
98474
15

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

query I rowsort
SELECT ALL ( + col2 ) + col0 AS col2 FROM tab1 WHERE NOT + 32 IS NULL
----
144
147
159

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6420
SELECT ALL - 14 DIV + + col1 AS col2 FROM tab0
----
-14
0
0

skipif mysql # not compatible
query I rowsort label-6420
SELECT ALL - 14 / + + col1 AS col2 FROM tab0
----
-14
0
0

query I rowsort
SELECT + col1 + - 52 FROM tab1 AS cor0
----
-38
-47
-5

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 < + - 72 * - col2 + + 62
----

query I rowsort
SELECT - 71 * + col2 + - col1 FROM tab0 cor0
----
-3418
-7030
-731

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) NOT IN ( 45 )
----

query II rowsort
SELECT col0 * col0 AS col0, col2 FROM tab1 AS cor0
----
2601
96
7225
59
8281
68

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 94 col2 FROM tab1
----
-1316
-4418
-470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6430
SELECT CAST( - - 52 AS SIGNED ) col0 FROM tab1
----
52
52
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6430
SELECT CAST ( - - 52 AS INTEGER ) col0 FROM tab1
----
52
52
52

query I rowsort
SELECT col2 * - col2 * - 22 AS col1 FROM tab2
----
11638
35200
74008

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT COUNT( * ) FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6433
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( + col0 ) NOT BETWEEN col0 AND NULL
----
0

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

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

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

query I rowsort
SELECT ALL + ( + 49 ) FROM tab2
----
49
49
49

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL <= ( + 60 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6438
SELECT DISTINCT MAX( - ( - + 20 ) ) FROM tab0 cor0
----
20

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT MAX ( - ( - + 20 ) ) FROM tab0 cor0
----
20

query I rowsort
SELECT - - 78 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( + col2, 6 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 79 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT ALL SUM( 94 ) AS col1 FROM tab2 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-6441
SELECT ALL SUM ( 94 ) AS col1 FROM tab2 AS cor0
----
282

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6442
SELECT ALL + - CAST( + 43 AS DECIMAL ) + - 43 * col1 col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6442
SELECT ALL + - CAST ( + 43 AS REAL ) + - 43 * col1 col1 FROM tab2 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6443
SELECT DISTINCT col1 + + - col0 DIV 22 FROM tab1 AS cor0
----
12
2
43

skipif mysql # not compatible
query I rowsort label-6443
SELECT DISTINCT col1 + + - col0 / 22 FROM tab1 AS cor0
----
12
2
43

onlyif mysql # DIV for integer division: 
query I rowsort label-6444
SELECT 5 * + col1 + 80 DIV + col1 + + col2 FROM tab0 AS cor0
----
118
184
452

skipif mysql # not compatible
query I rowsort label-6444
SELECT 5 * + col1 + 80 / + col1 + + col2 FROM tab0 AS cor0
----
118
184
452

query I rowsort
SELECT DISTINCT + + 80 + - 31 AS col0 FROM tab1 AS cor0
----
49

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6447
SELECT - col2 * 25 + + 72 DIV - + col2 FROM tab2 AS cor0
----
-1001
-1451
-578

skipif mysql # not compatible
query I rowsort label-6447
SELECT - col2 * 25 + + 72 / - + col2 FROM tab2 AS cor0
----
-1001
-1451
-578

query I rowsort
SELECT 46 + + col1 * col1 AS col2 FROM tab1 AS cor0
----
2255
242
71

onlyif mysql # DIV for integer division: 
query II rowsort label-6449
SELECT DISTINCT col2 * - col2 + + col2 DIV col0, col1 * col0 + - col1 * - col1 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-1600
8297
-3364
5164
-529
3889

skipif mysql # not compatible
query II rowsort label-6449
SELECT DISTINCT col2 * - col2 + + col2 / col0, col1 * col0 + - col1 * - col1 + - col0 * col2 AS col0 FROM tab2 AS cor0
----
-1600
8297
-3364
5164
-529
3889

query I rowsort
SELECT + + 37 FROM tab1 WHERE - 82 NOT BETWEEN + 37 AND - ( - - 77 )
----
37
37
37

query I rowsort
SELECT DISTINCT - 44 * - 46 + - - col2 * - - 13 AS col0 FROM tab0
----
2154
2635
3311

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

skipif mysql # not compatible
query I rowsort label-6452
SELECT CAST ( + ( - ( - 43 ) ) AS INTEGER ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * + 99 FROM tab0
----
4653
9801
990

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 79 IS NOT NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6456
SELECT + - 48 DIV - 94 - col0 * - 44 AS col0 FROM tab2 AS cor0
----
2024
2816
3300

skipif mysql # not compatible
query I rowsort label-6456
SELECT + - 48 / - 94 - col0 * - 44 AS col0 FROM tab2 AS cor0
----
2024
2816
3300

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

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

query II rowsort
SELECT ALL + col1 + - col2 * - + col2 AS col1, 21 FROM tab0 AS cor0
----
121
21
2290
21
9802
21

query II rowsort
SELECT DISTINCT ( col1 ) * col2 * + col2 AS col0, - 26 FROM tab2
----
123200
-26
225388
-26
26979
-26

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6461
SELECT - CAST( + - col1 AS SIGNED ) * - col0 FROM tab1 cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-6461
SELECT - CAST ( + - col1 AS INTEGER ) * - col0 FROM tab1 cor0
----
-425
-4277
-714

query II rowsort
SELECT - 88 AS col2, - 88 + + 71 * + - col0 FROM tab0 cor0
----
-88
-1153
-88
-6265
-88
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-6463
SELECT ALL + ( + - MAX( DISTINCT col1 ) ) * + MIN( - 47 ) FROM tab0 AS cor0
----
3807

skipif mysql # not compatible
query I rowsort label-6463
SELECT ALL + ( + - MAX ( DISTINCT col1 ) ) * + MIN ( - 47 ) FROM tab0 AS cor0
----
3807

onlyif mysql # aggregate syntax: 
query I rowsort label-6464
SELECT - COUNT( * ) * - 98 * - COUNT( * ) FROM tab2 AS cor0
----
-882

skipif mysql # not compatible
query I rowsort label-6464
SELECT - COUNT ( * ) * - 98 * - COUNT ( * ) FROM tab2 AS cor0
----
-882

query II rowsort
SELECT DISTINCT - col0, col2 + 1 * col1 + + - col1 AS col0 FROM tab2 AS cor0
----
-46
23
-64
40
-75
58

query I rowsort
SELECT - 43 * col0 FROM tab2 AS cor0
----
-1978
-2752
-3225

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

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT ( NOT - col2 - + col1 IS NOT NULL )
----
-59
-68
-96

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6472
SELECT ALL col1 DIV + 3 col1 FROM tab0
----
0
27
7

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT DISTINCT ( + + MAX( + 31 ) ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-6475
SELECT DISTINCT ( + + MAX ( + 31 ) ) FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6476
SELECT COUNT( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6476
SELECT COUNT ( * ) AS col0 FROM tab1, tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6477
SELECT DISTINCT + + col0 DIV + - col0 AS col1 FROM tab2 cor0 WHERE - 19 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT + + col0 / + - col0 AS col1 FROM tab2 cor0 WHERE - 19 IS NOT NULL
----
-1

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

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

query I rowsort
SELECT DISTINCT - col1 + - + 34 * - col1 * - + col1 FROM tab2
----
-152693
-201663
-88485

query I rowsort
SELECT ALL + ( + - ( - - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

query II rowsort
SELECT - col0 AS col2, col2 * col1 AS col2 FROM tab0 AS cor0
----
-15
3807
-87
210
-97
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + SUM( ALL + 74 ) FROM tab2 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-6483
SELECT + SUM ( ALL + 74 ) FROM tab2 AS cor0
----
222

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 AND - + 31
----

query I rowsort
SELECT ALL - + 12 + ( + - ( + + col1 ) ) - - - col2 AS col1 FROM tab1 AS cor0
----
-122
-127
-76

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT DISTINCT COUNT( ALL + 10 ) - + + 50 FROM tab2
----
-47

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT COUNT ( ALL + 10 ) - + + 50 FROM tab2
----
-47

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab2 WHERE NULL IN ( - + col2, - col0 - 54 * + col1, + - col2 )
----

query I rowsort
SELECT - ( + ( + col0 ) ) * + ( 80 ) + - col2 - - col1 + + - col2 FROM tab2
----
-3675
-5123
-6049

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT + + COUNT( * ) col1 FROM tab2 WHERE col2 IN ( ( + col1 ) + - ( - col0 ), 4 * - col1 * - 57 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6491
SELECT + + COUNT ( * ) col1 FROM tab2 WHERE col2 IN ( ( + col1 ) + - ( - col0 ), 4 * - col1 * - 57 )
----
0

query II rowsort
SELECT + col1 + - col0, - col0 AS col0 FROM tab2
----
-8
-75
13
-64
5
-46

query I rowsort
SELECT - col2 + 58 AS col2 FROM tab1
----
-1
-10
-38

query I rowsort
SELECT DISTINCT 36 - - + col2 - + - col1 FROM tab0
----
136
164
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT - 25 DIV - + col0 + + - col2 * col1 AS col1 FROM tab1 AS cor0 WHERE 56 <> - 52 - + col2
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-6495
SELECT - 25 / - + col0 + + - col2 * col1 AS col1 FROM tab1 AS cor0 WHERE 56 <> - 52 - + col2
----
-1344
-295
-3196

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6497
SELECT col0 DIV + ( col2 ) AS col0 FROM tab0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-6497
SELECT col0 / + ( col2 ) AS col0 FROM tab0
----
0
0
8

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6500
SELECT ALL - col2 AS col1, - 86 DIV + 1 - + col1 + 78 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59
-13
-68
-55
-96
-22

skipif mysql # not compatible
query II rowsort label-6500
SELECT ALL - col2 AS col1, - 86 / + 1 - + col1 + 78 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-59
-13
-68
-55
-96
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-6501
SELECT ALL - col0, + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

skipif mysql # not compatible
query II rowsort label-6501
SELECT ALL - col0, + col2 / - col2 AS col1 FROM tab0 AS cor0
----
-15
-1
-87
-1
-97
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6503
SELECT + - 7 * - - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 + - - col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-6503
SELECT + - 7 * - - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1 + - - col2 * - col2
----
0

query II rowsort
SELECT 24 * 62, col2 AS col0 FROM tab2
----
1488
23
1488
40
1488
58

query I rowsort
SELECT 42 * - - 64 FROM tab0
----
2688
2688
2688

query I rowsort
SELECT + col2 * - 84 + - ( + col1 ) - col2 FROM tab1
----
-5020
-5827
-8174

query I rowsort
SELECT - col1 * - 30 + - 39 FROM tab0
----
-9
2391
591

query I rowsort
SELECT ALL + col1 * col1 - - ( + + 56 ) AS col0 FROM tab0 AS cor0
----
497
57
6617

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6510
SELECT DISTINCT - MAX( col2 ) + 44 AS col1 FROM tab1 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-6510
SELECT DISTINCT - MAX ( col2 ) + 44 AS col1 FROM tab1 AS cor0
----
-52

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

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

query I rowsort
SELECT - col0 + 37 FROM tab1 cor0
----
-14
-48
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6515
SELECT + COUNT( DISTINCT + - col0 ) + + 15 AS col0 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6515
SELECT + COUNT ( DISTINCT + - col0 ) + + 15 AS col0 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6516
SELECT ALL - - col2 + - + 52 DIV + + 85 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6516
SELECT ALL - - col2 + - + 52 / + + 85 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + 7 + - + 59 FROM tab1 cor0
----
-52
-52
-52

query I rowsort
SELECT ALL 79 + col2 FROM tab1
----
138
147
175

query I rowsort
SELECT DISTINCT - col0 - + 59 FROM tab0
----
-146
-156
-74

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6521
SELECT DISTINCT + col0 * + col2 - 23 - col0 + - - col2 DIV + + 95 AS col1 FROM tab1
----
4823
4907
6074

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT + col0 * + col2 - 23 - col0 + - - col2 / + + 95 AS col1 FROM tab1
----
4823
4907
6074

query I rowsort
SELECT - 53 * - col0 - col0 AS col0 FROM tab2 cor0
----
2392
3328
3900

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT ALL COUNT( * ) * + - 80 AS col1 FROM tab0 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-6523
SELECT ALL COUNT ( * ) * + - 80 AS col1 FROM tab0 AS cor0
----
-240

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 57
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * - + 65 col0 FROM tab0 AS cor0
----
-3965
-3965
-3965

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

query I rowsort
SELECT + col0 * + ( + 81 ) - + + ( + 93 ) FROM tab2 AS cor0
----
3633
5091
5982

query I rowsort
SELECT + ( col2 ) * + 97 * - col0 AS col1 FROM tab1 AS cor0
----
-474912
-486455
-600236

onlyif mysql # aggregate syntax: 
query I rowsort label-6531
SELECT DISTINCT + 77 + - COUNT( * ) AS col2 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-6531
SELECT DISTINCT + 77 + - COUNT ( * ) AS col2 FROM tab0
----
74

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT MAX( + 8 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-6533
SELECT MAX ( + 8 ) FROM tab0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6534
SELECT ALL + 76 * MAX( - - col0 ) AS col0 FROM tab2
----
5700

skipif mysql # not compatible
query I rowsort label-6534
SELECT ALL + 76 * MAX ( - - col0 ) AS col0 FROM tab2
----
5700

query I rowsort
SELECT ALL + - 50 + col1 AS col1 FROM tab0 AS cor0
----
-29
-49
31

query II rowsort
SELECT DISTINCT - + 22 AS col0, - 3 AS col1 FROM tab0 AS cor0
----
-22
-3

query I rowsort
SELECT DISTINCT - - col1 + + 92 - - col2 * - col1 FROM tab2 AS cor0
----
-1030
-2911
-3727

query II rowsort
SELECT + col0, + col0 - - ( - + 7 ) + - + 46 FROM tab2 AS cor0
----
46
-7
64
11
75
22

query II rowsort
SELECT DISTINCT - 93, + col2 AS col1 FROM tab0 AS cor0
----
-93
10
-93
47
-93
99

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

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

query I rowsort
SELECT ALL - 93 + col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6543
SELECT DISTINCT + - col0 + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-6543
SELECT DISTINCT + - col0 + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-108
-96
-98

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

query I rowsort
SELECT DISTINCT - col0 * - ( + 93 ) + - col1 FROM tab2
----
4227
5875
6908

query I rowsort
SELECT - col2 - - 34 * - - ( - col2 ) FROM tab1
----
-2065
-2380
-3360

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT 94 * COUNT( * ) FROM tab1 WHERE NOT 71 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6547
SELECT 94 * COUNT ( * ) FROM tab1 WHERE NOT 71 <> NULL
----
0

query I rowsort
SELECT col1 * - ( - + 69 ) AS col1 FROM tab2
----
3519
4623
5313

onlyif mysql # aggregate syntax: 
query I rowsort label-6549
SELECT DISTINCT MAX( ALL + col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT MAX ( ALL + col2 ) AS col0 FROM tab2
----
58

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE - + col2 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT ALL MAX( + col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6552
SELECT ALL MAX ( + col2 ) FROM tab2 AS cor0
----
58

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6555
SELECT MIN( - 40 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-6555
SELECT MIN ( - 40 ) FROM tab0
----
-40

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col0 col0 FROM tab2 cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-6558
SELECT ALL + MIN( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL + MIN ( ALL + col1 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6560
SELECT DISTINCT + + 34 DIV - COUNT( * ) + 3 + 70 AS col1 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-6560
SELECT DISTINCT + + 34 / - COUNT ( * ) + 3 + 70 AS col1 FROM tab2 AS cor0
----
62

query I rowsort
SELECT + - col0 * - + col0 * - col2 FROM tab0 AS cor0
----
-10575
-75690
-931491

query I rowsort
SELECT + + col2 + - 35 AS col0 FROM tab2 AS cor0
----
-12
23
5

query II rowsort
SELECT ALL + col1 * - col0, + 76 AS col2 FROM tab1
----
-425
76
-4277
76
-714
76

query III rowsort
SELECT ALL * FROM tab1 WHERE - 43 * + + 56 + + + col2 > + col0 / + - 72 * - col0
----

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

query II rowsort
SELECT DISTINCT + col2 * + col0 AS col2, col2 FROM tab0
----
705
47
870
10
9603
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6567
SELECT col1 + - 84 DIV col0 FROM tab0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-6567
SELECT col1 + - 84 / col0 FROM tab0
----
1
21
76

query II rowsort
SELECT + col0 + + col1, col0 FROM tab2
----
141
64
142
75
97
46

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6571
SELECT DISTINCT - 10 DIV + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6572
SELECT + 17 * COUNT( * ) AS col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6572
SELECT + 17 * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL 94 + - col1 + ( - - col0 ) * - col1 + - 40 * + 26 FROM tab0 AS cor0
----
-1044
-2242
-2794

onlyif mysql # aggregate syntax: 
query I rowsort label-6574
SELECT COUNT( * ) - + SUM( + col1 ) AS col1 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-6574
SELECT COUNT ( * ) - + SUM ( + col1 ) AS col1 FROM tab2
----
-192

query I rowsort
SELECT - - col2 + - - 32 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT - + 26 FROM tab2 cor0 WHERE - 79 IS NOT NULL
----
-26
-26
-26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6578
SELECT - SUM( ALL 94 ) + + SUM( + col2 ) AS col0 FROM tab2 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-6578
SELECT - SUM ( ALL 94 ) + + SUM ( + col2 ) AS col0 FROM tab2 AS cor0
----
-161

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

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

query I rowsort
SELECT - + col2 * + + 63 AS col2 FROM tab2 AS cor0
----
-1449
-2520
-3654

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

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

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

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

query I rowsort
SELECT ALL + - col0 FROM tab2 WHERE - + col2 < col2 * - - col2 * + col0 * - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6585
SELECT DISTINCT 26 DIV - col1 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT 26 / - col1 FROM tab1
----
-1
-5
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6586
SELECT ALL + 26 DIV ( + 31 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6586
SELECT ALL + 26 / ( + 31 ) FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6587
SELECT DISTINCT + 82 DIV + + 63 AS col2 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6587
SELECT DISTINCT + 82 / + + 63 AS col2 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab2 WHERE NOT col1 IS NULL
----
46
64
75

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

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

skipif mysql # not compatible
query II rowsort label-6590
SELECT + col2 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT - SUM( ALL + col2 ) * - + COUNT( * ) col2 FROM tab1 AS cor0
----
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6592
SELECT - SUM ( ALL + col2 ) * - + COUNT ( * ) col2 FROM tab1 AS cor0
----
669

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6593
SELECT - 94 * + CAST( MIN( + 47 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-4418

skipif mysql # not compatible
query I rowsort label-6593
SELECT - 94 * + CAST ( MIN ( + 47 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-4418

query I rowsort
SELECT - ( - + col0 ) + + col2 + + col1 * 56 FROM tab1
----
2791
424
931

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) <= 16 * + ( - - col2 )
----

query I rowsort
SELECT ALL col2 + - - 68 + + col0 FROM tab2 cor0
----
137
172
201

query I rowsort
SELECT ALL - col1 * + - col0 * + 53 * + col0 - - col2 + - - col1 FROM tab0 AS cor0
----
498777
8424328
966053

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6599
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 / col1 + + - CAST( + col1 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-6599
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col2 / col1 + + - CAST ( + col1 AS REAL ) AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6603
SELECT + 96 + - COUNT( * ) FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-6603
SELECT + 96 + - COUNT ( * ) FROM tab0 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6604
SELECT + 0 + - 91 DIV + + 36 + - - col1 FROM tab2 AS cor0
----
49
65
75

skipif mysql # not compatible
query I rowsort label-6604
SELECT + 0 + - 91 / + + 36 + - - col1 FROM tab2 AS cor0
----
49
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + MIN( - col0 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) = - - 12
----
NULL

skipif mysql # not compatible
query I rowsort label-6605
SELECT + MIN ( - col0 ) AS col0 FROM tab1 cor0 WHERE ( NULL ) = - - 12
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 NOT IN ( - - 78, col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col2 * - + 71, ( - 77 ) AS col0 FROM tab1
----
-4189
-77
-4828
-77
-6816
-77

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6610
SELECT DISTINCT - - COUNT( * ) * SUM( + 42 ) FROM tab1 AS cor0
----
378

skipif mysql # not compatible
query I rowsort label-6610
SELECT DISTINCT - - COUNT ( * ) * SUM ( + 42 ) FROM tab1 AS cor0
----
378

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col1
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT DISTINCT + 66 DIV col2 AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6614
SELECT DISTINCT + 66 / col2 AS col1 FROM tab0
----
0
1
6

query I rowsort
SELECT + col0 + col2 + + col2 * col0 * - col0 FROM tab1 WHERE NOT - col1 BETWEEN + col0 - col1 AND col2 + - col0
----
-249549
-426131
-562949

query I rowsort
SELECT + ( + ( + col0 ) ) FROM tab2 WHERE NOT col1 * - 75 - - col2 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT MAX( - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6617
SELECT MAX ( - col1 ) AS col0 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT 56 DIV 32 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6618
SELECT 56 / 32 FROM tab0
----
1
1
1

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

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

query II rowsort
SELECT ALL 88 AS col0, col1 AS col0 FROM tab2
----
88
51
88
67
88
77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col2 + ( - col2 ) = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6623
SELECT col2 * - CAST( - - 89 AS SIGNED ) FROM tab0
----
-4183
-8811
-890

skipif mysql # not compatible
query I rowsort label-6623
SELECT col2 * - CAST ( - - 89 AS INTEGER ) FROM tab0
----
-4183
-8811
-890

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 4 col2 FROM tab0 AS cor0
----
-43
-6
-95

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * + col0 * - 38 + - + 86 FROM tab1
----
-16236
-162612
-27218

onlyif mysql # DIV for integer division: 
query I rowsort label-6632
SELECT col2 + + + col1 + + col0 DIV + col2 + + col2 FROM tab0
----
175
199
49

skipif mysql # not compatible
query I rowsort label-6632
SELECT col2 + + + col1 + + col0 / + col2 + + col2 FROM tab0
----
175
199
49

query I rowsort
SELECT ALL + ( + 15 ) FROM tab0 WHERE NULL = 89
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + ( 56 ) - + col2 < - + ( + - col2 )
----
64
77
40
75
67
58

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 29 NOT IN ( - col2, 53 + - - ( + 82 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT + COUNT( * ) - - 13 + 79 + - 38 AS col0 FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-6640
SELECT + COUNT ( * ) - - 13 + 79 + - 38 AS col0 FROM tab0 AS cor0
----
57

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab2, tab0 AS cor0
----
58

query II rowsort
SELECT ALL col1, col1 * + - col0 + - 64 AS col1 FROM tab0
----
1
-161
21
-1891
81
-1279

query I rowsort
SELECT + col1 * col1 + col0 * ( + col2 ) AS col2 FROM tab1 cor0
----
5040
5092
8397

query II rowsort
SELECT col2, 77 FROM tab0 AS cor0
----
10
77
47
77
99
77

query I rowsort
SELECT ALL col1 * + + 36 + 24 * - - ( col2 ) FROM tab2 AS cor0
----
2388
3732
3804

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6649
SELECT - 3 / - 42 + col0 * + 2 * + 12 + 2 * - col0 * + col2 * col0 + - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6649
SELECT - 3 / - 42 + col0 * + 2 * + 12 + 2 * - col0 * + col2 * col0 + - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

query II rowsort
SELECT ALL 60 * col0 AS col2, - col0 FROM tab2
----
2760
-46
3840
-64
4500
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6653
SELECT ALL + col1 DIV 90 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6653
SELECT ALL + col1 / 90 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6654
SELECT ALL CAST( col1 AS SIGNED ) AS col1, col2 FROM tab1
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-6654
SELECT ALL CAST ( col1 AS INTEGER ) AS col1, col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE col1 <= 1
----
97

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6660
SELECT MIN( DISTINCT CAST( - 57 AS SIGNED ) ) FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-6660
SELECT MIN ( DISTINCT CAST ( - 57 AS INTEGER ) ) FROM tab0 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-6661
SELECT DISTINCT COUNT( * ) * 76, + 31 AS col2 FROM tab0 AS cor0
----
228
31

skipif mysql # not compatible
query II rowsort label-6661
SELECT DISTINCT COUNT ( * ) * 76, + 31 AS col2 FROM tab0 AS cor0
----
228
31

query I rowsort
SELECT ALL - - ( - ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

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

query I rowsort
SELECT 33 * 48 * - ( + col2 ) - + + ( - col2 ) AS col1 FROM tab1
----
-107644
-151968
-93397

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

query I rowsort
SELECT DISTINCT - - ( + - col0 ) FROM tab2 WHERE NOT col2 < + col0
----

query I rowsort
SELECT DISTINCT + col0 - - + 66 FROM tab2
----
112
130
141

query I rowsort
SELECT ( 62 ) FROM tab1 WHERE col2 >= ( col1 ) * - col2
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT + COUNT( * ) + - - ( - SUM( + col1 ) ) - 46 AS col0 FROM tab1
----
-109

skipif mysql # not compatible
query I rowsort label-6669
SELECT + COUNT ( * ) + - - ( - SUM ( + col1 ) ) - 46 AS col0 FROM tab1
----
-109

query I rowsort
SELECT ALL + col0 * - ( - 98 ) FROM tab1
----
4998
8330
8918

query II rowsort
SELECT - 52 + + - col0 * - col0 + + col0, col2 AS col2 FROM tab1
----
2600
96
7258
59
8320
68

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

skipif mysql # not compatible
query II rowsort label-6672
SELECT DISTINCT - 22 AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-22
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6673
SELECT * FROM tab1 AS cor0 WHERE - CAST( + col0 AS SIGNED ) IN ( - col0 + - col1, 90 )
----

skipif mysql # not compatible
query III rowsort label-6673
SELECT * FROM tab1 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) IN ( - col0 + - col1, 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6674
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE 91 * CAST( + - 50 AS SIGNED ) - 41 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6674
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE 91 * CAST ( + - 50 AS INTEGER ) - 41 <= NULL
----

query I rowsort
SELECT - - 65 * - 60 + + + 7 AS col2 FROM tab0 cor0 WHERE 96 IS NOT NULL
----
-3893
-3893
-3893

query I rowsort
SELECT ALL - + 71 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: 
query I rowsort label-6677
SELECT DISTINCT MAX( ALL + + col2 ) * - - 77 * - - 91 AS col1 FROM tab2 AS cor0
----
406406

skipif mysql # not compatible
query I rowsort label-6677
SELECT DISTINCT MAX ( ALL + + col2 ) * - - 77 * - - 91 AS col1 FROM tab2 AS cor0
----
406406

query I rowsort
SELECT ( - 56 ) * 90 AS col1 FROM tab0 AS cor0
----
-5040
-5040
-5040

query II rowsort
SELECT DISTINCT - col2 * + + col1 AS col0, 5 AS col0 FROM tab2 AS cor0
----
-1173
5
-3080
5
-3886
5

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

query I rowsort
SELECT + col1 * + + 59 FROM tab1
----
2773
295
826

query I rowsort
SELECT DISTINCT col2 * + - col0 * + col0 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT - 75 DIV 50 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6683
SELECT - 75 / 50 AS col0 FROM tab2
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 55 col0 FROM tab1 WHERE NOT + - col2 / - - 50 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * 96 AS col0 FROM tab0
----
2016
7776
96

query I rowsort
SELECT ALL - col0 + + 37 + col0 * + - col0 FROM tab0 cor0
----
-203
-7619
-9469

onlyif mysql # aggregate syntax: 
query I rowsort label-6687
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NOT ( col1 - + col1 ) <= col2
----
0

skipif mysql # not compatible
query I rowsort label-6687
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NOT ( col1 - + col1 ) <= col2
----
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 73 + - - col0 NOT BETWEEN - + ( col1 ) AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT ALL - col2 + 24 AS col0 FROM tab1
----
-35
-44
-72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 27 * + + col1 * ( col0 ) + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6692
SELECT col2 DIV - - col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6692
SELECT col2 / - - col2 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT - + 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-70

query I rowsort
SELECT col1 + + 66 FROM tab2 AS cor0
----
117
133
143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 - 18 AS col0, col2 col1 FROM tab0 AS cor0 WHERE NULL <> ( NULL )
----

query II rowsort
SELECT - col0 + + 8 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
-7
81
-79
21
-89
1

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

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

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

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

query I rowsort
SELECT - col1 + col2 AS col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - 77 + col2 AS col1, - col2 AS col1 FROM tab0 cor0
----
-30
-47
-67
-10
22
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 col1 FROM tab2 cor0 WHERE ( NOT + 29 - + + col0 IS NOT NULL ) OR NOT col1 + - col2 - - col1 * + 14 * - col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT + col0 / - 36 - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + col1 + + - col1 FROM tab0
----
0

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6708
SELECT ALL col2 DIV ( + col0 ) AS col2, col0 * - 91 FROM tab2
----
0
-4186
0
-5824
0
-6825

skipif mysql # not compatible
query II rowsort label-6708
SELECT ALL col2 / ( + col0 ) AS col2, col0 * - 91 FROM tab2
----
0
-4186
0
-5824
0
-6825

query I rowsort
SELECT ALL - + 33 FROM tab1 cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6710
SELECT + COUNT( * ) - + MAX( DISTINCT - - 35 ) FROM tab2 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-6710
SELECT + COUNT ( * ) - + MAX ( DISTINCT - - 35 ) FROM tab2 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT DISTINCT - COUNT( + - 76 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6711
SELECT DISTINCT - COUNT ( + - 76 ) AS col1 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, + 94 * col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
10
1974
47
7614
99
94

query I rowsort
SELECT DISTINCT - + col0 AS col0 FROM tab2 AS cor0 WHERE NOT + ( + 4 ) * + 21 IS NULL
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 <= + col2 * - 44 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 62 + - col1 <= col2
----

query I rowsort
SELECT + - ( + 22 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to fae46f8148b02964f7145eb6ed5819f9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 + 94 + - - col1 col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) + 5 <= - col1 * col1 * - col1 + + + col1 / 9 * + + col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6721
SELECT - COUNT( * ), + MIN( ALL + col2 ) AS col2 FROM tab2 cor0
----
-3
23

skipif mysql # not compatible
query II rowsort label-6721
SELECT - COUNT ( * ), + MIN ( ALL + col2 ) AS col2 FROM tab2 cor0
----
-3
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 27 col2 FROM tab0 AS cor0
----
1269
2673
270

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6725
SELECT ALL - COUNT( * ), COUNT( * ) * + + SUM( DISTINCT + 83 ) col2 FROM tab1 AS cor0
----
-3
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6725
SELECT ALL - COUNT ( * ), COUNT ( * ) * + + SUM ( DISTINCT + 83 ) col2 FROM tab1 AS cor0
----
-3
249

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6726
SELECT + + ( + - 78 ) FROM tab2 WHERE NOT - col1 NOT BETWEEN - 0 AND - - col0 - + CAST( - ( + + 7 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6726
SELECT + + ( + - 78 ) FROM tab2 WHERE NOT - col1 NOT BETWEEN - 0 AND - - col0 - + CAST ( - ( + + 7 ) AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6727
SELECT ALL MAX( + - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6727
SELECT ALL MAX ( + - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0
----
-10

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

query I rowsort
SELECT ( - col2 ) * - + col2 FROM tab0
----
100
2209
9801

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6730
SELECT DISTINCT - COUNT( * ) * - - CAST( NULL AS DECIMAL ) * - ( + 0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT - COUNT ( * ) * - - CAST ( NULL AS REAL ) * - ( + 0 ) FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 99 * + col2 = col2
----

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

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

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT 39 + - COUNT ( * ) FROM tab2 AS cor0
----
36

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

query I rowsort
SELECT ALL - col0 * - col1 + + - col1 FROM tab2 AS cor0
----
2295
4851
4958

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

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

query I rowsort
SELECT - col2 * + 30 FROM tab0 AS cor0
----
-1410
-2970
-300

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6740
SELECT + ( - + COUNT( * ) ) DIV - 66 - + COUNT( DISTINCT - - col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6740
SELECT + ( - + COUNT ( * ) ) / - 66 - + COUNT ( DISTINCT - - col0 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT DISTINCT + + 74 * ( - - COUNT( * ) ) col1 FROM tab0 cor0 WHERE NOT NULL = col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6741
SELECT DISTINCT + + 74 * ( - - COUNT ( * ) ) col1 FROM tab0 cor0 WHERE NOT NULL = col0
----
0

query I rowsort
SELECT - col2 * col1 * + col0 - + ( + col0 ) + 11 FROM tab0 AS cor0
----
-18346
-57109
-9689

query I rowsort
SELECT DISTINCT 44 + 33 * - col0 AS col2 FROM tab1
----
-1639
-2761
-2959

query I rowsort
SELECT col1 + - 45 * + 28 FROM tab0
----
-1179
-1239
-1259

query I rowsort
SELECT 83 * 74 * col1 + col2 AS col0 FROM tab1
----
288742
30769
86084

query II rowsort
SELECT DISTINCT + col1 - col0, col0 FROM tab1
----
-37
51
-44
91
-80
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT + MAX( + 13 ) + MIN( + - 40 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6747
SELECT + MAX ( + 13 ) + MIN ( + - 40 ) FROM tab2
----
-27

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

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

query I rowsort
SELECT ALL - + 89 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6750
SELECT DISTINCT col2 DIV col2, col1 FROM tab1
----
1
14
1
47
1
5

skipif mysql # not compatible
query II rowsort label-6750
SELECT DISTINCT col2 / col2, col1 FROM tab1
----
1
14
1
47
1
5

query I rowsort
SELECT + ( col0 ) * - 73 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
-1095
-6351
-7081

query I rowsort
SELECT - + col1 * - 71 AS col0 FROM tab2 AS cor0
----
3621
4757
5467

query I rowsort
SELECT + 30 * + + 73 * + 65 AS col1 FROM tab0
----
142350
142350
142350

query I rowsort
SELECT + ( - 92 ) FROM tab2
----
-92
-92
-92

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6756
SELECT DISTINCT + CAST( + - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT + CAST ( + - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1
-21
-81

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

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

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

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

query II rowsort
SELECT col1 + + ( 29 ) + - col0 * + col1 + + 43 * + + 48, - col2 AS col1 FROM tab1
----
-2137
-68
1393
-96
1673
-59

query I rowsort
SELECT - 50 + - col2 AS col2 FROM tab2
----
-108
-73
-90

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

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

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

query I rowsort
SELECT + + 14 FROM tab0 WHERE - col0 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 + - 57 col0 FROM tab0 WHERE col2 IS NOT NULL
----
15
15
15

query I rowsort
SELECT ALL + + ( + 50 ) AS col2 FROM tab2 AS cor0
----
50
50
50

query I rowsort
SELECT - 20 + - + col1 FROM tab0 AS cor0
----
-101
-21
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-6768
SELECT - 73 / - MIN( ALL + col2 ) FROM tab2 AS cor0 WHERE - 72 * + + col0 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6768
SELECT - 73 / - MIN ( ALL + col2 ) FROM tab2 AS cor0 WHERE - 72 * + + col0 = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 82 + - col0 col1 FROM tab2 cor0
----
-128
-146
-157

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT COUNT( * ) + COUNT( * ) FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-6770
SELECT COUNT ( * ) + COUNT ( * ) FROM tab2 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL + COUNT( * ) * - ( MIN( DISTINCT 22 ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL + COUNT ( * ) * - ( MIN ( DISTINCT 22 ) ) AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6772
SELECT DISTINCT + 8 + - ( - CAST( NULL AS SIGNED ) ) AS col2, 79 AS col1 FROM tab0 AS cor0
----
NULL
79

skipif mysql # not compatible
query II rowsort label-6772
SELECT DISTINCT + 8 + - ( - CAST ( NULL AS INTEGER ) ) AS col2, 79 AS col1 FROM tab0 AS cor0
----
NULL
79

query I rowsort
SELECT ALL + col2 + + + col1 AS col0 FROM tab2
----
117
125
74

query I rowsort
SELECT 93 AS col2 FROM tab0, tab1 cor0
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

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

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

query I rowsort
SELECT DISTINCT - col1 * - 74 * + 67 FROM tab0
----
104118
401598
4958

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6780
SELECT + + MAX( - col1 ) * - COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6780
SELECT + + MAX ( - col1 ) * - COUNT ( * ) FROM tab1 AS cor0
----
15

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

skipif mysql # not compatible
query I rowsort label-6781
SELECT - + 34 * - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6783
SELECT + 25 * + COUNT( * ) FROM tab0 WHERE + col1 * 61 >= col0 * - col0
----
75

skipif mysql # not compatible
query I rowsort label-6783
SELECT + 25 * + COUNT ( * ) FROM tab0 WHERE + col1 * 61 >= col0 * - col0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT + SUM( DISTINCT - col1 ) + - MIN( + col1 ) AS col1 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-6784
SELECT + SUM ( DISTINCT - col1 ) + - MIN ( + col1 ) AS col1 FROM tab1
----
-71

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 42 NOT IN ( + 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT 42 * col2 AS col0 FROM tab0 WHERE NOT col2 NOT IN ( col0 )
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE 18 + 47 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT MAX( col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-6789
SELECT MAX ( col0 ) AS col2 FROM tab1
----
91

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

query III rowsort
SELECT * FROM tab0 WHERE - col1 * + col1 BETWEEN + col0 AND ( 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( + 34 / col1 ) <> col0 - - col0
----
-3

skipif mysql # not compatible
query I rowsort label-6792
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( + 34 / col1 ) <> col0 - - col0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + col0 - - ( 73 + + col0 ) * col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 28 + col1 <> + col2
----

query I rowsort
SELECT col2 + 21 AS col0 FROM tab2
----
44
61
79

query I rowsort
SELECT col2 + col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
117
125
74

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6800
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND - 52 / + col0 + - col1
----

skipif mysql # not compatible
query III rowsort label-6800
SELECT DISTINCT * FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND - 52 / + col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + col0 ) col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 45 * col2 + - col0 FROM tab0
----
2100
363
4358

onlyif mysql # aggregate syntax: 
query I rowsort label-6803
SELECT ALL + 47 * - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-6803
SELECT ALL + 47 * - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-138

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

query I rowsort
SELECT ALL + 57 - col2 AS col2 FROM tab2 AS cor0
----
-1
17
34

query I rowsort
SELECT DISTINCT - 46 + 95 AS col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT DISTINCT + 11 AS col0 FROM tab0 WHERE - 77 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6808
SELECT ALL + COUNT( * ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 71 + - 76 ) AND + col0 * 1
----
0

skipif mysql # not compatible
query I rowsort label-6808
SELECT ALL + COUNT ( * ) FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN ( 71 + - 76 ) AND + col0 * 1
----
0

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

query I rowsort
SELECT DISTINCT + 85 * + 75 AS col0 FROM tab0 AS cor0
----
6375

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6812
SELECT ALL ( SUM ( + col2 ) ) col0 FROM tab2 AS cor0
----
121

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6814
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN CAST( NULL AS SIGNED ) AND col0
----

skipif mysql # not compatible
query III rowsort label-6814
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6815
SELECT + 72 * col2 DIV col0 FROM tab2
----
36
45
55

skipif mysql # not compatible
query I rowsort label-6815
SELECT + 72 * col2 / col0 FROM tab2
----
36
45
55

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6816
SELECT DISTINCT 50 * - ( - 22 ) * - MIN( ALL col1 DIV col0 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6816
SELECT DISTINCT 50 * - ( - 22 ) * - MIN ( ALL col1 / col0 ) AS col0 FROM tab2
----
0

query I rowsort
SELECT - ( + 11 ) FROM tab0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT 98 * + COUNT( ALL col2 ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-6818
SELECT 98 * + COUNT ( ALL col2 ) FROM tab1
----
294

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

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

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

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

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

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

query I rowsort
SELECT - col0 * - 4 FROM tab1 AS cor0
----
204
340
364

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

query I rowsort
SELECT ALL 41 * col0 FROM tab2 WHERE NOT - col2 NOT IN ( 2 + col2 )
----

query I rowsort
SELECT DISTINCT col1 * - 41 FROM tab0
----
-3321
-41
-861

query I rowsort
SELECT 31 * col0 FROM tab0 AS cor0 WHERE NOT ( 96 / - 43 * col0 ) NOT BETWEEN - col1 AND ( + ( - col1 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6828
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN 6 + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AND 38
----
0

skipif mysql # not compatible
query I rowsort label-6828
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN 6 + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AND 38
----
0

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

query I rowsort
SELECT ALL - col2 + + 44 FROM tab0 cor0
----
-3
-55
34

query I rowsort
SELECT + 3 + - 96 + - - col2 + + col0 FROM tab1 AS cor0
----
51
54
66

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

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

query I rowsort
SELECT + col1 * - 26 + + col0 FROM tab0 AS cor0
----
-2091
-459
71

query I rowsort
SELECT - col2 + - col0 + + 53 FROM tab2
----
-16
-51
-80

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

query I rowsort
SELECT 18 * col1 + - ( - - col2 ) AS col0 FROM tab2
----
1148
1346
895

query III rowsort
SELECT * FROM tab0 WHERE + - 71 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6839
SELECT DISTINCT + COUNT( * ) + + - 58 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT + COUNT ( * ) + + - 58 FROM tab0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT DISTINCT 75 * - COUNT( * ) * 93 FROM tab2
----
-20925

skipif mysql # not compatible
query I rowsort label-6840
SELECT DISTINCT 75 * - COUNT ( * ) * 93 FROM tab2
----
-20925

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6843
SELECT + MIN( DISTINCT - + col2 ) + + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6843
SELECT + MIN ( DISTINCT - + col2 ) + + - CAST ( NULL AS REAL ) FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 NOT IN ( 77 )
----

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

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

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

query I rowsort
SELECT + col1 * - - col2 FROM tab0 AS cor0
----
210
3807
99

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

query I rowsort
SELECT - 98 * + col1 FROM tab1 cor0
----
-1372
-4606
-490

onlyif mysql # DIV for integer division: 
query II rowsort label-6851
SELECT DISTINCT 67 AS col2, 81 + + col2 DIV - col2 FROM tab2 AS cor0
----
67
80

skipif mysql # not compatible
query II rowsort label-6851
SELECT DISTINCT 67 AS col2, 81 + + col2 / - col2 FROM tab2 AS cor0
----
67
80

query I rowsort
SELECT col0 * + 56 + - - col1 - - col2 AS col2 FROM tab2 AS cor0
----
2650
3701
4325

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6854
SELECT - col0 + + 28 * col2 AS col2 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NOT NULL
----
1567
1813
2637

skipif mysql # not compatible
query I rowsort label-6854
SELECT - col0 + + 28 * col2 AS col2 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1567
1813
2637

query I rowsort
SELECT DISTINCT + 40 AS col2 FROM tab2, tab0 cor0
----
40

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 0 IN ( + col0 * + - 89 - + + 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6857
SELECT ALL col0, + col1 + + - CAST( + + col2 AS SIGNED ) + col0 * + col1 AS col1 FROM tab1 AS cor0
----
51
632
85
371
91
4256

skipif mysql # not compatible
query II rowsort label-6857
SELECT ALL col0, + col1 + + - CAST ( + + col2 AS INTEGER ) + col0 * + col1 AS col1 FROM tab1 AS cor0
----
51
632
85
371
91
4256

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

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

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

query II rowsort
SELECT col1 * + col0 AS col1, + 65 FROM tab1 cor0
----
425
65
4277
65
714
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6861
SELECT ALL - + COUNT( * ) + 34 FROM tab0 cor0
----
31

skipif mysql # not compatible
query I rowsort label-6861
SELECT ALL - + COUNT ( * ) + 34 FROM tab0 cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT + MAX( ALL + 48 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
48

skipif mysql # not compatible
query I rowsort label-6862
SELECT + MAX ( ALL + 48 ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
48

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

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

query I rowsort
SELECT + col0 + + 51 + + col2 FROM tab1
----
195
198
210

query I rowsort
SELECT ALL + 74 * - col0 FROM tab2
----
-3404
-4736
-5550

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6866
SELECT ( + 45 ) AS col0, + col2 * col1 + + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
45
NULL
45
NULL
45
NULL

skipif mysql # not compatible
query II rowsort label-6866
SELECT ( + 45 ) AS col0, + col2 * col1 + + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
45
NULL
45
NULL
45
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col0 col1, - 91 * + col2 FROM tab1 AS cor0
----
-4896
-8736
-5015
-5369
-6188
-6188

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN + 73 AND - 20 + - col2 + - 16
----

query I rowsort
SELECT DISTINCT + col2 + col2 + + + 59 * - col2 AS col0 FROM tab2
----
-1311
-2280
-3306

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6871
SELECT * FROM tab0 WHERE NULL BETWEEN ( - col2 ) AND CAST( NULL AS SIGNED ) + + - ( - ( 12 ) )
----

skipif mysql # not compatible
query III rowsort label-6871
SELECT * FROM tab0 WHERE NULL BETWEEN ( - col2 ) AND CAST ( NULL AS INTEGER ) + + - ( - ( 12 ) )
----

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

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT col1 * - CAST ( + col0 AS INTEGER ) FROM tab1
----
-425
-4277
-714

query II rowsort
SELECT ALL + col2 + - - ( - 78 ), 64 * + col2 - 71 AS col2 FROM tab1
----
-10
4281
-19
3705
18
6073

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6874
SELECT ALL MAX( + 70 ) DIV + MAX( DISTINCT - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-6874
SELECT ALL MAX ( + 70 ) / + MAX ( DISTINCT - col2 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6875
SELECT * FROM tab0 AS cor0 WHERE + col0 * + + CAST( NULL AS SIGNED ) + + + 6 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6875
SELECT * FROM tab0 AS cor0 WHERE + col0 * + + CAST ( NULL AS INTEGER ) + + + 6 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6876
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), col0 )
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT DISTINCT + 2 DIV col0 + - 23 AS col1 FROM tab2 AS cor0 WHERE NOT 41 + - ( - 66 ) + - 71 DIV + 60 * + + col0 IN ( - 70 )
----
-23

skipif mysql # not compatible
query I rowsort label-6878
SELECT DISTINCT + 2 / col0 + - 23 AS col1 FROM tab2 AS cor0 WHERE NOT 41 + - ( - 66 ) + - 71 / + 60 * + + col0 IN ( - 70 )
----
-23

query I rowsort
SELECT DISTINCT 24 + ( - 17 ) + + - col2 AS col2 FROM tab2 AS cor0
----
-16
-33
-51

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT - ( 99 ) >= ( - 34 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 92 col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1af709a79a3e56281ffdce4d931d5965

onlyif mysql # aggregate syntax: 
query II rowsort label-6882
SELECT ALL COUNT( * ) + 32 AS col0, 42 + - - 9 FROM tab0 WHERE NOT ( col1 ) < col0 + col0
----
33
51

skipif mysql # not compatible
query II rowsort label-6882
SELECT ALL COUNT ( * ) + 32 AS col0, 42 + - - 9 FROM tab0 WHERE NOT ( col1 ) < col0 + col0
----
33
51

onlyif mysql # DIV for integer division: 
query II rowsort label-6883
SELECT DISTINCT col1 DIV + 24 AS col2, col0 AS col1 FROM tab0 AS cor0
----
0
87
0
97
3
15

skipif mysql # not compatible
query II rowsort label-6883
SELECT DISTINCT col1 / + 24 AS col2, col0 AS col1 FROM tab0 AS cor0
----
0
87
0
97
3
15

query I rowsort
SELECT + - col1 * - col0 FROM tab1 AS cor0 WHERE NOT col1 / col0 * + col0 IS NULL
----
425
4277
714

query I rowsort
SELECT DISTINCT + 42 + - col1 * + col0 FROM tab2 WHERE NOT + col2 / 9 * - 10 + + - 94 IS NULL
----
-2304
-4886
-4983

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 92 + 61 AND ( - - 81 + - + col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT SUM( ALL - - col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT SUM ( ALL - - col0 ) FROM tab1
----
227

query I rowsort
SELECT ALL - - 55 + col2 FROM tab1 WHERE NOT + + col2 NOT IN ( - col1 + col1, 84 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( - - 24 ) * - 27 * - - 66 + + col0 IN ( + col2, col2 + - 56 - + col1 * - ( col0 ) )
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-6890
SELECT - COUNT( * ) AS col2, - 78 AS col0 FROM tab1 WHERE NOT - + col1 + - - col2 < NULL
----
0
-78

skipif mysql # not compatible
query II rowsort label-6890
SELECT - COUNT ( * ) AS col2, - 78 AS col0 FROM tab1 WHERE NOT - + col1 + - - col2 < NULL
----
0
-78

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 < - - col1 * - - 2
----

query I rowsort
SELECT DISTINCT - 86 * + + col2 + + + col0 FROM tab1 AS cor0
----
-4989
-5757
-8205

onlyif mysql # DIV for integer division: 
query I rowsort label-6893
SELECT ALL - 96 + + col0 DIV - col2 AS col2 FROM tab0 cor0
----
-104
-96
-96

skipif mysql # not compatible
query I rowsort label-6893
SELECT ALL - 96 + + col0 / - col2 AS col2 FROM tab0 cor0
----
-104
-96
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + + col0 col0 FROM tab2 AS cor0
----
141
142
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6895
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT CAST( + col1 AS SIGNED ) * - col2 + + col2 * - - col2 > NULL
----
0

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

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

query I rowsort
SELECT DISTINCT + - 40 * + - 55 FROM tab2 AS cor0
----
2200

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + ( - col0 ) IS NULL AND NOT col2 <> - ( + + ( 9 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-6899
SELECT + COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col0, 67 DIV + - 56 AS col1 FROM tab1 cor0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-6899
SELECT + COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col0, 67 / + - 56 AS col1 FROM tab1 cor0
----
NULL
-1

query I rowsort
SELECT + - 13 + + 70 FROM tab0 cor0
----
57
57
57

query II rowsort
SELECT ALL col2 AS col1, + col0 * + + 4 AS col0 FROM tab1 AS cor0
----
59
340
68
364
96
204

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6903
SELECT + CAST( col0 AS SIGNED ) + - col0 * - - 64 AS col1 FROM tab0
----
-5481
-6111
-945

skipif mysql # not compatible
query I rowsort label-6903
SELECT + CAST ( col0 AS INTEGER ) + - col0 * - - 64 AS col1 FROM tab0
----
-5481
-6111
-945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 39 + - 63, - ( - - col0 ) col0 FROM tab1
----
-102
-51
-102
-85
-102
-91

query II rowsort
SELECT - col1 + col2 AS col1, - 75 + + 6 AS col1 FROM tab1
----
21
-69
54
-69
82
-69

query I rowsort
SELECT - 62 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT ALL ( + + 42 ) + + 47 FROM tab0
----
89
89
89

query I rowsort
SELECT ALL col1 - + col2 + col0 AS col0 FROM tab0
----
-1
49
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT DISTINCT ( + 31 ) - MIN( DISTINCT + + 91 ) * 49 AS col1 FROM tab2
----
-4428

skipif mysql # not compatible
query I rowsort label-6909
SELECT DISTINCT ( + 31 ) - MIN ( DISTINCT + + 91 ) * 49 AS col1 FROM tab2
----
-4428

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * + col2 + + col2 * - col2 >= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab0 cor0
----
95

query II rowsort
SELECT ALL + + ( + col2 ), 74 + col1 AS col0 FROM tab2 cor0
----
23
125
40
151
58
141

query I rowsort
SELECT ALL 89 * col0 FROM tab1 AS cor0 WHERE NOT NULL = 42
----

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

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

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

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

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

query II rowsort
SELECT + col0 AS col0, col1 * - - ( 29 ) + - col1 * - 71 FROM tab2 cor0
----
46
5100
64
7700
75
6700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6920
SELECT - + 19 AS col2, - CAST( NULL AS SIGNED ) * + + col2 AS col2 FROM tab0 cor0
----
-19
NULL
-19
NULL
-19
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 * col1 * - 33 + - 73 > - 51
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT + col1 * + + col2 AS col0 FROM tab0 cor0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6924
SELECT ALL + MAX( + CAST( 59 AS SIGNED ) ) col2 FROM tab0
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6924
SELECT ALL + MAX ( + CAST ( 59 AS INTEGER ) ) col2 FROM tab0
----
59

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col0 col1, col0 FROM tab2
----
-2346
46
-4928
64
-5025
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6928
SELECT CAST( NULL AS SIGNED ) / + - COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6928
SELECT CAST ( NULL AS INTEGER ) / + - COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6929
SELECT + MAX( col0 ) col2 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6929
SELECT + MAX ( col0 ) col2 FROM tab0
----
97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 25 col1, + col0 FROM tab2 AS cor0
----
25
46
25
64
25
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6932
SELECT COUNT( ALL col0 ) FROM tab1 AS cor0 WHERE ( - col1 ) * - col1 < ( - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-6932
SELECT COUNT ( ALL col0 ) FROM tab1 AS cor0 WHERE ( - col1 ) * - col1 < ( - - col1 )
----
0

query I rowsort
SELECT DISTINCT + 45 + col2 + 85 AS col1 FROM tab1 AS cor0
----
189
198
226

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

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

query I rowsort
SELECT col1 * + 76 + col2 FROM tab2
----
3899
5150
5892

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT - COUNT( * ) + + 46 col0 FROM tab1
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6937
SELECT - COUNT ( * ) + + 46 col0 FROM tab1
----
43

query III rowsort
SELECT * FROM tab2 WHERE + ( + + 99 ) * col1 + + 15 * - 68 IS NULL
----

query I rowsort
SELECT 63 * - 69 + + col0 FROM tab1
----
-4256
-4262
-4296

query II rowsort
SELECT DISTINCT 46 - + col0, col0 AS col1 FROM tab2
----
-18
64
-29
75
0
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT - - MIN( ALL - 81 ) FROM tab1 WHERE 92 IS NOT NULL
----
-81

skipif mysql # not compatible
query I rowsort label-6941
SELECT - - MIN ( ALL - 81 ) FROM tab1 WHERE 92 IS NOT NULL
----
-81

query I rowsort
SELECT col0 + - 32 - + - col1 FROM tab2
----
109
110
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6943
SELECT DISTINCT - CAST( 81 AS SIGNED ) FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6943
SELECT DISTINCT - CAST ( 81 AS INTEGER ) FROM tab0 AS cor0
----
-81

query I rowsort
SELECT ALL - + col0 * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT + + 78 * + col1 * - + col0 AS col2 FROM tab1 AS cor0
----
-33150
-333606
-55692

query I rowsort
SELECT col2 * 90 * - + col2 AS col1 FROM tab2 AS cor0
----
-144000
-302760
-47610

query I rowsort
SELECT + 86 * - 20 AS col1 FROM tab1
----
-1720
-1720
-1720

onlyif mysql # aggregate syntax: 
query I rowsort label-6954
SELECT 74 * + 87 + + + SUM( DISTINCT col0 ) FROM tab1
----
6665

skipif mysql # not compatible
query I rowsort label-6954
SELECT 74 * + 87 + + + SUM ( DISTINCT col0 ) FROM tab1
----
6665

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6956
SELECT - 39 / col1 + - CAST( NULL AS DECIMAL ) AS col1, - 17 * col1 AS col0 FROM tab0
----
NULL
-1377
NULL
-17
NULL
-357

skipif mysql # not compatible
query II rowsort label-6956
SELECT - 39 / col1 + - CAST ( NULL AS REAL ) AS col1, - 17 * col1 AS col0 FROM tab0
----
NULL
-1377
NULL
-17
NULL
-357

query II rowsort
SELECT + 29, - col0 + - col1 AS col2 FROM tab2
----
29
-141
29
-142
29
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-6958
SELECT DISTINCT - col2 + + col1 DIV + 62 FROM tab1 cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6958
SELECT DISTINCT - col2 + + col1 / + 62 FROM tab1 cor0
----
-59
-68
-96

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

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

query I rowsort
SELECT + col0 + + ( col1 ) + - - 25 * - col2 * - col2 FROM tab0 AS cor0
----
245123
2608
55321

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6962
SELECT SUM( ALL - col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-6962
SELECT SUM ( ALL - col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT ALL ( 85 ) AS col0 FROM tab2 AS cor0
----
85
85
85

query I rowsort
SELECT - col1 + col2 FROM tab0 WHERE NULL IS NULL
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6965
SELECT DISTINCT + ( + + ( + MIN( + - ( + + col2 ) ) ) ) * ( - ( + 71 ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
4118

skipif mysql # not compatible
query I rowsort label-6965
SELECT DISTINCT + ( + + ( + MIN ( + - ( + + col2 ) ) ) ) * ( - ( + 71 ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
4118

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6967
SELECT DISTINCT - col0 * 70 DIV + col2 + + 35 FROM tab0
----
-33
-574
13

skipif mysql # not compatible
query I rowsort label-6967
SELECT DISTINCT - col0 * 70 / + col2 + + 35 FROM tab0
----
-33
-574
13

query I rowsort
SELECT ALL - col2 - + - col2 - col0 AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT col0 * - col0 * col1 + col1 AS col0 FROM tab1 AS cor0
----
-36120
-36400
-389160

query I rowsort
SELECT DISTINCT - ( - 95 ) FROM tab2, tab2 AS cor0
----
95

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6973
SELECT CAST( NULL AS SIGNED ) * + col2 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-6973
SELECT CAST ( NULL AS INTEGER ) * + col2 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6974
SELECT + CAST( + SUM( ALL - - col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6974
SELECT + CAST ( + SUM ( ALL - - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
156

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

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

query II rowsort
SELECT DISTINCT + col2 * - col2 AS col1, + col0 FROM tab2 AS cor0
----
-1600
64
-3364
75
-529
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col0 col0 FROM tab0 cor0 WHERE NOT 17 NOT IN ( + col0 * - col1, - col1, - 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6978
SELECT - 83 * - COUNT( * ) col2 FROM tab1 cor0
----
249

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6978
SELECT - 83 * - COUNT ( * ) col2 FROM tab1 cor0
----
249

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6980
SELECT ALL COUNT ( ALL col1 ) col0 FROM tab2
----
3

query II rowsort
SELECT col0 * 80 AS col0, - col2 FROM tab1
----
4080
-96
6800
-59
7280
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-6982
SELECT - ( + + col0 ) DIV 34 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6982
SELECT - ( + + col0 ) / 34 FROM tab1
----
-1
-2
-2

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

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

query I rowsort
SELECT DISTINCT - 94 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
-94

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6986
SELECT - + SUM( + - col1 ) * - 74 + + COUNT( * ) AS col0, 60 DIV - - 97 AS col2 FROM tab1 AS cor0
----
-4881
0

skipif mysql # not compatible
query II rowsort label-6986
SELECT - + SUM ( + - col1 ) * - 74 + + COUNT ( * ) AS col0, 60 / - - 97 AS col2 FROM tab1 AS cor0
----
-4881
0

query II rowsort
SELECT - col1, col1 * + col0 AS col1 FROM tab0 AS cor0
----
-1
97
-21
1827
-81
1215

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

query II rowsort
SELECT ALL col1 + - - 37 * col1 AS col0, - col2 * + + col1 AS col2 FROM tab0 AS cor0
----
3078
-3807
38
-99
798
-210

query I rowsort
SELECT DISTINCT + col2 * + col2 * + - col0 + + ( - + col1 ) * - - col0 + + col2 AS col1 FROM tab0 cor0
----
-10517
-34303
-950695

onlyif mysql # DIV for integer division: 
query I rowsort label-6991
SELECT DISTINCT 82 + - + col1 DIV - - col0 FROM tab2 AS cor0
----
81
82

skipif mysql # not compatible
query I rowsort label-6991
SELECT DISTINCT 82 + - + col1 / - - col0 FROM tab2 AS cor0
----
81
82

query IIIIII rowsort
SELECT DISTINCT * FROM tab1, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT col1 * + 84 * + col0 + + ( + col2 ) FROM tab0
----
102107
153478
8247

onlyif mysql # aggregate syntax: 
query II rowsort label-6994
SELECT DISTINCT SUM( - 70 ) AS col2, + 28 * - - 13 FROM tab1
----
-210
364

skipif mysql # not compatible
query II rowsort label-6994
SELECT DISTINCT SUM ( - 70 ) AS col2, + 28 * - - 13 FROM tab1
----
-210
364

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6995
SELECT COUNT( * ) DIV + 49 AS col0 FROM tab1
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6996
SELECT MIN( 58 ) FROM tab0, tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6996
SELECT MIN ( 58 ) FROM tab0, tab2 AS cor0
----
58

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

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

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

query I rowsort
SELECT DISTINCT col0 * + 1 FROM tab0 cor0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7001
SELECT ALL + + 36 + - CAST( - 99 AS SIGNED ), 47 AS col0 FROM tab0 AS cor0
----
135
47
135
47
135
47

skipif mysql # not compatible
query II rowsort label-7001
SELECT ALL + + 36 + - CAST ( - 99 AS INTEGER ), 47 AS col0 FROM tab0 AS cor0
----
135
47
135
47
135
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7002
SELECT DISTINCT - MAX( DISTINCT col0 ) + ( COUNT( * ) ) col0 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7002
SELECT DISTINCT - MAX ( DISTINCT col0 ) + ( COUNT ( * ) ) col0 FROM tab2 AS cor0
----
-72

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7003
SELECT - COUNT ( ALL - col0 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT - MIN( DISTINCT - col1 ) + - COUNT( DISTINCT - - col1 ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-7004
SELECT - MIN ( DISTINCT - col1 ) + - COUNT ( DISTINCT - - col1 ) AS col1 FROM tab1
----
44

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

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

query I rowsort
SELECT + 37 + + col2 FROM tab1
----
105
133
96

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE col2 IN ( + col0, + 15 / - col2, + + col1 )
----

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

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

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

query I rowsort
SELECT - + 26 * - 92 * ( 49 ) - - col2 - col1 + 45 FROM tab1 WHERE 47 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + 28 + + 16 AND - 67
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7012
SELECT DISTINCT + col2 DIV - col0 + - col2 * + 2 AS col0 FROM tab1
----
-118
-136
-193

skipif mysql # not compatible
query I rowsort label-7012
SELECT DISTINCT + col2 / - col0 + - col2 * + 2 AS col0 FROM tab1
----
-118
-136
-193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT - CAST( - - 36 AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

skipif mysql # not compatible
query I rowsort label-7013
SELECT - CAST ( - - 36 AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT COUNT( * ) * 90 * - AVG ( DISTINCT 46 ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7014
SELECT COUNT ( * ) * 90 * - AVG ( DISTINCT 46 ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7016
SELECT DISTINCT + col2 DIV + 22 AS col0, col2 col2 FROM tab0 AS cor0
----
0
10
2
47
4
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7016
SELECT DISTINCT + col2 / + 22 AS col0, col2 col2 FROM tab0 AS cor0
----
0
10
2
47
4
99

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-7019
SELECT + MIN ( 37 ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT + - col1 * + col2 AS col1 FROM tab0 cor0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT + col0 * - col0 * + + col1 AS col1, - col1 AS col2 FROM tab2
----
-107916
-51
-315392
-77
-376875
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7022
SELECT col2 DIV - ( + + col2 ) col2 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7022
SELECT col2 / - ( + + col2 ) col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col1 * + 64 AS col0 FROM tab0
----
1344
5184
64

query I rowsort
SELECT ALL - 23 * + - col0 - + + col2 FROM tab1 WHERE col1 IS NOT NULL
----
1077
1896
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-7025
SELECT - MIN( - col2 ) AS col2 FROM tab0 WHERE NOT - - 25 * + + col0 + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7025
SELECT - MIN ( - col2 ) AS col2 FROM tab0 WHERE NOT - - 25 * + + col0 + col1 IS NOT NULL
----
NULL

query II rowsort
SELECT + col1, - col2 * - + 52 FROM tab0
----
1
5148
21
520
81
2444

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7028
SELECT CAST( - ( - col0 ) AS SIGNED ), col0 FROM tab1
----
51
51
85
85
91
91

skipif mysql # not compatible
query II rowsort label-7028
SELECT CAST ( - ( - col0 ) AS INTEGER ), col0 FROM tab1
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 31 col2, 27 * + - col2 * + + 20 + - + col2 FROM tab2
----
31
-12443
31
-21640
31
-31378

query I rowsort
SELECT DISTINCT + 79 * - - ( - - 90 ) * + 10 AS col1 FROM tab2 AS cor0
----
71100

onlyif mysql # DIV for integer division: 
query I rowsort label-7031
SELECT - + 76 DIV - col0 FROM tab1 cor0 WHERE NOT 50 IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7031
SELECT - + 76 / - col0 FROM tab1 cor0 WHERE NOT 50 IS NULL
----
0
0
1

query II rowsort
SELECT DISTINCT - col2 AS col1, 51 FROM tab0 AS cor0
----
-10
51
-47
51
-99
51

query II rowsort
SELECT ALL + - 65 AS col1, col1 * + - col0 * - col0 AS col1 FROM tab2 AS cor0
----
-65
107916
-65
315392
-65
376875

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + 93 + - 37 * - - ( + - col1 ) IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7036
SELECT + SUM ( col1 ) col0 FROM tab2 AS cor0
----
195

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

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

query II rowsort
SELECT DISTINCT + 72 * - - col1 + + col0 + - col0 AS col1, col2 FROM tab1 AS cor0
----
1008
96
3384
68
360
59

query I rowsort
SELECT DISTINCT + 52 + - + col2 FROM tab0 cor0
----
-47
42
5

query II rowsort
SELECT DISTINCT - ( 84 ) AS col2, col1 FROM tab2 AS cor0 WHERE NOT NULL <= col0 / - - col0 + - - col2 - + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7041
SELECT ALL - - 46 DIV - col2 + col1 DIV + - col2, col1 AS col0 FROM tab2 AS cor0
----
-1
67
-2
77
-4
51

skipif mysql # not compatible
query II rowsort label-7041
SELECT ALL - - 46 / - col2 + col1 / + - col2, col1 AS col0 FROM tab2 AS cor0
----
-1
67
-2
77
-4
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ALL - - 49 - - + COUNT( * ) AS col0 FROM tab0 WHERE + 60 IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-7042
SELECT ALL - - 49 - - + COUNT ( * ) AS col0 FROM tab0 WHERE + 60 IS NOT NULL
----
52

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

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

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

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

query I rowsort
SELECT ALL col0 * - 96 + - col0 FROM tab1 cor0
----
-4947
-8245
-8827

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7048
SELECT ALL col1 DIV + 19 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-7048
SELECT ALL col1 / + 19 FROM tab0
----
0
1
4

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7051
SELECT - - 67, - COUNT( * ) + - ( + - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
67
0

skipif mysql # not compatible
query II rowsort label-7051
SELECT - - 67, - COUNT ( * ) + - ( + - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
67
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 * - 42 ) > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7054
SELECT ALL COUNT( + col1 ) DIV - 2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7054
SELECT ALL COUNT ( + col1 ) / - 2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT + + MIN( DISTINCT - 10 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7055
SELECT + + MIN ( DISTINCT - 10 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7056
SELECT CAST( NULL AS SIGNED ) * + 26 * + - col2 * col1 * + + CAST( - 96 AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7056
SELECT CAST ( NULL AS INTEGER ) * + 26 * + - col2 * col1 * + + CAST ( - 96 AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col2 + + col0 * 61, 49, - col0 )
----

query I rowsort
SELECT + 25 * - 42 * + col1 FROM tab2
----
-53550
-70350
-80850

onlyif mysql # DIV for integer division: 
query I rowsort label-7061
SELECT DISTINCT + col0 DIV + ( + 28 ) FROM tab1
----
1
3

skipif mysql # not compatible
query I rowsort label-7061
SELECT DISTINCT + col0 / + ( + 28 ) FROM tab1
----
1
3

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7063
SELECT - CAST( col2 AS SIGNED ) DIV col0 + - - 8 col1 FROM tab2 AS cor0
----
8
8
8

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 <= 50
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 90 + - col1, col0 col2 FROM tab0
----
-111
87
-171
15
-91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT 31 + - COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-7066
SELECT 31 + - COUNT ( * ) FROM tab0
----
28

query I rowsort
SELECT ALL col2 + - 52 + + col0 * + - ( - 61 ) * - col0 FROM tab0
----
-13730
-461751
-573902

query I rowsort
SELECT col1 * + col2 + - 83 AS col1 FROM tab1
----
1261
212
3113

onlyif mysql # DIV for integer division: 
query I rowsort label-7069
SELECT DISTINCT + col2 DIV - 67 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7069
SELECT DISTINCT + col2 / - 67 + + col1 FROM tab2
----
51
67
77

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

query I rowsort
SELECT DISTINCT - col0 - - 77 FROM tab1
----
-14
-8
26

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 4 / + + ( + 30 ) / - ( + col2 ) + + - col2 + + ( - col0 ) < NULL
----

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

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

query II rowsort
SELECT col2 - col1 + col1 + col2 AS col2, col1 FROM tab0 AS cor0
----
198
1
20
21
94
81

query I rowsort
SELECT ALL + col2 - + - col1 + + col1 FROM tab0
----
101
209
52

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

query I rowsort
SELECT DISTINCT - - 33 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 27 + - 81 / + 59 IS NOT NULL
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT ALL COUNT( * ) FROM tab2 WHERE 62 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7078
SELECT ALL COUNT ( * ) FROM tab2 WHERE 62 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 15 * - - col0 + - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 >= + 88
----
91
47
68

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

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

query I rowsort
SELECT ALL + + col0 FROM tab1 AS cor0 WHERE NOT - 30 BETWEEN col1 AND - col0
----
51
85
91

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT - COUNT( * ) + - 20 FROM tab1 WHERE NOT ( NOT - col1 * - 30 NOT BETWEEN - col2 * + + 28 AND col0 )
----
-23

skipif mysql # not compatible
query I rowsort label-7084
SELECT - COUNT ( * ) + - 20 FROM tab1 WHERE NOT ( NOT - col1 * - 30 NOT BETWEEN - col2 * + + 28 AND col0 )
----
-23

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 * 69 / - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 3 ) * + col0 col0 FROM tab0
----
261
291
45

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT ALL COUNT( * ) * MIN( ALL - col0 ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-7088
SELECT ALL COUNT ( * ) * MIN ( ALL - col0 ) AS col1 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7089
SELECT - + SUM( ALL + 36 ) FROM tab2 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7089
SELECT - + SUM ( ALL + 36 ) FROM tab2 cor0
----
-108

query I rowsort
SELECT DISTINCT - col0 + - - col1 + 78 FROM tab2 AS cor0
----
70
83
91

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT NULL = + 32 + 19
----

query I rowsort
SELECT col2 + + + 98 + col1 - - 99 * - 74 * + col1 FROM tab1
----
-102356
-344109
-36468

query I rowsort
SELECT - 41 + - col2 * + col2 AS col2 FROM tab0
----
-141
-2250
-9842

query II rowsort
SELECT + col0 * + 73 AS col2, - col1 AS col2 FROM tab0
----
1095
-81
6351
-21
7081
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7095
SELECT DISTINCT + MIN( ALL + col2 ) + SUM( ALL + + col0 ) FROM tab0 AS cor0
----
209

skipif mysql # not compatible
query I rowsort label-7095
SELECT DISTINCT + MIN ( ALL + col2 ) + SUM ( ALL + + col0 ) FROM tab0 AS cor0
----
209

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

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

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

query I rowsort
SELECT DISTINCT col1 * col0 - ( + col1 ) + - col0 + 74 FROM tab0 AS cor0
----
1193
1793
73

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

query I rowsort
SELECT DISTINCT ( 33 ) - col2 AS col2 FROM tab2
----
-25
-7
10

query I rowsort
SELECT + col1 * col1 + - col0 * - + col1 * 38 FROM tab0
----
3687
52731
69867

query I rowsort
SELECT ALL 62 - - 62 FROM tab1
----
124
124
124

query II rowsort
SELECT ALL + 67, col1 AS col1 FROM tab0
----
67
1
67
21
67
81

query I rowsort
SELECT 41 + col2 + col0 * col2 + - col2 * col2 FROM tab2
----
1041
1085
593

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

skipif mysql # not compatible
query I rowsort label-7105
SELECT DISTINCT + COUNT ( ALL 17 ) FROM tab1
----
3

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

query II rowsort
SELECT DISTINCT + 62 AS col0, - col0 + - - col0 * + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL = ( + 60 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7108
SELECT + 99 DIV + COUNT( * ) col2 FROM tab0 AS cor0
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT - SUM( ALL 92 ) AS col2 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-7109
SELECT - SUM ( ALL 92 ) AS col2 FROM tab1
----
-276

query I rowsort
SELECT + - ( - col1 ) * - + col1 AS col2 FROM tab1 AS cor0
----
-196
-2209
-25

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

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

query I rowsort
SELECT DISTINCT - col2 * + col0 * col0 * + col0 AS col1 FROM tab2 AS cor0
----
-10485760
-2238728
-24468750

query I rowsort
SELECT DISTINCT + col0 * + col0 * col0 AS col1 FROM tab2 cor0
----
262144
421875
97336

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + 89 IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7115
SELECT MIN( col2 ) * + - COUNT( * ) AS col2 FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-7115
SELECT MIN ( col2 ) * + - COUNT ( * ) AS col2 FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-7116
SELECT COUNT( * ) * + - ( - 41 ) AS col2 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-7116
SELECT COUNT ( * ) * + - ( - 41 ) AS col2 FROM tab2
----
123

query I rowsort
SELECT + ( + - 53 ) FROM tab0
----
-53
-53
-53

query II rowsort
SELECT + - ( 98 ) AS col0, col1 AS col1 FROM tab0 WHERE NOT - col2 IS NULL
----
-98
1
-98
21
-98
81

query I rowsort
SELECT ( - - col0 ) + - - col1 * - - 50 AS col0 FROM tab2
----
2596
3425
3914

onlyif mysql # aggregate syntax: 
query I rowsort label-7120
SELECT - COUNT( - ( + col2 ) ) + - - 65 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-7120
SELECT - COUNT ( - ( + col2 ) ) + - - 65 FROM tab0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7121
SELECT 32 + MAX( ALL + col0 ) FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-7121
SELECT 32 + MAX ( ALL + col0 ) FROM tab2
----
107

query I rowsort
SELECT ALL - col2 * + 79 FROM tab0
----
-3713
-7821
-790

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > - 35
----

query I rowsort
SELECT ALL 80 * - col2 AS col1 FROM tab2
----
-1840
-3200
-4640

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 18 + ( + col2 ) col0 FROM tab1 AS cor0
----
114
77
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7127
SELECT ALL - col2 DIV + 9 FROM tab1 AS cor0
----
-10
-6
-7

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL - col2 / + 9 FROM tab1 AS cor0
----
-10
-6
-7

query I rowsort
SELECT DISTINCT - + 96 * + col1 + + col1 AS col0 FROM tab0 cor0
----
-1995
-7695
-95

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT ALL + - 88 + - MAX( - 20 ) AS col2 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL + - 88 + - MAX ( - 20 ) AS col2 FROM tab2 AS cor0
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT 14 + + MIN( DISTINCT 2 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT 14 + + MIN ( DISTINCT 2 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 63 FROM tab2 WHERE NOT - col1 <> 99 * + 56 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT + - ( - + 61 ) + + MAX( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-7134
SELECT + - ( - + 61 ) + + MAX ( DISTINCT - col1 ) AS col1 FROM tab1 AS cor0
----
56

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> + col2 * + ( + col0 ) / + col1
----

query I rowsort
SELECT + 23 * - + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1173
-1955
-2093

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7140
SELECT DISTINCT + col1 DIV 97 - 30 * + + 93 * + 78 * - - col1 + - col0 FROM tab0 AS cor0
----
-17627235
-217717
-4570107

skipif mysql # not compatible
query I rowsort label-7140
SELECT DISTINCT + col1 / 97 - 30 * + + 93 * + 78 * - - col1 + - col0 FROM tab0 AS cor0
----
-17627235
-217717
-4570107

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7141
SELECT col1 + - - CAST( + + col0 AS SIGNED ) AS col0 FROM tab1 cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7141
SELECT col1 + - - CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT ALL + ( + 39 ) - - 52 - + col0 * col2 AS col1 FROM tab2 AS cor0
----
-2469
-4259
-967

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col1 * 40 IS NULL
----

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

query I rowsort
SELECT ALL - col1 + 90 - + + col2 * col1 AS col0 FROM tab2
----
-1134
-3067
-3863

query I rowsort
SELECT + 72 + col2 AS col1 FROM tab2 WHERE + col0 > NULL
----

query I rowsort
SELECT ALL + ( - ( - 3 ) ) + + + ( 25 ) AS col1 FROM tab2
----
28
28
28

query I rowsort
SELECT DISTINCT + col2 * - + col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
-1173
-3080
-3886

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT + 91 DIV col1 FROM tab0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-7150
SELECT + 91 / col1 FROM tab0
----
1
4
91

query II rowsort
SELECT ALL - col0 - - 18, - col1 AS col2 FROM tab2 WHERE + col2 / col1 IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT - + 20 + col2 - + + 20 FROM tab2 WHERE - + ( + + CAST ( NULL AS INTEGER ) ) >= + CAST ( NULL AS INTEGER )
----

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

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

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

query I rowsort
SELECT + 52 * + ( + col1 ) * + + 7 AS col1 FROM tab1 cor0
----
17108
1820
5096

query II rowsort
SELECT DISTINCT col2, 92 + ( 77 ) AS col0 FROM tab2 AS cor0
----
23
169
40
169
58
169

query II rowsort
SELECT - + col2 AS col1, - 80 + + col2 FROM tab1 cor0
----
-59
-21
-68
-12
-96
16

query I rowsort
SELECT ALL 60 * - - ( col0 ) AS col0 FROM tab1 AS cor0
----
3060
5100
5460

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col2 AS col1, + col0 + + col1 col0 FROM tab1 cor0
----
-59
90
-68
138
-96
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 8 IS NOT NULL
----

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

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

query I rowsort
SELECT 1 * col1 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7165
SELECT ( + COUNT( * ) ) * + - COUNT( * ) * + SUM( ALL - - col2 ), - CAST( - 80 AS SIGNED ) AS col2 FROM tab0
----
-1404
80

skipif mysql # not compatible
query II rowsort label-7165
SELECT ( + COUNT ( * ) ) * + - COUNT ( * ) * + SUM ( ALL - - col2 ), - CAST ( - 80 AS INTEGER ) AS col2 FROM tab0
----
-1404
80

query I rowsort
SELECT + - col0 + + ( - col1 ) + col2 FROM tab0 AS cor0
----
-49
-98
1

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE - ( + col1 ) + + + col1 = + 57
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + - col0 - - + ( col2 ) * + + 94 * + 86 * + - col2 NOT BETWEEN NULL AND col1 + 64
----

query I rowsort
SELECT DISTINCT + + col1 * + 23 + + ( + 63 ) AS col1 FROM tab0 AS cor0
----
1926
546
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7170
SELECT + 51 DIV - COUNT( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7170
SELECT + 51 / - COUNT ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0
----
-17

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 80 * - + col0 + + 15 <= NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 + - col0 col2 FROM tab2 AS cor0
----
-128
-146
-157

query I rowsort
SELECT ALL 45 - - col2 AS col2 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7176
SELECT DISTINCT MIN( - + 98 ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7176
SELECT DISTINCT MIN ( - + 98 ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * + + col0 * col2 + + - 52 AS col1 FROM tab1
----
295833
420732
469964

onlyif mysql # aggregate syntax: 
query II rowsort label-7178
SELECT + 2 + - + COUNT( * ), COUNT( * ) AS col1 FROM tab0
----
-1
3

skipif mysql # not compatible
query II rowsort label-7178
SELECT + 2 + - + COUNT ( * ), COUNT ( * ) AS col1 FROM tab0
----
-1
3

query I rowsort
SELECT DISTINCT 81 - + - 54 + col0 AS col2 FROM tab0
----
150
222
232

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT ALL + col0 DIV 94 * + 2 - col2 + - - col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7181
SELECT ALL + col0 / 94 * + 2 - col2 + - - col2 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT - col2 + - + 54 + - ( + 20 ) + col1 FROM tab2
----
-37
-46
-65

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

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

skipif mysql # not compatible
query I rowsort label-7185
SELECT ( - - COUNT ( * ) ) AS col0 FROM tab0
----
3

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + COUNT( * ) + + - SUM( - 75 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
684

skipif mysql # not compatible
query I rowsort label-7189
SELECT + COUNT ( * ) + + - SUM ( - 75 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
684

query I rowsort
SELECT - - 18 AS col1 FROM tab2 cor0
----
18
18
18

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

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

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

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

query I rowsort
SELECT ALL - - 26 + + 77 + - + 37 AS col1 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT col1 + - + col2 + - col2 * - col2 AS col1 FROM tab0 AS cor0
----
111
2243
9703

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT NULL > + 75
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7196
SELECT MIN( col1 ) + 31 DIV + ( - 6 ) AS col0 FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-7196
SELECT MIN ( col1 ) + 31 / + ( - 6 ) AS col0 FROM tab0
----
-4

query I rowsort
SELECT + col0 + + 29 AS col2 FROM tab2
----
104
75
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( * ) * - + SUM( DISTINCT + 85 ) col2 FROM tab0
----
-255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7199
SELECT + COUNT ( * ) * - + SUM ( DISTINCT + 85 ) col2 FROM tab0
----
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-7200
SELECT ALL col2 DIV - 67 + + + 52 + + - col1 FROM tab0 AS cor0 WHERE NOT 18 IS NULL
----
-29
31
50

skipif mysql # not compatible
query I rowsort label-7200
SELECT ALL col2 / - 67 + + + 52 + + - col1 FROM tab0 AS cor0 WHERE NOT 18 IS NULL
----
-29
31
50

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7201
SELECT DISTINCT - - 19 DIV - 6 + + col1 + - CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
138
139
94

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT - - 19 / - 6 + + col1 + - CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
138
139
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT DISTINCT + MAX( col1 ) + + 76 AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-7203
SELECT DISTINCT + MAX ( col1 ) + + 76 AS col0 FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-7204
SELECT - ( COUNT( * ) ) * - MIN( ALL + 69 * col1 ) + 24 FROM tab1
----
1059

skipif mysql # not compatible
query I rowsort label-7204
SELECT - ( COUNT ( * ) ) * - MIN ( ALL + 69 * col1 ) + 24 FROM tab1
----
1059

onlyif mysql # DIV for integer division: 
query I rowsort label-7205
SELECT DISTINCT 28 DIV 33 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7205
SELECT DISTINCT 28 / 33 FROM tab2
----
0

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

query I rowsort
SELECT DISTINCT 98 + 36 FROM tab0 WHERE ( col2 ) * + col2 + col1 * + col0 IS NULL
----

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 72 * 96 ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( - 85 ) + + col0 AS col1 FROM tab2
----
131
149
160

query I rowsort
SELECT + 31 * col1 AS col1 FROM tab1
----
1457
155
434

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 + col0 col2 FROM tab2
----
106
117
88

query I rowsort
SELECT + col2 * + 62 FROM tab0
----
2914
6138
620

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT - CAST( - 95 AS SIGNED ) * - CAST( - col0 + - col1 AS SIGNED ) FROM tab0
----
10260
9120
9310

skipif mysql # not compatible
query I rowsort label-7214
SELECT - CAST ( - 95 AS INTEGER ) * - CAST ( - col0 + - col1 AS INTEGER ) FROM tab0
----
10260
9120
9310

query I rowsort
SELECT 5 * col0 + - 38 FROM tab2
----
192
282
337

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT ALL COUNT( DISTINCT col0 ) * 32 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7216
SELECT ALL COUNT ( DISTINCT col0 ) * 32 AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----
0

query I rowsort
SELECT ( col1 ) + 95 FROM tab1
----
100
109
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7218
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( - col1 ) > ( - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-7218
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( - col1 ) > ( - col1 )
----
3

query I rowsort
SELECT ( + col1 ) + - col2 * - col0 AS col1 FROM tab2
----
1109
2637
4417

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab0 WHERE NOT 68 / 57 <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT 68 / 57 <> + col2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 51 * + col2 > + col1 + col0 * 73
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT SUM( DISTINCT col2 ) FROM tab1 WHERE + col2 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-7222
SELECT SUM ( DISTINCT col2 ) FROM tab1 WHERE + col2 = ( NULL )
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT SUM( DISTINCT 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-7224
SELECT SUM ( DISTINCT 13 ) FROM tab2
----
13

query I rowsort
SELECT + ( col1 ) + col2 * 3 AS col1 FROM tab1
----
182
251
302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col0 FROM tab1 WHERE - col0 + - col1 * col2 IS NULL
----

query I rowsort
SELECT - 80 + - col1 FROM tab0
----
-101
-161
-81

query I rowsort
SELECT DISTINCT col0 * + 37 FROM tab1 WHERE + col2 IS NULL
----

query I rowsort
SELECT ALL - 97 FROM tab1 WHERE NULL > + col2
----

query I rowsort
SELECT ALL - col2 + col2 * + col2 AS col1 FROM tab0
----
2162
90
9702

query I rowsort
SELECT DISTINCT - col1 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT col0 * 50 IS NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT COUNT( * ) * COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7232
SELECT COUNT ( * ) * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT COUNT( * ) * SUM( + col1 ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-7233
SELECT COUNT ( * ) * SUM ( + col1 ) FROM tab0 AS cor0
----
309

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

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

query I rowsort
SELECT DISTINCT - 70 + ( 15 ) * + 27 FROM tab0 AS cor0
----
335

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

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

query I rowsort
SELECT DISTINCT - 6 * 92 FROM tab0 AS cor0
----
-552

query I rowsort
SELECT ( 62 ) * - col2 FROM tab1 AS cor0
----
-3658
-4216
-5952

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * col2 <> - col0
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + 31 + + 91
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7242
SELECT 14 DIV COUNT( * ) AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-7242
SELECT 14 / COUNT ( * ) AS col2 FROM tab2 WHERE col0 IS NOT NULL
----
4

query III rowsort
SELECT * FROM tab1 WHERE 6 * col1 IS NULL
----

query I rowsort
SELECT ALL col2 / 38 + 57 / - col0 FROM tab1 WHERE NOT NULL > ( NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT ALL + col2 col1 FROM tab0 WHERE NOT - CAST( - 89 AS SIGNED ) IS NULL
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7246
SELECT ALL + col2 col1 FROM tab0 WHERE NOT - CAST ( - 89 AS INTEGER ) IS NULL
----
10
47
99

query I rowsort
SELECT + col1 * - - ( col0 ) + col0 * + 74 FROM tab1
----
11011
4488
6715

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

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

query I rowsort
SELECT - 38 + + 49 + 9 * + 44 FROM tab0
----
407
407
407

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL 46 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL 46 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT DISTINCT + SUM( ALL - col2 ) + MIN( 60 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT + SUM ( ALL - col2 ) + MIN ( 60 ) FROM tab2 AS cor0
----
-61

query I rowsort
SELECT ALL - 75 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 6 AS col0, col2 + + col1 col0 FROM tab0
----
6
100
6
128
6
31

query I rowsort
SELECT ALL + 89 * + 0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT 19 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * col0 - + + 78 * + 47 col2 FROM tab0 AS cor0
----
-3763
-4881
-5493

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7259
SELECT AVG ( ALL - col0 ) + + 11 * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col0 * - 23 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7259
SELECT AVG ( ALL - col0 ) + + 11 * + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col0 * - 23 BETWEEN NULL AND NULL
----
NULL

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

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

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

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + 37 * - col1 + + col0 AND + col1
----

query I rowsort
SELECT ALL - col1 * - 90 AS col2 FROM tab1 AS cor0
----
1260
4230
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 * - col0 * col2 col0 FROM tab1 cor0
----
249696
426275
563108

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE - 51 > - 65 + - col1
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT DISTINCT 42 * + COUNT( * ) FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-7266
SELECT DISTINCT 42 * + COUNT ( * ) FROM tab0
----
126

query I rowsort
SELECT - col1 * - col1 * + ( 15 ) AS col2 FROM tab2
----
39015
67335
88935

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

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT - MIN ( DISTINCT ( 97 ) ) AS col2 FROM tab1
----
-97

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 0 + - - ( col1 ) * + ( - col2 ) * 10 FROM tab2 cor0
----
-11730
-30800
-38860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7274
SELECT DISTINCT col2 + 28 * + col2 * + CAST( + col0 AS SIGNED ) + 47 FROM tab1 AS cor0
----
137231
140526
173379

skipif mysql # not compatible
query I rowsort label-7274
SELECT DISTINCT col2 + 28 * + col2 * + CAST ( + col0 AS INTEGER ) + 47 FROM tab1 AS cor0
----
137231
140526
173379

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( - 29 ) BETWEEN + - col0 / + col0 AND 82
----

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

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

query I rowsort
SELECT + 83 * - 98 + - 40 FROM tab0 AS cor0
----
-8174
-8174
-8174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 83 * 69 + col2 * + col0 col2 FROM tab2 AS cor0
----
10077
6785
8287

query III rowsort
SELECT * FROM tab0 WHERE col0 * + col1 IN ( + col0 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT MAX( DISTINCT 94 ) + 99 FROM tab1
----
193

skipif mysql # not compatible
query I rowsort label-7280
SELECT MAX ( DISTINCT 94 ) + 99 FROM tab1
----
193

onlyif mysql # DIV for integer division: 
query I rowsort label-7281
SELECT + 59 DIV + - col1 FROM tab2 WHERE ( + + col1 ) IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7281
SELECT + 59 / + - col1 FROM tab2 WHERE ( + + col1 ) IS NOT NULL
----
-1
0
0

query I rowsort
SELECT DISTINCT - col2 + - 64 FROM tab1
----
-123
-132
-160

query I rowsort
SELECT DISTINCT - 26 * - 48 - 39 + - + 17 FROM tab0
----
1192

query I rowsort
SELECT DISTINCT 67 * - col1 * + 21 AS col1 FROM tab2
----
-108339
-71757
-94269

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL NOT BETWEEN col0 + col0 / + - col2 AND ( + 33 )
----

query I rowsort
SELECT ALL + 50 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query I rowsort
SELECT DISTINCT + + col0 + col2 * + 23 FROM tab1 WHERE NOT ( + + ( + + col0 ) ) < ( NULL )
----

query I rowsort
SELECT ALL + - 75 - + - 31 FROM tab2 AS cor0 WHERE 3 / col1 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7290
SELECT * FROM tab2 WHERE NULL <> + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7290
SELECT * FROM tab2 WHERE NULL <> + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 32 <= - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7292
SELECT + ( + col0 ) * + CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-7292
SELECT + ( + col0 ) * + CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 89 NOT IN ( - 14 * col0 + 62 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( ( col2 ) IS NOT NULL )
----

query I rowsort
SELECT - col2 * - + col2 * - 61 AS col2 FROM tab2 AS cor0
----
-205204
-32269
-97600

query II rowsort
SELECT ALL - 95, 55 AS col2 FROM tab2
----
-95
55
-95
55
-95
55

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col0 ) + + col2 > ( - col0 )
----

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

query I rowsort
SELECT DISTINCT + 53 * + - col1 AS col0 FROM tab0
----
-1113
-4293
-53

query I rowsort
SELECT - col1 * - 84 AS col0 FROM tab2 cor0
----
4284
5628
6468

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7301
SELECT ALL col1 * - CAST( - 80 AS SIGNED ) AS col0 FROM tab1
----
1120
3760
400

skipif mysql # not compatible
query I rowsort label-7301
SELECT ALL col1 * - CAST ( - 80 AS INTEGER ) AS col0 FROM tab1
----
1120
3760
400

query I rowsort
SELECT ALL ( - col0 ) * - - 46 AS col0 FROM tab2
----
-2116
-2944
-3450

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7304
SELECT 95 DIV + COUNT( * ) FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7304
SELECT 95 / + COUNT ( * ) FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL + col1 + - col0 AS col2 FROM tab2 cor0
----
-8
13
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7307
SELECT DISTINCT COUNT( - col1 ) * + 52 + + 4 AS col1 FROM tab0 cor0
----
160

skipif mysql # not compatible
query I rowsort label-7307
SELECT DISTINCT COUNT ( - col1 ) * + 52 + + 4 AS col1 FROM tab0 cor0
----
160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7308
SELECT - MAX( col2 ) + + CAST( + 60 AS SIGNED ) col2 FROM tab0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND + col1 AND col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7308
SELECT - MAX ( col2 ) + + CAST ( + 60 AS INTEGER ) col2 FROM tab0 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND + col1 AND col0 IS NOT NULL
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + + col1 + col2 AND ( + - 48 )
----

query I rowsort
SELECT col2 + - 93 + 61 AS col2 FROM tab1
----
27
36
64

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT DISTINCT MIN( + - 71 ) col0 FROM tab2
----
-71

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7314
SELECT DISTINCT + 71 * CAST( NULL AS SIGNED ) / + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT + 71 * CAST ( NULL AS INTEGER ) / + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7315
SELECT 52 + col0 DIV - col2 + - + 16 + - + col0 + + col1 FROM tab0 AS cor0
----
-38
-60
102

skipif mysql # not compatible
query I rowsort label-7315
SELECT 52 + col0 / - col2 + - + 16 + - + col0 + + col1 FROM tab0 AS cor0
----
-38
-60
102

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 77, 99 col0 FROM tab0
----
77
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) <= NULL
----

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

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

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

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

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col1, + col0 + - col2 FROM tab0 AS cor0
----
10
77
47
-32
99
-2

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7327
SELECT COUNT ( * ) * + CAST ( + + 42 AS INTEGER ) col0 FROM tab1 AS cor0
----
126

query I rowsort
SELECT + col1 * + - 91 FROM tab0 AS cor0
----
-1911
-7371
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT ALL 26 * + MAX( - 26 ) FROM tab2, tab1 AS cor0 WHERE NOT ( - - 84 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7329
SELECT ALL 26 * + MAX ( - 26 ) FROM tab2, tab1 AS cor0 WHERE NOT ( - - 84 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT SUM( + 38 ) AS col1 FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-7330
SELECT SUM ( + 38 ) AS col1 FROM tab0
----
114

query I rowsort
SELECT DISTINCT + AVG ( DISTINCT + col0 ) FROM tab2 WHERE ( ( NULL ) >= NULL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7332
SELECT - 81 DIV + + 7 FROM tab1
----
-11
-11
-11

skipif mysql # not compatible
query I rowsort label-7332
SELECT - 81 / + + 7 FROM tab1
----
-11
-11
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * 44 col0 FROM tab1 AS cor0
----
2596
2992
4224

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7334
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= - CAST( 87 AS DECIMAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7334
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 >= - CAST ( 87 AS REAL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT DISTINCT + ( - - 29 ) AS col1 FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT DISTINCT + COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( - 79 + + col1 + + col1, col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7337
SELECT DISTINCT + COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( - 79 + + col1 + + col1, col1 )
----
0

query I rowsort
SELECT + 35 * - + col0 AS col0 FROM tab2
----
-1610
-2240
-2625

query I rowsort
SELECT ALL + col2 * - 57 FROM tab0
----
-2679
-5643
-570

query I rowsort
SELECT DISTINCT - 8 + + col1 AS col1 FROM tab2
----
43
59
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7341
SELECT DISTINCT + 97 * + + SUM( - - CAST( + 61 AS SIGNED ) ) col0, SUM( DISTINCT - ( 68 ) ) * COUNT( * ) AS col0 FROM tab2
----
17751
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7341
SELECT DISTINCT + 97 * + + SUM ( - - CAST ( + 61 AS INTEGER ) ) col0, SUM ( DISTINCT - ( 68 ) ) * COUNT ( * ) AS col0 FROM tab2
----
17751
-204

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

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

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

query I rowsort
SELECT DISTINCT 15 * + 68 * + col2 + 42 FROM tab0 AS cor0
----
101022
10242
47982

onlyif mysql # DIV for integer division: 
query I rowsort label-7345
SELECT DISTINCT - 55 DIV col2 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7345
SELECT DISTINCT - 55 / col2 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <= - + 28
----

query I rowsort
SELECT DISTINCT - 25 + + 34 + col0 FROM tab0 cor0
----
106
24
96

query I rowsort
SELECT col0 + - ( - col0 ) + + col2 + - + ( - col1 ) AS col0 FROM tab1 cor0
----
212
234
297

query I rowsort
SELECT - col0 + + + col2 AS col0 FROM tab0 AS cor0
----
-77
2
32

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL MIN( DISTINCT 60 ) - - 3 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL MIN ( DISTINCT 60 ) - - 3 FROM tab0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7352
SELECT ALL 26 + - + COUNT( * ) FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-7352
SELECT ALL 26 + - + COUNT ( * ) FROM tab1
----
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL - COUNT( * ) - 97 / MIN( + + col0 ) + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - COUNT ( * ) - 97 / MIN ( + + col0 ) + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + 93 + + - col0 * - - 60 + + col0 * + - 22 FROM tab2
----
-3679
-5155
-6057

onlyif mysql # DIV for integer division: 
query II rowsort label-7355
SELECT DISTINCT + col2 DIV 89, + 32 AS col0 FROM tab1
----
0
32
1
32

skipif mysql # not compatible
query II rowsort label-7355
SELECT DISTINCT + col2 / 89, + 32 AS col0 FROM tab1
----
0
32
1
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7356
SELECT col0 AS col1 FROM tab1 WHERE col0 * CAST( + 6 AS SIGNED ) * - col1 * + 9 IN ( + col0 * - ( - 69 ) * + col2 - - - CAST( NULL AS SIGNED ) + - col1 / - ( col0 ) )
----

skipif mysql # not compatible
query I rowsort label-7356
SELECT col0 AS col1 FROM tab1 WHERE col0 * CAST ( + 6 AS INTEGER ) * - col1 * + 9 IN ( + col0 * - ( - 69 ) * + col2 - - - CAST ( NULL AS INTEGER ) + - col1 / - ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT DISTINCT 87 * + + 4 * + COUNT( * ) FROM tab0
----
1044

skipif mysql # not compatible
query I rowsort label-7357
SELECT DISTINCT 87 * + + 4 * + COUNT ( * ) FROM tab0
----
1044

query I rowsort
SELECT + 63 * col0 * ( - 22 ) - - - col2 FROM tab1 AS cor0
----
-117869
-126194
-70782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - + + col1 col2 FROM tab0 AS cor0
----
-11
-34
98

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 IN ( 34, - col2 * col0, + col2 ) AND NULL IN ( - col2 * ( col0 ), col0, col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT - MIN( - 37 ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-7362
SELECT - MIN ( - 37 ) FROM tab1 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query I rowsort label-7363
SELECT DISTINCT + 91 DIV + - col0 col1 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7363
SELECT DISTINCT + 91 / + - col0 col1 FROM tab0
----
-1
-6
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - 82 ) * - 47 IS NOT NULL
----

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

query I rowsort
SELECT + - col2 * 14 FROM tab2 AS cor0
----
-322
-560
-812

query I rowsort
SELECT + - 98 AS col0 FROM tab1 AS cor0
----
-98
-98
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7370
SELECT COUNT( * ) * + 15 + 30 * - 94 FROM tab2 AS cor0
----
-2775

skipif mysql # not compatible
query I rowsort label-7370
SELECT COUNT ( * ) * + 15 + 30 * - 94 FROM tab2 AS cor0
----
-2775

onlyif mysql # aggregate syntax: 
query I rowsort label-7371
SELECT ALL - + 37 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-7371
SELECT ALL - + 37 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
111

query I rowsort
SELECT + 6 * - - 91 AS col2 FROM tab2 AS cor0
----
546
546
546

query II rowsort
SELECT ALL + col2 AS col1, 50 * - col1 AS col1 FROM tab1 AS cor0
----
59
-250
68
-2350
96
-700

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

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

query I rowsort
SELECT + ( ( - + 51 ) ) FROM tab2
----
-51
-51
-51

query III rowsort
SELECT * FROM tab0 WHERE NOT - 47 + ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE + col0 <> - col2
----
-51
-67
-77

query I rowsort
SELECT + - col1 FROM tab1 cor0 WHERE col2 * col1 * + ( + col1 ) = NULL
----

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

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

query I rowsort
SELECT DISTINCT - 24 * - col1 FROM tab0 AS cor0 WHERE + col2 IS NOT NULL
----
1944
24
504

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT - SUM( + col1 ) * 64 AS col0 FROM tab0
----
-6592

skipif mysql # not compatible
query I rowsort label-7382
SELECT - SUM ( + col1 ) * 64 AS col0 FROM tab0
----
-6592

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

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE col1 * col1 * + col1 BETWEEN + 27 AND - col2 * - col0 + - - ( + - col0 ) * - + col1 + - col1 - + col0
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-7388
SELECT ALL 83 + - 69 DIV col1 * + col1 AS col2, ( + 74 ) * - col2 + - col1 FROM tab2
----
16
-4359
32
-1753
83
-3037

skipif mysql # not compatible
query II rowsort label-7388
SELECT ALL 83 + - 69 / col1 * + col1 AS col2, ( + 74 ) * - col2 + - col1 FROM tab2
----
16
-4359
32
-1753
83
-3037

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

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

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

query I rowsort
SELECT DISTINCT + - 95 * + col0 * + - 37 AS col2 FROM tab2 cor0
----
161690
224960
263625

query II rowsort
SELECT + col0, + 56 * + ( - - col2 ) AS col2 FROM tab1 AS cor0
----
51
5376
85
3304
91
3808

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT col1 DIV + + col0 * 2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7394
SELECT col1 / + + col0 * 2 AS col1 FROM tab1
----
0
0
0

query II rowsort
SELECT ALL - col0 * - col2 AS col2, - col0 FROM tab1 AS cor0
----
4896
-51
5015
-85
6188
-91

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 <> col1
----

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

query I rowsort
SELECT 56 + 58 AS col2 FROM tab0
----
114
114
114

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7401
SELECT DISTINCT COUNT( ALL + col2 ) DIV - + ( + - 32 ) + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7401
SELECT DISTINCT COUNT ( ALL + col2 ) / - + ( + - 32 ) + + COUNT ( * ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT 5 + - COUNT( * ) AS col0 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7402
SELECT 5 + - COUNT ( * ) AS col0 FROM tab1
----
2

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL >= + col2 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL - MAX( DISTINCT - col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL - MAX ( DISTINCT - col0 ) AS col0 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7405
SELECT + CAST( NULL AS SIGNED ) col2, - 31 * - - col1 + - col2 - + - 92 col0 FROM tab1
----
NULL
-122
NULL
-1433
NULL
-438

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7405
SELECT + CAST ( NULL AS INTEGER ) col2, - 31 * - - col1 + - col2 - + - 92 col0 FROM tab1
----
NULL
-122
NULL
-1433
NULL
-438

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 BETWEEN - 35 * + col1 * - 49 AND + + 96
----

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

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

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

query I rowsort
SELECT 69 AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
69
69
69

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

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

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

query I rowsort
SELECT + col0 + + - 20 FROM tab1 AS cor0
----
31
65
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT ( - COUNT( DISTINCT col2 ) ) + - 78 + + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7413
SELECT ( - COUNT ( DISTINCT col2 ) ) + - 78 + + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-84

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

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

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

query I rowsort
SELECT DISTINCT + col2 + - 41 FROM tab1 AS cor0
----
18
27
55

query I rowsort
SELECT DISTINCT - - 26 - col2 AS col2 FROM tab0 AS cor0
----
-21
-73
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * 53 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7420
SELECT + CAST( - - 84 AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
84
84
84

skipif mysql # not compatible
query I rowsort label-7420
SELECT + CAST ( - - 84 AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
84
84
84

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

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

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

query I rowsort
SELECT DISTINCT - col2 - - col0 * col1 AS col1 FROM tab1
----
366
4209
618

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - 82
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7426
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ), + 51 * MIN( - + 70 ) AS col1 FROM tab0
----
3
-3570

skipif mysql # not compatible
query II rowsort label-7426
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ), + 51 * MIN ( - + 70 ) AS col1 FROM tab0
----
3
-3570

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7428
SELECT ALL - COUNT( * ) * 26 AS col0, 38 AS col0 FROM tab1 AS cor0
----
-78
38

skipif mysql # not compatible
query II rowsort label-7428
SELECT ALL - COUNT ( * ) * 26 AS col0, 38 AS col0 FROM tab1 AS cor0
----
-78
38

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7430
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7430
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7431
SELECT COUNT( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7431
SELECT COUNT ( ALL - col0 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND NULL
----
0

query II rowsort
SELECT ALL + + col2 * + col2 + + col2, col2 FROM tab0 AS cor0
----
110
10
2256
47
9900
99

query I rowsort
SELECT ALL + 89 FROM tab2 cor0 WHERE 78 * - - col2 = + - col0
----

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col1 AND + col2
----
46
64
75

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

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

query II rowsort
SELECT col0 AS col1, + 87 * + - col0 + + + 88 FROM tab0 AS cor0
----
15
-1217
87
-7481
97
-8351

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT + - COUNT( * ) * - 37 * + 65 FROM tab2 cor0
----
7215

skipif mysql # not compatible
query I rowsort label-7438
SELECT + - COUNT ( * ) * - 37 * + 65 FROM tab2 cor0
----
7215

query I rowsort
SELECT ( - - col2 ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - ( - col0 ) * - ( + 19 ) * - - 40 * + col0 AS col2 FROM tab1 AS cor0
----
-1976760
-5491000
-6293560

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7442
SELECT + COUNT( * ) * + 72 AS col0 FROM tab2 cor0
----
216

skipif mysql # not compatible
query I rowsort label-7442
SELECT + COUNT ( * ) * + 72 AS col0 FROM tab2 cor0
----
216

query I rowsort
SELECT DISTINCT - - col2 + + 73 AS col0 FROM tab0 AS cor0
----
120
172
83

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

query I rowsort
SELECT ALL + col1 + - col0 + - ( 21 ) AS col2 FROM tab0
----
-117
-87
45

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

query II rowsort
SELECT + col1 * + col0 AS col2, col1 FROM tab0
----
1215
81
1827
21
97
1

query I rowsort
SELECT ALL + 36 AS col0 FROM tab0, tab1 AS cor0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

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

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

query I rowsort
SELECT ALL col1 * + - col1 AS col2 FROM tab2
----
-2601
-4489
-5929

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

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

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

skipif mysql # not compatible
query I rowsort label-7452
SELECT + 5 + - COUNT ( * ) FROM tab1
----
2

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

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

query I rowsort
SELECT + col0 + - + 45 FROM tab2 cor0
----
1
19
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 36 + - 13 * - col1 * + - ( col1 ) col0 FROM tab0 AS cor0
----
-5697
-85257
23

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

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

query III rowsort
SELECT * FROM tab1 WHERE - 68 - - col0 BETWEEN col1 + + ( - col1 ) AND - + 83
----

query I rowsort
SELECT + 39 * 83 + - col1 * - + col1 AS col2 FROM tab0 WHERE col2 IN ( + - 75 - + ( + col1 ), + col1, + col2 * - 26, - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 75 * 97 + + col0 <= + 23 * + col0 - + + 31 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT - COUNT( * ) - - ( 62 ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7460
SELECT - COUNT ( * ) - - ( 62 ) FROM tab2 AS cor0
----
59

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7462
SELECT + 57 - - SUM( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
284

skipif mysql # not compatible
query I rowsort label-7462
SELECT + 57 - - SUM ( DISTINCT - - col0 ) AS col1 FROM tab1 AS cor0
----
284

onlyif mysql # DIV for integer division: 
query I rowsort label-7463
SELECT ALL - col1 DIV col1 + ( + + col1 ) AS col0 FROM tab0 cor0
----
0
20
80

skipif mysql # not compatible
query I rowsort label-7463
SELECT ALL - col1 / col1 + ( + + col1 ) AS col0 FROM tab0 cor0
----
0
20
80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 91, - 98 col1 FROM tab1
----
-91
-98

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

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

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT COUNT ( - - col1 ) AS col0 FROM tab0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT + COUNT( - 76 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7469
SELECT + COUNT ( - 76 ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7470
SELECT ALL - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 WHERE NULL <= + col2 * + 96
----
0

skipif mysql # not compatible
query I rowsort label-7470
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 WHERE NULL <= + col2 * + 96
----
0

query I rowsort
SELECT ALL col2 * 70 FROM tab0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-7472
SELECT - ( - COUNT( * ) ) * + + 65 FROM tab0 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7472
SELECT - ( - COUNT ( * ) ) * + + 65 FROM tab0 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7473
SELECT ALL - MIN( + + ( - - 81 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7473
SELECT ALL - MIN ( + + ( - - 81 ) ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT 58 * + COUNT( * ) * + 88 col1 FROM tab0 AS cor0
----
15312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7474
SELECT 58 * + COUNT ( * ) * + 88 col1 FROM tab0 AS cor0
----
15312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7475
SELECT ALL COUNT( * ), - MAX( - + col2 ) AS col1 FROM tab0 WHERE NOT col0 * + col2 / + 27 + - col2 * + - col2 * - - col1 BETWEEN col2 + + col1 / + - ( + col1 ) * - CAST( NULL AS SIGNED ) + + col2 AND NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-7475
SELECT ALL COUNT ( * ), - MAX ( - + col2 ) AS col1 FROM tab0 WHERE NOT col0 * + col2 / + 27 + - col2 * + - col2 * - - col1 BETWEEN col2 + + col1 / + - ( + col1 ) * - CAST ( NULL AS INTEGER ) + + col2 AND NULL
----
0
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND col1 / + col1 * - - col2 * col2 )
----

query I rowsort
SELECT ALL col2 * + 98 * - - col1 - - col2 + + - col0 FROM tab1 cor0
----
131757
28884
313185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7478
SELECT + + col1 * - 58 + - - CAST( 58 AS SIGNED ) FROM tab2 AS cor0
----
-2900
-3828
-4408

skipif mysql # not compatible
query I rowsort label-7478
SELECT + + col1 * - 58 + - - CAST ( 58 AS INTEGER ) FROM tab2 AS cor0
----
-2900
-3828
-4408

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 98 NOT BETWEEN col2 - col2 AND ( + - col0 * 58 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7480
SELECT ALL - 5 + - - COUNT( DISTINCT 86 ) FROM tab0 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7480
SELECT ALL - 5 + - - COUNT ( DISTINCT 86 ) FROM tab0 cor0
----
-4

query II rowsort
SELECT ALL col0 * col2 AS col2, col2 AS col2 FROM tab0 AS cor0
----
705
47
870
10
9603
99

query I rowsort
SELECT DISTINCT + col0 + - + col1 + 9 + + col0 FROM tab2 AS cor0
----
50
60
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT ALL + 42 * - - COUNT( * ) AS col0 FROM tab2
----
126

skipif mysql # not compatible
query I rowsort label-7483
SELECT ALL + 42 * - - COUNT ( * ) AS col0 FROM tab2
----
126

query I rowsort
SELECT - col0 * + - col1 + col1 FROM tab2
----
2397
5005
5092

query I rowsort
SELECT - 82 * + col1 * - + col0 FROM tab1
----
34850
350714
58548

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7486
SELECT ALL 48 DIV ( - 51 ), COUNT( * ) AS col2 FROM tab0
----
0
3

skipif mysql # not compatible
query II rowsort label-7486
SELECT ALL 48 / ( - 51 ), COUNT ( * ) AS col2 FROM tab0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - + col2 col1 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-7488
SELECT DISTINCT col2 DIV - - col2 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7488
SELECT DISTINCT col2 / - - col2 AS col1 FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) <= ( + col2 * - 90 * col0 + 91 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - col1 col1 FROM tab2 cor0
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-7491
SELECT DISTINCT - ( - - ( + + 97 ) ) DIV - + col1 + + 35 AS col0 FROM tab0 cor0
----
132
36
39

skipif mysql # not compatible
query I rowsort label-7491
SELECT DISTINCT - ( - - ( + + 97 ) ) / - + col1 + + 35 AS col0 FROM tab0 cor0
----
132
36
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7492
SELECT ALL - + col2 + - col2 - - col1 DIV - ( 63 ) * - + col0 + + col0 AS col1 FROM tab1 AS cor0
----
-141
-33
-45

skipif mysql # not compatible
query I rowsort label-7492
SELECT ALL - + col2 + - col2 - - col1 / - ( 63 ) * - + col0 + + col0 AS col1 FROM tab1 AS cor0
----
-141
-33
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + - 16 * - 99 - 64 AS col1, ( 73 ) col2 FROM tab0
----
128240
73
1520
73
33200
73

query I rowsort
SELECT DISTINCT col2 + + col0 * + 33 FROM tab0
----
2881
3300
542

query I rowsort
SELECT col0 * - - col2 FROM tab0 WHERE + 34 + + + col1 - + - col2 * + col0 <> NULL
----

query I rowsort
SELECT ALL col2 * 3 AS col0 FROM tab2 AS cor0 WHERE NOT + col0 + col0 IN ( col1 * - 13 )
----
120
174
69

query I rowsort
SELECT - 30 * col0 AS col2 FROM tab1 AS cor0
----
-1530
-2550
-2730

onlyif mysql # aggregate syntax: 
query I rowsort label-7498
SELECT - - MAX( - 49 ) FROM tab2 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-7498
SELECT - - MAX ( - 49 ) FROM tab2 cor0
----
-49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 <> - + col2 + - + 60 * + - col2 * col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7500
SELECT + 35 DIV 44 * - col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7500
SELECT + 35 / 44 * - col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT - - MAX( + + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7501
SELECT - - MAX ( + + ( col1 ) ) AS col2 FROM tab1 AS cor0
----
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 86 AND col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT + col1 + + - col0 IS NULL )
----

query I rowsort
SELECT 19 * - + col2 AS col2 FROM tab0
----
-1881
-190
-893

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7506
SELECT DISTINCT 5, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
5
-3

skipif mysql # not compatible
query II rowsort label-7506
SELECT DISTINCT 5, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
5
-3

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT - + ( - col2 ) * - 36 * - col0 * - - col1 + + 41 BETWEEN - 21 AND + 58
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7508
SELECT DISTINCT - MAX( - + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7508
SELECT DISTINCT - MAX ( - + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7509
SELECT ALL - 54, - col2 DIV - 20 AS col1 FROM tab2
----
-54
1
-54
2
-54
2

skipif mysql # not compatible
query II rowsort label-7509
SELECT ALL - 54, - col2 / - 20 AS col1 FROM tab2
----
-54
1
-54
2
-54
2

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col2 >= NULL
----

query I rowsort
SELECT DISTINCT - 33 AS col1 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
-33

query I rowsort
SELECT DISTINCT - 87 * col2 * + 31 AS col2 FROM tab0 AS cor0
----
-126759
-267003
-26970

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( + 96, + col2 * 58, - col2, + col1 * col2, + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7514
SELECT ALL - + 68 + + + ( - MIN( - col1 ) ) * + - 43 * + COUNT( * ) FROM tab1 AS cor0 WHERE col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL - + 68 + + + ( - MIN ( - col1 ) ) * + - 43 * + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 = NULL
----
NULL

query I rowsort
SELECT + col2 * + 14 AS col0 FROM tab2 WHERE + - col1 <= + - col0
----
322
560

query I rowsort
SELECT DISTINCT - ( - - col2 ) * 40 AS col0 FROM tab0
----
-1880
-3960
-400

onlyif mysql # DIV for integer division: 
query II rowsort label-7517
SELECT ALL + col2 DIV 4 AS col0, + 47 * 72 FROM tab2
----
10
3384
14
3384
5
3384

skipif mysql # not compatible
query II rowsort label-7517
SELECT ALL + col2 / 4 AS col0, + 47 * 72 FROM tab2
----
10
3384
14
3384
5
3384

onlyif mysql # DIV for integer division: 
query II rowsort label-7518
SELECT + col0 + - 42 DIV + col2 + + - col2 + col2 - - + ( - - col1 ), 63 * + + 38 AS col1 FROM tab1
----
138
2394
65
2394
90
2394

skipif mysql # not compatible
query II rowsort label-7518
SELECT + col0 + - 42 / + col2 + + - col2 + col2 - - + ( - - col1 ), 63 * + + 38 AS col1 FROM tab1
----
138
2394
65
2394
90
2394

onlyif mysql # aggregate syntax: 
query I rowsort label-7519
SELECT DISTINCT + COUNT( * ) - + 77 FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-7519
SELECT DISTINCT + COUNT ( * ) - + 77 FROM tab2
----
-74

query I rowsort
SELECT ALL 59 * + + 69 FROM tab1
----
4071
4071
4071

query I rowsort
SELECT ALL + 81 + col0 AS col0 FROM tab0
----
168
178
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7522
SELECT + + 13 + + - CAST( NULL AS SIGNED ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7522
SELECT + + 13 + + - CAST ( NULL AS INTEGER ) * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7523
SELECT ALL - COUNT( * ) + + 11 + + COUNT( * ) * + COUNT( * ) FROM tab1 cor0
----
17

skipif mysql # not compatible
query I rowsort label-7523
SELECT ALL - COUNT ( * ) + + 11 + + COUNT ( * ) * + COUNT ( * ) FROM tab1 cor0
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 49 * 67 < - 44
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT + MAX( ALL + ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7525
SELECT + MAX ( ALL + ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7526
SELECT DISTINCT CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7526
SELECT DISTINCT CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT - + ( + 46 ) * + col0 FROM tab0 AS cor0
----
-4002
-4462
-690

query I rowsort
SELECT ALL - - 39 * - + col2 AS col2 FROM tab2 AS cor0
----
-1560
-2262
-897

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT ALL - - MAX( col0 ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7529
SELECT ALL - - MAX ( col0 ) FROM tab0 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 * - ( + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7531
SELECT ( + col0 ) DIV + ( - 46 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7531
SELECT ( + col0 ) / + ( - 46 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7532
SELECT DISTINCT - CAST( + + 33 AS SIGNED ) DIV MIN( + - col0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7532
SELECT DISTINCT - CAST ( + + 33 AS INTEGER ) / MIN ( + - col0 ) FROM tab0 cor0
----
0

query I rowsort
SELECT - col0 * + - 39 + - col0 AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - + 87 * - 4
----

query II rowsort
SELECT col2 * col1, ( - - col2 ) AS col0 FROM tab0
----
210
10
3807
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 57 ) col2 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT ALL - + col1 FROM tab2 AS cor0 WHERE + 61 * + - col0 * - col0 IS NOT NULL
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7537
SELECT ALL col2 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7537
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7539
SELECT ALL - CAST( + col1 AS SIGNED ), - col0 AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

skipif mysql # not compatible
query II rowsort label-7539
SELECT ALL - CAST ( + col1 AS INTEGER ), - col0 AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7540
SELECT ALL - COUNT( * ) AS col2 FROM tab2 WHERE NOT - ( - - col0 ) * - 14 NOT BETWEEN col1 + + CAST( - col2 AS SIGNED ) AND - + 67
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT ALL - COUNT ( * ) AS col2 FROM tab2 WHERE NOT - ( - - col0 ) * - 14 NOT BETWEEN col1 + + CAST ( - col2 AS INTEGER ) AND - + 67
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7541
SELECT DISTINCT + MIN( - col1 ) AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-7541
SELECT DISTINCT + MIN ( - col1 ) AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7542
SELECT DISTINCT CAST( MIN( DISTINCT + - col1 ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-7542
SELECT DISTINCT CAST ( MIN ( DISTINCT + - col1 ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-47

query I rowsort
SELECT ( col0 ) + 23 * + + 37 FROM tab1 AS cor0
----
902
936
942

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 cor0 WHERE + col0 * col2 IS NULL
----

query I rowsort
SELECT col2 + + col0 + - + col0 FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT + 5 + - col0 AS col2 FROM tab2 AS cor0
----
-41
-59
-70

query I rowsort
SELECT col1 + 76 FROM tab1 AS cor0
----
123
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7548
SELECT DISTINCT 80 + + - COUNT( * ) FROM tab0 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-7548
SELECT DISTINCT 80 + + - COUNT ( * ) FROM tab0 AS cor0
----
77

query I rowsort
SELECT col2 * - - 65 AS col0 FROM tab1
----
3835
4420
6240

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7550
SELECT CAST( - + 18 AS DECIMAL ) * + CAST( + col2 AS SIGNED ) + + - col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + col2 * - col2 / col2
----

skipif mysql # not compatible
query I rowsort label-7550
SELECT CAST ( - + 18 AS REAL ) * + CAST ( + col2 AS INTEGER ) + + - col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - + col2 * - col2 / col2
----

query I rowsort
SELECT ALL - col2 - 25 FROM tab1
----
-121
-84
-93

query I rowsort
SELECT - col2 - 27 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT COUNT( * ) * 23 AS col0 FROM tab1 AS cor0 WHERE 48 + + col2 >= 46
----
69

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT COUNT ( * ) * 23 AS col0 FROM tab1 AS cor0 WHERE 48 + + col2 >= 46
----
69

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-7555
SELECT DISTINCT - - COUNT( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7555
SELECT DISTINCT - - COUNT ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 27 * + ( - col1 ) FROM tab1 AS cor0
----
-1269
-135
-378

query I rowsort
SELECT - col1 * + 40 * + - 60 * - 66 AS col0 FROM tab1 cor0
----
-2217600
-7444800
-792000

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( 33 * - col1 + + col1 ) IS NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 68 * 82 AS col1 FROM tab1 AS cor0
----
-5576
-5576
-5576

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7560
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - col0 AS SIGNED ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7560
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - col0 AS INTEGER ) + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col2 AS col0, - col0 FROM tab1 AS cor0 WHERE NOT col2 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - - 20 NOT IN ( - col0, 30 * - ( + 97 ) + - - col1, + - 92 - - 12 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL MIN( + - 96 ) FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL MIN ( + - 96 ) FROM tab0
----
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 - + + 29 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 52 AS col2, + col2 * col2 AS col2 FROM tab2
----
52
1600
52
3364
52
529

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN + + 91 - + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + col0 col2 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7568
SELECT ALL + ( 2 ) DIV + 87 * col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7568
SELECT ALL + ( 2 ) / + 87 * col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 + - ( 65 ) FROM tab2 AS cor0
----
-116
-132
-142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7570
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * col0 > NULL
----

skipif mysql # not compatible
query III rowsort label-7570
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * col0 > NULL
----

query I rowsort
SELECT + 32 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 < + + col0 + - col1 + ( - 72 ) / - 30
----
15
81
47
97
1
99

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 AS cor0 WHERE NOT + 27 >= NULL
----

query I rowsort
SELECT ALL - col1 * 11 AS col0 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT 96 AS col2 FROM tab0 cor0
----
96
96
96

query I rowsort
SELECT + col0 * + col0 + + col1 AS col2 FROM tab0 AS cor0
----
306
7590
9410

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 + + + 55 * ( col0 ) IS NULL
----

query I rowsort
SELECT col1 * ( + col1 ) FROM tab0 cor0
----
1
441
6561

query I rowsort
SELECT DISTINCT + col0 + - 64 FROM tab2 AS cor0
----
-18
0
11

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT 40 * - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7580
SELECT 40 * - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----
0

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE - 34 + col1 IS NULL
----

query I rowsort
SELECT ALL col0 + + ( - - col2 ) FROM tab2 AS cor0
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + + + col1 col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 12, 46 + - col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7585
SELECT - 27 + 59 * ( + COUNT( * ) ) AS col2 FROM tab2 WHERE NULL = - CAST( NULL AS SIGNED )
----
-27

skipif mysql # not compatible
query I rowsort label-7585
SELECT - 27 + 59 * ( + COUNT ( * ) ) AS col2 FROM tab2 WHERE NULL = - CAST ( NULL AS INTEGER )
----
-27

query I rowsort
SELECT + 20 + + + col2 FROM tab0
----
119
30
67

query II rowsort
SELECT col2 + 94 - + col1 AS col1, + col0 FROM tab2
----
57
64
66
46
85
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 - 14 col0 FROM tab0 WHERE NULL BETWEEN 33 + - - col0 + + + ( - col0 ) * - 37 + - - col1 - - 16 AND NULL
----

query I rowsort
SELECT ( - - col2 ) - - 56 + 92 FROM tab0 AS cor0 WHERE ( NULL ) > + - 74
----

query II rowsort
SELECT DISTINCT 89, + col1 FROM tab0 AS cor0
----
89
1
89
21
89
81

query II rowsort
SELECT + col1 AS col1, 82 FROM tab2
----
51
82
67
82
77
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT 33 * - ( - COUNT( * ) ) FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-7592
SELECT 33 * - ( - COUNT ( * ) ) FROM tab2 cor0
----
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 * - 56 - col1 < + - col2 * + col0 + - col2 - - 27
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7594
SELECT DISTINCT col0 * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
1058
2560
4350

skipif mysql # not compatible
query I rowsort label-7594
SELECT DISTINCT col0 * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT ALL + 65 * + CAST( 98 AS SIGNED ) / - + CAST( NULL AS SIGNED ) * + + ( - - 64 ) 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-7595
SELECT ALL + 65 * + CAST ( 98 AS INTEGER ) / - + CAST ( NULL AS INTEGER ) * + + ( - - 64 ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + col1 ) * ( col1 ) AS col1 FROM tab2 AS cor0
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col0 col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-7598
SELECT DISTINCT MIN( - + col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7598
SELECT DISTINCT MIN ( - + col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-7599
SELECT + 77 DIV col1 col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7599
SELECT + 77 / col1 col1 FROM tab1
----
1
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT + MAX( - 72 ) * + COUNT( * ) * 62 + - 88 col0 FROM tab0
----
-13480

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7600
SELECT + MAX ( - 72 ) * + COUNT ( * ) * 62 + - 88 col0 FROM tab0
----
-13480

query I rowsort
SELECT ALL 72 * - - 52 AS col1 FROM tab0
----
3744
3744
3744

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 95 IS NULL
----

query II rowsort
SELECT 10 * - col1, col2 FROM tab2 AS cor0
----
-510
23
-670
58
-770
40

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL BETWEEN + + 80 AND + - 81 OR NOT NULL IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 99 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT DISTINCT ( 42 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT - + COUNT( DISTINCT + + col1 ) + - MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-7607
SELECT - + COUNT ( DISTINCT + + col1 ) + - MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7608
SELECT ALL + SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7608
SELECT ALL + SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 52 + - + col0 col1 FROM tab0 AS cor0
----
-35
-45
37

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7610
SELECT + 62 AS col1, - CAST( - col1 AS SIGNED ) FROM tab1 AS cor0
----
62
14
62
47
62
5

skipif mysql # not compatible
query II rowsort label-7610
SELECT + 62 AS col1, - CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0
----
62
14
62
47
62
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT - SUM( - col0 ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7611
SELECT - SUM ( - col0 ) col0 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - + 13 + - 59 * + ( col1 ) AS col2 FROM tab2 AS cor0
----
-3022
-3966
-4556

onlyif mysql # aggregate syntax: 
query I rowsort label-7613
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col0 + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7613
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col0 + + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT ALL COUNT( 80 ) - 66 AS col2 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7614
SELECT ALL COUNT ( 80 ) - 66 AS col2 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT ALL + col0 - - 67 FROM tab0
----
154
164
82

query I rowsort
SELECT + ( + 22 ) FROM tab0
----
22
22
22

query I rowsort
SELECT DISTINCT + col2 - - col0 * - col0 AS col2 FROM tab0
----
-178
-7559
-9310

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7618
SELECT DISTINCT + CAST( 90 AS SIGNED ) + - ( + col1 ) * - + 8 FROM tab0
----
258
738
98

skipif mysql # not compatible
query I rowsort label-7618
SELECT DISTINCT + CAST ( 90 AS INTEGER ) + - ( + col1 ) * - + 8 FROM tab0
----
258
738
98

query I rowsort
SELECT 83 / + + col0 FROM tab2 WHERE 43 = 14
----

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 64
----

query III rowsort
SELECT * FROM tab1 WHERE - 40 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7622
SELECT - + SUM( - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-7622
SELECT - + SUM ( - col2 ) AS col0 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 33 * + col2, - col1 + + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7624
SELECT + col1 DIV col1 * col1 AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7624
SELECT + col1 / col1 * col1 AS col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + 58 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7626
SELECT DISTINCT - + 4 * + COUNT( * ) FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-7626
SELECT DISTINCT - + 4 * + COUNT ( * ) FROM tab1 AS cor0
----
-12

query I rowsort
SELECT ALL + col2 * ( - col0 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query II rowsort
SELECT ALL - col2 AS col1, + 20 * + 55 FROM tab0 AS cor0
----
-10
1100
-47
1100
-99
1100

onlyif mysql # aggregate syntax: 
query I rowsort label-7629
SELECT DISTINCT COUNT( * ) * 48 AS col0 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT COUNT ( * ) * 48 AS col0 FROM tab1 AS cor0
----
144

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col2 + + 45 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7631
SELECT + + col2 * - 21 * + - 10 + - 9 - col1 DIV col1 FROM tab1 AS cor0
----
12380
14270
20150

skipif mysql # not compatible
query I rowsort label-7631
SELECT + + col2 * - 21 * + - 10 + - 9 - col1 / col1 FROM tab1 AS cor0
----
12380
14270
20150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 37 col2 FROM tab2 AS cor0
----
37

query I rowsort
SELECT DISTINCT col2 + + 22 AS col2 FROM tab2 AS cor0
----
45
62
80

query II rowsort
SELECT DISTINCT col0 AS col2, - col2 + + col0 AS col2 FROM tab0
----
15
-32
87
77
97
-2

query I rowsort
SELECT ALL 86 AS col0 FROM tab0 WHERE NOT + + 80 * 12 - - - 34 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 * + col2 AS col0, - 65 + - 57 * - 78 FROM tab2
----
1173
4381
3080
4381
3886
4381

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7637
SELECT + 8 DIV - ( COUNT( * ) ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-7637
SELECT + 8 / - ( COUNT ( * ) ) AS col2 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT COUNT( * ) * 45 AS col2 FROM tab0
----
135

skipif mysql # not compatible
query I rowsort label-7638
SELECT COUNT ( * ) * 45 AS col2 FROM tab0
----
135

onlyif mysql # aggregate syntax: 
query I rowsort label-7639
SELECT ALL ( SUM( ALL - ( + 18 ) ) ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-7639
SELECT ALL ( SUM ( ALL - ( + 18 ) ) ) FROM tab0
----
-54

query I rowsort
SELECT DISTINCT 97 FROM tab1 AS cor0 WHERE NOT ( NOT - - 30 - - - col0 IS NOT NULL )
----
97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 >= + col1 * - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7642
SELECT ALL + + CAST( + col1 AS SIGNED ) DIV - 84 + + col1 AS col2, 80 * - - col2 AS col1 FROM tab0 cor0
----
1
7920
21
800
81
3760

skipif mysql # not compatible
query II rowsort label-7642
SELECT ALL + + CAST ( + col1 AS INTEGER ) / - 84 + + col1 AS col2, 80 * - - col2 AS col1 FROM tab0 cor0
----
1
7920
21
800
81
3760

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT + COUNT( * ) + MIN( 89 ) FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7643
SELECT + COUNT ( * ) + MIN ( 89 ) FROM tab2 AS cor0
----
92

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7644
SELECT - COUNT( ALL - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7644
SELECT - COUNT ( ALL - CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - col1 * 45 AS col1 FROM tab1
----
-2115
-225
-630

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7646
SELECT + ( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) * + + 94 - - + 57 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7646
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) * + + 94 - - + 57 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7647
SELECT ALL + 28 * + COUNT( ALL - - col0 ) + - 80 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7647
SELECT ALL + 28 * + COUNT ( ALL - - col0 ) + - 80 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT 64 * - + 2 + 75 * + 45 + - 1 AS col0 FROM tab0
----
3246

query I rowsort
SELECT + 78 + + 39 FROM tab1
----
117
117
117

query I rowsort
SELECT 32 + - 0 + + col1 FROM tab2
----
109
83
99

query I rowsort
SELECT DISTINCT + 10 * - - 89 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT 87 AS col1, col1 FROM tab1
----
87
14
87
47
87
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT + 12 * col0 DIV + 28 AS col2 FROM tab1
----
21
36
39

skipif mysql # not compatible
query I rowsort label-7653
SELECT + 12 * col0 / + 28 AS col2 FROM tab1
----
21
36
39

onlyif mysql # DIV for integer division: 
query I rowsort label-7654
SELECT DISTINCT 91 DIV + col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7654
SELECT DISTINCT 91 / + col0 FROM tab2
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > + col0 + - - col2
----

query I rowsort
SELECT DISTINCT - + ( + 61 ) AS col1 FROM tab1 AS cor0
----
-61

query I rowsort
SELECT - ( - 55 ) * - col0 * col2 AS col1 FROM tab2 AS cor0
----
-140800
-239250
-58190

query I rowsort
SELECT DISTINCT - 27 + + col1 AS col2 FROM tab1
----
-13
-22
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7659
SELECT ALL CAST( - MIN( ALL - 44 ) AS SIGNED ) AS col1 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL CAST ( - MIN ( ALL - 44 ) AS INTEGER ) AS col1 FROM tab0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7660
SELECT ALL * FROM tab1 WHERE NOT - ( + ( + CAST( + col0 AS SIGNED ) ) ) BETWEEN NULL AND col2
----

skipif mysql # not compatible
query III rowsort label-7660
SELECT ALL * FROM tab1 WHERE NOT - ( + ( + CAST ( + col0 AS INTEGER ) ) ) BETWEEN NULL AND col2
----

query I rowsort
SELECT 75 AS col1 FROM tab1 WHERE NOT col2 NOT BETWEEN col0 * ( + 75 ) AND col2
----

query I rowsort
SELECT - 37 * col0 + col2 * 69 AS col2 FROM tab0
----
-2529
2688
3242

onlyif mysql # DIV for integer division: 
query I rowsort label-7663
SELECT + col2 + col2 DIV 93 AS col0 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-7663
SELECT + col2 + col2 / 93 AS col0 FROM tab0
----
10
100
47

query I rowsort
SELECT DISTINCT ( col2 ) + 51 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
150
61
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7665
SELECT DISTINCT + 46 - + COUNT( * ) col2 FROM tab1 WHERE NOT ( - col1 * - col1 ) IS NULL
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7665
SELECT DISTINCT + 46 - + COUNT ( * ) col2 FROM tab1 WHERE NOT ( - col1 * - col1 ) IS NULL
----
43

query I rowsort
SELECT DISTINCT col0 * - 0 FROM tab1
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7667
SELECT - col1 FROM tab2 WHERE + CAST( NULL AS DECIMAL ) * col1 NOT BETWEEN ( col2 * - 81 ) AND + 65 + - 16 * col2
----

skipif mysql # not compatible
query I rowsort label-7667
SELECT - col1 FROM tab2 WHERE + CAST ( NULL AS REAL ) * col1 NOT BETWEEN ( col2 * - 81 ) AND + 65 + - 16 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7668
SELECT COUNT( * ) * + ( 18 ) + + ( - 95 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-7668
SELECT COUNT ( * ) * + ( 18 ) + + ( - 95 ) FROM tab1
----
-41

query I rowsort
SELECT DISTINCT 50 * + 10 + col2 AS col0 FROM tab0
----
510
547
599

query I rowsort
SELECT col1 * - 55 AS col1 FROM tab1
----
-2585
-275
-770

query I rowsort
SELECT 74 * - 30 FROM tab2
----
-2220
-2220
-2220

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT COUNT( + col2 ) * 61 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-7672
SELECT COUNT ( + col2 ) * 61 FROM tab0
----
183

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 * - 91 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 + - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * 46 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7676
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE ( col1 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-7676
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT ALL + 17 * 71 + 98 FROM tab0
----
1305
1305
1305

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT - MIN( ALL ( ( col1 ) ) ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7678
SELECT - MIN ( ALL ( ( col1 ) ) ) col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7679
SELECT col2 DIV - col2 + + col0 * - 89 AS col0 FROM tab1
----
-4540
-7566
-8100

skipif mysql # not compatible
query I rowsort label-7679
SELECT col2 / - col2 + + col0 * - 89 AS col0 FROM tab1
----
-4540
-7566
-8100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) + - 25 col0 FROM tab1 WHERE NOT - ( 88 ) IS NULL
----
-110
-116
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT DISTINCT COUNT( * ) * + 65 FROM tab1 cor0
----
195

skipif mysql # not compatible
query I rowsort label-7681
SELECT DISTINCT COUNT ( * ) * + 65 FROM tab1 cor0
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 0 col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7683
SELECT DISTINCT 44 col0 FROM tab0 AS cor0 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-7683
SELECT DISTINCT 44 col0 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + 96 IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7686
SELECT - 49 - + 56 DIV 60 AS col1 FROM tab1 AS cor0
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-7686
SELECT - 49 - + 56 / 60 AS col1 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT DISTINCT - col2 + - 5 AS col1 FROM tab0 AS cor0
----
-104
-15
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7688
SELECT MAX( ALL col1 ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7688
SELECT MAX ( ALL col1 ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col2 - col2 col0 FROM tab0
----
-198
-220
-3854

query I rowsort
SELECT - - col0 * 85 AS col0 FROM tab0 cor0
----
1275
7395
8245

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT ALL - ( - CAST( - col2 AS SIGNED ) ) + + 41 FROM tab2 AS cor0
----
-17
1
18

skipif mysql # not compatible
query I rowsort label-7691
SELECT ALL - ( - CAST ( - col2 AS INTEGER ) ) + + 41 FROM tab2 AS cor0
----
-17
1
18

query I rowsort
SELECT ALL - col1 * - col0 + + 97 AS col0 FROM tab0 AS cor0 WHERE NOT ( + col0 + 13 / col2 ) NOT IN ( col2 )
----

query I rowsort
SELECT ALL + - 4 AS col1 FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7694
SELECT DISTINCT 72 + - col1 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7694
SELECT DISTINCT 72 + - col1 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * - ( col0 ) AS col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 BETWEEN NULL AND ( + 29 / col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7697
SELECT + + COUNT( ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7697
SELECT + + COUNT ( ( - col1 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7698
SELECT + col2 DIV 62 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7698
SELECT + col2 / 62 AS col0 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT DISTINCT - ( col0 ) * - col2 FROM tab1 AS cor0 WHERE NOT + col1 / col1 NOT IN ( 73 * - 86 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7700
SELECT SUM( DISTINCT - 17 ) AS col0 FROM tab0 cor0
----
-17

skipif mysql # not compatible
query I rowsort label-7700
SELECT SUM ( DISTINCT - 17 ) AS col0 FROM tab0 cor0
----
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7701
SELECT ALL + col2 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7701
SELECT ALL + col2 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 42 AS col0 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT 70 * - - col2 FROM tab1
----
4130
4760
6720

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7705
SELECT - COUNT( 29 ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7705
SELECT - COUNT ( 29 ) AS col2 FROM tab2 WHERE NOT col2 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE 67 - + 66 IS NULL
----

query I rowsort
SELECT 61 * + ( col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
2867
305
854

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - ( - 79 ) * col2 col2 FROM tab2 AS cor0
----
-202240
-343650
-83582

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < ( 87 )
----

query I rowsort
SELECT DISTINCT - 19 * ( + col1 ) AS col1 FROM tab1 AS cor0
----
-266
-893
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT + 26 * - col2 * + col1 + - ( - 97 + - col1 ) DIV + col0 FROM tab1 AS cor0
----
-34942
-7669
-83095

skipif mysql # not compatible
query I rowsort label-7711
SELECT + 26 * - col2 * + col1 + - ( - 97 + - col1 ) / + col0 FROM tab1 AS cor0
----
-34942
-7669
-83095

onlyif mysql # aggregate syntax: 
query I rowsort label-7712
SELECT ALL MAX( + ( - - col2 ) ) * 61 FROM tab0
----
6039

skipif mysql # not compatible
query I rowsort label-7712
SELECT ALL MAX ( + ( - - col2 ) ) * 61 FROM tab0
----
6039

onlyif mysql # aggregate syntax: 
query I rowsort label-7713
SELECT - MAX( - + 93 ) AS col1 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7713
SELECT - MAX ( - + 93 ) AS col1 FROM tab2
----
93

query I rowsort
SELECT DISTINCT - 67 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-67

query I rowsort
SELECT + 79 * + 80 FROM tab2 AS cor0
----
6320
6320
6320

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7716
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * + 44 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7716
SELECT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * + 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7717
SELECT + SUM( col1 ) * 94 FROM tab0 AS cor0
----
9682

skipif mysql # not compatible
query I rowsort label-7717
SELECT + SUM ( col1 ) * 94 FROM tab0 AS cor0
----
9682

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN ( - col0 ) AND + col2
----
87
21
10

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / col0 = ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 87 * col2 + col1 * col1 <> ( NULL ) OR NOT ( col2 ) BETWEEN NULL AND 11 / col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col1 + + + col2 * ( col0 ) BETWEEN NULL AND ( - 54 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT - + ( - + SUM( - + col1 ) ) AS col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7722
SELECT - + ( - + SUM ( - + col1 ) ) AS col1 FROM tab2 cor0
----
-195

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 + col2 - + 50 / + 83 NOT BETWEEN NULL AND ( + col0 ) + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 92 + - ( 74 ) )
----

query I rowsort
SELECT ( col0 ) + + col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT ALL - ( 35 ) + 70 * 23 FROM tab1 AS cor0
----
1575
1575
1575

query I rowsort
SELECT ALL + col0 + 42 AS col2 FROM tab1 AS cor0
----
127
133
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 82 AS col1, 83 col1 FROM tab0 cor0
----
82
83
82
83
82
83

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < + + col0 * - ( - col1 ) + 0
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE ( + - 77 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT col2 + col1 AS col1 FROM tab1 WHERE ( + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7733
SELECT DISTINCT 66 / + 63 / + - CAST( NULL AS SIGNED ) * - col1 + - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT 66 / + 63 / + - CAST ( NULL AS INTEGER ) * - col1 + - col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7734
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-7734
SELECT ALL ( + COUNT ( - col2 ) ) col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT ( + COUNT( * ) ) * - MAX( DISTINCT - col0 ) + COUNT( ALL col2 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-7735
SELECT ( + COUNT ( * ) ) * - MAX ( DISTINCT - col0 ) + COUNT ( ALL col2 ) FROM tab0
----
48

query I rowsort
SELECT ALL 24 * col2 AS col2 FROM tab1 cor0 WHERE ( - ( - col2 ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7737
SELECT ALL - MAX( - 78 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
78

skipif mysql # not compatible
query I rowsort label-7737
SELECT ALL - MAX ( - 78 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
78

query I rowsort
SELECT - 67 - + 97 FROM tab2
----
-164
-164
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT + COUNT( * ) * - MIN( DISTINCT col1 ) * - + COUNT( * ) * + + MAX( ALL col2 ) - ( - 64 ) FROM tab2
----
26686

skipif mysql # not compatible
query I rowsort label-7739
SELECT + COUNT ( * ) * - MIN ( DISTINCT col1 ) * - + COUNT ( * ) * + + MAX ( ALL col2 ) - ( - 64 ) FROM tab2
----
26686

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7741
SELECT + col1 - - CAST( NULL AS SIGNED ) + 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7741
SELECT + col1 - - CAST ( NULL AS INTEGER ) + 33 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - ( + 70 ) AS col1 FROM tab0 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7743
SELECT ALL - CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7743
SELECT ALL - CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * col1 - + 83 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT 75 NOT BETWEEN ( - 8 * col1 ) AND + col0 * col1
----
-1367
-4472
-7254

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL COUNT( * ) * + + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7745
SELECT ALL COUNT ( * ) * + + COUNT ( * ) FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * - 88 > ( - 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 30 AND ( + col0 + + + col2 + - col1 / - 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7748
SELECT + SUM( ALL - - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7748
SELECT + SUM ( ALL - - col1 ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 + + + col0 AS col2 FROM tab0 WHERE NOT - + 79 IS NULL
----
174
194
30

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE + col1 + 45 <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7751
SELECT DISTINCT MAX( 63 ) * - COUNT( * ) FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT MAX ( 63 ) * - COUNT ( * ) FROM tab1
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7752
SELECT ALL CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col1, + 38 FROM tab1
----
-14
38
-47
38
-5
38

onlyif mysql # aggregate syntax: 
query II rowsort label-7754
SELECT COUNT( * ) AS col0, - 22 FROM tab2
----
3
-22

skipif mysql # not compatible
query II rowsort label-7754
SELECT COUNT ( * ) AS col0, - 22 FROM tab2
----
3
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, + col1 col2 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7756
SELECT DISTINCT - COUNT( * ) DIV + - 44 * - 8 FROM tab2 WHERE NULL = - ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7756
SELECT DISTINCT - COUNT ( * ) / + - 44 * - 8 FROM tab2 WHERE NULL = - ( + - col2 )
----
0

query I rowsort
SELECT DISTINCT ( - - col0 ) * + 57 AS col0 FROM tab1 AS cor0
----
2907
4845
5187

onlyif mysql # aggregate syntax: 
query I rowsort label-7758
SELECT SUM( col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-7758
SELECT SUM ( col2 ) AS col2 FROM tab0 AS cor0
----
156

query I rowsort
SELECT ALL col1 * - + ( col0 ) FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7760
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7760
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + col0 * + col1 AS col1 FROM tab0
----
158949
18225
9409

query I rowsort
SELECT 8 * - col2 FROM tab1
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT DISTINCT 41 + + SUM( ALL 2 ) FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7763
SELECT DISTINCT 41 + + SUM ( ALL 2 ) FROM tab2 AS cor0
----
47

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE ( + 58 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 98 + col1 col2, + col0 FROM tab1 AS cor0
----
103
85
112
51
145
91

query II rowsort
SELECT + col0 + - 19 AS col2, - 80 * 55 FROM tab2 AS cor0
----
27
-4400
45
-4400
56
-4400

query I rowsort
SELECT DISTINCT - 79 * + - col1 + + + col1 AS col1 FROM tab2
----
4080
5360
6160

query II rowsort
SELECT + col2, + 47 * + + col0 FROM tab0
----
10
4089
47
705
99
4559

query I rowsort
SELECT - 71 * - col1 AS col1 FROM tab2
----
3621
4757
5467

query I rowsort
SELECT DISTINCT col1 + - ( - - col1 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7772
SELECT ALL + + 87 DIV + 48 + + col1 + + - 78 FROM tab0 WHERE 62 IS NOT NULL
----
-56
-76
4

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + + 87 / + 48 + + col1 + + - 78 FROM tab0 WHERE 62 IS NOT NULL
----
-56
-76
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7773
SELECT COUNT( ALL col2 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7773
SELECT COUNT ( ALL col2 ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-7774
SELECT + COUNT( * ), COUNT( * ) col2 FROM tab2
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7774
SELECT + COUNT ( * ), COUNT ( * ) col2 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7775
SELECT - MAX( - 49 ) AS col1 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-7775
SELECT - MAX ( - 49 ) AS col1 FROM tab0
----
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7776
SELECT DISTINCT CAST( SUM( col2 ) AS SIGNED ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7776
SELECT DISTINCT CAST ( SUM ( col2 ) AS INTEGER ) AS col1 FROM tab2
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-7777
SELECT ALL 25 + + col2 DIV - - col0 FROM tab2
----
25
25
25

skipif mysql # not compatible
query I rowsort label-7777
SELECT ALL 25 + + col2 / - - col0 FROM tab2
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7778
SELECT - col2 * + col0 * - + CAST( NULL AS SIGNED ) * 45 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT - col2 * + col0 * - + CAST ( NULL AS INTEGER ) * 45 AS col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT 6 AS col1, col0 AS col0 FROM tab1
----
6
51
6
85
6
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7780
SELECT DISTINCT - SUM( 81 ) AS col0 FROM tab2 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-7780
SELECT DISTINCT - SUM ( 81 ) AS col0 FROM tab2 AS cor0
----
-243

query I rowsort
SELECT DISTINCT - - col0 + - col1 FROM tab0 cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7782
SELECT DISTINCT COUNT( * ) col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7782
SELECT DISTINCT COUNT ( * ) col0 FROM tab1, tab2 AS cor0
----
9

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 59 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 80 * + 4 * + - col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7785
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query II rowsort label-7786
SELECT - col2 DIV - 94 col1, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7786
SELECT - col2 / - 94 col1, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query I rowsort
SELECT 13 * 31 AS col0 FROM tab0 AS cor0
----
403
403
403

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7788
SELECT * FROM tab0 AS cor0 WHERE NOT col1 IN ( + 19, + ( + ( - CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-7788
SELECT * FROM tab0 AS cor0 WHERE NOT col1 IN ( + 19, + ( + ( - CAST ( NULL AS INTEGER ) ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT + COUNT( * ) * + 68 col0 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7789
SELECT + COUNT ( * ) * + 68 col0 FROM tab1 AS cor0
----
204

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 * + col2 col2, + 43 FROM tab2 AS cor0
----
1058
43
2560
43
4350
43

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT - 37 * - 84 * COUNT( * ) FROM tab0 AS cor0
----
9324

skipif mysql # not compatible
query I rowsort label-7791
SELECT - 37 * - 84 * COUNT ( * ) FROM tab0 AS cor0
----
9324

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 7 / + col2, - 24 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7793
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7794
SELECT DISTINCT - MIN( + + col2 ) AS col0, - 17 / CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
NULL

skipif mysql # not compatible
query II rowsort label-7794
SELECT DISTINCT - MIN ( + + col2 ) AS col0, - 17 / CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 WHERE NOT 99 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7795
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT 99 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE + col0 * - col0 = - + col1 AND - 24 BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7797
SELECT DISTINCT * FROM tab0 WHERE + + 67 + col1 IN ( + col2, ( - col0 ) - - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7797
SELECT DISTINCT * FROM tab0 WHERE + + 67 + col1 IN ( + col2, ( - col0 ) - - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7798
SELECT + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 48 - + + col0 BETWEEN - + col1 * - + col0 AND NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7798
SELECT + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 48 - + + col0 BETWEEN - + col1 * - + col0 AND NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7799
SELECT + col0 DIV col2 + col0 AS col0 FROM tab1
----
51
86
92

skipif mysql # not compatible
query I rowsort label-7799
SELECT + col0 / col2 + col0 AS col0 FROM tab1
----
51
86
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT CAST( + 6 AS SIGNED ) * + 60 + - COUNT( * ) AS col1 FROM tab1
----
357

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT CAST ( + 6 AS INTEGER ) * + 60 + - COUNT ( * ) AS col1 FROM tab1
----
357

query I rowsort
SELECT DISTINCT + col2 * + + col2 AS col1 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7802
SELECT + 70 col1, COUNT( * ) DIV MIN( + + col2 ) AS col0 FROM tab1 AS cor0
----
70
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7802
SELECT + 70 col1, COUNT ( * ) / MIN ( + + col2 ) AS col0 FROM tab1 AS cor0
----
70
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7803
SELECT + + col1 DIV + col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7803
SELECT + + col1 / + col1 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7804
SELECT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL > + col1
----
0

skipif mysql # not compatible
query I rowsort label-7804
SELECT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL > + col1
----
0

query I rowsort
SELECT + + 30 AS col0 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7806
SELECT - SUM( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7806
SELECT - SUM ( DISTINCT + col2 ) AS col0 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE 35 + - col2 BETWEEN + ( col1 ) AND - 85 * + col0 + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7808
SELECT ALL - SUM( + - col1 ) + + SUM( DISTINCT - CAST( + + col2 AS SIGNED ) ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-603

skipif mysql # not compatible
query I rowsort label-7808
SELECT ALL - SUM ( + - col1 ) + + SUM ( DISTINCT - CAST ( + + col2 AS INTEGER ) ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-603

query II rowsort
SELECT + 55, + col1 * - col1 AS col0 FROM tab0 AS cor0
----
55
-1
55
-441
55
-6561

query II rowsort
SELECT + col0 AS col1, + ( + - col0 ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT + 5 * ( + COUNT( DISTINCT + + col2 ) ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT + 5 * ( + COUNT ( DISTINCT + + col2 ) ) FROM tab1
----
15

query III rowsort
SELECT * FROM tab1 WHERE NULL > - + 9
----

query I rowsort
SELECT - 53 - 26 FROM tab1, tab0 AS cor0
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

query I rowsort
SELECT DISTINCT + col0 - - 91 AS col1 FROM tab2
----
137
155
166

query II rowsort
SELECT DISTINCT col0 * col1 AS col2, + 89 * + col0 FROM tab2
----
2346
4094
4928
5696
5025
6675

onlyif mysql # DIV for integer division: 
query II rowsort label-7816
SELECT ( + 74 ), col0 DIV - col1 AS col0 FROM tab1 AS cor0 WHERE - 66 NOT IN ( col0 )
----
74
-1
74
-17
74
-3

skipif mysql # not compatible
query II rowsort label-7816
SELECT ( + 74 ), col0 / - col1 AS col0 FROM tab1 AS cor0 WHERE - 66 NOT IN ( col0 )
----
74
-1
74
-17
74
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + 0 * - 51 * 64 col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - - 57 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7819
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT BETWEEN + 51 + + col1 * col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-7819
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT BETWEEN + 51 + + col1 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7820
SELECT ALL + MIN( + 77 ) col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7820
SELECT ALL + MIN ( + 77 ) col0 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7821
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST( NULL AS SIGNED ), - col0, + 36 )
----

skipif mysql # not compatible
query III rowsort label-7821
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - CAST ( NULL AS INTEGER ), - col0, + 36 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7822
SELECT ALL col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-7822
SELECT ALL col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + 93 * - - 57 * - + col0 FROM tab0
----
-461187
-514197
-79515

query I rowsort
SELECT ( + 16 ) FROM tab1
----
16
16
16

query I rowsort
SELECT ALL + col2 * + + col2 AS col2 FROM tab2
----
1600
3364
529

query I rowsort
SELECT DISTINCT + col0 + - col2 - - - col2 AS col0 FROM tab0 WHERE NOT + 1 + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 45 * col1 FROM tab2
----
-2295
-3015
-3465

query I rowsort
SELECT ( 39 ) AS col2 FROM tab2
----
39
39
39

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 NOT IN ( + - col0 + - col1, col0 / - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 56 + - + col0 - - 56 AS col1 FROM tab1 AS cor0
----
21
27
61

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 71 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE NULL < + 27 - col1 * 54 + - - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT + ( - + 7 ) / + col2 + - 79 + - - ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT + ( - + 7 ) / + col2 + - 79 + - - ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - col1 - + col2 + + col0 + 77 AS col2 FROM tab2 cor0
----
-2501
-4395
-5828

query I rowsort
SELECT + col2 + + 2 AS col0 FROM tab2 AS cor0
----
25
42
60

query I rowsort
SELECT DISTINCT + 44 - - 14 AS col0 FROM tab0 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT + MAX( - col1 ) AS col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7837
SELECT + MAX ( - col1 ) AS col0 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - 72 AS col1 FROM tab0 cor0
----
-72
-72
-72

query I rowsort
SELECT ALL ( + ( + 32 ) ) - col0 FROM tab2
----
-14
-32
-43

query I rowsort
SELECT ALL - 51 + - col1 AS col2 FROM tab0
----
-132
-52
-72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7841
SELECT DISTINCT + COUNT( * ) DIV - - 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT + COUNT ( * ) / - - 95 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + col1 * col0 * + + col1 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7843
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) BETWEEN + - col1 * + col0 AND + 86 * 55 + + - 97
----

skipif mysql # not compatible
query III rowsort label-7843
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) BETWEEN + - col1 * + col0 AND + 86 * 55 + + - 97
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col2 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT + col2 FROM tab2 WHERE + 62 IS NOT NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 - + - 66 * col0 col0 FROM tab0 cor0
----
1033
5785
6445

onlyif mysql # aggregate syntax: 
query I rowsort label-7847
SELECT - + ( + COUNT( * ) ) AS col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7847
SELECT - + ( + COUNT ( * ) ) AS col2 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT - MAX( - + 97 ) FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT - MAX ( - + 97 ) FROM tab2 AS cor0
----
97

query I rowsort
SELECT + + col2 * + + col0 + + - 82 FROM tab0 AS cor0
----
623
788
9521

query I rowsort
SELECT - 21 * + + col2 FROM tab2 AS cor0
----
-1218
-483
-840

query I rowsort
SELECT - - ( + col1 ) * + 45 FROM tab0 AS cor0
----
3645
45
945

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT + MAX( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7852
SELECT + MAX ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT - - col1 * - + col0 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + col0 * + ( col1 ) * + 28 FROM tab1 AS cor0
----
11900
119756
19992

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 49 AND ( col1 * - + 44 )
----

query II rowsort
SELECT col2 AS col1, col2 * col1 FROM tab0
----
10
210
47
3807
99
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 96 > + + 18
----

query I rowsort
SELECT - 50 * col0 AS col1 FROM tab2
----
-2300
-3200
-3750

query II rowsort
SELECT col0, - 28 FROM tab2
----
46
-28
64
-28
75
-28

query III rowsort
SELECT ALL * FROM tab1 WHERE - 90 - - 11 - - 85 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - 90 + + + col0 NOT BETWEEN 28 AND + 56 / col0 + + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7862
SELECT MAX( col1 ) / + CAST( NULL AS SIGNED ) AS col0, + 89 AS col1 FROM tab1 AS cor0
----
NULL
89

skipif mysql # not compatible
query II rowsort label-7862
SELECT MAX ( col1 ) / + CAST ( NULL AS INTEGER ) AS col0, + 89 AS col1 FROM tab1 AS cor0
----
NULL
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7863
SELECT MAX( DISTINCT CAST( NULL AS SIGNED ) ) + + 17 col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7863
SELECT MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + 17 col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT + 52 + 42 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT - col2 + - col1 * 44 * + col2 * + 16 AS col2 FROM tab0 AS cor0
----
-147850
-2680175
-69795

query I rowsort
SELECT - - 1 * - 43 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

query I rowsort
SELECT + ( - 3 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7868
SELECT + CAST( ( ( + 67 ) ) AS SIGNED ), + 76 AS col1 FROM tab2 AS cor0
----
67
76
67
76
67
76

skipif mysql # not compatible
query II rowsort label-7868
SELECT + CAST ( ( ( + 67 ) ) AS INTEGER ), + 76 AS col1 FROM tab2 AS cor0
----
67
76
67
76
67
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7869
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + + 66 * col2 + - 85 / ( + + col1 ) BETWEEN NULL AND + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7869
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + + 66 * col2 + - 85 / ( + + col1 ) BETWEEN NULL AND + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
3

query I rowsort
SELECT + - 31 - + col0 - + col0 FROM tab0 AS cor0
----
-205
-225
-61

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7872
SELECT ( - CAST( - col2 AS SIGNED ) ) DIV - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-57
-92
-96

skipif mysql # not compatible
query I rowsort label-7872
SELECT ( - CAST ( - col2 AS INTEGER ) ) / - col1 - + col0 AS col0 FROM tab1 AS cor0
----
-57
-92
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE ( NULL ) = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT ALL col0 - 5 DIV - col1 AS col0 FROM tab1 cor0
----
51
86
91

skipif mysql # not compatible
query I rowsort label-7874
SELECT ALL col0 - 5 / - col1 AS col0 FROM tab1 cor0
----
51
86
91

query I rowsort
SELECT col2 + - col0 + - - 46 AS col0 FROM tab1
----
20
23
91

query III rowsort
SELECT ALL * FROM tab0 WHERE + 96 >= + 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 AS col2, 12 col0 FROM tab2
----
-23
12
-40
12
-58
12

query II rowsort
SELECT ALL col2 * + col1 - - + col2, + ( - - 38 ) AS col0 FROM tab0
----
198
38
220
38
3854
38

onlyif mysql # DIV for integer division: 
query I rowsort label-7879
SELECT DISTINCT - 83 - - + 5 + + 64 DIV + col2 AS col2 FROM tab2
----
-76
-77

skipif mysql # not compatible
query I rowsort label-7879
SELECT DISTINCT - 83 - - + 5 + + 64 / + col2 AS col2 FROM tab2
----
-76
-77

query I rowsort
SELECT ( + col2 ) * - 99 AS col1 FROM tab1
----
-5841
-6732
-9504

onlyif mysql # aggregate syntax: 
query I rowsort label-7881
SELECT DISTINCT + 25 * - - COUNT( * ) col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7881
SELECT DISTINCT + 25 * - - COUNT ( * ) col1 FROM tab0 AS cor0
----
75

query I rowsort
SELECT DISTINCT - 56 * - - col1 AS col0 FROM tab2 AS cor0
----
-2856
-3752
-4312

query I rowsort
SELECT DISTINCT col0 * + 66 FROM tab1 cor0
----
3366
5610
6006

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col2, col2 * - 35 col0 FROM tab1
----
-59
-2065
-68
-2380
-96
-3360

onlyif mysql # aggregate syntax: 
query II rowsort label-7885
SELECT ALL COUNT( * ), - MAX( + 46 ) AS col1 FROM tab2 AS cor0
----
3
-46

skipif mysql # not compatible
query II rowsort label-7885
SELECT ALL COUNT ( * ), - MAX ( + 46 ) AS col1 FROM tab2 AS cor0
----
3
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 AS col0, col2 col2 FROM tab0 cor0
----
10
10
47
47
99
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 14 * - col1 <= ( - col0 / + col0 + - + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 60 * 87 * - col0 AS col0 FROM tab0 AS cor0
----
-454140
-506340
-78300

query I rowsort
SELECT ALL + + 68 + + + 24 AS col0 FROM tab0 AS cor0 WHERE - col1 BETWEEN NULL AND - - col1 * col1 / ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, + col2 * - col1 - + col0 FROM tab0 AS cor0
----
15
-3822
87
-297
97
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + - ( - COUNT( * ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + - ( - COUNT ( * ) ) AS col2 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 / + col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 / + + 1 * 99 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 IS NOT NULL AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7895
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-7895
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ), col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT ALL + col1 + - col1 DIV 9 DIV - + 33 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + col1 + - col1 / 9 / - + 33 FROM tab0 cor0
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-7898
SELECT ALL 95 + - 35 DIV col0, - 15 AS col2 FROM tab2 AS cor0
----
95
-15
95
-15
95
-15

skipif mysql # not compatible
query II rowsort label-7898
SELECT ALL 95 + - 35 / col0, - 15 AS col2 FROM tab2 AS cor0
----
95
-15
95
-15
95
-15

query II rowsort
SELECT DISTINCT + col2 + col2, + col0 FROM tab2 AS cor0
----
116
75
46
46
80
64

query I rowsort
SELECT DISTINCT col1 + + 34 AS col2 FROM tab2 AS cor0
----
101
111
85

onlyif mysql # aggregate syntax: 
query I rowsort label-7901
SELECT ( + ( - ( + + 3 ) ) ) * - ( - COUNT( * ) ) - - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-7901
SELECT ( + ( - ( + + 3 ) ) ) * - ( - COUNT ( * ) ) - - COUNT ( * ) AS col1 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT - 5 * + 19 + COUNT( * ) AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-7902
SELECT - 5 * + 19 + COUNT ( * ) AS col1 FROM tab2
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT - COUNT( * ) + 17 AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-7903
SELECT - COUNT ( * ) + 17 AS col1 FROM tab1
----
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7904
SELECT CAST( NULL AS SIGNED ) * - 17 + - - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7904
SELECT CAST ( NULL AS INTEGER ) * - 17 + - - col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT - 66 + COUNT( * ) + SUM( + 42 ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7905
SELECT - 66 + COUNT ( * ) + SUM ( + 42 ) AS col0 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT DISTINCT + ( + COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7906
SELECT DISTINCT + ( + COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7907
SELECT 21 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7907
SELECT 21 / + col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - - col1, + col1 AS col0 FROM tab2 AS cor0
----
51
51
67
67
77
77

query II rowsort
SELECT 95 AS col1, 46 * col0 AS col1 FROM tab0 AS cor0
----
95
4002
95
4462
95
690

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7911
SELECT + ( col1 ) AS col0 FROM tab1 AS cor0 WHERE - col2 > - CAST( NULL AS SIGNED ) - + + col1
----

skipif mysql # not compatible
query I rowsort label-7911
SELECT + ( col1 ) AS col0 FROM tab1 AS cor0 WHERE - col2 > - CAST ( NULL AS INTEGER ) - + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7912
SELECT + COUNT( - 16 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7912
SELECT + COUNT ( - 16 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 46 * + - 91 * 27 + - + col2 FROM tab1 cor0
----
112926
112954
112963

query II rowsort
SELECT col1, col2 + + col1 FROM tab1 AS cor0
----
14
110
47
115
5
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7915
SELECT DISTINCT + col0 + - col1 * 85 AS col2, col1 * + - 32 / + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
-1698
NULL
-6870
NULL
12
NULL

skipif mysql # not compatible
query II rowsort label-7915
SELECT DISTINCT + col0 + - col1 * 85 AS col2, col1 * + - 32 / + CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
-1698
NULL
-6870
NULL
12
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7916
SELECT ALL COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7916
SELECT ALL COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT ALL - 2 DIV + - col0 - - + 64 FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-7917
SELECT ALL - 2 / + - col0 - - + 64 FROM tab2
----
64
64
64

query I rowsort
SELECT DISTINCT + col1 / - - 12 + + col0 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7919
SELECT DISTINCT 94 + - COUNT( * ) FROM tab0 WHERE CAST( - - col1 AS SIGNED ) * col1 < NULL
----
94

skipif mysql # not compatible
query I rowsort label-7919
SELECT DISTINCT 94 + - COUNT ( * ) FROM tab0 WHERE CAST ( - - col1 AS INTEGER ) * col1 < NULL
----
94

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col0 NOT BETWEEN + col2 * - col2 * - col0 * + ( col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7921
SELECT COUNT( * ) AS col1, COUNT( * ) col1 FROM tab1 WHERE NOT NULL < + + col0
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7921
SELECT COUNT ( * ) AS col1, COUNT ( * ) col1 FROM tab1 WHERE NOT NULL < + + col0
----
0
0

query I rowsort
SELECT ALL - - 6 AS col1 FROM tab0 AS cor0
----
6
6
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7923
SELECT 77 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7923
SELECT 77 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - col1 * - 58 FROM tab0 AS cor0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7925
SELECT DISTINCT - MIN( ALL + col0 ) * - 77 AS col1 FROM tab2 AS cor0
----
3542

skipif mysql # not compatible
query I rowsort label-7925
SELECT DISTINCT - MIN ( ALL + col0 ) * - 77 AS col1 FROM tab2 AS cor0
----
3542

query II rowsort
SELECT + 45 AS col2, 8 AS col0 FROM tab2 AS cor0
----
45
8
45
8
45
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7927
SELECT - col1 * - 29 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7927
SELECT - col1 * - 29 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 85 * + col2 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT 36 * - - MIN( + + 18 ) AS col2 FROM tab0 cor0
----
648

skipif mysql # not compatible
query I rowsort label-7929
SELECT 36 * - - MIN ( + + 18 ) AS col2 FROM tab0 cor0
----
648

query I rowsort
SELECT DISTINCT 49 * - + col0 + col1 * - col0 AS col1 FROM tab1 AS cor0
----
-3213
-4590
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-7931
SELECT ALL MAX( + + 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7931
SELECT ALL MAX ( + + 24 ) FROM tab0 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT DISTINCT + ( col2 ) DIV 82 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT DISTINCT + ( col2 ) / 82 AS col2 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 28, col0 AS col0 FROM tab1
----
28
51
28
85
28
91

query III rowsort
SELECT * FROM tab0 WHERE - - 66 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + col1 + 63 FROM tab1
----
128
153
201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7936
SELECT - col1 + - 66 + - - col2 * col2 + + col0 + - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
1444
3239
407

skipif mysql # not compatible
query I rowsort label-7936
SELECT - col1 + - 66 + - - col2 * col2 + + col0 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
1444
3239
407

query II rowsort
SELECT ALL - col2, + col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL AND NULL < NULL
----

query I rowsort
SELECT DISTINCT + col1 + col2 - - col1 FROM tab0 AS cor0
----
101
209
52

query I rowsort
SELECT + ( 72 ) + col2 AS col2 FROM tab2 AS cor0
----
112
130
95

query I rowsort
SELECT ALL + 12 + - col2 FROM tab0 cor0
----
-35
-87
2

query I rowsort
SELECT DISTINCT 23 + + - 32 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7943
SELECT COUNT( + col2 ) * COUNT( * ) + + 14 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-7943
SELECT COUNT ( + col2 ) * COUNT ( * ) + + 14 FROM tab1
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7944
SELECT ALL + ( ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-7944
SELECT ALL + ( ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT ( 84 ) AS col2 FROM tab2
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7946
SELECT DISTINCT * FROM tab2 WHERE + 73 NOT IN ( + + CAST( - col2 AS SIGNED ), - 65, - col2, + col2, col2 - + col2 + + CAST( NULL AS SIGNED ), - col1 + + col0 - + 75 )
----

skipif mysql # not compatible
query III rowsort label-7946
SELECT DISTINCT * FROM tab2 WHERE + 73 NOT IN ( + + CAST ( - col2 AS INTEGER ), - 65, - col2, + col2, col2 - + col2 + + CAST ( NULL AS INTEGER ), - col1 + + col0 - + 75 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7947
SELECT col2 - col0 DIV + + col0 AS col0 FROM tab0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-7947
SELECT col2 - col0 / + + col0 AS col0 FROM tab0
----
46
9
98

onlyif mysql # DIV for integer division: 
query I rowsort label-7948
SELECT - - col2 DIV - - col0 - col1 - - - col2 DIV 44 FROM tab1 AS cor0
----
-15
-48
-6

skipif mysql # not compatible
query I rowsort label-7948
SELECT - - col2 / - - col0 - col1 - - - col2 / 44 FROM tab1 AS cor0
----
-15
-48
-6

query II rowsort
SELECT DISTINCT + + ( - - 43 ) AS col0, col1 AS col2 FROM tab1 AS cor0
----
43
14
43
47
43
5

query I rowsort
SELECT col0 - ( col0 ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 col2 FROM tab0 cor0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7952
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - CAST( NULL AS SIGNED ) + + 47
----

skipif mysql # not compatible
query III rowsort label-7952
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - CAST ( NULL AS INTEGER ) + + 47
----

query I rowsort
SELECT ALL + col0 + - + ( - col2 ) FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT - ( col1 ) + - + col1 AS col2 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 NOT BETWEEN ( 63 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + - 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT - ( + ( - 36 ) ), - MAX( col2 ) col0 FROM tab0
----
36
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7957
SELECT - ( + ( - 36 ) ), - MAX ( col2 ) col0 FROM tab0
----
36
-99

query II rowsort
SELECT col0, + 85 + - 95 FROM tab0
----
15
-10
87
-10
97
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-7959
SELECT ALL 67 * + - COUNT( * ) AS col1 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-7959
SELECT ALL 67 * + - COUNT ( * ) AS col1 FROM tab1
----
-201

query II rowsort
SELECT + col2 AS col1, 56 * + 51 FROM tab2
----
23
2856
40
2856
58
2856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7961
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( MAX( + col2 ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( MAX ( + col2 ) AS INTEGER ) FROM tab0
----
NULL

query II rowsort
SELECT col0, - ( + col1 ) FROM tab0
----
15
-81
87
-21
97
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 = 2 * + - 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col1 * col2, 50 * - col1 + + - 75 AS col0 FROM tab2
----
1173
-2625
3080
-3925
3886
-3425

query I rowsort
SELECT ( + col1 ) * - col1 + + + col1 - - 23 AS col2 FROM tab0
----
-397
-6457
23

query I rowsort
SELECT col2 * - col0 * - 43 FROM tab0
----
30315
37410
412929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 * - - col2 col1 FROM tab1
----
2360
2720
3840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7969
SELECT ALL 48 DIV - MIN( - col1 ) + + 10 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7969
SELECT ALL 48 / - MIN ( - col1 ) + + 10 FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT ALL + 67 * - MIN( - col2 ) AS col1 FROM tab1 cor0
----
6432

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + 67 * - MIN ( - col2 ) AS col1 FROM tab1 cor0
----
6432

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT DISTINCT + SUM( DISTINCT col1 ) + + COUNT( * ) FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-7971
SELECT DISTINCT + SUM ( DISTINCT col1 ) + + COUNT ( * ) FROM tab0 AS cor0
----
106

query I rowsort
SELECT ALL - - col2 FROM tab2 AS cor0 WHERE + 41 IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 + 3 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7975
SELECT + + 57 * - SUM( col2 ) + + ( + COUNT( * ) ) AS col1 FROM tab2 cor0
----
-6894

skipif mysql # not compatible
query I rowsort label-7975
SELECT + + 57 * - SUM ( col2 ) + + ( + COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-6894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7976
SELECT + 7 + + 68 / + CAST( NULL AS SIGNED ) / + 53 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7976
SELECT + 7 + + 68 / + CAST ( NULL AS INTEGER ) / + 53 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - 69 * - 99 FROM tab2
----
348381
457677
525987

query I rowsort
SELECT - col2 * - ( col2 ) AS col0 FROM tab2
----
1600
3364
529

query I rowsort
SELECT 47 * - 99 AS col2 FROM tab1
----
-4653
-4653
-4653

onlyif mysql # aggregate syntax: 
query I rowsort label-7980
SELECT COUNT( + col2 ) * - 50 AS col1 FROM tab2
----
-150

skipif mysql # not compatible
query I rowsort label-7980
SELECT COUNT ( + col2 ) * - 50 AS col1 FROM tab2
----
-150

query I rowsort
SELECT DISTINCT col1 * - + 78 AS col0 FROM tab1
----
-1092
-3666
-390

query I rowsort
SELECT ( - 87 ) AS col1 FROM tab2
----
-87
-87
-87

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * - + col0 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 81 + - col0 AS col2 FROM tab0 cor0
----
-16
-6
66

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - ( + + 87 ) BETWEEN NULL AND 20 + + col2
----

query I rowsort
SELECT DISTINCT + 95 + - col1 - - - col0 * - col1 FROM tab2 AS cor0
----
2390
4946
5053

query I rowsort
SELECT - 44 + + - col1 AS col2 FROM tab0
----
-125
-45
-65

query II rowsort
SELECT - col0 + - + 33 * + 74 * + - col0, + col2 FROM tab0
----
212367
10
236777
99
36615
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7990
SELECT 41 + - + CAST( - col1 AS SIGNED ) FROM tab2
----
108
118
92

skipif mysql # not compatible
query I rowsort label-7990
SELECT 41 + - + CAST ( - col1 AS INTEGER ) FROM tab2
----
108
118
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7991
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + col1 - + 61 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7991
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + col1 - + 61 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col1 - 93 AS col1 FROM tab1
----
-46
-79
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 47 col0, 42 FROM tab1 AS cor0
----
-47
42
-47
42
-47
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7994
SELECT - 93 DIV MIN( ALL + - 1 ) col1 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7994
SELECT - 93 / MIN ( ALL + - 1 ) col1 FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT DISTINCT - 13 col0, COUNT( * ) FROM tab1 AS cor0
----
-13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7995
SELECT DISTINCT - 13 col0, COUNT ( * ) FROM tab1 AS cor0
----
-13
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 AS col2, col2 * - col0 col1 FROM tab0 cor0
----
1
-9603
21
-870
81
-705

query II rowsort
SELECT ALL + col0, 3 AS col2 FROM tab2 AS cor0
----
46
3
64
3
75
3

query I rowsort
SELECT + 87 * + col2 AS col0 FROM tab1 AS cor0
----
5133
5916
8352

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 * + col2 AND + - 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT DISTINCT col2 DIV 74 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-8000
SELECT DISTINCT col2 / 74 FROM tab0
----
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( col1 ) <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8002
SELECT ALL * FROM tab2 WHERE + CAST( NULL AS SIGNED ) NOT BETWEEN + 33 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8002
SELECT ALL * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) NOT BETWEEN + 33 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8003
SELECT DISTINCT + - col2 AS col1 FROM tab1 WHERE - col1 * + + CAST( CAST( + + col2 AS SIGNED ) AS SIGNED ) + - + col2 NOT IN ( + col0 * + - col1, 41 )
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8003
SELECT DISTINCT + - col2 AS col1 FROM tab1 WHERE - col1 * + + CAST ( CAST ( + + col2 AS INTEGER ) AS INTEGER ) + - + col2 NOT IN ( + col0 * + - col1, 41 )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8004
SELECT DISTINCT - CAST( - col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8004
SELECT DISTINCT - CAST ( - col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE col0 * - + col1 * col0 >= - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( - - 16 ) IS NOT NULL
----

query I rowsort
SELECT ( + 7 ) + col1 - - - 60 FROM tab2 AS cor0
----
-2
14
24

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NOT + col1 < - 30 + - + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 >= NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8010
SELECT + MAX( DISTINCT + col1 ) AS col2 FROM tab1 WHERE - col2 * - + col2 + - col0 >= CAST( NULL AS SIGNED ) * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8010
SELECT + MAX ( DISTINCT + col1 ) AS col2 FROM tab1 WHERE - col2 * - + col2 + - col0 >= CAST ( NULL AS INTEGER ) * - col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT + SUM( - + 65 ) col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8011
SELECT + SUM ( - + 65 ) col2 FROM tab2 AS cor0
----
-195

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + ( + col2 ) + + - 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col1 AS col1, col0 / + 47 - 30 * - + col1 + col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT ALL - - SUM( - - col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - - SUM ( - - col1 ) AS col1 FROM tab1 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT SUM( ALL - col0 ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8015
SELECT SUM ( ALL - col0 ) AS col2 FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8016
SELECT - - MIN( ALL + + 50 ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8016
SELECT - - MIN ( ALL + + 50 ) FROM tab1 AS cor0
----
50

query I rowsort
SELECT DISTINCT 87 * + - col1 + - 13 + col1 + col0 FROM tab1
----
-1166
-358
-3964

query I rowsort
SELECT + col0 + + col2 + - 97 + - 12 AS col1 FROM tab1
----
35
38
50

query I rowsort
SELECT col0 + 94 * - + 42 + col2 FROM tab2
----
-3815
-3844
-3879

query I rowsort
SELECT + ( - col1 ) + - 61 AS col2 FROM tab1
----
-108
-66
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8021
SELECT DISTINCT 50 * - 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-8021
SELECT DISTINCT 50 * - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT + 90 + + ( + - COUNT( * ) ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8022
SELECT + 90 + + ( + - COUNT ( * ) ) FROM tab0
----
87

query III rowsort
SELECT * FROM tab2 WHERE + 33 * - + 21 + - col2 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + - + col1 AS col0 FROM tab1
----
-10
-28
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-8025
SELECT - 15 * + 79 + + col0 DIV + 23 FROM tab1
----
-1182
-1182
-1183

skipif mysql # not compatible
query I rowsort label-8025
SELECT - 15 * + 79 + + col0 / + 23 FROM tab1
----
-1182
-1182
-1183

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8026
SELECT DISTINCT + ( - - CAST( - col0 AS SIGNED ) ) DIV 40 * + - col1 AS col1 FROM tab0
----
0
2
42

skipif mysql # not compatible
query I rowsort label-8026
SELECT DISTINCT + ( - - CAST ( - col0 AS INTEGER ) ) / 40 * + - col1 AS col1 FROM tab0
----
0
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-8027
SELECT - 56 + + col0 DIV + col2 FROM tab1
----
-55
-55
-56

skipif mysql # not compatible
query I rowsort label-8027
SELECT - 56 + + col0 / + col2 FROM tab1
----
-55
-55
-56

query I rowsort
SELECT col1 - col1 + + col2 AS col2 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT 68 - + ( ( - MAX( ALL - + 93 ) ) ) FROM tab0
----
-25

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT 68 - + ( ( - MAX ( ALL - + 93 ) ) ) FROM tab0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + + 25 * col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8031
SELECT - CAST( + 11 AS SIGNED ) col1 FROM tab0 AS cor0
----
-11
-11
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8031
SELECT - CAST ( + 11 AS INTEGER ) col1 FROM tab0 AS cor0
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 66 NOT BETWEEN - - col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 7 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + ( + ( col2 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 > - col1 / col0 * + 84 * - col0 * + col2 + + col0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL 87 * ( COUNT( * ) ) AS col0 FROM tab0
----
261

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL 87 * ( COUNT ( * ) ) AS col0 FROM tab0
----
261

onlyif mysql # DIV for integer division: 
query I rowsort label-8036
SELECT DISTINCT col1 DIV 25 FROM tab2
----
2
3

skipif mysql # not compatible
query I rowsort label-8036
SELECT DISTINCT col1 / 25 FROM tab2
----
2
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col2 + - col2 NOT BETWEEN ( NULL ) AND + ( 48 ) + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8038
SELECT 97 * COUNT( * ) * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8038
SELECT 97 * COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8039
SELECT DISTINCT + COUNT( DISTINCT + - col2 ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8039
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) FROM tab1 WHERE NULL IS NULL
----
3

query II rowsort
SELECT col1 AS col2, col2 * + col1 AS col1 FROM tab2
----
51
1173
67
3886
77
3080

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, col2 col1 FROM tab1
----
51
96
85
59
91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8042
SELECT DISTINCT + CAST( NULL AS SIGNED ) - COUNT( * ) * ( + COUNT( * ) ) * COUNT( * ) * 87, 46 + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) + - 32 IS NOT NULL
----
NULL
46

skipif mysql # not compatible
query II rowsort label-8042
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - COUNT ( * ) * ( + COUNT ( * ) ) * COUNT ( * ) * 87, 46 + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) + - 32 IS NOT NULL
----
NULL
46

onlyif mysql # aggregate syntax: 
query II rowsort label-8043
SELECT MAX( DISTINCT + col2 ) AS col0, 70 AS col1 FROM tab1
----
96
70

skipif mysql # not compatible
query II rowsort label-8043
SELECT MAX ( DISTINCT + col2 ) AS col0, 70 AS col1 FROM tab1
----
96
70

query III rowsort
SELECT ALL * FROM tab2 WHERE 77 * - 66 * + col1 IN ( 60 * col0, col1 * + col1 / + col1 ) AND ( - col0 IS NULL )
----

query II rowsort
SELECT ALL - 48 AS col2, 49 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8046
SELECT + col2 DIV + 87 * col1 + - 71 FROM tab0 AS cor0
----
-70
-71
-71

skipif mysql # not compatible
query I rowsort label-8046
SELECT + col2 / + 87 * col1 + - 71 FROM tab0 AS cor0
----
-70
-71
-71

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - - col0 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col2 + - ( + 54 ) * + - col2 - col2 + - ( - col1 ) AS col0, col2 * ( - col1 ) + col0 FROM tab0 AS cor0
----
2619
-3792
5347
-2
561
-123

query I rowsort
SELECT col1 + + ( 75 ) FROM tab2 AS cor0
----
126
142
152

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8050
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8050
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8051
SELECT SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 78 + + col2 * + col0 FROM tab2
----
1136
2638
4428

query II rowsort
SELECT DISTINCT + col1, col2 + + col1 AS col0 FROM tab1
----
14
110
47
115
5
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + ( col0 ) - 58 AS col2 FROM tab0
----
1
39
21
29
81
-43

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 47 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8056
SELECT ALL col2 AS col0, - col1 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8056
SELECT ALL col2 AS col0, - col1 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8057
SELECT - + MAX( - + 46 ) + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8057
SELECT - + MAX ( - + 46 ) + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + - ( 65 ) IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8059
SELECT * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8059
SELECT * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL ( - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL ( - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 64 * col0 - - 88 * - col2, col0 col1 FROM tab2 AS cor0
----
-4968
46
-7616
64
-9904
75

query I rowsort
SELECT ALL col2 * - - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-8063
SELECT COUNT( DISTINCT + - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8063
SELECT COUNT ( DISTINCT + - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8064
SELECT DISTINCT ( + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT ( + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL col1 * col0 * 21 FROM tab2 AS cor0
----
103488
105525
49266

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 col0 FROM tab1
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8068
SELECT - 8 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-8068
SELECT - 8 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT ALL 56 * col0 AS col0 FROM tab1
----
2856
4760
5096

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8070
SELECT ALL CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8070
SELECT ALL CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-8071
SELECT + col0 DIV - - 48 AS col1 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8071
SELECT + col0 / - - 48 AS col1 FROM tab2
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8072
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + CAST( NULL AS SIGNED ) + col2 * + - col0 <> NULL
----

skipif mysql # not compatible
query III rowsort label-8072
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 * + CAST ( NULL AS INTEGER ) + col2 * + - col0 <> NULL
----

query I rowsort
SELECT + - col0 * + col1 AS col2 FROM tab1 AS cor0 WHERE + 74 < NULL
----

query I rowsort
SELECT + col1 FROM tab1 cor0 WHERE NULL >= 74
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 < ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * + + 40 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-1840
-2560
-3000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8077
SELECT CAST( NULL AS SIGNED ) * - CAST( 65 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8077
SELECT CAST ( NULL AS INTEGER ) * - CAST ( 65 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8078
SELECT ALL + + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NULL AND ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-8078
SELECT ALL + + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NULL AND ( NULL IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8079
SELECT DISTINCT + - COUNT( * ) AS col1, 31 * - SUM( 92 ) + COUNT( - col1 ) FROM tab0 AS cor0
----
-3
-8553

skipif mysql # not compatible
query II rowsort label-8079
SELECT DISTINCT + - COUNT ( * ) AS col1, 31 * - SUM ( 92 ) + COUNT ( - col1 ) FROM tab0 AS cor0
----
-3
-8553

query I rowsort
SELECT ALL - col0 + + + 91 AS col0 FROM tab2 cor0
----
16
27
45

query I rowsort
SELECT DISTINCT 15 + - + col1 * + 47 AS col0 FROM tab1 AS cor0
----
-2194
-220
-643

onlyif mysql # aggregate syntax: 
query I rowsort label-8082
SELECT ALL - COUNT( * ) * COUNT( col1 ) + + 3 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8082
SELECT ALL - COUNT ( * ) * COUNT ( col1 ) + + 3 FROM tab0 cor0
----
-6

query I rowsort
SELECT + + col0 AS col2 FROM tab1 WHERE + 69 * + col2 * + col2 + - - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT 57 + - - col1 AS col1 FROM tab1
----
104
62
71

query II rowsort
SELECT ALL col1 - + + col2 AS col1, col1 * + + col1 FROM tab0
----
-98
1
11
441
34
6561

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * + - ( + - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT + SUM( DISTINCT - 52 ) col2 FROM tab2 cor0
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8087
SELECT DISTINCT + SUM ( DISTINCT - 52 ) col2 FROM tab2 cor0
----
-52

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 60 <> NULL
----

query I rowsort
SELECT DISTINCT col1 + + col2 AS col1 FROM tab0 WHERE 9 IS NOT NULL
----
100
128
31

query II rowsort
SELECT - col1, - 63 * + col2 + + col2 AS col2 FROM tab2
----
-51
-1426
-67
-3596
-77
-2480

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT DISTINCT - COUNT( + ( 1 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8091
SELECT DISTINCT - COUNT ( + ( 1 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query I rowsort
SELECT DISTINCT + col0 * 67 * ( - ( col1 ) ) FROM tab0 cor0
----
-122409
-6499
-81405

query II rowsort
SELECT + 38, + 93 AS col2 FROM tab0 AS cor0 WHERE NOT + col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT ALL + - COUNT( * ) * - + COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8094
SELECT ALL + - COUNT ( * ) * - + COUNT ( * ) AS col1 FROM tab0 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8095
SELECT + COUNT( - 67 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8095
SELECT + COUNT ( - 67 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8096
SELECT ALL - + MAX( + col2 ) AS col2 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8096
SELECT ALL - + MAX ( + col2 ) AS col2 FROM tab2 AS cor0
----
-58

query I rowsort
SELECT - ( col1 ) * col1 + - col0 * + col1 * + + col1 AS col2 FROM tab1
----
-10192
-203228
-2150

onlyif mysql # DIV for integer division: 
query I rowsort label-8098
SELECT col0 DIV 59 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8098
SELECT col0 / 59 AS col1 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8099
SELECT DISTINCT + ( - MIN( DISTINCT col1 ) ) * + - MIN( 58 ) FROM tab2
----
2958

skipif mysql # not compatible
query I rowsort label-8099
SELECT DISTINCT + ( - MIN ( DISTINCT col1 ) ) * + - MIN ( 58 ) FROM tab2
----
2958

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col1 + - col0
----

query I rowsort
SELECT col1 + - col0 FROM tab2 AS cor0 WHERE col1 * + + col1 + - col0 / + 10 > NULL
----

query I rowsort
SELECT DISTINCT + - ( + col0 ) FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL MAX( 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL MAX ( 63 ) FROM tab1
----
63

query I rowsort
SELECT ALL - 10 + + col0 FROM tab2 AS cor0
----
36
54
65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8105
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8105
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) - - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * col1 - - - col0 + - col1 - col0 - + col0 + - - col0 FROM tab2 AS cor0
----
1030
2875
3669

query II rowsort
SELECT + col1 AS col0, col1 - col2 FROM tab1
----
14
-82
47
-21
5
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-8108
SELECT DISTINCT 21 DIV col1 * - 97 + - col2 + + - col0 AS col0 FROM tab1
----
-159
-244
-532

skipif mysql # not compatible
query I rowsort label-8108
SELECT DISTINCT 21 / col1 * - 97 + - col2 + + - col0 AS col0 FROM tab1
----
-159
-244
-532

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8109
SELECT DISTINCT + col2 - - - CAST( + col2 AS SIGNED ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8109
SELECT DISTINCT + col2 - - - CAST ( + col2 AS INTEGER ) AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - 98 + + col1 >= + col1 AND NULL NOT BETWEEN col0 / ( col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab0 WHERE NOT NULL >= NULL
----
0

query I rowsort
SELECT ALL 53 * + col2 AS col2 FROM tab2 AS cor0
----
1219
2120
3074

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL >= - 75 * 29 / + 18 / col2 * - 10
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT - 72 * - + col0 AS col0 FROM tab1
----
3672
6120
6552

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT COUNT( + + 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT COUNT ( + + 28 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab2 WHERE + 91 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-8117
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab2 WHERE + 91 IS NOT NULL
----
-3

query I rowsort
SELECT col2 * - 6 FROM tab2 cor0
----
-138
-240
-348

query I rowsort
SELECT DISTINCT 60 FROM tab2 AS cor0 WHERE NOT - ( - col0 ) <> + col0 + - col2
----

query I rowsort
SELECT - + ( - col2 ) * + - col0 * col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT + col0 * + col2 - col1 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + + 92 <= + - col0
----
4882
5010
6141

query I rowsort
SELECT ALL + 5 + + col2 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8123
SELECT ALL + CAST( NULL AS SIGNED ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-8123
SELECT ALL + CAST ( NULL AS INTEGER ), + col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT 43 * 2 AS col0 FROM tab0
----
86

query I rowsort
SELECT - 45 + + 83 + col0 AS col0 FROM tab2
----
102
113
84

query I rowsort
SELECT ALL - col1 * + col2 - + 31 AS col2 FROM tab2 AS cor0
----
-1204
-3111
-3917

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8127
SELECT DISTINCT + col0 + ( + + col0 ) * - col1 - CAST( + - col2 AS SIGNED ) + + col1 * ( + col0 ) * - - col1 AS col0 FROM tab0 AS cor0
----
196
36637
97262

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT + col0 + ( + + col0 ) * - col1 - CAST ( + - col2 AS INTEGER ) + + col1 * ( + col0 ) * - - col1 AS col0 FROM tab0 AS cor0
----
196
36637
97262

query I rowsort
SELECT ALL 79 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 / - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8130
SELECT DISTINCT CAST( ( + col2 ) AS SIGNED ) * col1 AS col2 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-8130
SELECT DISTINCT CAST ( ( + col2 ) AS INTEGER ) * col1 AS col2 FROM tab1
----
1344
295
3196

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 + + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN ( col0 ) AND - 86
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8133
SELECT ALL COUNT( * ) * - ( ( 18 ) ) FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-8133
SELECT ALL COUNT ( * ) * - ( ( 18 ) ) FROM tab0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8134
SELECT ALL MIN( 30 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-8134
SELECT ALL MIN ( 30 ) AS col2 FROM tab1
----
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8135
SELECT ALL CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8135
SELECT ALL CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8136
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8136
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE ( NULL ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL 60 + 72 * + col2 AS col2 FROM tab2
----
1716
2940
4236

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8138
SELECT - 71 DIV MIN( 65 ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8138
SELECT - 71 / MIN ( 65 ) col0 FROM tab1
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE + 43 BETWEEN ( NULL ) AND ( col2 )
----

query I rowsort
SELECT ALL col0 * 9 AS col1 FROM tab1
----
459
765
819

query I rowsort
SELECT + col2 * - 3 FROM tab2
----
-120
-174
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8142
SELECT - col2 + CAST( NULL AS SIGNED ) * - 94 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8142
SELECT - col2 + CAST ( NULL AS INTEGER ) * - 94 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT ALL COUNT( + col0 ) * + MIN( ALL 40 ) col2 FROM tab0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8143
SELECT ALL COUNT ( + col0 ) * + MIN ( ALL 40 ) col2 FROM tab0
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT MAX( DISTINCT col1 ) + - 84 FROM tab1
----
-37

skipif mysql # not compatible
query I rowsort label-8144
SELECT MAX ( DISTINCT col1 ) + - 84 FROM tab1
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT ALL - COUNT( * ) * + 79 AS col0 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-8145
SELECT ALL - COUNT ( * ) * + 79 AS col0 FROM tab2
----
-237

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8147
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8147
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT + 54 + - 56 AS col2 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + ( 1 ) + 61 * - 36 AS col2 FROM tab2 WHERE NOT ( col0 * - col1 ) <> + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT 2 + - COUNT( * ) AS col2 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-8151
SELECT 2 + - COUNT ( * ) AS col2 FROM tab2
----
-1

query I rowsort
SELECT ALL 94 * - ( col0 * + 68 ) AS col1 FROM tab1 WHERE NOT col2 IS NULL
----
-325992
-543320
-581672

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 * col2 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NULL ) > ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8155
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( + 57 * - 12 ) <> 50 * ( CAST( - 70 AS SIGNED ) ) + col0
----

skipif mysql # not compatible
query I rowsort label-8155
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( + 57 * - 12 ) <> 50 * ( CAST ( - 70 AS INTEGER ) ) + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( - 67 ) AND ( - 13 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8157
SELECT MIN( ALL - ( col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-8157
SELECT MIN ( ALL - ( col2 ) ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 89 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8159
SELECT DISTINCT - ( - CAST( - col2 AS SIGNED ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8159
SELECT DISTINCT - ( - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL col1 * col2 + 46 AS col0 FROM tab2 AS cor0
----
1219
3126
3932

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 48 * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + col1 * + 48 NOT BETWEEN ( + col2 / col2 ) AND ( col1 / col2 + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8163
SELECT ALL - COUNT( * ) + - 22 AS col2 FROM tab0 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL - COUNT ( * ) + - 22 AS col2 FROM tab0 AS cor0
----
-25

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 ) IN ( + ( col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8165
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) + - col1 / + ( 26 * - col1 + col1 ) <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8165
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) + - col1 / + ( 26 * - col1 + col1 ) <> ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - + col2 + 91 FROM tab2 AS cor0
----
33
51
68

onlyif mysql # DIV for integer division: 
query I rowsort label-8167
SELECT DISTINCT col0 DIV col0 * 4 + 33 AS col1 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-8167
SELECT DISTINCT col0 / col0 * 4 + 33 AS col1 FROM tab2
----
37

query I rowsort
SELECT ALL - col2 + 74 + + col2 * + ( col2 ) FROM tab1
----
3496
4630
9194

query III rowsort
SELECT * FROM tab1 WHERE col2 * + col2 > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 + + col1 NOT IN ( 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - ( 87 ) FROM tab0 WHERE NOT NULL NOT IN ( col2 + col2 )
----

query I rowsort
SELECT - 55 * - + 67 AS col1 FROM tab2
----
3685
3685
3685

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT BETWEEN 97 * + col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8174
SELECT CAST( NULL AS SIGNED ) / - 53 AS col2 FROM tab1 WHERE - col0 + - col2 BETWEEN + 82 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8174
SELECT CAST ( NULL AS INTEGER ) / - 53 AS col2 FROM tab1 WHERE - col0 + - col2 BETWEEN + 82 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT - MAX( DISTINCT - - 92 ) * 24 FROM tab1
----
-2208

skipif mysql # not compatible
query I rowsort label-8175
SELECT - MAX ( DISTINCT - - 92 ) * 24 FROM tab1
----
-2208

query I rowsort
SELECT 66 AS col1 FROM tab2 WHERE - 66 <> - col2
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-8177
SELECT + col2 DIV - - 15 AS col1 FROM tab1
----
3
4
6

skipif mysql # not compatible
query I rowsort label-8177
SELECT + col2 / - - 15 AS col1 FROM tab1
----
3
4
6

query I rowsort
SELECT 57 * + 47 FROM tab1 WHERE - col2 / col2 IN ( + col0 )
----

query I rowsort
SELECT DISTINCT 74 * - col1 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT ALL 47 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE NOT 15 * 58 + col0 IS NOT NULL
----

query I rowsort
SELECT - ( + col2 ) * col2 AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8183
SELECT ALL COUNT( * ) + - AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE NULL >= + col1 * col2 OR col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8183
SELECT ALL COUNT ( * ) + - AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE NULL >= + col1 * col2 OR col1 IS NOT NULL
----
NULL

query I rowsort
SELECT - 89 * + col1 AS col1 FROM tab2
----
-4539
-5963
-6853

query I rowsort
SELECT - ( + col2 ) + + 12 * 7 FROM tab2 WHERE 52 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 49 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 - col2 col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 90 + ( - col1 + - 8 ) * + 26 NOT BETWEEN ( - col0 / - ( col0 ) ) AND - 97 * col1 AND NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8190
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8190
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 34 AND NULL
----

query I rowsort
SELECT 36 * col1 + + col0 AS col1 FROM tab0 AS cor0
----
133
2931
843

onlyif mysql # aggregate syntax: 
query I rowsort label-8193
SELECT ALL 74 * - MAX( + - col2 ) FROM tab1
----
4366

skipif mysql # not compatible
query I rowsort label-8193
SELECT ALL 74 * - MAX ( + - col2 ) FROM tab1
----
4366

query I rowsort
SELECT + - 45 AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8195
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8195
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8196
SELECT DISTINCT col1 DIV - 90 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8196
SELECT DISTINCT col1 / - 90 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8197
SELECT ALL col0 AS col1, - 63 DIV - - col2 + + 66 AS col2 FROM tab0
----
15
65
87
60
97
66

skipif mysql # not compatible
query II rowsort label-8197
SELECT ALL col0 AS col1, - 63 / - - col2 + + 66 AS col2 FROM tab0
----
15
65
87
60
97
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8198
SELECT 72 FROM tab2 AS cor0 WHERE - CAST( 44 AS SIGNED ) * CAST( NULL AS SIGNED ) + - col1 NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-8198
SELECT 72 FROM tab2 AS cor0 WHERE - CAST ( 44 AS INTEGER ) * CAST ( NULL AS INTEGER ) + - col1 NOT IN ( col1 )
----

query I rowsort
SELECT + ( + col0 ) * 9 FROM tab2 cor0 WHERE ( - 22 + ( - col1 ) + col1 ) IS NOT NULL
----
414
576
675

query I rowsort
SELECT + 92 * 18 FROM tab2 AS cor0
----
1656
1656
1656

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 + + - col1 / col1 <= col1 / - 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 35 AS col2 FROM tab0 cor0
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-8203
SELECT + COUNT( * ) * - + SUM( ALL col0 ) FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-8203
SELECT + COUNT ( * ) * - + SUM ( ALL col0 ) FROM tab2 AS cor0
----
-555

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 >= ( NULL )
----

query I rowsort
SELECT - + 41 * + - col1 AS col0 FROM tab0 AS cor0
----
3321
41
861

query I rowsort
SELECT - ( - - col0 ) FROM tab2 cor0
----
-46
-64
-75

query I rowsort
SELECT + 48 * + 79 * + col1 + 80 FROM tab0 AS cor0
----
307232
3872
79712

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT DISTINCT + MIN( + 88 ) FROM tab0 WHERE ( + 60 ) IN ( col1 * col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8208
SELECT DISTINCT + MIN ( + 88 ) FROM tab0 WHERE ( + 60 ) IN ( col1 * col2 )
----
NULL

query I rowsort
SELECT DISTINCT col2 * ( - + col0 ) FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 WHERE - 42 * - col2 * + col1 - - col2 <= ( + 50 ) AND NULL <> NULL
----

query I rowsort
SELECT - ( - 56 ) AS col1 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) IN ( 99 / + col0 )
----

query I rowsort
SELECT DISTINCT + col2 * - - 73 AS col2 FROM tab2
----
1679
2920
4234

query III rowsort
SELECT * FROM tab2 WHERE NULL IS NULL AND NOT + col1 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT DISTINCT 31 DIV - col1 col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8215
SELECT DISTINCT 31 / - col1 col1 FROM tab1
----
-2
-6
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8216
SELECT ALL - CAST( - col1 AS SIGNED ) - + col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8216
SELECT ALL - CAST ( - col1 AS INTEGER ) - + col0 FROM tab1 AS cor0 WHERE NOT NULL = ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - - col0 - + col1 col0 FROM tab1 AS cor0
----
4882
5010
6141

query I rowsort
SELECT - col2 * + col1 * - - col1 * 24 - ( 15 ) AS col1 FROM tab2 AS cor0
----
-1435767
-5691855
-6248703

query I rowsort
SELECT ALL - col0 * - col0 + - - col2 + + 15 FROM tab0 AS cor0
----
287
7594
9523

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT ALL SUM( DISTINCT - 10 ) FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8221
SELECT ALL SUM ( DISTINCT - 10 ) FROM tab2 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + 42 AS col1 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8223
SELECT - COUNT( * ) FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IN ( - - 59 )
----
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IN ( - - 59 )
----
0

query I rowsort
SELECT DISTINCT - col0 + - + col0 AS col2 FROM tab2 AS cor0
----
-128
-150
-92

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( - 94 + col2 + 80 ) NOT BETWEEN NULL AND - 21
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8226
SELECT CAST( NULL AS SIGNED ) col0, 44 FROM tab1 AS cor0
----
NULL
44
NULL
44
NULL
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8226
SELECT CAST ( NULL AS INTEGER ) col0, 44 FROM tab1 AS cor0
----
NULL
44
NULL
44
NULL
44

query I rowsort
SELECT col2 * + 19 FROM tab2 AS cor0
----
1102
437
760

onlyif mysql # aggregate syntax: 
query I rowsort label-8228
SELECT - COUNT( DISTINCT 13 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8228
SELECT - COUNT ( DISTINCT 13 ) FROM tab1 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8229
SELECT DISTINCT + COUNT( - 98 ) + - 46 FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-8229
SELECT DISTINCT + COUNT ( - 98 ) + - 46 FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL 73 + + + col1 FROM tab2 AS cor0
----
124
140
150

query I rowsort
SELECT ALL - - 90 + col2 FROM tab0 AS cor0
----
100
137
189

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) BETWEEN col1 AND ( ( + col1 ) * - col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE - 23 + 18 + 12 BETWEEN + + col0 * 54 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 NOT BETWEEN NULL AND - col2
----
97
1
99

query I rowsort
SELECT 60 * - - 34 + - ( + col0 ) AS col1 FROM tab2
----
1965
1976
1994

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8236
SELECT MAX( DISTINCT + - 97 ) / CAST( NULL AS SIGNED ) * + COUNT( col1 ) - AVG ( ALL 67 ) + 13 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8236
SELECT MAX ( DISTINCT + - 97 ) / CAST ( NULL AS INTEGER ) * + COUNT ( col1 ) - AVG ( ALL 67 ) + 13 FROM tab0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8237
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8237
SELECT DISTINCT * FROM tab1 cor0 WHERE + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8238
SELECT + CAST( NULL AS SIGNED ) + 88 + + 28 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8238
SELECT + CAST ( NULL AS INTEGER ) + 88 + + 28 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL 9 AS col1, 15 * + - 10 + - col1 AS col2, - + col2 FROM tab1 AS cor0
----
9 values hashing to 8dd23806cc97e80eb7f546cc7743ccea

onlyif mysql # DIV for integer division: 
query II rowsort label-8240
SELECT DISTINCT + - ( + - 97 ) AS col1, - col1 DIV + + col2 FROM tab0 AS cor0
----
97
-1
97
-2
97
0

skipif mysql # not compatible
query II rowsort label-8240
SELECT DISTINCT + - ( + - 97 ) AS col1, - col1 / + + col2 FROM tab0 AS cor0
----
97
-1
97
-2
97
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + - 57 col0 FROM tab1 AS cor0
----
-104
-62
-71

query I rowsort
SELECT col1 * col0 + - col0 * - col2 AS col2 FROM tab0 WHERE - + ( + + col0 ) BETWEEN ( - - 69 ) AND + col1 - + col0
----

query I rowsort
SELECT - 20 * + + 81 - + ( col2 ) + col0 FROM tab1
----
-1594
-1597
-1665

query III rowsort
SELECT * FROM tab2 WHERE + + 38 NOT IN ( - + ( + col1 ) - col0 / - ( + col0 ) / + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8245
SELECT ALL + 35 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
315

skipif mysql # not compatible
query I rowsort label-8245
SELECT ALL + 35 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
315

query I rowsort
SELECT 24 - col0 AS col1 FROM tab0
----
-63
-73
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT - - ( + CAST( + + col0 AS SIGNED ) ) AS col0 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8247
SELECT - - ( + CAST ( + + col0 AS INTEGER ) ) AS col0 FROM tab1 cor0
----
51
85
91

query I rowsort
SELECT - + ( + 97 ) AS col2 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8249
SELECT DISTINCT - 78 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8249
SELECT DISTINCT - 78 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8250
SELECT ALL - MAX( col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-8250
SELECT ALL - MAX ( col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8251
SELECT ALL + col0 DIV col1 DIV + - 28 FROM tab0 AS cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8251
SELECT ALL + col0 / col1 / + - 28 FROM tab0 AS cor0
----
-3
0
0

query I rowsort
SELECT ALL + 89 * 61 FROM tab1 AS cor0
----
5429
5429
5429

query I rowsort
SELECT DISTINCT 41 * + col0 FROM tab0 cor0
----
3567
3977
615

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8254
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * + 45 * - CAST( NULL AS SIGNED ) * - 66 + col1 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8254
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * + 45 * - CAST ( NULL AS INTEGER ) * - 66 + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8255
SELECT ALL COUNT( * ) AS col1, 3 FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8255
SELECT ALL COUNT ( * ) AS col1, 3 FROM tab0
----
3
3

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NULL NOT IN ( - 47 )
----

query II rowsort
SELECT - col1 AS col2, 76 AS col1 FROM tab1
----
-14
76
-47
76
-5
76

query I rowsort
SELECT + ( + - 78 ) FROM tab2
----
-78
-78
-78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col1 + + col2 col0 FROM tab0
----
-15
128
-87
31
-97
100

query I rowsort
SELECT ALL + 97 * + col1 AS col2 FROM tab1
----
1358
4559
485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, col0 FROM tab1
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8262
SELECT ( + CAST( + - 53 AS SIGNED ) ) * + 62 + col2 AS col0 FROM tab1
----
-3190
-3218
-3227

skipif mysql # not compatible
query I rowsort label-8262
SELECT ( + CAST ( + - 53 AS INTEGER ) ) * + 62 + col2 AS col0 FROM tab1
----
-3190
-3218
-3227

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - COUNT( ALL 39 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - COUNT ( ALL 39 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8264
SELECT ALL + 61 + - COUNT( * ) * + - 17 AS col0 FROM tab2 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-8264
SELECT ALL + 61 + - COUNT ( * ) * + - 17 AS col0 FROM tab2 AS cor0
----
112

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + - col2 ) AND + 29
----

query II rowsort
SELECT col2, 8 AS col0 FROM tab0
----
10
8
47
8
99
8

query III rowsort
SELECT * FROM tab2 WHERE + - 76 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8268
SELECT CAST( + - 98 AS SIGNED ) FROM tab2
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-8268
SELECT CAST ( + - 98 AS INTEGER ) FROM tab2
----
-98
-98
-98

query III rowsort
SELECT * FROM tab0 WHERE - - ( - 18 ) IN ( - - 9 )
----

query I rowsort
SELECT DISTINCT 35 - 16 FROM tab2
----
19

query I rowsort
SELECT col0 * + - 3 AS col0 FROM tab2
----
-138
-192
-225

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8272
SELECT DISTINCT + ( - CAST( + CAST( - ( + 62 ) AS SIGNED ) AS DECIMAL ) ) AS col1 FROM tab0 WHERE NOT - col2 + - col0 = NULL
----

skipif mysql # not compatible
query I rowsort label-8272
SELECT DISTINCT + ( - CAST ( + CAST ( - ( + 62 ) AS INTEGER ) AS REAL ) ) AS col1 FROM tab0 WHERE NOT - col2 + - col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT - col2 IN ( - + col1 + + col1 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8274
SELECT - - ( COUNT( col0 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col1 AND - col0
----
0

skipif mysql # not compatible
query I rowsort label-8274
SELECT - - ( COUNT ( col0 ) ) FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col1 AND - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - ( - + col1 ) ) + - col0 col0 FROM tab1
----
-138
-65
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 83 * - - 49, + 55 col1 FROM tab2 cor0 CROSS JOIN tab0 cor1
----
-4067
55

onlyif mysql # aggregate syntax: 
query II rowsort label-8277
SELECT - 33 AS col0, COUNT( * ) FROM tab0
----
-33
3

skipif mysql # not compatible
query II rowsort label-8277
SELECT - 33 AS col0, COUNT ( * ) FROM tab0
----
-33
3

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 63 * - + col0 AS col1 FROM tab0 AS cor0
----
5481
6111
945

onlyif mysql # aggregate syntax: 
query I rowsort label-8280
SELECT DISTINCT - COUNT( ALL 49 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8280
SELECT DISTINCT - COUNT ( ALL 49 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8281
SELECT + - 2 * - CAST( NULL AS SIGNED ) - 10 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8281
SELECT + - 2 * - CAST ( NULL AS INTEGER ) - 10 + - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8282
SELECT DISTINCT col2 DIV - + col0 * + - ( - 39 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 + CAST( col2 AS SIGNED ) DIV - col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8282
SELECT DISTINCT col2 / - + col0 * + - ( - 39 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + col2 + CAST ( col2 AS INTEGER ) / - col2 ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + + col0 * + - ( col1 ) + col2 - - 29 FROM tab1 AS cor0
----
-337
-4180
-589

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 60 * - 23 * - col1 + + ( + 22 ) NOT BETWEEN ( NULL ) AND NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + col1 >= NULL
----

query I rowsort
SELECT ALL col2 * 19 FROM tab0 AS cor0 WHERE ( NULL ) > + 22
----

query I rowsort
SELECT - 12 AS col0 FROM tab2 AS cor0 WHERE NOT 83 + - col2 NOT BETWEEN + 32 AND ( + + col0 + col1 )
----
-12
-12

query II rowsort
SELECT - col1 + col2 AS col2, - col0 FROM tab1 AS cor0
----
21
-91
54
-85
82
-51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8289
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8289
SELECT DISTINCT * FROM tab2 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + ( + 1 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT * FROM tab0 WHERE col0 < - 83
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8292
SELECT - ( COUNT( * ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + 78 * - - col0
----
0

skipif mysql # not compatible
query I rowsort label-8292
SELECT - ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NULL BETWEEN NULL AND + 78 * - - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT MIN( - + 70 ) AS col0 FROM tab1 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-8293
SELECT MIN ( - + 70 ) AS col0 FROM tab1 AS cor0
----
-70

query I rowsort
SELECT DISTINCT - 27 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) > ( + ( - col0 ) * + col0 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 29 * col0 NOT IN ( - col1, + col1, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8296
SELECT DISTINCT + ( + col2 ) * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8296
SELECT DISTINCT + ( + col2 ) * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT ALL + 33 + + - MAX( DISTINCT 75 ) * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8297
SELECT ALL + 33 + + - MAX ( DISTINCT 75 ) * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8298
SELECT - CAST( NULL AS SIGNED ) / ( + AVG ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8298
SELECT - CAST ( NULL AS INTEGER ) / ( + AVG ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8299
SELECT 23 - SUM( + + col0 ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-574

skipif mysql # not compatible
query I rowsort label-8299
SELECT 23 - SUM ( + + col0 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-574

query II rowsort
SELECT DISTINCT + col2 + + col2 AS col0, - 50 AS col2 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 97 + 37 FROM tab2 AS cor0
----
134

query I rowsort
SELECT + col0 + + - ( 91 ) AS col0 FROM tab0
----
-4
-76
6

query I rowsort
SELECT ALL col0 - - + col1 AS col0 FROM tab2
----
141
142
97

query I rowsort
SELECT 99 + col2 * + - col2 AS col0 FROM tab2
----
-1501
-3265
-430

query I rowsort
SELECT DISTINCT - 68 * + col2 FROM tab2
----
-1564
-2720
-3944

query I rowsort
SELECT col1 + - col2 * + 66 - - + col1 AS col0 FROM tab2
----
-1416
-2486
-3694

query I rowsort
SELECT col2 + - 82 + - col2 AS col2 FROM tab0
----
-82
-82
-82

query I rowsort
SELECT DISTINCT + 38 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + 9 * - + col1 * - 68 * 51 IS NULL
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT + COUNT( * ) * + + 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
387

skipif mysql # not compatible
query I rowsort label-8309
SELECT + COUNT ( * ) * + + 43 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
387

query I rowsort
SELECT ALL 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col1 * ( + + col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col0 * + + ( col0 ) AS col2 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8313
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
97

onlyif mysql # DIV for integer division: 
query II rowsort label-8314
SELECT - col0 * + col2 + col2, + col1 DIV - - 23 col1 FROM tab0 cor0
----
-658
3
-860
0
-9504
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8314
SELECT - col0 * + col2 + col2, + col1 / - - 23 col1 FROM tab0 cor0
----
-658
3
-860
0
-9504
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - 13 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT DISTINCT MIN( 58 ) AS col2 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-8316
SELECT DISTINCT MIN ( 58 ) AS col2 FROM tab0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - + col2 * + 62 col0 FROM tab2
----
-158720
-269700
-65596

query II rowsort
SELECT col2 AS col0, - 36 * + 97 AS col1 FROM tab2
----
23
-3492
40
-3492
58
-3492

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT - col2 DIV - - ( 78 ) FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8319
SELECT - col2 / - - ( 78 ) FROM tab1
----
-1
0
0

query II rowsort
SELECT 30, + 91 AS col2 FROM tab0
----
30
91
30
91
30
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8321
SELECT COUNT( DISTINCT + CAST( - col0 AS SIGNED ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8321
SELECT COUNT ( DISTINCT + CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT ALL col1 + - + col0 * - col2 + + col2 FROM tab2
----
1132
2677
4475

query I rowsort
SELECT DISTINCT col1 + + 42 AS col2 FROM tab0 AS cor0
----
123
43
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8324
SELECT DISTINCT 82 * + COUNT( * ) FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-8324
SELECT DISTINCT 82 * + COUNT ( * ) FROM tab0
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-8325
SELECT ALL + col0 * col1 * - col0 * - col2 * 29 DIV + + col2 AS col1 FROM tab1
----
1047625
1056006
11287003

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + col0 * col1 * - col0 * - col2 * 29 / + + col2 AS col1 FROM tab1
----
1047625
1056006
11287003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - 53 + - col2 * + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - 53 + - col2 * + col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 62 col0 FROM tab1 AS cor0 WHERE 7 IS NOT NULL
----
-62
-62
-62

query I rowsort
SELECT DISTINCT ( 80 ) FROM tab2 AS cor0
----
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) NOT IN ( col1, col0 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8330
SELECT DISTINCT SUM( + col1 ) AS col2 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-8330
SELECT DISTINCT SUM ( + col1 ) AS col2 FROM tab2
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-8331
SELECT col2 DIV + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8331
SELECT col2 / + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8332
SELECT ALL 62 DIV COUNT( * ), COUNT( * ) DIV - + COUNT( * ) AS col0 FROM tab1
----
20
-1

skipif mysql # not compatible
query II rowsort label-8332
SELECT ALL 62 / COUNT ( * ), COUNT ( * ) / - + COUNT ( * ) AS col0 FROM tab1
----
20
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - - col1 ) col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT - 81 AS col2 FROM tab0 cor0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8335
SELECT ALL - 41 + + col2 + + CAST( NULL AS SIGNED ) + + - ( - col1 ) AS col0 FROM tab1 cor0 WHERE + ( - 31 ) NOT IN ( 59 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL - 41 + + col2 + + CAST ( NULL AS INTEGER ) + + - ( - col1 ) AS col0 FROM tab1 cor0 WHERE + ( - 31 ) NOT IN ( 59 )
----
NULL
NULL
NULL

query I rowsort
SELECT - 78 * - - col2 + + 5 AS col1 FROM tab2 AS cor0
----
-1789
-3115
-4519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8337
SELECT + + CAST( NULL AS SIGNED ) * - + ( + 38 ) 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-8337
SELECT + + CAST ( NULL AS INTEGER ) * - + ( + 38 ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 54 col0 FROM tab2 AS cor0
----
-54

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 62 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL + MAX( col0 ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL + MAX ( col0 ) AS col1 FROM tab2
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8341
SELECT DISTINCT - col2, ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8341
SELECT DISTINCT - col2, ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT DISTINCT ( - + 21 ) FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8343
SELECT - SUM( DISTINCT 31 ) FROM tab1
----
-31

skipif mysql # not compatible
query I rowsort label-8343
SELECT - SUM ( DISTINCT 31 ) FROM tab1
----
-31

query I rowsort
SELECT DISTINCT - col0 * col0 AS col2 FROM tab2 WHERE NOT + - col2 IS NOT NULL
----

query I rowsort
SELECT + 14 + + col2 FROM tab1 AS cor0
----
110
73
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8346
SELECT + + ( - COUNT( * ) ) DIV + COUNT( * ) + + MAX( DISTINCT - 42 ) * + MAX( ALL col1 ) FROM tab2 AS cor0
----
-3235

skipif mysql # not compatible
query I rowsort label-8346
SELECT + + ( - COUNT ( * ) ) / + COUNT ( * ) + + MAX ( DISTINCT - 42 ) * + MAX ( ALL col1 ) FROM tab2 AS cor0
----
-3235

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( col1 * col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8348
SELECT ( ( - - CAST( - - col2 AS SIGNED ) ) ) * - col0 AS col0 FROM tab0 cor0 WHERE 38 <= - - ( col0 )
----
-870
-9603

skipif mysql # not compatible
query I rowsort label-8348
SELECT ( ( - - CAST ( - - col2 AS INTEGER ) ) ) * - col0 AS col0 FROM tab0 cor0 WHERE 38 <= - - ( col0 )
----
-870
-9603

query I rowsort
SELECT DISTINCT + col1 - - ( - col2 ) AS col0 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT ALL col2, + ( - 60 ) FROM tab2 AS cor0
----
23
-60
40
-60
58
-60

onlyif mysql # DIV for integer division: 
query II rowsort label-8351
SELECT - col0 - ( + + ( - col2 ) ) AS col2, - col1 DIV 74 FROM tab1 AS cor0
----
-23
0
-26
0
45
0

skipif mysql # not compatible
query II rowsort label-8351
SELECT - col0 - ( + + ( - col2 ) ) AS col2, - col1 / 74 FROM tab1 AS cor0
----
-23
0
-26
0
45
0

query I rowsort
SELECT ALL + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - + col1 * col0 IS NULL
----

query I rowsort
SELECT + col0 * - 31 - - col2 FROM tab1 AS cor0
----
-1485
-2576
-2753

query I rowsort
SELECT DISTINCT col0 + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
144
147
159

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - 18 col1 FROM tab1 AS cor0
----
41
50
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8357
SELECT ALL - 81, - MAX( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
-81
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8357
SELECT ALL - 81, - MAX ( DISTINCT - col0 ) col2 FROM tab0 AS cor0
----
-81
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 67 col1 FROM tab1 AS cor0 WHERE NULL = col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 + + + col0 * col0 BETWEEN - 37 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8360
SELECT ALL col0 DIV - + 41 - 2 + col0 AS col0 FROM tab0
----
13
83
93

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL col0 / - + 41 - 2 + col0 AS col0 FROM tab0
----
13
83
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT + 4 + + ( - COUNT( * ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8361
SELECT + 4 + + ( - COUNT ( * ) ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 > + 43 / + + 68
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8364
SELECT MAX( DISTINCT col0 ) * - 92 AS col0 FROM tab0
----
-8924

skipif mysql # not compatible
query I rowsort label-8364
SELECT MAX ( DISTINCT col0 ) * - 92 AS col0 FROM tab0
----
-8924

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8365
SELECT ALL + col1 DIV CAST( col2 AS SIGNED ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8365
SELECT ALL + col1 / CAST ( col2 AS INTEGER ) FROM tab1
----
0
0
0

query I rowsort
SELECT - 52 * - ( + 99 ) * col0 * + col2 AS col2 FROM tab2
----
13178880
22393800
5446584

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT 28 * + col2 - + 36 / 3 IS NOT NULL
----

query I rowsort
SELECT - 78 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

query I rowsort
SELECT ALL + + col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 * + 10 * - col2 col2 FROM tab0
----
39480
83160
8400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, + col1 col2 FROM tab1
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8372
SELECT ALL 78, COUNT( * ) DIV - + 19 AS col0 FROM tab1 AS cor0
----
78
0

skipif mysql # not compatible
query II rowsort label-8372
SELECT ALL 78, COUNT ( * ) / - + 19 AS col0 FROM tab1 AS cor0
----
78
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8373
SELECT - - CAST( - CAST( + - ( - col1 ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-8373
SELECT - - CAST ( - CAST ( + - ( - col1 ) AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8374
SELECT - - col0 / - col1 AS col0, - col0 + - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT 94 >= NULL
----

skipif mysql # not compatible
query II rowsort label-8374
SELECT - - col0 / - col1 AS col0, - col0 + - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT 94 >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 50 NOT BETWEEN NULL AND + col2
----

query II rowsort
SELECT DISTINCT - 25 + + ( + - 24 ), col0 FROM tab2 AS cor0
----
-49
46
-49
64
-49
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8377
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8377
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT - 47 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-50

skipif mysql # not compatible
query I rowsort label-8378
SELECT - 47 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-50

query I rowsort
SELECT DISTINCT - col1 + - col0 + ( col2 ) * 37 FROM tab1 AS cor0
----
2093
2378
3487

query I rowsort
SELECT 11 * - 41 AS col2 FROM tab0
----
-451
-451
-451

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( col0 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8382
SELECT COUNT( - col1 ) * + COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8382
SELECT COUNT ( - col1 ) * + COUNT ( * ) col1 FROM tab1
----
9

query II rowsort
SELECT DISTINCT - ( + 22 ), - 20 AS col2 FROM tab1 AS cor0
----
-22
-20

query I rowsort
SELECT ( - + 74 ) + - 11 AS col2 FROM tab2
----
-85
-85
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL >= + CAST( + 90 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-8385
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL >= + CAST ( + 90 AS INTEGER ) )
----

query II rowsort
SELECT ALL col1 AS col1, col1 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8387
SELECT * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) + + col2 ) NOT BETWEEN - ( - col0 ) - + 0 + + - 11 + + col1 AND - col0
----

skipif mysql # not compatible
query III rowsort label-8387
SELECT * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) + + col2 ) NOT BETWEEN - ( - col0 ) - + 0 + + - 11 + + col1 AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8388
SELECT - COUNT( * ) AS col0, MIN( + col2 ) DIV + 63 FROM tab0 AS cor0
----
-3
0

skipif mysql # not compatible
query II rowsort label-8388
SELECT - COUNT ( * ) AS col0, MIN ( + col2 ) / + 63 FROM tab0 AS cor0
----
-3
0

query I rowsort
SELECT 11 FROM tab0 AS cor0 WHERE ( NOT - - 33 >= + 60 * 87 )
----
11
11
11

query I rowsort
SELECT col0 - - col1 + + ( - col1 ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT COUNT( * ) - 6 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8391
SELECT COUNT ( * ) - 6 FROM tab0
----
-3

query I rowsort
SELECT + 95 - - - ( + col2 ) FROM tab2
----
37
55
72

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col1, - col1 * col1 AS col2 FROM tab0
----
1
-1
21
-441
81
-6561

query I rowsort
SELECT DISTINCT - col0 * + - 0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - col2 AS col0, 91 FROM tab1
----
-59
91
-68
91
-96
91

query I rowsort
SELECT ( 26 ) AS col2 FROM tab2
----
26
26
26

query I rowsort
SELECT ALL ( col1 ) * + 59 * + - 74 + + col0 AS col1 FROM tab2
----
-222620
-292447
-336118

onlyif mysql # aggregate syntax: 
query II rowsort label-8399
SELECT - 19 + SUM( DISTINCT col0 ) AS col2, + 11 FROM tab2 WHERE NOT - col1 + - - col2 IS NOT NULL
----
NULL
11

skipif mysql # not compatible
query II rowsort label-8399
SELECT - 19 + SUM ( DISTINCT col0 ) AS col2, + 11 FROM tab2 WHERE NOT - col1 + - - col2 IS NOT NULL
----
NULL
11

query I rowsort
SELECT DISTINCT 49 * - 54 AS col1 FROM tab1
----
-2646

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 25 col1 FROM tab0
----
-25

query II rowsort
SELECT ALL + col1, col1 AS col1 FROM tab2 WHERE - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8403
SELECT DISTINCT + col0 * col1 FROM tab1 WHERE NOT + 15 * + col0 * - + col2 + - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8403
SELECT DISTINCT + col0 * col1 FROM tab1 WHERE NOT + 15 * + col0 * - + col2 + - - CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT - - col2 AS col0, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT - COUNT( * ) * - SUM( 71 ) AS col0 FROM tab1 AS cor0
----
639

skipif mysql # not compatible
query I rowsort label-8405
SELECT - COUNT ( * ) * - SUM ( 71 ) AS col0 FROM tab1 AS cor0
----
639

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8406
SELECT CAST( + + 54 AS SIGNED ) FROM tab2 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-8406
SELECT CAST ( + + 54 AS INTEGER ) FROM tab2 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8407
SELECT ALL 34 * + CAST( - - 79 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
2686
2686
2686

skipif mysql # not compatible
query I rowsort label-8407
SELECT ALL 34 * + CAST ( - - 79 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
2686
2686
2686

query I rowsort
SELECT + - col1 * - col2 + - + col0 FROM tab2 AS cor0
----
1127
3016
3811

query I rowsort
SELECT DISTINCT - + col0 / + col1 FROM tab2 AS cor0 WHERE - col2 + - - col0 IS NULL
----

query I rowsort
SELECT ALL - 84 + + col2 AS col2 FROM tab2 cor0
----
-26
-44
-61

query II rowsort
SELECT DISTINCT col2, - col2 + - ( + + 41 ) AS col0 FROM tab1
----
59
-100
68
-109
96
-137

onlyif mysql # aggregate syntax: 
query I rowsort label-8412
SELECT + ( + COUNT( * ) ) FROM tab2 WHERE - 92 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8412
SELECT + ( + COUNT ( * ) ) FROM tab2 WHERE - 92 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8413
SELECT DISTINCT - col2 + + col0 + + col2 - 52 + - 13 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT DISTINCT - col2 + + col0 + + col2 - 52 + - 13 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT - - 34 AS col2, 98 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8415
SELECT + col2 + + + CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) / 26 / - col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8415
SELECT + col2 + + + CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) / 26 / - col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8416
SELECT COUNT( * ) + 98 * + 53 AS col1, + 62 AS col2 FROM tab0 AS cor0
----
5197
62

skipif mysql # not compatible
query II rowsort label-8416
SELECT COUNT ( * ) + 98 * + 53 AS col1, + 62 AS col2 FROM tab0 AS cor0
----
5197
62

query I rowsort
SELECT 1 + + - 41 AS col0 FROM tab2 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8418
SELECT ALL 2 * + col2 - col1 + - ( CAST( + ( - 74 ) AS SIGNED ) ) AS col0, CAST( + col1 AS SIGNED ) * col0 - + col2 AS col2 FROM tab0
----
271
-2
73
1817
87
1168

skipif mysql # not compatible
query II rowsort label-8418
SELECT ALL 2 * + col2 - col1 + - ( CAST ( + ( - 74 ) AS INTEGER ) ) AS col0, CAST ( + col1 AS INTEGER ) * col0 - + col2 AS col2 FROM tab0
----
271
-2
73
1817
87
1168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8419
SELECT + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8419
SELECT + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8420
SELECT DISTINCT - COUNT( * ) * - + AVG ( ALL + CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8420
SELECT DISTINCT - COUNT ( * ) * - + AVG ( ALL + CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8421
SELECT - - col1 - - col0 DIV - + col2 FROM tab0 cor0
----
1
13
81

skipif mysql # not compatible
query I rowsort label-8421
SELECT - - col1 - - col0 / - + col2 FROM tab0 cor0
----
1
13
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8422
SELECT DISTINCT - ( - MAX( DISTINCT + - 39 ) ) FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - ( - MAX ( DISTINCT + - 39 ) ) FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-8423
SELECT ALL - 99 + - COUNT( DISTINCT col1 ) FROM tab2 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-8423
SELECT ALL - 99 + - COUNT ( DISTINCT col1 ) FROM tab2 AS cor0
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT ALL SUM( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8424
SELECT ALL SUM ( - col1 ) FROM tab2 AS cor0 WHERE NOT NULL = + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8425
SELECT ALL - MIN( ALL ( + col0 ) ) FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8425
SELECT ALL - MIN ( ALL ( + col0 ) ) FROM tab2 cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT ALL + COUNT( + + 93 ) + - SUM( ALL + 81 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-240

skipif mysql # not compatible
query I rowsort label-8426
SELECT ALL + COUNT ( + + 93 ) + - SUM ( ALL + 81 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
-240

query I rowsort
SELECT DISTINCT - 40 * 14 + 99 + - 27 FROM tab1 AS cor0
----
-488

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT ALL + - 86 / + MIN( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE ( 23 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8428
SELECT ALL + - 86 / + MIN ( DISTINCT - - col2 ) FROM tab0 AS cor0 WHERE ( 23 ) IS NULL
----
NULL

query I rowsort
SELECT - col0 * 68 * - - col1 + - col0 FROM tab0 WHERE NOT col2 + + ( - col1 ) IS NULL
----
-124323
-6693
-82635

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT - CAST( - 35 AS SIGNED ) * col2 AS col2 FROM tab0 AS cor0
----
1645
3465
350

skipif mysql # not compatible
query I rowsort label-8431
SELECT - CAST ( - 35 AS INTEGER ) * col2 AS col2 FROM tab0 AS cor0
----
1645
3465
350

onlyif mysql # aggregate syntax: 
query I rowsort label-8432
SELECT - SUM( 38 ) AS col1 FROM tab0 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-8432
SELECT - SUM ( 38 ) AS col1 FROM tab0 AS cor0
----
-114

onlyif mysql # aggregate syntax: 
query II rowsort label-8433
SELECT ALL + 11 AS col1, + COUNT( * ) AS col2 FROM tab2 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-8433
SELECT ALL + 11 AS col1, + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
11
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + col1 + + - ( 0 ) * + - 71 col1 FROM tab1 WHERE - col0 * + + 56 * 63 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - + 33 * + col2 FROM tab0 AS cor0
----
-1551
-3267
-330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + col2 col0 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT ALL col0 * - col0 + + 0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8439
SELECT - - COUNT( * ) + + - 76 AS col2 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-73

skipif mysql # not compatible
query I rowsort label-8439
SELECT - - COUNT ( * ) + + - 76 AS col2 FROM tab2 cor0 WHERE + col0 IS NOT NULL
----
-73

query I rowsort
SELECT DISTINCT - col2 + + col2 - + + col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + 87 + - - col1 FROM tab0 AS cor0
----
108
168
88

query I rowsort
SELECT DISTINCT + col2 * + 25 FROM tab2 WHERE NOT 83 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * ( + 57 ) FROM tab2
----
-2907
-3819
-4389

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT - MIN( - + 61 ) AS col0 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-8444
SELECT - MIN ( - + 61 ) AS col0 FROM tab2
----
61

query I rowsort
SELECT ALL col2 + + 7 + + - col1 FROM tab1
----
28
61
89

query I rowsort
SELECT col2 * + + col0 * + 20 FROM tab1
----
100300
123760
97920

query II rowsort
SELECT ALL - 63 * + col0, col0 + - 27 AS col0 FROM tab0
----
-5481
60
-6111
70
-945
-12

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + col1 > + 82 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT + + COUNT( * ) FROM tab0 WHERE NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT + + COUNT ( * ) FROM tab0 WHERE NULL >= NULL
----
0

query II rowsort
SELECT DISTINCT - col2 * + col2 AS col0, 23 * + - 12 AS col0 FROM tab2
----
-1600
-276
-3364
-276
-529
-276

query I rowsort
SELECT DISTINCT - 83 FROM tab0 WHERE NULL NOT BETWEEN + - col1 AND - - col1 + + 61 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + COUNT( * ) + 89 + + MAX( DISTINCT col1 ) * MIN( + - 97 ) FROM tab1
----
-4467

skipif mysql # not compatible
query I rowsort label-8452
SELECT + COUNT ( * ) + 89 + + MAX ( DISTINCT col1 ) * MIN ( + - 97 ) FROM tab1
----
-4467

query I rowsort
SELECT + 17 + - col1 * + - col1 FROM tab0
----
18
458
6578

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8454
SELECT - CAST( + 46 AS SIGNED ) DIV - 37 + col0 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-8454
SELECT - CAST ( + 46 AS INTEGER ) / - 37 + col0 FROM tab0
----
16
88
98

query I rowsort
SELECT - 97 + - col0 AS col2 FROM tab2
----
-143
-161
-172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8456
SELECT ( - + CAST( + 57 AS SIGNED ) ) + + col2 - col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8456
SELECT ( - + CAST ( + 57 AS INTEGER ) ) + + col2 - col2 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT SUM( + 8 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT SUM ( + 8 ) FROM tab0 AS cor0
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 64 AS col0, - col0 col0 FROM tab1 AS cor0
----
64
-51
64
-85
64
-91

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NOT col1 * col2 * + col0 + - + col0 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8460
SELECT ALL - + AVG ( ALL - + 93 ) * + ( - 19 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT ALL - + AVG ( ALL - + 93 ) * + ( - 19 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT + ( - COUNT( * ) ) AS col1 FROM tab0 WHERE NOT + - 93 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8461
SELECT + ( - COUNT ( * ) ) AS col1 FROM tab0 WHERE NOT + - 93 >= NULL
----
0

query I rowsort
SELECT ALL ( + 2 ) AS col2 FROM tab2 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - ( - - col1 ) col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8464
SELECT DISTINCT + - COUNT( + col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8464
SELECT DISTINCT + - COUNT ( + col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 82, - col2 / + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8466
SELECT 62 - + + 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-8466
SELECT 62 - + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT DISTINCT - + col0 + + - col2 + col1 * col0 + - - col2, + col1 - col1 AS col1 FROM tab0 AS cor0
----
0
0
1200
0
1740
0

query II rowsort
SELECT ALL - col0 + + ( 21 ) AS col2, + col1 * - col0 FROM tab2 AS cor0
----
-25
-2346
-43
-4928
-54
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT ALL - ( - COUNT( * ) ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-8469
SELECT ALL - ( - COUNT ( * ) ) + COUNT ( * ) FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT ALL - MAX( ALL - col2 ) * + 66 AS col0 FROM tab1 AS cor0
----
3894

skipif mysql # not compatible
query I rowsort label-8470
SELECT ALL - MAX ( ALL - col2 ) * + 66 AS col0 FROM tab1 AS cor0
----
3894

query I rowsort
SELECT + col0 * 7 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
17843
30383
7355

onlyif mysql # DIV for integer division: 
query I rowsort label-8472
SELECT ALL - ( + + col0 ) DIV col2 + + - col2 FROM tab0
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-8472
SELECT ALL - ( + + col0 ) / col2 + + - col2 FROM tab0
----
-18
-47
-99

query I rowsort
SELECT 82 + - col2 AS col1 FROM tab0
----
-17
35
72

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN + - 73 AND + 76
----

query I rowsort
SELECT ALL col0 * + + col2 - - + col0 AS col2 FROM tab1
----
4947
5100
6279

onlyif mysql # DIV for integer division: 
query I rowsort label-8476
SELECT ALL + ( + 49 ) DIV - + col0 AS col2 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-8476
SELECT ALL + ( + 49 ) / - + col0 AS col2 FROM tab0
----
-3
0
0

query I rowsort
SELECT 81 * + col0 + - 56 FROM tab0
----
1159
6991
7801

query II rowsort
SELECT + col1, 47 - + + col1 FROM tab0 cor0
----
1
46
21
26
81
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT ALL + + col2 + + ( 84 ) * - CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT ALL + + col2 + + ( 84 ) * - CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8480
SELECT CAST( NULL AS SIGNED ) * - MIN( - - 22 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT CAST ( NULL AS INTEGER ) * - MIN ( - - 22 ) FROM tab2
----
NULL

query I rowsort
SELECT - + 89 FROM tab1 AS cor0 WHERE NOT ( NOT - + col0 + - 13 IS NULL )
----

query I rowsort
SELECT DISTINCT - + 90 AS col1 FROM tab0 AS cor0 WHERE NOT - 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 cor0 WHERE NOT - col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 47 col2 FROM tab0 cor0
----
-47

query I rowsort
SELECT ALL ( - - 41 ) * 71 FROM tab0 AS cor0
----
2911
2911
2911

query I rowsort
SELECT ALL col1 * - 68 FROM tab2
----
-3468
-4556
-5236

onlyif mysql # aggregate syntax: 
query I rowsort label-8487
SELECT DISTINCT + MAX( DISTINCT - - col2 ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8487
SELECT DISTINCT + MAX ( DISTINCT - - col2 ) FROM tab1
----
96

query II rowsort
SELECT + col1 AS col2, 78 * - col0 * - col0 AS col1 FROM tab1
----
14
202878
47
645918
5
563550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 87 col2, col1 AS col1 FROM tab0
----
87
1
87
21
87
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8490
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( NULL AS DECIMAL ) + + + 31 * + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8490
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( NULL AS REAL ) + + + 31 * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8491
SELECT ALL - - ( 19 ) + - COUNT( * ) col2 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8491
SELECT ALL - - ( 19 ) + - COUNT ( * ) col2 FROM tab0 AS cor0
----
16

query I rowsort
SELECT ALL - - col1 + - 31 AS col0 FROM tab0 cor0
----
-10
-30
50

query I rowsort
SELECT DISTINCT - + 68 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT DISTINCT COUNT( * ) * + 3 + - - COUNT( * ) - - - 67 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT COUNT ( * ) * + 3 + - - COUNT ( * ) - - - 67 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 cor0 WHERE NOT + 33 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8497
SELECT DISTINCT col2 + + CAST( NULL AS SIGNED ) AS col2, ( 14 ) col1 FROM tab1 AS cor0
----
NULL
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8497
SELECT DISTINCT col2 + + CAST ( NULL AS INTEGER ) AS col2, ( 14 ) col1 FROM tab1 AS cor0
----
NULL
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 72 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 BETWEEN col0 AND + + 31 * + col0 - + col1
----
15
81
47

query I rowsort
SELECT ALL - 12 + - col2 AS col0 FROM tab0 AS cor0
----
-111
-22
-59

query I rowsort
SELECT ALL + col1 * + 14 + - col1 FROM tab2
----
1001
663
871

query I rowsort
SELECT ALL col2 FROM tab1 WHERE ( ( - col2 ) ) + + col1 = - + 37
----

query I rowsort
SELECT ALL col0 - - + ( - 94 ) FROM tab0
----
-7
-79
3

query II rowsort
SELECT DISTINCT col0 * - + col2 + ( - col2 ) * + col2, col0 FROM tab1
----
-10812
91
-14112
51
-8496
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT DISTINCT COUNT( DISTINCT col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8505
SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col1 FROM tab2
----
3

query II rowsort
SELECT col2 AS col2, + 24 FROM tab1
----
59
24
68
24
96
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - + 66 col1 FROM tab2
----
-15
1
11

query I rowsort
SELECT - col2 - + + col1 + - col2 AS col2 FROM tab2
----
-157
-183
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8509
SELECT ALL MAX( ( - col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8509
SELECT ALL MAX ( ( - col0 ) ) FROM tab1
----
-51

query I rowsort
SELECT col0 * - + 53 - + col0 + - 1 FROM tab0
----
-4699
-5239
-811

query II rowsort
SELECT ALL col0, col2 * 81 FROM tab0 AS cor0
----
15
3807
87
810
97
8019

query I rowsort
SELECT DISTINCT - col2 * col0 * - col2 AS col0 FROM tab1 AS cor0
----
295885
420784
470016

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8513
SELECT - 3 DIV - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8513
SELECT - 3 / - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT ( + col1 ), 75 * - - col1 + - 57 * - 6 FROM tab1
----
14
1392
47
3867
5
717

onlyif mysql # aggregate syntax: 
query I rowsort label-8515
SELECT DISTINCT - MIN( col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-8515
SELECT DISTINCT - MIN ( col0 ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + - 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-75

query III rowsort
SELECT * FROM tab1 WHERE NOT - 79 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8518
SELECT ALL MAX( + + CAST( - + 74 AS SIGNED ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-74

skipif mysql # not compatible
query I rowsort label-8518
SELECT ALL MAX ( + + CAST ( - + 74 AS INTEGER ) ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8519
SELECT ALL - CAST( + 20 AS SIGNED ) * - - col0 FROM tab2 WHERE NULL IS NULL
----
-1280
-1500
-920

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - CAST ( + 20 AS INTEGER ) * - - col0 FROM tab2 WHERE NULL IS NULL
----
-1280
-1500
-920

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 98 + 79 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8521
SELECT DISTINCT + 3 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8521
SELECT DISTINCT + 3 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT ALL - col1 * + - col0 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - 47 * + 24 * - 72 + + + ( - - 25 ) FROM tab1 AS cor0
----
81241
81241
81241

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8524
SELECT DISTINCT - col1 * col2 * + CAST( - col2 AS SIGNED ) FROM tab1
----
129024
17405
217328

skipif mysql # not compatible
query I rowsort label-8524
SELECT DISTINCT - col1 * col2 * + CAST ( - col2 AS INTEGER ) FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8525
SELECT DISTINCT - COUNT( * ) DIV + SUM( 86 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8525
SELECT DISTINCT - COUNT ( * ) / + SUM ( 86 ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8526
SELECT ALL COUNT( * ) DIV MIN( DISTINCT - + 14 ) AS col0, + 41 AS col2 FROM tab0
----
0
41

skipif mysql # not compatible
query II rowsort label-8526
SELECT ALL COUNT ( * ) / MIN ( DISTINCT - + 14 ) AS col0, + 41 AS col2 FROM tab0
----
0
41

query I rowsort
SELECT DISTINCT 42 AS col2 FROM tab0 WHERE NOT ( NOT ( NOT - ( - + col1 ) * + col1 IS NULL ) )
----
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8528
SELECT DISTINCT - COUNT( DISTINCT 41 ), 62 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-1
NULL

skipif mysql # not compatible
query II rowsort label-8528
SELECT DISTINCT - COUNT ( DISTINCT 41 ), 62 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-1
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8529
SELECT - 71 + + - COUNT( - col0 ) col1 FROM tab0 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8529
SELECT - 71 + + - COUNT ( - col0 ) col1 FROM tab0 AS cor0
----
-74

query I rowsort
SELECT 10 + col1 - 87 * 87 FROM tab0 AS cor0
----
-7478
-7538
-7558

query I rowsort
SELECT - ( + 14 ) + + + 3 * col2 FROM tab1 AS cor0
----
163
190
274

query I rowsort
SELECT DISTINCT + col1 + col2 * - 43 FROM tab0 AS cor0
----
-1940
-409
-4256

query I rowsort
SELECT ALL + + 84 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8534
SELECT - ( - 33 ) DIV COUNT( DISTINCT - - col0 ) col1 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8534
SELECT - ( - 33 ) / COUNT ( DISTINCT - - col0 ) col1 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8535
SELECT + - COUNT( * ) - + 37 AS col0 FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-8535
SELECT + - COUNT ( * ) - + 37 AS col0 FROM tab2 AS cor0
----
-40

query I rowsort
SELECT 66 - + col1 AS col1 FROM tab2 AS cor0
----
-1
-11
15

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + 99 IS NOT NULL
----

query I rowsort
SELECT - + col1 - 17 * col2 AS col2 FROM tab1 AS cor0
----
-1008
-1203
-1646

query I rowsort
SELECT ALL + ( + col2 ) + - - col2 AS col0 FROM tab1 cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8540
SELECT - SUM( - col2 ) FROM tab1 AS cor0 WHERE - col0 >= - 33
----
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT - SUM ( - col2 ) FROM tab1 AS cor0 WHERE - col0 >= - 33
----
NULL

query I rowsort
SELECT ALL + - col2 - + col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - 7 AS col1 FROM tab1 AS cor0
----
-12
-21
-54

query II rowsort
SELECT ALL 58, - col1 * 6 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( col0, + 37 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8544
SELECT DISTINCT 79 * + - col0 - + CAST( + col2 AS SIGNED ) FROM tab1
----
-4125
-6774
-7257

skipif mysql # not compatible
query I rowsort label-8544
SELECT DISTINCT 79 * + - col0 - + CAST ( + col2 AS INTEGER ) FROM tab1
----
-4125
-6774
-7257

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 31
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - + col0 AND - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8547
SELECT + col0 * CAST( NULL AS SIGNED ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8547
SELECT + col0 * CAST ( NULL AS INTEGER ) * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8548
SELECT DISTINCT 62 DIV - MAX( + col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8548
SELECT DISTINCT 62 / - MAX ( + col1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT - 64 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

onlyif mysql # aggregate syntax: 
query I rowsort label-8550
SELECT ALL MIN( - - col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL MIN ( - - col1 ) FROM tab0
----
1

query II rowsort
SELECT DISTINCT - 51, col1 FROM tab1
----
-51
14
-51
47
-51
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8552
SELECT ALL - 86 * + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8552
SELECT ALL - 86 * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col2 * + col2 + col0 + - col2 * col2 * - 79 + - col2 AS col2 FROM tab0 cor0
----
176688
784078
8077

onlyif mysql # DIV for integer division: 
query I rowsort label-8555
SELECT ALL + 77 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
1
3

skipif mysql # not compatible
query I rowsort label-8555
SELECT ALL + 77 / + col2 AS col0 FROM tab2 AS cor0
----
1
1
3

query I rowsort
SELECT - col0 + + 80 FROM tab2 AS cor0
----
16
34
5

query I rowsort
SELECT - + col2 AS col1 FROM tab1 WHERE NOT + 19 IS NULL
----
-59
-68
-96

query I rowsort
SELECT 86 * - 68 * - col0 AS col2 FROM tab1
----
298248
497080
532168

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8559
SELECT DISTINCT - ( - col0 ) AS col1, 85 + CAST( NULL AS SIGNED ) FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-8559
SELECT DISTINCT - ( - col0 ) AS col1, 85 + CAST ( NULL AS INTEGER ) FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8560
SELECT col0, 50 DIV 18 AS col2 FROM tab2
----
46
2
64
2
75
2

skipif mysql # not compatible
query II rowsort label-8560
SELECT col0, 50 / 18 AS col2 FROM tab2
----
46
2
64
2
75
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8561
SELECT - CAST( NULL AS SIGNED ) * + 2 AS col0, 37 AS col2 FROM tab1
----
NULL
37
NULL
37
NULL
37

skipif mysql # not compatible
query II rowsort label-8561
SELECT - CAST ( NULL AS INTEGER ) * + 2 AS col0, 37 AS col2 FROM tab1
----
NULL
37
NULL
37
NULL
37

query I rowsort
SELECT ALL col2 * + - 50 * col0 AS col0 FROM tab1
----
-244800
-250750
-309400

query I rowsort
SELECT DISTINCT + col1 + + - col0 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT + + ( + - col2 ) * - - col1 * + - 78 + - col0 FROM tab1 AS cor0
----
104781
22925
249197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8565
SELECT DISTINCT col1 * CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8565
SELECT DISTINCT col1 * CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 * + + col1 + 78 - + ( col2 ) AS col1 FROM tab2
----
1228
3118
3906

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8568
SELECT * FROM tab0 cor0 WHERE - col2 + + CAST( NULL AS DECIMAL ) NOT BETWEEN - - col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8568
SELECT * FROM tab0 cor0 WHERE - col2 + + CAST ( NULL AS REAL ) NOT BETWEEN - - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 17 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - col0 + - col2 + + col2, col0 AS col2 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8572
SELECT ALL + 4 - 22, + MAX( + col1 ) col1 FROM tab0 AS cor0
----
-18
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8572
SELECT ALL + 4 - 22, + MAX ( + col1 ) col1 FROM tab0 AS cor0
----
-18
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 col1 FROM tab2
----
-85
-85
-85

query II rowsort
SELECT col0, col0 * 4 * col0 + - col1 AS col2 FROM tab0 AS cor0
----
15
819
87
30255
97
37635

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) > 63
----

query III rowsort
SELECT * FROM tab2 WHERE NULL <> - 77
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN NULL AND - 82
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT - col1 + CAST( NULL AS SIGNED ) FROM tab1 WHERE + col2 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-8578
SELECT - col1 + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col2 <= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 6 <= col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - col2 ) NOT BETWEEN ( NULL ) AND + col2 / col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - 1 ) AND ( - col2 + + 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT 27 * + COUNT( * ) + + ( + COUNT( * ) ) AS col1 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-8582
SELECT 27 * + COUNT ( * ) + + ( + COUNT ( * ) ) AS col1 FROM tab1
----
84

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( col0 ) <= - 77 * + col1 - - ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 92 + + col1 * + 32 AS col2 FROM tab2
----
1540
2052
2372

onlyif mysql # aggregate syntax: 
query I rowsort label-8585
SELECT + MIN( col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8585
SELECT + MIN ( col0 ) AS col1 FROM tab0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8586
SELECT COUNT( * ) + SUM( DISTINCT - 1 ) * 86 FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-8586
SELECT COUNT ( * ) + SUM ( DISTINCT - 1 ) * 86 FROM tab0
----
-83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( col2 )
----

query I rowsort
SELECT - ( ( + 94 ) ) AS col2 FROM tab0
----
-94
-94
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col0 col0 FROM tab1
----
-23
-26
45

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) NOT IN ( col1 * + col0 )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN 63 AND ( 96 * ( + col2 ) )
----

query I rowsort
SELECT ( col1 ) AS col0 FROM tab2 WHERE - col1 NOT IN ( + col0 )
----
51
67
77

query I rowsort
SELECT - 96 * col1 AS col0 FROM tab1
----
-1344
-4512
-480

query I rowsort
SELECT ALL - 6 + - col1 FROM tab0
----
-27
-7
-87

query I rowsort
SELECT 82 - ( 36 ) FROM tab0
----
46
46
46

query I rowsort
SELECT ALL col0 * 95 FROM tab2 WHERE ( col2 * ( + col0 ) ) NOT BETWEEN NULL AND + 89
----
4370
6080
7125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8597
SELECT 19 - + CAST( + col2 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1581
-3345
-510

skipif mysql # not compatible
query I rowsort label-8597
SELECT 19 - + CAST ( + col2 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1581
-3345
-510

query I rowsort
SELECT DISTINCT col0 * + 36 AS col0 FROM tab1 WHERE ( + col1 ) NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT + col2 * 69 AS col0 FROM tab2 AS cor0
----
1587
2760
4002

query I rowsort
SELECT col1 * + col0 + 39 AS col1 FROM tab1 AS cor0
----
4316
464
753

onlyif mysql # DIV for integer division: 
query I rowsort label-8601
SELECT ALL col2 + + col0 DIV col0 col1 FROM tab2 AS cor0
----
24
41
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8601
SELECT ALL col2 + + col0 / col0 col1 FROM tab2 AS cor0
----
24
41
59

query I rowsort
SELECT DISTINCT col1 + 96 AS col1 FROM tab1 AS cor0
----
101
110
143

query I rowsort
SELECT ALL 1 * 89 FROM tab0
----
89
89
89

query I rowsort
SELECT DISTINCT 73 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
73

query I rowsort
SELECT DISTINCT - col2 * col2 + col2 * + col2 FROM tab2 WHERE ( col2 * - ( - 92 ) + - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col2 * col0 BETWEEN ( NULL ) AND + 15
----

query I rowsort
SELECT + 81 - 75 AS col2 FROM tab2 cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT ALL - + 55 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-165

skipif mysql # not compatible
query I rowsort label-8608
SELECT ALL - + 55 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <> col0 * - 20
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col2 * 62 BETWEEN 51 AND col2 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT 45 - - COUNT( * ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8611
SELECT 45 - - COUNT ( * ) FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT - + MIN( - col1 ) - COUNT( * ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-8612
SELECT - + MIN ( - col1 ) - COUNT ( * ) FROM tab1 AS cor0
----
44

query I rowsort
SELECT + ( + col0 ) - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 19 FROM tab1 AS cor0 WHERE NULL IS NULL
----
19
19
19

query I rowsort
SELECT + + 90 + 30 FROM tab0 AS cor0
----
120
120
120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT ALL col1 * - col0 - + ( + 75 ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> + col2 / + col0
----

skipif mysql # not compatible
query I rowsort label-8617
SELECT ALL col1 * - col0 - + ( + 75 ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> + col2 / + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8618
SELECT CAST( NULL AS DECIMAL ) * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8618
SELECT CAST ( NULL AS REAL ) * col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8619
SELECT ALL - col2 + - ( + col0 ) DIV col0 col1 FROM tab2 cor0
----
-24
-41
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8619
SELECT ALL - col2 + - ( + col0 ) / col0 col1 FROM tab2 cor0
----
-24
-41
-59

query I rowsort
SELECT ALL 48 FROM tab1 WHERE ( 39 * 98 ) IS NOT NULL
----
48
48
48

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8621
SELECT ALL * FROM tab1 WHERE NULL >= ( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8621
SELECT ALL * FROM tab1 WHERE NULL >= ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 67 + col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT ( + - col1 ) * 74 FROM tab1
----
-1036
-3478
-370

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8624
SELECT COUNT( * ) DIV MAX( 29 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8624
SELECT COUNT ( * ) / MAX ( 29 ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( col0 ) / 69 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 55 * - 16 col1 FROM tab2
----
-40480
-56320
-66000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 40 col2 FROM tab0 AS cor0
----
40

query I rowsort
SELECT DISTINCT - 97 AS col0 FROM tab2 cor0
----
-97

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IN ( 35 )
----

query I rowsort
SELECT col0 FROM tab1 WHERE NOT ( NOT ( - col2 ) >= NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 ) NOT BETWEEN ( col0 ) AND ( + col1 )
----

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE 24 IS NULL
----

query II rowsort
SELECT ALL 87 AS col1, col2 FROM tab0
----
87
10
87
47
87
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL - 37 * - COUNT( * ) + + MIN( + col1 ) FROM tab1 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL - 37 * - COUNT ( * ) + + MIN ( + col1 ) FROM tab1 AS cor0
----
116

onlyif mysql # aggregate syntax: 
query I rowsort label-8637
SELECT DISTINCT COUNT( * ) * + 42 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8637
SELECT DISTINCT COUNT ( * ) * + 42 AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8638
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8638
SELECT + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8639
SELECT ALL + 85 AS col0, + CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
85
3

skipif mysql # not compatible
query II rowsort label-8639
SELECT ALL + 85 AS col0, + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
85
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8640
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE ( - col0 * - - 3 + + CAST( NULL AS SIGNED ) * 72 ) NOT IN ( - 90 + - 1 * col2 )
----

skipif mysql # not compatible
query I rowsort label-8640
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE ( - col0 * - - 3 + + CAST ( NULL AS INTEGER ) * 72 ) NOT IN ( - 90 + - 1 * col2 )
----

query I rowsort
SELECT 23 AS col1 FROM tab0 cor0 WHERE NOT + col2 - + 86 IS NULL
----
23
23
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + 65 ) IN ( col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 < ( 61 )
----
46
51
23

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 90 <> + 14 * + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 60 * - + col2 + + - col2 AS col2 FROM tab1
----
3481
4012
5664

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 + - 97 - 25 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 62 col0 FROM tab2
----
2852
3968
4650

query I rowsort
SELECT + 13 * + + col0 * + col1 FROM tab0
----
1261
15795
23751

query II rowsort
SELECT + 44 * col2 AS col1, 74 FROM tab2
----
1012
74
1760
74
2552
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8650
SELECT DISTINCT - CAST( - 67 AS SIGNED ) AS col2 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-8650
SELECT DISTINCT - CAST ( - 67 AS INTEGER ) AS col2 FROM tab0
----
67

query I rowsort
SELECT ALL 32 * col2 * - 52 AS col2 FROM tab2
----
-38272
-66560
-96512

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - col1 - + col1 + - col0 )
----

query I rowsort
SELECT col1 * + - 97 FROM tab0
----
-2037
-7857
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8654
SELECT - 98 * - 48 + - col2 * ( + CAST( 70 AS SIGNED ) * col1 ) AS col2 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
-2226
-261786
-9996

skipif mysql # not compatible
query I rowsort label-8654
SELECT - 98 * - 48 + - col2 * ( + CAST ( 70 AS INTEGER ) * col1 ) AS col2 FROM tab0 WHERE ( - col0 ) IS NOT NULL
----
-2226
-261786
-9996

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT - col2 * 36 BETWEEN - col2 AND + 33 / col0
----
15
87
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( ( - + col1 ) * - col1 ) IN ( 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 89 FROM tab0 AS cor0 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - ( - ( col1 ) ) - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 42 col0 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT 32 * 8 - col1 FROM tab2 AS cor0
----
179
189
205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT DISTINCT - CAST( - ( + col0 ) AS SIGNED ) * CAST( NULL AS SIGNED ) - + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - CAST ( - ( + col0 ) AS INTEGER ) * CAST ( NULL AS INTEGER ) - + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + 9 + 56 * col2 AS col2 FROM tab0 AS cor0
----
2623
551
5535

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > + + col1 + + col2 + + ( - 75 ) * ( col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - - 95 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab1 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT DISTINCT col2 * - + 24 AS col2 FROM tab2
----
-1392
-552
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT - col1 / 24 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8667
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT - col1 / 24 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT DISTINCT + MAX( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8668
SELECT DISTINCT + MAX ( DISTINCT - col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8669
SELECT + CAST( + AVG ( + col2 ) AS SIGNED ) * + 8 * - SUM( + col0 ) AS col0 FROM tab0 AS cor0
----
-82784

skipif mysql # not compatible
query I rowsort label-8669
SELECT + CAST ( + AVG ( + col2 ) AS INTEGER ) * + 8 * - SUM ( + col0 ) AS col0 FROM tab0 AS cor0
----
-82784

query I rowsort
SELECT 85 - - - 57 + + col0 * + col1 FROM tab1 AS cor0 WHERE + ( - col1 ) IS NOT NULL
----
4305
453
742

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
10
10

query I rowsort
SELECT - col0 * - + col2 + - col2 + + 74 + + 86 * - col0 FROM tab1 AS cor0
----
-1632
-2280
488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 col0 FROM tab2 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - SUM( - 72 ) AS col2 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-8674
SELECT - SUM ( - 72 ) AS col2 FROM tab0 AS cor0
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-8675
SELECT + COUNT( * ) * + COUNT( * ) * + COUNT( * ) FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-8675
SELECT + COUNT ( * ) * + COUNT ( * ) * + COUNT ( * ) FROM tab0 cor0
----
27

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT - col2 >= + col1 - - col1
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 47 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 37 * + 99 AS col1 FROM tab2
----
-3663

onlyif mysql # aggregate syntax: 
query I rowsort label-8679
SELECT COUNT( + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8679
SELECT COUNT ( + col0 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8680
SELECT DISTINCT MIN( + col1 ) col1 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8680
SELECT DISTINCT MIN ( + col1 ) col1 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-8681
SELECT DISTINCT + COUNT( * ) AS col0, - MIN( - + 72 ) FROM tab0
----
3
72

skipif mysql # not compatible
query II rowsort label-8681
SELECT DISTINCT + COUNT ( * ) AS col0, - MIN ( - + 72 ) FROM tab0
----
3
72

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT ALL COUNT( + + col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8682
SELECT ALL COUNT ( + + col2 ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 65 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + col1 / 8 IN ( - 35 - + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 18 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( ( - - ( + + col0 ) ) )
----

query I rowsort
SELECT DISTINCT + + 27 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
27

query II rowsort
SELECT col2 AS col0, + col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT - COUNT( * ) * 64 AS col2 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8688
SELECT - COUNT ( * ) * 64 AS col2 FROM tab2 AS cor0
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8689
SELECT - CAST( NULL AS SIGNED ) / + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8689
SELECT - CAST ( NULL AS INTEGER ) / + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col0 FROM tab2
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8691
SELECT ALL - - CAST( + + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-8691
SELECT ALL - - CAST ( + + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8693
SELECT DISTINCT + COUNT( * ) * + + ( + CAST( NULL AS SIGNED ) ) + - 8 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT + COUNT ( * ) * + + ( + CAST ( NULL AS INTEGER ) ) + - 8 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 45 + - + col1 + - - col1 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8695
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < ( + + col1 )
----

skipif mysql # not compatible
query I rowsort label-8695
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < ( + + col1 )
----

query I rowsort
SELECT DISTINCT + - 54 AS col2 FROM tab2 cor0
----
-54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8697
SELECT col1 + - - col2 * - col1 AS col1, - col1 + - CAST( + - 7 AS SIGNED ) AS col1 FROM tab0
----
-189
-14
-3726
-74
-98
6

skipif mysql # not compatible
query II rowsort label-8697
SELECT col1 + - - col2 * - col1 AS col1, - col1 + - CAST ( + - 7 AS INTEGER ) AS col1 FROM tab0
----
-189
-14
-3726
-74
-98
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT - - COUNT( * ) FROM tab1 WHERE + col0 * - 56 + col0 <> + - col0 + + - 90
----
3

skipif mysql # not compatible
query I rowsort label-8698
SELECT - - COUNT ( * ) FROM tab1 WHERE + col0 * - 56 + col0 <> + - col0 + + - 90
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8699
SELECT DISTINCT + MAX( DISTINCT + 96 ) * COUNT( * ) FROM tab0
----
288

skipif mysql # not compatible
query I rowsort label-8699
SELECT DISTINCT + MAX ( DISTINCT + 96 ) * COUNT ( * ) FROM tab0
----
288

query III rowsort
SELECT * FROM tab1 WHERE + + 15 IS NULL
----

query I rowsort
SELECT ALL + ( ( + - col1 ) ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 68 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT - + 0 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT - + 0 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 62 AS col1 FROM tab1 cor0 WHERE col0 * col1 + col2 BETWEEN NULL AND - ( - + col2 )
----

query I rowsort
SELECT ALL + col2 * col2 + 12 FROM tab1 AS cor0
----
3493
4636
9228

onlyif mysql # aggregate syntax: 
query I rowsort label-8706
SELECT ( + 52 ) - - - MAX( DISTINCT 87 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-8706
SELECT ( + 52 ) - - - MAX ( DISTINCT 87 ) FROM tab0
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59 * col0 AS col2, + col0 col1 FROM tab0 AS cor0
----
5133
87
5723
97
885
15

query I rowsort
SELECT - 30 * + col1 AS col2 FROM tab0 cor0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT MAX( - col1 ) * SUM( ALL - - col2 ) col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8709
SELECT MAX ( - col1 ) * SUM ( ALL - - col2 ) col1 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8710
SELECT DISTINCT MAX( + 30 ) AS col2 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8710
SELECT DISTINCT MAX ( + 30 ) AS col2 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT - - col2 * + col2 * + - col1 * + col0 - - col1 FROM tab2 AS cor0
----
-1240983
-16904033
-7884723

query II rowsort
SELECT DISTINCT - + 5 + + + col0, - 28 * col1 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
46
-392
80
-140
86
-1316

query I rowsort
SELECT - col1 * - 32 FROM tab2 WHERE NOT + col1 IS NULL
----
1632
2144
2464

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8714
SELECT ALL - MAX( 3 ) DIV + MAX( + 92 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8714
SELECT ALL - MAX ( 3 ) / + MAX ( + 92 ) AS col0 FROM tab1
----
0

query I rowsort
SELECT - - col2 - - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
198
20
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8716
SELECT col1 * + - CAST( ( + col1 ) AS SIGNED ) FROM tab0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-8716
SELECT col1 * + - CAST ( ( + col1 ) AS INTEGER ) FROM tab0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8717
SELECT - 66 DIV SUM( DISTINCT col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8717
SELECT - 66 / SUM ( DISTINCT col1 ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT ALL 36 DIV + col2 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8718
SELECT ALL 36 / + col2 FROM tab0
----
0
0
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8719
SELECT ALL + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8720
SELECT + AVG ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8720
SELECT + AVG ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8721
SELECT + MAX( + - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8721
SELECT + MAX ( + - col1 ) FROM tab2
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 46 col0, col0 * - + col1 AS col1 FROM tab1
----
-46
-425
-46
-4277
-46
-714

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col1 + col0 + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 85 - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT + 67 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-8726
SELECT + 67 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
201

query I rowsort
SELECT col0 * 42 AS col0 FROM tab0
----
3654
4074
630

query I rowsort
SELECT col0 * col2 * + - col2 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0, 40 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8729
SELECT + 73 DIV + COUNT( * ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-8729
SELECT + 73 / + COUNT ( * ) FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-8730
SELECT ALL + SUM( ALL + ( - col2 ) ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL + SUM ( ALL + ( - col2 ) ) AS col1 FROM tab2
----
-121

query I rowsort
SELECT ALL - col1 + + ( col0 ) FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8732
SELECT DISTINCT + ( + 96 ) * SUM( ALL 77 ) AS col2 FROM tab0 AS cor0
----
22176

skipif mysql # not compatible
query I rowsort label-8732
SELECT DISTINCT + ( + 96 ) * SUM ( ALL 77 ) AS col2 FROM tab0 AS cor0
----
22176

query I rowsort
SELECT DISTINCT - - col1 + - - 35 AS col2 FROM tab2 AS cor0
----
102
112
86

query I rowsort
SELECT ALL 13 + + + col2 FROM tab1 AS cor0
----
109
72
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-8736
SELECT + + COUNT( * ) AS col0, MAX( DISTINCT + 62 ) FROM tab1 cor0
----
3
62

skipif mysql # not compatible
query II rowsort label-8736
SELECT + + COUNT ( * ) AS col0, MAX ( DISTINCT + 62 ) FROM tab1 cor0
----
3
62

query I rowsort
SELECT ALL + 4 + - - col1 + - col2 AS col1 FROM tab0 cor0
----
-94
15
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + ( - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 30 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8740
SELECT + SUM( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE CAST( 33 AS SIGNED ) - - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8740
SELECT + SUM ( DISTINCT + col2 ) FROM tab0 AS cor0 WHERE CAST ( 33 AS INTEGER ) - - col0 < NULL
----
NULL

query I rowsort
SELECT DISTINCT 72 * 77 AS col2 FROM tab0
----
5544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + - 63 col1 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND - + col2
----

query II rowsort
SELECT ALL col0, - col0 * + ( col2 ) AS col2 FROM tab0 AS cor0
----
15
-705
87
-870
97
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8744
SELECT DISTINCT MAX( - - 35 ) AS col2 FROM tab2 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8744
SELECT DISTINCT MAX ( - - 35 ) AS col2 FROM tab2 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT + + MIN( DISTINCT - 44 ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT + + MIN ( DISTINCT - 44 ) FROM tab2 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query II rowsort label-8746
SELECT + 99 * + + MAX( - - col0 ) col0, - 3 FROM tab1 AS cor0
----
9009
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8746
SELECT + 99 * + + MAX ( - - col0 ) col0, - 3 FROM tab1 AS cor0
----
9009
-3

query II rowsort
SELECT + col0, + col2 FROM tab2 AS cor0 WHERE NOT NULL >= ( 92 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8748
SELECT COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8748
SELECT COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

query I rowsort
SELECT ALL - 99 * + - col2 FROM tab1 AS cor0
----
5841
6732
9504

query I rowsort
SELECT - + col0 * + 99 AS col0 FROM tab2 AS cor0
----
-4554
-6336
-7425

onlyif mysql # aggregate syntax: 
query I rowsort label-8751
SELECT DISTINCT + - COUNT( DISTINCT + - 35 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT + - COUNT ( DISTINCT + - 35 ) AS col2 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + col1 * col1 FROM tab0 WHERE NOT col1 IS NULL
----
1
441
6561

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 * - col1 + col1 ) NOT IN ( - 52 * - + col1, col2, col1 + - - col2 + ( - - col2 ) * - - col0 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8754
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8754
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL - 42 * + COUNT( * ) AS col0 FROM tab2
----
-126

skipif mysql # not compatible
query I rowsort label-8755
SELECT ALL - 42 * + COUNT ( * ) AS col0 FROM tab2
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-8756
SELECT DISTINCT MIN( - col1 ) col2 FROM tab2
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8756
SELECT DISTINCT MIN ( - col1 ) col2 FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 = - 35
----

query I rowsort
SELECT DISTINCT + - 6 FROM tab0 AS cor0 WHERE ( + col2 ) NOT IN ( + + col0, col2 - - col1 - - + 43 + - - ( col0 ) )
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8759
SELECT ALL CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-8759
SELECT ALL CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col1 < - - ( + + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8761
SELECT + SUM( DISTINCT - + 31 ) FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-8761
SELECT + SUM ( DISTINCT - + 31 ) FROM tab1 AS cor0
----
-31

query I rowsort
SELECT DISTINCT 20 * col0 AS col0 FROM tab2 AS cor0
----
1280
1500
920

query I rowsort
SELECT ALL + 5 + - 78 AS col1 FROM tab1 AS cor0
----
-73
-73
-73

query I rowsort
SELECT + 96 * - col2 FROM tab2 AS cor0
----
-2208
-3840
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 61 ) + + col1 col2 FROM tab0 AS cor0
----
-40
-60
20

query I rowsort
SELECT ALL + + 54 * - col1 AS col2 FROM tab1 AS cor0
----
-2538
-270
-756

query I rowsort
SELECT - + col2 + - - 11 FROM tab2 AS cor0
----
-12
-29
-47

query I rowsort
SELECT + - col2 * 36 + + + 34 + + + col2 FROM tab2 AS cor0
----
-1366
-1996
-771

query I rowsort
SELECT col0 * + col1 * col1 + + 37 + 62 + + 4 FROM tab0 AS cor0
----
200
38470
98518

query I rowsort
SELECT ALL - 20 * 20 FROM tab0
----
-400
-400
-400

query I rowsort
SELECT DISTINCT - col2 * col0 AS col2 FROM tab2 WHERE NOT 64 IS NOT NULL
----

query I rowsort
SELECT - 55 + - - 95 - - + col1 FROM tab0
----
121
41
61

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT DISTINCT 82 - - COUNT( * ) + 80 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-8773
SELECT DISTINCT 82 - - COUNT ( * ) + 80 FROM tab2
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - - 95 col0 FROM tab1
----
146
180
186

onlyif mysql # aggregate syntax: 
query I rowsort label-8775
SELECT + + COUNT( - - ( + 18 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8775
SELECT + + COUNT ( - - ( + 18 ) ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 31 * - - col2 < col1
----

query II rowsort
SELECT - ( - 77 ) AS col1, + col0 FROM tab0
----
77
15
77
87
77
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8778
SELECT DISTINCT MAX( ALL + + col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8778
SELECT DISTINCT MAX ( ALL + + col0 ) AS col0 FROM tab2
----
75

query I rowsort
SELECT - + 36 * - col0 * col0 + - - 39 * + 0 + + col2 * col0 AS col2 FROM tab2 AS cor0
----
150016
206850
77234

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT - COUNT( * ) * SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
309

skipif mysql # not compatible
query I rowsort label-8780
SELECT - COUNT ( * ) * SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
309

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 63 > - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 17 IS NOT NULL
----

query I rowsort
SELECT ALL + + 19 * + + col0 FROM tab2 AS cor0
----
1216
1425
874

query I rowsort
SELECT ALL + col1 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT + + MAX( DISTINCT - - 24 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24

skipif mysql # not compatible
query I rowsort label-8786
SELECT + + MAX ( DISTINCT - - 24 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
24

query I rowsort
SELECT DISTINCT - + 53 FROM tab0 cor0
----
-53

query II rowsort
SELECT + col1 AS col2, 30 FROM tab1
----
14
30
47
30
5
30

query I rowsort
SELECT ALL - 9 AS col2 FROM tab2 WHERE NOT + 46 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 4 <> + - col2 - col2 * + + col0 + + col2
----

query II rowsort
SELECT 52 AS col1, col2 * col2 - 32 FROM tab0
----
52
2177
52
68
52
9769

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT COUNT( ALL + - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8792
SELECT COUNT ( ALL + - col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8793
SELECT DISTINCT - CAST( NULL AS SIGNED ), col0 * + 90 + + col1 DIV + col1 col2 FROM tab1
----
NULL
4591
NULL
7651
NULL
8191

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8793
SELECT DISTINCT - CAST ( NULL AS INTEGER ), col0 * + 90 + + col1 / + col1 col2 FROM tab1
----
NULL
4591
NULL
7651
NULL
8191

query I rowsort
SELECT + col2 * + - 9 FROM tab0
----
-423
-891
-90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - + 40 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 * + + 84 * 60 BETWEEN - col1 AND NULL
----

query II rowsort
SELECT 76 AS col0, col2 FROM tab0
----
76
10
76
47
76
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8798
SELECT ALL - 51 DIV col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8798
SELECT ALL - 51 / col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT ALL + col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query II rowsort
SELECT DISTINCT + 53, col0 FROM tab2 AS cor0
----
53
46
53
64
53
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8801
SELECT DISTINCT + - CAST( + - ( - COUNT( * ) ) AS SIGNED ) * + 64 FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8801
SELECT DISTINCT + - CAST ( + - ( - COUNT ( * ) ) AS INTEGER ) * + 64 FROM tab1 AS cor0
----
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - - col2 col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT ( col1 ) + - 11 * col2 AS col2 FROM tab0 AS cor0
----
-1088
-436
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-8804
SELECT ALL + - 88 + + MAX( col2 ) FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-8804
SELECT ALL + - 88 + + MAX ( col2 ) FROM tab0 AS cor0
----
11

query I rowsort
SELECT DISTINCT + 59 + + 79 + + - col0 + - col2 + - col1 AS col0 FROM tab2
----
-43
-62
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8806
SELECT - MIN( 85 ) FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-8806
SELECT - MIN ( 85 ) FROM tab0
----
-85

query I rowsort
SELECT ALL + 65 + - col1 AS col0 FROM tab1
----
18
51
60

onlyif mysql # DIV for integer division: 
query I rowsort label-8808
SELECT ALL + 60 DIV - 30 AS col1 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-8808
SELECT ALL + 60 / - 30 AS col1 FROM tab0
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 46 - 75 AS col2 FROM tab1
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-8810
SELECT DISTINCT + 27 DIV + - col2 AS col2 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-8810
SELECT DISTINCT + 27 / + - col2 AS col2 FROM tab0
----
-2
0

query III rowsort
SELECT * FROM tab1 WHERE 33 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - ( - 17 ) FROM tab2 cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT DISTINCT - + COUNT( + - col2 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8813
SELECT DISTINCT - + COUNT ( + - col2 ) col0 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - - col0 AS col1, - col1 FROM tab2 cor0
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-8815
SELECT DISTINCT COUNT( * ) + - + MAX( col0 ) AS col2 FROM tab0 WHERE NOT ( - 68 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8815
SELECT DISTINCT COUNT ( * ) + - + MAX ( col0 ) AS col2 FROM tab0 WHERE NOT ( - 68 ) IS NOT NULL
----
NULL

query I rowsort
SELECT + ( + 95 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, + col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8818
SELECT CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab1 WHERE NOT + - col0 + - col0 * + + col2 / + col0 * col0 * + + 68 * ( + 27 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8818
SELECT CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT + - col0 + - col0 * + + col2 / + col0 * col0 * + + 68 * ( + 27 ) = NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8819
SELECT - 93 DIV + 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-8819
SELECT - 93 / + 58 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

onlyif mysql # aggregate syntax: 
query I rowsort label-8820
SELECT DISTINCT - COUNT( * ) * 35 * - COUNT( * ) FROM tab2 AS cor0
----
315

skipif mysql # not compatible
query I rowsort label-8820
SELECT DISTINCT - COUNT ( * ) * 35 * - COUNT ( * ) FROM tab2 AS cor0
----
315

query I rowsort
SELECT col1 * + 47 AS col1 FROM tab1 AS cor0
----
2209
235
658

onlyif mysql # aggregate syntax: 
query I rowsort label-8822
SELECT - SUM( col2 ) FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT - SUM ( col2 ) FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8823
SELECT ALL COUNT( 19 ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-8823
SELECT ALL COUNT ( 19 ) + + COUNT ( * ) FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8824
SELECT ALL col1 * - CAST( NULL AS SIGNED ) AS col0, CAST( - + col0 AS SIGNED ) DIV col2 + - col2 DIV + col0 * 42 * col0 * col1 AS col2 FROM tab2
----
NULL
-1
NULL
-1
NULL
-2

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL col1 * - CAST ( NULL AS INTEGER ) AS col0, CAST ( - + col0 AS INTEGER ) / col2 + - col2 / + col0 * 42 * col0 * col1 AS col2 FROM tab2
----
NULL
-1
NULL
-1
NULL
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT ALL 75 * MIN( - col2 ) - + 15 FROM tab1 WHERE + col0 IS NOT NULL
----
-7215

skipif mysql # not compatible
query I rowsort label-8825
SELECT ALL 75 * MIN ( - col2 ) - + 15 FROM tab1 WHERE + col0 IS NOT NULL
----
-7215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 80 + - - col0 col0, - 56 * - 88 + - 35 FROM tab2 AS cor0
----
126
4893
144
4893
155
4893

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8827
SELECT ALL + + 92 + + + 11 + + 69 - - ( + CAST( NULL AS SIGNED ) ) * ( + + col1 ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8827
SELECT ALL + + 92 + + + 11 + + 69 - - ( + CAST ( NULL AS INTEGER ) ) * ( + + col1 ) * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 74 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1 + col0
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8829
SELECT DISTINCT + 50 + - + col2 DIV + col1 AS col1, col1 * + ( col1 ) FROM tab1 AS cor0
----
39
25
44
196
49
2209

skipif mysql # not compatible
query II rowsort label-8829
SELECT DISTINCT + 50 + - + col2 / + col1 AS col1, col1 * + ( col1 ) FROM tab1 AS cor0
----
39
25
44
196
49
2209

query I rowsort
SELECT - - ( - 8 ) AS col2 FROM tab1 cor0
----
-8
-8
-8

query II rowsort
SELECT ALL - - col0 * + + col2, + 89 AS col1 FROM tab2 AS cor0
----
1058
89
2560
89
4350
89

query I rowsort
SELECT DISTINCT + - col1 FROM tab1 WHERE NOT + 50 + + col0 - + col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8833
SELECT ALL - COUNT( ALL - col0 ) col1 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8833
SELECT ALL - COUNT ( ALL - col0 ) col1 FROM tab2
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-8834
SELECT col0 - ( + col2 ) DIV + 24 col2, - col1 FROM tab2 AS cor0
----
46
-51
63
-77
73
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8834
SELECT col0 - ( + col2 ) / + 24 col2, - col1 FROM tab2 AS cor0
----
46
-51
63
-77
73
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8835
SELECT ALL + - col2 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8835
SELECT ALL + - col2 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + col1 + col2 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, - 0 + - col2 * + 16 * - col1 FROM tab2 AS cor0
----
23
18768
40
49280
58
62176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8838
SELECT ALL + CAST( NULL AS SIGNED ) - - col0 + col1 / 52 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8838
SELECT ALL + CAST ( NULL AS INTEGER ) - - col0 + col1 / 52 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 FROM tab2 WHERE 89 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8840
SELECT ALL + COUNT( * ) DIV - + 39 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8840
SELECT ALL + COUNT ( * ) / - + 39 FROM tab2
----
0

query I rowsort
SELECT - 75 * - 5 AS col0 FROM tab2
----
375
375
375

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT - COUNT( - + 76 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8842
SELECT - COUNT ( - + 76 ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT 9 * + - 89 * col2 + col0 * - col0 >= ( + 76 + - 50 + 30 )
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-8844
SELECT ALL - 20 DIV + col1 FROM tab0
----
-20
0
0

skipif mysql # not compatible
query I rowsort label-8844
SELECT ALL - 20 / + col1 FROM tab0
----
-20
0
0

query I rowsort
SELECT - + ( - - col1 ) FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 + - 92 - + 22 col1 FROM tab2 AS cor0
----
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < + 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT - + COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT - + COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8850
SELECT + 37 * + CAST( + col1 AS SIGNED ) AS col0 FROM tab1 WHERE NOT - col1 <= + 11
----

skipif mysql # not compatible
query I rowsort label-8850
SELECT + 37 * + CAST ( + col1 AS INTEGER ) AS col0 FROM tab1 WHERE NOT - col1 <= + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8851
SELECT 12 * + + COUNT( * ) AS col1 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-8851
SELECT 12 * + + COUNT ( * ) AS col1 FROM tab2
----
36

query II rowsort
SELECT 44, 83 AS col2 FROM tab1
----
44
83
44
83
44
83

query I rowsort
SELECT 20 * col0 * + col2 * - 84 FROM tab0
----
-1184400
-1461600
-16133040

onlyif mysql # aggregate syntax: 
query I rowsort label-8854
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8854
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE - col2 IS NULL
----
0

query I rowsort
SELECT ALL 21 + + col2 FROM tab1
----
117
80
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 66 - 43 AS col2, - 76 * col0 col0 FROM tab0
----
23
-1140
23
-6612
23
-7372

query I rowsort
SELECT DISTINCT 45 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-8858
SELECT ALL + ( - COUNT( * ) ) + + 39 AS col0 FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-8858
SELECT ALL + ( - COUNT ( * ) ) + + 39 AS col0 FROM tab1 cor0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + 66 * + + 9 col1 FROM tab1 AS cor0
----
653
662
690

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + col2 * - + col1 * - + col1 * + - 30 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 86 + - col1 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + col0 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 * - col0 * - col1 col2 FROM tab1 AS cor0
----
40800
410592
68544

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8864
SELECT DISTINCT 46 - + + col1 FROM tab2 AS cor0 WHERE - col1 - + CAST( + 42 AS DECIMAL ) NOT IN ( - + col2, - 97 * + 39, col2 )
----
-21
-31
-5

skipif mysql # not compatible
query I rowsort label-8864
SELECT DISTINCT 46 - + + col1 FROM tab2 AS cor0 WHERE - col1 - + CAST ( + 42 AS REAL ) NOT IN ( - + col2, - 97 * + 39, col2 )
----
-21
-31
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT + MIN( + 28 ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8865
SELECT + MIN ( + 28 ) AS col2 FROM tab2 AS cor0
----
28

query I rowsort
SELECT - + 97 AS col1 FROM tab0 AS cor0 WHERE NOT 82 < NULL
----

query I rowsort
SELECT DISTINCT 6 + + col1 FROM tab2 AS cor0
----
57
73
83

onlyif mysql # DIV for integer division: 
query I rowsort label-8868
SELECT DISTINCT + - col1 DIV - - col0 AS col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT + - col1 / - - col0 AS col0 FROM tab2 AS cor0
----
-1
0

query II rowsort
SELECT + 85 * col0, 89 AS col0 FROM tab2 cor0
----
3910
89
5440
89
6375
89

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN - - ( - col0 ) AND + col0 * + ( col1 ) * col1 + - - col1 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT - 51 / + CAST( NULL AS SIGNED ) * col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8871
SELECT - 51 / + CAST ( NULL AS INTEGER ) * col1 * - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8872
SELECT - COUNT( ALL - 7 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8872
SELECT - COUNT ( ALL - 7 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8873
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND + col1 / - col1 * CAST( + + col1 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-8873
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND + col1 / - col1 * CAST ( + + col1 AS REAL )
----

query I rowsort
SELECT ALL 17 - + col1 AS col1 FROM tab2
----
-34
-50
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 AS col0, 6 * - col1 col1 FROM tab1 AS cor0
----
14
-84
47
-282
5
-30

query I rowsort
SELECT + - col0 + + col0 - + - 9 * - col0 FROM tab1 cor0
----
-459
-765
-819

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8877
SELECT + MAX( ALL col0 ) + 16 DIV - - 93 + - 9 + + 44 FROM tab0 cor0
----
132

skipif mysql # not compatible
query I rowsort label-8877
SELECT + MAX ( ALL col0 ) + 16 / - - 93 + - 9 + + 44 FROM tab0 cor0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-8878
SELECT DISTINCT - ( - 29 ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-8878
SELECT DISTINCT - ( - 29 ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-87

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + col1 - - col0 * + + col2 * - col0 BETWEEN NULL AND 7
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8880
SELECT - ( col2 ) DIV - 78 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8880
SELECT - ( col2 ) / - 78 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT ALL - + col0 * - col2 AS col1 FROM tab2 cor0
----
1058
2560
4350

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + 19 ), col0 col1 FROM tab0
----
19
15
19
87
19
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8884
SELECT ALL + CAST( + + 43 AS SIGNED ) * - - 11 AS col0 FROM tab2
----
473
473
473

skipif mysql # not compatible
query I rowsort label-8884
SELECT ALL + CAST ( + + 43 AS INTEGER ) * - - 11 AS col0 FROM tab2
----
473
473
473

query I rowsort
SELECT + col1 + - col0 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + - col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 >= ( NULL )
----

query I rowsort
SELECT ALL + 58 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT ALL COUNT( * ) * 55 * - COUNT( * ) AS col1 FROM tab1, tab2 AS cor0
----
-4455

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL COUNT ( * ) * 55 * - COUNT ( * ) AS col1 FROM tab1, tab2 AS cor0
----
-4455

query I rowsort
SELECT ALL + - 59 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT + 16 * + col2 AS col0 FROM tab1
----
1088
1536
944

query I rowsort
SELECT DISTINCT - col0 + - - 56 AS col0 FROM tab2 AS cor0
----
-19
-8
10

query I rowsort
SELECT + + 23 + - 39 AS col0 FROM tab1 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-8893
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-8893
SELECT - - COUNT ( * ) col1, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL COUNT( * ) + + + COUNT( * ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab2 cor0
----
6

query II rowsort
SELECT DISTINCT + - col2, + 15 AS col0 FROM tab1 AS cor0
----
-59
15
-68
15
-96
15

query I rowsort
SELECT - - col1 * col2 * + col0 - + col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT + ( CAST( - col1 AS SIGNED ) ) AS col0 FROM tab0 WHERE + 15 > col2
----
-21

skipif mysql # not compatible
query I rowsort label-8898
SELECT + ( CAST ( - col1 AS INTEGER ) ) AS col0 FROM tab0 WHERE + 15 > col2
----
-21

query I rowsort
SELECT DISTINCT + col0 * - + 42 FROM tab0
----
-3654
-4074
-630

query I rowsort
SELECT ALL col2 - + ( + + 62 ) * + + col1 * 9 AS col2 FROM tab0
----
-11708
-45151
-459

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 19 * - ( - col2 ) / - - 40 * - col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE + - 56 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT DISTINCT col2 * + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT col2 * + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT ALL + + COUNT( * ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8904
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-8905
SELECT DISTINCT - 15 + + - col0 + - + col2 + + 42 DIV - col2 AS col2, col2 FROM tab1 AS cor0
----
-159
59
-162
96
-174
68

skipif mysql # not compatible
query II rowsort label-8905
SELECT DISTINCT - 15 + + - col0 + - + col2 + + 42 / - col2 AS col2, col2 FROM tab1 AS cor0
----
-159
59
-162
96
-174
68

query II rowsort
SELECT - 33 + + + col1 AS col2, - col2 * - 11 AS col2 FROM tab2 AS cor0
----
18
253
34
638
44
440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8907
SELECT ALL COUNT( * ) + + COUNT( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8907
SELECT ALL COUNT ( * ) + + COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col2 + - 54 AS col0 FROM tab0 AS cor0
----
-101
-153
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8909
SELECT + CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8909
SELECT + CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - - 35 FROM tab0 WHERE NULL > col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8911
SELECT DISTINCT - col1 DIV - 10 col0 FROM tab0
----
0
2
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8911
SELECT DISTINCT - col1 / - 10 col0 FROM tab0
----
0
2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT + COUNT( 5 ) col2 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8912
SELECT + COUNT ( 5 ) col2 FROM tab1 cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8913
SELECT - col0 DIV + + col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8913
SELECT - col0 / + + col1 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT - - ( - - col0 ) AS col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8915
SELECT + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8915
SELECT + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8917
SELECT DISTINCT + COUNT( * ) + + 9 AS col1 FROM tab2 WHERE NULL BETWEEN - - 0 AND NULL
----
9

skipif mysql # not compatible
query I rowsort label-8917
SELECT DISTINCT + COUNT ( * ) + + 9 AS col1 FROM tab2 WHERE NULL BETWEEN - - 0 AND NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8918
SELECT ALL COUNT( + - col2 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8918
SELECT ALL COUNT ( + - col2 ) col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8919
SELECT ALL MAX( - + CAST( - col0 AS SIGNED ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-8919
SELECT ALL MAX ( - + CAST ( - col0 AS INTEGER ) ) AS col0 FROM tab2
----
75

query I rowsort
SELECT + 26 * + 27 AS col1 FROM tab1
----
702
702
702

query I rowsort
SELECT DISTINCT col1 * col1 * 68 * + 4 FROM tab0
----
119952
1784592
272

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, - col2 * + col1 col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
-1344
85
-295
91
-3196

query I rowsort
SELECT col0 * - 44 FROM tab0 AS cor0
----
-3828
-4268
-660

query II rowsort
SELECT DISTINCT + + 23, - 35 AS col2 FROM tab0 AS cor0
----
23
-35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8925
SELECT ALL - CAST( NULL AS SIGNED ) / - ( - col0 ) + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - CAST ( NULL AS INTEGER ) / - ( - col0 ) + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + - col2 * + 73 AS col1 FROM tab2
----
186880
317550
77234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 + 36 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

query I rowsort
SELECT DISTINCT - - ( + ( - + 13 ) ) * - col2 AS col2 FROM tab1 AS cor0
----
1248
767
884

query I rowsort
SELECT - 52 * + 39 * - + col1 - - - 52 + - + col1 FROM tab1 AS cor0
----
10083
28326
95217

onlyif mysql # DIV for integer division: 
query II rowsort label-8930
SELECT ALL - col2 DIV + 56 AS col2, - col1 - - ( col1 ) FROM tab0 AS cor0
----
-1
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-8930
SELECT ALL - col2 / + 56 AS col2, - col1 - - ( col1 ) FROM tab0 AS cor0
----
-1
0
0
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8931
SELECT - + CAST( NULL AS SIGNED ) + + col2 + + col2 * - col1 * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8931
SELECT - + CAST ( NULL AS INTEGER ) + + col2 + + col2 * - col1 * + - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT + - COUNT( * ) * - MIN( ALL + col0 ) + - COUNT( * ) + COUNT( * ) + - COUNT( * ) FROM tab1 cor0
----
150

skipif mysql # not compatible
query I rowsort label-8932
SELECT + - COUNT ( * ) * - MIN ( ALL + col0 ) + - COUNT ( * ) + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0
----
150

query I rowsort
SELECT DISTINCT 52 - + - col2 AS col2 FROM tab2
----
110
75
92

onlyif mysql # DIV for integer division: 
query I rowsort label-8934
SELECT col0 DIV - col0 + - col1 + + col2 * col0 FROM tab1
----
4881
5009
6140

skipif mysql # not compatible
query I rowsort label-8934
SELECT col0 / - col0 + - col1 + + col2 * col0 FROM tab1
----
4881
5009
6140

query I rowsort
SELECT ALL 70 * - - col2 AS col0 FROM tab1
----
4130
4760
6720

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - col0 col0 FROM tab1
----
144
147
159

onlyif mysql # aggregate syntax: 
query II rowsort label-8937
SELECT DISTINCT ( ( - - 13 ) ) AS col0, COUNT( * ) FROM tab2
----
13
3

skipif mysql # not compatible
query II rowsort label-8937
SELECT DISTINCT ( ( - - 13 ) ) AS col0, COUNT ( * ) FROM tab2
----
13
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - + col2 * + - 97 AND - col1
----

query III rowsort
SELECT * FROM tab1 WHERE col1 / 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 16 * - col0 AS col2 FROM tab1
----
-1360
-1456
-816

query I rowsort
SELECT ALL - ( - col2 ) * col2 - col0 AS col1 FROM tab2
----
1536
3289
483

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 * - + col2 col1 FROM tab2 AS cor0
----
-161
-280
-406

onlyif mysql # DIV for integer division: 
query I rowsort label-8943
SELECT DISTINCT - col2 DIV - 61 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8943
SELECT DISTINCT - col2 / - 61 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + + 87 * - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-2047
-3544
-5121

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + col2 AS col2 FROM tab0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8947
SELECT COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8947
SELECT COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT DISTINCT - 36 + 16 FROM tab0, tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT + MAX( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT 24 + - + 99 IS NULL
----
75

skipif mysql # not compatible
query I rowsort label-8949
SELECT + MAX ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT 24 + - + 99 IS NULL
----
75

query II rowsort
SELECT + + ( + 87 ) AS col1, - 43 FROM tab1 AS cor0
----
87
-43
87
-43
87
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 53 <> + 66
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 52 / - col0 * - col1 + + col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8953
SELECT CAST( NULL AS DECIMAL ) AS col1, col0 + col1 * CAST( - - col1 AS SIGNED ) AS col2 FROM tab1
----
NULL
110
NULL
2300
NULL
247

skipif mysql # not compatible
query II rowsort label-8953
SELECT CAST ( NULL AS REAL ) AS col1, col0 + col1 * CAST ( - - col1 AS INTEGER ) AS col2 FROM tab1
----
NULL
110
NULL
2300
NULL
247

query I rowsort
SELECT DISTINCT - ( - 22 ) AS col0 FROM tab1
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-8955
SELECT DISTINCT 24 AS col2, COUNT( * ) FROM tab0
----
24
3

skipif mysql # not compatible
query II rowsort label-8955
SELECT DISTINCT 24 AS col2, COUNT ( * ) FROM tab0
----
24
3

query I rowsort
SELECT ALL ( + 27 ) AS col0 FROM tab1
----
27
27
27

query I rowsort
SELECT 52 * + 88 FROM tab0
----
4576
4576
4576

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 78 * + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 >= NULL
----

query I rowsort
SELECT DISTINCT - + 22 * col0 AS col0 FROM tab0 cor0
----
-1914
-2134
-330

query II rowsort
SELECT + 97, - col0 * + col0 AS col2 FROM tab1 WHERE 57 > + - 32 * - col2
----

query I rowsort
SELECT ( 77 ) + 68 FROM tab2
----
145
145
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 * - + 38 col1, - ( - col2 ) * 39 FROM tab1
----
-2242
2301
-2584
2652
-3648
3744

onlyif mysql # DIV for integer division: 
query I rowsort label-8964
SELECT ALL + col0 DIV - col1 + col2 FROM tab0 AS cor0
----
2
47
6

skipif mysql # not compatible
query I rowsort label-8964
SELECT ALL + col0 / - col1 + col2 FROM tab0 AS cor0
----
2
47
6

query II rowsort
SELECT + - 70, 61 AS col2 FROM tab0 AS cor0
----
-70
61
-70
61
-70
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 47 * - 86 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8967
SELECT DISTINCT + col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8967
SELECT DISTINCT + col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8968
SELECT ALL + col2 + + + ( - CAST( - + col1 AS SIGNED ) ) AS col0 FROM tab0 cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL + col2 + + + ( - CAST ( - + col1 AS INTEGER ) ) AS col0 FROM tab0 cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT DISTINCT - 70 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8969
SELECT DISTINCT - 70 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8970
SELECT ALL + COUNT( - 42 ) DIV 17 * + COUNT( * ) + 85 + - COUNT( * ) + - 47 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-8970
SELECT ALL + COUNT ( - 42 ) / 17 * + COUNT ( * ) + 85 + - COUNT ( * ) + - 47 FROM tab1 AS cor0
----
35

query II rowsort
SELECT DISTINCT 16 - col0 AS col1, col0 FROM tab1
----
-35
51
-69
85
-75
91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8972
SELECT DISTINCT 29 / col2 * + - CAST( NULL AS DECIMAL ) * - col2 * + - CAST( NULL AS SIGNED ) + + 24 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8972
SELECT DISTINCT 29 / col2 * + - CAST ( NULL AS REAL ) * - col2 * + - CAST ( NULL AS INTEGER ) + + 24 AS col1 FROM tab0
----
NULL

query II rowsort
SELECT - col0 * 22, col1 FROM tab2
----
-1012
51
-1408
77
-1650
67

query I rowsort
SELECT ALL - col0 - col2 - - col1 * - 33 * + - col0 AS col2 FROM tab0
----
3005
40033
60194

query I rowsort
SELECT col0 - col1 * col0 AS col2 FROM tab0
----
-1200
-1740
0

query I rowsort
SELECT - col1 * col2 - col1 AS col2 FROM tab1
----
-1358
-300
-3243

onlyif mysql # DIV for integer division: 
query I rowsort label-8977
SELECT DISTINCT + 79 DIV - ( col0 ) - - col1 - - 73 * 2 FROM tab1
----
151
159
193

skipif mysql # not compatible
query I rowsort label-8977
SELECT DISTINCT + 79 / - ( col0 ) - - col1 - - 73 * 2 FROM tab1
----
151
159
193

query II rowsort
SELECT DISTINCT - - ( col2 ), + col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8979
SELECT DISTINCT + 60 * + + CAST( NULL AS SIGNED ) / - 78 + 57 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT DISTINCT + 60 * + + CAST ( NULL AS INTEGER ) / - 78 + 57 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * col2 + + col1 * - + col1 + + - col2 * - col1 AS col1 FROM tab0 AS cor0
----
-131
-545
9899

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8981
SELECT + col0 FROM tab1 WHERE NOT col1 BETWEEN col2 AND CAST( - col2 AS SIGNED ) + - - col1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8981
SELECT + col0 FROM tab1 WHERE NOT col1 BETWEEN col2 AND CAST ( - col2 AS INTEGER ) + - - col1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( + col2 ) col0 FROM tab2
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT - col2 AS col1, 16 AS col2 FROM tab1 AS cor0
----
-59
16
-68
16
-96
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT - SUM( - ( col1 ) ) * + 84 FROM tab2 AS cor0
----
16380

skipif mysql # not compatible
query I rowsort label-8984
SELECT - SUM ( - ( col1 ) ) * + 84 FROM tab2 AS cor0
----
16380

onlyif mysql # DIV for integer division: 
query II rowsort label-8985
SELECT col2 * 15 * - col1 AS col2, - col1 DIV - col0 AS col1 FROM tab0 AS cor0
----
-1485
0
-3150
0
-57105
5

skipif mysql # not compatible
query II rowsort label-8985
SELECT col2 * 15 * - col1 AS col2, - col1 / - col0 AS col1 FROM tab0 AS cor0
----
-1485
0
-3150
0
-57105
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8986
SELECT DISTINCT + + col2 AS col0, col0 - CAST( - col1 AS SIGNED ) * + 51 + col1 FROM tab0 AS cor0
----
10
1179
47
4227
99
149

skipif mysql # not compatible
query II rowsort label-8986
SELECT DISTINCT + + col2 AS col0, col0 - CAST ( - col1 AS INTEGER ) * + 51 + col1 FROM tab0 AS cor0
----
10
1179
47
4227
99
149

query II rowsort
SELECT ALL 0 AS col1, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8988
SELECT COUNT( - - col0 ) AS col2, COUNT( * ) - + 13 + 16 AS col2 FROM tab2
----
3
6

skipif mysql # not compatible
query II rowsort label-8988
SELECT COUNT ( - - col0 ) AS col2, COUNT ( * ) - + 13 + 16 AS col2 FROM tab2
----
3
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * - col0 col1 FROM tab1
----
-2142
-3570
-3822

onlyif mysql # DIV for integer division: 
query I rowsort label-8990
SELECT DISTINCT col2 DIV col2 * + + 86 AS col0 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-8990
SELECT DISTINCT col2 / col2 * + + 86 AS col0 FROM tab1
----
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 80 * - ( + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 * - + 22 - + + col0 + + - 63 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + - ( + + 56 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 38 * + col1 + + - col0 AS col1 FROM tab1
----
105
1695
481

query III rowsort
SELECT ALL * FROM tab2 WHERE + + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 71 + + col1 AS col1 FROM tab2 AS cor0
----
122
138
148

query I rowsort
SELECT ALL - + 95 * 0 FROM tab2 cor0 WHERE - 18 IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT 28 * - COUNT( * ) AS col0 FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-8998
SELECT 28 * - COUNT ( * ) AS col0 FROM tab0
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-8999
SELECT + col1 - col2 + - col0 + col0 DIV 62, 53 + - ( + 62 ) * + col2 AS col1 FROM tab2 AS cor0
----
-18
-1373
-26
-2427
-65
-3543

skipif mysql # not compatible
query II rowsort label-8999
SELECT + col1 - col2 + - col0 + col0 / 62, 53 + - ( + 62 ) * + col2 AS col1 FROM tab2 AS cor0
----
-18
-1373
-26
-2427
-65
-3543

onlyif mysql # aggregate syntax: 
query I rowsort label-9000
SELECT - COUNT( DISTINCT + col1 ) - + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9000
SELECT - COUNT ( DISTINCT + col1 ) - + - COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 51 * col2 * col2 + 12 AS col0 FROM tab1 AS cor0
----
-177519
-235812
-470004

query I rowsort
SELECT col0 + + - 46 AS col0 FROM tab0 AS cor0
----
-31
41
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9003
SELECT ALL + COUNT( DISTINCT col0 ) + + - COUNT( * ) FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND 0
----
0

skipif mysql # not compatible
query I rowsort label-9003
SELECT ALL + COUNT ( DISTINCT col0 ) + + - COUNT ( * ) FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND 0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + ( - COUNT( * ) ) FROM tab2 cor0 WHERE NULL >= col1
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT + ( - COUNT ( * ) ) FROM tab2 cor0 WHERE NULL >= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9005
SELECT 33 + + COUNT( * ) + - 43 AS col2 FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-9005
SELECT 33 + + COUNT ( * ) + - 43 AS col2 FROM tab1
----
-7

query I rowsort
SELECT + - 71 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT ALL 45 - + MIN( + col2 ) + + + 14 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9007
SELECT ALL 45 - + MIN ( + col2 ) + + + 14 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT - SUM( ALL - + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9008
SELECT - SUM ( ALL - + col1 ) FROM tab2
----
195

query I rowsort
SELECT DISTINCT - 99 - - - col0 + + col0 FROM tab0
----
-99

query II rowsort
SELECT - 19 AS col0, col2 FROM tab2
----
-19
23
-19
40
-19
58

query I rowsort
SELECT DISTINCT col0 - col1 + - 45 FROM tab0
----
-111
21
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9012
SELECT - MAX( ALL + 22 ) AS col2 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9012
SELECT - MAX ( ALL + 22 ) AS col2 FROM tab2
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 37, 78 * col0 col1 FROM tab1
----
37
3978
37
6630
37
7098

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9014
SELECT + 53 col0, - CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
53
NULL
53
NULL
53
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9014
SELECT + 53 col0, - CAST ( NULL AS REAL ) AS col0 FROM tab1
----
53
NULL
53
NULL
53
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col0, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query II rowsort
SELECT + + col2 AS col0, - 7 FROM tab1 AS cor0
----
59
-7
68
-7
96
-7

query I rowsort
SELECT + 42 * + col0 + + + 65 FROM tab1 AS cor0
----
2207
3635
3887

query I rowsort
SELECT ALL - + col2 * 98 FROM tab0 AS cor0
----
-4606
-9702
-980

query I rowsort
SELECT DISTINCT + + 47 AS col0 FROM tab0 AS cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT - COUNT( * ) * CAST( - - 71 AS SIGNED ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-9020
SELECT - COUNT ( * ) * CAST ( - - 71 AS INTEGER ) FROM tab2 AS cor0
----
-213

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9021
SELECT + 22 * - - MAX( DISTINCT + CAST( NULL AS SIGNED ) ) * - COUNT( + - col0 ) AS col2, 48 FROM tab1 cor0
----
NULL
48

skipif mysql # not compatible
query II rowsort label-9021
SELECT + 22 * - - MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) * - COUNT ( + - col0 ) AS col2, 48 FROM tab1 cor0
----
NULL
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9022
SELECT MIN( DISTINCT + 53 ) FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-9022
SELECT MIN ( DISTINCT + 53 ) FROM tab2 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-9023
SELECT ALL SUM( - col1 ) * + 10 * 2 AS col2 FROM tab1 AS cor0
----
-1320

skipif mysql # not compatible
query I rowsort label-9023
SELECT ALL SUM ( - col1 ) * + 10 * 2 AS col2 FROM tab1 AS cor0
----
-1320

query II rowsort
SELECT col0 + + 13 * - + 84 AS col0, - ( col0 ) AS col2 FROM tab1 AS cor0
----
-1001
-91
-1007
-85
-1041
-51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + - col0 ) + - col2 BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - COUNT( * ) * 3 col1 FROM tab2
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9026
SELECT - COUNT ( * ) * 3 col1 FROM tab2
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col0 FROM tab1
----
-91
-91
-91

query I rowsort
SELECT 11 * - col0 AS col0 FROM tab2
----
-506
-704
-825

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - MIN( - col1 ) AS col2 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-9029
SELECT - MIN ( - col1 ) AS col2 FROM tab0
----
81

onlyif mysql # DIV for integer division: 
query II rowsort label-9030
SELECT col0, + col2 DIV - + col0 FROM tab2
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-9030
SELECT col0, + col2 / - + col0 FROM tab2
----
46
0
64
0
75
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT ALL + 76 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + 76 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
79

query I rowsort
SELECT - 30 * - col0 FROM tab2
----
1380
1920
2250

query I rowsort
SELECT DISTINCT 41 - col2 AS col0 FROM tab2
----
-17
1
18

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT DISTINCT 75 + + MIN( DISTINCT - col2 ) FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-9034
SELECT DISTINCT 75 + + MIN ( DISTINCT - col2 ) FROM tab2
----
17

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 / col0 NOT BETWEEN ( col2 ) AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9036
SELECT ( + col2 ) * - col0 + - CAST( 32 AS SIGNED ) * 26 FROM tab0 WHERE NOT col1 IS NULL
----
-10435
-1537
-1702

skipif mysql # not compatible
query I rowsort label-9036
SELECT ( + col2 ) * - col0 + - CAST ( 32 AS INTEGER ) * 26 FROM tab0 WHERE NOT col1 IS NULL
----
-10435
-1537
-1702

query I rowsort
SELECT DISTINCT col2 * - 98 + - 57 * 73 AS col1 FROM tab2
----
-6415
-8081
-9845

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9038
SELECT COUNT( * ) * - SUM( DISTINCT + col2 ) + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
-467

skipif mysql # not compatible
query I rowsort label-9038
SELECT COUNT ( * ) * - SUM ( DISTINCT + col2 ) + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
-467

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - 27 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9040
SELECT COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9040
SELECT COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT DISTINCT + MAX( DISTINCT + col0 ) AS col0 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-9041
SELECT DISTINCT + MAX ( DISTINCT + col0 ) AS col0 FROM tab0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9042
SELECT DISTINCT - 87 DIV ( + ( 9 ) ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9042
SELECT DISTINCT - 87 / ( + ( 9 ) ) col1 FROM tab1
----
-9

query I rowsort
SELECT col1 FROM tab1 WHERE 82 < col2
----
14

query I rowsort
SELECT DISTINCT 13 * + 81 FROM tab1
----
1053

onlyif mysql # DIV for integer division: 
query I rowsort label-9045
SELECT DISTINCT 24 DIV col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-9045
SELECT DISTINCT 24 / col2 FROM tab0
----
0
2

query III rowsort
SELECT ALL * FROM tab1 WHERE - 43 + 80 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9047
SELECT + col1 DIV - col0 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9047
SELECT + col1 / - col0 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9048
SELECT - col2 + + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9048
SELECT - col2 + + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - 3 + col1 AS col1 FROM tab2
----
48
64
74

query I rowsort
SELECT ALL col0 + 50 AS col0 FROM tab2
----
114
125
96

query I rowsort
SELECT ALL col0 FROM tab0 WHERE ( NULL ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9052
SELECT + 93 + + COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-9052
SELECT + 93 + + COUNT ( * ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT 67 * 87 + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
5838

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT 67 * 87 + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
5838

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9054
SELECT + 83 + - CAST( 60 + + COUNT( * ) AS SIGNED ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-9054
SELECT + 83 + - CAST ( 60 + + COUNT ( * ) AS INTEGER ) FROM tab1
----
20

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + 34 + + 81 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 49 * 68 IS NULL
----

query I rowsort
SELECT ALL col0 FROM tab0 WHERE - col0 * - 89 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9058
SELECT DISTINCT MIN( ALL - 13 ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-9058
SELECT DISTINCT MIN ( ALL - 13 ) FROM tab0
----
-13

query I rowsort
SELECT - 74 * + col1 FROM tab2 AS cor0
----
-3774
-4958
-5698

query I rowsort
SELECT DISTINCT col1 * 77 AS col2 FROM tab2 AS cor0 WHERE NOT ( col1 ) IS NULL
----
3927
5159
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-9061
SELECT - COUNT( * ) * 92 FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-9061
SELECT - COUNT ( * ) * 92 FROM tab0 AS cor0
----
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT + col0 DIV ( - 14 ) AS col2 FROM tab1 AS cor0
----
-3
-6
-6

skipif mysql # not compatible
query I rowsort label-9062
SELECT + col0 / ( - 14 ) AS col2 FROM tab1 AS cor0
----
-3
-6
-6

query I rowsort
SELECT + ( + ( col1 ) ) AS col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL 44 * 53 + COUNT( * ) * - 86 FROM tab2 cor0 CROSS JOIN tab0
----
1558

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL 44 * 53 + COUNT ( * ) * - 86 FROM tab2 cor0 CROSS JOIN tab0
----
1558

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9065
SELECT COUNT( * ) + - 0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9065
SELECT COUNT ( * ) + - 0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( 89 * 38 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 69 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9068
SELECT ( ( - col0 ) ) * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9068
SELECT ( ( - col0 ) ) * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9071
SELECT + - col2 DIV - 29 AS col0 FROM tab2 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-9071
SELECT + - col2 / - 29 AS col0 FROM tab2 AS cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9072
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9072
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col0 + col2 IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9073
SELECT ALL - - 1 * + MAX( DISTINCT CAST( NULL AS SIGNED ) ) + 18 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9073
SELECT ALL - - 1 * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + 18 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9074
SELECT DISTINCT - CAST( - 24 AS SIGNED ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-9074
SELECT DISTINCT - CAST ( - 24 AS INTEGER ) FROM tab2
----
24

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE NULL >= + col0
----

query III rowsort
SELECT * FROM tab0 WHERE - 45 BETWEEN - col2 AND ( - col1 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9077
SELECT DISTINCT SUM( - col1 ) * 59 FROM tab0
----
-6077

skipif mysql # not compatible
query I rowsort label-9077
SELECT DISTINCT SUM ( - col1 ) * 59 FROM tab0
----
-6077

query I rowsort
SELECT DISTINCT - col2 * + - col0 + col1 AS col1 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT ALL - 29 * - + col1 * - col2 FROM tab2
----
-112694
-34017
-89320

query I rowsort
SELECT - 56 AS col0 FROM tab0 WHERE NOT ( NULL ) > - col1 OR NULL IS NULL
----
-56
-56
-56

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9081
SELECT COUNT( * ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9081
SELECT COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9082
SELECT + col0 * + 86 + + CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9082
SELECT + col0 * + 86 + + CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9083
SELECT ALL ( + 35 ) * COUNT( * ) FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9083
SELECT ALL ( + 35 ) * COUNT ( * ) FROM tab1 AS cor0
----
105

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 / - 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9085
SELECT ALL MIN( DISTINCT - 86 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

skipif mysql # not compatible
query I rowsort label-9085
SELECT ALL MIN ( DISTINCT - 86 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-86

query I rowsort
SELECT DISTINCT - 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 IN ( + + 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT - 85 - - CAST( - SUM( - 13 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9089
SELECT - 85 - - CAST ( - SUM ( - 13 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT col2 + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT 44 * 72 AS col2 FROM tab1 AS cor0 WHERE 29 NOT IN ( col1 / - col1 )
----
3168
3168
3168

query I rowsort
SELECT DISTINCT + - 57 AS col0 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT 30 * - COUNT( * ) + 75 + 30 AS col2 FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT 30 * - COUNT ( * ) + 75 + 30 AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9094
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 + col2 ) >= + CAST( NULL AS DECIMAL ) / + col2
----

skipif mysql # not compatible
query III rowsort label-9094
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col1 + col2 ) >= + CAST ( NULL AS REAL ) / + col2
----

query I rowsort
SELECT - col2 * - 31 * - 81 + + col1 * 86 FROM tab1 AS cor0
----
-147719
-166706
-239852

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 28 NOT IN ( - + col0 / + col1 + col0 )
----

query I rowsort
SELECT - + 53 + + col2 FROM tab2 AS cor0
----
-13
-30
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9098
SELECT + col0 + 96 DIV + - col2 + 36 AS col0 FROM tab0 AS cor0
----
114
133
49

skipif mysql # not compatible
query I rowsort label-9098
SELECT + col0 + 96 / + - col2 + 36 AS col0 FROM tab0 AS cor0
----
114
133
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9099
SELECT ALL + 98 + - SUM( col2 ) AS col0 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9099
SELECT ALL + 98 + - SUM ( col2 ) AS col0 FROM tab0 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9100
SELECT - COUNT( * ) + + COUNT( + col1 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9100
SELECT - COUNT ( * ) + + COUNT ( + col1 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL col2 + + col2 * ( col1 ) + col1 AS col1 FROM tab0 AS cor0
----
199
241
3935

query I rowsort
SELECT + + 99 * - col0 AS col2 FROM tab0 AS cor0
----
-1485
-8613
-9603

query I rowsort
SELECT ALL + col1 * - - ( - - 68 ) AS col2 FROM tab1 cor0
----
3196
340
952

onlyif mysql # aggregate syntax: 
query I rowsort label-9104
SELECT ALL + COUNT( * ) * - 26 * 94 FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9104
SELECT ALL + COUNT ( * ) * - 26 * 94 FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9105
SELECT - COUNT( + + col2 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9105
SELECT - COUNT ( + + col2 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT + COUNT( * ) * + + COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-9106
SELECT + COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE ( col1 ) IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9109
SELECT ALL MAX( + 10 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-9109
SELECT ALL MAX ( + 10 ) FROM tab0
----
10

query I rowsort
SELECT ALL - + ( - - 47 ) AS col2 FROM tab2 cor0
----
-47
-47
-47

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT DISTINCT + - COUNT( + + col1 ) + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9112
SELECT DISTINCT + - COUNT ( + + col1 ) + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 27 * col1 NOT IN ( 74 + + col1 - 52 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( - 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9115
SELECT + col2 * - col2 + - + col0 DIV - - 54 AS col2 FROM tab0 AS cor0
----
-101
-2209
-9802

skipif mysql # not compatible
query I rowsort label-9115
SELECT + col2 * - col2 + - + col0 / - - 54 AS col2 FROM tab0 AS cor0
----
-101
-2209
-9802

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 <= ( ( col0 ) )
----

query I rowsort
SELECT DISTINCT - 70 + + 75 FROM tab2 cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT SUM( + ( + 2 ) ) AS col0 FROM tab0 AS cor0 WHERE col1 * + col0 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-9118
SELECT SUM ( + ( + 2 ) ) AS col0 FROM tab0 AS cor0 WHERE col1 * + col0 IS NOT NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9119
SELECT * FROM tab2 AS cor0 WHERE col2 + + CAST( - col0 AS SIGNED ) - + col2 > ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9119
SELECT * FROM tab2 AS cor0 WHERE col2 + + CAST ( - col0 AS INTEGER ) - + col2 > ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 > ( - + 8 * - + col1 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 62 * - 51 FROM tab2
----
3162
3162
3162

query I rowsort
SELECT DISTINCT - 25 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT 42 * ( - + col1 ) AS col2 FROM tab2
----
-2142
-2814
-3234

onlyif mysql # aggregate syntax: 
query I rowsort label-9124
SELECT MAX( - - 93 ) * + COUNT( * ) + - COUNT( * ) AS col0 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-9124
SELECT MAX ( - - 93 ) * + COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0
----
276

query I rowsort
SELECT + col1 * - + col0 AS col0 FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * 60 * + + col0 * - 76 col2, + ( + + col1 ) AS col2 FROM tab1
----
22325760
14
22868400
5
28217280
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9127
SELECT ALL * FROM tab1 WHERE NOT - col1 * + CAST( - 72 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9127
SELECT ALL * FROM tab1 WHERE NOT - col1 * + CAST ( - 72 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9128
SELECT - 88 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9128
SELECT - 88 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - + 5 AS col1, - col2 AS col0 FROM tab2 AS cor0
----
-5
-23
-5
-40
-5
-58

query I rowsort
SELECT 41 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + - 75 - col1 + + - col2 FROM tab1
----
-1160
-3640
-439

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 ) NOT IN ( + 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9133
SELECT DISTINCT + COUNT( DISTINCT + - col2 ) AS col2, 39 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-9133
SELECT DISTINCT + COUNT ( DISTINCT + - col2 ) AS col2, 39 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
3
NULL

query I rowsort
SELECT DISTINCT - + 34 AS col2 FROM tab2 cor0
----
-34

query II rowsort
SELECT DISTINCT + + col0 * - + 59 AS col2, + 7 FROM tab1 AS cor0
----
-3009
7
-5015
7
-5369
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT + - COUNT( * ) * 79 AS col0 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-9136
SELECT + - COUNT ( * ) * 79 AS col0 FROM tab1 AS cor0
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT - ( + - COUNT( * ) ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9137
SELECT - ( + - COUNT ( * ) ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT - 26 * + ( COUNT( * ) ) FROM tab1 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT - 26 * + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-78

query I rowsort
SELECT - + col1 * + col2 - - ( - col1 ) FROM tab2 AS cor0
----
-1224
-3157
-3953

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 55 ) > 88
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 col2 FROM tab2 cor0
----
54
54
54

query I rowsort
SELECT + - 22 * - col1 FROM tab0 AS cor0
----
1782
22
462

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT COUNT( col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9144
SELECT COUNT ( col1 ) AS col0 FROM tab0
----
3

query II rowsort
SELECT DISTINCT 37, col2 FROM tab1
----
37
59
37
68
37
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT MIN( ALL - 20 ) col2 FROM tab1
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9146
SELECT MIN ( ALL - 20 ) col2 FROM tab1
----
-20

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 11 = - ( 12 ) + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col2, 82 col0 FROM tab2
----
46
82
64
82
75
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9149
SELECT DISTINCT - COUNT( DISTINCT + + col2 ) col1 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9149
SELECT DISTINCT - COUNT ( DISTINCT + + col2 ) col1 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE - col1 + + + 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE - col1 + + + 59 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 37 NOT BETWEEN - + col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 10 >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9153
SELECT + col0 / + + CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9153
SELECT + col0 / + + CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT ALL + - 81 * CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL + - 81 * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 44 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT ALL + - col0 + 90 AS col0 FROM tab2 AS cor0
----
15
26
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT DISTINCT MIN( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT MIN ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT - - 19 AS col1 FROM tab2 cor0
----
19
19
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9159
SELECT + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9159
SELECT + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL + 29 + - col0 + - + col1 + col0 * - col0 AS col2, + col0 FROM tab1
----
-2637
51
-7286
85
-8390
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 col1 FROM tab0
----
210
3807
99

query I rowsort
SELECT DISTINCT - col0 + + + 78 FROM tab0 WHERE + 53 NOT IN ( col1 * col1 )
----
-19
-9
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT - col2 + - 26 * + ( - col0 ) * - - col0 + - + 81 AS col1 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
187710
215157
67449

skipif mysql # not compatible
query I rowsort label-9163
SELECT - col2 + - 26 * + ( - col0 ) * - - col0 + - + 81 AS col1 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
187710
215157
67449

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL CAST( - 85 AS SIGNED ) FROM tab1
----
-85
-85
-85

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL CAST ( - 85 AS INTEGER ) FROM tab1
----
-85
-85
-85

query I rowsort
SELECT DISTINCT + col1 * - - col0 * - col2 AS col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT 24 * 26 AS col0 FROM tab1 AS cor0
----
624
624
624

onlyif mysql # DIV for integer division: 
query I rowsort label-9167
SELECT + + col0 DIV + - 97 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-9167
SELECT + + col0 / + - 97 col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL 52 + SUM( col2 ) FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL 52 + SUM ( col2 ) FROM tab2
----
173

onlyif mysql # DIV for integer division: 
query I rowsort label-9169
SELECT ALL col1 DIV - - 35 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9169
SELECT ALL col1 / - - 35 FROM tab0
----
0
0
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9170
SELECT - + ( + 95 ) DIV - 6 + 89 FROM tab0 AS cor0
----
104
104
104

skipif mysql # not compatible
query I rowsort label-9170
SELECT - + ( + 95 ) / - 6 + 89 FROM tab0 AS cor0
----
104
104
104

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT DISTINCT + + MAX( - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9171
SELECT DISTINCT + + MAX ( - col0 ) FROM tab1 AS cor0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 58 * - 70 col0 FROM tab0 AS cor0
----
4060

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9173
SELECT + CAST( NULL AS SIGNED ) * - - 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9173
SELECT + CAST ( NULL AS INTEGER ) * - - 94 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9174
SELECT - - MIN( - col1 ) col1 FROM tab2 AS cor0 WHERE NOT 88 <= + 0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9174
SELECT - - MIN ( - col1 ) col1 FROM tab2 AS cor0 WHERE NOT 88 <= + 0
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 13 * - 32 AS col0 FROM tab2 cor0
----
-416
-416
-416

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + SUM( ( + col0 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( + col1 + - + 43 - + col2 - - col1 * + col0, + col1 * col0 * 21 * + 70 * - col0 + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT + SUM ( ( + col0 ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IN ( + col1 + - + 43 - + col2 - - col1 * + col0, + col1 * col0 * 21 * + 70 * - col0 + - col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL - 0 * - 65 * + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL - 0 * - 65 * + COUNT ( * ) FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL >= - - 52
----

query I rowsort
SELECT 70 AS col1 FROM tab1, tab2 cor0 WHERE - 94 IS NULL
----

query I rowsort
SELECT ALL + 43 * + - col1 FROM tab0 WHERE NOT + 68 < - col2 + col2
----
-3483
-43
-903

onlyif mysql # aggregate syntax: 
query I rowsort label-9182
SELECT - COUNT( - - ( + 47 ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9182
SELECT - COUNT ( - - ( + 47 ) ) AS col1 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 97 BETWEEN - + col1 AND ( + col0 / col2 + + - 51 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT DISTINCT col1 DIV + ( - + col0 ) FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT col1 / + ( - + col0 ) FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL COUNT( - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL COUNT ( - col1 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 12 * col1 * + 82 FROM tab0
----
-20664
-79704
-984

onlyif mysql # aggregate syntax: 
query I rowsort label-9187
SELECT ALL - 76 + - COUNT( * ) AS col0 FROM tab2 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-9187
SELECT ALL - 76 + - COUNT ( * ) AS col0 FROM tab2 cor0
----
-79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9188
SELECT DISTINCT - 23 DIV - COUNT( * ) AS col2 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9188
SELECT DISTINCT - 23 / - COUNT ( * ) AS col2 FROM tab2
----
7

query I rowsort
SELECT DISTINCT + + ( + + col2 ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - ( + 46 ) AS col0 FROM tab0 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9191
SELECT COUNT( * ) + ( - 77 ) FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9191
SELECT COUNT ( * ) + ( - 77 ) FROM tab1 AS cor0
----
-74

query I rowsort
SELECT ALL + 45 + + ( - 98 ) AS col2 FROM tab2 AS cor0
----
-53
-53
-53

query I rowsort
SELECT + ( + 46 ) FROM tab1 AS cor0
----
46
46
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9194
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - - col2 * - + col1 + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9194
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - - col2 * - + col1 + CAST ( NULL AS INTEGER ) IS NULL )
----

query I rowsort
SELECT ALL - ( + col2 ) - - ( + - col0 ) FROM tab0 cor0
----
-196
-62
-97

query II rowsort
SELECT 94, + col1 FROM tab2 AS cor0
----
94
51
94
67
94
77

query I rowsort
SELECT ALL col1 * + col0 + - - col0 FROM tab0
----
1230
1914
194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT + CAST( 87 AS SIGNED ) AS col1 FROM tab1
----
87
87
87

skipif mysql # not compatible
query I rowsort label-9198
SELECT + CAST ( 87 AS INTEGER ) AS col1 FROM tab1
----
87
87
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT - COUNT( ALL - CAST( NULL AS SIGNED ) ) * COUNT( * ) + - 22 FROM tab2
----
-22

skipif mysql # not compatible
query I rowsort label-9199
SELECT - COUNT ( ALL - CAST ( NULL AS INTEGER ) ) * COUNT ( * ) + - 22 FROM tab2
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9200
SELECT CAST( NULL AS SIGNED ) / - col1 - col0 + + col0 * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9200
SELECT CAST ( NULL AS INTEGER ) / - col1 - col0 + + col0 * - col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9201
SELECT COUNT( * ) - 99 FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9201
SELECT COUNT ( * ) - 99 FROM tab2
----
-96

query II rowsort
SELECT 63, col1 FROM tab1 WHERE NULL < - - 63
----

query I rowsort
SELECT - + col2 + col1 + + + col2 AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9204
SELECT DISTINCT AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9204
SELECT DISTINCT AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab1 cor0 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ALL - 29 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col0, col1 col0 FROM tab2
----
46
51
64
77
75
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 39 - + 77 >= NULL
----

query I rowsort
SELECT col2 * - 42 FROM tab0 AS cor0
----
-1974
-4158
-420

query I rowsort
SELECT DISTINCT + col2 * + + 18 + - col0 FROM tab0 AS cor0
----
1685
831
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9210
SELECT DISTINCT 84 * + CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) + + COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - col0 IS NULL
----
762

skipif mysql # not compatible
query I rowsort label-9210
SELECT DISTINCT 84 * + CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - col0 IS NULL
----
762

query I rowsort
SELECT - col0 * 53 * + 30 + col0 + col1 FROM tab2 cor0
----
-101619
-119108
-73043

onlyif mysql # DIV for integer division: 
query I rowsort label-9212
SELECT ALL + - col2 DIV + + 60 + - - col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + - col2 / + + 60 + - - col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + ( + - col1 ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9214
SELECT CAST( NULL AS SIGNED ) * + - ( + COUNT( * ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT CAST ( NULL AS INTEGER ) * + - ( + COUNT ( * ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL + col2 * 13 AS col0 FROM tab1
----
1248
767
884

query I rowsort
SELECT DISTINCT ( - + 75 ) * + 81 FROM tab1
----
-6075

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL - MAX( ALL 72 ) * + - ( + COUNT( * ) ) FROM tab1
----
216

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - MAX ( ALL 72 ) * + - ( + COUNT ( * ) ) FROM tab1
----
216

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT DISTINCT COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9218
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT DISTINCT ( + - COUNT( ALL 62 ) ) * - + 79 - + COUNT( * ) AS col0 FROM tab1
----
234

skipif mysql # not compatible
query I rowsort label-9219
SELECT DISTINCT ( + - COUNT ( ALL 62 ) ) * - + 79 - + COUNT ( * ) AS col0 FROM tab1
----
234

query II rowsort
SELECT ALL col0 * col2, - col2 AS col0 FROM tab0 AS cor0
----
705
-47
870
-10
9603
-99

query I rowsort
SELECT - + ( + col0 ) + - 0 * - 65 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT ALL - 24 AS col0 FROM tab2 AS cor0 WHERE + ( - col1 ) + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9223
SELECT COUNT( ALL + - 53 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9223
SELECT COUNT ( ALL + - 53 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * col0 * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT - + ( + SUM( DISTINCT - col2 ) ) + + 57 FROM tab1 AS cor0
----
280

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT - + ( + SUM ( DISTINCT - col2 ) ) + + 57 FROM tab1 AS cor0
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-9226
SELECT MIN( col0 ) col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9226
SELECT MIN ( col0 ) col1 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9227
SELECT DISTINCT MIN( DISTINCT + CAST( + + CAST( - + 14 AS SIGNED ) AS SIGNED ) ) AS col2 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT MIN ( DISTINCT + CAST ( + + CAST ( - + 14 AS INTEGER ) AS INTEGER ) ) AS col2 FROM tab1
----
-14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9228
SELECT ALL COUNT( ALL + + CAST( - 48 AS SIGNED ) ) * - MAX( DISTINCT - ( - 63 ) ) FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-9228
SELECT ALL COUNT ( ALL + + CAST ( - 48 AS INTEGER ) ) * - MAX ( DISTINCT - ( - 63 ) ) FROM tab0
----
-189

query I rowsort
SELECT ALL 85 FROM tab1 cor0 WHERE + col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT MIN( 7 ) - + - 30 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9230
SELECT MIN ( 7 ) - + - 30 FROM tab2 AS cor0
----
37

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 AND + ( + col1 ) / + - col0 * - col2
----

query II rowsort
SELECT DISTINCT ( + col2 ), col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT + + col2 + - CAST( NULL AS SIGNED ) + - col1 + col2 + - - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9233
SELECT + + col2 + - CAST ( NULL AS INTEGER ) + - col1 + col2 + - - ( - - col1 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + - col1 + - + 92, 24 AS col2 FROM tab2 AS cor0
----
-143
24
-159
24
-169
24

query I rowsort
SELECT + 72 + + col1 * 36 + + ( - col1 ) FROM tab0 AS cor0
----
107
2907
807

query I rowsort
SELECT - 80 + + 91 AS col2 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9237
SELECT ALL + - COUNT( * ) + - + 65 AS col0 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-9237
SELECT ALL + - COUNT ( * ) + - + 65 AS col0 FROM tab2 AS cor0
----
-68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 col1 FROM tab0 AS cor0 WHERE 85 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9239
SELECT ALL - - ( 64 ) FROM tab0 WHERE NOT - - col0 + + - CAST( - 11 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9239
SELECT ALL - - ( 64 ) FROM tab0 WHERE NOT - - col0 + + - CAST ( - 11 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + - 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT + 27 * 41 * COUNT( * ) FROM tab0
----
3321

skipif mysql # not compatible
query I rowsort label-9241
SELECT + 27 * 41 * COUNT ( * ) FROM tab0
----
3321

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - col2 <> + col1 / - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 91 AS col0, col0 col0 FROM tab0
----
91
15
91
87
91
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT SUM( + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-9244
SELECT SUM ( + col0 ) AS col2 FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9245
SELECT DISTINCT + 99 * - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-9245
SELECT DISTINCT + 99 * - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-294

query I rowsort
SELECT + + ( 6 ) FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT - col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query II rowsort
SELECT DISTINCT 99, col0 FROM tab0 AS cor0
----
99
15
99
87
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9249
SELECT ALL - - SUM( ALL + 48 ) FROM tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-9249
SELECT ALL - - SUM ( ALL + 48 ) FROM tab0 cor0
----
144

query I rowsort
SELECT - ( + 47 ) FROM tab0
----
-47
-47
-47

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9251
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + CAST( NULL AS DECIMAL ) NOT IN ( 87 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-9251
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + CAST ( NULL AS REAL ) NOT IN ( 87 * + col1 )
----

query I rowsort
SELECT - ( ( + - col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9253
SELECT + - COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT 45 + + + 69 IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9253
SELECT + - COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT 45 + + + 69 IS NOT NULL
----
0
NULL

query I rowsort
SELECT ALL + 5 * - 33 AS col0 FROM tab2 AS cor0
----
-165
-165
-165

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9255
SELECT - - CAST( + - 12 AS SIGNED ), + col2 * - - ( - 75 ) AS col2 FROM tab1 AS cor0
----
-12
-4425
-12
-5100
-12
-7200

skipif mysql # not compatible
query II rowsort label-9255
SELECT - - CAST ( + - 12 AS INTEGER ), + col2 * - - ( - 75 ) AS col2 FROM tab1 AS cor0
----
-12
-4425
-12
-5100
-12
-7200

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * + ( + + 44 ) - + col0 * col1 BETWEEN + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9258
SELECT col1 AS col1, CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9258
SELECT col1 AS col1, CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT DISTINCT col2 * + - 20 AS col2 FROM tab0
----
-1980
-200
-940

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col0 + 77 AS col0 FROM tab1 AS cor0
----
128
162
168

query II rowsort
SELECT + col2 AS col1, - col1 AS col1 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9263
SELECT ALL MIN( - 76 ) + - ( - - COUNT( * ) ) col1 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9263
SELECT ALL MIN ( - 76 ) + - ( - - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
-79

query II rowsort
SELECT DISTINCT - col2 AS col0, + col2 * + 42 FROM tab2 AS cor0
----
-23
966
-40
1680
-58
2436

query I rowsort
SELECT DISTINCT - 51 + - 39 AS col2 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT ALL - col2 * + ( - - 14 ) AS col2 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT col1 + - col1 * + + col2 FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT col2 * - ( + col0 ) AS col1 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9269
SELECT ALL + col1 DIV - - col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9269
SELECT ALL + col1 / - - col1 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + 45 FROM tab2 AS cor0 WHERE NOT - 11 >= - - 77
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9271
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
-3

query I rowsort
SELECT + col0 * ( + + 26 ) AS col0 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9273
SELECT ( + CAST( NULL AS SIGNED ) ) FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9273
SELECT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL COUNT( * ) + - MAX( DISTINCT col0 ) FROM tab1 cor0
----
-88

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL COUNT ( * ) + - MAX ( DISTINCT col0 ) FROM tab1 cor0
----
-88

query I rowsort
SELECT + ( + ( - 4 ) ) FROM tab1 AS cor0
----
-4
-4
-4

query II rowsort
SELECT ALL + col0 + col2 AS col2, - col1 * + - 9 FROM tab0 cor0
----
196
9
62
729
97
189

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9277
SELECT ALL COUNT( DISTINCT + col2 ) AS col0, 45 DIV 46 FROM tab2 cor0 WHERE NOT - 62 IS NOT NULL OR NULL IS NULL
----
3
0

skipif mysql # not compatible
query II rowsort label-9277
SELECT ALL COUNT ( DISTINCT + col2 ) AS col0, 45 / 46 FROM tab2 cor0 WHERE NOT - 62 IS NOT NULL OR NULL IS NULL
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9278
SELECT ALL CAST( - - col1 AS SIGNED ) - ( + - col1 ) FROM tab1
----
10
28
94

skipif mysql # not compatible
query I rowsort label-9278
SELECT ALL CAST ( - - col1 AS INTEGER ) - ( + - col1 ) FROM tab1
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9279
SELECT 36 - - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9279
SELECT 36 - - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE - ( - + col0 ) + - col1 + + col1 IS NULL AND NULL <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT + 5 - + COUNT( * ) AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9281
SELECT + 5 - + COUNT ( * ) AS col0 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT - ( + COUNT( ALL + ( 3 ) ) ) - - - COUNT( * ) - + 70 AS col2 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-9282
SELECT - ( + COUNT ( ALL + ( 3 ) ) ) - - - COUNT ( * ) - + 70 AS col2 FROM tab1
----
-76

query I rowsort
SELECT - col2 + - col0 + + - col2 * + col1 AS col0 FROM tab2
----
-1242
-3184
-4019

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT ALL + + col2 DIV + col0 - - + col0 AS col1 FROM tab1 cor0
----
52
85
91

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL + + col2 / + col0 - - + col0 AS col1 FROM tab1 cor0
----
52
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 col0 FROM tab1 AS cor0
----
72
72
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL - MAX( + - col2 ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL - MAX ( + - col2 ) FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - COUNT( * ) * 14 AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-9287
SELECT - COUNT ( * ) * 14 AS col0 FROM tab2 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - COUNT( 4 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9288
SELECT - COUNT ( 4 ) FROM tab2 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT DISTINCT + col0 * - col0 + - 47 DIV - + col1 + - col0 + - col2 FROM tab2 AS cor0
----
-2185
-4200
-5758

skipif mysql # not compatible
query I rowsort label-9289
SELECT DISTINCT + col0 * - col0 + - 47 / - + col1 + - col0 + - col2 FROM tab2 AS cor0
----
-2185
-4200
-5758

onlyif mysql # aggregate syntax: 
query I rowsort label-9290
SELECT ALL - + MIN( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - + MIN ( DISTINCT + 81 ) AS col1 FROM tab1 AS cor0
----
-81

query II rowsort
SELECT DISTINCT + 15, - col2 AS col0 FROM tab2 AS cor0
----
15
-23
15
-40
15
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT DISTINCT 74 * - - COUNT( * ) AS col0 FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT 74 * - - COUNT ( * ) AS col0 FROM tab2
----
222

query I rowsort
SELECT - - 52 * - col2 AS col2 FROM tab0 WHERE ( NOT NULL > ( NULL ) )
----

query I rowsort
SELECT + 80 + col2 AS col0 FROM tab2
----
103
120
138

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND + col1 * - - col0 + 85
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT - ( + - col2 ) / - 48 + col2 IN ( + - col2 * + col0 + - + 63, col2 / col2, ( - col1 ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - + col1 ) + - - col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT DISTINCT + 14 * - 8 AS col2 FROM tab2 AS cor0
----
-112

query I rowsort
SELECT 83 * + 67 FROM tab0 AS cor0
----
5561
5561
5561

query I rowsort
SELECT 1 - - + col2 FROM tab0
----
100
11
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9301
SELECT + col1 FROM tab0 WHERE - col1 * + col0 + CAST( 71 AS SIGNED ) IN ( + + col1 + + col1, + col1 * - col1 * col2 + + col0, col2 )
----

skipif mysql # not compatible
query I rowsort label-9301
SELECT + col1 FROM tab0 WHERE - col1 * + col0 + CAST ( 71 AS INTEGER ) IN ( + + col1 + + col1, + col1 * - col1 * col2 + + col0, col2 )
----

query I rowsort
SELECT + col2 + - + col1 AS col2 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9304
SELECT 69 + - MIN( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
146

skipif mysql # not compatible
query I rowsort label-9304
SELECT 69 + - MIN ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
146

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT + col0 * - CAST( NULL AS SIGNED ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT + col0 * - CAST ( NULL AS INTEGER ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9306
SELECT ALL - CAST( - + col0 AS SIGNED ) + + col2 FROM tab1 AS cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-9306
SELECT ALL - CAST ( - + col0 AS INTEGER ) + + col2 FROM tab1 AS cor0
----
144
147
159

query II rowsort
SELECT 90 * 51 + 16 AS col2, col0 * col2 * - + col1 + - col2 FROM tab1 AS cor0
----
4606
-25134
4606
-290904
4606
-68640

query I rowsort
SELECT ALL - + 36 + + - 52 FROM tab0 cor0
----
-88
-88
-88

query I rowsort
SELECT + 74 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT DISTINCT ( + SUM( ALL + + col0 ) ) col1 FROM tab2
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9310
SELECT DISTINCT ( + SUM ( ALL + + col0 ) ) col1 FROM tab2
----
185

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - - 68 * col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9312
SELECT DISTINCT col1 DIV - ( - ( - + col2 ) ) AS col2, - col0 FROM tab0
----
-1
-15
-2
-87
0
-97

skipif mysql # not compatible
query II rowsort label-9312
SELECT DISTINCT col1 / - ( - ( - + col2 ) ) AS col2, - col0 FROM tab0
----
-1
-15
-2
-87
0
-97

query II rowsort
SELECT DISTINCT 13, col1 FROM tab2
----
13
51
13
67
13
77

query II rowsort
SELECT - + 77, + col1 FROM tab2 AS cor0
----
-77
51
-77
67
-77
77

query II rowsort
SELECT ALL col1 * 83 + - col1 * + ( + ( + col0 ) ) AS col0, col0 * + + 53 + - + col0 FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN - + col1 AND 24 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab0 AS cor0 WHERE NOT 6 BETWEEN NULL AND - col1 * col1
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT ALL + - COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9317
SELECT ALL + - COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9318
SELECT ALL 85 + col2 * + CAST( NULL AS DECIMAL ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9318
SELECT ALL 85 + col2 * + CAST ( NULL AS REAL ) * - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 WHERE NOT + col0 > 77
----
96

query I rowsort
SELECT ALL col2 * - 21 AS col1 FROM tab1
----
-1239
-1428
-2016

query I rowsort
SELECT ALL 40 + 24 AS col2 FROM tab1
----
64
64
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 11 col1, - col0 * + col0 FROM tab1
----
11
-2601
11
-7225
11
-8281

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT + col1 + col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT + CAST( 5 AS SIGNED ) col2 FROM tab0
----
5
5
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9324
SELECT + CAST ( 5 AS INTEGER ) col2 FROM tab0
----
5
5
5

query I rowsort
SELECT DISTINCT + ( + ( + 57 ) ) AS col2 FROM tab0
----
57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 30 > NULL
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE col2 + - col1 > NULL
----

query I rowsort
SELECT col1 + - 33 AS col0 FROM tab0 AS cor0
----
-12
-32
48

query I rowsort
SELECT - + 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT ( + - col0 ) * - - 47 + + 94 - + col0 AS col2 FROM tab2
----
-2114
-2978
-3506

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT DISTINCT - - SUM( col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT - - SUM ( col1 ) AS col2 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - col0 + - + col0 AS col1 FROM tab0 AS cor0
----
-174
-194
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9333
SELECT + + 44 DIV - 66 - - - COUNT( * ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9333
SELECT + + 44 / - 66 - - - COUNT ( * ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT SUM( + col0 ) * + 73 * + COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
40518

skipif mysql # not compatible
query I rowsort label-9334
SELECT SUM ( + col0 ) * + 73 * + COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
40518

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 * - col0 + + - col0 * + 57 col1 FROM tab2 cor0
----
-4968
-8576
-9300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - ( - 63 ) ) * - 85 col0 FROM tab1
----
-5355
-5355
-5355

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col2 + + col1 + col1 + - col0 * + 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 31 * - col1 AS col0 FROM tab0
----
-2511
-31
-651

query III rowsort
SELECT * FROM tab2 WHERE NOT 77 * + + col2 + - col2 + 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * - ( + col0 ) AS col2 FROM tab2 WHERE 62 IS NOT NULL
----
-1058
-2560
-4350

query I rowsort
SELECT ALL - 18 AS col1 FROM tab2
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT DISTINCT + SUM( + 15 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9342
SELECT DISTINCT + SUM ( + 15 ) FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + + 35 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - 14 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT ALL MAX( - ( col0 ) ) * 91 FROM tab0 AS cor0
----
-1365

skipif mysql # not compatible
query I rowsort label-9345
SELECT ALL MAX ( - ( col0 ) ) * 91 FROM tab0 AS cor0
----
-1365

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT 50 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-9346
SELECT 50 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-150

query II rowsort
SELECT DISTINCT + + 79 + 33 AS col1, 21 FROM tab1 WHERE NOT - - ( 86 ) * - 62 * + col2 + + col0 = + col0 * col1
----
112
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT ALL + 97 * - MIN( DISTINCT + + 61 ) FROM tab1 AS cor0
----
-5917

skipif mysql # not compatible
query I rowsort label-9348
SELECT ALL + 97 * - MIN ( DISTINCT + + 61 ) FROM tab1 AS cor0
----
-5917

query I rowsort
SELECT - 92 * col1 * - col1 AS col2 FROM tab1 AS cor0
----
18032
203228
2300

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > - col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + ( + col1 ) ) - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + col0 + col0 * + + ( - col2 ) FROM tab2 AS cor0
----
-2432
-4200
-966

onlyif mysql # DIV for integer division: 
query I rowsort label-9353
SELECT - col1 * col2 DIV + 45 AS col2 FROM tab2 cor0
----
-26
-68
-86

skipif mysql # not compatible
query I rowsort label-9353
SELECT - col1 * col2 / + 45 AS col2 FROM tab2 cor0
----
-26
-68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT - + COUNT( * ) * - - 56 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-9354
SELECT - + COUNT ( * ) * - - 56 FROM tab2 AS cor0
----
-168

query I rowsort
SELECT + col2 + + col1 + 82 * col1 - + col1 FROM tab0 AS cor0
----
1732
181
6689

query I rowsort
SELECT col1 + + + 56 FROM tab1
----
103
61
70

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 71 IN ( + - col2, col0 * - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 60 + + col2 FROM tab1 WHERE NULL IS NULL
----
-1
36
8

query I rowsort
SELECT col1 + 91 AS col1 FROM tab1 cor0
----
105
138
96

query I rowsort
SELECT DISTINCT - + 48 FROM tab1 WHERE NULL IS NULL
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9361
SELECT + 99, CAST( - - col0 AS SIGNED ) + - col0 AS col1 FROM tab1 AS cor0
----
99
0
99
0
99
0

skipif mysql # not compatible
query II rowsort label-9361
SELECT + 99, CAST ( - - col0 AS INTEGER ) + - col0 AS col1 FROM tab1 AS cor0
----
99
0
99
0
99
0

query I rowsort
SELECT ALL + col0 * + + col0 FROM tab2 AS cor0
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query II rowsort label-9363
SELECT 86 AS col1, + SUM( + ( + - col2 ) ) AS col2 FROM tab1 AS cor0
----
86
-223

skipif mysql # not compatible
query II rowsort label-9363
SELECT 86 AS col1, + SUM ( + ( + - col2 ) ) AS col2 FROM tab1 AS cor0
----
86
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9364
SELECT + 96 DIV COUNT( * ) * + + MIN( ALL + 5 ) FROM tab0 AS cor0
----
160

skipif mysql # not compatible
query I rowsort label-9364
SELECT + 96 / COUNT ( * ) * + + MIN ( ALL + 5 ) FROM tab0 AS cor0
----
160

query I rowsort
SELECT DISTINCT 82 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 1 - + 98 * + col2 BETWEEN col1 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9369
SELECT ALL MAX( DISTINCT 33 ) FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-9369
SELECT ALL MAX ( DISTINCT 33 ) FROM tab0 AS cor0
----
33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 33 - col2 + - col0 + - - col0 NOT IN ( + - col1 + + 37, - col1 + - col2 * - + 89, + col2 * + - 27 * - col2 * + - 93, + 45 * - col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9371
SELECT - 53 DIV MAX( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9371
SELECT - 53 / MAX ( DISTINCT - - col1 ) FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 WHERE + - col2 + + 37 - 74 * col0 / ( - col2 ) - + - 97 IS NOT NULL
----
14
47
5

query I rowsort
SELECT ALL + col0 * - - 79 FROM tab2
----
3634
5056
5925

query I rowsort
SELECT DISTINCT 61 * col2 * col1 FROM tab1
----
17995
194956
81984

query I rowsort
SELECT DISTINCT - + 42 AS col2 FROM tab1 AS cor0
----
-42

query I rowsort
SELECT ALL + col0 * + - 32 FROM tab0
----
-2784
-3104
-480

query I rowsort
SELECT ALL + 0 + 8 FROM tab2 AS cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 * col2 * + col0 col1 FROM tab2 AS cor0
----
163840
326250
48668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9379
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 0 * - col1, + col2 * 49 + - CAST( - col0 AS SIGNED ), + - 26 )
----

skipif mysql # not compatible
query III rowsort label-9379
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( 0 * - col1, + col2 * 49 + - CAST ( - col0 AS INTEGER ), + - 26 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT DISTINCT - col2 + 90 + + col2 * - CAST( + 1 AS SIGNED ) * 8 AS col1 FROM tab2 cor0
----
-117
-270
-432

skipif mysql # not compatible
query I rowsort label-9380
SELECT DISTINCT - col2 + 90 + + col2 * - CAST ( + 1 AS INTEGER ) * 8 AS col1 FROM tab2 cor0
----
-117
-270
-432

query I rowsort
SELECT + col0 * - col1 * + + col1 AS col2 FROM tab0
----
-38367
-97
-98415

query I rowsort
SELECT 50 * - 10 FROM tab1
----
-500
-500
-500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col2, ( 71 ) col2 FROM tab2
----
23
71
40
71
58
71

query I rowsort
SELECT col2 - - - ( - col1 ) AS col1 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab1 WHERE - + col0 = 69 + - 96
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9386
SELECT ALL ( + 40 ) + + 10 + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9386
SELECT ALL ( + 40 ) + + 10 + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT 88 * - col2 + - col0 + col0 + - col1 FROM tab0 cor0
----
-4217
-8713
-901

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9388
SELECT DISTINCT col0 * 91 col1 FROM tab1 WHERE + col0 * ( + 4 ) * + col1 + - + 79 * - 28 + 93 + col2 * + col1 + - CAST( + 52 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9388
SELECT DISTINCT col0 * 91 col1 FROM tab1 WHERE + col0 * ( + 4 ) * + col1 + - + 79 * - 28 + 93 + col2 * + col1 + - CAST ( + 52 AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT ALL - - CAST( + 45 AS SIGNED ) * + + col0 FROM tab1 cor0
----
2295
3825
4095

skipif mysql # not compatible
query I rowsort label-9389
SELECT ALL - - CAST ( + 45 AS INTEGER ) * + + col0 FROM tab1 cor0
----
2295
3825
4095

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( NOT - 12 + - 87 IS NOT NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( - - ( + - col0 ) ) AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + - 40 AS col2 FROM tab2 cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + col2 * 18 col1, col1 AS col1 FROM tab2 AS cor0
----
1044
67
414
51
720
77

query II rowsort
SELECT + col0, + ( + + ( - + col0 ) ) FROM tab1
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9395
SELECT MAX( + col1 ) DIV COUNT( * ) AS col2, 63 AS col0 FROM tab2
----
25
63

skipif mysql # not compatible
query II rowsort label-9395
SELECT MAX ( + col1 ) / COUNT ( * ) AS col2, 63 AS col0 FROM tab2
----
25
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - ( - + 77 ) * + 10 * 72 col1 FROM tab1
----
2605680
277200
776160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9397
SELECT DISTINCT + 70 * + + 55 * - - col1 / - 92 * + ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9397
SELECT DISTINCT + 70 * + + 55 * - - col1 / - 92 * + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - 59 * + col1 AS col1 FROM tab1
----
-2773
-295
-826

onlyif mysql # aggregate syntax: 
query I rowsort label-9399
SELECT ALL + SUM( ALL col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9399
SELECT ALL + SUM ( ALL col1 ) col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL col1 * col1 + + col1 + - - 58 * + - col1 FROM tab0 AS cor0
----
-56
-756
1944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - ( + + col0 ) col2 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9402
SELECT ALL + MAX( + - CAST( - - 26 AS SIGNED ) ) AS col1, SUM( DISTINCT ( + + 16 ) ) FROM tab2 AS cor0
----
-26
16

skipif mysql # not compatible
query II rowsort label-9402
SELECT ALL + MAX ( + - CAST ( - - 26 AS INTEGER ) ) AS col1, SUM ( DISTINCT ( + + 16 ) ) FROM tab2 AS cor0
----
-26
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9403
SELECT ALL + SUM( col2 ) * SUM( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
14718

skipif mysql # not compatible
query I rowsort label-9403
SELECT ALL + SUM ( col2 ) * SUM ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
14718

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + col0 IS NOT NULL
----

query I rowsort
SELECT - + ( - 63 ) AS col0 FROM tab2 WHERE col0 + col2 <= NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT - - 47 + 71 * + 33 AS col0 FROM tab0 AS cor0
----
2390

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT ALL 57 + MIN( DISTINCT + 48 ) FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-9408
SELECT ALL 57 + MIN ( DISTINCT + 48 ) FROM tab2 AS cor0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT DISTINCT + 73 + 57 + + COUNT( * ) - + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
136

skipif mysql # not compatible
query I rowsort label-9409
SELECT DISTINCT + 73 + 57 + + COUNT ( * ) - + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
136

query I rowsort
SELECT - - 49 + + col1 AS col1 FROM tab0 AS cor0 WHERE - 49 IS NOT NULL
----
130
50
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9411
SELECT - - COUNT( * ) + 5 FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9411
SELECT - - COUNT ( * ) + 5 FROM tab2 AS cor0
----
8

query I rowsort
SELECT - col2 + - col0 + 10 * + col2 AS col2 FROM tab2 AS cor0
----
161
296
447

query I rowsort
SELECT + col1 + - + 59 + + - 19 FROM tab1 AS cor0
----
-31
-64
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9414
SELECT + col2 + - CAST( NULL AS SIGNED ) * + + col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9414
SELECT + col2 + - CAST ( NULL AS INTEGER ) * + + col2 * - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9415
SELECT + col2 * + + 30 + - CAST( 88 AS SIGNED ) + - col2 + - 40, col0 * 35 AS col0 FROM tab2 AS cor0 WHERE col0 / - - col0 IS NOT NULL
----
1032
2240
1554
2625
539
1610

skipif mysql # not compatible
query II rowsort label-9415
SELECT + col2 * + + 30 + - CAST ( 88 AS INTEGER ) + - col2 + - 40, col0 * 35 AS col0 FROM tab2 AS cor0 WHERE col0 / - - col0 IS NOT NULL
----
1032
2240
1554
2625
539
1610

query I rowsort
SELECT ALL + 70 + col1 FROM tab1 AS cor0
----
117
75
84

query I rowsort
SELECT ALL col0 - - 97 + + + 65 AS col1 FROM tab0 AS cor0
----
177
249
259

query I rowsort
SELECT ALL 28 - + col1 * + 92 AS col2 FROM tab1
----
-1260
-4296
-432

query I rowsort
SELECT DISTINCT - 18 + + + col0 AS col1 FROM tab1 cor0
----
33
67
73

query I rowsort
SELECT ( - col1 ) * col0 + + - col1 AS col1 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT - 15 > + col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT DISTINCT - MAX( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9422
SELECT DISTINCT - MAX ( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 92 + + + col0 FROM tab1 AS cor0
----
143
177
183

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 91, col1 col0 FROM tab0
----
91
1
91
21
91
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + 93 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 6 AS col2 FROM tab1 AS cor0
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9427
SELECT ALL + MIN( + 69 ) AS col2, + COUNT( * ) FROM tab2 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-9427
SELECT ALL + MIN ( + 69 ) AS col2, + COUNT ( * ) FROM tab2 AS cor0
----
69
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - 90 ) = ( - + ( - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT + 61 AS col1, - col2 FROM tab2 cor0
----
61
-23
61
-40
61
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT col2 IN ( col0, col0, + - col2 * col1, + col1 + 0, 90 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( + 39 ) AS col2 FROM tab1
----
-39
-39
-39

query I rowsort
SELECT - - col1 FROM tab2 cor0 WHERE 32 >= - + 6
----
51
67
77

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) > - + ( - col1 ) * + col0 + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9435
SELECT - COUNT( * ) + - 29 col0 FROM tab1
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9435
SELECT - COUNT ( * ) + - 29 col0 FROM tab1
----
-32

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9436
SELECT - 15 DIV ( - - ( - CAST( col2 AS SIGNED ) ) ) AS col0 FROM tab0 WHERE + 76 >= col0 * 61 DIV col1 + col0
----
0

skipif mysql # not compatible
query I rowsort label-9436
SELECT - 15 / ( - - ( - CAST ( col2 AS INTEGER ) ) ) AS col0 FROM tab0 WHERE + 76 >= col0 * 61 / col1 + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT ALL MIN( + + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL MIN ( + + col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT DISTINCT col1 * + + col1 AS col0 FROM tab1
----
196
2209
25

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( + col0 IS NULL )
----

query I rowsort
SELECT - + 1 AS col0 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9441
SELECT ALL ( - + ( COUNT( * ) ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9441
SELECT ALL ( - + ( COUNT ( * ) ) ) FROM tab1 cor0
----
-3

query I rowsort
SELECT + 10 FROM tab1 AS cor0 WHERE NULL >= - col1
----

query II rowsort
SELECT + - 50, 98 * + + col2 AS col1 FROM tab0 AS cor0
----
-50
4606
-50
9702
-50
980

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( + + col0 ) >= + 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 48 + - ( ( col0 ) ) AS col2 FROM tab1 AS cor0
----
-3
-37
-43

query II rowsort
SELECT ALL col0 - - - col0, - col0 AS col2 FROM tab0
----
0
-15
0
-87
0
-97

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - + 78
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9448
SELECT ALL - 9 - 15 AS col0, COUNT( ( col0 ) ) FROM tab2
----
-24
3

skipif mysql # not compatible
query II rowsort label-9448
SELECT ALL - 9 - 15 AS col0, COUNT ( ( col0 ) ) FROM tab2
----
-24
3

query I rowsort
SELECT + col2 - - + col0 AS col0 FROM tab0
----
196
62
97

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 37 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT + COUNT( * ) - - 82 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-9451
SELECT + COUNT ( * ) - - 82 FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT DISTINCT - ( - - 81 ) - + COUNT( * ) FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-9452
SELECT DISTINCT - ( - - 81 ) - + COUNT ( * ) FROM tab2
----
-84

query I rowsort
SELECT ( - col2 ) - 79 AS col2 FROM tab1
----
-138
-147
-175

query I rowsort
SELECT ALL - col1 - + - ( - col2 ) FROM tab1
----
-110
-115
-64

query I rowsort
SELECT - col2 - + 28 AS col0 FROM tab2
----
-51
-68
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL ( + - SUM( + 31 ) ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL ( + - SUM ( + 31 ) ) FROM tab0
----
-93

query I rowsort
SELECT ALL - 55 FROM tab0 WHERE NOT - col1 / + - col2 + - col0 * + col0 IS NULL
----
-55
-55
-55

query I rowsort
SELECT + 19 + + col1 + - col1 FROM tab0
----
19
19
19

query I rowsort
SELECT DISTINCT + + 53 + + - ( 85 ) FROM tab0 AS cor0 WHERE NOT + 40 BETWEEN col1 AND NULL
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9460
SELECT + CAST( COUNT( * ) AS SIGNED ) * - COUNT( ALL + col2 ) AS col2, 10 FROM tab2 cor0
----
-9
10

skipif mysql # not compatible
query II rowsort label-9460
SELECT + CAST ( COUNT ( * ) AS INTEGER ) * - COUNT ( ALL + col2 ) AS col2, 10 FROM tab2 cor0
----
-9
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9461
SELECT ALL 68 + - COUNT( * ) * - MAX( + 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL 68 + - COUNT ( * ) * - MAX ( + 89 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL 31 * + - 37 AS col1 FROM tab2 AS cor0
----
-1147
-1147
-1147

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT + SUM( + 24 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + SUM ( + 24 ) FROM tab0 AS cor0
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9464
SELECT DISTINCT + + col2 * + col0 + col2 + - + col0 + CAST( + 55 AS SIGNED ) * + + col0 AS col2 FROM tab1 AS cor0
----
11170
7746
9664

skipif mysql # not compatible
query I rowsort label-9464
SELECT DISTINCT + + col2 * + col0 + col2 + - + col0 + CAST ( + 55 AS INTEGER ) * + + col0 AS col2 FROM tab1 AS cor0
----
11170
7746
9664

query II rowsort
SELECT + + col0, 7 - + col1 FROM tab0 cor0 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT - + col0 * - + col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ( - 89 ) FROM tab2 AS cor0
----
-89
-89
-89

query I rowsort
SELECT - 58 * + - 49 AS col0 FROM tab2
----
2842
2842
2842

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 39 - + ( 95 ) <> + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9470
SELECT - 76 DIV COUNT( * ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-9470
SELECT - 76 / COUNT ( * ) FROM tab2
----
-25

query I rowsort
SELECT DISTINCT col1 * 48 AS col2 FROM tab2
----
2448
3216
3696

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9472
SELECT ALL 63 DIV + - ( + + CAST( 24 AS SIGNED ) ) AS col0 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL 63 / + - ( + + CAST ( 24 AS INTEGER ) ) AS col0 FROM tab1
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 76 + - - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
116
134
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9474
SELECT + + CAST( + 78 AS SIGNED ) * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1123
-6776
-7467

skipif mysql # not compatible
query I rowsort label-9474
SELECT + + CAST ( + 78 AS INTEGER ) * - col0 + + col2 AS col1 FROM tab0 AS cor0
----
-1123
-6776
-7467

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9475
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9475
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 64 + + col0 col2 FROM tab0 AS cor0
----
-49
23
33

onlyif mysql # DIV for integer division: 
query II rowsort label-9477
SELECT + col0, - 12 DIV + 72 + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-9477
SELECT + col0, - 12 / + 72 + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL col1 + + + col1 + - 12 AS col1 FROM tab2 AS cor0
----
122
142
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + + 53 + + - col0 + + col2 col2 FROM tab1 AS cor0
----
112
32
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9480
SELECT + + CAST( NULL AS DECIMAL ) + - + 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9480
SELECT + + CAST ( NULL AS REAL ) + - + 68 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-9481
SELECT - - 88 - COUNT( * ) * ( + 58 ) col1 FROM tab0 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9481
SELECT - - 88 - COUNT ( * ) * ( + 58 ) col1 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT + 18 - col1 FROM tab1 AS cor0
----
-29
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9483
SELECT - + col0 - + col2 * - - col2 * - ( + col2 ) AS col0, CAST( + col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
103808
81
913
21
970202
1

skipif mysql # not compatible
query II rowsort label-9483
SELECT - + col0 - + col2 * - - col2 * - ( + col2 ) AS col0, CAST ( + col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
103808
81
913
21
970202
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 34 + 89 col2 FROM tab2 AS cor0
----
123
123
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9485
SELECT 8 + COUNT( * ) - + + 37 AS col1 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-9485
SELECT 8 + COUNT ( * ) - + + 37 AS col1 FROM tab2 AS cor0
----
-26

query III rowsort
SELECT - col2 + + col0 AS col2, col1 + - ( - 13 ) AS col0, - col2 * - + col0 AS col2 FROM tab2 cor0
----
9 values hashing to cd8d8aaf8c4de1da3dece7ba6f229a5a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9487
SELECT - - COUNT( * ) * - MIN( DISTINCT + - CAST( CAST( + - 39 AS DECIMAL ) AS SIGNED ) ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-9487
SELECT - - COUNT ( * ) * - MIN ( DISTINCT + - CAST ( CAST ( + - 39 AS REAL ) AS INTEGER ) ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-120

query I rowsort
SELECT ALL - col1 - 38 AS col2 FROM tab1 AS cor0
----
-43
-52
-85

query I rowsort
SELECT DISTINCT 72 * - ( - 96 ) + - ( ( - col2 ) ) AS col0 FROM tab0
----
6922
6959
7011

query III rowsort
SELECT * FROM tab2 WHERE - - col0 + - col0 IS NULL
----

query I rowsort
SELECT ALL + 24 * - col0 + - + col0 + - col2 FROM tab0 AS cor0
----
-2185
-2524
-422

query I rowsort
SELECT + 35 * + col1 - 85 AS col0 FROM tab2 AS cor0
----
1700
2260
2610

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9493
SELECT COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9493
SELECT COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9495
SELECT ALL * FROM tab1 WHERE NOT - CAST( 65 AS SIGNED ) + - col2 NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-9495
SELECT ALL * FROM tab1 WHERE NOT - CAST ( 65 AS INTEGER ) + - col2 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 93 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( col1 ) BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9498
SELECT ALL - ( + COUNT( DISTINCT + CAST( 1 AS SIGNED ) ) ) col0 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9498
SELECT ALL - ( + COUNT ( DISTINCT + CAST ( 1 AS INTEGER ) ) ) col0 FROM tab1
----
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + 38
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 * 20 + - col0 = ( col0 + 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9501
SELECT ALL MAX( ALL - 98 ) col0 FROM tab2
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9501
SELECT ALL MAX ( ALL - 98 ) col0 FROM tab2
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9502
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL IN ( - 71 )
----
0

skipif mysql # not compatible
query I rowsort label-9502
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL IN ( - 71 )
----
0

query I rowsort
SELECT 74 AS col0 FROM tab2 WHERE 14 + col0 IS NOT NULL
----
74
74
74

query I rowsort
SELECT + col2 * - 86 FROM tab0
----
-4042
-8514
-860

query I rowsort
SELECT - ( - col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT 5 DIV col1 + - 58 * col2 FROM tab1
----
-3421
-3944
-5568

skipif mysql # not compatible
query I rowsort label-9506
SELECT 5 / col1 + - 58 * col2 FROM tab1
----
-3421
-3944
-5568

query I rowsort
SELECT DISTINCT + col1 - + 41 FROM tab0
----
-20
-40
40

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * col0 - - col0 <> ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 <= col1 / + 68
----

query I rowsort
SELECT DISTINCT col1 * + col0 + 14 * - col2 AS col2 FROM tab1
----
-401
-630
3325

onlyif mysql # aggregate syntax: 
query I rowsort label-9511
SELECT ALL - COUNT( 96 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9511
SELECT ALL - COUNT ( 96 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - col1 + 57 AS col2 FROM tab1
----
10
43
52

query I rowsort
SELECT col2 * + col0 FROM tab0 WHERE ( - 78 ) IS NOT NULL
----
705
870
9603

query I rowsort
SELECT ALL - 69 + - col1 AS col0 FROM tab2
----
-120
-136
-146

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col2 ) * + 93 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9516
SELECT CAST( + COUNT( * ) AS SIGNED ) * + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9517
SELECT ALL * FROM tab1 WHERE NOT 39 * - col0 + + 0 >= ( CAST( - 13 AS SIGNED ) / col1 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9517
SELECT ALL * FROM tab1 WHERE NOT 39 * - col0 + + 0 >= ( CAST ( - 13 AS INTEGER ) / col1 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT - MAX( ALL + col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-9518
SELECT - MAX ( ALL + col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9520
SELECT DISTINCT - SUM( ALL + col0 ) FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9520
SELECT DISTINCT - SUM ( ALL + col0 ) FROM tab1
----
-227

query I rowsort
SELECT DISTINCT + col0 + 86 FROM tab0 AS cor0
----
101
173
183

query I rowsort
SELECT DISTINCT 73 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 - + col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 35 + + col0 * col0 FROM tab1 WHERE col1 IS NOT NULL
----
2636
7260
8316

onlyif mysql # aggregate syntax: 
query I rowsort label-9525
SELECT + COUNT( * ) * 79 + COUNT( * ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-9525
SELECT + COUNT ( * ) * 79 + COUNT ( * ) FROM tab0
----
240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9526
SELECT + COUNT( * ) DIV - 54 + + COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9526
SELECT + COUNT ( * ) / - 54 + + COUNT ( * ) FROM tab0
----
3

query I rowsort
SELECT - 84 * - 72 FROM tab1 cor0
----
6048
6048
6048

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * 40 + + ( 34 ) < ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 82 + 65 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9530
SELECT DISTINCT 77 + - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 + + 98 ) <> NULL
----
77

skipif mysql # not compatible
query I rowsort label-9530
SELECT DISTINCT 77 + - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( + col1 + + 98 ) <> NULL
----
77

query I rowsort
SELECT + + 58 * + 71 AS col2 FROM tab1 AS cor0
----
4118
4118
4118

onlyif mysql # DIV for integer division: 
query I rowsort label-9532
SELECT ALL col0 + + 92 DIV - 47 FROM tab2 cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9532
SELECT ALL col0 + + 92 / - 47 FROM tab2 cor0
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 74 * - col2 BETWEEN - 39 AND ( NULL )
----
3

skipif mysql # not compatible
query I rowsort label-9533
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 74 * - col2 BETWEEN - 39 AND ( NULL )
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 11 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT - - col0 * - 88 - - col2 DIV col2 AS col0 FROM tab2 AS cor0
----
-4047
-5631
-6599

skipif mysql # not compatible
query I rowsort label-9535
SELECT - - col0 * - 88 - - col2 / col2 AS col0 FROM tab2 AS cor0
----
-4047
-5631
-6599

query I rowsort
SELECT ALL col2 - + col0 FROM tab1 AS cor0 WHERE NOT ( + 96 ) NOT IN ( + col0 )
----

query I rowsort
SELECT ALL + + col1 - - 78 FROM tab0 AS cor0
----
159
79
99

query I rowsort
SELECT ALL - + 70 * col2 + - 49 FROM tab1 AS cor0
----
-4179
-4809
-6769

query III rowsort
SELECT * FROM tab0 WHERE col1 * - 60 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9540
SELECT 50 DIV - - 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9540
SELECT 50 / - - 99 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT ALL + COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9541
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL
----
3

query I rowsort
SELECT - 47 * - 27 FROM tab0
----
1269
1269
1269

query I rowsort
SELECT ALL col0 AS col1 FROM tab1 WHERE NULL IN ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * 19 + 7 <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9545
SELECT DISTINCT + MIN( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT + MIN ( - - col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT 98 FROM tab0 WHERE NOT ( + col0 + + 39 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9548
SELECT 98 * 52 AS col1 FROM tab1 WHERE NOT ( ( - col0 ) <> ( 56 / CAST( 53 AS DECIMAL ) ) )
----

skipif mysql # not compatible
query I rowsort label-9548
SELECT 98 * 52 AS col1 FROM tab1 WHERE NOT ( ( - col0 ) <> ( 56 / CAST ( 53 AS REAL ) ) )
----

query I rowsort
SELECT DISTINCT 56 * - col0 - col1 FROM tab0 AS cor0
----
-4893
-5433
-921

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9550
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 44 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9550
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 44 / CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9551
SELECT - + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-9551
SELECT - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 cor0
----
46
64
75

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT - - col2, - 22 - - col1 AS col2 FROM tab0 AS cor0
----
10
-1
47
59
99
-21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9554
SELECT - col0, CAST( - - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

skipif mysql # not compatible
query II rowsort label-9554
SELECT - col0, CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT col0 * + col1 * + - col1 FROM tab2
----
-119646
-336675
-379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 86 + + - col0 AS col2, col2 * + col2 + + col0 col1 FROM tab2
----
-132
575
-150
1664
-161
3439

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9557
SELECT + COUNT( * ) DIV 49 + - 39 AS col1 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-9557
SELECT + COUNT ( * ) / 49 + - 39 AS col1 FROM tab2
----
-39

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) >= + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9559
SELECT * FROM tab2 WHERE + CAST( NULL AS SIGNED ) + + col0 BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9559
SELECT * FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + + col0 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT 89 + + col0 + + col2 * col1 * + 26 AS col1 FROM tab2
----
101200
30633
80233

query I rowsort
SELECT + col2 + + - ( + col2 ) FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - 9
----

query I rowsort
SELECT - + 91 AS col1 FROM tab0 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 96 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 96 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE 15 IS NULL
----

query I rowsort
SELECT col1 + 62 AS col2 FROM tab0
----
143
63
83

onlyif mysql # aggregate syntax: 
query I rowsort label-9567
SELECT + 53 + COUNT( * ) + + 72 FROM tab2 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-9567
SELECT + 53 + COUNT ( * ) + + 72 FROM tab2 AS cor0
----
128

query I rowsort
SELECT col1 + - col0 FROM tab2 AS cor0 WHERE col2 / + col2 + + col1 > ( col1 )
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT + COUNT( * ) + + COUNT( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-9569
SELECT + COUNT ( * ) + + COUNT ( DISTINCT + col1 ) AS col1 FROM tab2 cor0
----
6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 48 + + 36 ) = - ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * - col1 * + 53 AS col1 FROM tab0 AS cor0
----
-5141
-64395
-96831

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9572
SELECT ALL * FROM tab0 cor0 WHERE NOT - 21 <> - col0 * - CAST( col2 AS SIGNED ) + + 56
----

skipif mysql # not compatible
query III rowsort label-9572
SELECT ALL * FROM tab0 cor0 WHERE NOT - 21 <> - col0 * - CAST ( col2 AS INTEGER ) + + 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9573
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 51 + - col2 - + - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-9573
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - 51 + - col2 - + - ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT col2 - 57 * - 3 FROM tab1 AS cor0 WHERE NOT col2 * + ( + - ( + col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9575
SELECT ALL - MIN( + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT ALL - MIN ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2, + col0 AS col0 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT ALL - col1 AS col2, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

query II rowsort
SELECT ALL col2 AS col1, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9580
SELECT 73 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND + col2 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9580
SELECT 73 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( col1 ) AND + col2 * - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + 4, col1 AS col1 FROM tab2 AS cor0
----
4
51
4
67
4
77

query II rowsort
SELECT DISTINCT col2, 59 AS col2 FROM tab1 AS cor0
----
59
59
68
59
96
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT + - ( COUNT( - + col1 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + - ( COUNT ( - + col1 ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL MIN( - + ( col0 ) ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL MIN ( - + ( col0 ) ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT + col1 + ( - col1 ) AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9586
SELECT + COUNT( * ) + + + 30 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-9586
SELECT + COUNT ( * ) + + + 30 FROM tab0 cor0
----
33

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NOT ( - col0 + col1 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9588
SELECT 38 * + - MAX( + col2 ) / + 81 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9588
SELECT 38 * + - MAX ( + col2 ) / + 81 + + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9589
SELECT DISTINCT - SUM( DISTINCT + - 49 ) AS col0 FROM tab2 AS cor0 WHERE 24 <= + col0
----
49

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT - SUM ( DISTINCT + - 49 ) AS col0 FROM tab2 AS cor0 WHERE 24 <= + col0
----
49

query I rowsort
SELECT DISTINCT - - 24 + - col2 AS col2 FROM tab1 cor0
----
-35
-44
-72

query I rowsort
SELECT col0 AS col0 FROM tab2 AS cor0 WHERE - 51 IS NULL
----

query I rowsort
SELECT ALL + - col1 * + 56 + - 18 AS col1 FROM tab2 cor0
----
-2874
-3770
-4330

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 AS cor0 WHERE + col1 * - - col2 NOT BETWEEN + col1 AND + - col1 * - + 14
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 4 * col0 AS col2 FROM tab2 AS cor0
----
-184
-256
-300

query III rowsort
SELECT * FROM tab0 WHERE NULL <> ( - col2 * + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9596
SELECT - COUNT( * ) * 80 AS col2 FROM tab0
----
-240

skipif mysql # not compatible
query I rowsort label-9596
SELECT - COUNT ( * ) * 80 AS col2 FROM tab0
----
-240

query III rowsort
SELECT * FROM tab2 WHERE - + 30 < col0 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9598
SELECT 61 DIV + - ( + - 1 ) AS col2 FROM tab2
----
61
61
61

skipif mysql # not compatible
query I rowsort label-9598
SELECT 61 / + - ( + - 1 ) AS col2 FROM tab2
----
61
61
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + - col1 col0 FROM tab0
----
1
441
6561

query III rowsort
SELECT * FROM tab2 WHERE - ( - 33 ) <= ( - col0 * col2 )
----

query I rowsort
SELECT + col0 * - ( + - col0 ) AS col0 FROM tab2
----
2116
4096
5625

query III rowsort
SELECT * FROM tab0 WHERE - 62 + 41 + - col1 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 53 + + - col0 col2 FROM tab0
----
-140
-150
-68

query I rowsort
SELECT 26 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

query III rowsort
SELECT * FROM tab2 WHERE ( col2 NOT IN ( - 93, - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - ( + + col2 ) FROM tab2 AS cor0
----
-23
-40
-58

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 85 <= NULL
----

query II rowsort
SELECT + 36 * - col0, col2 AS col0 FROM tab1 AS cor0
----
-1836
96
-3060
59
-3276
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT DISTINCT + MIN( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9610
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) FROM tab1 AS cor0
----
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 12 col1 FROM tab0 AS cor0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9612
SELECT CAST( NULL AS SIGNED ) * - + CAST( col0 AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT CAST ( NULL AS INTEGER ) * - + CAST ( col0 AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9613
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE - 78 <= CAST( 49 AS SIGNED ) + 43
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9613
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE - 78 <= CAST ( 49 AS INTEGER ) + 43
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9614
SELECT - 99 DIV + - col1 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9614
SELECT - 99 / + - col1 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9615
SELECT ALL + 51 * - ( - 70 ) AS col1, - COUNT( * ) FROM tab1
----
3570
-3

skipif mysql # not compatible
query II rowsort label-9615
SELECT ALL + 51 * - ( - 70 ) AS col1, - COUNT ( * ) FROM tab1
----
3570
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9616
SELECT ALL MIN( - col0 ) / + CAST( NULL AS SIGNED ) / + + 77 - - + 87 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9616
SELECT ALL MIN ( - col0 ) / + CAST ( NULL AS INTEGER ) / + + 77 - - + 87 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col0 + - - col0 + col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 11 - + 99 + + col0 / + 37 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + + 60 AS col1, 56 FROM tab2 AS cor0
----
60
56
60
56
60
56

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT - col1 NOT IN ( - col2 * - col1 * - + col1 )
----

query II rowsort
SELECT DISTINCT - 28 AS col0, - 67 + - col1 AS col2 FROM tab0
----
-28
-148
-28
-68
-28
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT DISTINCT CAST( - 21 AS SIGNED ) AS col2 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9622
SELECT DISTINCT CAST ( - 21 AS INTEGER ) AS col2 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT - + COUNT( - - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9623
SELECT - + COUNT ( - - col2 ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 95 + + col0 + + 98 col2 FROM tab0 AS cor0
----
208
280
290

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 82 col0 FROM tab1 AS cor0
----
35
68
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 + col2 col2 FROM tab2 AS cor0
----
-25
-42
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 * - - 97 col1 FROM tab0 AS cor0
----
-1950
-7842
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9629
SELECT + - CAST( NULL AS SIGNED ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9629
SELECT + - CAST ( NULL AS INTEGER ) + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9630
SELECT - 88 + + - COUNT( ALL - + col1 ) FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9630
SELECT - 88 + + - COUNT ( ALL - + col1 ) FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT - 92 + SUM( - col2 ) FROM tab1 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-9631
SELECT - 92 + SUM ( - col2 ) FROM tab1 AS cor0
----
-315

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( ( - col0 * + col2 + - col0 BETWEEN ( - col2 ) AND col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-9632
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( ( - col0 * + col2 + - col0 BETWEEN ( - col2 ) AND col2 ) )
----
0

query II rowsort
SELECT DISTINCT + col0, + col0 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT - ( + COUNT( * ) ) FROM tab2 WHERE + - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9634
SELECT - ( + COUNT ( * ) ) FROM tab2 WHERE + - col1 IS NOT NULL
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 62 > NULL
----

query II rowsort
SELECT ALL - ( + col1 ), + col0 * - col0 AS col2 FROM tab2 AS cor0
----
-51
-2116
-67
-5625
-77
-4096

query II rowsort
SELECT ALL + col1 - + col0 AS col1, col2 FROM tab2 AS cor0
----
-8
58
13
40
5
23

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col0 - - col0 + - col2 * + - col1 / - 92 NOT IN ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT ALL + COUNT( * ) - 9 AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-9639
SELECT ALL + COUNT ( * ) - 9 AS col0 FROM tab1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-9640
SELECT + 89 * - COUNT( * ) AS col2 FROM tab0 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-9640
SELECT + 89 * - COUNT ( * ) AS col2 FROM tab0 cor0
----
-267

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT ALL - + MAX( + - col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9641
SELECT ALL - + MAX ( + - col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col2 * - 10 FROM tab2 AS cor0
----
230
400
580

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 55 * + col2 + 95 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9644
SELECT + COUNT( - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9644
SELECT + COUNT ( - ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query III rowsort label-9645
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT - col1 + + + col1 NOT IN ( + 83 DIV col2, + 13, col1 * col2 + + col1 * 53 ) ) )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-9645
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT ( NOT - col1 + + + col1 NOT IN ( + 83 / col2, + 13, col1 * col2 + + col1 * 53 ) ) )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT + + ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL AND + 68 * + 14 - 94 ) )
----

skipif mysql # not compatible
query I rowsort label-9646
SELECT + + ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL NOT BETWEEN NULL AND + 68 * + 14 - 94 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9647
SELECT DISTINCT 62 DIV + - COUNT( * ) col0 FROM tab1
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9647
SELECT DISTINCT 62 / + - COUNT ( * ) col0 FROM tab1
----
-20

query I rowsort
SELECT + ( + + 80 ) AS col2 FROM tab0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + 57 + 24, + col0 FROM tab0 cor0
----
81
15
81
87
81
97

query I rowsort
SELECT + 28 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

query I rowsort
SELECT col0 + + + 23 AS col2 FROM tab0
----
110
120
38

query II rowsort
SELECT DISTINCT + col0, col1 FROM tab0 cor0
----
15
81
87
21
97
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + 34 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9655
SELECT CAST( NULL AS DECIMAL ) * ( + col0 ) + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9655
SELECT CAST ( NULL AS REAL ) * ( + col0 ) + - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9656
SELECT MIN( DISTINCT - + 12 ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9656
SELECT MIN ( DISTINCT - + 12 ) AS col2 FROM tab0 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - col0 ) + + col0 col2 FROM tab1 cor0
----
102
170
182

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( col0, + col1 )
----

query I rowsort
SELECT DISTINCT 86 + - + 34 FROM tab0 AS cor0
----
52

query I rowsort
SELECT DISTINCT - 69 - + col2 AS col0 FROM tab2
----
-109
-127
-92

query I rowsort
SELECT ( + + 9 ) AS col1 FROM tab2
----
9
9
9

query I rowsort
SELECT ALL - 75 - - col1 FROM tab1
----
-28
-61
-70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9663
SELECT - CAST( NULL AS SIGNED ) * + - col2 * + col2 * + CAST( NULL AS SIGNED ) - + col1 * 64 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9663
SELECT - CAST ( NULL AS INTEGER ) * + - col2 * + col2 * + CAST ( NULL AS INTEGER ) - + col1 * 64 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9664
SELECT col1 DIV + 23 - + + 21 FROM tab2
----
-18
-19
-19

skipif mysql # not compatible
query I rowsort label-9664
SELECT col1 / + 23 - + + 21 FROM tab2
----
-18
-19
-19

query I rowsort
SELECT - 86 + + col1 AS col0 FROM tab1
----
-39
-72
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9666
SELECT DISTINCT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT col0 + col0 NOT BETWEEN + 4 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9666
SELECT DISTINCT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT col0 + col0 NOT BETWEEN + 4 AND NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT COUNT( * ) + + 13 FROM tab0 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9667
SELECT COUNT ( * ) + + 13 FROM tab0 AS cor0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT + col2 + - + 60 + col1 DIV - ( col2 ) AS col1 FROM tab2 AS cor0
----
-21
-3
-39

skipif mysql # not compatible
query I rowsort label-9668
SELECT + col2 + - + 60 + col1 / - ( col2 ) AS col1 FROM tab2 AS cor0
----
-21
-3
-39

query I rowsort
SELECT - - ( + ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT COUNT( * ) + - 74 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-65

skipif mysql # not compatible
query I rowsort label-9670
SELECT COUNT ( * ) + - 74 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-65

query I rowsort
SELECT ALL - + 26 + + 85 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9673
SELECT DISTINCT - - col0 DIV 67 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9673
SELECT DISTINCT - - col0 / 67 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT + - col0 * + 79 FROM tab0 AS cor0
----
-1185
-6873
-7663

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * + + col2 * + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9676
SELECT - 73 DIV - - col1 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9676
SELECT - 73 / - - col1 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col2 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + + col2 * + - col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 51 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NOT NULL IN ( 17, - col0 )
----

query I rowsort
SELECT - ( + 46 ) AS col2 FROM tab0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-9682
SELECT COUNT( * ) * 28 FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-9682
SELECT COUNT ( * ) * 28 FROM tab1
----
84

onlyif mysql # DIV for integer division: 
query I rowsort label-9683
SELECT ALL col1 * 81 DIV col2 AS col1 FROM tab0
----
0
139
170

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL col1 * 81 / col2 AS col1 FROM tab0
----
0
139
170

query II rowsort
SELECT col2 + - + col0 AS col0, col2 AS col1 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL - COUNT( * ) + COUNT( * ) * - - 77 FROM tab0 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL - COUNT ( * ) + COUNT ( * ) * - - 77 FROM tab0 AS cor0
----
228

query II rowsort
SELECT + + 40 + 33, + col0 FROM tab0 AS cor0
----
73
15
73
87
73
97

query I rowsort
SELECT - 68 + + - col2 FROM tab0 AS cor0
----
-115
-167
-78

query I rowsort
SELECT DISTINCT ( + - col0 ) + + col2 + - col0 * + col0 FROM tab2 AS cor0
----
-2139
-4120
-5642

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT ALL col1 DIV + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
query I rowsort label-9689
SELECT ALL col1 / + - col1 + + col2 AS col0 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # DIV for integer division: 
query II rowsort label-9690
SELECT - + col2 + - col1 AS col1, col0 DIV - - col0 FROM tab1 AS cor0
----
-110
1
-115
1
-64
1

skipif mysql # not compatible
query II rowsort label-9690
SELECT - + col2 + - col1 AS col1, col0 / - - col0 FROM tab1 AS cor0
----
-110
1
-115
1
-64
1

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT - + col2 + + CAST( - + 83 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-130
-182
-93

skipif mysql # not compatible
query I rowsort label-9692
SELECT - + col2 + + CAST ( - + 83 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-130
-182
-93

query I rowsort
SELECT - col2 + + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9694
SELECT ALL + COUNT( * ) * + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9694
SELECT ALL + COUNT ( * ) * + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 67 * + col1 - + 83 col0 FROM tab1
----
252
3066
855

onlyif mysql # DIV for integer division: 
query I rowsort label-9696
SELECT col1 - + col1 + - col2 DIV - + 49 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-9696
SELECT col1 - + col1 + - col2 / - + 49 FROM tab0 AS cor0
----
0
0
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9697
SELECT COUNT( * ) * - 17 AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-9697
SELECT COUNT ( * ) * - 17 AS col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 47 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL + - col1 * + + ( + col0 ) AS col1 FROM tab0 AS cor0 WHERE + 81 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9701
SELECT DISTINCT col2 * col1 / - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT col2 * col1 / - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL - + COUNT( * ) * - MIN( DISTINCT + 20 ) FROM tab0 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL - + COUNT ( * ) * - MIN ( DISTINCT + 20 ) FROM tab0 AS cor0
----
60

query I rowsort
SELECT + 76 * ( - 62 ) AS col1 FROM tab0
----
-4712
-4712
-4712

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( + ( - 99 ) ) + + 33 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9706
SELECT DISTINCT - COUNT( * ) * - 45 DIV - - 14 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT - COUNT ( * ) * - 45 / - - 14 FROM tab2
----
9

query I rowsort
SELECT ALL + col2 * - 2 AS col1 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col2 ) < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9709
SELECT DISTINCT - 70 DIV + SUM( ALL col0 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9709
SELECT DISTINCT - 70 / + SUM ( ALL col0 ) FROM tab0
----
0

query II rowsort
SELECT DISTINCT - col2 AS col1, - 26 FROM tab0 cor0
----
-10
-26
-47
-26
-99
-26

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT IN ( + ( + ( - col2 ) ) - col0 * + + col2 - 83 + + 76 + + col1 + - - 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) > ( + + col0 + - col0 )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 cor0 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9714
SELECT - SUM( + 33 ) FROM tab0 AS cor0 WHERE - 72 + + col1 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9714
SELECT - SUM ( + 33 ) FROM tab0 AS cor0 WHERE - 72 + + col1 NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9715
SELECT + col1 DIV col1 + + + col2 * + 63 AS col2 FROM tab0 AS cor0
----
2962
6238
631

skipif mysql # not compatible
query I rowsort label-9715
SELECT + col1 / col1 + + + col2 * + 63 AS col2 FROM tab0 AS cor0
----
2962
6238
631

onlyif mysql # DIV for integer division: 
query I rowsort label-9716
SELECT DISTINCT 11 DIV + ( - + 92 ) * - + col0 - 7 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-9716
SELECT DISTINCT 11 / + ( - + 92 ) * - + col0 - 7 FROM tab1 AS cor0
----
-7

query I rowsort
SELECT ALL ( 91 ) + col2 AS col1 FROM tab2
----
114
131
149

onlyif mysql # DIV for integer division: 
query I rowsort label-9718
SELECT col0 - - col2 + - col0 DIV - + col0 + - col0 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-9718
SELECT col0 - - col2 + - col0 / - + col0 + - col0 FROM tab2
----
24
41
59

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT col1 - col1 DIV col1 FROM tab1
----
13
4
46

skipif mysql # not compatible
query I rowsort label-9719
SELECT col1 - col1 / col1 FROM tab1
----
13
4
46

query I rowsort
SELECT ALL + + 5 - col2 FROM tab2 WHERE ( ( NULL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9721
SELECT DISTINCT - + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9722
SELECT 6 * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9722
SELECT 6 * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT DISTINCT MIN( DISTINCT + col1 ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9724
SELECT DISTINCT MIN ( DISTINCT + col1 ) col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - 72 * + col1 + + col2 + + col1 * - col0 * - 84 FROM tab1 cor0
----
35399
355952
59064

query I rowsort
SELECT ALL - col1 * + + 42 * - col1 AS col1 FROM tab2
----
109242
188538
249018

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 70 - - + col2 + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col1 ) * + 93 + 78 FROM tab0 AS cor0
----
-15
-1875
-7455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9729
SELECT DISTINCT col2 + - CAST( col1 AS SIGNED ) + col0 * - - ( 48 ) FROM tab0 AS cor0
----
4165
4754
686

skipif mysql # not compatible
query I rowsort label-9729
SELECT DISTINCT col2 + - CAST ( col1 AS INTEGER ) + col0 * - - ( 48 ) FROM tab0 AS cor0
----
4165
4754
686

onlyif mysql # DIV for integer division: 
query I rowsort label-9730
SELECT ALL - + col1 + + 96 DIV - col1 AS col2 FROM tab2 AS cor0
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - + col1 + + 96 / - col1 AS col2 FROM tab2 AS cor0
----
-52
-68
-78

query I rowsort
SELECT - 17 * - 4 AS col2 FROM tab2 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query II rowsort label-9732
SELECT COUNT( * ) AS col1, - 19 col1 FROM tab0 AS cor0
----
3
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9732
SELECT COUNT ( * ) AS col1, - 19 col1 FROM tab0 AS cor0
----
3
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9733
SELECT 59 * - COUNT( * ) AS col1 FROM tab1 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-9733
SELECT 59 * - COUNT ( * ) AS col1 FROM tab1 cor0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2, col2 col2 FROM tab1 cor0
----
59
59
68
68
96
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 65 IS NOT NULL
----

query I rowsort
SELECT ( 75 ) * col2 + col1 FROM tab1
----
4430
5147
7214

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9737
SELECT ALL + CAST( AVG ( ALL - col0 ) AS SIGNED ) FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-9737
SELECT ALL + CAST ( AVG ( ALL - col0 ) AS INTEGER ) FROM tab0
----
-66

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NULL OR NOT ( NULL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9739
SELECT + col0 FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-9739
SELECT + col0 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9740
SELECT DISTINCT MIN( + - col2 ), COUNT( * ) AS col1 FROM tab0
----
-99
3

skipif mysql # not compatible
query II rowsort label-9740
SELECT DISTINCT MIN ( + - col2 ), COUNT ( * ) AS col1 FROM tab0
----
-99
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col2 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT MIN( - + col2 ) * - + COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT MIN ( - + col2 ) * - + COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND + 40
----
NULL

query I rowsort
SELECT DISTINCT ( + - col2 ) * col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9745
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE - 13 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9745
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE - 13 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - 8 * 60 + - col0 AS col1 FROM tab1 AS cor0
----
-531
-565
-571

query I rowsort
SELECT DISTINCT + - 67 / col2 AS col0 FROM tab2 AS cor0 WHERE NOT 48 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9748
SELECT ALL * FROM tab1 cor0 WHERE ( - CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9748
SELECT ALL * FROM tab1 cor0 WHERE ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NULL >= NULL
----

query I rowsort
SELECT - 94 + 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4ba0c102091f9cbc9fe9439b04584e70

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - 70 = - 39
----

query I rowsort
SELECT + col1 + + + col0 AS col1 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL + COUNT( DISTINCT - col1 ) + - 8 col2 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9753
SELECT ALL + COUNT ( DISTINCT - col1 ) + - 8 col2 FROM tab0 AS cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9754
SELECT DISTINCT - 21 DIV + - col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT - 21 / + - col2 FROM tab0 AS cor0
----
0
2

query I rowsort
SELECT ALL - + 55 AS col2 FROM tab0 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT - col0 + + 12 + - + col2 * col0 FROM tab2 AS cor0
----
-1092
-2612
-4413

query I rowsort
SELECT DISTINCT + ( + col0 ) * 40 + - 14 AS col1 FROM tab1 AS cor0
----
2026
3386
3626

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT ALL + COUNT( * ) * - ( - MIN( DISTINCT + col0 ) ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-9758
SELECT ALL + COUNT ( * ) * - ( - MIN ( DISTINCT + col0 ) ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT - ( - 78 ) + + 0 FROM tab1 cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT ALL - ( + CAST( 51 AS SIGNED ) ) * + + 58 FROM tab1
----
-2958
-2958
-2958

skipif mysql # not compatible
query I rowsort label-9760
SELECT ALL - ( + CAST ( 51 AS INTEGER ) ) * + + 58 FROM tab1
----
-2958
-2958
-2958

query II rowsort
SELECT DISTINCT + col1, 86 AS col0 FROM tab1 AS cor0
----
14
86
47
86
5
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT + ( + COUNT( * ) ) * - + 26 - 38 FROM tab2 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-9762
SELECT + ( + COUNT ( * ) ) * - + 26 - 38 FROM tab2 AS cor0
----
-116

query I rowsort
SELECT AVG ( + 25 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= 6
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9764
SELECT + CAST( NULL AS SIGNED ) + ( + ( + + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9764
SELECT + CAST ( NULL AS INTEGER ) + ( + ( + + col0 ) ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9765
SELECT + - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9765
SELECT + - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= + 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT SUM( ALL - - 15 ) FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-9768
SELECT SUM ( ALL - - 15 ) FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT DISTINCT + COUNT( * ) + + ( 77 ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9769
SELECT DISTINCT + COUNT ( * ) + + ( 77 ) FROM tab2 AS cor0
----
80

query II rowsort
SELECT ALL 90, ( - - col1 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
90
51
90
67
90
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 64 + - 20 col1 FROM tab0 AS cor0
----
44
44
44

query I rowsort
SELECT - 69 AS col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + - col1
----

query II rowsort
SELECT - 91 * + + 31, col0 AS col0 FROM tab2 AS cor0
----
-2821
46
-2821
64
-2821
75

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col2 * + col1
----

query I rowsort
SELECT ALL - ( col1 ) * 9 * - col0 + - col1 AS col2 FROM tab2
----
21063
44275
45158

onlyif mysql # aggregate syntax: 
query I rowsort label-9776
SELECT ALL ( MAX( - col2 ) ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-9776
SELECT ALL ( MAX ( - col2 ) ) FROM tab0
----
-10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9777
SELECT + col0 col1, 24 FROM tab2 WHERE - - CAST( NULL AS SIGNED ) * col0 NOT IN ( col1 / col1 - - 16 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9777
SELECT + col0 col1, 24 FROM tab2 WHERE - - CAST ( NULL AS INTEGER ) * col0 NOT IN ( col1 / col1 - - 16 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9778
SELECT col2 * - col1 * + + ( + + col2 ) / + ( CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9778
SELECT col2 * - col1 * + + ( + + col2 ) / + ( CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9779
SELECT + 30 DIV COUNT( * ) AS col0 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-9779
SELECT + 30 / COUNT ( * ) AS col0 FROM tab2
----
10

query I rowsort
SELECT 75 * - col2 FROM tab0
----
-3525
-7425
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-9781
SELECT DISTINCT - COUNT( * ) + AVG ( - - 85 ) AS col2 FROM tab1 WHERE NOT col1 * - 63 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT - COUNT ( * ) + AVG ( - - 85 ) AS col2 FROM tab1 WHERE NOT col1 * - 63 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 * + + col0 * + + 3 AS col0 FROM tab1
----
14688
15045
18564

query I rowsort
SELECT DISTINCT 49 + col2 * + - 21 + col1 FROM tab0
----
-140
-2029
-857

query I rowsort
SELECT DISTINCT - - col0 * - - col2 * - + col1 + + col0 AS col1 FROM tab0 AS cor0
----
-18183
-57090
-9506

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - col0
----

query I rowsort
SELECT ALL + 44 + 90 FROM tab2 AS cor0
----
134
134
134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9787
SELECT + COUNT( * ) FROM tab2 cor0 WHERE - col0 * - 23 + - CAST( NULL AS SIGNED ) + + col1 NOT BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9787
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE - col0 * - 23 + - CAST ( NULL AS INTEGER ) + + col1 NOT BETWEEN NULL AND col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9788
SELECT - COUNT( * ) + - + COUNT( * ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9788
SELECT - COUNT ( * ) + - + COUNT ( * ) FROM tab2 AS cor0
----
-6

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9790
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - 98 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9790
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - 98 >= NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 JOIN tab2 AS cor1 ON NULL <= NULL
----

query I rowsort
SELECT DISTINCT col1 - - + col2 + + col0 AS col0 FROM tab0
----
118
143
197

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9793
SELECT ALL + ( + col1 ) col0, + CAST( + col2 AS SIGNED ) FROM tab1 cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9793
SELECT ALL + ( + col1 ) col0, + CAST ( + col2 AS INTEGER ) FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9794
SELECT DISTINCT ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-9794
SELECT DISTINCT ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL <= + col2 * - col2
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <= - ( col0 ) + - 70
----

query I rowsort
SELECT ALL + + col0 * + ( + col2 ) AS col1 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT ( - 22 ) AS col1 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9798
SELECT + CAST( 80 AS SIGNED ) * 61 FROM tab1 AS cor0
----
4880
4880
4880

skipif mysql # not compatible
query I rowsort label-9798
SELECT + CAST ( 80 AS INTEGER ) * 61 FROM tab1 AS cor0
----
4880
4880
4880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 52, 60 col0 FROM tab2 cor0
----
-52
60
-52
60
-52
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9800
SELECT ALL CAST( NULL AS SIGNED ) * - + 92 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9800
SELECT ALL CAST ( NULL AS INTEGER ) * - + 92 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * + - 18 FROM tab1
----
-1530
-1638
-918

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - - 1 + - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT DISTINCT SUM( 49 ) col2 FROM tab1
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9803
SELECT DISTINCT SUM ( 49 ) col2 FROM tab1
----
147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9804
SELECT DISTINCT - CAST( + + COUNT( * ) AS SIGNED ) AS col0, 58 * - + 46 FROM tab1 cor0
----
-3
-2668

skipif mysql # not compatible
query II rowsort label-9804
SELECT DISTINCT - CAST ( + + COUNT ( * ) AS INTEGER ) AS col0, 58 * - + 46 FROM tab1 cor0
----
-3
-2668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9805
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * col2 = - + col0
----

skipif mysql # not compatible
query III rowsort label-9805
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * col2 = - + col0
----

query I rowsort
SELECT ALL 31 * 64 + col1 FROM tab1 AS cor0
----
1989
1998
2031

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 33 BETWEEN - + col0 AND ( col1 )
----
15
81
47

query I rowsort
SELECT - + ( + + col2 ) * + col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9810
SELECT DISTINCT COUNT( + 35 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9810
SELECT DISTINCT COUNT ( + 35 ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

query II rowsort
SELECT col2 AS col1, - 22 FROM tab1 AS cor0
----
59
-22
68
-22
96
-22

query I rowsort
SELECT DISTINCT + ( - - ( - col2 ) ) + col2 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-9813
SELECT + - MAX( - - col1 ) + - 1 col0, MIN( DISTINCT + 84 ) FROM tab1 AS cor0
----
-48
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9813
SELECT + - MAX ( - - col1 ) + - 1 col0, MIN ( DISTINCT + 84 ) FROM tab1 AS cor0
----
-48
84

query I rowsort
SELECT - col1 + + 6 + + 34 FROM tab0 AS cor0
----
-41
19
39

query I rowsort
SELECT ALL - 77 + + - 61 FROM tab1 cor0
----
-138
-138
-138

query I rowsort
SELECT + 6 + + - 73 FROM tab2
----
-67
-67
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT + + MAX( col2 ) AS col1 FROM tab2 WHERE - + col2 * - col2 * + 19 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-9817
SELECT + + MAX ( col2 ) AS col1 FROM tab2 WHERE - + col2 * - col2 * + 19 IS NOT NULL
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 * col2 + 50 + - - ( - + col0 ) * + 96 * col1 + - 39 col1 FROM tab0
----
-113903
-174801
-3559

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT + SUM( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9819
SELECT + SUM ( DISTINCT + col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT + 67 * - + 99 + + col1 AS col0 FROM tab1 cor0
----
-6586
-6619
-6628

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9821
SELECT DISTINCT + col1 FROM tab0 WHERE - CAST( NULL AS DECIMAL ) < + - col1 * + + col2
----

skipif mysql # not compatible
query I rowsort label-9821
SELECT DISTINCT + col1 FROM tab0 WHERE - CAST ( NULL AS REAL ) < + - col1 * + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + + + 31 * - ( col0 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9824
SELECT CAST( - - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9824
SELECT CAST ( - - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + ( - + 51 ) AND - col1
----

query I rowsort
SELECT + 63 * - 94 AS col2 FROM tab2 cor0
----
-5922
-5922
-5922

query I rowsort
SELECT ALL - + col1 * - 99 FROM tab1 AS cor0
----
1386
4653
495

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 74 col1 FROM tab1 AS cor0
----
74
74
74

query I rowsort
SELECT - col0 - + 73 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9830
SELECT - + 58 DIV + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-9830
SELECT - + 58 / + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * - ( - + col1 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT - - 47 AS col1 FROM tab2 WHERE NOT 40 - col0 IS NOT NULL
----

query II rowsort
SELECT col2, 72 * + 15 FROM tab2
----
23
1080
40
1080
58
1080

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9836
SELECT * FROM tab2 WHERE NOT + col1 + - 94 * col0 > + - col2 * - CAST( col2 AS SIGNED ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9836
SELECT * FROM tab2 WHERE NOT + col1 + - 94 * col0 > + - col2 * - CAST ( col2 AS INTEGER ) + + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 75, + col2 + - - col1 AS col2 FROM tab2
----
75
117
75
125
75
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT - MIN( - 99 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-9838
SELECT - MIN ( - 99 ) FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 0 col2 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 64 ) * - 61 col2 FROM tab2 AS cor0
----
3904
3904
3904

query I rowsort
SELECT ALL - col0 * + col1 * - 70 AS col0 FROM tab0 AS cor0
----
127890
6790
85050

query I rowsort
SELECT col2 * - col0 - - - col2 AS col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT ALL SUM( DISTINCT col1 ) * - 78 FROM tab2 AS cor0
----
-15210

skipif mysql # not compatible
query I rowsort label-9843
SELECT ALL SUM ( DISTINCT col1 ) * - 78 FROM tab2 AS cor0
----
-15210

query I rowsort
SELECT ALL 11 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query I rowsort
SELECT + 55 + col1 AS col2 FROM tab0 AS cor0
----
136
56
76

query I rowsort
SELECT ALL 32 + - col1 FROM tab1 cor0
----
-15
18
27

query I rowsort
SELECT - col0 * + 57 FROM tab2
----
-2622
-3648
-4275

query II rowsort
SELECT col1 AS col0, 49 * + col2 FROM tab1
----
14
4704
47
3332
5
2891

onlyif mysql # aggregate syntax: 
query I rowsort label-9849
SELECT 67 - COUNT( * ) col0 FROM tab2
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9849
SELECT 67 - COUNT ( * ) col0 FROM tab2
----
64

query II rowsort
SELECT ALL col0, - col1 * + col1 FROM tab1
----
51
-196
85
-25
91
-2209

onlyif mysql # DIV for integer division: 
query I rowsort label-9851
SELECT ALL - ( col2 ) + - 51 DIV + - 56 AS col0 FROM tab0 cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9851
SELECT ALL - ( col2 ) + - 51 / + - 56 AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT ALL col1 + + + 62 * 80 DIV - 34 + + 95 FROM tab2
----
1
17
27

skipif mysql # not compatible
query I rowsort label-9852
SELECT ALL col1 + + + 62 * 80 / - 34 + + 95 FROM tab2
----
1
17
27

onlyif mysql # aggregate syntax: 
query II rowsort label-9853
SELECT + COUNT( * ) AS col0, - 47 FROM tab2 WHERE + 54 * - col0 IS NOT NULL
----
3
-47

skipif mysql # not compatible
query II rowsort label-9853
SELECT + COUNT ( * ) AS col0, - 47 FROM tab2 WHERE + 54 * - col0 IS NOT NULL
----
3
-47

query II rowsort
SELECT + col0 * - + col2, col1 FROM tab0
----
-705
81
-870
21
-9603
1

query I rowsort
SELECT ALL - + 56 * col2 FROM tab1 cor0
----
-3304
-3808
-5376

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT + MIN( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9856
SELECT + MIN ( DISTINCT + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9857
SELECT - SUM( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9857
SELECT - SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= ( - 27 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * 10 + + + col0 * 77 col0, + 85 AS col1 FROM tab1 AS cor0
----
3417
85
5695
85
6097
85

query I rowsort
SELECT ALL + - ( + col0 ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE NOT NULL = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9862
SELECT ALL + ( + MIN( + + 23 ) ) FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-9862
SELECT ALL + ( + MIN ( + + 23 ) ) FROM tab0
----
23

query I rowsort
SELECT ALL + col1 * + ( + col1 ) * - + col2 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT DISTINCT - + 95 * - 6 + - ( + col0 ) AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - col0 * + col1 / 87 + - 29 FROM tab1 WHERE NOT NULL <> - + col2 * + col0 * + col1
----

query I rowsort
SELECT DISTINCT + 15 * col1 FROM tab2 AS cor0
----
1005
1155
765

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 IN ( + + 34, col1 - col1 + + 76, + + ( + 89 ), + 9 * - col0 )
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9868
SELECT CAST( NULL AS SIGNED ) + col1 * CAST( - 6 AS SIGNED ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT CAST ( NULL AS INTEGER ) + col1 * CAST ( - 6 AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col2 * 99 - + 47 - ( + 62 ) * - - col0 + + col1 + col0 - col0 + col2 FROM tab0 AS cor0
----
-15762
-5502
-6400

query I rowsort
SELECT + + 96 + + col1 FROM tab1 cor0
----
101
110
143

query I rowsort
SELECT col0 AS col1 FROM tab2 cor0 WHERE NOT + 17 IS NULL
----
46
64
75

query I rowsort
SELECT ALL col0 + - - col1 AS col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ( + col0 ) * + - col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-9874
SELECT ALL + MAX( - - col2 ) + + 18, ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-9874
SELECT ALL + MAX ( - - col2 ) + + 18, ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL
0

query I rowsort
SELECT DISTINCT + col2 + - col0 + 48 AS col1 FROM tab1
----
22
25
93

query II rowsort
SELECT ALL col0, + 62 + - col0 AS col0 FROM tab0
----
15
47
87
-25
97
-35

query I rowsort
SELECT DISTINCT ( - + col1 ) * - 95 FROM tab2
----
4845
6365
7315

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT 18 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT * FROM tab2 WHERE NULL < + 63
----

query I rowsort
SELECT + col2 + + 57 AS col2 FROM tab2 AS cor0
----
115
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT DISTINCT - - SUM( 20 ) + 97 col0 FROM tab2 AS cor0
----
157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9881
SELECT DISTINCT - - SUM ( 20 ) + 97 col0 FROM tab2 AS cor0
----
157

query I rowsort
SELECT - 76 * + ( + 66 ) + col0 FROM tab0 AS cor0
----
-4919
-4929
-5001

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9883
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - + 2 + + col2 * 45 * col2 * - CAST( col2 AS SIGNED ) + - - col0 + - ( + col2 ) + + 52 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-9883
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - + 2 + + col2 * 45 * col2 * - CAST ( col2 AS INTEGER ) + - - col0 + - ( + col2 ) + + 52 AS col0, col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT 41 + - col2 AS col0 FROM tab1 AS cor0
----
-18
-27
-55

query I rowsort
SELECT ALL col2 * - col1 + - col2 AS col0 FROM tab2 AS cor0
----
-1196
-3120
-3944

query I rowsort
SELECT col1 + col2 * - col1 * + + col2 FROM tab1 AS cor0
----
-129010
-17400
-217281

query I rowsort
SELECT DISTINCT - 73 + + col1 FROM tab0 AS cor0
----
-52
-72
8

query I rowsort
SELECT ALL 24 - + + col2 AS col0 FROM tab2 cor0
----
-16
-34
1

query I rowsort
SELECT ALL + col2 + + col0 * + col2 FROM tab2
----
1081
2600
4408

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + - col1 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT ALL MIN( DISTINCT + col2 ) * - - MIN( 69 ) AS col0 FROM tab0
----
690

skipif mysql # not compatible
query I rowsort label-9891
SELECT ALL MIN ( DISTINCT + col2 ) * - - MIN ( 69 ) AS col0 FROM tab0
----
690

onlyif mysql # aggregate syntax: 
query I rowsort label-9892
SELECT ALL COUNT( * ) - 51 AS col1 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-9892
SELECT ALL COUNT ( * ) - 51 AS col1 FROM tab0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9893
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND + col2 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9893
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND + col2 + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9894
SELECT ALL col1 DIV + - 3 FROM tab1 cor0
----
-1
-15
-4

skipif mysql # not compatible
query I rowsort label-9894
SELECT ALL col1 / + - 3 FROM tab1 cor0
----
-1
-15
-4

query II rowsort
SELECT + ( + col2 ), col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 19 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2 AS col2, + ( + col1 ) AS col2 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT col0, + ( col0 ) AS col0 FROM tab2
----
46
46
64
64
75
75

query I rowsort
SELECT - ( + 61 ) AS col0 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9900
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT 3 + + 18 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9900
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT 3 + + 18 IS NULL
----
-3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 0 < - col1 + - 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT + - ( - col1 ) <> + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9903
SELECT DISTINCT ( CAST( col0 AS SIGNED ) ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9903
SELECT DISTINCT ( CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1
----
51
85
91

query I rowsort
SELECT ALL col1 * + col2 * col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT ALL + COUNT( ALL ( + - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL + COUNT ( ALL ( + - col0 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9906
SELECT + + CAST( NULL AS SIGNED ) - ( + 4 ) * + col0 * - - col1 + + col0 FROM tab2 AS cor0 WHERE NOT 46 + + 3 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9906
SELECT + + CAST ( NULL AS INTEGER ) - ( + 4 ) * + col0 * - - col1 + + col0 FROM tab2 AS cor0 WHERE NOT 46 + + 3 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9907
SELECT DISTINCT 51 + - COUNT( * ) FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-9907
SELECT DISTINCT 51 + - COUNT ( * ) FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT + - 65 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT + - 65 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col1 = - 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9910
SELECT ALL CAST( NULL AS SIGNED ) * - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT ALL CAST ( NULL AS INTEGER ) * - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - COUNT( * ) + + ( - - COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9911
SELECT - COUNT ( * ) + + ( - - COUNT ( * ) ) FROM tab0
----
0

query I rowsort
SELECT - 7 * 64 + + col0 + + 79 * ( - col2 ) AS col1 FROM tab2
----
-2219
-3544
-4955

onlyif mysql # DIV for integer division: 
query I rowsort label-9913
SELECT + - col2 DIV col0 * - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
-3645
-97
0

skipif mysql # not compatible
query I rowsort label-9913
SELECT + - col2 / col0 * - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
-3645
-97
0

query I rowsort
SELECT DISTINCT + 14 + + 98 * + - 13 * - col2 * + col2 + - 77 FROM tab0 cor0
----
12486411
127337
2814203

query I rowsort
SELECT DISTINCT - 74 + col1 AS col0 FROM tab2 cor0
----
-23
-7
3

query I rowsort
SELECT ALL col1 + - - col1 AS col2 FROM tab2 AS cor0
----
102
134
154

query I rowsort
SELECT ALL col2 + - + col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT col0 * 96 * col2 FROM tab1 AS cor0
----
470016
481440
594048

query I rowsort
SELECT ALL col1 * 85 - + + col0 AS col0 FROM tab2
----
4289
5620
6481

onlyif mysql # DIV for integer division: 
query II rowsort label-9920
SELECT DISTINCT 64 + - col0 + - - 73 DIV - col2, + ( - + col0 ) + col1 AS col0 FROM tab0
----
-30
-66
-33
-96
48
66

skipif mysql # not compatible
query II rowsort label-9920
SELECT DISTINCT 64 + - col0 + - - 73 / - col2, + ( - + col0 ) + col1 AS col0 FROM tab0
----
-30
-66
-33
-96
48
66

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT DISTINCT + 66 DIV + COUNT( * ) AS col1 FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT + 66 / + COUNT ( * ) AS col1 FROM tab0
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9922
SELECT CAST( COUNT( + col1 ) AS SIGNED ) + 0 AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9922
SELECT CAST ( COUNT ( + col1 ) AS INTEGER ) + 0 AS col0 FROM tab0
----
3

query II rowsort
SELECT + col0, col2 * - - ( - 29 ) + - col0 * + col1 FROM tab2 AS cor0
----
46
-3013
64
-6088
75
-6707

onlyif mysql # aggregate syntax: 
query I rowsort label-9924
SELECT - - SUM( - col1 ) * - COUNT( * ) FROM tab0 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-9924
SELECT - - SUM ( - col1 ) * - COUNT ( * ) FROM tab0 AS cor0
----
309

query I rowsort
SELECT DISTINCT + 41 * - 68 FROM tab1 AS cor0
----
-2788

onlyif mysql # DIV for integer division: 
query I rowsort label-9926
SELECT - 38 DIV + + 81 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9926
SELECT - 38 / + + 81 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + 77, col0, + - col2 - col1 + - col2 / + 65, - ( - + col2 ), - - 17, col0, - + 28 * 40 * col0 * 47, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9928
SELECT ALL - MAX( + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-77

skipif mysql # not compatible
query I rowsort label-9928
SELECT ALL - MAX ( + col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-77

query I rowsort
SELECT 8 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT 49 - - col1 IS NOT NULL
----

query I rowsort
SELECT - 77 * 85 * + - col0 FROM tab0 AS cor0
----
569415
634865
98175

query I rowsort
SELECT DISTINCT 54 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN - ( + + col1 ) AND + col2
----

query I rowsort
SELECT ALL - - ( + col2 ) * 8 FROM tab0 AS cor0
----
376
792
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT ALL + SUM( col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9933
SELECT ALL + SUM ( col0 ) FROM tab2
----
185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <> + col2 * - col1 * ( + + 19 ) + + col2 + col0
----

query I rowsort
SELECT - col1 * + col0 - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1230
-1914
-194

query I rowsort
SELECT - + AVG ( + col1 ) AS col2 FROM tab0 WHERE + 90 * + col0 IS NULL
----
NULL

query I rowsort
SELECT ALL col1 * 16 AS col0 FROM tab2
----
1072
1232
816

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT + + COUNT( col1 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9938
SELECT + + COUNT ( col1 ) AS col1 FROM tab0 cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL = + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9940
SELECT ALL - col1 * - + 18 + - col0 DIV + col0 AS col0 FROM tab2 AS cor0
----
1205
1385
917

skipif mysql # not compatible
query I rowsort label-9940
SELECT ALL - col1 * - + 18 + - col0 / + col0 AS col0 FROM tab2 AS cor0
----
1205
1385
917

onlyif mysql # DIV for integer division: 
query III rowsort label-9941
SELECT DISTINCT + col0 * - col1 * col0 + + col1 DIV - col0 + - 17 AS col2, - col0 - - col1 * 48, + + col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 83a103d68e739d5e04f4681cd00556d8

skipif mysql # not compatible
query III rowsort label-9941
SELECT DISTINCT + col0 * - col1 * col0 + + col1 / - col0 + - 17 AS col2, - col0 - - col1 * 48, + + col2 AS col1 FROM tab1 AS cor0
----
9 values hashing to 83a103d68e739d5e04f4681cd00556d8

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT + ( + MIN( - ( - ( 2 ) ) ) ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9942
SELECT + ( + MIN ( - ( - ( 2 ) ) ) ) AS col1 FROM tab2 AS cor0
----
2

query III rowsort
SELECT * FROM tab2 WHERE - col0 IN ( - 19 * 27 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + ( - ( 64 ) ) * 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9945
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9945
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL <= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) < + 54
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT col2 DIV - 52 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9947
SELECT col2 / - 52 AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9948
SELECT COUNT( * ) DIV + 27 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9948
SELECT COUNT ( * ) / + 27 AS col0 FROM tab2
----
0

query I rowsort
SELECT + 18 * - col2 AS col0 FROM tab1
----
-1062
-1224
-1728

query I rowsort
SELECT DISTINCT + 34 + 89 AS col1 FROM tab2
----
123

onlyif mysql # aggregate syntax: 
query I rowsort label-9951
SELECT DISTINCT COUNT( ALL + col1 ) + 61 AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-9951
SELECT DISTINCT COUNT ( ALL + col1 ) + 61 AS col2 FROM tab2
----
64

query I rowsort
SELECT col2 * + col0 + - 0 FROM tab2 WHERE + 17 <> 68 * + col2
----
1058
2560
4350

query I rowsort
SELECT + ( ( col1 ) ) * col2 FROM tab0
----
210
3807
99

query III rowsort
SELECT * FROM tab1 WHERE - col2 * col2 < col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT ALL COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 WHERE ( 35 / col2 ) >= 4
----
0

skipif mysql # not compatible
query I rowsort label-9955
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 WHERE ( 35 / col2 ) >= 4
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9956
SELECT DISTINCT COUNT( * ) * 55 FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-9956
SELECT DISTINCT COUNT ( * ) * 55 FROM tab0
----
165

query I rowsort
SELECT ALL ( - col2 ) * 76 AS col1 FROM tab0
----
-3572
-7524
-760

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 NOT BETWEEN ( - col1 * col0 ) AND ( col2 * - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 * + col1 col0 FROM tab1
----
282
30
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT COUNT( * ) + 89 col1 FROM tab0
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9960
SELECT COUNT ( * ) + 89 col1 FROM tab0
----
92

query I rowsort
SELECT col0 * 59 AS col0 FROM tab0
----
5133
5723
885

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + ( - col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9963
SELECT DISTINCT + col1 DIV - col2 AS col1 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9963
SELECT DISTINCT + col1 / - col2 AS col1 FROM tab0
----
-1
-2
0

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN 47 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9965
SELECT DISTINCT - col0 DIV 9 FROM tab0
----
-1
-10
-9

skipif mysql # not compatible
query I rowsort label-9965
SELECT DISTINCT - col0 / 9 FROM tab0
----
-1
-10
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 3 IS NOT NULL
----

query I rowsort
SELECT - col2 + + 44 AS col1 FROM tab0
----
-3
-55
34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9968
SELECT DISTINCT + 54 DIV COUNT( * ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + 54 / COUNT ( * ) FROM tab0
----
18

query I rowsort
SELECT col0 + col2 * 61 FROM tab2
----
1449
2504
3613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9970
SELECT - CAST( 52 AS SIGNED ) AS col1 FROM tab0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-9970
SELECT - CAST ( 52 AS INTEGER ) AS col1 FROM tab0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9971
SELECT - 57 + - SUM( DISTINCT col2 + 79 * + col1 ) FROM tab0
----
-8350

skipif mysql # not compatible
query I rowsort label-9971
SELECT - 57 + - SUM ( DISTINCT col2 + 79 * + col1 ) FROM tab0
----
-8350

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( ( 14 ) )
----

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + col0 * - 24 AS col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT DISTINCT - COUNT( * ) * MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9975
SELECT DISTINCT - COUNT ( * ) * MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-297

query I rowsort
SELECT DISTINCT - col2 * 90 AS col1 FROM tab1
----
-5310
-6120
-8640

query I rowsort
SELECT 47 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT DISTINCT 92 * + col0 FROM tab2
----
4232
5888
6900

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 89 = + 48
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9980
SELECT ALL MAX( DISTINCT CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9980
SELECT ALL MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - col2 * col0 + - 69 * col1 FROM tab1 AS cor0
----
-5360
-5862
-9431

onlyif mysql # aggregate syntax: 
query I rowsort label-9982
SELECT SUM( ALL + col0 ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-9982
SELECT SUM ( ALL + col0 ) FROM tab0 cor0
----
199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9983
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + CAST( + col2 AS SIGNED ) FROM tab0 AS cor0 WHERE ( - 3 / + 59 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-9983
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0 WHERE ( - 3 / + 59 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9984
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9984
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9985
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE + col1 * 86 BETWEEN - col2 AND ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-9985
SELECT DISTINCT + col0 AS col0 FROM tab2 AS cor0 WHERE + col1 * 86 BETWEEN - col2 AND ( + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + - col0 IS NOT NULL
----

query I rowsort
SELECT + 17 FROM tab0 cor0 WHERE NOT 92 / + col1 IS NULL
----
17
17
17

query I rowsort
SELECT DISTINCT col1 + - 76 AS col1 FROM tab1 cor0
----
-29
-62
-71

query I rowsort
SELECT DISTINCT + ( + + ( ( + col1 ) ) ) AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT - 66 * col0 AS col2 FROM tab1
----
-3366
-5610
-6006

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9991
SELECT ALL CAST( - + 59 AS SIGNED ) AS col0 FROM tab2
----
-59
-59
-59

skipif mysql # not compatible
query I rowsort label-9991
SELECT ALL CAST ( - + 59 AS INTEGER ) AS col0 FROM tab2
----
-59
-59
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9992
SELECT + col2 * - + col1 DIV col1 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-9992
SELECT + col2 * - + col1 / col1 FROM tab2
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab0 WHERE NULL >= ( - 53 + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + 30 * + - COUNT( * ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9995
SELECT + 30 * + - COUNT ( * ) FROM tab1
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT + - MAX( + - 76 ) FROM tab2 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + - MAX ( + - 76 ) FROM tab2 AS cor0
----
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT DISTINCT - col0 + CAST( NULL AS SIGNED ) - 1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9997
SELECT DISTINCT - col0 + CAST ( NULL AS INTEGER ) - 1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9998
SELECT - COUNT( * ) * 75 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 + - col2 ) AND NOT ( ( 18 ) ) IN ( col2 / - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9998
SELECT - COUNT ( * ) * 75 FROM tab1 AS cor0 WHERE NOT NULL IN ( col2 + - col2 ) AND NOT ( ( 18 ) ) IN ( col2 / - col2 )
----
0

query I rowsort
SELECT col0 + + + col0 AS col2 FROM tab1
----
102
170
182

