sqllogictest
Artifact Content
Not logged in

Artifact 39c094e1eecc782ce9837a98bc256ac0de995a73:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-0
SELECT ALL COUNT( * ) * + - 21 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-0
SELECT ALL COUNT ( * ) * + - 21 FROM tab0
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1
SELECT ALL - 3 AS col1, - 71 + CAST( NULL AS SIGNED ) col0 FROM tab2
----
-3
NULL
-3
NULL
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1
SELECT ALL - 3 AS col1, - 71 + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
-3
NULL
-3
NULL
-3
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6
SELECT DISTINCT COUNT( + col2 ), - MIN( DISTINCT - 14 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6
SELECT DISTINCT COUNT ( + col2 ), - MIN ( DISTINCT - 14 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

query I rowsort
SELECT ALL + 2 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT ALL - 8 + + ( + - col2 ) FROM tab2
----
-31
-48
-66

query I rowsort
SELECT DISTINCT - 87 + - col2 AS col2 FROM tab2 WHERE NOT NULL > - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-10
SELECT 65 DIV - col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-10
SELECT 65 / - col0 FROM tab1 AS cor0
----
-1
0
0

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

query I rowsort
SELECT ALL col1 + - - col1 AS col1 FROM tab0 AS cor0
----
162
2
42

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

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

query II rowsort
SELECT DISTINCT - col0 AS col2, + col1 * + col1 FROM tab1 AS cor0
----
-51
196
-85
25
-91
2209

query I rowsort
SELECT ALL - col2 + 27 AS col1 FROM tab1 AS cor0
----
-32
-41
-69

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 < - 30 / + + col0 + + - 43
----

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT DISTINCT col2 DIV + + ( col1 ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-17
SELECT DISTINCT col2 / + + ( col1 ) col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
1
11
6

query I rowsort
SELECT ALL - - 91 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

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

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

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

query I rowsort
SELECT ALL - 8 * - - col0 FROM tab0 AS cor0
----
-120
-696
-776

query I rowsort
SELECT - 86 * + 31 FROM tab1 AS cor0
----
-2666
-2666
-2666

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-27
SELECT ALL + CAST( + 31 AS SIGNED ) FROM tab0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-27
SELECT ALL + CAST ( + 31 AS INTEGER ) FROM tab0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT ALL - SUM( + 30 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-29
SELECT ALL - SUM ( + 30 ) FROM tab1
----
-90

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT - col1 - + - col1 NOT BETWEEN + 68 / + col1 + + col0 AND col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 84 ) + + 5 col1 FROM tab2 cor0
----
-79

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

skipif mysql # not compatible
query I rowsort label-32
SELECT - COUNT ( * ) / + + 90 / + - COUNT ( * ) FROM tab2
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 50 * - col1 + col2, + col0 col0 FROM tab0 AS cor0
----
-1040
87
-4003
15
49
97

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT - COUNT( * ) AS col0 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-35
SELECT - COUNT ( * ) AS col0 FROM tab0, tab2 AS cor0
----
-9

query I rowsort
SELECT ALL + ( + - 95 ) AS col0 FROM tab0
----
-95
-95
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-37
SELECT DISTINCT - 51 - - - 56 DIV + col0 FROM tab0
----
-51
-54

skipif mysql # not compatible
query I rowsort label-37
SELECT DISTINCT - 51 - - - 56 / + col0 FROM tab0
----
-51
-54

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT DISTINCT 40 * - COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
-360

skipif mysql # not compatible
query I rowsort label-39
SELECT DISTINCT 40 * - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
-360

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-40
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - + col1 / + 63 = CAST( - + col0 AS DECIMAL ) + + col1 - - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-40
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 93 * - + col1 / + 63 = CAST ( - + col0 AS REAL ) + + col1 - - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT - ( - col0 ) * - col2 - + col1 + - - 14 FROM tab0 AS cor0
----
-772
-877
-9590

query I rowsort
SELECT 13 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

query I rowsort
SELECT DISTINCT + col1 * + 76 AS col0 FROM tab1 cor0
----
1064
3572
380

onlyif mysql # DIV for integer division: 
query II rowsort label-45
SELECT ALL - col0 DIV 84, col0 AS col1 FROM tab0 AS cor0
----
-1
87
-1
97
0
15

skipif mysql # not compatible
query II rowsort label-45
SELECT ALL - col0 / 84, col0 AS col1 FROM tab0 AS cor0
----
-1
87
-1
97
0
15

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

query I rowsort
SELECT ( - ( - - col0 ) ) * - col0 AS col0 FROM tab1 cor0
----
2601
7225
8281

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 54 IS NOT NULL
----

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

query I rowsort
SELECT - 58 * col2 + + col1 AS col1 FROM tab0 AS cor0
----
-2645
-559
-5741

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT + col1 DIV 37 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-53
SELECT + col1 / 37 FROM tab1 AS cor0
----
0
0
1

query II rowsort
SELECT DISTINCT + + col0 + col0 AS col1, 69 AS col0 FROM tab1 AS cor0
----
102
69
170
69
182
69

query I rowsort
SELECT ALL col1 + - + 99 FROM tab0 AS cor0
----
-18
-78
-98

query II rowsort
SELECT col0 * + - col2 - col1 AS col1, + 1 AS col0 FROM tab1
----
-4910
1
-5020
1
-6235
1

query III rowsort
SELECT * FROM tab2 WHERE 84 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT col1 + - 47 + + - col0 DIV + - col2 AS col1 FROM tab2
----
21
31
6

skipif mysql # not compatible
query I rowsort label-60
SELECT col1 + - 47 + + - col0 / + - col2 AS col1 FROM tab2
----
21
31
6

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

query I rowsort
SELECT DISTINCT 27 FROM tab2 WHERE NOT NULL NOT IN ( ( col0 ), 70 + - + 46 + - 97, + 10 )
----

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

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

query I rowsort
SELECT - 0 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-65
SELECT col1 DIV 51 + + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-65
SELECT col1 / 51 + + + col2 FROM tab1 AS cor0
----
59
68
96

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

query I rowsort
SELECT + col2 + - col1 AS col0 FROM tab0 WHERE NOT + 96 + - col2 * + col2 BETWEEN NULL AND - 69
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL ( - - COUNT( + + col2 ) ) * + - SUM( - + 42 ) FROM tab1
----
378

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL ( - - COUNT ( + + col2 ) ) * + - SUM ( - + 42 ) FROM tab1
----
378

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-69
SELECT DISTINCT 77 * - CAST( - 15 AS SIGNED ) * CAST( - - col2 AS SIGNED ) FROM tab0
----
114345
11550
54285

skipif mysql # not compatible
query I rowsort label-69
SELECT DISTINCT 77 * - CAST ( - 15 AS INTEGER ) * CAST ( - - col2 AS INTEGER ) FROM tab0
----
114345
11550
54285

query I rowsort
SELECT - - 13 * ( 18 ) FROM tab1 AS cor0
----
234
234
234

query II rowsort
SELECT ALL - col2 AS col2, 93 AS col0 FROM tab1 AS cor0
----
-59
93
-68
93
-96
93

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

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT ALL + - SUM( DISTINCT 32 ) col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-73
SELECT ALL + - SUM ( DISTINCT 32 ) col0 FROM tab1 AS cor0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-74
SELECT DISTINCT - COUNT( DISTINCT + - 7 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-74
SELECT DISTINCT - COUNT ( DISTINCT + - 7 ) AS col0 FROM tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col2, + col0 col2 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 + - 57 col1 FROM tab2, tab2 AS cor0
----
-21

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

query I rowsort
SELECT 5 + + col0 * - col1 AS col0 FROM tab1
----
-420
-4272
-709

onlyif mysql # DIV for integer division: 
query II rowsort label-79
SELECT ALL - 42 DIV + - col2, - col0 AS col2 FROM tab2
----
0
-75
1
-46
1
-64

skipif mysql # not compatible
query II rowsort label-79
SELECT ALL - 42 / + - col2, - col0 AS col2 FROM tab2
----
0
-75
1
-46
1
-64

query II rowsort
SELECT + col0 + + col2 AS col2, - ( - + col0 ) AS col2 FROM tab1
----
144
85
147
51
159
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-81
SELECT ALL - col0 + + col0 + - 65 * + - CAST( col0 AS SIGNED ) FROM tab0
----
5655
6305
975

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL - col0 + + col0 + - 65 * + - CAST ( col0 AS INTEGER ) FROM tab0
----
5655
6305
975

onlyif mysql # aggregate syntax: 
query I rowsort label-82
SELECT MIN( + col2 ) * + 18 + - + 84 FROM tab2
----
330

skipif mysql # not compatible
query I rowsort label-82
SELECT MIN ( + col2 ) * + 18 + - + 84 FROM tab2
----
330

query I rowsort
SELECT DISTINCT 41 * - + col2 FROM tab1
----
-2419
-2788
-3936

query I rowsort
SELECT ALL - - 88 + 97 AS col1 FROM tab2 AS cor0
----
185
185
185

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-86
SELECT ALL 37, - CAST( - col0 AS SIGNED ) - col2 + - col1 AS col2 FROM tab0
----
37
-113
37
-3
37
56

skipif mysql # not compatible
query II rowsort label-86
SELECT ALL 37, - CAST ( - col0 AS INTEGER ) - col2 + - col1 AS col2 FROM tab0
----
37
-113
37
-3
37
56

query I rowsort
SELECT ALL + ( + col0 ) + - + col0 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <> - col0 + + + 11 + 76
----

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

query I rowsort
SELECT ALL + - col1 + - + 63 + ( - col0 ) FROM tab0 AS cor0
----
-159
-161
-171

query I rowsort
SELECT ALL + + col1 FROM tab0 AS cor0 WHERE col1 + 63 / - 34 NOT BETWEEN + col0 AND col2
----
1
21
81

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

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

query I rowsort
SELECT DISTINCT + - col1 + + - col2 * col0 AS col2 FROM tab2 AS cor0
----
-1109
-2637
-4417

query III rowsort
SELECT * FROM tab0 WHERE + 51 + + - col1 / col1 > - - col1
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT col2 * + + col2 - + col1 + + col2 AS col1 FROM tab2
----
1563
3355
501

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

query I rowsort
SELECT 45 * col0 AS col1 FROM tab2
----
2070
2880
3375

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

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

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

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

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

query II rowsort
SELECT + 80 AS col0, 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to b0cb110b746f4d3620ada02ec3f7f229

query I rowsort
SELECT ( - 43 ) FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to ab0c314d2b589ccedb9a875beeb1f86a

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

onlyif mysql # aggregate syntax: 
query III rowsort label-104
SELECT DISTINCT - - 19 AS col1, SUM( col1 ) AS col1, - - COUNT( * ) FROM tab0 AS cor0
----
19
103
3

skipif mysql # not compatible
query III rowsort label-104
SELECT DISTINCT - - 19 AS col1, SUM ( col1 ) AS col1, - - COUNT ( * ) FROM tab0 AS cor0
----
19
103
3

onlyif mysql # aggregate syntax: 
query I rowsort label-105
SELECT MAX( - - 45 ) col1 FROM tab1 AS cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-105
SELECT MAX ( - - 45 ) col1 FROM tab1 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL COUNT( * ) * - 86 AS col1 FROM tab2
----
-258

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL COUNT ( * ) * - 86 AS col1 FROM tab2
----
-258

onlyif mysql # DIV for integer division: 
query I rowsort label-108
SELECT DISTINCT - 81 DIV + - ( - - 89 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-108
SELECT DISTINCT - 81 / + - ( - - 89 ) col1 FROM tab2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-110
SELECT ALL SUM( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) >= NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL SUM ( DISTINCT + 48 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT ( col0 ) >= NULL ) )
----
NULL

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

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

query I rowsort
SELECT + col1 * + 36 * + col1 AS col1 FROM tab2 AS cor0
----
161604
213444
93636

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-114
SELECT DISTINCT + 49 + + - COUNT( * ) AS col1, - COUNT( * ) col2 FROM tab1 AS cor0
----
46
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-114
SELECT DISTINCT + 49 + + - COUNT ( * ) AS col1, - COUNT ( * ) col2 FROM tab1 AS cor0
----
46
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT 4 - COUNT( 3 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-115
SELECT 4 - COUNT ( 3 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT 6 * col1 + + col2 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
174
231
441

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-117
SELECT DISTINCT + CAST( NULL AS SIGNED ) / + COUNT( CAST( - + ( + + col1 ) AS SIGNED ) ) - + + 23 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-117
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / + COUNT ( CAST ( - + ( + + col1 ) AS INTEGER ) ) - + + 23 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-118
SELECT ALL * FROM tab0 WHERE NULL > + CAST( - - col1 AS SIGNED ) - - col1 + col1 / - 91 / 63
----

skipif mysql # not compatible
query III rowsort label-118
SELECT ALL * FROM tab0 WHERE NULL > + CAST ( - - col1 AS INTEGER ) - - col1 + col1 / - 91 / 63
----

query I rowsort
SELECT col1 * - col2 * - col1 AS col1 FROM tab0
----
308367
4410
99

query I rowsort
SELECT ALL + 88 AS col1 FROM tab2
----
88
88
88

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

query II rowsort
SELECT + col1, + col1 * + 19 FROM tab1
----
14
266
47
893
5
95

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT 1 + COUNT( ALL + col0 ) col1 FROM tab1
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-127
SELECT 1 + COUNT ( ALL + col0 ) col1 FROM tab1
----
4

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col0 + - col0 * - 55 col0 FROM tab1
----
2091
4250
728

query I rowsort
SELECT DISTINCT 61 * col1 + - col2 AS col2 FROM tab0
----
-38
1271
4894

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-134
SELECT DISTINCT col2 - - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-134
SELECT DISTINCT col2 - - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-135
SELECT ALL ( + COUNT ( * ) ) col0 FROM tab0 WHERE NULL < NULL
----
0

query I rowsort
SELECT ALL + col2 / - col2 FROM tab0 WHERE col1 IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-138
SELECT DISTINCT COUNT( ALL 60 ) DIV COUNT( * ) - COUNT( * ) FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-138
SELECT DISTINCT COUNT ( ALL 60 ) / COUNT ( * ) - COUNT ( * ) FROM tab0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-139
SELECT DISTINCT COUNT( * ) AS col2 FROM tab1 WHERE 51 + col1 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-139
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab1 WHERE 51 + col1 <= ( NULL )
----
0

query I rowsort
SELECT ALL + ( col1 ) FROM tab1 WHERE ( + col0 ) IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-142
SELECT CAST( NULL AS DECIMAL ) - + CAST( NULL AS SIGNED ) * 7 FROM tab2 WHERE + col2 BETWEEN NULL AND col1
----

skipif mysql # not compatible
query I rowsort label-142
SELECT CAST ( NULL AS REAL ) - + CAST ( NULL AS INTEGER ) * 7 FROM tab2 WHERE + col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col0 * + 62 AS col0 FROM tab0
----
5394
6014
930

query I rowsort
SELECT DISTINCT 37 * col2 FROM tab0
----
1739
3663
370

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

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

query I rowsort
SELECT ALL + col2 + 27 FROM tab2 AS cor0
----
50
67
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-147
SELECT ALL - 68 DIV + ( COUNT( ALL + 60 ) ) + 70 AS col0 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-147
SELECT ALL - 68 / + ( COUNT ( ALL + 60 ) ) + 70 AS col0 FROM tab0 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-148
SELECT ALL COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 < ( 33 - 47 )
----
0

skipif mysql # not compatible
query I rowsort label-148
SELECT ALL COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 < ( 33 - 47 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-149
SELECT col0 DIV col1 - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-149
SELECT col0 / col1 - + col0 AS col2 FROM tab2 AS cor0
----
-46
-64
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT COUNT( * ) + + 94 FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-150
SELECT COUNT ( * ) + + 94 FROM tab2
----
97

query I rowsort
SELECT DISTINCT col1 * 57 FROM tab1 AS cor0
----
2679
285
798

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NULL <> + 94
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT ALL - + col2 DIV + 2 FROM tab2 cor0
----
-11
-20
-29

skipif mysql # not compatible
query I rowsort label-154
SELECT ALL - + col2 / + 2 FROM tab2 cor0
----
-11
-20
-29

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

query I rowsort
SELECT + 72 * col1 AS col2 FROM tab1 AS cor0
----
1008
3384
360

query I rowsort
SELECT DISTINCT + col1 * - col2 * col0 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT col0 * - col1 + + 82 FROM tab0 WHERE NOT ( col2 - col2 ) IS NULL
----
-1133
-15
-1745

onlyif mysql # aggregate syntax: 
query I rowsort label-159
SELECT ALL - SUM( DISTINCT + + col1 ) * COUNT( * ) col2 FROM tab1
----
-198

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-160
SELECT ALL - 13 * - - CAST( col2 AS SIGNED ) col0 FROM tab0
----
-1287
-130
-611

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-160
SELECT ALL - 13 * - - CAST ( col2 AS INTEGER ) col0 FROM tab0
----
-1287
-130
-611

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

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

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

query I rowsort
SELECT 21 FROM tab1 WHERE NOT + 12 NOT BETWEEN + col1 AND ( col2 * + col2 )
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT - - 40 * COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT - - 40 * COUNT ( * ) FROM tab1 AS cor0
----
120

onlyif mysql # DIV for integer division: 
query I rowsort label-165
SELECT ALL - 47 DIV col2 AS col1 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-165
SELECT ALL - 47 / col2 AS col1 FROM tab0 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-166
SELECT ALL - - ( + 2 ) DIV SUM( - ( + col2 ) * 51 ) col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-166
SELECT ALL - - ( + 2 ) / SUM ( - ( + col2 ) * 51 ) col1 FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query I rowsort label-167
SELECT DISTINCT - 16 + 9 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( ( CAST ( - col0 AS INTEGER ) ) )
----

query I rowsort
SELECT ALL - 10 + 25 FROM tab1 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-169
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 79 / CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2 * - 63 + + col1
----

skipif mysql # not compatible
query III rowsort label-169
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 79 / CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2 * - 63 + + col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-171
SELECT DISTINCT * FROM tab2 WHERE - 1 * - col2 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-171
SELECT DISTINCT * FROM tab2 WHERE - 1 * - col2 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-172
SELECT ALL + col2 DIV col0 + - col1 * + col0 FROM tab0
----
-1212
-1827
-96

skipif mysql # not compatible
query I rowsort label-172
SELECT ALL + col2 / col0 + - col1 * + col0 FROM tab0
----
-1212
-1827
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < + 0 - + col0
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 - + col1 > 72
----

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

query I rowsort
SELECT ALL - + col2 * col2 + 60 + col2 * 4 * - col1 AS col1 FROM tab1 AS cor0
----
-14532
-17348
-4601

query I rowsort
SELECT 75 AS col2 FROM tab2 cor0
----
75
75
75

query II rowsort
SELECT + + col1, 35 AS col0 FROM tab1 AS cor0
----
14
35
47
35
5
35

onlyif mysql # DIV for integer division: 
query I rowsort label-180
SELECT - - col2 DIV col0 + + col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-180
SELECT - - col2 / col0 + + col2 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-181
SELECT DISTINCT - col0 * + col2 + - CAST( + 29 AS SIGNED ) FROM tab0 AS cor0
----
-734
-899
-9632

skipif mysql # not compatible
query I rowsort label-181
SELECT DISTINCT - col0 * + col2 + - CAST ( + 29 AS INTEGER ) FROM tab0 AS cor0
----
-734
-899
-9632

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-183
SELECT * FROM tab1 WHERE 84 >= ( - + CAST( - 98 AS SIGNED ) * - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-183
SELECT * FROM tab1 WHERE 84 >= ( - + CAST ( - 98 AS INTEGER ) * - 59 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-184
SELECT ALL * FROM tab0 WHERE NOT ( 23 ) BETWEEN CAST( NULL AS SIGNED ) AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-184
SELECT ALL * FROM tab0 WHERE NOT ( 23 ) BETWEEN CAST ( NULL AS INTEGER ) AND ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + 52 IS NULL AND - 32 NOT BETWEEN 99 + col0 AND NULL
----

query I rowsort
SELECT + 51 + + 80 * - - col1 AS col1 FROM tab0
----
131
1731
6531

query I rowsort
SELECT - ( - + col1 ) + - ( + - col0 ) - + 59 AS col2 FROM tab0 AS cor0
----
37
39
49

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

query I rowsort
SELECT - 9 + 63 AS col1 FROM tab0 AS cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - col0 + + 5 FROM tab2 AS cor0
----
-41
-59
-70

query I rowsort
SELECT ALL - + col0 + + col1 * + 48 AS col2 FROM tab1 AS cor0
----
155
2165
621

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE NOT + 27 IS NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT + col2 * - col2 FROM tab1 WHERE NOT - col1 IS NULL
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT MAX( DISTINCT + 45 ) - + 80 FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-194
SELECT MAX ( DISTINCT + 45 ) - + 80 FROM tab2
----
-35

query I rowsort
SELECT - + col1 * + col2 - col2 + - col2 FROM tab2 AS cor0
----
-1219
-3160
-4002

query II rowsort
SELECT 13 AS col0, - 48 FROM tab2 AS cor0
----
13
-48
13
-48
13
-48

query II rowsort
SELECT + 98 AS col1, - 10 + col1 FROM tab2 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-198
SELECT + col1 DIV - CAST( - - 41 AS SIGNED ) AS col0, + col2 * + CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
-1
NULL
0
NULL
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-198
SELECT + col1 / - CAST ( - - 41 AS INTEGER ) AS col0, + col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
-1
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-199
SELECT ALL + 24 DIV SUM( - col0 ) FROM tab0 AS cor0
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT ( - + 33 ) DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-200
SELECT ( - + 33 ) / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

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

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

query I rowsort
SELECT - 40 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT 62 * - col1 IS NULL
----
24
35
6

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 = + col2
----

query I rowsort
SELECT + 23 * + col2 AS col1 FROM tab0
----
1081
2277
230

query I rowsort
SELECT + 24 * + col2 AS col2 FROM tab2
----
1392
552
960

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE NOT ( - col1 ) < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 16 + 83 col0 FROM tab0, tab0 AS cor0
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT DISTINCT + MAX( + 44 ) * + + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
132

skipif mysql # not compatible
query I rowsort label-211
SELECT DISTINCT + MAX ( + 44 ) * + + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
132

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

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

skipif mysql # not compatible
query I rowsort label-213
SELECT ( - - COUNT ( DISTINCT - - col1 ) ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-214
SELECT ALL + + 74 DIV - + col1 FROM tab1 AS cor0
----
-1
-14
-5

skipif mysql # not compatible
query I rowsort label-214
SELECT ALL + + 74 / - + col1 FROM tab1 AS cor0
----
-1
-14
-5

query II rowsort
SELECT DISTINCT - 19 AS col1, col2 AS col0 FROM tab1 AS cor0
----
-19
59
-19
68
-19
96

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

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT + + 15 + 7 DIV - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

skipif mysql # not compatible
query I rowsort label-217
SELECT + + 15 + 7 / - 41 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query I rowsort
SELECT 8 * col0 FROM tab0
----
120
696
776

onlyif mysql # DIV for integer division: 
query I rowsort label-219
SELECT ALL + col0 * col0 + col2 DIV - 69 AS col2 FROM tab0 AS cor0
----
225
7569
9408

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL + col0 * col0 + col2 / - 69 AS col2 FROM tab0 AS cor0
----
225
7569
9408

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + - col2 col2 FROM tab1 cor0
----
-21
-54
-82

query I rowsort
SELECT - + 94 * - 91 + - - 28 FROM tab2 AS cor0
----
8582
8582
8582

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-222
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 * + + 92 * + col0 * + 38 / + col2 * + 68 * CAST( - 70 AS SIGNED ) + - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-222
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 86 * + + 92 * + col0 * + 38 / + col2 * + 68 * CAST ( - 70 AS INTEGER ) + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 + - col2 col1 FROM tab2 AS cor0
----
-119
-136
-154

query I rowsort
SELECT ALL - 87 * 93 * - - 76 + + col0 FROM tab1 cor0
----
-614825
-614831
-614865

query I rowsort
SELECT col0 * 30 FROM tab1 cor0 WHERE ( NULL IS NULL )
----
1530
2550
2730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-226
SELECT DISTINCT CAST( NULL AS SIGNED ) * col2 + + 4 * 89 + - 73 * ( - - col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-226
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col2 + + 4 * 89 + - 73 * ( - - col1 ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - 5 AS col2, - ( 63 ) + + col2 + + + 23 AS col2 FROM tab2
----
-5
-17
-5
0
-5
18

query I rowsort
SELECT + col2 + - - 24 AS col1 FROM tab1 WHERE - ( + col2 ) NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT DISTINCT col1 AS col2, col1 FROM tab2
----
51
51
67
67
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-230
SELECT + MIN( ALL - - 20 ) DIV 22 col2, 75 * + + COUNT( * ) FROM tab2
----
0
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-230
SELECT + MIN ( ALL - - 20 ) / 22 col2, 75 * + + COUNT ( * ) FROM tab2
----
0
225

query I rowsort
SELECT - ( 47 ) FROM tab1 AS cor0 WHERE col1 / - ( + col2 ) IN ( + col0 * - col1 + - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-232
SELECT ALL + col0 - col1 * col0 DIV - 55 AS col0 FROM tab1 AS cor0
----
168
63
92

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + col0 - col1 * col0 / - 55 AS col0 FROM tab1 AS cor0
----
168
63
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT - CAST( ( - COUNT( * ) ) AS SIGNED ) - - - 68 AS col0 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-233
SELECT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) - - - 68 AS col0 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT DISTINCT + - SUM( DISTINCT - 49 ) + + ( - 57 ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-234
SELECT DISTINCT + - SUM ( DISTINCT - 49 ) + + ( - 57 ) FROM tab1 AS cor0
----
-8

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-235
SELECT + CAST ( - + 78 AS INTEGER ) + + COUNT ( * ) col0 FROM tab1
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ( MIN( DISTINCT - 46 ) ) AS col1 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-236
SELECT ( MIN ( DISTINCT - 46 ) ) AS col1 FROM tab1
----
-46

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-238
SELECT ALL + 54 * + + CAST( NULL AS DECIMAL ) * - - col1 / 50 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL + 54 * + + CAST ( NULL AS REAL ) * - - col1 / 50 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT ALL + COUNT( DISTINCT 75 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-239
SELECT ALL + COUNT ( DISTINCT 75 ) FROM tab2 cor0
----
1

query I rowsort
SELECT - - col1 * 27 FROM tab0 AS cor0
----
2187
27
567

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

skipif mysql # not compatible
query I rowsort label-241
SELECT CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 = NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT MIN( ALL - 30 ) AS col0 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-243
SELECT MIN ( ALL - 30 ) AS col0 FROM tab2
----
-30

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

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT ALL COUNT( * ) * + - COUNT( * ) * - 68 FROM tab1
----
612

skipif mysql # not compatible
query I rowsort label-245
SELECT ALL COUNT ( * ) * + - COUNT ( * ) * - 68 FROM tab1
----
612

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 WHERE NOT ( NULL ) IN ( col2 * col0, col0 * col0 + + 79 + + col1, - 38 )
----

query I rowsort
SELECT ALL 13 * ( - col2 ) FROM tab1
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-249
SELECT ALL SUM( ALL - 72 ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-249
SELECT ALL SUM ( ALL - 72 ) FROM tab0
----
-216

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

query I rowsort
SELECT ALL 79 * + 28 + + + 1 AS col0 FROM tab2 AS cor0
----
2213
2213
2213

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-252
SELECT DISTINCT - ( + AVG ( DISTINCT + col1 ) ) * + CAST ( NULL AS INTEGER ) + + 21 col2 FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-254
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV - col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / - col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-255
SELECT + MAX( - 0 ) * - ( - 90 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-255
SELECT + MAX ( - 0 ) * - ( - 90 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) < NULL
----
NULL

query I rowsort
SELECT + 79 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT - col2 + - - 59 FROM tab1
----
-37
-9
0

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-259
SELECT - + 76 AS col1, MIN( ALL - col1 ) * + - 82 * CAST( + 53 AS SIGNED ) FROM tab2 AS cor0
----
-76
334642

skipif mysql # not compatible
query II rowsort label-259
SELECT - + 76 AS col1, MIN ( ALL - col1 ) * + - 82 * CAST ( + 53 AS INTEGER ) FROM tab2 AS cor0
----
-76
334642

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

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

query I rowsort
SELECT DISTINCT col1 * - col0 - - ( - + col0 ) FROM tab0
----
-1230
-1914
-194

query I rowsort
SELECT 46 + + col2 + - - 50 * + - col1 FROM tab0 AS cor0
----
-3957
-994
95

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-264
SELECT - - SUM( + col0 ) + 2 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - - CAST( 37 AS SIGNED ) ) + CAST( - ( col0 ) AS SIGNED ) + CAST( - 35 AS SIGNED ) + + col1 / + + col0 + 16 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-264
SELECT - - SUM ( + col0 ) + 2 AS col0 FROM tab0 AS cor0 WHERE NOT - ( - - CAST ( 37 AS INTEGER ) ) + CAST ( - ( col0 ) AS INTEGER ) + CAST ( - 35 AS INTEGER ) + + col1 / + + col0 + 16 <> NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT COUNT( * ) * + + MAX( ALL - 45 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-405

skipif mysql # not compatible
query I rowsort label-266
SELECT COUNT ( * ) * + + MAX ( ALL - 45 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-405

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-267
SELECT + - CAST( - col2 AS SIGNED ) / 34 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-267
SELECT + - CAST ( - col2 AS INTEGER ) / 34 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 39 + + 63 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 89
----

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

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

query I rowsort
SELECT col2 * + 13 FROM tab1
----
1248
767
884

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

skipif mysql # not compatible
query I rowsort label-271
SELECT COUNT ( + + CAST ( NULL AS INTEGER ) ) + 6 AS col1 FROM tab2
----
6

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

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

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

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

query I rowsort
SELECT DISTINCT - col1 * ( 9 ) FROM tab0 AS cor0
----
-189
-729
-9

query I rowsort
SELECT DISTINCT + - 51 AS col2 FROM tab2 AS cor0
----
-51

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE 78 >= - 39
----
1
21
81

query I rowsort
SELECT ALL - + ( + + 10 ) * + col2 * + col0 + + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
-47616
-49855
-58684

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

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

query I rowsort
SELECT col1 + + 50 AS col0 FROM tab1
----
55
64
97

query I rowsort
SELECT 41 + col1 AS col2 FROM tab1
----
46
55
88

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + col1 * + col1 col2, col0 + - col2 * + 61 AS col0 FROM tab1 AS cor0
----
110
-3514
2300
-4057
247
-5805

query I rowsort
SELECT DISTINCT - - col2 - + 1 AS col1 FROM tab2 AS cor0
----
22
39
57

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT MIN( DISTINCT 26 ) + + COUNT( - col2 ) AS col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-286
SELECT MIN ( DISTINCT 26 ) + + COUNT ( - col2 ) AS col1 FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT - - 91 - + + col0 FROM tab2 AS cor0
----
16
27
45

query I rowsort
SELECT + col1 * + col0 * + - 5 FROM tab1
----
-2125
-21385
-3570

query I rowsort
SELECT - 62 * - 55 * - 99 FROM tab0
----
-337590
-337590
-337590

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT COUNT( + col2 ) * + + ( + 48 ) + - + 13 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-290
SELECT COUNT ( + col2 ) * + + ( + 48 ) + - + 13 FROM tab2
----
131

query I rowsort
SELECT DISTINCT col0 * + + 47 AS col0 FROM tab1
----
2397
3995
4277

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

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT DISTINCT - MAX( DISTINCT - col2 ) * + + 27 FROM tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-293
SELECT DISTINCT - MAX ( DISTINCT - col2 ) * + + 27 FROM tab0 AS cor0
----
270

query I rowsort
SELECT ALL col1 * - - col0 AS col0 FROM tab2 AS cor0
----
2346
4928
5025

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - 2 + - col1
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-298
SELECT * FROM tab1 WHERE NOT col2 - + CAST( - col2 AS SIGNED ) * + 45 <> + col1
----

skipif mysql # not compatible
query III rowsort label-298
SELECT * FROM tab1 WHERE NOT col2 - + CAST ( - col2 AS INTEGER ) * + 45 <> + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 * 58 + - - col1 AS col0 FROM tab2 AS cor0
----
-2617
-3635
-4283

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-302
SELECT CAST( - + 82 AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-302
SELECT CAST ( - + 82 AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1
----
-246

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 / - + 38 - + col2 + - - 17 >= NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-305
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE + CAST( col0 AS SIGNED ) + col1 * 48 >= col0 + - col2 * + col1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-305
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE + CAST ( col0 AS INTEGER ) + col1 * 48 >= col0 + - col2 * + col1
----
-14
-47
-5

query I rowsort
SELECT + + ( - col0 ) + 4 FROM tab0 AS cor0
----
-11
-83
-93

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

query III rowsort
SELECT * FROM tab0 WHERE + col2 < - + 17
----

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

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

skipif mysql # not compatible
query I rowsort label-310
SELECT + 0 * COUNT ( 95 ) - - CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - 69 - + + col1 FROM tab1 AS cor0
----
-116
-74
-83

query I rowsort
SELECT DISTINCT + col0 * + col0 - + col1 AS col2 FROM tab1 AS cor0
----
2587
7220
8234

query I rowsort
SELECT ALL + col2 * - 37 FROM tab0 AS cor0 WHERE ( + 71 + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-314
SELECT ALL + COUNT( * ) + SUM( ALL - + 40 ) AS col1 FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-314
SELECT ALL + COUNT ( * ) + SUM ( ALL - + 40 ) AS col1 FROM tab1 AS cor0
----
-117

query II rowsort
SELECT col0 - + col0 + + - 41 * - - col0 * col1, - col0 * 89 AS col2 FROM tab1 AS cor0
----
-17425
-7565
-175357
-8099
-29274
-4539

onlyif mysql # aggregate syntax: 
query I rowsort label-316
SELECT DISTINCT - - SUM( DISTINCT 95 ) - COUNT( * ) FROM tab0 cor0
----
92

skipif mysql # not compatible
query I rowsort label-316
SELECT DISTINCT - - SUM ( DISTINCT 95 ) - COUNT ( * ) FROM tab0 cor0
----
92

query III rowsort
SELECT * FROM tab1 WHERE + col2 + + col0 + + + 61 * + 1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-318
SELECT 53 * + col2 + - col1 DIV + col2 AS col0 FROM tab2
----
1217
2119
3073

skipif mysql # not compatible
query I rowsort label-318
SELECT 53 * + col2 + - col1 / + col2 AS col0 FROM tab2
----
1217
2119
3073

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

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

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

query I rowsort
SELECT + 91 FROM tab2 WHERE NOT - col2 + 49 = - col1 * col1
----
91
91
91

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

onlyif mysql # DIV for integer division: 
query II rowsort label-323
SELECT DISTINCT + ( col0 ) DIV - 80 AS col1, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
0
-81

skipif mysql # not compatible
query II rowsort label-323
SELECT DISTINCT + ( col0 ) / - 80 AS col1, - col1 FROM tab0 AS cor0
----
-1
-1
-1
-21
0
-81

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

onlyif mysql # aggregate syntax: 
query II rowsort label-325
SELECT + MIN( + 5 ), 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5
65

skipif mysql # not compatible
query II rowsort label-325
SELECT + MIN ( + 5 ), 65 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
5
65

onlyif mysql # aggregate syntax: 
query I rowsort label-326
SELECT ALL MIN( ALL - col1 ) AS col2 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-326
SELECT ALL MIN ( ALL - col1 ) AS col2 FROM tab2
----
-77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT col1 * - col0 + + 83 + ( - + col1 ) / + + col0 * 64 * + + 84 <= ( NULL ) )
----

query I rowsort
SELECT + - 43 AS col1 FROM tab0 AS cor0
----
-43
-43
-43

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 44 * + col2 IS NOT NULL
----

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

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

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

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

query II rowsort
SELECT DISTINCT col0 + - col1, ( - col0 ) AS col1 FROM tab1
----
37
-51
44
-91
80
-85

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

query I rowsort
SELECT + + 78 FROM tab0 cor0 WHERE ( col2 ) * + - col2 * col2 / + col0 + - 54 * - - col0 IS NOT NULL
----
78
78
78

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

onlyif mysql # DIV for integer division: 
query I rowsort label-339
SELECT col2 DIV col2 AS col0 FROM tab1 AS cor0 WHERE + 59 IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-339
SELECT col2 / col2 AS col0 FROM tab1 AS cor0 WHERE + 59 IS NOT NULL
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 + col2 + + 56 * 38, - col0 * - - ( - - col1 ) * - - col0 col1 FROM tab0
----
2218
-158949
2255
-18225
2307
-9409

query I rowsort
SELECT ALL - 64 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-64
-64
-64

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT DISTINCT - 6 * COUNT( * ) FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT - 6 * COUNT ( * ) FROM tab2 cor0
----
-18

query I rowsort
SELECT ALL col0 + + - 68 AS col2 FROM tab1 AS cor0
----
-17
17
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-345
SELECT ALL - MAX( ALL + col0 ) * + 87 - - MIN( + CAST( col0 AS SIGNED ) ) * + COUNT( - + col1 ) * - 90 AS col1 FROM tab2 AS cor0
----
-18945

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL - MAX ( ALL + col0 ) * + 87 - - MIN ( + CAST ( col0 AS INTEGER ) ) * + COUNT ( - + col1 ) * - 90 AS col1 FROM tab2 AS cor0
----
-18945

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

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

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

query I rowsort
SELECT ALL col2 + + ( col1 ) + 38 AS col0 FROM tab0 AS cor0
----
138
166
69

query II rowsort
SELECT - 96 AS col2, - 85 AS col1 FROM tab0 AS cor0
----
-96
-85
-96
-85
-96
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-351
SELECT + SUM( 3 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-351
SELECT + SUM ( 3 ) FROM tab0
----
9

query I rowsort
SELECT - - col1 + - 71 + - col0 FROM tab0 WHERE NOT col2 >= NULL
----

query I rowsort
SELECT ALL + col1 * + - 73 FROM tab2
----
-3723
-4891
-5621

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 / ( - col0 ) NOT BETWEEN - 13 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-355
SELECT + MAX( + ( - - col2 ) ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-355
SELECT + MAX ( + ( - - col2 ) ) FROM tab2
----
58

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

query I rowsort
SELECT DISTINCT ( - + 79 ) * col1 AS col0 FROM tab0 AS cor0
----
-1659
-6399
-79

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

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

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

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

query I rowsort
SELECT DISTINCT col1 * 81 + - + 59 FROM tab0 AS cor0
----
1642
22
6502

query I rowsort
SELECT DISTINCT - 39 + + - 6 + - 70 + - - 29 * - - 22 FROM tab0 AS cor0
----
523

onlyif mysql # aggregate syntax: 
query I rowsort label-363
SELECT - COUNT( * ) * - - 82 FROM tab2 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-363
SELECT - COUNT ( * ) * - - 82 FROM tab2 AS cor0
----
-246

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - 65 = NULL
----

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

query I rowsort
SELECT + - 20 * + - col1 AS col2 FROM tab0 AS cor0
----
1620
20
420

onlyif mysql # DIV for integer division: 
query I rowsort label-368
SELECT - 15 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-368
SELECT - 15 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 * - 18 * - col1 FROM tab1
----
-12852
-7650
-76986

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-372
SELECT ALL 0 * + + 19 DIV + col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-372
SELECT ALL 0 * + + 19 / + col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT - + 46 + + 4 FROM tab0 WHERE 60 IS NULL
----

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

query I rowsort
SELECT + 66 + - col0 + ( + col2 ) AS col2 FROM tab2 AS cor0
----
42
43
49

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

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

query II rowsort
SELECT - col2 + - - col1, 34 AS col1 FROM tab1 AS cor0
----
-21
34
-54
34
-82
34

onlyif mysql # aggregate syntax: 
query I rowsort label-378
SELECT + COUNT( DISTINCT - - col0 ) + - MAX( - + ( col1 ) ) FROM tab2 WHERE ( - col0 ) <= ( col2 * 35 )
----
54

skipif mysql # not compatible
query I rowsort label-378
SELECT + COUNT ( DISTINCT - - col0 ) + - MAX ( - + ( col1 ) ) FROM tab2 WHERE ( - col0 ) <= ( col2 * 35 )
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-379
SELECT CAST( NULL AS SIGNED ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-379
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT + MAX( 58 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
58

skipif mysql # not compatible
query I rowsort label-380
SELECT + MAX ( 58 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
58

query I rowsort
SELECT DISTINCT - ( 38 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-38

query I rowsort
SELECT - 44 - col2 FROM tab2 cor0
----
-102
-67
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-383
SELECT DISTINCT - 84 + + 37 * - col1 DIV - - col1 FROM tab0 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-383
SELECT DISTINCT - 84 + + 37 * - col1 / - - col1 FROM tab0 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-384
SELECT ( - SUM( + col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-121

skipif mysql # not compatible
query I rowsort label-384
SELECT ( - SUM ( + col2 ) ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-121

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-386
SELECT + 9 DIV + 21 + - - COUNT( * ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-386
SELECT + 9 / + 21 + - - COUNT ( * ) col2 FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT DISTINCT col1 * + 35 AS col2 FROM tab2
----
1785
2345
2695

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col2 NOT BETWEEN + 98 AND - 30 + - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-390
SELECT ALL MAX( ALL - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-390
SELECT ALL MAX ( ALL - col2 ) AS col2 FROM tab2
----
-23

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

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

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

query I rowsort
SELECT + ( - 2 ) AS col1 FROM tab1
----
-2
-2
-2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col1 * + ( + col2 ) + + col2 FROM tab2
----
51
1196
67
3944
77
3120

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-399
SELECT COUNT( * ) * - + COUNT( DISTINCT + col2 ) + COUNT( * ) AS col0, + 92 FROM tab2 cor0
----
-6
92

skipif mysql # not compatible
query II rowsort label-399
SELECT COUNT ( * ) * - + COUNT ( DISTINCT + col2 ) + COUNT ( * ) AS col0, + 92 FROM tab2 cor0
----
-6
92

query I rowsort
SELECT ALL 91 * + + ( - col0 ) AS col0 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query II rowsort label-401
SELECT 73 * + COUNT( * ), MAX( + col2 ) * + 58 AS col1 FROM tab2
----
219
3364

skipif mysql # not compatible
query II rowsort label-401
SELECT 73 * + COUNT ( * ), MAX ( + col2 ) * + 58 AS col1 FROM tab2
----
219
3364

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT ALL SUM( + + 68 ) AS col0 FROM tab0
----
204

skipif mysql # not compatible
query I rowsort label-402
SELECT ALL SUM ( + + 68 ) AS col0 FROM tab0
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-403
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT + + COUNT( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 77 - col1 BETWEEN col2 AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT + + COUNT ( col2 ) AS col1 FROM tab0 AS cor0 WHERE NOT 77 - col1 BETWEEN col2 AND NULL
----
2

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

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

query I rowsort
SELECT - col2 + - col1 + - 74 FROM tab0 AS cor0
----
-105
-174
-202

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + + 43 + - - 91 col2 FROM tab1
----
155
155
155

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

query I rowsort
SELECT - col2 / + + col1 AS col0 FROM tab0 WHERE - + 98 BETWEEN + 89 AND NULL
----

query I rowsort
SELECT DISTINCT - 36 * 19 AS col0 FROM tab0
----
-684

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

skipif mysql # not compatible
query I rowsort label-414
SELECT - CAST ( - ( + 93 ) AS INTEGER ) FROM tab2
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-415
SELECT ALL * FROM tab1 WHERE NOT col1 * 87 * - ( - 48 ) - - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-415
SELECT ALL * FROM tab1 WHERE NOT col1 * 87 * - ( - 48 ) - - CAST ( NULL AS INTEGER ) IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT + ( MAX( ALL 58 ) ) FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-417
SELECT + ( MAX ( ALL 58 ) ) FROM tab1 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query I rowsort label-418
SELECT ALL - col1 * + col1 * + + col0 + col2 DIV col0 DIV 52 * 4 * - 98 AS col0 FROM tab2 cor0
----
-119646
-336675
-379456

skipif mysql # not compatible
query I rowsort label-418
SELECT ALL - col1 * + col1 * + + col0 + col2 / col0 / 52 * 4 * - 98 AS col0 FROM tab2 cor0
----
-119646
-336675
-379456

query I rowsort
SELECT - col2 + + + col1 AS col2 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 = 52
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 + 97 + + col1 NOT IN ( - + ( + col2 ), ( + - col0 ) + - 53, col1 * 82 * - 92 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col1 - - + col1 * - ( ( 99 ) ) FROM tab0 AS cor0
----
-2058
-7938
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-424
SELECT CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

skipif mysql # not compatible
query I rowsort label-424
SELECT CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-428
SELECT DISTINCT - CAST ( - 89 AS INTEGER ) col0 FROM tab1 AS cor0
----
89

query I rowsort
SELECT 17 * col2 * + - col0 AS col2 FROM tab1
----
-105196
-83232
-85255

onlyif mysql # aggregate syntax: 
query I rowsort label-430
SELECT ALL MIN( DISTINCT + 76 ) FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-430
SELECT ALL MIN ( DISTINCT + 76 ) FROM tab0
----
76

query I rowsort
SELECT 30 + 54 FROM tab1 WHERE NOT col1 IS NULL
----
84
84
84

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-432
SELECT + CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT MIN( DISTINCT + 51 ) + - - ( + 56 ) AS col0 FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-433
SELECT MIN ( DISTINCT + 51 ) + - - ( + 56 ) AS col0 FROM tab0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-434
SELECT ALL ( 45 ) + + COUNT( * ) AS col0 FROM tab0 WHERE NULL NOT IN ( + col2 )
----
45

skipif mysql # not compatible
query I rowsort label-434
SELECT ALL ( 45 ) + + COUNT ( * ) AS col0 FROM tab0 WHERE NULL NOT IN ( + col2 )
----
45

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-436
SELECT - CAST( - 96 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
96
96
96

skipif mysql # not compatible
query I rowsort label-436
SELECT - CAST ( - 96 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
96
96
96

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + - col1 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT 31 - col2 FROM tab0
----
-16
-68
21

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

query II rowsort
SELECT - 6 + - - 27 AS col1, + 24 FROM tab2
----
21
24
21
24
21
24

query I rowsort
SELECT DISTINCT - col1 + + - col1 AS col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-445
SELECT - + MIN( - col1 ) + + ( + - MAX( + - 56 ) ) FROM tab0 AS cor0
----
137

skipif mysql # not compatible
query I rowsort label-445
SELECT - + MIN ( - col1 ) + + ( + - MAX ( + - 56 ) ) FROM tab0 AS cor0
----
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-446
SELECT DISTINCT - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT col2 * - + ( 94 ) = - + 20 + + + 87 + + col0 / - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-446
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT col2 * - + ( 94 ) = - + 20 + + + 87 + + col0 / - + 90
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 45 + - - col0 * + col1 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-448
SELECT DISTINCT MAX( ALL - - ( + + 8 ) ) AS col1, 61 col1 FROM tab1 AS cor0
----
8
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-448
SELECT DISTINCT MAX ( ALL - - ( + + 8 ) ) AS col1, 61 col1 FROM tab1 AS cor0
----
8
61

onlyif mysql # aggregate syntax: 
query I rowsort label-449
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( 44 ) + - 59 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-449
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( 44 ) + - 59 < NULL
----
0

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

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

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

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

query II rowsort
SELECT ALL - col0, - 17 + col0 AS col0 FROM tab2
----
-46
29
-64
47
-75
58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - 49 + - 47 FROM tab2
----
46
-96
64
-96
75
-96

query I rowsort
SELECT ALL ( + 56 ) + col0 + + + col0 FROM tab1 WHERE col0 - + - col1 IS NOT NULL
----
158
226
238

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-459
SELECT - CAST( NULL AS DECIMAL ) / col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 27 / - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-459
SELECT - CAST ( NULL AS REAL ) / col1 AS col2 FROM tab0 AS cor0 WHERE NOT + 27 / - col0 IS NOT NULL
----

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 IN ( + 68 * - - col0, + 91 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT DISTINCT + 87 + - - COUNT( 59 ) AS col2 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-465
SELECT DISTINCT + 87 + - - COUNT ( 59 ) AS col2 FROM tab2 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL - COUNT( * ) + 39 col1 FROM tab0 cor0
----
36

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT DISTINCT + COUNT( * ) - + - SUM( ALL - col0 ) FROM tab0
----
-196

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT + COUNT ( * ) - + - SUM ( ALL - col0 ) FROM tab0
----
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT DISTINCT 31 * + + ( - COUNT( * ) ) AS col0 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-469
SELECT DISTINCT 31 * + + ( - COUNT ( * ) ) AS col0 FROM tab1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-470
SELECT DISTINCT CAST( ( col1 ) AS SIGNED ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-470
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + col1 * + 7 AS col1 FROM tab0
----
147
567
7

query I rowsort
SELECT ALL - - ( + col1 ) + col1 + 41 AS col0 FROM tab1 AS cor0
----
135
51
69

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-474
SELECT + 89 DIV - 91 - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-474
SELECT + 89 / - 91 - col2 FROM tab1 AS cor0
----
-59
-68
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT ALL - 4 * - COUNT( * ) AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-476
SELECT ALL - 4 * - COUNT ( * ) AS col1 FROM tab2
----
12

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-480
SELECT + - MAX( ALL + - col0 ) DIV + + 52 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-480
SELECT + - MAX ( ALL + - col0 ) / + + 52 FROM tab2 cor0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT col2 DIV + + col1 FROM tab1 AS cor0
----
1
11
6

skipif mysql # not compatible
query I rowsort label-482
SELECT col2 / + + col1 FROM tab1 AS cor0
----
1
11
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-483
SELECT COUNT( * ) DIV ( + 77 ) col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-483
SELECT COUNT ( * ) / ( + 77 ) col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-485
SELECT DISTINCT + - AVG ( DISTINCT + CAST( + col1 AS SIGNED ) ) FROM tab1 WHERE NOT 23 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT + - AVG ( DISTINCT + CAST ( + col1 AS INTEGER ) ) FROM tab1 WHERE NOT 23 = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-486
SELECT ALL + MAX( DISTINCT ( + col0 ) ) * + 29 AS col2 FROM tab0
----
2813

skipif mysql # not compatible
query I rowsort label-486
SELECT ALL + MAX ( DISTINCT ( + col0 ) ) * + 29 AS col2 FROM tab0
----
2813

query I rowsort
SELECT ALL + 79 + + + col1 AS col2 FROM tab0 AS cor0
----
100
160
80

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-488
SELECT DISTINCT - COUNT( * ) DIV - 33 + - COUNT( * ) FROM tab2 AS cor0
----
-3

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

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

skipif mysql # not compatible
query I rowsort label-489
SELECT 93 / + col2 AS col0 FROM tab2
----
1
2
4

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-492
SELECT - + 83, - MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-83
-15

skipif mysql # not compatible
query II rowsort label-492
SELECT - + 83, - MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
-83
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-493
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT - 91 * + ( - SUM( DISTINCT + + 48 ) ) * + COUNT( ALL - 39 ) * - + 21 + - CAST( 94 AS SIGNED ) * - 29 - - SUM( - + 15 ) AS col1 FROM tab1 AS cor0
----
-272503

skipif mysql # not compatible
query I rowsort label-494
SELECT - 91 * + ( - SUM ( DISTINCT + + 48 ) ) * + COUNT ( ALL - 39 ) * - + 21 + - CAST ( 94 AS INTEGER ) * - 29 - - SUM ( - + 15 ) AS col1 FROM tab1 AS cor0
----
-272503

query I rowsort
SELECT + ( - col2 ) * 82 - - 38 FROM tab2 AS cor0
----
-1848
-3242
-4718

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT ALL COUNT( * ) - + 84 col2 FROM tab1
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-497
SELECT ALL COUNT ( * ) - + 84 col2 FROM tab1
----
-81

query III rowsort
SELECT * FROM tab2 WHERE NULL = + + col2 / - ( - 50 )
----

query I rowsort
SELECT ALL - col2 - - ( - - col0 ) AS col0 FROM tab2
----
17
23
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-500
SELECT - 81 + + CAST( col1 AS SIGNED ) + - + 40 + - - CAST( + 24 AS SIGNED ) FROM tab1
----
-50
-83
-92

skipif mysql # not compatible
query I rowsort label-500
SELECT - 81 + + CAST ( col1 AS INTEGER ) + - + 40 + - - CAST ( + 24 AS INTEGER ) FROM tab1
----
-50
-83
-92

query III rowsort
SELECT * FROM tab0 WHERE ( NOT ( - - ( col2 ) < - col2 + + 33 ) )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT ALL + + 81 * + COUNT( * ) FROM tab1 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-502
SELECT ALL + + 81 * + COUNT ( * ) FROM tab1 AS cor0
----
243

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

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

query I rowsort
SELECT ALL ( - 17 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

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

skipif mysql # not compatible
query I rowsort label-506
SELECT + COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query II rowsort
SELECT DISTINCT 6, 9 AS col2 FROM tab2
----
6
9

query I rowsort
SELECT + col2 * + + 47 AS col1 FROM tab0 AS cor0
----
2209
4653
470

onlyif mysql # aggregate syntax: 
query I rowsort label-509
SELECT - MIN( DISTINCT - 50 ) * - 4 AS col0 FROM tab2 AS cor0
----
-200

skipif mysql # not compatible
query I rowsort label-509
SELECT - MIN ( DISTINCT - 50 ) * - 4 AS col0 FROM tab2 AS cor0
----
-200

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT DISTINCT - MIN( + col2 ) * + 53 * - 32 FROM tab1 AS cor0
----
100064

skipif mysql # not compatible
query I rowsort label-510
SELECT DISTINCT - MIN ( + col2 ) * + 53 * - 32 FROM tab1 AS cor0
----
100064

onlyif mysql # aggregate syntax: 
query I rowsort label-511
SELECT 98 * - + COUNT( * ) AS col0 FROM tab1 cor0
----
-294

skipif mysql # not compatible
query I rowsort label-511
SELECT 98 * - + COUNT ( * ) AS col0 FROM tab1 cor0
----
-294

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

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT ALL + + MAX( ALL - 8 ) FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-513
SELECT ALL + + MAX ( ALL - 8 ) FROM tab2 AS cor0
----
-8

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

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

query I rowsort
SELECT + col0 + 20 FROM tab2 WHERE NOT col1 IN ( - - col2 )
----
66
84
95

query I rowsort
SELECT ALL + 59 + - + col2 FROM tab1
----
-37
-9
0

query I rowsort
SELECT + col1 + ( col1 ) FROM tab0
----
162
2
42

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-520
SELECT DISTINCT 33 * - CAST( - - col2 AS SIGNED ) FROM tab1
----
-1947
-2244
-3168

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT 33 * - CAST ( - - col2 AS INTEGER ) FROM tab1
----
-1947
-2244
-3168

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT COUNT( * ) * + 47 AS col1 FROM tab0
----
141

skipif mysql # not compatible
query I rowsort label-522
SELECT COUNT ( * ) * + 47 AS col1 FROM tab0
----
141

query I rowsort
SELECT ALL 49 + + - col0 AS col1 FROM tab1 cor0
----
-2
-36
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 16 + - - col0 col0, - ( col2 ) FROM tab0 AS cor0
----
103
-10
113
-99
31
-47

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + col2 * + - 33 * + + col1 - + 84 > NULL
----

query I rowsort
SELECT ( + col0 ) + + 52 FROM tab0
----
139
149
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 24 col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT DISTINCT - 98 + - + col2 FROM tab2 cor0
----
-121
-138
-156

query I rowsort
SELECT ALL + col1 * 85 + 4 FROM tab2 AS cor0
----
4339
5699
6549

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 41 < NULL
----

query I rowsort
SELECT ALL ( 18 ) - + col0 - - col2 * + - ( + + 17 ) + 22 - - - col0 - - - col2 FROM tab0 AS cor0
----
-1936
-314
-836

query I rowsort
SELECT - + 35 * + - 80 FROM tab0 AS cor0
----
2800
2800
2800

query I rowsort
SELECT DISTINCT col0 - - col0 - - col0 FROM tab2
----
138
192
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-535
SELECT col1 AS col0, - col2 + + - 55 + + col2 - - - col2 + col1 * col1 * - - CAST( NULL AS SIGNED ) + - col0 / + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-535
SELECT col1 AS col0, - col2 + + - 55 + + col2 - - - col2 + col1 * col1 * - - CAST ( NULL AS INTEGER ) + - col0 / + col2 FROM tab1
----
14
NULL
47
NULL
5
NULL

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

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

query III rowsort
SELECT * FROM tab2 WHERE - col2 BETWEEN + col2 * - col1 * - 52 AND ( col1 / + + col2 - col1 )
----

query II rowsort
SELECT + 57 - col2 - - col1 * - col1 AS col1, - col2 FROM tab1
----
-2220
-68
-235
-96
-27
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col0 ) * + + col2 * - col1 * - - 1 col0 FROM tab1
----
-25075
-290836
-68544

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-540
SELECT - 21 AS col1, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-21
NULL
-21
NULL
-21
NULL

skipif mysql # not compatible
query II rowsort label-540
SELECT - 21 AS col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-21
NULL
-21
NULL
-21
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 88 * + col0 >= - col0 + 75 * 53 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-542
SELECT - 25, + 53 + - + COUNT( * ) AS col2 FROM tab0 cor0
----
-25
50

skipif mysql # not compatible
query II rowsort label-542
SELECT - 25, + 53 + - + COUNT ( * ) AS col2 FROM tab0 cor0
----
-25
50

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

query I rowsort
SELECT ( - + col2 ) * - col2 * - 31 * + + 17 FROM tab2 WHERE NOT - - col2 = + - 92 * + + col2 + col1
----
-1772828
-278783
-843200

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT AVG ( ALL - col1 ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-545
SELECT AVG ( ALL - col1 ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT + MIN( ALL 84 ) * - - 13 FROM tab1 AS cor0
----
1092

skipif mysql # not compatible
query I rowsort label-546
SELECT + MIN ( ALL 84 ) * - - 13 FROM tab1 AS cor0
----
1092

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 72 + + col2 < - + col1
----
51
14
96
91
47
68

query II rowsort
SELECT ALL + col1 * + 24, - col0 + - + 25 * - 54 AS col0 FROM tab0 AS cor0
----
1944
1335
24
1253
504
1263

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

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

query I rowsort
SELECT + col0 * + 81 + + - col2 FROM tab2 AS cor0
----
3703
5144
6017

query I rowsort
SELECT ALL + col2 * - 62 AS col2 FROM tab0 AS cor0
----
-2914
-6138
-620

onlyif mysql # DIV for integer division: 
query I rowsort label-552
SELECT ALL - col0 DIV + + 48 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL - col0 / + + 48 AS col0 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-553
SELECT + col2 DIV 52 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-553
SELECT + col2 / 52 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-554
SELECT ALL - COUNT( * ) * + 81 FROM tab1
----
-243

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL - COUNT ( * ) * + 81 FROM tab1
----
-243

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

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

query I rowsort
SELECT DISTINCT - col0 + - + col2 + + - 11 AS col1 FROM tab2
----
-115
-144
-80

query II rowsort
SELECT DISTINCT col2 AS col0, 73 FROM tab1 WHERE + 31 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, + 83 * col0 FROM tab1 AS cor0
----
-14
4233
-47
7553
-5
7055

query I rowsort
SELECT col1 + + 41 AS col2 FROM tab2 AS cor0
----
108
118
92

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

query I rowsort
SELECT DISTINCT + 31 + - 33 AS col2 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-563
SELECT - MIN( 98 ) + + COUNT( * ) * 23 + + 50 AS col2 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-563
SELECT - MIN ( 98 ) + + COUNT ( * ) * 23 + + 50 AS col2 FROM tab0 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query II rowsort label-564
SELECT DISTINCT + 2 DIV + col2 * + + 7 AS col0, - 57 FROM tab0 AS cor0
----
0
-57

skipif mysql # not compatible
query II rowsort label-564
SELECT DISTINCT + 2 / + col2 * + + 7 AS col0, - 57 FROM tab0 AS cor0
----
0
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT ALL + - COUNT( * ) + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-565
SELECT ALL + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-567
SELECT 13 + COUNT( - 86 ) FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-567
SELECT 13 + COUNT ( - 86 ) FROM tab1
----
16

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

skipif mysql # not compatible
query I rowsort label-568
SELECT ALL - 64 FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) AS col0 FROM tab1 WHERE NOT col2 > + col0 + col2
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT ALL 83 DIV col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-570
SELECT ALL 83 / col1 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-571
SELECT ALL 16 DIV COUNT( * ) FROM tab2
----
5

skipif mysql # not compatible
query I rowsort label-571
SELECT ALL 16 / COUNT ( * ) FROM tab2
----
5

query I rowsort
SELECT ALL 75 - col1 AS col0 FROM tab2 WHERE NOT 28 IS NULL
----
-2
24
8

query I rowsort
SELECT ALL col2 * + col0 + 48 * col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1425
14259
5046

onlyif mysql # aggregate syntax: 
query I rowsort label-574
SELECT MAX( ALL - 33 ) + + SUM( col2 ) FROM tab1 WHERE NOT - col0 * - col2 IS NULL
----
190

skipif mysql # not compatible
query I rowsort label-574
SELECT MAX ( ALL - 33 ) + + SUM ( col2 ) FROM tab1 WHERE NOT - col0 * - col2 IS NULL
----
190

query I rowsort
SELECT + 96 + col2 FROM tab2
----
119
136
154

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT ALL ( COUNT( * ) ) * 8 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-576
SELECT ALL ( COUNT ( * ) ) * 8 FROM tab0
----
24

query I rowsort
SELECT col0 FROM tab1 WHERE NOT col0 = ( col2 + col1 )
----
51
85
91

query I rowsort
SELECT + 79 + - col2 * col1 AS col2 FROM tab2 WHERE - col1 * + col0 > NULL
----

query I rowsort
SELECT DISTINCT - col1 + col1 * ( col1 ) FROM tab2
----
2550
4422
5852

query I rowsort
SELECT col2 + 61 FROM tab2
----
101
119
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-581
SELECT CAST( COUNT( * ) AS SIGNED ) + - COUNT( * ) * CAST( + COUNT( * ) AS SIGNED ) FROM tab0
----
-6

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

query I rowsort
SELECT ALL - col0 / - 36 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND + 47 * - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-583
SELECT 66 * MAX( + col1 * col0 ) AS col1 FROM tab2
----
331650

skipif mysql # not compatible
query I rowsort label-583
SELECT 66 * MAX ( + col1 * col0 ) AS col1 FROM tab2
----
331650

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT COUNT( 36 ) + 5 AS col1 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-585
SELECT COUNT ( 36 ) + 5 AS col1 FROM tab0
----
8

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

query I rowsort
SELECT + col1 + + col1 FROM tab2 WHERE ( - col2 * + col0 ) BETWEEN ( col0 ) AND col0 * - 51
----

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

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

query I rowsort
SELECT + 28 - - 37 AS col1 FROM tab0
----
65
65
65

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NOT 69 + - col0 * 60 <= NULL
----

query I rowsort
SELECT - 26 * + 4 AS col0 FROM tab1 WHERE NOT col2 BETWEEN 22 AND - col1
----
-104
-104
-104

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-593
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT 54 * + 20 + + CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT 54 * + 20 + + CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-594
SELECT ALL + 24 FROM tab0 cor0 WHERE NULL > CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-594
SELECT ALL + 24 FROM tab0 cor0 WHERE NULL > CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-595
SELECT 77 DIV 22 FROM tab2 AS cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-595
SELECT 77 / 22 FROM tab2 AS cor0
----
3
3
3

query I rowsort
SELECT ALL col2 * - ( - col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-597
SELECT DISTINCT SUM( DISTINCT - 39 ) AS col1 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-597
SELECT DISTINCT SUM ( DISTINCT - 39 ) AS col1 FROM tab1 AS cor0
----
-39

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-599
SELECT 26 DIV COUNT( * ) col1 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-599
SELECT 26 / COUNT ( * ) col1 FROM tab1 AS cor0
----
8

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + 33 >= - col2 * - col2
----
87
21
10

query I rowsort
SELECT ALL 21 * + col2 AS col1 FROM tab1
----
1239
1428
2016

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-603
SELECT DISTINCT * FROM tab0 cor0 WHERE - 24 + col0 BETWEEN CAST( NULL AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-603
SELECT DISTINCT * FROM tab0 cor0 WHERE - 24 + col0 BETWEEN CAST ( NULL AS REAL ) AND NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE ( - col2 ) IS NOT NULL
----
10
47
99

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

query I rowsort
SELECT ALL col0 + 78 FROM tab1 cor0
----
129
163
169

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

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT ALL SUM( 48 ) AS col1 FROM tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-608
SELECT ALL SUM ( 48 ) AS col1 FROM tab0 cor0
----
144

query I rowsort
SELECT - ( 68 ) AS col1 FROM tab2 WHERE ( ( - 75 ) ) IS NOT NULL
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT DISTINCT - ( - COUNT( * ) ) AS col1 FROM tab2
----
3

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

query I rowsort
SELECT col2 + - col2 * col1 AS col0 FROM tab0
----
-200
-3760
0

query I rowsort
SELECT 52 * - col1 + col0 FROM tab2
----
-2606
-3409
-3940

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

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

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

query I rowsort
SELECT DISTINCT + 52 * + col2 * + col1 + col1 AS col1 FROM tab1 AS cor0
----
15345
166239
69902

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * col1 ) <> - 1 * + 59
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 * - + col2 - col1 FROM tab0 AS cor0
----
-100
-231
-3888

query I rowsort
SELECT DISTINCT - ( col2 ) - col0 * - col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT + MAX( + 47 ) AS col2 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL <= + 1 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-620
SELECT + MAX ( + 47 ) AS col2 FROM tab2 AS cor0 JOIN tab2 AS cor1 ON NULL <= + 1 WHERE NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT COUNT( * ) * - 37 + - COUNT( * ) - + 64 AS col1 FROM tab0
----
-178

skipif mysql # not compatible
query I rowsort label-621
SELECT COUNT ( * ) * - 37 + - COUNT ( * ) - + 64 AS col1 FROM tab0
----
-178

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT - 27 + SUM( ALL + - col2 ) FROM tab0
----
-183

skipif mysql # not compatible
query I rowsort label-622
SELECT - 27 + SUM ( ALL + - col2 ) FROM tab0
----
-183

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

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

query I rowsort
SELECT ALL - 99 * ( - + col0 ) FROM tab1
----
5049
8415
9009

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT ( col0 * + + col1 ) IS NULL
----
10
47
99

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

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

query I rowsort
SELECT ALL ( + + col1 ) + - - col1 AS col0 FROM tab2 AS cor0
----
102
134
154

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

query I rowsort
SELECT DISTINCT - col1 + + col0 + - col0 + 28 * + col1 FROM tab2 AS cor0
----
1377
1809
2079

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * 46 BETWEEN - 37 * + col0 AND 18
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( 34 ) NOT IN ( - col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-643
SELECT - MAX( DISTINCT - - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-643
SELECT - MAX ( DISTINCT - - col0 ) FROM tab0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 29 * col2 * + col0 col2 FROM tab2 AS cor0
----
126150
30682
74240

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

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

query I rowsort
SELECT + col2 + - + col1 * col2 * + + 48 AS col0 FROM tab0
----
-10070
-182689
-4653

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-650
SELECT ALL CAST( + col1 AS SIGNED ) + - - 64, + 88 AS col0 FROM tab1 AS cor0
----
111
88
69
88
78
88

skipif mysql # not compatible
query II rowsort label-650
SELECT ALL CAST ( + col1 AS INTEGER ) + - - 64, + 88 AS col0 FROM tab1 AS cor0
----
111
88
69
88
78
88

query I rowsort
SELECT ALL + + col2 + - + 63 FROM tab1 AS cor0
----
-4
33
5

query I rowsort
SELECT DISTINCT ( + col1 ) * + - col2 * col2 + + ( 41 ) + + col0 AS col1 FROM tab1 AS cor0
----
-128932
-17279
-217196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-653
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + 49 / - 20 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-653
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + 49 / - 20 IS NOT NULL
----
10
47
99

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-657
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - 35 / - ( + col1 ) + + 96 * col1 ) IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-662
SELECT DISTINCT + 86 * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-662
SELECT DISTINCT + 86 * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-258

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 64 / 39 BETWEEN 7 AND ( NULL )
----

query I rowsort
SELECT ALL - col2 - - ( - 27 ) AS col1 FROM tab1 AS cor0
----
-123
-86
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-665
SELECT ALL + 77 - + MAX( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL + 77 - + MAX ( DISTINCT + + col0 ) FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query II rowsort label-666
SELECT DISTINCT - 33 * + COUNT( * ) AS col0, 16 AS col2 FROM tab2
----
-99
16

skipif mysql # not compatible
query II rowsort label-666
SELECT DISTINCT - 33 * + COUNT ( * ) AS col0, 16 AS col2 FROM tab2
----
-99
16

onlyif mysql # DIV for integer division: 
query I rowsort label-667
SELECT 55 DIV + 99 AS col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-667
SELECT 55 / + 99 AS col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT ALL col2 DIV col2 + - - 98 FROM tab1 AS cor0
----
99
99
99

skipif mysql # not compatible
query I rowsort label-668
SELECT ALL col2 / col2 + - - 98 FROM tab1 AS cor0
----
99
99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( NOT ( - - 73 / col1 + + col0 IS NULL ) ) )
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 27 * - 54 col1, 28 + 96 * - col2 AS col0 FROM tab0 AS cor0
----
-1458
-4484
-1458
-932
-1458
-9476

query I rowsort
SELECT DISTINCT - + 71 FROM tab2 AS cor0 WHERE + col0 * - 20 IS NOT NULL
----
-71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + col0 ) * - col0 col0 FROM tab0 AS cor0
----
-225
-7569
-9409

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

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

query I rowsort
SELECT DISTINCT + 10 AS col2 FROM tab1 cor0
----
10

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 20 / col1 / - - col0 - + - 88 BETWEEN NULL AND ( - col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 30 + + - col1 col1 FROM tab1 WHERE NOT ( + + 91 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - + 23 + + 61 ) NOT IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-683
SELECT CAST ( + COUNT ( 47 ) AS INTEGER ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-684
SELECT DISTINCT COUNT( * ) * - CAST( 10 AS SIGNED ) col2 FROM tab0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-684
SELECT DISTINCT COUNT ( * ) * - CAST ( 10 AS INTEGER ) col2 FROM tab0
----
-30

query I rowsort
SELECT ALL - col1 * - - 20 AS col2 FROM tab0
----
-1620
-20
-420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-686
SELECT CAST( + - col0 AS SIGNED ) * col1 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-686
SELECT CAST ( + - col0 AS INTEGER ) * col1 FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + 90 >= - - 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-688
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT + CAST( 34 AS DECIMAL ) IS NULL )
----

skipif mysql # not compatible
query IIIIII rowsort label-688
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT + CAST ( 34 AS REAL ) IS NULL )
----

query I rowsort
SELECT 14 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-692
SELECT ALL + - 64 * + + COUNT( * ) + - 76 + - 25 + - ( + COUNT( * ) ) FROM tab2 cor0
----
-296

skipif mysql # not compatible
query I rowsort label-692
SELECT ALL + - 64 * + + COUNT ( * ) + - 76 + - 25 + - ( + COUNT ( * ) ) FROM tab2 cor0
----
-296

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-700
SELECT DISTINCT + COUNT( * ) AS col1, + ( + CAST( NULL AS SIGNED ) ) + - MIN( DISTINCT - 27 ) FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-700
SELECT DISTINCT + COUNT ( * ) AS col1, + ( + CAST ( NULL AS INTEGER ) ) + - MIN ( DISTINCT - 27 ) FROM tab1
----
3
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 * + col0 AS col1 FROM tab0
----
10
1827
47
1215
99
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-703
SELECT DISTINCT 93 + + COUNT( col1 + col0 ) FROM tab0 WHERE NOT + + col2 NOT BETWEEN - col0 / col1 + + + col0 AND col0 * - - col2 + + col1 + - col1
----
95

skipif mysql # not compatible
query I rowsort label-703
SELECT DISTINCT 93 + + COUNT ( col1 + col0 ) FROM tab0 WHERE NOT + + col2 NOT BETWEEN - col0 / col1 + + + col0 AND col0 * - - col2 + + col1 + - col1
----
95

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-704
SELECT * FROM tab0 WHERE + 91 * - - CAST( NULL AS DECIMAL ) + + 95 NOT IN ( + 75 )
----

skipif mysql # not compatible
query III rowsort label-704
SELECT * FROM tab0 WHERE + 91 * - - CAST ( NULL AS REAL ) + + 95 NOT IN ( + 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-705
SELECT + CAST( + 58 AS SIGNED ) * - col0 AS col1 FROM tab1 WHERE + - col2 * 12 * - col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-705
SELECT + CAST ( + 58 AS INTEGER ) * - col0 AS col1 FROM tab1 WHERE + - col2 * 12 * - col0 IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-707
SELECT DISTINCT - CAST( + - 29 AS SIGNED ) + + col0 FROM tab0 cor0
----
116
126
44

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT - CAST ( + - 29 AS INTEGER ) + + col0 FROM tab0 cor0
----
116
126
44

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 93 BETWEEN + 60 * + + col1 AND NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 92 + + 61 FROM tab0 AS cor0
----
153
153
153

query I rowsort
SELECT - - col2 * col2 * 62 AS col1 FROM tab2 AS cor0 WHERE + col0 = + - col0
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-714
SELECT COUNT ( DISTINCT - + col1 ) FROM tab0
----
3

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + - 55 IN ( - col1 * + 11 * - 19 + + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 91 * + col1 AS col2 FROM tab2 AS cor0
----
4641
6097
7007

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-720
SELECT COUNT( * ) * - 95 AS col2 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-720
SELECT COUNT ( * ) * - 95 AS col2 FROM tab1 AS cor0
----
-285

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

query II rowsort
SELECT DISTINCT + col2, 84 AS col1 FROM tab2 AS cor0
----
23
84
40
84
58
84

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

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

query I rowsort
SELECT ALL + 0 * + + col2 * - col0 * + col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - - 40 FROM tab1 WHERE - - 99 * + - 53 + + 24 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-726
SELECT DISTINCT 5 * + 71 AS col2, - col0 DIV - col2 FROM tab2
----
355
1
355
2

skipif mysql # not compatible
query II rowsort label-726
SELECT DISTINCT 5 * + 71 AS col2, - col0 / - col2 FROM tab2
----
355
1
355
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 11 / - col2 + col1 col1 FROM tab2 WHERE ( col1 IN ( + - 56 + - col0 - + 95 + - col1 * + 34 * + 94 * + col0 + + + 25 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + 81 col1 FROM tab1
----
4131
6885
7371

query I rowsort
SELECT DISTINCT 74 + col0 * - 90 FROM tab0 AS cor0
----
-1276
-7756
-8656

query I rowsort
SELECT ALL + ( col1 ) * - col1 * - col1 * - + col2 AS col0 FROM tab0 AS cor0
----
-24977727
-92610
-99

query I rowsort
SELECT DISTINCT col2 * 54 FROM tab2
----
1242
2160
3132

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col0 + + + col0 col0 FROM tab2
----
-2070
-4032
-5550

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

query I rowsort
SELECT DISTINCT + 70 + - col2 AS col0 FROM tab2
----
12
30
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-736
SELECT ALL col0 DIV - col2 + + col2 * - ( - 26 ) FROM tab0 cor0
----
1222
252
2574

skipif mysql # not compatible
query I rowsort label-736
SELECT ALL col0 / - col2 + + col2 * - ( - 26 ) FROM tab0 cor0
----
1222
252
2574

query II rowsort
SELECT + 94, - 56 AS col2 FROM tab1 cor0
----
94
-56
94
-56
94
-56

query I rowsort
SELECT ALL col1 + + 39 AS col0 FROM tab1 AS cor0
----
44
53
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 = - 30
----

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-741
SELECT - 68 + - 77 - + + 57 DIV - + CAST( + col2 AS SIGNED ) + + col2 FROM tab1 cor0 WHERE ( NOT + + 81 * + col0 * - 73 IN ( 33, - col1, - - 69 ) )
----
-49
-77
-86

skipif mysql # not compatible
query I rowsort label-741
SELECT - 68 + - 77 - + + 57 / - + CAST ( + col2 AS INTEGER ) + + col2 FROM tab1 cor0 WHERE ( NOT + + 81 * + col0 * - 73 IN ( 33, - col1, - - 69 ) )
----
-49
-77
-86

query I rowsort
SELECT ALL - - col0 * + col1 * - 40 + - - col1 + + + col2 + + 30 * + - 11 AS col0 FROM tab0 AS cor0
----
-4110
-48802
-73379

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-743
SELECT + CAST( NULL AS SIGNED ) AS col2, SUM( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
NULL
66

skipif mysql # not compatible
query II rowsort label-743
SELECT + CAST ( NULL AS INTEGER ) AS col2, SUM ( DISTINCT + col1 ) AS col1 FROM tab1 cor0
----
NULL
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL <= ( - 67 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-745
SELECT ALL + ( CAST( - col1 AS SIGNED ) ) + - 74 col2 FROM tab2 AS cor0
----
-125
-141
-151

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-745
SELECT ALL + ( CAST ( - col1 AS INTEGER ) ) + - 74 col2 FROM tab2 AS cor0
----
-125
-141
-151

query I rowsort
SELECT DISTINCT col0 * - 10 + + col2 + + col2 + + col1 * col2 FROM tab2 AS cor0
----
2520
3252
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-747
SELECT + col1 - col0 + - ( - + 14 ) + - CAST( - col1 AS SIGNED ) + col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2592
7164
8298

skipif mysql # not compatible
query I rowsort label-747
SELECT + col1 - col0 + - ( - + 14 ) + - CAST ( - col1 AS INTEGER ) + col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2592
7164
8298

query I rowsort
SELECT DISTINCT + - col1 - - col2 FROM tab1 AS cor0
----
21
54
82

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-750
SELECT ALL CAST ( + + ( - 41 ) AS INTEGER ) col2 FROM tab0
----
-41
-41
-41

query I rowsort
SELECT ( - 21 ) + - - col2 AS col2 FROM tab1 WHERE + 91 IS NOT NULL
----
38
47
75

query I rowsort
SELECT DISTINCT 41 + - - 2 + + col2 FROM tab1 AS cor0
----
102
111
139

query I rowsort
SELECT ALL col2 * + 8 + + 69 + + col2 FROM tab1 AS cor0
----
600
681
933

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

query I rowsort
SELECT + ( - 74 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query II rowsort
SELECT DISTINCT - col1, + col0 * + + 4 AS col1 FROM tab1
----
-14
204
-47
364
-5
340

query I rowsort
SELECT ALL 79 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT ALL 22 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-762
SELECT - + 13 * COUNT( * ) col0 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-762
SELECT - + 13 * COUNT ( * ) col0 FROM tab2 AS cor0
----
-39

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

onlyif mysql # DIV for integer division: 
query II rowsort label-764
SELECT ALL - ( - ( col0 ) ) * col0 DIV + col2 AS col2, 79 * + col1 AS col0 FROM tab0 cor0
----
4
6399
756
1659
95
79

skipif mysql # not compatible
query II rowsort label-764
SELECT ALL - ( - ( col0 ) ) * col0 / + col2 AS col2, 79 * + col1 AS col0 FROM tab0 cor0
----
4
6399
756
1659
95
79

onlyif mysql # aggregate syntax: 
query I rowsort label-765
SELECT + COUNT( * ) * + COUNT( * ) * - 58 - - COUNT( * ) + + COUNT( * ) * - 34 * - ( 67 ) AS col0 FROM tab1 cor0
----
6315

skipif mysql # not compatible
query I rowsort label-765
SELECT + COUNT ( * ) * + COUNT ( * ) * - 58 - - COUNT ( * ) + + COUNT ( * ) * - 34 * - ( 67 ) AS col0 FROM tab1 cor0
----
6315

query I rowsort
SELECT + 54 + - col1 + + 46 + + col1 AS col0 FROM tab1
----
100
100
100

query II rowsort
SELECT DISTINCT - col2, - 0 AS col0 FROM tab2
----
-23
0
-40
0
-58
0

query I rowsort
SELECT ALL - 66 * + 42 * 1 AS col0 FROM tab1
----
-2772
-2772
-2772

query I rowsort
SELECT DISTINCT + col1 + + - 56 + col2 FROM tab2
----
18
61
69

query II rowsort
SELECT + col0 AS col1, 53 AS col0 FROM tab0
----
15
53
87
53
97
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN 29 AND - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-772
SELECT DISTINCT ( - 0 ) * + 8 DIV + col0 * col0 * + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-772
SELECT DISTINCT ( - 0 ) * + 8 / + col0 * col0 * + col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT col1 * - col0 * - - col2 DIV col2 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-773
SELECT col1 * - col0 * - - col2 / col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT col0 + + 38 + + - col0 + + + col1 AS col0 FROM tab0
----
119
39
59

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT ALL ( - SUM( - col2 ) ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-775
SELECT ALL ( - SUM ( - col2 ) ) AS col0 FROM tab1
----
223

query II rowsort
SELECT ALL + + col1 + - 21 AS col2, + col1 + + ( + col1 ) FROM tab2 AS cor0
----
30
102
46
134
56
154

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-777
SELECT ALL - CAST( NULL AS SIGNED ) + - CAST( + 70 AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-777
SELECT ALL - CAST ( NULL AS INTEGER ) + - CAST ( + 70 AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 AS col2 FROM tab0 cor0 WHERE - col0 * - col1 <= col2
----
-1

query II rowsort
SELECT DISTINCT - col2 + - 43 * + - col0 AS col0, + col2 FROM tab1 AS cor0
----
2097
96
3596
59
3845
68

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <> ( NULL )
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col0 * ( + 69 ) NOT IN ( - + col1 + - + col0, - 67 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( - col0 ) + - col0 FROM tab2 cor0
----
-128
-150
-92

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

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT COUNT ( DISTINCT ( - col1 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-787
SELECT DISTINCT 49 * CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab2 WHERE ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT DISTINCT 49 * CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab2 WHERE ( NULL IS NULL )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-790
SELECT DISTINCT - COUNT( * ) DIV - COUNT( ALL col0 ) - + ( 83 ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-790
SELECT DISTINCT - COUNT ( * ) / - COUNT ( ALL col0 ) - + ( 83 ) FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-791
SELECT ALL MAX( ALL - 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-791
SELECT ALL MAX ( ALL - 95 ) FROM tab0
----
-95

query I rowsort
SELECT + 53 * + - col2 - 25 + + 92 FROM tab0
----
-2424
-463
-5180

query I rowsort
SELECT + col2 - - 68 - + - col2 AS col1 FROM tab2
----
114
148
184

onlyif mysql # aggregate syntax: 
query I rowsort label-794
SELECT DISTINCT SUM( 76 ) FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-794
SELECT DISTINCT SUM ( 76 ) FROM tab2
----
228

query I rowsort
SELECT col1 - + 61 AS col2 FROM tab1
----
-14
-47
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-796
SELECT DISTINCT - SUM( ALL 22 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-796
SELECT DISTINCT - SUM ( ALL 22 ) AS col2 FROM tab1
----
-66

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 67 * - + col1 <= + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL BETWEEN 18 AND NULL
----

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

query I rowsort
SELECT DISTINCT + + 42 AS col1 FROM tab1 WHERE ( + col2 ) BETWEEN 60 AND NULL
----

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

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

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

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

query I rowsort
SELECT ALL - 2 AS col2 FROM tab1 cor0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-806
SELECT - CAST( NULL AS SIGNED ) * + - 12 * - col0 FROM tab2 cor0 WHERE NOT col2 / - col2 * + + 11 NOT BETWEEN + 71 AND - 26 + + 46
----

skipif mysql # not compatible
query I rowsort label-806
SELECT - CAST ( NULL AS INTEGER ) * + - 12 * - col0 FROM tab2 cor0 WHERE NOT col2 / - col2 * + + 11 NOT BETWEEN + 71 AND - 26 + + 46
----

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ( + MAX( col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 16
----
NULL

skipif mysql # not compatible
query I rowsort label-807
SELECT ( + MAX ( col2 ) ) FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND 16
----
NULL

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

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

query I rowsort
SELECT + col2 * + 29 AS col1 FROM tab2
----
1160
1682
667

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

skipif mysql # not compatible
query I rowsort label-811
SELECT + ( + SUM ( + col2 ) ) FROM tab2
----
121

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

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT + COUNT( * ) FROM tab0 WHERE NOT 24 - - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-813
SELECT + COUNT ( * ) FROM tab0 WHERE NOT 24 - - col0 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < 71 / col1 * - 58 * - col2 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL MIN( DISTINCT 39 ) AS col1 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL MIN ( DISTINCT 39 ) AS col1 FROM tab1
----
39

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

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

query I rowsort
SELECT DISTINCT + col1 + col2 * col0 * - col2 AS col2 FROM tab1 AS cor0
----
-295880
-420737
-470002

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

query I rowsort
SELECT - 94 + - col2 FROM tab2 AS cor0
----
-117
-134
-152

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT + 96 * + CAST( - col2 AS SIGNED ) FROM tab2
----
-2208
-3840
-5568

skipif mysql # not compatible
query I rowsort label-821
SELECT + 96 * + CAST ( - col2 AS INTEGER ) FROM tab2
----
-2208
-3840
-5568

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-822
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) * + ( + 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) * + ( + 66 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT - + 56 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 12 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-828
SELECT DISTINCT CAST( - col0 AS SIGNED ) - - 2 * - - ( - - 59 ) AS col1 FROM tab1 AS cor0
----
27
33
67

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT CAST ( - col0 AS INTEGER ) - - 2 * - - ( - - 59 ) AS col1 FROM tab1 AS cor0
----
27
33
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-829
SELECT + CAST( COUNT( * ) AS SIGNED ) - - 52 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-829
SELECT + CAST ( COUNT ( * ) AS INTEGER ) - - 52 FROM tab2 AS cor0
----
55

query I rowsort
SELECT 13 * 72 * col0 * + + col1 + + col2 FROM tab0 AS cor0
----
1137287
1710082
90891

query I rowsort
SELECT - col1 + + 56 AS col1 FROM tab2 AS cor0
----
-11
-21
5

query I rowsort
SELECT ALL col0 - - col1 AS col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT - col0 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( - 46 + 46, - 20 )
----

query I rowsort
SELECT ( - + col1 ) + - col2 * - + 98 AS col2 FROM tab0 cor0
----
4525
959
9701

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + 0 + col1 + + 45 col0 FROM tab1
----
109
155
160

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

onlyif mysql # DIV for integer division: 
query I rowsort label-838
SELECT DISTINCT - 15 * col2 DIV ( - 71 ) AS col1 FROM tab2
----
12
4
8

skipif mysql # not compatible
query I rowsort label-838
SELECT DISTINCT - 15 * col2 / ( - 71 ) AS col1 FROM tab2
----
12
4
8

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

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

query II rowsort
SELECT DISTINCT + 71 * - - col1 AS col0, - 1 - - col1 + - - 89 * + col2 FROM tab2
----
3621
2097
4757
5228
5467
3636

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

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

skipif mysql # not compatible
query I rowsort label-842
SELECT 84 / + + COUNT ( * ) AS col0 FROM tab1 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT - 6 * - COUNT( * ) FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-843
SELECT - 6 * - COUNT ( * ) FROM tab2 AS cor0
----
18

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

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

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

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

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

query I rowsort
SELECT 23 * + - 61 + + - col2 * + + col1 AS col2 FROM tab2 AS cor0
----
-2576
-4483
-5289

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-848
SELECT + MAX( ALL - - col0 ) DIV - 99 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-848
SELECT + MAX ( ALL - - col0 ) / - 99 AS col1 FROM tab2 cor0
----
0

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

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

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

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

query I rowsort
SELECT + 95 + + 66 FROM tab2 WHERE NOT 17 IS NOT NULL
----

query I rowsort
SELECT col1 + - col2 + - ( + 52 ) - col1 - + - 8 AS col1 FROM tab0
----
-143
-54
-91

query III rowsort
SELECT * FROM tab1 WHERE col2 <= + - 47
----

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

query I rowsort
SELECT ALL 5 * + + 97 + - - ( + + col2 ) + - - col2 / + - col2 AS col0 FROM tab2 WHERE + 69 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT - MIN( DISTINCT + - 98 ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-857
SELECT - MIN ( DISTINCT + - 98 ) FROM tab0
----
98

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-859
SELECT CAST( - 88 AS SIGNED ) col0 FROM tab1
----
-88
-88
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-859
SELECT CAST ( - 88 AS INTEGER ) col0 FROM tab1
----
-88
-88
-88

query I rowsort
SELECT ALL col1 * - col0 + col0 AS col1 FROM tab1
----
-340
-4186
-663

query I rowsort
SELECT DISTINCT 97 + + col1 * - 94 + - col0 AS col0 FROM tab0 AS cor0
----
-1964
-7532
-94

query II rowsort
SELECT DISTINCT - 29 AS col2, ( - 2 ) FROM tab1 AS cor0 WHERE NOT - 89 - + - col2 NOT IN ( + col1 * - + col2, - ( ( - col2 ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-863
SELECT + + col0 DIV col2 + - col2 FROM tab1 AS cor0
----
-58
-67
-96

skipif mysql # not compatible
query I rowsort label-863
SELECT + + col0 / col2 + - col2 FROM tab1 AS cor0
----
-58
-67
-96

query I rowsort
SELECT + + 21 FROM tab2 AS cor0 WHERE col0 * - 10 + + 58 IS NULL
----

query I rowsort
SELECT 67 + 84 FROM tab2 AS cor0
----
151
151
151

onlyif mysql # aggregate syntax: 
query I rowsort label-866
SELECT ALL 19 + 2 - - MIN( + col2 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-866
SELECT ALL 19 + 2 - - MIN ( + col2 ) FROM tab1 AS cor0
----
80

query I rowsort
SELECT ALL col1 / 20 * - 41 FROM tab0 AS cor0 WHERE NULL <> + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-868
SELECT ALL - 71 AS col0, - COUNT( * ) FROM tab1 cor0
----
-71
-3

skipif mysql # not compatible
query II rowsort label-868
SELECT ALL - 71 AS col0, - COUNT ( * ) FROM tab1 cor0
----
-71
-3

query I rowsort
SELECT DISTINCT - 25 + - - col0 + col0 AS col1 FROM tab0 AS cor0
----
149
169
5

query I rowsort
SELECT ALL col2 + 19 AS col0 FROM tab2 AS cor0
----
42
59
77

onlyif mysql # aggregate syntax: 
query I rowsort label-871
SELECT ALL - - MIN( DISTINCT col1 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
5

skipif mysql # not compatible
query I rowsort label-871
SELECT ALL - - MIN ( DISTINCT col1 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
5

query I rowsort
SELECT ALL - + 55 + + col1 FROM tab2 AS cor0
----
-4
12
22

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-874
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-875
SELECT ALL CAST( NULL AS SIGNED ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-875
SELECT ALL CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT ALL + 55 * + + COUNT( * ) FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-876
SELECT ALL + 55 * + + COUNT ( * ) FROM tab1
----
165

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> ( + 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-878
SELECT DISTINCT + MAX( col1 ) * - 82 FROM tab0
----
-6642

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT + MAX ( col1 ) * - 82 FROM tab0
----
-6642

onlyif mysql # aggregate syntax: 
query I rowsort label-879
SELECT ALL - - COUNT( * ) * + 57 * - 0 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-879
SELECT ALL - - COUNT ( * ) * + 57 * - 0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - 70 * - + col0 FROM tab0 AS cor0
----
1050
6090
6790

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-881
SELECT ALL + MIN( ALL + - 22 ) DIV 71 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-881
SELECT ALL + MIN ( ALL + - 22 ) / 71 FROM tab2 AS cor0
----
0

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

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

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

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

query I rowsort
SELECT DISTINCT - 73 + + col2 * ( + - 55 ) FROM tab2 AS cor0 WHERE NOT + 45 IS NOT NULL
----

query I rowsort
SELECT + 17 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT + - 29 + + + 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 98 + - - col0 / + + 58 * - + col1 * + col1 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - + ( + col0 ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-890
SELECT + CAST( NULL AS DECIMAL ), col1 / CAST( col0 AS SIGNED ) * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-890
SELECT + CAST ( NULL AS REAL ), col1 / CAST ( col0 AS INTEGER ) * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-891
SELECT + SUM( ALL - col1 ) * - 82 AS col0 FROM tab2 cor0
----
15990

skipif mysql # not compatible
query I rowsort label-891
SELECT + SUM ( ALL - col1 ) * - 82 AS col0 FROM tab2 cor0
----
15990

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - + col0 * - col0 + + 81 = NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT MAX( - 17 ) * + - COUNT( DISTINCT + - col1 ) AS col2 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-895
SELECT MAX ( - 17 ) * + - COUNT ( DISTINCT + - col1 ) AS col2 FROM tab1
----
51

query I rowsort
SELECT DISTINCT col1 * + + col0 * + - 91 AS col1 FROM tab2
----
-213486
-448448
-457275

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

query I rowsort
SELECT ALL - 28 * + 27 + + - col1 FROM tab1 WHERE NOT NULL BETWEEN - - col0 AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 92 * + 21 col0 FROM tab2
----
1932
1932
1932

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-900
SELECT + - col2 * + col1 + - col1 AS col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
-1358
NULL
-300
NULL
-3243
NULL

skipif mysql # not compatible
query II rowsort label-900
SELECT + - col2 * + col1 + - col1 AS col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
-1358
NULL
-300
NULL
-3243
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-901
SELECT + + 92 + - CAST( - col1 AS SIGNED ) AS col1, + col0 - + col1 + + col2 + - - 25 col1 FROM tab0 cor0
----
113
101
173
6
93
220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-901
SELECT + + 92 + - CAST ( - col1 AS INTEGER ) AS col1, + col0 - + col1 + + col2 + - - 25 col1 FROM tab0 cor0
----
113
101
173
6
93
220

onlyif mysql # aggregate syntax: 
query I rowsort label-902
SELECT + - COUNT( * ) + - ( - COUNT( * ) ) + + 31 AS col1 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-902
SELECT + - COUNT ( * ) + - ( - COUNT ( * ) ) + + 31 AS col1 FROM tab0 AS cor0
----
31

query I rowsort
SELECT - + col1 + - - col1 + ( + - 42 ) + - col2 FROM tab2 AS cor0
----
-100
-65
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-904
SELECT - + col1 + - - col0 * 57 + 78 DIV col1 DIV - 99 FROM tab1 AS cor0
----
2893
4840
5140

skipif mysql # not compatible
query I rowsort label-904
SELECT - + col1 + - - col0 * 57 + 78 / col1 / - 99 FROM tab1 AS cor0
----
2893
4840
5140

onlyif mysql # DIV for integer division: 
query II rowsort label-905
SELECT + col1, 50 DIV + - 61 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-905
SELECT + col1, 50 / + - 61 FROM tab1 AS cor0
----
14
0
47
0
5
0

query II rowsort
SELECT ALL - + 32, 6 AS col2 FROM tab1 AS cor0
----
-32
6
-32
6
-32
6

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 29 / col0 AS col1 FROM tab1 WHERE NULL NOT IN ( - col0, 37 )
----

query I rowsort
SELECT col2 * - col2 + col2 - + col0 + - 43 * - + col1 - - + col2 * 75 + - 51 AS col2 FROM tab0 AS cor0
----
-2382
1425
4780

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-912
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + - col1 > + - ( - + 62 ) * - + CAST( NULL AS DECIMAL ) + - ( - 11 )
----
0

skipif mysql # not compatible
query I rowsort label-912
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + - col1 > + - ( - + 62 ) * - + CAST ( NULL AS REAL ) + - ( - 11 )
----
0

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( 13 * - 52 = + - 74 * + 73 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 28 * 61 col1 FROM tab2
----
1708

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-916
SELECT ALL ( - - 47 ) DIV 56 + + ( - 2 ) + - - col0 DIV col1 FROM tab1
----
-1
1
15

skipif mysql # not compatible
query I rowsort label-916
SELECT ALL ( - - 47 ) / 56 + + ( - 2 ) + - - col0 / col1 FROM tab1
----
-1
1
15

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-918
SELECT + - 79 * - - ( COUNT( * ) ) FROM tab2 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-918
SELECT + - 79 * - - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-237

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 33 <= - - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-921
SELECT DISTINCT COUNT( * ) * - 45 + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-921
SELECT DISTINCT COUNT ( * ) * - 45 + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-132

query I rowsort
SELECT 71 + + col2 FROM tab1 AS cor0
----
130
139
167

query I rowsort
SELECT ALL 97 + - 65 AS col2 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT DISTINCT + + col1 * + + 4 AS col1 FROM tab0 cor0
----
324
4
84

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 93 * - col0 <> + + 69 * - - 73 + col2 / + + 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-927
SELECT DISTINCT 47 + - 35, - 12 * - COUNT( * ) AS col1 FROM tab1
----
12
36

skipif mysql # not compatible
query II rowsort label-927
SELECT DISTINCT 47 + - 35, - 12 * - COUNT ( * ) AS col1 FROM tab1
----
12
36

onlyif mysql # DIV for integer division: 
query II rowsort label-928
SELECT ALL 17 DIV - col2 AS col2, 38 * - col2 AS col0 FROM tab0
----
-1
-380
0
-1786
0
-3762

skipif mysql # not compatible
query II rowsort label-928
SELECT ALL 17 / - col2 AS col2, 38 * - col2 AS col0 FROM tab0
----
-1
-380
0
-1786
0
-3762

query I rowsort
SELECT ALL + col0 AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-930
SELECT ALL + 61 DIV 75 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL + 61 / 75 AS col2 FROM tab0
----
0
0
0

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

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

query II rowsort
SELECT 25 * - col2, col0 AS col2 FROM tab2
----
-1000
64
-1450
75
-575
46

onlyif mysql # aggregate syntax: 
query I rowsort label-933
SELECT DISTINCT + SUM( DISTINCT - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-933
SELECT DISTINCT + SUM ( DISTINCT - col2 ) FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT MIN( DISTINCT + ( + col0 ) ) col0 FROM tab0
----
15

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

query I rowsort
SELECT DISTINCT - - 3 + - col2 FROM tab0 AS cor0
----
-44
-7
-96

query I rowsort
SELECT col1 + 40 + - ( col2 ) AS col0 FROM tab2
----
49
68
77

onlyif mysql # aggregate syntax: 
query II rowsort label-937
SELECT COUNT( DISTINCT - 96 ) + + 61 col2, COUNT( * ) + + - COUNT( * ) FROM tab0
----
62
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-937
SELECT COUNT ( DISTINCT - 96 ) + + 61 col2, COUNT ( * ) + + - COUNT ( * ) FROM tab0
----
62
0

query I rowsort
SELECT 33 + + 0 AS col0 FROM tab2
----
33
33
33

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 29, - 28 col1 FROM tab2 AS cor0
----
29
-28
29
-28
29
-28

query I rowsort
SELECT - col1 + + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT COUNT( * ) * - 36 - MAX( DISTINCT + - col1 ) FROM tab0 cor0 WHERE NOT - col2 + - col0 BETWEEN col2 + - col2 + + col1 * - + col2 - + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT COUNT ( * ) * - 36 - MAX ( DISTINCT + - col1 ) FROM tab0 cor0 WHERE NOT - col2 + - col0 BETWEEN col2 + - col2 + + col1 * - + col2 - + col0 AND NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= col2 + - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 ) <> NULL
----

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 / - + col1 BETWEEN - col1 AND col0
----
97
1
99

query II rowsort
SELECT - col0 * 94 AS col1, - 13 FROM tab0 cor0
----
-1410
-13
-8178
-13
-9118
-13

query I rowsort
SELECT ALL - col2 * - col1 * + col0 FROM tab1 AS cor0
----
25075
290836
68544

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

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

query I rowsort
SELECT DISTINCT 42 * - - 64 + col2 + + + col1 * col1 AS col2 FROM tab0
----
2788
3139
9296

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

onlyif mysql # aggregate syntax: 
query I rowsort label-957
SELECT DISTINCT - COUNT( * ) + - + ( 81 ) AS col2 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-957
SELECT DISTINCT - COUNT ( * ) + - + ( 81 ) AS col2 FROM tab1 AS cor0
----
-84

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 * + col1 <> NULL
----

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

query I rowsort
SELECT 6 * 36 + + 93 FROM tab2
----
309
309
309

query I rowsort
SELECT + 92 + - 36 FROM tab2
----
56
56
56

query II rowsort
SELECT ALL col2, - 72 AS col2 FROM tab0
----
10
-72
47
-72
99
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT MIN( + 74 ) * - + COUNT( * ) FROM tab2, tab1 AS cor0
----
-666

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT MIN ( + 74 ) * - + COUNT ( * ) FROM tab2, tab1 AS cor0
----
-666

onlyif mysql # DIV for integer division: 
query II rowsort label-965
SELECT ALL + col2, 94 DIV - 78 + + col0 FROM tab0
----
10
86
47
14
99
96

skipif mysql # not compatible
query II rowsort label-965
SELECT ALL + col2, 94 / - 78 + + col0 FROM tab0
----
10
86
47
14
99
96

query I rowsort
SELECT DISTINCT - ( + - 66 ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-967
SELECT col0 DIV - - col1 + + 96 - + - CAST( + col0 AS SIGNED ) FROM tab0 cor0
----
111
187
290

skipif mysql # not compatible
query I rowsort label-967
SELECT col0 / - - col1 + + 96 - + - CAST ( + col0 AS INTEGER ) FROM tab0 cor0
----
111
187
290

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

skipif mysql # not compatible
query I rowsort label-968
SELECT DISTINCT - + COUNT ( * ) + + MAX ( CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
44

query I rowsort
SELECT ALL - ( - - 18 ) AS col1 FROM tab0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + 59 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT ALL - SUM( + - col1 ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-971
SELECT ALL - SUM ( + - col1 ) AS col1 FROM tab2
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-972
SELECT DISTINCT COUNT( * ) DIV + 23, 72 AS col0 FROM tab0
----
0
72

skipif mysql # not compatible
query II rowsort label-972
SELECT DISTINCT COUNT ( * ) / + 23, 72 AS col0 FROM tab0
----
0
72

onlyif mysql # aggregate syntax: 
query II rowsort label-973
SELECT ALL COUNT( + 89 ), COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-973
SELECT ALL COUNT ( + 89 ), COUNT ( * ) FROM tab1
----
3
3

query I rowsort
SELECT - + col0 * + 56 FROM tab2 AS cor0
----
-2576
-3584
-4200

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

query II rowsort
SELECT ALL - 69 * - - 85 AS col0, col2 AS col1 FROM tab0 AS cor0
----
-5865
10
-5865
47
-5865
99

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

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT NULL IS NOT NULL ) )
----
-51
-67
-77

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 53 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-984
SELECT ALL COUNT( * ) AS col0, - ( + ( - 69 ) ) FROM tab2
----
3
69

skipif mysql # not compatible
query II rowsort label-984
SELECT ALL COUNT ( * ) AS col0, - ( + ( - 69 ) ) FROM tab2
----
3
69

query II rowsort
SELECT DISTINCT col2 * - - ( + - 83 ), - 47 * + col1 AS col0 FROM tab1
----
-4897
-235
-5644
-2209
-7968
-658

query I rowsort
SELECT DISTINCT + ( + + col0 ) FROM tab1
----
51
85
91

query I rowsort
SELECT 17 * - 49 AS col2 FROM tab0 AS cor0
----
-833
-833
-833

query II rowsort
SELECT ALL + 77 AS col0, 62 FROM tab1, tab0 AS cor0
----
18 values hashing to 4ab56919d58e2c5a1f1c6402dd63a64b

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

query I rowsort
SELECT DISTINCT - 61 - - 56 AS col0 FROM tab2, tab0 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT ALL col2 / - 2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST( NULL AS SIGNED ) / + ( - - col0 ), 29 )
----

skipif mysql # not compatible
query I rowsort label-991
SELECT ALL col2 / - 2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + CAST ( NULL AS INTEGER ) / + ( - - col0 ), 29 )
----

query I rowsort
SELECT - + col1 + - 87 FROM tab0 cor0
----
-108
-168
-88

query I rowsort
SELECT ALL - 79 * + 91 FROM tab1 AS cor0
----
-7189
-7189
-7189

query II rowsort
SELECT - + col2 + - + col1 + - + 92 * col0, - 88 AS col2 FROM tab1 AS cor0
----
-4802
-88
-7884
-88
-8487
-88

query I rowsort
SELECT DISTINCT 33 + - 11 FROM tab0 cor0
----
22

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-998
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 51 + + CAST( NULL AS SIGNED ) < - - 25 / - 26 + + col2
----

skipif mysql # not compatible
query III rowsort label-998
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 51 + + CAST ( NULL AS INTEGER ) < - - 25 / - 26 + + col2
----

query I rowsort
SELECT 94 * + 13 AS col1 FROM tab0 AS cor0
----
1222
1222
1222

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

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

query I rowsort
SELECT DISTINCT + 18 * + col1 AS col2 FROM tab1
----
252
846
90

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

query I rowsort
SELECT + col1 * - - 35 AS col0 FROM tab0
----
2835
35
735

onlyif mysql # DIV for integer division: 
query I rowsort label-1004
SELECT 84 DIV 58 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1004
SELECT 84 / 58 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT 36 AS col2 FROM tab0
----
36

query I rowsort
SELECT - col0 - + col0 + + 65 FROM tab1
----
-105
-117
-37

query I rowsort
SELECT 25 - + 44 AS col1 FROM tab2
----
-19
-19
-19

query I rowsort
SELECT ALL - ( + - 65 ) FROM tab2 AS cor0
----
65
65
65

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1011
SELECT ALL + MAX( DISTINCT + col2 ) AS col2 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-1011
SELECT ALL + MAX ( DISTINCT + col2 ) AS col2 FROM tab2
----
58

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

query I rowsort
SELECT - 46 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 69 > NULL
----

query I rowsort
SELECT DISTINCT - 21 * + - col2 FROM tab0 cor0
----
2079
210
987

query I rowsort
SELECT DISTINCT + 51 * - - col0 FROM tab0 AS cor0
----
4437
4947
765

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1017
SELECT - CAST( 61 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-61
-61
-61

skipif mysql # not compatible
query I rowsort label-1017
SELECT - CAST ( 61 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-61
-61
-61

query I rowsort
SELECT 73 FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND NOT - 6 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1019
SELECT + 39 DIV - SUM( col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1019
SELECT + 39 / - SUM ( col1 ) FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT col0 * + + 32 * - col0 AS col2 FROM tab2 AS cor0
----
-131072
-180000
-67712

query I rowsort
SELECT 68 * - + col1 * ( + + col0 ) AS col1 FROM tab1
----
-28900
-290836
-48552

query I rowsort
SELECT col1 * ( + - 89 ) AS col2 FROM tab2
----
-4539
-5963
-6853

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1024
SELECT * FROM tab0 WHERE NOT CAST( NULL AS DECIMAL ) + - 10 <= NULL
----

skipif mysql # not compatible
query III rowsort label-1024
SELECT * FROM tab0 WHERE NOT CAST ( NULL AS REAL ) + - 10 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1025
SELECT ALL - SUM( ALL - 90 ) FROM tab2
----
270

skipif mysql # not compatible
query I rowsort label-1025
SELECT ALL - SUM ( ALL - 90 ) FROM tab2
----
270

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - ( - - 10 ) = - col1 / + + 78
----

query I rowsort
SELECT - ( - + col1 ) + - - col0 - - + 51 + - + col1 - + - 42 * - + col2 AS col0 FROM tab0 AS cor0
----
-1908
-282
-4010

query I rowsort
SELECT + col0 * 56 + - 88 + + col1 AS col1 FROM tab2 AS cor0
----
2539
3573
4179

onlyif mysql # aggregate syntax: 
query I rowsort label-1029
SELECT - 60 + - - COUNT( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-1029
SELECT - 60 + - - COUNT ( DISTINCT + col1 ) AS col0 FROM tab2 AS cor0
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-1030
SELECT ALL - SUM( + ( + col0 ) ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - SUM ( + ( + col0 ) ) FROM tab2
----
-185

query II rowsort
SELECT DISTINCT 54, + 94 AS col1 FROM tab1
----
54
94

query I rowsort
SELECT ALL - 31 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN 60 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1034
SELECT DISTINCT + - col1 DIV 95 + + col1 - col1 + col1 + - - 41 + + col1 FROM tab2 AS cor0
----
143
175
195

skipif mysql # not compatible
query I rowsort label-1034
SELECT DISTINCT + - col1 / 95 + + col1 - col1 + col1 + - - 41 + + col1 FROM tab2 AS cor0
----
143
175
195

onlyif mysql # aggregate syntax: 
query I rowsort label-1035
SELECT ALL + 28 + + MIN( DISTINCT - col1 ) - + + ( - 29 ) FROM tab0 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1035
SELECT ALL + 28 + + MIN ( DISTINCT - col1 ) - + + ( - 29 ) FROM tab0 cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1036
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + 83 * + 68 + - + col0, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1036
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) FROM tab1 cor0 WHERE ( NULL ) NOT IN ( + 83 * + 68 + - + col0, col2 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 - 11 - - + 16 col1 FROM tab0 AS cor0
----
-25
-25
-25

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

skipif mysql # not compatible
query II rowsort label-1038
SELECT DISTINCT col1 + 67 * - CAST ( NULL AS REAL ) AS col1, col2 AS col0 FROM tab0 AS cor0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT - 1 - + col0 - - ( + col2 ) AS col1 FROM tab1 AS cor0
----
-24
-27
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1040
SELECT ALL + - 66 - + + 26 + + - 72 + CAST( NULL AS SIGNED ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL + - 66 - + + 26 + + - 72 + CAST ( NULL AS INTEGER ) * - col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT - col0 * 53 AS col2 FROM tab2 WHERE - 53 >= + col2
----

query I rowsort
SELECT 46 + - 90 FROM tab2
----
-44
-44
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-1044
SELECT col0 + - col2 DIV - col1 AS col0 FROM tab1
----
57
92
96

skipif mysql # not compatible
query I rowsort label-1044
SELECT col0 + - col2 / - col1 AS col0 FROM tab1
----
57
92
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1046
SELECT ALL COUNT( * ) * - - 99 AS col2 FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL COUNT ( * ) * - - 99 AS col2 FROM tab1
----
297

query I rowsort
SELECT - col2 * + col1 + - + 66 AS col0 FROM tab2 AS cor0
----
-1239
-3146
-3952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1049
SELECT DISTINCT - + MAX( - 50 ) FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT - + MAX ( - 50 ) FROM tab0 cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT + - 55 * MIN( DISTINCT + - col2 ) FROM tab0 AS cor0
----
5445

skipif mysql # not compatible
query I rowsort label-1050
SELECT + - 55 * MIN ( DISTINCT + - col2 ) FROM tab0 AS cor0
----
5445

query I rowsort
SELECT + 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL - 35 * 87 FROM tab1
----
-3045
-3045
-3045

query I rowsort
SELECT - + 35 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT ALL - - col0 * - 61 + - 77 FROM tab2 AS cor0
----
-2883
-3981
-4652

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

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

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE 57 * - col0 IS NOT NULL
----
-15
-87
-97

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 62 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT + col2 * col2 * + col2 + + - 68 - - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL OR NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1062
SELECT DISTINCT - SUM( - + 51 ) AS col1 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - SUM ( - + 51 ) AS col1 FROM tab1
----
153

query II rowsort
SELECT ALL col1, + col2 FROM tab0
----
1
99
21
10
81
47

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1065
SELECT DISTINCT + 56 DIV - + col1 FROM tab1
----
-1
-11
-4

skipif mysql # not compatible
query I rowsort label-1065
SELECT DISTINCT + 56 / - + col1 FROM tab1
----
-1
-11
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( + + col0 ) * + col2 col1 FROM tab0
----
-658
-860
-9504

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1068
SELECT DISTINCT 97 + - MAX( ALL - + 51 ) FROM tab2
----
148

skipif mysql # not compatible
query I rowsort label-1068
SELECT DISTINCT 97 + - MAX ( ALL - + 51 ) FROM tab2
----
148

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1070
SELECT + COUNT( * ) AS col2, - MIN( + - col2 ) AS col2 FROM tab1
----
3
96

skipif mysql # not compatible
query II rowsort label-1070
SELECT + COUNT ( * ) AS col2, - MIN ( + - col2 ) AS col2 FROM tab1
----
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1071
SELECT ALL - + COUNT( * ) + + 98 FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-1071
SELECT ALL - + COUNT ( * ) + + 98 FROM tab2 AS cor0
----
95

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

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

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

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

query I rowsort
SELECT col2 FROM tab2 WHERE NULL < + col2 + + 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT - 97 + - + SUM( DISTINCT col1 ) - - 50 col1 FROM tab1
----
-113

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1076
SELECT - 97 + - + SUM ( DISTINCT col1 ) - - 50 col1 FROM tab1
----
-113

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT MIN( - + col2 ) + - - COUNT( * ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1077
SELECT MIN ( - + col2 ) + - - COUNT ( * ) FROM tab1 AS cor0
----
-93

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 III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 < NULL
----

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

query II rowsort
SELECT ALL - col2 + + col0 AS col1, + 4 * - col2 AS col0 FROM tab0 AS cor0
----
-2
-396
-32
-188
77
-40

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT ( + SUM( - 12 ) ) AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1084
SELECT ( + SUM ( - 12 ) ) AS col2 FROM tab2 AS cor0
----
-36

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1085
SELECT * FROM tab2 WHERE NOT - - CAST( NULL AS SIGNED ) - - - ( - ( 65 ) ) * - 32 / + 57 * - col2 BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1085
SELECT * FROM tab2 WHERE NOT - - CAST ( NULL AS INTEGER ) - - - ( - ( 65 ) ) * - 32 / + 57 * - col2 BETWEEN + + col2 AND NULL
----

query II rowsort
SELECT DISTINCT - 66 AS col0, - col0 FROM tab0
----
-66
-15
-66
-87
-66
-97

query I rowsort
SELECT ALL 0 * + - col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 94 FROM tab2 AS cor0 WHERE NOT col2 + col2 = + col1
----
-94

query III rowsort
SELECT * FROM tab0 WHERE - col0 * - ( - 44 ) + - col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1090
SELECT 99 + + MIN( - col2 + + 47 * + col1 ) AS col1 FROM tab2
----
2473

skipif mysql # not compatible
query I rowsort label-1090
SELECT 99 + + MIN ( - col2 + + 47 * + col1 ) AS col1 FROM tab2
----
2473

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT DISTINCT + 75 DIV col0 - - col2 AS col0 FROM tab1
----
59
68
97

skipif mysql # not compatible
query I rowsort label-1091
SELECT DISTINCT + 75 / col0 - - col2 AS col0 FROM tab1
----
59
68
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1092
SELECT col0 + col2 DIV + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-1092
SELECT col0 + col2 / + col0 FROM tab2
----
46
64
75

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

query I rowsort
SELECT + 66 + + 87 FROM tab0 WHERE col0 * + col2 NOT BETWEEN ( - 19 ) AND 41
----
153
153
153

query I rowsort
SELECT DISTINCT + col0 + + 26 FROM tab0
----
113
123
41

query I rowsort
SELECT ALL 39 + col1 * col0 FROM tab1
----
4316
464
753

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1099
SELECT ALL + COUNT ( * ) * COUNT ( DISTINCT 10 ) FROM tab1
----
3

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

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

query I rowsort
SELECT ALL 18 * col2 AS col0 FROM tab1
----
1062
1224
1728

query I rowsort
SELECT + 29 FROM tab0 WHERE + col2 * - 88 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1103
SELECT * FROM tab2 WHERE ( - col1 + col1 / CAST( col1 + 81 * col0 AS SIGNED ) ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-1103
SELECT * FROM tab2 WHERE ( - col1 + col1 / CAST ( col1 + 81 * col0 AS INTEGER ) ) IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1104
SELECT DISTINCT 82 * + col2 FROM tab1 WHERE NOT - col1 + ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
4838
5576
7872

skipif mysql # not compatible
query I rowsort label-1104
SELECT DISTINCT 82 * + col2 FROM tab1 WHERE NOT - col1 + ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
4838
5576
7872

query I rowsort
SELECT ALL + 37 FROM tab1 WHERE NOT ( - 13 ) IS NULL
----
37
37
37

query I rowsort
SELECT - col0 - ( - 25 + col2 * - col2 ) AS col1 FROM tab1
----
3421
4558
9190

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 20 - - col0 NOT IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT - 22 + + col2 DIV + col2 FROM tab1
----
-21
-21
-21

skipif mysql # not compatible
query I rowsort label-1109
SELECT - 22 + + col2 / + col2 FROM tab1
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT ALL + 80 * 40 + COUNT( * ) AS col1 FROM tab2 WHERE 32 IS NOT NULL
----
3203

skipif mysql # not compatible
query I rowsort label-1110
SELECT ALL + 80 * 40 + COUNT ( * ) AS col1 FROM tab2 WHERE 32 IS NOT NULL
----
3203

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL - 85 * - ( COUNT( DISTINCT ( - col0 ) ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
255

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL - 85 * - ( COUNT ( DISTINCT ( - col0 ) ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
255

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + + 61 > - col2 * + 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 94 * col1 AS col1 FROM tab0
----
1974
7614
94

query III rowsort
SELECT * FROM tab1 WHERE col2 <= - 98
----

query I rowsort
SELECT DISTINCT - 61 + col2 FROM tab1 cor0
----
-2
35
7

query I rowsort
SELECT 75 * + col1 + 87 FROM tab2 AS cor0
----
3912
5112
5862

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

query I rowsort
SELECT + 40 + 44 FROM tab0 cor0
----
84
84
84

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 cor0 WHERE col0 < col2 * col2
----
10
47
99

query I rowsort
SELECT DISTINCT + 3 FROM tab2 AS cor0 CROSS JOIN tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 84 * col0 - col2 col1 FROM tab1
----
4188
7081
7576

onlyif mysql # DIV for integer division: 
query I rowsort label-1123
SELECT col2 DIV 78 - + 94 * 11 col1 FROM tab2
----
-1034
-1034
-1034

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1123
SELECT col2 / 78 - + 94 * 11 col1 FROM tab2
----
-1034
-1034
-1034

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT ALL MIN( ALL - 90 ) + 11 AS col1 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1125
SELECT ALL MIN ( ALL - 90 ) + 11 AS col1 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT col2 * + col0 - - 41 * col0 AS col1 FROM tab0 AS cor0
----
1320
13580
4437

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( col0 ) <> ( 84 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - + 34 + - 28 FROM tab0 AS cor0
----
-62
-62
-62

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

query I rowsort
SELECT + 71 + + col0 * - col2 FROM tab1 AS cor0
----
-4825
-4944
-6117

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

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

query I rowsort
SELECT ( 65 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 58 * col0 AND col2
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 WHERE ( + col2 ) NOT IN ( - col2 * - col2 )
----
10
47
99

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

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

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

query I rowsort
SELECT ALL - 69 * - - col1 AS col2 FROM tab1
----
-3243
-345
-966

query I rowsort
SELECT DISTINCT ( - 33 ) FROM tab0
----
-33

query I rowsort
SELECT ALL + 43 AS col0 FROM tab0
----
43
43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1140
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / - CAST( NULL AS SIGNED ) NOT IN ( 37 * + 15 )
----
0

skipif mysql # not compatible
query I rowsort label-1140
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 / - CAST ( NULL AS INTEGER ) NOT IN ( 37 * + 15 )
----
0

query I rowsort
SELECT - col1 * col1 * + col2 AS col2 FROM tab2 cor0
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT ALL - CAST( + 62 AS SIGNED ) * COUNT( * ) FROM tab2 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - CAST ( + 62 AS INTEGER ) * COUNT ( * ) FROM tab2 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-1143
SELECT DISTINCT + COUNT( ALL - 23 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-1143
SELECT DISTINCT + COUNT ( ALL - 23 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT + COUNT( * ) * + 30 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
270

skipif mysql # not compatible
query I rowsort label-1144
SELECT + COUNT ( * ) * + 30 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-1145
SELECT - SUM( ALL col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1145
SELECT - SUM ( ALL col1 ) FROM tab2
----
-195

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

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1151
SELECT + + ( - COUNT ( - CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) ) ) AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT + 90 * + COUNT( + col2 ) + COUNT( * ) FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + 90 * + COUNT ( + col2 ) + COUNT ( * ) FROM tab2 cor0
----
273

query I rowsort
SELECT col1 + + 45 AS col0 FROM tab2 AS cor0
----
112
122
96

query I rowsort
SELECT ALL - - 65 + + + ( + col0 ) FROM tab0 AS cor0
----
152
162
80

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

query I rowsort
SELECT col1 + + col1 AS col2 FROM tab2 AS cor0 WHERE + 47 / 50 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1157
SELECT * FROM tab2 AS cor0 WHERE ( CAST( NULL AS SIGNED ) ) NOT BETWEEN 63 AND - 79
----

skipif mysql # not compatible
query III rowsort label-1157
SELECT * FROM tab2 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) ) NOT BETWEEN 63 AND - 79
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1158
SELECT + 33 + + CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-1158
SELECT + 33 + + CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
36

query I rowsort
SELECT ALL - col1 + 50 FROM tab2 AS cor0
----
-1
-17
-27

query I rowsort
SELECT + 42 + col0 AS col2 FROM tab1 AS cor0
----
127
133
93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1161
SELECT DISTINCT + + col0 + + + 49 + CAST( col1 AS SIGNED ) + 25 DIV col0 * 79 FROM tab1 AS cor0
----
114
139
187

skipif mysql # not compatible
query I rowsort label-1161
SELECT DISTINCT + + col0 + + + 49 + CAST ( col1 AS INTEGER ) + 25 / col0 * 79 FROM tab1 AS cor0
----
114
139
187

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT DISTINCT 20 * - + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-1164
SELECT DISTINCT 20 * - + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
-180

query I rowsort
SELECT ALL - col0 * col0 FROM tab2 WHERE NOT ( 73 - + 92 ) IS NULL
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * 89 AS col0, 87 col2 FROM tab2
----
2047
87
3560
87
5162
87

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> - 18 + - 50
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * - 17 IN ( 84 + - 59 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1170
SELECT 85 DIV - 73 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1170
SELECT 85 / - 73 AS col0 FROM tab1
----
-1
-1
-1

query I rowsort
SELECT ALL - ( - 51 ) FROM tab2 WHERE - 42 BETWEEN ( - col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + ( col0 ) + 94 - col0 AS col2 FROM tab1
----
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + col1 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN + col1 AND NULL
----
3

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

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

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

query I rowsort
SELECT DISTINCT + 14 FROM tab2 cor0
----
14

query I rowsort
SELECT + 53 * + col1 + ( col1 ) FROM tab0 AS cor0
----
1134
4374
54

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 27 >= + + col2 / 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1181
SELECT DISTINCT CAST( 25 AS SIGNED ) * - + col1 + + - col1 AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

skipif mysql # not compatible
query I rowsort label-1181
SELECT DISTINCT CAST ( 25 AS INTEGER ) * - + col1 + + - col1 AS col2 FROM tab2 AS cor0
----
-1326
-1742
-2002

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

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

query I rowsort
SELECT ALL - 12 * + + col1 FROM tab1 cor0
----
-168
-564
-60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( col1 - - 67, + 23 )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT DISTINCT - - ( + - col0 ) DIV + ( - 41 ) AS col2 FROM tab0 AS cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-1186
SELECT DISTINCT - - ( + - col0 ) / + ( - 41 ) AS col2 FROM tab0 AS cor0
----
0
2

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT ALL - SUM( col2 ) - + COUNT( * ) FROM tab1 WHERE - - 12 >= ( + - col0 + + 50 )
----
-226

skipif mysql # not compatible
query I rowsort label-1188
SELECT ALL - SUM ( col2 ) - + COUNT ( * ) FROM tab1 WHERE - - 12 >= ( + - col0 + + 50 )
----
-226

query III rowsort
SELECT - col1 AS col2, - col1, + 51 AS col0 FROM tab0
----
9 values hashing to 6bc9e675af93a8919c63e095a0de8821

query II rowsort
SELECT + col1 AS col1, col0 * - col2 FROM tab1
----
14
-4896
47
-6188
5
-5015

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1191
SELECT - col0, - 88 - + ( col2 ) + col1 / - - CAST ( NULL AS INTEGER ) + col2 col0 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1192
SELECT ALL 42 AS col1, + MAX( DISTINCT - 55 ) AS col0 FROM tab0
----
42
-55

skipif mysql # not compatible
query II rowsort label-1192
SELECT ALL 42 AS col1, + MAX ( DISTINCT - 55 ) AS col0 FROM tab0
----
42
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1193
SELECT DISTINCT + col1 DIV + + col2 * - 9 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT + col1 / + + col2 * - 9 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col1 + - col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NOT 89 >= ( col1 + + 64 )
----
49

onlyif mysql # DIV for integer division: 
query II rowsort label-1195
SELECT col1, - col1 DIV - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-1195
SELECT col1, - col1 / - col2 FROM tab1 AS cor0
----
14
0
47
0
5
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 15 + - 84 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 WHERE NOT - 93 + + col0 * col1 / + col0 + - col0 / col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT ALL - 57 + - COUNT( * ) FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1198
SELECT ALL - 57 + - COUNT ( * ) FROM tab1 cor0
----
-60

query I rowsort
SELECT ALL - 35 * + 97 AS col0 FROM tab1 AS cor0 WHERE 81 * + - col0 IN ( - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1200
SELECT ALL AVG ( ALL + CAST( NULL AS SIGNED ) ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 + CAST( NULL AS SIGNED ) * + 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT ALL AVG ( ALL + CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 NOT IN ( - col2 + CAST ( NULL AS INTEGER ) * + 61 )
----
NULL

query I rowsort
SELECT + col1 + 70 AS col0 FROM tab0
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1202
SELECT DISTINCT - ( MIN( + + 67 ) ) AS col0 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-1202
SELECT DISTINCT - ( MIN ( + + 67 ) ) AS col0 FROM tab2
----
-67

query II rowsort
SELECT ALL col1 AS col1, + col2 * + - col2 AS col1 FROM tab2
----
51
-529
67
-3364
77
-1600

query I rowsort
SELECT + col1 + + + col1 AS col0 FROM tab0
----
162
2
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1205
SELECT ALL ( - + 40 ) + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1205
SELECT ALL ( - + 40 ) + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 22 + + col2 - - ( + - col2 ) AS col2 FROM tab1 cor0
----
27
36
69

query II rowsort
SELECT - col2 AS col0, col0 + col0 - - 50 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 AND NULL
----

query I rowsort
SELECT DISTINCT - col0 - - col1 + - 17 FROM tab0 AS cor0
----
-113
-83
49

query I rowsort
SELECT ALL - + 9 - + - 35 AS col0 FROM tab2 AS cor0
----
26
26
26

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1211
SELECT - MAX( 16 ) AS col0 FROM tab1 WHERE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) = + 88 + + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-1211
SELECT - MAX ( 16 ) AS col0 FROM tab1 WHERE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) = + 88 + + 89
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1212
SELECT - + COUNT( * ) / + - MAX( DISTINCT - + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1212
SELECT - + COUNT ( * ) / + - MAX ( DISTINCT - + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL - 13 * - + col1 FROM tab0 AS cor0
----
1053
13
273

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1217
SELECT DISTINCT - 55 DIV CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-1217
SELECT DISTINCT - 55 / CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
-1
-2
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1218
SELECT ALL ( ( 19 ) ) DIV + 35 * + 53 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL ( ( 19 ) ) / + 35 * + 53 AS col2 FROM tab1 AS cor0
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1222
SELECT ALL ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 WHERE + col2 IS NULL
----

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

query II rowsort
SELECT ALL col1, 66 FROM tab0 AS cor0
----
1
66
21
66
81
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT DISTINCT + COUNT( DISTINCT - - 15 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1226
SELECT DISTINCT + COUNT ( DISTINCT - - 15 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1227
SELECT 43, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
43
NULL
43
NULL
43
NULL

skipif mysql # not compatible
query II rowsort label-1227
SELECT 43, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
43
NULL
43
NULL
43
NULL

query I rowsort
SELECT - + col0 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND 17
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1229
SELECT DISTINCT + col1 DIV - col1 AS col1, + col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

skipif mysql # not compatible
query II rowsort label-1229
SELECT DISTINCT + col1 / - col1 AS col1, + col2 AS col1 FROM tab0
----
-1
10
-1
47
-1
99

query I rowsort
SELECT 53 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col1 + + 83 FROM tab2 cor0
----
134
150
160

onlyif mysql # aggregate syntax: 
query I rowsort label-1232
SELECT ALL - MAX( DISTINCT - 70 ) 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-1232
SELECT ALL - MAX ( DISTINCT - 70 ) col0 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1233
SELECT 42 * + 5 * + 36 + - COUNT( - - 94 ) AS col2 FROM tab2 AS cor0
----
7557

skipif mysql # not compatible
query I rowsort label-1233
SELECT 42 * + 5 * + 36 + - COUNT ( - - 94 ) AS col2 FROM tab2 AS cor0
----
7557

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab0 AS cor0 WHERE 37 <= NULL
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + - col0 AS col2 FROM tab0 AS cor0
----
-187
-2224
-9898

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) >= ( NULL )
----

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

query I rowsort
SELECT ( + 18 ) FROM tab0
----
18
18
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1240
SELECT MIN( - 62 ) AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-1240
SELECT MIN ( - 62 ) AS col1 FROM tab0
----
-62

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

query I rowsort
SELECT + 72 * - - col2 FROM tab1
----
4248
4896
6912

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - + - col2, - col2 col1 FROM tab1
----
21
-68
54
-59
82
-96

query II rowsort
SELECT ALL + + col0 * - + ( - col2 ) + - col0 * + col2, + 5 + col0 AS col2 FROM tab2 AS cor0
----
0
51
0
69
0
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT MIN( + col1 ) col1 FROM tab1
----
5

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

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

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

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

query II rowsort
SELECT - col0 - - col1, 73 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col1 * 5 + 60 * + + col1 FROM tab1 AS cor0 WHERE NOT + 72 * col2 + + 28 > NULL
----

query I rowsort
SELECT - 96 * - col0 FROM tab2 AS cor0
----
4416
6144
7200

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1252
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( + + col0 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1252
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( + + col0 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE NOT NULL >= 64 * - 40 * col2 * - ( + 6 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col1, + col0 )
----

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1258
SELECT + - ( + 51 ) DIV 51 col1, + col2 DIV 97 AS col2 FROM tab2 AS cor0
----
-1
0
-1
0
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1258
SELECT + - ( + 51 ) / 51 col1, + col2 / 97 AS col2 FROM tab2 AS cor0
----
-1
0
-1
0
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1259
SELECT ALL - COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT 67 NOT IN ( + 55 * - col2, - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-1259
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT 67 NOT IN ( + 55 * - col2, - col0 )
----
0

query I rowsort
SELECT + 82 * col0 FROM tab1
----
4182
6970
7462

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1261
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col1 AS col1, 6 AS col0 FROM tab2
----
NULL
6

skipif mysql # not compatible
query II rowsort label-1261
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col1 AS col1, 6 AS col0 FROM tab2
----
NULL
6

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

query I rowsort
SELECT ALL + 51 * - + 51 AS col0 FROM tab2
----
-2601
-2601
-2601

query III rowsort
SELECT * FROM tab2 WHERE NOT - 64 * - col1 IN ( - + 68 - + - col0 * col1, col2 * - ( - 24 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 14 * + col0 FROM tab2
----
1050
644
896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1266
SELECT + + COUNT( * ) * ( - CAST( - COUNT( * ) AS SIGNED ) ) FROM tab0 WHERE NOT - col2 + - CAST( + 11 AS DECIMAL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1266
SELECT + + COUNT ( * ) * ( - CAST ( - COUNT ( * ) AS INTEGER ) ) FROM tab0 WHERE NOT - col2 + - CAST ( + 11 AS REAL ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1267
SELECT DISTINCT COUNT( + + CAST( NULL AS SIGNED ) ) DIV ( - 27 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT COUNT ( + + CAST ( NULL AS INTEGER ) ) / ( - 27 ) FROM tab1
----
0

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 12 + - col2 IS NOT NULL
----

query I rowsort
SELECT - 32 * + col0 + 48 + + col0 + + col2 + col1 AS col0 FROM tab1 AS cor0
----
-1423
-2523
-2658

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 >= - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1274
SELECT - ( + CAST( - - 15 AS SIGNED ) ), + col1 col0 FROM tab0 AS cor0
----
-15
1
-15
21
-15
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1274
SELECT - ( + CAST ( - - 15 AS INTEGER ) ), + col1 col0 FROM tab0 AS cor0
----
-15
1
-15
21
-15
81

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE + 70 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1277
SELECT + 89, COUNT( * ) + 26 AS col0 FROM tab2 AS cor0
----
89
29

skipif mysql # not compatible
query II rowsort label-1277
SELECT + 89, COUNT ( * ) + 26 AS col0 FROM tab2 AS cor0
----
89
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT COUNT( * ) - + 90 DIV MIN( ALL - 74 ) + + - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT COUNT ( * ) - + 90 / MIN ( ALL - 74 ) + + - COUNT ( * ) FROM tab1 AS cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 + - + 93 * - col0 + + 99 col2 FROM tab2 AS cor0
----
4422
6096
7119

query I rowsort
SELECT - + col2 - 31 AS col1 FROM tab0 cor0
----
-130
-41
-78

query I rowsort
SELECT col0 - - 52 + - col0 AS col1 FROM tab0 AS cor0
----
52
52
52

query I rowsort
SELECT - col0 + 97 FROM tab1 AS cor0
----
12
46
6

query I rowsort
SELECT col0 + + + col0 + col0 - + + ( - ( + col0 ) ) * + + col0 + + 55 + col2 * - + col1 * + - col1 FROM tab0 AS cor0
----
12295
308692
9854

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1285
SELECT ALL + col1 DIV 19 - - col1 AS col2 FROM tab1
----
14
49
5

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL + col1 / 19 - - col1 AS col2 FROM tab1
----
14
49
5

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

query I rowsort
SELECT ALL ( + col1 ) * 89 FROM tab0
----
1869
7209
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 56 * col2 + + col1 + - 72 col1 FROM tab2 WHERE NULL NOT BETWEEN col2 * - 87 * 9 + col0 + + + col0 * col0 AND 83 * + col0
----

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

query I rowsort
SELECT ALL + + col1 + + col1 * + col1 FROM tab1 AS cor0
----
210
2256
30

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

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

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

query II rowsort
SELECT col1 AS col2, - 30 FROM tab2 AS cor0
----
51
-30
67
-30
77
-30

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab1 AS cor0
----
22

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( col1 = + 98 * - - 76 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1296
SELECT ALL COUNT( * ) * + - 52 AS col0 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-1296
SELECT ALL COUNT ( * ) * + - 52 AS col0 FROM tab0
----
-156

query I rowsort
SELECT ALL - col1 * col0 FROM tab0 cor0 WHERE NOT - 37 IS NULL
----
-1215
-1827
-97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col2 BETWEEN col2 AND - 87
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1299
SELECT - 57 * 61 * COUNT( * ) * - CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
31293

skipif mysql # not compatible
query I rowsort label-1299
SELECT - 57 * 61 * COUNT ( * ) * - CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
31293

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT ALL - ( + SUM( ALL - col2 ) ) * - COUNT( * ) * + - COUNT( * ) FROM tab1 AS cor0
----
2007

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

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

query I rowsort
SELECT col1 * + 12 + col0 AS col0 FROM tab1 AS cor0
----
145
219
655

query I rowsort
SELECT DISTINCT col0 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 20 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - 69 IN ( - 85 + + col0, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-1306
SELECT ALL - MAX( - col2 ) * + - MIN( - col1 ), 42 AS col1 FROM tab0
----
810
42

skipif mysql # not compatible
query II rowsort label-1306
SELECT ALL - MAX ( - col2 ) * + - MIN ( - col1 ), 42 AS col1 FROM tab0
----
810
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 84 col2, + ( col0 ) FROM tab1
----
-84
51
-84
85
-84
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT DISTINCT + 64 DIV - - col1 FROM tab0
----
0
3
64

skipif mysql # not compatible
query I rowsort label-1308
SELECT DISTINCT + 64 / - - col1 FROM tab0
----
0
3
64

query I rowsort
SELECT ALL col2 + - 30 AS col1 FROM tab1
----
29
38
66

query I rowsort
SELECT DISTINCT col0 + + 41 FROM tab1
----
126
132
92

query I rowsort
SELECT DISTINCT + col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN NULL AND 54 + col2
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - + 42 col2 FROM tab1 AS cor0
----
-2142
-3570
-3822

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1316
SELECT ALL 12 + + - COUNT( * ) * COUNT( * ) + + - COUNT( * ) DIV + COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-1316
SELECT ALL 12 + + - COUNT ( * ) * COUNT ( * ) + + - COUNT ( * ) / + COUNT ( * ) FROM tab0
----
2

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

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

query I rowsort
SELECT ALL + col2 * col0 + + - col0 + - + 79 + 58 FROM tab1 AS cor0
----
4824
4909
6076

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE + 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT ALL - col0 / - CAST( NULL AS SIGNED ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1320
SELECT ALL - col0 / - CAST ( NULL AS INTEGER ) - - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1321
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 21 < + + CAST( NULL AS SIGNED ) * - 24 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-1321
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 21 < + + CAST ( NULL AS INTEGER ) * - 24 * - col1 )
----

query I rowsort
SELECT ALL 15 FROM tab1 AS cor0 WHERE ( - col1 IS NULL )
----

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

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

query I rowsort
SELECT DISTINCT - 58 - col2 AS col0 FROM tab0
----
-105
-157
-68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT DISTINCT 18 - col2 + + + col0 DIV + + 51 FROM tab0
----
-29
-80
9

skipif mysql # not compatible
query I rowsort label-1326
SELECT DISTINCT 18 - col2 + + + col0 / + + 51 FROM tab0
----
-29
-80
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT + 64 * ( - col0 ) DIV + 65 FROM tab2
----
-45
-63
-73

skipif mysql # not compatible
query I rowsort label-1328
SELECT + 64 * ( - col0 ) / + 65 FROM tab2
----
-45
-63
-73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1329
SELECT ALL col0 * + - CAST( + + 49 AS SIGNED ), - col0 * 89 AS col1 FROM tab0
----
-4263
-7743
-4753
-8633
-735
-1335

skipif mysql # not compatible
query II rowsort label-1329
SELECT ALL col0 * + - CAST ( + + 49 AS INTEGER ), - col0 * 89 AS col1 FROM tab0
----
-4263
-7743
-4753
-8633
-735
-1335

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1331
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1331
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> + col0 - + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1332
SELECT ALL + 54 AS col1, - MAX( - col2 ) FROM tab2
----
54
23

skipif mysql # not compatible
query II rowsort label-1332
SELECT ALL + 54 AS col1, - MAX ( - col2 ) FROM tab2
----
54
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1333
SELECT SUM( DISTINCT - ( - 74 ) ) FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-1333
SELECT SUM ( DISTINCT - ( - 74 ) ) FROM tab2
----
74

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

query I rowsort
SELECT col1 * - + 68 + - 30 FROM tab0 AS cor0
----
-1458
-5538
-98

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

query I rowsort
SELECT ALL - 30 * 85 FROM tab1
----
-2550
-2550
-2550

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT COUNT( * ) * - 17 col2 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1338
SELECT COUNT ( * ) * - 17 col2 FROM tab1
----
-51

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT ALL col0 DIV col0 + + col1 AS col0 FROM tab0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-1340
SELECT ALL col0 / col0 + + col1 AS col0 FROM tab0
----
2
22
82

query I rowsort
SELECT ALL + ( - 63 ) AS col0 FROM tab0
----
-63
-63
-63

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

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

query I rowsort
SELECT 20 + col0 AS col2 FROM tab0 AS cor0
----
107
117
35

query II rowsort
SELECT ALL + col2 AS col0, + 32 / + col2 AS col1 FROM tab2 cor0 WHERE ( NOT ( + col1 ) NOT IN ( col2 - col0 ) )
----

query I rowsort
SELECT col0 * - 28 AS col1 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT ALL - col0 + + 12 * col1 FROM tab0 cor0
----
-85
165
957

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

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

query I rowsort
SELECT 6 - ( - 80 ) + - col2 FROM tab2 AS cor0
----
28
46
63

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1350
SELECT DISTINCT + + 89 + + 87 * - - 52 + + - ( CAST( + col1 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
4536
4546
4562

skipif mysql # not compatible
query I rowsort label-1350
SELECT DISTINCT + + 89 + + 87 * - - 52 + + - ( CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
4536
4546
4562

query I rowsort
SELECT - 28 - + + col0 * - col1 + - - col0 AS col0 FROM tab1 AS cor0
----
4340
482
737

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

query I rowsort
SELECT DISTINCT - - col0 + - - 10 AS col2 FROM tab0 AS cor0
----
107
25
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT ALL - 47 - - COUNT( * ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-1355
SELECT ALL - 47 - - COUNT ( * ) FROM tab2
----
-44

query I rowsort
SELECT DISTINCT ( + + 40 ) FROM tab0
----
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT - COUNT( * ) * - + MAX( ALL - 2 ) col2 FROM tab0
----
-6

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

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

query I rowsort
SELECT DISTINCT - 52 * - 79 AS col1 FROM tab2
----
4108

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

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

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

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

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

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

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

query I rowsort
SELECT + 43 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
43
43
43

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL + ( - MAX( - col1 ) ) + - COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + ( - MAX ( - col1 ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
2

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1371
SELECT - - COUNT( * ) col1 FROM tab2 WHERE + - 21 IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1372
SELECT ALL MAX( DISTINCT - 64 ) FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-1372
SELECT ALL MAX ( DISTINCT - 64 ) FROM tab0
----
-64

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

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

query I rowsort
SELECT - ( ( + + 17 ) ) FROM tab0
----
-17
-17
-17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL - SUM( DISTINCT 90 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - SUM ( DISTINCT 90 ) FROM tab1
----
-90

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1377
SELECT DISTINCT 62 DIV MIN( DISTINCT - col1 ) + + COUNT( * ) * + 34 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT 62 / MIN ( DISTINCT - col1 ) + + COUNT ( * ) * + 34 FROM tab0
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1378
SELECT col1 / - CAST( NULL AS SIGNED ), + ( col2 ) FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-1378
SELECT col1 / - CAST ( NULL AS INTEGER ), + ( col2 ) FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1379
SELECT ( - MAX( - col2 ) ) AS col2 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1379
SELECT ( - MAX ( - col2 ) ) AS col2 FROM tab1
----
59

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

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

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

query I rowsort
SELECT col1 + ( + + 2 ) FROM tab0
----
23
3
83

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL <= 64 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1384
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE col2 * - col1 * - + 7 * 65 + - col1 NOT BETWEEN - col0 / + - 81 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1384
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE col2 * - col1 * - + 7 * 65 + - col1 NOT BETWEEN - col0 / + - 81 AND NULL
----
0

query I rowsort
SELECT DISTINCT 90 + 34 AS col0 FROM tab0 AS cor0
----
124

query I rowsort
SELECT DISTINCT - 87 * col1 + col0 * - 84 AS col0 FROM tab1 AS cor0
----
-11733
-5502
-7575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1387
SELECT + COUNT( ALL + + CAST( + - col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 28 + col1 col1 FROM tab0 AS cor0
----
2457
2717
501

query I rowsort
SELECT - - col0 + 40 + + col1 / + + col0 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 47 AND col0
----

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

skipif mysql # not compatible
query I rowsort label-1390
SELECT ALL - ( - 80 ) / - SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 * - col2 - col1 FROM tab0 AS cor0
----
2128
79
9800

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

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

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

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

query II rowsort
SELECT - col0 AS col0, - col2 * + col0 FROM tab1
----
-51
-4896
-85
-5015
-91
-6188

query II rowsort
SELECT + col1 AS col1, + col0 * col0 * - 97 FROM tab1
----
14
-252297
47
-803257
5
-700825

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT ALL - COUNT( * ) * + 12 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-1396
SELECT ALL - COUNT ( * ) * + 12 FROM tab1
----
-36

query I rowsort
SELECT ALL 38 * - + 31 AS col2 FROM tab1
----
-1178
-1178
-1178

onlyif mysql # aggregate syntax: 
query I rowsort label-1398
SELECT ALL COUNT( * ) * 60 AS col2 FROM tab0
----
180

skipif mysql # not compatible
query I rowsort label-1398
SELECT ALL COUNT ( * ) * 60 AS col2 FROM tab0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-1399
SELECT ALL - MAX( + col0 ) * - - 92 AS col1 FROM tab0
----
-8924

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL - MAX ( + col0 ) * - - 92 AS col1 FROM tab0
----
-8924

query I rowsort
SELECT 68 * 68 AS col1 FROM tab0 AS cor0
----
4624
4624
4624

onlyif mysql # DIV for integer division: 
query I rowsort label-1401
SELECT DISTINCT + + col0 DIV - 40 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1401
SELECT DISTINCT + + col0 / - 40 FROM tab2 cor0
----
-1

query I rowsort
SELECT 87 * - + 2 + - col2 * 35 + + col0 AS col2 FROM tab2 AS cor0
----
-1510
-2129
-933

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + - 35 AND + col2 * + 63 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT ALL + 65 * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-1404
SELECT ALL + 65 * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-195

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1406
SELECT + 89 DIV CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-29

skipif mysql # not compatible
query I rowsort label-1406
SELECT + 89 / CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-1407
SELECT ALL - col2 * - col0 DIV + ( + col0 ) FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1407
SELECT ALL - col2 * - col0 / + ( + col0 ) FROM tab1
----
59
68
96

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

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

query I rowsort
SELECT 55 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( 64, + 4 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 23 - + + 87 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1411
SELECT + SUM( - + 64 ) FROM tab0 cor0
----
-192

skipif mysql # not compatible
query I rowsort label-1411
SELECT + SUM ( - + 64 ) FROM tab0 cor0
----
-192

query I rowsort
SELECT DISTINCT + + 83 + + col0 FROM tab1 cor0
----
134
168
174

query I rowsort
SELECT ALL - col0 + - 79 AS col0 FROM tab1 AS cor0
----
-130
-164
-170

onlyif mysql # aggregate syntax: 
query II rowsort label-1414
SELECT - 82 * - + COUNT( * ) AS col1, + 42 FROM tab2 AS cor0
----
246
42

skipif mysql # not compatible
query II rowsort label-1414
SELECT - 82 * - + COUNT ( * ) AS col1, + 42 FROM tab2 AS cor0
----
246
42

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

query I rowsort
SELECT + col1 * + + 79 AS col2 FROM tab0
----
1659
6399
79

query II rowsort
SELECT DISTINCT - 35 + + + ( + - col0 ) AS col1, - 45 * 54 FROM tab0
----
-122
-2430
-132
-2430
-50
-2430

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT - COUNT( * ) + 98 AS col2 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-1419
SELECT - COUNT ( * ) + 98 AS col2 FROM tab1
----
95

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1421
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab0
----
15

query I rowsort
SELECT 12 + - - col2 FROM tab2
----
35
52
70

query I rowsort
SELECT 62 + - 4 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-1424
SELECT ALL - MAX( DISTINCT - - col0 ) + - - 46, COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-51
9

skipif mysql # not compatible
query II rowsort label-1424
SELECT ALL - MAX ( DISTINCT - - col0 ) + - - 46, COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-51
9

query I rowsort
SELECT ALL + + col1 + + - 99 FROM tab2 AS cor0
----
-22
-32
-48

query I rowsort
SELECT DISTINCT - 91 + + 69 + + col1 + + col0 FROM tab1 AS cor0
----
116
43
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - + col0 OR - 19 IS NULL
----

query II rowsort
SELECT - + col1 * + + col1 + 47 + - - col0 * 51 * + col0 * + ( col1 ) AS col2, col1 AS col2 FROM tab0 cor0
----
479905
1
8106005
21
922961
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT DISTINCT 28 + - COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
25

skipif mysql # not compatible
query I rowsort label-1429
SELECT DISTINCT 28 + - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1430
SELECT DISTINCT + MIN( + + col0 ) - + MIN( - col2 ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-1430
SELECT DISTINCT + MIN ( + + col0 ) - + MIN ( - col2 ) FROM tab0
----
114

query I rowsort
SELECT - col0 - - 8 + + - col1 * + + col2 FROM tab0
----
-188
-289
-3814

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

query I rowsort
SELECT + + 0 * + col0 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1435
SELECT MIN( DISTINCT - 1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 41 >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-1435
SELECT MIN ( DISTINCT - 1 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NOT - 41 >= NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1436
SELECT + COUNT( * ) * - + 75 + - - COUNT( * ) AS col1 FROM tab1 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-1436
SELECT + COUNT ( * ) * - + 75 + - - COUNT ( * ) AS col1 FROM tab1 cor0
----
-222

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

skipif mysql # not compatible
query II rowsort label-1437
SELECT ALL + 16, ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
16
3

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

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT - col0 <> + - col2 - + 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1440
SELECT - col2 DIV + + col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-1440
SELECT - col2 / + + col1 AS col1 FROM tab1 AS cor0
----
-1
-11
-6

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

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

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

query I rowsort
SELECT ALL col1 * + 29 FROM tab0
----
2349
29
609

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1445
SELECT DISTINCT - ( - 13 ) * - CAST( NULL AS DECIMAL ) + col2 AS col2 FROM tab0 WHERE - + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1445
SELECT DISTINCT - ( - 13 ) * - CAST ( NULL AS REAL ) + col2 AS col2 FROM tab0 WHERE - + col1 IS NOT NULL
----
NULL

query II rowsort
SELECT ALL - col1 * - + col2, 90 + ( - + col0 ) AS col1 FROM tab2
----
1173
44
3080
26
3886
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1448
SELECT ALL COUNT( * ) * - MAX( + col0 ) AS col1 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-1448
SELECT ALL COUNT ( * ) * - MAX ( + col0 ) AS col1 FROM tab2
----
-225

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

skipif mysql # not compatible
query I rowsort label-1449
SELECT DISTINCT - col1 / - ( - col0 ) FROM tab1
----
0

query I rowsort
SELECT - col0 * - col2 * - 77 FROM tab0 AS cor0
----
-54285
-66990
-739431

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1453
SELECT DISTINCT MIN( - ( - 57 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
57

skipif mysql # not compatible
query I rowsort label-1453
SELECT DISTINCT MIN ( - ( - 57 ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
57

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1454
SELECT DISTINCT CAST( 65 AS DECIMAL ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-1454
SELECT DISTINCT CAST ( 65 AS REAL ) AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

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

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

query I rowsort
SELECT ALL + - col2 * + 89 * + 67 AS col2 FROM tab1 cor0
----
-351817
-405484
-572448

onlyif mysql # DIV for integer division: 
query I rowsort label-1457
SELECT ALL col2 DIV - - col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1457
SELECT ALL col2 / - - col0 AS col1 FROM tab2
----
0
0
0

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

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

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

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

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

query I rowsort
SELECT 35 * - col1 FROM tab2
----
-1785
-2345
-2695

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1462
SELECT DISTINCT + COUNT( ALL col0 ) DIV 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT + COUNT ( ALL col0 ) / 98 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + + + 40 + + 14 * - col1 * + col2 FROM tab0
----
-1249
-2813
-53243

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1464
SELECT ALL * FROM tab0 WHERE NOT + CAST( + 10 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1464
SELECT ALL * FROM tab0 WHERE NOT + CAST ( + 10 AS REAL ) IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col1 + col0 + 7 + 70 + 87 * col1 col0 FROM tab2
----
2095
3387
3760

query I rowsort
SELECT - - 17 - - - col2 + + + col0 FROM tab0 AS cor0
----
-15
15
94

query I rowsort
SELECT + - 9 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1469
SELECT ALL + 40 DIV - + MIN( DISTINCT col1 ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-1469
SELECT ALL + 40 / - + MIN ( DISTINCT col1 ) FROM tab0
----
-40

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

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

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

query I rowsort
SELECT DISTINCT 67 FROM tab1 AS cor0 WHERE col1 * + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1473
SELECT ALL + - CAST( - col1 AS SIGNED ) AS col0 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 cor0
----
14
47
5

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1476
SELECT col2, - 84 - CAST( NULL AS SIGNED ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1476
SELECT col2, - 84 - CAST ( NULL AS INTEGER ) FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ( + 67 ) AS col0 FROM tab1
----
67
67
67

query II rowsort
SELECT + col1, col2 + + col2 FROM tab2
----
51
46
67
116
77
80

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

onlyif mysql # aggregate syntax: 
query III rowsort label-1480
SELECT DISTINCT 92 AS col0, 78 AS col1, - COUNT( - - 89 ) FROM tab2
----
92
78
-3

skipif mysql # not compatible
query III rowsort label-1480
SELECT DISTINCT 92 AS col0, 78 AS col1, - COUNT ( - - 89 ) FROM tab2
----
92
78
-3

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

query I rowsort
SELECT col1 + 33 AS col1 FROM tab0
----
114
34
54

onlyif mysql # DIV for integer division: 
query I rowsort label-1483
SELECT - col2 DIV - 69 FROM tab0 WHERE NULL IS NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1483
SELECT - col2 / - 69 FROM tab0 WHERE NULL IS NULL
----
0
0
1

query I rowsort
SELECT DISTINCT + 55 + - col0 * + col1 FROM tab0 AS cor0
----
-1160
-1772
-42

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1486
SELECT + 12 - - + COUNT( * ) DIV + 35 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-1486
SELECT + 12 - - + COUNT ( * ) / + 35 FROM tab1 AS cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 95, 11 col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + ( + + 63 ) * - - 37 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1488
SELECT + 17 + + SUM( DISTINCT col1 ) * COUNT( - col0 ) AS col0, - 55 FROM tab0 AS cor0
----
326
-55

skipif mysql # not compatible
query II rowsort label-1488
SELECT + 17 + + SUM ( DISTINCT col1 ) * COUNT ( - col0 ) AS col0, - 55 FROM tab0 AS cor0
----
326
-55

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT ALL - 96 + ( - col1 ) DIV + + col1 col2 FROM tab2 AS cor0
----
-97
-97
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + col1 - - + 12 * + 43 * + + 11 + col0 col0 FROM tab2
----
1865
2660
4549

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE col0 + 39 * col2 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1492
SELECT DISTINCT ( - COUNT( * ) ) DIV - 90 AS col1, + COUNT( * ) * + 63 FROM tab1
----
0
189

skipif mysql # not compatible
query II rowsort label-1492
SELECT DISTINCT ( - COUNT ( * ) ) / - 90 AS col1, + COUNT ( * ) * + 63 FROM tab1
----
0
189

query II rowsort
SELECT 32 + + col1 + + col1, 98 * + col0 AS col2 FROM tab1
----
126
8918
42
8330
60
4998

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1494
SELECT ALL col0 - 23 + - 82 * + 3 * ( - - 1 ) * - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1494
SELECT ALL col0 - 23 + - 82 * + 3 * ( - - 1 ) * - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1497
SELECT CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE ( - col1 - col0 - + + col2 + + + 76 * + 40 * col0 ) >= - col2
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-1497
SELECT CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE ( - col1 - col0 - + + col2 + + + 76 * + 40 * col0 ) >= - col2
----
-15
-87
-97

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

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

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

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

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

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

query I rowsort
SELECT + 58 * 44 AS col2 FROM tab0 AS cor0
----
2552
2552
2552

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1504
SELECT ALL + COUNT( ALL CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1504
SELECT ALL + COUNT ( ALL CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 68 * + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( col1, col2 + - 69 * col1 * - 86, + ( - 52 ) )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 11 IN ( - 90 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1508
SELECT - COUNT( * ) AS col0, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1508
SELECT - COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
-3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1509
SELECT + - CAST( col1 AS SIGNED ), col0 * - - ( + col0 ) AS col0 FROM tab0 WHERE NOT - col1 IS NULL AND NULL IN ( - col0, col2 * col0 * - 37, CAST( NULL AS SIGNED ), col1 )
----

skipif mysql # not compatible
query II rowsort label-1509
SELECT + - CAST ( col1 AS INTEGER ), col0 * - - ( + col0 ) AS col0 FROM tab0 WHERE NOT - col1 IS NULL AND NULL IN ( - col0, col2 * col0 * - 37, CAST ( NULL AS INTEGER ), col1 )
----

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

query I rowsort
SELECT ALL - col0 + - - 22 AS col1 FROM tab0
----
-65
-75
7

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 = ( + + col0 )
----

query II rowsort
SELECT - col1 AS col2, - 88 AS col0 FROM tab1 AS cor0
----
-14
-88
-47
-88
-5
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 AS col0, - col0 col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1516
SELECT COUNT( * ) * 62 + 12 DIV COUNT( * ) AS col1 FROM tab2
----
190

skipif mysql # not compatible
query I rowsort label-1516
SELECT COUNT ( * ) * 62 + 12 / COUNT ( * ) AS col1 FROM tab2
----
190

query II rowsort
SELECT DISTINCT + 4 + 78, col2 FROM tab1
----
82
59
82
68
82
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 86 col2 FROM tab2 AS cor0
----
109
126
144

onlyif mysql # DIV for integer division: 
query I rowsort label-1519
SELECT + - 77 + - col1 DIV - 90 FROM tab0 cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-1519
SELECT + - 77 + - col1 / - 90 FROM tab0 cor0
----
-77
-77
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 7 col2, col2 * 64 FROM tab0 AS cor0
----
7
3008
7
6336
7
640

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

query I rowsort
SELECT DISTINCT - col0 * + - col1 + - col1 + + col0 + + col2 - + 31 + - - col1 + col0 AS col0 FROM tab2 AS cor0
----
2430
5065
5202

query I rowsort
SELECT ALL + col2 * - col0 + - 51 + col1 - - col0 AS col1 FROM tab1 cor0
----
-4882
-4976
-6101

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1526
SELECT - 14 - - CAST( + 25 AS SIGNED ), - MIN( + 83 ) AS col2 FROM tab1
----
11
-83

skipif mysql # not compatible
query II rowsort label-1526
SELECT - 14 - - CAST ( + 25 AS INTEGER ), - MIN ( + 83 ) AS col2 FROM tab1
----
11
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1527
SELECT 89 * COUNT( * ) * COUNT( * ) FROM tab2, tab1 cor0
----
7209

skipif mysql # not compatible
query I rowsort label-1527
SELECT 89 * COUNT ( * ) * COUNT ( * ) FROM tab2, tab1 cor0
----
7209

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 64, 67 * col1 + + col2 col1 FROM tab0 WHERE ( 93 <= NULL )
----

query I rowsort
SELECT ALL 75 * - col1 FROM tab1 AS cor0
----
-1050
-3525
-375

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 <= - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - 90 ) FROM tab0
----
-90

onlyif mysql # DIV for integer division: 
query II rowsort label-1534
SELECT + col0, 75 DIV + col0 AS col2 FROM tab2
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-1534
SELECT + col0, 75 / + col0 AS col2 FROM tab2
----
46
1
64
1
75
1

query I rowsort
SELECT ALL 7 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

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

skipif mysql # not compatible
query I rowsort label-1536
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT DISTINCT 19 DIV + + col1 + - 9 + + col2 FROM tab2 AS cor0
----
14
31
49

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT 19 / + + col1 + - 9 + + col2 FROM tab2 AS cor0
----
14
31
49

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

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

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

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

query I rowsort
SELECT + - col2 * col1 * col0 + + 18 FROM tab2 AS cor0
----
-197102
-291432
-53940

onlyif mysql # DIV for integer division: 
query I rowsort label-1541
SELECT - col0 * 71 DIV - ( + col1 ) FROM tab0
----
13
294
6887

skipif mysql # not compatible
query I rowsort label-1541
SELECT - col0 * 71 / - ( + col1 ) FROM tab0
----
13
294
6887

query I rowsort
SELECT col2 * + - col2 * - - col1 FROM tab1
----
-129024
-17405
-217328

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

skipif mysql # not compatible
query I rowsort label-1543
SELECT - CAST ( - - CAST ( - ( + + 93 ) AS INTEGER ) AS INTEGER ) FROM tab1
----
93
93
93

query III rowsort
SELECT * FROM tab0 WHERE NOT + 91 + - + 87 + col0 <> - + 49
----

query III rowsort
SELECT * FROM tab2 WHERE + - 37 NOT BETWEEN NULL AND + - col2
----
64
77
40
75
67
58

query I rowsort
SELECT DISTINCT + - col1 + - 96 * - col1 FROM tab1 AS cor0
----
1330
4465
475

onlyif mysql # DIV for integer division: 
query I rowsort label-1547
SELECT DISTINCT col1 DIV - col2 + col1 AS col1 FROM tab0 AS cor0
----
1
19
80

skipif mysql # not compatible
query I rowsort label-1547
SELECT DISTINCT col1 / - col2 + col1 AS col1 FROM tab0 AS cor0
----
1
19
80

query I rowsort
SELECT + 63 + + - col1 AS col2 FROM tab2 AS cor0 WHERE + ( + 36 ) + - + col0 <= - 8
----
-14
-4
12

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

query I rowsort
SELECT - 23 * - - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-1352
-1517
-2194

query I rowsort
SELECT DISTINCT + + col0 + + + col2 FROM tab2 AS cor0
----
104
133
69

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1554
SELECT DISTINCT 91 + col1 DIV - - 84 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-1554
SELECT DISTINCT 91 + col1 / - - 84 FROM tab0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL <= - - col0 * + 32 * col2 * - + ( - col0 )
----

query I rowsort
SELECT 59 + - 86 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 90b76caf54a4e48ee4a9784f52997a6a

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1557
SELECT * FROM tab2 AS cor0 WHERE NULL < + ( CAST( + ( 13 ) AS DECIMAL ) ) + col2
----

skipif mysql # not compatible
query III rowsort label-1557
SELECT * FROM tab2 AS cor0 WHERE NULL < + ( CAST ( + ( 13 ) AS REAL ) ) + col2
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - ( col0 ) + col0 FROM tab0 cor0
----
-17
164
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1562
SELECT + 93 - - 52 + - 60 * + + COUNT( * ) * + - 64 FROM tab1 AS cor0
----
11665

skipif mysql # not compatible
query I rowsort label-1562
SELECT + 93 - - 52 + - 60 * + + COUNT ( * ) * + - 64 FROM tab1 AS cor0
----
11665

query I rowsort
SELECT 96 - + col2 FROM tab0 AS cor0
----
-3
49
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT ALL - + ( - COUNT( * ) ) + + + 70 AS col1 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-1564
SELECT ALL - + ( - COUNT ( * ) ) + + + 70 AS col1 FROM tab0 AS cor0
----
73

query II rowsort
SELECT col1 + + ( col2 ) AS col1, 99 FROM tab1 AS cor0
----
110
99
115
99
64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1566
SELECT COUNT( * ) + + 14 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1566
SELECT COUNT ( * ) + + 14 FROM tab1 AS cor0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-1567
SELECT DISTINCT + col2 + + 90 DIV - 3 AS col2 FROM tab2 AS cor0
----
-7
10
28

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT + col2 + + 90 / - 3 AS col2 FROM tab2 AS cor0
----
-7
10
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1568
SELECT ALL 55 * + - col0 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN + + CAST( NULL AS SIGNED ) AND + col0 AND ( col2 + + + col2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1568
SELECT ALL 55 * + - col0 AS col2 FROM tab0 WHERE NOT ( NULL ) BETWEEN + + CAST ( NULL AS INTEGER ) AND + col0 AND ( col2 + + + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1569
SELECT ALL CAST( + - 40 AS SIGNED ) + - col2 * ( - col0 ) AS col1 FROM tab1
----
4856
4975
6148

skipif mysql # not compatible
query I rowsort label-1569
SELECT ALL CAST ( + - 40 AS INTEGER ) + - col2 * ( - col0 ) AS col1 FROM tab1
----
4856
4975
6148

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1570
SELECT MIN( ALL col2 ) DIV - - 3 + SUM( + col1 ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-1570
SELECT MIN ( ALL col2 ) / - - 3 + SUM ( + col1 ) FROM tab0
----
106

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - - col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1573
SELECT DISTINCT - 20 * MAX( + + 77 ) AS col0 FROM tab1
----
-1540

skipif mysql # not compatible
query I rowsort label-1573
SELECT DISTINCT - 20 * MAX ( + + 77 ) AS col0 FROM tab1
----
-1540

query II rowsort
SELECT ALL + col2 * + 1, col2 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1575
SELECT DISTINCT - - COUNT( * ) col1, CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1575
SELECT DISTINCT - - COUNT ( * ) col1, CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1576
SELECT DISTINCT - COUNT( - col2 ) * 36 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-1576
SELECT DISTINCT - COUNT ( - col2 ) * 36 FROM tab2 AS cor0
----
-108

query I rowsort
SELECT + col2 * col0 + - 78 FROM tab1 cor0
----
4818
4937
6110

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + 59 ) * + col1, + 53 col0 FROM tab2
----
3009
53
3953
53
4543
53

query I rowsort
SELECT 63 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

query I rowsort
SELECT col0 * 92 AS col0 FROM tab2
----
4232
5888
6900

query II rowsort
SELECT DISTINCT + + col2 * - + col0, 78 AS col2 FROM tab1 AS cor0
----
-4896
78
-5015
78
-6188
78

onlyif mysql # DIV for integer division: 
query II rowsort label-1583
SELECT ALL col0 DIV + - col2 col2, col1 FROM tab1 AS cor0
----
-1
47
-1
5
0
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1583
SELECT ALL col0 / + - col2 col2, col1 FROM tab1 AS cor0
----
-1
47
-1
5
0
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1584
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL = CAST( col2 AS SIGNED ) / + col1 + 88 + + 16
----

skipif mysql # not compatible
query I rowsort label-1584
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT NULL = CAST ( col2 AS INTEGER ) / + col1 + 88 + + 16
----

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

query I rowsort
SELECT - ( 64 ) * - 8 + - col0 + - 98 FROM tab2 AS cor0
----
339
350
368

query II rowsort
SELECT col1 * - col0 + col2, col0 AS col2 FROM tab0 AS cor0
----
-1168
15
-1817
87
2
97

query I rowsort
SELECT + col1 + 20 FROM tab2
----
71
87
97

query I rowsort
SELECT 26 * + col0 AS col1 FROM tab2
----
1196
1664
1950

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1591
SELECT + SUM( DISTINCT + 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-1591
SELECT + SUM ( DISTINCT + 45 ) FROM tab2
----
45

query I rowsort
SELECT ALL - 85 * + col0 FROM tab0
----
-1275
-7395
-8245

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

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

query II rowsort
SELECT col0, col1 - - 44 AS col1 FROM tab0 AS cor0
----
15
125
87
65
97
45

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1596
SELECT + 11 * + COUNT( - 68 ) AS col0 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-1596
SELECT + 11 * + COUNT ( - 68 ) AS col0 FROM tab1
----
33

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IN ( ( col0 ) + 4 )
----
0

skipif mysql # not compatible
query I rowsort label-1598
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IN ( ( col0 ) + 4 )
----
0

query I rowsort
SELECT ALL col1 * 0 AS col2 FROM tab2 WHERE - 23 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT 97 * - SUM( DISTINCT + col1 ) AS col0 FROM tab0
----
-9991

skipif mysql # not compatible
query I rowsort label-1600
SELECT 97 * - SUM ( DISTINCT + col1 ) AS col0 FROM tab0
----
-9991

query I rowsort
SELECT DISTINCT + col0 * col0 FROM tab2 WHERE NULL IS NULL
----
2116
4096
5625

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + 80 ) IS NULL
----

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

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

query I rowsort
SELECT DISTINCT ( - 79 ) AS col0 FROM tab0
----
-79

query I rowsort
SELECT - 70 + + 95 * 80 FROM tab0
----
7530
7530
7530

query I rowsort
SELECT DISTINCT col0 * 20 AS col0 FROM tab2
----
1280
1500
920

query I rowsort
SELECT DISTINCT col1 * + 62 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT - COUNT( * ) + SUM( col2 ) AS col1 FROM tab2
----
118

skipif mysql # not compatible
query I rowsort label-1608
SELECT - COUNT ( * ) + SUM ( col2 ) AS col1 FROM tab2
----
118

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < - col2 + + ( col2 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col0 FROM tab0 WHERE NOT col1 = + 26
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT COUNT( * ) * - 25 AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT COUNT ( * ) * - 25 AS col0 FROM tab0
----
-75

query III rowsort
SELECT * FROM tab0 WHERE + 20 = - 66
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1615
SELECT - 84 DIV + 82 AS col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1615
SELECT - 84 / + 82 AS col0 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + - ( + col0 + + col0 * - col2 ) NOT BETWEEN NULL AND ( col0 / - 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1618
SELECT ALL + 9 + - MAX( DISTINCT - col0 + + col0 * - 22 ) AS col0 FROM tab1
----
1182

skipif mysql # not compatible
query I rowsort label-1618
SELECT ALL + 9 + - MAX ( DISTINCT - col0 + + col0 * - 22 ) AS col0 FROM tab1
----
1182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1619
SELECT DISTINCT + 50 + + 12 * + 31 AS col2 FROM tab2 WHERE ( - 19 + - col2 * col0 ) IN ( CAST( NULL AS SIGNED ) + 25 * 83 )
----

skipif mysql # not compatible
query I rowsort label-1619
SELECT DISTINCT + 50 + + 12 * + 31 AS col2 FROM tab2 WHERE ( - 19 + - col2 * col0 ) IN ( CAST ( NULL AS INTEGER ) + 25 * 83 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1620
SELECT ALL col0 DIV 67 - - col2 AS col2 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-1620
SELECT ALL col0 / 67 - - col2 AS col2 FROM tab1
----
60
69
96

query I rowsort
SELECT - col2 * col0 + col1 AS col0 FROM tab0 WHERE - col0 * - col1 + ( 77 ) IN ( - col2 * + 12 )
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1623
SELECT 65 col1 FROM tab1 WHERE NOT CAST( 91 AS DECIMAL ) + col1 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1623
SELECT 65 col1 FROM tab1 WHERE NOT CAST ( 91 AS REAL ) + col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT 93 * 45 FROM tab0 WHERE NOT ( col2 ) * col0 BETWEEN col1 * + col2 AND col0 + - ( col2 ) * 34
----
4185
4185
4185

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT 31 - COUNT( * ) AS col2 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-1625
SELECT 31 - COUNT ( * ) AS col2 FROM tab1
----
28

query I rowsort
SELECT DISTINCT col0 + 83 FROM tab0
----
170
180
98

query I rowsort
SELECT ALL - col1 * + col0 FROM tab1 AS cor0 WHERE NOT - 5 * + col1 + + 72 <= ( - ( col2 ) )
----
-425
-714

query I rowsort
SELECT 80 * - ( col1 ) AS col2 FROM tab2 cor0
----
-4080
-5360
-6160

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NOT - col1 / + col0 NOT IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1630
SELECT ALL CAST( + 65 AS SIGNED ) AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif mysql # not compatible
query I rowsort label-1630
SELECT ALL CAST ( + 65 AS INTEGER ) AS col2 FROM tab0 cor0 CROSS JOIN tab0
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1632
SELECT ALL + CAST( AVG ( + CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1632
SELECT ALL + CAST ( AVG ( + CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT DISTINCT + 76 + + 0 * + COUNT( * ) col0 FROM tab2
----
76

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

query I rowsort
SELECT ALL 52 + + col0 AS col2 FROM tab1 AS cor0
----
103
137
143

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1635
SELECT ALL - COUNT( * ) FROM tab0 cor0 WHERE NOT ( 86 - col2 ) NOT IN ( + CAST( + col2 AS SIGNED ) * col0 + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-1635
SELECT ALL - COUNT ( * ) FROM tab0 cor0 WHERE NOT ( 86 - col2 ) NOT IN ( + CAST ( + col2 AS INTEGER ) * col0 + 64 )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1637
SELECT MIN( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( 86 + + 27 ) AND + col2 * - 52
----
46

skipif mysql # not compatible
query I rowsort label-1637
SELECT MIN ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN ( 86 + + 27 ) AND + col2 * - 52
----
46

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

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

query I rowsort
SELECT + + col2 * + 17 FROM tab2 AS cor0
----
391
680
986

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1641
SELECT ALL 51 + 99 DIV ( col2 * col1 ) AS col0 FROM tab2 AS cor0
----
51
51
51

skipif mysql # not compatible
query I rowsort label-1641
SELECT ALL 51 + 99 / ( col2 * col1 ) AS col0 FROM tab2 AS cor0
----
51
51
51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1643
SELECT col2 DIV + - col0 * col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1643
SELECT col2 / + - col0 * col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT 15 * ( MIN( DISTINCT - col0 ) ) col0 FROM tab0
----
-1455

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1644
SELECT 15 * ( MIN ( DISTINCT - col0 ) ) col0 FROM tab0
----
-1455

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1645
SELECT - MAX( + + 1 ) / MAX( ( - CAST( NULL AS DECIMAL ) ) ) FROM tab2
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1647
SELECT - COUNT( DISTINCT - col2 ) FROM tab1 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1647
SELECT - COUNT ( DISTINCT - col2 ) FROM tab1 WHERE ( col2 ) IS NULL
----
0

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL COUNT ( - col0 ) / + COUNT ( * ) AS col2 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1649
SELECT + ( - MIN( DISTINCT 97 ) ) AS col1 FROM tab1 WHERE NULL BETWEEN ( - col2 * - col1 ) AND + col1 * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1649
SELECT + ( - MIN ( DISTINCT 97 ) ) AS col1 FROM tab1 WHERE NULL BETWEEN ( - col2 * - col1 ) AND + col1 * col0
----
NULL

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

query I rowsort
SELECT DISTINCT 27 * col1 AS col0 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
1269
135
378

query I rowsort
SELECT - col1 * - 26 AS col1 FROM tab1 WHERE NULL IN ( col2 )
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 52 + + col0 * + 71 ) <> - 48 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1657
SELECT - 42 * - COUNT( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) < ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1657
SELECT - 42 * - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE ( NULL ) < ( col2 )
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1660
SELECT ALL COUNT( * ) * 61 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
549

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1660
SELECT ALL COUNT ( * ) * 61 col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
549

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 91 col1 FROM tab0 WHERE ( + - col0 ) IN ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1662
SELECT ALL + COUNT( * ) + - 11 DIV 99 col2 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1662
SELECT ALL + COUNT ( * ) + - 11 / 99 col2 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

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

query II rowsort
SELECT DISTINCT - col2 AS col1, 31 + - col1 AS col1 FROM tab0 cor0
----
-10
10
-47
-50
-99
30

query I rowsort
SELECT + + 11 + - ( - 39 ) FROM tab0 cor0
----
50
50
50

query I rowsort
SELECT ALL col1 + 39 FROM tab0 AS cor0
----
120
40
60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 57 * - col2 col0 FROM tab1 AS cor0
----
3363
3876
5472

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1671
SELECT ALL SUM( + 71 ) col1 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1671
SELECT ALL SUM ( + 71 ) col1 FROM tab1 AS cor0
----
213

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - SUM( ALL ( + - col2 ) ) * - 88 FROM tab2
----
-10648

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - SUM ( ALL ( + - col2 ) ) * - 88 FROM tab2
----
-10648

query II rowsort
SELECT DISTINCT - 27 * + col0 AS col2, - ( + 94 ) FROM tab2
----
-1242
-94
-1728
-94
-2025
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1675
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - 94
----
0

skipif mysql # not compatible
query I rowsort label-1675
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NULL BETWEEN ( NULL ) AND - 94
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1676
SELECT - + CAST( ( - MAX( ALL + col2 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1676
SELECT - + CAST ( ( - MAX ( ALL + col2 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1677
SELECT + MAX( ALL + col2 ) * 41 * - - COUNT( * ) FROM tab0 AS cor0
----
12177

skipif mysql # not compatible
query I rowsort label-1677
SELECT + MAX ( ALL + col2 ) * 41 * - - COUNT ( * ) FROM tab0 AS cor0
----
12177

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

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT + 5 = 54 + - 57
----
51
67
77

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1683
SELECT ALL COUNT( * ) + 69 + - ( - 83 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
161

skipif mysql # not compatible
query I rowsort label-1683
SELECT ALL COUNT ( * ) + 69 + - ( - 83 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
161

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 97 >= NULL
----

query I rowsort
SELECT col0 + + - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1686
SELECT + 58 + - - col2 DIV ( + 17 ) * + + col2 + - col1 FROM tab2 AS cor0
----
165
30
61

skipif mysql # not compatible
query I rowsort label-1686
SELECT + 58 + - - col2 / ( + 17 ) * + + col2 + - col1 FROM tab2 AS cor0
----
165
30
61

query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 + + + col1 AS col1 FROM tab2 AS cor0
----
1247
3197
4011

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1688
SELECT DISTINCT CAST( - col2 AS SIGNED ) + - 53 col1 FROM tab2 AS cor0
----
-111
-76
-93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1688
SELECT DISTINCT CAST ( - col2 AS INTEGER ) + - 53 col1 FROM tab2 AS cor0
----
-111
-76
-93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1689
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) BETWEEN - - col2 AND - 89 + - col1 + + col2
----

skipif mysql # not compatible
query III rowsort label-1689
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) BETWEEN - - col2 AND - 89 + - col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1690
SELECT DISTINCT - - SUM( DISTINCT + ( 81 ) ) + 13 FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-1690
SELECT DISTINCT - - SUM ( DISTINCT + ( 81 ) ) + 13 FROM tab2 AS cor0
----
94

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1692
SELECT ALL + - 98 * COUNT( * ) + + 34 DIV - - 39 * - + 80 + 56 AS col1 FROM tab1 AS cor0
----
-238

skipif mysql # not compatible
query I rowsort label-1692
SELECT ALL + - 98 * COUNT ( * ) + + 34 / - - 39 * - + 80 + 56 AS col1 FROM tab1 AS cor0
----
-238

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

query I rowsort
SELECT DISTINCT - col1 + - 17 FROM tab0 AS cor0
----
-18
-38
-98

query I rowsort
SELECT ALL - col1 + - 5 FROM tab2
----
-56
-72
-82

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

query II rowsort
SELECT ALL + col1, + col1 * - + col0 * col0 + 82 AS col2 FROM tab2
----
51
-107834
67
-376793
77
-315310

onlyif mysql # aggregate syntax: 
query I rowsort label-1698
SELECT + SUM( ALL - 46 ) FROM tab0
----
-138

skipif mysql # not compatible
query I rowsort label-1698
SELECT + SUM ( ALL - 46 ) FROM tab0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-1699
SELECT col0 DIV + ( + - col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-1699
SELECT col0 / + ( + - col0 ) + - col2 AS col2 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1700
SELECT ALL + col2 * - + col1 AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1700
SELECT ALL + col2 * - + col1 AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT DISTINCT + + 62 * COUNT( ALL - 89 ) + - 45 - - - 51 FROM tab1 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1701
SELECT DISTINCT + + 62 * COUNT ( ALL - 89 ) + - 45 - - - 51 FROM tab1 AS cor0
----
90

query I rowsort
SELECT ALL + 65 - - - col1 * + - col0 FROM tab1 cor0
----
4342
490
779

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

query I rowsort
SELECT col0 * - + col1 * + - 61 + - ( col2 ) AS col2 FROM tab0
----
111437
5818
74068

query I rowsort
SELECT DISTINCT - ( + - 24 ) - + 7 FROM tab0
----
17

query I rowsort
SELECT - 81 + + 11 + + 90 * 87 AS col2 FROM tab1
----
7760
7760
7760

query I rowsort
SELECT col1 + 31 + + col0 FROM tab1
----
121
169
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( + col1 ) > ( + - 97 + - 59 )
----

query I rowsort
SELECT ALL + 74 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query II rowsort
SELECT ALL + 46 AS col1, 92 FROM tab1 AS cor0 WHERE ( NULL IN ( + - col1 ) )
----

query I rowsort
SELECT - 58 * + 77 AS col0 FROM tab2 cor0 WHERE NOT ( + 64 + col1 IS NOT NULL )
----

query I rowsort
SELECT col2 * ( + + col0 ) AS col0 FROM tab1 AS cor0
----
4896
5015
6188

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

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

query II rowsort
SELECT col2, + col1 * - 93 + ( + col0 ) * + 96 AS col0 FROM tab1
----
59
7695
68
4365
96
3594

query I rowsort
SELECT 20 AS col0 FROM tab2 WHERE NOT + col1 + + 18 + col0 NOT IN ( + + 89 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> + + ( 1 )
----

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

query I rowsort
SELECT - 85 * - 79 * - 69 AS col0 FROM tab0 WHERE NOT - - col0 + - col0 IS NULL
----
-463335
-463335
-463335

onlyif mysql # aggregate syntax: 
query II rowsort label-1721
SELECT ALL + COUNT( * ), + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-1721
SELECT ALL + COUNT ( * ), + COUNT ( * ) FROM tab1
----
3
3

query II rowsort
SELECT + 4 AS col0, col2 + col0 FROM tab2
----
4
104
4
133
4
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1723
SELECT DISTINCT AVG ( ALL col1 ) + - + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1723
SELECT DISTINCT AVG ( ALL col1 ) + - + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

query II rowsort
SELECT 69, 7 AS col2 FROM tab2 AS cor0
----
69
7
69
7
69
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1726
SELECT ALL COUNT( * ) * + - 2 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT ALL COUNT ( * ) * + - 2 col2 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-6

query II rowsort
SELECT + col1 + - 36, 40 + + 7 AS col0 FROM tab2
----
15
47
31
47
41
47

query I rowsort
SELECT ALL 23 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

query I rowsort
SELECT + 65 * - col2 * + col1 FROM tab1
----
-19175
-207740
-87360

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> - - col1
----

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

skipif mysql # not compatible
query I rowsort label-1731
SELECT + - MAX ( + 96 ) FROM tab2 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT - 72 + - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT - 72 + - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1733
SELECT + - 33 * - CAST( - ( col1 ) AS SIGNED ) + - col0 + ( - col1 ) * + col0 FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
-1227
-5919
-675

skipif mysql # not compatible
query I rowsort label-1733
SELECT + - 33 * - CAST ( - ( col1 ) AS INTEGER ) + - col0 + ( - col1 ) * + col0 FROM tab1 AS cor0 WHERE 20 IS NOT NULL
----
-1227
-5919
-675

query I rowsort
SELECT - col2 + - - col2 AS col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1735
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT + col1 ) - 74 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT COUNT ( * ) + + MAX ( DISTINCT + col1 ) - 74 FROM tab1
----
-24

query I rowsort
SELECT col1 * 82 + + col2 * - + col1 AS col0 FROM tab2
----
1608
3009
3234

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

query II rowsort
SELECT - col0 + + 98 * + col0 AS col2, + col2 * col2 - 37 FROM tab2
----
4462
492
6208
1563
7275
3327

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1739
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - - CAST( - + col2 AS DECIMAL ) / - - 57 NOT IN ( + col0 + + - col1 )
----

skipif mysql # not compatible
query III rowsort label-1739
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 + - - CAST ( - + col2 AS REAL ) / - - 57 NOT IN ( + col0 + + - col1 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1741
SELECT ALL 27 * + col2 + - CAST( - 77 AS SIGNED ) FROM tab2
----
1157
1643
698

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL 27 * + col2 + - CAST ( - 77 AS INTEGER ) FROM tab2
----
1157
1643
698

onlyif mysql # aggregate syntax: 
query I rowsort label-1742
SELECT ALL 73 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-1742
SELECT ALL 73 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
70

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

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

query I rowsort
SELECT DISTINCT + - col2 + 91 + 93 * - 97 FROM tab1 AS cor0
----
-8989
-8998
-9026

query I rowsort
SELECT 39 AS col0 FROM tab0 cor0
----
39
39
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1748
SELECT + 27 DIV - col1 col2 FROM tab0 WHERE NOT - ( col1 ) * - 7 NOT BETWEEN col2 AND + ( 55 ) * + col2
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1748
SELECT + 27 / - col1 col2 FROM tab0 WHERE NOT - ( col1 ) * - 7 NOT BETWEEN col2 AND + ( 55 ) * + col2
----
-1
0

query I rowsort
SELECT ALL + 47 * - 68 FROM tab0
----
-3196
-3196
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 * - 80 col0 FROM tab0
----
-7920
-7920
-7920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1751
SELECT - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT CAST( 74 AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1751
SELECT - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT CAST ( 74 AS INTEGER ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1752
SELECT + col0 DIV - 88 + + - 13 * col0 * 22 AS col0 FROM tab2 AS cor0
----
-13156
-18304
-21450

skipif mysql # not compatible
query I rowsort label-1752
SELECT + col0 / - 88 + + - 13 * col0 * 22 AS col0 FROM tab2 AS cor0
----
-13156
-18304
-21450

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

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

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

query I rowsort
SELECT 94 * + 27 * col1 AS col1 FROM tab0 AS cor0
----
205578
2538
53298

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + col0 ) * + col1 * col2 col2 FROM tab2 AS cor0
----
-197120
-291450
-53958

query I rowsort
SELECT 29 * - col1 * + col1 FROM tab1 AS cor0
----
-5684
-64061
-725

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

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

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

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

query I rowsort
SELECT ALL + + ( + col1 ) FROM tab1 WHERE + + 42 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT - 76 * + - 57 * col0 * - - 82 FROM tab1
----
18116424
30194040
32325384

query II rowsort
SELECT ALL - col1 * col1 * - 49 AS col1, 94 FROM tab0
----
21609
94
321489
94
49
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1764
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 99 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-1764
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 99 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 11 AS col0 FROM tab0 WHERE ( NOT NULL > NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1767
SELECT + SUM( 2 ) FROM tab2 WHERE NOT - col2 > col2
----
6

skipif mysql # not compatible
query I rowsort label-1767
SELECT + SUM ( 2 ) FROM tab2 WHERE NOT - col2 > col2
----
6

query I rowsort
SELECT - + 87 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

query I rowsort
SELECT ALL 82 * + ( ( - + col2 ) ) FROM tab1
----
-4838
-5576
-7872

query I rowsort
SELECT DISTINCT col1 * + 43 + + col2 * - 74 FROM tab0
----
-7283
163
5

query III rowsort
SELECT ALL * FROM tab2 WHERE - col2 < ( NULL )
----

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

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

query I rowsort
SELECT ALL - + 29 + + + col1 AS col1 FROM tab2 AS cor0
----
22
38
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1774
SELECT - ( + 15 ) + COUNT( * ) DIV COUNT( * ) * 13 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-1774
SELECT - ( + 15 ) + COUNT ( * ) / COUNT ( * ) * 13 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL - col0 + 75 AS col1 FROM tab0 cor0
----
-12
-22
60

query I rowsort
SELECT DISTINCT - 48 + + + 14 FROM tab1
----
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT + 82 - COUNT( * ) FROM tab1
----
79

skipif mysql # not compatible
query I rowsort label-1777
SELECT + 82 - COUNT ( * ) FROM tab1
----
79

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

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

query I rowsort
SELECT ALL + 83 * - col0 FROM tab1
----
-4233
-7055
-7553

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1780
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST( - col1 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1780
SELECT DISTINCT * FROM tab2 WHERE NOT ( CAST ( - col1 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT - ( - - 77 ) * - - 57 + - + col0 - + col1 AS col2 FROM tab0 AS cor0
----
-4485
-4487
-4497

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 74 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1783
SELECT DISTINCT + 20 DIV + - 56 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1783
SELECT DISTINCT + 20 / + - 56 AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1784
SELECT ALL 66 DIV - col0 FROM tab0 cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1784
SELECT ALL 66 / - col0 FROM tab0 cor0
----
-4
0
0

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

query I rowsort
SELECT - + col0 * - - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT - COUNT( + - ( - + 20 ) ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1787
SELECT - COUNT ( + - ( - + 20 ) ) FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT + - SUM( DISTINCT ( col2 ) ) * + COUNT( * ) FROM tab2 cor0
----
-363

skipif mysql # not compatible
query I rowsort label-1788
SELECT + - SUM ( DISTINCT ( col2 ) ) * + COUNT ( * ) FROM tab2 cor0
----
-363

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

skipif mysql # not compatible
query I rowsort label-1789
SELECT 58 / - COUNT ( * ) AS col1 FROM tab1
----
-19

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1790
SELECT DISTINCT col0 DIV + ( CAST( col2 AS SIGNED ) ), col0 DIV col1 AS col2 FROM tab1
----
0
3
1
1
1
17

skipif mysql # not compatible
query II rowsort label-1790
SELECT DISTINCT col0 / + ( CAST ( col2 AS INTEGER ) ), col0 / col1 AS col2 FROM tab1
----
0
3
1
1
1
17

query I rowsort
SELECT ALL + 88 * + 89 * + - ( - 97 ) AS col0 FROM tab2
----
759704
759704
759704

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

query I rowsort
SELECT DISTINCT + ( - col2 ) + + + 54 FROM tab2
----
-4
14
31

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 75 + + + ( + col0 ) + ( col0 ) * + col0 * 20 * - col2 + + - 52 FROM tab2 cor0
----
-3276863
-6525052
-973441

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

query I rowsort
SELECT col1 * 54 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1799
SELECT DISTINCT col0 DIV - 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1799
SELECT DISTINCT col0 / - 95 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * 32 col1 FROM tab0
----
-2592
-32
-672

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

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

query I rowsort
SELECT - - 99 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4b77467dd5f346109d29f6364a7bb8db

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1803
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ), + ( + ( + + 90 ) ) AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
90

skipif mysql # not compatible
query II rowsort label-1803
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ), + ( + ( + + 90 ) ) AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
NULL
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 59 ) + ( 3 ) col2 FROM tab0 cor0
----
62
62
62

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT ALL COUNT( * ) + 55 FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-1807
SELECT ALL COUNT ( * ) + 55 FROM tab2 cor0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 - + 24, col2 col2 FROM tab0 cor0
----
-14
10
23
47
75
99

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

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

query I rowsort
SELECT col2 - + 55 FROM tab1 cor0
----
13
4
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 57 ) = - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1812
SELECT - - SUM( - col1 ) - + + COUNT( * ) FROM tab2 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1812
SELECT - - SUM ( - col1 ) - + + COUNT ( * ) FROM tab2 cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-1813
SELECT DISTINCT - col1 * - + col2 - + col2 DIV col1 * + + 16 * + col1 AS col2 FROM tab0 AS cor0
----
-1485
210
3807

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT - col1 * - + col2 - + col2 / col1 * + + 16 * + col1 AS col2 FROM tab0 AS cor0
----
-1485
210
3807

query I rowsort
SELECT + col0 * + - 85 + + col2 + - col1 * - 23 + col1 FROM tab1 AS cor0
----
-3903
-6539
-7046

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + col1 + 46 * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 98 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT col0 * - + 76 AS col0 FROM tab0
----
-1140
-6612
-7372

query I rowsort
SELECT ( + - col1 ) FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-1819
SELECT ALL + 79 AS col1, - MAX( ALL col1 ) AS col0 FROM tab2 AS cor0
----
79
-77

skipif mysql # not compatible
query II rowsort label-1819
SELECT ALL + 79 AS col1, - MAX ( ALL col1 ) AS col0 FROM tab2 AS cor0
----
79
-77

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

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NOT ( NULL IS NULL )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1826
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) < col1
----

skipif mysql # not compatible
query I rowsort label-1826
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) < col1
----

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - 53 * + MAX( + col1 ) * 97 AS col2 FROM tab2
----
-395857

skipif mysql # not compatible
query I rowsort label-1832
SELECT ALL - 53 * + MAX ( + col1 ) * 97 AS col2 FROM tab2
----
-395857

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1833
SELECT ALL + ( + col0 ) + + CAST( NULL AS DECIMAL ), - col2 * 0 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-1833
SELECT ALL + ( + col0 ) + + CAST ( NULL AS REAL ), - col2 * 0 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
0

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

skipif mysql # not compatible
query I rowsort label-1834
SELECT + + MAX ( ( + + ( + 15 ) ) ) AS col2 FROM tab1 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-1835
SELECT DISTINCT + SUM( + 74 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
666

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT + SUM ( + 74 ) AS col2 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
666

query I rowsort
SELECT - col0 + - 68 + + col1 + + + col1 FROM tab1
----
-143
-65
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1837
SELECT col0 + col0 DIV + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-1837
SELECT col0 + col0 / + col0 FROM tab2
----
47
65
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1838
SELECT - col2 DIV + - col2 - CAST( + col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-195
-61
-96

skipif mysql # not compatible
query I rowsort label-1838
SELECT - col2 / + - col2 - CAST ( + col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-195
-61
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT DISTINCT - COUNT( * ) - + 33 FROM tab2 cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1839
SELECT DISTINCT - COUNT ( * ) - + 33 FROM tab2 cor0
----
-36

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

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

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

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

query I rowsort
SELECT ALL - col1 - + - 34 * - col2 FROM tab1 AS cor0
----
-2011
-2359
-3278

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 77 + - - col0 >= - + col0 + + col2 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - 47 - 33 AS col2, + col1 FROM tab2
----
-80
51
-80
67
-80
77

query I rowsort
SELECT + 62 * + 58 - + - col2 AS col0 FROM tab0
----
3606
3643
3695

query I rowsort
SELECT ALL 8 - - 68 FROM tab2
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1848
SELECT - 0 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1848
SELECT - 0 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1849
SELECT DISTINCT + COUNT( ALL + CAST( - - col0 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT + COUNT ( ALL + CAST ( - - col0 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT - 58 * - MIN( DISTINCT 14 ) col0 FROM tab2 cor0
----
812

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT - 58 * - MIN ( DISTINCT 14 ) col0 FROM tab2 cor0
----
812

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col1 * col1 ) NOT BETWEEN col2 AND col1 / + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + col1 BETWEEN + col1 AND + col2 * - + 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col2, 6 AS col2 FROM tab0
----
15
6
87
6
97
6

query II rowsort
SELECT - 64 AS col2, + col2 AS col2 FROM tab0
----
-64
10
-64
47
-64
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL + MIN( ALL 37 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL + MIN ( ALL 37 ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1856
SELECT ALL - 46 col0, MIN( DISTINCT col1 ) + + 46 FROM tab0 AS cor0
----
-46
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1856
SELECT ALL - 46 col0, MIN ( DISTINCT col1 ) + + 46 FROM tab0 AS cor0
----
-46
47

query I rowsort
SELECT ALL + ( - 57 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * 37 + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT ALL - - SUM( + col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-1859
SELECT ALL - - SUM ( + col2 ) AS col2 FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-1860
SELECT ALL 18 * - MIN( col1 ) FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-1860
SELECT ALL 18 * - MIN ( col1 ) FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ( col1 ) * + col2 - + - ( - col0 ) * - 73 AS col1 FROM tab0 AS cor0
----
4902
6561
7180

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT NULL <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ALL COUNT( * ) * 64 FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-1863
SELECT ALL COUNT ( * ) * 64 FROM tab2
----
192

query II rowsort
SELECT - col2 * + col1, col0 FROM tab1
----
-1344
51
-295
85
-3196
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( + col0 + - 56 * - 52 )
----

query I rowsort
SELECT ALL 49 AS col1 FROM tab0 WHERE + 14 <> - - col0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 39 BETWEEN + col0 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1868
SELECT + col0 AS col0 FROM tab0 WHERE - - 29 + CAST( NULL AS SIGNED ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1868
SELECT + col0 AS col0 FROM tab0 WHERE - - 29 + CAST ( NULL AS INTEGER ) IS NULL
----
15
87
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 37
----

query I rowsort
SELECT DISTINCT 14 - - col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
19
28
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT - MAX( DISTINCT col1 ) + + MIN( DISTINCT ( - col0 ) ) + + 49 AS col0 FROM tab0 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-1871
SELECT - MAX ( DISTINCT col1 ) + + MIN ( DISTINCT ( - col0 ) ) + + 49 AS col0 FROM tab0 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1872
SELECT + - CAST( NULL AS SIGNED ) + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1872
SELECT + - CAST ( NULL AS INTEGER ) + - - col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 86 + + 81 FROM tab2 AS cor0
----
167
167
167

query I rowsort
SELECT - - col2 + col1 + - col0 * - + col2 AS col2 FROM tab1 cor0
----
5006
5079
6303

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1875
SELECT ALL - col2 + CAST( ( - - 92 ) AS SIGNED ) FROM tab0 AS cor0
----
-7
45
82

skipif mysql # not compatible
query I rowsort label-1875
SELECT ALL - col2 + CAST ( ( - - 92 ) AS INTEGER ) FROM tab0 AS cor0
----
-7
45
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1876
SELECT col0 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1876
SELECT col0 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 23 AS col1 FROM tab1 AS cor0
----
-28
-37
-70

query I rowsort
SELECT ALL + col0 * + ( - - col0 ) AS col1 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT - 86 * col0 FROM tab2
----
-3956
-5504
-6450

query II rowsort
SELECT ALL 87, 78 AS col2 FROM tab1
----
87
78
87
78
87
78

query II rowsort
SELECT DISTINCT 77, 37 * col1 AS col0 FROM tab0
----
77
2997
77
37
77
777

onlyif mysql # aggregate syntax: 
query I rowsort label-1882
SELECT - MIN( DISTINCT - col0 ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-1882
SELECT - MIN ( DISTINCT - col0 ) AS col0 FROM tab2
----
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - col1 col2 FROM tab1
----
14
-14
47
-47
5
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT DISTINCT + ( + MIN( ALL - + col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1884
SELECT DISTINCT + ( + MIN ( ALL - + col0 ) ) AS col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 50 AS col1 FROM tab0 cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * col1 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT - COUNT( - col2 ) + + 29 FROM tab1 cor0
----
26

skipif mysql # not compatible
query I rowsort label-1887
SELECT - COUNT ( - col2 ) + + 29 FROM tab1 cor0
----
26

query I rowsort
SELECT + - col2 + + 60 AS col2 FROM tab1 AS cor0
----
-36
-8
1

query I rowsort
SELECT DISTINCT col0 + + - ( col2 ) AS col0 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 * - col1
----

query I rowsort
SELECT DISTINCT col2 + + 15 AS col1 FROM tab2 AS cor0
----
38
55
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 86 col0 FROM tab1 cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1893
SELECT + MIN( DISTINCT - - 53 ) AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-1893
SELECT + MIN ( DISTINCT - - 53 ) AS col1 FROM tab1
----
53

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1894
SELECT - COUNT( * ) DIV + ( + - COUNT( * ) ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1894
SELECT - COUNT ( * ) / + ( + - COUNT ( * ) ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1895
SELECT SUM( + col2 ) * - COUNT( * ) col1 FROM tab1
----
-669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1895
SELECT SUM ( + col2 ) * - COUNT ( * ) col1 FROM tab1
----
-669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1896
SELECT - - CAST( + + 27 AS SIGNED ) * 78 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1896
SELECT - - CAST ( + + 27 AS INTEGER ) * 78 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1897
SELECT * FROM tab1 AS cor0 WHERE CAST( - col1 AS SIGNED ) * - 36 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1897
SELECT * FROM tab1 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * - 36 IS NULL
----

query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-72

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - 10 ) IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 AS col0 FROM tab1 WHERE NOT + col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT ALL col0 - - + 29 * + col1 AS col1 FROM tab2
----
1525
2018
2297

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 4 >= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 26 * + 4 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) = 22
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT 95 + + + 86 * + - 53 + + 15 + - 21 DIV - col2 * + 32 FROM tab2 AS cor0
----
-4448

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT 95 + + + 86 * + - 53 + + 15 + - 21 / - col2 * + 32 FROM tab2 AS cor0
----
-4448

onlyif mysql # DIV for integer division: 
query I rowsort label-1906
SELECT 63 DIV + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1906
SELECT 63 / + - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1907
SELECT + - COUNT( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1907
SELECT + - COUNT ( DISTINCT - - col2 ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1908
SELECT + SUM( DISTINCT + col2 ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-1908
SELECT + SUM ( DISTINCT + col2 ) FROM tab2
----
121

query II rowsort
SELECT DISTINCT col0, col1 AS col0 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - 43 AS col1 FROM tab0 WHERE - col1 IS NOT NULL
----
-43
-43
-43

query I rowsort
SELECT ALL + 38 * + 73 * - + col0 FROM tab1
----
-141474
-235790
-252434

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1912
SELECT + col0 AS col0, ( + 75 ) / col2 + - + col1 + col2 * - + CAST( NULL AS SIGNED ) FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-1912
SELECT + col0 AS col0, ( + 75 ) / col2 + - + col1 + col2 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT DISTINCT 65 FROM tab1 WHERE - + col1 * - 28 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1914
SELECT ALL 14 * - CAST( NULL AS SIGNED ) * - COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1914
SELECT ALL 14 * - CAST ( NULL AS INTEGER ) * - COUNT ( * ) col0 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT DISTINCT col2 DIV + 18 FROM tab0
----
0
2
5

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT col2 / + 18 FROM tab0
----
0
2
5

query I rowsort
SELECT ALL 15 * 53 FROM tab1
----
795
795
795

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 / + - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col0 AS col1 FROM tab2 AS cor0 WHERE col2 * - col1 <> - col1
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + - 67 AS col2, col2 * - - ( - 60 ) FROM tab0 cor0
----
-67
-2820
-67
-5940
-67
-600

query I rowsort
SELECT - col1 * ( - 55 ) FROM tab1 AS cor0
----
2585
275
770

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1924
SELECT + COUNT( * ) * - COUNT( * ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-1924
SELECT + COUNT ( * ) * - COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT - + COUNT( - 51 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1925
SELECT - + COUNT ( - 51 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col2 BETWEEN + - col2 + - + col0 AND NULL
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - - col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1928
SELECT CAST( NULL AS SIGNED ) * + COUNT( * ) + + + 83 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1928
SELECT CAST ( NULL AS INTEGER ) * + COUNT ( * ) + + + 83 FROM tab2
----
NULL

query I rowsort
SELECT ( + col2 ) + + col1 AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1930
SELECT - COUNT( * ) + + 39 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-1930
SELECT - COUNT ( * ) + + 39 AS col2 FROM tab1
----
36

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NULL IS NOT NULL OR NOT NULL BETWEEN col2 AND col2
----

query I rowsort
SELECT ALL 3 * col0 FROM tab2 AS cor0
----
138
192
225

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 55 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 91 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( + - 95 ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT + - 63 AS col0, col1 FROM tab0 AS cor0
----
-63
1
-63
21
-63
81

query II rowsort
SELECT 27 AS col0, 41 AS col0 FROM tab1 cor0
----
27
41
27
41
27
41

query II rowsort
SELECT - 56 AS col1, col2 FROM tab1 AS cor0
----
-56
59
-56
68
-56
96

query II rowsort
SELECT DISTINCT col2 AS col2, - col1 + - + col0 FROM tab1 AS cor0
----
59
-90
68
-138
96
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-1940
SELECT + COUNT( ALL - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1940
SELECT + COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + ( 27 ) FROM tab1
----
27
27
27

query I rowsort
SELECT DISTINCT col2 * + + 78 FROM tab2
----
1794
3120
4524

query II rowsort
SELECT DISTINCT ( + col1 ), col0 * + + col0 AS col2 FROM tab0
----
1
9409
21
7569
81
225

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT COUNT( ALL + 23 ) + - - COUNT( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1944
SELECT COUNT ( ALL + 23 ) + - - COUNT ( * ) col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL - col0 + ( + + 95 ) AS col1 FROM tab1 AS cor0
----
10
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT ALL - 10 * - + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT ALL - 10 * - + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT 73 DIV + MAX( ALL 97 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT 73 / + MAX ( ALL 97 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT COUNT( * ) + - + MAX( - col0 ) + - 66 AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT COUNT ( * ) + - + MAX ( - col0 ) + - 66 AS col1 FROM tab2
----
-17

query I rowsort
SELECT 96 + - 0 + col0 + col1 FROM tab2
----
193
237
238

query I rowsort
SELECT - + 59 + 37 AS col2 FROM tab2 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1951
SELECT DISTINCT - + col2, - 80, + + col2 * - col2 + ( - - col0 ) - ( + ( + col0 ) ) + + - col0 FROM tab0 cor0 WHERE + 78 * + + CAST( NULL AS SIGNED ) * 32 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1951
SELECT DISTINCT - + col2, - 80, + + col2 * - col2 + ( - - col0 ) - ( + ( + col0 ) ) + + - col0 FROM tab0 cor0 WHERE + 78 * + + CAST ( NULL AS INTEGER ) * 32 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1952
SELECT col1 - - + col2 FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1952
SELECT col1 - - + col2 FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1953
SELECT - col2 + + col0 + - CAST( NULL AS SIGNED ) - + col1 * col1 * + col1 * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1953
SELECT - col2 + + col0 + - CAST ( NULL AS INTEGER ) - + col1 * col1 * + col1 * + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( ( col0 ) ) * + col0 col2 FROM tab2 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT - 85 + + col0 FROM tab2 AS cor0
----
-10
-21
-39

query I rowsort
SELECT + col0 * - - col2 * + col0 + + col2 FROM tab0 AS cor0
----
10622
75700
931590

query I rowsort
SELECT ALL - 76 + + - 0 AS col1 FROM tab1 cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-1958
SELECT ALL + COUNT( + + ( - - 98 ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1958
SELECT ALL + COUNT ( + + ( - - 98 ) ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT ALL ( ( - + COUNT( * ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1959
SELECT ALL ( ( - + COUNT ( * ) ) ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT + COUNT( * ) * + COUNT( ALL + col2 ) col1 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1960
SELECT + COUNT ( * ) * + COUNT ( ALL + col2 ) col1 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT ( - - CAST( + col1 AS SIGNED ) ) AS col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1961
SELECT ( - - CAST ( + col1 AS INTEGER ) ) AS col1 FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1962
SELECT ALL + SUM( + - 77 ) DIV + COUNT( * ) AS col2 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + SUM ( + - 77 ) / + COUNT ( * ) AS col2 FROM tab0
----
-77

query II rowsort
SELECT DISTINCT + 16 AS col2, - 75 FROM tab0
----
16
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT + 96 * 18 - COUNT( * ) FROM tab0
----
1725

skipif mysql # not compatible
query I rowsort label-1964
SELECT + 96 * 18 - COUNT ( * ) FROM tab0
----
1725

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT - SUM( ALL + col1 ) - + + 27 FROM tab1 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1965
SELECT - SUM ( ALL + col1 ) - + + 27 FROM tab1 cor0
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1966
SELECT DISTINCT COUNT( * ) + - - SUM( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT COUNT ( * ) + - - SUM ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 - + 98 FROM tab2 AS cor0
----
-23
-34
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT - COUNT( * ) + + - 52 FROM tab1 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-1968
SELECT - COUNT ( * ) + + - 52 FROM tab1 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT - COUNT( * ) + + SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-1969
SELECT - COUNT ( * ) + + SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-124

query I rowsort
SELECT 54 * + col2 * + 70 * - col1 FROM tab0
----
-14390460
-374220
-793800

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1971
SELECT ( - col2 ) * + - 91 * + + CAST( - - col2 AS SIGNED ) * col1 + - 35 FROM tab1
----
11741149
1583820
19776813

skipif mysql # not compatible
query I rowsort label-1971
SELECT ( - col2 ) * + - 91 * + + CAST ( - - col2 AS INTEGER ) * col1 + - 35 FROM tab1
----
11741149
1583820
19776813

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN + col1 AND + 50 * - 40
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1973
SELECT * FROM tab2 cor0 WHERE NOT + CAST( + - col0 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-1973
SELECT * FROM tab2 cor0 WHERE NOT + CAST ( + - col0 AS REAL ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT MAX( + + 71 ) AS col2 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-1974
SELECT MAX ( + + 71 ) AS col2 FROM tab2 AS cor0
----
71

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> + col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( + col0 ) <> ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1977
SELECT - - MIN( - 49 ) AS col0 FROM tab0 AS cor0
----
-49

skipif mysql # not compatible
query I rowsort label-1977
SELECT - - MIN ( - 49 ) AS col0 FROM tab0 AS cor0
----
-49

query I rowsort
SELECT ALL + col1 * + 30 FROM tab2
----
1530
2010
2310

query I rowsort
SELECT DISTINCT col1 * + col2 * - col2 * + + 1 FROM tab1
----
-129024
-17405
-217328

query I rowsort
SELECT ALL - ( - 56 ) AS col2 FROM tab2
----
56
56
56

query I rowsort
SELECT DISTINCT + + 50 * + 94 AS col2 FROM tab0 AS cor0
----
4700

query I rowsort
SELECT + + col0 * - + col0 FROM tab0 WHERE NULL < + 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1983
SELECT - COUNT( * ) - + 89 FROM tab0, tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-1983
SELECT - COUNT ( * ) - + 89 FROM tab0, tab1 cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1984
SELECT DISTINCT ( 10 ) + - COUNT( * ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-1984
SELECT DISTINCT ( 10 ) + - COUNT ( * ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-1985
SELECT ALL - + COUNT( * ) + MAX( DISTINCT + - col2 ) col0 FROM tab2 cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1985
SELECT ALL - + COUNT ( * ) + MAX ( DISTINCT + - col2 ) col0 FROM tab2 cor0
----
-26

query III rowsort
SELECT * FROM tab2 cor0 WHERE 40 <> NULL
----

query I rowsort
SELECT DISTINCT 47 * - 62 * - + col2 + + + 16 FROM tab1 AS cor0
----
171942
198168
279760

query I rowsort
SELECT ALL col0 + - 17 * - col2 AS col0 FROM tab0 AS cor0
----
1780
257
814

onlyif mysql # aggregate syntax: 
query I rowsort label-1989
SELECT + COUNT( DISTINCT - - col2 ) - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1989
SELECT + COUNT ( DISTINCT - - col2 ) - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1990
SELECT DISTINCT col0 DIV col1 + - 66 FROM tab2 AS cor0
----
-65
-66

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT col0 / col1 + - 66 FROM tab2 AS cor0
----
-65
-66

query I rowsort
SELECT + 13 + + col2 AS col2 FROM tab2 AS cor0
----
36
53
71

query I rowsort
SELECT - - 59 + col2 * + 75 FROM tab1 AS cor0
----
4484
5159
7259

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 38 col2 FROM tab2 AS cor0
----
61
78
96

query III rowsort
SELECT * FROM tab2 WHERE - 24 - + - col0 NOT BETWEEN NULL AND 9 * + col0 + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1995
SELECT ALL CAST( - + col0 AS SIGNED ) - 74 FROM tab1
----
-125
-159
-165

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL CAST ( - + col0 AS INTEGER ) - 74 FROM tab1
----
-125
-159
-165

query I rowsort
SELECT DISTINCT 13 * + col1 AS col1 FROM tab0
----
1053
13
273

query II rowsort
SELECT DISTINCT col0, 15 FROM tab1
----
51
15
85
15
91
15

query I rowsort
SELECT DISTINCT - + 83 + + col0 FROM tab1 WHERE NOT NULL <= 52
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2000
SELECT + CAST( - 17 AS SIGNED ) DIV 37 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2000
SELECT + CAST ( - 17 AS INTEGER ) / 37 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col2 * - + col2 AS col0 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2002
SELECT DISTINCT ( - - COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT ( - - COUNT ( * ) ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2003
SELECT DISTINCT + + MAX( - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2003
SELECT DISTINCT + + MAX ( - - col0 ) FROM tab1 AS cor0
----
91

query II rowsort
SELECT DISTINCT - col2 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-2005
SELECT ALL - MIN( ALL + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2005
SELECT ALL - MIN ( ALL + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT 54 FROM tab0 AS cor0 WHERE NULL IS NULL
----
54

query III rowsort
SELECT * FROM tab1 WHERE NOT + 53 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 58 * col0 * - - col0 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2009
SELECT DISTINCT + CAST( COUNT( ALL + ( - col2 ) ) AS SIGNED ) + - + 50 FROM tab0 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2009
SELECT DISTINCT + CAST ( COUNT ( ALL + ( - col2 ) ) AS INTEGER ) + - + 50 FROM tab0 AS cor0
----
-47

query II rowsort
SELECT DISTINCT + 90 + col1 AS col0, + col2 FROM tab0 AS cor0
----
111
10
171
47
91
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT + 70 + COUNT( * ) FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2011
SELECT + 70 + COUNT ( * ) FROM tab0
----
73

query I rowsort
SELECT + col1 + - + col2 AS col1 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2013
SELECT - + ( + COUNT( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-2013
SELECT - + ( + COUNT ( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 50 * - col1 * + col2 * + col1 + - 69 col2 FROM tab1
----
-73819
-7510669
-940869

query I rowsort
SELECT + - 0 + + col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - 60 + + 19 FROM tab2 cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2017
SELECT - CAST( NULL AS DECIMAL ) / - - col2 * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2017
SELECT - CAST ( NULL AS REAL ) / - - col2 * + - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT ALL - + COUNT( * ) FROM tab0 WHERE NOT ( col1 ) * + col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL - + COUNT ( * ) FROM tab0 WHERE NOT ( col1 ) * + col2 <> NULL
----
0

query I rowsort
SELECT col1 - + 16 AS col2 FROM tab1
----
-11
-2
31

query I rowsort
SELECT - col0 - + 41 FROM tab2
----
-105
-116
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT DISTINCT - COUNT( - 63 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2021
SELECT DISTINCT - COUNT ( - 63 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT 49 - COUNT( * ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2022
SELECT 49 - COUNT ( * ) AS col1 FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + - 51 AS col1, col1 + - col0 col1 FROM tab0
----
-36
66
36
-66
46
-96

query I rowsort
SELECT DISTINCT - col0 + - - col0 + col2 FROM tab0 cor0 WHERE 76 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT + - 19 * - col1 FROM tab1 AS cor0
----
266
893
95

query I rowsort
SELECT ALL - ( - 43 ) FROM tab2 cor0
----
43
43
43

query II rowsort
SELECT - 4 AS col1, - col0 * col1 AS col2 FROM tab2 cor0
----
-4
-2346
-4
-4928
-4
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2028
SELECT ALL ( MIN( ALL + + col0 ) ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-2028
SELECT ALL ( MIN ( ALL + + col0 ) ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2029
SELECT + col0 / + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2029
SELECT + col0 / + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT DISTINCT ( - + MIN( DISTINCT + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2030
SELECT DISTINCT ( - + MIN ( DISTINCT + ( + col2 ) ) ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2031
SELECT 97 / + + CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2031
SELECT 97 / + + CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2032
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2032
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT 40 * COUNT( * ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-2033
SELECT 40 * COUNT ( * ) FROM tab2
----
120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col0 * + col2 * - col0 AS col1 FROM tab0
----
1
-931491
21
-75690
81
-10575

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL >= - ( + col1 )
----

query II rowsort
SELECT ALL col2 AS col1, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL CAST( NULL AS SIGNED ) + + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL CAST ( NULL AS INTEGER ) + + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 * 54 BETWEEN NULL AND + - col0
----

query II rowsort
SELECT + col2 + + - col2 AS col0, + col1 FROM tab2 AS cor0
----
0
51
0
67
0
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT 83 + - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2040
SELECT 83 + - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT + + COUNT( + 78 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2041
SELECT + + COUNT ( + 78 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT ALL - + ( + MIN( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2042
SELECT ALL - + ( + MIN ( ALL col1 ) ) AS col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT DISTINCT - 98 AS col2, + col0 FROM tab2 AS cor0
----
-98
46
-98
64
-98
75

query I rowsort
SELECT col2 - + ( - - col0 ) FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2045
SELECT DISTINCT SUM( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-2045
SELECT DISTINCT SUM ( - col0 ) AS col2 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - col0 + + + col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT + + 19 + + col1 FROM tab2 AS cor0
----
70
86
96

query I rowsort
SELECT col1 * + col1 + 47 FROM tab2 AS cor0
----
2648
4536
5976

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col2 BETWEEN + col1 AND NULL
----

query II rowsort
SELECT ALL col1 - col1 + - - col1 * + col0, - col2 AS col2 FROM tab0
----
1215
-47
1827
-10
97
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT DISTINCT CAST( - CAST( - col2 AS SIGNED ) AS SIGNED ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2051
SELECT DISTINCT CAST ( - CAST ( - col2 AS INTEGER ) AS INTEGER ) FROM tab2
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 1 - - - col2 col2 FROM tab2
----
-22
-39
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 79 * - + 32 col0 FROM tab1
----
-2528
-2528
-2528

query I rowsort
SELECT - col2 * + + 41 AS col2 FROM tab1 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT ( - - col0 ) FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT - col2 * - 52 AS col1 FROM tab1 AS cor0
----
3068
3536
4992

onlyif mysql # DIV for integer division: 
query I rowsort label-2057
SELECT + 90 DIV + col2 AS col0 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2057
SELECT + 90 / + col2 AS col0 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2058
SELECT + CAST( NULL AS DECIMAL ) / + - col0 * 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2058
SELECT + CAST ( NULL AS REAL ) / + - col0 * 82 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col0, + 84 AS col2 FROM tab0 AS cor0
----
15
84
87
84
97
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 18 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 + - 33 AS col0 FROM tab1 WHERE + 70 <> col1
----
26
35
63

query I rowsort
SELECT DISTINCT + col1 + + 11 AS col2 FROM tab1
----
16
25
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2063
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2064
SELECT 84 + + COUNT( ( - col0 ) ) * + COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-2064
SELECT 84 + + COUNT ( ( - col0 ) ) * + COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT ALL ( 79 ) FROM tab1
----
79
79
79

query I rowsort
SELECT ( col0 ) + 49 AS col0 FROM tab0
----
136
146
64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 > ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2068
SELECT + 44 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col1 + + 83 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2068
SELECT + 44 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col1 + + 83 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2069
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 0 / - col1 FROM tab2 WHERE 58 NOT BETWEEN + ( 7 ) AND NULL
----

query I rowsort
SELECT + 0 * col0 + col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 col2 FROM tab2
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - 47 + SUM( DISTINCT - col1 ) AS col1 FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-2073
SELECT - 47 + SUM ( DISTINCT - col1 ) AS col1 FROM tab0
----
-150

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2074
SELECT DISTINCT ( ( COUNT( col2 ) ) ) DIV - 74 FROM tab2 WHERE NULL BETWEEN col2 * + 77 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2074
SELECT DISTINCT ( ( COUNT ( col2 ) ) ) / - 74 FROM tab2 WHERE NULL BETWEEN col2 * + 77 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 61 - ( - col2 ) AS col0 FROM tab0
----
108
160
71

onlyif mysql # aggregate syntax: 
query I rowsort label-2076
SELECT DISTINCT - COUNT( col0 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2076
SELECT DISTINCT - COUNT ( col0 ) AS col2 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2077
SELECT + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT ALL - 2 + - COUNT( * ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-2079
SELECT ALL - 2 + - COUNT ( * ) AS col1 FROM tab0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL + COUNT( * ) + - MAX( DISTINCT col0 ) AS col0 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL + COUNT ( * ) + - MAX ( DISTINCT col0 ) AS col0 FROM tab2
----
-72

onlyif mysql # DIV for integer division: 
query I rowsort label-2081
SELECT + col0 * - col1 + + col1 DIV col0 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2081
SELECT + col0 * - col1 + + col1 / col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT + COUNT( * ) FROM tab1 WHERE NOT NULL <> col2 + col0
----
0

skipif mysql # not compatible
query I rowsort label-2082
SELECT + COUNT ( * ) FROM tab1 WHERE NOT NULL <> col2 + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT + 35 * + COUNT( * ) FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT + 35 * + COUNT ( * ) FROM tab1
----
105

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 + + 57 IN ( + 41 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2085
SELECT DISTINCT + col1 + - col0 DIV + col2 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + col1 + - col0 / + col2 FROM tab1 AS cor0
----
14
4
46

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2087
SELECT - MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2087
SELECT - MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL + 50 + - col1 FROM tab0 AS cor0
----
-31
29
49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 8 ) IS NOT NULL
----

query I rowsort
SELECT + 91 + col0 AS col0 FROM tab0 AS cor0
----
106
178
188

query I rowsort
SELECT ALL - 67 + col0 AS col0 FROM tab1 AS cor0
----
-16
18
24

query I rowsort
SELECT + 32 + col1 FROM tab2 cor0
----
109
83
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT - COUNT( * ) - + 3 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT - COUNT ( * ) - + 3 FROM tab0
----
-6

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE NOT + 39 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2095
SELECT - col2 DIV + col1 + + 14 AS col1 FROM tab0
----
-85
14
14

skipif mysql # not compatible
query I rowsort label-2095
SELECT - col2 / + col1 + + 14 AS col1 FROM tab0
----
-85
14
14

query I rowsort
SELECT - col0 + + col2 * - 0 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab2 WHERE ( col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2098
SELECT ALL 86 * 70 FROM tab1 AS cor0 WHERE - col0 + + 38 * + CAST( NULL AS SIGNED ) IN ( 2 )
----

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL 86 * 70 FROM tab1 AS cor0 WHERE - col0 + + 38 * + CAST ( NULL AS INTEGER ) IN ( 2 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2100
SELECT DISTINCT + ( - 66 ) DIV col1 - + col0 AS col2 FROM tab2 AS cor0
----
-47
-64
-75

skipif mysql # not compatible
query I rowsort label-2100
SELECT DISTINCT + ( - 66 ) / col1 - + col0 AS col2 FROM tab2 AS cor0
----
-47
-64
-75

query I rowsort
SELECT ALL 51 + col0 AS col1 FROM tab0 AS cor0
----
138
148
66

query I rowsort
SELECT ALL 70 * 36 FROM tab2 AS cor0 WHERE - 50 BETWEEN - 46 / + 96 AND ( col0 )
----

query I rowsort
SELECT DISTINCT + 69 * col2 FROM tab1 WHERE ( - 58 * 11 + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 84 * + - col1 * - col2 AS col2 FROM tab1
----
112896
24780
268464

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT IN ( + col1 * - 62 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2106
SELECT - CAST( NULL AS SIGNED ) * CAST( 64 AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2106
SELECT - CAST ( NULL AS INTEGER ) * CAST ( 64 AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2107
SELECT + col1 * 77 + ( + col1 ) FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) ) < 59 + - col0
----

skipif mysql # not compatible
query I rowsort label-2107
SELECT + col1 * 77 + ( + col1 ) FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) < 59 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2108
SELECT ALL MIN( ALL - col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2108
SELECT ALL MIN ( ALL - col2 ) col2 FROM tab2
----
-58

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT + MAX( ( - col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-2110
SELECT + MAX ( ( - col2 ) ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT ALL col0 * 24 FROM tab1
----
1224
2040
2184

query I rowsort
SELECT ALL + 29 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2113
SELECT + + 83 / + + CAST( NULL AS DECIMAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2113
SELECT + + 83 / + + CAST ( NULL AS REAL ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( - col0 ) * 56 FROM tab1 AS cor0
----
-2856
-4760
-5096

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2115
SELECT + COUNT( * ) * COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( - - col2 ) / - CAST( + ( col2 ) AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT + COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( - - col2 ) / - CAST ( + ( col2 ) AS INTEGER ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2116
SELECT DISTINCT + COUNT( * ) + - ( - 30 ) col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2116
SELECT DISTINCT + COUNT ( * ) + - ( - 30 ) col2 FROM tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT + ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2117
SELECT + ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * - ( + col0 ) + 23 * - col0 FROM tab1 AS cor0
----
-1887
-2380
-6370

query II rowsort
SELECT ALL 61 AS col1, + col2 AS col1 FROM tab2 AS cor0
----
61
23
61
40
61
58

query I rowsort
SELECT DISTINCT + 69 * 20 FROM tab1 AS cor0
----
1380

onlyif mysql # aggregate syntax: 
query I rowsort label-2121
SELECT - + MIN( ALL + col0 ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-2121
SELECT - + MIN ( ALL + col0 ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2122
SELECT + - 19 / CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2122
SELECT + - 19 / CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT ALL + 79 * - COUNT( * ) FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-2123
SELECT ALL + 79 * - COUNT ( * ) FROM tab0
----
-237

query I rowsort
SELECT DISTINCT col2 + col2 AS col1 FROM tab0 WHERE NOT NULL > 97
----

query I rowsort
SELECT col1 + + 53 + - + col0 FROM tab2
----
45
58
66

query I rowsort
SELECT ALL ( - + ( + + col2 ) ) FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col1 AS col2 FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND - col0 * col2
----

query I rowsort
SELECT DISTINCT col2 + - col0 AS col1 FROM tab1 WHERE NOT - 29 * col1 IS NOT NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + ( + ( + col1 ) ) + 41 AS col2 FROM tab1
----
46
55
88

query I rowsort
SELECT DISTINCT + col0 * ( - col0 ) * + 99 FROM tab2
----
-209484
-405504
-556875

query III rowsort
SELECT * FROM tab1 WHERE ( - - 77 ) IS NULL
----

query I rowsort
SELECT - 35 + - + ( + col2 ) FROM tab2
----
-58
-75
-93

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2133
SELECT ALL + 16 DIV - - CAST( + - 14 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2133
SELECT ALL + 16 / - - CAST ( + - 14 AS INTEGER ) FROM tab1
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT - 87 >= NULL ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 98 * - + 84 / - + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT 50 - COUNT( * ) col2 FROM tab1 WHERE ( - + col1 * 58 + 76 ) IS NULL
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2136
SELECT 50 - COUNT ( * ) col2 FROM tab1 WHERE ( - + col1 * 58 + 76 ) IS NULL
----
50

query I rowsort
SELECT ALL + 73 + col2 AS col0 FROM tab0 AS cor0
----
120
172
83

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2139
SELECT DISTINCT col1 / + col0 + + 14 AS col0 FROM tab0 AS cor0 WHERE NOT - ( + + col0 ) / + col0 - col2 IS NULL AND NOT col0 NOT BETWEEN ( NULL ) AND + col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2139
SELECT DISTINCT col1 / + col0 + + 14 AS col0 FROM tab0 AS cor0 WHERE NOT - ( + + col0 ) / + col0 - col2 IS NULL AND NOT col0 NOT BETWEEN ( NULL ) AND + col0 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col2 * - ( + col2 ) AS col0 FROM tab2 AS cor0
----
1600
3364
529

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 8 <= + 68 * - col2 + - ( + col2 ) - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - - ( - + col0 ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT - col1 DIV + + 11 AS col2 FROM tab2 AS cor0
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-2143
SELECT - col1 / + + 11 AS col2 FROM tab2 AS cor0
----
-4
-6
-7

query I rowsort
SELECT + 67 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( ( + + col1 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + 90, + col0 * + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2146
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL IN ( - col0 - + CAST( NULL AS SIGNED ), 61 )
----

skipif mysql # not compatible
query I rowsort label-2146
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NULL IN ( - col0 - + CAST ( NULL AS INTEGER ), 61 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2147
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2147
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT COUNT( DISTINCT - 26 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT COUNT ( DISTINCT - 26 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT col0 FROM tab2 WHERE NOT col1 * - + col1 IS NOT NULL
----

query II rowsort
SELECT ALL 92 AS col2, col0 * col1 FROM tab0 AS cor0
----
92
1215
92
1827
92
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 >= + + col1 - col0 * + col0 * + 34 / - col2 + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2152
SELECT ALL - + MIN( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-2152
SELECT ALL - + MIN ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
77

query I rowsort
SELECT + + ( 50 ) AS col0 FROM tab1 AS cor0
----
50
50
50

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 53 * + - col0 col1 FROM tab2
----
124338
261184
266325

query I rowsort
SELECT DISTINCT col0 * col0 + - col0 FROM tab0 WHERE NOT + + 57 / - col2 >= col0 + + col0 * + 21
----
210
7482
9312

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 / - col2 * - + 18 * - + col1 IN ( + col2 + - 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + + col1 / + col1 FROM tab0 WHERE NULL NOT BETWEEN + + 71 * - - col1 - + - 78 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT + MIN( DISTINCT - - col0 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2160
SELECT + MIN ( DISTINCT - - col0 ) AS col0 FROM tab2
----
46

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 94 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2162
SELECT - CAST( - col0 AS SIGNED ) + col0 FROM tab1 AS cor0
----
102
170
182

skipif mysql # not compatible
query I rowsort label-2162
SELECT - CAST ( - col0 AS INTEGER ) + col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT + 52 DIV + - col0 + 44 FROM tab0 AS cor0
----
41
44
44

skipif mysql # not compatible
query I rowsort label-2163
SELECT + 52 / + - col0 + 44 FROM tab0 AS cor0
----
41
44
44

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 7 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND - 11 * + 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2166
SELECT DISTINCT CAST( - ( + 88 ) AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 25 + + 58 IS NULL )
----
-88

skipif mysql # not compatible
query I rowsort label-2166
SELECT DISTINCT CAST ( - ( + 88 ) AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( 25 + + 58 IS NULL )
----
-88

onlyif mysql # DIV for integer division: 
query II rowsort label-2167
SELECT ALL col0 * - 50 DIV + 5 AS col1, - col1 FROM tab2
----
-460
-51
-640
-77
-750
-67

skipif mysql # not compatible
query II rowsort label-2167
SELECT ALL col0 * - 50 / + 5 AS col1, - col1 FROM tab2
----
-460
-51
-640
-77
-750
-67

query I rowsort
SELECT ALL + ( - + 65 ) FROM tab0
----
-65
-65
-65

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2169
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2169
SELECT - ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT + 52 DIV + 77 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2170
SELECT + 52 / + 77 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT ( - col2 ) + - - 58 + + col2 + + + col0 FROM tab1
----
109
143
149

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2172
SELECT + COUNT( * ) DIV + - COUNT( * ) AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2172
SELECT + COUNT ( * ) / + - COUNT ( * ) AS col1 FROM tab2
----
-1

query I rowsort
SELECT ALL + col1 - col2 AS col1 FROM tab0 cor0
----
-98
11
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2174
SELECT CAST( - + 64 AS SIGNED ) * - COUNT( * ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-2174
SELECT CAST ( - + 64 AS INTEGER ) * - COUNT ( * ) FROM tab2
----
192

query I rowsort
SELECT DISTINCT + 78 - col2 + - col2 + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 16 BETWEEN + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 85 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE + 26 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE + 26 <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT + MAX( ALL - 34 ) FROM tab2 cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2179
SELECT + MAX ( ALL - 34 ) FROM tab2 cor0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2180
SELECT ALL - 49 DIV - - 83 col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2180
SELECT ALL - 49 / - - 83 col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2181
SELECT + col1 * - col2 + + + col0 FROM tab0 WHERE NOT - CAST( col2 AS SIGNED ) * + col0 + + col1 IS NULL
----
-123
-2
-3792

skipif mysql # not compatible
query I rowsort label-2181
SELECT + col1 * - col2 + + + col0 FROM tab0 WHERE NOT - CAST ( col2 AS INTEGER ) * + col0 + + col1 IS NULL
----
-123
-2
-3792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT ALL + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2183
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
3

query I rowsort
SELECT col1 + 94 FROM tab2 AS cor0 WHERE NOT col0 <> ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = ( - col1 * + 64 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2186
SELECT DISTINCT - CAST( ( - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + - 50 + + col0 / col0 * - col2 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2186
SELECT DISTINCT - CAST ( ( - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT ( + - 50 + + col0 / col0 * - col2 IS NOT NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2187
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( + 98 AS SIGNED ) + + 48 + - ( 17 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2187
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( + 98 AS INTEGER ) + + 48 + - ( 17 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 88 * - col2 + col1 AS col2 FROM tab2 AS cor0
----
-1973
-3443
-5037

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL COUNT( DISTINCT 90 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL COUNT ( DISTINCT 90 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col1 AS col1 FROM tab1 WHERE NOT - 31 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - ( + 0 ) AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2192
SELECT + MIN( DISTINCT + 15 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-2192
SELECT + MIN ( DISTINCT + 15 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab1 WHERE - col1 IS NOT NULL
----
51
85
91

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE - ( + ( + col1 ) ) = + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2195
SELECT ALL + COUNT( CAST( - col0 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT ALL + COUNT ( CAST ( - col0 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= + + 92
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2197
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + + - 82 * + + 82 + - + 58 NOT BETWEEN + col2 + - - col0 * col1 AND - 12 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2197
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 + + - 82 * + + 82 + - + 58 NOT BETWEEN + col2 + - - col0 * col1 AND - 12 * + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + col2 + col0 * - + col2 * + 75 * + 90 FROM tab2 AS cor0
----
-17279960
-29362442
-7141477

query I rowsort
SELECT ALL col0 + - ( + col2 ) * col2 + + 65 AS col0 FROM tab1 AS cor0
----
-3331
-4468
-9100

query I rowsort
SELECT - col1 + + 14 * 54 AS col0 FROM tab1 AS cor0
----
709
742
751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2201
SELECT ALL + CAST( + 69 AS SIGNED ) FROM tab0 AS cor0
----
69
69
69

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL + CAST ( + 69 AS INTEGER ) FROM tab0 AS cor0
----
69
69
69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 4 * 74 ) <= NULL AND NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT - - MIN( + col1 ) + 22 AS col2 FROM tab2 cor0
----
73

skipif mysql # not compatible
query I rowsort label-2203
SELECT - - MIN ( + col1 ) + 22 AS col2 FROM tab2 cor0
----
73

query I rowsort
SELECT - + 81 * col1 + + 12 FROM tab2 AS cor0
----
-4119
-5415
-6225

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT - COUNT( DISTINCT - - 51 ) + + COUNT( * ) * - 27 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-2205
SELECT - COUNT ( DISTINCT - - 51 ) + + COUNT ( * ) * - 27 FROM tab1
----
-82

query I rowsort
SELECT col0 / + col0 FROM tab0 WHERE - + 81 IN ( + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + 47 ) / 48 + - + 8 * + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - - col1 + + col2 AS col1 FROM tab0
----
100
451
6608

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT ALL + SUM( + + 11 ) AS col2 FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2209
SELECT ALL + SUM ( + + 11 ) AS col2 FROM tab1
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2210
SELECT ALL * FROM tab0 WHERE NOT CAST( + col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2210
SELECT ALL * FROM tab0 WHERE NOT CAST ( + col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE ( 64 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2212
SELECT DISTINCT 29 + + - COUNT( * ) * 87 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-754

skipif mysql # not compatible
query I rowsort label-2212
SELECT DISTINCT 29 + + - COUNT ( * ) * 87 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-754

onlyif mysql # aggregate syntax: 
query II rowsort label-2213
SELECT - COUNT( * ) AS col2, - COUNT( * ) FROM tab2
----
-3
-3

skipif mysql # not compatible
query II rowsort label-2213
SELECT - COUNT ( * ) AS col2, - COUNT ( * ) FROM tab2
----
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2214
SELECT - CAST( - + MIN( DISTINCT CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + - col2 * - col0, - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT - CAST ( - + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT + col0 NOT IN ( + - col2 * - col0, - col0 )
----
NULL

query I rowsort
SELECT - + col0 * + + 42 FROM tab2 AS cor0
----
-1932
-2688
-3150

query I rowsort
SELECT + 99 * + - col0 FROM tab1 cor0
----
-5049
-8415
-9009

query II rowsort
SELECT - - col1, + col0 FROM tab0 cor0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query I rowsort label-2218
SELECT ALL - col1 DIV + 9 + - col2 AS col2 FROM tab0 AS cor0
----
-12
-56
-99

skipif mysql # not compatible
query I rowsort label-2218
SELECT ALL - col1 / + 9 + - col2 AS col2 FROM tab0 AS cor0
----
-12
-56
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2219
SELECT ALL + MAX( + ( + - col0 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2219
SELECT ALL + MAX ( + ( + - col0 ) ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2220
SELECT 39 AS col1, - 28 * COUNT( * ) FROM tab1 AS cor0
----
39
-84

skipif mysql # not compatible
query II rowsort label-2220
SELECT 39 AS col1, - 28 * COUNT ( * ) FROM tab1 AS cor0
----
39
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL - MIN( ( - col0 ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL - MIN ( ( - col0 ) ) FROM tab0
----
97

query I rowsort
SELECT - col2 * + col2 AS col0 FROM tab0 WHERE NOT + + col2 + - + col0 < - col0
----
-100
-2209
-9801

query I rowsort
SELECT ALL 32 * + - col1 FROM tab2
----
-1632
-2144
-2464

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 BETWEEN + + col0 / + col1 - 4 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2225
SELECT DISTINCT - - 94 + + col1 + col2 DIV 97 + 53 AS col2 FROM tab0 AS cor0
----
149
168
228

skipif mysql # not compatible
query I rowsort label-2225
SELECT DISTINCT - - 94 + + col1 + col2 / 97 + 53 AS col2 FROM tab0 AS cor0
----
149
168
228

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT + SUM( DISTINCT - 56 ) AS col0 FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-2226
SELECT + SUM ( DISTINCT - 56 ) AS col0 FROM tab1 AS cor0
----
-56

query I rowsort
SELECT DISTINCT + col1 + - col2 + col0 AS col0 FROM tab0 AS cor0
----
-1
49
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 53 ) col2 FROM tab1 AS cor0
----
53
53
53

query I rowsort
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL 71 FROM tab1, tab1 cor0 WHERE ( + 19 ) IS NOT NULL
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query I rowsort
SELECT - col2 + + - col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT - + 71 + 75 * + COUNT( * ) * - + 11 FROM tab1 AS cor0
----
-2546

skipif mysql # not compatible
query I rowsort label-2232
SELECT - + 71 + 75 * + COUNT ( * ) * - + 11 FROM tab1 AS cor0
----
-2546

onlyif mysql # DIV for integer division: 
query I rowsort label-2233
SELECT ALL 56 DIV + 86 + - 33 AS col2 FROM tab0 AS cor0
----
-33
-33
-33

skipif mysql # not compatible
query I rowsort label-2233
SELECT ALL 56 / + 86 + - 33 AS col2 FROM tab0 AS cor0
----
-33
-33
-33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2234
SELECT + CAST( + MAX( DISTINCT - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2234
SELECT + CAST ( + MAX ( DISTINCT - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 52 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 * - 65 AND - - ( + - col2 )
----

query I rowsort
SELECT DISTINCT + col0 + + + 69 FROM tab2 AS cor0
----
115
133
144

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 28 * - + 81 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( + 84 * - col2 * - + col2 * + 90 * - col1 - + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT ALL - ( col0 ) * + col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 WHERE col1 IS NULL AND col2 + + + 86 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - ( col0 ) * + col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 WHERE col1 IS NULL AND col2 + + + 86 IS NOT NULL
----

query I rowsort
SELECT ALL col2 - + + 24 - - col2 + + col1 AS col1 FROM tab2
----
133
159
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2242
SELECT ALL - COUNT( * ) * - MAX( DISTINCT - + col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-2242
SELECT ALL - COUNT ( * ) * - MAX ( DISTINCT - + col2 ) FROM tab1
----
-177

query I rowsort
SELECT + 71 - col1 AS col2 FROM tab1
----
24
57
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2244
SELECT CAST( + COUNT( * ) AS SIGNED ) * + 37 * + CAST( NULL AS SIGNED ) - - - MAX( DISTINCT col1 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2244
SELECT CAST ( + COUNT ( * ) AS INTEGER ) * + 37 * + CAST ( NULL AS INTEGER ) - - - MAX ( DISTINCT col1 ) FROM tab1
----
NULL

query II rowsort
SELECT col1 + - col2, + 38 + + + 93 AS col0 FROM tab0 AS cor0
----
-98
131
11
131
34
131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 88 col0, col1 FROM tab1 AS cor0
----
88
14
88
47
88
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT COUNT( + 57 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2247
SELECT COUNT ( + 57 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT ALL + - 2 AS col2, - 73 * - + 82 FROM tab0 AS cor0
----
-2
5986
-2
5986
-2
5986

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT DISTINCT col0 DIV 48 + - col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT col0 / 48 + - col2 FROM tab1 AS cor0
----
-58
-67
-95

query I rowsort
SELECT DISTINCT - + col0 * - col1 AS col0 FROM tab0 cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 68 * - col1 col1 FROM tab2 AS cor0
----
3468
4556
5236

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 * ( col2 ) ) IS NOT NULL
----

query I rowsort
SELECT col1 * col1 * + 83 AS col2 FROM tab0 AS cor0
----
36603
544563
83

query I rowsort
SELECT ALL col1 * 54 FROM tab0 AS cor0
----
1134
4374
54

query I rowsort
SELECT col0 * + + 8 FROM tab1
----
408
680
728

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col0 + - - ( - col2 ) + - col2 * 0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, - 66 + - 63 + + col2 + - col0 * ( 45 ) AS col2 FROM tab0
----
15
-757
87
-4034
97
-4395

query I rowsort
SELECT ALL - 77 * + + col0 * 90 + - col2 * - + 52 FROM tab0
----
-101506
-602390
-667062

query I rowsort
SELECT 62 + - col1 FROM tab1
----
15
48
57

query I rowsort
SELECT DISTINCT - col1 * + + 89 FROM tab0
----
-1869
-7209
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT ALL - - COUNT( * ) + + COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2261
SELECT ALL - - COUNT ( * ) + + COUNT ( * ) FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - col0 * - 85 FROM tab2 AS cor0
----
3910
5440
6375

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 98 IN ( + col2, - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT DISTINCT + COUNT( * ) + - + 44 FROM tab0
----
-41

skipif mysql # not compatible
query I rowsort label-2265
SELECT DISTINCT + COUNT ( * ) + - + 44 FROM tab0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 / + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2266
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 / + col1 IS NULL
----
-3

query I rowsort
SELECT + col2 * col2 - 79 AS col2 FROM tab2 AS cor0
----
1521
3285
450

query I rowsort
SELECT + col2 + col0 * - col1 * - col2 AS col0 FROM tab2 AS cor0
----
197160
291508
53981

query I rowsort
SELECT DISTINCT - 65 + + 15 + + + col1 AS col2 FROM tab1 AS cor0
----
-3
-36
-45

query I rowsort
SELECT ALL col1 + - col2 * - col0 FROM tab0 AS cor0
----
786
891
9604

query I rowsort
SELECT col2 * + col1 * - 29 + + col2 + - 85 * + + col1 AS col1 FROM tab0 AS cor0
----
-117241
-2857
-7865

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT ALL + 25 - COUNT( * ) * - - 94 FROM tab0 AS cor0
----
-257

skipif mysql # not compatible
query I rowsort label-2272
SELECT ALL + 25 - COUNT ( * ) * - - 94 FROM tab0 AS cor0
----
-257

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2273
SELECT CAST( - col0 AS SIGNED ) * col2 * + 33 * - col0 FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) <> - col1 * col0 + 17
----
2497770
30739203
348975

skipif mysql # not compatible
query I rowsort label-2273
SELECT CAST ( - col0 AS INTEGER ) * col2 * + 33 * - col0 FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) <> - col1 * col0 + 17
----
2497770
30739203
348975

query I rowsort
SELECT DISTINCT + 78 AS col2 FROM tab0
----
78

query I rowsort
SELECT DISTINCT + 63 FROM tab1 WHERE NOT + 8 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 * col0 col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT - 23 AS col1, - 49 * - col1 FROM tab0 AS cor0
----
-23
1029
-23
3969
-23
49

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE ( ( + col1 ) IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col0 + + + 22 ) BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-9

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NULL
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2282
SELECT DISTINCT + COUNT( * ) DIV + 93 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2282
SELECT DISTINCT + COUNT ( * ) / + 93 FROM tab0
----
0

query I rowsort
SELECT col2 * - ( 9 ) AS col1 FROM tab1
----
-531
-612
-864

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2284
SELECT ALL + COUNT( * ) DIV - MIN( + 6 ) + + COUNT( * ) DIV ( + MAX( DISTINCT + 87 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2284
SELECT ALL + COUNT ( * ) / - MIN ( + 6 ) + + COUNT ( * ) / ( + MAX ( DISTINCT + 87 ) ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-1

query I rowsort
SELECT - col2 * - ( - 10 ) * - col0 + + - col2 * + 12 + + col2 AS col0 FROM tab2 AS cor0
----
10327
25160
42862

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2286
SELECT DISTINCT + col0 * col1 * + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + col0 * col1 * + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( - col1 ) <= col0
----

query I rowsort
SELECT ALL + 5 * - col0 AS col2 FROM tab0
----
-435
-485
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT - + AVG ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT + + col0 / + + col0 NOT BETWEEN + CAST( NULL AS SIGNED ) - + col1 AND ( - 22 ) * col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2289
SELECT - + AVG ( DISTINCT + col2 ) AS col2 FROM tab2 WHERE NOT + + col0 / + + col0 NOT BETWEEN + CAST ( NULL AS INTEGER ) - + col1 AND ( - 22 ) * col2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2290
SELECT ALL - 78 DIV 21 AS col2 FROM tab1
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL - 78 / 21 AS col2 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2291
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 WHERE - + 91 / - ( + col0 ) NOT BETWEEN NULL AND - + 18
----
-3

skipif mysql # not compatible
query I rowsort label-2291
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 WHERE - + 91 / - ( + col0 ) NOT BETWEEN NULL AND - + 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2292
SELECT ALL COUNT( * ) + + COUNT( col0 ) AS col1 FROM tab1 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2292
SELECT ALL COUNT ( * ) + + COUNT ( col0 ) AS col1 FROM tab1 cor0
----
6

query I rowsort
SELECT 28 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 15 + - 4 IS NOT NULL
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-2294
SELECT - SUM( DISTINCT - 73 ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2294
SELECT - SUM ( DISTINCT - 73 ) FROM tab2 AS cor0
----
73

query I rowsort
SELECT ALL + col2 + + - col2 + - col2 * - col0 AS col0 FROM tab2 cor0
----
1058
2560
4350

query I rowsort
SELECT ALL + col0 + 20 + + 98 AS col2 FROM tab2 AS cor0
----
164
182
193

query I rowsort
SELECT DISTINCT - - ( + - col0 ) FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) - col1 * + col1 * 5 col2 FROM tab2 cor0
----
-13028
-22503
-29685

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT DISTINCT 99 - + COUNT( * ) + + MIN( ALL - col1 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT 99 - + COUNT ( * ) + + MIN ( ALL - col1 ) FROM tab2
----
19

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 19 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL + MAX( 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL + MAX ( 8 ) FROM tab2 AS cor0
----
8

query II rowsort
SELECT DISTINCT col1 AS col2, - 97 FROM tab1
----
14
-97
47
-97
5
-97

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT DISTINCT + + MIN( + 66 ) * + COUNT( * ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2304
SELECT DISTINCT + + MIN ( + 66 ) * + COUNT ( * ) FROM tab1 AS cor0
----
198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT + + CAST( - col2 AS SIGNED ) col0 FROM tab0 cor0 WHERE NOT - 83 <> NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2305
SELECT + + CAST ( - col2 AS INTEGER ) col0 FROM tab0 cor0 WHERE NOT - 83 <> NULL
----

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( ( NULL BETWEEN - col0 - - + col2 AND + col0 * + - 96 * + col2 + - - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT ( + COUNT( DISTINCT + col2 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2307
SELECT ( + COUNT ( DISTINCT + col2 ) ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 * - - col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2309
SELECT col0 * + + CAST( NULL AS SIGNED ) * - - col0 col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2309
SELECT col0 * + + CAST ( NULL AS INTEGER ) * - - col0 col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2, col1 + - col0 FROM tab1
----
59
-80
68
-44
96
-37

query I rowsort
SELECT - AVG ( - + col1 ) FROM tab1 WHERE 51 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2312
SELECT DISTINCT col2 * col1 DIV - col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT col2 * col1 / - col1 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT - col0 + + col1, col2 FROM tab0
----
-66
10
-96
99
66
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT DISTINCT + 79 + + MIN( - col1 ) FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-2314
SELECT DISTINCT + 79 + + MIN ( - col1 ) FROM tab1 AS cor0
----
32

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE 14 NOT BETWEEN col1 * - col2 AND NULL
----

query I rowsort
SELECT ALL 48 + col1 FROM tab0 cor0
----
129
49
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 34 ) < NULL
----

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0, + col1, + col2, - col0 + col0 + + 28 )
----

query I rowsort
SELECT ALL + 61 * col0 - 7 AS col2 FROM tab0 cor0
----
5300
5910
908

query I rowsort
SELECT - col2 FROM tab1 cor0 WHERE ( + col0 ) NOT BETWEEN NULL AND col0
----

query II rowsort
SELECT DISTINCT col0 + - + col0, col0 AS col1 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT + col2 + col0 * + col1 AS col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # aggregate syntax: 
query I rowsort label-2323
SELECT - 74 + + MAX( - + 32 ) FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-2323
SELECT - 74 + + MAX ( - + 32 ) FROM tab0 AS cor0
----
-106

onlyif mysql # DIV for integer division: 
query I rowsort label-2324
SELECT ALL - 86 - + col0 DIV - col2 AS col0 FROM tab2 AS cor0
----
-84
-85
-85

skipif mysql # not compatible
query I rowsort label-2324
SELECT ALL - 86 - + col0 / - col2 AS col0 FROM tab2 AS cor0
----
-84
-85
-85

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2326
SELECT MAX( - col0 ) col0, - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-51
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2326
SELECT MAX ( - col0 ) col0, - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-51
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 93 * + 57 + + - col1 * col0 col1 FROM tab2 cor0
----
-10229
-10326
-7647

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2328
SELECT - MAX( ALL - + CAST( + col2 AS SIGNED ) ) DIV + SUM( DISTINCT - 25 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2328
SELECT - MAX ( ALL - + CAST ( + col2 AS INTEGER ) ) / + SUM ( DISTINCT - 25 ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT 2 AS col2, - col0 AS col2 FROM tab1
----
2
-51
2
-85
2
-91

query I rowsort
SELECT - ( 2 ) FROM tab2
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2331
SELECT ALL + SUM( ALL + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2331
SELECT ALL + SUM ( ALL + col1 ) FROM tab2
----
195

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <> - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2333
SELECT col1 * - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2333
SELECT col1 * - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 * + - 56 FROM tab0 AS cor0
----
-1176
-4536
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-2335
SELECT + MIN( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-2335
SELECT + MIN ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT DISTINCT 28 DIV 25 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT 28 / 25 AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2337
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + + col0 + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + + col0 + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 * - col1 + col2 AS col2 FROM tab1 AS cor0
----
-1248
-236
-3128

query I rowsort
SELECT - 87 * - col0 + + 52 * col2 + 35 + + 88 AS col0 FROM tab0 cor0
----
13710
3872
8212

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - col0 * 44 - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 93 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
93

query I rowsort
SELECT DISTINCT + 3 + + col0 AS col1 FROM tab1 AS cor0
----
54
88
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2343
SELECT + MAX( ALL 83 ) AS col1 FROM tab0 WHERE + + 96 * - ( col1 ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2343
SELECT + MAX ( ALL 83 ) AS col1 FROM tab0 WHERE + + 96 * - ( col1 ) > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2344
SELECT DISTINCT - 34 + COUNT( * ) AS col1 FROM tab0
----
-31

skipif mysql # not compatible
query I rowsort label-2344
SELECT DISTINCT - 34 + COUNT ( * ) AS col1 FROM tab0
----
-31

query I rowsort
SELECT + ( - + col0 ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - + 50 - + 84 AS col1 FROM tab0 AS cor0
----
-134

query I rowsort
SELECT ALL - - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT + col2 AS col0, ( + + col2 ) AS col1 FROM tab2 WHERE + + 48 IS NOT NULL
----
23
23
40
40
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 + - col1 * + - col2 col2 FROM tab1
----
1415
3267
366

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2350
SELECT DISTINCT col2, CAST( + 34 AS SIGNED ) - + 87 * - - col1 FROM tab2
----
23
-4403
40
-6665
58
-5795

skipif mysql # not compatible
query II rowsort label-2350
SELECT DISTINCT col2, CAST ( + 34 AS INTEGER ) - + 87 * - - col1 FROM tab2
----
23
-4403
40
-6665
58
-5795

query I rowsort
SELECT 20 * + - col0 AS col0 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-2352
SELECT SUM( ALL + col1 ) col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2352
SELECT SUM ( ALL + col1 ) col0 FROM tab1 cor0
----
66

query I rowsort
SELECT ALL col2 * - - col1 FROM tab2 cor0
----
1173
3080
3886

query II rowsort
SELECT col1 AS col1, + col2 + + 90 AS col1 FROM tab2 AS cor0
----
51
113
67
148
77
130

query I rowsort
SELECT ALL + col1 * + 48 + + + 21 FROM tab1 cor0
----
2277
261
693

query I rowsort
SELECT + ( 78 ) AS col0 FROM tab1 AS cor0
----
78
78
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT ALL + + MAX( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
91

skipif mysql # not compatible
query I rowsort label-2357
SELECT ALL + + MAX ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
91

query I rowsort
SELECT ALL - 80 * + 19 * col1 FROM tab2 AS cor0
----
-101840
-117040
-77520

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2359
SELECT DISTINCT - col1 col0 FROM tab0 WHERE + CAST( NULL AS DECIMAL ) <> + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2359
SELECT DISTINCT - col1 col0 FROM tab0 WHERE + CAST ( NULL AS REAL ) <> + col2
----

query I rowsort
SELECT - col1 * + col1 + ( + 40 ) FROM tab0 AS cor0
----
-401
-6521
39

query I rowsort
SELECT + 97 FROM tab1 AS cor0 WHERE NOT 71 IS NULL
----
97
97
97

query I rowsort
SELECT + col1 * - col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query II rowsort
SELECT ALL + col2 AS col1, ( - col1 ) AS col2 FROM tab1
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-2364
SELECT SUM( DISTINCT - 34 ) FROM tab1
----
-34

skipif mysql # not compatible
query I rowsort label-2364
SELECT SUM ( DISTINCT - 34 ) FROM tab1
----
-34

query I rowsort
SELECT DISTINCT + col0 + - - col2 + - col1 AS col2 FROM tab0
----
-19
195
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT + 78 * COUNT( * ) FROM tab0, tab1 AS cor0
----
702

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 78 * COUNT ( * ) FROM tab0, tab1 AS cor0
----
702

query III rowsort
SELECT ALL * FROM tab0 WHERE + 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE 18 IN ( - col1 - col2 )
----

query I rowsort
SELECT DISTINCT + col2 + 51 * + 73 FROM tab1 AS cor0
----
3782
3791
3819

query I rowsort
SELECT ALL + 13 * + + ( + col1 ) - + - col0 AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----

query I rowsort
SELECT col1 + + + 98 FROM tab1 cor0
----
103
112
145

query I rowsort
SELECT + col1 + + - col0 * - + col0 + - - col2 AS col2 FROM tab2
----
2190
4213
5750

query I rowsort
SELECT 79 + col1 + col2 FROM tab1
----
143
189
194

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2374
SELECT CAST( NULL AS SIGNED ) / 89 + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2374
SELECT CAST ( NULL AS INTEGER ) / 89 + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT col2 + + 34 + 10 AS col2 FROM tab0
----
143
54
91

query I rowsort
SELECT - col2 + - 23 AS col0 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN col0 - col0 AND - 0 * + + ( - 16 )
----
-122
-33
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-2377
SELECT DISTINCT SUM( DISTINCT + col0 ) * + + 40 + - + 29 FROM tab0 AS cor0
----
7931

skipif mysql # not compatible
query I rowsort label-2377
SELECT DISTINCT SUM ( DISTINCT + col0 ) * + + 40 + - + 29 FROM tab0 AS cor0
----
7931

query II rowsort
SELECT DISTINCT - - 81 + + ( col1 ) * col1, col2 FROM tab1 AS cor0
----
106
59
2290
68
277
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT - - COUNT( * ) * - - 54 AS col2 FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-2379
SELECT - - COUNT ( * ) * - - 54 AS col2 FROM tab2 AS cor0
----
162

query I rowsort
SELECT DISTINCT - 73 * col1 - + 30 AS col1 FROM tab2 AS cor0
----
-3753
-4921
-5651

query I rowsort
SELECT - col0 * - + col0 AS col1 FROM tab1
----
2601
7225
8281

query II rowsort
SELECT - 66 AS col0, col1 AS col2 FROM tab2 AS cor0
----
-66
51
-66
67
-66
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT + + ( + col1 ) * - CAST( NULL AS SIGNED ) + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT + + ( + col1 ) * - CAST ( NULL AS INTEGER ) + + col1 + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 35 AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, col2 * - - col2 FROM tab1 AS cor0
----
14
9216
47
4624
5
3481

query II rowsort
SELECT - - col0, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2387
SELECT ALL col2 * + col2 DIV CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL col2 * + col2 / CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2388
SELECT DISTINCT CAST( NULL AS SIGNED ) * - SUM( DISTINCT - + col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2388
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT - + col0 ) FROM tab0
----
NULL

query I rowsort
SELECT - + ( - col1 ) AS col1 FROM tab0 WHERE NOT col2 IS NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2390
SELECT ALL COUNT( * ) + + 77 FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL COUNT ( * ) + + 77 FROM tab1 AS cor0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT + MIN( ALL + col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT + MIN ( ALL + col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 / col2 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + + col1 AND - + col2 * + + 12 * col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 NOT BETWEEN col1 + - - col1 AND NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2395
SELECT DISTINCT + + 88 * + MAX( ALL + - 16 ) AS col2 FROM tab2 AS cor0
----
-1408

skipif mysql # not compatible
query I rowsort label-2395
SELECT DISTINCT + + 88 * + MAX ( ALL + - 16 ) AS col2 FROM tab2 AS cor0
----
-1408

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 92 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 99 <= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 49 - - col2 col2 FROM tab0 AS cor0
----
-2
-39
50

query I rowsort
SELECT ALL + 33 * + + col1 AS col0 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT DISTINCT col0 - - - 57 FROM tab2
----
-11
18
7

onlyif mysql # DIV for integer division: 
query I rowsort label-2401
SELECT DISTINCT 92 DIV + 25 AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2401
SELECT DISTINCT 92 / + 25 AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2402
SELECT ALL COUNT( * ) DIV + + 36 col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2402
SELECT ALL COUNT ( * ) / + + 36 col1 FROM tab0
----
0

query I rowsort
SELECT 49 * + - col1 FROM tab2
----
-2499
-3283
-3773

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT col1 * - col1 * col0 - + + col0 DIV - - col0 FROM tab1
----
-201020
-2126
-9997

skipif mysql # not compatible
query I rowsort label-2404
SELECT col1 * - col1 * col0 - + + col0 / - - col0 FROM tab1
----
-201020
-2126
-9997

query I rowsort
SELECT DISTINCT + - col0 * - col1 FROM tab0 WHERE NOT NULL > + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT DISTINCT CAST( NULL AS SIGNED ) + + col2 * - 52 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + col2 * - 52 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 33 + - 98 AS col0 FROM tab2 AS cor0
----
-65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * col0 + - col1 AND NULL
----

query II rowsort
SELECT + ( + - col2 ) + - col0 AS col2, 18 FROM tab0 AS cor0
----
-196
18
-62
18
-97
18

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * - - col2 * - 91 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 <= - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( - 52 ) AS col2 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT DISTINCT - SUM( col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2413
SELECT DISTINCT - SUM ( col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT ALL + col1 + + + 41 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col2 * - col1 * - col0 AS col2 FROM tab0
----
18270
57105
9603

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2416
SELECT 83 col1, - CAST( NULL AS DECIMAL ) FROM tab0
----
83
NULL
83
NULL
83
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2416
SELECT 83 col1, - CAST ( NULL AS REAL ) FROM tab0
----
83
NULL
83
NULL
83
NULL

query I rowsort
SELECT - col0 * 67 AS col2 FROM tab2
----
-3082
-4288
-5025

query II rowsort
SELECT - col0, - col0 AS col1 FROM tab2
----
-46
-46
-64
-64
-75
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2419
SELECT DISTINCT ( + CAST( - - AVG ( ALL - col1 ) AS SIGNED ) ) FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT ( + CAST ( - - AVG ( ALL - col1 ) AS INTEGER ) ) FROM tab2
----
-65

query I rowsort
SELECT DISTINCT 10 * + col2 + + + 9 + col0 FROM tab1
----
1020
684
780

query III rowsort
SELECT * FROM tab0 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT + MAX( ALL - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2422
SELECT + MAX ( ALL - col1 ) FROM tab2
----
-51

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2423
SELECT ( + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2423
SELECT ( + CAST ( NULL AS REAL ) ) AS col1 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 6 AS col1, - col1 + - ( - 57 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 73 + - col2 AS col2 FROM tab0 AS cor0
----
-26
26
63

onlyif mysql # aggregate syntax: 
query II rowsort label-2426
SELECT + ( + COUNT( * ) ) AS col0, 71 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> + col1
----
0
71

skipif mysql # not compatible
query II rowsort label-2426
SELECT + ( + COUNT ( * ) ) AS col0, 71 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <> + col1
----
0
71

query I rowsort
SELECT 93 * 18 * col2 FROM tab0
----
165726
16740
78678

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2428
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2428
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 AS cor0 WHERE col0 + + ( col2 ) IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL col1 + col2 - 65 + + 65 * + - col2 AS col1 FROM tab1 AS cor0
----
-3836
-4370
-6195

onlyif mysql # DIV for integer division: 
query I rowsort label-2431
SELECT + - col1 DIV col2 - + 54 + - - col0 col0 FROM tab0 cor0
----
-40
31
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2431
SELECT + - col1 / col2 - + 54 + - - col0 col0 FROM tab0 cor0
----
-40
31
43

query I rowsort
SELECT - - 90 + + 79 + - col0 FROM tab2 AS cor0
----
105
123
94

query I rowsort
SELECT DISTINCT - - col0 + - - 74 AS col0 FROM tab0 AS cor0
----
161
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT 91 + + COUNT( * ) FROM tab2 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-2434
SELECT 91 + + COUNT ( * ) FROM tab2 AS cor0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL 6 + MAX( - 68 ) col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2435
SELECT ALL 6 + MAX ( - 68 ) col1 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT + + 21 + col1 FROM tab0 AS cor0
----
102
22
42

query I rowsort
SELECT ALL - 97 * + + ( col0 ) - + col1 FROM tab1 AS cor0
----
-4961
-8250
-8874

query I rowsort
SELECT + - ( + 70 ) + ( - 69 ) * - + 30 FROM tab1 AS cor0
----
2000
2000
2000

query II rowsort
SELECT ALL + col1 * + col1, + 53 AS col0 FROM tab1 AS cor0
----
196
53
2209
53
25
53

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT DISTINCT - COUNT( ALL - + ( col1 ) ) - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2440
SELECT DISTINCT - COUNT ( ALL - + ( col1 ) ) - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2441
SELECT + CAST( - 32 AS SIGNED ) + + COUNT( * ) FROM tab1
----
-29

skipif mysql # not compatible
query I rowsort label-2441
SELECT + CAST ( - 32 AS INTEGER ) + + COUNT ( * ) FROM tab1
----
-29

query I rowsort
SELECT col0 + - 24 FROM tab0
----
-9
63
73

query I rowsort
SELECT DISTINCT 89 - + col0 FROM tab2
----
14
25
43

query I rowsort
SELECT col2 * 80 + + col2 FROM tab2
----
1863
3240
4698

query III rowsort
SELECT * FROM tab0 WHERE ( 86 > NULL )
----

query II rowsort
SELECT + 45 * col0, + col2 + - col0 AS col0 FROM tab1 AS cor0
----
2295
45
3825
-26
4095
-23

query I rowsort
SELECT ALL + col0 FROM tab1 AS cor0 WHERE + col2 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 73 AND NULL
----

query I rowsort
SELECT col2 * + - col2 AS col0 FROM tab2 cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col2 AND - - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2451
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2451
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 1 col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2453
SELECT + COUNT( ( - - col1 ) ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2453
SELECT + COUNT ( ( - - col1 ) ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2454
SELECT - 0 DIV + ( + 47 ) * + SUM( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT - 0 / + ( + 47 ) * + SUM ( ALL - 10 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab0 AS cor0 WHERE NOT 61 IS NULL
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2456
SELECT ALL ( COUNT( * ) ), - CAST( NULL AS SIGNED ) * + - 47 * - COUNT( * ) col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2456
SELECT ALL ( COUNT ( * ) ), - CAST ( NULL AS INTEGER ) * + - 47 * - COUNT ( * ) col0 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT - ( - + MIN( DISTINCT - col2 ) ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2457
SELECT - ( - + MIN ( DISTINCT - col2 ) ) AS col2 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + + 45 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT ALL - 97 + - 21 - - ( + 92 ) col0, COUNT( * ) * + + 75 FROM tab2
----
-26
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2459
SELECT ALL - 97 + - 21 - - ( + 92 ) col0, COUNT ( * ) * + + 75 FROM tab2
----
-26
225

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL < - 34
----

query I rowsort
SELECT ALL + - 53 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

onlyif mysql # aggregate syntax: 
query I rowsort label-2462
SELECT COUNT( + + 83 ) + + MIN( DISTINCT col1 ) col0 FROM tab0
----
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2462
SELECT COUNT ( + + 83 ) + + MIN ( DISTINCT col1 ) col0 FROM tab0
----
4

query I rowsort
SELECT - col0 + 58 * - 57 + 18 FROM tab2
----
-3334
-3352
-3363

query I rowsort
SELECT ALL - 18 + + 43 FROM tab0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-2465
SELECT ALL - 20 DIV - col1 + + col1 + - 31 AS col1 FROM tab0 AS cor0
----
-10
-10
50

skipif mysql # not compatible
query I rowsort label-2465
SELECT ALL - 20 / - col1 + + col1 + - 31 AS col1 FROM tab0 AS cor0
----
-10
-10
50

query I rowsort
SELECT ALL - 62 + - + 38 + - + col0 AS col2 FROM tab2 AS cor0
----
-146
-164
-175

query I rowsort
SELECT ALL col0 + - 96 AS col1 FROM tab2 AS cor0
----
-21
-32
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + 81 col2 FROM tab1 AS cor0
----
51
81
85
81
91
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT ALL + SUM( - 64 ) col0 FROM tab2 AS cor0
----
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2469
SELECT ALL + SUM ( - 64 ) col0 FROM tab2 AS cor0
----
-192

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * 81 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - - 47 col2 FROM tab1 AS cor0
----
132
138
98

query II rowsort
SELECT col2 AS col1, col2 AS col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 + + + col1 + + + col0 BETWEEN 88 * + - col0 AND col0
----

query I rowsort
SELECT DISTINCT + ( + 76 ) + + - col2 FROM tab0 cor0
----
-23
29
66

query I rowsort
SELECT ALL 81 - col0 AS col1 FROM tab0 AS cor0
----
-16
-6
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2476
SELECT DISTINCT COUNT( * ) - + + SUM( ALL - col0 ) AS col1 FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-2476
SELECT DISTINCT COUNT ( * ) - + + SUM ( ALL - col0 ) AS col1 FROM tab2
----
188

query I rowsort
SELECT ALL + col2 - 85 FROM tab1
----
-17
-26
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2478
SELECT ALL + COUNT( * ) AS col1, 15 DIV + COUNT( + + col1 ) FROM tab0
----
3
5

skipif mysql # not compatible
query II rowsort label-2478
SELECT ALL + COUNT ( * ) AS col1, 15 / + COUNT ( + + col1 ) FROM tab0
----
3
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT ( CAST( NULL AS SIGNED ) ) * - + COUNT( * ) - - AVG ( - - col1 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT ( CAST ( NULL AS INTEGER ) ) * - + COUNT ( * ) - - AVG ( - - col1 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 47 - - 31 FROM tab0
----
78

query I rowsort
SELECT ALL - 70 - + - 2 FROM tab2
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2482
SELECT col2, CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-2482
SELECT col2, CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2483
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( col1 AS SIGNED ) + - 27 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2483
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( col1 AS INTEGER ) + - 27 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 35 AS col1 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
35

query I rowsort
SELECT ALL - ( - ( col2 ) ) FROM tab2
----
23
40
58

query I rowsort
SELECT + 63 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT 56 + 10 FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND + - col2
----

query I rowsort
SELECT DISTINCT + + col1 / + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND 14 - col1
----

query I rowsort
SELECT + - 71 * 31 FROM tab0 AS cor0
----
-2201
-2201
-2201

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 <> + 43 * + col0 - + col0 )
----

query I rowsort
SELECT col2 * - + col1 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT + ( + + 45 ) DIV + col1 + col1 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2492
SELECT + ( + + 45 ) / + col1 + col1 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 + 66 + + col0 + - + col2 <> 19 * + col2 * + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL + SUM( DISTINCT col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL + SUM ( DISTINCT col0 ) FROM tab1
----
227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2495
SELECT - - col1 + - 9 AS col0 FROM tab0 AS cor0 WHERE CAST( - col1 AS SIGNED ) * - - col0 * 69 * - + col1 * col1 >= - - col2 * + ( ( - 33 ) ) * 94 * 60 * + col2 + + ( + col1 ) + - col1 + - 3
----
-8
12
72

skipif mysql # not compatible
query I rowsort label-2495
SELECT - - col1 + - 9 AS col0 FROM tab0 AS cor0 WHERE CAST ( - col1 AS INTEGER ) * - - col0 * 69 * - + col1 * col1 >= - - col2 * + ( ( - 33 ) ) * 94 * 60 * + col2 + + ( + col1 ) + - col1 + - 3
----
-8
12
72

query I rowsort
SELECT ALL - - col1 + - 7 AS col1 FROM tab0 AS cor0
----
-6
14
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2497
SELECT COUNT( * ) + - + SUM( ALL + + col1 ) * - 61 AS col1 FROM tab1 AS cor0
----
4029

skipif mysql # not compatible
query I rowsort label-2497
SELECT COUNT ( * ) + - + SUM ( ALL + + col1 ) * - 61 AS col1 FROM tab1 AS cor0
----
4029

query I rowsort
SELECT DISTINCT - 46 + + - 44 FROM tab2 AS cor0
----
-90

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2500
SELECT + col0 * col2 * - CAST( - col1 AS SIGNED ) + + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT + col0 * col2 * - CAST ( - col1 AS INTEGER ) + + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2501
SELECT ALL 30 DIV - col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-2501
SELECT ALL 30 / - col1 FROM tab1
----
-2
-6
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * 38 NOT IN ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 38 IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2504
SELECT col0 DIV - ( col0 ) + col2 AS col1 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-2504
SELECT col0 / - ( col0 ) + col2 AS col1 FROM tab2
----
22
39
57

query I rowsort
SELECT - 52 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 + - col0 col2 FROM tab0
----
-14
-86
-96

query I rowsort
SELECT DISTINCT + 15 AS col0 FROM tab2 WHERE col1 * - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) >= 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2510
SELECT ( - col0 ) DIV + 93 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2510
SELECT ( - col0 ) / + 93 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2511
SELECT 75 DIV - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2511
SELECT 75 / - col2 FROM tab1
----
-1
-1
0

query I rowsort
SELECT DISTINCT 55 * ( col1 ) AS col2 FROM tab0
----
1155
4455
55

query I rowsort
SELECT + 44 * - 5 FROM tab2
----
-220
-220
-220

query I rowsort
SELECT DISTINCT 22 + - col0 AS col0 FROM tab2
----
-24
-42
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2515
SELECT + SUM( + CAST( NULL AS SIGNED ) ) + + COUNT( + col1 ) * 42 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2515
SELECT + SUM ( + CAST ( NULL AS INTEGER ) ) + + COUNT ( + col1 ) * 42 AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT COUNT( * ) * + COUNT( * ) + + COUNT( * ) FROM tab1 WHERE NOT NULL <> ( col2 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2516
SELECT COUNT ( * ) * + COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE NOT NULL <> ( col2 + col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2517
SELECT ALL - 72 DIV 25 AS col2 FROM tab0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - 72 / 25 AS col2 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2518
SELECT * FROM tab0 WHERE ( - 14 * + CAST( NULL AS SIGNED ) ) NOT BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-2518
SELECT * FROM tab0 WHERE ( - 14 * + CAST ( NULL AS INTEGER ) ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col0 * + 39 FROM tab1
----
1989
3315
3549

query III rowsort
SELECT * FROM tab0 WHERE + 48 NOT BETWEEN 42 AND ( 16 + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col2 FROM tab0 WHERE NOT - col2 * + col2 + 8 NOT BETWEEN ( 97 ) AND - col0 * col2
----

query I rowsort
SELECT + col0 - + 31 FROM tab1
----
20
54
60

query I rowsort
SELECT + 41 + col2 FROM tab0
----
140
51
88

query I rowsort
SELECT - 50 * + col1 + 18 FROM tab1
----
-232
-2332
-682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2525
SELECT ALL COUNT( * ) * - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 WHERE NOT ( col0 + ( col0 ) ) NOT IN ( + 35 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2525
SELECT ALL COUNT ( * ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 WHERE NOT ( col0 + ( col0 ) ) NOT IN ( + 35 * + col0 )
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT ( - col1 ) NOT IN ( 59 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 + - ( + col1 ) * + col0 >= - col2 * - col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2528
SELECT * FROM tab2 WHERE NOT col0 * col2 - CAST( NULL AS SIGNED ) * + 33 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2528
SELECT * FROM tab2 WHERE NOT col0 * col2 - CAST ( NULL AS INTEGER ) * + 33 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE col0 * col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 35 ) > + col1 * 58
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NULL ) NOT BETWEEN ( + 45 * - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2533
SELECT 17 DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2533
SELECT 17 / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
5

query I rowsort
SELECT DISTINCT - AVG ( col0 ) * 16 AS col2 FROM tab1 AS cor0 WHERE NOT col1 < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT ( - 75 ) DIV + col2 FROM tab0 cor0
----
-1
-7
0

skipif mysql # not compatible
query I rowsort label-2535
SELECT ( - 75 ) / + col2 FROM tab0 cor0
----
-1
-7
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2536
SELECT DISTINCT + col2 DIV + 82 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + col2 / + 82 FROM tab0 AS cor0
----
0
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND ( col0 )
----
46
51
23
64
77
40

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( - 37 * col2 + - col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 78 + col1 FROM tab0 WHERE - 94 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2540
SELECT + COUNT( * ) + - 26 AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-2540
SELECT + COUNT ( * ) + - 26 AS col1 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( - col2 ) <= NULL
----

query I rowsort
SELECT + 74 * col0 + 99 AS col2 FROM tab0 AS cor0
----
1209
6537
7277

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2543
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2543
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - col2 * 11 + + ( - 68 ) * + 75 AS col2 FROM tab1 AS cor0
----
-5749
-5848
-6156

query I rowsort
SELECT + col2 + - 38 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2546
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( col2 ) ) = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2546
SELECT DISTINCT * FROM tab1 cor0 WHERE ( ( col2 ) ) = CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2547
SELECT ALL - COUNT( ALL - col1 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2547
SELECT ALL - COUNT ( ALL - col1 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT ALL col2 - col0 AS col1 FROM tab1 WHERE NOT 37 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT DISTINCT - COUNT( * ) * + 9 AS col1 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-2549
SELECT DISTINCT - COUNT ( * ) * + 9 AS col1 FROM tab0
----
-27

query I rowsort
SELECT ALL - 0 FROM tab2 WHERE ( col1 ) < ( 73 * 1 )
----
0
0

query I rowsort
SELECT col2 * - 31 AS col2 FROM tab2
----
-1240
-1798
-713

query I rowsort
SELECT DISTINCT - col2 + - col1 + + col0 AS col0 FROM tab1
----
-24
-59
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT DISTINCT - + COUNT( * ) * - + 23 * 7 + COUNT( * ) FROM tab1 AS cor0
----
486

skipif mysql # not compatible
query I rowsort label-2553
SELECT DISTINCT - + COUNT ( * ) * - + 23 * 7 + COUNT ( * ) FROM tab1 AS cor0
----
486

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT DISTINCT COUNT( * ) - - SUM( col2 ) AS col1 FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2554
SELECT DISTINCT COUNT ( * ) - - SUM ( col2 ) AS col1 FROM tab0 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT ALL 21 * + COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-2555
SELECT ALL 21 * + COUNT ( * ) FROM tab0
----
63

query I rowsort
SELECT + col0 * + col2 + - - col1 FROM tab0 AS cor0
----
786
891
9604

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 46 > NULL
----

query I rowsort
SELECT DISTINCT + 14 + + 62 AS col0 FROM tab0 AS cor0
----
76

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-67
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 IN ( - col2 - col2 * col0 )
----

query I rowsort
SELECT DISTINCT 76 AS col2 FROM tab1 AS cor0 WHERE col0 <= + col2 + col0
----
76

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + + col0 * - ( 54 ) >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col1 AND ( - col1 )
----

query II rowsort
SELECT DISTINCT - col2 * - col1, + col0 + + - 67 AS col0 FROM tab2
----
1173
-21
3080
-3
3886
8

query I rowsort
SELECT 73 * - 35 AS col2 FROM tab1 WHERE NOT NULL BETWEEN ( + 4 ) AND 25
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 * - col0 col2 FROM tab0 WHERE NOT - - 64 >= - col2
----

query I rowsort
SELECT DISTINCT 94 * - col2 FROM tab0
----
-4418
-9306
-940

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col2 * - + col2 ) BETWEEN - col2 * + 90 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 42 - 9 * + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2570
SELECT - col0 DIV + col0 - col2 FROM tab1 AS cor0
----
-60
-69
-97

skipif mysql # not compatible
query I rowsort label-2570
SELECT - col0 / + col0 - col2 FROM tab1 AS cor0
----
-60
-69
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2571
SELECT ALL - - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2571
SELECT ALL - - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT ALL - col1 * 31 * - 59 AS col0 FROM tab2 AS cor0
----
122543
140833
93279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( ( - col0 ) ) * + col2 col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT ALL 61 + - col2 AS col1 FROM tab2 WHERE NOT NULL <> + ( + - 74 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 > NULL
----

query II rowsort
SELECT ALL - col1, 49 + 11 AS col0 FROM tab1
----
-14
60
-47
60
-5
60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 13 + + - col2 / + 99 ) NOT IN ( 77 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2578
SELECT DISTINCT col0 + 86 DIV - + 73 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT col0 + 86 / - + 73 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2579
SELECT ALL MAX( + + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2579
SELECT ALL MAX ( + + col1 ) FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT ( ( + - col1 ) ) + col1 AS col2 FROM tab0 cor0
----
0

query I rowsort
SELECT DISTINCT - 50 * - 4 AS col1 FROM tab2 AS cor0
----
200

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 48 + - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-2583
SELECT - 9 DIV - - 1 + - - col2 AS col2 FROM tab1 AS cor0
----
50
59
87

skipif mysql # not compatible
query I rowsort label-2583
SELECT - 9 / - - 1 + - - col2 AS col2 FROM tab1 AS cor0
----
50
59
87

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 NOT IN ( col0 )
----

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND ( + col2 / - 51 + + col1 + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT + COUNT( ALL + 33 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT + COUNT ( ALL + 33 ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT DISTINCT + 27 * + + col1 AS col2 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2588
SELECT CAST( NULL AS SIGNED ) + + + CAST( - ( col2 ) AS DECIMAL ) + - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2588
SELECT CAST ( NULL AS INTEGER ) + + + CAST ( - ( col2 ) AS REAL ) + - - col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2589
SELECT ALL ( COUNT( * ) ) * 70 FROM tab0
----
210

skipif mysql # not compatible
query I rowsort label-2589
SELECT ALL ( COUNT ( * ) ) * 70 FROM tab0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2590
SELECT col1 + + CAST( ( 91 ) AS SIGNED ) * - col1 AS col0 FROM tab2
----
-4590
-6030
-6930

skipif mysql # not compatible
query I rowsort label-2590
SELECT col1 + + CAST ( ( 91 ) AS INTEGER ) * - col1 AS col0 FROM tab2
----
-4590
-6030
-6930

query I rowsort
SELECT ALL - ( 3 ) * + - ( col0 ) * + col0 + ( 88 ) AS col0 FROM tab2
----
12376
16963
6436

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2592
SELECT ALL - CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) DIV - col1 + + col2 AS col1 FROM tab1
----
69
76
99

skipif mysql # not compatible
query I rowsort label-2592
SELECT ALL - CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) / - col1 + + col2 AS col1 FROM tab1
----
69
76
99

query I rowsort
SELECT ALL - - col2 * col2 + + col0 FROM tab0 WHERE + col0 NOT BETWEEN ( + col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2594
SELECT DISTINCT COUNT( * ) + + COUNT( * ) * - COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-2594
SELECT DISTINCT COUNT ( * ) + + COUNT ( * ) * - COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT - + col0 NOT BETWEEN - col1 * - + 22 AND - + col1
----

query I rowsort
SELECT ALL - + col0 + + ( + col2 ) FROM tab2 WHERE - col2 IS NOT NULL
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2597
SELECT ALL COUNT( * ) + - + CAST( AVG ( ALL ( col1 ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL COUNT ( * ) + - + CAST ( AVG ( ALL ( col1 ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL IN ( col0 * - col0, col0 * col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 75 * + col1 col0 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT - col1 - + + ( - col1 ) AS col0 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL col0 - ( + - col2 ) AS col1, 75 AS col0 FROM tab0
----
196
75
62
75
97
75

query I rowsort
SELECT DISTINCT - - 20 FROM tab0 cor0
----
20

query I rowsort
SELECT - col0 AS col1 FROM tab0 cor0 WHERE NOT 14 = ( - + ( ( + col1 ) ) )
----
-15
-87
-97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 >= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2605
SELECT - 6 DIV - - COUNT( * ) FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2605
SELECT - 6 / - - COUNT ( * ) FROM tab2 AS cor0
----
-2

query I rowsort
SELECT col0 * - 58 + + col1 AS col1 FROM tab1 cor0
----
-2944
-4925
-5231

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + COUNT( * ) * + - 67 + + + 66 AS col1 FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + COUNT ( * ) * + - 67 + + + 66 AS col1 FROM tab0 AS cor0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2608
SELECT * FROM tab0 AS cor0 WHERE NOT - 8 BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-2608
SELECT * FROM tab0 AS cor0 WHERE NOT - 8 BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT col1, 7 + - 3 AS col2 FROM tab0
----
1
4
21
4
81
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2610
SELECT DISTINCT MIN( + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2610
SELECT DISTINCT MIN ( + col0 ) col2 FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab1 WHERE + 47 / ( + + col2 ) <> NULL
----

query I rowsort
SELECT - - col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 70 * col2 <= NULL OR ( + 75 ) IS NULL
----

query I rowsort
SELECT - ( + 75 ) AS col2 FROM tab2
----
-75
-75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT 10 * + + COUNT( col0 ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-2615
SELECT 10 * + + COUNT ( col0 ) FROM tab0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2616
SELECT + SUM( col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2616
SELECT + SUM ( col1 ) AS col0 FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2617
SELECT DISTINCT + + 25 + + col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2617
SELECT DISTINCT + + 25 + + col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT - col0 + + 29 - + col1 * col1 AS col2 FROM tab2
----
-2618
-4535
-5964

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - 83 * + col2 + + col2 FROM tab2
----
-1886
-3280
-4756

query I rowsort
SELECT - + col0 + + - col2 AS col1 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2622
SELECT ALL - CAST( NULL AS SIGNED ) + - COUNT( * ) * - SUM( + col1 ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2622
SELECT ALL - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - SUM ( + col1 ) col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 77 * 29 + + 12 AS col1 FROM tab0 cor0
----
2245
2245
2245

query I rowsort
SELECT ALL - 56 * - col2 * + 68 + - col2 + - 77 + - ( + 83 ) FROM tab1 AS cor0
----
224453
258716
365312

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2625
SELECT - + CAST( - col1 AS SIGNED ) AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

skipif mysql # not compatible
query II rowsort label-2625
SELECT - + CAST ( - col1 AS INTEGER ) AS col0, col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL col0 * 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + + - 67 col2 FROM tab2 AS cor0 WHERE NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2628
SELECT DISTINCT COUNT( ALL - col2 ) * 67 AS col1 FROM tab1 cor0
----
201

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT COUNT ( ALL - col2 ) * 67 AS col1 FROM tab1 cor0
----
201

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 <= 61 / + 62 * + + 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT 60 DIV ( - col2 ) * + col0 FROM tab0
----
-15
-522
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT 60 / ( - col2 ) * + col0 FROM tab0
----
-15
-522
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 <> - + 97
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2632
SELECT 1 DIV + col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2632
SELECT 1 / + col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2633
SELECT DISTINCT SUM( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT SUM ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 92 + col0 FROM tab0
----
107
179
189

query I rowsort
SELECT - 8 - + 9 AS col0 FROM tab2
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2636
SELECT 64 + - + COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 > ( NULL )
----
64

skipif mysql # not compatible
query I rowsort label-2636
SELECT 64 + - + COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col1 > ( NULL )
----
64

query I rowsort
SELECT + ( - col0 ) + col2 + - + 67 FROM tab1 AS cor0
----
-22
-90
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT COUNT( - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2638
SELECT COUNT ( - - col1 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2639
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - - col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2640
SELECT + COUNT( * ), 4 AS col0 FROM tab0
----
3
4

skipif mysql # not compatible
query II rowsort label-2640
SELECT + COUNT ( * ), 4 AS col0 FROM tab0
----
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2641
SELECT ALL + CAST( - - CAST( + + 14 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2641
SELECT ALL + CAST ( - - CAST ( + + 14 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
14
14
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 col1 FROM tab0 AS cor0
----
-93

query II rowsort
SELECT DISTINCT - col2 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT col0 * - 58 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2644
SELECT col0 * - 58 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( 39 ) AND - 26
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 57 / - 55 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2647
SELECT ALL + MIN( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2647
SELECT ALL + MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col2 ) IN ( col2, + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 * - 55 + + col2 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 + col2 = 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT - col0 + col0 * + - col1 AS col2 FROM tab1 cor0
----
-4368
-510
-765

query I rowsort
SELECT DISTINCT + - 60 * col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-2654
SELECT - COUNT( DISTINCT + - ( + 36 ) ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2654
SELECT - COUNT ( DISTINCT + - ( + 36 ) ) FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT + MAX( ALL - 19 ) AS col1 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2655
SELECT + MAX ( ALL - 19 ) AS col1 FROM tab1 AS cor0
----
-19

query I rowsort
SELECT - col1 + + 95 + - ( + + 35 ) AS col0 FROM tab0 AS cor0
----
-21
39
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2657
SELECT + COUNT( * ) + - 33 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2657
SELECT + COUNT ( * ) + - 33 FROM tab0 cor0
----
-30

query I rowsort
SELECT + + 27 + + - col2 FROM tab2 AS cor0
----
-13
-31
4

query I rowsort
SELECT col0 + + + 24 FROM tab1
----
109
115
75

query I rowsort
SELECT ALL col1 - + col2 + + col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - col0 * + - 26 * 4 * - + 10 AS col1 FROM tab2
----
-47840
-66560
-78000

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2662
SELECT DISTINCT + - 75 * col0 + - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 IN ( 79 / 98 * - - col0, + 39 * CAST( NULL AS SIGNED ) * - + col0 )
----

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT + - 75 * col0 + - col1 + col0 AS col2 FROM tab2 AS cor0 WHERE - col1 IN ( 79 / 98 * - - col0, + 39 * CAST ( NULL AS INTEGER ) * - + col0 )
----

query I rowsort
SELECT DISTINCT - + col0 - + + col2 + - col1 + + col0 * col2 + - col1 * - 14 * - - col2 AS col2 FROM tab1 AS cor0
----
23551
50726
8996

query I rowsort
SELECT DISTINCT - 33 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0, col1 col1 FROM tab2 cor0 WHERE NOT NULL = ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + - 75 / - + MAX( DISTINCT + col0 ) + + - 72 * + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0 WHERE + 64 IN ( + - col2, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + - 75 / - + MAX ( DISTINCT + col0 ) + + - 72 * + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0 WHERE + 64 IN ( + - col2, - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT ALL - SUM( DISTINCT - col1 ) * COUNT( - - col0 ) FROM tab1 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2667
SELECT ALL - SUM ( DISTINCT - col1 ) * COUNT ( - - col0 ) FROM tab1 AS cor0
----
198

query II rowsort
SELECT DISTINCT + 37, + 37 AS col2 FROM tab0 AS cor0
----
37
37

query I rowsort
SELECT DISTINCT 95 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2670
SELECT col2 DIV col2 * col0 AS col2, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
51
64
77
75
67

skipif mysql # not compatible
query II rowsort label-2670
SELECT col2 / col2 * col0 AS col2, col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
51
64
77
75
67

query II rowsort
SELECT - col1 AS col1, col1 + - 82 AS col2 FROM tab2
----
-51
-31
-67
-15
-77
-5

query I rowsort
SELECT DISTINCT 45 FROM tab0 WHERE col2 < - 36
----

query II rowsort
SELECT 18 AS col2, + 10 * - col0 AS col1 FROM tab2
----
18
-460
18
-640
18
-750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2674
SELECT DISTINCT 11 DIV + - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2674
SELECT DISTINCT 11 / + - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT DISTINCT 62 DIV 33 + 79 col0 FROM tab0
----
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2675
SELECT DISTINCT 62 / 33 + 79 col0 FROM tab0
----
80

query I rowsort
SELECT ALL 3 + + + 59 FROM tab0 AS cor0
----
62
62
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 38 + - col1 col0 FROM tab2 AS cor0
----
-105
-115
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT + COUNT( - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2678
SELECT + COUNT ( - col1 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + 94 AS col0, - col2 FROM tab0 AS cor0
----
94
-10
94
-47
94
-99

query II rowsort
SELECT ALL col2, col0 AS col2 FROM tab2 cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2681
SELECT COUNT( * ) + - MIN( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2681
SELECT COUNT ( * ) + - MIN ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-7

query I rowsort
SELECT DISTINCT ( 94 ) + + + col0 FROM tab0 AS cor0
----
109
181
191

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 * - 26 ) IN ( + ( + + 8 ), col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2684
SELECT ALL - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2684
SELECT ALL - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2686
SELECT ALL - MAX( + + col2 ) + - 27 AS col2 FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-2686
SELECT ALL - MAX ( + + col2 ) + - 27 AS col2 FROM tab2 AS cor0
----
-85

query I rowsort
SELECT DISTINCT + 35 + + col1 + - col1 + + - col1 * - col1 * col2 FROM tab2 AS cor0 WHERE 7 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( - col2 ) ) <> - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 9 * 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2690
SELECT ALL COUNT( col0 ) - 17 FROM tab1 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2690
SELECT ALL COUNT ( col0 ) - 17 FROM tab1 cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT - CAST( NULL AS SIGNED ) - + - 41 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT - CAST ( NULL AS INTEGER ) - + - 41 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 88 + - ( + 64 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT + 36 - - COUNT( * ) col1 FROM tab2
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2693
SELECT + 36 - - COUNT ( * ) col1 FROM tab2
----
39

query III rowsort
SELECT * FROM tab0 WHERE 76 > + col0 - + 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - + col2 col1 FROM tab0
----
100
128
31

query I rowsort
SELECT + ( - ( - 54 ) ) FROM tab1, tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 31 + + - 21 FROM tab0
----
10
10
10

query I rowsort
SELECT col2 + - - 4 * + - col0 + + - col2 * - + 14 FROM tab2
----
161
344
570

query II rowsort
SELECT - + col2, col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 85 * - - col1 IS NULL
----

query I rowsort
SELECT col2 * - + col1 FROM tab1 AS cor0 WHERE NOT + col1 + col0 IS NULL
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2702
SELECT ALL + COUNT( ALL + CAST( NULL AS SIGNED ) ) * ( - - 83 ) * + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL + COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * ( - - 83 ) * + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT + + col2 * + - 74 AS col1 FROM tab1 AS cor0
----
-4366
-5032
-7104

onlyif mysql # DIV for integer division: 
query I rowsort label-2704
SELECT ALL - 1 DIV - 83 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2704
SELECT ALL - 1 / - 83 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - ( + 26 ) AS col1 FROM tab1
----
-26
-26
-26

query I rowsort
SELECT ALL col0 * + 77 AS col1 FROM tab0
----
1155
6699
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT - 3 * + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT - 3 * + COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT col1 + 47 FROM tab2
----
114
124
98

query I rowsort
SELECT DISTINCT - col2 + + + 59 FROM tab0 AS cor0
----
-40
12
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT DISTINCT - MAX( + col2 ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2710
SELECT DISTINCT - MAX ( + col2 ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2711
SELECT 13 DIV - 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-2711
SELECT 13 / - 11 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT col0 FROM tab0 WHERE - + 9 * + - col2 * - col1 + col2 + + + col2 < ( NULL )
----

query I rowsort
SELECT ALL - 35 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT DISTINCT COUNT( ALL - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2714
SELECT DISTINCT COUNT ( ALL - col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2715
SELECT - COUNT( * ) - + MIN( - 96 ) AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-2715
SELECT - COUNT ( * ) - + MIN ( - 96 ) AS col1 FROM tab1 AS cor0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-2716
SELECT - col1 DIV + col1 + col2 AS col2 FROM tab0 cor0
----
46
9
98

skipif mysql # not compatible
query I rowsort label-2716
SELECT - col1 / + col1 + col2 AS col2 FROM tab0 cor0
----
46
9
98

query I rowsort
SELECT DISTINCT - 65 * - col1 + 21 AS col0 FROM tab0 AS cor0
----
1386
5286
86

query II rowsort
SELECT - - 88 + - 38 + 95 * + 15, col0 AS col2 FROM tab0 AS cor0
----
1475
15
1475
87
1475
97

query I rowsort
SELECT ALL - - col1 - - - 75 FROM tab0 AS cor0
----
-54
-74
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT DISTINCT - COUNT( * ) * - 49 + COUNT( + col0 ) + + 86 FROM tab0 AS cor0
----
236

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - COUNT ( * ) * - 49 + COUNT ( + col0 ) + + 86 FROM tab0 AS cor0
----
236

onlyif mysql # DIV for integer division: 
query I rowsort label-2721
SELECT - 64 DIV col0 + + col1 FROM tab0 AS cor0
----
1
21
77

skipif mysql # not compatible
query I rowsort label-2721
SELECT - 64 / col0 + + col1 FROM tab0 AS cor0
----
1
21
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2722
SELECT ALL 64 * - col1 * - 63 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2722
SELECT ALL 64 * - col1 * - 63 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2723
SELECT CAST( NULL AS SIGNED ) + - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2723
SELECT CAST ( NULL AS INTEGER ) + - 33 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col1 - - + col1 * col2 - - col2 + col2 AS col1 FROM tab0
----
209
296
3820

query I rowsort
SELECT ( ( - - 20 ) ) * col1 AS col2 FROM tab2
----
1020
1340
1540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2727
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2727
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT 60 + col0 FROM tab0 AS cor0
----
147
157
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 * + col0 col1 FROM tab1 cor0
----
-1785
-2975
-3185

query II rowsort
SELECT ALL + ( 19 ) * - + col0 AS col0, - 3 * + col0 - + col0 + + ( + col0 ) FROM tab2 AS cor0
----
-1216
-192
-1425
-225
-874
-138

query I rowsort
SELECT DISTINCT col0 FROM tab2 cor0 WHERE NOT col1 * - + 52 * col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2732
SELECT - col1 DIV - - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2732
SELECT - col1 / - - col0 AS col1 FROM tab0 AS cor0
----
-5
0
0

query I rowsort
SELECT 11 * - col2 + - col1 AS col2 FROM tab1 AS cor0
----
-1070
-654
-795

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2734
SELECT ALL - + 80 * - col2 + + CAST( NULL AS SIGNED ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2734
SELECT ALL - + 80 * - col2 + + CAST ( NULL AS INTEGER ) * - col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2735
SELECT ALL + - COUNT( * ) * + COUNT( * ) AS col0, 86 FROM tab0 WHERE NOT NULL > - 64 + - + CAST( NULL AS SIGNED ) + - col2
----
0
86

skipif mysql # not compatible
query II rowsort label-2735
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) AS col0, 86 FROM tab0 WHERE NOT NULL > - 64 + - + CAST ( NULL AS INTEGER ) + - col2
----
0
86

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + 38 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 51
----

query I rowsort
SELECT ALL 17 FROM tab2 WHERE NOT ( NULL IS NOT NULL )
----
17
17
17

query I rowsort
SELECT ALL col2 + ( + - col2 ) + - col1 + + 40 AS col2 FROM tab0
----
-41
19
39

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT DISTINCT col1 DIV - 33 FROM tab0
----
-2
0

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT col1 / - 33 FROM tab0
----
-2
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2741
SELECT - + CAST( + CAST( - + col2 AS DECIMAL ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2741
SELECT - + CAST ( + CAST ( - + col2 AS REAL ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT DISTINCT + col1 * - CAST( + - 83 AS SIGNED ) + 80 FROM tab2 AS cor0
----
4313
5641
6471

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT + col1 * - CAST ( + - 83 AS INTEGER ) + 80 FROM tab2 AS cor0
----
4313
5641
6471

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT + + CAST( + + col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2743
SELECT + + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2744
SELECT + - SUM( ALL - 91 ) * - - 66 + + 52 + - 70 * + SUM( + 86 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2744
SELECT + - SUM ( ALL - 91 ) * - - 66 + + 52 + - 70 * + SUM ( + 86 ) FROM tab0 cor0
----
10

query I rowsort
SELECT + - 4 + col1 FROM tab0 cor0
----
-3
17
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= - 9 * + col0 * - 89 * + 77
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 - - col1 + col1 + 25 * 70 = + ( - + 47 )
----

query I rowsort
SELECT ALL + 45 AS col1 FROM tab0
----
45
45
45

onlyif mysql # DIV for integer division: 
query I rowsort label-2749
SELECT ALL 18 DIV + 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL 18 / + 81 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT DISTINCT ( MIN( + 63 ) ) AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2750
SELECT DISTINCT ( MIN ( + 63 ) ) AS col1 FROM tab0 AS cor0
----
63

query I rowsort
SELECT ALL - 60 + + + col0 * - 3 FROM tab2 AS cor0
----
-198
-252
-285

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT DISTINCT - COUNT( * ) + 52 col1 FROM tab2 cor0
----
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2752
SELECT DISTINCT - COUNT ( * ) + 52 col1 FROM tab2 cor0
----
49

query I rowsort
SELECT ALL + - 81 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-81
-81
-81

query I rowsort
SELECT ALL - - ( 75 ) + 85 FROM tab2 AS cor0
----
160
160
160

query I rowsort
SELECT ALL + col1 - - 77 FROM tab1 AS cor0
----
124
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2756
SELECT ALL + MAX( col2 ) * - - 35 AS col1 FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND col2 + + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2756
SELECT ALL + MAX ( col2 ) * - - 35 AS col1 FROM tab0 AS cor0 WHERE ( NULL BETWEEN NULL AND col2 + + col1 )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN col1 * - col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT DISTINCT CAST( - - 63 AS SIGNED ) - + col1 * - col2 * col0 * - col2 * + + col0 FROM tab0
----
-15894837
-40258962
-92217546

skipif mysql # not compatible
query I rowsort label-2758
SELECT DISTINCT CAST ( - - 63 AS INTEGER ) - + col1 * - col2 * col0 * - col2 * + + col0 FROM tab0
----
-15894837
-40258962
-92217546

query II rowsort
SELECT col2, 37 AS col0 FROM tab2
----
23
37
40
37
58
37

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT + COUNT( * ) col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2760
SELECT + COUNT ( * ) col1 FROM tab0 WHERE NOT + + col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - MAX( ALL + + 68 ) FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-2761
SELECT - MAX ( ALL + + 68 ) FROM tab1
----
-68

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 NOT BETWEEN col0 AND + col2
----
51
14
96

query I rowsort
SELECT + col2 * - col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query I rowsort
SELECT + col0 * col2 * + 54 FROM tab2
----
138240
234900
57132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2765
SELECT 13 DIV - - COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2765
SELECT 13 / - - COUNT ( * ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-2766
SELECT 21 * COUNT( * ) AS col1 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-2766
SELECT 21 * COUNT ( * ) AS col1 FROM tab1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2767
SELECT - CAST( + - MAX( DISTINCT + + col2 ) AS SIGNED ) * + - COUNT( DISTINCT 89 ) * - COUNT( col1 ) FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-2767
SELECT - CAST ( + - MAX ( DISTINCT + + col2 ) AS INTEGER ) * + - COUNT ( DISTINCT 89 ) * - COUNT ( col1 ) FROM tab2 cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT 51 * - - col2 / + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT 51 * - - col2 / + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + + 26 + 75 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to abec6b3410aa771c209e22ecdf81edba

query I rowsort
SELECT ALL + - 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 491ad1fb79fec0b5715ea54949d1aa2d

query I rowsort
SELECT ALL + + col1 / + col1 - + col0 - col2 + 25 * - + 58 FROM tab2 cor0 WHERE NOT - 71 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - 21 AS col0 FROM tab2 cor0
----
-19
-2
-37

onlyif mysql # aggregate syntax: 
query II rowsort label-2773
SELECT - + 7 * - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab0 cor0
----
21
3

skipif mysql # not compatible
query II rowsort label-2773
SELECT - + 7 * - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab0 cor0
----
21
3

query I rowsort
SELECT DISTINCT + ( + - col1 ) + - col2 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT 74 * - - col0 FROM tab0
----
1110
6438
7178

query I rowsort
SELECT + col0 + + 31 FROM tab1
----
116
122
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2777
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - ( - + col1 ) + + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2779
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2779
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 + col2 + 26 col0 FROM tab2
----
1666
3448
578

query I rowsort
SELECT ALL + + AVG ( ALL 42 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT DISTINCT COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( - 39 ) + + - 88 FROM tab2 AS cor0
----
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 6 - col2 * - col1 col2 FROM tab0 AS cor0
----
204
3801
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2785
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2785
SELECT * FROM tab1 cor0 WHERE col1 NOT BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ( + + col2 ), - col2 AS col0 FROM tab1 AS cor0
----
59
-59
68
-68
96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT - MIN( ALL - - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-2787
SELECT - MIN ( ALL - - col1 ) AS col1 FROM tab2
----
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( col1 ) NOT IN ( - 82, col2 * 53 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2789
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col1 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2789
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col1 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + MAX( DISTINCT 46 ) AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2790
SELECT + MAX ( DISTINCT 46 ) AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2791
SELECT ALL SUM( ALL - - 55 ) AS col0 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-2791
SELECT ALL SUM ( ALL - - 55 ) AS col0 FROM tab2 AS cor0
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT - - 43 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2792
SELECT - - 43 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2793
SELECT COUNT( * ) * - + CAST( + - 73 AS SIGNED ) FROM tab2 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2793
SELECT COUNT ( * ) * - + CAST ( + - 73 AS INTEGER ) FROM tab2 AS cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2794
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col2 ) AND - 93
----

query I rowsort
SELECT DISTINCT + 70 * - col0 FROM tab2 AS cor0
----
-3220
-4480
-5250

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) FROM tab1
----
51
85
91

query II rowsort
SELECT ALL col1, 98 AS col0 FROM tab1
----
14
98
47
98
5
98

query I rowsort
SELECT - - col0 FROM tab0 WHERE NOT + - 94 + + 96 IS NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2801
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2801
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL col0 + - col0 * - 7 FROM tab1
----
408
680
728

query I rowsort
SELECT + col0 + - - ( + col1 ) FROM tab2 AS cor0
----
141
142
97

query II rowsort
SELECT ALL - 54 AS col2, col2 FROM tab2 AS cor0
----
-54
23
-54
40
-54
58

query I rowsort
SELECT ALL - ( 22 ) + - 78 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
-100
-100
-100

query I rowsort
SELECT - + 86 FROM tab0 AS cor0 WHERE 11 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + 79 + + + 84 + col1 AS col1 FROM tab1 AS cor0
----
10
19
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2808
SELECT + + 74 + CAST( NULL AS SIGNED ) + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2808
SELECT + + 74 + CAST ( NULL AS INTEGER ) + 29 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + - col1 + + col1 * col0 AS col2 FROM tab2 AS cor0
----
2272
4811
4900

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + + 10 * + + SUM( + col0 ) FROM tab1 AS cor0
----
2270

skipif mysql # not compatible
query I rowsort label-2810
SELECT + + 10 * + + SUM ( + col0 ) FROM tab1 AS cor0
----
2270

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT ALL COUNT( * ) col1 FROM tab0 WHERE NOT col0 <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2811
SELECT ALL COUNT ( * ) col1 FROM tab0 WHERE NOT col0 <> NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2812
SELECT + 57 DIV col1 DIV col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT + 57 / col1 / col2 AS col2 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE 63 * + ( - + 47 ) >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT - COUNT( * ) * - 71 FROM tab2 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - COUNT ( * ) * - 71 FROM tab2 WHERE NOT NULL < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2815
SELECT AVG ( DISTINCT col0 ) - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2815
SELECT AVG ( DISTINCT col0 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL + + col0 + + col2 * - + col1 AS col1, - 4 FROM tab1 AS cor0
----
-1293
-4
-210
-4
-3105
-4

query I rowsort
SELECT ALL + 44 + - 25 AS col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT ALL + col0 * 34 FROM tab1
----
1734
2890
3094

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + 3 + + col2 <> NULL
----

query I rowsort
SELECT DISTINCT col0 * - 10 * - 2 AS col0 FROM tab2 AS cor0
----
1280
1500
920

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + ( - - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT - - SUM( + col2 ) * - 97 FROM tab2 AS cor0
----
-11737

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT - - SUM ( + col2 ) * - 97 FROM tab2 AS cor0
----
-11737

query II rowsort
SELECT ALL + + col2, col2 + + col2 FROM tab0 cor0
----
10
20
47
94
99
198

query I rowsort
SELECT + 47 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
47
47
47

onlyif mysql # DIV for integer division: 
query I rowsort label-2825
SELECT DISTINCT + + col2 DIV - + 75 AS col0 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT + + col2 / - + 75 AS col0 FROM tab0 AS cor0
----
-1
0

query I rowsort
SELECT - - ( + - 76 ) AS col0 FROM tab1 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT 22 + col0 AS col2 FROM tab1 WHERE - col2 BETWEEN - col0 AND + col2
----
107
113

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT ALL - 52 * - MAX( DISTINCT 47 ) FROM tab0
----
2444

skipif mysql # not compatible
query I rowsort label-2828
SELECT ALL - 52 * - MAX ( DISTINCT 47 ) FROM tab0
----
2444

query I rowsort
SELECT 57 * + + 74 AS col1 FROM tab1
----
4218
4218
4218

onlyif mysql # DIV for integer division: 
query I rowsort label-2830
SELECT ALL - col2 * col1 DIV + col1 AS col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL - col2 * col1 / + col1 AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT + 95 * - + COUNT( ALL - ( + col2 ) ) FROM tab1
----
-285

skipif mysql # not compatible
query I rowsort label-2831
SELECT + 95 * - + COUNT ( ALL - ( + col2 ) ) FROM tab1
----
-285

query I rowsort
SELECT + 62 * + col2 AS col0 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT ALL + col1 * - col0 * + ( col1 ) AS col2 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + + 35
----

query I rowsort
SELECT ALL - col2 + - col1 - col1 + - - 26 + + + col2 * + ( + col1 ) FROM tab1 WHERE + - col2 <= + 19 * 3 / 43 * - + col1 * col2 + + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - 55 col1 FROM tab2
----
-4
12
22

query I rowsort
SELECT + - col2 FROM tab0 AS cor0 WHERE ( - 77 ) > - 25 * - col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 70 ) = col0 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 + - + col1 * + + 75 / + - col0 AND + 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2840
SELECT ALL 5 AS col1, - 13 DIV - ( - COUNT( * ) ) FROM tab2 AS cor0
----
5
-4

skipif mysql # not compatible
query II rowsort label-2840
SELECT ALL 5 AS col1, - 13 / - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
5
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 80 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2842
SELECT DISTINCT + - COUNT( * ) * + COUNT( + 42 ) + - CAST( COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + - COUNT ( * ) * + COUNT ( + 42 ) + - CAST ( COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0 cor0
----
-18

query I rowsort
SELECT + 40 + - 40 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT col2 + - ( - ( col1 ) ) AS col0 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - + col2 + + + col2 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + 30 AS col2, 31 AS col2 FROM tab1
----
30
31

onlyif mysql # aggregate syntax: 
query I rowsort label-2847
SELECT DISTINCT - MIN( DISTINCT + 37 ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-2847
SELECT DISTINCT - MIN ( DISTINCT + 37 ) AS col1 FROM tab0
----
-37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2848
SELECT - CAST( NULL AS SIGNED ) + + col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2848
SELECT - CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1 AS col1, - 97 FROM tab2
----
51
-97
67
-97
77
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 73 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) * + 2 + col2 + 90 col2 FROM tab1
----
139
158
64

query I rowsort
SELECT ALL + col2 - - col1 + + col0 AS col2 FROM tab1 AS cor0
----
149
161
206

onlyif mysql # DIV for integer division: 
query II rowsort label-2853
SELECT DISTINCT - ( + - col1 ) DIV + col2 - + 5 AS col2, + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-5
14
-5
47
-5
5

skipif mysql # not compatible
query II rowsort label-2853
SELECT DISTINCT - ( + - col1 ) / + col2 - + 5 AS col2, + ( + col1 ) AS col1 FROM tab1 AS cor0
----
-5
14
-5
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2854
SELECT + + MAX( 62 ) AS col0 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2854
SELECT + + MAX ( 62 ) AS col0 FROM tab1 AS cor0
----
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT + ( CAST( + AVG ( DISTINCT ( + col2 ) ) AS SIGNED ) ) FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2855
SELECT + ( CAST ( + AVG ( DISTINCT ( + col2 ) ) AS INTEGER ) ) FROM tab2 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT COUNT( + - col0 ) AS col0 FROM tab2 WHERE + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT COUNT ( + - col0 ) AS col0 FROM tab2 WHERE + - col1 IS NULL
----
0

query I rowsort
SELECT + col1 - + col2 AS col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT DISTINCT + 55 * + 29 FROM tab0
----
1595

query I rowsort
SELECT + - 39 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

query I rowsort
SELECT + col0 * - 53 * - 10 * + 16 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2861
SELECT ALL col2 DIV col2 * - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-2861
SELECT ALL col2 / col2 * - col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT DISTINCT col0 * - + col2 / - 82, - 34 / - col2 * - + col1 + + col2 * - col1 AS col2 FROM tab1 AS cor0 WHERE col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2863
SELECT ALL + + 9 * - COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-2863
SELECT ALL + + 9 * - COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # DIV for integer division: 
query II rowsort label-2864
SELECT - col1 DIV + 95 AS col2, 75 FROM tab0 AS cor0
----
0
75
0
75
0
75

skipif mysql # not compatible
query II rowsort label-2864
SELECT - col1 / + 95 AS col2, 75 FROM tab0 AS cor0
----
0
75
0
75
0
75

query I rowsort
SELECT ( - + 69 ) AS col0 FROM tab0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT DISTINCT col2 * + - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT col2 * + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2867
SELECT ALL 14 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL 14 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2868
SELECT DISTINCT * FROM tab2 WHERE ( + col1 - + ( CAST( - col1 AS SIGNED ) ) ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2868
SELECT DISTINCT * FROM tab2 WHERE ( + col1 - + ( CAST ( - col1 AS INTEGER ) ) ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 5 col2 FROM tab2
----
230
320
375

query I rowsort
SELECT ALL 80 * - - 91 * - col1 AS col2 FROM tab0
----
-152880
-589680
-7280

query I rowsort
SELECT - col0 * ( - col0 ) AS col1 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT + + col1 * + - col0 * ( ( col0 ) ) - col2 - - col1 FROM tab2 AS cor0
----
-107888
-315355
-376866

query I rowsort
SELECT DISTINCT col0 + - 89 FROM tab2 cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT - col1 AS col0, col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT + SUM( 50 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
450

skipif mysql # not compatible
query I rowsort label-2875
SELECT + SUM ( 50 ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
450

onlyif mysql # aggregate syntax: 
query I rowsort label-2876
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2876
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT 28 + - col1 * + - col0 AS col2 FROM tab0
----
1243
125
1855

onlyif mysql # aggregate syntax: 
query II rowsort label-2878
SELECT DISTINCT MIN( - 22 ), 93 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-22
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2878
SELECT DISTINCT MIN ( - 22 ), 93 col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-22
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - col0 ) + - 47 + - col1 col2 FROM tab2 AS cor0
----
-39
-52
-60

query I rowsort
SELECT DISTINCT + col0 + col1 + + col1 * - - col0 * + 98 * col1 FROM tab2 AS cor0
----
11725405
32994292
37186829

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2881
SELECT ALL col1 + - CAST( NULL AS SIGNED ) * - + 50 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-2881
SELECT ALL col1 + - CAST ( NULL AS INTEGER ) * - + 50 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - col2 IS NULL
----

query I rowsort
SELECT - - ( - + col1 ) FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2884
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > - 17
----
0

skipif mysql # not compatible
query I rowsort label-2884
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL > - 17
----
0

query I rowsort
SELECT DISTINCT - ( + + col2 ) + - - 27 FROM tab0 cor0
----
-20
-72
17

query I rowsort
SELECT DISTINCT 84 * + col2 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - - col2 * + + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= - - col0
----

query I rowsort
SELECT - 85 * col0 AS col1 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT - COUNT( * ) - - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT DISTINCT col0 + + 83 AS col2 FROM tab2
----
129
147
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT - SUM( DISTINCT + col1 ) - - 91 AS col0 FROM tab2
----
-104

skipif mysql # not compatible
query I rowsort label-2892
SELECT - SUM ( DISTINCT + col1 ) - - 91 AS col0 FROM tab2
----
-104

query I rowsort
SELECT 7 * - + col1 FROM tab1 WHERE - col2 BETWEEN NULL AND + - 82 * + + col2
----

query II rowsort
SELECT - - 21 * + ( col0 ) - + 72 AS col1, - col2 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2895
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2895
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2896
SELECT ALL + CAST( NULL AS SIGNED ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2896
SELECT ALL + CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + - - col0 AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT + - 39 AS col0 FROM tab0 cor0
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 23 AS col2, 18 col2 FROM tab0
----
23
18
23
18
23
18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> ( col1 + - - col1 + - - 29 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2902
SELECT ALL - - MIN( DISTINCT + + 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-2902
SELECT ALL - - MIN ( DISTINCT + + 88 ) FROM tab2 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT + + SUM( ALL - - col0 ) FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2903
SELECT + + SUM ( ALL - - col0 ) FROM tab2 AS cor0 WHERE NOT + col2 >= NULL
----
NULL

query I rowsort
SELECT - col1 AS col0 FROM tab2 AS cor0 WHERE NOT + col2 <= + 51
----
-67

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 * col2 - + - 75 AND + 77 * - 16 * 75
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT SUM( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT - col0 >= + 90 - + 50
----
223

skipif mysql # not compatible
query I rowsort label-2906
SELECT SUM ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NOT - col0 >= + 90 - + 50
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2907
SELECT ALL - COUNT( * ) * COUNT( * ) col2 FROM tab1 WHERE NOT NULL NOT IN ( + 77 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2907
SELECT ALL - COUNT ( * ) * COUNT ( * ) col2 FROM tab1 WHERE NOT NULL NOT IN ( + 77 )
----
0

query I rowsort
SELECT DISTINCT - col0 * 71 * - 73 AS col0 FROM tab2
----
238418
331712
388725

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT COUNT( - 53 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2909
SELECT COUNT ( - 53 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2910
SELECT ALL - 21 DIV + - 16 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - 21 / + - 16 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2911
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2911
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2912
SELECT ALL * FROM tab0 WHERE - col1 - + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2912
SELECT ALL * FROM tab0 WHERE - col1 - + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 22 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2914
SELECT DISTINCT MAX( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-51

skipif mysql # not compatible
query I rowsort label-2914
SELECT DISTINCT MAX ( DISTINCT - col0 ) AS col0 FROM tab1 WHERE ( NULL IS NULL )
----
-51

query II rowsort
SELECT DISTINCT - - col2 * + 87, col2 FROM tab0 AS cor0
----
4089
47
8613
99
870
10

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ( COUNT( DISTINCT - col0 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2916
SELECT ( COUNT ( DISTINCT - col0 ) ) FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2917
SELECT - 54 * + CAST( 85 AS SIGNED ) AS col1, - COUNT( * ) FROM tab2
----
-4590
-3

skipif mysql # not compatible
query II rowsort label-2917
SELECT - 54 * + CAST ( 85 AS INTEGER ) AS col1, - COUNT ( * ) FROM tab2
----
-4590
-3

query I rowsort
SELECT - 6 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 WHERE 59 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT DISTINCT col0 DIV + 7 FROM tab2
----
10
6
9

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT col0 / + 7 FROM tab2
----
10
6
9

query I rowsort
SELECT - - 47 * col1 + + col2 + + col1 * + col1 FROM tab0 AS cor0
----
10415
1438
147

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + + - 23 >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT ALL - col0 + - col0 * + 25 - CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-1247
-1741
-2017

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL - col0 + - col0 * + 25 - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-1247
-1741
-2017

query I rowsort
SELECT ALL - ( - 96 ) * - + ( ( + col0 ) ) FROM tab1 cor0
----
-4896
-8160
-8736

query I rowsort
SELECT - col1 + - - 46 FROM tab1 cor0
----
-1
32
41

query I rowsort
SELECT + 90 + - col1 AS col0 FROM tab2 cor0
----
13
23
39

query I rowsort
SELECT + + 40 + - + col1 FROM tab0 AS cor0
----
-41
19
39

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2928
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1, + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2928
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1, + col0 AS col1 FROM tab0
----
NULL
15
NULL
87
NULL
97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 + col2 + + 44 BETWEEN + - 93 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + - 18 AS col1 FROM tab0 WHERE NOT col1 + col0 > - - 48 / - col2 + + 33
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( + + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col1 + - 66 + col2 AS col2 FROM tab1 cor0
----
-2
44
49

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT ALL MIN( ALL + col0 ) col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2933
SELECT ALL MIN ( ALL + col0 ) col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT + ( + col0 ) * + col1 + + + ( + - col0 ) AS col2 FROM tab1 AS cor0
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT - - COUNT( * ) + + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 75
----
0

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT - - COUNT ( * ) + + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT - SUM( ALL + ( - 73 ) ) AS col2 FROM tab1
----
219

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - SUM ( ALL + ( - 73 ) ) AS col2 FROM tab1
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT ALL + + MAX( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2937
SELECT ALL + + MAX ( + col2 ) AS col2 FROM tab0 AS cor0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, - 87 FROM tab2 AS cor0
----
-46
-87
-64
-87
-75
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT - col0 DIV col2 + 87 AS col0 FROM tab0 cor0
----
79
87
87

skipif mysql # not compatible
query I rowsort label-2939
SELECT - col0 / col2 + 87 AS col0 FROM tab0 cor0
----
79
87
87

query I rowsort
SELECT ALL - - 80 AS col0 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT 32 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
2774
3005
433

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2942
SELECT + 57 DIV + COUNT( + col0 ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-2942
SELECT + 57 / + COUNT ( + col0 ) FROM tab0 AS cor0
----
19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1, 10 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 < NULL
----

query II rowsort
SELECT DISTINCT - col2, 30 + - col1 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL + CAST( col2 AS SIGNED ) * col2 * + col1 * col1 AS col1 FROM tab2
----
1375929
15100996
9486400

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL + CAST ( col2 AS INTEGER ) * col2 * + col1 * col1 AS col1 FROM tab2
----
1375929
15100996
9486400

query III rowsort
SELECT * FROM tab2 WHERE NOT + + ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 61 * + + col1 FROM tab1
----
2867
305
854

query II rowsort
SELECT - + col1 AS col1, - col2 FROM tab0 WHERE NOT + + 24 IS NULL
----
-1
-99
-21
-10
-81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 36, + 71 + + - 60 col2 FROM tab2 AS cor0
----
-36
11

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT + - col0 + + col0 * + 63 FROM tab1 AS cor0
----
3162
5270
5642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2953
SELECT 96 DIV COUNT( 35 ) + COUNT( * ) FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-2953
SELECT 96 / COUNT ( 35 ) + COUNT ( * ) FROM tab1
----
35

query I rowsort
SELECT ALL + - col1 * + + col0 + 25 FROM tab1 AS cor0
----
-400
-4252
-689

query II rowsort
SELECT ALL + - 54 + - 0 AS col2, - col1 * + col1 + + col0 AS col0 FROM tab1 AS cor0
----
-54
-145
-54
-2118
-54
60

onlyif mysql # DIV for integer division: 
query I rowsort label-2956
SELECT 40 * - col2 + 68 * col2 DIV + + col2 FROM tab2 AS cor0
----
-1532
-2252
-852

skipif mysql # not compatible
query I rowsort label-2956
SELECT 40 * - col2 + 68 * col2 / + + col2 FROM tab2 AS cor0
----
-1532
-2252
-852

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - 95 * - col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 56 * + col0 * + + col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2959
SELECT + CAST( NULL AS SIGNED ) - - - COUNT( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 99 * - col1 AND - CAST( + - col1 AS SIGNED ) * - 6
----
NULL

skipif mysql # not compatible
query I rowsort label-2959
SELECT + CAST ( NULL AS INTEGER ) - - - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL BETWEEN 99 * - col1 AND - CAST ( + - col1 AS INTEGER ) * - 6
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE col1 * + 50 BETWEEN + col2 * - col0 AND - 37 * + + col1 * col0 / + - col2
----
85
5
59

query I rowsort
SELECT DISTINCT + col1 * col1 - col0 + 69 FROM tab2
----
2624
4483
5934

query I rowsort
SELECT col1 * 27 + - + col2 AS col1 FROM tab1
----
1201
282
76

query II rowsort
SELECT col2, - col2 + - 0 AS col1 FROM tab2 WHERE - + 40 IS NOT NULL
----
23
-23
40
-40
58
-58

query I rowsort
SELECT col2 * - 75 FROM tab1
----
-4425
-5100
-7200

query I rowsort
SELECT ALL 24 * + - 63 AS col2 FROM tab0
----
-1512
-1512
-1512

onlyif mysql # aggregate syntax: 
query I rowsort label-2966
SELECT + COUNT( * ) * + 12 AS col2 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-2966
SELECT + COUNT ( * ) * + 12 AS col2 FROM tab1
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2967
SELECT - + col1 DIV - - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT - + col1 / - - col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT + + SUM( DISTINCT + CAST( - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + + SUM ( DISTINCT + CAST ( - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT - ( - + 34 ) * - - SUM( + col0 ) * + ( - COUNT( - col1 ) ) FROM tab1 AS cor0
----
-23154

skipif mysql # not compatible
query I rowsort label-2969
SELECT - ( - + 34 ) * - - SUM ( + col0 ) * + ( - COUNT ( - col1 ) ) FROM tab1 AS cor0
----
-23154

query II rowsort
SELECT + + col2, + col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT - ( + col2 ) + + 64 AS col1 FROM tab1
----
-32
-4
5

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col0 - - 94 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2973
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 95 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2973
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 95 AS col0 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2974
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2974
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2975
SELECT COUNT( * ) + - AVG ( + 77 ) FROM tab1 WHERE ( CAST( col1 AS SIGNED ) * 70 + - col2 ) IN ( + 1 + 99 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2975
SELECT COUNT ( * ) + - AVG ( + 77 ) FROM tab1 WHERE ( CAST ( col1 AS INTEGER ) * 70 + - col2 ) IN ( + 1 + 99 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT ALL - SUM( ( col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2976
SELECT ALL - SUM ( ( col1 ) ) FROM tab0
----
-103

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 * + col1 ) NOT BETWEEN ( col1 ) AND + 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN NULL AND col0 + + col0 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2979
SELECT ALL COUNT( * ) * 50 + MAX( DISTINCT + 8 ) FROM tab1
----
158

skipif mysql # not compatible
query I rowsort label-2979
SELECT ALL COUNT ( * ) * 50 + MAX ( DISTINCT + 8 ) FROM tab1
----
158

query I rowsort
SELECT + 92 * col1 + 70 AS col2 FROM tab1
----
1358
4394
530

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2981
SELECT CAST( + COUNT( - col0 ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2981
SELECT CAST ( + COUNT ( - col0 ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT ALL 31 * + col0 FROM tab0
----
2697
3007
465

query I rowsort
SELECT ALL + col1 + col0 AS col0 FROM tab0 WHERE NOT col1 + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT - col0 * + col2 + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT - col0 * + col2 + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * 38 + + 18 FROM tab1
----
-2224
-2566
-3630

query I rowsort
SELECT col1 + col0 * col2 AS col0 FROM tab1
----
4910
5020
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT DISTINCT - MAX( DISTINCT ( col2 ) ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-2987
SELECT DISTINCT - MAX ( DISTINCT ( col2 ) ) FROM tab2
----
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2988
SELECT 39 DIV + col2 - - 14 FROM tab1
----
14
14
14

skipif mysql # not compatible
query I rowsort label-2988
SELECT 39 / + col2 - - 14 FROM tab1
----
14
14
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT - MIN( ALL col2 ) * 27 FROM tab2
----
-621

skipif mysql # not compatible
query I rowsort label-2989
SELECT - MIN ( ALL col2 ) * 27 FROM tab2
----
-621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( col1 ) + col1 col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + ( 0 ) * + col1 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * 74 col2 FROM tab2
----
-1332
-1332
-1332

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 = NULL
----

query I rowsort
SELECT - 17 * col1 + - col2 AS col2 FROM tab0
----
-116
-1424
-367

query I rowsort
SELECT ALL col0 * + col0 + col1 AS col0 FROM tab2 cor0
----
2167
4173
5692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) + - 76 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2997
SELECT DISTINCT - col1 * col2 FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) + - 76 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2998
SELECT ALL * FROM tab1 AS cor0 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2998
SELECT ALL * FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT DISTINCT MIN( + ( + col0 ) ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2999
SELECT DISTINCT MIN ( + ( + col0 ) ) FROM tab2 AS cor0
----
46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 87 + col2 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col2 FROM tab0 WHERE NOT col0 * - col2 NOT BETWEEN col1 + - 15 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT ALL COUNT( - 74 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3002
SELECT ALL COUNT ( - 74 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT 66 FROM tab1 AS cor0 CROSS JOIN tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3004
SELECT ALL - CAST( col1 AS SIGNED ) + + col0 * col2 AS col2 FROM tab2
----
1007
2483
4283

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL - CAST ( col1 AS INTEGER ) + + col0 * col2 AS col2 FROM tab2
----
1007
2483
4283

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + + 23 * 90 IN ( - 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + + 40 * - col2 FROM tab2 WHERE col0 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3007
SELECT ALL ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT ALL ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT ALL + COUNT( * ) + + 55 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-3008
SELECT ALL + COUNT ( * ) + + 55 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3009
SELECT ALL + col1 / + CAST( NULL AS SIGNED ) + - 75 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL + col1 / + CAST ( NULL AS INTEGER ) + - 75 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL <= 78
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT - CAST( col0 AS SIGNED ) + col1 * + col1 AS col1 FROM tab2 AS cor0
----
2555
4414
5865

skipif mysql # not compatible
query I rowsort label-3011
SELECT - CAST ( col0 AS INTEGER ) + col1 * + col1 AS col1 FROM tab2 AS cor0
----
2555
4414
5865

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + 57 col1 FROM tab1 AS cor0 WHERE + col1 * col2 IS NOT NULL
----
3363
3876
5472

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3013
SELECT - CAST( 30 AS SIGNED ) + - col2 AS col2 FROM tab2 AS cor0 WHERE ( 89 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3013
SELECT - CAST ( 30 AS INTEGER ) + - col2 AS col2 FROM tab2 AS cor0 WHERE ( 89 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT DISTINCT - 87 * ( 41 ) + - COUNT( * ) * - 32 AS col0 FROM tab1 AS cor0
----
-3471

skipif mysql # not compatible
query I rowsort label-3015
SELECT DISTINCT - 87 * ( 41 ) + - COUNT ( * ) * - 32 AS col0 FROM tab1 AS cor0
----
-3471

query I rowsort
SELECT DISTINCT + col1 - col0 * col1 FROM tab0 AS cor0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > - col2 * - col1
----
0

skipif mysql # not compatible
query I rowsort label-3017
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > - col2 * - col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3018
SELECT DISTINCT + 85 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3018
SELECT DISTINCT + 85 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * - col0 - col0 col1 FROM tab2 AS cor0
----
-2162
-4160
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT + MAX( col2 ) col0 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3020
SELECT + MAX ( col2 ) col0 FROM tab0 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3021
SELECT CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) * col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3021
SELECT CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) * col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 = ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 93 * - col1 FROM tab0
----
1953
7533
93

query I rowsort
SELECT ALL - 0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col1 * + 9 FROM tab2
----
459
603
693

onlyif mysql # aggregate syntax: 
query I rowsort label-3026
SELECT DISTINCT MAX( ALL - 12 ) * - 79 AS col0 FROM tab1
----
948

skipif mysql # not compatible
query I rowsort label-3026
SELECT DISTINCT MAX ( ALL - 12 ) * - 79 AS col0 FROM tab1
----
948

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3027
SELECT DISTINCT - 54 DIV - SUM( ALL col0 ) * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3027
SELECT DISTINCT - 54 / - SUM ( ALL col0 ) * COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + col0 * - + 44 FROM tab1 AS cor0
----
-2244
-3740
-4004

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 17 col2 FROM tab0 cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-3030
SELECT * FROM tab0 cor0 WHERE NOT ( CAST( CAST( ( 87 ) AS DECIMAL ) AS SIGNED ) * - ( col0 * col2 ) + col2 ) BETWEEN + col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3030
SELECT * FROM tab0 cor0 WHERE NOT ( CAST ( CAST ( ( 87 ) AS REAL ) AS INTEGER ) * - ( col0 * col2 ) + col2 ) BETWEEN + col1 AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3031
SELECT DISTINCT - - CAST( - - COUNT( DISTINCT col2 ) AS SIGNED ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT DISTINCT - - CAST ( - - COUNT ( DISTINCT col2 ) AS INTEGER ) col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3032
SELECT DISTINCT + + 49 / CAST( NULL AS SIGNED ) * 69 + - col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT + + 49 / CAST ( NULL AS INTEGER ) * 69 + - col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT ALL MAX( - - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3033
SELECT ALL MAX ( - - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3034
SELECT ALL MIN( - ( + 86 ) ) FROM tab2, tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-3034
SELECT ALL MIN ( - ( + 86 ) ) FROM tab2, tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT DISTINCT MIN( ALL + 53 ) * + 14 + + 64 FROM tab1, tab1 AS cor0
----
806

skipif mysql # not compatible
query I rowsort label-3035
SELECT DISTINCT MIN ( ALL + 53 ) * + 14 + + 64 FROM tab1, tab1 AS cor0
----
806

onlyif mysql # DIV for integer division: 
query I rowsort label-3036
SELECT DISTINCT - 89 + + 63 + - col0 DIV + col2 col2 FROM tab2 AS cor0
----
-27
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3036
SELECT DISTINCT - 89 + + 63 + - col0 / + col2 col2 FROM tab2 AS cor0
----
-27
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-3037
SELECT COUNT( * ) + + 50 AS col1 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3037
SELECT COUNT ( * ) + + 50 AS col1 FROM tab2 AS cor0
----
53

query I rowsort
SELECT 47 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * - - col1 - col1 * + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT NULL > ( col0 )
----

query I rowsort
SELECT + - 20 + + 94 FROM tab1 AS cor0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT ALL COUNT( * ) + - COUNT( * ) col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3041
SELECT ALL COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + + 76 )
----

query I rowsort
SELECT + + ( - col0 ) FROM tab2 cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE + col0 + + - col0 / - col1 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 + + - col0 / - col1 >= NULL
----
0

query II rowsort
SELECT DISTINCT + 23, col0 AS col2 FROM tab0 AS cor0
----
23
15
23
87
23
97

query II rowsort
SELECT DISTINCT col0, 14 FROM tab2 cor0
----
46
14
64
14
75
14

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN col2 AND col0
----

query I rowsort
SELECT DISTINCT - + ( - col2 ) + + col0 * - col0 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 24 AS col0 FROM tab2 WHERE col0 > + ( + col0 )
----

query I rowsort
SELECT + 27 * - - col0 FROM tab2
----
1242
1728
2025

query I rowsort
SELECT DISTINCT + 59 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT MIN( ALL + 67 ) FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-3052
SELECT MIN ( ALL + 67 ) FROM tab2
----
67

query I rowsort
SELECT ALL - ( col0 ) * + 26 AS col0 FROM tab2 WHERE NOT + 53 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 31 FROM tab2 WHERE ( + - col0 ) = - col0 + col1
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3056
SELECT + ( - ( COUNT( * ) ) ) AS col0 FROM tab1 AS cor0 WHERE ( 45 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3056
SELECT + ( - ( COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0 WHERE ( 45 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3057
SELECT ALL - MIN( ALL + ( - col1 ) ) + + + 59 FROM tab0 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-3057
SELECT ALL - MIN ( ALL + ( - col1 ) ) + + + 59 FROM tab0 AS cor0
----
140

query I rowsort
SELECT DISTINCT + + 0 + + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL col2 - + 18 FROM tab2 cor0 WHERE 48 IN ( 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL - COUNT( * ) + ( + + COUNT( * ) ) - + 62 AS col0 FROM tab1 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL - COUNT ( * ) + ( + + COUNT ( * ) ) - + 62 AS col0 FROM tab1 AS cor0
----
-62

query I rowsort
SELECT ALL - col1 * - col2 + col2 - + - col2 FROM tab0 AS cor0
----
230
297
3901

query I rowsort
SELECT ALL - 48 + + col1 FROM tab0 AS cor0
----
-27
-47
33

query I rowsort
SELECT ALL + 20 AS col1 FROM tab2
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3064
SELECT - + COUNT( * ) + + - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-88

skipif mysql # not compatible
query I rowsort label-3064
SELECT - + COUNT ( * ) + + - 79 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-88

query I rowsort
SELECT - ( ( + 35 ) ) * + 37 FROM tab1
----
-1295
-1295
-1295

onlyif mysql # DIV for integer division: 
query I rowsort label-3066
SELECT col0 DIV 19 AS col0 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-3066
SELECT col0 / 19 AS col0 FROM tab2
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT - MIN( DISTINCT + 90 ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-3067
SELECT - MIN ( DISTINCT + 90 ) FROM tab1
----
-90

query I rowsort
SELECT ALL + col1 + + ( col0 ) + - col2 * + col0 FROM tab1 AS cor0
----
-4831
-4925
-6050

query I rowsort
SELECT + + 98 AS col1 FROM tab1 cor0
----
98
98
98

query I rowsort
SELECT ALL - 76 * 47 FROM tab1 AS cor0
----
-3572
-3572
-3572

query I rowsort
SELECT ALL - - col0 + + - col0 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 IN ( + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3073
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col0 ) AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3073
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - col0 ) AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3074
SELECT - 31 * + + COUNT( * ) FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-3074
SELECT - 31 * + + COUNT ( * ) FROM tab0
----
-93

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / - col1 / + ( + col1 ) BETWEEN + 24 AND ( 49 ) * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 24 * - col2 AND + 45 * + col1 + col0
----

query I rowsort
SELECT - ( ( + + col1 ) ) AS col0 FROM tab1
----
-14
-47
-5

query II rowsort
SELECT DISTINCT + - 59 AS col2, - col0 AS col1 FROM tab0 AS cor0
----
-59
-15
-59
-87
-59
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * col0 + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 * - 97 * + 75 col0 FROM tab0 cor0
----
-618375
-618375
-618375

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT DISTINCT 99 * MAX( + col1 ) FROM tab0
----
8019

skipif mysql # not compatible
query I rowsort label-3081
SELECT DISTINCT 99 * MAX ( + col1 ) FROM tab0
----
8019

query I rowsort
SELECT ALL 79 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3083
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - col2 AS col2, - col1 AS col0 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-3083
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - col2 AS col2, - col1 AS col0 FROM tab2 cor0
----
NULL
-51
NULL
-67
NULL
-77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = - col0 * + + col0
----

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( 34 ) IN ( 53 * + col2, - col2 )
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3086
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3086
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + + 86 AS col0 FROM tab0 AS cor0
----
86

query I rowsort
SELECT + ( + + col0 ) + - - col0 AS col1 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL - ( + COUNT( * ) ) * + 56 AS col1 FROM tab0 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - ( + COUNT ( * ) ) * + 56 AS col1 FROM tab0 AS cor0
----
-168

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 = NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 67 IN ( - + col0 + - 28 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3092
SELECT DISTINCT + col1 DIV + 24 col0 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3092
SELECT DISTINCT + col1 / + 24 col0 FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3093
SELECT + col1 + + 3 - - CAST( 3 AS SIGNED ) AS col0 FROM tab0
----
27
7
87

skipif mysql # not compatible
query I rowsort label-3093
SELECT + col1 + + 3 - - CAST ( 3 AS INTEGER ) AS col0 FROM tab0
----
27
7
87

query I rowsort
SELECT + col2 + - 54 AS col2 FROM tab0
----
-44
-7
45

query II rowsort
SELECT DISTINCT col0 AS col2, col2 FROM tab1
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + - col1 + col0 * - - 24 * col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 51 + 27 AS col1 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT ALL 17 + - col0 + - col1 FROM tab1
----
-121
-48
-73

onlyif mysql # DIV for integer division: 
query II rowsort label-3099
SELECT DISTINCT + col2 DIV ( - 61 ), 70 AS col0 FROM tab2
----
0
70

skipif mysql # not compatible
query II rowsort label-3099
SELECT DISTINCT + col2 / ( - 61 ), 70 AS col0 FROM tab2
----
0
70

query I rowsort
SELECT DISTINCT + col0 - - col2 + + ( + - col0 ) FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 35 * 43 col2 FROM tab1 cor0
----
1505
1505
1505

query I rowsort
SELECT ALL + 40 - - 90 FROM tab1 AS cor0
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-3103
SELECT DISTINCT + MIN( DISTINCT 72 ) * - 83 + - 92 FROM tab2 WHERE NOT ( NOT ( ( ( - col0 ) * col1 ) IS NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-3103
SELECT DISTINCT + MIN ( DISTINCT 72 ) * - 83 + - 92 FROM tab2 WHERE NOT ( NOT ( ( ( - col0 ) * col1 ) IS NULL ) )
----
NULL

query I rowsort
SELECT DISTINCT col0 - 40 * - col1 AS col2 FROM tab0
----
137
3255
927

query I rowsort
SELECT ALL + 70 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT ALL MAX( - 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

skipif mysql # not compatible
query I rowsort label-3106
SELECT ALL MAX ( - 34 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-34

query II rowsort
SELECT DISTINCT col0 + + col2, col1 AS col1 FROM tab0
----
196
1
62
81
97
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT DISTINCT + COUNT( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3108
SELECT DISTINCT + COUNT ( ALL + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 86 col2 FROM tab0 AS cor0
----
86
86
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3110
SELECT - - CAST( ( + COUNT( + col1 ) ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3110
SELECT - - CAST ( ( + COUNT ( + col1 ) ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * - 3 AS col1 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-3112
SELECT MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ( - 55 ) AS col0 FROM tab2 AS cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query II rowsort label-3114
SELECT DISTINCT - - MAX( ALL - 56 ) AS col2, + 8 FROM tab2 cor0
----
-56
8

skipif mysql # not compatible
query II rowsort label-3114
SELECT DISTINCT - - MAX ( ALL - 56 ) AS col2, + 8 FROM tab2 cor0
----
-56
8

query I rowsort
SELECT DISTINCT 23 * + col1 FROM tab1
----
1081
115
322

onlyif mysql # aggregate syntax: 
query I rowsort label-3116
SELECT ALL COUNT( * ) * - 53 FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL COUNT ( * ) * - 53 FROM tab0
----
-159

query II rowsort
SELECT - + col0, col0 FROM tab0 cor0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT 10 * + col0 AS col1 FROM tab2 AS cor0
----
460
640
750

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL = NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT - - CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3120
SELECT - - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 61 + col0 AS col1, + col2 AS col1 FROM tab2
----
-15
23
14
58
3
40

query I rowsort
SELECT DISTINCT + 29 * - col2 * - - col2 + ( - col2 ) AS col1 FROM tab0 AS cor0
----
-284328
-2910
-64108

query II rowsort
SELECT DISTINCT 70, col1 FROM tab0 AS cor0
----
70
1
70
21
70
81

query I rowsort
SELECT + ( + 91 ) FROM tab1 AS cor0
----
91
91
91

query II rowsort
SELECT - col1, col0 FROM tab2 cor0
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT DISTINCT - col2 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT - col2 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - 75 AS col1 FROM tab1 WHERE NOT NULL >= + col0
----

query I rowsort
SELECT - + 28 AS col0 FROM tab2 WHERE - 41 > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3129
SELECT + CAST( NULL AS DECIMAL ) / + 31 * col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3129
SELECT + CAST ( NULL AS REAL ) / + 31 * col2 col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col2 - + - 88, 9 AS col0 FROM tab0
----
135
9
187
9
98
9

query I rowsort
SELECT DISTINCT col0 * + 80 AS col2 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT ALL - + col1 / + 61 * - 18 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT - col0 + + 98 - col1 AS col2, - col1 + + col1 FROM tab0
----
-10
0
0
0
2
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col2 + col0 + - 92 <> - + 91 + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT DISTINCT + COUNT( DISTINCT + ( + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3135
SELECT DISTINCT + COUNT ( DISTINCT + ( + col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3136
SELECT - col2 / + 90 + + col2 + - CAST( NULL AS DECIMAL ) + + ( 78 ) * - 71 + - 20 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3136
SELECT - col2 / + 90 + + col2 + - CAST ( NULL AS REAL ) + + ( 78 ) * - 71 + - 20 + + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + - + col1 FROM tab0 AS cor0 WHERE NULL <= + 78
----

query I rowsort
SELECT ALL - + 4 * + + col1 * + + col2 - col1 FROM tab2 AS cor0
----
-12397
-15611
-4743

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT - + MAX( - + 33 ) FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT - + MAX ( - + 33 ) FROM tab0 cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 79 + + col1 + col0 <> - 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL - COUNT( * ) * - SUM( ALL + + 24 ) AS col0 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - COUNT ( * ) * - SUM ( ALL + + 24 ) AS col0 FROM tab0 AS cor0
----
216

query II rowsort
SELECT DISTINCT + 72 AS col1, col0 AS col0 FROM tab2 AS cor0
----
72
46
72
64
72
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT - 51 - + - SUM( + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * col0 + col2 > - col1
----
144

skipif mysql # not compatible
query I rowsort label-3143
SELECT - 51 - + - SUM ( + col1 ) FROM tab2 AS cor0 WHERE NOT - col0 * col0 + col2 > - col1
----
144

query I rowsort
SELECT + col1 + - 76 AS col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT - ( - SUM( + + col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3145
SELECT - ( - SUM ( + + col0 ) ) FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL + MAX( + col1 ) * 94 FROM tab2
----
7238

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL + MAX ( + col1 ) * 94 FROM tab2
----
7238

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 27 ) * + col1 col0 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT ALL - COUNT( DISTINCT + col1 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3148
SELECT ALL - COUNT ( DISTINCT + col1 ) AS col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3149
SELECT ALL + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3149
SELECT ALL + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3150
SELECT DISTINCT - col0 + ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3150
SELECT DISTINCT - col0 + ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 10 ) < ( - col0 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3153
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + + - COUNT( * ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3154
SELECT DISTINCT 61 DIV 88 + + ( col0 ) + - 38 + + col0 - col1 AS col1 FROM tab0 AS cor0
----
-89
115
155

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT 61 / 88 + + ( col0 ) + - 38 + + col0 - col1 AS col1 FROM tab0 AS cor0
----
-89
115
155

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT + - ( - - 52 ) + COUNT( * ) FROM tab1 cor0
----
-49

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + - ( - - 52 ) + COUNT ( * ) FROM tab1 cor0
----
-49

query I rowsort
SELECT + col0 + + col0 * - - ( + col1 ) AS col2 FROM tab1 AS cor0
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-3157
SELECT MIN( - - 84 ) + + - 30 AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-3157
SELECT MIN ( - - 84 ) + + - 30 AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ( - + 9 ) + - - col1 AS col1 FROM tab2 AS cor0
----
42
58
68

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT + col1 DIV + 15 FROM tab1
----
0
3

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + col1 / + 15 FROM tab1
----
0
3

query II rowsort
SELECT - 69, + 2 AS col2 FROM tab1
----
-69
2
-69
2
-69
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT DISTINCT CAST( 79 AS SIGNED ) AS col0 FROM tab2
----
79

skipif mysql # not compatible
query I rowsort label-3161
SELECT DISTINCT CAST ( 79 AS INTEGER ) AS col0 FROM tab2
----
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT DISTINCT + 14 * + + 54 * + CAST( NULL AS SIGNED ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT DISTINCT + 14 * + + 54 * + CAST ( NULL AS INTEGER ) + - ( col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 - - col1 + + 17 - + col2 * + col2 FROM tab0 AS cor0
----
-2064
-52
-9684

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( NOT NULL >= NULL ) )
----

query I rowsort
SELECT + 91 - - col2 AS col2 FROM tab2 AS cor0
----
114
131
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3166
SELECT ALL MIN( - - CAST( - + 93 AS SIGNED ) ) + - 22 DIV - - 25 * + ( - 6 ) FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL MIN ( - - CAST ( - + 93 AS INTEGER ) ) + - 22 / - - 25 * + ( - 6 ) FROM tab1 AS cor0
----
-93

query I rowsort
SELECT col1 - col1 - col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL 1 * - col2 * + + 32 FROM tab1 AS cor0
----
-1888
-2176
-3072

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3169
SELECT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT - ( + 2 ) AS col0 FROM tab0
----
-2
-2
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-3171
SELECT DISTINCT ( - - 51 ) DIV + 10 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3171
SELECT DISTINCT ( - - 51 ) / + 10 FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3172
SELECT - 57 * - col1 AS col2, 30 DIV + - col0 FROM tab1 AS cor0
----
2679
0
285
0
798
0

skipif mysql # not compatible
query II rowsort label-3172
SELECT - 57 * - col1 AS col2, 30 / + - col0 FROM tab1 AS cor0
----
2679
0
285
0
798
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 cor0 WHERE NOT - col2 IS NULL
----
15
87
97

query I rowsort
SELECT ALL - col2 * - 93 * 20 AS col2 FROM tab1 AS cor0
----
109740
126480
178560

query I rowsort
SELECT + col0 * - col1 - - col0 - - col2 AS col2 FROM tab1 AS cor0
----
-281
-4118
-567

onlyif mysql # DIV for integer division: 
query II rowsort label-3176
SELECT + col2 DIV col0 AS col0, + 5 AS col1 FROM tab0 AS cor0
----
0
5
1
5
3
5

skipif mysql # not compatible
query II rowsort label-3176
SELECT + col2 / col0 AS col0, + 5 AS col1 FROM tab0 AS cor0
----
0
5
1
5
3
5

query II rowsort
SELECT ALL ( 80 ) AS col1, + col2 + col1 FROM tab0 AS cor0
----
80
100
80
128
80
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3178
SELECT + ( - MIN( DISTINCT + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3178
SELECT + ( - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 37 FROM tab0, tab1 AS cor0
----
-37

query II rowsort
SELECT DISTINCT + col1, col0 FROM tab1
----
14
51
47
91
5
85

query II rowsort
SELECT ALL 87 + - - ( 13 ) * + + 2, col2 AS col2 FROM tab0
----
113
10
113
47
113
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 52 col2, - col2 * + + col0 + - col1 * - + col2 FROM tab1
----
52
-2992
52
-3552
52
-4720

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3183
SELECT ( + SUM( ALL - col0 ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT - 7 + - - 90 * - 33 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT ( + SUM ( ALL - col0 ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT - 7 + - - 90 * - 33 <> NULL
----
NULL

query I rowsort
SELECT ALL + col1 + 87 FROM tab1 cor0
----
101
134
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 25 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE NOT + 37 * - 20 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT - 88 + - MIN( - - col2 ) AS col2 FROM tab0
----
-98

skipif mysql # not compatible
query I rowsort label-3187
SELECT - 88 + - MIN ( - - col2 ) AS col2 FROM tab0
----
-98

query I rowsort
SELECT ALL + 43 + - + col1 FROM tab2
----
-24
-34
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3189
SELECT + 55 + + COUNT( * ) col2 FROM tab1
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3189
SELECT + 55 + + COUNT ( * ) col2 FROM tab1
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3190
SELECT + CAST( + - col1 AS SIGNED ) col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3190
SELECT + CAST ( + - col1 AS INTEGER ) col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + + col1 * - - col1 FROM tab1 cor0
----
196
2209
25

query I rowsort
SELECT ALL - + col1 FROM tab0 AS cor0 WHERE ( - col2 > NULL )
----

query I rowsort
SELECT ALL - + 60 AS col1 FROM tab0 AS cor0 WHERE NOT ( + + col2 ) < 99
----
-60

query II rowsort
SELECT ALL col2 * - + col2 - - col1 + - col0 AS col2, col0 + + col2 * ( + col1 ) AS col0 FROM tab1 cor0
----
-3561
380
-4668
3287
-9253
1395

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3195
SELECT * FROM tab2 AS cor0 WHERE CAST( + - 24 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3195
SELECT * FROM tab2 AS cor0 WHERE CAST ( + - 24 AS INTEGER ) IS NULL
----

query I rowsort
SELECT + ( 45 ) FROM tab1 AS cor0 WHERE ( + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 78 - 81 AS col0 FROM tab0 cor0
----
-159

query I rowsort
SELECT DISTINCT + + col2 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * - col2 * + - col1 - 80 AS col2 FROM tab0
----
18190
57025
9523

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT DISTINCT MAX( DISTINCT + + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3200
SELECT DISTINCT MAX ( DISTINCT + + col1 ) FROM tab2
----
77

query I rowsort
SELECT 90 - 28 * - col1 AS col2 FROM tab1
----
1406
230
482

query I rowsort
SELECT DISTINCT + 55 * + 37 FROM tab0
----
2035

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 * 99 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - - ( - + 24 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col2 FROM tab2 AS cor0 WHERE - 73 - - 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT + ( + COUNT( * ) ) * - COUNT( - + col1 ) - - SUM( + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3206
SELECT + ( + COUNT ( * ) ) * - COUNT ( - + col1 ) - - SUM ( + + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3207
SELECT + COUNT( * ) * COUNT( - col1 ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3207
SELECT + COUNT ( * ) * COUNT ( - col1 ) FROM tab1 cor0
----
9

query I rowsort
SELECT - 88 * + ( + 24 ) + - col2 FROM tab2 cor0
----
-2135
-2152
-2170

query I rowsort
SELECT ALL + + 18 * - col0 + col2 * + + col1 * - - col0 AS col2 FROM tab0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + - 57 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 40 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT ( - col2 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3213
SELECT DISTINCT - + COUNT( * ) * - COUNT( * ) DIV 20 AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - + COUNT ( * ) * - COUNT ( * ) / 20 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col0 * + col1 * + col0 * - 58 * - col1 + - + col1 + + col2 FROM tab0 AS cor0
----
193599871
545820
85621016

onlyif mysql # DIV for integer division: 
query I rowsort label-3215
SELECT ALL - + col1 DIV - + col1 + + ( ( 61 ) ) + col1 FROM tab1 cor0
----
109
67
76

skipif mysql # not compatible
query I rowsort label-3215
SELECT ALL - + col1 / - + col1 + + ( ( 61 ) ) + col1 FROM tab1 cor0
----
109
67
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - 4 col1 FROM tab2 AS cor0
----
160
232
92

query I rowsort
SELECT col0 * + col0 AS col1 FROM tab0 cor0
----
225
7569
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3218
SELECT + CAST( NULL AS SIGNED ) * - 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3218
SELECT + CAST ( NULL AS INTEGER ) * - 67 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3219
SELECT * FROM tab1 WHERE NOT NULL > CAST( - - 52 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3219
SELECT * FROM tab1 WHERE NOT NULL > CAST ( - - 52 AS INTEGER )
----

query I rowsort
SELECT col2 + 5 FROM tab0
----
104
15
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 3 col0 FROM tab2
----
49
67
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3222
SELECT * FROM tab0 WHERE NOT + CAST( - - 23 AS SIGNED ) BETWEEN - col2 AND + - col1 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3222
SELECT * FROM tab0 WHERE NOT + CAST ( - - 23 AS INTEGER ) BETWEEN - col2 AND + - col1 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * - col2 + col0 col1 FROM tab0 AS cor0
----
-267
-497
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3224
SELECT DISTINCT + MIN( - col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT + MIN ( - col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3225
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND - 59 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3225
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND - 59 IS NULL
----
0

query I rowsort
SELECT ALL col0 * - col0 + - col0 + + col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

query II rowsort
SELECT ALL + col0 + col1 - col2 + col0, + col1 FROM tab0 AS cor0
----
185
21
64
81
96
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3228
SELECT COUNT( * ) * - + MIN( DISTINCT + 33 ) AS col2, - COUNT( DISTINCT col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-99
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3228
SELECT COUNT ( * ) * - + MIN ( DISTINCT + 33 ) AS col2, - COUNT ( DISTINCT col1 ) col2 FROM tab1 cor0 WHERE NULL IS NULL
----
-99
-3

query I rowsort
SELECT - - 50 + - 23 AS col0 FROM tab2 AS cor0
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3230
SELECT DISTINCT - - col2 - + col0 + CAST( - 4 AS SIGNED ) FROM tab2 AS cor0
----
-21
-27
-28

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT - - col2 - + col0 + CAST ( - 4 AS INTEGER ) FROM tab2 AS cor0
----
-21
-27
-28

query I rowsort
SELECT 2 * + - col0 FROM tab2 WHERE - - col1 <> + 0 * - 22
----
-128
-150
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + col0 BETWEEN - - col2 + + col0 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 * + - ( + col2 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT DISTINCT + 80 FROM tab1 WHERE col2 BETWEEN + col0 - + + col2 * + + col1 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT ALL + ( - COUNT( * ) ) * + + COUNT( * ) + + 7 AS col0 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3235
SELECT ALL + ( - COUNT ( * ) ) * + + COUNT ( * ) + + 7 AS col0 FROM tab1
----
-2

query I rowsort
SELECT AVG ( DISTINCT + col1 ) AS col1 FROM tab0 WHERE NOT + 84 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - - 26 FROM tab2 AS cor0
----
1040
1508
598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL + col2 FROM tab1 cor0 WHERE NULL < col2 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + col2 FROM tab1 cor0 WHERE NULL < col2 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT - COUNT( DISTINCT - col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3239
SELECT - COUNT ( DISTINCT - col1 ) FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3240
SELECT ALL COUNT( * ) * - + 28 AS col2 FROM tab2
----
-84

skipif mysql # not compatible
query I rowsort label-3240
SELECT ALL COUNT ( * ) * - + 28 AS col2 FROM tab2
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3241
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT - col1 * + ( - + col2 ) * + 53 + col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
163304
206033
62215

query II rowsort
SELECT - col2 AS col0, + 28 AS col0 FROM tab2
----
-23
28
-40
28
-58
28

query III rowsort
SELECT ALL * FROM tab1 WHERE - 23 IN ( - ( 78 ) + - col1 + - col2, - col2, - + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT + SUM( ALL + 60 ) / + ( - - 29 ) * - CAST( NULL AS SIGNED ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + SUM ( ALL + 60 ) / + ( - - 29 ) * - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 55 * col2 col1 FROM tab0 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query I rowsort
SELECT ALL col1 + - - col1 + col1 * col1 FROM tab0 AS cor0
----
3
483
6723

query I rowsort
SELECT DISTINCT - + 83 * + col1 AS col0 FROM tab2 AS cor0
----
-4233
-5561
-6391

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3249
SELECT DISTINCT - + MAX( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT - + MAX ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - ( - 37 ) * - + ( - ( col1 ) ) FROM tab1 AS cor0
----
-1739
-185
-518

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) = 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3252
SELECT ALL + col0 * + col2 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT ALL + col0 * + col2 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 82 + - 87 <> + col0
----

query I rowsort
SELECT DISTINCT 37 * + 57 AS col2 FROM tab2
----
2109

query II rowsort
SELECT col0, - col0 AS col2 FROM tab0
----
15
-15
87
-87
97
-97

query I rowsort
SELECT DISTINCT + - 12 / col0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col1, col0 * col1 * + 52 + col0 FROM tab0
----
1
5141
21
95091
81
63195

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT col0 DIV 89 DIV col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3258
SELECT col0 / 89 / col2 FROM tab0
----
0
0
0

query I rowsort
SELECT - + 12 FROM tab0 AS cor0 WHERE NULL < + col1
----

query II rowsort
SELECT DISTINCT + col0 + - + col2 AS col1, 98 FROM tab2 cor0
----
17
98
23
98
24
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3261
SELECT ALL - COUNT( * ) DIV 35 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3261
SELECT ALL - COUNT ( * ) / 35 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3262
SELECT * FROM tab1 WHERE CAST( + 1 AS SIGNED ) + + 50 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3262
SELECT * FROM tab1 WHERE CAST ( + 1 AS INTEGER ) + + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3263
SELECT - MIN( DISTINCT + + 27 ), 99 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-27
297

skipif mysql # not compatible
query II rowsort label-3263
SELECT - MIN ( DISTINCT + + 27 ), 99 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-27
297

query II rowsort
SELECT ALL - col2 + + + col0, - col1 AS col0 FROM tab2 AS cor0
----
17
-67
23
-51
24
-77

query I rowsort
SELECT ALL - - 99 + + col0 + - 52 AS col2 FROM tab2 cor0
----
111
122
93

query I rowsort
SELECT DISTINCT - col1 - + 58 - - col0 AS col2 FROM tab0 AS cor0
----
-124
38
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN - 70 AND + col0
----
75
67
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3268
SELECT DISTINCT ( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col0, + 84 * col2 + - 11 col2 FROM tab0
----
1
8305
21
829
81
3937

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 - - 64 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 AS col2, - col1 - col1 AS col1 FROM tab0
----
15
-162
87
-42
97
-2

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 51 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3273
SELECT DISTINCT 57 AS col1, 49 + + ( - COUNT( * ) ) AS col0 FROM tab2
----
57
46

skipif mysql # not compatible
query II rowsort label-3273
SELECT DISTINCT 57 AS col1, 49 + + ( - COUNT ( * ) ) AS col0 FROM tab2
----
57
46

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab1 WHERE NOT + col1 IS NULL
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN col1 + - col1 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3276
SELECT + col1 * - ( - - col0 ) AS col2, CAST( NULL AS SIGNED ) / + + col1 * + - col0 + + - 99 + - + 28 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3276
SELECT + col1 * - ( - - col0 ) AS col2, CAST ( NULL AS INTEGER ) / + + col1 * + - col0 + + - 99 + - + 28 FROM tab0
----
-1215
NULL
-1827
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT DISTINCT MAX( + + ( + 91 ) ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3277
SELECT DISTINCT MAX ( + + ( + 91 ) ) AS col1 FROM tab1 AS cor0
----
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 93 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( - 37 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3280
SELECT COUNT( * ) * + + 89 col1 FROM tab1 AS cor0 WHERE NOT ( NOT + + 62 NOT IN ( + 84 - + - col0 + + + col2 ) )
----
267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3280
SELECT COUNT ( * ) * + + 89 col1 FROM tab1 AS cor0 WHERE NOT ( NOT + + 62 NOT IN ( + 84 - + - col0 + + + col2 ) )
----
267

onlyif mysql # aggregate syntax: 
query I rowsort label-3281
SELECT MAX( col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3281
SELECT MAX ( col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # DIV for integer division: 
query II rowsort label-3282
SELECT DISTINCT 45 AS col2, 86 DIV + - col0 + - 54 FROM tab0 AS cor0
----
45
-54
45
-59

skipif mysql # not compatible
query II rowsort label-3282
SELECT DISTINCT 45 AS col2, 86 / + - col0 + - 54 FROM tab0 AS cor0
----
45
-54
45
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 12 col2 FROM tab0
----
12
12
12

query I rowsort
SELECT - 35 * + + col2 AS col2 FROM tab0 cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT - col2 + - + 6 FROM tab0
----
-105
-16
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3286
SELECT ALL - CAST( - + 44 AS SIGNED ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 * - + CAST( NULL AS SIGNED ) * + ( + col2 ) * col0 + + col2 * + col0 + - col2 AND - + col1 )
----

skipif mysql # not compatible
query I rowsort label-3286
SELECT ALL - CAST ( - + 44 AS INTEGER ) FROM tab0 WHERE NOT ( NOT NULL NOT BETWEEN - col1 * - + CAST ( NULL AS INTEGER ) * + ( + col2 ) * col0 + + col2 * + col0 + - col2 AND - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ALL - COUNT( * ) FROM tab0 WHERE + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3287
SELECT ALL - COUNT ( * ) FROM tab0 WHERE + - col0 IS NULL
----
0

query I rowsort
SELECT col2 + + 62 AS col1 FROM tab0
----
109
161
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3289
SELECT - col1 * - col0 * - + ( + - CAST( col2 AS SIGNED ) ) + + + 10 - col0 - + - col1, + col1 col1 FROM tab2
----
197143
77
291452
67
53973
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3289
SELECT - col1 * - col0 * - + ( + - CAST ( col2 AS INTEGER ) ) + + + 10 - col0 - + - col1, + col1 col1 FROM tab2
----
197143
77
291452
67
53973
51

query I rowsort
SELECT ALL 62 * + 34 + + - col0 AS col1 FROM tab2
----
2033
2044
2062

query I rowsort
SELECT DISTINCT + col0 - + + col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT ALL + - 31 - + 94 FROM tab2 AS cor0
----
-125
-125
-125

onlyif mysql # aggregate syntax: 
query II rowsort label-3293
SELECT - - 7 col0, + COUNT( DISTINCT 91 ) FROM tab2 AS cor0
----
7
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3293
SELECT - - 7 col0, + COUNT ( DISTINCT 91 ) FROM tab2 AS cor0
----
7
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT ALL - col0 * - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL - col0 * - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 cor0
----
-1058
-2560
-4350

query II rowsort
SELECT 33, col1 FROM tab2 AS cor0
----
33
51
33
67
33
77

query II rowsort
SELECT + col2, ( 95 ) * col2 AS col0 FROM tab2 AS cor0
----
23
2185
40
3800
58
5510

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3297
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 99 + + CAST( NULL AS SIGNED ) * + 92 + + 36
----

skipif mysql # not compatible
query III rowsort label-3297
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 99 + + CAST ( NULL AS INTEGER ) * + 92 + + 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3298
SELECT ALL + col1 + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE - 96 NOT BETWEEN NULL AND + 33
----

skipif mysql # not compatible
query I rowsort label-3298
SELECT ALL + col1 + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE - 96 NOT BETWEEN NULL AND + 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT ALL + MAX( ALL + - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3299
SELECT ALL + MAX ( ALL + - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3300
SELECT DISTINCT * FROM tab2 WHERE + CAST( col2 AS DECIMAL ) <> - col1 + + col2 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3300
SELECT DISTINCT * FROM tab2 WHERE + CAST ( col2 AS REAL ) <> - col1 + + col2 - - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 88 ) * + 12 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3302
SELECT 51 * - CAST( + - col0 AS SIGNED ) * - + col1 FROM tab1
----
-21675
-218127
-36414

skipif mysql # not compatible
query I rowsort label-3302
SELECT 51 * - CAST ( + - col0 AS INTEGER ) * - + col1 FROM tab1
----
-21675
-218127
-36414

query I rowsort
SELECT + 49 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3304
SELECT DISTINCT + 77 * + 56 + + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
4315

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT + 77 * + 56 + + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
4315

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) = - + 1
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3306
SELECT + - MAX( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3306
SELECT + - MAX ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + col0 AS col0, + 66 FROM tab2 AS cor0
----
46
66
64
66
75
66

query I rowsort
SELECT - + col0 * 47 FROM tab2 AS cor0
----
-2162
-3008
-3525

query I rowsort
SELECT ( + - ( + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE + 62 * + + col0 IN ( - 72 )
----

query I rowsort
SELECT DISTINCT - 78 * - - col0 FROM tab0 AS cor0
----
-1170
-6786
-7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 24 col1 FROM tab2 cor0
----
24
24
24

query I rowsort
SELECT col0 - + + 18 + + col0 FROM tab1
----
152
164
84

query I rowsort
SELECT DISTINCT - ( - + col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT DISTINCT col0 + - 47 + - col2 AS col2 FROM tab1
----
-21
-24
-92

query I rowsort
SELECT DISTINCT - col1 * + col1 + + 57 AS col2 FROM tab1 AS cor0
----
-139
-2152
32

onlyif mysql # DIV for integer division: 
query I rowsort label-3316
SELECT - col2 DIV + ( + 9 ) + + - col1 + - 71 + col1 AS col2 FROM tab0 AS cor0
----
-72
-76
-82

skipif mysql # not compatible
query I rowsort label-3316
SELECT - col2 / + ( + 9 ) + + - col1 + - 71 + col1 AS col2 FROM tab0 AS cor0
----
-72
-76
-82

query I rowsort
SELECT ALL + + 41 - - 10 FROM tab2 cor0
----
51
51
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - - col0 * - 42, - 78 )
----

query I rowsort
SELECT DISTINCT - + col1 - - 47 FROM tab1 cor0
----
0
33
42

query I rowsort
SELECT ALL + + 90 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT - 82 * - col2 FROM tab2 AS cor0
----
1886
3280
4756

query I rowsort
SELECT DISTINCT - 90 FROM tab2 cor0 WHERE NOT 54 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT + 43 DIV - col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + 43 / - col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3324
SELECT DISTINCT + ( - COUNT( * ) ), + COUNT( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + col1
----
0
0

skipif mysql # not compatible
query II rowsort label-3324
SELECT DISTINCT + ( - COUNT ( * ) ), + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - + col1
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3325
SELECT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3325
SELECT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 35 * + 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - + col0 ) + col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * 73 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col1 AS col2 FROM tab0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query II rowsort label-3330
SELECT ALL - COUNT( * ) AS col1, - 23 FROM tab1
----
-3
-23

skipif mysql # not compatible
query II rowsort label-3330
SELECT ALL - COUNT ( * ) AS col1, - 23 FROM tab1
----
-3
-23

query I rowsort
SELECT DISTINCT 75 * + + 31 * + - 70 AS col0 FROM tab2
----
-162750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT CAST( NULL AS SIGNED ) * - + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3332
SELECT CAST ( NULL AS INTEGER ) * - + col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col2 AS col1, - col1 AS col0 FROM tab2
----
23
-51
40
-77
58
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col0 FROM tab2
----
71
71
71

query II rowsort
SELECT - col0 AS col2, + col2 AS col1 FROM tab0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT DISTINCT + 97 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN col2 * - + 79 * + col2 AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT + 76 * + - col1 + + col2 * - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT + 76 * + - col1 + + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * - col2 - - + 90 * col0 + + + col1 + + 85 + - + col0 AS col2 FROM tab1 cor0
----
12670
14419
9534

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3340
SELECT ALL + - 4 + CAST( NULL AS DECIMAL ) / + - COUNT( * ) * + - 61 col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3340
SELECT ALL + - 4 + CAST ( NULL AS REAL ) / + - COUNT ( * ) * + - 61 col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT DISTINCT + 61 + - MAX( ALL col1 ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + 61 + - MAX ( ALL col1 ) FROM tab2 AS cor0
----
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-3342
SELECT col0 * - col0 + - - 23 + col1 DIV - col1 AS col0 FROM tab1 AS cor0
----
-2579
-7203
-8259

skipif mysql # not compatible
query I rowsort label-3342
SELECT col0 * - col0 + - - 23 + col1 / - col1 AS col0 FROM tab1 AS cor0
----
-2579
-7203
-8259

onlyif mysql # DIV for integer division: 
query I rowsort label-3343
SELECT ALL - + 69 + + - col0 DIV - col0 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-3343
SELECT ALL - + 69 + + - col0 / - col0 AS col2 FROM tab1 AS cor0
----
-68
-68
-68

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3344
SELECT + CAST( col0 AS SIGNED ) DIV col2 DIV - - col1 * - + col2 FROM tab0 AS cor0 WHERE - col1 * col1 NOT IN ( - + 67, 97 )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT + CAST ( col0 AS INTEGER ) / col2 / - - col1 * - + col2 FROM tab0 AS cor0 WHERE - col1 * col1 NOT IN ( - + 67, 97 )
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - col0 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3346
SELECT DISTINCT + COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3346
SELECT DISTINCT + COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT + MIN( DISTINCT col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT + MIN ( DISTINCT col0 ) FROM tab2
----
46

query I rowsort
SELECT col2 + + 7 FROM tab2
----
30
47
65

onlyif mysql # DIV for integer division: 
query II rowsort label-3349
SELECT ALL 24, col0 DIV 63 AS col0 FROM tab2
----
24
0
24
1
24
1

skipif mysql # not compatible
query II rowsort label-3349
SELECT ALL 24, col0 / 63 AS col0 FROM tab2
----
24
0
24
1
24
1

query II rowsort
SELECT DISTINCT col2 AS col1, 93 AS col0 FROM tab1
----
59
93
68
93
96
93

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * ( + - 95 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3352
SELECT - 10 FROM tab0 WHERE col2 NOT BETWEEN NULL AND CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 10 FROM tab0 WHERE col2 NOT BETWEEN NULL AND CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL - 48 * ( + 64 ) + ( col0 ) + col0 + - ( + col0 ) + 75 * - col0 FROM tab2 AS cor0
----
-6476
-7808
-8622

onlyif mysql # DIV for integer division: 
query I rowsort label-3354
SELECT + 82 DIV - col1 FROM tab0 AS cor0
----
-1
-3
-82

skipif mysql # not compatible
query I rowsort label-3354
SELECT + 82 / - col1 FROM tab0 AS cor0
----
-1
-3
-82

query I rowsort
SELECT - - col1 - 99 - - 42 * + col1 AS col2 FROM tab2 cor0
----
2094
2782
3212

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT DISTINCT COUNT( * ) + + 72 * + - 62 AS col2 FROM tab2
----
-4461

skipif mysql # not compatible
query I rowsort label-3356
SELECT DISTINCT COUNT ( * ) + + 72 * + - 62 AS col2 FROM tab2
----
-4461

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col1 FROM tab2
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3358
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 IN ( + - 93, - col0 * col2, - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3358
SELECT * FROM tab1 AS cor0 WHERE NOT + 22 IN ( + - 93, - col0 * col2, - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL - 56 * + COUNT( * ) + CAST( + 52 AS SIGNED ) FROM tab0 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL - 56 * + COUNT ( * ) + CAST ( + 52 AS INTEGER ) FROM tab0 AS cor0
----
-116

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT ALL + + COUNT( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3360
SELECT ALL + + COUNT ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 * col2 * col0 - 38 + + - ( - col0 ) * col1 * + + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + ( 40 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 81 col0 FROM tab0 cor0
----
-81
-81
-81

query I rowsort
SELECT - + 82 AS col2 FROM tab2 cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT + MIN( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col0 * col0 * + col2 FROM tab0 cor0
----
-10575
-75690
-931491

query I rowsort
SELECT ALL - col1 * col0 AS col2 FROM tab2 WHERE + 35 + - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 74 col0, col0 FROM tab1
----
-74
51
-74
85
-74
91

query I rowsort
SELECT DISTINCT 30 * + 92 AS col1 FROM tab1
----
2760

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3369
SELECT DISTINCT + ( + col0 ) * - CAST( NULL AS DECIMAL ) + - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT DISTINCT + ( + col0 ) * - CAST ( NULL AS REAL ) + - col2 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT ALL col2 * - col0 * 36 * + - col1 + 31 AS col0 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) NOT IN ( - 59, + col2, - col0 * col1 * + col1 + - 18, - - col0 * + col0 * + - col1, - - col2, col2 )
----

skipif mysql # not compatible
query I rowsort label-3370
SELECT ALL col2 * - col0 * 36 * + - col1 + 31 AS col0 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) NOT IN ( - 59, + col2, - col0 * col1 * + col1 + - 18, - - col0 * + col0 * + - col1, - - col2, col2 )
----

query I rowsort
SELECT ALL 3 * col2 FROM tab2
----
120
174
69

query I rowsort
SELECT DISTINCT + col2 + 34 * + - col1 + - + col2 FROM tab1
----
-1598
-170
-476

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT + - 38 * + SUM( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0
----
4598

skipif mysql # not compatible
query I rowsort label-3373
SELECT + - 38 * + SUM ( DISTINCT - + col2 ) AS col1 FROM tab2 AS cor0
----
4598

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3374
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - - col1 ) IN ( - col0, - CAST( NULL AS SIGNED ), col0, ( - 36 ) )
----

skipif mysql # not compatible
query III rowsort label-3374
SELECT ALL * FROM tab2 AS cor0 WHERE + ( - - col1 ) IN ( - col0, - CAST ( NULL AS INTEGER ), col0, ( - 36 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3375
SELECT DISTINCT + 62 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3375
SELECT DISTINCT + 62 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL col1 + ( - 42 ) FROM tab1 AS cor0
----
-28
-37
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 24 / + col1 NOT IN ( col1, + 93, + 55, - col1, - + col1, + col0 + - 50, + + col0 + ( - col0 ) + 44 + - ( - 8 ) * - 74 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - - 57 ) FROM tab2 AS cor0
----
57

query II rowsort
SELECT - col1, - col1 * col1 - col1 AS col2 FROM tab1 AS cor0
----
-14
-210
-47
-2256
-5
-30

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + + col2 + - col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 / + col1 * 97 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3382
SELECT DISTINCT + 62 - - + col1 * + 4 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT + 62 - - + col1 * + 4 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT + 75 - + col2 AS col0 FROM tab0
----
-24
28
65

query III rowsort
SELECT * FROM tab2 WHERE + - 65 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + - col2 + - - 22 FROM tab1
----
22

query I rowsort
SELECT - col2 + + 21 AS col1 FROM tab1
----
-38
-47
-75

query III rowsort
SELECT + - col2 + col2, + 15 AS col1, col0 FROM tab0 AS cor0
----
9 values hashing to 75246ce4a65abbafb1ef132401ba4ef2

query I rowsort
SELECT DISTINCT - - 91 + col1 FROM tab2 AS cor0
----
142
158
168

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - + col0 - + col0 + - col1 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3390
SELECT SUM( + 45 ) AS col2 FROM tab1
----
135

skipif mysql # not compatible
query I rowsort label-3390
SELECT SUM ( + 45 ) AS col2 FROM tab1
----
135

query I rowsort
SELECT 10 * - - 61 AS col0 FROM tab1
----
610
610
610

query I rowsort
SELECT + + col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3393
SELECT 59 * - COUNT( * ) * + COUNT( * ) FROM tab0
----
-531

skipif mysql # not compatible
query I rowsort label-3393
SELECT 59 * - COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-531

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col0 * col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3395
SELECT ALL ( + COUNT( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL ( + COUNT ( - + col0 ) ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3396
SELECT DISTINCT - - CAST( - col0 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT NULL < + col2
----

skipif mysql # not compatible
query I rowsort label-3396
SELECT DISTINCT - - CAST ( - col0 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT NULL < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT + MAX( ALL - ( + - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT + MAX ( ALL - ( + - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - 89 ) col2 FROM tab1 AS cor0
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-3399
SELECT ALL - ( + - 99 ) DIV col2 * + col1 AS col1 FROM tab2
----
154
204
67

skipif mysql # not compatible
query I rowsort label-3399
SELECT ALL - ( + - 99 ) / col2 * + col1 AS col1 FROM tab2
----
154
204
67

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3400
SELECT + 46 + + - ( + ( + - AVG ( DISTINCT + + 99 ) ) ) * 81 + + + CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3400
SELECT + 46 + + - ( + ( + - AVG ( DISTINCT + + 99 ) ) ) * 81 + + + CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3401
SELECT 58 * + COUNT( * ) + + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3401
SELECT 58 * + COUNT ( * ) + + CAST ( NULL AS REAL ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT DISTINCT + + COUNT( - col2 ) + 26 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3402
SELECT DISTINCT + + COUNT ( - col2 ) + 26 FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT - - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

skipif mysql # not compatible
query I rowsort label-3403
SELECT - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT ALL + MIN( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL + MIN ( - col1 ) AS col1 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT COUNT( * ) * 47 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-3405
SELECT COUNT ( * ) * 47 FROM tab1
----
141

query I rowsort
SELECT DISTINCT - 6 + + col0 FROM tab0 WHERE NOT - 44 BETWEEN - 39 AND col1
----
81
9
91

query I rowsort
SELECT - ( + - 62 ) * + 52 / 96 AS col1 FROM tab1 AS cor0 WHERE + col1 + col2 + - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3408
SELECT DISTINCT col1 DIV + + col0 col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3408
SELECT DISTINCT col1 / + + col0 col0 FROM tab1 cor0
----
0

query II rowsort
SELECT DISTINCT col0 + 15 + 9, - 26 AS col1 FROM tab0 cor0
----
111
-26
121
-26
39
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3410
SELECT ALL + - 8 + + + 66 * + ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3410
SELECT ALL + - 8 + + + 66 * + ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3411
SELECT ALL + - CAST( NULL AS DECIMAL ) - - MAX( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3411
SELECT ALL + - CAST ( NULL AS REAL ) - - MAX ( ALL + col1 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT - col0 * - - col2 + + 46 * - col2 - col1 + - CAST( NULL AS SIGNED ) / - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3412
SELECT - col0 * - - col2 + + 46 * - col2 - col1 + - CAST ( NULL AS INTEGER ) / - col0 + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - - col0 IS NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT COUNT( - ( col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3414
SELECT COUNT ( - ( col2 ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab0 WHERE + - 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * + - ( - - col0 ) FROM tab1
----
2601
7225
8281

query II rowsort
SELECT - 74, ( 20 ) AS col2 FROM tab2
----
-74
20
-74
20
-74
20

query III rowsort
SELECT * FROM tab2 WHERE + - 38 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3419
SELECT ALL - COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT + CAST( col1 AS SIGNED ) / - col2 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3419
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT + CAST ( col1 AS INTEGER ) / - col2 = NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 * + - 80 + 5 + - col1 - - + col1 * - 47 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT + + col0 DIV - + col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3421
SELECT + + col0 / - + col0 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3422
SELECT - 96, - col0 DIV col0 AS col1 FROM tab2 AS cor0
----
-96
-1
-96
-1
-96
-1

skipif mysql # not compatible
query II rowsort label-3422
SELECT - 96, - col0 / col0 AS col1 FROM tab2 AS cor0
----
-96
-1
-96
-1
-96
-1

query I rowsort
SELECT ALL + 27 * + + col1 AS col0 FROM tab0 AS cor0
----
2187
27
567

onlyif mysql # aggregate syntax: 
query I rowsort label-3424
SELECT SUM( 21 ) FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3424
SELECT SUM ( 21 ) FROM tab2 AS cor0
----
63

query I rowsort
SELECT DISTINCT col1 * + col0 + + col0 AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
2392
4992
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 col2 FROM tab1 AS cor0 WHERE 99 IS NOT NULL
----
-85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3427
SELECT DISTINCT CAST( + col2 AS SIGNED ), + col0 DIV - + col0 AS col1 FROM tab0
----
10
-1
47
-1
99
-1

skipif mysql # not compatible
query II rowsort label-3427
SELECT DISTINCT CAST ( + col2 AS INTEGER ), + col0 / - + col0 AS col1 FROM tab0
----
10
-1
47
-1
99
-1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 19 > - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 90 AS col2 FROM tab1 cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 78, + col2 * col0 / col1 + - 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3431
SELECT + CAST( + 53 AS SIGNED ) FROM tab1
----
53
53
53

skipif mysql # not compatible
query I rowsort label-3431
SELECT + CAST ( + 53 AS INTEGER ) FROM tab1
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3432
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NOT col1 * 92 BETWEEN - + 48 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3432
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NOT col1 * 92 BETWEEN - + 48 AND NULL )
----
0

query II rowsort
SELECT DISTINCT + + col2 - ( + + col1 ) AS col2, + col0 FROM tab2 WHERE NULL = col0 * - 9 + 72
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3434
SELECT DISTINCT - col1 AS col1, - ( - - 86 ) DIV + + 83 AS col1 FROM tab1
----
-14
-1
-47
-1
-5
-1

skipif mysql # not compatible
query II rowsort label-3434
SELECT DISTINCT - col1 AS col1, - ( - - 86 ) / + + 83 AS col1 FROM tab1
----
-14
-1
-47
-1
-5
-1

query I rowsort
SELECT ALL + 9 * + 54 * + col2 + - 38 FROM tab1 cor0
----
28636
33010
46618

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 WHERE NULL < col1 + + ( ( + col1 ) + + 9 * + ( col1 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE 93 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - 43 FROM tab0
----
-2021
-4257
-430

query I rowsort
SELECT + 59 * 59 AS col0 FROM tab1
----
3481
3481
3481

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NULL BETWEEN ( - col0 ) AND col2
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= - col1 * - 68
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col2 * col2
----

query I rowsort
SELECT 80 - col1 AS col2 FROM tab1 WHERE NOT NULL <> ( - 79 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT + COUNT( * ) FROM tab1 WHERE + col1 <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-3444
SELECT + COUNT ( * ) FROM tab1 WHERE + col1 <> ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3445
SELECT ALL + SUM( + 34 ) DIV + ( - COUNT( * ) ) AS col0 FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-3445
SELECT ALL + SUM ( + 34 ) / + ( - COUNT ( * ) ) AS col0 FROM tab2
----
-34

query I rowsort
SELECT ALL col0 + 66 FROM tab0
----
153
163
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3447
SELECT ( + ( CAST( NULL AS SIGNED ) ) ) / 66 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3447
SELECT ( + ( CAST ( NULL AS INTEGER ) ) ) / 66 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 75 AS col0 FROM tab1 WHERE NOT ( - col0 ) + - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 + ( col1 ) AS col0 FROM tab1
----
138
65
90

query I rowsort
SELECT - 66 + col1 FROM tab0
----
-45
-65
15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3451
SELECT + col1 + + CAST( 59 AS SIGNED ) DIV 75 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3451
SELECT + col1 + + CAST ( 59 AS INTEGER ) / 75 AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + ( ( - 91 ) ) IN ( + col1 * - 2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3453
SELECT ALL 83 + MIN( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE NOT 27 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL 83 + MIN ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0 WHERE NOT 27 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT DISTINCT COUNT( * ) + 88 * + COUNT( * ) AS col0 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-3454
SELECT DISTINCT COUNT ( * ) + 88 * + COUNT ( * ) AS col0 FROM tab1
----
267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3455
SELECT CAST( NULL AS SIGNED ) * 1 - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3455
SELECT CAST ( NULL AS INTEGER ) * 1 - + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT MIN( ALL 52 ) AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3456
SELECT MIN ( ALL 52 ) AS col0 FROM tab0 AS cor0
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3457
SELECT - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 81 > + col0 + 74 * 98
----
NULL

skipif mysql # not compatible
query I rowsort label-3457
SELECT - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 81 > + col0 + 74 * 98
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col0 col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT - 19 * + 11 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + 91 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3460
SELECT - 61 DIV - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
6

skipif mysql # not compatible
query I rowsort label-3460
SELECT - 61 / - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3461
SELECT ALL * FROM tab0 WHERE + col0 * + col1 + CAST( col2 + col0 AS DECIMAL ) > 20 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3461
SELECT ALL * FROM tab0 WHERE + col0 * + col1 + CAST ( col2 + col0 AS REAL ) > 20 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( - 66 ) col0 FROM tab2
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT DISTINCT + SUM( - col0 ) AS col1 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT + SUM ( - col0 ) AS col1 FROM tab2
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3464
SELECT DISTINCT + 61 + - col2 * + CAST( + col2 + col0 AS SIGNED ) FROM tab2 cor0
----
-1526
-4099
-7653

skipif mysql # not compatible
query I rowsort label-3464
SELECT DISTINCT + 61 + - col2 * + CAST ( + col2 + col0 AS INTEGER ) FROM tab2 cor0
----
-1526
-4099
-7653

query I rowsort
SELECT ALL - + 2 * col1 FROM tab1 AS cor0
----
-10
-28
-94

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 2 * col0 + - 70 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT DISTINCT - 21 * ( - COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3467
SELECT DISTINCT - 21 * ( - COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 + + 93 * col1 FROM tab2
----
4766
6289
7201

query I rowsort
SELECT ( - col0 ) + + 99 * col0 AS col1 FROM tab1
----
4998
8330
8918

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3471
SELECT DISTINCT CAST( + - MIN( col0 ) AS SIGNED ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-3471
SELECT DISTINCT CAST ( + - MIN ( col0 ) AS INTEGER ) AS col0 FROM tab2
----
-46

query III rowsort
SELECT * FROM tab2 WHERE - ( col2 ) IS NULL
----

query I rowsort
SELECT + 88 FROM tab1 WHERE NULL IS NULL
----
88
88
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 IN ( ( 63 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3475
SELECT ALL CAST( 6 AS SIGNED ) FROM tab1
----
6
6
6

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL CAST ( 6 AS INTEGER ) FROM tab1
----
6
6
6

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) = ( NULL )
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE 53 = col1 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3478
SELECT ALL - MIN( ALL - 13 ) FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-3478
SELECT ALL - MIN ( ALL - 13 ) FROM tab2
----
13

query I rowsort
SELECT DISTINCT 84 * col1 AS col1 FROM tab1 WHERE - col1 * col0 IS NOT NULL
----
1176
3948
420

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT ALL - 35 * - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 * + col0 + 93 / + col0 ) <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - 35 * - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 * + col0 + 93 / + col0 ) <= NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3481
SELECT + ( + - CAST( NULL AS DECIMAL ) ) * 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3481
SELECT + ( + - CAST ( NULL AS REAL ) ) * 45 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL >= col0
----

query I rowsort
SELECT ALL - + col1 + col1 * - 80 FROM tab0 AS cor0
----
-1701
-6561
-81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 93 ) <> ( NULL )
----

query I rowsort
SELECT ALL + col1 * col1 AS col2 FROM tab2 AS cor0 WHERE col2 < NULL
----

query I rowsort
SELECT - 72 * + 74 FROM tab0 cor0
----
-5328
-5328
-5328

onlyif mysql # aggregate syntax: 
query I rowsort label-3487
SELECT DISTINCT + COUNT( * ) + 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
67

skipif mysql # not compatible
query I rowsort label-3487
SELECT DISTINCT + COUNT ( * ) + 58 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT ALL + + COUNT( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3488
SELECT ALL + + COUNT ( * ) AS col1 FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT ALL + ( - + col0 ) + col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT + col1 + - col1 + + 28 AS col0 FROM tab0 AS cor0
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3491
SELECT ALL + col1 DIV + col2 + + col1 - - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL + col1 / + col2 + + col1 - - col0 AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT ALL - 68 AS col1 FROM tab1 AS cor0 WHERE col0 >= - + col1 * - 86 - - col0 / + col1
----

query I rowsort
SELECT DISTINCT - - col1 + 31 + ( - 14 ) FROM tab1 AS cor0
----
22
31
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3494
SELECT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) / ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3494
SELECT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) / ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT 19, col0 AS col1 FROM tab2 cor0
----
19
46
19
64
19
75

query II rowsort
SELECT + col1 AS col2, - 75 FROM tab2 AS cor0
----
51
-75
67
-75
77
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3497
SELECT ALL + CAST( + COUNT( ALL 28 ) AS SIGNED ) * + 60 AS col1 FROM tab2
----
180

skipif mysql # not compatible
query I rowsort label-3497
SELECT ALL + CAST ( + COUNT ( ALL 28 ) AS INTEGER ) * + 60 AS col1 FROM tab2
----
180

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 48 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3499
SELECT - CAST( NULL AS DECIMAL ) * - COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3499
SELECT - CAST ( NULL AS REAL ) * - COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - + col1 + + col2 * + col0 AS col1 FROM tab2 WHERE NOT NULL > - 27
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT ALL SUM( ALL + col2 ) FROM tab2 WHERE NOT + 54 IN ( + + 67 * col2 )
----
121

skipif mysql # not compatible
query I rowsort label-3501
SELECT ALL SUM ( ALL + col2 ) FROM tab2 WHERE NOT + 54 IN ( + + 67 * col2 )
----
121

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + col1 * 17
----

query II rowsort
SELECT ALL 13 * + col2 AS col0, 47 FROM tab2
----
299
47
520
47
754
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3504
SELECT ALL col0 + CAST( - col2 AS SIGNED ) * 82 AS col0 FROM tab1 WHERE NOT NULL <= ( col1 + - + 59 )
----

skipif mysql # not compatible
query I rowsort label-3504
SELECT ALL col0 + CAST ( - col2 AS INTEGER ) * 82 AS col0 FROM tab1 WHERE NOT NULL <= ( col1 + - + 59 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * + 75 <> ( NULL )
----

query I rowsort
SELECT + AVG ( ALL - col0 ) AS col1 FROM tab0 cor0 WHERE NOT + col1 / col2 * - 79 * 97 NOT BETWEEN NULL AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT ALL AVG ( ALL - col1 ) / - 96 + MIN( ALL - 19 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3507
SELECT ALL AVG ( ALL - col1 ) / - 96 + MIN ( ALL - 19 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT ( col0 ) + + col0 FROM tab0 AS cor0 WHERE ( 59 ) IS NOT NULL
----
174
194
30

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NULL >= + 69
----

query I rowsort
SELECT + 50 + 11 FROM tab2
----
61
61
61

query I rowsort
SELECT + col0 + - col0 + col2 FROM tab2 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 69, - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IN ( + - 38 + - 6 )
----

query I rowsort
SELECT ALL - ( 42 ) FROM tab0 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + + col2 * 67 + + col2 + col0 AS col2 FROM tab0 AS cor0
----
3211
6829
767

query I rowsort
SELECT + col1 + - col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * 85 )
----
0

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + col0 * 85 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 36 col1, + 7 - - col0 AS col0 FROM tab1
----
36
58
36
92
36
98

query I rowsort
SELECT ( - - col0 ) AS col0 FROM tab2 WHERE ( - col1 ) >= NULL
----

query II rowsort
SELECT DISTINCT col2 AS col1, col1 FROM tab2
----
23
51
40
77
58
67

query II rowsort
SELECT ALL 26, + 98 - - col1 AS col1 FROM tab0
----
26
119
26
179
26
99

query I rowsort
SELECT 32 * col0 AS col2 FROM tab2
----
1472
2048
2400

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT ( - - 55 ) * COUNT( * ) + + 2 col2 FROM tab2, tab0 AS cor0
----
497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3523
SELECT ( - - 55 ) * COUNT ( * ) + + 2 col2 FROM tab2, tab0 AS cor0
----
497

onlyif mysql # aggregate syntax: 
query I rowsort label-3524
SELECT COUNT( * ) + - 57 AS col0 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-3524
SELECT COUNT ( * ) + - 57 AS col0 FROM tab0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-3525
SELECT - col0 + col2 + 71 + + ( 37 ) * - 73 * - col0 + col2 DIV + col0 AS col0 FROM tab1
----
137868
229630
245839

skipif mysql # not compatible
query I rowsort label-3525
SELECT - col0 + col2 + 71 + + ( 37 ) * - 73 * - col0 + col2 / + col0 AS col0 FROM tab1
----
137868
229630
245839

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3526
SELECT 19 + + col2 * CAST( - - 35 AS SIGNED ) * 89 FROM tab0 AS cor0
----
146424
308404
31169

skipif mysql # not compatible
query I rowsort label-3526
SELECT 19 + + col2 * CAST ( - - 35 AS INTEGER ) * 89 FROM tab0 AS cor0
----
146424
308404
31169

query I rowsort
SELECT - col0 + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-144
-191
-92

query I rowsort
SELECT DISTINCT + col0 - - + 92 * col0 FROM tab2 cor0
----
4278
5952
6975

query II rowsort
SELECT DISTINCT - 93 * + + 62 - + col0, col2 FROM tab1
----
-5817
96
-5851
59
-5857
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3530
SELECT - - 38 - col1 + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3530
SELECT - - 38 - col1 + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - col2 * + + col0, col2 FROM tab1 AS cor0
----
-4896
96
-5015
59
-6188
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3532
SELECT ALL col0 + - col0 * - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL col0 + - col0 * - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3533
SELECT - CAST( NULL AS DECIMAL ) * + col0 - col2 * - 58 AS col1 FROM tab1 cor0 WHERE NOT ( NOT ( ( NOT + - 46 IS NOT NULL ) ) )
----

skipif mysql # not compatible
query I rowsort label-3533
SELECT - CAST ( NULL AS REAL ) * + col0 - col2 * - 58 AS col1 FROM tab1 cor0 WHERE NOT ( NOT ( ( NOT + - 46 IS NOT NULL ) ) )
----

query I rowsort
SELECT DISTINCT - 86 AS col1 FROM tab1 AS cor0 WHERE + col2 * - col0 IS NOT NULL
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT DISTINCT - ( - + COUNT( ALL col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT - ( - + COUNT ( ALL col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3536
SELECT - - MAX( DISTINCT - 62 ) AS col1, 94 * 62 AS col1 FROM tab0 cor0
----
-62
5828

skipif mysql # not compatible
query II rowsort label-3536
SELECT - - MAX ( DISTINCT - 62 ) AS col1, 94 * 62 AS col1 FROM tab0 cor0
----
-62
5828

query I rowsort
SELECT ALL + col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3538
SELECT ALL - MIN( DISTINCT col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3538
SELECT ALL - MIN ( DISTINCT col1 ) FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( + - 15 * 61 + + col0 ) AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL BETWEEN ( + - 15 * 61 + + col0 ) AND + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col1 ) col2 FROM tab0
----
-1
-21
-81

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3541
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - - 35 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT CAST ( NULL AS REAL ) / - - 35 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3543
SELECT DISTINCT 75 * - COUNT( - + 41 ) DIV - COUNT( * ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT 75 * - COUNT ( - + 41 ) / - COUNT ( * ) FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3544
SELECT DISTINCT - CAST( + - 60 AS SIGNED ) AS col1 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT - CAST ( + - 60 AS INTEGER ) AS col1 FROM tab1
----
60

query I rowsort
SELECT - col1 + - - 38 FROM tab2 WHERE NOT - col2 NOT IN ( 7 + + 86, col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3546
SELECT DISTINCT col0 * + 54 * + CAST( 10 AS SIGNED ) * + col0 - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
121419
4087239
5080859

skipif mysql # not compatible
query I rowsort label-3546
SELECT DISTINCT col0 * + 54 * + CAST ( 10 AS INTEGER ) * + col0 - + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
121419
4087239
5080859

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - col2 * + col2 * - col0 col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 * col0 col2 FROM tab2 cor0
----
3036
4224
4950

query I rowsort
SELECT + 42 * - 74 FROM tab0
----
-3108
-3108
-3108

query I rowsort
SELECT ALL - 57 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 18 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT DISTINCT + - COUNT( * ) * - 49 - + + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
432

skipif mysql # not compatible
query I rowsort label-3552
SELECT DISTINCT + - COUNT ( * ) * - 49 - + + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT DISTINCT + + COUNT( ALL - - 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-3553
SELECT DISTINCT + + COUNT ( ALL - - 67 ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE ( NULL ) IS NULL
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3554
SELECT DISTINCT + COUNT( * ) + - 29 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-3554
SELECT DISTINCT + COUNT ( * ) + - 29 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 + - ( - col1 ) * col0 )
----

query I rowsort
SELECT - - 70 AS col2 FROM tab2 AS cor0
----
70
70
70

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 68
----

query I rowsort
SELECT - + col1 * - - col0 + - + 20 AS col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-4297
-445
-734

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT ALL MAX( DISTINCT + 65 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 69 ) < col2
----
65

skipif mysql # not compatible
query I rowsort label-3559
SELECT ALL MAX ( DISTINCT + 65 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( 69 ) < col2
----
65

query I rowsort
SELECT - col2 + - 39 FROM tab1 AS cor0
----
-107
-135
-98

query I rowsort
SELECT ALL - ( + - col2 ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL + col0 + + 72 AS col1 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT ( - col2 ) + + col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3564
SELECT ALL * FROM tab2 WHERE NOT - + col2 / + 53 >= ( col0 * + CAST( col2 AS SIGNED ) * - + col1 + - 5 )
----

skipif mysql # not compatible
query III rowsort label-3564
SELECT ALL * FROM tab2 WHERE NOT - + col2 / + 53 >= ( col0 * + CAST ( col2 AS INTEGER ) * - + col1 + - 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT - col0 + ( + CAST( + 46 AS SIGNED ) ) FROM tab1
----
-39
-45
-5

skipif mysql # not compatible
query I rowsort label-3565
SELECT - col0 + ( + CAST ( + 46 AS INTEGER ) ) FROM tab1
----
-39
-45
-5

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT + ( + 80 ) + col1 + - + col1 / + 64 - + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ( - COUNT( * ) ) + + - 48 + + + 80 col0 FROM tab0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3567
SELECT ( - COUNT ( * ) ) + + - 48 + + + 80 col0 FROM tab0
----
29

query I rowsort
SELECT DISTINCT + 89 * - ( + col1 ) * - 92 FROM tab0
----
171948
663228
8188

query I rowsort
SELECT ALL + 6 + - col0 FROM tab2
----
-40
-58
-69

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 * - col1 + 31 IS NULL
----

query I rowsort
SELECT ALL - 11 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-110
-221
-3818

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT - COUNT( ALL + 85 ) - + 31 AS col0 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-3572
SELECT - COUNT ( ALL + 85 ) - + 31 AS col0 FROM tab0 AS cor0
----
-34

query I rowsort
SELECT DISTINCT - 18 * col1 + - 29 - col2 AS col2 FROM tab0 AS cor0
----
-146
-1534
-417

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 >= + + 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT DISTINCT - COUNT( * ) + 11 * + COUNT( * ) FROM tab0 WHERE 44 + - - col0 IN ( - - 40 ) OR NULL IS NULL
----
30

skipif mysql # not compatible
query I rowsort label-3575
SELECT DISTINCT - COUNT ( * ) + 11 * + COUNT ( * ) FROM tab0 WHERE 44 + - - col0 IN ( - - 40 ) OR NULL IS NULL
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3576
SELECT DISTINCT + 58, + MIN( col1 ) col0 FROM tab2
----
58
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3576
SELECT DISTINCT + 58, + MIN ( col1 ) col0 FROM tab2
----
58
51

query I rowsort
SELECT - col2 AS col1 FROM tab2 WHERE NOT ( 77 ) BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3578
SELECT ALL COUNT( * ) AS col1, 33 * 36 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
-3564

skipif mysql # not compatible
query II rowsort label-3578
SELECT ALL COUNT ( * ) AS col1, 33 * 36 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
-3564

query II rowsort
SELECT DISTINCT + col1 AS col0, col1 AS col0 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT - 69 * - 86 * - 16 AS col2 FROM tab1 AS cor0
----
-94944
-94944
-94944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 col0 FROM tab0 cor0
----
-32
-32
-32

query I rowsort
SELECT 5 - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 >= ( NULL )
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( - 28 )
----

query II rowsort
SELECT - + 67 AS col2, + col1 * 49 FROM tab2 AS cor0
----
-67
2499
-67
3283
-67
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ALL + MIN( col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3585
SELECT ALL + MIN ( col2 ) FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col1 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3587
SELECT 2 * + COUNT( * ) DIV + 40 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3587
SELECT 2 * + COUNT ( * ) / + 40 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3588
SELECT 83, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
83
3

skipif mysql # not compatible
query II rowsort label-3588
SELECT 83, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
83
3

query II rowsort
SELECT DISTINCT + col2 AS col1, - 80 * + + col0 FROM tab2 AS cor0
----
23
-3680
40
-5120
58
-6000

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 11 IN ( ( col1 ) - - 39 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 8 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + ( 18 ) AS col0 FROM tab0 AS cor0
----
18

query I rowsort
SELECT - col0 * col0 + + 39 FROM tab1 AS cor0
----
-2562
-7186
-8242

query I rowsort
SELECT - ( 42 ) * - col0 FROM tab1 AS cor0
----
2142
3570
3822

query I rowsort
SELECT ALL col0 + 70 * 77 AS col1 FROM tab2 AS cor0
----
5436
5454
5465

query II rowsort
SELECT ALL - col0 * - - 22 AS col2, 86 + + ( - - col0 ) FROM tab0 AS cor0
----
-1914
173
-2134
183
-330
101

query I rowsort
SELECT 1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT COUNT( * ) + MIN( DISTINCT - + col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3598
SELECT COUNT ( * ) + MIN ( DISTINCT - + col1 ) FROM tab0
----
-78

query I rowsort
SELECT ALL - + col2 / 26 * + col2 + - - col2 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3601
SELECT ALL + CAST( NULL AS DECIMAL ) * col1 + + 28 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3601
SELECT ALL + CAST ( NULL AS REAL ) * col1 + + 28 FROM tab0 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT + col1 * CAST( NULL AS SIGNED ) + 25 + - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT + col1 * CAST ( NULL AS INTEGER ) + 25 + - col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - - MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3603
SELECT - - MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
51

query I rowsort
SELECT ALL col2 * - - 86 AS col1 FROM tab1 AS cor0
----
5074
5848
8256

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 29 + - 86 >= 97
----

query I rowsort
SELECT ALL - col0 * 8 + - + col2 - + - col0 + - - col1 * col0 + + + col0 FROM tab1 cor0
----
-144
312
3663

query I rowsort
SELECT ALL ( - - 81 ) + col0 AS col2 FROM tab1
----
132
166
172

onlyif mysql # aggregate syntax: 
query I rowsort label-3608
SELECT - MAX( + + col2 ) col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + col0
----
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3608
SELECT - MAX ( + + col2 ) col2 FROM tab1 WHERE + col2 NOT BETWEEN NULL AND + col0
----
-96

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) BETWEEN ( col0 ) AND ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 - + - col2 col2 FROM tab1
----
-23
-32
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3611
SELECT + MAX( ALL - 5 ) + - + CAST( ( + - 98 ) AS SIGNED ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3611
SELECT + MAX ( ALL - 5 ) + - + CAST ( ( + - 98 ) AS INTEGER ) FROM tab0
----
93

query I rowsort
SELECT - 81 * + - col0 + - 42 AS col1 FROM tab1
----
4089
6843
7329

onlyif mysql # DIV for integer division: 
query I rowsort label-3613
SELECT + col0 + - col2 DIV + 41 AS col2 FROM tab1 AS cor0
----
49
84
90

skipif mysql # not compatible
query I rowsort label-3613
SELECT + col0 + - col2 / + 41 AS col2 FROM tab1 AS cor0
----
49
84
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3614
SELECT ALL - - 79 + SUM( ALL - - 13 ) + - 75 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-3614
SELECT ALL - - 79 + SUM ( ALL - - 13 ) + - 75 FROM tab0 AS cor0
----
43

query I rowsort
SELECT + - 72 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3616
SELECT + CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3616
SELECT + CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= - 26 * + col2 * - ( col2 )
----

query II rowsort
SELECT DISTINCT + col1, - 21 FROM tab2 AS cor0
----
51
-21
67
-21
77
-21

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( 5 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3620
SELECT ALL + col0 * + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3620
SELECT ALL + col0 * + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + - 72 * - col1, ( ( col2 ) ) FROM tab1 WHERE ( - col0 ) = - - 60
----

query II rowsort
SELECT col2, 80 AS col2 FROM tab0
----
10
80
47
80
99
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3623
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) * + col2 * - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3623
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) * + col2 * - 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3624
SELECT ALL + ( + + SUM( ALL - + col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3624
SELECT ALL + ( + + SUM ( ALL - + col0 ) ) AS col1 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + ( col1 ) col2 FROM tab0
----
15
81
87
21
97
1

query II rowsort
SELECT - col0 AS col1, col1 + col1 + col1 AS col2 FROM tab1
----
-51
42
-85
15
-91
141

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 62 * + 75 + 7 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3628
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + COUNT( * ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3629
SELECT + col1 DIV + + col1 AS col2 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3629
SELECT + col1 / + + col1 AS col2 FROM tab1 cor0
----
1
1
1

query I rowsort
SELECT ( + 61 ) AS col2 FROM tab1
----
61
61
61

query I rowsort
SELECT ALL + 6 + - col1 + - col2 AS col2 FROM tab2 AS cor0
----
-111
-119
-68

query II rowsort
SELECT - + col2 + + col0, col2 FROM tab2 AS cor0
----
17
58
23
23
24
40

query I rowsort
SELECT DISTINCT + col0 + - 55 * + col2 FROM tab1 AS cor0
----
-3160
-3649
-5229

onlyif mysql # DIV for integer division: 
query I rowsort label-3634
SELECT DISTINCT - 27 DIV + col0 * - col1 * + col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - 27 / + col0 * - col1 * + col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col0 col0 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT - col1 * col2 + col0 AS col1 FROM tab2 AS cor0
----
-1127
-3016
-3811

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 / - + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3638
SELECT DISTINCT + COUNT( * ) AS col2, 20 FROM tab1
----
3
20

skipif mysql # not compatible
query II rowsort label-3638
SELECT DISTINCT + COUNT ( * ) AS col2, 20 FROM tab1
----
3
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT ALL 16 - + + COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-3639
SELECT ALL 16 - + + COUNT ( * ) FROM tab1
----
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3640
SELECT DISTINCT 52 * - MIN( ALL col2 ) - 40 FROM tab0
----
-560

skipif mysql # not compatible
query I rowsort label-3640
SELECT DISTINCT 52 * - MIN ( ALL col2 ) - 40 FROM tab0
----
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3641
SELECT DISTINCT + MIN( + 38 ) FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-3641
SELECT DISTINCT + MIN ( + 38 ) FROM tab0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3642
SELECT + 0 * + + col2 DIV - + col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3642
SELECT + 0 * + + col2 / - + col2 AS col2 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col1 FROM tab2 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3644
SELECT DISTINCT - COUNT( 85 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - COUNT ( 85 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3645
SELECT * FROM tab2 WHERE ( NOT ( - col2 ) NOT IN ( + col0, col0 + + 57 + - col0, col1 + + CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3645
SELECT * FROM tab2 WHERE ( NOT ( - col2 ) NOT IN ( + col0, col0 + + 57 + - col0, col1 + + CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT ( MAX( DISTINCT + col1 ) ) - - + 72 AS col2 FROM tab1 AS cor0
----
119

skipif mysql # not compatible
query I rowsort label-3646
SELECT ( MAX ( DISTINCT + col1 ) ) - - + 72 AS col2 FROM tab1 AS cor0
----
119

query I rowsort
SELECT DISTINCT 64 * - + col1 + - 89 AS col2 FROM tab1 AS cor0
----
-3097
-409
-985

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3648
SELECT - + CAST( ( - col2 ) AS SIGNED ) AS col1, 62 FROM tab2 AS cor0
----
23
62
40
62
58
62

skipif mysql # not compatible
query II rowsort label-3648
SELECT - + CAST ( ( - col2 ) AS INTEGER ) AS col1, 62 FROM tab2 AS cor0
----
23
62
40
62
58
62

query I rowsort
SELECT DISTINCT - 19 / 70 + - - col2 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3650
SELECT - SUM( ALL - CAST( col1 AS SIGNED ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-3650
SELECT - SUM ( ALL - CAST ( col1 AS INTEGER ) ) FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col0 * + 86 * 32 + + - col0 ) < + 1
----

query I rowsort
SELECT ALL + - 38 AS col1 FROM tab0 AS cor0
----
-38
-38
-38

query I rowsort
SELECT + + col2 * + + col0 + - - col2 FROM tab1 AS cor0
----
4992
5074
6256

query I rowsort
SELECT - - 34 * 84 FROM tab2 AS cor0
----
2856
2856
2856

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - + COUNT( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - + COUNT ( ALL - col0 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT DISTINCT ( - - 55 ) AS col2 FROM tab0
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT ALL - CAST( NULL AS SIGNED ) + + col1 - + - col2 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3657
SELECT ALL - CAST ( NULL AS INTEGER ) + + col1 - + - col2 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + 80 ) FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT ALL col1 * + col1 + + col2 FROM tab1 AS cor0
----
2277
292
84

query III rowsort
SELECT * FROM tab0 WHERE col2 >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT ALL - COUNT( col2 ) * - COUNT( * ) AS col0 FROM tab1 WHERE NOT + - col0 + col2 NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3661
SELECT ALL - COUNT ( col2 ) * - COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - col0 + col2 NOT BETWEEN - col1 AND NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT col0 + 30 / col1 / + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE ( 90 ) NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 + + col0 col2, col1 col2 FROM tab2 AS cor0
----
141
77
142
67
97
51

query II rowsort
SELECT col0, + 48 AS col1 FROM tab2 AS cor0
----
46
48
64
48
75
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col2 FROM tab0 AS cor0 WHERE 94 + + - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + col0 ) col0 FROM tab2 AS cor0 WHERE NOT col0 + + col2 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + + col0 - + col0 - + col2 AS col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT col1 + col1 + col2 - - col0 * - col0 * - + 21 AS col2 FROM tab1
----
151794
174063
54745

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3670
SELECT + + ( + MAX( - CAST( NULL AS DECIMAL ) ) ) FROM tab2 WHERE NULL <= - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3670
SELECT + + ( + MAX ( - CAST ( NULL AS REAL ) ) ) FROM tab2 WHERE NULL <= - col1
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3671
SELECT 99 + - SUM( - 77 ) AS col1, 73 AS col1 FROM tab1
----
330
73

skipif mysql # not compatible
query II rowsort label-3671
SELECT 99 + - SUM ( - 77 ) AS col1, 73 AS col1 FROM tab1
----
330
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 * - + col1 col2, ( + 21 ) FROM tab0
----
1
21
441
21
6561
21

query I rowsort
SELECT DISTINCT ( col0 ) * 35 AS col0 FROM tab0
----
3045
3395
525

query II rowsort
SELECT ALL 46 * col0 AS col2, col1 FROM tab2
----
2116
51
2944
77
3450
67

query II rowsort
SELECT col2 + + - col0, 53 * + + col1 AS col0 FROM tab1
----
-23
2491
-26
265
45
742

onlyif mysql # DIV for integer division: 
query II rowsort label-3676
SELECT + col1 DIV - - ( - + col1 ) AS col1, col1 DIV + col1 FROM tab1
----
-1
1
-1
1
-1
1

skipif mysql # not compatible
query II rowsort label-3676
SELECT + col1 / - - ( - + col1 ) AS col1, col1 / + col1 FROM tab1
----
-1
1
-1
1
-1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT MAX( DISTINCT - - 85 ) AS col1 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT MAX ( DISTINCT - - 85 ) AS col1 FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL + 45 * col0 FROM tab0 AS cor0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT - MAX( ALL col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3679
SELECT - MAX ( ALL col0 ) AS col1 FROM tab2
----
-75

query II rowsort
SELECT 61, + col2 AS col2 FROM tab0
----
61
10
61
47
61
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + col1 * 67
----

query I rowsort
SELECT ( - 63 ) AS col0 FROM tab2 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3683
SELECT DISTINCT MAX( ALL + + CAST( NULL AS DECIMAL ) ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3683
SELECT DISTINCT MAX ( ALL + + CAST ( NULL AS REAL ) ) col2 FROM tab2 cor0
----
NULL

query II rowsort
SELECT ALL - col2, col0 * - + col0 AS col0 FROM tab0 cor0
----
-10
-7569
-47
-225
-99
-9409

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3685
SELECT + + 80 * + col2 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
1840
23
3200
40
4640
58

skipif mysql # not compatible
query II rowsort label-3685
SELECT + + 80 * + col2 AS col0, col2 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
1840
23
3200
40
4640
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT + MIN( ALL - col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-3686
SELECT + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3687
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT 24 * + COUNT( * ) + COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-3688
SELECT 24 * + COUNT ( * ) + COUNT ( * ) FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT - COUNT( * ) + + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3689
SELECT - COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT col2 + + - 51 FROM tab2
----
-11
-28
7

query I rowsort
SELECT col1 + - 30 AS col1 FROM tab2
----
21
37
47

query I rowsort
SELECT DISTINCT col2 + - 99 FROM tab0 AS cor0
----
-52
-89
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3693
SELECT - COUNT( ALL + + ( CAST( 58 AS SIGNED ) ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3693
SELECT - COUNT ( ALL + + ( CAST ( 58 AS INTEGER ) ) ) FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - col0, - col0 AS col2 FROM tab2 cor0 WHERE + ( - - col2 ) IS NOT NULL
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT DISTINCT ( + col2 ) * - col1 * + col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT + col2 - - + 68 FROM tab0
----
115
167
78

query II rowsort
SELECT 4 / - + col2 AS col2, - col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + ( + col0 ) * col2 FROM tab1 cor0
----
-295885
-420784
-470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 - col1 * - - 56 * + col1 col1 FROM tab0 AS cor0
----
-24675
-367335
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 48 col0 FROM tab0 AS cor0
----
147
58
95

query I rowsort
SELECT 88 * 51 * + - col1 * ( + ( - + col1 ) ) + - 93 - col1 * - col2 * + col0 AS col1 FROM tab1 cor0
----
10204735
137182
948099

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3702
SELECT ALL - MIN( - CAST( NULL AS SIGNED ) ) - + 93 * - 45 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3702
SELECT ALL - MIN ( - CAST ( NULL AS INTEGER ) ) - + 93 * - 45 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 35 col2, - col0 AS col0 FROM tab1
----
-35
-51
-35
-85
-35
-91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) <> 5 - - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT DISTINCT - - COUNT( * ) * - + 80 + + 86 FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-3706
SELECT DISTINCT - - COUNT ( * ) * - + 80 + + 86 FROM tab2 AS cor0
----
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL + - COUNT( * ) * - 58 FROM tab2 cor0
----
174

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL + - COUNT ( * ) * - 58 FROM tab2 cor0
----
174

query II rowsort
SELECT + + col2 * 41 * ( + + col0 ), + col0 * - - col1 AS col0 FROM tab1 AS cor0
----
200736
714
205615
425
253708
4277

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( NULL )
----

query II rowsort
SELECT col0, + ( col0 ) * - ( - col1 ) * - 14 FROM tab2 AS cor0
----
46
-32844
64
-68992
75
-70350

query I rowsort
SELECT DISTINCT + ( + 3 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT + 62 + + 16 + - - col0 * + 1 * + col0 * - + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3712
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + 62 + + 16 + - - col0 * + 1 * + col0 * - + col0 IS NOT NULL
----
0

query I rowsort
SELECT col2 * + + ( + 98 ) FROM tab0 AS cor0
----
4606
9702
980

query I rowsort
SELECT ALL + ( - + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3715
SELECT DISTINCT + - COUNT( * ) + MAX( ALL + col1 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3715
SELECT DISTINCT + - COUNT ( * ) + MAX ( ALL + col1 ) FROM tab2 AS cor0
----
74

query I rowsort
SELECT - + 95 * col1 AS col0 FROM tab0 AS cor0
----
-1995
-7695
-95

query I rowsort
SELECT - 54 * col2 FROM tab1 cor0
----
-3186
-3672
-5184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3718
SELECT ALL + CAST( - ( col1 ) AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

skipif mysql # not compatible
query I rowsort label-3718
SELECT ALL + CAST ( - ( col1 ) AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT 59 * - COUNT( * ) FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-3719
SELECT 59 * - COUNT ( * ) FROM tab2
----
-177

query III rowsort
SELECT * FROM tab2 WHERE NULL < ( - col0 + - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 94 + 3 * col1 - 81 + - col1 + col1 * 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT col2, - 76 FROM tab0
----
10
-76
47
-76
99
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-3723
SELECT ALL col1 DIV + col0 AS col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3723
SELECT ALL col1 / + col0 AS col2 FROM tab2
----
0
1
1

query I rowsort
SELECT + 59 * - col1 + + - col2 * - col1 + + ( - 2 ) AS col0 FROM tab1 AS cor0
----
-2
421
516

query I rowsort
SELECT ALL + + 25 AS col1 FROM tab2 AS cor0
----
25
25
25

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3727
SELECT + - MIN( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT + - MIN ( + col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

query I rowsort
SELECT + + col0 * + col1 - - col2 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT + col0 + - - col1 AS col1 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 57 > - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * col1 + + + col0 col1 FROM tab1 AS cor0 WHERE NULL BETWEEN 24 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT ALL 4 * + COUNT( * ) AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-3732
SELECT ALL 4 * + COUNT ( * ) AS col0 FROM tab1
----
12

query II rowsort
SELECT DISTINCT - col1, - ( - + ( - col1 ) ) AS col2 FROM tab1
----
-14
-14
-47
-47
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3734
SELECT + col2 * - - col1 * - CAST( + 68 AS SIGNED ) FROM tab1
----
-20060
-217328
-91392

skipif mysql # not compatible
query I rowsort label-3734
SELECT + col2 * - - col1 * - CAST ( + 68 AS INTEGER ) FROM tab1
----
-20060
-217328
-91392

query I rowsort
SELECT - 37 * col0 * + 16 * - col1 FROM tab2
----
1388832
2917376
2974800

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
51
67
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 95 )
----

query I rowsort
SELECT + col1 * + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3739
SELECT * FROM tab1 WHERE NOT - col1 + col1 * + CAST( NULL AS DECIMAL ) NOT BETWEEN 53 * + col2 - - col2 * + col2 AND - 13
----

skipif mysql # not compatible
query III rowsort label-3739
SELECT * FROM tab1 WHERE NOT - col1 + col1 * + CAST ( NULL AS REAL ) NOT BETWEEN 53 * + col2 - - col2 * + col2 AND - 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3740
SELECT DISTINCT 89, + CAST( - + 12 AS SIGNED ) * 5 * - 47 + COUNT( * ) col2 FROM tab0
----
89
2823

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3740
SELECT DISTINCT 89, + CAST ( - + 12 AS INTEGER ) * 5 * - 47 + COUNT ( * ) col2 FROM tab0
----
89
2823

query I rowsort
SELECT ALL + 12 + 33 + + + ( - col1 ) FROM tab1
----
-2
31
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3742
SELECT - - MAX( DISTINCT + 11 ) FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3742
SELECT - - MAX ( DISTINCT + 11 ) FROM tab2 AS cor0
----
11

query I rowsort
SELECT + col1 * + 77 FROM tab1 AS cor0
----
1078
3619
385

query I rowsort
SELECT DISTINCT + col2 + + 2 AS col1 FROM tab2 cor0
----
25
42
60

query I rowsort
SELECT DISTINCT - + 44 * + col2 FROM tab1 AS cor0
----
-2596
-2992
-4224

query I rowsort
SELECT - ( + col2 ) + + col1 AS col2 FROM tab1
----
-21
-54
-82

query II rowsort
SELECT + col1 AS col2, - 67 FROM tab0 WHERE + - 4 * - - col2 + + 66 / - - col2 IS NULL
----

query I rowsort
SELECT ALL 9 * 92 AS col2 FROM tab0
----
828
828
828

query I rowsort
SELECT 28 + + - col0 FROM tab0
----
-59
-69
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT DISTINCT + COUNT( * ) * 31 AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-3750
SELECT DISTINCT + COUNT ( * ) * 31 AS col2 FROM tab0
----
93

onlyif mysql # DIV for integer division: 
query I rowsort label-3751
SELECT col2 + - col2 DIV 9 FROM tab2
----
21
36
52

skipif mysql # not compatible
query I rowsort label-3751
SELECT col2 + - col2 / 9 FROM tab2
----
21
36
52

query I rowsort
SELECT - 10 + col0 FROM tab1
----
41
75
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3753
SELECT + col1 DIV + col0 + + - col1 AS col0 FROM tab1 WHERE 56 * + - col0 IS NOT NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3753
SELECT + col1 / + col0 + + - col1 AS col0 FROM tab1 WHERE 56 * + - col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - col1 + 15 AS col1 FROM tab0
----
-6
-66
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3755
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + MIN( ALL col0 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3755
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + MIN ( ALL col0 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab2 AS cor0 WHERE + col1 / 47 NOT BETWEEN 62 / + ( - + 85 ) + + 0 AND - col0
----
-46
-64
-75

query I rowsort
SELECT ( - col0 ) * + col1 * + ( - 39 ) + col2 - ( - + col2 ) FROM tab1 AS cor0
----
16693
166939
28038

query II rowsort
SELECT ALL col1 AS col0, - col2 AS col2 FROM tab0
----
1
-99
21
-10
81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3759
SELECT + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3759
SELECT + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT DISTINCT - col1, col2 AS col2 FROM tab0 AS cor0
----
-1
99
-21
10
-81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 AS col1, + col2 col1 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - SUM( DISTINCT + 74 ) col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3762
SELECT DISTINCT - SUM ( DISTINCT + 74 ) col2 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 + 23 * + + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT - SUM( + col0 ) AS col0 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT - SUM ( + col0 ) AS col0 FROM tab2
----
-185

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * col2 * + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 75 * + - col0 FROM tab0 AS cor0
----
-1125
-6525
-7275

query II rowsort
SELECT + + 54 * + 98 AS col0, - ( + - ( + - 76 ) ) * - 68 AS col0 FROM tab1 cor0
----
5292
5168
5292
5168
5292
5168

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3769
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + 32 * + CAST( NULL AS SIGNED ) * + 28 * + col2 = NULL )
----

skipif mysql # not compatible
query III rowsort label-3769
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + 32 * + CAST ( NULL AS INTEGER ) * + 28 * + col2 = NULL )
----

query I rowsort
SELECT ALL + 40 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT CAST( NULL AS SIGNED ) + - + col1 * - + col2 + 44 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT CAST ( NULL AS INTEGER ) + - + col1 * - + col2 + 44 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + + ( - col0 ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN 7 + + col0 AND - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3774
SELECT - - COUNT( col0 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3774
SELECT - - COUNT ( col0 ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3775
SELECT + + COUNT( + - col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3775
SELECT + + COUNT ( + - col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3776
SELECT DISTINCT + 49 + + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3776
SELECT DISTINCT + 49 + + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 60 * - col0 AS col1 FROM tab1 AS cor0
----
3060
5100
5460

onlyif mysql # DIV for integer division: 
query I rowsort label-3778
SELECT DISTINCT - col0 + + col0 + + - 65 DIV col0 * - + 50 col1 FROM tab1 AS cor0
----
0
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3778
SELECT DISTINCT - col0 + + col0 + + - 65 / col0 * - + 50 col1 FROM tab1 AS cor0
----
0
50

query I rowsort
SELECT col1 * - col1 * - + col0 + col2 AS col2 FROM tab0 cor0
----
196
38377
98462

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT DISTINCT - COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3780
SELECT DISTINCT - COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * col2 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + 27 * - 13 AS col0 FROM tab1
----
-351
-351
-351

onlyif mysql # DIV for integer division: 
query I rowsort label-3783
SELECT ALL col0 * - + col2 DIV - col2 AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL col0 * - + col2 / - col2 AS col2 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query III rowsort label-3784
SELECT ALL + col1 AS col2, col0 col0, + 48 DIV col1 + - - col1 + - - col0 + - col0 FROM tab0
----
9 values hashing to 276f8de0c0e7d2b87ab514a3cf7ad683

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3784
SELECT ALL + col1 AS col2, col0 col0, + 48 / col1 + - - col1 + - - col0 + - col0 FROM tab0
----
9 values hashing to 276f8de0c0e7d2b87ab514a3cf7ad683

query III rowsort
SELECT * FROM tab1 WHERE ( 74 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) col0 FROM tab2
----
23
40
58

query I rowsort
SELECT - 26 + + - 24 AS col1 FROM tab2
----
-50
-50
-50

query I rowsort
SELECT + + 96 + - col2 FROM tab1 AS cor0
----
0
28
37

query I rowsort
SELECT DISTINCT + + col0 - - 24 FROM tab1 AS cor0
----
109
115
75

query III rowsort
SELECT * FROM tab1 WHERE - + ( + - col2 ) IS NULL
----

query I rowsort
SELECT - 97 * + 66 FROM tab0
----
-6402
-6402
-6402

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN + - col0 AND 74 / + 92 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 65 NOT IN ( - col1, - 32, + col0 + - col2 )
----

query I rowsort
SELECT ALL - 71 AS col1 FROM tab1 cor0
----
-71
-71
-71

query I rowsort
SELECT ALL - AVG ( ALL + + 69 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 85 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3797
SELECT DISTINCT + - CAST( - ( 41 ) AS SIGNED ) + MAX( - col2 ) + - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - 26 * - 51 / + + col2 / - - col1 AND NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3797
SELECT DISTINCT + - CAST ( - ( 41 ) AS INTEGER ) + MAX ( - col2 ) + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL NOT BETWEEN - 26 * - 51 / + + col2 / - - col1 AND NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3798
SELECT + MIN( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3798
SELECT + MIN ( DISTINCT - col2 ) AS col2 FROM tab1
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3799
SELECT - ( CAST( 91 AS SIGNED ) ) FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-3799
SELECT - ( CAST ( 91 AS INTEGER ) ) FROM tab0
----
-91
-91
-91

query II rowsort
SELECT ALL - 40 AS col1, + ( col1 ) * - 79 AS col0 FROM tab1
----
-40
-1106
-40
-3713
-40
-395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3801
SELECT ALL CAST( + - col0 AS SIGNED ) AS col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3801
SELECT ALL CAST ( + - col0 AS INTEGER ) AS col2 FROM tab0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3802
SELECT ALL ( - + col1 ) DIV + 8 AS col2 FROM tab2
----
-6
-8
-9

skipif mysql # not compatible
query I rowsort label-3802
SELECT ALL ( - + col1 ) / + 8 AS col2 FROM tab2
----
-6
-8
-9

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 AS cor0 WHERE NOT 56 IS NOT NULL
----

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 21 ), + 52 + + col1 col1 FROM tab0
----
-21
133
-21
53
-21
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3806
SELECT DISTINCT - - CAST( - 98 AS SIGNED ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3806
SELECT DISTINCT - - CAST ( - 98 AS INTEGER ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-98

query I rowsort
SELECT ALL - + 7 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3808
SELECT DISTINCT - col1 + - ( + 14 ) + + CAST( col2 AS SIGNED ) * + - 59 AS col1 FROM tab0 AS cor0
----
-2868
-5856
-625

skipif mysql # not compatible
query I rowsort label-3808
SELECT DISTINCT - col1 + - ( + 14 ) + + CAST ( col2 AS INTEGER ) * + - 59 AS col1 FROM tab0 AS cor0
----
-2868
-5856
-625

onlyif mysql # DIV for integer division: 
query I rowsort label-3809
SELECT ALL + col1 DIV + - col0 + + col2 FROM tab2 AS cor0
----
22
39
58

skipif mysql # not compatible
query I rowsort label-3809
SELECT ALL + col1 / + - col0 + + col2 FROM tab2 AS cor0
----
22
39
58

query I rowsort
SELECT ALL - + col1 * + - col0 + - 9 FROM tab1 AS cor0
----
416
4268
705

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3811
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3811
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 * col1 + + - col2 + ( - col2 ) FROM tab1 AS cor0
----
307
4141
522

query I rowsort
SELECT col1 * - col1 + ( - col0 ) AS col2 FROM tab1
----
-110
-2300
-247

query I rowsort
SELECT + col2 * + - 80 AS col1 FROM tab0
----
-3760
-7920
-800

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT ALL + MIN( - col1 ) * - - 59 FROM tab2 WHERE NOT + + 98 * 12 + - 96 - + col0 - col0 * - col0 * + ( - col1 ) IS NULL
----
-4543

skipif mysql # not compatible
query I rowsort label-3815
SELECT ALL + MIN ( - col1 ) * - - 59 FROM tab2 WHERE NOT + + 98 * 12 + - 96 - + col0 - col0 * - col0 * + ( - col1 ) IS NULL
----
-4543

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL COUNT( * ) * + 59 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL COUNT ( * ) * + 59 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT ALL - SUM( + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3817
SELECT ALL - SUM ( + col2 ) FROM tab1
----
-223

query I rowsort
SELECT ALL + - col2 FROM tab0 WHERE NOT col0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - 49 - + ( 79 ) AS col2 FROM tab0 cor0
----
-128
-128
-128

query I rowsort
SELECT DISTINCT 39 - + 2 AS col1 FROM tab1 AS cor0
----
37

query I rowsort
SELECT ALL + + 48 - 19 AS col0 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3822
SELECT ALL ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3822
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col2, - col1 FROM tab0
----
10
-21
47
-81
99
-1

query I rowsort
SELECT col0 * 3 AS col2 FROM tab1
----
153
255
273

query I rowsort
SELECT ALL 98 * + ( + 20 ) FROM tab2 AS cor0
----
1960
1960
1960

query II rowsort
SELECT col0 AS col1, - 30 FROM tab1 AS cor0
----
51
-30
85
-30
91
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3827
SELECT DISTINCT - ( + 1 ) * + col0 - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2 - 33
----

skipif mysql # not compatible
query I rowsort label-3827
SELECT DISTINCT - ( + 1 ) * + col0 - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN NULL AND col2 - 33
----

query II rowsort
SELECT + - col1, + 99 AS col0 FROM tab0 AS cor0
----
-1
99
-21
99
-81
99

onlyif mysql # DIV for integer division: 
query I rowsort label-3829
SELECT + 83 DIV + - col0 + - - col1 FROM tab0 AS cor0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-3829
SELECT + 83 / + - col0 + - - col1 FROM tab0 AS cor0
----
1
21
76

query II rowsort
SELECT - - 60 AS col1, - col0 FROM tab1 AS cor0
----
60
-51
60
-85
60
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3831
SELECT ALL COUNT( * ) AS col1 FROM tab2 cor0 WHERE ( 74 ) BETWEEN NULL AND + col0 / - + 66
----
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT ALL COUNT ( * ) AS col1 FROM tab2 cor0 WHERE ( 74 ) BETWEEN NULL AND + col0 / - + 66
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3832
SELECT DISTINCT - MIN( col2 ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3832
SELECT DISTINCT - MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
-10

query I rowsort
SELECT ALL + col1 + + + col2 FROM tab0 AS cor0 WHERE NOT NULL > ( - 64 )
----

query II rowsort
SELECT - - 95 AS col2, - 95 FROM tab2 AS cor0
----
95
-95
95
-95
95
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3835
SELECT - COUNT( * ) / + CAST( NULL AS DECIMAL ) AS col0, + ( - - COUNT( * ) ) FROM tab0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3835
SELECT - COUNT ( * ) / + CAST ( NULL AS REAL ) AS col0, + ( - - COUNT ( * ) ) FROM tab0
----
NULL
3

query I rowsort
SELECT col2 FROM tab1 WHERE NOT col1 > + ( - + 79 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3837
SELECT ALL - CAST( + col2 AS SIGNED ) * - + col2 FROM tab1
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-3837
SELECT ALL - CAST ( + col2 AS INTEGER ) * - + col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT DISTINCT MIN( col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3838
SELECT DISTINCT MIN ( col0 ) col2 FROM tab1
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3839
SELECT DISTINCT - CAST( - 40 AS SIGNED ) + + col1 / - + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3839
SELECT DISTINCT - CAST ( - 40 AS INTEGER ) + + col1 / - + col1 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3840
SELECT * FROM tab0 WHERE NOT + + ( + + CAST( NULL AS DECIMAL ) ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-3840
SELECT * FROM tab0 WHERE NOT + + ( + + CAST ( NULL AS REAL ) ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 84 BETWEEN - col1 - + col0 AND - + 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 39 col1 FROM tab0 AS cor0
----
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3844
SELECT ALL - + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3844
SELECT ALL - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3845
SELECT - ( + ( - 70 ) ) * - - 44 - COUNT( * ) FROM tab0 AS cor0
----
3077

skipif mysql # not compatible
query I rowsort label-3845
SELECT - ( + ( - 70 ) ) * - - 44 - COUNT ( * ) FROM tab0 AS cor0
----
3077

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT 18 + - 83 * + + ( - MIN( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
-3883

skipif mysql # not compatible
query I rowsort label-3846
SELECT 18 + - 83 * + + ( - MIN ( DISTINCT - col1 ) ) FROM tab1 AS cor0
----
-3883

query I rowsort
SELECT ALL 13 + - col2 FROM tab1
----
-46
-55
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3848
SELECT + col1 + CAST( NULL AS SIGNED ) + + col2 + 39 + + 65 * - 7 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3848
SELECT + col1 + CAST ( NULL AS INTEGER ) + + col2 + 39 + + 65 * - 7 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col0, 39 FROM tab2
----
46
39
64
39
75
39

onlyif mysql # DIV for integer division: 
query II rowsort label-3850
SELECT 33 DIV col1 * - col1, + col1 col1 FROM tab0 AS cor0
----
-21
21
-33
1
0
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3850
SELECT 33 / col1 * - col1, + col1 col1 FROM tab0 AS cor0
----
-21
21
-33
1
0
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 74 col2 FROM tab0 AS cor0 WHERE - col1 - + - col1 + - col2 = NULL
----

query I rowsort
SELECT ALL + col0 + - - 38 FROM tab0 cor0
----
125
135
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT DISTINCT col0 + + - 15 * - + col1, + CAST( NULL AS SIGNED ) AS col2, + col0 col0 FROM tab0 AS cor0
----
9 values hashing to 8962de190b24d482a296877caa2c1189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3853
SELECT DISTINCT col0 + + - 15 * - + col1, + CAST ( NULL AS INTEGER ) AS col2, + col0 col0 FROM tab0 AS cor0
----
9 values hashing to 8962de190b24d482a296877caa2c1189

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT COUNT( * ) - MAX( DISTINCT + + col1 ) * + COUNT( * ) + - + 76 AS col1 FROM tab1
----
-214

skipif mysql # not compatible
query I rowsort label-3854
SELECT COUNT ( * ) - MAX ( DISTINCT + + col1 ) * + COUNT ( * ) + - + 76 AS col1 FROM tab1
----
-214

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT - SUM( + col2 ) - 39 - + - COUNT( * ) AS col0 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-3855
SELECT - SUM ( + col2 ) - 39 - + - COUNT ( * ) AS col0 FROM tab0
----
-192

query I rowsort
SELECT col2 + 68 FROM tab1
----
127
136
164

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 26
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3858
SELECT 90 + - MAX( + col0 ) AS col1 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3858
SELECT 90 + - MAX ( + col0 ) AS col1 FROM tab2
----
15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - col2 * + 69
----

query I rowsort
SELECT DISTINCT ( - 76 ) AS col0 FROM tab1
----
-76

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3862
SELECT DISTINCT + col2 + - col1 + + + CAST( + col2 AS SIGNED ) + + + col0 * col2 - + + 93 AS col2, - col2 - - 56 + - 15 * + col2 FROM tab0 AS cor0
----
625
-696
776
-104
9707
-1528

skipif mysql # not compatible
query II rowsort label-3862
SELECT DISTINCT + col2 + - col1 + + + CAST ( + col2 AS INTEGER ) + + + col0 * col2 - + + 93 AS col2, - col2 - - 56 + - 15 * + col2 FROM tab0 AS cor0
----
625
-696
776
-104
9707
-1528

query I rowsort
SELECT ALL 45 + + col1 + 96 FROM tab2 AS cor0
----
192
208
218

query III rowsort
SELECT ALL * FROM tab2 WHERE + 96 * ( - 8 ) <= + + 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT - COUNT( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3865
SELECT - COUNT ( * ) AS col1 FROM tab2, tab1 AS cor0
----
-9

query I rowsort
SELECT - col0 * + col1 * + col2 AS col2 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ALL + 15 * + col1 AS col2 FROM tab0
----
1215
15
315

query I rowsort
SELECT - - 49 AS col0 FROM tab2 cor0
----
49
49
49

query I rowsort
SELECT DISTINCT - - 67 AS col2 FROM tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3870
SELECT ALL - - ( - MIN( col0 ) ) FROM tab0 AS cor0 WHERE + col2 <= - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3870
SELECT ALL - - ( - MIN ( col0 ) ) FROM tab0 AS cor0 WHERE + col2 <= - col2
----
NULL

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + col0, col1 FROM tab2 cor0 WHERE NOT ( NULL ) <> NULL
----

query I rowsort
SELECT DISTINCT - 69 * - col0 - - col0 FROM tab2 AS cor0
----
3220
4480
5250

query I rowsort
SELECT ALL 19 * - 29 AS col0 FROM tab0
----
-551
-551
-551

query II rowsort
SELECT col1, col2 * - + 28 FROM tab1
----
14
-2688
47
-1904
5
-1652

query I rowsort
SELECT ALL + ( + col2 ) * - + col2 AS col1 FROM tab1
----
-3481
-4624
-9216

query I rowsort
SELECT ( - col0 ) + + + col2 FROM tab2
----
-17
-23
-24

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 21 / + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 * col2 AS col0 FROM tab1
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT - 36 * + COUNT( - + 23 ) FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT - 36 * + COUNT ( - + 23 ) FROM tab0
----
-108

query I rowsort
SELECT + + 10 AS col1 FROM tab0 WHERE NOT + 22 * col2 IS NOT NULL
----

query I rowsort
SELECT col0 + - + col1 AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT DISTINCT + ( - COUNT( * ) ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-3884
SELECT DISTINCT + ( - COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-9

query I rowsort
SELECT ( + col0 ) FROM tab2 WHERE + col2 BETWEEN + - col2 AND - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT + + col2 + - col0 DIV 32 FROM tab0 AS cor0
----
47
8
96

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT + + col2 + - col0 / 32 FROM tab0 AS cor0
----
47
8
96

query I rowsort
SELECT col0 * - + 41 * + 79 * - - 75 + + col1 AS col2 FROM tab1 AS cor0
----
-12389161
-20648620
-22106128

query I rowsort
SELECT ALL - - col2 + 1 AS col1 FROM tab0 AS cor0
----
100
11
48

query II rowsort
SELECT DISTINCT - col0, + col1 + + 72 AS col0 FROM tab1
----
-51
86
-85
77
-91
119

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT + COUNT( * ) * + SUM( + 64 ) FROM tab0 AS cor0
----
576

skipif mysql # not compatible
query I rowsort label-3890
SELECT + COUNT ( * ) * + SUM ( + 64 ) FROM tab0 AS cor0
----
576

query II rowsort
SELECT col1 AS col0, + col2 * - - col0 AS col1 FROM tab2 AS cor0
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3892
SELECT CAST( - 4 AS SIGNED ) + col1 * 90 AS col2 FROM tab2
----
4586
6026
6926

skipif mysql # not compatible
query I rowsort label-3892
SELECT CAST ( - 4 AS INTEGER ) + col1 * 90 AS col2 FROM tab2
----
4586
6026
6926

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3894
SELECT * FROM tab0 WHERE col2 >= - col1 / CAST( - col2 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3894
SELECT * FROM tab0 WHERE col2 >= - col1 / CAST ( - col2 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3895
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE NOT ( col1 ) = - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3895
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( col1 ) = - CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 2 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3897
SELECT * FROM tab0 WHERE NOT ( + ( 35 ) + + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3897
SELECT * FROM tab0 WHERE NOT ( + ( 35 ) + + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 / - 32 >= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3899
SELECT SUM( DISTINCT col2 ) AS col2 FROM tab0 WHERE + col1 BETWEEN 41 * - col0 AND col1 + 21
----
156

skipif mysql # not compatible
query I rowsort label-3899
SELECT SUM ( DISTINCT col2 ) AS col2 FROM tab0 WHERE + col1 BETWEEN 41 * - col0 AND col1 + 21
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3900
SELECT DISTINCT + ( + CAST( col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3900
SELECT DISTINCT + ( + CAST ( col0 AS INTEGER ) ) FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3901
SELECT ALL + 50 AS col0 FROM tab1 WHERE - CAST( NULL AS SIGNED ) IN ( + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL + 50 AS col0 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) IN ( + CAST ( col2 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3902
SELECT - COUNT( * ) * + 63 + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3902
SELECT - COUNT ( * ) * + 63 + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 9 + col0 col2 FROM tab0
----
106
24
96

query I rowsort
SELECT DISTINCT col2 * 38 + 6 FROM tab0
----
1792
3768
386

query I rowsort
SELECT - 55 FROM tab0 WHERE NOT ( col0 ) IS NULL
----
-55
-55
-55

query I rowsort
SELECT 32 + + col2 FROM tab0
----
131
42
79

onlyif mysql # DIV for integer division: 
query I rowsort label-3907
SELECT 1 DIV + col2 + - 2 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3907
SELECT 1 / + col2 + - 2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT DISTINCT 57 + + ( - col0 ) AS col2 FROM tab0
----
-30
-40
42

query I rowsort
SELECT + 82 * + col0 + + col0 FROM tab2 WHERE col0 + col2 < col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - col1 col1 FROM tab1
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3911
SELECT COUNT( * ) - + COUNT( * ) * + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3911
SELECT COUNT ( * ) - + COUNT ( * ) * + COUNT ( * ) FROM tab0
----
-6

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 * + 72 + col2 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3913
SELECT col1 * col1 + + 58 DIV 61 col1 FROM tab0 AS cor0
----
1
441
6561

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3913
SELECT col1 * col1 + + 58 / 61 col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - 48 + col1 AS col0 FROM tab1 AS cor0
----
-1
-34
-43

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 73 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 45 > col2
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3917
SELECT - + col2 DIV + CAST( col1 * - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3917
SELECT - + col2 / + CAST ( col1 * - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + + CAST( NULL AS SIGNED ) IS NOT NULL
----
62

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT 62 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
62

query I rowsort
SELECT DISTINCT + + 93 + - col0 FROM tab0 AS cor0
----
-4
6
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3920
SELECT ALL - 86 + COUNT( * ) col2 FROM tab1 AS cor0
----
-83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3920
SELECT ALL - 86 + COUNT ( * ) col2 FROM tab1 AS cor0
----
-83

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 - - col2 AS col2 FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3923
SELECT DISTINCT - 97 + MIN( - 6 ) col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3923
SELECT DISTINCT - 97 + MIN ( - 6 ) col2 FROM tab0 AS cor0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3924
SELECT col2 - + CAST( NULL AS SIGNED ) * + ( - col0 + col1 ) 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-3924
SELECT col2 - + CAST ( NULL AS INTEGER ) * + ( - col0 + col1 ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + col2 + + col1 col2 FROM tab2 AS cor0
----
-1007
-2483
-4283

query I rowsort
SELECT 85 / 89 AS col2 FROM tab0 AS cor0 WHERE NULL = col0
----

query I rowsort
SELECT - 93 - - col0 AS col1 FROM tab2 AS cor0
----
-18
-29
-47

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE - ( + col0 ) * - col1 NOT BETWEEN NULL AND + col2
----
15
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3929
SELECT CAST( col2 AS SIGNED ) + col2 AS col0 FROM tab1 WHERE + 42 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3929
SELECT CAST ( col2 AS INTEGER ) + col2 AS col0 FROM tab1 WHERE + 42 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT DISTINCT - ( 91 ) - COUNT( * ) AS col2 FROM tab2
----
-94

skipif mysql # not compatible
query I rowsort label-3931
SELECT DISTINCT - ( 91 ) - COUNT ( * ) AS col2 FROM tab2
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - MIN( + ( col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-3932
SELECT - MIN ( + ( col2 ) ) FROM tab2
----
-23

query I rowsort
SELECT col2 * col1 * + col0 AS col1 FROM tab0
----
18270
57105
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3934
SELECT - COUNT( ALL + - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3934
SELECT - COUNT ( ALL + - col2 ) FROM tab2
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT + CAST( - - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3935
SELECT + CAST ( - - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 / col2 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT DISTINCT + COUNT( + 67 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT + COUNT ( + 67 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 40 AS col2 FROM tab0 AS cor0 WHERE NOT ( 62 ) NOT BETWEEN + col0 / + 38 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col1 ) <> ( col0 ) AND NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * col1 - + 93 FROM tab2 WHERE + + ( + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 AS col0, - col0 col0 FROM tab0
----
10
-87
47
-15
99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3942
SELECT 63 * 98 DIV - 70 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3942
SELECT 63 * 98 / - 70 col1 FROM tab0, tab2 AS cor0
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-3943
SELECT DISTINCT 71 * - COUNT( * ) FROM tab1, tab0 AS cor0
----
-639

skipif mysql # not compatible
query I rowsort label-3943
SELECT DISTINCT 71 * - COUNT ( * ) FROM tab1, tab0 AS cor0
----
-639

onlyif mysql # DIV for integer division: 
query III rowsort label-3944
SELECT * FROM tab0 AS cor0 WHERE NOT col2 DIV + + 90 <> + col1
----
97
1
99

skipif mysql # not compatible
query III rowsort label-3944
SELECT * FROM tab0 AS cor0 WHERE NOT col2 / + + 90 <> + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT ALL SUM( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3945
SELECT ALL SUM ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT AVG ( ALL 25 ) FROM tab2 AS cor0 WHERE NOT + col0 + 99 + 58 * 44 > - col2 * + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3947
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 35 * + - col0 ) NOT IN ( col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3947
SELECT ALL * FROM tab0 AS cor0 WHERE ( + 35 * + - col0 ) NOT IN ( col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3948
SELECT DISTINCT - col0 * - col0 - - col0 - - 66 DIV 36 AS col2 FROM tab1 cor0
----
2653
7311
8373

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT - col0 * - col0 - - col0 - - 66 / 36 AS col2 FROM tab1 cor0
----
2653
7311
8373

onlyif mysql # aggregate syntax: 
query I rowsort label-3949
SELECT ALL - - ( + COUNT( col2 ) ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3949
SELECT ALL - - ( + COUNT ( col2 ) ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + 22 - 54 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT ALL - MIN( DISTINCT - col2 ) + AVG ( ( + 61 ) - - col2 * + col1 ) / COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 * 96 - 43 ) AND col1 + 50
----
NULL

skipif mysql # not compatible
query I rowsort label-3951
SELECT ALL - MIN ( DISTINCT - col2 ) + AVG ( ( + 61 ) - - col2 * + col1 ) / COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN ( - col0 * 96 - 43 ) AND col1 + 50
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT DISTINCT 11 * - COUNT( * ) FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3952
SELECT DISTINCT 11 * - COUNT ( * ) FROM tab2
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3953
SELECT DISTINCT - COUNT( ALL col0 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3953
SELECT DISTINCT - COUNT ( ALL col0 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + - col0 ) NOT IN ( 77 + + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3955
SELECT + COUNT( * ) / CAST( NULL AS SIGNED ) + - 7 * - + 47 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3955
SELECT + COUNT ( * ) / CAST ( NULL AS INTEGER ) + - 7 * - + 47 AS col1 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col1 >= - + 73
----
46
51
23
75
67
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3959
SELECT * FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) BETWEEN ( + col0 + + - col0 ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-3959
SELECT * FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( + col0 + + - col0 ) AND - col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE + col0 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT NULL NOT BETWEEN - - col2 AND col2 + + 5 )
----

query I rowsort
SELECT DISTINCT - 3 FROM tab2 AS cor0 WHERE NOT ( + 51 ) BETWEEN 25 AND col0
----
-3

query I rowsort
SELECT + + 57 * 87 * + col0 FROM tab0 cor0 WHERE + col0 < NULL
----

query I rowsort
SELECT ALL col0 - - + 51 FROM tab1 AS cor0
----
102
136
142

query I rowsort
SELECT + 35 * + col1 AS col1 FROM tab1 AS cor0
----
1645
175
490

query I rowsort
SELECT DISTINCT 20 AS col0 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT DISTINCT + - ( - SUM( DISTINCT col0 ) ) AS col1 FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-3967
SELECT DISTINCT + - ( - SUM ( DISTINCT col0 ) ) AS col1 FROM tab0 cor0
----
199

query I rowsort
SELECT ALL + 79 + + - 37 FROM tab1 AS cor0
----
42
42
42

query I rowsort
SELECT DISTINCT - 29 + + + col1 + col1 AS col1 FROM tab2 AS cor0
----
105
125
73

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 40 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 41 * - col2 <= + ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3972
SELECT + ( + COUNT( * ) ) * - COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3972
SELECT + ( + COUNT ( * ) ) * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL - col0 * + 73 + + + 81 + + col2 FROM tab0 AS cor0
----
-6260
-6901
-967

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 + - 76 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 * ( - + col0 ) col0, 40 * - - 84 + + col0 AS col1 FROM tab0 AS cor0
----
705
3375
870
3447
9603
3457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3976
SELECT + CAST( COUNT( + ( col2 ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3976
SELECT + CAST ( COUNT ( + ( col2 ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3977
SELECT ALL - col2 DIV + + col1 + + col2 + + col2 + - col2 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3977
SELECT ALL - col2 / + + col1 + + col2 + + col2 + - col2 FROM tab2 AS cor0
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - ( + - 8 ) ) col2 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT SUM( DISTINCT 7 ) FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-3979
SELECT SUM ( DISTINCT 7 ) FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT 61 * - COUNT( * ) AS col2 FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-3980
SELECT 61 * - COUNT ( * ) AS col2 FROM tab1
----
-183

query I rowsort
SELECT ALL + + col0 * - ( - 38 ) FROM tab2 WHERE NOT NULL > + col1
----

query I rowsort
SELECT ALL + 13 * col1 + + + col0 FROM tab2 WHERE - col1 IS NOT NULL
----
1065
709
946

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL - MAX( + + 74 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL - MAX ( + + 74 ) FROM tab1
----
-74

query I rowsort
SELECT DISTINCT - col2 * + - 78 FROM tab1
----
4602
5304
7488

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT DISTINCT ( COUNT( * ) ) * - + 26 * - 83 col1 FROM tab0
----
6474

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3985
SELECT DISTINCT ( COUNT ( * ) ) * - + 26 * - 83 col1 FROM tab0
----
6474

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3986
SELECT * FROM tab2 AS cor0 WHERE NOT 84 + - ( + col0 ) + col0 * 5 * ( + col1 ) + 49 = + CAST( + 30 AS SIGNED ) * 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3986
SELECT * FROM tab2 AS cor0 WHERE NOT 84 + - ( + col0 ) + col0 * 5 * ( + col1 ) + 49 = + CAST ( + 30 AS INTEGER ) * 7
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 34 * - 95 col1 FROM tab1 AS cor0
----
-3230

onlyif mysql # aggregate syntax: 
query I rowsort label-3988
SELECT DISTINCT - COUNT( * ) * + + MIN( - + 34 ) FROM tab0 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3988
SELECT DISTINCT - COUNT ( * ) * + + MIN ( - + 34 ) FROM tab0 AS cor0
----
102

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT + 77 AS col1, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
77
3

skipif mysql # not compatible
query II rowsort label-3989
SELECT + 77 AS col1, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
77
3

query I rowsort
SELECT col0 + ( - + col2 ) - col1 AS col0 FROM tab1
----
-24
-59
21

query I rowsort
SELECT ALL - 85 + - 64 FROM tab1 AS cor0
----
-149
-149
-149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + + col1 / 23 * + col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 BETWEEN - - ( - 10 ) + + + 42 / + 54 * + - 37 * 86 AND col0
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-3996
SELECT DISTINCT - 75, + COUNT( * ) col0 FROM tab1
----
-75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3996
SELECT DISTINCT - 75, + COUNT ( * ) col0 FROM tab1
----
-75
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3997
SELECT + 61 DIV col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3997
SELECT + 61 / col1 FROM tab2
----
0
0
1

query I rowsort
SELECT ALL 55 + - col0 + - 66 * + col1 AS col0 FROM tab0
----
-108
-1418
-5306

query I rowsort
SELECT col0 + + col2 + - + 4 AS col2 FROM tab1
----
140
143
155

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4000
SELECT ALL - 92 + + COUNT( * ) DIV 94 * - - 98 AS col1 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-4000
SELECT ALL - 92 + + COUNT ( * ) / 94 * - - 98 AS col1 FROM tab2
----
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4001
SELECT + 42 + col0 DIV - - 55 FROM tab1
----
42
43
43

skipif mysql # not compatible
query I rowsort label-4001
SELECT + 42 + col0 / - - 55 FROM tab1
----
42
43
43

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT - + MAX( - CAST( + 9 AS SIGNED ) ) + + - 35 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-4002
SELECT - + MAX ( - CAST ( + 9 AS INTEGER ) ) + + - 35 FROM tab1 AS cor0
----
-26

query I rowsort
SELECT + ( - col2 ) + + col1 + + col2 * + col1 FROM tab0 AS cor0
----
1
221
3841

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT + MIN( col2 ) + + + 36 * - - COUNT( col1 ) AS col0 FROM tab1 AS cor0
----
167

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT + MIN ( col2 ) + + + 36 * - - COUNT ( col1 ) AS col0 FROM tab1 AS cor0
----
167

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT + 49 * 49 + + + MIN( DISTINCT - + 50 ) * - 94 + 21 FROM tab1 AS cor0
----
7122

skipif mysql # not compatible
query I rowsort label-4005
SELECT + 49 * 49 + + + MIN ( DISTINCT - + 50 ) * - 94 + 21 FROM tab1 AS cor0
----
7122

query I rowsort
SELECT - 23 FROM tab0 AS cor0 WHERE ( 3 ) IN ( 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col0 - - col1 col0 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4008
SELECT - + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4008
SELECT - + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT - SUM( DISTINCT - - 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-4009
SELECT - SUM ( DISTINCT - - 32 ) FROM tab0
----
-32

query I rowsort
SELECT DISTINCT + col1 * - col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4011
SELECT COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT - - MAX( - col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4012
SELECT - - MAX ( - col1 ) FROM tab2 AS cor0
----
-51

query I rowsort
SELECT - 66 * + col2 FROM tab2 AS cor0
----
-1518
-2640
-3828

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 >= - 48
----

query I rowsort
SELECT + col0 * - 86 FROM tab0 AS cor0
----
-1290
-7482
-8342

query I rowsort
SELECT ALL + ( - 76 ) AS col0 FROM tab0 AS cor0
----
-76
-76
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-4017
SELECT ALL COUNT( ALL - 34 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4017
SELECT ALL COUNT ( ALL - 34 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL + COUNT( DISTINCT - col1 ) * ( 59 ) AS col2 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL + COUNT ( DISTINCT - col1 ) * ( 59 ) AS col2 FROM tab1
----
177

query I rowsort
SELECT - ( 77 ) FROM tab0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT + MIN( ALL col0 ) FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-4020
SELECT + MIN ( ALL col0 ) FROM tab0
----
15

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4021
SELECT - col0 * - CAST( NULL AS SIGNED ) * - CAST( + + col2 AS DECIMAL ) col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4021
SELECT - col0 * - CAST ( NULL AS INTEGER ) * - CAST ( + + col2 AS REAL ) col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 FROM tab0 WHERE NOT col0 + + 34 + col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT + 11 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col1 * + col0 + - col2 AS col0, col1 * 78 * - col0 AS col2 FROM tab0 AS cor0
----
-2
-7566
1168
-94770
1817
-142506

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT DISTINCT - + MIN( ALL 7 ) AS col2 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-4025
SELECT DISTINCT - + MIN ( ALL 7 ) AS col2 FROM tab2 AS cor0
----
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-4026
SELECT ALL COUNT( * ) + + 37 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + + col0 + + + 98 AND - col2
----
37

skipif mysql # not compatible
query I rowsort label-4026
SELECT ALL COUNT ( * ) + + 37 AS col1 FROM tab2 WHERE NULL NOT BETWEEN + + col0 + + + 98 AND - col2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4027
SELECT DISTINCT + 74 * col2 * - 32 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4027
SELECT DISTINCT + 74 * col2 * - 32 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 + - ( col1 ) AS col2 FROM tab2 AS cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * 95 + + col1 col2 FROM tab1 AS cor0
----
6275
6284
6317

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT + - 75 + + COUNT( * ) * 10 AS col0 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4030
SELECT + - 75 + + COUNT ( * ) * 10 AS col0 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT DISTINCT - col0 / + + col1 + col2 - + + col1 + 19 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4032
SELECT CAST( NULL AS SIGNED ) + - col1 + 29 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4032
SELECT CAST ( NULL AS INTEGER ) + - col1 + 29 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4033
SELECT + col2 DIV col2 AS col2, - col0 AS col1 FROM tab0
----
1
-15
1
-87
1
-97

skipif mysql # not compatible
query II rowsort label-4033
SELECT + col2 / col2 AS col2, - col0 AS col1 FROM tab0
----
1
-15
1
-87
1
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT COUNT( - + col0 ) * + - 54 * + + MAX( col0 ) AS col0 FROM tab2
----
-12150

skipif mysql # not compatible
query I rowsort label-4034
SELECT COUNT ( - + col0 ) * + - 54 * + + MAX ( col0 ) AS col0 FROM tab2
----
-12150

query I rowsort
SELECT DISTINCT - + col2 * - - 7 FROM tab2 WHERE NOT + col0 IS NULL
----
-161
-280
-406

query I rowsort
SELECT + + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15
87
97

query I rowsort
SELECT - - col0 + + col1 - - ( + - col2 ) AS col1 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT - - col2 - ( + col0 ) AS col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT + COUNT( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4039
SELECT + COUNT ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT COUNT( * ) * COUNT( * ) AS col1 FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4040
SELECT COUNT ( * ) * COUNT ( * ) AS col1 FROM tab0 cor0
----
9

query I rowsort
SELECT - - 70 * + col1 FROM tab0 AS cor0
----
1470
5670
70

query I rowsort
SELECT DISTINCT + ( + + 79 ) AS col1 FROM tab0 AS cor0
----
79

query I rowsort
SELECT + ( + + 18 ) * + + 4 FROM tab2 AS cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT - col2 DIV + col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 - + ( - col1 ) + ( + col2 ) * - - 46 IS NOT NULL ) )
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4044
SELECT - col2 / + col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( col0 - + ( - col1 ) + ( + col2 ) * - - 46 IS NOT NULL ) )
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4045
SELECT - - COUNT( DISTINCT - 44 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4045
SELECT - - COUNT ( DISTINCT - 44 ) FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= ( + col1 ) / col1
----

query II rowsort
SELECT ALL - ( - col2 ), + col0 * + col1 AS col1 FROM tab0
----
10
1827
47
1215
99
97

query I rowsort
SELECT + col2 * + col1 * col2 AS col2 FROM tab1
----
129024
17405
217328

query I rowsort
SELECT DISTINCT ( col2 ) * + + ( + + 96 ) AS col2 FROM tab1
----
5664
6528
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4050
SELECT ALL 25 * + MIN( col0 ) AS col1 FROM tab1
----
1275

skipif mysql # not compatible
query I rowsort label-4050
SELECT ALL 25 * + MIN ( col0 ) AS col1 FROM tab1
----
1275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT - 80 + 30 - - 45 - + + 97 + + col2 * - ( - - CAST( NULL AS SIGNED ) ) * + + col1 * + - ( 44 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4051
SELECT - 80 + 30 - - 45 - + + 97 + + col2 * - ( - - CAST ( NULL AS INTEGER ) ) * + + col1 * + - ( 44 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 82 * col2 FROM tab0
----
3854
8118
820

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT - 56 * COUNT( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-168

skipif mysql # not compatible
query I rowsort label-4053
SELECT - 56 * COUNT ( * ) AS col2 FROM tab0 WHERE NULL IS NULL
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4054
SELECT DISTINCT - 75 + - CAST( MIN( DISTINCT + ( 83 ) ) AS SIGNED ) AS col1 FROM tab1
----
-158

skipif mysql # not compatible
query I rowsort label-4054
SELECT DISTINCT - 75 + - CAST ( MIN ( DISTINCT + ( 83 ) ) AS INTEGER ) AS col1 FROM tab1
----
-158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT ALL - + COUNT( * ) + - + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4055
SELECT ALL - + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT DISTINCT + ( - 65 ) + + col0 * - - 94 AS col0 FROM tab1 AS cor0
----
4729
7925
8489

query I rowsort
SELECT - ( + + col0 ) AS col1 FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4058
SELECT ALL - 47 + + MAX( - CAST( col2 AS SIGNED ) ) * - + ( - + 64 ) FROM tab2 AS cor0
----
-1519

skipif mysql # not compatible
query I rowsort label-4058
SELECT ALL - 47 + + MAX ( - CAST ( col2 AS INTEGER ) ) * - + ( - + 64 ) FROM tab2 AS cor0
----
-1519

onlyif mysql # aggregate syntax: 
query I rowsort label-4059
SELECT - MAX( col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4059
SELECT - MAX ( col2 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT MAX( ALL 9 ) - - COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-4060
SELECT MAX ( ALL 9 ) - - COUNT ( * ) FROM tab1
----
12

query I rowsort
SELECT col1 - - ( col1 ) FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4062
SELECT col1 AS col2, 14 - CAST( ( + - col2 ) AS SIGNED ) AS col1 FROM tab2 WHERE col0 IS NULL
----

skipif mysql # not compatible
query II rowsort label-4062
SELECT col1 AS col2, 14 - CAST ( ( + - col2 ) AS INTEGER ) AS col1 FROM tab2 WHERE col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 71 col1, col0 AS col1 FROM tab1
----
71
51
71
85
71
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4064
SELECT + col1 DIV - 48 + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-4064
SELECT + col1 / - 48 + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col2 + - + 67 col2 FROM tab2
----
-136
-171
-200

query III rowsort
SELECT * FROM tab2 WHERE - col1 * - + 83 + + ( - + 92 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 61, + col1 FROM tab0
----
61
1
61
21
61
81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - + 32 NOT BETWEEN + 84 AND + + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4070
SELECT ALL col1 * - col2 - + 52 * - 70 + + 39 + + 38 / ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4070
SELECT ALL col1 * - col2 - + 52 * - 70 + + 39 + + 38 / ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT ( col1 * + + 33 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * + - 90 FROM tab2
----
-4140
-5760
-6750

query II rowsort
SELECT ( + + 98 ) AS col0, - col2 FROM tab1
----
98
-59
98
-68
98
-96

query I rowsort
SELECT ( + - 33 ) * - col0 AS col2 FROM tab1 AS cor0
----
1683
2805
3003

query I rowsort
SELECT + col1 * 26 * + 36 * col0 + + col1 AS col2 FROM tab0 AS cor0
----
1137321
1710093
90793

query II rowsort
SELECT - col0 * 11 AS col1, + 28 FROM tab1 AS cor0
----
-1001
28
-561
28
-935
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4078
SELECT DISTINCT COUNT( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4078
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT DISTINCT + - MIN( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4079
SELECT DISTINCT + - MIN ( DISTINCT + 21 ) AS col2 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT ( COUNT( * ) ) * SUM( DISTINCT + col1 ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-4080
SELECT ( COUNT ( * ) ) * SUM ( DISTINCT + col1 ) FROM tab2 AS cor0
----
585

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4081
SELECT ALL - col0 AS col2, + CAST( NULL AS DECIMAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-4081
SELECT ALL - col0 AS col2, + CAST ( NULL AS REAL ) FROM tab1
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4082
SELECT - ( 60 ) DIV - - ( - + ( ( - - COUNT( * ) ) ) ) + + - MAX( + col1 ) - - COUNT( + 89 ) FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-4082
SELECT - ( 60 ) / - - ( - + ( ( - - COUNT ( * ) ) ) ) + + - MAX ( + col1 ) - - COUNT ( + 89 ) FROM tab1
----
-24

query I rowsort
SELECT + col1 FROM tab0 WHERE NOT + 27 / + 56 IS NOT NULL
----

query I rowsort
SELECT + col2 + 84 AS col1 FROM tab2
----
107
124
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4085
SELECT ALL 42 DIV + + col1 + + - col1 DIV + + col2 AS col0 FROM tab1
----
0
3
8

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL 42 / + + col1 + + - col1 / + + col2 AS col0 FROM tab1
----
0
3
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4086
SELECT ALL * FROM tab2 WHERE + - CAST( - col0 AS SIGNED ) < - 46 + + + col1
----

skipif mysql # not compatible
query III rowsort label-4086
SELECT ALL * FROM tab2 WHERE + - CAST ( - col0 AS INTEGER ) < - 46 + + + col1
----

query I rowsort
SELECT ALL 34 + col0 AS col2 FROM tab1
----
119
125
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4088
SELECT DISTINCT + - col0 * - + ( + 37 ) * + CAST( + ( CAST( NULL AS SIGNED ) ) AS SIGNED ) + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4088
SELECT DISTINCT + - col0 * - + ( + 37 ) * + CAST ( + ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) + + col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + + 80 * + col1 AS col1 FROM tab1 AS cor0
----
1120
3760
400

query I rowsort
SELECT ALL - col0 * col1 * + - col0 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4091
SELECT ALL COUNT( * ) * - 58 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-4091
SELECT ALL COUNT ( * ) * - 58 FROM tab0
----
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT col1 DIV - 3 AS col1 FROM tab0
----
-27
-7
0

skipif mysql # not compatible
query I rowsort label-4092
SELECT col1 / - 3 AS col1 FROM tab0
----
-27
-7
0

query I rowsort
SELECT ALL + 41 * - + col0 * + + col2 * - col1 FROM tab2
----
11949450
2212278
8081920

query III rowsort
SELECT * FROM tab2 WHERE ( + 69 ) + - + 73 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * + col1 + col2 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT DISTINCT - 29 + + + col2 FROM tab1 AS cor0
----
30
39
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4097
SELECT ALL + col1 / CAST( NULL AS SIGNED ), + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-4097
SELECT ALL + col1 / CAST ( NULL AS INTEGER ), + col1 AS col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4098
SELECT DISTINCT - 90 + - - col0, CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3
NULL
-75
NULL
7
NULL

skipif mysql # not compatible
query II rowsort label-4098
SELECT DISTINCT - 90 + - - col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3
NULL
-75
NULL
7
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4099
SELECT ALL - col0 + + col0 * + - CAST( + + col0 AS SIGNED ) * + + 98 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4099
SELECT ALL - col0 + + col0 * + - CAST ( + + col0 AS INTEGER ) * + + 98 FROM tab0 AS cor0 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT 35 * - col0 + - 97 + + 21 AS col0 FROM tab1 AS cor0
----
-1861
-3051
-3261

query I rowsort
SELECT ALL - + 52 * col1 + 62 FROM tab2 AS cor0
----
-2590
-3422
-3942

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4102
SELECT ALL - MIN( ALL col2 ) DIV + 30 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4102
SELECT ALL - MIN ( ALL col2 ) / + 30 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT 75 DIV ( - - col2 ) FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4103
SELECT 75 / ( - - col2 ) FROM tab0
----
0
1
7

query I rowsort
SELECT col2 * ( - 93 ) * 20 + + col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL col2 * - - CAST( NULL AS SIGNED ) + - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL col2 * - - CAST ( NULL AS INTEGER ) + - + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( + 53 ) FROM tab2
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT SUM( ALL - + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT SUM ( ALL - + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4109
SELECT + ( - CAST( NULL AS SIGNED ) ) * - CAST( NULL AS SIGNED ) AS col0, col0 * 26 - + col1 col1 FROM tab2 AS cor0
----
NULL
1145
NULL
1587
NULL
1883

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4109
SELECT + ( - CAST ( NULL AS INTEGER ) ) * - CAST ( NULL AS INTEGER ) AS col0, col0 * 26 - + col1 col1 FROM tab2 AS cor0
----
NULL
1145
NULL
1587
NULL
1883

onlyif mysql # aggregate syntax: 
query II rowsort label-4110
SELECT 94 col2, COUNT( * ) AS col2 FROM tab1 AS cor0
----
94
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4110
SELECT 94 col2, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
94
3

query II rowsort
SELECT - - col2 AS col1, col2 - - col1 AS col1 FROM tab0 AS cor0
----
10
31
47
128
99
100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, col1 AS col1 FROM tab0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT DISTINCT + 96 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4114
SELECT ALL + col0, CAST( NULL AS SIGNED ) * col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4114
SELECT ALL + col0, CAST ( NULL AS INTEGER ) * col2 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT ALL COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4115
SELECT ALL COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-4116
SELECT - - 31 DIV ( - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4116
SELECT - - 31 / ( - col0 ) AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4117
SELECT ALL - - col0 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4117
SELECT ALL - - col0 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + 12, - 62 AS col0 FROM tab0 AS cor0
----
12
-62
12
-62
12
-62

query II rowsort
SELECT - 54, 79 * - 29 AS col2 FROM tab2 AS cor0
----
-54
-2291
-54
-2291
-54
-2291

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN 59 / + - col2 + + col1 - - 92 * col0 * + col0 * - - col1 AND - 81
----

onlyif mysql # DIV for integer division: 
query III rowsort label-4121
SELECT ALL - col0, + col0 col0, - - 95 * - col0 DIV col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to d6338a06e6b5b59fa62255dbb5a508e5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4121
SELECT ALL - col0, + col0 col0, - - 95 * - col0 / col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to d6338a06e6b5b59fa62255dbb5a508e5

onlyif mysql # aggregate syntax: 
query I rowsort label-4122
SELECT ALL - MIN( - 11 ) AS col0 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4122
SELECT ALL - MIN ( - 11 ) AS col0 FROM tab1 AS cor0
----
11

query II rowsort
SELECT - col2, + 40 AS col0 FROM tab1 AS cor0
----
-59
40
-68
40
-96
40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 54 IN ( - 64, + col0, - 53 )
----

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT DISTINCT + MAX( - - CAST( NULL AS SIGNED ) ) + + + 85 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT + MAX ( - - CAST ( NULL AS INTEGER ) ) + + + 85 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL - col0 + + col0 FROM tab1 WHERE NOT + 33 IS NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4128
SELECT ALL CAST( + - 6 AS SIGNED ) col2, col2 col2 FROM tab0 AS cor0 WHERE 36 > - + col2
----
-6
10
-6
47
-6
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4128
SELECT ALL CAST ( + - 6 AS INTEGER ) col2, col2 col2 FROM tab0 AS cor0 WHERE 36 > - + col2
----
-6
10
-6
47
-6
99

query I rowsort
SELECT DISTINCT + 2 * + col0 + + + col0 FROM tab0 AS cor0
----
261
291
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT ALL MIN( DISTINCT - ( + 54 ) ) FROM tab2 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-4130
SELECT ALL MIN ( DISTINCT - ( + 54 ) ) FROM tab2 AS cor0
----
-54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4131
SELECT - - COUNT( ALL - CAST( - col2 AS SIGNED ) ) + + - 69 AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4131
SELECT - - COUNT ( ALL - CAST ( - col2 AS INTEGER ) ) + + - 69 AS col2 FROM tab1 AS cor0
----
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-4132
SELECT ALL + COUNT( * ) AS col2, - COUNT( * ) * 42 * COUNT( * ) + + + 83 AS col0 FROM tab0
----
3
-295

skipif mysql # not compatible
query II rowsort label-4132
SELECT ALL + COUNT ( * ) AS col2, - COUNT ( * ) * 42 * COUNT ( * ) + + + 83 AS col0 FROM tab0
----
3
-295

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4133
SELECT + col0 DIV + col2 AS col0 FROM tab1 WHERE + + CAST( NULL AS SIGNED ) * - 87 DIV + col2 - - col1 IS NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4133
SELECT + col0 / + col2 AS col0 FROM tab1 WHERE + + CAST ( NULL AS INTEGER ) * - 87 / + col2 - - col1 IS NULL
----
0
1
1

query I rowsort
SELECT + 56 * + 86 FROM tab2
----
4816
4816
4816

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col0
----

query I rowsort
SELECT - col0 * - + col2 AS col0 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4137
SELECT - + col2 * + + col1 + 39 AS col2 FROM tab2 AS cor0 WHERE + ( + 5 ) IN ( - + CAST( - + col1 AS SIGNED ), 56, - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4137
SELECT - + col2 * + + col1 + 39 AS col2 FROM tab2 AS cor0 WHERE + ( + 5 ) IN ( - + CAST ( - + col1 AS INTEGER ), 56, - + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col1 * - + col2
----

query I rowsort
SELECT ALL col0 + - col2 * col1 + + col1 FROM tab2 AS cor0
----
-1076
-2939
-3744

query I rowsort
SELECT 64 - + - 81 * + 16 + + + 65 AS col0 FROM tab1 AS cor0
----
1425
1425
1425

query I rowsort
SELECT ALL - col0 + - 77 + + col1 FROM tab0 cor0
----
-11
-143
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-4142
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col0 FROM tab0 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4142
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col0 FROM tab0 cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4143
SELECT ALL ( - col1 ) * - - 33 - + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4143
SELECT ALL ( - col1 ) * - - 33 - + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 76 AS col2 FROM tab1, tab2 cor0
----
76

query I rowsort
SELECT ( - 93 ) * - + 46 + 54 FROM tab1
----
4332
4332
4332

onlyif mysql # DIV for integer division: 
query I rowsort label-4146
SELECT DISTINCT col2 * col2 - - 77 DIV + col0 + + col0 AS col0 FROM tab0
----
187
2229
9898

skipif mysql # not compatible
query I rowsort label-4146
SELECT DISTINCT col2 * col2 - - 77 / + col0 + + col0 AS col0 FROM tab0
----
187
2229
9898

query I rowsort
SELECT + col1 * ( + + col1 ) FROM tab0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT + MIN( - 87 ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT + MIN ( - 87 ) AS col0 FROM tab1 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT ALL - 53 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL - 53 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT + COUNT( * ) * COUNT( * ) * + 63 DIV + - COUNT( * ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT + COUNT ( * ) * COUNT ( * ) * + 63 / + - COUNT ( * ) FROM tab2 AS cor0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4151
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT - + col1 - - col0 * + col0 - + col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + col0 * ( - 40 ) FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT ALL + 7 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
7
7
7

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * col0 >= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL ( - 23 ) AS col0 FROM tab0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL col0 * col2 * + - CAST( + col0 AS SIGNED ) FROM tab2
----
-163840
-326250
-48668

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL col0 * col2 * + - CAST ( + col0 AS INTEGER ) FROM tab2
----
-163840
-326250
-48668

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT + col2 + - + col2 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT col0 + - col0 + + + 48 FROM tab1
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4161
SELECT ALL 69 * + COUNT( * ) + - 45 AS col1 FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL 69 * + COUNT ( * ) + - 45 AS col1 FROM tab1
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4162
SELECT - MIN( DISTINCT 95 ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-4162
SELECT - MIN ( DISTINCT 95 ) AS col2 FROM tab0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-4163
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-4163
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col2 FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 col1 FROM tab0 cor0 WHERE 91 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4166
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( + + col2 AS SIGNED ) * - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4166
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( + + col2 AS INTEGER ) * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4167
SELECT + COUNT( * ) * + 71 - 66 FROM tab2
----
147

skipif mysql # not compatible
query I rowsort label-4167
SELECT + COUNT ( * ) * + 71 - 66 FROM tab2
----
147

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4168
SELECT ALL 25 DIV + COUNT( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 81 DIV 7 * - 99 + + 19 BETWEEN + - 40 AND + + 1
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4168
SELECT ALL 25 / + COUNT ( * ) col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 81 / 7 * - 99 + + 19 BETWEEN + - 40 AND + + 1
----
2

query I rowsort
SELECT col1 + 28 + ( - 6 ) * - col2 AS col2 FROM tab0 AS cor0
----
109
391
623

query I rowsort
SELECT AVG ( - - 53 ) AS col2 FROM tab1 cor0 WHERE NULL NOT BETWEEN - col0 AND - ( + col0 ) * - col0
----
NULL

query I rowsort
SELECT + 84 AS col2 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
84
84
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4172
SELECT ALL 9 * col2 + - CAST( + 65 AS SIGNED ) + + - col2 * + col1 FROM tab2 AS cor0
----
-1031
-2785
-3429

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL 9 * col2 + - CAST ( + 65 AS INTEGER ) + + - col2 * + col1 FROM tab2 AS cor0
----
-1031
-2785
-3429

query I rowsort
SELECT DISTINCT - - col0 - + - 12 + - - 15 * + col0 FROM tab1 cor0
----
1372
1468
828

query I rowsort
SELECT ALL + 81 + + ( - col2 ) - + col1 AS col1 FROM tab2 AS cor0
----
-36
-44
7

query I rowsort
SELECT ALL - 98 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + col1 + + 83 + - 96 NOT BETWEEN + - col2 AND NULL
----

query II rowsort
SELECT + + col2, - col1 FROM tab1 AS cor0 WHERE + 91 IS NULL
----

query I rowsort
SELECT ALL + col2 * + col2 - 94 AS col2 FROM tab0 AS cor0
----
2115
6
9707

onlyif mysql # aggregate syntax: 
query I rowsort label-4179
SELECT MAX( DISTINCT + col2 ) col1 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4179
SELECT MAX ( DISTINCT + col2 ) col1 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT - MAX( DISTINCT 72 ) AS col2 FROM tab2
----
-72

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT - MAX ( DISTINCT 72 ) AS col2 FROM tab2
----
-72

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4181
SELECT ALL * FROM tab1 WHERE NOT - - col1 * + col2 + - col1 BETWEEN + col0 / + col0 AND + col0 * + + CAST( - col0 AS SIGNED ) + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4181
SELECT ALL * FROM tab1 WHERE NOT - - col1 * + col2 + - col1 BETWEEN + col0 / + col0 AND + col0 * + + CAST ( - col0 AS INTEGER ) + - 36
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - 30 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4182
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - 30 col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4183
SELECT + 65 * COUNT( * ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4183
SELECT + 65 * COUNT ( * ) AS col1 FROM tab2
----
195

query I rowsort
SELECT DISTINCT + ( - ( - col0 ) ) * - ( + + col1 ) FROM tab0
----
-1215
-1827
-97

query II rowsort
SELECT DISTINCT - col1, - ( ( + col1 ) ) FROM tab2
----
-51
-51
-67
-67
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT ALL - COUNT( * ) * - ( ( 39 ) ) * + + 81 AS col1 FROM tab0
----
9477

skipif mysql # not compatible
query I rowsort label-4186
SELECT ALL - COUNT ( * ) * - ( ( 39 ) ) * + + 81 AS col1 FROM tab0
----
9477

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4187
SELECT DISTINCT - ( + 50 ) DIV MIN( - col1 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4187
SELECT DISTINCT - ( + 50 ) / MIN ( - col1 ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4188
SELECT ALL AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4188
SELECT ALL AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col1 + + col1 * - + col0 AS col0 FROM tab2 AS cor0
----
-2295
-4851
-4958

query I rowsort
SELECT - col2 * - 65 * + 10 FROM tab0 AS cor0
----
30550
64350
6500

query I rowsort
SELECT - - 3 * - ( - - col0 ) * col1 * + + ( + col1 ) FROM tab0 AS cor0
----
-115101
-291
-295245

query I rowsort
SELECT ALL 36 * - col1 AS col0 FROM tab1
----
-1692
-180
-504

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT - 99 + 95 + - SUM( DISTINCT - col2 ) + - 46 FROM tab2 WHERE NULL IS NULL
----
71

skipif mysql # not compatible
query I rowsort label-4194
SELECT DISTINCT - 99 + 95 + - SUM ( DISTINCT - col2 ) + - 46 FROM tab2 WHERE NULL IS NULL
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL + COUNT( * ) + + 56 AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL + COUNT ( * ) + + 56 AS col1 FROM tab1
----
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 99 IS NULL
----

query I rowsort
SELECT ALL + 12 + + + 46 AS col0 FROM tab2 AS cor0
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT + 96 + + - COUNT( * ) FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-4198
SELECT + 96 + + - COUNT ( * ) FROM tab1 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4199
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4199
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4200
SELECT CAST( NULL AS SIGNED ) - + CAST( - col2 AS SIGNED ) * col1 + + 36 * - + 70, + ( + 25 ) + col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-4200
SELECT CAST ( NULL AS INTEGER ) - + CAST ( - col2 AS INTEGER ) * col1 + + 36 * - + 70, + ( + 25 ) + col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

query II rowsort
SELECT ALL 12 AS col0, + 64 AS col2 FROM tab2 AS cor0
----
12
64
12
64
12
64

query I rowsort
SELECT + - ( col2 ) FROM tab0 AS cor0 WHERE 29 * - - col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT 2 * col2 - col1 FROM tab1 AS cor0
----
113
178
89

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - 13 NOT BETWEEN + 93 AND - - col1
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL ) <= ( - col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 97 * - 42 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4207
SELECT - - COUNT( * ) col2, - 26 FROM tab0 AS cor0
----
3
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4207
SELECT - - COUNT ( * ) col2, - 26 FROM tab0 AS cor0
----
3
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, + col2 AS col1 FROM tab2 cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col2 + - ( col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4210
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN - col2 + - - 5 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4210
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN - col2 + - - 5 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT ( + + ( + + COUNT( * ) ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4211
SELECT ( + + ( + + COUNT ( * ) ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT MIN( DISTINCT 67 ) AS col1 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT MIN ( DISTINCT 67 ) AS col1 FROM tab1
----
67

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4214
SELECT DISTINCT col0 * + 72 AS col1, 76 * - + col0 / - CAST( NULL AS SIGNED ) - 40 FROM tab2
----
3312
NULL
4608
NULL
5400
NULL

skipif mysql # not compatible
query II rowsort label-4214
SELECT DISTINCT col0 * + 72 AS col1, 76 * - + col0 / - CAST ( NULL AS INTEGER ) - 40 FROM tab2
----
3312
NULL
4608
NULL
5400
NULL

query I rowsort
SELECT ALL 96 * - ( col2 ) AS col2 FROM tab2
----
-2208
-3840
-5568

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT DISTINCT COUNT( ALL col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4216
SELECT DISTINCT COUNT ( ALL col0 ) AS col1 FROM tab0
----
3

query II rowsort
SELECT ALL col0 * - col2 AS col0, col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

query I rowsort
SELECT - 27 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-27
-27
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 col1 FROM tab2 AS cor0
----
44
44
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4220
SELECT DISTINCT + CAST( + + COUNT( * ) AS SIGNED ) col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4220
SELECT DISTINCT + CAST ( + + COUNT ( * ) AS INTEGER ) col1 FROM tab1 cor0
----
3

query I rowsort
SELECT + - 9 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to caf28657beb43049740febe1fa9ded5a

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4222
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) * - CAST( - 47 AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4222
SELECT * FROM tab1 cor0 WHERE NOT ( col1 ) * - CAST ( - 47 AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - - 13 * - + col2 * + col2
----

query I rowsort
SELECT ALL - - col0 * col0 AS col0 FROM tab2 cor0
----
2116
4096
5625

query I rowsort
SELECT + col1 + + - col1 * + + col2 - + + col0 AS col1 FROM tab0 cor0
----
-195
-276
-3741

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT COUNT( ( + col2 ) ) + - SUM( ALL + col0 ) + - - COUNT( * ) AS col1 FROM tab0
----
-193

skipif mysql # not compatible
query I rowsort label-4226
SELECT COUNT ( ( + col2 ) ) + - SUM ( ALL + col0 ) + - - COUNT ( * ) AS col1 FROM tab0
----
-193

query I rowsort
SELECT - col2 + 81 FROM tab0
----
-18
34
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT - COUNT( * ) + - + COUNT( - - col0 ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4228
SELECT - COUNT ( * ) + - + COUNT ( - - col0 ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT COUNT( * ) + + + 14 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4229
SELECT COUNT ( * ) + + + 14 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query II rowsort label-4230
SELECT DISTINCT + SUM( + 90 ) * - + 88 + - SUM( DISTINCT 31 ) AS col2, 2 AS col0 FROM tab2
----
-23791
2

skipif mysql # not compatible
query II rowsort label-4230
SELECT DISTINCT + SUM ( + 90 ) * - + 88 + - SUM ( DISTINCT 31 ) AS col2, 2 AS col0 FROM tab2
----
-23791
2

query III rowsort
SELECT * FROM tab2 WHERE - - ( - col0 ) IS NULL
----

query I rowsort
SELECT 71 * + col0 + + ( - 99 ) AS col0 FROM tab0
----
6078
6788
966

onlyif mysql # DIV for integer division: 
query I rowsort label-4233
SELECT ALL col0 DIV - - 46 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL col0 / - - 46 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4234
SELECT COUNT( * ) DIV - 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT COUNT ( * ) / - 69 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4235
SELECT DISTINCT 88 DIV + + COUNT( * ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT 88 / + + COUNT ( * ) AS col0 FROM tab1
----
29

query I rowsort
SELECT ALL col0 + + + col0 AS col2 FROM tab0
----
174
194
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 30 * - col2 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT ALL 56 - - - MAX( + - 64 ) FROM tab0 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4238
SELECT ALL 56 - - - MAX ( + - 64 ) FROM tab0 AS cor0
----
120

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + 66 <> - 4
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4240
SELECT - MAX( DISTINCT - 72 ) AS col0 FROM tab2 cor0
----
72

skipif mysql # not compatible
query I rowsort label-4240
SELECT - MAX ( DISTINCT - 72 ) AS col0 FROM tab2 cor0
----
72

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( col0, col1 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT DISTINCT + COUNT( - col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4242
SELECT DISTINCT + COUNT ( - col2 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM tab0 cor0
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-4244
SELECT ALL + MAX( DISTINCT 74 ) AS col1 FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-4244
SELECT ALL + MAX ( DISTINCT 74 ) AS col1 FROM tab1 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT - SUM( + col2 ) col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4245
SELECT DISTINCT - SUM ( + col2 ) col2 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT + CAST( NULL AS SIGNED ) / + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT + CAST ( NULL AS INTEGER ) / + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL + 12 * MIN( + ( col2 ) ) FROM tab1 AS cor0
----
708

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL + 12 * MIN ( + ( col2 ) ) FROM tab1 AS cor0
----
708

query I rowsort
SELECT ALL col0 * - - col0 + + - col2 AS col2 FROM tab1 AS cor0
----
2505
7166
8213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4249
SELECT CAST( - 3 AS SIGNED ) / - col1 + - 99 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-4249
SELECT CAST ( - 3 AS INTEGER ) / - col1 + - 99 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 62 * + col0 AS col1 FROM tab1 AS cor0
----
-3162
-5270
-5642

query I rowsort
SELECT - col2 * + col0 + ( col2 ) + + - col1 * + col2 * 76 FROM tab0 AS cor0
----
-16820
-17028
-289990

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71, - col1 col1 FROM tab1 AS cor0
----
-71
-14
-71
-47
-71
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4253
SELECT DISTINCT + SUM( DISTINCT 10 ) col1 FROM tab1
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4253
SELECT DISTINCT + SUM ( DISTINCT 10 ) col1 FROM tab1
----
10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4254
SELECT DISTINCT + + col2 * - col1 FROM tab0 WHERE NULL = - CAST( NULL AS DECIMAL ) * + col1 * 79
----

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT + + col2 * - col1 FROM tab0 WHERE NULL = - CAST ( NULL AS REAL ) * + col1 * 79
----

query I rowsort
SELECT DISTINCT - col0 + + + col1 AS col1 FROM tab1 WHERE ( - 80 * - col0 - col0 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4256
SELECT DISTINCT - ( + CAST( col2 AS SIGNED ) ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4256
SELECT DISTINCT - ( + CAST ( col2 AS INTEGER ) ) FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4257
SELECT ALL - 64 AS col0, - CAST( NULL AS SIGNED ) + + 10 FROM tab0
----
-64
NULL
-64
NULL
-64
NULL

skipif mysql # not compatible
query II rowsort label-4257
SELECT ALL - 64 AS col0, - CAST ( NULL AS INTEGER ) + + 10 FROM tab0
----
-64
NULL
-64
NULL
-64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT COUNT( * ) * - COUNT( * ) * + MIN( ALL - - col1 ) col0 FROM tab1
----
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4258
SELECT COUNT ( * ) * - COUNT ( * ) * + MIN ( ALL - - col1 ) col0 FROM tab1
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT col2 FROM tab1 WHERE NOT col1 BETWEEN + 64 * ( - col1 ) * - 19 AND + CAST( + 48 AS SIGNED ) * + 61 * + CAST( NULL AS SIGNED ) * - 27
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT col2 FROM tab1 WHERE NOT col1 BETWEEN + 64 * ( - col1 ) * - 19 AND + CAST ( + 48 AS INTEGER ) * + 61 * + CAST ( NULL AS INTEGER ) * - 27
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4260
SELECT DISTINCT ( - SUM( ALL - col1 ) ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-4260
SELECT DISTINCT ( - SUM ( ALL - col1 ) ) AS col0 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col0, col2 col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4262
SELECT ALL - - COUNT( * ) * + - 51 DIV + - 45 AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4262
SELECT ALL - - COUNT ( * ) * + - 51 / + - 45 AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 91 + ( - 86 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 6035628694bdea36f584f3649088551d

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) < + 6
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4265
SELECT - MAX( DISTINCT + col1 ) AS col1, + CAST( COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
-77
3

skipif mysql # not compatible
query II rowsort label-4265
SELECT - MAX ( DISTINCT + col1 ) AS col1, + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
-77
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 20 * + col2 col1, - col0 col1 FROM tab1 AS cor0
----
1180
-85
1360
-91
1920
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL - CAST( NULL AS SIGNED ) + + - ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - CAST ( NULL AS INTEGER ) + + - ( col1 ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4268
SELECT DISTINCT - + ( - ( - 2 ) ) * - 64 * COUNT( * ) FROM tab1 AS cor0
----
384

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT - + ( - ( - 2 ) ) * - 64 * COUNT ( * ) FROM tab1 AS cor0
----
384

query I rowsort
SELECT ALL 98 - col0 * - - col0 * - col2 + + 97 AS col0 FROM tab2
----
164035
326445
48863

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT COUNT( * ) * + 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT COUNT ( * ) * + 42 FROM tab1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL MIN( + + 14 ) AS col2 FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL MIN ( + + 14 ) AS col2 FROM tab0
----
14

query I rowsort
SELECT + ( col1 ) + - 1 FROM tab0
----
0
20
80

query I rowsort
SELECT col0 + - - col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query I rowsort
SELECT ALL + - 76 + - col0 FROM tab0 AS cor0
----
-163
-173
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT - COUNT( DISTINCT + 9 ) + 11 col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT DISTINCT - COUNT ( DISTINCT + 9 ) + 11 col2 FROM tab1 AS cor0
----
10

query I rowsort
SELECT DISTINCT + 79 AS col0 FROM tab2 WHERE NOT - 80 * + col2 > + - 23 * 14
----
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * + - col1 col1 FROM tab2
----
-1887
-2479
-2849

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT + + 13 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-4279
SELECT + + 13 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-4280
SELECT COUNT( + col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4280
SELECT COUNT ( + col1 ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 65 < 15
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4282
SELECT ALL - col0 * 76 DIV + - 97 FROM tab1 AS cor0
----
39
66
71

skipif mysql # not compatible
query I rowsort label-4282
SELECT ALL - col0 * 76 / + - 97 FROM tab1 AS cor0
----
39
66
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4283
SELECT ALL - CAST( NULL AS SIGNED ) * AVG ( 91 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - CAST ( NULL AS INTEGER ) * AVG ( 91 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4284
SELECT ALL - + MAX( col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-4284
SELECT ALL - + MAX ( col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + + ( - + 24 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT - + ( - COUNT( * ) ) FROM tab1 WHERE col0 - + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT - + ( - COUNT ( * ) ) FROM tab1 WHERE col0 - + col2 IS NOT NULL
----
3

query I rowsort
SELECT ( + col0 ) * - + col0 FROM tab2
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT + - 18 AS col1 FROM tab1 AS cor0
----
-18

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE NOT ( - - col1 >= col0 + - col2 )
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - - 87 col0 FROM tab1
----
5307
5307
5307

onlyif mysql # DIV for integer division: 
query II rowsort label-4291
SELECT - col2 AS col0, + col1 DIV + col2 * - 99 * + col2 FROM tab1
----
-59
0
-68
0
-96
0

skipif mysql # not compatible
query II rowsort label-4291
SELECT - col2 AS col0, + col1 / + col2 * - 99 * + col2 FROM tab1
----
-59
0
-68
0
-96
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL 98 + - + COUNT( * ) * + + COUNT( * ) FROM tab0 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL 98 + - + COUNT ( * ) * + + COUNT ( * ) FROM tab0 AS cor0
----
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4293
SELECT ALL COUNT( - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL COUNT ( - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 8 - col1 col0 FROM tab0 AS cor0
----
-29
-89
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4295
SELECT - CAST( - col2 AS SIGNED ) + + - 34 col2 FROM tab1 AS cor0
----
25
34
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4295
SELECT - CAST ( - col2 AS INTEGER ) + + - 34 col2 FROM tab1 AS cor0
----
25
34
62

query II rowsort
SELECT DISTINCT + 11 - 81, 85 AS col0 FROM tab0
----
-70
85

query I rowsort
SELECT ALL col1 + - 14 + 39 * - 13 FROM tab0
----
-440
-500
-520

query I rowsort
SELECT ALL - 56 FROM tab2 WHERE NOT ( NOT col0 IS NULL )
----

query I rowsort
SELECT DISTINCT 41 + + col1 AS col0 FROM tab2
----
108
118
92

query I rowsort
SELECT ALL + 55 + - col0 FROM tab1
----
-30
-36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4301
SELECT + - COUNT( * ) + 5 FROM tab1 WHERE - 77 < - col0 * + col1
----
5

skipif mysql # not compatible
query I rowsort label-4301
SELECT + - COUNT ( * ) + 5 FROM tab1 WHERE - 77 < - col0 * + col1
----
5

query I rowsort
SELECT DISTINCT - 91 - + col0 FROM tab2 AS cor0 WHERE NULL <= + col1
----

query I rowsort
SELECT - ( + + col2 ) - - col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT DISTINCT - col2 - - + col2 * col0 FROM tab1 AS cor0
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT - COUNT( * ) - + 44 + - 94 AS col0 FROM tab0 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4305
SELECT - COUNT ( * ) - + 44 + - 94 AS col0 FROM tab0 AS cor0
----
-141

query I rowsort
SELECT - ( - 22 ) * col1 FROM tab1
----
1034
110
308

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 46 * - col1 col2 FROM tab2 AS cor0
----
-2346
-3082
-3542

onlyif mysql # aggregate syntax: 
query I rowsort label-4308
SELECT - + 56 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-4308
SELECT - + 56 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
168

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 26 + 42 + - - 37 > + col0 + - col0
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4311
SELECT ALL + col1 DIV - 34 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4311
SELECT ALL + col1 / - 34 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-4312
SELECT 24 DIV col2 + - col2 col2, - col2 AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4312
SELECT 24 / col2 + - col2 col2, - col2 AS col0 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-4313
SELECT DISTINCT - col0 DIV + - col0 AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4313
SELECT DISTINCT - col0 / + - col0 AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4314
SELECT + + MIN( DISTINCT + - 99 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4314
SELECT + + MIN ( DISTINCT + - 99 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4315
SELECT ALL - CAST( + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4315
SELECT ALL - CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query II rowsort
SELECT - col0, + col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4318
SELECT - - 40 AS col0, 15 + + COUNT( * ) * 32 FROM tab2 AS cor0
----
40
111

skipif mysql # not compatible
query II rowsort label-4318
SELECT - - 40 AS col0, 15 + + COUNT ( * ) * 32 FROM tab2 AS cor0
----
40
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT ALL SUM( DISTINCT - ( - col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-4319
SELECT ALL SUM ( DISTINCT - ( - col1 ) ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT + 51 - + col1 FROM tab0 WHERE + - 86 IS NULL
----

query I rowsort
SELECT + + 26 * - col2 / + col1 * - 6 + - - col0 FROM tab1 WHERE NOT NULL < + - col0
----

query I rowsort
SELECT DISTINCT col1 - col1 * - col2 + - - col0 FROM tab2 WHERE NULL <> + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4323
SELECT CAST( - - 8 AS SIGNED ) FROM tab1
----
8
8
8

skipif mysql # not compatible
query I rowsort label-4323
SELECT CAST ( - - 8 AS INTEGER ) FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT MAX( DISTINCT - - 0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT MAX ( DISTINCT - - 0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 + - + ( - col2 ) AS col0 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT + + 11 + - 93 * col0 * - + col0 FROM tab1 AS cor0
----
241904
671936
770144

query I rowsort
SELECT ALL - - 14 + + col0 FROM tab1 AS cor0
----
105
65
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col0 + + 13 + - - col1 col2 FROM tab0 AS cor0
----
1339
1469
319

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4330
SELECT DISTINCT + col0 * - col2 / - col0 + + + col1 + col2 - - CAST( NULL AS SIGNED ) + 90 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4330
SELECT DISTINCT + col0 * - col2 / - col0 + + + col1 + col2 - - CAST ( NULL AS INTEGER ) + 90 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4331
SELECT DISTINCT + col1 DIV + - col1 + + 92 AS col2, 2 * - 11 col0 FROM tab1 AS cor0
----
91
-22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4331
SELECT DISTINCT + col1 / + - col1 + + 92 AS col2, 2 * - 11 col0 FROM tab1 AS cor0
----
91
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT - 99 * + - COUNT( * ) * - 16 * + - MAX( + col2 ) AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
275616

skipif mysql # not compatible
query I rowsort label-4332
SELECT - 99 * + - COUNT ( * ) * - 16 * + - MAX ( + col2 ) AS col1 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
275616

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + MIN( + 46 ) AS col2 FROM tab1 cor0
----
46

skipif mysql # not compatible
query I rowsort label-4333
SELECT + MIN ( + 46 ) AS col2 FROM tab1 cor0
----
46

query I rowsort
SELECT + + 97 FROM tab2 AS cor0 WHERE col2 + col0 IS NOT NULL
----
97
97
97

query I rowsort
SELECT ALL - 68 FROM tab2 AS cor0 WHERE col1 <> + ( col1 ) * col0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT + 28 AS col0 FROM tab0 AS cor0 WHERE NOT ( 15 ) + + ( + col1 ) / - - 1 - - 73 IS NULL
----
28

query II rowsort
SELECT DISTINCT + 15, 85 * - 81 AS col1 FROM tab0
----
15
-6885

query I rowsort
SELECT DISTINCT - 77 - + col0 + col2 FROM tab2
----
-100
-101
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2, + ( - + 67 ) col0 FROM tab1
----
59
-67
68
-67
96
-67

query I rowsort
SELECT - 24 + - - col2 AS col0 FROM tab1
----
35
44
72

onlyif mysql # aggregate syntax: 
query I rowsort label-4341
SELECT DISTINCT 8 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT 8 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 2 col1 FROM tab0 AS cor0
----
-2

query I rowsort
SELECT ALL - col1 * - 83 FROM tab0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT MAX( - + 16 ) AS col1 FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4344
SELECT MAX ( - + 16 ) AS col1 FROM tab2
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4345
SELECT ALL - col1 * + CAST( - col1 AS SIGNED ) - - CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4345
SELECT ALL - col1 * + CAST ( - col1 AS INTEGER ) - - CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - 74 * + col0 AS col0 FROM tab0 AS cor0
----
1110
6438
7178

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4347
SELECT CAST( NULL AS SIGNED ) + - CAST( NULL AS DECIMAL ) - + col2 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4347
SELECT CAST ( NULL AS INTEGER ) + - CAST ( NULL AS REAL ) - + col2 + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT DISTINCT COUNT( * ) + - - COUNT( * ) * + COUNT( * ) FROM tab0 WHERE ( ( NULL ) > col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4348
SELECT DISTINCT COUNT ( * ) + - - COUNT ( * ) * + COUNT ( * ) FROM tab0 WHERE ( ( NULL ) > col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT COUNT( DISTINCT col2 ) + - - COUNT( * ) AS col0 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4349
SELECT COUNT ( DISTINCT col2 ) + - - COUNT ( * ) AS col0 FROM tab2
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4350
SELECT - SUM( ALL - 15 ) + + + SUM( DISTINCT - 91 ) FROM tab2 WHERE NOT - col0 NOT IN ( - col1, - col1 / - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4350
SELECT - SUM ( ALL - 15 ) + + + SUM ( DISTINCT - 91 ) FROM tab2 WHERE NOT - col0 NOT IN ( - col1, - col1 / - + col0 )
----
NULL

query I rowsort
SELECT - ( + + ( + col0 ) ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4352
SELECT DISTINCT + MIN( + col0 ) + - - 31 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-4352
SELECT DISTINCT + MIN ( + col0 ) + - - 31 FROM tab2
----
77

query I rowsort
SELECT ALL - + col2 + - + col0 * - ( + col1 ) FROM tab1 AS cor0
----
366
4209
618

query I rowsort
SELECT DISTINCT + - 43 * + + col0 * col0 * + + 27 AS col1 FROM tab2 AS cor0
----
-2456676
-4755456
-6530625

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT DISTINCT - COUNT( * ) * 54 AS col0 FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4355
SELECT DISTINCT - COUNT ( * ) * 54 AS col0 FROM tab2 AS cor0
----
-162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4356
SELECT 47 DIV SUM( ALL - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4356
SELECT 47 / SUM ( ALL - col0 ) FROM tab2
----
0

query I rowsort
SELECT col1 + - 8 * - 68 FROM tab2
----
595
611
621

query I rowsort
SELECT 53 * - col2 AS col1 FROM tab1
----
-3127
-3604
-5088

query I rowsort
SELECT ( + col2 ) * + 16 FROM tab1
----
1088
1536
944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 51 - 48 col0 FROM tab1
----
3
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 34 ) IN ( col2 - col0 )
----

query I rowsort
SELECT ALL 66 FROM tab2 WHERE col2 * col1 + 7 < ( + 69 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4363
SELECT ALL 22 * COUNT( * ) AS col2 FROM tab1 WHERE - CAST( NULL AS SIGNED ) * col1 IS NULL
----
66

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL 22 * COUNT ( * ) AS col2 FROM tab1 WHERE - CAST ( NULL AS INTEGER ) * col1 IS NULL
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4364
SELECT DISTINCT + 4 * COUNT( * ) AS col2 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-4364
SELECT DISTINCT + 4 * COUNT ( * ) AS col2 FROM tab2
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT - AVG ( ALL col2 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT - AVG ( ALL col2 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL 92 * - col1 AS col1 FROM tab2
----
-4692
-6164
-7084

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col2 * + col0 ) BETWEEN col2 AND ( - col0 * - ( 17 ) )
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4368
SELECT ALL COUNT( * ) + 41 * + ( - COUNT( * ) ) FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL COUNT ( * ) + 41 * + ( - COUNT ( * ) ) FROM tab1
----
-120

query I rowsort
SELECT DISTINCT 26 + 17 * - col0 AS col0 FROM tab0
----
-1453
-1623
-229

query III rowsort
SELECT * FROM tab0 WHERE 13 < ( - 8 - - 68 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 NOT IN ( + col2 * - 15 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4372
SELECT ALL - 20 DIV + 37 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4372
SELECT ALL - 20 / + 37 AS col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4373
SELECT DISTINCT COUNT( * ) * 18 col1 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4373
SELECT DISTINCT COUNT ( * ) * 18 col1 FROM tab0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT SUM( DISTINCT - 97 ) FROM tab2 WHERE NOT - col2 + col0 IS NULL
----
-97

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT SUM ( DISTINCT - 97 ) FROM tab2 WHERE NOT - col2 + col0 IS NULL
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4375
SELECT DISTINCT ( COUNT( * ) ) AS col1 FROM tab1 WHERE NOT ( + 64 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4375
SELECT DISTINCT ( COUNT ( * ) ) AS col1 FROM tab1 WHERE NOT ( + 64 ) IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4376
SELECT DISTINCT - col0 DIV - 53 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT - col0 / - 53 FROM tab1
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 = ( + col0 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab0 WHERE - 53 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4378
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab0 WHERE - 53 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - 14 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - 14 FROM tab1
----
NULL

query I rowsort
SELECT ALL 34 - 91 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT + col2 * col1 FROM tab0 WHERE NULL IS NULL
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4382
SELECT DISTINCT ( 84 ) DIV col1 FROM tab0
----
1
4
84

skipif mysql # not compatible
query I rowsort label-4382
SELECT DISTINCT ( 84 ) / col1 FROM tab0
----
1
4
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + col2 NOT BETWEEN col0 AND ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4384
SELECT 27 * MIN( ALL + 78 DIV col0 ) + + COUNT( * ) * 37 AS col0 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4384
SELECT 27 * MIN ( ALL + 78 / col0 ) + + COUNT ( * ) * 37 AS col0 FROM tab0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT - COUNT( DISTINCT - 97 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-4385
SELECT - COUNT ( DISTINCT - 97 ) AS col0 FROM tab2
----
-1

query I rowsort
SELECT 76 * - col1 - + 13 AS col0 FROM tab2
----
-3889
-5105
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT DISTINCT 48 * - COUNT( * ) AS col0 FROM tab1 WHERE + 37 IN ( + 15 * col0 + 26 )
----
0

skipif mysql # not compatible
query I rowsort label-4387
SELECT DISTINCT 48 * - COUNT ( * ) AS col0 FROM tab1 WHERE + 37 IN ( + 15 * col0 + 26 )
----
0

query I rowsort
SELECT + col1 * col1 FROM tab1 WHERE ( col0 ) >= 48
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 col1 FROM tab2 AS cor0
----
-47

query I rowsort
SELECT col1 * - col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 * - col0 AND + 74
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4391
SELECT + CAST( COUNT( * ) AS SIGNED ) DIV - 55 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4391
SELECT + CAST ( COUNT ( * ) AS INTEGER ) / - 55 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + 29 AS col0 FROM tab0 cor0
----
29

query I rowsort
SELECT DISTINCT + ( + 55 ) AS col2 FROM tab1
----
55

query I rowsort
SELECT DISTINCT - col2 / + col2 FROM tab0 WHERE NOT ( col2 * - 34 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4395
SELECT DISTINCT + col2 * 42 FROM tab1 AS cor0 WHERE NOT + 76 * + 43 + + CAST( NULL AS SIGNED ) * col1 IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-4395
SELECT DISTINCT + col2 * 42 FROM tab1 AS cor0 WHERE NOT + 76 * + 43 + + CAST ( NULL AS INTEGER ) * col1 IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4396
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col1 / + col1
----

skipif mysql # not compatible
query I rowsort label-4396
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + col1 / + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 10 col1 FROM tab2 AS cor0
----
-10
-10
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - 26 + col1 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 * - col2 + col2 ) NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT DISTINCT + + SUM( ALL + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT + + SUM ( ALL + col2 ) FROM tab1 AS cor0
----
223

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL 39 * - + COUNT( * ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL 39 * - + COUNT ( * ) FROM tab1
----
-117

query I rowsort
SELECT DISTINCT col0 * - - col2 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + col0 * + ( 7 ) AS col2 FROM tab2
----
322
448
525

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4406
SELECT ALL col2 DIV + + 67 col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4406
SELECT ALL col2 / + + 67 col2 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IN ( col2 / - col0 )
----

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE col0 + + 59 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT + 74 * - col2 FROM tab1 WHERE ( - col1 ) * + col2 IS NOT NULL
----
-4366
-5032
-7104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT DISTINCT + ( + col2 ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4410
SELECT DISTINCT + ( + col2 ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + MAX( ALL - - col0 ) + - ( 44 ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + MAX ( ALL - - col0 ) + - ( 44 ) FROM tab0
----
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 32 col0 FROM tab1 AS cor0 WHERE 40 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4413
SELECT DISTINCT - + 71 DIV - - SUM( + col2 ) * + ( + 83 ) - + COUNT( * ) * 28 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT - + 71 / - - SUM ( + col2 ) * + ( + 83 ) - + COUNT ( * ) * 28 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT DISTINCT 36 - - col0 * col1 AS col1 FROM tab0 AS cor0
----
1251
133
1863

query I rowsort
SELECT ALL col2 * 53 FROM tab1
----
3127
3604
5088

query I rowsort
SELECT + - 61 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT + MAX( DISTINCT + + 4 ) AS col2 FROM tab1
----
4

skipif mysql # not compatible
query I rowsort label-4417
SELECT + MAX ( DISTINCT + + 4 ) AS col2 FROM tab1
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4418
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( 0 + + + CAST( NULL AS SIGNED ) ) IS NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4418
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE ( 0 + + + CAST ( NULL AS INTEGER ) ) IS NULL
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 - + ( - + col0 ) * 34 col1 FROM tab2 cor0
----
1635
2247
2621

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL MIN( ALL - col0 ) + - + COUNT( * ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL MIN ( ALL - col0 ) + - + COUNT ( * ) FROM tab0 AS cor0
----
-100

query I rowsort
SELECT DISTINCT + ( 51 ) - + 56 + - 99 AS col0 FROM tab2 AS cor0
----
-104

onlyif mysql # aggregate syntax: 
query I rowsort label-4422
SELECT - - 59 - - SUM( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
286

skipif mysql # not compatible
query I rowsort label-4422
SELECT - - 59 - - SUM ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
286

query I rowsort
SELECT DISTINCT + + col1 * 9 + + col1 - col0 FROM tab1 AS cor0
----
-35
379
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT ALL - ( COUNT( * ) ) + - + ( COUNT( * ) ) * 36 FROM tab0 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-4424
SELECT ALL - ( COUNT ( * ) ) + - + ( COUNT ( * ) ) * 36 FROM tab0 AS cor0
----
-111

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE NOT 43 IN ( col0 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4426
SELECT ALL - 35 * ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 WHERE NOT ( + + 47 * + 9 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - 35 * ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 WHERE NOT ( + + 47 * + 9 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT ( 45 ) * 76 - + MIN( + 11 ) FROM tab0 WHERE NOT col2 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ( 45 ) * 76 - + MIN ( + 11 ) FROM tab0 WHERE NOT col2 + + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT - 83 * + 76 FROM tab2
----
-6308
-6308
-6308

query I rowsort
SELECT ( + 24 ) AS col0 FROM tab0 WHERE NOT ( + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT - COUNT( ALL - ( - col1 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4430
SELECT - COUNT ( ALL - ( - col1 ) ) AS col2 FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4431
SELECT 27 DIV + col0 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4431
SELECT 27 / + col0 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4432
SELECT DISTINCT SUM( DISTINCT + 16 ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-4432
SELECT DISTINCT SUM ( DISTINCT + 16 ) FROM tab2
----
16

query I rowsort
SELECT - col1 * 45 AS col0 FROM tab0
----
-3645
-45
-945

query I rowsort
SELECT DISTINCT - 33 * - 72 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
2376

query I rowsort
SELECT ALL + - 59 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL < + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4437
SELECT ALL - + COUNT( * ) + ( + - 19 ) + - - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4437
SELECT ALL - + COUNT ( * ) + ( + - 19 ) + - - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT ALL + + MAX( ALL - col0 ) + + + 64 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4438
SELECT ALL + + MAX ( ALL - col0 ) + + + 64 FROM tab2 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT + SUM( - - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4439
SELECT + SUM ( - - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4440
SELECT DISTINCT CAST( - + col0 AS SIGNED ) + - - col2 FROM tab1 AS cor0 WHERE NOT - 86 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4440
SELECT DISTINCT CAST ( - + col0 AS INTEGER ) + - - col2 FROM tab1 AS cor0 WHERE NOT - 86 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( ( col1 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 89 col0 FROM tab2 AS cor0
----
-89

query I rowsort
SELECT ALL + 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col2 * + col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT COUNT( * ) * + 81 * 12 * ( - - COUNT( - col2 ) ) * - COUNT( * ) AS col0 FROM tab1
----
-26244

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT COUNT ( * ) * + 81 * 12 * ( - - COUNT ( - col2 ) ) * - COUNT ( * ) AS col0 FROM tab1
----
-26244

query I rowsort
SELECT DISTINCT - 85 + - col1 FROM tab2
----
-136
-152
-162

query II rowsort
SELECT DISTINCT + 62, + 40 - 75 AS col0 FROM tab0
----
62
-35

query I rowsort
SELECT ALL 78 / 65 + col0 FROM tab2 WHERE + - 79 IN ( + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE - - col0 > ( + 81 + col0 / col1 )
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4451
SELECT ALL MAX( 81 ) + - - 86 + COUNT( * ) FROM tab1
----
170

skipif mysql # not compatible
query I rowsort label-4451
SELECT ALL MAX ( 81 ) + - - 86 + COUNT ( * ) FROM tab1
----
170

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 ) IN ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 83 + + + 39 * col2 col2 FROM tab0 AS cor0
----
1750
307
3778

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 58 = NULL
----

query I rowsort
SELECT + 89 - - 85 * - - col0 AS col0 FROM tab1
----
4424
7314
7824

onlyif mysql # DIV for integer division: 
query II rowsort label-4456
SELECT 15 - - - col0 AS col1, + 25 DIV - col2 AS col0 FROM tab0
----
-72
-2
-82
0
0
0

skipif mysql # not compatible
query II rowsort label-4456
SELECT 15 - - - col0 AS col1, + 25 / - col2 AS col0 FROM tab0
----
-72
-2
-82
0
0
0

query I rowsort
SELECT DISTINCT + col1 + + col2 FROM tab1 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT + 0 * COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4458
SELECT + 0 * COUNT ( * ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT DISTINCT + 87 + - COUNT( * ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT + 87 + - COUNT ( * ) FROM tab0 AS cor0
----
84

query I rowsort
SELECT ALL 75 * - col2 AS col0 FROM tab1 AS cor0
----
-4425
-5100
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-4461
SELECT DISTINCT MIN( 88 ) FROM tab2 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-4461
SELECT DISTINCT MIN ( 88 ) FROM tab2 AS cor0
----
88

query I rowsort
SELECT 26 * + col0 * - 61 * - - col0 + 78 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT ( + - 88 ) AS col0, - 1 AS col2 FROM tab1 AS cor0
----
-88
-1
-88
-1
-88
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 col1 FROM tab1 AS cor0
----
18
18
18

query II rowsort
SELECT + col1, col0 * - col1 FROM tab0
----
1
-97
21
-1827
81
-1215

query I rowsort
SELECT + - ( - 88 ) * - col1 AS col1 FROM tab1 WHERE NOT - col0 - - 51 IS NULL
----
-1232
-4136
-440

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + + 75 )
----

query I rowsort
SELECT + col2 * col0 FROM tab2 WHERE NOT + - 77 + ( - col0 ) + col2 * - col2 NOT IN ( + 73 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4469
SELECT DISTINCT - - col2 + - 94 - - CAST( NULL AS DECIMAL ) col1 FROM tab2 WHERE - col1 < + 77
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4469
SELECT DISTINCT - - col2 + - 94 - - CAST ( NULL AS REAL ) col1 FROM tab2 WHERE - col1 < + 77
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4470
SELECT ALL 35 AS col1, - MAX( ALL - 82 ) FROM tab2
----
35
82

skipif mysql # not compatible
query II rowsort label-4470
SELECT ALL 35 AS col1, - MAX ( ALL - 82 ) FROM tab2
----
35
82

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) BETWEEN ( NULL ) AND - col0
----

query II rowsort
SELECT DISTINCT + 83 * 58 * - - col2 AS col2, - col1 FROM tab0
----
226258
-81
476586
-1
48140
-21

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + - 6 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4474
SELECT ALL - CAST( - ( - COUNT( * ) ) AS SIGNED ) DIV + COUNT( * ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4474
SELECT ALL - CAST ( - ( - COUNT ( * ) ) AS INTEGER ) / + COUNT ( * ) AS col1 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT + - 73 * + COUNT( * ) col1 FROM tab1 cor0
----
-219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT + - 73 * + COUNT ( * ) col1 FROM tab1 cor0
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-4476
SELECT ALL + col2 DIV 70 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4476
SELECT ALL + col2 / 70 FROM tab0 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4477
SELECT ALL col0 DIV ( 40 ) AS col1 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-4477
SELECT ALL col0 / ( 40 ) AS col1 FROM tab0 AS cor0
----
0
2
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 / - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + MAX( ALL + - 81 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-4479
SELECT + MAX ( ALL + - 81 ) FROM tab2
----
-81

query I rowsort
SELECT + col1 + + + col1 - + - 2 FROM tab2
----
104
136
156

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL = - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4482
SELECT ALL + + col0 + - col0 - + 91 + + + CAST( col1 AS SIGNED ) + + col2 * col2 FROM tab1 AS cor0
----
3395
4580
9139

skipif mysql # not compatible
query I rowsort label-4482
SELECT ALL + + col0 + - col0 - + 91 + + + CAST ( col1 AS INTEGER ) + + col2 * col2 FROM tab1 AS cor0
----
3395
4580
9139

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT DISTINCT SUM( + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4483
SELECT DISTINCT SUM ( + col0 ) AS col0 FROM tab2 AS cor0
----
185

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + 70 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 IN ( col1 + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4486
SELECT ALL + + CAST( NULL AS SIGNED ) + + col0 - - - 2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4486
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col0 - - - 2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 78 NOT BETWEEN NULL AND + col1 * - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4488
SELECT COUNT( - - col2 ) DIV - 58 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4488
SELECT COUNT ( - - col2 ) / - 58 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4489
SELECT * FROM tab1 WHERE + col0 + + CAST( + 70 AS SIGNED ) * + 82 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4489
SELECT * FROM tab1 WHERE + col0 + + CAST ( + 70 AS INTEGER ) * + 82 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4490
SELECT CAST( + + ( COUNT( * ) ) AS SIGNED ) + + 65 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-4490
SELECT CAST ( + + ( COUNT ( * ) ) AS INTEGER ) + + 65 FROM tab2
----
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT DISTINCT 43 DIV - 1 + + + col1 AS col1 FROM tab2
----
24
34
8

skipif mysql # not compatible
query I rowsort label-4491
SELECT DISTINCT 43 / - 1 + + + col1 AS col1 FROM tab2
----
24
34
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4492
SELECT ALL + + COUNT( * ) + 83 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4492
SELECT ALL + + COUNT ( * ) + 83 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL - col2 * - col2 + - 99 FROM tab1 AS cor0
----
3382
4525
9117

onlyif mysql # aggregate syntax: 
query I rowsort label-4494
SELECT DISTINCT - 64 + + + MIN( - 97 ) FROM tab1 AS cor0
----
-161

skipif mysql # not compatible
query I rowsort label-4494
SELECT DISTINCT - 64 + + + MIN ( - 97 ) FROM tab1 AS cor0
----
-161

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE + col1 + 52 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4496
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - col0 + - col1 col0 FROM tab1 WHERE + col2 - + col1 + - + 73 + 41 < NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4496
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - col0 + - col1 col0 FROM tab1 WHERE + col2 - + col1 + - + 73 + 41 < NULL
----

query I rowsort
SELECT DISTINCT - + col2 + + 52 * + - 63 FROM tab0 WHERE NULL IS NULL
----
-3286
-3323
-3375

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 + col1 - col2 NOT IN ( + - 67 * 73 - 10 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4499
SELECT col2 AS col0, col2, - CAST( NULL AS SIGNED ) col2 FROM tab0
----
9 values hashing to c0a0662ee444b25121afcc629e1ffb28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-4499
SELECT col2 AS col0, col2, - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
9 values hashing to c0a0662ee444b25121afcc629e1ffb28

query I rowsort
SELECT ALL - 27 * + - col2 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-4501
SELECT - SUM( ALL col1 ) FROM tab2 WHERE NOT ( - 3 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4501
SELECT - SUM ( ALL col1 ) FROM tab2 WHERE NOT ( - 3 ) NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4502
SELECT MAX( DISTINCT + col2 ) * - - CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4502
SELECT MAX ( DISTINCT + col2 ) * - - CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col2, - 19 AS col1 FROM tab0 AS cor0
----
10
-19
47
-19
99
-19

query I rowsort
SELECT ALL + col2 * + - col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

query II rowsort
SELECT ALL col2 AS col2, + col1 AS col0 FROM tab1 cor0
----
59
5
68
47
96
14

query II rowsort
SELECT ALL ( + 19 ) AS col2, 74 FROM tab1 AS cor0
----
19
74
19
74
19
74

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 81 >= NULL
----

query I rowsort
SELECT ALL AVG ( - - col0 ) AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 95 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4510
SELECT ALL 49 DIV + + COUNT( - 14 ) AS col0 FROM tab1 cor0
----
16

skipif mysql # not compatible
query I rowsort label-4510
SELECT ALL 49 / + + COUNT ( - 14 ) AS col0 FROM tab1 cor0
----
16

query I rowsort
SELECT DISTINCT col1 / - + 91 AS col2 FROM tab2 AS cor0 WHERE NULL < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 36 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - MIN( DISTINCT - 2 ) AS col0 FROM tab1 WHERE NOT - col2 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4513
SELECT - MIN ( DISTINCT - 2 ) AS col0 FROM tab1 WHERE NOT - col2 = NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 * + 31 BETWEEN + col0 * col1 AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT - MIN( ALL + + col0 ) AS col0 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-4515
SELECT - MIN ( ALL + + col0 ) AS col0 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4516
SELECT CAST( NULL AS SIGNED ) * - 7 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4516
SELECT CAST ( NULL AS INTEGER ) * - 7 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4517
SELECT CAST( + - MIN( + + col2 ) AS SIGNED ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4517
SELECT CAST ( + - MIN ( + + col2 ) AS INTEGER ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4518
SELECT ALL COUNT( * ) DIV + - 98, + 67 AS col0 FROM tab1
----
0
67

skipif mysql # not compatible
query II rowsort label-4518
SELECT ALL COUNT ( * ) / + - 98, + 67 AS col0 FROM tab1
----
0
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4519
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT IN ( - 62 + 57 + + col2 + CAST( + ( - 4 ) AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-4519
SELECT ALL * FROM tab2 WHERE ( NOT NULL NOT IN ( - 62 + 57 + + col2 + CAST ( + ( - 4 ) AS INTEGER ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4520
SELECT ALL - 60 DIV - 92 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 60 / - 92 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + 57 >= - col0 * - + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT 43 * - COUNT( * ) FROM tab1 AS cor0
----
-129

skipif mysql # not compatible
query I rowsort label-4522
SELECT 43 * - COUNT ( * ) FROM tab1 AS cor0
----
-129

query I rowsort
SELECT ALL col2 + - col2 * - 90 + ( + - col2 ) AS col1 FROM tab0
----
4230
8910
900

query I rowsort
SELECT DISTINCT 11 + 82 AS col2 FROM tab0
----
93

query II rowsort
SELECT col1, col1 AS col2 FROM tab2
----
51
51
67
67
77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + - col0 col2 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT 45 + col2 FROM tab0 AS cor0
----
144
55
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4528
SELECT ALL 60 + SUM( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-4528
SELECT ALL 60 + SUM ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
255

query I rowsort
SELECT ALL 67 + + ( - - ( - col0 ) ) FROM tab1 AS cor0
----
-18
-24
16

query I rowsort
SELECT ALL + col1 + + col2 AS col0 FROM tab1 cor0
----
110
115
64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 + - - col0 + - col2 FROM tab1 AS cor0
----
-24
-59
21

query II rowsort
SELECT ALL + 95 AS col0, col2 FROM tab2 AS cor0
----
95
23
95
40
95
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT col2 * + CAST( NULL AS SIGNED ) + - col1 + + col2 * - - col0 * + - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT col2 * + CAST ( NULL AS INTEGER ) + - col1 + + col2 * - - col0 * + - 19 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT ALL + 16 * - + COUNT( * ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-4535
SELECT ALL + 16 * - + COUNT ( * ) FROM tab0
----
-48

query I rowsort
SELECT + col1 * 62 AS col2 FROM tab1
----
2914
310
868

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + 76 * COUNT( * ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-4537
SELECT + 76 * COUNT ( * ) FROM tab0
----
228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4538
SELECT ALL CAST( NULL AS SIGNED ) AS col2, col2 * col2 AS col2 FROM tab0 WHERE NOT ( col1 * + - col0 ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4538
SELECT ALL CAST ( NULL AS INTEGER ) AS col2, col2 * col2 AS col2 FROM tab0 WHERE NOT ( col1 * + - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4539
SELECT - COUNT( * ) * + COUNT( * ), COUNT( * ) col2 FROM tab1
----
-9
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4539
SELECT - COUNT ( * ) * + COUNT ( * ), COUNT ( * ) col2 FROM tab1
----
-9
3

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + 80 )
----

query I rowsort
SELECT ALL - 62 + 52 AS col1 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT - 86 * + - 95 - 0 FROM tab1 AS cor0
----
8170
8170
8170

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT DISTINCT + COUNT( * ) + - 7 FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT + COUNT ( * ) + - 7 FROM tab2 cor0
----
-4

query I rowsort
SELECT + 66 - 71 FROM tab1 cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT col0 * col0 + + col2 * - 16 FROM tab0 AS cor0
----
-527
7409
7825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4546
SELECT ALL + col2 * + 60 / - 75 + + col2 - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4546
SELECT ALL + col2 * + 60 / - 75 + + col2 - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 69 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-4548
SELECT DISTINCT 43 * + COUNT( * ) FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-4548
SELECT DISTINCT 43 * + COUNT ( * ) FROM tab1
----
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 86 * col2 * + 25 * + col2 col0 FROM tab1 AS cor0
----
-19814400
-7484150
-9941600

query I rowsort
SELECT col0 * + 21 AS col1 FROM tab1 AS cor0
----
1071
1785
1911

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL > + 75 * - col0 * + + col1 * col1 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4552
SELECT DISTINCT - CAST( - 50 AS SIGNED ) FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-4552
SELECT DISTINCT - CAST ( - 50 AS INTEGER ) FROM tab0 cor0
----
50

query I rowsort
SELECT - - 32 * - col2 + - col0 FROM tab2 cor0
----
-1344
-1931
-782

query I rowsort
SELECT ( + col0 ) * - - col0 * + col0 AS col0 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT - SUM( + - col2 ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-4555
SELECT - SUM ( + - col2 ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-4556
SELECT DISTINCT + + SUM( ALL + - 14 ) AS col0 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4556
SELECT DISTINCT + + SUM ( ALL + - 14 ) AS col0 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4557
SELECT + 46 * + - COUNT( * ) + 88 * + MAX( DISTINCT col0 ) + + 37 + CAST( + 12 AS SIGNED ) FROM tab1 AS cor0
----
7919

skipif mysql # not compatible
query I rowsort label-4557
SELECT + 46 * + - COUNT ( * ) + 88 * + MAX ( DISTINCT col0 ) + + 37 + CAST ( + 12 AS INTEGER ) FROM tab1 AS cor0
----
7919

onlyif mysql # aggregate syntax: 
query I rowsort label-4558
SELECT - - MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4558
SELECT - - MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 < + ( + col2 ) + + + col2
----

query II rowsort
SELECT 95 AS col0, + col2 FROM tab2
----
95
23
95
40
95
58

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 / col0
----

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab2 WHERE - col2 NOT BETWEEN + col1 * + + 4 AND NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( - + 93 * + + col1 - + - col2 + + col2 * - col2 )
----

query I rowsort
SELECT ALL 34 * + + col2 FROM tab1
----
2006
2312
3264

query I rowsort
SELECT DISTINCT - + 50 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col0 * 25, col2 * col2 AS col2 FROM tab0
----
2175
100
2425
9801
375
2209

query I rowsort
SELECT ALL 14 * + col2 AS col1 FROM tab0
----
1386
140
658

onlyif mysql # aggregate syntax: 
query I rowsort label-4568
SELECT ALL + - COUNT( * ) + - 39 FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4568
SELECT ALL + - COUNT ( * ) + - 39 FROM tab1 AS cor0
----
-42

query II rowsort
SELECT DISTINCT + col2, col2 AS col0 FROM tab0 AS cor0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + ( col1 ) col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT ( - - col1 ) + col2 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT - 64 * - + ( - + col0 ) - - - ( - col1 ) AS col0 FROM tab1 WHERE NOT + col1 * - 26 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL - + 51 + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL - + 51 + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-60

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4575
SELECT - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4575
SELECT - CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 54 + + + col0 FROM tab2 AS cor0
----
-8
10
21

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT ALL - + 51 * - COUNT( 25 ) + COUNT( * ) + 35 - + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - + 51 * - COUNT ( 25 ) + COUNT ( * ) + 35 - + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4578
SELECT - - ( + CAST( + 4 AS SIGNED ) ) col1 FROM tab1 AS cor0
----
4
4
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4578
SELECT - - ( + CAST ( + 4 AS INTEGER ) ) col1 FROM tab1 AS cor0
----
4
4
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 * + col2 + + 18 col2 FROM tab1 AS cor0
----
-3463
-4606
-9198

query I rowsort
SELECT DISTINCT + col2 * + 69 * + col1 * + + col0 FROM tab0 AS cor0
----
1260630
3940245
662607

onlyif mysql # DIV for integer division: 
query I rowsort label-4581
SELECT DISTINCT col1 - - col1 DIV col1 AS col1 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-4581
SELECT DISTINCT col1 - - col1 / col1 AS col1 FROM tab2
----
52
68
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4582
SELECT DISTINCT col0 DIV + 91 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-4582
SELECT DISTINCT col0 / + 91 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT + - 4 AS col1 FROM tab1 WHERE NULL BETWEEN - - col0 - - 40 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 43 + + - 40 NOT BETWEEN NULL AND - - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 3 AS col1, col2 col2 FROM tab0
----
3
10
3
47
3
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4586
SELECT ALL + 54 AS col1, - COUNT( * ) AS col2 FROM tab0
----
54
-3

skipif mysql # not compatible
query II rowsort label-4586
SELECT ALL + 54 AS col1, - COUNT ( * ) AS col2 FROM tab0
----
54
-3

query I rowsort
SELECT 72 + + - col2 FROM tab0
----
-27
25
62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4588
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4588
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT + + ( COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4589
SELECT + + ( COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 32 * + col2 AS col2 FROM tab0
----
-1504
-3168
-320

query I rowsort
SELECT - - 10 AS col0 FROM tab2 WHERE NOT - - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 63 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4593
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4593
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT ( 81 ) FROM tab1
----
81
81
81

query I rowsort
SELECT + 94 AS col2 FROM tab2 WHERE NOT + 80 * - - col2 * + col1 + + col1 > ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4596
SELECT col0 AS col2, + col2 * col1 / + CAST( NULL AS DECIMAL ) * - - 28 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-4596
SELECT col0 AS col2, + col2 * col1 / + CAST ( NULL AS REAL ) * - - 28 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - 31 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT COUNT( ALL + 34 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4598
SELECT COUNT ( ALL + 34 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT MAX( - 19 ) AS col1 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4599
SELECT MAX ( - 19 ) AS col1 FROM tab0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 84 col2 FROM tab2
----
-84
-84
-84

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + - col2 + 44 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4602
SELECT DISTINCT + SUM( - + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4602
SELECT DISTINCT + SUM ( - + col0 ) AS col1 FROM tab1
----
-227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 11 + - + col0 col2 FROM tab2 cor0
----
-57
-75
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL + 42 DIV - + 59 col2 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4604
SELECT ALL + 42 / - + 59 col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4605
SELECT CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 / + col1 = col1
----

query I rowsort
SELECT DISTINCT + 71 + + - 27 + + ( - + col0 ) FROM tab1 cor0
----
-41
-47
-7

query I rowsort
SELECT ALL + ( + col0 ) + 42 AS col2 FROM tab1 AS cor0
----
127
133
93

query I rowsort
SELECT 73 AS col2 FROM tab2 AS cor0 WHERE 77 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4610
SELECT - + 97 + + + 52 + - COUNT( * ) FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4610
SELECT - + 97 + + + 52 + - COUNT ( * ) FROM tab0 AS cor0
----
-48

query I rowsort
SELECT ALL + + col1 + + + col1 * - col1 + + col2 AS col0 FROM tab0 AS cor0
----
-410
-6433
99

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT NULL <= + 34
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4613
SELECT CAST( - col1 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + + col0 * - 12 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4613
SELECT CAST ( - col1 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 + + col0 * - 12 AND NULL
----

query II rowsort
SELECT col0 * - col1 * 56 + - + 91 + - 98 * col1 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
-136465
51
-283605
77
-288057
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT + 84 * - COUNT( * ) * - - MAX( - 22 ) AS col0 FROM tab2
----
5544

skipif mysql # not compatible
query I rowsort label-4615
SELECT + 84 * - COUNT ( * ) * - - MAX ( - 22 ) AS col0 FROM tab2
----
5544

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT ALL MAX( + + 56 ) FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4616
SELECT ALL MAX ( + + 56 ) FROM tab2
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT ALL - MIN( col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4617
SELECT ALL - MIN ( col0 ) FROM tab0
----
-15

query I rowsort
SELECT ALL + + ( - + col1 ) FROM tab1 cor0
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4619
SELECT ( + col2 ), CAST( NULL AS SIGNED ) / - col1 * + col2 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-4619
SELECT ( + col2 ), CAST ( NULL AS INTEGER ) / - col1 * + col2 AS col1 FROM tab2 AS cor0
----
23
NULL
40
NULL
58
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 47 + - col2 + + - col0 * - col2 - - col2 NOT BETWEEN + col2 * + col2 AND 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4621
SELECT + COUNT( - col0 ) * + ( + 42 ) * 24 AS col0 FROM tab2 cor0
----
3024

skipif mysql # not compatible
query I rowsort label-4621
SELECT + COUNT ( - col0 ) * + ( + 42 ) * 24 AS col0 FROM tab2 cor0
----
3024

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT - MIN( ALL + + 22 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-4623
SELECT - MIN ( ALL + + 22 ) FROM tab1
----
-22

query I rowsort
SELECT + - col1 FROM tab1 cor0 WHERE NOT + 61 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4625
SELECT - 92 DIV col1 + - col2 FROM tab2 AS cor0
----
-24
-41
-59

skipif mysql # not compatible
query I rowsort label-4625
SELECT - 92 / col1 + - col2 FROM tab2 AS cor0
----
-24
-41
-59

query I rowsort
SELECT + + 93 * + col0 * col2 * - col1 FROM tab0 AS cor0
----
-1699110
-5310765
-893079

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= - 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT ALL + SUM( - 57 ) AS col2 FROM tab1 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + SUM ( - 57 ) AS col2 FROM tab1 AS cor0
----
-171

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4629
SELECT DISTINCT - - CAST( - ( - MAX( ALL - CAST( - - col0 AS SIGNED ) ) ) AS SIGNED ) + - + 3 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 AND - + col1 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4629
SELECT DISTINCT - - CAST ( - ( - MAX ( ALL - CAST ( - - col0 AS INTEGER ) ) ) AS INTEGER ) + - + 3 FROM tab1 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 AND - + col1 * + col2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 * - col1 + col0 * - - col1 - 38 + + - ( - + col2 ) * + col2 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4631
SELECT - - COUNT( * ) * - COUNT( * ) * + - SUM( + 28 ) FROM tab0 cor0
----
756

skipif mysql # not compatible
query I rowsort label-4631
SELECT - - COUNT ( * ) * - COUNT ( * ) * + - SUM ( + 28 ) FROM tab0 cor0
----
756

query II rowsort
SELECT col1, 92 FROM tab2 cor0
----
51
92
67
92
77
92

onlyif mysql # aggregate syntax: 
query II rowsort label-4633
SELECT DISTINCT + MAX( ( + 4 ) ) AS col0, - 96 AS col2 FROM tab0 AS cor0
----
4
-96

skipif mysql # not compatible
query II rowsort label-4633
SELECT DISTINCT + MAX ( ( + 4 ) ) AS col0, - 96 AS col2 FROM tab0 AS cor0
----
4
-96

query I rowsort
SELECT - - ( 80 ) * - col0 AS col1 FROM tab0 AS cor0
----
-1200
-6960
-7760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 11 * + 74 + - col0 + 33 col1 FROM tab2 AS cor0
----
23
-827
40
-845
58
-856

onlyif mysql # aggregate syntax: 
query I rowsort label-4636
SELECT DISTINCT + SUM( ALL + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4636
SELECT DISTINCT + SUM ( ALL + col0 ) FROM tab0 AS cor0
----
199

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * - - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT ALL COUNT( + - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4638
SELECT ALL COUNT ( + - col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT - COUNT( * ) + - + 8 col1 FROM tab2, tab2 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4639
SELECT - COUNT ( * ) + - + 8 col1 FROM tab2, tab2 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4640
SELECT SUM( + + 76 ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4640
SELECT SUM ( + + 76 ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
225

onlyif mysql # DIV for integer division: 
query I rowsort label-4641
SELECT DISTINCT - 64 + + 44 DIV - col0 AS col0 FROM tab0 AS cor0
----
-64
-66

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT - 64 + + 44 / - col0 AS col0 FROM tab0 AS cor0
----
-64
-66

query II rowsort
SELECT DISTINCT 42 AS col1, 69 FROM tab1
----
42
69

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col2 * - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4644
SELECT col2 DIV + CAST( + - col2 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4644
SELECT col2 / + CAST ( + - col2 AS INTEGER ) FROM tab1
----
-1
-1
-1

query II rowsort
SELECT col1, - 59 + + - ( col0 ) + + col2 FROM tab1 AS cor0
----
14
-14
47
-82
5
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT - COUNT( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4646
SELECT - COUNT ( ALL - col0 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT 93 - + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-4647
SELECT 93 - + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT 73 - + + 42 AS col2 FROM tab0 AS cor0
----
31
31
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 18 ) - + col1 col2 FROM tab1 AS cor0
----
-29
13
4

query II rowsort
SELECT ALL 78 - - col2 + - col2 + col0 * + ( + 23 ) AS col2, col2 FROM tab0 cor0
----
2079
10
2309
99
423
47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN 92 AND + 3
----

query I rowsort
SELECT + - col0 - col1 FROM tab2 cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT + 61 + - col2 + + 12 * 30 FROM tab1 AS cor0
----
325
353
362

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT ALL + CAST( col2 AS SIGNED ) - + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4654
SELECT ALL + CAST ( col2 AS INTEGER ) - + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + COUNT( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + COUNT ( DISTINCT + col1 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
0

query II rowsort
SELECT ALL - col1, + ( - col0 ) AS col1 FROM tab0
----
-1
-97
-21
-87
-81
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT ALL + MIN( DISTINCT - 94 ) - 25 FROM tab1
----
-119

skipif mysql # not compatible
query I rowsort label-4657
SELECT ALL + MIN ( DISTINCT - 94 ) - 25 FROM tab1
----
-119

onlyif mysql # DIV for integer division: 
query I rowsort label-4658
SELECT + col1 DIV + ( + + col2 ) + + col1 * - - col1 FROM tab0
----
1
443
6562

skipif mysql # not compatible
query I rowsort label-4658
SELECT + col1 / + ( + + col2 ) + + col1 * - - col1 FROM tab0
----
1
443
6562

onlyif mysql # DIV for integer division: 
query I rowsort label-4659
SELECT 54 DIV - 72 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4659
SELECT 54 / - 72 AS col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4660
SELECT 71 * MIN( ALL col0 ) DIV + + COUNT( * ) AS col1 FROM tab1
----
1207

skipif mysql # not compatible
query I rowsort label-4660
SELECT 71 * MIN ( ALL col0 ) / + + COUNT ( * ) AS col1 FROM tab1
----
1207

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) * + col1 col1 FROM tab0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4662
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4662
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL > CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT ALL + col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4664
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4664
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4665
SELECT DISTINCT col1 * - - col0 AS col1, 40 - + col0 + - + 97 + - ( + col1 ) DIV 93 FROM tab2
----
2346
-103
4928
-121
5025
-132

skipif mysql # not compatible
query II rowsort label-4665
SELECT DISTINCT col1 * - - col0 AS col1, 40 - + col0 + - + 97 + - ( + col1 ) / 93 FROM tab2
----
2346
-103
4928
-121
5025
-132

query I rowsort
SELECT ALL + 25 + col0 FROM tab1 AS cor0
----
110
116
76

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 ) = col0 * + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 + - col1 AS col0 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4669
SELECT col2, col0 + - - CAST( NULL AS SIGNED ) + - + col2 AS col1, - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 66ae4101094bd7c020f4f9a2c86fd2b7

skipif mysql # not compatible
query III rowsort label-4669
SELECT col2, col0 + - - CAST ( NULL AS INTEGER ) + - + col2 AS col1, - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 66ae4101094bd7c020f4f9a2c86fd2b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4670
SELECT - CAST( + col2 AS SIGNED ) * 87 + + col2 + - 1 * col2 + + ( + ( + + col2 ) ) AS col0 FROM tab2
----
-1978
-3440
-4988

skipif mysql # not compatible
query I rowsort label-4670
SELECT - CAST ( + col2 AS INTEGER ) * 87 + + col2 + - 1 * col2 + + ( + ( + + col2 ) ) AS col0 FROM tab2
----
-1978
-3440
-4988

query I rowsort
SELECT col1 + + - col0 + + col0 AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT - col1 + - ( - 11 ) + 6 FROM tab2
----
-34
-50
-60

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4673
SELECT CAST( + ( - ( 19 ) ) AS SIGNED ) DIV - col1 FROM tab0
----
0
0
19

skipif mysql # not compatible
query I rowsort label-4673
SELECT CAST ( + ( - ( 19 ) ) AS INTEGER ) / - col1 FROM tab0
----
0
0
19

query I rowsort
SELECT ALL - 92 + col0 FROM tab1 cor0
----
-1
-41
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4675
SELECT - - COUNT( * ) AS col1, COUNT( * ) * ( + 81 ) AS col2 FROM tab0 AS cor0
----
3
243

skipif mysql # not compatible
query II rowsort label-4675
SELECT - - COUNT ( * ) AS col1, COUNT ( * ) * ( + 81 ) AS col2 FROM tab0 AS cor0
----
3
243

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 85 * - col2 / + col0 - col2 + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4677
SELECT 74 DIV - - MAX( DISTINCT + ( + ( - 90 ) ) ) + - - MAX( DISTINCT - + col0 ) col1 FROM tab1
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4677
SELECT 74 / - - MAX ( DISTINCT + ( + ( - 90 ) ) ) + - - MAX ( DISTINCT - + col0 ) col1 FROM tab1
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4678
SELECT - 24 + + + CAST( NULL AS SIGNED ) * + col0 * col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4678
SELECT - 24 + + + CAST ( NULL AS INTEGER ) * + col0 * col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 74 ) FROM tab2
----
-74

query I rowsort
SELECT ALL + + col2 * + 41 FROM tab0 AS cor0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT + COUNT( - 85 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4681
SELECT + COUNT ( - 85 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT - COUNT( * ) - + + ( - - 57 ) AS col0 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT - COUNT ( * ) - + + ( - - 57 ) AS col0 FROM tab0 cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - MIN( - - 53 ) FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-4683
SELECT - MIN ( - - 53 ) FROM tab1 AS cor0
----
-53

query I rowsort
SELECT col2 * - - col0 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4685
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT + col0 - CAST( NULL AS SIGNED ) <> - col0
----
0

skipif mysql # not compatible
query I rowsort label-4685
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT + col0 - CAST ( NULL AS INTEGER ) <> - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL - + COUNT( * ) FROM tab1 WHERE ( col2 NOT IN ( col2 + + + 42, + 35, + col2, + col2, + 24 ) )
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL - + COUNT ( * ) FROM tab1 WHERE ( col2 NOT IN ( col2 + + + 42, + 35, + col2, + col2, + 24 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4687
SELECT + col0 * - - col0 AS col2 FROM tab2 WHERE NOT - - col0 * - + CAST( NULL AS SIGNED ) < - 58
----

skipif mysql # not compatible
query I rowsort label-4687
SELECT + col0 * - - col0 AS col2 FROM tab2 WHERE NOT - - col0 * - + CAST ( NULL AS INTEGER ) < - 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL COUNT( - 14 ) * ( - - 71 ) FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL COUNT ( - 14 ) * ( - - 71 ) FROM tab2
----
213

query I rowsort
SELECT col2 * + ( - col2 ) AS col0 FROM tab0
----
-100
-2209
-9801

query I rowsort
SELECT DISTINCT 42 * - - 90 AS col0 FROM tab2
----
3780

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4691
SELECT MIN( - col0 ) * + CAST( NULL AS SIGNED ) + 60 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4691
SELECT MIN ( - col0 ) * + CAST ( NULL AS INTEGER ) + 60 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col1 * - col0 FROM tab0 cor0
----
-1215
-1827
-97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= - col1 * + + 16
----

query I rowsort
SELECT ALL - ( - 34 ) + - 0 - - col1 + - col2 FROM tab1 WHERE col1 / + 1 IS NOT NULL
----
-20
-48
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4695
SELECT - COUNT( * ) * + 44 FROM tab0 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-4695
SELECT - COUNT ( * ) * + 44 FROM tab0 AS cor0
----
-132

query I rowsort
SELECT - + col0 * - ( col0 ) AS col0 FROM tab2 AS cor0
----
2116
4096
5625

query II rowsort
SELECT - col1 AS col1, - col1 * 36 + - - 2 * + col2 - + col1 FROM tab2 AS cor0
----
-51
-1841
-67
-2363
-77
-2769

query I rowsort
SELECT col1 * + col1 - + col0 AS col2 FROM tab0 AS cor0
----
-96
354
6546

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4699
SELECT DISTINCT - CAST( + - 17 AS SIGNED ) col2, - 53 DIV + - col0 FROM tab0 AS cor0
----
17
0
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4699
SELECT DISTINCT - CAST ( + - 17 AS INTEGER ) col2, - 53 / + - col0 FROM tab0 AS cor0
----
17
0
17
3

query I rowsort
SELECT ALL col1 * - col2 * col2 * + col1 AS col0 FROM tab1
----
-10214416
-1806336
-87025

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT MIN( DISTINCT + col2 ) AS col1 FROM tab1 WHERE + + col0 * + + col1 < col2 / + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT MIN ( DISTINCT + col2 ) AS col1 FROM tab1 WHERE + + col0 * + + col1 < col2 / + + col1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + ( + col1 ) < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL - COUNT( + + 10 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL OR - 86 * - col0 + - 45 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL - COUNT ( + + 10 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL OR - 86 * - col0 + - 45 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT - COUNT( * ) + + MIN( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

skipif mysql # not compatible
query I rowsort label-4704
SELECT - COUNT ( * ) + + MIN ( DISTINCT - col0 ) FROM tab0 AS cor0
----
-100

query II rowsort
SELECT - 11 + + - col2, col2 FROM tab1 AS cor0
----
-107
96
-70
59
-79
68

query I rowsort
SELECT col0 + - + col1 FROM tab1 AS cor0
----
37
44
80

query I rowsort
SELECT DISTINCT - + 97 AS col2 FROM tab1 cor0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-4708
SELECT - 67 + + - 44 AS col0, COUNT( * ) FROM tab0 cor0
----
-111
3

skipif mysql # not compatible
query II rowsort label-4708
SELECT - 67 + + - 44 AS col0, COUNT ( * ) FROM tab0 cor0
----
-111
3

query I rowsort
SELECT + col2 AS col1 FROM tab2 WHERE + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT DISTINCT SUM( DISTINCT + - col1 ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-4710
SELECT DISTINCT SUM ( DISTINCT + - col1 ) FROM tab0
----
-103

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + SUM( DISTINCT + 91 ) - - COUNT( * ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-4711
SELECT + SUM ( DISTINCT + 91 ) - - COUNT ( * ) FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - COUNT( + 8 ) - - 64 AS col1 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4712
SELECT - COUNT ( + 8 ) - - 64 AS col1 FROM tab0 AS cor0
----
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - ( col1 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4714
SELECT DISTINCT + + ( COUNT( * ) ) + MAX( ALL + col0 ) FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-4714
SELECT DISTINCT + + ( COUNT ( * ) ) + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
100

query I rowsort
SELECT - col1 AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4716
SELECT DISTINCT - COUNT( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4716
SELECT DISTINCT - COUNT ( DISTINCT - col0 ) FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4717
SELECT DISTINCT MAX( + col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4717
SELECT DISTINCT MAX ( + col2 ) AS col2 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 69, + col2 * 8, - 17 + col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - col1 - + col2
----

query I rowsort
SELECT + 39 * 9 FROM tab0
----
351
351
351

query I rowsort
SELECT ALL ( - 81 ) * ( col1 ) FROM tab2
----
-4131
-5427
-6237

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + col1 * + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + col1 * + col1 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT + 91 * + - 36 FROM tab1
----
-3276

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND + 85
----

query I rowsort
SELECT DISTINCT - - 18 FROM tab2 WHERE NULL >= 74 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4726
SELECT - COUNT( * ) * ( - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4726
SELECT - COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT 6 * + col0 FROM tab1
----
306
510
546

query I rowsort
SELECT + col1 * col1 * - col1 AS col0 FROM tab1
----
-103823
-125
-2744

query I rowsort
SELECT - - col2 AS col0 FROM tab2 WHERE NOT 24 IS NOT NULL
----

query II rowsort
SELECT + col0 * + col0 AS col0, - 22 FROM tab0 AS cor0
----
225
-22
7569
-22
9409
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT ALL MAX( ALL 67 ) AS col0 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-4731
SELECT ALL MAX ( ALL 67 ) AS col0 FROM tab2 AS cor0
----
67

query I rowsort
SELECT DISTINCT + col2 * - - 96 * + + col1 + + col1 - - col2 FROM tab2 AS cor0
----
112682
295797
373181

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT DISTINCT COUNT( * ) * - 76 FROM tab0
----
-228

skipif mysql # not compatible
query I rowsort label-4733
SELECT DISTINCT COUNT ( * ) * - 76 FROM tab0
----
-228

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT ALL - ( - COUNT( * ) ) AS col1, AVG ( + - 70 ) FROM tab0 WHERE - - col2 IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4734
SELECT ALL - ( - COUNT ( * ) ) AS col1, AVG ( + - 70 ) FROM tab0 WHERE - - col2 IS NULL
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4735
SELECT MIN( - col1 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-77

skipif mysql # not compatible
query I rowsort label-4735
SELECT MIN ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
-77

query I rowsort
SELECT DISTINCT col1 + + - col0 + + + 52 + - col1 FROM tab1 AS cor0
----
-33
-39
1

query I rowsort
SELECT DISTINCT + + 60 * 1 FROM tab0 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT ALL - COUNT( * ) + - 70 col0 FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4738
SELECT ALL - COUNT ( * ) + - 70 col0 FROM tab0 AS cor0
----
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT ALL COUNT( - 9 ) + MIN( col0 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4739
SELECT ALL COUNT ( - 9 ) + MIN ( col0 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT - col0 + + ( - col0 ) FROM tab1
----
-102
-170
-182

query II rowsort
SELECT + col1 AS col2, 77 FROM tab1
----
14
77
47
77
5
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4743
SELECT ALL - 34 col1, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-34
NULL
-34
NULL
-34
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4743
SELECT ALL - 34 col1, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-34
NULL
-34
NULL
-34
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT DISTINCT - 30 * + SUM( DISTINCT 14 ) + 91 AS col1 FROM tab0
----
-329

skipif mysql # not compatible
query I rowsort label-4744
SELECT DISTINCT - 30 * + SUM ( DISTINCT 14 ) + 91 AS col1 FROM tab0
----
-329

query I rowsort
SELECT ALL - col2 + - + 80 FROM tab1 AS cor0
----
-139
-148
-176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col0 * + col2 col2 FROM tab1 AS cor0 WHERE 63 * col0 IS NOT NULL
----
-51
4896
-85
5015
-91
6188

query I rowsort
SELECT 33 + - - col1 - + 71 * + + 87 * - 82 AS col1 FROM tab2 AS cor0
----
506598
506614
506624

onlyif mysql # DIV for integer division: 
query I rowsort label-4748
SELECT DISTINCT 84 DIV + + 84 AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4748
SELECT DISTINCT 84 / + + 84 AS col0 FROM tab0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= + 73
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( 27 ) col2 FROM tab1 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col1 * - 20 - + col1 * - 18 AS col0 FROM tab2 AS cor0
----
-102
-134
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col0, - 77 col2 FROM tab1 cor0 WHERE NOT + col2 IS NULL
----
-51
-77
-85
-77
-91
-77

onlyif mysql # DIV for integer division: 
query II rowsort label-4753
SELECT - col1 DIV - - col1 AS col0, 72 DIV - - col2 FROM tab1 AS cor0
----
-1
0
-1
1
-1
1

skipif mysql # not compatible
query II rowsort label-4753
SELECT - col1 / - - col1 AS col0, 72 / - - col2 FROM tab1 AS cor0
----
-1
0
-1
1
-1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 62 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 * - - col2 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT + - 70 AS col0, col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL = col0
----

query I rowsort
SELECT DISTINCT - 25 * + 60 FROM tab2 AS cor0
----
-1500

query I rowsort
SELECT - 37 * 48 - col2 FROM tab1 AS cor0
----
-1835
-1844
-1872

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 50 * + - col1 col0 FROM tab2
----
-2550
-3350
-3850

query I rowsort
SELECT DISTINCT - 31 AS col2 FROM tab1, tab0 AS cor0
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) col2 FROM tab2 WHERE NULL >= + col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4761
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 WHERE NULL >= + col2
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4762
SELECT - CAST( NULL AS DECIMAL ) * + ( + col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4762
SELECT - CAST ( NULL AS REAL ) * + ( + col2 ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( 51 ) + - 93 FROM tab2 AS cor0
----
-42

query II rowsort
SELECT ALL - col1 + col1, - 73 AS col2 FROM tab1 AS cor0
----
0
-73
0
-73
0
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) * + - col2 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) * + - col2 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - - 22 + + 17 * - col0 AS col2 FROM tab2 AS cor0
----
199
340
606

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + + MIN( - 40 ) * - COUNT( * ) FROM tab1 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + + MIN ( - 40 ) * - COUNT ( * ) FROM tab1 AS cor0
----
120

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 34 * - 38 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4769
SELECT DISTINCT + 30 DIV + 44 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4769
SELECT DISTINCT + 30 / + 44 AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4770
SELECT * FROM tab2 WHERE CAST( + 19 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4770
SELECT * FROM tab2 WHERE CAST ( + 19 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col1 AS col1, 40 AS col0 FROM tab0
----
1
40
21
40
81
40

query I rowsort
SELECT - col0 + col2 * - col0 * col2 AS col0 FROM tab0
----
-33150
-8787
-950794

query I rowsort
SELECT - 48 + - - col0 AS col1 FROM tab0 AS cor0
----
-33
39
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 20 + ( col1 ) col0 FROM tab2 AS cor0
----
31
47
57

query I rowsort
SELECT DISTINCT - 26 + col2 FROM tab1 AS cor0
----
33
42
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 BETWEEN NULL AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4777
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + CAST( 70 AS SIGNED ) * - 5
----

skipif mysql # not compatible
query III rowsort label-4777
SELECT DISTINCT * FROM tab1 WHERE NOT NULL > + CAST ( 70 AS INTEGER ) * - 5
----

query II rowsort
SELECT ALL + 34, col0 AS col2 FROM tab1
----
34
51
34
85
34
91

query I rowsort
SELECT ALL - - col2 * + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
308367
4410
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT - MAX( ALL - + col1 ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4780
SELECT - MAX ( ALL - + col1 ) AS col0 FROM tab0 cor0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57, 74 col2 FROM tab1 AS cor0
----
57
74
57
74
57
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT DISTINCT - SUM( ALL - ( + 0 ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4782
SELECT DISTINCT - SUM ( ALL - ( + 0 ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + col0, - col0, ( - + col1 ), col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 68 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 78 + 48 - - 69 / + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 46 + + - ( - + 29 ) * + 0 FROM tab0
----
46

query I rowsort
SELECT + - col1 * + + 90 * + col1 - col0 FROM tab1 AS cor0
----
-17691
-198901
-2335

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL + 85 + + col2 + + 58 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + 85 + + col2 + + 58 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col0 AS col1, - col2 + col1 FROM tab2
----
46
28
64
37
75
9

query II rowsort
SELECT + col2 AS col0, col0 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL MAX( DISTINCT + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL MAX ( DISTINCT + col0 ) AS col1 FROM tab1
----
91

query I rowsort
SELECT - - col2 + - - 93 * + 8 AS col0 FROM tab1 AS cor0
----
803
812
840

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) * col2 FROM tab2 AS cor0
----
-1127
-3016
-3811

query I rowsort
SELECT ALL + ( + col2 ) * - col2 AS col1 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4796
SELECT MAX( + 69 ) AS col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-4796
SELECT MAX ( + 69 ) AS col0 FROM tab2 AS cor0
----
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4797
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + + CAST( + 59 AS SIGNED ) + - col0 * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4797
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 + + + CAST ( + 59 AS INTEGER ) + - col0 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4798
SELECT DISTINCT - 30 * - COUNT( * ) * 69 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
6210

skipif mysql # not compatible
query I rowsort label-4798
SELECT DISTINCT - 30 * - COUNT ( * ) * 69 AS col1 FROM tab1 WHERE NOT col0 IS NULL
----
6210

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT DISTINCT + SUM( ALL col2 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT + SUM ( ALL col2 ) AS col0 FROM tab2
----
121

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4800
SELECT 34 DIV ( - COUNT( * ) ) FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-4800
SELECT 34 / ( - COUNT ( * ) ) FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-4801
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - col0 BETWEEN 90 + + col1 AND - + col0
----
0

skipif mysql # not compatible
query I rowsort label-4801
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col0 BETWEEN 90 + + col1 AND - + col0
----
0

query I rowsort
SELECT ALL 91 + col0 FROM tab2 AS cor0
----
137
155
166

query I rowsort
SELECT col1 - 16 + + col1 FROM tab2 AS cor0
----
118
138
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4804
SELECT ALL 5 * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4804
SELECT ALL 5 * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - - ( + 65 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8bef2ea1f05f3514633f851312bdd805

onlyif mysql # aggregate syntax: 
query I rowsort label-4806
SELECT MAX( - - 71 ) FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-4806
SELECT MAX ( - - 71 ) FROM tab0
----
71

query I rowsort
SELECT ALL + 57 * 44 FROM tab2
----
2508
2508
2508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

query I rowsort
SELECT DISTINCT 67 * 13 FROM tab1 AS cor0
----
871

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - - COUNT( * ) * - - COUNT( * ) * + 73 * + SUM( ALL - - 59 ) + COUNT( * ) FROM tab0 AS cor0
----
116292

skipif mysql # not compatible
query I rowsort label-4810
SELECT - - COUNT ( * ) * - - COUNT ( * ) * + 73 * + SUM ( ALL - - 59 ) + COUNT ( * ) FROM tab0 AS cor0
----
116292

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4811
SELECT ALL - CAST( 21 AS SIGNED ) col2 FROM tab0 AS cor0
----
-21
-21
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT ALL - CAST ( 21 AS INTEGER ) col2 FROM tab0 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4812
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + CAST( NULL AS SIGNED ) + - col0 / - - col1 - - col1 + - 52 >= NULL
----

skipif mysql # not compatible
query III rowsort label-4812
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + CAST ( NULL AS INTEGER ) + - col0 / - - col1 - - col1 + - 52 >= NULL
----

query I rowsort
SELECT ALL + col0 * col1 AS col1 FROM tab2 cor0 WHERE NOT NULL < 59
----

query I rowsort
SELECT 84 * - + col0 - - 38 FROM tab1 AS cor0
----
-4246
-7102
-7606

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT + - SUM( DISTINCT + col0 ) FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4815
SELECT + - SUM ( DISTINCT + col0 ) FROM tab2 cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL - SUM( - + col2 ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL - SUM ( - + col2 ) FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-4817
SELECT - col1 DIV ( 24 ) FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4817
SELECT - col1 / ( 24 ) FROM tab0
----
-3
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col1, - 1 FROM tab2
----
46
-1
64
-1
75
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4819
SELECT DISTINCT - col1 DIV + 68 + col0 + 73 AS col2 FROM tab2
----
119
136
148

skipif mysql # not compatible
query I rowsort label-4819
SELECT DISTINCT - col1 / + 68 + col0 + 73 AS col2 FROM tab2
----
119
136
148

query I rowsort
SELECT DISTINCT - + 1 FROM tab1 WHERE - col0 + - col2 BETWEEN - col1 AND 0
----

query II rowsort
SELECT ALL - 58 + 63 AS col1, + col2 + + + col0 AS col2 FROM tab0
----
5
196
5
62
5
97

onlyif mysql # DIV for integer division: 
query II rowsort label-4822
SELECT ALL + 20, col1 DIV + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
20
-48
20
-65
20
-76

skipif mysql # not compatible
query II rowsort label-4822
SELECT ALL + 20, col1 / + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
20
-48
20
-65
20
-76

query I rowsort
SELECT DISTINCT + + col1 + - col1 FROM tab0 AS cor0 WHERE ( ( NOT ( NOT col2 * - 38 IS NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4824
SELECT ALL CAST( 58 AS SIGNED ) FROM tab1 AS cor0
----
58
58
58

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL CAST ( 58 AS INTEGER ) FROM tab1 AS cor0
----
58
58
58

query I rowsort
SELECT + col0 + 32 + col0 AS col2 FROM tab2 AS cor0
----
124
160
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4826
SELECT DISTINCT - - SUM( ALL + col0 ) FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-4826
SELECT DISTINCT - - SUM ( ALL + col0 ) FROM tab0 AS cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT 42 + - COUNT( * ) + - 11 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT 42 + - COUNT ( * ) + - 11 FROM tab0
----
28

onlyif mysql # DIV for integer division: 
query II rowsort label-4828
SELECT + - col1 DIV col1, - col2 AS col1 FROM tab0 AS cor0
----
-1
-10
-1
-47
-1
-99

skipif mysql # not compatible
query II rowsort label-4828
SELECT + - col1 / col1, - col2 AS col1 FROM tab0 AS cor0
----
-1
-10
-1
-47
-1
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4830
SELECT ALL 37 + - 75 DIV + 82 AS col2 FROM tab2 AS cor0
----
37
37
37

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL 37 + - 75 / + 82 AS col2 FROM tab2 AS cor0
----
37
37
37

query I rowsort
SELECT ALL - 36 + + col1 * - + col2 FROM tab0 AS cor0
----
-135
-246
-3843

query I rowsort
SELECT DISTINCT + - 92 + ( + 74 ) AS col1 FROM tab0 AS cor0
----
-18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4833
SELECT - COUNT( * ) - CAST( COUNT( ALL + col2 ) AS SIGNED ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4833
SELECT - COUNT ( * ) - CAST ( COUNT ( ALL + col2 ) AS INTEGER ) FROM tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + - 35 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT ALL - - col0 - ( col0 ) AS col2 FROM tab2 WHERE NOT 95 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4836
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 * ( - + 45 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 * ( - + 45 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4837
SELECT - COUNT( * ) AS col0 FROM tab1 WHERE - 3 * col1 BETWEEN NULL AND + col0 + + + 99 / 87 * - col2 + - col0
----
0

skipif mysql # not compatible
query I rowsort label-4837
SELECT - COUNT ( * ) AS col0 FROM tab1 WHERE - 3 * col1 BETWEEN NULL AND + col0 + + + 99 / 87 * - col2 + - col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + col1 - + col1 + col2 - + col2 * + 63 AS col0, + col0 col2 FROM tab2
----
-1380
46
-2416
64
-3521
75

query I rowsort
SELECT DISTINCT + 25 * + ( + 5 ) FROM tab0
----
125

query I rowsort
SELECT - - col1 AS col0 FROM tab2 WHERE ( NOT - 18 > NULL )
----

query II rowsort
SELECT + col1 AS col2, + col0 * col2 - + col2 + - - col1 AS col1 FROM tab0
----
1
9505
21
881
81
739

query II rowsort
SELECT - col1 AS col1, 61 * + - 25 FROM tab2 AS cor0
----
-51
-1525
-67
-1525
-77
-1525

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 BETWEEN + ( - col1 ) * col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4844
SELECT ALL * FROM tab0 WHERE ( - CAST( NULL AS SIGNED ) ) BETWEEN + col0 AND ( col2 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-4844
SELECT ALL * FROM tab0 WHERE ( - CAST ( NULL AS INTEGER ) ) BETWEEN + col0 AND ( col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT + 33 + + ( - COUNT( * ) ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT + 33 + + ( - COUNT ( * ) ) FROM tab0
----
30

query I rowsort
SELECT DISTINCT + col0 + + 59 * ( col2 * + col1 + col2 ) FROM tab1 WHERE ( 61 - col2 ) IS NULL
----

query I rowsort
SELECT ALL 99 + - 44 AS col0 FROM tab1
----
55
55
55

query I rowsort
SELECT col2 + + col1 AS col0 FROM tab2 WHERE NOT col2 * col2 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT col0 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) * + 46 - col0 * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4850
SELECT col0 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) * + 46 - col0 * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT - COUNT( 15 ) + MIN( ALL + col2 ) AS col2 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-4851
SELECT - COUNT ( 15 ) + MIN ( ALL + col2 ) AS col2 FROM tab2
----
20

query I rowsort
SELECT col2 * + col1 + - col0 * col1 AS col2 FROM tab0
----
-1617
2
2592

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 59 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col1 FROM tab2
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT COUNT( * ) + 28 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-4855
SELECT COUNT ( * ) + 28 FROM tab0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-4856
SELECT 17 * + COUNT( * ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4856
SELECT 17 * + COUNT ( * ) FROM tab2
----
51

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT ALL ( - col2 ) - + 43 AS col2 FROM tab1
----
-102
-111
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT + COUNT( * ) * - 78 + - 26 AS col1 FROM tab1
----
-260

skipif mysql # not compatible
query I rowsort label-4859
SELECT + COUNT ( * ) * - 78 + - 26 AS col1 FROM tab1
----
-260

onlyif mysql # aggregate syntax: 
query I rowsort label-4860
SELECT ALL - 17 - - COUNT( * ) * 66 FROM tab1
----
181

skipif mysql # not compatible
query I rowsort label-4860
SELECT ALL - 17 - - COUNT ( * ) * 66 FROM tab1
----
181

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4862
SELECT + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE col0 <> ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4862
SELECT + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE col0 <> ( col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4863
SELECT ALL - CAST( NULL AS SIGNED ) * 65 col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4863
SELECT ALL - CAST ( NULL AS INTEGER ) * 65 col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 + - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 24 + - col2 FROM tab0 cor0
----
-123
-34
-71

query I rowsort
SELECT col0 - 0 FROM tab0 WHERE - col1 + col1 * 31 BETWEEN - 75 AND col0 + col1
----
97

query I rowsort
SELECT col0 FROM tab1 WHERE 98 * col0 <= ( NULL )
----

query I rowsort
SELECT DISTINCT + ( ( ( + col1 ) ) ) * - col2 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT ALL - 76 FROM tab1 cor0 CROSS JOIN tab2
----
9 values hashing to f8b6589bc7503fc720ca5430e3569317

onlyif mysql # DIV for integer division: 
query I rowsort label-4870
SELECT DISTINCT + col2 DIV 32 + + 42 FROM tab2 AS cor0
----
42
43

skipif mysql # not compatible
query I rowsort label-4870
SELECT DISTINCT + col2 / 32 + + 42 FROM tab2 AS cor0
----
42
43

query I rowsort
SELECT ALL + - col1 * + 31 + - col1 * - col1 AS col2 FROM tab1 AS cor0
----
-130
-238
752

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4873
SELECT * FROM tab1 AS cor0 WHERE - 7 * col2 IN ( - 19 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4873
SELECT * FROM tab1 AS cor0 WHERE - 7 * col2 IN ( - 19 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 * col0 - 13 * - col1 AS col0 FROM tab2 AS cor0
----
1721
3561
5221

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT ALL - 35 + + MIN( DISTINCT col1 + 20 * col1 ) AS col0 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - 35 + + MIN ( DISTINCT col1 + 20 * col1 ) AS col0 FROM tab0 AS cor0
----
-14

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE + 11 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT 62 * + COUNT( * ) FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4877
SELECT 62 * + COUNT ( * ) FROM tab2 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-4878
SELECT + SUM( ALL - 10 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-4878
SELECT + SUM ( ALL - 10 ) FROM tab0
----
-30

query III rowsort
SELECT * FROM tab0 WHERE ( + col1 * - col2 ) = ( + col0 )
----

query I rowsort
SELECT ALL - col2 - 47 FROM tab0
----
-146
-57
-94

query I rowsort
SELECT ALL - 86 * + col0 FROM tab2
----
-3956
-5504
-6450

query I rowsort
SELECT ALL + 57 AS col1 FROM tab2 WHERE NOT NULL > + col0 * col2
----

query I rowsort
SELECT 34 - col2 + col0 AS col2 FROM tab0
----
111
2
32

query I rowsort
SELECT col2 * - ( + 87 ) AS col2 FROM tab0
----
-4089
-8613
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT ALL 12 * + COUNT( * ) FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-4885
SELECT ALL 12 * + COUNT ( * ) FROM tab2
----
36

query I rowsort
SELECT col1 * - col0 AS col0 FROM tab2 WHERE NOT col0 + - col2 IS NULL
----
-2346
-4928
-5025

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT col0 IN ( col1 )
----
-1
-21
-81

query I rowsort
SELECT 61 AS col2 FROM tab1 cor0
----
61
61
61

query I rowsort
SELECT - + col1 * - 64 AS col1 FROM tab1 cor0
----
3008
320
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT + COUNT( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4890
SELECT + COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT col2, + col0 + - col0 + - col0 AS col0 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4892
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2
----
-9

query I rowsort
SELECT - col0 * - - 7 FROM tab2
----
-322
-448
-525

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 - col2 NOT IN ( - 69 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + 19 * - COUNT( * ) FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + 19 * - COUNT ( * ) FROM tab0
----
-57

query I rowsort
SELECT + 24 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query II rowsort label-4897
SELECT + + 55 AS col2, COUNT( * ) - - - 72 AS col1 FROM tab0 cor0
----
55
-69

skipif mysql # not compatible
query II rowsort label-4897
SELECT + + 55 AS col2, COUNT ( * ) - - - 72 AS col1 FROM tab0 cor0
----
55
-69

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 3 + + col1 FROM tab1 AS cor0
----
17
50
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4900
SELECT DISTINCT - + SUM( - col1 ) AS col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-4900
SELECT DISTINCT - + SUM ( - col1 ) AS col0 FROM tab2 AS cor0
----
195

query I rowsort
SELECT + ( - 52 ) AS col2 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # DIV for integer division: 
query II rowsort label-4902
SELECT - col1 AS col1, 9 * - ( - col0 ) * - col0 + col0 DIV + 70 FROM tab1 AS cor0
----
-14
-23409
-47
-74528
-5
-65024

skipif mysql # not compatible
query II rowsort label-4902
SELECT - col1 AS col1, 9 * - ( - col0 ) * - col0 + col0 / + 70 FROM tab1 AS cor0
----
-14
-23409
-47
-74528
-5
-65024

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 35 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4904
SELECT + - col1 * + col0 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4904
SELECT + - col1 * + col0 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT DISTINCT - - MAX( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4905
SELECT DISTINCT - - MAX ( - ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 / + - 69 ) >= + 96 * 32
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4907
SELECT - - CAST( col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-4907
SELECT - - CAST ( col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT DISTINCT - col2 - 82 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * + - col2 IN ( + ( - 30 ) )
----
-141
-150
-178

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT COUNT( * ) DIV + - MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT COUNT ( * ) / + - MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4910
SELECT DISTINCT col0 DIV + 32 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-4910
SELECT DISTINCT col0 / + 32 FROM tab2
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT - COUNT( * ) * + ( + COUNT( * ) ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4911
SELECT - COUNT ( * ) * + ( + COUNT ( * ) ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL - 58 * + - col1 AS col0 FROM tab0
----
1218
4698
58

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT + col2 < ( NULL )
----

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL COUNT( * ) * - 7 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL COUNT ( * ) * - 7 FROM tab2
----
-21

query I rowsort
SELECT ALL col0 + - 58 AS col0 FROM tab1
----
-7
27
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 5 / - - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col1 / - 69 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT ALL - ( + 41 ) * - COUNT( * ) * - COUNT( col0 ) FROM tab1
----
-369

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL - ( + 41 ) * - COUNT ( * ) * - COUNT ( col0 ) FROM tab1
----
-369

onlyif mysql # aggregate syntax: 
query II rowsort label-4920
SELECT DISTINCT COUNT( * ) + - 3, 0 FROM tab0
----
0
0

skipif mysql # not compatible
query II rowsort label-4920
SELECT DISTINCT COUNT ( * ) + - 3, 0 FROM tab0
----
0
0

query I rowsort
SELECT ALL 77 * + - col2 + 12 FROM tab2
----
-1759
-3068
-4454

query I rowsort
SELECT - + col0 + 42 AS col1 FROM tab0 AS cor0
----
-45
-55
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4923
SELECT - 34 * + + COUNT( * ) / - MAX( + - col2 ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 34 * + + COUNT ( * ) / - MAX ( + - col2 ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) >= - + 63
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4925
SELECT DISTINCT 21 + - COUNT( * ) DIV + MIN( DISTINCT - 21 ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-4925
SELECT DISTINCT 21 + - COUNT ( * ) / + MIN ( DISTINCT - 21 ) AS col0 FROM tab0
----
21

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE NOT col0 + col2 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT - CAST( 60 AS SIGNED ) DIV SUM( ALL + col0 ) * MIN( + 80 ) + 74 * 14 - + COUNT( DISTINCT + 86 ) AS col1 FROM tab0 AS cor0
----
1035

skipif mysql # not compatible
query I rowsort label-4927
SELECT - CAST ( 60 AS INTEGER ) / SUM ( ALL + col0 ) * MIN ( + 80 ) + 74 * 14 - + COUNT ( DISTINCT + 86 ) AS col1 FROM tab0 AS cor0
----
1035

query I rowsort
SELECT ALL + + col2 + - + 49 AS col1 FROM tab0 AS cor0
----
-2
-39
50

query I rowsort
SELECT ALL + 36 - + + col2 * + 41 + col1 * col1 AS col0 FROM tab2 AS cor0
----
1694
2147
4325

query I rowsort
SELECT + - col1 * col1 - - col2 AS col2 FROM tab0 AS cor0
----
-431
-6514
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4931
SELECT + 3 - 32 + 11 + ( - - SUM( col2 ) ) FROM tab1 AS cor0
----
205

skipif mysql # not compatible
query I rowsort label-4931
SELECT + 3 - 32 + 11 + ( - - SUM ( col2 ) ) FROM tab1 AS cor0
----
205

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4932
SELECT - CAST( NULL AS SIGNED ) - - - SUM( ALL + - ( + 7 ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4932
SELECT - CAST ( NULL AS INTEGER ) - - - SUM ( ALL + - ( + 7 ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT - CAST( NULL AS SIGNED ) - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT - CAST ( NULL AS INTEGER ) - - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4934
SELECT - - 67 + - COUNT( * ) * + COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-4934
SELECT - - 67 + - COUNT ( * ) * + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4935
SELECT ALL - col2 + ( - + col1 ), - CAST( NULL AS SIGNED ) + + + col2 col1 FROM tab1 AS cor0
----
-110
NULL
-115
NULL
-64
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4935
SELECT ALL - col2 + ( - + col1 ), - CAST ( NULL AS INTEGER ) + + + col2 col1 FROM tab1 AS cor0
----
-110
NULL
-115
NULL
-64
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 97 * - ( - col0 ) - + col2 * + col2 col2 FROM tab0 cor0
----
-392
-754
8339

query I rowsort
SELECT 67 + - 47 FROM tab0 cor0
----
20
20
20

query I rowsort
SELECT DISTINCT + col2 * - 70 AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN + col2 * + col0 * + + col1 * col1 AND col2 AND + ( + 10 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 57 * + col1 ) NOT BETWEEN + 80 AND ( NULL )
----
97
1
99

query I rowsort
SELECT col0 * col2 FROM tab2 AS cor0 WHERE NOT col0 + - col1 / - + 13 NOT IN ( + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 0 * + 47 * 31 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT + MIN( ALL 45 ) AS col0 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-4942
SELECT + MIN ( ALL 45 ) AS col0 FROM tab1
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT + COUNT( ALL - col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4943
SELECT + COUNT ( ALL - col0 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT - ( - - 12 ) AS col1 FROM tab0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT + COUNT( ALL - - col1 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4945
SELECT + COUNT ( ALL - - col1 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT DISTINCT + MIN( DISTINCT + 65 ) FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + MIN ( DISTINCT + 65 ) FROM tab1 AS cor0
----
65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4947
SELECT + COUNT( * ) DIV - - 1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4947
SELECT + COUNT ( * ) / - - 1 FROM tab1 cor0
----
3

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col1 AND - - col0
----

onlyif mysql # aggregate syntax: 
query III rowsort label-4949
SELECT - - COUNT( * ), - COUNT( * ) AS col0, + 67 AS col1 FROM tab1 AS cor0
----
3
-3
67

skipif mysql # not compatible
query III rowsort label-4949
SELECT - - COUNT ( * ), - COUNT ( * ) AS col0, + 67 AS col1 FROM tab1 AS cor0
----
3
-3
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4950
SELECT COUNT( * ) * - - 66, MIN( DISTINCT - 84 ) DIV - - COUNT( * ) col0 FROM tab0
----
198
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4950
SELECT COUNT ( * ) * - - 66, MIN ( DISTINCT - 84 ) / - - COUNT ( * ) col0 FROM tab0
----
198
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + MIN( DISTINCT + - col1 ) FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4951
SELECT + MIN ( DISTINCT + - col1 ) FROM tab2
----
-77

query I rowsort
SELECT ALL + 16 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - col0 + + 37 AS col1 FROM tab0 AS cor0
----
-50
-60
22

query I rowsort
SELECT ALL + col2 + - col2 + 87 AS col2 FROM tab1 AS cor0
----
87
87
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4955
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + 52 BETWEEN + col2 AND + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4957
SELECT SUM( col1 ) + + ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE col1 BETWEEN + - 79 * + + col0 + - 78 AND + ( col0 ) * col1
----
106

skipif mysql # not compatible
query I rowsort label-4957
SELECT SUM ( col1 ) + + ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE col1 BETWEEN + - 79 * + + col0 + - 78 AND + ( col0 ) * col1
----
106

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( NULL ) <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT DISTINCT - 45 * + ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4959
SELECT DISTINCT - 45 * + ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-135

query II rowsort
SELECT ALL + col0, ( col1 ) FROM tab1
----
51
14
85
5
91
47

query I rowsort
SELECT ALL 80 + + col1 FROM tab0
----
101
161
81

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( 53 ) AND 69
----

query I rowsort
SELECT - 26 * - col2 FROM tab0
----
1222
2574
260

query II rowsort
SELECT + col0, + col2 * - - col2 FROM tab1
----
51
9216
85
3481
91
4624

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT DISTINCT - MAX( col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4965
SELECT DISTINCT - MAX ( col2 ) FROM tab2
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT - CAST( + 65 AS SIGNED ) AS col2 FROM tab1
----
-65
-65
-65

skipif mysql # not compatible
query I rowsort label-4966
SELECT - CAST ( + 65 AS INTEGER ) AS col2 FROM tab1
----
-65
-65
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * col2 + col0 + 90 col0 FROM tab2 AS cor0
----
-1446
-3199
-393

query I rowsort
SELECT + col1 - - - 82 FROM tab2 cor0
----
-15
-31
-5

query I rowsort
SELECT col1 * - col0 * + col2 + - - 93 + + col2 FROM tab0
----
-18167
-56965
-9411

onlyif mysql # aggregate syntax: 
query I rowsort label-4970
SELECT ALL 79 + + COUNT( DISTINCT - 37 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
80

skipif mysql # not compatible
query I rowsort label-4970
SELECT ALL 79 + + COUNT ( DISTINCT - 37 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
80

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4971
SELECT ALL CAST( - 86 AS DECIMAL ) AS col0 FROM tab2 cor0 JOIN tab1 AS cor1 ON NOT NULL NOT BETWEEN ( + 51 ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL CAST ( - 86 AS REAL ) AS col0 FROM tab2 cor0 JOIN tab1 AS cor1 ON NOT NULL NOT BETWEEN ( + 51 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 85 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
85

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4974
SELECT DISTINCT + 49 * SUM( - + 95 ) FROM tab1 cor0
----
-13965

skipif mysql # not compatible
query I rowsort label-4974
SELECT DISTINCT + 49 * SUM ( - + 95 ) FROM tab1 cor0
----
-13965

onlyif mysql # aggregate syntax: 
query I rowsort label-4975
SELECT ALL + COUNT( - - col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4975
SELECT ALL + COUNT ( - - col0 ) AS col1 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * + + col2 * - 16 * - - 21 FROM tab1 AS cor0
----
1169616
1553664
3096576

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL 50 * + - MIN( + col1 ) FROM tab0 WHERE ( - 98 + + col0 ) IS NOT NULL
----
-50

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL 50 * + - MIN ( + col1 ) FROM tab0 WHERE ( - 98 + + col0 ) IS NOT NULL
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4979
SELECT + MAX( - CAST( NULL AS SIGNED ) ) * - COUNT( * ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4979
SELECT + MAX ( - CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL + - 83 FROM tab2 WHERE + 49 * + - col2 * + col1 / + + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 - - + 13 FROM tab2 WHERE - col2 IS NULL
----

query II rowsort
SELECT - 40 AS col0, - 55 AS col1 FROM tab1
----
-40
-55
-40
-55
-40
-55

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col0 - - col0
----

query I rowsort
SELECT + 88 * col0 FROM tab0 AS cor0
----
1320
7656
8536

query I rowsort
SELECT 81 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4986
SELECT ALL - - 75 DIV + 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4986
SELECT ALL - - 75 / + 98 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4987
SELECT col2 DIV + + 35 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-4987
SELECT col2 / + + 35 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT + - 22 * + col0 + + col2 FROM tab1 AS cor0
----
-1026
-1811
-1934

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT ALL - - MIN( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4989
SELECT ALL - - MIN ( DISTINCT + + col1 ) AS col0 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN + 5 / + col1 AND NULL
----

query I rowsort
SELECT ALL col0 + 2 * - ( + 92 ) + + col2 AS col2 FROM tab2
----
-115
-51
-80

query I rowsort
SELECT DISTINCT 5 + - col1 + + 51 AS col0 FROM tab1
----
42
51
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4993
SELECT DISTINCT + 48 AS col0, COUNT( * ) FROM tab0 AS cor0
----
48
3

skipif mysql # not compatible
query II rowsort label-4993
SELECT DISTINCT + 48 AS col0, COUNT ( * ) FROM tab0 AS cor0
----
48
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT ( - + SUM( - - ( - col2 ) ) ) AS col0, + SUM( DISTINCT + - col0 ) * - - COUNT( * ) - - SUM( + + col0 ) FROM tab1 AS cor0
----
223
-454

skipif mysql # not compatible
query II rowsort label-4994
SELECT ( - + SUM ( - - ( - col2 ) ) ) AS col0, + SUM ( DISTINCT + - col0 ) * - - COUNT ( * ) - - SUM ( + + col0 ) FROM tab1 AS cor0
----
223
-454

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT - + MAX( - 71 ) AS col0 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-4995
SELECT - + MAX ( - 71 ) AS col0 FROM tab0 AS cor0
----
71

query I rowsort
SELECT DISTINCT col1 + + col2 - col0 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL + - MAX( - col2 ) + + - COUNT( * ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL + - MAX ( - col2 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT ALL + col2 + - + col2 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4999
SELECT COUNT( * ) + + ( + - 65 ) AS col1 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4999
SELECT COUNT ( * ) + + ( + - 65 ) AS col1 FROM tab0
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT - + COUNT( * ) AS col1 FROM tab2 WHERE - col0 * - col2 < - + ( 60 )
----
0

skipif mysql # not compatible
query I rowsort label-5000
SELECT - + COUNT ( * ) AS col1 FROM tab2 WHERE - col0 * - col2 < - + ( 60 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) BETWEEN - col1 AND NULL )
----

query I rowsort
SELECT ALL - col0 + + 20 FROM tab2
----
-26
-44
-55

query II rowsort
SELECT - 10 + - - col2 AS col2, col0 * ( - 78 ) AS col0 FROM tab0
----
0
-6786
37
-1170
89
-7566

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 96 + 91 col1, + 26 AS col2 FROM tab2
----
187
26
187
26
187
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT ALL - CAST( NULL AS SIGNED ) - 6 / - - col2 - - col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT ALL - CAST ( NULL AS INTEGER ) - 6 / - - col2 - - col1 + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = ( col0 ) OR 88 * - col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - ( col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT DISTINCT MIN( DISTINCT col1 ) AS col2 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-5008
SELECT DISTINCT MIN ( DISTINCT col1 ) AS col2 FROM tab1
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT - COUNT( * ) * - - 18 * - + COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-5009
SELECT - COUNT ( * ) * - - 18 * - + COUNT ( * ) FROM tab1
----
162

query I rowsort
SELECT + + 82 * + col1 AS col2 FROM tab1 AS cor0
----
1148
3854
410

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5011
SELECT ALL col2 DIV CAST( + CAST( - 74 AS SIGNED ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5011
SELECT ALL col2 / CAST ( + CAST ( - 74 AS INTEGER ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5012
SELECT - col1 DIV - - 22 AS col1 FROM tab1 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-5012
SELECT - col1 / - - 22 AS col1 FROM tab1 AS cor0
----
-2
0
0

query II rowsort
SELECT ALL + - ( ( col2 ) ) AS col0, - col2 + + 93 AS col2 FROM tab0 AS cor0
----
-10
83
-47
46
-99
-6

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT 87 * - MIN( ALL + 15 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT 87 * - MIN ( ALL + 15 ) FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + + ( + + col2 ) FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col2 FROM tab1 AS cor0 WHERE ( - ( - 22 ) ) + - 8 * - + 36 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT ALL + MAX( ALL + col1 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5018
SELECT ALL + MAX ( ALL + col1 ) FROM tab2
----
77

query III rowsort
SELECT ALL * FROM tab0 WHERE 7 * + + col2 IS NULL
----

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT NULL <= + - col1 + col1
----

query I rowsort
SELECT DISTINCT 79 * + col0 * - 48 * - ( col2 ) * col2 FROM tab1 AS cor0
----
1121995920
1595612928
1782300672

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5022
SELECT DISTINCT + COUNT( * ) DIV + + 53 + + - 82 FROM tab2 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5022
SELECT DISTINCT + COUNT ( * ) / + + 53 + + - 82 FROM tab2 cor0
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT + 75 * + MIN( ALL - col1 ) FROM tab1 AS cor0
----
-3525

skipif mysql # not compatible
query I rowsort label-5023
SELECT + 75 * + MIN ( ALL - col1 ) FROM tab1 AS cor0
----
-3525

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * + 21 * col1, 33 + - - col1 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-24633
84
-64680
110
-81606
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL col0 * - - 7 FROM tab1
----
357
595
637

query I rowsort
SELECT 76 AS col2 FROM tab0 WHERE NULL = col1
----

query I rowsort
SELECT + + 0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT - + 97 + col0 AS col2 FROM tab1 AS cor0
----
-12
-46
-6

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5031
SELECT DISTINCT + - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT + - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5032
SELECT + + col0 * - ( + - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 WHERE col2 * + CAST( NULL AS SIGNED ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5032
SELECT + + col0 * - ( + - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 WHERE col2 * + CAST ( NULL AS INTEGER ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 21 + col1 AS col0 FROM tab2 AS cor0
----
72
88
98

query I rowsort
SELECT ( - 81 ) * + col2 FROM tab1
----
-4779
-5508
-7776

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 / + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT ALL - 50 AS col0, 94 AS col2 FROM tab2
----
-50
94
-50
94
-50
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 82 + + - col2 + + 78 IN ( + col2 * col2 * - - col2 * + - 76, + ( + 62 ), - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT CAST( NULL AS SIGNED ) / 59 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT CAST ( NULL AS INTEGER ) / 59 AS col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT ALL col1, col0 * + 58 + - col0 * - col1 FROM tab2
----
51
5014
67
9375
77
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT 66 * + ( + COUNT( * ) ) AS col1 FROM tab0
----
198

skipif mysql # not compatible
query I rowsort label-5041
SELECT 66 * + ( + COUNT ( * ) ) AS col1 FROM tab0
----
198

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col0 - + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 12 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT - 14 * + 1 + COUNT( - - col0 ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5044
SELECT - 14 * + 1 + COUNT ( - - col0 ) FROM tab0 AS cor0
----
-11

query I rowsort
SELECT DISTINCT + 35 - + - col0 * - 60 - + - 89 FROM tab2 AS cor0
----
-2636
-3716
-4376

query I rowsort
SELECT ALL col0 + col0 * ( + 86 ) AS col0 FROM tab0 AS cor0
----
1305
7569
8439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT + + col2 + CAST( col2 AS SIGNED ) * + 50 + 21 AS col2 FROM tab0 AS cor0
----
2418
5070
531

skipif mysql # not compatible
query I rowsort label-5047
SELECT + + col2 + CAST ( col2 AS INTEGER ) * + 50 + 21 AS col2 FROM tab0 AS cor0
----
2418
5070
531

query I rowsort
SELECT col2 + - + col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + - ( col2 ) + + col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5050
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5050
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 62 / + 87 ) NOT IN ( col2, col1 + + - col0 + - col2 / - col1 * col1 * - + col0 + - 37 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 12 * - col2, 75 * + col0 AS col2 FROM tab0 AS cor0
----
1188
7275
120
6525
564
1125

onlyif mysql # aggregate syntax: 
query I rowsort label-5053
SELECT - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5053
SELECT - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT - COUNT( ALL 68 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT - COUNT ( ALL 68 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT - - SUM( DISTINCT - 38 ) FROM tab2 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-5055
SELECT - - SUM ( DISTINCT - 38 ) FROM tab2 AS cor0
----
-38

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 >= NULL
----

query II rowsort
SELECT 17 AS col2, col1 FROM tab2
----
17
51
17
67
17
77

query I rowsort
SELECT ALL 26 * - col1 FROM tab1
----
-1222
-130
-364

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL > col1 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5060
SELECT DISTINCT + col2 AS col2, col1 * + CAST( NULL AS SIGNED ) * + 16 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-5060
SELECT DISTINCT + col2 AS col2, col1 * + CAST ( NULL AS INTEGER ) * + 16 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT - + 92 + + col1 AS col0 FROM tab0 AS cor0
----
-11
-71
-91

query I rowsort
SELECT DISTINCT - - col0 * + col0 - + + 58 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN + col0 AND + - 30
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5063
SELECT ALL CAST( NULL AS DECIMAL ) + + ( - + 10 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL CAST ( NULL AS REAL ) + + ( - + 10 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5065
SELECT ALL ( - - 82 ) + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5065
SELECT ALL ( - - 82 ) + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5066
SELECT DISTINCT - CAST( - col2 AS SIGNED ) + 41 DIV 9 FROM tab0 AS cor0
----
103
14
51

skipif mysql # not compatible
query I rowsort label-5066
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) + 41 / 9 FROM tab0 AS cor0
----
103
14
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5067
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST( + col0 AS SIGNED ) * ( col2 ) - + 75 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5067
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - CAST ( + col0 AS INTEGER ) * ( col2 ) - + 75 = - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 AS col0, col1 * - 80 col2 FROM tab0
----
1
-80
21
-1680
81
-6480

query I rowsort
SELECT DISTINCT - ( + 90 ) AS col2 FROM tab1
----
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 18 * - 98 col1 FROM tab0
----
1764

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT + 64 + + COUNT( * ) AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 64 + + COUNT ( * ) AS col2 FROM tab2
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5072
SELECT ALL - col0 + + col0 * + 99 AS col1, col0 * + 82 - 84 + CAST( NULL AS SIGNED ) FROM tab1
----
4998
NULL
8330
NULL
8918
NULL

skipif mysql # not compatible
query II rowsort label-5072
SELECT ALL - col0 + + col0 * + 99 AS col1, col0 * + 82 - 84 + CAST ( NULL AS INTEGER ) FROM tab1
----
4998
NULL
8330
NULL
8918
NULL

query I rowsort
SELECT col2 * 48 AS col2 FROM tab0
----
2256
4752
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5074
SELECT + - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5074
SELECT + - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
0

query II rowsort
SELECT DISTINCT 30, - col2 AS col0 FROM tab2 AS cor0
----
30
-23
30
-40
30
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5076
SELECT DISTINCT + col0, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5076
SELECT DISTINCT + col0, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT ALL + 55 AS col1 FROM tab0 cor0
----
55
55
55

query I rowsort
SELECT + + 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query I rowsort
SELECT DISTINCT col2 * + - col1 FROM tab0
----
-210
-3807
-99

query I rowsort
SELECT col2 * 27 AS col2 FROM tab1 AS cor0 WHERE NOT + col2 * + 77 - - col1 IS NULL
----
1593
1836
2592

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 85 * - + col2 * + col0 * - 79 BETWEEN NULL AND col2 OR NOT ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT + MIN( ALL - + col2 ) * - ( - + 73 ) - + 61 AS col1 FROM tab1 AS cor0
----
-7069

skipif mysql # not compatible
query I rowsort label-5082
SELECT + MIN ( ALL - + col2 ) * - ( - + 73 ) - + 61 AS col1 FROM tab1 AS cor0
----
-7069

query I rowsort
SELECT - 75 * 98 - + col1 FROM tab1 cor0
----
-7355
-7364
-7397

query II rowsort
SELECT DISTINCT + col1, - 27 * + 0 * + col2 AS col2 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 84 * + 78 * + + col2 col2 FROM tab2 AS cor0
----
150696
262080
380016

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5086
SELECT * FROM tab2 WHERE NOT ( - CAST( 30 AS SIGNED ) ) NOT BETWEEN + col1 AND ( + - 93 )
----

skipif mysql # not compatible
query III rowsort label-5086
SELECT * FROM tab2 WHERE NOT ( - CAST ( 30 AS INTEGER ) ) NOT BETWEEN + col1 AND ( + - 93 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ALL COUNT( * ) * MAX( - 69 ) AS col0 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-5087
SELECT ALL COUNT ( * ) * MAX ( - 69 ) AS col0 FROM tab1
----
-207

query I rowsort
SELECT DISTINCT 22 + col1 - - col1 AS col1 FROM tab2
----
124
156
176

query III rowsort
SELECT * FROM tab2 WHERE NOT - 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < + 77
----

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE NOT + 9 - col2 * + - col2 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < - 27 + + - col0
----

query I rowsort
SELECT ALL + - col1 + 32 FROM tab1 AS cor0
----
-15
18
27

query I rowsort
SELECT + col1 * - col0 - - + 27 * col2 FROM tab0 cor0
----
-1557
2576
54

query I rowsort
SELECT ALL + col2 * + ( + col1 ) AS col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT DISTINCT - col0 * col2 + + + 10 AS col1 FROM tab2 AS cor0
----
-1048
-2550
-4340

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 75 * + + col2 col2 FROM tab1
----
4425
5100
7200

onlyif mysql # DIV for integer division: 
query I rowsort label-5098
SELECT 15 + - - col2 DIV - col1 + - 17 + - col0 FROM tab0
----
-17
-198
-89

skipif mysql # not compatible
query I rowsort label-5098
SELECT 15 + - - col2 / - col1 + - 17 + - col0 FROM tab0
----
-17
-198
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT ALL + col0 DIV + + 14 col0 FROM tab1
----
3
6
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5099
SELECT ALL + col0 / + + 14 col0 FROM tab1
----
3
6
6

query II rowsort
SELECT col1 + + + ( ( + col1 ) ), col1 FROM tab1
----
10
5
28
14
94
47

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5101
SELECT DISTINCT + - CAST( NULL AS DECIMAL ) * + - col0 * 68 + + + 35 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + - CAST ( NULL AS REAL ) * + - col0 * 68 + + + 35 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5102
SELECT - SUM( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5102
SELECT - SUM ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 96 IS NULL
----

query II rowsort
SELECT - 23, - col1 * col0 AS col1 FROM tab1 AS cor0
----
-23
-425
-23
-4277
-23
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-5105
SELECT DISTINCT + 1 + - + 46 - + 1 + - - COUNT( * ) FROM tab1 AS cor0
----
-43

skipif mysql # not compatible
query I rowsort label-5105
SELECT DISTINCT + 1 + - + 46 - + 1 + - - COUNT ( * ) FROM tab1 AS cor0
----
-43

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE + 29 IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-5107
SELECT ALL COUNT( * ) - ( - COUNT( * ) ) + COUNT( * ), MIN( - - 72 ) AS col2 FROM tab0
----
9
72

skipif mysql # not compatible
query II rowsort label-5107
SELECT ALL COUNT ( * ) - ( - COUNT ( * ) ) + COUNT ( * ), MIN ( - - 72 ) AS col2 FROM tab0
----
9
72

query I rowsort
SELECT + 74 * + + col2 AS col0 FROM tab2
----
1702
2960
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT DISTINCT + SUM( ALL 19 ) * COUNT( * ) FROM tab2
----
171

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT + SUM ( ALL 19 ) * COUNT ( * ) FROM tab2
----
171

query I rowsort
SELECT DISTINCT ( col2 ) - + col2 AS col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT ALL 28 DIV - + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL 28 / - + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 + + col1 AS col1 FROM tab1 WHERE NOT NULL < + - col2 + 69
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5113
SELECT DISTINCT - col2 + + - 91 DIV + col1 FROM tab0
----
-14
-190
-48

skipif mysql # not compatible
query I rowsort label-5113
SELECT DISTINCT - col2 + + - 91 / + col1 FROM tab0
----
-14
-190
-48

query I rowsort
SELECT + + 37 AS col0 FROM tab1, tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 45
----

query III rowsort
SELECT * FROM tab2 WHERE ( NOT 73 IS NOT NULL )
----

query I rowsort
SELECT + - 43 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + 82 FROM tab0 AS cor0 WHERE NULL IS NULL
----
82

query I rowsort
SELECT ALL + - ( col0 ) * - col2 * 89 AS col2 FROM tab0 AS cor0
----
62745
77430
854667

query I rowsort
SELECT DISTINCT + 6 * - col2 + col0 * + 47 FROM tab0 AS cor0
----
3965
4029
423

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, 69 - - + col0 col1 FROM tab0
----
1
166
21
156
81
84

query I rowsort
SELECT DISTINCT + 37 AS col2 FROM tab0
----
37

query I rowsort
SELECT - col2 * - - col1 / col2 * col0 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT MAX( ALL + col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT MAX ( ALL + col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5124
SELECT - COUNT( * ) * MAX( ALL - col1 ) / - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5124
SELECT - COUNT ( * ) * MAX ( ALL - col1 ) / - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5125
SELECT 91 * + COUNT( * ) FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-5125
SELECT 91 * + COUNT ( * ) FROM tab2 AS cor0
----
273

query I rowsort
SELECT 27 * - col1 * 15 + - col0 FROM tab0 AS cor0
----
-32820
-502
-8592

onlyif mysql # DIV for integer division: 
query I rowsort label-5127
SELECT + 58 * 74 DIV + col2 AS col0 FROM tab0 AS cor0
----
429
43
91

skipif mysql # not compatible
query I rowsort label-5127
SELECT + 58 * 74 / + col2 AS col0 FROM tab0 AS cor0
----
429
43
91

query II rowsort
SELECT - + col2 AS col1, - col1 + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-23
-102
-40
-154
-58
-134

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT MAX( - col0 ) AS col1 FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-5129
SELECT MAX ( - col0 ) AS col1 FROM tab2
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5130
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5130
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE col2 IS NULL
----

query I rowsort
SELECT + col1 + + col1 + + 81 AS col0 FROM tab0
----
123
243
83

query I rowsort
SELECT + col2 + + 7 * + col1 AS col2 FROM tab2 cor0
----
380
527
579

query I rowsort
SELECT + col0 + + col1 + + + col1 + - 44 + + 82 * + 99 * col1 FROM tab0 AS cor0
----
170563
657691
8173

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 * col1 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5135
SELECT - SUM( - + 91 ) * + + 92 AS col1 FROM tab0 AS cor0
----
25116

skipif mysql # not compatible
query I rowsort label-5135
SELECT - SUM ( - + 91 ) * + + 92 AS col1 FROM tab0 AS cor0
----
25116

query II rowsort
SELECT DISTINCT ( 59 ) AS col0, - 29 - - col0 AS col0 FROM tab1
----
59
22
59
56
59
62

query I rowsort
SELECT col2 - + - 45 + - - 84 FROM tab1 AS cor0
----
188
197
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 50 * + col2 + + col2 + col1 col0 FROM tab0 AS cor0
----
2478
5050
531

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5139
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT DISTINCT - 94 * + 18 - 48 + - col2 AS col1 FROM tab2 AS cor0
----
-1763
-1780
-1798

onlyif mysql # DIV for integer division: 
query I rowsort label-5141
SELECT DISTINCT + - col0 DIV col2 + - 69 FROM tab0 AS cor0
----
-69
-77

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT + - col0 / col2 + - 69 FROM tab0 AS cor0
----
-69
-77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * - - col2 * col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5143
SELECT * FROM tab0 AS cor0 WHERE + CAST( + - col1 AS SIGNED ) * 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5143
SELECT * FROM tab0 AS cor0 WHERE + CAST ( + - col1 AS INTEGER ) * 54 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( + + col0 ) - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT + - col0 + - col1 + ( + col0 ) AS col1 FROM tab1 WHERE + + col2 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 91 - - col0 FROM tab1
----
-40
-6
0

query I rowsort
SELECT + col1 * + col1 * - col1 FROM tab2
----
-132651
-300763
-456533

onlyif mysql # DIV for integer division: 
query I rowsort label-5149
SELECT + col1 DIV - col0 col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5149
SELECT + col1 / - col0 col1 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT - COUNT( * ) * + 13 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-5150
SELECT - COUNT ( * ) * + 13 FROM tab0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT + 56 * COUNT( * ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-5151
SELECT + 56 * COUNT ( * ) FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT - COUNT( - col1 ) + - 3 * + + 80 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT - COUNT ( - col1 ) + - 3 * + + 80 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT - + col0 IS NULL )
----
0

query I rowsort
SELECT - ( - col1 ) * + col0 * col0 + + 7 AS col2 FROM tab0 AS cor0 WHERE NOT ( NOT + col2 + + col1 NOT IN ( - + col1 * ( + ( - col0 ) ) + col1, + col2 ) )
----
158956
18232
9416

query I rowsort
SELECT + 45 FROM tab1 AS cor0 WHERE NOT + 40 / + 94 - - col0 * - - col0 * + col1 IS NULL
----
45
45
45

query I rowsort
SELECT ALL ( + 98 ) + 98 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 140c563b705c847a9763df60c43c8baa

onlyif mysql # DIV for integer division: 
query I rowsort label-5156
SELECT ALL 81 DIV ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
60
69
96

skipif mysql # not compatible
query I rowsort label-5156
SELECT ALL 81 / ( + col2 ) + + col2 AS col2 FROM tab1 AS cor0
----
60
69
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT - 68 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-204

skipif mysql # not compatible
query I rowsort label-5157
SELECT - 68 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT DISTINCT 37 + + COUNT( * ) FROM tab0 cor0
----
40

skipif mysql # not compatible
query I rowsort label-5158
SELECT DISTINCT 37 + + COUNT ( * ) FROM tab0 cor0
----
40

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * - - col0 NOT BETWEEN + 3 + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 48 + - col2 FROM tab2 AS cor0 WHERE NOT ( - col2 - + - col1 ) IS NULL
----
-10
25
8

query I rowsort
SELECT ALL - col2 - - 10 AS col0 FROM tab2 AS cor0 WHERE NOT col0 >= - + col0 / + col1 + col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col2 ) * col1 * + - 35 / + - 59 - 28 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5163
SELECT - + CAST( NULL AS SIGNED ) + 15 + - - col2 / - - 46 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5163
SELECT - + CAST ( NULL AS INTEGER ) + 15 + - - col2 / - - 46 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT + 87, + col2 AS col2 FROM tab2
----
87
23
87
40
87
58

query I rowsort
SELECT DISTINCT 28 + + 11 AS col1 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5167
SELECT ALL ( - ( + - COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL ( - ( + - COUNT ( * ) ) ) FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - col0 + - col1 <> - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 <= + 85
----
85
5
59
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5170
SELECT DISTINCT 71 + - COUNT( * ) * + 49 AS col2 FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5170
SELECT DISTINCT 71 + - COUNT ( * ) * + 49 AS col2 FROM tab0 AS cor0
----
-76

query II rowsort
SELECT DISTINCT col1, 41 FROM tab1 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col0 * col0 * - - col0 + - + ( - 78 ) + - 35 FROM tab0
----
3418
658546
912716

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - 16 ) col1 FROM tab0
----
-16

onlyif mysql # aggregate syntax: 
query II rowsort label-5174
SELECT DISTINCT COUNT( * ), - 10 AS col2 FROM tab1
----
3
-10

skipif mysql # not compatible
query II rowsort label-5174
SELECT DISTINCT COUNT ( * ), - 10 AS col2 FROM tab1
----
3
-10

query I rowsort
SELECT DISTINCT - + col2 * - col2 + + col1 + - col2 AS col2 FROM tab1 AS cor0
----
3427
4603
9134

onlyif mysql # aggregate syntax: 
query II rowsort label-5176
SELECT ALL COUNT( + - col0 ), COUNT( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-5176
SELECT ALL COUNT ( + - col0 ), COUNT ( * ) FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
3
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL NOT IN ( col2, - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5178
SELECT ( + CAST( - MIN( - 22 ) AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5178
SELECT ( + CAST ( - MIN ( - 22 ) AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
22

query II rowsort
SELECT + + col2 AS col1, + 20 * + ( + 73 ) FROM tab1 AS cor0
----
59
1460
68
1460
96
1460

query I rowsort
SELECT ( + col1 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT ALL - col1 AS col2, - col2 FROM tab2 AS cor0
----
-51
-23
-67
-58
-77
-40

query I rowsort
SELECT + - ( 35 ) AS col2 FROM tab1 AS cor0
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - 58 AND - 54
----

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

query I rowsort
SELECT + col1 * 5 AS col2 FROM tab2
----
255
335
385

query I rowsort
SELECT col2 * ( - col0 ) FROM tab1
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 >= - 81
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 6 * + + col2 col0 FROM tab0 AS cor0
----
282
594
60

query I rowsort
SELECT ALL + ( + + 96 ) + - ( col2 ) * - + col1 FROM tab0
----
195
306
3903

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5190
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab1
----
-9

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - + 52 ) * + 57 >= + ( + 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 51 + - + 68 AS col1 FROM tab2 AS cor0
----
-119
-119
-119

query II rowsort
SELECT + col0 AS col0, + 18 FROM tab1 AS cor0
----
51
18
85
18
91
18

onlyif mysql # aggregate syntax: 
query II rowsort label-5194
SELECT ALL + COUNT( * ) AS col2, + 56 FROM tab0 AS cor0
----
3
56

skipif mysql # not compatible
query II rowsort label-5194
SELECT ALL + COUNT ( * ) AS col2, + 56 FROM tab0 AS cor0
----
3
56

onlyif mysql # aggregate syntax: 
query II rowsort label-5195
SELECT ALL COUNT( * ), - COUNT( DISTINCT - + 98 ) AS col1 FROM tab0 AS cor0
----
3
-1

skipif mysql # not compatible
query II rowsort label-5195
SELECT ALL COUNT ( * ), - COUNT ( DISTINCT - + 98 ) AS col1 FROM tab0 AS cor0
----
3
-1

query I rowsort
SELECT ALL - col1 + col2 * - - col0 AS col0 FROM tab1 AS cor0
----
4882
5010
6141

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5197
SELECT - col1 * + CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5197
SELECT - col1 * + CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, + 16 FROM tab0 AS cor0
----
15
16
87
16
97
16

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * col2 + col1 * 48 + + - 37 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5200
SELECT ALL - 88 * + + MAX( + col1 ) AS col1, 66 FROM tab1 AS cor0
----
-4136
66

skipif mysql # not compatible
query II rowsort label-5200
SELECT ALL - 88 * + + MAX ( + col1 ) AS col1, 66 FROM tab1 AS cor0
----
-4136
66

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT DISTINCT + MAX( DISTINCT 18 ) FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5201
SELECT DISTINCT + MAX ( DISTINCT 18 ) FROM tab1 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT DISTINCT SUM( DISTINCT + - col0 ) FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5202
SELECT DISTINCT SUM ( DISTINCT + - col0 ) FROM tab0
----
-199

query I rowsort
SELECT DISTINCT + col1 + + col0 + - col0 - - + 2 + + - col2 * - col1 * - col0 * col1 FROM tab2
----
-15178161
-19527081
-2751805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5204
SELECT ALL CAST( NULL AS SIGNED ) * + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL CAST ( NULL AS INTEGER ) * + + col1 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5205
SELECT 80 + + COUNT( * ) AS col2, COUNT( * ) col1 FROM tab2
----
83
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5205
SELECT 80 + + COUNT ( * ) AS col2, COUNT ( * ) col1 FROM tab2
----
83
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 <= col0 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 col0 FROM tab0 AS cor0
----
-37
-37
-37

query I rowsort
SELECT DISTINCT - ( col1 ) + + col0 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT - col0 + - - 87 - - - 19 FROM tab1 AS cor0
----
-17
-23
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col0 NOT IN ( - 20, col1, + col2, - - 76 + + + col1, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 + - 73, 59 AS col1 FROM tab0 AS cor0
----
-154
59
-74
59
-94
59

query I rowsort
SELECT DISTINCT + col2 - - col0 + - + 6 * + - col0 * + col0 AS col2 FROM tab0 AS cor0
----
1412
45511
56650

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5213
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5213
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE 82 - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) * + ( + + col1 ) col0 FROM tab2
----
2601
4489
5929

query I rowsort
SELECT - 39 * col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - + ( - 2 ) FROM tab1 cor0
----
2
2
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5218
SELECT + col1 * + - CAST( NULL AS DECIMAL ) 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-5218
SELECT + col1 * + - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * 32 AS col1 FROM tab1 AS cor0
----
1632
2720
2912

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * col2 * - + col1 * + ( - + col2 ) NOT IN ( - 67, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5221
SELECT - - 19 DIV + - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5221
SELECT - - 19 / + - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-6

query II rowsort
SELECT DISTINCT col2, - 84 AS col2 FROM tab1 AS cor0
----
59
-84
68
-84
96
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE - 77 BETWEEN + 86 AND 58
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE - 77 BETWEEN + 86 AND 58
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) NOT BETWEEN NULL AND - col2
----

query II rowsort
SELECT ALL - col1, + 22 AS col0 FROM tab0
----
-1
22
-21
22
-81
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5226
SELECT + 62 DIV - 98 * - - COUNT( * ) AS col1 FROM tab1, tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5226
SELECT + 62 / - 98 * - - COUNT ( * ) AS col1 FROM tab1, tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5227
SELECT DISTINCT - col1 * col2 col0, ( - - CAST( ( col1 ) AS SIGNED ) ) FROM tab0
----
-210
21
-3807
81
-99
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5227
SELECT DISTINCT - col1 * col2 col0, ( - - CAST ( ( col1 ) AS INTEGER ) ) FROM tab0
----
-210
21
-3807
81
-99
1

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5228
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 11 * - col1 * + + col0 * - CAST( + col2 AS DECIMAL ) + - 15
----

skipif mysql # not compatible
query III rowsort label-5228
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN NULL AND 11 * - col1 * + + col0 * - CAST ( + col2 AS REAL ) + - 15
----

query I rowsort
SELECT ALL 96 * - 69 FROM tab0
----
-6624
-6624
-6624

onlyif mysql # aggregate syntax: 
query I rowsort label-5230
SELECT ALL SUM( ALL - 55 ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-5230
SELECT ALL SUM ( ALL - 55 ) FROM tab2
----
-165

query II rowsort
SELECT + col1, + col0 + + col2 FROM tab1
----
14
147
47
159
5
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5232
SELECT - ( + + SUM( ALL + 54 ) ) col0 FROM tab2
----
-162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5232
SELECT - ( + + SUM ( ALL + 54 ) ) col0 FROM tab2
----
-162

query I rowsort
SELECT DISTINCT + col2 * + col2 / col2 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5234
SELECT - COUNT( * ) * 18 DIV + + MAX( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5234
SELECT - COUNT ( * ) * 18 / + + MAX ( DISTINCT - + col0 ) AS col2 FROM tab1 AS cor0
----
1

query II rowsort
SELECT + + col0, - 14 * - 12 * + 74 FROM tab2 cor0
----
46
12432
64
12432
75
12432

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5236
SELECT ALL - CAST( NULL AS SIGNED ) / col1 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5236
SELECT ALL - CAST ( NULL AS INTEGER ) / col1 col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col2 * + col1 + - col2 * - col2 AS col1 FROM tab2 AS cor0
----
-121600
-222024
-26450

onlyif mysql # aggregate syntax: 
query I rowsort label-5238
SELECT ALL - - MIN( 88 ) * - COUNT( * ) * + 27 AS col2 FROM tab0 AS cor0
----
-7128

skipif mysql # not compatible
query I rowsort label-5238
SELECT ALL - - MIN ( 88 ) * - COUNT ( * ) * + 27 AS col2 FROM tab0 AS cor0
----
-7128

query II rowsort
SELECT col1 * - - col1, col0 * - col2 AS col0 FROM tab1 AS cor0
----
196
-4896
2209
-6188
25
-5015

query I rowsort
SELECT - col2 * + - ( + - col0 ) AS col1 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 2, ( 39 ) col0 FROM tab0
----
2
39
2
39
2
39

query II rowsort
SELECT 77 AS col1, col1 FROM tab0
----
77
1
77
21
77
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5243
SELECT + CAST( + + col1 AS SIGNED ) AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5243
SELECT + CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - col0 * - col0 col2 FROM tab1
----
-36125
-36414
-389207

onlyif mysql # DIV for integer division: 
query I rowsort label-5245
SELECT col1 DIV - ( + 93 ) col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5245
SELECT col1 / - ( + 93 ) col1 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5246
SELECT DISTINCT - ( col2 ) DIV - col2 AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5246
SELECT DISTINCT - ( col2 ) / - col2 AS col2 FROM tab0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5247
SELECT 18 DIV + - col1 * + 17 * col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5247
SELECT 18 / + - col1 * + 17 * col2 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + - col2 - - 40 * col2 + col0 FROM tab2 AS cor0
----
1624
2337
943

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT + MIN( DISTINCT col1 ) - - COUNT( * ) col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5249
SELECT + MIN ( DISTINCT col1 ) - - COUNT ( * ) col1 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL + - 87 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT MAX( - + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL + 88 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 >= - 62
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + - ( + - col0 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5256
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) NOT BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-5256
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT DISTINCT + ( COUNT( * ) ) col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5257
SELECT DISTINCT + ( COUNT ( * ) ) col2 FROM tab0 AS cor0 WHERE NULL < ( NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5258
SELECT 99 DIV ( + ( COUNT( * ) ) ) AS col2, + 18 AS col0 FROM tab1 AS cor0
----
33
18

skipif mysql # not compatible
query II rowsort label-5258
SELECT 99 / ( + ( COUNT ( * ) ) ) AS col2, + 18 AS col0 FROM tab1 AS cor0
----
33
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 col1 FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5260
SELECT ALL 59 * + COUNT( * ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-5260
SELECT ALL 59 * + COUNT ( * ) FROM tab1 AS cor0
----
177

query II rowsort
SELECT 20 AS col1, 3 FROM tab1
----
20
3
20
3
20
3

query II rowsort
SELECT + col2 AS col2, col1 FROM tab1 WHERE NOT + - 29 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 93 * 69 AS col2 FROM tab1
----
6417

query I rowsort
SELECT + 53 * - col0 FROM tab1 AS cor0
----
-2703
-4505
-4823

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( - col1 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 85 NOT BETWEEN + col2 * + 39 / + ( - 55 ) + - col0 * - col0 + + col2 AND + - col1
----

query II rowsort
SELECT - col1 AS col0, + col2 - - col1 AS col1 FROM tab0
----
-1
100
-21
31
-81
128

onlyif mysql # aggregate syntax: 
query I rowsort label-5269
SELECT DISTINCT - - COUNT( * ) + - 3 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5269
SELECT DISTINCT - - COUNT ( * ) + - 3 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT - 75 AS col0, - col1 AS col1 FROM tab2 AS cor0
----
-75
-51
-75
-67
-75
-77

query I rowsort
SELECT DISTINCT + col0 + + 6 AS col2 FROM tab0 AS cor0
----
103
21
93

query I rowsort
SELECT ALL - - 14 + 85 * - col1 FROM tab0 AS cor0
----
-1771
-6871
-71

query I rowsort
SELECT DISTINCT + - col2 * + col2 + + col1 FROM tab2 AS cor0
----
-1523
-3297
-478

onlyif mysql # DIV for integer division: 
query I rowsort label-5274
SELECT ALL - col1 DIV 78 - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5274
SELECT ALL - col1 / 78 - col1 AS col2 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5275
SELECT COUNT( * ) * + + 38 AS col1 FROM tab2 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-5275
SELECT COUNT ( * ) * + + 38 AS col1 FROM tab2 AS cor0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - COUNT( * ) - - + 93 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-5276
SELECT - COUNT ( * ) - - + 93 FROM tab0 AS cor0
----
90

query I rowsort
SELECT + 33 + - + col1 - - 57 + 62 * - 41 AS col1 FROM tab1 cor0
----
-2457
-2466
-2499

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT 69 + - + COUNT( ALL 35 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-5278
SELECT 69 + - + COUNT ( ALL 35 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT - - col2 + - + 37 AS col1 FROM tab0 AS cor0
----
-27
10
62

query I rowsort
SELECT ALL + col0 + - ( + - col0 ) FROM tab1 AS cor0
----
102
170
182

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5282
SELECT ALL - MAX( ALL - 35 ) FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - MAX ( ALL - 35 ) FROM tab0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5284
SELECT COUNT( ALL col2 ) DIV 39 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5284
SELECT COUNT ( ALL col2 ) / 39 AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - ( - + 30 ) AS col1 FROM tab0 AS cor0
----
30

query I rowsort
SELECT AVG ( 34 ) + + 30 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT ALL - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5287
SELECT ALL - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5288
SELECT ( - SUM( ( + + col1 ) ) ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5288
SELECT ( - SUM ( ( + + col1 ) ) ) FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT + MIN( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5289
SELECT + MIN ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL <= + + col0 )
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT + 5 IS NULL
----
1
21
81

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 AS cor0 WHERE + 48 + + 8 IN ( col2, col0 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5293
SELECT DISTINCT COUNT( * ) DIV 35 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT COUNT ( * ) / 35 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5294
SELECT ALL - SUM( - 17 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL - SUM ( - 17 ) AS col1 FROM tab1
----
51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5295
SELECT DISTINCT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - MIN( DISTINCT - col2 ) + MIN( DISTINCT - + col2 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - MIN ( DISTINCT - col2 ) + MIN ( DISTINCT - + col2 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 * + + 99 * + + col1 + + - col0 FROM tab0 cor0
----
120270
180786
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-5297
SELECT ALL - + 98 * + MAX( - + col1 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
5001

skipif mysql # not compatible
query I rowsort label-5297
SELECT ALL - + 98 * + MAX ( - + col1 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
5001

query I rowsort
SELECT DISTINCT col2 + 86 FROM tab1 AS cor0
----
145
154
182

query I rowsort
SELECT ALL - + col2 FROM tab1 AS cor0 WHERE 21 / + + 60 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5300
SELECT - COUNT( * ) AS col1, + ( - - 98 ) FROM tab1
----
-3
98

skipif mysql # not compatible
query II rowsort label-5300
SELECT - COUNT ( * ) AS col1, + ( - - 98 ) FROM tab1
----
-3
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5301
SELECT ALL - 26 - 80 + + ( col1 ), CAST( + 74 AS SIGNED ) AS col2 FROM tab1
----
-101
74
-59
74
-92
74

skipif mysql # not compatible
query II rowsort label-5301
SELECT ALL - 26 - 80 + + ( col1 ), CAST ( + 74 AS INTEGER ) AS col2 FROM tab1
----
-101
74
-59
74
-92
74

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + 94 > col1 + + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5303
SELECT ( + col1 ) * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5303
SELECT ( + col1 ) * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL <> + + 61 * - 79
----

query I rowsort
SELECT + col2 - + col1 + - - col2 FROM tab0
----
-1
13
197

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <> + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5307
SELECT + + 21 - CAST( NULL AS SIGNED ) * + SUM( ALL - col1 ) + + 2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5307
SELECT + + 21 - CAST ( NULL AS INTEGER ) * + SUM ( ALL - col1 ) + + 2 AS col0 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 AS col1, - 81 col0 FROM tab0 AS cor0
----
-15
-81
-87
-81
-97
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT + + MIN( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5309
SELECT + + MIN ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT 27 * SUM( + col0 ) AS col0 FROM tab2
----
4995

skipif mysql # not compatible
query I rowsort label-5310
SELECT 27 * SUM ( + col0 ) AS col0 FROM tab2
----
4995

onlyif mysql # aggregate syntax: 
query II rowsort label-5311
SELECT ALL + COUNT( - + col1 ) AS col0, 71 AS col2 FROM tab1
----
3
71

skipif mysql # not compatible
query II rowsort label-5311
SELECT ALL + COUNT ( - + col1 ) AS col0, 71 AS col2 FROM tab1
----
3
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5312
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( col2 AS SIGNED ) IS NOT NULL AND - col1 NOT BETWEEN - col1 - + CAST( 46 AS SIGNED ) AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5312
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( col2 AS INTEGER ) IS NOT NULL AND - col1 NOT BETWEEN - col1 - + CAST ( 46 AS INTEGER ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5313
SELECT DISTINCT - ( + - 60 ) AS col0, - ( COUNT( * ) ) FROM tab0 cor0
----
60
-3

skipif mysql # not compatible
query II rowsort label-5313
SELECT DISTINCT - ( + - 60 ) AS col0, - ( COUNT ( * ) ) FROM tab0 cor0
----
60
-3

query I rowsort
SELECT DISTINCT - + 14 AS col0 FROM tab2 AS cor0 WHERE - col1 + - col2 + - col1 * + col2 / - 43 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5315
SELECT ALL + CAST( NULL AS SIGNED ) / - - col2 * + ( + + 67 ) 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-5315
SELECT ALL + CAST ( NULL AS INTEGER ) / - - col2 * + ( + + 67 ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 94 col2 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT + 19 AS col1 FROM tab0 cor0
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5320
SELECT + MIN( ALL - 17 ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-5320
SELECT + MIN ( ALL - 17 ) AS col1 FROM tab2
----
-17

query II rowsort
SELECT - col0 * - ( col0 ), 2 AS col1 FROM tab0
----
225
2
7569
2
9409
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT DISTINCT - + CAST( + + 12 AS SIGNED ) AS col0 FROM tab1 WHERE NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-5322
SELECT DISTINCT - + CAST ( + + 12 AS INTEGER ) AS col0 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT col0 + - - 22 AS col1 FROM tab0
----
109
119
37

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT NULL < - col2 - 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5325
SELECT - + COUNT( * ) + + COUNT( * ) * + 11 AS col2 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-5325
SELECT - + COUNT ( * ) + + COUNT ( * ) * + 11 AS col2 FROM tab1 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + 83 + + SUM( col1 ) AS col2 FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5326
SELECT + 83 + + SUM ( col1 ) AS col2 FROM tab0 AS cor0
----
186

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT + CAST( + - COUNT( * ) AS SIGNED ) * - COUNT( * ) + + 42 + 88 + 77 FROM tab0 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-5327
SELECT + CAST ( + - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) + + 42 + 88 + 77 FROM tab0 AS cor0
----
216

query I rowsort
SELECT col0 + 6 AS col2 FROM tab1
----
57
91
97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 41 IS NOT NULL
----

query I rowsort
SELECT ALL 75 * 71 FROM tab1
----
5325
5325
5325

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( NULL ) IN ( 45 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5332
SELECT * FROM tab0 WHERE NULL = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5332
SELECT * FROM tab0 WHERE NULL = CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * - col0 BETWEEN ( - 96 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5334
SELECT ALL - COUNT( * ) * - 38 - - 58 FROM tab0
----
172

skipif mysql # not compatible
query I rowsort label-5334
SELECT ALL - COUNT ( * ) * - 38 - - 58 FROM tab0
----
172

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT ALL + 82 * COUNT( * ) FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-5335
SELECT ALL + 82 * COUNT ( * ) FROM tab2
----
246

query I rowsort
SELECT ALL + col0 + - 84 FROM tab1
----
-33
1
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5337
SELECT ALL CAST( NULL AS SIGNED ) + 15 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL CAST ( NULL AS INTEGER ) + 15 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + col0 NOT IN ( + 42 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 + - col2 * + 72 col0 FROM tab1
----
-4159
-4807
-6823

query I rowsort
SELECT - ( col0 ) * 61 AS col0 FROM tab0
----
-5307
-5917
-915

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) IN ( ( 82 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5342
SELECT col0 + col1 DIV 87 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5342
SELECT col0 + col1 / 87 FROM tab2
----
46
64
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5343
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5343
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5344
SELECT DISTINCT + col2 DIV 9 FROM tab2
----
2
4
6

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + col2 / 9 FROM tab2
----
2
4
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5345
SELECT - COUNT( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT - COUNT ( - col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 + col2 NOT IN ( 44 )
----

query I rowsort
SELECT + 41 * + ( 79 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
3239
3239
3239

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL - ( col2 ) + CAST( NULL AS SIGNED ) * + col0 FROM tab1 WHERE NOT + 11 * ( - CAST( NULL AS SIGNED ) ) <> - col2 + - col1
----

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL - ( col2 ) + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 WHERE NOT + 11 * ( - CAST ( NULL AS INTEGER ) ) <> - col2 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT + SUM( - col2 ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5349
SELECT + SUM ( - col2 ) AS col1 FROM tab2 WHERE NOT ( NULL ) >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT MIN( DISTINCT - col2 ) * - ( + COUNT( * ) ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-5350
SELECT MIN ( DISTINCT - col2 ) * - ( + COUNT ( * ) ) FROM tab0
----
297

query I rowsort
SELECT DISTINCT 50 + col2 FROM tab0 AS cor0 WHERE NOT - col2 * col2 IS NOT NULL
----

query I rowsort
SELECT - col1 / - col2 + - 90 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 56 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 = col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 66 + + 14 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 = col1 * - col1 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 6 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 * + 4 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < ( 70 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5361
SELECT - 98 + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT - 98 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - ( - + 39 ) AS col2 FROM tab2
----
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 44 + 96 + + col0 col1 FROM tab0
----
155
227
237

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT MAX( - 92 ) AS col0 FROM tab0
----
-92

skipif mysql # not compatible
query I rowsort label-5364
SELECT MAX ( - 92 ) AS col0 FROM tab0
----
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5365
SELECT DISTINCT CAST( NULL AS SIGNED ) * COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 + + col2 col2 FROM tab2
----
102
67
84

onlyif mysql # aggregate syntax: 
query I rowsort label-5367
SELECT DISTINCT + ( COUNT( * ) ) * COUNT( * ) AS col1 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5367
SELECT DISTINCT + ( COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab0
----
9

query I rowsort
SELECT ALL 10 * + 2 * + 67 FROM tab2
----
1340
1340
1340

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ( + 17 ) * - COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-5369
SELECT ( + 17 ) * - COUNT ( * ) FROM tab0
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col2 ) + - col1 col1 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5371
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 26 * + col2 + + CAST( + 45 AS SIGNED ) / + col2 col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5371
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 26 * + col2 + + CAST ( + 45 AS INTEGER ) / + col2 col2 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + SUM( DISTINCT 72 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-5372
SELECT + SUM ( DISTINCT 72 ) FROM tab1 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( col0 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - 9 / 29 ) <= ( - 60 )
----

query III rowsort
SELECT * FROM tab2 WHERE - - col0 > ( + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT ALL COUNT( * ) + COUNT( * ) * 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-5376
SELECT ALL COUNT ( * ) + COUNT ( * ) * 38 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT 54 + col0 AS col0 FROM tab0 AS cor0 WHERE + col2 * col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1
21
81

query I rowsort
SELECT ALL 91 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + col0 col2 FROM tab0 cor0
----
174
194
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT DISTINCT - col0 + - - 21 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT DISTINCT - col0 + - - 21 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > 55 + + 89
----

query II rowsort
SELECT + - col2 AS col0, 58 + - + 61 AS col1 FROM tab2 AS cor0
----
-23
-3
-40
-3
-58
-3

query I rowsort
SELECT DISTINCT - 58 + + - 30 FROM tab2 cor0
----
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT - COUNT( * ) DIV 59 - - - MAX( - col1 ) * 28 AS col0 FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - COUNT ( * ) / 59 - - - MAX ( - col1 ) * 28 AS col0 FROM tab1 AS cor0
----
140

query I rowsort
SELECT ALL - + 50 + + + ( - col2 ) FROM tab2 AS cor0
----
-108
-73
-90

query I rowsort
SELECT DISTINCT - 85 FROM tab1 AS cor0 WHERE - col2 IN ( 29 )
----

query I rowsort
SELECT col1 - - ( 63 ) AS col0 FROM tab1
----
110
68
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 63 IS NOT NULL
----

query I rowsort
SELECT + 25 AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
25
25
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5391
SELECT ALL + MIN( - + 92 ) FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-5391
SELECT ALL + MIN ( - + 92 ) FROM tab2 cor0
----
-92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 76 / - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 66 * - col2 AS col1 FROM tab0 AS cor0
----
3102
6534
660

query I rowsort
SELECT DISTINCT - - 45 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-5395
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5395
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND NULL
----
0

query I rowsort
SELECT ALL - + 90 + col0 AS col0 FROM tab1 AS cor0
----
-39
-5
1

query I rowsort
SELECT + - ( - - col1 ) FROM tab2 cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 22 + + 69 * + col0 <= + + 29 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT DISTINCT - + 10 * COUNT( DISTINCT - ( 53 ) ) + - 14 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-5399
SELECT DISTINCT - + 10 * COUNT ( DISTINCT - ( 53 ) ) + - 14 FROM tab1 AS cor0
----
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5400
SELECT ALL + col2 * - ( CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + col2 * - ( CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE ( + col0 * - col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT COUNT( * ) * + + 34 AS col1 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-5402
SELECT COUNT ( * ) * + + 34 AS col1 FROM tab0
----
102

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT CAST( + COUNT( - 15 ) AS SIGNED ) AS col1 FROM tab1, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5403
SELECT CAST ( + COUNT ( - 15 ) AS INTEGER ) AS col1 FROM tab1, tab1 AS cor0
----
9

query I rowsort
SELECT ALL col2 + - 63 AS col2 FROM tab2
----
-23
-40
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + 51 + - col0 + - - col1 col0 FROM tab2 AS cor0
----
102
118
128

query I rowsort
SELECT DISTINCT + col1 * + 47 * ( col2 ) AS col0 FROM tab2 AS cor0
----
144760
182642
55131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT + 38 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT + 38 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5408
SELECT + 94 - - 55, - CAST( NULL AS SIGNED ) - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
149
NULL

skipif mysql # not compatible
query II rowsort label-5408
SELECT + 94 - - 55, - CAST ( NULL AS INTEGER ) - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
149
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5409
SELECT + CAST( + + 0 AS SIGNED ) - - - col0 * col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

skipif mysql # not compatible
query I rowsort label-5409
SELECT + CAST ( + + 0 AS INTEGER ) - - - col0 * col0 AS col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-5410
SELECT DISTINCT + SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5410
SELECT DISTINCT + SUM ( - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT DISTINCT 57 * + - 37 + col0 AS col2 FROM tab1 AS cor0
----
-2018
-2024
-2058

query I rowsort
SELECT ALL - ( - + 33 ) + + col2 FROM tab2 AS cor0
----
56
73
91

query II rowsort
SELECT ALL - + 60 - - col2 AS col2, - col2 AS col2 FROM tab1 AS cor0
----
-1
-59
36
-96
8
-68

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 / col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + ( - 10 ) FROM tab2 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 11 * + 42 col1 FROM tab2
----
462

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5417
SELECT DISTINCT CAST( - - col0 AS SIGNED ) DIV - col0, - 47 AS col1 FROM tab1
----
-1
-47

skipif mysql # not compatible
query II rowsort label-5417
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) / - col0, - 47 AS col1 FROM tab1
----
-1
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * 75 col0 FROM tab0 WHERE NOT NULL <= - col2
----

query I rowsort
SELECT col1 / - 98 AS col1 FROM tab1 WHERE NOT + 87 IS NOT NULL
----

query II rowsort
SELECT + col0, + col0 - col2 + col1 FROM tab2
----
46
74
64
101
75
84

query I rowsort
SELECT DISTINCT ( - + col0 ) / col2 FROM tab0 WHERE NOT - - 61 > + - 55
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5422
SELECT - MIN( ALL + CAST( - 56 AS SIGNED ) ) AS col0 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-5422
SELECT - MIN ( ALL + CAST ( - 56 AS INTEGER ) ) AS col0 FROM tab1
----
56

onlyif mysql # DIV for integer division: 
query II rowsort label-5423
SELECT - ( - col0 ) + col2 col2, 53 DIV + - col0 FROM tab2 WHERE NOT col0 IS NULL
----
104
0
133
0
69
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5423
SELECT - ( - col0 ) + col2 col2, 53 / + - col0 FROM tab2 WHERE NOT col0 IS NULL
----
104
0
133
0
69
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5424
SELECT DISTINCT SUM( - - 34 ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-5424
SELECT DISTINCT SUM ( - - 34 ) FROM tab1
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT DISTINCT + MIN( DISTINCT - 11 ) AS col0 FROM tab2
----
-11

skipif mysql # not compatible
query I rowsort label-5425
SELECT DISTINCT + MIN ( DISTINCT - 11 ) AS col0 FROM tab2
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT MAX( - col1 ) AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5426
SELECT MAX ( - col1 ) AS col1 FROM tab2
----
-51

query I rowsort
SELECT ALL + + ( - - col2 ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * col1 <= + col2
----
97
1
99

query I rowsort
SELECT DISTINCT + 76 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
76

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - - col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT DISTINCT 48 * + COUNT( * ) FROM tab0 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-5433
SELECT DISTINCT 48 * + COUNT ( * ) FROM tab0 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 * 53 col0, col2 FROM tab2 AS cor0
----
-2438
23
-3392
40
-3975
58

query I rowsort
SELECT DISTINCT + - ( - col2 ) + - col2 AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - col1 * + + col1 * 66 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT COUNT( ALL - 4 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5438
SELECT DISTINCT COUNT ( ALL - 4 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 WHERE - col2 * + col1 * 82 + + + col0 - + col0 * + + 68 + + col2 / + - 44 + + ( - 35 ) * - col0 * + col2 IS NULL
----

query I rowsort
SELECT 42 * - col2 FROM tab1
----
-2478
-2856
-4032

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT DISTINCT ( - COUNT( ALL - col0 ) ) * - 2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5441
SELECT DISTINCT ( - COUNT ( ALL - col0 ) ) * - 2 FROM tab0
----
6

query I rowsort
SELECT + 37 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 5 * col1 AS col0 FROM tab0
----
105
405
5

query I rowsort
SELECT ALL + 99 + - col1 FROM tab1
----
52
85
94

query I rowsort
SELECT 83 * col1 FROM tab1
----
1162
3901
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT - MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5446
SELECT - MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL = + - 87
----

query I rowsort
SELECT DISTINCT - - col2 + - - 63 - col0 * col1 FROM tab0 cor0
----
-1105
-1754
65

query I rowsort
SELECT DISTINCT - - AVG ( - - 15 ) AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col0, - 52 * - - 50, - 41 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5450
SELECT DISTINCT + 22 + + - 93 DIV + 78 AS col0, + 73 FROM tab1 AS cor0
----
21
73

skipif mysql # not compatible
query II rowsort label-5450
SELECT DISTINCT + 22 + + - 93 / + 78 AS col0, + 73 FROM tab1 AS cor0
----
21
73

query I rowsort
SELECT + col1 - - 44 * - col2 AS col1 FROM tab2 cor0
----
-1683
-2485
-961

query I rowsort
SELECT - col0 - - - 66 AS col2 FROM tab0 AS cor0
----
-153
-163
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL + COUNT( * ) + 87 col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5453
SELECT ALL + COUNT ( * ) + 87 col1 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5454
SELECT ALL * FROM tab2 WHERE - col0 * + 31 * - col1 * CAST( NULL AS DECIMAL ) / ( + + 83 ) >= ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5454
SELECT ALL * FROM tab2 WHERE - col0 * + 31 * - col1 * CAST ( NULL AS REAL ) / ( + + 83 ) >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + + col0 col1 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5456
SELECT - + col0 * - + col1 * col1 + 82 * CAST( + col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT + col2 + - col0 + - col0 + + - col2 * 5 NOT BETWEEN + 77 AND - col2
----

skipif mysql # not compatible
query I rowsort label-5456
SELECT - + col0 * - + col1 * col1 + 82 * CAST ( + col1 AS REAL ) FROM tab1 AS cor0 WHERE NOT + col2 + - col0 + - col0 + + - col2 * 5 NOT BETWEEN + 77 AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5457
SELECT - SUM( DISTINCT col1 ) col2 FROM tab1 cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5457
SELECT - SUM ( DISTINCT col1 ) col2 FROM tab1 cor0
----
-66

query II rowsort
SELECT - col0, + 21 AS col0 FROM tab0 AS cor0
----
-15
21
-87
21
-97
21

query II rowsort
SELECT 4, + col1 * col1 AS col2 FROM tab2 cor0
----
4
2601
4
4489
4
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 53 col1 FROM tab0
----
53
53
53

onlyif mysql # DIV for integer division: 
query II rowsort label-5461
SELECT ALL + 54 DIV + col2, col1 AS col1 FROM tab0
----
0
1
1
81
5
21

skipif mysql # not compatible
query II rowsort label-5461
SELECT ALL + 54 / + col2, col1 AS col1 FROM tab0
----
0
1
1
81
5
21

query II rowsort
SELECT DISTINCT + - 11 AS col0, - 66 FROM tab1 WHERE ( - col0 ) <> - col0
----

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab0 WHERE NOT col2 < + col0 / + - 66 + + 19 / + col0 * - 63 + - 50
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + 98 col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

onlyif mysql # DIV for integer division: 
query I rowsort label-5465
SELECT - col0 DIV - col1 + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-115
-46
-80

skipif mysql # not compatible
query I rowsort label-5465
SELECT - col0 / - col1 + - col2 + - + col2 AS col0 FROM tab2 AS cor0
----
-115
-46
-80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 17 BETWEEN col2 AND + col0
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5467
SELECT - + 54 DIV - 84 * COUNT( * ) * + - 23 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5467
SELECT - + 54 / - 84 * COUNT ( * ) * + - 23 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 39 + + - col2 col0 FROM tab2 AS cor0
----
-62
-79
-97

query I rowsort
SELECT - + ( + + 36 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT ( + 65 ) AS col0 FROM tab0
----
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5471
SELECT - CAST( + - 73 AS SIGNED ) FROM tab1
----
73
73
73

skipif mysql # not compatible
query I rowsort label-5471
SELECT - CAST ( + - 73 AS INTEGER ) FROM tab1
----
73
73
73

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + + + col0 <> NULL
----

query II rowsort
SELECT col2, + col1 * + 54 FROM tab2
----
23
2754
40
4158
58
3618

query I rowsort
SELECT ALL + 60 AS col1 FROM tab0 AS cor0 WHERE ( NOT NULL NOT BETWEEN ( col1 ) AND ( col2 ) )
----

query II rowsort
SELECT 46, + col2 FROM tab1 AS cor0
----
46
59
46
68
46
96

query I rowsort
SELECT DISTINCT + 48 * col2 * col2 * col1 FROM tab1 AS cor0
----
10431744
6193152
835440

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5477
SELECT + MIN( + - col1 ) + + + COUNT( * ) FROM tab0 AS cor0 WHERE ( NOT 51 + + CAST( NULL AS SIGNED ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5477
SELECT + MIN ( + - col1 ) + + + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NOT 51 + + CAST ( NULL AS INTEGER ) IS NULL )
----
NULL

query I rowsort
SELECT ALL col1 + 4 FROM tab1 AS cor0
----
18
51
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT + + COUNT( ALL col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5479
SELECT + + COUNT ( ALL col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 47 * col2 FROM tab2 WHERE + ( col1 ) < + col2
----

query I rowsort
SELECT + 34 + 12 FROM tab2
----
46
46
46

query III rowsort
SELECT * FROM tab2 WHERE 38 + - col0 * 60 - col0 > - - 18
----

query I rowsort
SELECT DISTINCT + - col0 * - col0 - - ( - col0 ) * - col2 * col0 FROM tab2 AS cor0
----
167936
331875
50784

query II rowsort
SELECT DISTINCT - col0 - + - col1 AS col0, ( + 37 ) FROM tab1 AS cor0
----
-37
37
-44
37
-80
37

query I rowsort
SELECT DISTINCT + col1 - - col1 AS col0 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5486
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT + col1 * - - col1 * + + col0 FROM tab1
----
201019
2125
9996

query I rowsort
SELECT ALL ( - 45 ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

onlyif mysql # aggregate syntax: 
query I rowsort label-5489
SELECT COUNT( DISTINCT + + 4 ) * 70 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5489
SELECT COUNT ( DISTINCT + + 4 ) * 70 FROM tab0 AS cor0
----
70

query I rowsort
SELECT - 1 * + col2 AS col2 FROM tab0 cor0
----
-10
-47
-99

query I rowsort
SELECT + 39 * + - 21 + + col1 + 35 AS col1 FROM tab1 AS cor0
----
-737
-770
-779

query I rowsort
SELECT - + ( + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT - ( + col0 ) FROM tab2 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5495
SELECT ALL + COUNT( + - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5495
SELECT ALL + COUNT ( + - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT 27 AS col0 FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 21 * + col2 AS col0 FROM tab0 AS cor0
----
2079
210
987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5498
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - 3 * - - col1 * - + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5498
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * - - 3 * - - col1 * - + CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 - 27 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5500
SELECT DISTINCT + SUM( - + col0 ) AS col2 FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5500
SELECT DISTINCT + SUM ( - + col0 ) AS col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query II rowsort label-5501
SELECT + COUNT( * ) AS col1, 66 col1 FROM tab0
----
3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5501
SELECT + COUNT ( * ) AS col1, 66 col1 FROM tab0
----
3
66

query I rowsort
SELECT 94 * col0 FROM tab1
----
4794
7990
8554

onlyif mysql # DIV for integer division: 
query I rowsort label-5503
SELECT DISTINCT col0 DIV + - col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-5503
SELECT DISTINCT col0 / + - col1 AS col2 FROM tab0
----
-4
-97
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5504
SELECT ALL + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab2
----
1

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2 * + + ( + + 46 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT - 85 DIV + 26 + - + col0 - col2 AS col1 FROM tab2 AS cor0
----
-107
-136
-72

skipif mysql # not compatible
query I rowsort label-5506
SELECT - 85 / + 26 + - + col0 - col2 AS col1 FROM tab2 AS cor0
----
-107
-136
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-5507
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 + - - 79 + - - col2 * - - 57 + - + col1 IS NOT NULL )
----
-3

skipif mysql # not compatible
query I rowsort label-5507
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - - col0 + - - 79 + - - col2 * - - 57 + - + col1 IS NOT NULL )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5508
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( - col1 AS SIGNED ) * - col2 + + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5508
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( - col1 AS INTEGER ) * - col2 + + 60 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5509
SELECT COUNT( * ) + + + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5509
SELECT COUNT ( * ) + + + COUNT ( * ) FROM tab0
----
6

query II rowsort
SELECT 81 + + + ( - - 31 ) AS col0, col2 FROM tab2
----
112
23
112
40
112
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5511
SELECT ALL ( col0 ) AS col1, CAST( NULL AS SIGNED ) * - + col2 * + 43 AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-5511
SELECT ALL ( col0 ) AS col1, CAST ( NULL AS INTEGER ) * - + col2 * + 43 AS col1 FROM tab0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5512
SELECT CAST( NULL AS SIGNED ) + - - col0 * col2 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5512
SELECT CAST ( NULL AS INTEGER ) + - - col0 * col2 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 97 + + 68 + + + col1 * col2 FROM tab0 AS cor0
----
181
3778
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT ALL + - COUNT( * ) + + 53 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + - COUNT ( * ) + + 53 FROM tab1 AS cor0
----
50

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < 62 + - - col1 + col0
----

query I rowsort
SELECT + - col1 AS col1 FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5517
SELECT - CAST( - ( - MAX( - - col1 ) ) AS SIGNED ) AS col0 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-5517
SELECT - CAST ( - ( - MAX ( - - col1 ) ) AS INTEGER ) AS col0 FROM tab0 cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-5518
SELECT DISTINCT + + COUNT( - col0 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5518
SELECT DISTINCT + + COUNT ( - col0 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT - SUM( DISTINCT + 86 ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-5519
SELECT - SUM ( DISTINCT + 86 ) FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-5520
SELECT ALL 66, + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
66
0

skipif mysql # not compatible
query II rowsort label-5520
SELECT ALL 66, + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----
66
0

query I rowsort
SELECT DISTINCT + col0 - + 3 FROM tab1 AS cor0
----
48
82
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5522
SELECT DISTINCT SUM( ALL 15 ) AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5522
SELECT DISTINCT SUM ( ALL 15 ) AS col0 FROM tab2
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5523
SELECT + COUNT( * ) DIV + 5 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5523
SELECT + COUNT ( * ) / + 5 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT + col1 * + CAST( - col1 AS SIGNED ) * + 89 col1 FROM tab1
----
-17444
-196601
-2225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5524
SELECT + col1 * + CAST ( - col1 AS INTEGER ) * + 89 col1 FROM tab1
----
-17444
-196601
-2225

query I rowsort
SELECT ALL - ( 82 ) - + ( - col1 ) AS col0 FROM tab2 WHERE NOT 92 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 70 - + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5527
SELECT - 23 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5527
SELECT - 23 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 1 * - 89 + - 6 + - - 89 AS col1 FROM tab0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - - col0 * + col0 * col0 col2 FROM tab2
----
262184
421933
97359

query I rowsort
SELECT ALL - 84 * 70 - col1 + - 90 AS col1 FROM tab0 AS cor0
----
-5971
-5991
-6051

query I rowsort
SELECT + col1 + - 33 * + col1 AS col0 FROM tab0 AS cor0
----
-2592
-32
-672

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - MIN( ALL + col0 ) col0 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5532
SELECT - MIN ( ALL + col0 ) col0 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-5533
SELECT DISTINCT + COUNT( * ) * 39 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-5533
SELECT DISTINCT + COUNT ( * ) * 39 FROM tab2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5534
SELECT DISTINCT COUNT( * ) * - 35 * 48 AS col2 FROM tab2
----
-5040

skipif mysql # not compatible
query I rowsort label-5534
SELECT DISTINCT COUNT ( * ) * - 35 * 48 AS col2 FROM tab2
----
-5040

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 42 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT CAST( NULL AS SIGNED ) * + - CAST( NULL AS SIGNED ) * - 15 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5536
SELECT CAST ( NULL AS INTEGER ) * + - CAST ( NULL AS INTEGER ) * - 15 + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5537
SELECT DISTINCT + MIN( DISTINCT - 7 ) FROM tab1 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + MIN ( DISTINCT - 7 ) FROM tab1 cor0
----
-7

query I rowsort
SELECT + + col0 * + ( - 46 ) + col2 AS col0 FROM tab1 AS cor0
----
-2250
-3851
-4118

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT DISTINCT + MIN( ( - 13 ) ) FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5539
SELECT DISTINCT + MIN ( ( - 13 ) ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT - ( + - 67 ) FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT COUNT( * ) * - - COUNT( - col0 ) FROM tab1 WHERE NOT NULL <= 68
----
0

skipif mysql # not compatible
query I rowsort label-5541
SELECT COUNT ( * ) * - - COUNT ( - col0 ) FROM tab1 WHERE NOT NULL <= 68
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT - MIN( - col2 ) FROM tab1 WHERE NOT + + 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT - MIN ( - col2 ) FROM tab1 WHERE NOT + + 43 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5543
SELECT - CAST( + col2 AS SIGNED ) + - - 42, col2 FROM tab2 AS cor0
----
-16
58
19
23
2
40

skipif mysql # not compatible
query II rowsort label-5543
SELECT - CAST ( + col2 AS INTEGER ) + - - 42, col2 FROM tab2 AS cor0
----
-16
58
19
23
2
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5544
SELECT CAST( NULL AS SIGNED ) + + col0 * - 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5544
SELECT CAST ( NULL AS INTEGER ) + + col0 * - 58 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT ALL + - ( COUNT( * ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5545
SELECT ALL + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + 75 + - col2 col0 FROM tab0 AS cor0
----
-1585
-174
-6122

query I rowsort
SELECT + 14 + + - col2 AS col0 FROM tab0 AS cor0
----
-33
-85
4

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col2 * 34 AS col0 FROM tab0
----
1598
3366
340

query I rowsort
SELECT col0 * - col1 + + + col0 AS col1 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT 21 * + col0 * + + 17 AS col0 FROM tab0 cor0
----
31059
34629
5355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5552
SELECT ALL + 84 - CAST( - 33 AS SIGNED ) col2 FROM tab2
----
117
117
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5552
SELECT ALL + 84 - CAST ( - 33 AS INTEGER ) col2 FROM tab2
----
117
117
117

onlyif mysql # aggregate syntax: 
query I rowsort label-5553
SELECT + 42 + + COUNT( * ) + + 34 * + 20 AS col1 FROM tab1
----
725

skipif mysql # not compatible
query I rowsort label-5553
SELECT + 42 + + COUNT ( * ) + + 34 * + 20 AS col1 FROM tab1
----
725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT ALL - CAST( - col1 AS SIGNED ) FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL - CAST ( - col1 AS INTEGER ) FROM tab0
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE - - 11 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + + 13 AS col0, + col2 col0 FROM tab2 AS cor0 WHERE 19 < col1
----
-38
23
-54
58
-64
40

query I rowsort
SELECT DISTINCT + col0 + - col0 + col0 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5558
SELECT + 6 * + - col2 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5558
SELECT + 6 * + - col2 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * + 23 AS col1 FROM tab0
----
1081
2277
230

query I rowsort
SELECT - - 67 AS col2 FROM tab0 cor0
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-5561
SELECT - col2 DIV + 61 + - ( col1 ) FROM tab1 AS cor0
----
-15
-48
-5

skipif mysql # not compatible
query I rowsort label-5561
SELECT - col2 / + 61 + - ( col1 ) FROM tab1 AS cor0
----
-15
-48
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5562
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5562
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT col2 AS col0, - 52 AS col0 FROM tab0 AS cor0
----
10
-52
47
-52
99
-52

query I rowsort
SELECT ALL ( - 40 ) FROM tab2 AS cor0
----
-40
-40
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 87 AS col0, + col1 * - + 11 col1 FROM tab2 AS cor0
----
-87
-561
-87
-737
-87
-847

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT ALL + + 19 * - COUNT( * ) AS col0 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL + + 19 * - COUNT ( * ) AS col0 FROM tab1 cor0
----
-57

query I rowsort
SELECT DISTINCT + - 20 * + - 62 AS col1 FROM tab1 AS cor0
----
1240

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT MAX( ALL + col1 ) AS col1 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT MAX ( ALL + col1 ) AS col1 FROM tab1 cor0
----
47

query I rowsort
SELECT DISTINCT 25 + + + col2 FROM tab0
----
124
35
72

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) DIV - 93 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) / - 93 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5571
SELECT - MIN( - 13 ) + + - COUNT( + - 47 ) FROM tab1, tab0 cor0
----
4

skipif mysql # not compatible
query I rowsort label-5571
SELECT - MIN ( - 13 ) + + - COUNT ( + - 47 ) FROM tab1, tab0 cor0
----
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5572
SELECT DISTINCT * FROM tab2 WHERE CAST( NULL AS DECIMAL ) NOT BETWEEN 98 + + col1 AND ( + 7 + + - 45 * - col1 - + col2 )
----

skipif mysql # not compatible
query III rowsort label-5572
SELECT DISTINCT * FROM tab2 WHERE CAST ( NULL AS REAL ) NOT BETWEEN 98 + + col1 AND ( + 7 + + - 45 * - col1 - + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col0 * - col1 - + + col1 + - 3 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + - col2 + col1 + - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1035
-2520
-4292

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - col0 col0 FROM tab0
----
-3828
-4268
-660

query III rowsort
SELECT * FROM tab1 WHERE - + 90 + + 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT DISTINCT - - 62 + COUNT( * ) FROM tab0 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5577
SELECT DISTINCT - - 62 + COUNT ( * ) FROM tab0 AS cor0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5578
SELECT DISTINCT + COUNT( * ) + - - COUNT( * ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-5578
SELECT DISTINCT + COUNT ( * ) + - - COUNT ( * ) AS col0 FROM tab0 cor0
----
6

query I rowsort
SELECT ALL + + col2 + + + col1 * - 52 * - col1 FROM tab2 cor0
----
135275
233486
308348

query II rowsort
SELECT DISTINCT col0 + ( - col1 ) AS col2, 60 AS col0 FROM tab1 AS cor0
----
37
60
44
60
80
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5581
SELECT ALL + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( + + col1, col1 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5581
SELECT ALL + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IN ( + + col1, col1 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5582
SELECT ALL + COUNT( * ) DIV + - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL + COUNT ( * ) / + - COUNT ( * ) FROM tab2
----
-1

query II rowsort
SELECT DISTINCT 65, ( - col1 ) AS col0 FROM tab1
----
65
-14
65
-47
65
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-5584
SELECT DISTINCT SUM( DISTINCT - 31 ) AS col0, 17 FROM tab1
----
-31
17

skipif mysql # not compatible
query II rowsort label-5584
SELECT DISTINCT SUM ( DISTINCT - 31 ) AS col0, 17 FROM tab1
----
-31
17

query I rowsort
SELECT col0 - - + 52 FROM tab0
----
139
149
67

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT ALL + + ( COUNT( * ) ) AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5586
SELECT ALL + + ( COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - - col0 * + + ( col1 ) col0 FR