sqllogictest
Artifact Content
Not logged in

Artifact 299ef3853d4d1c57057bd02a4c3e70c6b7371381:


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 # DIV for integer division: 
query I rowsort label-0
SELECT - 31 DIV - 67 * - + col1 + - - 67 FROM tab2 AS cor0
----
67
67
67

skipif mysql # not compatible
query I rowsort label-0
SELECT - 31 / - 67 * - + col1 + - - 67 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT + + col0 AS col0 FROM tab0 cor0 WHERE - col0 - 44 > + 80 + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT DISTINCT + + col1 + 8 AS col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * - 75 + - + col1 * + + 4 / - 38 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3
SELECT DISTINCT + + col1 + 8 AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * - 75 + - + col1 * + + 4 / - 38 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4
SELECT COUNT( * ) * + + ( - 54 ) FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-4
SELECT COUNT ( * ) * + + ( - 54 ) FROM tab1
----
-162

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7
SELECT DISTINCT 85 * - MIN( ( + - 16 ) ) * 62 FROM tab2
----
84320

skipif mysql # not compatible
query I rowsort label-7
SELECT DISTINCT 85 * - MIN ( ( + - 16 ) ) * 62 FROM tab2
----
84320

query I rowsort
SELECT DISTINCT + col1 * - + col1 + - 93 FROM tab1
----
-118
-2302
-289

query I rowsort
SELECT col2 FROM tab1 WHERE + 12 IS NULL
----

query I rowsort
SELECT ALL - col0 + + col1 - - - col1 + + - ( - + 83 ) AS col2 FROM tab2 AS cor0
----
19
37
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-13
SELECT ALL + + col2 + - ( - - CAST( NULL AS SIGNED ) ) * - 52 AS col2 FROM tab2 AS cor0 WHERE NULL < col2 * + - col1
----

skipif mysql # not compatible
query I rowsort label-13
SELECT ALL + + col2 + - ( - - CAST ( NULL AS INTEGER ) ) * - 52 AS col2 FROM tab2 AS cor0 WHERE NULL < col2 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-14
SELECT SUM( DISTINCT + 56 ) AS col1 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-14
SELECT SUM ( DISTINCT + 56 ) AS col1 FROM tab0
----
56

query II rowsort
SELECT ALL col2 * - 38 AS col1, col2 AS col1 FROM tab0
----
-1786
47
-3762
99
-380
10

onlyif mysql # aggregate syntax: 
query II rowsort label-16
SELECT DISTINCT + MIN( DISTINCT + - col2 ) AS col0, + SUM( DISTINCT - col1 ) * COUNT( * ) - MAX( 11 ) FROM tab1
----
-96
-209

skipif mysql # not compatible
query II rowsort label-16
SELECT DISTINCT + MIN ( DISTINCT + - col2 ) AS col0, + SUM ( DISTINCT - col1 ) * COUNT ( * ) - MAX ( 11 ) FROM tab1
----
-96
-209

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-17
SELECT DISTINCT CAST( 86 AS SIGNED ) * + col2 FROM tab2
----
1978
3440
4988

skipif mysql # not compatible
query I rowsort label-17
SELECT DISTINCT CAST ( 86 AS INTEGER ) * + col2 FROM tab2
----
1978
3440
4988

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col2 NOT BETWEEN NULL AND 97
----

query I rowsort
SELECT ALL 76 * - col2 * col1 AS col1 FROM tab1
----
-102144
-22420
-242896

query I rowsort
SELECT ALL 59 * col2 * + + 65 * + - col1 AS col0 FROM tab2 AS cor0
----
-11811800
-14902810
-4498455

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-21
SELECT + 73 * + CAST( + col2 AS SIGNED ) AS col2, col2 + + - col1 FROM tab2 AS cor0
----
1679
-28
2920
-37
4234
-9

skipif mysql # not compatible
query II rowsort label-21
SELECT + 73 * + CAST ( + col2 AS INTEGER ) AS col2, col2 + + - col1 FROM tab2 AS cor0
----
1679
-28
2920
-37
4234
-9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col2 < + 12 * col2
----

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

query I rowsort
SELECT DISTINCT - col1 * 59 AS col0 FROM tab2
----
-3009
-3953
-4543

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-25
SELECT DISTINCT - col1 / CAST ( NULL AS INTEGER ) * - col0 col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL ( 51 ) FROM tab0
----
51
51
51

query I rowsort
SELECT - 11 AS col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT DISTINCT - MIN( - 99 ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-28
SELECT DISTINCT - MIN ( - 99 ) AS col0 FROM tab1
----
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-30
SELECT + MAX( col1 ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-30
SELECT + MAX ( col1 ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
80

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-32
SELECT - COUNT( * ) - - 85 DIV COUNT( * ) FROM tab2 WHERE NOT col0 - col1 > ( - col2 - - col2 )
----
40

skipif mysql # not compatible
query I rowsort label-32
SELECT - COUNT ( * ) - - 85 / COUNT ( * ) FROM tab2 WHERE NOT col0 - col1 > ( - col2 - - col2 )
----
40

query I rowsort
SELECT col2 * + ( + 84 ) FROM tab2
----
1932
3360
4872

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

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

query I rowsort
SELECT 38 * 53 FROM tab0
----
2014
2014
2014

query I rowsort
SELECT 75 * - 0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-37
SELECT + CAST( - COUNT( * ) AS SIGNED ) * COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-37
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT 81 + + col0 AS col0 FROM tab0
----
168
178
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + col0 * col2 col2 FROM tab0 WHERE NOT + col2 <> - 41
----

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

query I rowsort
SELECT ALL 5 * - ( 93 ) AS col0 FROM tab1
----
-465
-465
-465

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-45
SELECT CAST ( + 34 AS INTEGER ) FROM tab0
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-46
SELECT MIN( DISTINCT 46 ) AS col2 FROM tab0 WHERE ( - 29 ) IS NOT NULL
----
46

skipif mysql # not compatible
query I rowsort label-46
SELECT MIN ( DISTINCT 46 ) AS col2 FROM tab0 WHERE ( - 29 ) IS NOT NULL
----
46

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

skipif mysql # not compatible
query I rowsort label-47
SELECT COUNT ( * ) + - CAST ( COUNT ( * ) AS INTEGER ) FROM tab1 WHERE NOT col1 IS NULL
----
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 33 + col1 col0 FROM tab0 WHERE NOT 35 / 0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-50
SELECT 16 DIV - 19 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-50
SELECT 16 / - 19 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-51
SELECT - MAX( + col1 ) * MIN( DISTINCT - col0 + - col2 ) FROM tab2 WHERE NULL IS NULL
----
10241

skipif mysql # not compatible
query I rowsort label-51
SELECT - MAX ( + col1 ) * MIN ( DISTINCT - col0 + - col2 ) FROM tab2 WHERE NULL IS NULL
----
10241

onlyif mysql # DIV for integer division: 
query I rowsort label-52
SELECT col1 DIV - 27 AS col0 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-52
SELECT col1 / - 27 AS col0 FROM tab0
----
-3
0
0

query I rowsort
SELECT DISTINCT 18 FROM tab2 WHERE ( + 61 ) BETWEEN col2 + + col1 * - col0 AND col0
----
18

query I rowsort
SELECT DISTINCT + 3 + - 41 FROM tab0
----
-38

query I rowsort
SELECT + col0 * ( + col1 ) FROM tab2
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * + 1 col1 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL 89 + + col2 AS col2 FROM tab2
----
112
129
147

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 42 - + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-59
SELECT - MAX( DISTINCT - col1 ) * + COUNT( * ) AS col1 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-59
SELECT - MAX ( DISTINCT - col1 ) * + COUNT ( * ) AS col1 FROM tab1
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 94 * + col2 col0 FROM tab1 WHERE - 78 IS NOT NULL
----
-5546
-6392
-9024

onlyif mysql # DIV for integer division: 
query I rowsort label-61
SELECT ALL 23 DIV col1 FROM tab1
----
0
1
4

skipif mysql # not compatible
query I rowsort label-61
SELECT ALL 23 / col1 FROM tab1
----
0
1
4

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

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

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

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

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

query I rowsort
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( col2 ) + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 48 - col1 ) IN ( - 58 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-68
SELECT ALL SUM( ALL ( 82 ) ) FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL SUM ( ALL ( 82 ) ) FROM tab2 AS cor0
----
246

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

onlyif mysql # aggregate syntax: 
query I rowsort label-70
SELECT ALL 61 * - MAX( 93 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-5673

skipif mysql # not compatible
query I rowsort label-70
SELECT ALL 61 * - MAX ( 93 ) FROM tab1 AS cor0 CROSS JOIN tab0
----
-5673

onlyif mysql # aggregate syntax: 
query I rowsort label-71
SELECT MIN( 35 ) AS col2 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-71
SELECT MIN ( 35 ) AS col2 FROM tab0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-72
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT 46 - - 29 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT 46 - - 29 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 64 * ( col1 ) AS col0 FROM tab0 WHERE NOT NULL >= + ( + col0 )
----

query I rowsort
SELECT + 52 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 48 * col0 AS col0 FROM tab1
----
2448
4080
4368

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-76
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-76
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-77
SELECT DISTINCT COUNT( DISTINCT 63 ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-77
SELECT DISTINCT COUNT ( DISTINCT 63 ) AS col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-78
SELECT + col2 DIV 6 FROM tab0 AS cor0
----
1
16
7

skipif mysql # not compatible
query I rowsort label-78
SELECT + col2 / 6 FROM tab0 AS cor0
----
1
16
7

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

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

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-84
SELECT ALL - + ( COUNT ( * ) ) * ( MAX ( ALL + col2 ) ) AS col0 FROM tab2 AS cor0
----
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT ALL - 11 * COUNT( * ) FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-85
SELECT ALL - 11 * COUNT ( * ) FROM tab2 cor0
----
-33

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

skipif mysql # not compatible
query I rowsort label-86
SELECT - MIN ( DISTINCT 3 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + col0 * - 10 * col2 FROM tab0
----
-7050
-8700
-96030

query I rowsort
SELECT 9 + + 51 AS col1 FROM tab0
----
60
60
60

query I rowsort
SELECT - 32 + col1 + col0 * col2 AS col1 FROM tab2
----
1077
2605
4385

query I rowsort
SELECT ALL ( + + col1 ) * - 14 FROM tab0
----
-1134
-14
-294

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

query I rowsort
SELECT + ( 64 ) + 63 AS col1 FROM tab1
----
127
127
127

onlyif mysql # aggregate syntax: 
query I rowsort label-93
SELECT - COUNT( * ) + + 52 + COUNT( * ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-93
SELECT - COUNT ( * ) + + 52 + COUNT ( * ) AS col0 FROM tab2
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-94
SELECT 24 + COUNT( * ) * ( + 50 ) AS col0 FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-94
SELECT 24 + COUNT ( * ) * ( + 50 ) AS col0 FROM tab0
----
174

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-95
SELECT DISTINCT MIN( + 15 ) + CAST( + MAX( col1 ) AS SIGNED ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-95
SELECT DISTINCT MIN ( + 15 ) + CAST ( + MAX ( col1 ) AS INTEGER ) FROM tab1
----
62

query I rowsort
SELECT ( - 56 ) / ( 14 - + 79 ) + col0 * - col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - 63 + 85 * - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 65 * + 27 - col0 = ( NULL )
----

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE 71 IN ( col2 * + 19 + - col2 / + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT + ( 80 ) * - SUM( DISTINCT - col1 ) + SUM( DISTINCT + col1 ) FROM tab0 WHERE ( ( col1 + + col2 ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-102
SELECT + ( 80 ) * - SUM ( DISTINCT - col1 ) + SUM ( DISTINCT + col1 ) FROM tab0 WHERE ( ( col1 + + col2 ) IS NULL )
----
NULL

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( + 96 * col1 ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-104
SELECT ALL + 15 + + COUNT( * ) + + CAST( + COUNT( * ) AS SIGNED ) * SUM( DISTINCT - 55 ) FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-104
SELECT ALL + 15 + + COUNT ( * ) + + CAST ( + COUNT ( * ) AS INTEGER ) * SUM ( DISTINCT - 55 ) FROM tab1 AS cor0
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-105
SELECT DISTINCT MIN( DISTINCT - CAST( + + ( 1 ) AS SIGNED ) ) * 92 AS col1 FROM tab0 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-105
SELECT DISTINCT MIN ( DISTINCT - CAST ( + + ( 1 ) AS INTEGER ) ) * 92 AS col1 FROM tab0 cor0
----
-92

query I rowsort
SELECT DISTINCT 63 * - col0 - - - 83 FROM tab2 AS cor0
----
-2981
-4115
-4808

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

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

query I rowsort
SELECT ALL - 7 - - + col0 FROM tab2 AS cor0
----
39
57
68

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

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

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

query II rowsort
SELECT col2 AS col1, - 13 AS col1 FROM tab2 AS cor0
----
23
-13
40
-13
58
-13

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - 54 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-115
SELECT 25 * - - SUM( + col1 ) * + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4950

skipif mysql # not compatible
query I rowsort label-115
SELECT 25 * - - SUM ( + col1 ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
4950

query I rowsort
SELECT + 27 * + 91 FROM tab1 AS cor0
----
2457
2457
2457

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

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

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col2 * col1 + col2 >= + ( - col2 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-121
SELECT * FROM tab2 WHERE NOT ( + 53 ) <= + CAST( NULL AS SIGNED ) AND NOT + ( col2 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-121
SELECT * FROM tab2 WHERE NOT ( + 53 ) <= + CAST ( NULL AS INTEGER ) AND NOT + ( col2 ) IS NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-123
SELECT DISTINCT * FROM tab1 WHERE ( - CAST( - + 79 AS SIGNED ) + 46 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-123
SELECT DISTINCT * FROM tab1 WHERE ( - CAST ( - + 79 AS INTEGER ) + 46 ) IS NULL
----

query I rowsort
SELECT DISTINCT - - ( - ( 34 ) ) FROM tab1 cor0
----
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT DISTINCT - col1 DIV 21 * + ( + 13 ) + - 88 DIV 71 FROM tab0 AS cor0
----
-1
-14
-40

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT - col1 / 21 * + ( + 13 ) + - 88 / 71 FROM tab0 AS cor0
----
-1
-14
-40

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

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

query I rowsort
SELECT DISTINCT - 96 * - - col2 - col0 AS col1 FROM tab1 AS cor0 WHERE - 38 = NULL
----

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

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 63 + col2 * + col1 NOT BETWEEN + col2 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-131
SELECT col2 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * + col2 BETWEEN + 3 * + + col0 + col2 * 54 + col2 / col0 AND 42
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-131
SELECT col2 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 * + col2 BETWEEN + 3 * + + col0 + col2 * 54 + col2 / col0 AND 42
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 56 - - 57 col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT + 96, - 88 * ( - col1 ) AS col0 FROM tab0 AS cor0
----
96
1848
96
7128
96
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 NOT IN ( 99 )
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-137
SELECT DISTINCT col2 + col0 DIV col2 AS col0 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-137
SELECT DISTINCT col2 + col0 / col2 AS col0 FROM tab1
----
60
69
96

query I rowsort
SELECT DISTINCT col0 * - col2 + - col1 - + + 99 FROM tab0
----
-885
-9703
-990

query I rowsort
SELECT ALL 29 + + - col2 AS col2 FROM tab2
----
-11
-29
6

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

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

query II rowsort
SELECT ALL + 76 * + 70, + 22 AS col1 FROM tab1
----
5320
22
5320
22
5320
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-143
SELECT DISTINCT CAST( NULL AS DECIMAL ) + - - 89 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-143
SELECT DISTINCT CAST ( NULL AS REAL ) + - - 89 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT ALL SUM( DISTINCT - col0 ) + - + 39 FROM tab2 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-146
SELECT ALL SUM ( DISTINCT - col0 ) + - + 39 FROM tab2 AS cor0
----
-224

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT - CAST( 53 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-53
-53
-53

skipif mysql # not compatible
query I rowsort label-147
SELECT - CAST ( 53 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 * + col1 - col1 col0, col0 AS col1 FROM tab1 AS cor0
----
1330
51
290
85
3149
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( ( NOT NULL NOT BETWEEN ( NULL ) AND ( NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-150
SELECT - + COUNT( ALL col0 ) - - - 87 AS col0 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-150
SELECT - + COUNT ( ALL col0 ) - - - 87 AS col0 FROM tab0 AS cor0
----
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-151
SELECT - col2 - - 81 * - col0 DIV col0 * + 19 AS col2 FROM tab2 AS cor0
----
-1562
-1579
-1597

skipif mysql # not compatible
query I rowsort label-151
SELECT - col2 - - 81 * - col0 / col0 * + 19 AS col2 FROM tab2 AS cor0
----
-1562
-1579
-1597

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

query I rowsort
SELECT DISTINCT - 35 - + + 14 AS col1 FROM tab0 cor0
----
-49

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT ( 33 ) NOT IN ( + + col1 * 19 )
----

query I rowsort
SELECT ALL + + col1 - col0 - + col1 * col2 AS col0 FROM tab2 AS cor0
----
-1168
-3067
-3894

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

query II rowsort
SELECT - 21, 27 AS col0 FROM tab0
----
-21
27
-21
27
-21
27

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

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

query I rowsort
SELECT ALL 20 * + - col1 AS col1 FROM tab1
----
-100
-280
-940

onlyif mysql # DIV for integer division: 
query I rowsort label-160
SELECT - col2 DIV + + 82 AS col1 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-160
SELECT - col2 / + + 82 AS col1 FROM tab1
----
-1
0
0

query II rowsort
SELECT col0, - 55 * - + 70 FROM tab1
----
51
3850
85
3850
91
3850

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + - 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT - MIN( 33 ) FROM tab2 cor0
----
-33

skipif mysql # not compatible
query I rowsort label-163
SELECT - MIN ( 33 ) FROM tab2 cor0
----
-33

query I rowsort
SELECT DISTINCT - 44 * 9 FROM tab0 AS cor0
----
-396

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 + + - 55 BETWEEN + col1 AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-165
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col1 + + - 55 BETWEEN + col1 AND NULL
----
3

query II rowsort
SELECT ALL col0 AS col1, + 43 * + 70 FROM tab0 cor0
----
15
3010
87
3010
97
3010

onlyif mysql # aggregate syntax: 
query I rowsort label-167
SELECT ALL COUNT( * ) + - - COUNT( * ) FROM tab1, tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-167
SELECT ALL COUNT ( * ) + - - COUNT ( * ) FROM tab1, tab1 AS cor0
----
18

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-168
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) NOT IN ( - 50 - col2 )
----

skipif mysql # not compatible
query III rowsort label-168
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) NOT IN ( - 50 - col2 )
----

query I rowsort
SELECT + - 79 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
1659
6399
79

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > - col0 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-172
SELECT + - MIN( + 27 ) * - ( - - MAX( ALL 95 ) ) AS col2 FROM tab0 AS cor0
----
2565

skipif mysql # not compatible
query I rowsort label-172
SELECT + - MIN ( + 27 ) * - ( - - MAX ( ALL 95 ) ) AS col2 FROM tab0 AS cor0
----
2565

query I rowsort
SELECT ALL - col1 + ( - - 58 ) AS col2 FROM tab2
----
-19
-9
7

query I rowsort
SELECT ALL 88 / + 33 * - - ( + + col0 ) + + col1 + - 87 AS col1 FROM tab2 WHERE 80 * - col0 <> NULL
----

query I rowsort
SELECT col2 * - col2 + - ( - 45 ) FROM tab1
----
-3436
-4579
-9171

query I rowsort
SELECT DISTINCT - 42 + - 67 * ( - col1 ) AS col2 FROM tab2
----
3375
4447
5117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-178
SELECT ALL COUNT( * ) * 96 + COUNT( * ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-178
SELECT ALL COUNT ( * ) * 96 + COUNT ( * ) FROM tab0
----
291

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL ( MIN( ALL 86 ) ) + 83 AS col1 FROM tab0
----
169

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL ( MIN ( ALL 86 ) ) + 83 AS col1 FROM tab0
----
169

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-180
SELECT * FROM tab0 WHERE - CAST( NULL AS DECIMAL ) / ( + 32 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-180
SELECT * FROM tab0 WHERE - CAST ( NULL AS REAL ) / ( + 32 ) = NULL
----

query I rowsort
SELECT - - 43 - - col0 AS col1 FROM tab1 AS cor0
----
128
134
94

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-183
SELECT + ( + COUNT( + CAST( + col2 AS SIGNED ) ) ) - - COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-183
SELECT + ( + COUNT ( + CAST ( + col2 AS INTEGER ) ) ) - - COUNT ( * ) FROM tab2
----
6

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-185
SELECT DISTINCT - col0 - + col2 AS col1, CAST( NULL AS SIGNED ) + + - 20 + + 81 + + col0 AS col0 FROM tab1 cor0
----
-144
NULL
-147
NULL
-159
NULL

skipif mysql # not compatible
query II rowsort label-185
SELECT DISTINCT - col0 - + col2 AS col1, CAST ( NULL AS INTEGER ) + + - 20 + + 81 + + col0 AS col0 FROM tab1 cor0
----
-144
NULL
-147
NULL
-159
NULL

query II rowsort
SELECT + - 32 AS col2, col1 * - col0 FROM tab0 AS cor0
----
-32
-1215
-32
-1827
-32
-97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1 AS col0, col0 AS col0, - 44 col1 FROM tab1 AS cor0
----
9 values hashing to d17704e34df7a28e4178c1667f802567

query I rowsort
SELECT 36 AS col1 FROM tab1 AS cor0 WHERE NOT - 48 IS NOT NULL
----

query II rowsort
SELECT ALL 20 AS col2, col1 FROM tab0 AS cor0
----
20
1
20
21
20
81

query II rowsort
SELECT ALL + col1, col0 * + 68 + + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
14
3482
47
6235
5
5785

query II rowsort
SELECT - + 49 AS col2, - ( - + ( 3 ) ) FROM tab0 AS cor0
----
-49
3
-49
3
-49
3

query I rowsort
SELECT ALL - 79 * + col0 - + + col1 AS col0 FROM tab2 AS cor0
----
-3685
-5133
-5992

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-197
SELECT ALL COUNT( DISTINCT - 38 ) * + COUNT( * ) DIV 57 col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-197
SELECT ALL COUNT ( DISTINCT - 38 ) * + COUNT ( * ) / 57 col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-198
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * + + CAST( 93 AS SIGNED ) * - 70 + - + CAST( col1 AS DECIMAL ) NOT BETWEEN NULL AND NULL )
----

skipif mysql # not compatible
query III rowsort label-198
SELECT DISTINCT * FROM tab0 WHERE NOT ( col2 * + + CAST ( 93 AS INTEGER ) * - 70 + - + CAST ( col1 AS REAL ) NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-199
SELECT - ( + + 96 ) + col1 AS col1 FROM tab0 WHERE NOT ( ( + col2 ) / col1 - + ( + CAST( NULL AS SIGNED ) ) BETWEEN - 2 AND ( NULL ) )
----

skipif mysql # not compatible
query I rowsort label-199
SELECT - ( + + 96 ) + col1 AS col1 FROM tab0 WHERE NOT ( ( + col2 ) / col1 - + ( + CAST ( NULL AS INTEGER ) ) BETWEEN - 2 AND ( NULL ) )
----

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-204
SELECT DISTINCT 70 * + COUNT( * ) AS col2 FROM tab2
----
210

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT 70 * + COUNT ( * ) AS col2 FROM tab2
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-205
SELECT - 89 + COUNT( * ) col0 FROM tab2
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-205
SELECT - 89 + COUNT ( * ) col0 FROM tab2
----
-86

query I rowsort
SELECT - ( - 76 ) + - col2 * + 41 FROM tab2
----
-1564
-2302
-867

query II rowsort
SELECT - - 11 AS col0, - 90 AS col2 FROM tab2 AS cor0
----
11
-90
11
-90
11
-90

query II rowsort
SELECT col2, + col2 * col2 * - 47 AS col1 FROM tab0 AS cor0
----
10
-4700
47
-103823
99
-460647

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 44 col0 FROM tab2 AS cor0
----
2244
2948
3388

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

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

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

query I rowsort
SELECT ALL 45 * - + 97 FROM tab2 AS cor0
----
-4365
-4365
-4365

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-213
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col2 * col2 * - col1 col1 FROM tab0 cor0 WHERE NOT - 94 NOT BETWEEN 26 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-213
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col2 * col2 * - col1 col1 FROM tab0 cor0 WHERE NOT - 94 NOT BETWEEN 26 AND NULL
----

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

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

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

query I rowsort
SELECT DISTINCT 6 FROM tab0 WHERE NULL IS NULL
----
6

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

query II rowsort
SELECT ALL - 76 + - + col0 AS col2, col2 AS col1 FROM tab0
----
-163
10
-173
99
-91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-219
SELECT ALL COUNT( * ) * COUNT( * ) AS col0 FROM tab1 WHERE col1 * + ( col0 ) <> - ( + col1 )
----
9

skipif mysql # not compatible
query I rowsort label-219
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 WHERE col1 * + ( col0 ) <> - ( + col1 )
----
9

query I rowsort
SELECT - + ( col2 ) * 24 + + ( - 45 ) AS col1 FROM tab1 WHERE - - col0 IN ( col0, col1 * + 39 + + - 95 + + col1 )
----
-1461
-1677
-2349

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

skipif mysql # not compatible
query I rowsort label-221
SELECT DISTINCT + CAST ( AVG ( DISTINCT + col1 ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
22

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

onlyif mysql # aggregate syntax: 
query I rowsort label-223
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-223
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND + col2
----
0

query I rowsort
SELECT - 34 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

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

skipif mysql # not compatible
query I rowsort label-225
SELECT - COUNT ( ALL - - col1 ) * - 72 FROM tab0
----
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col0, - ( - - col0 ) col1 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - ( - col1 ) col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-228
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-228
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col2 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT DISTINCT - 22 * 39 * ( MAX( + + 36 ) ) FROM tab0 AS cor0
----
-30888

skipif mysql # not compatible
query I rowsort label-229
SELECT DISTINCT - 22 * 39 * ( MAX ( + + 36 ) ) FROM tab0 AS cor0
----
-30888

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

skipif mysql # not compatible
query I rowsort label-230
SELECT ALL + 43 / col2 FROM tab2
----
0
1
1

query II rowsort
SELECT DISTINCT col1 * - 84 AS col0, col1 + - col2 AS col2 FROM tab2
----
-4284
28
-5628
9
-6468
37

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-232
SELECT - 82 * - COUNT( * ) AS col2 FROM tab2 WHERE NOT 76 < ( - CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-232
SELECT - 82 * - COUNT ( * ) AS col2 FROM tab2 WHERE NOT 76 < ( - CAST ( NULL AS INTEGER ) )
----
0

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

query I rowsort
SELECT ALL col2 * 31 AS col2 FROM tab1
----
1829
2108
2976

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-235
SELECT DISTINCT COUNT( * ), + ( CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col0 FROM tab2
----
3
NULL

skipif mysql # not compatible
query II rowsort label-235
SELECT DISTINCT COUNT ( * ), + ( CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col0 FROM tab2
----
3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-236
SELECT COUNT( * ) AS col2, 89 FROM tab0
----
3
89

skipif mysql # not compatible
query II rowsort label-236
SELECT COUNT ( * ) AS col2, 89 FROM tab0
----
3
89

onlyif mysql # DIV for integer division: 
query I rowsort label-237
SELECT - col0 * 88 DIV + col2 FROM tab0
----
-28
-765
-86

skipif mysql # not compatible
query I rowsort label-237
SELECT - col0 * 88 / + col2 FROM tab0
----
-28
-765
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT 77 * + SUM( ALL col2 ) AS col2 FROM tab0
----
12012

skipif mysql # not compatible
query I rowsort label-238
SELECT 77 * + SUM ( ALL col2 ) AS col2 FROM tab0
----
12012

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

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

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

query I rowsort
SELECT - 88 FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-242
SELECT ALL 52 * + - MAX( + - col0 ) FROM tab1
----
2652

skipif mysql # not compatible
query I rowsort label-242
SELECT ALL 52 * + - MAX ( + - col0 ) FROM tab1
----
2652

onlyif mysql # aggregate syntax: 
query I rowsort label-243
SELECT ALL - COUNT( DISTINCT - 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL - COUNT ( DISTINCT - 6 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

query I rowsort
SELECT + 34 + - - 58 + col0 - + col0 AS col2 FROM tab1 AS cor0
----
92
92
92

query II rowsort
SELECT ALL col1 AS col1, + col2 + + 34 FROM tab1 AS cor0 WHERE NOT NULL <= col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-248
SELECT - SUM( DISTINCT + col1 ) + - ( - SUM( + 27 ) ) FROM tab2
----
-114

skipif mysql # not compatible
query I rowsort label-248
SELECT - SUM ( DISTINCT + col1 ) + - ( - SUM ( + 27 ) ) FROM tab2
----
-114

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-251
SELECT DISTINCT - 47 + 69 DIV + 47 FROM tab1
----
-46

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT - 47 + 69 / + 47 FROM tab1
----
-46

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

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

query II rowsort
SELECT + 80 AS col1, - col0 FROM tab0
----
80
-15
80
-87
80
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT DISTINCT - ( + + 58 ) + 85 * + - COUNT( + 39 ) + COUNT( * ) FROM tab1 AS cor0
----
-310

skipif mysql # not compatible
query I rowsort label-254
SELECT DISTINCT - ( + + 58 ) + 85 * + - COUNT ( + 39 ) + COUNT ( * ) FROM tab1 AS cor0
----
-310

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

query I rowsort
SELECT - col1 - + ( - 45 ) + col0 + - col1 FROM tab0 AS cor0
----
-102
140
90

onlyif mysql # DIV for integer division: 
query I rowsort label-257
SELECT + col0 DIV + - col1 - + 89 + - 55 - - 72 + + col0 DIV + - col2 AS col1 FROM tab1 AS cor0
----
-74
-75
-90

skipif mysql # not compatible
query I rowsort label-257
SELECT + col0 / + - col1 - + 89 + - 55 - - 72 + + col0 / + - col2 AS col1 FROM tab1 AS cor0
----
-74
-75
-90

query I rowsort
SELECT + 73 - - + 18 * + col2 AS col1 FROM tab1 AS cor0
----
1135
1297
1801

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - col1 + - col1 - 18 IS NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 56 <> col2 * + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-261
SELECT ALL + CAST( + ( MAX( + col2 ) ) AS SIGNED ) * + 24 FROM tab2 AS cor0
----
1392

skipif mysql # not compatible
query I rowsort label-261
SELECT ALL + CAST ( + ( MAX ( + col2 ) ) AS INTEGER ) * + 24 FROM tab2 AS cor0
----
1392

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL - 4 * + SUM( DISTINCT - col2 ) FROM tab2 AS cor0
----
484

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL - 4 * + SUM ( DISTINCT - col2 ) FROM tab2 AS cor0
----
484

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-263
SELECT ALL CAST( NULL AS SIGNED ) * - col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-263
SELECT ALL CAST ( NULL AS INTEGER ) * - col0, col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT + 36 col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IN ( col0 + 73 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-265
SELECT + 36 col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( col0 + 73 )
----

query I rowsort
SELECT col2 * + 27 * - ( col2 ) FROM tab2
----
-14283
-43200
-90828

onlyif mysql # aggregate syntax: 
query I rowsort label-267
SELECT ALL - MAX( ALL - col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-267
SELECT ALL - MAX ( ALL - col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT - 76 * + col2 AS col1 FROM tab1
----
-4484
-5168
-7296

query II rowsort
SELECT ALL - - 85, + 88 - - col1 AS col2 FROM tab2 AS cor0
----
85
139
85
155
85
165

query I rowsort
SELECT DISTINCT ( - 5 ) * - + col2 + - 62 FROM tab1 AS cor0
----
233
278
418

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

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

query I rowsort
SELECT - + AVG ( + 41 ) FROM tab2 WHERE + + 65 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 + - ( + col2 ) col1 FROM tab2
----
-15
-32
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col2 FROM tab1 AS cor0 WHERE + col2 * + 44 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT ALL - + 72 + + COUNT( ALL + + col2 ) * + + COUNT( * ) - + - COUNT( * ) FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-275
SELECT ALL - + 72 + + COUNT ( ALL + + col2 ) * + + COUNT ( * ) - + - COUNT ( * ) FROM tab1 AS cor0
----
-60

query II rowsort
SELECT - col1 * col2 * - col1 * - 79 + - ( 47 ) AS col1, 21 FROM tab2 AS cor0
----
-18735687
21
-20568645
21
-4726064
21

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

onlyif mysql # DIV for integer division: 
query I rowsort label-278
SELECT ALL - 99 * + + 47 + + 55 DIV + - 31 AS col1 FROM tab2 AS cor0
----
-4654
-4654
-4654

skipif mysql # not compatible
query I rowsort label-278
SELECT ALL - 99 * + + 47 + + 55 / + - 31 AS col1 FROM tab2 AS cor0
----
-4654
-4654
-4654

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-279
SELECT - CAST ( - col2 AS INTEGER ) col0 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT - col1 * - col0 - - 65 AS col0 FROM tab1 AS cor0
----
4342
490
779

query I rowsort
SELECT ALL + - col2 - - 32 + + - col2 AS col1 FROM tab2 AS cor0
----
-14
-48
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-282
SELECT ALL MIN( - + 95 ) * + ( - + COUNT( * ) ) * - - COUNT( * ) AS col1 FROM tab0
----
855

skipif mysql # not compatible
query I rowsort label-282
SELECT ALL MIN ( - + 95 ) * + ( - + COUNT ( * ) ) * - - COUNT ( * ) AS col1 FROM tab0
----
855

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-283
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 59 AND CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query III rowsort label-283
SELECT * FROM tab2 WHERE NULL NOT BETWEEN 59 AND CAST ( NULL AS INTEGER ) + col1
----

query III rowsort
SELECT * FROM tab1 WHERE ( + 74 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-285
SELECT COUNT( * ) + - 58 col2 FROM tab0
----
-55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-285
SELECT COUNT ( * ) + - 58 col2 FROM tab0
----
-55

query I rowsort
SELECT DISTINCT col0 + - - col1 + + - col0 + + 90 * + col2 FROM tab0
----
4311
8911
921

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-287
SELECT COUNT( * ) DIV + COUNT( * ) + MIN( DISTINCT - col2 ) FROM tab1
----
-95

skipif mysql # not compatible
query I rowsort label-287
SELECT COUNT ( * ) / + COUNT ( * ) + MIN ( DISTINCT - col2 ) FROM tab1
----
-95

query I rowsort
SELECT col2 + - + 87 FROM tab0
----
-40
-77
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-289
SELECT CAST( NULL AS SIGNED ) + + + col2, col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-289
SELECT CAST ( NULL AS INTEGER ) + + + col2, col0 col1 FROM tab1
----
NULL
51
NULL
85
NULL
91

query I rowsort
SELECT DISTINCT + col1 / col1 - - - 15 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - - col0 col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + - col0 - - col2 * ( - 96 ) AS col2 FROM tab1 AS cor0
----
-5749
-6619
-9267

query I rowsort
SELECT DISTINCT - + col0 + 52 FROM tab1 AS cor0 WHERE ( NULL <> + col2 )
----

query I rowsort
SELECT ALL + + 38 * col0 FROM tab0 cor0
----
3306
3686
570

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

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

query II rowsort
SELECT ALL 69 AS col1, + 29 AS col0 FROM tab2 AS cor0
----
69
29
69
29
69
29

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

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

query II rowsort
SELECT DISTINCT - - col1, + col0 * + - 56 AS col0 FROM tab0 AS cor0
----
1
-5432
21
-4872
81
-840

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-300
SELECT DISTINCT - col0 * - - col0 * + - col1 + - col2 FROM tab0 WHERE ( NOT ( - 68 * 35 ) NOT BETWEEN + CAST( NULL AS SIGNED ) + - col0 + - 24 * - + 31 AND + col2 - - - col2 )
----

skipif mysql # not compatible
query I rowsort label-300
SELECT DISTINCT - col0 * - - col0 * + - col1 + - col2 FROM tab0 WHERE ( NOT ( - 68 * 35 ) NOT BETWEEN + CAST ( NULL AS INTEGER ) + - col0 + - 24 * - + 31 AND + col2 - - - col2 )
----

query I rowsort
SELECT DISTINCT - 62 * - 92 * + col2 FROM tab2 AS cor0
----
131192
228160
330832

onlyif mysql # DIV for integer division: 
query I rowsort label-302
SELECT ALL + - col1 DIV + + 51 + - + col2 col1 FROM tab0 AS cor0
----
-10
-48
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-302
SELECT ALL + - col1 / + + 51 + - + col2 col1 FROM tab0 AS cor0
----
-10
-48
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT MIN( - + 96 ) + + COUNT( * ) FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT MIN ( - + 96 ) + + COUNT ( * ) FROM tab2
----
-93

query I rowsort
SELECT DISTINCT - ( - + 71 ) - - 24 FROM tab2 AS cor0
----
95

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

query I rowsort
SELECT DISTINCT ( col2 ) + + col0 + + - col2 AS col0 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT DISTINCT + 73 AS col0 FROM tab0 AS cor0 WHERE NOT - 37 + - col0 IS NULL
----
73

query I rowsort
SELECT + 80 + ( + col0 ) FROM tab1 AS cor0
----
131
165
171

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

query I rowsort
SELECT DISTINCT col2 - - col1 * + + col1 + + col0 FROM tab0 AS cor0
----
197
538
6623

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL - - SUM( ALL + 74 ) FROM tab1 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL - - SUM ( ALL + 74 ) FROM tab1 AS cor0
----
222

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT COUNT( * ) * - + 27 AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-313
SELECT COUNT ( * ) * - + 27 AS col0 FROM tab0
----
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-314
SELECT DISTINCT col2 AS col1, col2 * 29 DIV + col0 - + - 8 FROM tab1
----
59
28
68
29
96
62

skipif mysql # not compatible
query II rowsort label-314
SELECT DISTINCT col2 AS col1, col2 * 29 / + col0 - + - 8 FROM tab1
----
59
28
68
29
96
62

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

skipif mysql # not compatible
query II rowsort label-315
SELECT + COUNT ( * ) AS col1, SUM ( - col1 ) AS col2 FROM tab2
----
3
-195

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

query II rowsort
SELECT col2 * - col0, + 41 AS col0 FROM tab0
----
-705
41
-870
41
-9603
41

query III rowsort
SELECT * FROM tab2 WHERE + + col1 + 57 > + 70 / - - 92 * - + 84
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT DISTINCT SUM( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-319
SELECT DISTINCT SUM ( DISTINCT - + col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-320
SELECT DISTINCT - 58 DIV COUNT( * ) * - MIN( DISTINCT - ( + 41 ) ) * + ( + MAX( DISTINCT ( - - col1 ) ) ) + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-59980

skipif mysql # not compatible
query I rowsort label-320
SELECT DISTINCT - 58 / COUNT ( * ) * - MIN ( DISTINCT - ( + 41 ) ) * + ( + MAX ( DISTINCT ( - - col1 ) ) ) + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-59980

onlyif mysql # aggregate syntax: 
query I rowsort label-321
SELECT SUM( DISTINCT + 36 ) * - - COUNT( * ) AS col0 FROM tab2 cor0
----
108

skipif mysql # not compatible
query I rowsort label-321
SELECT SUM ( DISTINCT + 36 ) * - - COUNT ( * ) AS col0 FROM tab2 cor0
----
108

query I rowsort
SELECT DISTINCT 23 AS col1 FROM tab0 cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 67 * - + col1 AS col2, 56 col1 FROM tab0 AS cor0
----
1407
56
5427
56
67
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-324
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) / + + col2 IS NULL
----

skipif mysql # not compatible
query III rowsort label-324
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( col1 AS INTEGER ) / + + col2 IS NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + 89 col2 FROM tab1 AS cor0
----
-1246
-4183
-445

query I rowsort
SELECT DISTINCT col2 * col2 FROM tab0 AS cor0 WHERE - 16 - + - 43 > NULL
----

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 WHERE + 45 IS NULL
----

query I rowsort
SELECT - 85 * - + 34 FROM tab2
----
2890
2890
2890

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-332
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1, CAST( NULL AS DECIMAL ), - col2 )
----

skipif mysql # not compatible
query III rowsort label-332
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1, CAST ( NULL AS REAL ), - col2 )
----

query I rowsort
SELECT + col1 + + - col0 AS col0 FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT + 15 + ( - - col2 ) FROM tab2 cor0
----
38
55
73

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

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

query I rowsort
SELECT ALL 96 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

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

skipif mysql # not compatible
query I rowsort label-338
SELECT ALL - 88 + - SUM ( + + col0 ) FROM tab1
----
-315

query I rowsort
SELECT ALL - - col0 + + col0 * + col0 FROM tab0 AS cor0
----
240
7656
9506

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <> + 47
----

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

skipif mysql # not compatible
query I rowsort label-343
SELECT ALL MIN ( ALL + - 95 ) AS col0 FROM tab0
----
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-344
SELECT + 8 + col0 DIV 14 col1 FROM tab1
----
11
14
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-344
SELECT + 8 + col0 / 14 col1 FROM tab1
----
11
14
14

onlyif mysql # DIV for integer division: 
query I rowsort label-345
SELECT ALL col0 * + col1 DIV - - col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-345
SELECT ALL col0 * + col1 / - - col1 FROM tab1
----
51
85
91

query I rowsort
SELECT - col2 + col1 + + 95 FROM tab1
----
13
41
74

query II rowsort
SELECT + 42 * - - col2 * + 9 * col0 * - - col0 AS col1, col2 * - + col2 * - ( - - col2 ) AS col0 FROM tab2
----
123322500
195112
18396504
12167
61931520
64000

query I rowsort
SELECT - 90 * 3 FROM tab0
----
-270
-270
-270

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-351
SELECT ALL + CAST( NULL AS DECIMAL ) / + col1 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-351
SELECT ALL + CAST ( NULL AS REAL ) / + col1 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

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

query I rowsort
SELECT ALL ( - col1 ) * + - 12 FROM tab2
----
612
804
924

query I rowsort
SELECT 13 * + col1 AS col1 FROM tab2
----
1001
663
871

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-356
SELECT ALL + CAST( NULL AS SIGNED ), ( - + MAX( DISTINCT + - 46 ) ) AS col2 FROM tab2 AS cor0
----
NULL
46

skipif mysql # not compatible
query II rowsort label-356
SELECT ALL + CAST ( NULL AS INTEGER ), ( - + MAX ( DISTINCT + - 46 ) ) AS col2 FROM tab2 AS cor0
----
NULL
46

onlyif mysql # DIV for integer division: 
query I rowsort label-357
SELECT ALL + col0 * col0 DIV - - 12 AS col0 FROM tab0 AS cor0
----
18
630
784

skipif mysql # not compatible
query I rowsort label-357
SELECT ALL + col0 * col0 / - - 12 AS col0 FROM tab0 AS cor0
----
18
630
784

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-358
SELECT ALL col1 AS col2, 85 AS col1 FROM tab1 cor0 WHERE ( col2 ) BETWEEN NULL AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-358
SELECT ALL col1 AS col2, 85 AS col1 FROM tab1 cor0 WHERE ( col2 ) BETWEEN NULL AND + CAST ( NULL AS INTEGER )
----

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

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-362
SELECT + COUNT( * ) + + ( + 84 ) DIV - 8 AS col0 FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-362
SELECT + COUNT ( * ) + + ( + 84 ) / - 8 AS col0 FROM tab2
----
-7

query I rowsort
SELECT ALL col0 + - + col0 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT - 3 + col1 AS col2 FROM tab2
----
48
64
74

query I rowsort
SELECT 92 + + - col1 * col2 AS col2 FROM tab1
----
-1252
-203
-3104

query II rowsort
SELECT col2 * col2, + 22 AS col0 FROM tab2
----
1600
22
3364
22
529
22

query I rowsort
SELECT ALL col0 + + - 53 + - col1 FROM tab1
----
-16
-9
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col1 FROM tab0 cor0 WHERE - ( + 80 ) IS NULL
----

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

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

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

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

query I rowsort
SELECT - 97 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 > + + col0 / - 18
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT col1 * + 34 AS col1 FROM tab0 AS cor0
----
2754
34
714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 99 * col2 col2, 13 * + + col2 AS col1 FROM tab0
----
-4653
611
-9801
1287
-990
130

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

skipif mysql # not compatible
query I rowsort label-377
SELECT + COUNT ( * ) * + 83 FROM tab1
----
249

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( col1 + + ( 74 ) + - col0 * + + 13 * 91, 92, + 12 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-380
SELECT ALL + COUNT( * ) * + 73 * - - MIN( + - col0 ) AS col2 FROM tab1
----
-19929

skipif mysql # not compatible
query I rowsort label-380
SELECT ALL + COUNT ( * ) * + 73 * - - MIN ( + - col0 ) AS col2 FROM tab1
----
-19929

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IN ( + - 88 + - col2, col0 / + 29, + + 45 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( 46 ) col2, 87 AS col0 FROM tab0 AS cor0
----
-46
87
-46
87
-46
87

query I rowsort
SELECT ALL 33 * + col0 AS col2 FROM tab1
----
1683
2805
3003

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NOT + 54 = NULL
----

query I rowsort
SELECT - - 19 * - - 21 + - - 7 + col0 AS col0 FROM tab1 cor0
----
457
491
497

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

onlyif mysql # aggregate syntax: 
query I rowsort label-387
SELECT - SUM( DISTINCT - 28 ) AS col1 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-387
SELECT - SUM ( DISTINCT - 28 ) AS col1 FROM tab2 AS cor0
----
28

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 90 <> NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 75 + - col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-390
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - ( - 82 ) AS col2, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

skipif mysql # not compatible
query II rowsort label-390
SELECT DISTINCT CAST ( NULL AS REAL ) * - ( - 82 ) AS col2, - col2 FROM tab1 AS cor0
----
NULL
-59
NULL
-68
NULL
-96

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-393
SELECT col2 DIV - col0 + - col2 + 31 AS col1 FROM tab1 AS cor0
----
-28
-37
-66

skipif mysql # not compatible
query I rowsort label-393
SELECT col2 / - col0 + - col2 + 31 AS col1 FROM tab1 AS cor0
----
-28
-37
-66

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT col1 > ( - col0 / + - col2 * - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 + - 96 col2 FROM tab1
----
-38

query II rowsort
SELECT 46 AS col0, col0 + 59 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + + - 73 AS col1 FROM tab1
----
-26
-59
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-398
SELECT CAST( 45 AS SIGNED ) + COUNT( * ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-398
SELECT CAST ( 45 AS INTEGER ) + COUNT ( * ) FROM tab2
----
48

query I rowsort
SELECT + col2 + 56 AS col2 FROM tab2 AS cor0
----
114
79
96

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

query I rowsort
SELECT ALL - + col0 * col0 + - ( 77 ) * - ( + col0 ) AS col0 FROM tab2 AS cor0
----
1426
150
832

query II rowsort
SELECT DISTINCT col0 * col1, col0 AS col2 FROM tab2 AS cor0
----
2346
46
4928
64
5025
75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT 93 * + COUNT( * ) AS col2 FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-407
SELECT 93 * + COUNT ( * ) AS col2 FROM tab1
----
279

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - col1 * - - col0 * + - col1 col2 FROM tab1
----
14
9996
47
201019
5
2125

query II rowsort
SELECT ALL col1, + ( - col1 ) AS col2 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-412
SELECT 34 * COUNT( * ) col2 FROM tab1
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-412
SELECT 34 * COUNT ( * ) col2 FROM tab1
----
102

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-414
SELECT + CAST( col1 AS SIGNED ) DIV - 22 FROM tab1
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-414
SELECT + CAST ( col1 AS INTEGER ) / - 22 FROM tab1
----
-2
0
0

query I rowsort
SELECT col0 * + 10 * + 81 AS col2 FROM tab2
----
37260
51840
60750

query I rowsort
SELECT DISTINCT - - 90 FROM tab2 AS cor0 WHERE ( NULL ) >= 8
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT + COUNT( * ) * 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-420
SELECT + COUNT ( * ) * 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-421
SELECT DISTINCT - 69 FROM tab0 WHERE NOT - 24 BETWEEN NULL AND - col2 + col1 + CAST( NULL AS SIGNED ) + col1
----

skipif mysql # not compatible
query I rowsort label-421
SELECT DISTINCT - 69 FROM tab0 WHERE NOT - 24 BETWEEN NULL AND - col2 + col1 + CAST ( NULL AS INTEGER ) + col1
----

query I rowsort
SELECT ALL - 9 + col2 AS col1 FROM tab1
----
50
59
87

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

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

query I rowsort
SELECT ALL + + 81 * - col1 AS col2 FROM tab1 AS cor0
----
-1134
-3807
-405

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT DISTINCT - ( - 97 ) * - 21 * COUNT( ALL - col0 ) col1 FROM tab0 cor0
----
-6111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-425
SELECT DISTINCT - ( - 97 ) * - 21 * COUNT ( ALL - col0 ) col1 FROM tab0 cor0
----
-6111

query I rowsort
SELECT DISTINCT - col2 * - 18 + col1 + - + col0 * - + col2 + - col1 FROM tab1 AS cor0
----
6077
6624
7412

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT - 94 + + + SUM( - ( - col2 ) ) FROM tab1 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-427
SELECT - 94 + + + SUM ( - ( - col2 ) ) FROM tab1 AS cor0
----
129

query II rowsort
SELECT col0 + - + col0 + - + 34 AS col0, - 26 AS col0 FROM tab1
----
-34
-26
-34
-26
-34
-26

query I rowsort
SELECT col0 * - 38 + + + 40 * - col2 AS col0 FROM tab2
----
-2668
-4032
-5170

onlyif mysql # aggregate syntax: 
query II rowsort label-430
SELECT DISTINCT COUNT( * ) AS col0, + 67 FROM tab2
----
3
67

skipif mysql # not compatible
query II rowsort label-430
SELECT DISTINCT COUNT ( * ) AS col0, + 67 FROM tab2
----
3
67

query I rowsort
SELECT ALL col0 + col1 + + - 28 * + col2 FROM tab1
----
-1562
-1766
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT DISTINCT + + COUNT( * ) + ( - - SUM( DISTINCT - - 20 ) ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-432
SELECT DISTINCT + + COUNT ( * ) + ( - - SUM ( DISTINCT - - 20 ) ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ( col0 ) - - - col2 * - + 38 AS col2 FROM tab1 AS cor0
----
2327
2675
3699

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

skipif mysql # not compatible
query I rowsort label-434
SELECT DISTINCT - 10 / + + col1 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 * + col2 + - col1 FROM tab2
----
1007
2483
4283

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-436
SELECT ALL - COUNT( * ) DIV 16 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-436
SELECT ALL - COUNT ( * ) / 16 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL 7 * 77 FROM tab1
----
539
539
539

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

onlyif mysql # DIV for integer division: 
query I rowsort label-439
SELECT DISTINCT - ( - 24 ) DIV col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-439
SELECT DISTINCT - ( - 24 ) / col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-440
SELECT 27 * SUM( col0 ) FROM tab2 cor0
----
4995

skipif mysql # not compatible
query I rowsort label-440
SELECT 27 * SUM ( col0 ) FROM tab2 cor0
----
4995

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-442
SELECT ALL - + 12 DIV col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL - + 12 / col0 AS col1 FROM tab1 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab0, tab1 AS cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

onlyif mysql # aggregate syntax: 
query II rowsort label-446
SELECT MIN( ALL - 89 ), COUNT( * ) AS col2 FROM tab0
----
-89
3

skipif mysql # not compatible
query II rowsort label-446
SELECT MIN ( ALL - 89 ), COUNT ( * ) AS col2 FROM tab0
----
-89
3

onlyif mysql # aggregate syntax: 
query I rowsort label-447
SELECT - MIN( ALL + col2 ) * 29 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-1708

skipif mysql # not compatible
query I rowsort label-447
SELECT - MIN ( ALL + col2 ) * 29 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-1708

query I rowsort
SELECT ALL + 85 * col2 AS col0 FROM tab2 AS cor0
----
1955
3400
4930

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

query II rowsort
SELECT ALL col1 AS col1, + col1 * + 43 FROM tab1 AS cor0
----
14
602
47
2021
5
215

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-451
SELECT ALL + COUNT ( col2 ) col2 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
3

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

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

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

query II rowsort
SELECT ALL - + col2, + 95 AS col0 FROM tab2 AS cor0
----
-23
95
-40
95
-58
95

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 33 / - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col2 + col1 * col2 <> + + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-459
SELECT ALL + 93 * + 58 + COUNT( * ) FROM tab0
----
5397

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL + 93 * + 58 + COUNT ( * ) FROM tab0
----
5397

query I rowsort
SELECT - 65 + - + col1 AS col2 FROM tab2
----
-116
-132
-142

query II rowsort
SELECT DISTINCT + 20 + + col0 AS col2, col0 * col0 * - 70 FROM tab2
----
66
-148120
84
-286720
95
-393750

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT DISTINCT + MAX( - col0 ) + 48 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-462
SELECT DISTINCT + MAX ( - col0 ) + 48 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 < col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-466
SELECT ALL MIN( - 38 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-466
SELECT ALL MIN ( - 38 ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-468
SELECT MAX( + 52 ) AS col1 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-468
SELECT MAX ( + 52 ) AS col1 FROM tab2
----
52

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

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT + SUM( - col0 ) * + 47 AS col2 FROM tab0 AS cor0
----
-9353

skipif mysql # not compatible
query I rowsort label-470
SELECT + SUM ( - col0 ) * + 47 AS col2 FROM tab0 AS cor0
----
-9353

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-473
SELECT DISTINCT + 47 DIV - ( + - col2 ) + - col2 FROM tab0 cor0
----
-46
-6
-99

skipif mysql # not compatible
query I rowsort label-473
SELECT DISTINCT + 47 / - ( + - col2 ) + - col2 FROM tab0 cor0
----
-46
-6
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 61 ) + col1 IS NOT NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-477
SELECT + 22 * - COUNT( * ) AS col0 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-477
SELECT + 22 * - COUNT ( * ) AS col0 FROM tab0
----
-66

query II rowsort
SELECT 50, ( - - 62 ) AS col1 FROM tab2
----
50
62
50
62
50
62

query II rowsort
SELECT ALL + col2, - 21 FROM tab0
----
10
-21
47
-21
99
-21

query I rowsort
SELECT + + 36 AS col1 FROM tab0 WHERE NOT - ( - + col2 ) NOT BETWEEN - - 45 AND - 44
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN 93 AND NULL
----

query I rowsort
SELECT ALL + 31 * + col2 FROM tab1
----
1829
2108
2976

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

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

query I rowsort
SELECT DISTINCT 17 + col0 AS col1 FROM tab2
----
63
81
92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-485
SELECT DISTINCT COUNT( + 24 ) DIV + COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-485
SELECT DISTINCT COUNT ( + 24 ) / + COUNT ( * ) AS col0 FROM tab1
----
1

query I rowsort
SELECT 42 * + col2 * col2 FROM tab1
----
146202
194208
387072

query I rowsort
SELECT ALL - col2 * + - 80 FROM tab1
----
4720
5440
7680

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-488
SELECT CAST( NULL AS SIGNED ), - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-488
SELECT CAST ( NULL AS INTEGER ), - col0 AS col0 FROM tab0
----
NULL
-15
NULL
-87
NULL
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-489
SELECT - COUNT( ALL + CAST( NULL AS SIGNED ) ) * - + ( 10 ) * + 57 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-489
SELECT - COUNT ( ALL + CAST ( NULL AS INTEGER ) ) * - + ( 10 ) * + 57 FROM tab2
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-491
SELECT ALL col2 DIV col1 * 17 AS col1 FROM tab0
----
0
0
1683

skipif mysql # not compatible
query I rowsort label-491
SELECT ALL col2 / col1 * 17 AS col1 FROM tab0
----
0
0
1683

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-494
SELECT ALL + COUNT( * ) DIV + 94 * - COUNT( * ) * - 86 * - 78 + 54 AS col0 FROM tab2 WHERE NULL IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL + COUNT ( * ) / + 94 * - COUNT ( * ) * - 86 * - 78 + 54 AS col0 FROM tab2 WHERE NULL IS NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT + ( - 17 ) * - - COUNT( * ) + + 92 + - COUNT( * ) + 35 AS col2 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-495
SELECT + ( - 17 ) * - - COUNT ( * ) + + 92 + - COUNT ( * ) + 35 AS col2 FROM tab0 AS cor0
----
73

query II rowsort
SELECT DISTINCT ( - 89 ) AS col2, ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 0 * + - col0 * - col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 56 * - - col2 FROM tab0
----
2632
5544
560

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

skipif mysql # not compatible
query I rowsort label-499
SELECT - MIN ( DISTINCT + + col0 ) FROM tab2
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT + 73 * - COUNT( * ) FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-500
SELECT + 73 * - COUNT ( * ) FROM tab0
----
-219

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-502
SELECT DISTINCT col2 + + - col0 DIV - col1, col2 * - col2 AS col1 FROM tab0
----
14
-100
196
-9801
47
-2209

skipif mysql # not compatible
query II rowsort label-502
SELECT DISTINCT col2 + + - col0 / - col1, col2 * - col2 AS col1 FROM tab0
----
14
-100
196
-9801
47
-2209

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-503
SELECT DISTINCT 62 - COUNT( * ) + + - COUNT( * ) * COUNT( * ) DIV + 50 AS col2 FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-503
SELECT DISTINCT 62 - COUNT ( * ) + + - COUNT ( * ) * COUNT ( * ) / + 50 AS col2 FROM tab2
----
59

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

skipif mysql # not compatible
query I rowsort label-504
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT + col0 * - - col1 + col2 - - col2 FROM tab2 AS cor0
----
2392
5008
5141

onlyif mysql # aggregate syntax: 
query I rowsort label-507
SELECT 79 * + COUNT( * ) - - MIN( + col1 - - ( - col1 ) ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-507
SELECT 79 * + COUNT ( * ) - - MIN ( + col1 - - ( - col1 ) ) AS col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-508
SELECT MIN( ALL col1 ) - COUNT( * ) AS col1 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-508
SELECT MIN ( ALL col1 ) - COUNT ( * ) AS col1 FROM tab0
----
-2

query I rowsort
SELECT 68 - 32 AS col0 FROM tab0 WHERE NOT + 35 + ( col2 ) IS NULL
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT + SUM( - ( - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-510
SELECT + SUM ( - ( - col0 ) ) FROM tab2
----
185

query I rowsort
SELECT 61 - - col2 AS col0 FROM tab2
----
101
119
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( + ( 62 ) ) * + 67 <> ( 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-513
SELECT - COUNT( * ) - 73 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-513
SELECT - COUNT ( * ) - 73 FROM tab0
----
-76

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

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

query I rowsort
SELECT DISTINCT + ( col0 ) + 39 AS col2 FROM tab2
----
103
114
85

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-517
SELECT 40 - + col2 DIV 67 AS col0 FROM tab1
----
39
39
40

skipif mysql # not compatible
query I rowsort label-517
SELECT 40 - + col2 / 67 AS col0 FROM tab1
----
39
39
40

query I rowsort
SELECT ALL + 85 FROM tab1 WHERE NULL IS NULL
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT DISTINCT + MAX( ALL - 87 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-519
SELECT DISTINCT + MAX ( ALL - 87 ) FROM tab2
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 77 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 IN ( + ( col2 ) * + 92 + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-522
SELECT ALL + ( MAX( + 5 ) ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-522
SELECT ALL + ( MAX ( + 5 ) ) col2 FROM tab1
----
5

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 68 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN ( col2 ) AND ( col1 / 32 )
----

query I rowsort
SELECT DISTINCT + col2 * - ( 19 * - col2 ) AS col2 FROM tab0
----
186219
1900
41971

query I rowsort
SELECT - 54 - - col1 AS col0 FROM tab2
----
-3
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-530
SELECT SUM( - col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-530
SELECT SUM ( - col1 ) AS col0 FROM tab2
----
-195

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-533
SELECT ALL ( CAST( - col1 AS SIGNED ) ) FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-533
SELECT ALL ( CAST ( - col1 AS INTEGER ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT 48 - - ( 13 ) AS col0 FROM tab2 AS cor0 WHERE NOT 35 * + 24 + 1 < col2
----
61

query I rowsort
SELECT col0 + - col1 * 15 FROM tab2 AS cor0
----
-1091
-719
-930

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

skipif mysql # not compatible
query I rowsort label-536
SELECT ( col2 ) + CAST ( + col1 - CAST ( NULL AS INTEGER ) AS REAL ) * + 28 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-537
SELECT col0 FROM tab1 WHERE CAST( NULL AS SIGNED ) + col0 / col1 NOT IN ( 91 + + col0 )
----

skipif mysql # not compatible
query I rowsort label-537
SELECT col0 FROM tab1 WHERE CAST ( NULL AS INTEGER ) + col0 / col1 NOT IN ( 91 + + col0 )
----

query I rowsort
SELECT DISTINCT + col1 * + col0 + 54 FROM tab1 AS cor0
----
4331
479
768

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 = ( NULL )
----

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

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

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-543
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) * AVG ( ALL - col0 * - col2 + 80 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-543
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) * AVG ( ALL - col0 * - col2 + 80 ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-544
SELECT 65 + col2 / col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( ( CAST( 80 AS SIGNED ) ) / + 91 + 5 * - col2 ) AND 24 * - ( + ( ( + 68 ) ) )
----

skipif mysql # not compatible
query I rowsort label-544
SELECT 65 + col2 / col2 FROM tab2 AS cor0 WHERE NULL BETWEEN ( ( CAST ( 80 AS INTEGER ) ) / + 91 + 5 * - col2 ) AND 24 * - ( + ( ( + 68 ) ) )
----

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

query I rowsort
SELECT DISTINCT 72 + + - col2 AS col1 FROM tab0
----
-27
25
62

query I rowsort
SELECT 57 * 7 + + 24 FROM tab1
----
423
423
423

query I rowsort
SELECT 87 + + 83 AS col1 FROM tab0
----
170
170
170

query I rowsort
SELECT + 70 * + - col2 + col1 FROM tab1
----
-4125
-4713
-6706

query I rowsort
SELECT DISTINCT col1 * - 4 + + 54 AS col1 FROM tab0
----
-270
-30
50

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-553
SELECT SUM( + 49 ) AS col0 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-553
SELECT SUM ( + 49 ) AS col0 FROM tab2 AS cor0
----
147

query I rowsort
SELECT 39 * 71 - - col2 AS col0 FROM tab0 cor0 WHERE NOT NULL <> - 74 - - col0
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 AS cor0 WHERE + ( + col2 ) IS NOT NULL
----
-10
-47
-99

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

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

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

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT NULL < ( - + col1 * + col2 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-560
SELECT ALL - 92 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-560
SELECT ALL - 92 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-276

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - - col1 * + 92 <> 47
----

query I rowsort
SELECT ALL 72 AS col2 FROM tab1 AS cor0 WHERE NULL BETWEEN ( 14 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-563
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( + ( + ( col1 ) ) AS SIGNED ) ) <= ( + ( - col0 ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-563
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( + ( + ( col1 ) ) AS INTEGER ) ) <= ( + ( - col0 ) * - col0 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT MAX( DISTINCT + + col1 ) + + SUM( ALL col0 ) * + 38 AS col2 FROM tab0
----
7643

skipif mysql # not compatible
query I rowsort label-565
SELECT MAX ( DISTINCT + + col1 ) + + SUM ( ALL col0 ) * + 38 AS col2 FROM tab0
----
7643

query I rowsort
SELECT DISTINCT ( - col1 ) + 6 AS col2 FROM tab0 WHERE ( col0 ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT + COUNT( * ) * COUNT( * ) + - 96 AS col1 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-568
SELECT + COUNT ( * ) * COUNT ( * ) + - 96 AS col1 FROM tab2
----
-87

query I rowsort
SELECT ALL col0 * + - 64 + + + 69 FROM tab2
----
-2875
-4027
-4731

onlyif mysql # aggregate syntax: 
query I rowsort label-570
SELECT DISTINCT COUNT( * ) + 6 + + 41 AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-570
SELECT DISTINCT COUNT ( * ) + 6 + + 41 AS col1 FROM tab1
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-571
SELECT + COUNT( * ) FROM tab0 WHERE 32 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-571
SELECT + COUNT ( * ) FROM tab0 WHERE 32 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col1 > ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-573
SELECT - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-574
SELECT + col1 FROM tab2 cor0 WHERE ( - 9 ) < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-574
SELECT + col1 FROM tab2 cor0 WHERE ( - 9 ) < CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-575
SELECT ALL + 68 * + MIN( - col0 ) col1 FROM tab0 AS cor0
----
-6596

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-575
SELECT ALL + 68 * + MIN ( - col0 ) col1 FROM tab0 AS cor0
----
-6596

query I rowsort
SELECT DISTINCT + ( - 18 ) * - col1 + - 86 + + col0 * col2 FROM tab0 AS cor0
----
1162
2077
9535

onlyif mysql # DIV for integer division: 
query I rowsort label-577
SELECT ALL - 59 DIV ( - col2 ) FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-577
SELECT ALL - 59 / ( - col2 ) FROM tab2 cor0
----
1
1
2

query I rowsort
SELECT + 40 * - - ( + col1 ) AS col1 FROM tab1 AS cor0
----
1880
200
560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 27 col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 701bf12d86392cb1585d9e4f3c72e9a8

onlyif mysql # DIV for integer division: 
query I rowsort label-580
SELECT col1 DIV 55 DIV - 76 col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-580
SELECT col1 / 55 / - 76 col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 78 * + - col2 - col2 FROM tab1
----
-4661
-5372
-7584

query I rowsort
SELECT DISTINCT ( + - col2 ) * col2 FROM tab0
----
-100
-2209
-9801

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-584
SELECT ALL col2 - - col0 + + + CAST( - - col1 AS SIGNED ) AS col0 FROM tab0 cor0
----
118
143
197

skipif mysql # not compatible
query I rowsort label-584
SELECT ALL col2 - - col0 + + + CAST ( - - col1 AS INTEGER ) AS col0 FROM tab0 cor0
----
118
143
197

query I rowsort
SELECT - + col2 * + + 62 + col2 AS col2 FROM tab1 AS cor0
----
-3599
-4148
-5856

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-586
SELECT ALL + COUNT( 66 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + CAST( + col1 AS SIGNED ) ) IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-586
SELECT ALL + COUNT ( 66 ) AS col0 FROM tab2 AS cor0 WHERE NOT ( + CAST ( + col1 AS INTEGER ) ) IN ( col2 )
----
3

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

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

query II rowsort
SELECT ( + col0 ) * + 68 AS col0, col0 AS col2 FROM tab2 AS cor0
----
3128
46
4352
64
5100
75

onlyif mysql # DIV for integer division: 
query I rowsort label-590
SELECT ALL col2 DIV - ( - + ( + col0 ) ) * + ( col0 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-590
SELECT ALL col2 / - ( - + ( + col0 ) ) * + ( col0 ) FROM tab2
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-592
SELECT CAST( NULL AS SIGNED ) + 15 / + 16 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT CAST ( NULL AS INTEGER ) + 15 / + 16 FROM tab0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 NOT IN ( col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + 84 FROM tab1 AS cor0
----
59
84
68
84
96
84

query III rowsort
SELECT - 24 AS col2, - 47 * + - col1 + col1 AS col1, + - 70 AS col2 FROM tab0 AS cor0
----
9 values hashing to 4bf9a40949df687290fae7d109a67a16

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT + SUM( DISTINCT - - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-599
SELECT + SUM ( DISTINCT - - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) BETWEEN ( - ( + - col0 ) ) AND NULL
----
75
67
58

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

onlyif mysql # aggregate syntax: 
query I rowsort label-602
SELECT - COUNT( ALL 8 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 * col0 <> 71
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-602
SELECT - COUNT ( ALL 8 ) col2 FROM tab0 AS cor0 WHERE NOT - col0 * col0 <> 71
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT - 72 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-603
SELECT - 72 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-604
SELECT ALL SUM( col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-604
SELECT ALL SUM ( col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-605
SELECT + 81 DIV - 19 FROM tab0 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-605
SELECT + 81 / - 19 FROM tab0 AS cor0
----
-4
-4
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-606
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 45 / - 71 * ( + + col2 ) + - CAST( NULL AS DECIMAL ) + + 28 * 18 ) IN ( - col0 * + col1 )
----

skipif mysql # not compatible
query III rowsort label-606
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 45 / - 71 * ( + + col2 ) + - CAST ( NULL AS REAL ) + + 28 * 18 ) IN ( - col0 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - + 21 * col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 14 BETWEEN col1 AND NULL OR NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 77 IS NULL
----

query I rowsort
SELECT ALL + 34 + 54 FROM tab1
----
88
88
88

query I rowsort
SELECT 95 + - col0 FROM tab2
----
20
31
49

onlyif mysql # aggregate syntax: 
query I rowsort label-612
SELECT - COUNT( * ) + + - 67 col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-612
SELECT - COUNT ( * ) + + - 67 col0 FROM tab0 AS cor0
----
-70

query I rowsort
SELECT - + col1 + + + col2 FROM tab0 AS cor0
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 72 col1 FROM tab1 AS cor0
----
119
77
86

query I rowsort
SELECT DISTINCT - 18 FROM tab1 WHERE col1 * - col0 IS NULL
----

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

query I rowsort
SELECT DISTINCT col2 * - - 72 * - 1 FROM tab0 WHERE NOT - 71 IS NULL
----
-3384
-7128
-720

onlyif mysql # aggregate syntax: 
query I rowsort label-618
SELECT ALL - COUNT( * ) - - - ( + - 93 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-618
SELECT ALL - COUNT ( * ) - - - ( + - 93 ) FROM tab0 AS cor0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT - + 51 - + COUNT( * ) AS col0 FROM tab0 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-619
SELECT - + 51 - + COUNT ( * ) AS col0 FROM tab0 cor0
----
-54

query I rowsort
SELECT DISTINCT + - col1 - 55 AS col0 FROM tab0 AS cor0
----
-136
-56
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT ALL - - ( + - col1 ) - + CAST( - 65 AS SIGNED ) + 38 + + + 84 FROM tab0 AS cor0
----
106
166
186

skipif mysql # not compatible
query I rowsort label-621
SELECT ALL - - ( + - col1 ) - + CAST ( - 65 AS INTEGER ) + 38 + + + 84 FROM tab0 AS cor0
----
106
166
186

query I rowsort
SELECT 4 - 91 AS col1 FROM tab1 AS cor0
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-623
SELECT DISTINCT + 38 DIV 97 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-623
SELECT DISTINCT + 38 / 97 AS col2 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-624
SELECT + MIN( col2 ) - 29 AS col1, COUNT( * ) - + - 76 * - + 46 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
-3496

skipif mysql # not compatible
query II rowsort label-624
SELECT + MIN ( col2 ) - 29 AS col1, COUNT ( * ) - + - 76 * - + 46 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL
-3496

query I rowsort
SELECT DISTINCT col2 * + 49 FROM tab2
----
1127
1960
2842

query I rowsort
SELECT DISTINCT - 54 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT 53 * - 90 * + col2 AS col1 FROM tab0
----
-224190
-472230
-47700

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

query I rowsort
SELECT DISTINCT col1 + - 81 AS col0 FROM tab0 WHERE ( + col2 * 71 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT DISTINCT + COUNT( - col1 ) * - 78 * + + COUNT( * ) * - - 72 + - 13 FROM tab0
----
-50557

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT + COUNT ( - col1 ) * - 78 * + + COUNT ( * ) * - - 72 + - 13 FROM tab0
----
-50557

onlyif mysql # aggregate syntax: 
query I rowsort label-631
SELECT COUNT( * ) * MAX( ALL + col1 ) * + + 25 AS col2 FROM tab1
----
3525

skipif mysql # not compatible
query I rowsort label-631
SELECT COUNT ( * ) * MAX ( ALL + col1 ) * + + 25 AS col2 FROM tab1
----
3525

onlyif mysql # DIV for integer division: 
query I rowsort label-632
SELECT 73 DIV + - col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-632
SELECT 73 / + - col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-633
SELECT + + col0 DIV 51 col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IN ( - col0, - CAST( - ( - col2 ) AS SIGNED ), + - col2 )
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-633
SELECT + + col0 / 51 col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IN ( - col0, - CAST ( - ( - col2 ) AS INTEGER ), + - col2 )
----
0
1
1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 74 col1, + ( + col2 ) FROM tab1 cor0
----
74
59
74
68
74
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 70 AND ( - 2 * + 63 - - ( 39 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-638
SELECT ALL - + COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL <> + col1 * + col1 * - + col2 * - 89 + ( - 11 )
----
0

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-640
SELECT ALL - + COUNT( * ) AS col1, - COUNT( ALL 39 ) FROM tab1 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-640
SELECT ALL - + COUNT ( * ) AS col1, - COUNT ( ALL 39 ) FROM tab1 AS cor0
----
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-641
SELECT DISTINCT MIN( - - col2 ) AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-641
SELECT DISTINCT MIN ( - - col2 ) AS col1 FROM tab0 AS cor0
----
10

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

query I rowsort
SELECT - 17 + + 97 FROM tab1
----
80
80
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-644
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab1 WHERE + 22 IS NULL
----

skipif mysql # not compatible
query I rowsort label-644
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab1 WHERE + 22 IS NULL
----

query II rowsort
SELECT DISTINCT 62, + col0 * - col0 AS col2 FROM tab0 WHERE col0 IN ( 48 )
----

query II rowsort
SELECT DISTINCT col0 + - col2, - 50 + + - 84 AS col2 FROM tab1
----
-45
-134
23
-134
26
-134

query I rowsort
SELECT DISTINCT + col1 + col0 + 57 AS col0 FROM tab1
----
122
147
195

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( + col1 ) col1, + col2 + + 88 * - col1 col1 FROM tab0 cor0
----
1
11
21
-1838
81
-7081

query I rowsort
SELECT + 55 + - + ( + col1 ) - + 40 FROM tab2
----
-36
-52
-62

query I rowsort
SELECT ALL - 45 + 47 FROM tab2
----
2
2
2

query I rowsort
SELECT ALL - + 24 + 85 FROM tab0 cor0
----
61
61
61

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

onlyif mysql # aggregate syntax: 
query II rowsort label-655
SELECT ALL + - ( 58 ) * + COUNT( * ) AS col0, - 36 FROM tab1 AS cor0
----
-174
-36

skipif mysql # not compatible
query II rowsort label-655
SELECT ALL + - ( 58 ) * + COUNT ( * ) AS col0, - 36 FROM tab1 AS cor0
----
-174
-36

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

onlyif mysql # aggregate syntax: 
query I rowsort label-657
SELECT DISTINCT + 67 * - MAX( - + col1 ) AS col2 FROM tab1
----
335

skipif mysql # not compatible
query I rowsort label-657
SELECT DISTINCT + 67 * - MAX ( - + col1 ) AS col2 FROM tab1
----
335

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 34 * + 50 * + 20 col1 FROM tab0
----
-34000
-34000
-34000

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT - 21 * col2 DIV + - 72 FROM tab2
----
11
16
6

skipif mysql # not compatible
query I rowsort label-659
SELECT - 21 * col2 / + - 72 FROM tab2
----
11
16
6

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

query I rowsort
SELECT DISTINCT col0 * + 11 * - - col2 FROM tab2
----
11638
28160
47850

query I rowsort
SELECT ALL + 72 * col1 FROM tab1
----
1008
3384
360

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 82 * + + ( - + 84 ) - + 62 * - col0 + - - col2 col1 FROM tab0 AS cor0
----
-1484
-5911
-775

query I rowsort
SELECT + + 3 AS col0 FROM tab2 AS cor0
----
3
3
3

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-667
SELECT ALL + CAST( - + col1 AS SIGNED ) AS col1 FROM tab1 cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-667
SELECT ALL + CAST ( - + col1 AS INTEGER ) AS col1 FROM tab1 cor0
----
-14
-47
-5

query I rowsort
SELECT + 61 * + col1 AS col2 FROM tab2 AS cor0
----
3111
4087
4697

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-669
SELECT DISTINCT - 2 AS col1, - COUNT( * ) * + + 16 DIV 75 DIV - MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
-2
0

skipif mysql # not compatible
query II rowsort label-669
SELECT DISTINCT - 2 AS col1, - COUNT ( * ) * + + 16 / 75 / - MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
-2
0

query I rowsort
SELECT - - col1 * + - 64 AS col2 FROM tab1 AS cor0
----
-3008
-320
-896

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-671
SELECT COUNT ( * ) * CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-672
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( col1 AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-672
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( col1 AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - 58 AS col1 FROM tab2
----
-116
-81
-98

query I rowsort
SELECT ALL - col1 * + + col1 + 44 AS col1 FROM tab0
----
-397
-6517
43

onlyif mysql # DIV for integer division: 
query I rowsort label-675
SELECT col0 * + col0 DIV - - 1 + - 88 * 20 FROM tab1
----
5465
6521
841

skipif mysql # not compatible
query I rowsort label-675
SELECT col0 * + col0 / - - 1 + - 88 * 20 FROM tab1
----
5465
6521
841

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - ( col0 ) * + 43 + + - 1 + + + 14 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-681
SELECT DISTINCT SUM( DISTINCT - col0 ) * + COUNT( * ) + + + MIN( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-596

skipif mysql # not compatible
query I rowsort label-681
SELECT DISTINCT SUM ( DISTINCT - col0 ) * + COUNT ( * ) + + + MIN ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
-596

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

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

query I rowsort
SELECT ALL 87 * + col0 AS col2 FROM tab2
----
4002
5568
6525

query I rowsort
SELECT ALL + col0 * + + 7 AS col2 FROM tab1
----
357
595
637

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT - COUNT( * ) * + - 9 AS col2 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-687
SELECT - COUNT ( * ) * + - 9 AS col2 FROM tab1
----
27

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT - 52 BETWEEN - col1 AND NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-689
SELECT - - col0 + + + col2 + - CAST( - 80 AS SIGNED ) col2, col0 * + 66 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-689
SELECT - - col0 + + + col2 + - CAST ( - 80 AS INTEGER ) col2, col0 * + 66 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 21 * + col2 AS col0 FROM tab2 AS cor0
----
-1218
-483
-840

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

query I rowsort
SELECT DISTINCT col0 * + - col1 * - col1 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-693
SELECT + COUNT( * ) col2 FROM tab2 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-693
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT ALL + COUNT( * ) * - ( 43 ) * 2 + ( MAX( DISTINCT 85 ) ) AS col2 FROM tab1
----
-173

skipif mysql # not compatible
query I rowsort label-694
SELECT ALL + COUNT ( * ) * - ( 43 ) * 2 + ( MAX ( DISTINCT 85 ) ) AS col2 FROM tab1
----
-173

onlyif mysql # aggregate syntax: 
query I rowsort label-695
SELECT + - 37 * + COUNT( * ) + - 72 FROM tab0 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-695
SELECT + - 37 * + COUNT ( * ) + - 72 FROM tab0 AS cor0
----
-183

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-696
SELECT + + COUNT( + 90 ) + + CAST( - 85 AS SIGNED ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-696
SELECT + + COUNT ( + 90 ) + + CAST ( - 85 AS INTEGER ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT DISTINCT + + col2 + 89 + - 8 + + col2 AS col1 FROM tab1 AS cor0
----
199
217
273

query I rowsort
SELECT - 96 + - 3 AS col0 FROM tab1 AS cor0
----
-99
-99
-99

query III rowsort
SELECT * FROM tab1 WHERE + 37 * - - 2 * col0 NOT BETWEEN NULL AND - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-700
SELECT + 43 * - ( + 34 ), + COUNT( * ) AS col2 FROM tab2
----
-1462
3

skipif mysql # not compatible
query II rowsort label-700
SELECT + 43 * - ( + 34 ), + COUNT ( * ) AS col2 FROM tab2
----
-1462
3

onlyif mysql # DIV for integer division: 
query I rowsort label-701
SELECT DISTINCT + 5 DIV - col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-701
SELECT DISTINCT + 5 / - col2 FROM tab1
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-703
SELECT + col1 AS col0 FROM tab2 WHERE + + col2 + - - 58 IN ( + + 69, 27 * - + 81, - col2 * - - col0 + CAST( + + col2 AS SIGNED ) + - - col2 / 88 )
----

skipif mysql # not compatible
query I rowsort label-703
SELECT + col1 AS col0 FROM tab2 WHERE + + col2 + - - 58 IN ( + + 69, 27 * - + 81, - col2 * - - col0 + CAST ( + + col2 AS INTEGER ) + - - col2 / 88 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-704
SELECT - COUNT( * ) * - 13 AS col2 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-704
SELECT - COUNT ( * ) * - 13 AS col2 FROM tab0
----
39

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

query I rowsort
SELECT ALL - 96 + - 29 AS col0 FROM tab1
----
-125
-125
-125

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-707
SELECT * FROM tab0 WHERE 7 + - + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-707
SELECT * FROM tab0 WHERE 7 + - + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 90 - 36 FROM tab1 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT + 76 * + COUNT( * ) FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-709
SELECT + 76 * + COUNT ( * ) FROM tab0
----
228

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

query I rowsort
SELECT + col1 * + col1 * + - col1 FROM tab0
----
-1
-531441
-9261

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-712
SELECT DISTINCT - 10 AS col2, - AVG ( + - col1 ) * + CAST( NULL AS DECIMAL ) - + COUNT( * ) * - MIN( DISTINCT - - col2 ) * 49 AS col0 FROM tab1
----
-10
NULL

skipif mysql # not compatible
query II rowsort label-712
SELECT DISTINCT - 10 AS col2, - AVG ( + - col1 ) * + CAST ( NULL AS REAL ) - + COUNT ( * ) * - MIN ( DISTINCT - - col2 ) * 49 AS col0 FROM tab1
----
-10
NULL

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

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

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

skipif mysql # not compatible
query II rowsort label-714
SELECT ALL + 5 AS col1, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-715
SELECT ALL + ( - SUM( DISTINCT + 64 ) ) FROM tab2 AS cor0 WHERE - col2 > - - ( + 26 )
----
NULL

skipif mysql # not compatible
query I rowsort label-715
SELECT ALL + ( - SUM ( DISTINCT + 64 ) ) FROM tab2 AS cor0 WHERE - col2 > - - ( + 26 )
----
NULL

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

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

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

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

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

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

query II rowsort
SELECT 91 * - + col1, 82 FROM tab0 AS cor0 WHERE NOT col0 * col2 BETWEEN 73 AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-721
SELECT + MIN( + 88 ), + 14 AS col1 FROM tab0
----
88
14

skipif mysql # not compatible
query II rowsort label-721
SELECT + MIN ( + 88 ), + 14 AS col1 FROM tab0
----
88
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 72 * + col0 * + 34 col0 FROM tab0
----
212976
237456
36720

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL <= 47 * 31
----

query I rowsort
SELECT 86 * + ( + ( - - 89 ) ) AS col0 FROM tab2
----
7654
7654
7654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-725
SELECT + - col1 * - + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST( + - 84 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-725
SELECT + - col1 * - + 1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> + CAST ( + - 84 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-726
SELECT ( + col1 ) + col0 / + + ( + - 6 ) * + CAST( NULL AS SIGNED ) / 62 + - 39 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-726
SELECT ( + col1 ) + col0 / + + ( + - 6 ) * + CAST ( NULL AS INTEGER ) / 62 + - 39 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 72 ) * + 28 col2 FROM tab0 AS cor0
----
2016
2016
2016

onlyif mysql # aggregate syntax: 
query I rowsort label-728
SELECT DISTINCT + - MIN( + + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-728
SELECT DISTINCT + - MIN ( + + col1 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <= NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-729
SELECT ALL col0 DIV + - col1 + - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-76

skipif mysql # not compatible
query I rowsort label-729
SELECT ALL col0 / + - col1 + - ( - - col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-76

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

query I rowsort
SELECT DISTINCT - col2 + + + 91 * 29 AS col2 FROM tab1
----
2543
2571
2580

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-732
SELECT ALL MAX( ALL - 64 ) + 52 * + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-732
SELECT ALL MAX ( ALL - 64 ) + 52 * + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + col1 + + - col2 FROM tab0 AS cor0
----
-1262
-1837
-196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 1 * - ( + 31 ), + 11 + + - col1 - - 39 col2 FROM tab0 AS cor0
----
-31
-31
-31
29
-31
49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col0 * - col2 + - ( + col1 ) + - 15 IS NULL
----

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

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

query I rowsort
SELECT ALL - - col2 * + + col0 * - col0 - - col0 - - 90 FROM tab2 AS cor0
----
-163686
-326085
-48532

query I rowsort
SELECT ALL - + 1 * - col1 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-739
SELECT + 57 - + + CAST( col2 AS SIGNED ), + col2 FROM tab1 AS cor0
----
-11
68
-2
59
-39
96

skipif mysql # not compatible
query II rowsort label-739
SELECT + 57 - + + CAST ( col2 AS INTEGER ), + col2 FROM tab1 AS cor0
----
-11
68
-2
59
-39
96

query I rowsort
SELECT ALL + col1 + - col2 * + + col0 AS col2 FROM tab2
----
-1007
-2483
-4283

onlyif mysql # DIV for integer division: 
query I rowsort label-741
SELECT ALL col2 DIV + 12 AS col0 FROM tab2
----
1
3
4

skipif mysql # not compatible
query I rowsort label-741
SELECT ALL col2 / + 12 AS col0 FROM tab2
----
1
3
4

query I rowsort
SELECT 59 + - col0 + + - ( - 51 ) AS col1 FROM tab1
----
19
25
59

query I rowsort
SELECT ALL + + 1 FROM tab0 WHERE - col0 BETWEEN - 27 * - - col0 / + col0 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-744
SELECT - 48 DIV col2 + col2 col2 FROM tab0
----
46
6
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-744
SELECT - 48 / col2 + col2 col2 FROM tab0
----
46
6
99

query II rowsort
SELECT col1 + - col0, + 88 AS col0 FROM tab1
----
-37
88
-44
88
-80
88

query I rowsort
SELECT ALL + - 93 FROM tab1 AS cor0 WHERE NULL = NULL OR 89 + - 62 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 13 AS col0 FROM tab2
----
-46
13
-64
13
-75
13

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-751
SELECT - col1 DIV - + col2 * + - col0 + - - 28 AS col2, col1 * 68 + + - col2 + - col2 FROM tab1
----
28
222
28
3060
28
760

skipif mysql # not compatible
query II rowsort label-751
SELECT - col1 / - + col2 * + - col0 + - - 28 AS col2, col1 * 68 + + - col2 + - col2 FROM tab1
----
28
222
28
3060
28
760

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL - COUNT( * ) + + + 50 + + + COUNT( * ) * + - COUNT( * ) * 33 FROM tab0
----
-250

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL - COUNT ( * ) + + + 50 + + + COUNT ( * ) * + - COUNT ( * ) * 33 FROM tab0
----
-250

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

onlyif mysql # DIV for integer division: 
query I rowsort label-754
SELECT DISTINCT col1 + - - col1 DIV + col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-754
SELECT DISTINCT col1 + - - col1 / + col1 FROM tab0 AS cor0
----
2
22
82

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

skipif mysql # not compatible
query I rowsort label-755
SELECT ALL + CAST ( NULL AS INTEGER ) * - 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT ALL + 79 + + + COUNT( * ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-756
SELECT ALL + 79 + + + COUNT ( * ) AS col2 FROM tab0
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col1 / col1 ) <= ( NULL )
----

query I rowsort
SELECT 19 * - + 3 * - + ( + - 62 ) FROM tab2 AS cor0
----
-3534
-3534
-3534

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

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

query I rowsort
SELECT - ( + - col1 ) * + + col0 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 89 = + - col0 - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-762
SELECT - - 1 * ( - + CAST( - ( + - COUNT( * ) ) AS SIGNED ) ) AS col0, - 73 FROM tab0 AS cor0 WHERE - 19 IS NULL
----
0
-73

skipif mysql # not compatible
query II rowsort label-762
SELECT - - 1 * ( - + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) ) AS col0, - 73 FROM tab0 AS cor0 WHERE - 19 IS NULL
----
0
-73

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-763
SELECT DISTINCT 96 DIV - COUNT( * ) AS col1 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-763
SELECT DISTINCT 96 / - COUNT ( * ) AS col1 FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-764
SELECT + COUNT( * ) * + 84 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-764
SELECT + COUNT ( * ) * + 84 FROM tab1
----
252

query II rowsort
SELECT ( - + col1 ) * + + col0 AS col1, + col1 AS col1 FROM tab0
----
-1215
81
-1827
21
-97
1

query I rowsort
SELECT 90 * + + col2 AS col0 FROM tab2
----
2070
3600
5220

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

onlyif mysql # DIV for integer division: 
query I rowsort label-768
SELECT 16 - + 84 + 67 DIV - + col2 AS col1 FROM tab1
----
-68
-68
-69

skipif mysql # not compatible
query I rowsort label-768
SELECT 16 - + 84 + 67 / - + col2 AS col1 FROM tab1
----
-68
-68
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-769
SELECT COUNT( - col1 ) * COUNT( * ) AS col0 FROM tab1 WHERE NULL <= col2 - + 55 + + CAST( NULL AS SIGNED ) * col0 * col2
----
0

skipif mysql # not compatible
query I rowsort label-769
SELECT COUNT ( - col1 ) * COUNT ( * ) AS col0 FROM tab1 WHERE NULL <= col2 - + 55 + + CAST ( NULL AS INTEGER ) * col0 * col2
----
0

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT - - MAX( - 94 ) DIV - 28 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-771
SELECT - - MAX ( - 94 ) / - 28 FROM tab1 cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 66 / - 96 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT + MIN( 94 ) FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-773
SELECT + MIN ( 94 ) FROM tab0
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT - COUNT( * ) * - 98 AS col2 FROM tab0
----
294

skipif mysql # not compatible
query I rowsort label-774
SELECT - COUNT ( * ) * - 98 AS col2 FROM tab0
----
294

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

query I rowsort
SELECT DISTINCT + col1 * - - 92 AS col0 FROM tab1 AS cor0
----
1288
4324
460

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 + + col2 IN ( + col1 * - + 78 - col0 )
----
15
87
97

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

skipif mysql # not compatible
query I rowsort label-778
SELECT MAX ( DISTINCT col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-779
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE - 75 / + col1 >= col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-779
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE - 75 / + col1 >= col2 * col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-780
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-780
SELECT * FROM tab2 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-782
SELECT ALL + COUNT( * ) * - 13 * - - MIN( + + col0 ) + + 75 FROM tab2
----
-1719

skipif mysql # not compatible
query I rowsort label-782
SELECT ALL + COUNT ( * ) * - 13 * - - MIN ( + + col0 ) + + 75 FROM tab2
----
-1719

onlyif mysql # DIV for integer division: 
query I rowsort label-783
SELECT ALL col0 DIV - 61 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL col0 / - 61 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
-1
-1
0

query I rowsort
SELECT DISTINCT 21 + - col2 AS col2 FROM tab1
----
-38
-47
-75

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT DISTINCT - - SUM( DISTINCT + 67 ) + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT DISTINCT - - SUM ( DISTINCT + 67 ) + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - ( col2 ) * + - col2 + + col0 + col1 + + col2 * - + col1 * + 32 * + - col2 AS col0 FROM tab0 AS cor0
----
323531
5728033
67408

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

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

query I rowsort
SELECT + + col0 / 74 FROM tab0 WHERE - col1 = + - ( - - 58 ) + - + 24 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT ALL + 32 DIV ( col1 ) + - col1 - - col0 col0 FROM tab0 AS cor0
----
-66
128
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-790
SELECT ALL + 32 / ( col1 ) + - col1 - - col0 col0 FROM tab0 AS cor0
----
-66
128
67

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

query I rowsort
SELECT DISTINCT + 93 - - + 53 FROM tab2 AS cor0
----
146

onlyif mysql # aggregate syntax: 
query I rowsort label-793
SELECT - 38 - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-793
SELECT - 38 - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-41

query I rowsort
SELECT + - 31 AS col2 FROM tab2 AS cor0 WHERE - 0 NOT IN ( + - col0, 42 + + col0 )
----
-31
-31
-31

query I rowsort
SELECT 24 - + - col0 AS col0 FROM tab0 AS cor0
----
111
121
39

query I rowsort
SELECT ALL - ( - 45 ) AS col2 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-797
SELECT ALL - - 86 FROM tab2 AS cor0 WHERE NOT col0 <= - CAST( NULL AS DECIMAL ) / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-797
SELECT ALL - - 86 FROM tab2 AS cor0 WHERE NOT col0 <= - CAST ( NULL AS REAL ) / CAST ( NULL AS INTEGER )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT 18 + SUM( - col1 ) AS col2 FROM tab0
----
-85

skipif mysql # not compatible
query I rowsort label-799
SELECT 18 + SUM ( - col1 ) AS col2 FROM tab0
----
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 * - 67, col2 * - 59 + + col2 col0 FROM tab2
----
-3417
-1334
-4489
-3364
-5159
-2320

query I rowsort
SELECT DISTINCT 12 * 50 AS col1 FROM tab0
----
600

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

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

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

query I rowsort
SELECT ALL - 34 * - - 27 FROM tab1
----
-918
-918
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-805
SELECT - 27 DIV col1 AS col1 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-805
SELECT - 27 / col1 AS col1 FROM tab1
----
-1
-5
0

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

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

query I rowsort
SELECT DISTINCT - - col0 * - + ( col0 ) * - 1 * + col0 FROM tab0 AS cor0
----
3375
658503
912673

onlyif mysql # aggregate syntax: 
query I rowsort label-808
SELECT SUM( ALL + 42 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-808
SELECT SUM ( ALL + 42 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-809
SELECT - MAX( ALL - ( + 91 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
91

skipif mysql # not compatible
query I rowsort label-809
SELECT - MAX ( ALL - ( + 91 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-810
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST( NULL AS DECIMAL ) IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT - CAST ( NULL AS REAL ) IS NOT NULL
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col1 * + col0 / + 83
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 0 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

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

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT CAST ( - 58 AS INTEGER ) FROM tab1 AS cor0
----
-58

query II rowsort
SELECT + col1 * - col1 AS col0, col0 + col1 * + 60 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-2601
3106
-4489
4095
-5929
4684

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-815
SELECT DISTINCT + + SUM ( col0 ) col1 FROM tab0 cor0
----
199

query I rowsort
SELECT col2 + + + 89 * - col2 AS col1 FROM tab0
----
-4136
-8712
-880

query I rowsort
SELECT - col0 + col2 - 81 - col0 AS col0 FROM tab0
----
-176
-245
-64

query I rowsort
SELECT col0 + - + col0 * + 46 FROM tab0
----
-3915
-4365
-675

onlyif mysql # aggregate syntax: 
query I rowsort label-819
SELECT SUM( - - 82 ) AS col2 FROM tab0
----
246

skipif mysql # not compatible
query I rowsort label-819
SELECT SUM ( - - 82 ) AS col2 FROM tab0
----
246

query I rowsort
SELECT DISTINCT - col1 + + col0 + col2 * + 65 + - + ( 91 ) FROM tab1
----
3824
4373
6186

query I rowsort
SELECT ALL col2 + + + 12 AS col2 FROM tab2
----
35
52
70

onlyif mysql # aggregate syntax: 
query I rowsort label-822
SELECT DISTINCT ( - COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-822
SELECT DISTINCT ( - COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab1
----
-6

query I rowsort
SELECT - - col0 * + col0 AS col2 FROM tab2 WHERE + 96 * - col2 IS NOT NULL
----
2116
4096
5625

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN col2 AND - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-826
SELECT col2 - + - 34 AS col2, 41 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
133
NULL
44
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-826
SELECT col2 - + - 34 AS col2, 41 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
133
NULL
44
NULL
81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-827
SELECT 3 - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-827
SELECT 3 - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

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

query II rowsort
SELECT DISTINCT + 97, 70 AS col2 FROM tab2 AS cor0
----
97
70

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

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

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

query I rowsort
SELECT DISTINCT + ( 92 ) FROM tab0
----
92

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-834
SELECT DISTINCT col2, CAST( NULL AS DECIMAL ) / + 75 AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-834
SELECT DISTINCT col2, CAST ( NULL AS REAL ) / + 75 AS col1 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT DISTINCT + col0 AS col2, 9 - col0 * + + col0 + + + col2 AS col0 FROM tab0 AS cor0
----
15
-169
87
-7550
97
-9301

onlyif mysql # aggregate syntax: 
query II rowsort label-836
SELECT ALL - 49 AS col1, COUNT( - 49 ) AS col1 FROM tab2 cor0
----
-49
3

skipif mysql # not compatible
query II rowsort label-836
SELECT ALL - 49 AS col1, COUNT ( - 49 ) AS col1 FROM tab2 cor0
----
-49
3

query I rowsort
SELECT 35 FROM tab0 AS cor0 WHERE NOT col1 <= + + col0 * + + col0
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-839
SELECT + - 62 DIV 12 * + - SUM( DISTINCT - col0 ) FROM tab1 AS cor0
----
-1135

skipif mysql # not compatible
query I rowsort label-839
SELECT + - 62 / 12 * + - SUM ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-1135

query I rowsort
SELECT DISTINCT - col2 * + col0 * col0 + - col0 * 6 FROM tab2 AS cor0
----
-164224
-326700
-48944

query I rowsort
SELECT 62 AS col2 FROM tab0 AS cor0 WHERE + 32 > NULL
----

query I rowsort
SELECT DISTINCT col2 * + 18 FROM tab2
----
1044
414
720

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

query I rowsort
SELECT ALL col2 + - 21 FROM tab1
----
38
47
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-845
SELECT col0 * - CAST( + - 15 AS SIGNED ) * - + 84 + - - 33 FROM tab0
----
-109587
-122187
-18867

skipif mysql # not compatible
query I rowsort label-845
SELECT col0 * - CAST ( + - 15 AS INTEGER ) * - + 84 + - - 33 FROM tab0
----
-109587
-122187
-18867

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT - MIN( ALL + + col1 ) + - 23 AS col0 FROM tab1
----
-28

skipif mysql # not compatible
query I rowsort label-846
SELECT - MIN ( ALL + + col1 ) + - 23 AS col0 FROM tab1
----
-28

query I rowsort
SELECT col2 + - col1 - - ( + col2 ) * + 77 * + 86 - + - col1 AS col1 FROM tab0
----
311281
655677
66230

query I rowsort
SELECT DISTINCT - + col2 + - - col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * + + col1 AS col1 FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-850
SELECT ALL - 8 - + col1 DIV - col2 FROM tab0 AS cor0
----
-6
-7
-8

skipif mysql # not compatible
query I rowsort label-850
SELECT ALL - 8 - + col1 / - col2 FROM tab0 AS cor0
----
-6
-7
-8

query I rowsort
SELECT + col1 + 78 FROM tab1 AS cor0
----
125
83
92

onlyif mysql # aggregate syntax: 
query I rowsort label-852
SELECT ALL - 89 + MIN( - 14 ) + - + COUNT( * ) * + 76 AS col0 FROM tab2
----
-331

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - 89 + MIN ( - 14 ) + - + COUNT ( * ) * + 76 AS col0 FROM tab2
----
-331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-853
SELECT - 6 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - CAST( NULL AS SIGNED ) * 22 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-853
SELECT - 6 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - CAST ( NULL AS INTEGER ) * 22 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-854
SELECT - 2 DIV col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-854
SELECT - 2 / col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT - 2 FROM tab1, tab1 AS cor0
----
-2

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

skipif mysql # not compatible
query I rowsort label-856
SELECT ALL - + CAST ( NULL AS INTEGER ) / - 88 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + col1 - + + 15 - + - col1 FROM tab0
----
-13
147
27

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

query II rowsort
SELECT col1 - - col1, + col2 FROM tab2
----
102
23
134
58
154
40

onlyif mysql # aggregate syntax: 
query I rowsort label-860
SELECT ALL - - SUM( ALL - 76 ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-860
SELECT ALL - - SUM ( ALL - 76 ) FROM tab2 AS cor0
----
-228

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT + 6 * - COUNT( * ) AS col0 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-861
SELECT + 6 * - COUNT ( * ) AS col0 FROM tab2
----
-18

query I rowsort
SELECT - col1 * + 29 AS col2 FROM tab0
----
-2349
-29
-609

onlyif mysql # aggregate syntax: 
query I rowsort label-863
SELECT DISTINCT MAX( + 44 ) FROM tab2
----
44

skipif mysql # not compatible
query I rowsort label-863
SELECT DISTINCT MAX ( + 44 ) FROM tab2
----
44

query I rowsort
SELECT DISTINCT 74 * col2 FROM tab0
----
3478
7326
740

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

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

query I rowsort
SELECT + col1 * - - 20 * - col0 FROM tab0
----
-1940
-24300
-36540

query I rowsort
SELECT col2 * - 77 FROM tab1
----
-4543
-5236
-7392

query I rowsort
SELECT + 6 * - + col0 AS col1 FROM tab1
----
-306
-510
-546

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

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

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

skipif mysql # not compatible
query I rowsort label-871
SELECT col0 / + + col1 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-872
SELECT ALL - + 61 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-872
SELECT ALL - + 61 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
183

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - col2 ) * + + 90 col1 FROM tab1
----
-5310
-6120
-8640

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT + + COUNT( ALL - 96 ) * + ( - + COUNT( * ) ) + - ( + ( - 15 ) ) + - + 60 AS col1 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-876
SELECT + + COUNT ( ALL - 96 ) * + ( - + COUNT ( * ) ) + - ( + ( - 15 ) ) + - + 60 AS col1 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT DISTINCT + ( + 22 ) + + 58 AS col0 FROM tab1 AS cor0
----
80

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

query I rowsort
SELECT DISTINCT + col1 * col0 + + col0 FROM tab2 AS cor0
----
2392
4992
5100

query I rowsort
SELECT ALL + - ( col2 ) * - + 49 FROM tab1 AS cor0
----
2891
3332
4704

query I rowsort
SELECT ALL - + col0 * + 27 FROM tab1 AS cor0
----
-1377
-2295
-2457

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 40 * + 50 NOT IN ( - col2 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-884
SELECT DISTINCT col1 DIV col2, 74 AS col0 FROM tab0
----
0
74
1
74
2
74

skipif mysql # not compatible
query II rowsort label-884
SELECT DISTINCT col1 / col2, 74 AS col0 FROM tab0
----
0
74
1
74
2
74

query II rowsort
SELECT DISTINCT + col2 + - 25 AS col2, col1 AS col1 FROM tab1
----
34
5
43
47
71
14

query I rowsort
SELECT ALL 77 * - col1 + - 10 + - 4 FROM tab1
----
-1092
-3633
-399

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

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

query I rowsort
SELECT ALL + col1 + col2 + + 38 - - col0 AS col2 FROM tab0
----
156
181
235

onlyif mysql # aggregate syntax: 
query I rowsort label-889
SELECT ALL COUNT( * ) + + 55 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-889
SELECT ALL COUNT ( * ) + + 55 FROM tab0
----
58

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-891
SELECT col1 * + + col1 + - 60 + col2 DIV + col0 + - col2 + + - col0 FROM tab0 AS cor0
----
-254
284
6442

skipif mysql # not compatible
query I rowsort label-891
SELECT col1 * + + col1 + - 60 + col2 / + col0 + - col2 + + - col0 FROM tab0 AS cor0
----
-254
284
6442

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT ALL - SUM( - - 15 ) AS col0 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-892
SELECT ALL - SUM ( - - 15 ) AS col0 FROM tab0
----
-45

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT DISTINCT + - COUNT( * ) * + + 84 FROM tab1 AS cor0 WHERE NULL > col0
----
0

skipif mysql # not compatible
query I rowsort label-894
SELECT DISTINCT + - COUNT ( * ) * + + 84 FROM tab1 AS cor0 WHERE NULL > col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-895
SELECT DISTINCT + 27 * + - 47 - + COUNT( * ) col1 FROM tab2 AS cor0
----
-1272

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-895
SELECT DISTINCT + 27 * + - 47 - + COUNT ( * ) col1 FROM tab2 AS cor0
----
-1272

onlyif mysql # aggregate syntax: 
query I rowsort label-896
SELECT MIN( 47 ) FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-896
SELECT MIN ( 47 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT 42 * 8 * - 69 FROM tab1 AS cor0
----
-23184
-23184
-23184

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

onlyif mysql # aggregate syntax: 
query I rowsort label-899
SELECT COUNT( * ) * - - 81 AS col1 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-899
SELECT COUNT ( * ) * - - 81 AS col1 FROM tab2
----
243

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col2 + + + ( 67 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-901
SELECT ALL 96 * COUNT( * ) * - + SUM( col2 ) AS col0 FROM tab0
----
-44928

skipif mysql # not compatible
query I rowsort label-901
SELECT ALL 96 * COUNT ( * ) * - + SUM ( col2 ) AS col0 FROM tab0
----
-44928

query I rowsort
SELECT col0 * - 43 AS col2 FROM tab2 WHERE NULL > ( - 71 ) OR col2 IS NOT NULL
----
-1978
-2752
-3225

query I rowsort
SELECT ALL + 25 FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND 10
----

query I rowsort
SELECT DISTINCT - col2 * + + 26 FROM tab2 AS cor0
----
-1040
-1508
-598

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT 91 * - - MIN( + 82 ) FROM tab2, tab1 AS cor0
----
7462

skipif mysql # not compatible
query I rowsort label-905
SELECT 91 * - - MIN ( + 82 ) FROM tab2, tab1 AS cor0
----
7462

query I rowsort
SELECT + 82 AS col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

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

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

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

query I rowsort
SELECT ALL col2 * - + 24 AS col1 FROM tab0 cor0
----
-1128
-2376
-240

onlyif mysql # DIV for integer division: 
query I rowsort label-910
SELECT DISTINCT + - 46 DIV - + col0 + col2 FROM tab2 AS cor0
----
24
40
58

skipif mysql # not compatible
query I rowsort label-910
SELECT DISTINCT + - 46 / - + col0 + col2 FROM tab2 AS cor0
----
24
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 62 + - + col2 * - col2 + + 17 col2 FROM tab1 AS cor0
----
3560
4703
9295

query I rowsort
SELECT DISTINCT 21 * - col2 + col2 FROM tab2
----
-1160
-460
-800

query I rowsort
SELECT DISTINCT - col2 * + 92 - + - 15 AS col2 FROM tab1
----
-5413
-6241
-8817

query I rowsort
SELECT DISTINCT col2 + 49 FROM tab1
----
108
117
145

query I rowsort
SELECT ALL col2 - + col2 * + - 34 FROM tab0
----
1645
3465
350

query I rowsort
SELECT - + 53 FROM tab2 AS cor0 WHERE - 17 BETWEEN + 36 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 63 + + col0 col0 FROM tab0 AS cor0
----
150
160
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-919
SELECT - CAST( - col2 AS SIGNED ) * 73 + + + col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - + col2 * + col1 / - - 1 + - ( - 77 )
----

skipif mysql # not compatible
query I rowsort label-919
SELECT - CAST ( - col2 AS INTEGER ) * 73 + + + col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND - + col2 * + col1 / - - 1 + - ( - 77 )
----

query I rowsort
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT 91 * - - col2 IS NULL
----
51
85
91

query I rowsort
SELECT + col2 * - 0 AS col1 FROM tab2 AS cor0
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 13 * col2 col1 FROM tab0
----
1287
130
611

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

query I rowsort
SELECT ALL - col1 * 39 * + col2 + - - col1 - + + col0 AS col1 FROM tab0 AS cor0 WHERE + col1 + + - 96 < NULL
----

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

query I rowsort
SELECT ALL - - 20 AS col2 FROM tab1 cor0
----
20
20
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 30 IS NULL
----

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

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

query I rowsort
SELECT - 48 * + - col1 AS col1 FROM tab2
----
2448
3216
3696

query I rowsort
SELECT col2 * - col2 * - col0 FROM tab0
----
33135
8700
950697

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT + col2 DIV ( - 76 ) AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-932
SELECT + col2 / ( - 76 ) AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT - - col1 AS col2 FROM tab0 WHERE NOT 17 = + 73 * - col0 + + col0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL 93 + MAX( + col1 ) AS col1 FROM tab1
----
140

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL 93 + MAX ( + col1 ) AS col1 FROM tab1
----
140

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT DISTINCT COUNT( * ) + + 44 + COUNT( * ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-935
SELECT DISTINCT COUNT ( * ) + + 44 + COUNT ( * ) FROM tab1
----
50

query II rowsort
SELECT - 49 AS col2, ( + col0 ) * + 53 * - col2 FROM tab0 AS cor0
----
-49
-37365
-49
-46110
-49
-508959

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-938
SELECT ALL + col2 AS col1, - 14 * + - CAST( + 87 AS SIGNED ) * - col2 * 94 + + - 55 FROM tab1 AS cor0
----
59
-6755083
68
-7785511
96
-10991287

skipif mysql # not compatible
query II rowsort label-938
SELECT ALL + col2 AS col1, - 14 * + - CAST ( + 87 AS INTEGER ) * - col2 * 94 + + - 55 FROM tab1 AS cor0
----
59
-6755083
68
-7785511
96
-10991287

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT - MAX( - 39 ) + - MAX( ALL - 28 ) DIV COUNT( * ) AS col2 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-939
SELECT - MAX ( - 39 ) + - MAX ( ALL - 28 ) / COUNT ( * ) AS col2 FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-940
SELECT COUNT( * ) AS col1 FROM tab0 WHERE NOT - 53 BETWEEN + ( col1 ) AND NULL
----
3

skipif mysql # not compatible
query I rowsort label-940
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE NOT - 53 BETWEEN + ( col1 ) AND NULL
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT 32 * - col1 + col0 * + 25 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 38 NOT IN ( ( - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT SUM( 46 ) * + COUNT( * ) AS col0 FROM tab2
----
414

skipif mysql # not compatible
query I rowsort label-943
SELECT SUM ( 46 ) * + COUNT ( * ) AS col0 FROM tab2
----
414

query I rowsort
SELECT DISTINCT - col0 * 32 FROM tab2
----
-1472
-2048
-2400

query I rowsort
SELECT 60 + 96 AS col2 FROM tab0
----
156
156
156

query I rowsort
SELECT DISTINCT - 95 * + col2 FROM tab2 WHERE ( NULL ) IS NULL
----
-2185
-3800
-5510

query I rowsort
SELECT DISTINCT + col0 / + 42 FROM tab1 WHERE NULL IS NOT NULL
----

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

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

query I rowsort
SELECT ALL - col1 + 53 FROM tab1
----
39
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-950
SELECT SUM( col2 ) * + 66 col0 FROM tab0 WHERE NOT + 55 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-950
SELECT SUM ( col2 ) * + 66 col0 FROM tab0 WHERE NOT + 55 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-951
SELECT SUM( - col0 ) / AVG ( col1 * col2 ) AS col2 FROM tab2 WHERE 31 IN ( 85 + - 72 )
----
NULL

skipif mysql # not compatible
query I rowsort label-951
SELECT SUM ( - col0 ) / AVG ( col1 * col2 ) AS col2 FROM tab2 WHERE 31 IN ( 85 + - 72 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-952
SELECT DISTINCT - col0 * col0 + + CAST( + col2 AS SIGNED ) FROM tab0
----
-178
-7559
-9310

skipif mysql # not compatible
query I rowsort label-952
SELECT DISTINCT - col0 * col0 + + CAST ( + col2 AS INTEGER ) FROM tab0
----
-178
-7559
-9310

query I rowsort
SELECT ALL col0 + 1 AS col0 FROM tab2
----
47
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-954
SELECT DISTINCT + COUNT( * ) * 16 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-954
SELECT DISTINCT + COUNT ( * ) * 16 FROM tab0
----
48

query I rowsort
SELECT + 65 * + 39 - + col1 FROM tab0
----
2454
2514
2534

query III rowsort
SELECT ALL * FROM tab1 WHERE 56 NOT IN ( + ( ( col2 ) ) * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - col2 * 89 col1 FROM tab1
----
-5246
-6005
-8530

query I rowsort
SELECT + col2 * - 72 AS col1 FROM tab0
----
-3384
-7128
-720

query I rowsort
SELECT + col0 * 9 FROM tab1
----
459
765
819

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= 86
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-962
SELECT + CAST( + SUM( - col0 ) AS SIGNED ) AS col1 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-962
SELECT + CAST ( + SUM ( - col0 ) AS INTEGER ) AS col1 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT - ( - col0 ) * col1 AS col2 FROM tab1
----
425
4277
714

query I rowsort
SELECT DISTINCT - 52 FROM tab2 WHERE NOT + col2 - col2 * + col0 NOT BETWEEN ( - col1 ) AND col2
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-966
SELECT + MAX( DISTINCT CAST( col1 AS SIGNED ) ) AS col0 FROM tab0
----
81

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

query I rowsort
SELECT - 4 FROM tab0 WHERE col1 <> - 68
----
-4
-4
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-968
SELECT 93 DIV 7 FROM tab2
----
13
13
13

skipif mysql # not compatible
query I rowsort label-968
SELECT 93 / 7 FROM tab2
----
13
13
13

onlyif mysql # DIV for integer division: 
query I rowsort label-969
SELECT col1 DIV + 41 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-969
SELECT col1 / + 41 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL 58 AS col1 FROM tab0 WHERE col1 >= - col0
----
58
58
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-971
SELECT - ( ( 87 ) ) DIV - COUNT( * ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-971
SELECT - ( ( 87 ) ) / - COUNT ( * ) FROM tab0
----
29

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-973
SELECT ALL col1 * col1 + + CAST( + 8 AS SIGNED ) FROM tab2 AS cor0
----
2609
4497
5937

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL col1 * col1 + + CAST ( + 8 AS INTEGER ) FROM tab2 AS cor0
----
2609
4497
5937

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

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

query I rowsort
SELECT DISTINCT 18 * 78 FROM tab0 AS cor0
----
1404

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT ALL 91 * + COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-976
SELECT ALL 91 * + COUNT ( * ) FROM tab1
----
273

query I rowsort
SELECT ALL - 31 * ( + col0 ) AS col0 FROM tab0 AS cor0
----
-2697
-3007
-465

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 + col1 / col1 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-980
SELECT + + col0 / 57 FROM tab1 AS cor0
----
0
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-982
SELECT ALL - + COUNT( * ) * MIN( DISTINCT + 31 * + 55 ) col2 FROM tab0 AS cor0
----
-5115

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-982
SELECT ALL - + COUNT ( * ) * MIN ( DISTINCT + 31 * + 55 ) col2 FROM tab0 AS cor0
----
-5115

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT ALL - CAST( NULL AS SIGNED ) * 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-983
SELECT ALL - CAST ( NULL AS INTEGER ) * 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + + 85 * 29 AS col2 FROM tab2 AS cor0
----
2465

query I rowsort
SELECT ( + col1 ) + col1 FROM tab0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + 79 + col1 FROM tab0 WHERE NULL IS NULL
----
100
160
80

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

query I rowsort
SELECT col2 FROM tab1 WHERE NOT + col2 IN ( + col0 )
----
59
68
96

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

query I rowsort
SELECT ALL + col0 * 11 FROM tab0 WHERE NOT col0 NOT BETWEEN 75 AND NULL
----

query I rowsort
SELECT + 42 + col1 + col0 * 70 FROM tab2 AS cor0
----
3313
4599
5359

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 16 col0 FROM tab0
----
115
26
63

query II rowsort
SELECT col1 AS col0, - col0 * 33 FROM tab1
----
14
-1683
47
-3003
5
-2805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-995
SELECT DISTINCT - + CAST( + 6 AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6

skipif mysql # not compatible
query I rowsort label-995
SELECT DISTINCT - + CAST ( + 6 AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-6

query I rowsort
SELECT DISTINCT 76 + - col0 AS col0 FROM tab2
----
1
12
30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 34 ) >= 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL - + ( - + 65 ) + - col1 AS col0 FROM tab1 AS cor0
----
18
51
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1000
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - 4 ) IN ( - 69 - + col0 / CAST( - 82 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1000
SELECT ALL * FROM tab1 AS cor0 WHERE + ( - - 4 ) IN ( - 69 - + col0 / CAST ( - 82 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT DISTINCT SUM( DISTINCT 78 ) - COUNT( * ) AS col2 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1001
SELECT DISTINCT SUM ( DISTINCT 78 ) - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
75

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1003
SELECT MIN( DISTINCT CAST( col0 AS SIGNED ) ) - 33 AS col0 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-1003
SELECT MIN ( DISTINCT CAST ( col0 AS INTEGER ) ) - 33 AS col0 FROM tab1 AS cor0
----
18

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

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

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

query I rowsort
SELECT 85 FROM tab1 WHERE + col2 * + ( col2 ) - col1 BETWEEN NULL AND ( 30 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1007
SELECT - col2 + - + CAST( - 33 AS SIGNED ) * - + col2 DIV col2 FROM tab0
----
-132
-43
-80

skipif mysql # not compatible
query I rowsort label-1007
SELECT - col2 + - + CAST ( - 33 AS INTEGER ) * - + col2 / col2 FROM tab0
----
-132
-43
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT 88 * + ( 5 ) + - COUNT( * ) AS col0 FROM tab1
----
437

skipif mysql # not compatible
query I rowsort label-1008
SELECT 88 * + ( 5 ) + - COUNT ( * ) AS col0 FROM tab1
----
437

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

skipif mysql # not compatible
query I rowsort label-1009
SELECT ALL COUNT ( * ) * + 78 FROM tab0
----
234

query I rowsort
SELECT DISTINCT - 62 * + col0 * + col2 FROM tab2
----
-158720
-269700
-65596

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) * - col0 col0 FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1012
SELECT col2 DIV - col0 col1 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1012
SELECT col2 / - col0 col1 FROM tab0 AS cor0
----
-1
-3
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1014
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) / + col2 / 85 >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1014
SELECT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) / + col2 / 85 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = - 45 + 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1016
SELECT ALL - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 85 + + 19 * - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1016
SELECT ALL - col0 col1 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 85 + + 19 * - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT 39 * COUNT( * ) col2 FROM tab1 AS cor0 WHERE 49 * - + col2 BETWEEN NULL AND ( - - 79 * 91 * col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1017
SELECT DISTINCT 39 * COUNT ( * ) col2 FROM tab1 AS cor0 WHERE 49 * - + col2 BETWEEN NULL AND ( - - 79 * 91 * col2 )
----
0

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

skipif mysql # not compatible
query I rowsort label-1018
SELECT - + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col0 >= - col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1019
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col0 + + + col2 + - 69 * + col2 + - ( + col2 ) IS NULL
----
0

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1021
SELECT - 0 + COUNT( * ) + + - 38 * + COUNT( * ) AS col2, + 86 FROM tab1
----
-111
86

skipif mysql # not compatible
query II rowsort label-1021
SELECT - 0 + COUNT ( * ) + + - 38 * + COUNT ( * ) AS col2, + 86 FROM tab1
----
-111
86

query I rowsort
SELECT DISTINCT 88 * col0 AS col1 FROM tab2
----
4048
5632
6600

query I rowsort
SELECT ALL ( + 17 ) AS col1 FROM tab0
----
17
17
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1024
SELECT - CAST( + ( + col0 ) AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-1024
SELECT - CAST ( + ( + col0 ) AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1025
SELECT - col2 * - - col0 DIV - + col0 AS col1 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1025
SELECT - col2 * - - col0 / - + col0 AS col1 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1026
SELECT - CAST( - 95 AS SIGNED ) FROM tab1
----
95
95
95

skipif mysql # not compatible
query I rowsort label-1026
SELECT - CAST ( - 95 AS INTEGER ) FROM tab1
----
95
95
95

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 / - col2 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( + + col1, - col2 * col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1031
SELECT ALL - 11 * - COUNT( * ) + 32 - 94 FROM tab2 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-1031
SELECT ALL - 11 * - COUNT ( * ) + 32 - 94 FROM tab2 AS cor0
----
-29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT ALL ( - 63 ) FROM tab1 AS cor0 WHERE 84 * + 89 BETWEEN NULL AND - 54 * + CAST( NULL AS SIGNED ) * - - 24
----

skipif mysql # not compatible
query I rowsort label-1032
SELECT ALL ( - 63 ) FROM tab1 AS cor0 WHERE 84 * + 89 BETWEEN NULL AND - 54 * + CAST ( NULL AS INTEGER ) * - - 24
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / + col2 * + 1 IS NULL
----

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

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

query II rowsort
SELECT col1, - col1 + col1 FROM tab0
----
1
0
21
0
81
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1038
SELECT - 5 * + COUNT ( * ) col1 FROM tab1
----
-15

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1040
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST( + col0 AS SIGNED ) + - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1040
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( CAST ( + col0 AS INTEGER ) + - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + + 70 * + 66 FROM tab1 AS cor0
----
4620
4620
4620

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

query I rowsort
SELECT + col0 + - col2 AS col1 FROM tab2 WHERE NOT + + col2 + col0 + - col2 NOT IN ( + 61 * col0 - - 40 + col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1045
SELECT ALL COUNT( * ) + 51 - 47 AS col0 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-1045
SELECT ALL COUNT ( * ) + 51 - 47 AS col0 FROM tab1 AS cor0
----
7

query I rowsort
SELECT + col2 * 54 - 33 FROM tab0 WHERE + col2 = + 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1047
SELECT MIN( DISTINCT - - col2 ) + MIN( ALL + + 57 ) AS col1 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-1047
SELECT MIN ( DISTINCT - - col2 ) + MIN ( ALL + + 57 ) AS col1 FROM tab0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1048
SELECT - CAST( COUNT( * ) AS SIGNED ) + - SUM( col2 ) AS col2 FROM tab1
----
-226

skipif mysql # not compatible
query I rowsort label-1048
SELECT - CAST ( COUNT ( * ) AS INTEGER ) + - SUM ( col2 ) AS col2 FROM tab1
----
-226

query I rowsort
SELECT ALL + 23 * col1 * + 22 FROM tab2 AS cor0
----
25806
33902
38962

query I rowsort
SELECT DISTINCT - col2 + - - 36 FROM tab2 AS cor0
----
-22
-4
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1051
SELECT DISTINCT + ( + + CAST( + 55 AS SIGNED ) ) DIV + COUNT( * ) FROM tab1 AS cor0
----
18

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

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE NOT col0 + + col0 < col2
----
-23
-40
-58

query I rowsort
SELECT ALL + 80 * + - col2 + - 40 FROM tab1
----
-4760
-5480
-7720

query I rowsort
SELECT DISTINCT 24 * + col1 + + col1 - col1 * 20 + + col0 FROM tab0
----
102
192
420

query I rowsort
SELECT ALL 93 * 34 * - + 7 AS col1 FROM tab0 AS cor0 LEFT OUTER JOIN tab0 AS cor1 ON NOT NULL <= NULL
----
-22134
-22134
-22134

query I rowsort
SELECT ALL col1 + - - col2 + - 96 AS col2 FROM tab2
----
-22
21
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT DISTINCT + + COUNT( DISTINCT + - 21 ) * 37 + - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-1057
SELECT DISTINCT + + COUNT ( DISTINCT + - 21 ) * 37 + - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
31

query I rowsort
SELECT + - col2 - - 33 * + 91 FROM tab1 cor0
----
2907
2935
2944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 - - col0 + - - col0 col1 FROM tab2 AS cor0
----
138
192
225

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IN ( - ( - col2 ) * + + col2 ) AND NOT - + col0 * 66 * - col2 = NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1061
SELECT DISTINCT + - 81 - ( - MAX( - 59 ) ), - COUNT( * ) AS col1 FROM tab2 cor0
----
-140
-3

skipif mysql # not compatible
query II rowsort label-1061
SELECT DISTINCT + - 81 - ( - MAX ( - 59 ) ), - COUNT ( * ) AS col1 FROM tab2 cor0
----
-140
-3

query I rowsort
SELECT DISTINCT + + ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

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

query I rowsort
SELECT + col1 AS col1 FROM tab1 cor0 WHERE NOT ( ( - 85 ) / + col1 + + col0 * - col0 ) IN ( col2, 91 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT - MIN( - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-1065
SELECT - MIN ( - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query II rowsort label-1066
SELECT - col2 DIV + - col1, col0 AS col2 FROM tab1
----
1
91
11
85
6
51

skipif mysql # not compatible
query II rowsort label-1066
SELECT - col2 / + - col1, col0 AS col2 FROM tab1
----
1
91
11
85
6
51

query I rowsort
SELECT ALL - ( + - 15 ) * - - col0 + - 72 FROM tab0
----
1233
1383
153

query I rowsort
SELECT col0 * - 10 * + col1 AS col2 FROM tab0
----
-12150
-18270
-970

query I rowsort
SELECT + 14 * - ( col2 ) FROM tab1 AS cor0
----
-1344
-826
-952

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT col1 <= + col1
----

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

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE + 13 = + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1073
SELECT DISTINCT SUM( + - 87 ) AS col1 FROM tab0
----
-261

skipif mysql # not compatible
query I rowsort label-1073
SELECT DISTINCT SUM ( + - 87 ) AS col1 FROM tab0
----
-261

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 50 IS NOT NULL
----

query I rowsort
SELECT + - 35 + + 38 + + 42 AS col2 FROM tab2 AS cor0
----
45
45
45

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1077
SELECT ALL + + CAST( + CAST( - - 8 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-1077
SELECT ALL + + CAST ( + CAST ( - - 8 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
8
8
8

query I rowsort
SELECT ALL + - 34 * AVG ( DISTINCT - 0 ) FROM tab1 AS cor0 WHERE NOT col0 + + col2 <= NULL
----
NULL

query I rowsort
SELECT - 32 AS col1 FROM tab0 cor0 WHERE ( NOT - + 67 + col1 > 70 )
----
-32
-32
-32

query I rowsort
SELECT 83 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 87 + + col1 * + + col1 col0 FROM tab1 AS cor0
----
112
2296
283

query I rowsort
SELECT DISTINCT + - col1 * + 87 FROM tab0 AS cor0
----
-1827
-7047
-87

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

skipif mysql # not compatible
query I rowsort label-1083
SELECT + MIN ( ALL + col1 ) * - COUNT ( * ) * - ( + - COUNT ( * ) ) + + + COUNT ( * ) + + 15 AS col2 FROM tab0 AS cor0
----
9

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

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

query I rowsort
SELECT ALL + 57 + 82 FROM tab0
----
139
139
139

query I rowsort
SELECT ALL 8 + - col2 - + 10 + + col0 - col0 * col2 * + 52 - - - col0 AS col1 FROM tab0
----
-36709
-45252
-499457

query I rowsort
SELECT DISTINCT - 63 + 44 * ( - 30 ) AS col0 FROM tab2
----
-1383

query I rowsort
SELECT DISTINCT 95 * + - col1 * - col1 AS col0 FROM tab1
----
18620
209855
2375

onlyif mysql # DIV for integer division: 
query II rowsort label-1090
SELECT ALL col0 * + col1 + col1 - - 3 * - col0 AS col0, ( + col1 ) + ( - + col2 ) DIV - col0 FROM tab2
----
2259
51
4813
77
4867
67

skipif mysql # not compatible
query II rowsort label-1090
SELECT ALL col0 * + col1 + col1 - - 3 * - col0 AS col0, ( + col1 ) + ( - + col2 ) / - col0 FROM tab2
----
2259
51
4813
77
4867
67

query I rowsort
SELECT - 21 FROM tab0 cor0 WHERE 40 IS NOT NULL
----
-21
-21
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT DISTINCT - 35 * - COUNT( * ) - - ( - - 0 ) - + ( + + 74 ) + - SUM( + col0 ) AS col2 FROM tab1 AS cor0
----
-196

skipif mysql # not compatible
query I rowsort label-1092
SELECT DISTINCT - 35 * - COUNT ( * ) - - ( - - 0 ) - + ( + + 74 ) + - SUM ( + col0 ) AS col2 FROM tab1 AS cor0
----
-196

onlyif mysql # DIV for integer division: 
query I rowsort label-1093
SELECT DISTINCT - col2 DIV + 19 AS col0 FROM tab0 cor0
----
-2
-5
0

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT - col2 / + 19 AS col0 FROM tab0 cor0
----
-2
-5
0

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

query I rowsort
SELECT DISTINCT + 82 * + col0 AS col1 FROM tab2 AS cor0
----
3772
5248
6150

query I rowsort
SELECT - col0 - + 27 AS col1 FROM tab1 AS cor0
----
-112
-118
-78

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT + col1 DIV - col2 + - col1 * col0 AS col1 FROM tab1
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-1098
SELECT + col1 / - col2 + - col1 * col0 AS col1 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT - col2 + + col1 * ( - col1 ) FROM tab1
----
-2277
-292
-84

query I rowsort
SELECT DISTINCT 93 - - - col2 AS col1 FROM tab2
----
35
53
70

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT - 15 + COUNT( * ) * + 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
588

skipif mysql # not compatible
query I rowsort label-1101
SELECT - 15 + COUNT ( * ) * + 67 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
588

query I rowsort
SELECT DISTINCT - 15 AS col0 FROM tab0 WHERE 83 NOT IN ( - col2 + + ( - ( + - col0 ) ) + + + col0 + + col0 + col1 * - - ( col2 ) )
----
-15

query I rowsort
SELECT DISTINCT - col2 * - + col0 * - col2 AS col2 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # aggregate syntax: 
query I rowsort label-1104
SELECT ALL 99 * - + MAX( DISTINCT + col1 ) FROM tab2
----
-7623

skipif mysql # not compatible
query I rowsort label-1104
SELECT ALL 99 * - + MAX ( DISTINCT + col1 ) FROM tab2
----
-7623

query I rowsort
SELECT DISTINCT - 30 * - col2 FROM tab1
----
1770
2040
2880

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1107
SELECT + col0 DIV col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - - 6 * + ( - col0 ) >= + col2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1107
SELECT + col0 / col0 AS col1 FROM tab1 AS cor0 WHERE NOT + col2 * - - 6 * + ( - col0 ) >= + col2
----
1
1
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1109
SELECT MIN( ALL + col1 ) AS col0, + 55 FROM tab0 AS cor0
----
1
55

skipif mysql # not compatible
query II rowsort label-1109
SELECT MIN ( ALL + col1 ) AS col0, + 55 FROM tab0 AS cor0
----
1
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1110
SELECT MAX( + 43 ) * - 51 AS col2 FROM tab2 AS cor0
----
-2193

skipif mysql # not compatible
query I rowsort label-1110
SELECT MAX ( + 43 ) * - 51 AS col2 FROM tab2 AS cor0
----
-2193

query I rowsort
SELECT - + col0 * col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-425
-4277
-714

query II rowsort
SELECT ALL - col0, - 34 / col1 * 16 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 87 * col0 FROM tab0 AS cor0
----
1305
7569
8439

query I rowsort
SELECT - + col0 + + 76 AS col1 FROM tab2 AS cor0 WHERE NULL <= - col1 + - - 11
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1115
SELECT - col2 DIV 1 * + 31 * + ( - + CAST( - 69 AS SIGNED ) ) + - col2 + - col2 * + 29 - - - col1 FROM tab0 cor0
----
-102024
-214732
-21711

skipif mysql # not compatible
query I rowsort label-1115
SELECT - col2 / 1 * + 31 * + ( - + CAST ( - 69 AS INTEGER ) ) + - col2 + - col2 * + 29 - - - col1 FROM tab0 cor0
----
-102024
-214732
-21711

query I rowsort
SELECT DISTINCT - ( 3 ) FROM tab0
----
-3

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

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

query I rowsort
SELECT 94 + col0 AS col0 FROM tab0
----
109
181
191

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT + 69 + + + COUNT( * ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT + 69 + + + COUNT ( * ) FROM tab1
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT + 64 + - COUNT( * ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT + 64 + - COUNT ( * ) FROM tab0
----
61

query I rowsort
SELECT + 71 + - 29 AS col0 FROM tab0
----
42
42
42

query I rowsort
SELECT + 67 * + col0 + + col2 AS col0 FROM tab2 AS cor0
----
3105
4328
5083

query I rowsort
SELECT ALL + col2 + - col1 * - ( - col1 ) FROM tab1 AS cor0 WHERE + - col1 IS NOT NULL OR + col1 <= + 45
----
-100
-2141
34

onlyif mysql # aggregate syntax: 
query I rowsort label-1125
SELECT + ( SUM( DISTINCT + - col2 ) ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-1125
SELECT + ( SUM ( DISTINCT + - col2 ) ) AS col0 FROM tab2
----
-121

query I rowsort
SELECT - + col1 * + ( + + col0 ) * + col1 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # aggregate syntax: 
query I rowsort label-1127
SELECT SUM( 65 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1127
SELECT SUM ( 65 ) AS col1 FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - col1 * + ( 64 ) AS col0 FROM tab0 AS cor0
----
-1344
-5184
-64

query II rowsort
SELECT ALL col1, + 25 * - col1 * + + ( - 98 ) + - 14 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
124936
67
164136
77
188636

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT DISTINCT - 63 * COUNT( * ) * + 6 col1 FROM tab2
----
-1134

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1130
SELECT DISTINCT - 63 * COUNT ( * ) * + 6 col1 FROM tab2
----
-1134

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

query I rowsort
SELECT + col1 * - 62 FROM tab0
----
-1302
-5022
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1133
SELECT ALL - 69 * + COUNT( * ) AS col2 FROM tab1
----
-207

skipif mysql # not compatible
query I rowsort label-1133
SELECT ALL - 69 * + COUNT ( * ) AS col2 FROM tab1
----
-207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1134
SELECT ALL - 64 DIV - + CAST( + 55 AS SIGNED ) FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL - 64 / - + CAST ( + 55 AS INTEGER ) FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 36 * col2 FROM tab0
----
1692
3564
360

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1139
SELECT DISTINCT - - 83 * COUNT( * ) * - 48 * + COUNT( * ) + + 80 FROM tab0 AS cor0
----
-35776

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - - 83 * COUNT ( * ) * - 48 * + COUNT ( * ) + + 80 FROM tab0 AS cor0
----
-35776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 col0, 86 + + - col2 AS col0 FROM tab1 cor0
----
-51
-10
-85
27
-91
18

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE col2 + + 78 IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1142
SELECT DISTINCT - + SUM( ALL - CAST( + col0 AS SIGNED ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT - + SUM ( ALL - CAST ( + col0 AS INTEGER ) ) FROM tab1 cor0
----
227

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1144
SELECT DISTINCT + - COUNT( * ) * - - ( - MAX( - 39 ) ) AS col1 FROM tab2 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1144
SELECT DISTINCT + - COUNT ( * ) * - - ( - MAX ( - 39 ) ) AS col1 FROM tab2 AS cor0
----
-117

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 * - 17 IS NOT NULL
----

query I rowsort
SELECT ( - - col1 ) * - col0 AS col2 FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT ALL + 68 + + col2 FROM tab2
----
108
126
91

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

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

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

query I rowsort
SELECT - - 53 FROM tab2 AS cor0 WHERE 46 = + - col1
----

query I rowsort
SELECT + 65 + - col1 FROM tab0 AS cor0 WHERE col0 <= ( - col1 )
----

query I rowsort
SELECT DISTINCT col0 - + col1 + + - col0 + 94 AS col2 FROM tab1 cor0
----
47
80
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * 71 * col1 AS col1, + 50 col2 FROM tab2 AS cor0
----
184671
50
318719
50
420959
50

onlyif mysql # DIV for integer division: 
query I rowsort label-1155
SELECT ALL + col0 * - col2 DIV + col2 + 72 AS col2 FROM tab2 AS cor0
----
-3
26
8

skipif mysql # not compatible
query I rowsort label-1155
SELECT ALL + col0 * - col2 / + col2 + 72 AS col2 FROM tab2 AS cor0
----
-3
26
8

query I rowsort
SELECT ALL - + 43 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1157
SELECT DISTINCT MAX( ALL col0 ) AS col1 FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-1157
SELECT DISTINCT MAX ( ALL col0 ) AS col1 FROM tab0
----
97

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) col2 FROM tab0 AS cor0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 * col0 col0 FROM tab0
----
1395
8091
9021

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1162
SELECT DISTINCT - COUNT( + - col2 ) AS col1, + 71 AS col1 FROM tab2
----
-3
71

skipif mysql # not compatible
query II rowsort label-1162
SELECT DISTINCT - COUNT ( + - col2 ) AS col1, + 71 AS col1 FROM tab2
----
-3
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1163
SELECT - 27 + + + 74 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1163
SELECT - 27 + + + 74 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
195

query I rowsort
SELECT - 33 + - + ( + + 38 ) AS col1 FROM tab1 AS cor0
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1165
SELECT ALL + - col0 * + - CAST( col0 AS SIGNED ) * + + col0 col1, 91 * + 6 + + col0 AS col2 FROM tab0 AS cor0
----
3375
561
658503
633
912673
643

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1165
SELECT ALL + - col0 * + - CAST ( col0 AS INTEGER ) * + + col0 col1, 91 * + 6 + + col0 AS col2 FROM tab0 AS cor0
----
3375
561
658503
633
912673
643

query I rowsort
SELECT DISTINCT + 18 + + col2 + + col1 * - col1 + - ( - col2 ) AS col0 FROM tab0
----
-403
-6449
215

query II rowsort
SELECT ALL + + 94 AS col1, + ( 5 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 1e24578f48a9b43766acfe50cbfba950

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

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

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

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

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

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

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

query I rowsort
SELECT + 68 * - 44 + - + 91 * - - 14 AS col2 FROM tab2 AS cor0
----
-4266
-4266
-4266

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + - SUM( + + ( - col2 ) ) * ( + ( - 33 ) ) * 30 FROM tab2 AS cor0
----
-119790

skipif mysql # not compatible
query I rowsort label-1173
SELECT + - SUM ( + + ( - col2 ) ) * ( + ( - 33 ) ) * 30 FROM tab2 AS cor0
----
-119790

query I rowsort
SELECT ALL - + col2 * - + 95 FROM tab2 AS cor0
----
2185
3800
5510

query I rowsort
SELECT DISTINCT 45 * - col0 AS col2 FROM tab1 AS cor0
----
-2295
-3825
-4095

onlyif mysql # DIV for integer division: 
query I rowsort label-1176
SELECT 44 - - - col1 * - col1 DIV col1 FROM tab0 cor0
----
125
45
65

skipif mysql # not compatible
query I rowsort label-1176
SELECT 44 - - - col1 * - col1 / col1 FROM tab0 cor0
----
125
45
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 43 NOT BETWEEN - 14 + 48 AND - + 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 90 - + - 65 FROM tab1 AS cor0
----
155
155
155

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1180
SELECT DISTINCT - COUNT( * ) + - 49 FROM tab2 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-1180
SELECT DISTINCT - COUNT ( * ) + - 49 FROM tab2 AS cor0
----
-52

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

query I rowsort
SELECT DISTINCT + 46 + - col0 AS col2 FROM tab0
----
-41
-51
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT - 97 + - MIN( + col0 ) FROM tab1
----
-148

skipif mysql # not compatible
query I rowsort label-1183
SELECT - 97 + - MIN ( + col0 ) FROM tab1
----
-148

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1184
SELECT - col1 AS col0, CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-1184
SELECT - col1 AS col0, CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

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

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

query I rowsort
SELECT DISTINCT + 27 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT NULL <> + + 28
----

query I rowsort
SELECT col2 * - col2 + + 33 FROM tab0 AS cor0
----
-2176
-67
-9768

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1191
SELECT - + CAST( + 58 AS SIGNED ) AS col1, + 80 + - col0 FROM tab2 AS cor0
----
-58
16
-58
34
-58
5

skipif mysql # not compatible
query II rowsort label-1191
SELECT - + CAST ( + 58 AS INTEGER ) AS col1, + 80 + - col0 FROM tab2 AS cor0
----
-58
16
-58
34
-58
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT DISTINCT SUM( - ( col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-1192
SELECT DISTINCT SUM ( - ( col2 ) ) FROM tab1 AS cor0
----
-223

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

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

query I rowsort
SELECT - - col2 * ( 2 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 43 * col2 + + - col2 + + + col0 FROM tab0
----
1989
4255
507

query I rowsort
SELECT col2 * + 15 FROM tab2
----
345
600
870

query II rowsort
SELECT ALL - 57, col2 FROM tab2
----
-57
23
-57
40
-57
58

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1199
SELECT ALL + 41 + - - CAST( + - col0 AS SIGNED ) + - col2 * col2 FROM tab2
----
-1623
-3398
-534

skipif mysql # not compatible
query I rowsort label-1199
SELECT ALL + 41 + - - CAST ( + - col0 AS INTEGER ) + - col2 * col2 FROM tab2
----
-1623
-3398
-534

query I rowsort
SELECT 47 * + ( - 77 ) AS col1 FROM tab0
----
-3619
-3619
-3619

query I rowsort
SELECT - col0 * + 36 AS col2 FROM tab2
----
-1656
-2304
-2700

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

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

query I rowsort
SELECT 76 * 55 FROM tab0 AS cor0
----
4180
4180
4180

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1204
SELECT - - 96 AS col1, COUNT( * ) DIV - - 79 FROM tab2 AS cor0
----
96
0

skipif mysql # not compatible
query II rowsort label-1204
SELECT - - 96 AS col1, COUNT ( * ) / - - 79 FROM tab2 AS cor0
----
96
0

query I rowsort
SELECT DISTINCT + 73 * 43 - col1 FROM tab0 AS cor0
----
3058
3118
3138

query I rowsort
SELECT ALL 35 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

onlyif mysql # aggregate syntax: 
query I rowsort label-1207
SELECT + SUM( ALL + col2 ) * COUNT( * ) FROM tab1 AS cor0 WHERE + col2 + + 90 = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1207
SELECT + SUM ( ALL + col2 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 + + 90 = NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1209
SELECT ALL + ( + col0 ) DIV 46 * - - 13 * - col2 FROM tab1 AS cor0
----
-1248
-767
-884

skipif mysql # not compatible
query I rowsort label-1209
SELECT ALL + ( + col0 ) / 46 * - - 13 * - col2 FROM tab1 AS cor0
----
-1248
-767
-884

query I rowsort
SELECT ALL - col2 * ( + col1 ) + - + 99 + - col2 AS col0 FROM tab0 AS cor0
----
-297
-319
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-1211
SELECT 74 * - + COUNT( * ) AS col2 FROM tab0
----
-222

skipif mysql # not compatible
query I rowsort label-1211
SELECT 74 * - + COUNT ( * ) AS col2 FROM tab0
----
-222

query I rowsort
SELECT 3 AS col1 FROM tab2 WHERE ( - col1 + col2 * col1 IS NOT NULL )
----
3
3
3

query I rowsort
SELECT - col2 * col0 - - + col1 + - - col2 AS col2 FROM tab0
----
-577
-839
-9503

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

skipif mysql # not compatible
query I rowsort label-1214
SELECT ALL + COUNT ( * ) / - + 36 AS col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT ALL - COUNT( DISTINCT + + 70 ) col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1215
SELECT ALL - COUNT ( DISTINCT + + 70 ) col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - col1 * - + col2 + + - col0 FROM tab1 AS cor0
----
1293
210
3105

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

query II rowsort
SELECT ALL + + 33 AS col0, + 16 AS col1 FROM tab2 AS cor0
----
33
16
33
16
33
16

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + 62 * col1 / col0 * - - col1 * - ( + col1 ) IS NULL
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + col2 ) + 42 + - col0 * - - ( col1 ) * + 67 + - 0 + - 72 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1221
SELECT + MAX( - col1 ) DIV + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1221
SELECT + MAX ( - col1 ) / + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > - col1 * + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1223
SELECT COUNT( * ) AS col2 FROM tab2 WHERE NULL BETWEEN 59 AND ( + 13 )
----
0

skipif mysql # not compatible
query I rowsort label-1223
SELECT COUNT ( * ) AS col2 FROM tab2 WHERE NULL BETWEEN 59 AND ( + 13 )
----
0

query I rowsort
SELECT + col0 + + 19 AS col1 FROM tab2
----
65
83
94

query III rowsort
SELECT DISTINCT 85 * + 45 AS col1, + col0 + + 6 * + + col1, - + col2 AS col2 FROM tab1
----
9 values hashing to ce30fa48130404ff3b0ea36be78faf78

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

query I rowsort
SELECT - + 25 + + 40 + + col0 * - col1 FROM tab2 AS cor0
----
-2331
-4913
-5010

query I rowsort
SELECT + col0 * - col2 + - 45 AS col1 FROM tab1 cor0
----
-4941
-5060
-6233

onlyif mysql # aggregate syntax: 
query I rowsort label-1229
SELECT ALL COUNT( * ) + - - 13 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-1229
SELECT ALL COUNT ( * ) + - - 13 FROM tab2
----
16

query II rowsort
SELECT col1 AS col2, + col1 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1231
SELECT SUM( ALL - 18 ) col2 FROM tab0
----
-54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1231
SELECT SUM ( ALL - 18 ) col2 FROM tab0
----
-54

query I rowsort
SELECT DISTINCT - 3 + - - 85 AS col2 FROM tab0
----
82

query I rowsort
SELECT - col1 - - col1 + + 43 AS col0 FROM tab1 AS cor0
----
43
43
43

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - + col2 AND col1
----

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

query I rowsort
SELECT - 81 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col0 * 36 * - + 8 FROM tab1
----
-14688
-24480
-26208

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

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

query I rowsort
SELECT DISTINCT 4 * - + col0 FROM tab0
----
-348
-388
-60

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 + - col0 <= ( - 39 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1241
SELECT col1 DIV col2 * + - col1 FROM tab2
----
-102
-67
-77

skipif mysql # not compatible
query I rowsort label-1241
SELECT col1 / col2 * + - col1 FROM tab2
----
-102
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1242
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) AS col0 FROM tab1
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1243
SELECT 33 / - CAST( NULL AS SIGNED ) * - col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1243
SELECT 33 / - CAST ( NULL AS INTEGER ) * - col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1244
SELECT - MIN( + col0 ) * + 19 AS col0 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-1244
SELECT - MIN ( + col0 ) * + 19 AS col0 FROM tab0
----
-285

query I rowsort
SELECT col1 + - 23 FROM tab1 AS cor0 WHERE NOT 62 IS NULL
----
-18
-9
24

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 44 col0 FROM tab2
----
-2024
-2816
-3300

query I rowsort
SELECT - 90 * - - col0 FROM tab2
----
-4140
-5760
-6750

query I rowsort
SELECT DISTINCT col2 + ( + 16 ) AS col1 FROM tab0
----
115
26
63

onlyif mysql # aggregate syntax: 
query II rowsort label-1252
SELECT DISTINCT 17, 10 + + COUNT( - col0 ) AS col2 FROM tab1 AS cor0
----
17
13

skipif mysql # not compatible
query II rowsort label-1252
SELECT DISTINCT 17, 10 + + COUNT ( - col0 ) AS col2 FROM tab1 AS cor0
----
17
13

query I rowsort
SELECT + 7 + + col1 / col1 + - col1 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + - 42 + + + 83 + - 7 + - col2 + 39 - - col1 AS col1 FROM tab1 AS cor0
----
-9
19
52

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

query I rowsort
SELECT DISTINCT - 91 * col2 FROM tab1
----
-5369
-6188
-8736

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1260
SELECT DISTINCT SUM( + col2 ) + COUNT( - - 60 ) FROM tab2
----
124

skipif mysql # not compatible
query I rowsort label-1260
SELECT DISTINCT SUM ( + col2 ) + COUNT ( - - 60 ) FROM tab2
----
124

query III rowsort
SELECT * FROM tab1 WHERE + 49 * - col1 + - col0 <> + 14 * - - ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + 57 AS col0 FROM tab0 WHERE ( NULL IS NULL )
----
57

query I rowsort
SELECT - 79 FROM tab0 WHERE - col2 + col2 + 99 + + col0 / - col1 IS NOT NULL
----
-79
-79
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + + col0 col1 FROM tab0 AS cor0
----
174
194
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT ALL + 53 * 73 + + + MIN( 96 ) + 87 AS col2 FROM tab2 cor0
----
4052

skipif mysql # not compatible
query I rowsort label-1266
SELECT ALL + 53 * 73 + + + MIN ( 96 ) + 87 AS col2 FROM tab2 cor0
----
4052

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1268
SELECT + 52 * COUNT( * ) + - - COUNT( * ) + + ( + - CAST( - COUNT( ALL + + col0 ) AS SIGNED ) ) FROM tab2 AS cor0 WHERE + col1 * + col1 - - col2 IS NOT NULL
----
162

skipif mysql # not compatible
query I rowsort label-1268
SELECT + 52 * COUNT ( * ) + - - COUNT ( * ) + + ( + - CAST ( - COUNT ( ALL + + col0 ) AS INTEGER ) ) FROM tab2 AS cor0 WHERE + col1 * + col1 - - col2 IS NOT NULL
----
162

onlyif mysql # aggregate syntax: 
query II rowsort label-1269
SELECT DISTINCT COUNT( ALL - + col2 ) + - - 36 col0, COUNT( * ) FROM tab0
----
39
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1269
SELECT DISTINCT COUNT ( ALL - + col2 ) + - - 36 col0, COUNT ( * ) FROM tab0
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1270
SELECT DISTINCT - + ( MIN( ALL - - 59 ) ) - + 76 AS col2 FROM tab0 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-1270
SELECT DISTINCT - + ( MIN ( ALL - - 59 ) ) - + 76 AS col2 FROM tab0 cor0
----
-135

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1272
SELECT + - MIN( DISTINCT col0 ) + COUNT( * ) AS col2, COUNT( * ) FROM tab2 AS cor0 WHERE - col0 * + 34 / + col1 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1272
SELECT + - MIN ( DISTINCT col0 ) + COUNT ( * ) AS col2, COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 * + 34 / + col1 IS NULL
----
NULL
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1274
SELECT + CAST( + - col0 AS SIGNED ) AS col1, col0 AS col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-1274
SELECT + CAST ( + - col0 AS INTEGER ) AS col1, col0 AS col0 FROM tab1 cor0
----
-51
51
-85
85
-91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col1 ) AS col2, 74 + + col2 * + + 64 col2 FROM tab0 AS cor0
----
1
6410
21
714
81
3082

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

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

query I rowsort
SELECT + + 17 FROM tab0 WHERE NOT NULL = - 84
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1278
SELECT + col2 AS col0 FROM tab2 WHERE NOT + CAST( - + 35 AS DECIMAL ) / - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1278
SELECT + col2 AS col0 FROM tab2 WHERE NOT + CAST ( - + 35 AS REAL ) / - - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1279
SELECT ALL + MIN( DISTINCT - col1 ) DIV + - CAST( - 5 AS SIGNED ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-1279
SELECT ALL + MIN ( DISTINCT - col1 ) / + - CAST ( - 5 AS INTEGER ) FROM tab0
----
-16

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 13 * + 75 / + col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT DISTINCT MAX( + 88 ) * - + SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
-17160

skipif mysql # not compatible
query I rowsort label-1283
SELECT DISTINCT MAX ( + 88 ) * - + SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
-17160

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

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

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

query I rowsort
SELECT ALL - 85 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8ebc8ffafb1517ea04e3a6fc4059d88a

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

query I rowsort
SELECT DISTINCT - ( + - col2 ) + - 35 FROM tab0 AS cor0
----
-25
12
64

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

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

query I rowsort
SELECT - - 0 * + 99 * + 23 + - col2 AS col0 FROM tab1 AS cor0
----
-59
-68
-96

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

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

query I rowsort
SELECT + 87 * - col2 * - + 10 + ( + col1 ) FROM tab2 AS cor0
----
20061
34877
50527

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

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

query I rowsort
SELECT ALL - 77 * + col0 + - 85 FROM tab2 AS cor0
----
-3627
-5013
-5860

onlyif mysql # aggregate syntax: 
query I rowsort label-1295
SELECT DISTINCT - SUM( DISTINCT + - col2 ) * + COUNT( * ) FROM tab2 cor0
----
363

skipif mysql # not compatible
query I rowsort label-1295
SELECT DISTINCT - SUM ( DISTINCT + - col2 ) * + COUNT ( * ) FROM tab2 cor0
----
363

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1297
SELECT DISTINCT + 30 + ( - MIN( DISTINCT - ( + - col2 ) ) ), + 99 col0 FROM tab2
----
7
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1297
SELECT DISTINCT + 30 + ( - MIN ( DISTINCT - ( + - col2 ) ) ), + 99 col0 FROM tab2
----
7
99

query I rowsort
SELECT ALL 60 + col1 * - ( 12 ) AS col2 FROM tab1
----
-108
-504
0

query I rowsort
SELECT ALL + 48 FROM tab1 AS cor0 WHERE NULL IS NULL
----
48
48
48

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

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

query I rowsort
SELECT - col0 * - 1 + + - 6 + col2 FROM tab2 AS cor0
----
127
63
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1302
SELECT - MIN( - col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-1302
SELECT - MIN ( - col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT - - 25 AS col1 FROM tab2 cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1304
SELECT - CAST( - ( - col2 ) AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT NULL IN ( - + col0 ) AND NOT + col2 - - 30 <= - - col0 * + 77 * - 44 - + col0
----

skipif mysql # not compatible
query I rowsort label-1304
SELECT - CAST ( - ( - col2 ) AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT NULL IN ( - + col0 ) AND NOT + col2 - - 30 <= - - col0 * + 77 * - 44 - + col0
----

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

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT + col1 / + 26 <= + col0
----

query I rowsort
SELECT DISTINCT col2 - - - 22 FROM tab0 AS cor0 WHERE NULL < NULL
----

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

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

query I rowsort
SELECT DISTINCT 65 * + + col1 * - - 94 AS col0 FROM tab0
----
128310
494910
6110

query I rowsort
SELECT DISTINCT + 58 AS col1 FROM tab0, tab1 AS cor0 WHERE NULL IS NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1312
SELECT col0 * + CAST( - col2 AS SIGNED ) * + 35 FROM tab2
----
-152250
-37030
-89600

skipif mysql # not compatible
query I rowsort label-1312
SELECT col0 * + CAST ( - col2 AS INTEGER ) * + 35 FROM tab2
----
-152250
-37030
-89600

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1314
SELECT + 77 DIV SUM( ALL 67 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1314
SELECT + 77 / SUM ( ALL 67 ) AS col0 FROM tab1
----
0

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1319
SELECT col1 AS col0, CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
51
46
67
75
77
64

skipif mysql # not compatible
query II rowsort label-1319
SELECT col1 AS col0, CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-1320
SELECT + MIN( + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1320
SELECT + MIN ( + - col1 ) FROM tab0
----
-81

query I rowsort
SELECT 4 * col2 AS col2 FROM tab2
----
160
232
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * - col1 + - 51 col2, - col2 AS col1 FROM tab2
----
-1224
-23
-3131
-40
-3937
-58

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

skipif mysql # not compatible
query I rowsort label-1323
SELECT ALL + 13 * - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT col2 * + col1 * - 3 + - ( - - ( + col1 ) ) + + 66 + - 6 FROM tab1 cor0
----
-3986
-830
-9575

onlyif mysql # DIV for integer division: 
query I rowsort label-1326
SELECT 57 DIV + ( - - 90 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1326
SELECT 57 / + ( - - 90 ) FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT + 49 * col2 FROM tab1
----
2891
3332
4704

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col1 BETWEEN 38 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1331
SELECT DISTINCT 96 * - + COUNT( ALL - 94 ) + - + 40, - MAX( DISTINCT + col0 ) col1 FROM tab0
----
-328
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1331
SELECT DISTINCT 96 * - + COUNT ( ALL - 94 ) + - + 40, - MAX ( DISTINCT + col0 ) col1 FROM tab0
----
-328
-97

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

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

query I rowsort
SELECT DISTINCT col2 + 76 FROM tab2
----
116
134
99

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1335
SELECT ALL + + 84 - + 24 * 98 / SUM( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1335
SELECT ALL + + 84 - + 24 * 98 / SUM ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 INNER JOIN tab2 cor1 ON NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query II rowsort
SELECT - col0 * + + col2 + 26 AS col2, + 12 FROM tab1 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT + + ( + + 55 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT ALL + - col0 * + 92 FROM tab2 cor0
----
-4232
-5888
-6900

query I rowsort
SELECT DISTINCT + 58 * col1 AS col0 FROM tab0 cor0
----
1218
4698
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1341
SELECT DISTINCT - MAX( ALL - col0 ) DIV COUNT( * ) AS col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1341
SELECT DISTINCT - MAX ( ALL - col0 ) / COUNT ( * ) AS col1 FROM tab2 AS cor0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT - COUNT( * ) * + 59 FROM tab1 AS cor0
----
-177

skipif mysql # not compatible
query I rowsort label-1343
SELECT - COUNT ( * ) * + 59 FROM tab1 AS cor0
----
-177

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

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

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

skipif mysql # not compatible
query I rowsort label-1345
SELECT MAX ( ALL 95 ) FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT + - 66 * + MAX( ALL + 83 ) FROM tab0 AS cor0
----
-5478

skipif mysql # not compatible
query I rowsort label-1346
SELECT + - 66 * + MAX ( ALL + 83 ) FROM tab0 AS cor0
----
-5478

query I rowsort
SELECT - 24 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 54 IS NULL
----
1944
24
504

query I rowsort
SELECT DISTINCT - 21 * + 58 * + + 50 AS col1 FROM tab2
----
-60900

query II rowsort
SELECT 4 AS col1, col0 AS col1 FROM tab0
----
4
15
4
87
4
97

query I rowsort
SELECT - col0 * - + 49 FROM tab1
----
2499
4165
4459

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1351
SELECT DISTINCT - CAST( + 25 AS SIGNED ) FROM tab2 WHERE NOT - 26 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1351
SELECT DISTINCT - CAST ( + 25 AS INTEGER ) FROM tab2 WHERE NOT - 26 IS NOT NULL
----

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

query II rowsort
SELECT DISTINCT col1, - col1 + - + col1 FROM tab2
----
51
-102
67
-134
77
-154

query II rowsort
SELECT - + col0 AS col2, + col2 - - ( col2 ) AS col1 FROM tab0 AS cor0
----
-15
94
-87
20
-97
198

onlyif mysql # aggregate syntax: 
query II rowsort label-1355
SELECT COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1355
SELECT COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - col0 - + + col2 - - col1 col2 FROM tab1
----
-37
-44
-80

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL + ( - COUNT( * ) ) + + - COUNT( * ) col0 FROM tab2 AS cor0
----
-6

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

query I rowsort
SELECT + 46 * + col1 * 5 - - 85 AS col1 FROM tab1 AS cor0 WHERE 7 * 70 + + ( 23 ) = col2 * 9 * - - col0 / col1 - + 90
----

query I rowsort
SELECT DISTINCT + col2 * - + 45 - - 54 FROM tab1 AS cor0
----
-2601
-3006
-4266

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1362
SELECT + 35 * MAX( DISTINCT + col2 ) + + - 10 AS col1 FROM tab0 AS cor0
----
3455

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 35 * MAX ( DISTINCT + col2 ) + + - 10 AS col1 FROM tab0 AS cor0
----
3455

query I rowsort
SELECT ALL col0 * - - 92 * - + ( + - 92 ) AS col2 FROM tab0 AS cor0
----
126960
736368
821008

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1364
SELECT col2 * CAST( - - 25 AS SIGNED ) FROM tab0 AS cor0
----
1175
2475
250

skipif mysql # not compatible
query I rowsort label-1364
SELECT col2 * CAST ( - - 25 AS INTEGER ) FROM tab0 AS cor0
----
1175
2475
250

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( 60 )
----

query I rowsort
SELECT + col0 - - col0 * + col1 FROM tab0 AS cor0
----
1230
1914
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - ( col0 ) col1, + 10 FROM tab1 AS cor0
----
51
10
85
10
91
10

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 35 + + - ( + col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query III rowsort label-1369
SELECT 32 AS col0, + ( - 23 ) DIV + + col0, + col2 FROM tab0 cor0
----
9 values hashing to 7f9f2e2ae03de8bbc107952300dbfdf3

skipif mysql # not compatible
query III rowsort label-1369
SELECT 32 AS col0, + ( - 23 ) / + + col0, + col2 FROM tab0 cor0
----
9 values hashing to 7f9f2e2ae03de8bbc107952300dbfdf3

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

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

query I rowsort
SELECT ALL + 98 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
98
98
98

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 NOT IN ( - 33 - - - col0, col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( + 57 )
----

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

skipif mysql # not compatible
query I rowsort label-1374
SELECT + 33 / + COUNT ( * ) + COUNT ( * ) AS col0 FROM tab0
----
14

query I rowsort
SELECT DISTINCT 42 + - col2 FROM tab1
----
-17
-26
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1376
SELECT ALL - COUNT( * ) AS col2 FROM tab1 WHERE + col2 <> ( - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-1376
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 WHERE + col2 <> ( - col1 )
----
-3

query I rowsort
SELECT + 52 FROM tab1 WHERE NOT ( col1 ) IS NULL
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT MAX( + 66 ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1378
SELECT MAX ( + 66 ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ALL ( - col2 ) + 8 * col1 AS col0 FROM tab0
----
-91
158
601

query I rowsort
SELECT col0 FROM tab2 WHERE NOT ( + 99 / + col1 ) > 71
----
46
64
75

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

skipif mysql # not compatible
query I rowsort label-1381
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT col0 * col1 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 * + col0 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 43 * 13 )
----

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) > ( 8 - + 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1389
SELECT DISTINCT + CAST( AVG ( col1 ) AS SIGNED ) + - 43 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT + CAST ( AVG ( col1 ) AS INTEGER ) + - 43 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1390
SELECT - MIN( 54 ) AS col0 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-1390
SELECT - MIN ( 54 ) AS col0 FROM tab0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-1391
SELECT 58 DIV - col2 - 70 AS col1 FROM tab0
----
-70
-71
-75

skipif mysql # not compatible
query I rowsort label-1391
SELECT 58 / - col2 - 70 AS col1 FROM tab0
----
-70
-71
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1393
SELECT 27 DIV + 31 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1393
SELECT 27 / + 31 FROM tab1
----
0
0
0

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

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

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

query I rowsort
SELECT - 32 * col1 AS col2 FROM tab0 WHERE col1 * - 31 NOT BETWEEN - 72 AND NULL
----
-2592
-672

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

query I rowsort
SELECT DISTINCT - 48 + + col2 FROM tab0 AS cor0
----
-1
-38
51

query I rowsort
SELECT ALL - + 31 AS col0 FROM tab2 cor0
----
-31
-31
-31

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 9 * col1 col1 FROM tab1 AS cor0 WHERE + col2 * col0 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1404
SELECT DISTINCT + - COUNT( 83 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1404
SELECT DISTINCT + - COUNT ( 83 ) FROM tab1 cor0
----
-3

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

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

query I rowsort
SELECT - col1 * - col0 AS col2 FROM tab0 AS cor0 WHERE + 3 IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1407
SELECT COUNT( * ) * - 96 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-1407
SELECT COUNT ( * ) * - 96 FROM tab0
----
-288

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1409
SELECT ALL 96 - col2 FROM tab2 WHERE NOT - CAST( 43 AS SIGNED ) BETWEEN NULL AND - col1
----
38
56
73

skipif mysql # not compatible
query I rowsort label-1409
SELECT ALL 96 - col2 FROM tab2 WHERE NOT - CAST ( 43 AS INTEGER ) BETWEEN NULL AND - col1
----
38
56
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT DISTINCT COUNT( ALL 16 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1410
SELECT DISTINCT COUNT ( ALL 16 ) AS col2 FROM tab1
----
3

query III rowsort
SELECT * FROM tab2 WHERE - col2 <= col0 / col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - 82 * col1 FROM tab0
----
-1635
-6627
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + + 81 col0 FROM tab2
----
127
145
156

query I rowsort
SELECT 80 - col2 + col0 AS col2 FROM tab1
----
103
106
35

query I rowsort
SELECT col2 * - col1 FROM tab2 WHERE ( - ( 70 ) + - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1416
SELECT DISTINCT + 77 - - MIN( ALL col2 ) col1 FROM tab1
----
136

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1416
SELECT DISTINCT + 77 - - MIN ( ALL col2 ) col1 FROM tab1
----
136

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1417
SELECT ALL CAST( NULL AS SIGNED ) * 14 + - 90 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1417
SELECT ALL CAST ( NULL AS INTEGER ) * 14 + - 90 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1418
SELECT - SUM( DISTINCT - 94 ) AS col1 FROM tab2 cor0
----
94

skipif mysql # not compatible
query I rowsort label-1418
SELECT - SUM ( DISTINCT - 94 ) AS col1 FROM tab2 cor0
----
94

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 41 col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1421
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, 68 + - 56 FROM tab2 AS cor0
----
NULL
12
NULL
12
NULL
12

skipif mysql # not compatible
query II rowsort label-1421
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, 68 + - 56 FROM tab2 AS cor0
----
NULL
12
NULL
12
NULL
12

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, + col0 + + + col1 * - col0 col0 FROM tab1 AS cor0
----
14
-663
47
-4186
5
-340

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1426
SELECT DISTINCT col1, col2 DIV - 77 * 71 col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1426
SELECT DISTINCT col1, col2 / - 77 * 71 col1 FROM tab2 AS cor0
----
51
0
67
0
77
0

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + 43 + - 65 + + col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT 55 * - 12 + - 87 AS col2 FROM tab1 AS cor0
----
-747

query I rowsort
SELECT ALL - 26 * + col2 FROM tab1
----
-1534
-1768
-2496

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1432
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE + col2 * + CAST( NULL AS SIGNED ) * 53 + CAST( - col1 AS SIGNED ) / - 81 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1432
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE + col2 * + CAST ( NULL AS INTEGER ) * 53 + CAST ( - col1 AS INTEGER ) / - 81 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( 0 ) NOT IN ( 91 + + col0 * - col1 )
----

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

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

query I rowsort
SELECT ALL 3 FROM tab1 WHERE NOT + - col2 <= ( NULL )
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN NULL AND NULL
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1441
SELECT * FROM tab0 AS cor0 WHERE ( - - col2 - ( - 52 ) * - ( + CAST( 23 AS SIGNED ) ) IN ( - col0 / col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1441
SELECT * FROM tab0 AS cor0 WHERE ( - - col2 - ( - 52 ) * - ( + CAST ( 23 AS INTEGER ) ) IN ( - col0 / col0 ) )
----

query I rowsort
SELECT DISTINCT col2 + 79 FROM tab2 AS cor0
----
102
119
137

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

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

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

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

query I rowsort
SELECT ALL - 91 + + col1 FROM tab1 AS cor0
----
-44
-77
-86

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

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

query I rowsort
SELECT + 74 - + col0 FROM tab0 AS cor0
----
-13
-23
59

query I rowsort
SELECT - + col2 - + + col2 + - + 79 * + - 10 FROM tab2 AS cor0
----
674
710
744

query I rowsort
SELECT + + col0 + 53 FROM tab0 AS cor0
----
140
150
68

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( ( + ( + col2 ) + + 87 ) IN ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE ( + - col2 / 2 ) NOT BETWEEN ( NULL ) AND + + 8
----

query I rowsort
SELECT DISTINCT + 66 * 20 AS col2 FROM tab2
----
1320

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT DISTINCT ( + - 33 ) AS col1, COUNT( * ) FROM tab0
----
-33
3

skipif mysql # not compatible
query II rowsort label-1456
SELECT DISTINCT ( + - 33 ) AS col1, COUNT ( * ) FROM tab0
----
-33
3

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

query II rowsort
SELECT + 25 AS col1, - 61 + + 48 AS col1 FROM tab0 cor0
----
25
-13
25
-13
25
-13

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

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

query I rowsort
SELECT ALL - 98 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-98
-98
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT MAX( + 76 ) FROM tab1
----
76

skipif mysql # not compatible
query I rowsort label-1462
SELECT MAX ( + 76 ) FROM tab1
----
76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1463
SELECT + CAST( - 76 AS SIGNED ) DIV + 28 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-1463
SELECT + CAST ( - 76 AS INTEGER ) / + 28 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 * - col0 - + col1 * - 77 NOT IN ( - 96 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2, 14 col1 FROM tab2 cor0
----
1600
14
3364
14
529
14

query I rowsort
SELECT - 75 * - 2 AS col1 FROM tab0 AS cor0
----
150
150
150

query I rowsort
SELECT DISTINCT + 30 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( + col0 )
----

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> 43 / - 18 - - 41
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1471
SELECT DISTINCT - SUM( ALL col2 ) * 82 DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
3307

skipif mysql # not compatible
query I rowsort label-1471
SELECT DISTINCT - SUM ( ALL col2 ) * 82 / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
3307

query I rowsort
SELECT 91 + - - 81 FROM tab0
----
172
172
172

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT DISTINCT - + 57 + COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-54

skipif mysql # not compatible
query I rowsort label-1473
SELECT DISTINCT - + 57 + COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
-54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1474
SELECT col0, + CAST( col1 AS SIGNED ) DIV col1 + + + col2 DIV col1 + col2 col1 FROM tab1
----
51
103
85
71
91
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1474
SELECT col0, + CAST ( col1 AS INTEGER ) / col1 + + + col2 / col1 + col2 col1 FROM tab1
----
51
103
85
71
91
70

query I rowsort
SELECT ALL ( col0 ) + + 45 FROM tab0
----
132
142
60

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

query I rowsort
SELECT ALL - 15 + + + col1 AS col0 FROM tab1
----
-1
-10
32

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

skipif mysql # not compatible
query I rowsort label-1478
SELECT DISTINCT - + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - 53 + + col1 * - 26 FROM tab1 AS cor0
----
-1275
-183
-417

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1481
SELECT 54 - COUNT( * ) col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1481
SELECT 54 - COUNT ( * ) col2 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1482
SELECT ALL MAX( - 32 ) DIV - - 35 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1482
SELECT ALL MAX ( - 32 ) / - - 35 AS col2 FROM tab0
----
0

query I rowsort
SELECT DISTINCT + col2 + - col0 * - col1 * - col0 AS col1 FROM tab2
----
-107893
-315352
-376817

onlyif mysql # aggregate syntax: 
query I rowsort label-1484
SELECT + COUNT( ALL - + 19 ) * COUNT( * ) + COUNT( * ) AS col0 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-1484
SELECT + COUNT ( ALL - + 19 ) * COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-1485
SELECT DISTINCT 63 - COUNT( * ) FROM tab1 cor0
----
60

skipif mysql # not compatible
query I rowsort label-1485
SELECT DISTINCT 63 - COUNT ( * ) FROM tab1 cor0
----
60

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1487
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( - col0 * 93 )
----

skipif mysql # not compatible
query III rowsort label-1487
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - col0 * 93 )
----

query I rowsort
SELECT DISTINCT col0 - col2 + - 94 FROM tab0 AS cor0
----
-126
-17
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 87 + + 24 + - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1490
SELECT DISTINCT col1 / + ( - - col2 ) - + 61 - - col0 + + CAST( NULL AS SIGNED ) * + - col1 * ( + col2 ) + + 95 * col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT col1 / + ( - - col2 ) - + 61 - - col0 + + CAST ( NULL AS INTEGER ) * + - col1 * ( + col2 ) + + 95 * col0 AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 / + - 81 * - + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 88 = NULL
----

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

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

query I rowsort
SELECT + 63 * - - col1 FROM tab0
----
1323
5103
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1495
SELECT 31 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1495
SELECT 31 / col2 FROM tab1
----
0
0
0

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

query I rowsort
SELECT - col0 * 54 AS col1 FROM tab1
----
-2754
-4590
-4914

query I rowsort
SELECT col0 * - ( + + col1 ) FROM tab0
----
-1215
-1827
-97

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT ( + col0 <> + col2 + + col0 )
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1503
SELECT - - col1 DIV + col0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-1503
SELECT - - col1 / + col0, col0 FROM tab1 AS cor0
----
0
51
0
85
0
91

query I rowsort
SELECT + 44 * + 16 * + col0 + col0 FROM tab1 AS cor0
----
35955
59925
64155

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

query I rowsort
SELECT DISTINCT - 86 * + - 2 + - 58 AS col2 FROM tab2 AS cor0
----
114

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

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

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

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

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

query I rowsort
SELECT col0 * - + 23 + + ( + 76 ) + + 81 FROM tab0
----
-1844
-188
-2074

query I rowsort
SELECT 43 * col0 * + - ( + - 33 ) + - 56 + + + col0 FROM tab0
----
123484
137684
21244

query I rowsort
SELECT ALL - col0 + 52 - 2 * - 20 * + col2 * col2 + col0 FROM tab0
----
392092
4052
88412

onlyif mysql # aggregate syntax: 
query I rowsort label-1513
SELECT DISTINCT MIN( ALL + col1 ) * + 8 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1513
SELECT DISTINCT MIN ( ALL + col1 ) * + 8 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT - + 81 + + col1 AS col0 FROM tab2 AS cor0
----
-14
-30
-4

query I rowsort
SELECT + 86 + col2 AS col0 FROM tab0 AS cor0
----
133
185
96

query II rowsort
SELECT col2 + - - 85 AS col1, + col0 + + col2 AS col1 FROM tab1 AS cor0
----
144
144
153
159
181
147

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col2, - 89 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col0 <= + 6 * - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1520
SELECT DISTINCT - COUNT( DISTINCT + 0 ) + + - 67 AS col2 FROM tab1
----
-68

skipif mysql # not compatible
query I rowsort label-1520
SELECT DISTINCT - COUNT ( DISTINCT + 0 ) + + - 67 AS col2 FROM tab1
----
-68

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - 54 + col1 NOT IN ( + 48 + col1, - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1522
SELECT ALL - COUNT( * ) DIV 56 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1522
SELECT ALL - COUNT ( * ) / 56 AS col2 FROM tab1 AS cor0
----
0

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1524
SELECT DISTINCT - 2 DIV col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
10
47
97

skipif mysql # not compatible
query I rowsort label-1524
SELECT DISTINCT - 2 / col1 + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 IS NULL
----
10
47
97

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1526
SELECT col1 DIV - - 72 AS col2, - 94 AS col1 FROM tab2
----
0
-94
0
-94
1
-94

skipif mysql # not compatible
query II rowsort label-1526
SELECT col1 / - - 72 AS col2, - 94 AS col1 FROM tab2
----
0
-94
0
-94
1
-94

query I rowsort
SELECT col2 FROM tab0 WHERE NOT 56 IS NOT NULL
----

query I rowsort
SELECT ALL - AVG ( col1 ) AS col1 FROM tab1 WHERE NOT - col2 - + col2 / + col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT + 13 * + COUNT( 84 ) * MAX( 30 ) FROM tab1
----
1170

skipif mysql # not compatible
query I rowsort label-1529
SELECT + 13 * + COUNT ( 84 ) * MAX ( 30 ) FROM tab1
----
1170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 * + 56 col1, col0 AS col0 FROM tab2
----
2856
46
3752
75
4312
64

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1532
SELECT ALL MAX( + + col0 ) DIV + COUNT( * ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL MAX ( + + col0 ) / + COUNT ( * ) FROM tab0 AS cor0
----
32

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 72 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col2 ) * - 74 + - col1 + - col1 = ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1538
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----
0

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

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

query I rowsort
SELECT + col1 + - 84 FROM tab2 AS cor0
----
-17
-33
-7

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

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

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

query II rowsort
SELECT 25 * - + ( - col1 ) AS col1, + col1 AS col1 FROM tab2 AS cor0
----
1275
51
1675
67
1925
77

query II rowsort
SELECT + - col2 AS col0, col2 FROM tab0 WHERE + 46 IS NULL
----

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

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

query I rowsort
SELECT col0 * + col0 * - - col2 FROM tab0
----
10575
75690
931491

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

query II rowsort
SELECT - 94 AS col2, + col0 * - 15 AS col2 FROM tab2
----
-94
-1125
-94
-690
-94
-960

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

query I rowsort
SELECT DISTINCT + 88 + + 77 FROM tab2
----
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 55 + + - col1 col1 FROM tab1
----
-102
-60
-69

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

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

query I rowsort
SELECT ALL + 82 - col0 FROM tab0 WHERE + - col0 >= NULL
----

query I rowsort
SELECT ALL ( + ( - 91 ) ) FROM tab2 cor0
----
-91
-91
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT ALL - col2 * - + col1 * + 73 + 37 DIV - - col0 AS col0 FROM tab2 AS cor0
----
224840
283678
85629

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL - col2 * - + col1 * + 73 + 37 / - - col0 AS col0 FROM tab2 AS cor0
----
224840
283678
85629

query I rowsort
SELECT + 1 AS col2 FROM tab0 AS cor0 WHERE NULL IN ( + col0 / + - ( - col1 ) + - 53, + 90 )
----

query II rowsort
SELECT ALL + + col1, - col0 * - col1 AS col2 FROM tab0 AS cor0
----
1
97
21
1827
81
1215

query I rowsort
SELECT DISTINCT 72 * + col2 * + col1 FROM tab1 AS cor0
----
21240
230112
96768

query I rowsort
SELECT + col0 + 80 AS col1 FROM tab2 AS cor0
----
126
144
155

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT ALL - COUNT( * ) + + 42 col1 FROM tab1
----
39

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

query I rowsort
SELECT col2 * - col1 + - col0 AS col1 FROM tab1
----
-1395
-3287
-380

query I rowsort
SELECT ( + - col1 ) + + + col0 FROM tab0
----
-66
66
96

query I rowsort
SELECT 26 * 92 AS col1 FROM tab0
----
2392
2392
2392

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1569
SELECT - - COUNT( ALL col0 ), COUNT( ALL - 54 ) AS col0 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-1569
SELECT - - COUNT ( ALL col0 ), COUNT ( ALL - 54 ) AS col0 FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 col0 FROM tab1 AS cor0 WHERE NOT - 76 * + col0 IS NULL
----
196
2209
25

query I rowsort
SELECT ALL - 82 * - - col0 FROM tab0
----
-1230
-7134
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT DISTINCT COUNT( DISTINCT 79 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1572
SELECT DISTINCT COUNT ( DISTINCT 79 ) FROM tab0
----
1

query I rowsort
SELECT DISTINCT + 49 * - col1 * 0 * - - 36 FROM tab2
----
0

query I rowsort
SELECT ALL 90 * 9 FROM tab0
----
810
810
810

onlyif mysql # DIV for integer division: 
query II rowsort label-1575
SELECT + ( ( + - col0 ) ) DIV - col0 col1, + ( ( 96 ) ) AS col0 FROM tab2
----
1
96
1
96
1
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1575
SELECT + ( ( + - col0 ) ) / - col0 col1, + ( ( 96 ) ) AS col0 FROM tab2
----
1
96
1
96
1
96

query I rowsort
SELECT DISTINCT - col2 * - 25 AS col2 FROM tab2
----
1000
1450
575

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN + + 18 AND 1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query II rowsort label-1579
SELECT DISTINCT + 21 AS col0, COUNT ( * ) * - 84 AS col0 FROM tab1 AS cor0
----
21
-252

query II rowsort
SELECT col2, - 82 * + - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - col0 FROM tab2 WHERE col1 <> col2 + + 21
----
-46
-64
-75

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1583
SELECT - 95 DIV + CAST( - 61 AS SIGNED ) FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1583
SELECT - 95 / + CAST ( - 61 AS INTEGER ) FROM tab2 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1584
SELECT DISTINCT + 12 / + col2 + - + col2 FROM tab2 AS cor0 WHERE NOT - 80 + + - 52 / - 70 * col0 + - CAST( + col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT + 12 / + col2 + - + col2 FROM tab2 AS cor0 WHERE NOT - 80 + + - 52 / - 70 * col0 + - CAST ( + col1 AS REAL ) IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1585
SELECT - MIN ( DISTINCT - + col1 ) AS col0, + 5 col0 FROM tab0 AS cor0
----
81
5

query I rowsort
SELECT + 89 * 61 * + col0 + - col1 AS col2 FROM tab1 cor0
----
276865
461460
493992

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1587
SELECT - col1 DIV + ( - + ( CAST( ( + + col2 ) AS SIGNED ) ) ) + - col0, - 88 * - 52 col1 FROM tab0 AS cor0
----
-14
4576
-85
4576
-97
4576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1587
SELECT - col1 / + ( - + ( CAST ( ( + + col2 ) AS INTEGER ) ) ) + - col0, - 88 * - 52 col1 FROM tab0 AS cor0
----
-14
4576
-85
4576
-97
4576

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL >= + - col0 + - ( - 84 ) )
----

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

query I rowsort
SELECT + 87 * + - col1 FROM tab1 WHERE 9 NOT BETWEEN - col1 AND - col1 / + 30
----
-1218
-4089
-435

query I rowsort
SELECT DISTINCT ( + col0 ) * + 32 + - 78 AS col0 FROM tab1
----
1554
2642
2834

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

skipif mysql # not compatible
query I rowsort label-1592
SELECT - COUNT ( ALL col1 ) + + COUNT ( * ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1593
SELECT COUNT( * ) + 39 AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-1593
SELECT COUNT ( * ) + 39 AS col0 FROM tab1
----
42

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

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

query I rowsort
SELECT ALL + col0 - - - col1 * - - col2 AS col1 FROM tab1 AS cor0
----
-1293
-210
-3105

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

query I rowsort
SELECT ALL 44 - - + 23 AS col1 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-1598
SELECT + 71 + - SUM( DISTINCT 77 ) + - - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
20

skipif mysql # not compatible
query I rowsort label-1598
SELECT + 71 + - SUM ( DISTINCT 77 ) + - - 26 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
20

query I rowsort
SELECT 47 * + - 94 AS col0 FROM tab0
----
-4418
-4418
-4418

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT 95 * + - COUNT( * ) * 86 FROM tab1
----
-24510

skipif mysql # not compatible
query I rowsort label-1600
SELECT 95 * + - COUNT ( * ) * 86 FROM tab1
----
-24510

query I rowsort
SELECT DISTINCT + 22 * + 5 * - col2 AS col1 FROM tab0
----
-10890
-1100
-5170

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1603
SELECT ALL COUNT( * ) col1, 23 FROM tab1 AS cor0
----
3
23

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 73 * + - col1 AS col1, - 77 col0 FROM tab1
----
-1022
-77
-3431
-77
-365
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-1606
SELECT ALL + col0 * 81 DIV col2 FROM tab1
----
108
116
43

skipif mysql # not compatible
query I rowsort label-1606
SELECT ALL + col0 * 81 / col2 FROM tab1
----
108
116
43

query I rowsort
SELECT - col2 * + + 16 FROM tab0
----
-1584
-160
-752

onlyif mysql # aggregate syntax: 
query I rowsort label-1608
SELECT SUM( 84 ) AS col0 FROM tab2
----
252

skipif mysql # not compatible
query I rowsort label-1608
SELECT SUM ( 84 ) AS col0 FROM tab2
----
252

query I rowsort
SELECT col2 * col0 * - col0 * - col0 FROM tab1
----
12734496
36233375
51242828

query I rowsort
SELECT DISTINCT + col2 * ( 91 ) FROM tab1
----
5369
6188
8736

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT NULL BETWEEN - col1 + - 67 * + col2 AND 63
----

query I rowsort
SELECT + 38 + col0 AS col2 FROM tab0
----
125
135
53

query II rowsort
SELECT ALL - col1, col1 FROM tab0 AS cor0 WHERE NOT NULL = col0
----

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

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

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

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

query I rowsort
SELECT + + 56 * - + col1 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # DIV for integer division: 
query I rowsort label-1618
SELECT + col0 DIV - + 37 FROM tab1
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1618
SELECT + col0 / - + 37 FROM tab1
----
-1
-2
-2

query II rowsort
SELECT ( col0 ) AS col1, - 57 FROM tab2
----
46
-57
64
-57
75
-57

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

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

query I rowsort
SELECT DISTINCT 46 + - 38 FROM tab1
----
8

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

query I rowsort
SELECT + col0 * col0 * 2 * - col0 AS col2 FROM tab2
----
-194672
-524288
-843750

query I rowsort
SELECT + - 83 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d55748f39f403ec273099c0d87b0bfbb

query I rowsort
SELECT + 43 * - 41 AS col0 FROM tab0
----
-1763
-1763
-1763

query I rowsort
SELECT DISTINCT + 43 AS col0 FROM tab0 AS cor0 WHERE - col1 >= + - col2
----
43

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - col1 - + col2 IN ( + col2 + - 12 + col1 / - - ( col2 ) )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1630
SELECT MIN( - 58 ) AS col2 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-1630
SELECT MIN ( - 58 ) AS col2 FROM tab0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1631
SELECT DISTINCT - + CAST( - col1 AS SIGNED ) FROM tab2 WHERE + 48 + - col0 + - + col1 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1631
SELECT DISTINCT - + CAST ( - col1 AS INTEGER ) FROM tab2 WHERE + 48 + - col0 + - + col1 IS NOT NULL
----
51
67
77

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 60 + + col0 * - + col1 col0 FROM tab0
----
-1155
-1767
-37

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT - + MAX( ALL - ( col2 ) ) FROM tab1 cor0 WHERE NULL <= + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1635
SELECT - + MAX ( ALL - ( col2 ) ) FROM tab1 cor0 WHERE NULL <= + col2
----
NULL

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

query I rowsort
SELECT DISTINCT 28 * col1 + 54 + 7 AS col1 FROM tab0 AS cor0
----
2329
649
89

query I rowsort
SELECT - 3 + + + 10 AS col2 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT + col1 + - col2 * + - col1 * + + col1 FROM tab2 AS cor0
----
237237
260429
59874

onlyif mysql # aggregate syntax: 
query I rowsort label-1640
SELECT DISTINCT MAX( ALL - + ( + + 50 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1640
SELECT DISTINCT MAX ( ALL - + ( + + 50 ) ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL < NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT DISTINCT - + col0 DIV + col0 + + + col0 FROM tab0 AS cor0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-1642
SELECT DISTINCT - + col0 / + col0 + + + col0 FROM tab0 AS cor0
----
14
86
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1643
SELECT - COUNT( * ) * 94 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-282
NULL

skipif mysql # not compatible
query II rowsort label-1643
SELECT - COUNT ( * ) * 94 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-282
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 32 - + + col1, col2 col2 FROM tab2 AS cor0
----
-109
40
-83
23
-99
58

query I rowsort
SELECT - - 82 - + 18 FROM tab2 AS cor0
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-1646
SELECT ALL 36 * - 54 * - col1 + col2 + + 83 DIV + + 37 AS col1 FROM tab2 AS cor0
----
130308
149730
99169

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL 36 * - 54 * - col1 + col2 + + 83 / + + 37 AS col1 FROM tab2 AS cor0
----
130308
149730
99169

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - + 81 AND - col1 * - 54
----

query I rowsort
SELECT - 29 + - - col1 + + - 59 AS col1 FROM tab1 AS cor0
----
-41
-74
-83

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

query I rowsort
SELECT ALL col0 + - col1 + - col0 AS col0 FROM tab1
----
-14
-47
-5

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT DISTINCT COUNT( DISTINCT col0 ) DIV + 28 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT COUNT ( DISTINCT col0 ) / + 28 AS col1 FROM tab1
----
0

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

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

query I rowsort
SELECT ALL - 44 - - col0 FROM tab1
----
41
47
7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( 94 ) < + + col2
----
0

skipif mysql # not compatible
query I rowsort label-1658
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - ( 94 ) < + + col2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1659
SELECT DISTINCT 95 DIV + COUNT( * ) AS col2 FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-1659
SELECT DISTINCT 95 / + COUNT ( * ) AS col2 FROM tab1 cor0
----
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1660
SELECT ALL - ( CAST( + + col2 AS SIGNED ) ) AS col0, 18 FROM tab0 AS cor0
----
-10
18
-47
18
-99
18

skipif mysql # not compatible
query II rowsort label-1660
SELECT ALL - ( CAST ( + + col2 AS INTEGER ) ) AS col0, 18 FROM tab0 AS cor0
----
-10
18
-47
18
-99
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT ALL + COUNT( * ) * 49 FROM tab1
----
147

skipif mysql # not compatible
query I rowsort label-1661
SELECT ALL + COUNT ( * ) * 49 FROM tab1
----
147

query I rowsort
SELECT + - 5 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= - 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT 17 + + + COUNT( * ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-1666
SELECT 17 + + + COUNT ( * ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
26

query I rowsort
SELECT - + 39 FROM tab0 AS cor0 WHERE NOT NULL IN ( col1, - 5 * - col0 * col0 - + col0 + col0 * - 26 )
----

query I rowsort
SELECT ALL 64 FROM tab0, tab0 cor0
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

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

query I rowsort
SELECT ALL - ( + - col1 ) * + - col0 + - - col2 AS col0 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT ALL col2 + + + 14 AS col0 FROM tab1
----
110
73
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1672
SELECT COUNT( * ) * + SUM( - 15 ) * - 11 FROM tab1
----
1485

skipif mysql # not compatible
query I rowsort label-1672
SELECT COUNT ( * ) * + SUM ( - 15 ) * - 11 FROM tab1
----
1485

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 92 - - col0 * + 53 * - ( - - 97 ) col1 FROM tab0
----
-447185
-498684
-77070

query I rowsort
SELECT - - col0 + 56 + + 39 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL ( ( - 84 ) ) * col2 + + - col2 FROM tab2
----
-1955
-3400
-4930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1677
SELECT DISTINCT 27 * CAST( col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1269
2673
270

skipif mysql # not compatible
query I rowsort label-1677
SELECT DISTINCT 27 * CAST ( col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1269
2673
270

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1678
SELECT ALL + + 64 DIV - COUNT( col2 ) AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-1678
SELECT ALL + + 64 / - COUNT ( col2 ) AS col0 FROM tab1 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-1679
SELECT DISTINCT - 7 AS col2, + MAX( + col2 ) AS col0 FROM tab1 AS cor0
----
-7
96

skipif mysql # not compatible
query II rowsort label-1679
SELECT DISTINCT - 7 AS col2, + MAX ( + col2 ) AS col0 FROM tab1 AS cor0
----
-7
96

query I rowsort
SELECT ALL 22 - col2 * - 82 AS col2 FROM tab1 AS cor0
----
4860
5598
7894

query I rowsort
SELECT ALL ( + col2 ) AS col2 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT + 98 * - - col1 AS col0 FROM tab2 cor0
----
4998
6566
7546

query I rowsort
SELECT + - 16 AS col2 FROM tab0 WHERE - 36 IS NOT NULL
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT SUM( ALL - col1 ) * - 28 AS col1 FROM tab0
----
2884

skipif mysql # not compatible
query I rowsort label-1684
SELECT SUM ( ALL - col1 ) * - 28 AS col1 FROM tab0
----
2884

query I rowsort
SELECT ALL - + 48 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 87 * col0 * + col2 col1, col2 FROM tab2
----
-222720
40
-378450
58
-92046
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1687
SELECT ALL + COUNT( * ) AS col1 FROM tab1, tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1687
SELECT ALL + COUNT ( * ) AS col1 FROM tab1, tab0 cor0
----
9

query I rowsort
SELECT - col1 * + ( 65 ) + - + col2 AS col0 FROM tab0 WHERE NOT NULL = - 56
----

query II rowsort
SELECT col1, - 33 * - + col0 * + col1 AS col2 FROM tab0 AS cor0
----
1
3201
21
60291
81
40095

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 1 * ( + 88 ) AS col2, 90 + + 97 * - col1 * col2 * + + col0 col2 FROM tab1 AS cor0
----
-88
-2432185
-88
-28211002
-88
-6648678

onlyif mysql # DIV for integer division: 
query I rowsort label-1691
SELECT + 9 DIV + col1 + - 46 AS col0 FROM tab2 AS cor0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-1691
SELECT + 9 / + col1 + - 46 AS col0 FROM tab2 AS cor0
----
-46
-46
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-1692
SELECT DISTINCT + 32 * - MAX( ( - - col0 ) ) FROM tab1 AS cor0
----
-2912

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT + 32 * - MAX ( ( - - col0 ) ) FROM tab1 AS cor0
----
-2912

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT - ( - MAX( - col0 ) ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1694
SELECT - ( - MAX ( - col0 ) ) FROM tab0 AS cor0
----
-15

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

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

skipif mysql # not compatible
query I rowsort label-1696
SELECT DISTINCT + 77 + - COUNT ( * ) + COUNT ( * ) FROM tab1
----
77

query I rowsort
SELECT DISTINCT col2 + - + 49 FROM tab0
----
-2
-39
50

query I rowsort
SELECT DISTINCT col1 + - + col1 * col0 FROM tab2
----
-2295
-4851
-4958

query I rowsort
SELECT ALL col2 * 26 * - col1 FROM tab2
----
-101036
-30498
-80080

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT DISTINCT 2 * - + ( + + 7 ) + - COUNT( * ) AS col1 FROM tab2
----
-17

skipif mysql # not compatible
query I rowsort label-1700
SELECT DISTINCT 2 * - + ( + + 7 ) + - COUNT ( * ) AS col1 FROM tab2
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-1701
SELECT ALL MAX( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-1701
SELECT ALL MAX ( DISTINCT + + col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL MIN( - - 71 ) * COUNT( DISTINCT + + col0 ) * + + 2 + - 94 FROM tab1 AS cor0
----
332

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL MIN ( - - 71 ) * COUNT ( DISTINCT + + col0 ) * + + 2 + - 94 FROM tab1 AS cor0
----
332

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 5 * + 90 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
450

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

query II rowsort
SELECT ALL - 89 AS col2, col2 FROM tab2
----
-89
23
-89
40
-89
58

query I rowsort
SELECT ALL ( + - 6 ) + - - col1 FROM tab1
----
-1
41
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT ALL 96 - col1 * - col0 * - + ( - col0 ) * CAST( NULL AS SIGNED ) * + col0 * - - col2 + 36 + 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1707
SELECT ALL 96 - col1 * - col0 * - + ( - col0 ) * CAST ( NULL AS INTEGER ) * + col0 * - - col2 + 36 + 63 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + col2 col1 FROM tab2 AS cor0
----
-117
-125
-74

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

query I rowsort
SELECT ALL + - col2 - col0 + - col2 FROM tab1 AS cor0
----
-203
-227
-243

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

query I rowsort
SELECT col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-1713
SELECT + 19 + + ( + + 18 ) DIV - col2 FROM tab0 AS cor0
----
18
19
19

skipif mysql # not compatible
query I rowsort label-1713
SELECT + 19 + + ( + + 18 ) / - col2 FROM tab0 AS cor0
----
18
19
19

query I rowsort
SELECT DISTINCT - col1 * + + 56 FROM tab2
----
-2856
-3752
-4312

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * - col1 * + + 49 / - - col2 <> NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1717
SELECT + 29 DIV + + 18 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1717
SELECT + 29 / + + 18 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1718
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - 45 AS col1 FROM tab2
----
-2295
-3015
-3465

skipif mysql # not compatible
query I rowsort label-1718
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - 45 AS col1 FROM tab2
----
-2295
-3015
-3465

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 94 * - col1 AS col1 FROM tab1
----
-1316
-4418
-470

query I rowsort
SELECT DISTINCT - 77 * - 45 AS col2 FROM tab1
----
3465

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + + 72 + + 57 col1 FROM tab0 AS cor0
----
1137
6321
7041

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 54 IS NULL )
----

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

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

query I rowsort
SELECT DISTINCT col0 + col2 + - - 74 * + + 94 FROM tab2
----
7025
7060
7089

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT DISTINCT + 30 * 79 + - - col2 DIV + col0 FROM tab2
----
2370

skipif mysql # not compatible
query I rowsort label-1736
SELECT DISTINCT + 30 * 79 + - - col2 / + col0 FROM tab2
----
2370

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

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

query I rowsort
SELECT ALL + 51 * - col2 + col0 FROM tab1
----
-2924
-3377
-4845

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1739
SELECT ALL + MAX( CAST( + col2 AS DECIMAL ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + MAX ( CAST ( + col2 AS REAL ) ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 + + + ( - + 80 ) col0 FROM tab1
----
-22
-22
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT DISTINCT col1 DIV + col1 - - col2 AS col1 FROM tab1
----
60
69
97

skipif mysql # not compatible
query I rowsort label-1741
SELECT DISTINCT col1 / + col1 - - col2 AS col1 FROM tab1
----
60
69
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1742
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 96 + 1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1742
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 96 + 1 AS col0 FROM tab0
----
NULL

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

query I rowsort
SELECT + col1 * - 55 FROM tab2 AS cor0 WHERE NOT + 72 + 93 IS NULL
----
-2805
-3685
-4235

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT + COUNT( * ) * 26 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-1745
SELECT + COUNT ( * ) * 26 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL - + 69 FROM tab1 AS cor0 WHERE col1 + col0 + + 25 IS NOT NULL
----
-69
-69
-69

query I rowsort
SELECT ALL col0 * + 76 FROM tab2 AS cor0
----
3496
4864
5700

query I rowsort
SELECT DISTINCT + col0 * - - col0 AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-1749
SELECT + 73 * col1 * + col2 DIV - col2 FROM tab0
----
-1533
-5913
-73

skipif mysql # not compatible
query I rowsort label-1749
SELECT + 73 * col1 * + col2 / - col2 FROM tab0
----
-1533
-5913
-73

query I rowsort
SELECT ALL 78 FROM tab2 WHERE + 41 + + + 15 - - 21 = NULL
----

query I rowsort
SELECT ( 17 ) AS col0 FROM tab1
----
17
17
17

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

query I rowsort
SELECT DISTINCT - col2 * + + 32 FROM tab2 AS cor0
----
-1280
-1856
-736

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

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

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

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

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

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

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

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

skipif mysql # not compatible
query II rowsort label-1758
SELECT - + CAST ( NULL AS INTEGER ) AS col0, - ( - col0 ) FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT 59 * + col2 FROM tab0 AS cor0
----
2773
5841
590

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1761
SELECT - 55 DIV - - col2 AS col2, - col1 + 97 DIV - col1 AS col0 FROM tab2 AS cor0
----
-1
-78
-2
-52
0
-68

skipif mysql # not compatible
query II rowsort label-1761
SELECT - 55 / - - col2 AS col2, - col1 + 97 / - col1 AS col0 FROM tab2 AS cor0
----
-1
-78
-2
-52
0
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1762
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 84 * - CAST( NULL AS DECIMAL ) > col1 * + col2
----

skipif mysql # not compatible
query III rowsort label-1762
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 84 * - CAST ( NULL AS REAL ) > col1 * + col2
----

query I rowsort
SELECT + 97 AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT - col0 * - + col2 + - 39 * + - col1 AS col2 FROM tab1
----
5210
5442
8021

query I rowsort
SELECT DISTINCT 59 * - - 62 + col2 FROM tab0
----
3668
3705
3757

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

query II rowsort
SELECT DISTINCT col1 AS col1, col1 FROM tab2 WHERE ( NOT + col0 + - - ( - col0 ) NOT BETWEEN - + 65 + col2 AND - 2 )
----

query I rowsort
SELECT DISTINCT + col0 + - 93 FROM tab2
----
-18
-29
-47

query I rowsort
SELECT ALL - - col0 - + col0 + 74 * + col0 AS col1 FROM tab2 AS cor0
----
3404
4736
5550

query I rowsort
SELECT ALL col1 * + col0 + - - col0 + 94 AS col2 FROM tab2
----
2486
5086
5194

query I rowsort
SELECT 38 - - 69 FROM tab1
----
107
107
107

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

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

query II rowsort
SELECT - - 23 AS col0, - 27 AS col1 FROM tab2 cor0
----
23
-27
23
-27
23
-27

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

query II rowsort
SELECT + + 5, + col1 * col2 * + col1 AS col2 FROM tab2 AS cor0
----
5
237160
5
260362
5
59823

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1777
SELECT DISTINCT + COUNT( DISTINCT 73 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1777
SELECT DISTINCT + COUNT ( DISTINCT 73 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1778
SELECT DISTINCT MIN( - - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT MIN ( - - col0 ) FROM tab1 AS cor0
----
51

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN + col2 + + 46 / col2 AND NULL
----
97
1
99

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1782
SELECT 83 DIV 55 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1782
SELECT 83 / 55 FROM tab0
----
1
1
1

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
14

query I rowsort
SELECT + 3 + - 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

query I rowsort
SELECT ALL + + 40 * + col1 + - col1 AS col0 FROM tab2 AS cor0
----
1989
2613
3003

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1786
SELECT ALL ( - CAST( NULL AS DECIMAL ) ) * - SUM( - 52 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * - - ( col1 ) > - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL ( - CAST ( NULL AS REAL ) ) * - SUM ( - 52 ) AS col2 FROM tab2 AS cor0 WHERE NOT - col0 * - - ( col1 ) > - col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1787
SELECT + CAST( - - SUM( - col0 ) AS SIGNED ) + + 75 AS col0 FROM tab0 AS cor0
----
-124

skipif mysql # not compatible
query I rowsort label-1787
SELECT + CAST ( - - SUM ( - col0 ) AS INTEGER ) + + 75 AS col0 FROM tab0 AS cor0
----
-124

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1788
SELECT - - 16 DIV + COUNT( * ) FROM tab0 cor0
----
5

skipif mysql # not compatible
query I rowsort label-1788
SELECT - - 16 / + COUNT ( * ) FROM tab0 cor0
----
5

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1790
SELECT ALL COUNT( * ) DIV 55, + SUM( + 97 ) DIV + COUNT( * ) AS col2 FROM tab2
----
0
97

skipif mysql # not compatible
query II rowsort label-1790
SELECT ALL COUNT ( * ) / 55, + SUM ( + 97 ) / + COUNT ( * ) AS col2 FROM tab2
----
0
97

query II rowsort
SELECT ALL + col0 + - - 4 AS col0, col1 AS col1 FROM tab0
----
101
1
19
81
91
21

query II rowsort
SELECT + col2 AS col1, ( + + 62 ) AS col0 FROM tab0
----
10
62
47
62
99
62

query I rowsort
SELECT col1 * + ( - 63 ) AS col1 FROM tab0
----
-1323
-5103
-63

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 19 NOT BETWEEN NULL AND + + col1
----
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1795
SELECT 5 - + COUNT( ALL - + 74 ) * + - CAST( + 2 AS SIGNED ) * + SUM( DISTINCT 14 ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-1795
SELECT 5 - + COUNT ( ALL - + 74 ) * + - CAST ( + 2 AS INTEGER ) * + SUM ( DISTINCT 14 ) FROM tab0
----
89

query I rowsort
SELECT DISTINCT 53 * col2 - + + col2 FROM tab2
----
1196
2080
3016

query I rowsort
SELECT - ( 93 ) + - col1 FROM tab0 AS cor0
----
-114
-174
-94

query I rowsort
SELECT 50 * + 28 AS col2 FROM tab1
----
1400
1400
1400

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1800
SELECT - ( + 92 ) DIV + - col0 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1800
SELECT - ( + 92 ) / + - col0 AS col0 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT DISTINCT MAX( ALL - 29 ) * + MIN( - 33 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1802
SELECT DISTINCT MAX ( ALL - 29 ) * + MIN ( - 33 ) FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

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

query I rowsort
SELECT ALL ( 39 ) FROM tab0 cor0
----
39
39
39

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

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

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

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

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

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

query I rowsort
SELECT col0 * + - 76 FROM tab2
----
-3496
-4864
-5700

query II rowsort
SELECT DISTINCT col2, - col1 * + 44 * + col2 AS col1 FROM tab0
----
10
-9240
47
-167508
99
-4356

query I rowsort
SELECT DISTINCT 15 * ( col2 ) + + - col2 FROM tab0 WHERE col2 IS NOT NULL
----
1386
140
658

query II rowsort
SELECT 18 AS col0, + 50 FROM tab0
----
18
50
18
50
18
50

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

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

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

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

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

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

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

query I rowsort
SELECT + col2 + + ( + 11 ) AS col1 FROM tab2 AS cor0
----
34
51
69

query I rowsort
SELECT DISTINCT - 69 * col0 - + + 5 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1040
-6008
-6698

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT ALL SUM( ALL - col2 ) * MAX( - 84 + + ( - col0 ) ) AS col1 FROM tab1
----
30105

skipif mysql # not compatible
query I rowsort label-1818
SELECT ALL SUM ( ALL - col2 ) * MAX ( - 84 + + ( - col0 ) ) AS col1 FROM tab1
----
30105

query I rowsort
SELECT col1 - + 68 AS col2 FROM tab2
----
-1
-17
9

query I rowsort
SELECT ALL + col2 * + 15 AS col2 FROM tab1
----
1020
1440
885

query I rowsort
SELECT DISTINCT + col1 * + 84 FROM tab0
----
1764
6804
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1822
SELECT + col0 * 59 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST( + col2 AS SIGNED ) * CAST( col2 + + 25 * col0 AS SIGNED ) - + 59 AND + col0
----

skipif mysql # not compatible
query I rowsort label-1822
SELECT + col0 * 59 FROM tab1 WHERE NOT NULL NOT BETWEEN - CAST ( + col2 AS INTEGER ) * CAST ( col2 + + 25 * col0 AS INTEGER ) - + 59 AND + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 66 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT 32 + - col1 AS col0 FROM tab1
----
-15
18
27

query I rowsort
SELECT 52 FROM tab1 WHERE NOT - 93 IS NULL
----
52
52
52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1828
SELECT 25 DIV col0 col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1828
SELECT 25 / col0 col1 FROM tab0
----
0
0
1

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 IN ( + col2 * + 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1830
SELECT 31 - + COUNT( * ) * 17 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-1830
SELECT 31 - + COUNT ( * ) * 17 FROM tab1
----
-20

query I rowsort
SELECT DISTINCT 77 + col2 FROM tab2
----
100
117
135

query I rowsort
SELECT ( col2 ) * - 63 AS col2 FROM tab1
----
-3717
-4284
-6048

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

query I rowsort
SELECT DISTINCT 56 - 40 * - col0 FROM tab0 WHERE col1 >= ( - col0 )
----
3536
3936
656

query I rowsort
SELECT + ( col0 ) * + col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT - col2 * 52 AS col2 FROM tab1
----
-3068
-3536
-4992

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( 10 ) ) NOT IN ( + 53 )
----

query I rowsort
SELECT DISTINCT - 33 * col2 AS col1 FROM tab1
----
-1947
-2244
-3168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 45 ) col2 FROM tab0 WHERE - col0 > 85 + - col2
----

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

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

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

query I rowsort
SELECT ALL + col1 - - col0 AS col2 FROM tab1 AS cor0
----
138
65
90

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

query I rowsort
SELECT ALL col2 - + 2 * 75 AS col2 FROM tab0 AS cor0
----
-103
-140
-51

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 51 * - col0 IS NOT NULL
----

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

query I rowsort
SELECT - 12 - + col2 FROM tab2 AS cor0 WHERE NOT col2 * col2 IS NULL
----
-35
-52
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT DISTINCT 76 DIV + 42 AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT 76 / + 42 AS col0 FROM tab0 cor0
----
1

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

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

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

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

query I rowsort
SELECT ALL 56 AS col0 FROM tab2 AS cor0 WHERE ( col0 * 39 ) IS NULL
----

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + col2 * 51 FROM tab0 AS cor0 WHERE + col2 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1859
SELECT COUNT( * ) + 40 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
43

skipif mysql # not compatible
query I rowsort label-1859
SELECT COUNT ( * ) + 40 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE - 83 >= ( + col2 )
----

query I rowsort
SELECT DISTINCT + col0 + ( - col1 ) - + col2 AS col2 FROM tab1
----
-24
-59
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 22 <> - 53
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1863
SELECT DISTINCT CAST( col1 AS SIGNED ) * 93 + 63 AS col2 FROM tab0
----
156
2016
7596

skipif mysql # not compatible
query I rowsort label-1863
SELECT DISTINCT CAST ( col1 AS INTEGER ) * 93 + 63 AS col2 FROM tab0
----
156
2016
7596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1864
SELECT DISTINCT 62 DIV - + COUNT( ALL col0 ) AS col2 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-1864
SELECT DISTINCT 62 / - + COUNT ( ALL col0 ) AS col2 FROM tab2
----
-20

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

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

query I rowsort
SELECT DISTINCT 75 * 80 * - 67 + - col2 * 20 FROM tab0
----
-402200
-402940
-403980

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - 40 col0 FROM tab1 AS cor0
----
-108
-136
-99

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

query I rowsort
SELECT + 2 + + col1 * 20 FROM tab2 AS cor0
----
1022
1342
1542

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

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

skipif mysql # not compatible
query I rowsort label-1872
SELECT DISTINCT CAST ( ( col1 ) AS INTEGER ) + 42 AS col2 FROM tab1 AS cor0
----
47
56
89

onlyif mysql # DIV for integer division: 
query II rowsort label-1873
SELECT ALL 13 + - 43 AS col1, + 30 + - 19 - + col2 DIV col0 FROM tab2
----
-30
11
-30
11
-30
11

skipif mysql # not compatible
query II rowsort label-1873
SELECT ALL 13 + - 43 AS col1, + 30 + - 19 - + col2 / col0 FROM tab2
----
-30
11
-30
11
-30
11

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 <> NULL AND 3 IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1879
SELECT ALL CAST( NULL AS SIGNED ) + 18 * + 48 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1879
SELECT ALL CAST ( NULL AS INTEGER ) + 18 * + 48 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-1880
SELECT ALL - - 49 * + 18 AS col1, SUM( col2 ) FROM tab0 AS cor0
----
882
156

skipif mysql # not compatible
query II rowsort label-1880
SELECT ALL - - 49 * + 18 AS col1, SUM ( col2 ) FROM tab0 AS cor0
----
882
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1881
SELECT - SUM( ALL - ( + col1 ) ) * + 31 * 20 FROM tab0 AS cor0
----
63860

skipif mysql # not compatible
query I rowsort label-1881
SELECT - SUM ( ALL - ( + col1 ) ) * + 31 * 20 FROM tab0 AS cor0
----
63860

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1882
SELECT * FROM tab2 AS cor0 WHERE NOT 39 * CAST( - col1 AS SIGNED ) * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1882
SELECT * FROM tab2 AS cor0 WHERE NOT 39 * CAST ( - col1 AS INTEGER ) * + col1 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1883
SELECT COUNT ( + 61 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

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

query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-196
-62
-97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1887
SELECT DISTINCT + CAST( COUNT( - 33 ) AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + 27 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1887
SELECT DISTINCT + CAST ( COUNT ( - 33 ) AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + 27 IS NOT NULL
----
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1889
SELECT COUNT( * ) * + + 66 * + - MAX( - col2 ) AS col1 FROM tab0 AS cor0
----
1980

skipif mysql # not compatible
query I rowsort label-1889
SELECT COUNT ( * ) * + + 66 * + - MAX ( - col2 ) AS col1 FROM tab0 AS cor0
----
1980

query I rowsort
SELECT ALL + 77 + col2 AS col0 FROM tab1 AS cor0 WHERE - 96 + - ( - + col0 ) / + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1891
SELECT + SUM( - col2 ) AS col2 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-1891
SELECT + SUM ( - col2 ) AS col2 FROM tab1
----
-223

query II rowsort
SELECT ALL + 46 AS col1, + 17 FROM tab0, tab1 AS cor0
----
18 values hashing to 15ce99333941bbe80c27492de5ba1058

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 * 43 ) >= ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 4 AS col0, 94 + + col1 + - col2 FROM tab0
----
4
-4
4
105
4
128

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col0 * 32 + + ( - 64 ) IN ( - col2 ) )
----

query I rowsort
SELECT ALL - col1 + + 30 FROM tab1
----
-17
16
25

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

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

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

query II rowsort
SELECT DISTINCT + col2 AS col0, 21 * - col2 + - - ( + ( - 28 ) ) AS col1 FROM tab1 AS cor0
----
59
-1267
68
-1456
96
-2044

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT DISTINCT - 79 + COUNT( * ) AS col2 FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-1902
SELECT DISTINCT - 79 + COUNT ( * ) AS col2 FROM tab0
----
-76

query III rowsort
SELECT * FROM tab2 WHERE - col0 NOT BETWEEN - - col2 AND ( 74 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT COUNT( * ) * + 82 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-1904
SELECT COUNT ( * ) * + 82 FROM tab1
----
246

query I rowsort
SELECT + - 86 FROM tab2 AS cor0 WHERE + 45 IS NOT NULL
----
-86
-86
-86

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1906
SELECT + - COUNT( * ) - - AVG ( + 73 ) * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1906
SELECT + - COUNT ( * ) - - AVG ( + 73 ) * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1909
SELECT ALL - 71 - - col2 + + - CAST( - 99 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
127
38
75

skipif mysql # not compatible
query I rowsort label-1909
SELECT ALL - 71 - - col2 + + - CAST ( - 99 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
127
38
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT - 24 + - - COUNT( * ) AS col0 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-1910
SELECT - 24 + - - COUNT ( * ) AS col0 FROM tab2
----
-21

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1912
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + col2 ) NOT IN ( + 84 * - CAST( + col0 AS DECIMAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1912
SELECT DISTINCT * FROM tab2 WHERE ( - col0 + col2 ) NOT IN ( + 84 * - CAST ( + col0 AS REAL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 94 col0 FROM tab0
----
1410
8178
9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 93 col1, - 49 * + ( col2 ) AS col1 FROM tab0
----
-93
-2303
-93
-4851
-93
-490

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 <> 85
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1920
SELECT - 97 * - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 97 * - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT + - col1 * ( - + col2 ) AS col0 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1922
SELECT + - col2 * - CAST( - 22 AS SIGNED ) - + + col0 * + col1 + - col1 FROM tab1 AS cor0
----
-1728
-2840
-5820

skipif mysql # not compatible
query I rowsort label-1922
SELECT + - col2 * - CAST ( - 22 AS INTEGER ) - + + col0 * + col1 + - col1 FROM tab1 AS cor0
----
-1728
-2840
-5820

onlyif mysql # DIV for integer division: 
query I rowsort label-1923
SELECT ALL + col2 * 69 DIV col2 + col1 * 56 - col0 AS col2 FROM tab0 AS cor0
----
1158
28
4590

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL + col2 * 69 / col2 + col1 * 56 - col0 AS col2 FROM tab0 AS cor0
----
1158
28
4590

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

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

query I rowsort
SELECT DISTINCT col0 * + 69 FROM tab1 AS cor0
----
3519
5865
6279

query I rowsort
SELECT DISTINCT - 27 * 32 FROM tab0 AS cor0
----
-864

query I rowsort
SELECT - 69 * - col1 FROM tab2
----
3519
4623
5313

query I rowsort
SELECT ALL + 67 + 39 + - col2 + - 80 + col1 - col2 FROM tab0
----
-171
13
27

onlyif mysql # aggregate syntax: 
query I rowsort label-1929
SELECT MIN( + 96 ) AS col1 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-1929
SELECT MIN ( + 96 ) AS col1 FROM tab0
----
96

query I rowsort
SELECT ALL + col0 + - + col1 * + ( col2 ) + + 63 AS col1 FROM tab0
----
-3729
-60
61

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

query I rowsort
SELECT DISTINCT - col0 * + col0 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 * + 98 * + col0 - - ( ( - col1 ) ) + col2 )
----

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

skipif mysql # not compatible
query I rowsort label-1933
SELECT ALL - ( + CAST ( + col2 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
-23
-40
-58

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 <= - - ( + + col2 )
----

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

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

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

query I rowsort
SELECT DISTINCT + col0 - 48 AS col0 FROM tab0 AS cor0
----
-33
39
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1939
SELECT - ( MIN( DISTINCT + - col1 ) ) * - 52 AS col2 FROM tab1 AS cor0
----
-2444

skipif mysql # not compatible
query I rowsort label-1939
SELECT - ( MIN ( DISTINCT + - col1 ) ) * - 52 AS col2 FROM tab1 AS cor0
----
-2444

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

query I rowsort
SELECT 79 * col0 FROM tab2
----
3634
5056
5925

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

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col2 IN ( col2 * 62 + + 46 * - - 72 + + 35 + - 62 + - ( + 26 ) / - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1945
SELECT + col1 DIV - col0 AS col1, 72 FROM tab1
----
0
72
0
72
0
72

skipif mysql # not compatible
query II rowsort label-1945
SELECT + col1 / - col0 AS col1, 72 FROM tab1
----
0
72
0
72
0
72

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col1 < - col0
----
15
81
47

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 <= - col0
----
46
51
23
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT SUM( - 88 ) FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-1950
SELECT SUM ( - 88 ) FROM tab2
----
-264

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE ( ( NOT NULL NOT IN ( - 52 * - - ( - col2 ), + col2, + col2 / - - 54 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-1953
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE ( ( NOT NULL NOT IN ( - 52 * - - ( - col2 ), + col2, + col2 / - - 54 ) ) )
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1955
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 + 9 + + CAST( NULL AS SIGNED ) + 8, col2 * + col0, - 88 )
----

skipif mysql # not compatible
query III rowsort label-1955
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col0 + 9 + + CAST ( NULL AS INTEGER ) + 8, col2 * + col0, - 88 )
----

query I rowsort
SELECT - - 99 * + ( col1 ) - + col1 - - col1 + 2 AS col1 FROM tab2 AS cor0
----
5051
6635
7625

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 21 + + col0 * + 68 AS col0, - ( col0 ) col1 FROM tab0 AS cor0
----
5895
-87
6575
-97
999
-15

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 49 IN ( + col1 + - 27, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1960
SELECT - SUM( + 96 ) AS col2 FROM tab2 WHERE 11 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT - SUM ( + 96 ) AS col2 FROM tab2 WHERE 11 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1961
SELECT DISTINCT - 79 + + MIN( DISTINCT + col1 ) FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-1961
SELECT DISTINCT - 79 + + MIN ( DISTINCT + col1 ) FROM tab1
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT - 74 * COUNT( * ) FROM tab2
----
-222

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT - 74 * COUNT ( * ) FROM tab2
----
-222

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1963
SELECT CAST( col2 AS SIGNED ) + + col2 * col0, + col1 AS col1 FROM tab2
----
1081
51
2600
77
4408
67

skipif mysql # not compatible
query II rowsort label-1963
SELECT CAST ( col2 AS INTEGER ) + + col2 * col0, + col1 AS col1 FROM tab2
----
1081
51
2600
77
4408
67

query I rowsort
SELECT DISTINCT 99 + 25 AS col2 FROM tab2
----
124

query I rowsort
SELECT col1 + - col1 * - - col2 + 62 FROM tab1
----
-1268
-228
-3087

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col1 ) <= 2
----
97
1
99

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

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT - ( 54 ) / - 85 * MAX ( ALL + - ( col1 ) ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT 39 * + col1 * + - 13 FROM tab2 AS cor0
----
-25857
-33969
-39039

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1971
SELECT ALL + COUNT( * ) + 51 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-1971
SELECT ALL + COUNT ( * ) + 51 FROM tab0
----
54

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

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

skipif mysql # not compatible
query I rowsort label-1973
SELECT DISTINCT + - 73 * COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-657

query I rowsort
SELECT ALL + - 24 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT ALL col0 - 71 FROM tab0
----
-56
16
26

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

skipif mysql # not compatible
query I rowsort label-1976
SELECT SUM ( DISTINCT + 90 ) AS col1 FROM tab2 AS cor0
----
90

query I rowsort
SELECT - 7 AS col1 FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( + 6 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 <> ( - col0 / - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 61 * - col0 + + col0 IN ( 20 * ( + 68 ) / + + col2, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE NOT - 98 IS NOT NULL
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1984
SELECT 89 / - + COUNT ( * ) FROM tab2
----
-29

query I rowsort
SELECT + 86 * - + col1 AS col0 FROM tab1 cor0
----
-1204
-4042
-430

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

query I rowsort
SELECT ALL + col0 * 62 * + 99 * + col2 + + - col2 FROM tab2
----
15713240
26700242
6493981

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT - CAST( NULL AS SIGNED ) * 37 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1988
SELECT - CAST ( NULL AS INTEGER ) * 37 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT ALL COUNT( * ) * - 23 * - - COUNT( * ) FROM tab1 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-1990
SELECT ALL COUNT ( * ) * - 23 * - - COUNT ( * ) FROM tab1 cor0
----
-207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1991
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) FROM tab0 cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-1991
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) FROM tab0 cor0
----
-1
-21
-81

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

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

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

query II rowsort
SELECT ALL - col1 * - + ( col1 ) AS col1, - col0 AS col0 FROM tab1
----
196
-51
2209
-91
25
-85

query I rowsort
SELECT ALL - 40 + + - col2 AS col2 FROM tab0
----
-139
-50
-87

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

query III rowsort
SELECT * FROM tab1 WHERE col1 <= + 62
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 45 + col0 FROM tab0
----
-30
42
52

query I rowsort
SELECT col2 AS col0 FROM tab1 cor0 WHERE 17 * + col1 < - + col0
----

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT ALL 9 * 57 FROM tab0
----
513
513
513

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 69 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2003
SELECT DISTINCT - - col2 * 31 DIV + + col0 col2 FROM tab0 AS cor0
----
3
31
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2003
SELECT DISTINCT - - col2 * 31 / + + col0 col2 FROM tab0 AS cor0
----
3
31
97

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

query II rowsort
SELECT DISTINCT col1, col0 AS col2 FROM tab2 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
51
46
67
75
77
64

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT 87 + - COUNT( * ) * 42 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
87

skipif mysql # not compatible
query I rowsort label-2006
SELECT 87 + - COUNT ( * ) * 42 FROM tab1 cor0 WHERE NOT NULL IS NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL MAX( DISTINCT 14 ) col1 FROM tab2
----
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2007
SELECT ALL MAX ( DISTINCT 14 ) col1 FROM tab2
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-2008
SELECT col1 DIV + ( - 41 ) AS col2, 50 AS col1 FROM tab0 WHERE NOT + - col2 <= + ( - 37 )
----
0
50

skipif mysql # not compatible
query II rowsort label-2008
SELECT col1 / + ( - 41 ) AS col2, 50 AS col1 FROM tab0 WHERE NOT + - col2 <= + ( - 37 )
----
0
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - - col1 col0 FROM tab1
----
1344
295
3196

query I rowsort
SELECT ALL col2 * - col2 * + - col1 AS col1 FROM tab0
----
178929
2100
9801

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

query I rowsort
SELECT DISTINCT - 12 * + col0 FROM tab0
----
-1044
-1164
-180

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col1 NOT IN ( + col1, + col0, + + col0 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 10 * + ( + 91 ) + - col1 FROM tab2 AS cor0
----
833
843
859

onlyif mysql # DIV for integer division: 
query I rowsort label-2015
SELECT ALL 49 DIV col2 + + col2 FROM tab0
----
14
48
99

skipif mysql # not compatible
query I rowsort label-2015
SELECT ALL 49 / col2 + + col2 FROM tab0
----
14
48
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 82 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query I rowsort
SELECT ALL col1 * + - 40 AS col2 FROM tab0
----
-3240
-40
-840

onlyif mysql # aggregate syntax: 
query I rowsort label-2018
SELECT DISTINCT - COUNT( DISTINCT col1 ) + + 33 AS col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-2018
SELECT DISTINCT - COUNT ( DISTINCT col1 ) + + 33 AS col1 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT DISTINCT - MAX( - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2019
SELECT DISTINCT - MAX ( - + col1 ) FROM tab2 AS cor0
----
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 - - - ( col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL + + SUM( ALL + col2 ) col0 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2021
SELECT ALL + + SUM ( ALL + col2 ) col0 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT + SUM( + 86 ) FROM tab1 AS cor0
----
258

skipif mysql # not compatible
query I rowsort label-2022
SELECT + SUM ( + 86 ) FROM tab1 AS cor0
----
258

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2024
SELECT DISTINCT SUM( 22 ) AS col0, 59 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + col0 + - 15 IS NULL
----
66
59

skipif mysql # not compatible
query II rowsort label-2024
SELECT DISTINCT SUM ( 22 ) AS col0, 59 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 + + col0 + - 15 IS NULL
----
66
59

query I rowsort
SELECT col0 + + col0 FROM tab1 AS cor0 WHERE ( 59 ) IS NULL
----

query I rowsort
SELECT ( col2 ) * ( + 14 ) AS col0 FROM tab2 AS cor0
----
322
560
812

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + + 67 * - COUNT( DISTINCT - + 25 ) + 7 col0 FROM tab1 AS cor0
----
-60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2027
SELECT + + 67 * - COUNT ( DISTINCT - + 25 ) + 7 col0 FROM tab1 AS cor0
----
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - 39 ) + - + col2 col1 FROM tab2 AS cor0
----
-62
-79
-97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 77 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 * 55 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 56 >= + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT MIN( + + 90 ) + + + 19 FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-2032
SELECT MIN ( + + 90 ) + + + 19 FROM tab0
----
109

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2033
SELECT DISTINCT CAST( + - col2 AS SIGNED ) AS col1, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

skipif mysql # not compatible
query II rowsort label-2033
SELECT DISTINCT CAST ( + - col2 AS INTEGER ) AS col1, - col2 FROM tab2
----
-23
-23
-40
-40
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT COUNT( - col2 ) + + COUNT( ALL col1 ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2034
SELECT COUNT ( - col2 ) + + COUNT ( ALL col1 ) AS col0 FROM tab1
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2035
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / - - CAST( - + 60 AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2035
SELECT DISTINCT + CAST ( NULL AS REAL ) / - - CAST ( - + 60 AS INTEGER ) + + - COUNT ( * ) AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2036
SELECT DISTINCT + col0 + - CAST( - + col0 AS SIGNED ) + col2 AS col2 FROM tab2
----
115
168
208

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT + col0 + - CAST ( - + col0 AS INTEGER ) + col2 AS col2 FROM tab2
----
115
168
208

query I rowsort
SELECT ALL - 79 - - col1 * + col1 FROM tab2
----
2522
4410
5850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2038
SELECT MIN( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2038
SELECT MIN ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL 92 + - col1 AS col1 FROM tab1
----
45
78
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT + MAX( - ( - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-2040
SELECT + MAX ( - ( - col1 ) ) FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 25 col2 FROM tab2 AS cor0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-2042
SELECT - 95 DIV + 10 FROM tab2 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
query I rowsort label-2042
SELECT - 95 / + 10 FROM tab2 AS cor0
----
-9
-9
-9

query II rowsort
SELECT - 69, col1 AS col2 FROM tab1 AS cor0
----
-69
14
-69
47
-69
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT COUNT( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2044
SELECT COUNT ( ALL col0 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + ( + col1 ) * + 91 FROM tab2 AS cor0
----
4641
6097
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 89 col0, + col2 + - 59 FROM tab0 AS cor0
----
89
-12
89
-49
89
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 57 IS NULL
----

query I rowsort
SELECT DISTINCT - 77 * - 94 AS col0 FROM tab2 AS cor0
----
7238

query I rowsort
SELECT DISTINCT - 47 * col0 + + col1 + - + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-2397
-3995
-4277

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + col0 * + col2
----

query II rowsort
SELECT - col0 * 74 AS col1, 2 * - col0 FROM tab2
----
-3404
-92
-4736
-128
-5550
-150

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2052
SELECT DISTINCT + 84 * CAST( NULL AS SIGNED ) / col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2052
SELECT DISTINCT + 84 * CAST ( NULL AS INTEGER ) / col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2053
SELECT ALL - 1 DIV - COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL - 1 / - COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2054
SELECT DISTINCT + COUNT( ALL - 32 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2054
SELECT DISTINCT + COUNT ( ALL - 32 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL SUM( - 87 ) AS col1 FROM tab0 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-2055
SELECT ALL SUM ( - 87 ) AS col1 FROM tab0 AS cor0
----
-261

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2056
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / - + CAST( - col1 AS SIGNED ) * + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2056
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / - + CAST ( - col1 AS INTEGER ) * + col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 / + col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( col1 ) < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2058
SELECT DISTINCT - SUM( + col1 ) AS col1, MAX( + col2 ) AS col1 FROM tab2 AS cor0
----
-195
58

skipif mysql # not compatible
query II rowsort label-2058
SELECT DISTINCT - SUM ( + col1 ) AS col1, MAX ( + col2 ) AS col1 FROM tab2 AS cor0
----
-195
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 15 ) col2 FROM tab2 AS cor0
----
15
15
15

query II rowsort
SELECT DISTINCT + col0 + - 28, + col1 - - col0 AS col0 FROM tab1 AS cor0
----
23
65
57
90
63
138

query III rowsort
SELECT * FROM tab1 WHERE - 24 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + col2 + ( 45 ) FROM tab0
----
139
243
65

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2063
SELECT - + col1 * + ( - col2 ) + - - col0 - + col1 - CAST( - col2 AS SIGNED ) DIV + col1 AS col1 FROM tab0 AS cor0
----
276
294
3741

skipif mysql # not compatible
query I rowsort label-2063
SELECT - + col1 * + ( - col2 ) + - - col0 - + col1 - CAST ( - col2 AS INTEGER ) / + col1 AS col1 FROM tab0 AS cor0
----
276
294
3741

onlyif mysql # aggregate syntax: 
query II rowsort label-2064
SELECT DISTINCT + COUNT( * ), + 14 AS col2 FROM tab0 AS cor0
----
3
14

skipif mysql # not compatible
query II rowsort label-2064
SELECT DISTINCT + COUNT ( * ), + 14 AS col2 FROM tab0 AS cor0
----
3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL - + COUNT( * ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2065
SELECT ALL - + COUNT ( * ) col2 FROM tab2 cor0
----
-3

query I rowsort
SELECT - 30 * col2 + 90 + - 76 AS col0 FROM tab1 cor0
----
-1756
-2026
-2866

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col1 NOT BETWEEN - col1 * - + 90 + col2 * - + 95 * - col2 - - col1 AND - col1 * ( 90 ) + col2
----

query II rowsort
SELECT 47 AS col0, - 69 FROM tab0
----
47
-69
47
-69
47
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2069
SELECT - MAX( - + col0 ) + - - 48 * + 19 col2 FROM tab1 WHERE NULL NOT IN ( - - col2, - 40 / - - 59, - + 32 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2069
SELECT - MAX ( - + col0 ) + - - 48 * + 19 col2 FROM tab1 WHERE NULL NOT IN ( - - col2, - 40 / - - 59, - + 32 )
----
NULL

query II rowsort
SELECT ALL + col2 AS col2, 84 + + + 4 FROM tab0
----
10
88
47
88
99
88

onlyif mysql # DIV for integer division: 
query I rowsort label-2071
SELECT DISTINCT + 41 DIV + col1 AS col2 FROM tab2 WHERE col0 NOT BETWEEN 40 AND + col2
----
0

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT + 41 / + col1 AS col2 FROM tab2 WHERE col0 NOT BETWEEN 40 AND + col2
----
0

query I rowsort
SELECT ( - + 47 ) FROM tab0
----
-47
-47
-47

query I rowsort
SELECT + 50 - + col1 AS col0 FROM tab2
----
-1
-17
-27

query I rowsort
SELECT ALL - 51 + + - col0 FROM tab2
----
-115
-126
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2075
SELECT + CAST( - ( ( + col1 ) ) AS SIGNED ) - col0 * - - 62 * col0 AS col1 FROM tab1
----
-161276
-447955
-513469

skipif mysql # not compatible
query I rowsort label-2075
SELECT + CAST ( - ( ( + col1 ) ) AS INTEGER ) - col0 * - - 62 * col0 AS col1 FROM tab1
----
-161276
-447955
-513469

query II rowsort
SELECT - col0 - + col2 AS col0, col2 FROM tab1
----
-144
59
-147
96
-159
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2077
SELECT + 48 - CAST( NULL AS SIGNED ) / + MAX( - + ( - col0 ) ) + - - ( + 14 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 48 - CAST ( NULL AS INTEGER ) / + MAX ( - + ( - col0 ) ) + - - ( + 14 ) FROM tab1
----
NULL

query I rowsort
SELECT ALL col0 * + - col1 AS col1 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 36 col1 FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT ALL COUNT( * ) * - COUNT( + + col2 ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2080
SELECT ALL COUNT ( * ) * - COUNT ( + + col2 ) FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT - - 50 * 65 * - + col1 FROM tab1 AS cor0
----
-152750
-16250
-45500

onlyif mysql # aggregate syntax: 
query I rowsort label-2082
SELECT DISTINCT + MIN( DISTINCT - col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-2082
SELECT DISTINCT + MIN ( DISTINCT - col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2083
SELECT DISTINCT MIN( DISTINCT + - 70 ) * - + COUNT( * ) + - 12 FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-2083
SELECT DISTINCT MIN ( DISTINCT + - 70 ) * - + COUNT ( * ) + - 12 FROM tab1
----
198

query I rowsort
SELECT DISTINCT col0 * 85 + - col2 AS col2 FROM tab0
----
1228
7385
8146

query I rowsort
SELECT + - col2 + col0 + + - col2 FROM tab1 AS cor0
----
-141
-33
-45

query I rowsort
SELECT ALL - col1 + + col1 + - + col0 AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL + col1 - - - col2 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT ALL + COUNT( * ) * + 73 AS col1 FROM tab0 AS cor0
----
219

skipif mysql # not compatible
query I rowsort label-2088
SELECT ALL + COUNT ( * ) * + 73 AS col1 FROM tab0 AS cor0
----
219

query I rowsort
SELECT ALL + ( col1 ) * col1 AS col2 FROM tab2 AS cor0
----
2601
4489
5929

onlyif mysql # DIV for integer division: 
query I rowsort label-2090
SELECT DISTINCT - 34 DIV col2 * 98 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2090
SELECT DISTINCT - 34 / col2 * 98 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 BETWEEN - - col0 AND 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + 55 IS NULL
----

query I rowsort
SELECT DISTINCT 77 + col1 FROM tab2
----
128
144
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2094
SELECT DISTINCT - COUNT( * ) - COUNT( * ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-2094
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) AS col1 FROM tab1
----
-6

query II rowsort
SELECT + 93, + col1 AS col2 FROM tab2
----
93
51
93
67
93
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( 87 ) * - col1 / + ( + col0 ) * - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2097
SELECT DISTINCT - - COUNT( * ), CAST( + - 9 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-2097
SELECT DISTINCT - - COUNT ( * ), CAST ( + - 9 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
3
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL + MAX( + col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL + MAX ( + col0 ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT col2 * 88 FROM tab2
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query II rowsort label-2100
SELECT ALL - MIN( DISTINCT + - col0 ), - 15 AS col1 FROM tab0
----
97
-15

skipif mysql # not compatible
query II rowsort label-2100
SELECT ALL - MIN ( DISTINCT + - col0 ), - 15 AS col1 FROM tab0
----
97
-15

query I rowsort
SELECT DISTINCT + + ( - col2 ) AS col0 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 65 * - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + 81 * - + col1 AS col1, + 55 + - col2 + 4 + + 60 FROM tab0 AS cor0
----
-1701
109
-6561
72
-81
20

query I rowsort
SELECT - + col2 + + 34 FROM tab2 AS cor0
----
-24
-6
11

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 42 + + 52 < - 37
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT - - SUM( - col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2106
SELECT - - SUM ( - col2 ) FROM tab2 cor0
----
-121

query I rowsort
SELECT DISTINCT + col2 + col0 AS col2 FROM tab0 AS cor0 WHERE 1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 32 ) col1 FROM tab0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2109
SELECT COUNT( * ) * + - 17 * - COUNT( ALL + + col2 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-2109
SELECT COUNT ( * ) * + - 17 * - COUNT ( ALL + + col2 ) FROM tab0
----
153

query I rowsort
SELECT DISTINCT - 6 + + col2 * + - col2 FROM tab0
----
-106
-2215
-9807

query I rowsort
SELECT - col1 FROM tab0 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2112
SELECT * FROM tab1 AS cor0 WHERE - col1 * + 24 NOT BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2112
SELECT * FROM tab1 AS cor0 WHERE - col1 * + 24 NOT BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 64 * 61 * + + col0 AS col2 FROM tab0 cor0
----
339648
378688
58560

onlyif mysql # aggregate syntax: 
query II rowsort label-2114
SELECT + COUNT( + col1 ), + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 + - - col0 )
----
0
0

skipif mysql # not compatible
query II rowsort label-2114
SELECT + COUNT ( + col1 ), + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1 + - - col0 )
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2115
SELECT ALL 40 + 57 AS col0, - COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
97
-9

skipif mysql # not compatible
query II rowsort label-2115
SELECT ALL 40 + 57 AS col0, - COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
97
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2116
SELECT col0 DIV + 35 + + 45 AS col1 FROM tab2
----
46
46
47

skipif mysql # not compatible
query I rowsort label-2116
SELECT col0 / + 35 + + 45 AS col1 FROM tab2
----
46
46
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2117
SELECT 57 * - CAST( + col0 AS SIGNED ) + + + col1 + - col0 * + col0 * - + col1 AS col0 FROM tab0
----
154011
17451
3881

skipif mysql # not compatible
query I rowsort label-2117
SELECT 57 * - CAST ( + col0 AS INTEGER ) + + + col1 + - col0 * + col0 * - + col1 AS col0 FROM tab0
----
154011
17451
3881

onlyif mysql # aggregate syntax: 
query I rowsort label-2118
SELECT - ( + COUNT( * ) ) + - MIN( ALL + 68 ) AS col1 FROM tab2
----
-71

skipif mysql # not compatible
query I rowsort label-2118
SELECT - ( + COUNT ( * ) ) + - MIN ( ALL + 68 ) AS col1 FROM tab2
----
-71

query I rowsort
SELECT DISTINCT - 77 - + 37 AS col2 FROM tab0 AS cor0
----
-114

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 77 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 = col2 + - + 46
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + 14 * + + ( + 43 ) AS col0 FROM tab2 AS cor0
----
602
602
602

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + + COUNT( * ) - COUNT( * ) * COUNT( * ) + + COUNT( * ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2124
SELECT + + COUNT ( * ) - COUNT ( * ) * COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 99 col1 FROM tab2 AS cor0
----
-99
-99
-99

query I rowsort
SELECT col0 * - + col1 - - col2 FROM tab2 AS cor0
----
-2323
-4888
-4967

query I rowsort
SELECT - 76 * col1 * - - col2 AS col0 FROM tab0
----
-15960
-289332
-7524

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 - - col2 <> + + col2
----

query II rowsort
SELECT DISTINCT - 73 * + 29 AS col2, col1 FROM tab2
----
-2117
51
-2117
67
-2117
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2130
SELECT ALL - 23 DIV + 76 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2130
SELECT ALL - 23 / + 76 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + + col0 * + ( - col1 ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 76 / - col2 FROM tab2 WHERE NOT - 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2133
SELECT MAX( ALL + 14 ) AS col1 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2133
SELECT MAX ( ALL + 14 ) AS col1 FROM tab2
----
14

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT col0 IS NULL
----
15
87
97

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT NULL <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 43 col2 FROM tab1 AS cor0 WHERE NOT + 74 * - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 57 / - + ( + - col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 * + col1 - - - col0 AS col1 FROM tab2 AS cor0
----
2300
4864
4950

query II rowsort
SELECT DISTINCT + 27 AS col0, + 33 FROM tab1
----
27
33

query II rowsort
SELECT DISTINCT + 89, + ( + col2 ) AS col1 FROM tab1 AS cor0
----
89
59
89
68
89
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2141
SELECT DISTINCT + COUNT( * ) * - ( + - 53 ) FROM tab2 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-2141
SELECT DISTINCT + COUNT ( * ) * - ( + - 53 ) FROM tab2 AS cor0
----
159

query II rowsort
SELECT ALL + col2 + + 59 AS col2, ( + col1 ) + + col1 AS col0 FROM tab0
----
106
162
158
2
69
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2143
SELECT + 46 * - + 0 + - COUNT( - col2 ) DIV 81 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT + 46 * - + 0 + - COUNT ( - col2 ) / 81 FROM tab1 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 21 + col2, + col1 FROM tab2 AS cor0
----
44
51
61
77
79
67

query I rowsort
SELECT DISTINCT + - col0 - - col1 * - col1 + - col2 FROM tab0 AS cor0
----
-197
-538
-6623

onlyif mysql # aggregate syntax: 
query I rowsort label-2147
SELECT DISTINCT + - ( - + COUNT( - col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2147
SELECT DISTINCT + - ( - + COUNT ( - col0 ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 * + - 30 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2149
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2149
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2150
SELECT ALL 2 AS col0, + COUNT( * ) FROM tab1
----
2
3

skipif mysql # not compatible
query II rowsort label-2150
SELECT ALL 2 AS col0, + COUNT ( * ) FROM tab1
----
2
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - col0 / 64 < NULL
----

query I rowsort
SELECT DISTINCT 33 * + 70 AS col2 FROM tab2
----
2310

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 < 31
----

query I rowsort
SELECT 93 * + + col0 FROM tab2
----
4278
5952
6975

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL - COUNT( * ) * + 29 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL - COUNT ( * ) * + 29 FROM tab0
----
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT DISTINCT - col0 DIV - + col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-2156
SELECT DISTINCT - col0 / - + col1 FROM tab0
----
0
4
97

onlyif mysql # DIV for integer division: 
query I rowsort label-2157
SELECT DISTINCT - 76 DIV col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT DISTINCT - 76 / col2 / - col0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT ALL - COUNT( ALL + - col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2158
SELECT ALL - COUNT ( ALL + - col0 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL + 11 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col2 BETWEEN NULL AND - 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2161
SELECT + + 76 + - + CAST( NULL AS SIGNED ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2161
SELECT + + 76 + - + CAST ( NULL AS INTEGER ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + - 84 * col2 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2163
SELECT DISTINCT - col0 DIV + + col2 + - col0 FROM tab0 AS cor0
----
-15
-95
-97

skipif mysql # not compatible
query I rowsort label-2163
SELECT DISTINCT - col0 / + + col2 + - col0 FROM tab0 AS cor0
----
-15
-95
-97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2165
SELECT MAX( - col1 ) DIV + + 43 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2165
SELECT MAX ( - col1 ) / + + 43 AS col0 FROM tab2
----
-1

query I rowsort
SELECT DISTINCT col2 + + col0 AS col2 FROM tab1 WHERE - - col1 < col0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT DISTINCT - COUNT( * ) + + 18 FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2167
SELECT DISTINCT - COUNT ( * ) + + 18 FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT MIN( - + 93 ) AS col2 FROM tab0
----
-93

skipif mysql # not compatible
query I rowsort label-2168
SELECT MIN ( - + 93 ) AS col2 FROM tab0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2169
SELECT 6 AS col1, CAST( NULL AS SIGNED ) / + - col1 * 69 + col0 AS col1 FROM tab1
----
6
NULL
6
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-2169
SELECT 6 AS col1, CAST ( NULL AS INTEGER ) / + - col1 * 69 + col0 AS col1 FROM tab1
----
6
NULL
6
NULL
6
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2170
SELECT DISTINCT ( + col0 ) + - - CAST( col2 AS SIGNED ) FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT ( + col0 ) + - - CAST ( col2 AS INTEGER ) FROM tab2
----
104
133
69

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2171
SELECT * FROM tab0 WHERE + 72 + + ( + CAST( NULL AS SIGNED ) ) BETWEEN - 92 AND + - col1
----

skipif mysql # not compatible
query III rowsort label-2171
SELECT * FROM tab0 WHERE + 72 + + ( + CAST ( NULL AS INTEGER ) ) BETWEEN - 92 AND + - col1
----

query I rowsort
SELECT - + col2 FROM tab1 WHERE + col1 + - 83 + - col0 NOT IN ( + col1, col1, col0 * - + col0 - + 96, + col1 )
----
-59
-68
-96

query I rowsort
SELECT ALL 37 AS col0 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN col1 AND NULL
----
37
37
37

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT DISTINCT - - ( + SUM( + col0 ) ) AS col0, - COUNT( * ) FROM tab1 AS cor0
----
227
-3

skipif mysql # not compatible
query II rowsort label-2174
SELECT DISTINCT - - ( + SUM ( + col0 ) ) AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
227
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2175
SELECT - COUNT( + + col2 ) + + 23 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2175
SELECT - COUNT ( + + col2 ) + + 23 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 + col1 col1 FROM tab0
----
125
45
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2177
SELECT DISTINCT + col0 - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2177
SELECT DISTINCT + col0 - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL + SUM( ALL + col0 ) FROM tab0 AS cor0 WHERE + ( - - col1 ) IN ( - - 30 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL + SUM ( ALL + col0 ) FROM tab0 AS cor0 WHERE + ( - - col1 ) IN ( - - 30 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2179
SELECT ALL + MAX( ALL - - 0 ) * + 70 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2179
SELECT ALL + MAX ( ALL - - 0 ) * + 70 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - col2 AS col1, col1 - - col1 FROM tab2 cor0
----
-23
102
-40
154
-58
134

query I rowsort
SELECT ALL + 43 * + col0 - - - ( + - col2 ) * - col2 * col2 - + + ( - col0 ) AS col1 FROM tab0 AS cor0 WHERE + col2 / - col1 * - + col0 * - ( + - col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 - ( + 29 ) * - 58 IS NULL AND NOT NULL < col2 + - ( 28 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2183
SELECT + col1 * - col1 + + 32 + col2 DIV - 67 col0 FROM tab0 AS cor0
----
-409
-6529
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2183
SELECT + col1 * - col1 + + 32 + col2 / - 67 col0 FROM tab0 AS cor0
----
-409
-6529
30

query I rowsort
SELECT ALL - 90 * + col2 AS col0 FROM tab2 AS cor0
----
-2070
-3600
-5220

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2185
SELECT AVG ( col0 ) * CAST( NULL AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2185
SELECT AVG ( col0 ) * CAST ( NULL AS INTEGER ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2186
SELECT - col2 / + CAST( NULL AS SIGNED ) * col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2186
SELECT - col2 / + CAST ( NULL AS INTEGER ) * col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 30 ) AS col0 FROM tab0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2188
SELECT SUM( + + 20 ) AS col2 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2188
SELECT SUM ( + + 20 ) AS col2 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2189
SELECT ALL + MIN( DISTINCT + 41 ) FROM tab1 WHERE - col0 + + col2 * - col0 NOT IN ( - + 89, - col1, + col2 - - col2 )
----
41

skipif mysql # not compatible
query I rowsort label-2189
SELECT ALL + MIN ( DISTINCT + 41 ) FROM tab1 WHERE - col0 + + col2 * - col0 NOT IN ( - + 89, - col1, + col2 - - col2 )
----
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2190
SELECT ALL + ( - + 26 ) DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2190
SELECT ALL + ( - + 26 ) / col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2191
SELECT - 20 DIV 73, + 77 AS col1 FROM tab0 AS cor0
----
0
77
0
77
0
77

skipif mysql # not compatible
query II rowsort label-2191
SELECT - 20 / 73, + 77 AS col1 FROM tab0 AS cor0
----
0
77
0
77
0
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 92 col2 FROM tab0 AS cor0
----
-92
-92
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 81 + col0 col2 FROM tab0 AS cor0 WHERE NOT - col0 * + col0 + + col2 IS NULL
----
168
178
96

query I rowsort
SELECT + + 83 AS col2 FROM tab0 cor0
----
83
83
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2195
SELECT ALL - MAX( 50 ) col1 FROM tab2 AS cor0
----
-50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2195
SELECT ALL - MAX ( 50 ) col1 FROM tab2 AS cor0
----
-50

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT - col0 * - col2 * col1 + col0 FROM tab2 AS cor0
----
197184
291525
54004

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2198
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 2 * + col2 <> + - col1 + + CAST( - 70 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2198
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 2 * + col2 <> + - col1 + + CAST ( - 70 AS INTEGER )
----

query I rowsort
SELECT + - 46 + - 19 FROM tab2 AS cor0
----
-65
-65
-65

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 - + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * + col0 + - 31 FROM tab0
----
1184
1796
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 + - 93 col0 FROM tab2
----
-59

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) * + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2204
SELECT + COUNT( * ) DIV MIN( + col0 ) AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2204
SELECT + COUNT ( * ) / MIN ( + col0 ) AS col2 FROM tab1 WHERE col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT ALL COUNT( * ) + 56 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2205
SELECT ALL COUNT ( * ) + 56 FROM tab1
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2206
SELECT ALL 88 - + ( - COUNT( * ) ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-2206
SELECT ALL 88 - + ( - COUNT ( * ) ) FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2207
SELECT - MAX( - col2 ) + - ( - + ( COUNT( * ) ) ) AS col2 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-2207
SELECT - MAX ( - col2 ) + - ( - + ( COUNT ( * ) ) ) AS col2 FROM tab2
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2208
SELECT 92 * - 5 / + - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2208
SELECT 92 * - 5 / + - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2209
SELECT - 27 * + COUNT( * ) DIV - COUNT( * ) + - 23 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-2209
SELECT - 27 * + COUNT ( * ) / - COUNT ( * ) + - 23 FROM tab0
----
4

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE col0 > NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + - col2 NOT BETWEEN col2 * col1 AND + col0
----

query I rowsort
SELECT ALL col1 * - - ( - + col0 ) + 66 - col2 * + - col0 AS col1 FROM tab1 AS cor0
----
1977
4248
4656

query I rowsort
SELECT DISTINCT + ( col2 ) + 76 FROM tab1 AS cor0
----
135
144
172

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2214
SELECT DISTINCT + + 82 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + + 82 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2215
SELECT DISTINCT + COUNT( * ) + + 62 DIV - + 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT + COUNT ( * ) + + 62 / - + 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 col2 FROM tab1 cor0
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2217
SELECT DISTINCT MIN( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2217
SELECT DISTINCT MIN ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NOT NULL OR - - col2 - - col2 <= - - ( + - 31 ) + col2
----

query I rowsort
SELECT ALL + - 41 AS col0 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT ALL 51 * + 55 AS col0 FROM tab1 AS cor0
----
2805
2805
2805

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2221
SELECT DISTINCT + + col2 AS col0 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) * 16 + - + col2 IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2221
SELECT DISTINCT + + col2 AS col0 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) * 16 + - + col2 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 NOT BETWEEN - col1 AND + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query II rowsort label-2223
SELECT MAX( ALL 14 ), - 77 * + - 32 + + + ( - COUNT( * ) ) AS col2 FROM tab2
----
14
2461

skipif mysql # not compatible
query II rowsort label-2223
SELECT MAX ( ALL 14 ), - 77 * + - 32 + + + ( - COUNT ( * ) ) AS col2 FROM tab2
----
14
2461

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2224
SELECT DISTINCT 92 * 33 * CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
9108

skipif mysql # not compatible
query I rowsort label-2224
SELECT DISTINCT 92 * 33 * CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-2225
SELECT + SUM( + + 13 ) AS col1 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2225
SELECT + SUM ( + + 13 ) AS col1 FROM tab0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2226
SELECT ALL ( + MAX( col2 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-2226
SELECT ALL ( + MAX ( col2 ) ) FROM tab0
----
99

query I rowsort
SELECT DISTINCT + ( 87 ) * - col2 FROM tab0
----
-4089
-8613
-870

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 1 + + + ( + ( col2 ) ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 49 AS col2, col0 + - col2 col1 FROM tab1
----
49
-45
49
23
49
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2230
SELECT + col1 DIV + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-2230
SELECT + col1 / + col1 - + col1 AS col1 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2231
SELECT + col2 DIV + - col2 AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2231
SELECT + col2 / + - col2 AS col1 FROM tab2 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2232
SELECT MAX( + 39 ) AS col1 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2232
SELECT MAX ( + 39 ) AS col1 FROM tab0 AS cor0
----
39

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL >= col0 * col2
----

query I rowsort
SELECT ALL 83 + - ( 13 ) AS col2 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + + ( 7 ) * - col0 IS NULL
----
10
47
99

query I rowsort
SELECT col2 * + + col2 * + col1 + 83 AS col0 FROM tab0
----
179012
2183
9884

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE + col2 NOT BETWEEN NULL AND - + col1
----
15
87
97

query I rowsort
SELECT DISTINCT 39 + - col2 AS col1 FROM tab2 cor0
----
-1
-19
16

query I rowsort
SELECT ALL - - 86 FROM tab0 AS cor0 WHERE NOT + col1 + - 67 < NULL
----

query I rowsort
SELECT DISTINCT + col1 * + 20 AS col1 FROM tab1 cor0
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT + + MAX( ALL col0 ) FROM tab2 cor0 WHERE - col0 <> - 29 * + col0
----
75

skipif mysql # not compatible
query I rowsort label-2241
SELECT + + MAX ( ALL col0 ) FROM tab2 cor0 WHERE - col0 <> - 29 * + col0
----
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2242
SELECT + - 25 * + - ( SUM( + CAST( NULL AS SIGNED ) ) ) * + SUM( + col2 ) + SUM( ALL col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2242
SELECT + - 25 * + - ( SUM ( + CAST ( NULL AS INTEGER ) ) ) * + SUM ( + col2 ) + SUM ( ALL col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2243
SELECT + CAST( - 70 AS SIGNED ) * - AVG ( 84 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 80
----
NULL

skipif mysql # not compatible
query I rowsort label-2243
SELECT + CAST ( - 70 AS INTEGER ) * - AVG ( 84 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + 80
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT ALL - col2 DIV + 35 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL - col2 / + 35 FROM tab2
----
-1
-1
0

query I rowsort
SELECT + 66 * 77 FROM tab1
----
5082
5082
5082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 49 AS col2, 15 col2 FROM tab2
----
49
15
49
15
49
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2247
SELECT CAST( - col1 AS SIGNED ) * + 3 - 34 AS col2 FROM tab0
----
-277
-37
-97

skipif mysql # not compatible
query I rowsort label-2247
SELECT CAST ( - col1 AS INTEGER ) * + 3 - 34 AS col2 FROM tab0
----
-277
-37
-97

query I rowsort
SELECT + 64 - 38 * + col1 * + col2 AS col2 FROM tab2
----
-116976
-147604
-44510

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2249
SELECT ALL - - 66 - + - CAST( COUNT( - col0 ) AS SIGNED ) FROM tab0 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-2249
SELECT ALL - - 66 - + - CAST ( COUNT ( - col0 ) AS INTEGER ) FROM tab0 AS cor0
----
69

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col0 / - - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2251
SELECT ALL col2 - + col2 + - + ( + ( + - col0 ) ) * + + CAST( 53 AS SIGNED ) + + 19 AS col0 FROM tab1 AS cor0
----
2722
4524
4842

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL col2 - + col2 + - + ( + ( + - col0 ) ) * + + CAST ( 53 AS INTEGER ) + + 19 AS col0 FROM tab1 AS cor0
----
2722
4524
4842

query I rowsort
SELECT col2 * col2 AS col2 FROM tab1 WHERE NOT col1 IN ( + col1 )
----

query I rowsort
SELECT col2 - col2 * 48 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT + 97 * COUNT( * ) + - 45 AS col1 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-2254
SELECT + 97 * COUNT ( * ) + - 45 AS col1 FROM tab1
----
246

query I rowsort
SELECT + col0 * col0 + + col0 AS col0 FROM tab0
----
240
7656
9506

query I rowsort
SELECT 17 * col1 FROM tab1 WHERE ( 34 ) <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 / col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT DISTINCT - COUNT( DISTINCT 47 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2260
SELECT DISTINCT - COUNT ( DISTINCT 47 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT DISTINCT col2 * col2 - col0 AS col1 FROM tab1
----
3396
4533
9165

onlyif mysql # DIV for integer division: 
query I rowsort label-2262
SELECT ALL col1 DIV 56 + col2 * + col1 FROM tab0
----
210
3808
99

skipif mysql # not compatible
query I rowsort label-2262
SELECT ALL col1 / 56 + col2 * + col1 FROM tab0
----
210
3808
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 6 FROM tab1 WHERE NULL = - 66
----

query I rowsort
SELECT 21 AS col2 FROM tab0 WHERE NOT 87 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2266
SELECT ALL MIN( DISTINCT col2 ) col1 FROM tab1 WHERE - 40 BETWEEN NULL AND ( - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2266
SELECT ALL MIN ( DISTINCT col2 ) col1 FROM tab1 WHERE - 40 BETWEEN NULL AND ( - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2267
SELECT CAST( NULL AS SIGNED ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2267
SELECT CAST ( NULL AS INTEGER ) + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2269
SELECT + COUNT( + 83 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2269
SELECT + COUNT ( + 83 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 14 <> ( - col1 + 69 * 62 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2271
SELECT ALL COUNT( * ) + CAST( + 50 AS SIGNED ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-2271
SELECT ALL COUNT ( * ) + CAST ( + 50 AS INTEGER ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT + SUM( ALL + 83 ) FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT + SUM ( ALL + 83 ) FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL + COUNT( * ) * + 48 AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( col0 ) ) <= - col1 + + col1
----
0

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL + COUNT ( * ) * + 48 AS col0 FROM tab2 AS cor0 WHERE NOT ( - ( col0 ) ) <= - col1 + + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col2 FROM tab2 cor0
----
-51
-51
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL 77 * ( MIN( DISTINCT - 33 ) ) FROM tab1 AS cor0
----
-2541

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL 77 * ( MIN ( DISTINCT - 33 ) ) FROM tab1 AS cor0
----
-2541

query I rowsort
SELECT ALL AVG ( ALL col1 ) FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND ( 17 ) / - col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( - 82 ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - col1 col0 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2280
SELECT DISTINCT + 37 + col2 DIV + 69 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-2280
SELECT DISTINCT + 37 + col2 / + 69 FROM tab2
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2281
SELECT ALL col0 / - ( ( - CAST( NULL AS SIGNED ) ) ) + 77 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2281
SELECT ALL col0 / - ( ( - CAST ( NULL AS INTEGER ) ) ) + 77 * + col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT ALL - - 32 DIV col2 AS col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - - 32 / col2 AS col2 FROM tab0 AS cor0
----
0
0
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 73 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT DISTINCT + COUNT( * ) * 98 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-2284
SELECT DISTINCT + COUNT ( * ) * 98 FROM tab0 AS cor0
----
294

onlyif mysql # aggregate syntax: 
query I rowsort label-2285
SELECT ALL - - COUNT( ALL - col1 ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2285
SELECT ALL - - COUNT ( ALL - col1 ) AS col2 FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col1 ) * col0 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2287
SELECT - + COUNT( 5 ) + + 34 AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-2287
SELECT - + COUNT ( 5 ) + + 34 AS col2 FROM tab2 AS cor0
----
31

query I rowsort
SELECT ALL 12 - - 45 AS col1 FROM tab0 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2289
SELECT ALL + CAST( col1 AS SIGNED ) FROM tab0 AS cor0 WHERE 79 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2289
SELECT ALL + CAST ( col1 AS INTEGER ) FROM tab0 AS cor0 WHERE 79 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2290
SELECT DISTINCT + - MIN( 96 ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT + - MIN ( 96 ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-288

query I rowsort
SELECT ALL + 46 + - col0 FROM tab0 cor0 WHERE NOT NULL > - col0 * - col0
----

query I rowsort
SELECT - 51 * col1 + - 18 AS col0 FROM tab0 AS cor0
----
-1089
-4149
-69

query I rowsort
SELECT 90 AS col2 FROM tab1 AS cor0 WHERE ( 53 ) IS NULL
----

query I rowsort
SELECT ALL 43 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2295
SELECT + ( 19 ) * ( 71 DIV COUNT( * ) ) - + COUNT( * ) AS col1 FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
434

skipif mysql # not compatible
query I rowsort label-2295
SELECT + ( 19 ) * ( 71 / COUNT ( * ) ) - + COUNT ( * ) AS col1 FROM tab0 WHERE col2 * - col2 IS NOT NULL
----
434

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2296
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) NOT IN ( col2 * ( - ( + CAST( NULL AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query III rowsort label-2296
SELECT ALL * FROM tab0 WHERE NOT ( + col2 ) NOT IN ( col2 * ( - ( + CAST ( NULL AS INTEGER ) ) ) )
----

query I rowsort
SELECT + col0 FROM tab2 WHERE - col0 - col1 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab2 WHERE + 34 * 77 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2299
SELECT DISTINCT col2 * col0 FROM tab0 WHERE - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) / - 59 BETWEEN 3 AND + col0
----

skipif mysql # not compatible
query I rowsort label-2299
SELECT DISTINCT col2 * col0 FROM tab0 WHERE - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) / - 59 BETWEEN 3 AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - AVG ( ALL - col1 ) * - COUNT( * ) - 53 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - AVG ( ALL - col1 ) * - COUNT ( * ) - 53 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 81 - + col2 FROM tab2
----
23
41
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * - 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + - 35 FROM tab2
----
-12
23
5

query I rowsort
SELECT ALL + + 95 * + 79 FROM tab1 AS cor0
----
7505
7505
7505

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + 9 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 ) <> col2 * + 48
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2307
SELECT DISTINCT - SUM( - col2 ) DIV + 74 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2307
SELECT DISTINCT - SUM ( - col2 ) / + 74 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( - - 41 ) * + ( - ( + 8 ) ) AS col2 FROM tab2
----
-328

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2309
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) <= col1 / + col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2309
SELECT ALL * FROM tab2 WHERE NOT ( col1 ) <= col1 / + col0 + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2310
SELECT DISTINCT ( + 97 ) DIV - col1 AS col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2310
SELECT DISTINCT ( + 97 ) / - col1 AS col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT ALL - MIN( - 80 ) FROM tab1 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2312
SELECT ALL - MIN ( - 80 ) FROM tab1 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2313
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - CAST( col2 AS SIGNED ) NOT IN ( - 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2313
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * - CAST ( col2 AS INTEGER ) NOT IN ( - 48 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2314
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2314
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT COUNT( * ) AS col0 FROM tab1 cor0 WHERE NOT ( col2 + - + 26 + col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2315
SELECT COUNT ( * ) AS col0 FROM tab1 cor0 WHERE NOT ( col2 + - + 26 + col2 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL <> col0 * - col2 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) BETWEEN NULL AND + 0 * - - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2318
SELECT DISTINCT + 47 * - ( SUM( + col1 ) - - SUM( ALL - col0 ) * - COUNT( * ) ) AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
-32900

skipif mysql # not compatible
query I rowsort label-2318
SELECT DISTINCT + 47 * - ( SUM ( + col1 ) - - SUM ( ALL - col0 ) * - COUNT ( * ) ) AS col2 FROM tab0 WHERE NOT + col1 IS NULL
----
-32900

query I rowsort
SELECT DISTINCT ( - - ( + 89 ) ) + - - col0 FROM tab0
----
104
176
186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2320
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NOT NULL <> ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NOT NULL <> ( - col1 )
----

query I rowsort
SELECT 20 * + col1 * - col1 AS col0 FROM tab2
----
-118580
-52020
-89780

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 62 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - col1 FROM tab2 cor0 WHERE NOT col0 NOT IN ( + col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 17 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + + 35 + + 87 AS col0 FROM tab2
----
-1313
-1943
-718

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2326
SELECT ALL * FROM tab1 WHERE + col0 + 67 >= - col2 * ( + 88 * col1 ) + CAST( + col2 + + col1 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2326
SELECT ALL * FROM tab1 WHERE + col0 + 67 >= - col2 * ( + 88 * col1 ) + CAST ( + col2 + + col1 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( ( col0 ) ) + - col0 * - col0 - + 55 FROM tab1
----
2597
7255
8317

onlyif mysql # aggregate syntax: 
query I rowsort label-2328
SELECT DISTINCT - 37 - + 18 * 48 * + + COUNT( * ) AS col1 FROM tab2
----
-2629

skipif mysql # not compatible
query I rowsort label-2328
SELECT DISTINCT - 37 - + 18 * 48 * + + COUNT ( * ) AS col1 FROM tab2
----
-2629

query I rowsort
SELECT DISTINCT + col1 * - 40 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-1880
-200
-560

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col2 * + col2 ) BETWEEN col0 * - 40 AND col1 + col2
----

query I rowsort
SELECT ALL 3 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE col2 NOT IN ( 74 + - + 46 )
----
51
67
77

query I rowsort
SELECT DISTINCT - ( 66 ) - + col2 * + - col1 FROM tab0 cor0
----
144
33
3741

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT - + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2335
SELECT - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 0 - col0 / + col1 + - 26 NOT BETWEEN ( + col0 * 20 ) AND + col0
----

query I rowsort
SELECT col1 * - col1 * - - 6 * - col2 * col2 AS col2 FROM tab2 AS cor0
----
56918400
8255574
90605976

query II rowsort
SELECT + + 86, - 76 AS col2 FROM tab0 cor0
----
86
-76
86
-76
86
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, + 61 FROM tab1
----
14
61
47
61
5
61

query I rowsort
SELECT + col0 - - - 11 FROM tab1
----
40
74
80

query I rowsort
SELECT DISTINCT - 63 * - - 35 + + 44 * col1 AS col0 FROM tab0
----
-1281
-2161
1359

query I rowsort
SELECT 96 - - 96 + + col1 * - ( - col1 ) AS col0 FROM tab2
----
2793
4681
6121

query II rowsort
SELECT ALL - col2 AS col1, 36 FROM tab0
----
-10
36
-47
36
-99
36

onlyif mysql # DIV for integer division: 
query I rowsort label-2344
SELECT ALL col1 * - + col0 DIV + col0 + - col1 FROM tab2
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-2344
SELECT ALL col1 * - + col0 / + col0 + - col1 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT 4 - - col2 FROM tab1
----
100
63
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2346
SELECT DISTINCT MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2346
SELECT DISTINCT MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT 45 * - - 8 AS col0 FROM tab0
----
360
360
360

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT ALL - 92 * COUNT( * ) FROM tab0
----
-276

skipif mysql # not compatible
query I rowsort label-2348
SELECT ALL - 92 * COUNT ( * ) FROM tab0
----
-276

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 / + col2 ) IN ( - col1 + + 15 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - col0 * col2 * 55 FROM tab1 AS cor0
----
-1379125
-15995980
-3769920

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE NOT - ( + col0 ) + + + 33 < ( col1 + + col2 - col0 )
----
-10

query I rowsort
SELECT DISTINCT + + ( + ( - 39 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 94 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 25 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2354
SELECT + MAX( ( col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 > + 58 * - - 92 + - + col2
----
99

skipif mysql # not compatible
query I rowsort label-2354
SELECT + MAX ( ( col2 ) ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 > + 58 * - - 92 + - + col2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2355
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) * + - 17 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) * + - 17 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / col0 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + 35 * - - col2 * 57 FROM tab0 cor0
----
-197505
-19950
-93765

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + ( col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 + col2 + + - col1 col0 FROM tab2 AS cor0
----
-1086
-2597
-4359

query I rowsort
SELECT - ( + 96 ) AS col2 FROM tab1 cor0
----
-96
-96
-96

query I rowsort
SELECT DISTINCT ( + 85 ) + - col2 * col1 FROM tab2 WHERE ( - - 12 ) BETWEEN ( + ( - - ( - col1 ) ) * + 43 * - + col2 - col1 ) AND ( - 33 + 39 * + col2 )
----

query I rowsort
SELECT ALL + 73 FROM tab0 WHERE NULL IS NULL
----
73
73
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT DISTINCT - COUNT( - - 34 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2363
SELECT DISTINCT - COUNT ( - - 34 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL col1 + - + 62 * - 73 AS col1 FROM tab1
----
4531
4540
4573

query I rowsort
SELECT col0 FROM tab2 WHERE - + col0 + + col1 - + ( + - 31 ) / + + col1 / - col2 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT col1 DIV + 58 AS col2 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2366
SELECT col1 / + 58 AS col2 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT - 10 * + + col2 FROM tab2 AS cor0
----
-230
-400
-580

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 89 col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # DIV for integer division: 
query I rowsort label-2369
SELECT ALL - + col1 + 45 + - col1 + col0 DIV col1 * + 32 * - - col1 AS col0 FROM tab0 AS cor0
----
-117
2691
3147

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL - + col1 + 45 + - col1 + col0 / col1 * + 32 * - - col1 AS col0 FROM tab0 AS cor0
----
-117
2691
3147

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 73 < - - 16
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT col0 + + col1 DIV 12 col0 FROM tab0 AS cor0
----
21
88
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2371
SELECT col0 + + col1 / 12 col0 FROM tab0 AS cor0
----
21
88
97

query I rowsort
SELECT + col1 + + 9 AS col2 FROM tab1 cor0
----
14
23
56

onlyif mysql # DIV for integer division: 
query I rowsort label-2373
SELECT - + 66 DIV + 90 + - col2 * - 92 FROM tab2 AS cor0
----
2116
3680
5336

skipif mysql # not compatible
query I rowsort label-2373
SELECT - + 66 / + 90 + - col2 * - 92 FROM tab2 AS cor0
----
2116
3680
5336

query I rowsort
SELECT ALL + + col2 * + - col1 - col1 FROM tab1 AS cor0
----
-1358
-300
-3243

query II rowsort
SELECT DISTINCT + col2 + - 39 AS col0, col0 FROM tab2 AS cor0
----
-16
46
1
64
19
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 col2 FROM tab0 WHERE - 88 NOT BETWEEN + + col1 * + - col0 + + col0 + - 91 * + col2 + + 56 AND + 61
----

query I rowsort
SELECT ALL - 0 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0, - 51 AS col2 FROM tab1
----
-51
-51
-85
-51
-91
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2379
SELECT ALL COUNT( * ) * - 70 FROM tab0
----
-210

skipif mysql # not compatible
query I rowsort label-2379
SELECT ALL COUNT ( * ) * - 70 FROM tab0
----
-210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2380
SELECT 14 DIV + - COUNT( * ) AS col2 FROM tab1
----
-4

skipif mysql # not compatible
query I rowsort label-2380
SELECT 14 / + - COUNT ( * ) AS col2 FROM tab1
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-2381
SELECT ALL + 1 DIV - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL + 1 / - col0 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2382
SELECT + - 79 AS col1, COUNT( * ) AS col2 FROM tab2 AS cor0
----
-79
3

skipif mysql # not compatible
query II rowsort label-2382
SELECT + - 79 AS col1, COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-79
3

query I rowsort
SELECT ALL + + col0 * 44 AS col1 FROM tab1 AS cor0
----
2244
3740
4004

onlyif mysql # aggregate syntax: 
query I rowsort label-2384
SELECT ALL + COUNT( * ) * - 82 AS col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-2384
SELECT ALL + COUNT ( * ) * - 82 AS col2 FROM tab1 AS cor0
----
-246

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2385
SELECT DISTINCT - 21 DIV col1 * CAST( 12 AS SIGNED ) FROM tab1
----
-12
-48
0

skipif mysql # not compatible
query I rowsort label-2385
SELECT DISTINCT - 21 / col1 * CAST ( 12 AS INTEGER ) FROM tab1
----
-12
-48
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2386
SELECT COUNT( * ) * - 58 DIV - 2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2386
SELECT COUNT ( * ) * - 58 / - 2 FROM tab2
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2387
SELECT ALL CAST( - 43 AS SIGNED ) FROM tab1 AS cor0
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL CAST ( - 43 AS INTEGER ) FROM tab1 AS cor0
----
-43
-43
-43

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 83 * col0, + col2 )
----

query II rowsort
SELECT ALL - col1 AS col0, + ( + - col0 ) AS col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 97 IS NOT NULL
----

query I rowsort
SELECT col2 * + - col0 + - col2 FROM tab2 AS cor0
----
-1081
-2600
-4408

query I rowsort
SELECT DISTINCT + ( - + col2 ) * - 99 - + ( - ( - - col0 ) ) AS col2 FROM tab0 AS cor0
----
1077
4668
9898

query I rowsort
SELECT ALL - 85 + + ( + col0 ) AS col1 FROM tab1 AS cor0
----
-34
0
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2394
SELECT DISTINCT CAST( - col2 AS SIGNED ) * + col0 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2394
SELECT DISTINCT CAST ( - col2 AS INTEGER ) * + col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col2 + + ( + 91 ) AS col0 FROM tab0
----
-8
44
81

query I rowsort
SELECT ALL col2 * - + col2 + - col1 FROM tab0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT SUM( + - 5 ) + - SUM( + + col1 ) AS col2 FROM tab2
----
-210

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT SUM ( + - 5 ) + - SUM ( + + col1 ) AS col2 FROM tab2
----
-210

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab0 WHERE NOT + col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2399
SELECT - MIN( ALL - + 5 ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-2399
SELECT - MIN ( ALL - + 5 ) FROM tab1
----
5

query I rowsort
SELECT + - col1 - + + 42 FROM tab1 AS cor0
----
-47
-56
-89

query II rowsort
SELECT ALL + 84 * + - 67 AS col0, col2 AS col2 FROM tab1 cor0
----
-5628
59
-5628
68
-5628
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query I rowsort
SELECT + 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 51 + - col2 * + + col0 AS col2, col1 * + col1 col2 FROM tab1
----
-4845
196
-4964
25
-6137
2209

onlyif mysql # aggregate syntax: 
query II rowsort label-2405
SELECT - MAX( + + 34 ) + 50 AS col1, - 0 * - 41 FROM tab0
----
16
0

skipif mysql # not compatible
query II rowsort label-2405
SELECT - MAX ( + + 34 ) + 50 AS col1, - 0 * - 41 FROM tab0
----
16
0

query I rowsort
SELECT DISTINCT 97 + + - 75 FROM tab0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT ALL + 14 - - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2407
SELECT ALL + 14 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2408
SELECT 96 AS col0, CAST( + + CAST( - col2 AS SIGNED ) AS SIGNED ) * col1 FROM tab1 AS cor0 WHERE + 72 IS NOT NULL
----
96
-1344
96
-295
96
-3196

skipif mysql # not compatible
query II rowsort label-2408
SELECT 96 AS col0, CAST ( + + CAST ( - col2 AS INTEGER ) AS INTEGER ) * col1 FROM tab1 AS cor0 WHERE + 72 IS NOT NULL
----
96
-1344
96
-295
96
-3196

query II rowsort
SELECT ALL - col0 AS col2, col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 WHERE 22 > + ( col2 )
----

query II rowsort
SELECT - col2 * 97, - col2 AS col1 FROM tab0
----
-4559
-47
-9603
-99
-970
-10

query I rowsort
SELECT - col2 FROM tab1 WHERE ( col2 ) IS NULL OR - 51 < - col0 + - col0
----

query I rowsort
SELECT + 44 * + col1 FROM tab1
----
2068
220
616

query I rowsort
SELECT - ( - + col0 ) * col2 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2415
SELECT + COUNT( + + 8 ) * + 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-2415
SELECT + COUNT ( + + 8 ) * + 51 FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT ALL + 70 * + + COUNT( * ) * - 83 AS col0 FROM tab2
----
-17430

skipif mysql # not compatible
query I rowsort label-2416
SELECT ALL + 70 * + + COUNT ( * ) * - 83 AS col0 FROM tab2
----
-17430

onlyif mysql # aggregate syntax: 
query I rowsort label-2417
SELECT - 12 * COUNT( * ) AS col1 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-2417
SELECT - 12 * COUNT ( * ) AS col1 FROM tab1
----
-36

query I rowsort
SELECT DISTINCT + - col0 FROM tab1 AS cor0 WHERE col1 + 95 IN ( - col1, + col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT + COUNT( * ) * - 4 FROM tab1 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-2419
SELECT + COUNT ( * ) * - 4 FROM tab1 AS cor0
----
-12

query I rowsort
SELECT DISTINCT col2 * + 67 FROM tab2 AS cor0
----
1541
2680
3886

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT 84 - - 66 IS NULL
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * - - 73 AS col0 FROM tab2 cor0
----
3723
4891
5621

query I rowsort
SELECT ALL + ( col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 - 30 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2424
SELECT + col0 DIV - + 37 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2424
SELECT + col0 / - + 37 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2425
SELECT + col0 FROM tab0 cor0 WHERE - col0 * - CAST( NULL AS DECIMAL ) < - 13
----

skipif mysql # not compatible
query I rowsort label-2425
SELECT + col0 FROM tab0 cor0 WHERE - col0 * - CAST ( NULL AS REAL ) < - 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2426
SELECT DISTINCT - 7 + + MIN( ALL col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2426
SELECT DISTINCT - 7 + + MIN ( ALL col2 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 63 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT - COUNT( DISTINCT + col2 ) + 24 + + MIN( - - col0 ) FROM tab1 cor0
----
72

skipif mysql # not compatible
query I rowsort label-2428
SELECT - COUNT ( DISTINCT + col2 ) + 24 + + MIN ( - - col0 ) FROM tab1 cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT - SUM( - col0 ) + - - 68 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-2429
SELECT - SUM ( - col0 ) + - - 68 FROM tab0 AS cor0
----
267

query I rowsort
SELECT col1 + + 0 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL col0 * 82 * - + col0 FROM tab2
----
-173512
-335872
-461250

onlyif mysql # DIV for integer division: 
query I rowsort label-2432
SELECT DISTINCT + 37 + col1 DIV + col2 FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-2432
SELECT DISTINCT + 37 + col1 / + col2 FROM tab1
----
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * ( - + 57 ) + + col1 col2 FROM tab0
----
-1176
-4536
-56

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + + 59
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2435
SELECT DISTINCT + 30 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2435
SELECT DISTINCT + 30 * - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + ( + + 68 ) AS col2 FROM tab2 AS cor0 WHERE NULL BETWEEN - 64 AND + col2 * + + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT 80 * - ( col0 ) - + col2 FROM tab1
----
-4176
-6859
-7348

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab0 WHERE ( 9 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2440
SELECT + - SUM( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2440
SELECT + - SUM ( ALL col1 ) AS col1 FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-2441
SELECT ( + 48 ) * - col1 * col2 DIV - + col2 FROM tab0 cor0
----
1008
3888
48

skipif mysql # not compatible
query I rowsort label-2441
SELECT ( + 48 ) * - col1 * col2 / - + col2 FROM tab0 cor0
----
1008
3888
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2442
SELECT - MIN( ALL + + col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2442
SELECT - MIN ( ALL + + col0 ) FROM tab0 cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT DISTINCT - 63 * COUNT( col2 ) FROM tab1 cor0
----
-189

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - 63 * COUNT ( col2 ) FROM tab1 cor0
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-2444
SELECT ALL - - col1 DIV - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2444
SELECT ALL - - col1 / - col2 AS col0 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT DISTINCT - + MAX( - col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2445
SELECT DISTINCT - + MAX ( - col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-2446
SELECT + + COUNT( * ) col1 FROM tab0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2446
SELECT + + COUNT ( * ) col1 FROM tab0 WHERE NOT - col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT DISTINCT + MIN( + - col0 ) FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-2447
SELECT DISTINCT + MIN ( + - col0 ) FROM tab0
----
-97

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT - col2 * - - 18 AS col0 FROM tab1
----
-1062
-1224
-1728

onlyif mysql # aggregate syntax: 
query I rowsort label-2450
SELECT + 27 * + + MIN( DISTINCT + 21 ) * + COUNT( * ) - - - COUNT( * ) + + COUNT( * ) FROM tab2
----
1701

skipif mysql # not compatible
query I rowsort label-2450
SELECT + 27 * + + MIN ( DISTINCT + 21 ) * + COUNT ( * ) - - - COUNT ( * ) + + COUNT ( * ) FROM tab2
----
1701

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2451
SELECT - ( + SUM( ALL - col2 ) ) * + CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) AS col2 FROM tab1
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2451
SELECT - ( + SUM ( ALL - col2 ) ) * + CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) AS col2 FROM tab1
----
NULL
-3

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND + 58 + 54
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2454
SELECT DISTINCT col2 * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2454
SELECT DISTINCT col2 * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 + - + col0 FROM tab2 AS cor0
----
-8
13
5

query II rowsort
SELECT ALL + - col1, + col0 * 79 + + - 85 * col0 * + col2 FROM tab2 WHERE NULL >= + + 0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2457
SELECT DISTINCT - + col1 - - 42 + 25 AS col1, CAST( NULL AS DECIMAL ) col2 FROM tab0 AS cor0 WHERE NOT + ( - - 50 ) <= - + 79
----
-14
NULL
46
NULL
66
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2457
SELECT DISTINCT - + col1 - - 42 + 25 AS col1, CAST ( NULL AS REAL ) col2 FROM tab0 AS cor0 WHERE NOT + ( - - 50 ) <= - + 79
----
-14
NULL
46
NULL
66
NULL

query I rowsort
SELECT - 78 + + 88 - - - col2 FROM tab2 AS cor0
----
-13
-30
-48

query I rowsort
SELECT - + 74 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-74
-74
-74

query I rowsort
SELECT DISTINCT - - col0 * + - col1 AS col0 FROM tab2 cor0
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col1 AND ( NULL )
----

query I rowsort
SELECT - ( 27 ) AS col2 FROM tab1
----
-27
-27
-27

query I rowsort
SELECT DISTINCT col1 * + 82 + - col2 FROM tab0
----
-17
1712
6595

query I rowsort
SELECT ALL - col0 * + - col2 + + 77 FROM tab2
----
1135
2637
4427

query I rowsort
SELECT DISTINCT col0 + + - col1 AS col0 FROM tab1
----
37
44
80

query I rowsort
SELECT ( + + 35 ) FROM tab0
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 22 col0 FROM tab0
----
121
32
69

query I rowsort
SELECT - 32 - + col0 + + col1 + + col1 * + col1 * 22 AS col1 FROM tab0
----
-106
144376
9604

query I rowsort
SELECT DISTINCT col0 + + col0 * - col1 * + col1 AS col1 FROM tab1
----
-200928
-2040
-9945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT ALL 48 * - CAST( + + col1 AS SIGNED ) FROM tab1 AS cor0
----
-2256
-240
-672

skipif mysql # not compatible
query I rowsort label-2470
SELECT ALL 48 * - CAST ( + + col1 AS INTEGER ) FROM tab1 AS cor0
----
-2256
-240
-672

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2471
SELECT col0 * - CAST( NULL AS SIGNED ) / + ( + col0 ) / col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2471
SELECT col0 * - CAST ( NULL AS INTEGER ) / + ( + col0 ) / col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col1 AS col2, col0 AS col0 FROM tab1
----
-14
51
-47
91
-5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * 75 col0 FROM tab2
----
1425

query I rowsort
SELECT - - 72 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2475
SELECT DISTINCT + SUM( 23 ) DIV + + 49 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2475
SELECT DISTINCT + SUM ( 23 ) / + + 49 FROM tab2 cor0
----
1

query I rowsort
SELECT ALL ( - 18 ) * col1 FROM tab2 cor0
----
-1206
-1386
-918

onlyif mysql # aggregate syntax: 
query II rowsort label-2477
SELECT 1 AS col2, COUNT( * ) FROM tab1 AS cor0
----
1
3

skipif mysql # not compatible
query II rowsort label-2477
SELECT 1 AS col2, COUNT ( * ) FROM tab1 AS cor0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT + + COUNT( ALL - col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2478
SELECT + + COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2479
SELECT - MIN( DISTINCT - + CAST( + ( 38 ) AS SIGNED ) ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-2479
SELECT - MIN ( DISTINCT - + CAST ( + ( 38 ) AS INTEGER ) ) FROM tab2
----
38

onlyif mysql # aggregate syntax: 
query I rowsort label-2480
SELECT ALL - 63 * - MIN( ALL - - 53 ) * - COUNT( DISTINCT + - 80 ) FROM tab1
----
-3339

skipif mysql # not compatible
query I rowsort label-2480
SELECT ALL - 63 * - MIN ( ALL - - 53 ) * - COUNT ( DISTINCT + - 80 ) FROM tab1
----
-3339

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT + 38 DIV - 22 AS col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2481
SELECT + 38 / - 22 AS col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - col0 * 40 AS col1 FROM tab1
----
-2040
-3400
-3640

query I rowsort
SELECT DISTINCT - 70 * - + col2 * - - 34 AS col1 FROM tab0
----
111860
235620
23800

query I rowsort
SELECT col1 * + col1 FROM tab0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT - 13 * - 2 * 77 AS col2 FROM tab0 AS cor0
----
2002
2002
2002

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2486
SELECT ALL - CAST( 3 AS SIGNED ) DIV + col0 * + + 40 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2486
SELECT ALL - CAST ( 3 AS INTEGER ) / + col0 * + + 40 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2487
SELECT + + ( - ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2487
SELECT + + ( - ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 99 col2 FROM tab1
----
99
99
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2489
SELECT ALL + 3 AS col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2489
SELECT ALL + 3 AS col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT col0 * - ( - col1 ) + 48 FROM tab1 AS cor0
----
4325
473
762

query I rowsort
SELECT + 49 + - + col2 FROM tab1 AS cor0
----
-10
-19
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-2492
SELECT COUNT( * ) * COUNT( ALL - - col0 ) + - 89 + - - 64 * - COUNT( * ) + - 9 FROM tab1 AS cor0
----
-281

skipif mysql # not compatible
query I rowsort label-2492
SELECT COUNT ( * ) * COUNT ( ALL - - col0 ) + - 89 + - - 64 * - COUNT ( * ) + - 9 FROM tab1 AS cor0
----
-281

query I rowsort
SELECT + col2 + + - 67 - - + col1 AS col0 FROM tab0
----
-36
33
61

onlyif mysql # aggregate syntax: 
query I rowsort label-2494
SELECT ALL 84 + COUNT( * ) AS col2 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2494
SELECT ALL 84 + COUNT ( * ) AS col2 FROM tab2
----
87

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 - col0 <= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 * col2 * col0 * col0 = - - 42 )
----

query I rowsort
SELECT ALL col1 + + + col2 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 - + 23 AS col0 FROM tab0 AS cor0
----
-104
-24
-44

query I rowsort
SELECT + - col0 * - + 63 - 50 FROM tab1 cor0
----
3163
5305
5683

onlyif mysql # DIV for integer division: 
query I rowsort label-2500
SELECT DISTINCT - col0 DIV col2 AS col0 FROM tab0
----
-8
0

skipif mysql # not compatible
query I rowsort label-2500
SELECT DISTINCT - col0 / col2 AS col0 FROM tab0
----
-8
0

query I rowsort
SELECT DISTINCT 81 * + col1 AS col1 FROM tab0
----
1701
6561
81

query II rowsort
SELECT col1 * + col2 * + col0 AS col2, col2 FROM tab1
----
25075
59
290836
68
68544
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2503
SELECT + MAX( DISTINCT - col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2503
SELECT + MAX ( DISTINCT - col1 ) FROM tab1 cor0
----
-5

query II rowsort
SELECT DISTINCT + - 52 AS col2, - 73 * - + ( + col0 ) FROM tab2 AS cor0
----
-52
3358
-52
4672
-52
5475

onlyif mysql # aggregate syntax: 
query I rowsort label-2505
SELECT ALL + + COUNT( - col1 ) * - - 62 - - 38 FROM tab1 AS cor0
----
224

skipif mysql # not compatible
query I rowsort label-2505
SELECT ALL + + COUNT ( - col1 ) * - - 62 - - 38 FROM tab1 AS cor0
----
224

onlyif mysql # aggregate syntax: 
query I rowsort label-2506
SELECT DISTINCT - COUNT( - col1 ) col2 FROM tab2 cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2506
SELECT DISTINCT - COUNT ( - col1 ) col2 FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 54 >= ( - + 54 * - ( - 90 ) )
----

query I rowsort
SELECT ALL - 14 FROM tab1 WHERE NULL BETWEEN NULL AND - 93
----

query I rowsort
SELECT DISTINCT 54 * + col0 FROM tab0
----
4698
5238
810

query I rowsort
SELECT ALL + 9 * col1 * - - col0 FROM tab2
----
21114
44352
45225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2511
SELECT CAST( col0 AS SIGNED ) * + + ( col2 ) * col1 * + col2 AS col1 FROM tab1
----
1479425
19776848
6580224

skipif mysql # not compatible
query I rowsort label-2511
SELECT CAST ( col0 AS INTEGER ) * + + ( col2 ) * col1 * + col2 AS col1 FROM tab1
----
1479425
19776848
6580224

query I rowsort
SELECT col1 + + + ( - col1 ) * - col0 + + - col1 FROM tab2 WHERE NOT + col0 BETWEEN - 22 * + - col2 * + col2 + 74 AND ( NULL )
----
2346
4928
5025

query II rowsort
SELECT ALL - col2, - 58 AS col0 FROM tab0
----
-10
-58
-47
-58
-99
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2514
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-2514
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query III rowsort
SELECT * FROM tab2 WHERE NOT 36 + - 85 IN ( 26, - 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, - col2 FROM tab2 AS cor0
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2517
SELECT - 84 * - MAX( ALL - - col2 ) FROM tab2 AS cor0
----
4872

skipif mysql # not compatible
query I rowsort label-2517
SELECT - 84 * - MAX ( ALL - - col2 ) FROM tab2 AS cor0
----
4872

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NOT + - col1 * + col1 + + col2 * - 73 - - col1 * + 15 BETWEEN NULL AND - col0 + col0 - - - ( - + 95 ) - + col1 * + - col0 * + col0 + - col0 ) )
----

query I rowsort
SELECT + col2 + - - 56 FROM tab1
----
115
124
152

query I rowsort
SELECT ALL - col1 FROM tab1 AS cor0 WHERE NULL > 25
----

query II rowsort
SELECT - col1 + + col2, - col0 AS col0 FROM tab2 AS cor0
----
-28
-46
-37
-64
-9
-75

query I rowsort
SELECT - - col2 + + + col1 + - 81 FROM tab0 AS cor0
----
-50
19
47

query I rowsort
SELECT DISTINCT - ( - + 89 ) + + col2 - + 10 FROM tab0 AS cor0 WHERE NOT col1 + - - col0 - - 4 + - col1 IN ( col0 / - - ( + - col0 ) + col1 - + 89, - 24 * col1 + - - col0 + + col1, + - col2 )
----
126
178
89

onlyif mysql # aggregate syntax: 
query I rowsort label-2524
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 9 + + col1 + + + 74 * - 82 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2524
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + 9 + + col1 + + + 74 * - 82 IS NULL
----
3

query I rowsort
SELECT DISTINCT 32 * - + col1 FROM tab1 AS cor0 WHERE NOT 46 * - col1 * - - col1 + - col1 - col0 IS NULL
----
-1504
-160
-448

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT DISTINCT - MIN( ALL - 92 ) FROM tab1 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-2527
SELECT DISTINCT - MIN ( ALL - 92 ) FROM tab1 AS cor0
----
92

query I rowsort
SELECT + col0 * + - col2 AS col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT col2 - + - ( + - col1 ) FROM tab2
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT MIN( - - col2 ) - - + 54 AS col2 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-2530
SELECT MIN ( - - col2 ) - - + 54 AS col2 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + + 89 col1 FROM tab0
----
104
176
186

query I rowsort
SELECT + - col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT + + 55 + - - col2 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2535
SELECT DISTINCT - + col0 DIV + 69 + ( - col2 ) + - + col0 - - col0 - - - 13 - + col1 * - col2 * + 77 AS col0 FROM tab0 AS cor0
----
16146
293079
7510

skipif mysql # not compatible
query I rowsort label-2535
SELECT DISTINCT - + col0 / + 69 + ( - col2 ) + - + col0 - - col0 - - - 13 - + col1 * - col2 * + 77 AS col0 FROM tab0 AS cor0
----
16146
293079
7510

query I rowsort
SELECT ALL - ( col1 ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 62 FROM tab1 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2538
SELECT + col2 DIV - + col1 * - + col0 * col2 * 3 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2538
SELECT + col2 / - + col1 * - + col0 * col2 * 3 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 51 AS col0 FROM tab2 cor0
----
-51
-51
-51

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < + 41 / - 2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2541
SELECT ALL - SUM( - 63 ) FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-2541
SELECT ALL - SUM ( - 63 ) FROM tab0 AS cor0
----
189

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col0 ) + - col2 + + col0 < + - 79 + col1 / + + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2543
SELECT ALL 12 + COUNT( * ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-2543
SELECT ALL 12 + COUNT ( * ) FROM tab1
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2544
SELECT ALL * FROM tab0 WHERE NOT + CAST( - col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2544
SELECT ALL * FROM tab0 WHERE NOT + CAST ( - col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT DISTINCT + MIN( DISTINCT + col0 ) AS col1 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-2545
SELECT DISTINCT + MIN ( DISTINCT + col0 ) AS col1 FROM tab0
----
15

query I rowsort
SELECT + col0 * + col2 + - 94 * - col2 AS col0 FROM tab2
----
3220
6320
9802

query I rowsort
SELECT + col2 FROM tab2 WHERE - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2548
SELECT DISTINCT 20 col1, COUNT( * ) FROM tab1 cor0
----
20
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2548
SELECT DISTINCT 20 col1, COUNT ( * ) FROM tab1 cor0
----
20
3

query I rowsort
SELECT - col0 + - 6 AS col0 FROM tab2 AS cor0
----
-52
-70
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2550
SELECT * FROM tab2 AS cor0 WHERE + col0 - + col2 * + CAST( NULL AS SIGNED ) * col0 * + - 85 <> - col1 * + - 9
----

skipif mysql # not compatible
query III rowsort label-2550
SELECT * FROM tab2 AS cor0 WHERE + col0 - + col2 * + CAST ( NULL AS INTEGER ) * col0 * + - 85 <> - col1 * + - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - 99 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - 99 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 + + + col0 + + col2 + - col1 * - - 19 AS col0, + col0 + 71 AS col0 FROM tab1 AS cor0
----
-23
122
-666
162
108
156

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 + - - 16 <> NULL
----

query I rowsort
SELECT DISTINCT - ( - 42 ) AS col0 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT 7 * + - col0 * 79 + - - col2 AS col1 FROM tab0
----
-48101
-53542
-8248

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2556
SELECT ALL - + AVG ( - + col1 ) + - COUNT( * ) * COUNT( ALL - col2 ) + - + ( 33 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2556
SELECT ALL - + AVG ( - + col1 ) + - COUNT ( * ) * COUNT ( ALL - col2 ) + - + ( 33 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - col2 * 91 + + + col1 AS col1 FROM tab1 cor0
----
5374
6235
8750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2558
SELECT ALL - col2 * + + col0 * 44 / - 56 - + - CAST( NULL AS SIGNED ) * col0 * - 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2558
SELECT ALL - col2 * + + col0 * 44 / - 56 - + - CAST ( NULL AS INTEGER ) * col0 * - 40 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2559
SELECT - ( + + 87 ) + + + CAST( NULL AS SIGNED ) - + col2 * + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2559
SELECT - ( + + 87 ) + + + CAST ( NULL AS INTEGER ) - + col2 * + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * col2 + + + col0 AS col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - - ( - - COUNT( * ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - - ( - - COUNT ( * ) ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT 30 * + col0 + + col2 + + col2 + + col1 - + col2 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + + col0 AND + col0
----

query I rowsort
SELECT - - col2 + + col2 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT + COUNT( DISTINCT - col1 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT + COUNT ( DISTINCT - col1 ) FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 * + - 4 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT DISTINCT - + ( MIN( + col0 ) ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2566
SELECT DISTINCT - + ( MIN ( + col0 ) ) FROM tab1 cor0
----
-51

query I rowsort
SELECT ALL - col1 * - 37 FROM tab2 AS cor0
----
1887
2479
2849

query I rowsort
SELECT DISTINCT - 55 FROM tab0 WHERE NOT - 75 IS NULL
----
-55

query II rowsort
SELECT DISTINCT + col2 AS col1, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT 47 + - col1 FROM tab0 AS cor0 WHERE NOT NULL <= - col1 + + ( - - 24 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2571
SELECT ALL - + CAST( NULL AS SIGNED ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-2571
SELECT ALL - + CAST ( NULL AS INTEGER ), col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query II rowsort
SELECT ALL + col1, col0 + + 50 + - col1 FROM tab1 AS cor0
----
14
87
47
94
5
130

query I rowsort
SELECT DISTINCT + ( 54 ) AS col2 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL ( col0 ) + + + col0 FROM tab1 AS cor0 WHERE NOT col0 IN ( - 32 )
----
102
170
182

query II rowsort
SELECT ALL col0 * + col1 * + 96 AS col0, - 52 + - 16 AS col0 FROM tab1 AS cor0
----
40800
-68
410592
-68
68544
-68

query I rowsort
SELECT DISTINCT + 81 * - 79 AS col2 FROM tab0 AS cor0
----
-6399

query I rowsort
SELECT ALL col2 + + + 43 AS col1 FROM tab1
----
102
111
139

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2578
SELECT * FROM tab1 WHERE + 97 * - 11 + + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2578
SELECT * FROM tab1 WHERE + 97 * - 11 + + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + 42 AS col1 FROM tab0 WHERE col1 IS NOT NULL
----
-42

query III rowsort
SELECT * FROM tab1 WHERE + 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - + 40 ) AS col0 FROM tab1
----
40
40
40

query I rowsort
SELECT ( ( - + ( + col1 ) ) ) * - - 98 AS col0 FROM tab0
----
-2058
-7938
-98

query I rowsort
SELECT - ( + ( + + 69 ) ) AS col0 FROM tab0
----
-69
-69
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT + col2 * - - CAST( - col2 AS SIGNED ) FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT + col2 * - - CAST ( - col2 AS INTEGER ) FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT DISTINCT 49 + 43 FROM tab0
----
92

query I rowsort
SELECT - col1 + 7 AS col1 FROM tab1
----
-40
-7
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2587
SELECT col1 * + col0 + + col1 + + + col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2587
SELECT col1 * + col0 + + col1 + + + col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + col2 ) - - 44 AS col1 FROM tab0 AS cor0
----
143
54
91

query I rowsort
SELECT DISTINCT - 85 - col1 FROM tab2 AS cor0
----
-136
-152
-162

query I rowsort
SELECT - col0 - + 14 + - col1 * + col2 FROM tab1 AS cor0
----
-1409
-3301
-394

query I rowsort
SELECT - 62 - - - col0 * + col1 AS col0 FROM tab1 AS cor0
----
-4339
-487
-776

query I rowsort
SELECT col0 - 70 AS col0 FROM tab2 AS cor0
----
-24
-6
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT - SUM( ALL - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2593
SELECT - SUM ( ALL - col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT ALL - AVG ( ALL 66 ) AS col0 FROM tab0 WHERE NOT + 27 + - col2 NOT BETWEEN - ( - 71 ) AND NULL
----
NULL

query I rowsort
SELECT DISTINCT - + 65 AS col0 FROM tab2 WHERE NOT NULL BETWEEN NULL AND 34
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2596
SELECT ALL + 19 AS col2, - COUNT( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
19
0

skipif mysql # not compatible
query II rowsort label-2596
SELECT ALL + 19 AS col2, - COUNT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
19
0

query I rowsort
SELECT - 6 * 62 * + col2 AS col0 FROM tab2 cor0
----
-14880
-21576
-8556

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2598
SELECT ALL MIN( - - col2 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-2598
SELECT ALL MIN ( - - col2 ) / - COUNT ( * ) FROM tab1 AS cor0
----
-19

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 84 * 14 > + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2600
SELECT COUNT( - 10 ), + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-2600
SELECT COUNT ( - 10 ), + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT - + 17 DIV + col0 * + col2 * + 63 * + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2601
SELECT - + 17 / + col0 * + col2 * + 63 * + - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + ( + col1 ) * + - col1 * - + 77 FROM tab0 AS cor0
----
33957
505197
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2603
SELECT + - col1 DIV - + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2603
SELECT + - col1 / - + col0 FROM tab0 AS cor0
----
0
0
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, col1 AS col2 FROM tab1
----
14
14
47
47
5
5

query I rowsort
SELECT DISTINCT - + 18 * + col1 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 17 * - 52 * - col0 FROM tab0 WHERE NULL < - 0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2607
SELECT DISTINCT + SUM( DISTINCT - 68 ) + - - MIN( DISTINCT + col2 ) FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-2607
SELECT DISTINCT + SUM ( DISTINCT - 68 ) + - - MIN ( DISTINCT + col2 ) FROM tab2
----
-45

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + - col1
----

query I rowsort
SELECT ALL + col0 + + - 25 AS col0 FROM tab1
----
26
60
66

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN col0 AND - col0
----

query I rowsort
SELECT - col1 * - col0 * - 55 AS col1 FROM tab0 AS cor0
----
-100485
-5335
-66825

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT DISTINCT - + SUM( - - col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-2612
SELECT DISTINCT - + SUM ( - - col1 ) FROM tab1 AS cor0
----
-66

query I rowsort
SELECT 61 / - col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT 56 AS col1, - col2 AS col1 FROM tab2 AS cor0
----
56
-23
56
-40
56
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + 17 col2 FROM tab0 AS cor0
----
-70
-80
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 - col2 * - + ( - col2 ) col1, col0 * - 7 AS col2 FROM tab0 AS cor0
----
-2162
-105
-90
-609
-9702
-679

query I rowsort
SELECT ALL - + 59 FROM tab2 AS cor0 WHERE NOT + col1 NOT BETWEEN 46 AND + - col1 + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2618
SELECT + COUNT( * ) + - + ( MAX( ALL - col1 ) ) DIV + 9 * COUNT( * ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2618
SELECT + COUNT ( * ) + - + ( MAX ( ALL - col1 ) ) / + 9 * COUNT ( * ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL - col0 - - + col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - 48 * + - col0 AS col2 FROM tab0 AS cor0
----
4176
4656
720

onlyif mysql # aggregate syntax: 
query I rowsort label-2621
SELECT ALL - MAX( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2621
SELECT ALL - MAX ( DISTINCT col0 ) AS col1 FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2622
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) IS NOT NULL OR NOT + col0 = + ( - 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2622
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) IS NOT NULL OR NOT + col0 = + ( - 90 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2623
SELECT ALL MAX( ALL - 67 ) col2 FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2623
SELECT ALL MAX ( ALL - 67 ) col2 FROM tab1 AS cor0
----
-67

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < - ( + col2 ) * - col0
----

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( NULL ) = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT ALL + SUM( DISTINCT + + 33 ) * COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL + SUM ( DISTINCT + + 33 ) * COUNT ( * ) FROM tab1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2627
SELECT ALL - col1 * col2 DIV + - col2 AS col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2627
SELECT ALL - col1 * col2 / + - col2 AS col0 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2628
SELECT CAST( NULL AS SIGNED ) / + + COUNT( - - 29 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2628
SELECT CAST ( NULL AS INTEGER ) / + + COUNT ( - - 29 ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2629
SELECT ALL - CAST( NULL AS SIGNED ) * - - 40 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2629
SELECT ALL - CAST ( NULL AS INTEGER ) * - - 40 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2630
SELECT col0 DIV - 62 FROM tab0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2630
SELECT col0 / - 62 FROM tab0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 35 FROM tab0 WHERE NOT NULL <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2632
SELECT DISTINCT - col0 AS col2, - col0 DIV - col2 col0 FROM tab0
----
-15
0
-87
8
-97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2632
SELECT DISTINCT - col0 AS col2, - col0 / - col2 col0 FROM tab0
----
-15
0
-87
8
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2633
SELECT DISTINCT + MIN( + + 24 ) FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2633
SELECT DISTINCT + MIN ( + + 24 ) FROM tab1 AS cor0
----
24

query I rowsort
SELECT + ( - col1 ) * + 68 AS col1 FROM tab2 AS cor0
----
-3468
-4556
-5236

query I rowsort
SELECT - 57 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

query I rowsort
SELECT - ( 51 ) + + col1 FROM tab1 AS cor0
----
-37
-4
-46

query I rowsort
SELECT - + col0 + ( col2 ) FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2638
SELECT + col1 * - col0 * CAST( NULL AS SIGNED ) + - - col1 + + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2638
SELECT + col1 * - col0 * CAST ( NULL AS INTEGER ) + - - col1 + + - col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2639
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col2 / CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2639
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col2 / CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col0 FROM tab0 AS cor0 WHERE - 2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2641
SELECT ALL col1 AS col1, - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-2641
SELECT ALL col1 AS col1, - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT DISTINCT + - col0 AS col0, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 64 AS col1, col1 col0 FROM tab0 AS cor0
----
64
1
64
21
64
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2644
SELECT DISTINCT + + ( - + col1 ) FROM tab1 WHERE + col2 <> + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2644
SELECT DISTINCT + + ( - + col1 ) FROM tab1 WHERE + col2 <> + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 88 - + + 25 FROM tab2
----
63
63
63

query II rowsort
SELECT - 14 - - - col0, col0 + - + col1 + - col1 * + 18 AS col2 FROM tab1 AS cor0
----
-105
-802
-65
-215
-99
-10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * col0 * + 48 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NULL
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 68 + + col0 BETWEEN - - col2 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT + col2 + + + 91 * + col1 AS col0 FROM tab2
----
4664
6155
7047

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT BETWEEN - - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2652
SELECT ALL + 91 * - + COUNT( * ) FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2652
SELECT ALL + 91 * - + COUNT ( * ) FROM tab2 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-2653
SELECT ALL + ( SUM( + col2 ) ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL + ( SUM ( + col2 ) ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2654
SELECT DISTINCT col2 DIV + col0 + - - col1 + - 75 * + - ( - - CAST( + - col0 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-3810
-6370
-6778

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2654
SELECT DISTINCT col2 / + col0 + - - col1 + - 75 * + - ( - - CAST ( + - col0 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-3810
-6370
-6778

query I rowsort
SELECT ALL + ( + + col0 ) AS col2 FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 45 + + 23 * + col0 col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
1013
1427
1680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2657
SELECT - + CAST( ( 10 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-2657
SELECT - + CAST ( ( 10 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-10
-10

query I rowsort
SELECT - - 82 * ( + col2 ) AS col1 FROM tab0 AS cor0
----
3854
8118
820

query II rowsort
SELECT ALL - 79, + col0 AS col2 FROM tab0 AS cor0
----
-79
15
-79
87
-79
97

query I rowsort
SELECT ALL + ( - 33 ) FROM tab2 AS cor0
----
-33
-33
-33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - + col0 + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2662
SELECT DISTINCT col2 DIV ( - + col1 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2662
SELECT DISTINCT col2 / ( - + col1 ) AS col0 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 <> col1 + + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT ALL + 94 * col1 DIV - - col1 FROM tab2
----
94
94
94

skipif mysql # not compatible
query I rowsort label-2664
SELECT ALL + 94 * col1 / - - col1 FROM tab2
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-2665
SELECT DISTINCT + col1 DIV + col0 * - col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2665
SELECT DISTINCT + col1 / + col0 * - col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2666
SELECT + col0 DIV - - col2 + - 31 FROM tab2 WHERE NOT col2 * - + CAST( NULL AS SIGNED ) DIV + col2 * ( CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-29
-30
-30

skipif mysql # not compatible
query I rowsort label-2666
SELECT + col0 / - - col2 + - 31 FROM tab2 WHERE NOT col2 * - + CAST ( NULL AS INTEGER ) / + col2 * ( CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-29
-30
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * col0 * - col1 col0 FROM tab1
----
-201019
-2125
-9996

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2668
SELECT ALL + ( - + 14 ) * + CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL + ( - + 14 ) * + CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col2 AS col2 FROM tab0
----
15
-47
87
-10
97
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2671
SELECT DISTINCT col2 DIV + col2 col2 FROM tab0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2671
SELECT DISTINCT col2 / + col2 col2 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT + + SUM( DISTINCT - + 26 ) col1 FROM tab1 AS cor0
----
-26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2672
SELECT + + SUM ( DISTINCT - + 26 ) col1 FROM tab1 AS cor0
----
-26

onlyif mysql # aggregate syntax: 
query II rowsort label-2673
SELECT - COUNT( * ), MAX( + + col0 ) AS col1 FROM tab0 AS cor0
----
-3
97

skipif mysql # not compatible
query II rowsort label-2673
SELECT - COUNT ( * ), MAX ( + + col0 ) AS col1 FROM tab0 AS cor0
----
-3
97

query I rowsort
SELECT - - 68 FROM tab1 cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT COUNT( DISTINCT - 86 ) + - 55 FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2675
SELECT COUNT ( DISTINCT - 86 ) + - 55 FROM tab0 AS cor0
----
-54

query I rowsort
SELECT - 19 * + 42 + + col2 + 89 + + + 31 * - col2 * + col0 + ( + ( 30 ) ) * + - 30 + + col0 * - + col1 AS col0 FROM tab0 AS cor0
----
-24632
-299300
-30396

query I rowsort
SELECT ALL + + ( - 10 ) + + - col0 - + 19 FROM tab1 AS cor0 WHERE - 96 NOT BETWEEN - col0 AND NULL
----
-114
-120
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT DISTINCT - COUNT( * ) + + 8 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT - COUNT ( * ) + + 8 FROM tab1 AS cor0
----
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT col2 + + 5 AS col0 FROM tab0 AS cor0
----
104
15
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2681
SELECT DISTINCT - + CAST( NULL AS SIGNED ) * - col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) * - col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 26 + + 8 FROM tab0
----
34

query I rowsort
SELECT 52 + + 87 + + col2 AS col0 FROM tab1
----
198
207
235

onlyif mysql # aggregate syntax: 
query I rowsort label-2684
SELECT DISTINCT + 61 + - COUNT( * ) AS col2 FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-2684
SELECT DISTINCT + 61 + - COUNT ( * ) AS col2 FROM tab1
----
58

query I rowsort
SELECT + col0 * + col0 * + col2 + + col1 FROM tab1 WHERE + col1 / + col0 + - + 12 IS NOT NULL
----
249710
426280
563155

query I rowsort
SELECT DISTINCT col1 * + col2 + col0 * + col0 AS col1 FROM tab1
----
11477
3945
7520

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2687
SELECT DISTINCT + 6 FROM tab2 WHERE + - 43 * col0 + - - col0 <= - CAST( NULL AS SIGNED ) - - col1 / - - col2 * + col1
----

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT + 6 FROM tab2 WHERE + - 43 * col0 + - - col0 <= - CAST ( NULL AS INTEGER ) - - col1 / - - col2 * + col1
----

query I rowsort
SELECT - - 2 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col0 * - + col0 * + col2 - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL - - 73 AS col2, 39 AS col0, - + col1 * + col0 FROM tab0 AS cor0
----
9 values hashing to af96b2e5792e3f872520015a1d9b8ed7

query I rowsort
SELECT 95 AS col0 FROM tab0 AS cor0 WHERE col0 <> - 97 * + 74
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-2692
SELECT ALL COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL <= NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2692
SELECT ALL COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT ( NULL <= NULL )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2693
SELECT - COUNT( * ) * + COUNT( * ) - - COUNT( * ) DIV + 10 AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2693
SELECT - COUNT ( * ) * + COUNT ( * ) - - COUNT ( * ) / + 10 AS col2 FROM tab2 AS cor0
----
-9

query II rowsort
SELECT 55 * - 99 * - + 61, + 98 / 17 / + + 36 * - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - + ( - col0 ) FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2696
SELECT - + MAX( ALL + col1 ) AS col0, - CAST( NULL AS SIGNED ) + + AVG ( ALL col0 ) - 87 FROM tab0 AS cor0
----
-81
NULL

skipif mysql # not compatible
query II rowsort label-2696
SELECT - + MAX ( ALL + col1 ) AS col0, - CAST ( NULL AS INTEGER ) + + AVG ( ALL col0 ) - 87 FROM tab0 AS cor0
----
-81
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2697
SELECT ( - CAST( NULL AS SIGNED ) ) AS col2, + COUNT( * ) AS col2 FROM tab1 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-2697
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col2, + COUNT ( * ) AS col2 FROM tab1 cor0
----
NULL
3

query I rowsort
SELECT ALL - + 0 AS col1 FROM tab0 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 43 * - 48 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT SUM( ( col2 ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT SUM ( ( col2 ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT + COUNT( * ) FROM tab2 WHERE NOT + 2 * - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2701
SELECT + COUNT ( * ) FROM tab2 WHERE NOT + 2 * - col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 4, col1 * + 16 col2 FROM tab2
----
4
1072
4
1232
4
816

onlyif mysql # aggregate syntax: 
query II rowsort label-2703
SELECT DISTINCT - COUNT( * ) AS col1, + COUNT( * ) AS col2 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-2703
SELECT DISTINCT - COUNT ( * ) AS col1, + COUNT ( * ) AS col2 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2704
SELECT + ( COUNT( * ) ) * + - 46 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-2704
SELECT + ( COUNT ( * ) ) * + - 46 FROM tab1
----
-138

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2705
SELECT 38 DIV - - COUNT( * ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2705
SELECT 38 / - - COUNT ( * ) AS col1 FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2706
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 62 * - CAST( NULL AS SIGNED ) / - col1 / 92 = - + 72
----

skipif mysql # not compatible
query III rowsort label-2706
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 62 * - CAST ( NULL AS INTEGER ) / - col1 / 92 = - + 72
----

query I rowsort
SELECT - ( + 50 ) * - - col1 FROM tab2 AS cor0
----
-2550
-3350
-3850

query I rowsort
SELECT 25 * col2 FROM tab1
----
1475
1700
2400

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( - col1 ) col1 FROM tab1 WHERE col1 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( 94 )
----

query I rowsort
SELECT + 58 + + 28 AS col2 FROM tab0
----
86
86
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2712
SELECT DISTINCT - col0 + + col0 DIV + 44 AS col1 FROM tab2
----
-45
-63
-74

skipif mysql # not compatible
query I rowsort label-2712
SELECT DISTINCT - col0 + + col0 / + 44 AS col1 FROM tab2
----
-45
-63
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2713
SELECT ALL + 71 * COUNT( * ) AS col0 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
213

skipif mysql # not compatible
query I rowsort label-2713
SELECT ALL + 71 * COUNT ( * ) AS col0 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
213

query I rowsort
SELECT ALL - 19 AS col1 FROM tab1 WHERE NULL NOT BETWEEN - col1 AND col1 * 61
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - ( - 35 ) col0 FROM tab1
----
1645
175
490

query I rowsort
SELECT - ( col2 ) * - 22 FROM tab2
----
1276
506
880

query I rowsort
SELECT + 48 + col1 AS col0 FROM tab0
----
129
49
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT SUM( ALL + col0 ) * ( COUNT( DISTINCT ( col2 ) ) ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT SUM ( ALL + col0 ) * ( COUNT ( DISTINCT ( col2 ) ) ) AS col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2719
SELECT + COUNT( * ) + + 56 FROM tab2 WHERE NOT col2 IS NOT NULL
----
56

skipif mysql # not compatible
query I rowsort label-2719
SELECT + COUNT ( * ) + + 56 FROM tab2 WHERE NOT col2 IS NOT NULL
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2720
SELECT - COUNT( * ) * + 17 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-2720
SELECT - COUNT ( * ) * + 17 FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE 50 - - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + ( - 66 + - col0 * col0 ) AS col0 FROM tab2
----
-2233
-4239
-5758

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 9 col1 FROM tab1
----
14
23
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2724
SELECT DISTINCT - COUNT( col0 ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-2724
SELECT DISTINCT - COUNT ( col0 ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2725
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + 79 * - col2 NOT IN ( 78 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2725
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 + 79 * - col2 NOT IN ( 78 * CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 * col2 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 > - col1 * ( 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 ) <> + col1 / + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NULL > 10 + 54
----

query I rowsort
SELECT ALL 65 + col1 FROM tab0
----
146
66
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2731
SELECT - COUNT( DISTINCT + col2 ) DIV - ( COUNT( * ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2731
SELECT - COUNT ( DISTINCT + col2 ) / - ( COUNT ( * ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT - 44 * SUM( ALL - 37 ) AS col2 FROM tab1
----
4884

skipif mysql # not compatible
query I rowsort label-2732
SELECT - 44 * SUM ( ALL - 37 ) AS col2 FROM tab1
----
4884

query I rowsort
SELECT + 65 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL - col2 - 42 FROM tab2 cor0
----
-100
-65
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2735
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT ALL + COUNT( DISTINCT - 23 ) FROM tab0 AS cor0 WHERE NOT col2 * col0 > col0 + col1
----
0

skipif mysql # not compatible
query I rowsort label-2736
SELECT ALL + COUNT ( DISTINCT - 23 ) FROM tab0 AS cor0 WHERE NOT col2 * col0 > col0 + col1
----
0

query I rowsort
SELECT ALL + 47 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT ALL col2 * 56 FROM tab1 AS cor0 WHERE - 23 + 89 IS NOT NULL
----
3304
3808
5376

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - ( - col0 ) ) < + col1
----
15
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> - 22
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col0 <> col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT - MAX( DISTINCT - col1 ) col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2742
SELECT - MAX ( DISTINCT - col1 ) col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - AVG ( - col2 ) * 81 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2744
SELECT + CAST( - 49 AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 * col1 + + col1 / col0 ) IS NULL
----
-49
-49
-49

skipif mysql # not compatible
query I rowsort label-2744
SELECT + CAST ( - 49 AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( + col0 * col1 + + col1 / col0 ) IS NULL
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2745
SELECT DISTINCT + + 14 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2745
SELECT DISTINCT + + 14 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
42

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 1 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * 34 AS col2 FROM tab0
----
2958
3298
510

query I rowsort
SELECT ALL + 67 * - + col0 FROM tab0
----
-1005
-5829
-6499

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 + + col0 ) = 87
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 27 ) * + col1 + 42 * + 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 99 + - col2 - - 58 FROM tab1
----
-100
-109
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 0 * - - col2 * col1 + - col1 col2 FROM tab1 AS cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + 66 / + col2 < 90
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2754
SELECT DISTINCT + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2754
SELECT DISTINCT + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2755
SELECT DISTINCT + 73 * - CAST( - 77 AS SIGNED ) + - COUNT( * ) FROM tab0 AS cor0
----
5618

skipif mysql # not compatible
query I rowsort label-2755
SELECT DISTINCT + 73 * - CAST ( - 77 AS INTEGER ) + - COUNT ( * ) FROM tab0 AS cor0
----
5618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2756
SELECT DISTINCT col2 * - CAST( - 21 AS SIGNED ) FROM tab1 AS cor0
----
1239
1428
2016

skipif mysql # not compatible
query I rowsort label-2756
SELECT DISTINCT col2 * - CAST ( - 21 AS INTEGER ) FROM tab1 AS cor0
----
1239
1428
2016

onlyif mysql # DIV for integer division: 
query I rowsort label-2757
SELECT + 32 DIV - 54 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2757
SELECT + 32 / - 54 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col2 FROM tab1 cor0 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 NOT IN ( col0 - - 55 * 7 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + - col2 AS col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT - MIN( + + col0 ) AS col0 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-2761
SELECT - MIN ( + + col0 ) AS col0 FROM tab0
----
-15

query I rowsort
SELECT - 81 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query II rowsort
SELECT + col0 AS col1, + 6 FROM tab2
----
46
6
64
6
75
6

onlyif mysql # aggregate syntax: 
query I rowsort label-2764
SELECT MIN( - col0 ) AS col2 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col1 AND 91
----
NULL

skipif mysql # not compatible
query I rowsort label-2764
SELECT MIN ( - col0 ) AS col2 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col1 AND 91
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 - col2 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2766
SELECT ALL + MIN( - CAST( NULL AS SIGNED ) ) * + ( 56 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT ALL + MIN ( - CAST ( NULL AS INTEGER ) ) * + ( 56 ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 - + col0 col2 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2768
SELECT + col0 + - - CAST( NULL AS SIGNED ) + col0 * 2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT + col0 + - - CAST ( NULL AS INTEGER ) + col0 * 2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 + - - 88 AS col2 FROM tab0 AS cor0
----
67
7
87

query I rowsort
SELECT - + 19 + - 51 * col2 FROM tab0 AS cor0
----
-2416
-5068
-529

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2771
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - CAST( + col2 AS DECIMAL ) + - CAST( + col0 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2771
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * - - CAST ( + col2 AS REAL ) + - CAST ( + col0 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * + 69 * col0 + - col2 * + col1 FROM tab0 AS cor0
----
125853
6594
80028

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2773
SELECT ALL + SUM( - + 75 ) DIV - MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL + SUM ( - + 75 ) / - MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT ALL - col2 DIV - - 39 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-2774
SELECT ALL - col2 / - - 39 FROM tab0 AS cor0
----
-1
-2
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT + 78 + 80 + CAST( col2 AS SIGNED ) * + col1 FROM tab2
----
1331
3238
4044

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT + 78 + 80 + CAST ( col2 AS INTEGER ) * + col1 FROM tab2
----
1331
3238
4044

query III rowsort
SELECT * FROM tab2 WHERE + + col0 + - 64 NOT IN ( + 61 * + col1 - + 34 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2777
SELECT COUNT( * ) * 42 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
126
NULL

skipif mysql # not compatible
query II rowsort label-2777
SELECT COUNT ( * ) * 42 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
126
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 + + col0 = col0
----

query I rowsort
SELECT + col0 * + 93 FROM tab1
----
4743
7905
8463

query II rowsort
SELECT - col0 * - + 22 AS col1, 81 * col2 AS col2 FROM tab1
----
1122
7776
1870
4779
2002
5508

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + - col1 + - - ( col2 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT + MAX( col1 ) * 53 AS col0 FROM tab2 AS cor0
----
4081

skipif mysql # not compatible
query I rowsort label-2782
SELECT + MAX ( col1 ) * 53 AS col0 FROM tab2 AS cor0
----
4081

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT - SUM( - 22 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2783
SELECT - SUM ( - 22 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE NOT col1 / - ( + 36 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * - 63 + col0 NOT IN ( - 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2786
SELECT - CAST( 2 AS SIGNED ) AS col0 FROM tab0 WHERE NOT - col0 * + col0 + 30 - 62 * + 33 NOT IN ( 94 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-2786
SELECT - CAST ( 2 AS INTEGER ) AS col0 FROM tab0 WHERE NOT - col0 * + col0 + 30 - 62 * + 33 NOT IN ( 94 + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT col2 DIV - - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT col2 / - - col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2788
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2788
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 98 ) * - 86 + - 24 col1 FROM tab2 AS cor0
----
-8452
-8452
-8452

query I rowsort
SELECT col0 * 61 + - col1 + - col0 AS col2 FROM tab1 AS cor0
----
3046
5095
5413

query II rowsort
SELECT ALL 60, + col1 FROM tab1 AS cor0
----
60
14
60
47
60
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2792
SELECT SUM( ALL + + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2792
SELECT SUM ( ALL + + col1 ) FROM tab2 AS cor0
----
195

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col0 >= - + col2 + + 90
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 25 NOT IN ( + - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col0 * + col2 * - 23
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + col2 + - + col0 ) >= + 36 + + col2
----

query I rowsort
SELECT ALL 10 + + + col2 AS col0 FROM tab1
----
106
69
78

onlyif mysql # aggregate syntax: 
query I rowsort label-2798
SELECT ALL - MIN( ALL + ( - ( 17 ) ) ) col2 FROM tab0
----
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2798
SELECT ALL - MIN ( ALL + ( - ( 17 ) ) ) col2 FROM tab0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2799
SELECT DISTINCT - 5 FROM tab2 WHERE NOT + - CAST( - - 82 AS SIGNED ) * - - 57 IS NULL
----
-5

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT - 5 FROM tab2 WHERE NOT + - CAST ( - - 82 AS INTEGER ) * - - 57 IS NULL
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-2800
SELECT - 86, ( COUNT( * ) ) AS col1 FROM tab1
----
-86
3

skipif mysql # not compatible
query II rowsort label-2800
SELECT - 86, ( COUNT ( * ) ) AS col1 FROM tab1
----
-86
3

query II rowsort
SELECT ALL col2 + + col0 * col1 + - - col2 AS col2, col2 AS col2 FROM tab2
----
2392
23
5008
40
5141
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - + col1 + - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT SUM( ALL - ( - col0 ) ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-2803
SELECT SUM ( ALL - ( - col0 ) ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT 97 + - + ( - 74 ) FROM tab2
----
171

onlyif mysql # DIV for integer division: 
query I rowsort label-2805
SELECT ALL 85 + - col0 DIV + 58 AS col0 FROM tab2 cor0
----
84
84
85

skipif mysql # not compatible
query I rowsort label-2805
SELECT ALL 85 + - col0 / + 58 AS col0 FROM tab2 cor0
----
84
84
85

query I rowsort
SELECT DISTINCT ( ( + col1 ) ) + + col0 FROM tab2
----
141
142
97

query I rowsort
SELECT ALL 97 + col2 AS col1 FROM tab1
----
156
165
193

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2809
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE 86 IN ( + 95 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2809
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE 86 IN ( + 95 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2810
SELECT ALL - - 86 - - COUNT( * ) DIV - COUNT( * ) + - - 0 + - - 57 + COUNT( col0 ) DIV + 22 AS col2 FROM tab0 AS cor0
----
142

skipif mysql # not compatible
query I rowsort label-2810
SELECT ALL - - 86 - - COUNT ( * ) / - COUNT ( * ) + - - 0 + - - 57 + COUNT ( col0 ) / + 22 AS col2 FROM tab0 AS cor0
----
142

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( col0 ) + + 75 - - col2 * - col1 / - - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2812
SELECT DISTINCT + col2 * + col1 + + col0 FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT + col2 * + col1 + + col0 FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2813
SELECT * FROM tab1 AS cor0 WHERE ( 84 <> + ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-2813
SELECT * FROM tab1 AS cor0 WHERE ( 84 <> + ( CAST ( NULL AS INTEGER ) ) )
----

query I rowsort
SELECT + col1 * 30 - - col0 + + col0 + + col0 FROM tab2 AS cor0
----
1668
2235
2502

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT COUNT( * ) - 70 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-2815
SELECT COUNT ( * ) - 70 FROM tab2
----
-67

query I rowsort
SELECT - col0 - - 60 FROM tab1
----
-25
-31
9

query I rowsort
SELECT - 29 - - - col1 FROM tab0
----
-110
-30
-50

query I rowsort
SELECT DISTINCT + 57 / + col0 * - - col1 * + col0 - col0 + 61 AS col2 FROM tab2 WHERE NOT - 7 + + 85 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 17 FROM tab1
----
1445
1547
867

query I rowsort
SELECT - 82 * - 95 * - + col1 * + 8 FROM tab2
----
-3178320
-4175440
-4798640

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT ALL + 50 * + - COUNT( * ) FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-2821
SELECT ALL + 50 * + - COUNT ( * ) FROM tab1
----
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * + ( col1 ) AS col1, col2 * - ( + 77 ) col2 FROM tab1
----
1344
-7392
295
-4543
3196
-5236

query I rowsort
SELECT DISTINCT ( - + col0 ) AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * + - col2 * + - 95 col0 FROM tab0
----
209855
931095
9500

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 84 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + col1 * - ( 2 ) + col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-2827
SELECT DISTINCT COUNT( - 10 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2827
SELECT DISTINCT COUNT ( - 10 ) AS col1 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 37 FROM tab2 WHERE NOT NULL >= - - col2
----

query II rowsort
SELECT DISTINCT + + col2, 66 - col0 + col1 AS col0 FROM tab2 WHERE NOT NULL BETWEEN - col2 AND - 92 + + col0 + - + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2831
SELECT ALL ( MAX( col0 ) ) DIV - 18 AS col2 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2831
SELECT ALL ( MAX ( col0 ) ) / - 18 AS col2 FROM tab1 cor0
----
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 29 + - col0 ) IS NOT NULL
----

query I rowsort
SELECT col1 * - 90 AS col1 FROM tab2 AS cor0
----
-4590
-6030
-6930

query I rowsort
SELECT ALL 28 + 83 FROM tab0 AS cor0
----
111
111
111

query I rowsort
SELECT - - 11 AS col2 FROM tab2 cor0
----
11
11
11

query II rowsort
SELECT DISTINCT ( col1 ) AS col0, 26 AS col1 FROM tab0 AS cor0
----
1
26
21
26
81
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2837
SELECT - 36 DIV 4 col2 FROM tab0 AS cor0
----
-9
-9
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2837
SELECT - 36 / 4 col2 FROM tab0 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT + COUNT( * ) + 48 AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2838
SELECT + COUNT ( * ) + 48 AS col2 FROM tab2
----
51

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2839
SELECT ALL + COUNT( * ) + + 53 * + COUNT( * ) AS col1 FROM tab0 WHERE NOT + col1 * + col2 > ( - - col1 + + CAST( NULL AS DECIMAL ) )
----
0

skipif mysql # not compatible
query I rowsort label-2839
SELECT ALL + COUNT ( * ) + + 53 * + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + col1 * + col2 > ( - - col1 + + CAST ( NULL AS REAL ) )
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = 73 * - - 44 AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2841
SELECT - CAST( + col0 AS SIGNED ) + col0 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2841
SELECT - CAST ( + col0 AS INTEGER ) + col0 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT col1 + + 46 AS col1 FROM tab0 AS cor0 WHERE - col0 * 77 + + - 9 / col2 * + - col2 IN ( + col1 / + CAST( + + 20 AS SIGNED ) + + + col0 * ( 45 + - 79 ) )
----

skipif mysql # not compatible
query I rowsort label-2842
SELECT col1 + + 46 AS col1 FROM tab0 AS cor0 WHERE - col0 * 77 + + - 9 / col2 * + - col2 IN ( + col1 / + CAST ( + + 20 AS INTEGER ) + + + col0 * ( 45 + - 79 ) )
----

query I rowsort
SELECT - - 97 AS col0 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT col2 * + 88 * + col1 * - - col0 AS col2 FROM tab0 AS cor0
----
1607760
5025240
845064

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL < - 69
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT + - COUNT( * ) DIV - COUNT( * ) - 27 FROM tab2 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-2846
SELECT + - COUNT ( * ) / - COUNT ( * ) - 27 FROM tab2 AS cor0
----
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 col0 FROM tab0 cor0
----
10
-10
47
-47
99
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-2848
SELECT - - col2 DIV - + col1 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-2848
SELECT - - col2 / - + col1 + col0 * - col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + 36 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 + + - 13 col1 FROM tab2 AS cor0
----
21
21
21

query I rowsort
SELECT 65 * col2 + + 35 AS col1 FROM tab0 AS cor0
----
3090
6470
685

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - - col0 col2 FROM tab1 AS cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT - - col0 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query II rowsort
SELECT + 68 * + 81 + - - 2 * + col1 AS col0, - col0 FROM tab1 AS cor0
----
5518
-85
5536
-51
5602
-91

query I rowsort
SELECT ALL 24 - - ( + col1 ) * + col2 FROM tab0 AS cor0
----
123
234
3831

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2856
SELECT - + MIN( DISTINCT + CAST( NULL AS DECIMAL ) ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( col0 ) >= col0 - + 90
----
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT - + MIN ( DISTINCT + CAST ( NULL AS REAL ) ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( col0 ) >= col0 - + 90
----
NULL

query I rowsort
SELECT ALL ( ( col2 ) ) AS col1 FROM tab0 WHERE NOT 82 + - 80 BETWEEN + col1 * - 20 AND + col1
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2858
SELECT + 80 / - + ( + ( - - 10 ) ) + + col1 + - ( 26 ) * - 89 + - 8 * + col2 FROM tab1 WHERE NOT ( NULL IN ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-2858
SELECT + 80 / - + ( + ( - - 10 ) ) + + col1 + - ( 26 ) * - 89 + - 8 * + col2 FROM tab1 WHERE NOT ( NULL IN ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2859
SELECT DISTINCT COUNT( * ) * MAX( DISTINCT - - col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-2859
SELECT DISTINCT COUNT ( * ) * MAX ( DISTINCT - - col2 ) FROM tab0
----
297

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * col2 * + col0 AS col2 FROM tab1
----
295885
420784
470016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 92 col0 FROM tab0 AS cor0
----
-92
-92
-92

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 74 + + 84 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - + 81 FROM tab2 WHERE NOT - - 57 + - - col1 * - 7 + + - 52 IS NULL
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2865
SELECT ALL + 14 * + COUNT( * ) * - + 6 col1 FROM tab1 cor0 WHERE NOT NULL <= 99 * - 1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2865
SELECT ALL + 14 * + COUNT ( * ) * - + 6 col1 FROM tab1 cor0 WHERE NOT NULL <= 99 * - 1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2866
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2866
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2867
SELECT CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2867
SELECT CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT ALL 16 + col0 + + 60 - + col0 * + col0 * + + 44 * - 15 - + col2 FROM tab0
----
148544
4995693
6210014

query I rowsort
SELECT ALL - 23 + - ( - 44 ) AS col1 FROM tab1
----
21
21
21

onlyif mysql # DIV for integer division: 
query I rowsort label-2870
SELECT ALL - 88 + - + col1 DIV 93 FROM tab1
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-2870
SELECT ALL - 88 + - + col1 / 93 FROM tab1
----
-88
-88
-88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 15 ) col0 FROM tab1
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 BETWEEN ( 33 * - ( + 87 ) + col0 + + + 73 / + col1 * - 90 ) AND NULL AND NOT ( - - 13 * 59 * + col0 ) BETWEEN ( + 34 * 56 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT 33 * + COUNT( DISTINCT ( + col1 ) ) + 14 + 22 AS col1 FROM tab1 cor0
----
135

skipif mysql # not compatible
query I rowsort label-2873
SELECT 33 * + COUNT ( DISTINCT ( + col1 ) ) + 14 + 22 AS col1 FROM tab1 cor0
----
135

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL >= NULL )
----

query I rowsort
SELECT ALL - col2 + - + col0 AS col0 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE ( col0 >= ( - 78 ) )
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE ( col2 * - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * 88 * + 35 - - - col0 AS col1 FROM tab1 AS cor0
----
-144851
-15485
-43171

onlyif mysql # aggregate syntax: 
query II rowsort label-2879
SELECT DISTINCT - - COUNT( * ) AS col1, - MAX( col1 ) FROM tab2 AS cor0
----
3
-77

skipif mysql # not compatible
query II rowsort label-2879
SELECT DISTINCT - - COUNT ( * ) AS col1, - MAX ( col1 ) FROM tab2 AS cor0
----
3
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL ( + 50 ) FROM tab1 cor0
----
50
50
50

query I rowsort
SELECT DISTINCT 39 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 51 col0 FROM tab0 AS cor0 WHERE NOT + ( + + col0 ) IS NULL
----
-51
-51
-51

query I rowsort
SELECT ALL 89 * - 4 FROM tab2
----
-356
-356
-356

onlyif mysql # aggregate syntax: 
query II rowsort label-2885
SELECT DISTINCT 81 AS col2, + MIN( ALL - ( - col2 ) ) FROM tab0
----
81
10

skipif mysql # not compatible
query II rowsort label-2885
SELECT DISTINCT 81 AS col2, + MIN ( ALL - ( - col2 ) ) FROM tab0
----
81
10

query II rowsort
SELECT 17, - col2 * - - 43 AS col1 FROM tab1
----
17
-2537
17
-2924
17
-4128

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - COUNT( * ) * - 11 * 15 FROM tab2
----
495

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - COUNT ( * ) * - 11 * 15 FROM tab2
----
495

onlyif mysql # aggregate syntax: 
query I rowsort label-2889
SELECT ALL + MAX( + 44 ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-2889
SELECT ALL + MAX ( + 44 ) AS col1 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2890
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT - - col2 * - col1 * - col0 * + - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2890
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT - - col2 * - col1 * - col0 * + - col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT ALL ( - - 4 ) * + COUNT( * ) FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2891
SELECT ALL ( - - 4 ) * + COUNT ( * ) FROM tab1
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2892
SELECT + CAST( NULL AS SIGNED ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2892
SELECT + CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query III rowsort label-2893
SELECT DISTINCT COUNT( * ) col0, - COUNT( * ) AS col1, - MAX( ALL - - col1 ) FROM tab0
----
3
-3
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2893
SELECT DISTINCT COUNT ( * ) col0, - COUNT ( * ) AS col1, - MAX ( ALL - - col1 ) FROM tab0
----
3
-3
-81

query II rowsort
SELECT DISTINCT + col1 AS col1, + col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2895
SELECT - - 14 DIV - col1 * - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2895
SELECT - - 14 / - col1 * - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2896
SELECT + CAST( - - CAST( 32 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2896
SELECT + CAST ( - - CAST ( 32 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
32
32
32

query II rowsort
SELECT 65 AS col2, - col2 + 75 AS col0 FROM tab2 AS cor0
----
65
17
65
35
65
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2898
SELECT DISTINCT - - MIN( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT - - MIN ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT 8 AS col1 FROM tab1 AS cor0 WHERE 37 IS NOT NULL
----
8
8
8

query II rowsort
SELECT + col0 * - 63 / col2 - + - col1 + + col1, col2 AS col1 FROM tab1 AS cor0 WHERE NULL <= 12
----

query I rowsort
SELECT - - 38 * col0 AS col2 FROM tab2 AS cor0
----
1748
2432
2850

query I rowsort
SELECT col0 * + + col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query II rowsort label-2903
SELECT + 84 * ( COUNT( * ) ) AS col1, - COUNT( * ) AS col2 FROM tab1 AS cor0
----
252
-3

skipif mysql # not compatible
query II rowsort label-2903
SELECT + 84 * ( COUNT ( * ) ) AS col1, - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
252
-3

query I rowsort
SELECT - - col2 + - 14 * col0 FROM tab2 AS cor0
----
-621
-856
-992

query I rowsort
SELECT - + col0 + - 50 FROM tab1 AS cor0
----
-101
-135
-141

query I rowsort
SELECT - + col0 + col2 - 21 FROM tab0 AS cor0
----
-19
-98
11

query I rowsort
SELECT ALL 1 * + + col1 AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ALL 68 + col1 AS col0 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT ALL + col0 AS col2 FROM tab1 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE col1 + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2911
SELECT + 82 + - 32 * + + COUNT( * ) col1 FROM tab2, tab2 AS cor0
----
-206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2911
SELECT + 82 + - 32 * + + COUNT ( * ) col1 FROM tab2, tab2 AS cor0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT COUNT( * ) + + + ( 20 ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2912
SELECT COUNT ( * ) + + + ( 20 ) FROM tab2
----
23

query III rowsort
SELECT * FROM tab2 WHERE col2 * - 40 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 21 - 4 AS col2 FROM tab2
----
17

query I rowsort
SELECT ALL - col0 + - - col1 - col1 AS col1 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + 22 + ( + col1 ) - - col1 FROM tab0 AS cor0 WHERE NULL <= + 40
----

query I rowsort
SELECT ALL - 16 * ( 22 ) + - col1 * + - col1 AS col2 FROM tab1 AS cor0
----
-156
-327
1857

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + - MAX( ALL - 86 ) FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2918
SELECT + - MAX ( ALL - 86 ) FROM tab2 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 4 col1 FROM tab2 cor0
----
-160
-232
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT - + SUM( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2920
SELECT - + SUM ( ALL + col2 ) AS col0 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ( + + ( + COUNT( * ) ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2921
SELECT ( + + ( + COUNT ( * ) ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT + - 59 AS col0 FROM tab2 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT ALL COUNT( * ) AS col0 FROM tab2 WHERE NOT + 70 - + 52 + + 14 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2923
SELECT ALL COUNT ( * ) AS col0 FROM tab2 WHERE NOT + 70 - + 52 + + 14 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2924
SELECT col1 DIV - + col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-2924
SELECT col1 / - + col0 FROM tab2
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 31 AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 + + + ( - + col1 ) + + col1 AND + 74 + + - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2926
SELECT DISTINCT + COUNT( ALL - 79 ) + + 44 - - + ( + CAST( + + COUNT( * ) AS SIGNED ) ) AS col1 FROM tab1, tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2926
SELECT DISTINCT + COUNT ( ALL - 79 ) + + 44 - - + ( + CAST ( + + COUNT ( * ) AS INTEGER ) ) AS col1 FROM tab1, tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT DISTINCT ( - + COUNT( * ) ) * + 84 FROM tab2
----
-252

skipif mysql # not compatible
query I rowsort label-2927
SELECT DISTINCT ( - + COUNT ( * ) ) * + 84 FROM tab2
----
-252

query I rowsort
SELECT DISTINCT + 12 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT - col1 * + col0 * - + 97 * col1 + - + col2 * col2 DIV - col1 col1 FROM tab0
----
19210
3721603
9546282

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2929
SELECT - col1 * + col0 * - + 97 * col1 + - + col2 * col2 / - col1 col1 FROM tab0
----
19210
3721603
9546282

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2930
SELECT DISTINCT - + MIN( DISTINCT - CAST( - 13 AS SIGNED ) ) col0 FROM tab1 AS cor0
----
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2930
SELECT DISTINCT - + MIN ( DISTINCT - CAST ( - 13 AS INTEGER ) ) col0 FROM tab1 AS cor0
----
-13

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + - ( - + col1 ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + 50 * + col1 FROM tab1 AS cor0
----
2350
250
700

query I rowsort
SELECT DISTINCT + col0 * + 18 * - col0 FROM tab2 AS cor0
----
-101250
-38088
-73728

onlyif mysql # aggregate syntax: 
query I rowsort label-2935
SELECT DISTINCT + 54 + + COUNT( * ) * + + 34 FROM tab2
----
156

skipif mysql # not compatible
query I rowsort label-2935
SELECT DISTINCT + 54 + + COUNT ( * ) * + + 34 FROM tab2
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col1 + + col1 col0 FROM tab1
----
14
47
5

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE + col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT - MIN( DISTINCT + - ( + col1 ) ) FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-2938
SELECT - MIN ( DISTINCT + - ( + col1 ) ) FROM tab1
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 61 + + + col1 col2, - 61 + col2 FROM tab1
----
108
7
66
-2
75
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2940
SELECT ALL ( + 49 ) DIV - + 1 - col2 col2 FROM tab0
----
-148
-59
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2940
SELECT ALL ( + 49 ) / - + 1 - col2 col2 FROM tab0
----
-148
-59
-96

query I rowsort
SELECT DISTINCT - 78 - + col2 AS col1 FROM tab0
----
-125
-177
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2942
SELECT MIN( DISTINCT 99 ) - 29 col2 FROM tab1
----
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2942
SELECT MIN ( DISTINCT 99 ) - 29 col2 FROM tab1
----
70

query I rowsort
SELECT DISTINCT + col2 + - + 11 + 86 FROM tab0
----
122
174
85

onlyif mysql # aggregate syntax: 
query I rowsort label-2944
SELECT + + 97 * - COUNT( * ) AS col2 FROM tab2 WHERE + col0 >= + - col1
----
-291

skipif mysql # not compatible
query I rowsort label-2944
SELECT + + 97 * - COUNT ( * ) AS col2 FROM tab2 WHERE + col0 >= + - col1
----
-291

query I rowsort
SELECT ALL + col1 * - - col1 - 37 FROM tab1 AS cor0
----
-12
159
2172

query I rowsort
SELECT - + 79 + + col0 AS col1 FROM tab1 AS cor0
----
-28
12
6

query II rowsort
SELECT ALL - col2 * ( - + col1 ), 11 AS col2 FROM tab1
----
1344
11
295
11
3196
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2948
SELECT ( - ( + - ( - COUNT( * ) ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2948
SELECT ( - ( + - ( - COUNT ( * ) ) ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 66 * col0 col0 FROM tab0 AS cor0
----
5742
6402
990

onlyif mysql # DIV for integer division: 
query I rowsort label-2950
SELECT ALL col1 DIV - 79 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2950
SELECT ALL col1 / - 79 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT DISTINCT - COUNT( * ) * - MAX( ALL - + ( - - col2 ) ) * + 71 FROM tab0 AS cor0
----
-2130

skipif mysql # not compatible
query I rowsort label-2951
SELECT DISTINCT - COUNT ( * ) * - MAX ( ALL - + ( - - col2 ) ) * + 71 FROM tab0 AS cor0
----
-2130

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT ALL + - CAST( + 40 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-2952
SELECT ALL + - CAST ( + 40 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT DISTINCT 30 - + ( col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2956
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) NOT IN ( col2, col2 * - col2, + - 42 )
----

skipif mysql # not compatible
query III rowsort label-2956
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) NOT IN ( col2, col2 * - col2, + - 42 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2957
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE + col0 + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2957
SELECT ALL col2 AS col1 FROM tab0 AS cor0 WHERE + col0 + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - + ( - 76 ) * - col0 * ( + 91 ) AS col0 FROM tab1 AS cor0
----
-352716
-587860
-629356

query II rowsort
SELECT + + 17 AS col2, 68 AS col2 FROM tab2 AS cor0
----
17
68
17
68
17
68

query I rowsort
SELECT - 28 * + - 78 AS col1 FROM tab2
----
2184
2184
2184

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2961
SELECT * FROM tab2 cor0 WHERE + col1 NOT IN ( - col0, - 63 / ( + - col1 ), - - col1 * - + 99, + col2 * + 70 * - + col2, + col1, - CAST( NULL AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-2961
SELECT * FROM tab2 cor0 WHERE + col1 NOT IN ( - col0, - 63 / ( + - col1 ), - - col1 * - + 99, + col2 * + 70 * - + col2, + col1, - CAST ( NULL AS INTEGER ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT - SUM( ALL col1 ) col0 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2962
SELECT - SUM ( ALL col1 ) col0 FROM tab1 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT DISTINCT 2 + CAST( NULL AS SIGNED ) * ( - - col2 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2963
SELECT DISTINCT 2 + CAST ( NULL AS INTEGER ) * ( - - col2 ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT ALL + col0 + 88 FROM tab1
----
139
173
179

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 74 * - 41 + col1 AS col0, col2 + 12 AS col2 FROM tab0
----
-2953
59
-3013
22
-3033
111

query I rowsort
SELECT ALL + 84 + col0 AS col1 FROM tab2 AS cor0
----
130
148
159

query I rowsort
SELECT ALL + ( + 94 ) FROM tab1 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2969
SELECT - CAST( col2 AS SIGNED ) col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2969
SELECT - CAST ( col2 AS INTEGER ) col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 75 * col1 AS col0 FROM tab0 AS cor0
----
1575
6075
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT DISTINCT - - COUNT( * ) FROM tab2 cor0 WHERE ( NULL ) >= - - col0
----
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT DISTINCT - - COUNT ( * ) FROM tab2 cor0 WHERE ( NULL ) >= - - col0
----
0

query I rowsort
SELECT + 10 * + - 60 + + col0 FROM tab1
----
-509
-515
-549

query I rowsort
SELECT + ( + + col1 ) + - 70 + ( col2 ) AS col1 FROM tab2
----
4
47
55

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col0 + - - col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 + col2 FROM tab2 WHERE + + col1 < NULL
----

query I rowsort
SELECT DISTINCT col1 + + 48 * + 11 AS col0 FROM tab2
----
579
595
605

query I rowsort
SELECT ALL - col1 + + ( + + col0 ) AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query II rowsort label-2978
SELECT ALL + col1 - col1 col1, - col1 DIV + - col0 AS col0 FROM tab1
----
0
0
0
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2978
SELECT ALL + col1 - col1 col1, - col1 / + - col0 AS col0 FROM tab1
----
0
0
0
0
0
0

query II rowsort
SELECT col1, + 62 AS col2 FROM tab1 AS cor0
----
14
62
47
62
5
62

query II rowsort
SELECT + 97 - + col1, - 98 AS col2 FROM tab2 AS cor0
----
20
-98
30
-98
46
-98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2981
SELECT + col0, col0 - CAST( + 13 AS SIGNED ) FROM tab2 AS cor0
----
46
33
64
51
75
62

skipif mysql # not compatible
query II rowsort label-2981
SELECT + col0, col0 - CAST ( + 13 AS INTEGER ) FROM tab2 AS cor0
----
46
33
64
51
75
62

query I rowsort
SELECT + col1 * - col0 * + 42 * - - col0 FROM tab0 AS cor0
----
-395178
-6675858
-765450

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2984
SELECT ALL + 89 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL + 89 / + col2 FROM tab1
----
0
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * - + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2986
SELECT ALL - 71 DIV + - col1 AS col2 FROM tab1 AS cor0
----
1
14
5

skipif mysql # not compatible
query I rowsort label-2986
SELECT ALL - 71 / + - col1 AS col2 FROM tab1 AS cor0
----
1
14
5

query I rowsort
SELECT DISTINCT - - 96 / - - 54 * - - 44 FROM tab1 AS cor0 WHERE + 35 NOT BETWEEN 13 AND NULL
----

query I rowsort
SELECT DISTINCT + 67 * + col2 AS col0 FROM tab0
----
3149
6633
670

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2989
SELECT DISTINCT COUNT( * ) + + + COUNT( * ) * + 7 DIV - 48, 56 AS col0 FROM tab1
----
3
56

skipif mysql # not compatible
query II rowsort label-2989
SELECT DISTINCT COUNT ( * ) + + + COUNT ( * ) * + 7 / - 48, 56 AS col0 FROM tab1
----
3
56

query II rowsort
SELECT DISTINCT 86 AS col2, + col1 FROM tab0
----
86
1
86
21
86
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2991
SELECT + COUNT( * ) * - 63 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-2991
SELECT + COUNT ( * ) * - 63 FROM tab0
----
-189

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2992
SELECT CAST( NULL AS SIGNED ) / - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2992
SELECT CAST ( NULL AS INTEGER ) / - - COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT + col1 AS col1, - 52 AS col2 FROM tab2 AS cor0
----
51
-52
67
-52
77
-52

query II rowsort
SELECT DISTINCT + col2 AS col2, 77 FROM tab2 AS cor0
----
23
77
40
77
58
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT + MIN( - + 72 ) FROM tab2 cor0
----
-72

skipif mysql # not compatible
query I rowsort label-2995
SELECT + MIN ( - + 72 ) FROM tab2 cor0
----
-72

query I rowsort
SELECT ALL - 79 * + AVG ( DISTINCT - + col0 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2997
SELECT + - 2 * - 87 - COUNT( * ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2997
SELECT + - 2 * - 87 - COUNT ( * ) FROM tab0 AS cor0
----
171

query I rowsort
SELECT DISTINCT + col1 * - + 9 - - + col1 AS col1 FROM tab0 AS cor0
----
-168
-648
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 60 IS NULL
----

query I rowsort
SELECT - col2 + - 13 AS col1 FROM tab0 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 92 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 75, - col0, col2, - + 23 * + ( - col1 ) - + col0, 0 + - 16 )
----

query I rowsort
SELECT 53 - + - col2 AS col1 FROM tab1
----
112
121
149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3003
SELECT ALL - CAST( - ( - - col1 ) AS SIGNED ) * + + col0 + - col1 + + col0 AS col2 FROM tab1
----
4321
505
751

skipif mysql # not compatible
query I rowsort label-3003
SELECT ALL - CAST ( - ( - - col1 ) AS INTEGER ) * + + col0 + - col1 + + col0 AS col2 FROM tab1
----
4321
505
751

query I rowsort
SELECT 94 - ( + col1 ) + + col1 FROM tab0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3005
SELECT - 98 + - 47 + - col0 AS col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
-160
NULL
-232
NULL
-242
NULL

skipif mysql # not compatible
query II rowsort label-3005
SELECT - 98 + - 47 + - col0 AS col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
-160
NULL
-232
NULL
-242
NULL

query I rowsort
SELECT 1 + - - col1 + + - col2 + - + 51 FROM tab2
----
-13
-22
-41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3007
SELECT DISTINCT ( - COUNT( * ) ) AS col0, + 51 FROM tab0 WHERE ( col2 BETWEEN + col1 AND - - CAST( 48 AS SIGNED ) + + ( + col0 ) )
----
-1
51

skipif mysql # not compatible
query II rowsort label-3007
SELECT DISTINCT ( - COUNT ( * ) ) AS col0, + 51 FROM tab0 WHERE ( col2 BETWEEN + col1 AND - - CAST ( 48 AS INTEGER ) + + ( + col0 ) )
----
-1
51

query I rowsort
SELECT ALL + col2 + + - 4 + + 75 * 1 FROM tab0
----
118
170
81

query I rowsort
SELECT + col1 + + - 44 FROM tab1
----
-30
-39
3

query I rowsort
SELECT - col2 * col0 + - col2 + - + col1 FROM tab0 cor0
----
-833
-901
-9703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3012
SELECT + COUNT( * ), + 53 AS col0 FROM tab0
----
3
53

skipif mysql # not compatible
query II rowsort label-3012
SELECT + COUNT ( * ), + 53 AS col0 FROM tab0
----
3
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT IN ( - - col2 * + - col2 * + col2 + + col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - + 60 * col0 NOT BETWEEN ( NULL ) AND NULL )
----

query II rowsort
SELECT DISTINCT 26 AS col1, + col2 + + col0 AS col2 FROM tab1 AS cor0
----
26
144
26
147
26
159

onlyif mysql # DIV for integer division: 
query II rowsort label-3017
SELECT + col2 AS col1, + col2 DIV + + col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

skipif mysql # not compatible
query II rowsort label-3017
SELECT + col2 AS col1, + col2 / + + col1 FROM tab1 AS cor0
----
59
11
68
1
96
6

query II rowsort
SELECT col1 AS col0, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3019
SELECT DISTINCT + MIN( ALL col2 ) * + COUNT( ALL col0 ) DIV + COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3019
SELECT DISTINCT + MIN ( ALL col2 ) * + COUNT ( ALL col0 ) / + COUNT ( * ) AS col2 FROM tab2
----
23

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) - - - col2 + - col2 col1 FROM tab1 WHERE NOT + col1 <= + - col0
----
-177
-204
-288

query I rowsort
SELECT + 36 + + col0 AS col1 FROM tab0
----
123
133
51

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 + col1 IS NOT NULL
----

query I rowsort
SELECT - col1 * + col0 * - + col0 + 21 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3025
SELECT + ( - CAST( + + 46 AS SIGNED ) ) * + col1 * + col0 FROM tab1 cor0
----
-19550
-196742
-32844

skipif mysql # not compatible
query I rowsort label-3025
SELECT + ( - CAST ( + + 46 AS INTEGER ) ) * + col1 * + col0 FROM tab1 cor0
----
-19550
-196742
-32844

query I rowsort
SELECT DISTINCT + + col1 FROM tab0 AS cor0 WHERE NOT NULL > 59 * + 89
----

query I rowsort
SELECT col1 * - col2 + + - ( col0 ) + col0 FROM tab2 cor0
----
-1173
-3080
-3886

query I rowsort
SELECT + 17 + + 39 * - col0 - - col1 + - + col0 - - col0 FROM tab2 AS cor0
----
-1726
-2402
-2841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3029
SELECT - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE - 28 * col0 * 38 * - col1 + + + col0 - col1 NOT BETWEEN NULL AND - col1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3029
SELECT - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE - 28 * col0 * 38 * - col1 + + + col0 - col1 NOT BETWEEN NULL AND - col1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 + + - 52 * + - 87 NOT BETWEEN col1 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 21 NOT IN ( + 74 )
----

query I rowsort
SELECT - col2 * - + 85 FROM tab0
----
3995
8415
850

onlyif mysql # aggregate syntax: 
query I rowsort label-3033
SELECT - SUM( DISTINCT + - col0 ) + - - 89 FROM tab1
----
316

skipif mysql # not compatible
query I rowsort label-3033
SELECT - SUM ( DISTINCT + - col0 ) + - - 89 FROM tab1
----
316

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3034
SELECT COUNT( * ) DIV - COUNT( * ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT COUNT ( * ) / - COUNT ( * ) col1 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT ALL + + col1 AS col2, col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query II rowsort
SELECT ALL + col2 AS col2, col2 AS col0 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT 88 * - + ( - ( + 91 ) ) AS col1, + col2 + + 37 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3038
SELECT + - 8 / + + col1 + - 77 - - col1 * - - CAST( + 95 AS DECIMAL ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + ( col2 ) - - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3038
SELECT + - 8 / + + col1 + - 77 - - col1 * - - CAST ( + 95 AS REAL ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 * + ( col2 ) - - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - col1 AS col2 FROM tab2 cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query II rowsort label-3040
SELECT COUNT( * ) AS col2, ( - COUNT( * ) ) AS col2 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3040
SELECT COUNT ( * ) AS col2, ( - COUNT ( * ) ) AS col2 FROM tab0
----
3
-3

query I rowsort
SELECT DISTINCT 45 * col0 + + col2 AS col1 FROM tab2
----
2093
2920
3433

query II rowsort
SELECT col2 AS col0, ( + - 71 ) * - 61 FROM tab1
----
59
4331
68
4331
96
4331

query I rowsort
SELECT DISTINCT col2 + - - 64 * - - 17 * col0 + col2 - ( 68 ) * + col1 AS col1 FROM tab0
----
105666
10906
93248

query I rowsort
SELECT col1 * 14 * - col0 FROM tab0
----
-1358
-17010
-25578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 97 col0, col0 AS col2 FROM tab0
----
97
15
97
87
97
97

query I rowsort
SELECT ALL 17 * col1 FROM tab1 AS cor0
----
238
799
85

query I rowsort
SELECT - 54 + - col1 FROM tab1 cor0
----
-101
-59
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-3048
SELECT DISTINCT - 53 DIV - + col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - 53 / - + col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT DISTINCT col0 * - - col1 + + 62 DIV + ( + 30 ) FROM tab1 cor0
----
427
4279
716

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT col0 * - - col1 + + 62 / + ( + 30 ) FROM tab1 cor0
----
427
4279
716

query I rowsort
SELECT - 4 + - + col0 FROM tab0
----
-101
-19
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-3051
SELECT ALL col0 * - - col2 + 79 + - 4 - - - col1 - - 48 DIV col0 - - ( + col1 ) AS col1 FROM tab2 AS cor0
----
1134
2635
4425

skipif mysql # not compatible
query I rowsort label-3051
SELECT ALL col0 * - - col2 + 79 + - 4 - - - col1 - - 48 / col0 - - ( + col1 ) AS col1 FROM tab2 AS cor0
----
1134
2635
4425

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT - COUNT( * ) * 59 * + COUNT( * ) FROM tab0 AS cor0
----
-531

skipif mysql # not compatible
query I rowsort label-3052
SELECT - COUNT ( * ) * 59 * + COUNT ( * ) FROM tab0 AS cor0
----
-531

onlyif mysql # DIV for integer division: 
query I rowsort label-3053
SELECT ALL + - col0 DIV - - col0 AS col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3053
SELECT ALL + - col0 / - - col0 AS col0 FROM tab1 cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( - - col1 ) IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3055
SELECT DISTINCT + 98 * + 3 + + CAST( + - col2 AS SIGNED ) DIV - + col1 - - - 61 + + + col0, + col2 + col1 AS col1 FROM tab1 cor0
----
290
110
325
115
329
64

skipif mysql # not compatible
query II rowsort label-3055
SELECT DISTINCT + 98 * + 3 + + CAST ( + - col2 AS INTEGER ) / - + col1 - - - 61 + + + col0, + col2 + col1 AS col1 FROM tab1 cor0
----
290
110
325
115
329
64

query I rowsort
SELECT + + ( - + col2 ) - - col1 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT + + 45 * - col0 * + 45 * - col2 AS col1 FROM tab0 AS cor0
----
1427625
1761750
19446075

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3058
SELECT ALL CAST( - col1 AS SIGNED ) + - + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL CAST ( - col1 AS INTEGER ) + - + col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-138
-65
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-3059
SELECT 45 DIV + + col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-3059
SELECT 45 / + + col2 FROM tab0
----
0
0
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3060
SELECT ALL + MIN( ALL - 39 ) FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-3060
SELECT ALL + MIN ( ALL - 39 ) FROM tab0
----
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-3061
SELECT - col0 DIV + - 52 col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3061
SELECT - col0 / + - 52 col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3062
SELECT + MAX( 20 ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-3062
SELECT + MAX ( 20 ) FROM tab0
----
20

query II rowsort
SELECT + col1 AS col2, ( 42 ) FROM tab0
----
1
42
21
42
81
42

onlyif mysql # aggregate syntax: 
query II rowsort label-3064
SELECT ALL COUNT( * ) AS col0, ( COUNT( * ) ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3064
SELECT ALL COUNT ( * ) AS col0, ( COUNT ( * ) ) FROM tab1
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - col1 / col0 * 56 + col1 + + 47 col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT col1, - 52 AS col1 FROM tab2 cor0
----
51
-52
67
-52
77
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 66 col1, + col2 FROM tab1 AS cor0
----
-66
59
-66
68
-66
96

query II rowsort
SELECT DISTINCT col0, 52 FROM tab2 AS cor0
----
46
52
64
52
75
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3069
SELECT ALL + col0 * + col1 * col2 AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND col2
----

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL + col0 * + col1 * col2 AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL - - ( - - 8 ) AS col0 FROM tab0 AS cor0
----
8
8
8

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE - col1 + - col0 BETWEEN NULL AND - 53 * col0 + + ( 63 ) OR NOT NULL < col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3072
SELECT ALL COUNT( * ) * + COUNT( * ), + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9
3

skipif mysql # not compatible
query II rowsort label-3072
SELECT ALL COUNT ( * ) * + COUNT ( * ), + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9
3

query I rowsort
SELECT DISTINCT + col2 + col0 * - 61 AS col1 FROM tab1 AS cor0
----
-3015
-5126
-5483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3074
SELECT ALL 63 * + col2 - + - CAST( NULL AS SIGNED ) + + + col0 * + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3074
SELECT ALL 63 * + col2 - + - CAST ( NULL AS INTEGER ) + + + col0 * + - col1 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * + 53 * + + 86 + - 65 AS col1 FROM tab0
----
369133
4493
95653

onlyif mysql # aggregate syntax: 
query I rowsort label-3076
SELECT ALL + COUNT( * ) + + COUNT( * ) AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab1
----
6

query I rowsort
SELECT DISTINCT + 96 * col1 + - col2 * - col1 FROM tab2
----
10318
10472
6069

query I rowsort
SELECT DISTINCT - - 41 - 31 AS col1 FROM tab1 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL - 41 * CAST( col0 AS SIGNED ) + + ( + + ( + - 33 ) ) FROM tab1 AS cor0
----
-2124
-3518
-3764

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL - 41 * CAST ( col0 AS INTEGER ) + + ( + + ( + - 33 ) ) FROM tab1 AS cor0
----
-2124
-3518
-3764

query I rowsort
SELECT - 13 * + col0 + col1 + + col1 * col0 FROM tab2 AS cor0
----
1799
4117
4173

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT - COUNT( ALL col0 ) * + 70 * COUNT( col1 ) - + 16 FROM tab1 cor0
----
-646

skipif mysql # not compatible
query I rowsort label-3081
SELECT - COUNT ( ALL col0 ) * + 70 * COUNT ( col1 ) - + 16 FROM tab1 cor0
----
-646

query III rowsort
SELECT * FROM tab1 WHERE 41 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 95 - - 6 AS col2 FROM tab2
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query II rowsort label-3084
SELECT ALL 67 AS col0, MAX( DISTINCT - 80 ) FROM tab1
----
67
-80

skipif mysql # not compatible
query II rowsort label-3084
SELECT ALL 67 AS col0, MAX ( DISTINCT - 80 ) FROM tab1
----
67
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT 83 + + COUNT( * ) AS col2 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT 83 + + COUNT ( * ) AS col2 FROM tab0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 * + + 38 * col0 col0 FROM tab2
----
155608
213692
80385

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3087
SELECT * FROM tab0 WHERE + 91 < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3087
SELECT * FROM tab0 WHERE + 91 < + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT MAX( ALL - col2 ) + MAX( - + 1 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3088
SELECT MAX ( ALL - col2 ) + MAX ( - + 1 ) AS col1 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3089
SELECT ALL - - 34 + - + MIN( + - col2 ) AS col0 FROM tab1 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - - 34 + - + MIN ( + - col2 ) AS col0 FROM tab1 AS cor0
----
130

query I rowsort
SELECT - ( + 8 ) + + col0 * col2 FROM tab1 AS cor0
----
4888
5007
6180

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT + + 51 + COUNT( * ) AS col2 FROM tab1 cor0
----
54

skipif mysql # not compatible
query I rowsort label-3091
SELECT + + 51 + COUNT ( * ) AS col2 FROM tab1 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT 40 < + col2
----
2

skipif mysql # not compatible
query I rowsort label-3092
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 40 < + col2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3093
SELECT 98 * - COUNT( * ) FROM tab1 AS cor0
----
-294

skipif mysql # not compatible
query I rowsort label-3093
SELECT 98 * - COUNT ( * ) FROM tab1 AS cor0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-3094
SELECT ALL + COUNT( ALL + 1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3094
SELECT ALL + COUNT ( ALL + 1 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 49 * - 92 + - 15 FROM tab1 AS cor0
----
-4523
-4523
-4523

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT ALL SUM( - - ( - - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3096
SELECT ALL SUM ( - - ( - - col0 ) ) AS col0 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3097
SELECT + - col0 AS col1, - 69 * + - col0 * - CAST( col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-51
-337824
-85
-346035
-91
-426972

skipif mysql # not compatible
query II rowsort label-3097
SELECT + - col0 AS col1, - 69 * + - col0 * - CAST ( col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-51
-337824
-85
-346035
-91
-426972

query I rowsort
SELECT 49 * - - col2 * + + col0 AS col2 FROM tab2 AS cor0
----
125440
213150
51842

query II rowsort
SELECT - col1 AS col0, col0 AS col1 FROM tab0 cor0
----
-1
97
-21
87
-81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT SUM( DISTINCT - col2 ) * + COUNT( * ) FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-3100
SELECT SUM ( DISTINCT - col2 ) * + COUNT ( * ) FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-3101
SELECT - SUM( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NOT col2 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3101
SELECT - SUM ( DISTINCT + col0 ) AS col1 FROM tab0 WHERE NOT col2 < NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 col0 FROM tab2 WHERE ( - col1 * - col2 = NULL )
----

query I rowsort
SELECT - 13 * 66 FROM tab0 AS cor0
----
-858
-858
-858

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 44 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 NOT BETWEEN col0 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + ( COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3106
SELECT DISTINCT + ( COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

query II rowsort
SELECT - 97 AS col0, - col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-97
-51
-97
-85
-97
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3108
SELECT - MAX( ALL - col0 ) * CAST( - COUNT( * ) AS SIGNED ) FROM tab1 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3108
SELECT - MAX ( ALL - col0 ) * CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT ALL COUNT( * ) * - - 1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3109
SELECT ALL COUNT ( * ) * - - 1 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + - ( + + col1 ) * - - col0 * 85 col2 FROM tab1
----
-36032
-363452
-60597

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT ALL MAX( DISTINCT col1 ) + + COUNT( * ) + - - MAX( - ( - col0 ) ) + - MIN( + - col0 ) * + - 56 AS col1 FROM tab1
----
-4955

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL MAX ( DISTINCT col1 ) + + COUNT ( * ) + - - MAX ( - ( - col0 ) ) + - MIN ( + - col0 ) * + - 56 AS col1 FROM tab1
----
-4955

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT 88 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3112
SELECT 88 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
91

query I rowsort
SELECT DISTINCT col2 * - + col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3114
SELECT DISTINCT col0, + 4 + - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-3114
SELECT DISTINCT col0, + 4 + - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 77 * - ( + 67 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3116
SELECT ALL + + 26, COUNT( ALL col2 ) AS col1 FROM tab0 AS cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-3116
SELECT ALL + + 26, COUNT ( ALL col2 ) AS col1 FROM tab0 AS cor0
----
26
3

query I rowsort
SELECT ALL - + col2 + + col2 * 37 FROM tab1 cor0
----
2124
2448
3456

query II rowsort
SELECT + + 77 AS col0, col0 FROM tab2 AS cor0
----
77
46
77
64
77
75

query I rowsort
SELECT DISTINCT - col0 + + col0 * - col1 AS col2 FROM tab1
----
-4368
-510
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-3120
SELECT DISTINCT - ( - - col0 ) DIV + col2 + + 37 + + ( + - col0 ) FROM tab0
----
-58
-60
22

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT - ( - - col0 ) / + col2 + + 37 + + ( + - col0 ) FROM tab0
----
-58
-60
22

query I rowsort
SELECT ALL - col1 + + - 37 AS col2 FROM tab0
----
-118
-38
-58

query I rowsort
SELECT col0 - - 41 - - + 74 + + + col2 * + 81 FROM tab0
----
1012
3937
8231

query I rowsort
SELECT DISTINCT + col2 * ( + - col0 ) + - col0 + - 7 + ( + col2 ) * - col2 AS col0 FROM tab2
----
-1640
-4231
-7796

query I rowsort
SELECT col0 - - + col2 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + 89 AS col1 FROM tab0
----
1335
7743
8633

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + - 39 )
----

query I rowsort
SELECT DISTINCT ( + 23 ) FROM tab1 AS cor0
----
23

query I rowsort
SELECT DISTINCT + col2 * + + 90 AS col0 FROM tab2 AS cor0
----
2070
3600
5220

query I rowsort
SELECT DISTINCT - ( - + 87 ) AS col0 FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3131
SELECT + CAST( col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 22, + col0, 60, - col0 )
----

skipif mysql # not compatible
query I rowsort label-3131
SELECT + CAST ( col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( - 22, + col0, 60, - col0 )
----

query II rowsort
SELECT DISTINCT 79 AS col0, + col1 FROM tab0 AS cor0
----
79
1
79
21
79
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab2 AS cor0 WHERE col1 NOT BETWEEN - col0 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3134
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----
0

query I rowsort
SELECT ALL 19 + + + col0 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - col0 ) * + 26 * 47 FROM tab0
----
106314
118534
18330

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3137
SELECT DISTINCT COUNT( + col1 ) DIV - + SUM( + col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3137
SELECT DISTINCT COUNT ( + col1 ) / - + SUM ( + col0 ) FROM tab2
----
0

query I rowsort
SELECT col0 * - 7 AS col2 FROM tab0
----
-105
-609
-679

query I rowsort
SELECT ALL + + col2 * col1 FROM tab2 WHERE NOT + - col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 9 > + 1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3141
SELECT ALL - SUM( DISTINCT col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - SUM ( DISTINCT col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3142
SELECT ALL + col0 * + CAST( col2 AS SIGNED ) FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3142
SELECT ALL + col0 * + CAST ( col2 AS INTEGER ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - 44 * + col2 FROM tab2 AS cor0
----
-1012
-1760
-2552

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 BETWEEN NULL AND + ( - 86 )
----

query I rowsort
SELECT ALL ( 60 ) * + ( + + 45 ) FROM tab1
----
2700
2700
2700

query III rowsort
SELECT * FROM tab2 WHERE - ( + - 51 ) + + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 61 * - col0 * + col1 AS col2, - col2 + - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3148
SELECT DISTINCT - MAX( col1 ) FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL AND NOT col0 <> - col1 / + col0 / 53
----
NULL

skipif mysql # not compatible
query I rowsort label-3148
SELECT DISTINCT - MAX ( col1 ) FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL AND NOT col0 <> - col1 / + col0 / 53
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3149
SELECT - + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT - + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 25 BETWEEN + 42 - + 95 AND NULL AND NULL NOT IN ( ( - + 31 ), col1, + 95, - + 22 )
----

query I rowsort
SELECT col2 * + + 11 + + col0 + col2 FROM tab0 AS cor0
----
1285
207
579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 col2 FROM tab1 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3153
SELECT - CAST( NULL AS SIGNED ) + + col2, col0 * + - 7 * col2 col2 FROM tab1 AS cor0
----
NULL
-34272
NULL
-35105
NULL
-43316

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3153
SELECT - CAST ( NULL AS INTEGER ) + + col2, col0 * + - 7 * col2 col2 FROM tab1 AS cor0
----
NULL
-34272
NULL
-35105
NULL
-43316

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT 2 + + MAX( DISTINCT + col0 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT 2 + + MAX ( DISTINCT + col0 ) AS col0 FROM tab2
----
77

query I rowsort
SELECT ALL 78 FROM tab2 WHERE col0 IS NOT NULL
----
78
78
78

query I rowsort
SELECT DISTINCT - 86 + + col0 AS col2 FROM tab1
----
-1
-35
5

query I rowsort
SELECT ALL - + ( - + col2 ) AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND - - col0 * + col2
----

query II rowsort
SELECT ALL col0 + + col2 + - 41 AS col2, - col2 AS col2 FROM tab1
----
103
-59
106
-96
118
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT COUNT( * ) + ( + 24 ) * + - 38 AS col0 FROM tab2, tab2 AS cor0
----
-903

skipif mysql # not compatible
query I rowsort label-3159
SELECT COUNT ( * ) + ( + 24 ) * + - 38 AS col0 FROM tab2, tab2 AS cor0
----
-903

query I rowsort
SELECT ALL + col0 + + 95 AS col1 FROM tab2
----
141
159
170

query I rowsort
SELECT - 89 * - 78 FROM tab1
----
6942
6942
6942

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3162
SELECT ALL col0 + - CAST( NULL AS SIGNED ) * - col1 * + col0 * + + col2 + - - ( 58 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3162
SELECT ALL col0 + - CAST ( NULL AS INTEGER ) * - col1 * + col0 * + + col2 + - - ( 58 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 34 col0, + 85 col1 FROM tab0 AS cor0
----
34
85

query I rowsort
SELECT - col2 - + col0 * - - col0 FROM tab2 AS cor0
----
-2139
-4136
-5683

query I rowsort
SELECT ALL - 3 - + 90 FROM tab2 AS cor0
----
-93
-93
-93

query I rowsort
SELECT + 56 * + col1 + ( - col1 ) FROM tab2
----
2805
3685
4235

onlyif mysql # DIV for integer division: 
query I rowsort label-3167
SELECT col1 DIV col0 - col1 FROM tab0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-3167
SELECT col1 / col0 - col1 FROM tab0
----
-1
-21
-76

query I rowsort
SELECT ALL + 92 / + 36 FROM tab1 WHERE col1 + + col1 IN ( + 8 + col1 * col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3169
SELECT ALL 79 + + 68 DIV - 32 FROM tab2
----
77
77
77

skipif mysql # not compatible
query I rowsort label-3169
SELECT ALL 79 + + 68 / - 32 FROM tab2
----
77
77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3170
SELECT ALL CAST( + MAX( col0 ) AS SIGNED ) FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3170
SELECT ALL CAST ( + MAX ( col0 ) AS INTEGER ) FROM tab2
----
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 1 + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL COUNT( * ) + - ( COUNT( col1 ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL COUNT ( * ) + - ( COUNT ( col1 ) ) AS col2 FROM tab1
----
0

query I rowsort
SELECT DISTINCT + ( 99 ) FROM tab0
----
99

query I rowsort
SELECT ( ( 34 ) ) AS col2 FROM tab0
----
34
34
34

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col1 * + col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3176
SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( 1 + + CAST( 94 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3176
SELECT ALL * FROM tab1 WHERE NOT - col1 IN ( 1 + + CAST ( 94 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - ( - ( 31 ) ) FROM tab1 WHERE NOT NULL NOT IN ( col0 - 73 )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL col2 + col0 FROM tab2 WHERE + col1 IS NOT NULL
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3180
SELECT ALL ( + SUM( ALL 31 ) ) + - 48 col1 FROM tab0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3180
SELECT ALL ( + SUM ( ALL 31 ) ) + - 48 col1 FROM tab0
----
45

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3181
SELECT DISTINCT col0 * + col0 - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT DISTINCT col0 * + col0 - CAST ( NULL AS REAL ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3183
SELECT - 11 + SUM( DISTINCT col0 + col0 * ( - col2 ) ) FROM tab2 WHERE ( 55 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3183
SELECT - 11 + SUM ( DISTINCT col0 + col0 * ( - col2 ) ) FROM tab2 WHERE ( 55 ) IS NULL
----
NULL

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE - 65 NOT IN ( col2 * col0 )
----
10
47
99

query I rowsort
SELECT - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 - ( + 39 + 42 ) * + 24 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col0 + 49 * col0 AS col1 FROM tab2 cor0 WHERE NOT + 70 * 72 < col2
----
2208
3072
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT ALL MAX( DISTINCT 29 ) * COUNT( DISTINCT 98 ) col1 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3187
SELECT ALL MAX ( DISTINCT 29 ) * COUNT ( DISTINCT 98 ) col1 FROM tab0 AS cor0
----
29

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( - col2 ) IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3189
SELECT ALL 67 + col2 / - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3189
SELECT ALL 67 + col2 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 WHERE ( NULL ) > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + 16 col2 FROM tab1
----
112
75
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 91 col2 FROM tab0
----
101
138
190

query I rowsort
SELECT DISTINCT - + col1 * col2 + - 97 FROM tab2 AS cor0
----
-1270
-3177
-3983

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3194
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( col0 AS SIGNED ) ) + 61 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3194
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( col0 AS INTEGER ) ) + 61 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT - CAST( + 29 AS SIGNED ) FROM tab1 AS cor0
----
-29
-29
-29

skipif mysql # not compatible
query I rowsort label-3195
SELECT - CAST ( + 29 AS INTEGER ) FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE col0 / 6 <= + col1 / - 35
----

query I rowsort
SELECT ALL 86 + - 29 FROM tab2 AS cor0
----
57
57
57

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col0 * col0 ) <> 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT + ( - COUNT( * ) ) - + 56 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----
-56

skipif mysql # not compatible
query I rowsort label-3199
SELECT + ( - COUNT ( * ) ) - + 56 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL COUNT( + - col0 ) + - 78 AS col1 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL COUNT ( + - col0 ) + - 78 AS col1 FROM tab0
----
-75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( 54 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3202
SELECT + 66 * + 35 - col2 DIV 14 FROM tab1
----
2304
2306
2306

skipif mysql # not compatible
query I rowsort label-3202
SELECT + 66 * + 35 - col2 / 14 FROM tab1
----
2304
2306
2306

query I rowsort
SELECT - col2 - + 62 FROM tab2
----
-102
-120
-85

query I rowsort
SELECT DISTINCT col2 + + col0 - - col0 FROM tab2
----
115
168
208

onlyif mysql # aggregate syntax: 
query I rowsort label-3205
SELECT + ( COUNT( * ) ) AS col0 FROM tab0 WHERE NULL IN ( col1 + + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3205
SELECT + ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NULL IN ( col1 + + col1 )
----
0

query I rowsort
SELECT ( + + col2 ) * col2 + 46 FROM tab0
----
146
2255
9847

query I rowsort
SELECT DISTINCT col2 + 49 FROM tab1 WHERE NULL NOT IN ( 22 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT ALL - col0 - ( + col1 ) - col0 DIV 44 * col0 FROM tab0
----
-195
-292
-96

skipif mysql # not compatible
query I rowsort label-3208
SELECT ALL - col0 - ( + col1 ) - col0 / 44 * col0 FROM tab0
----
-195
-292
-96

query I rowsort
SELECT - ( - + col1 ) + col2 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3210
SELECT DISTINCT COUNT( - 0 ) + COUNT( * ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-3210
SELECT DISTINCT COUNT ( - 0 ) + COUNT ( * ) AS col1 FROM tab0
----
6

query I rowsort
SELECT ALL - 47 FROM tab0 WHERE col1 IS NOT NULL
----
-47
-47
-47

query I rowsort
SELECT col2 * - col0 + col1 AS col2 FROM tab0
----
-624
-849
-9602

query I rowsort
SELECT + col0 + 76 FROM tab1 cor0 WHERE - col2 + ( + col1 + col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 * + col1 + 99 col2 FROM tab1 AS cor0
----
1443
3295
394

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * - col1 * - col0 col2 FROM tab2 AS cor0
----
119646
336675
379456

query I rowsort
SELECT 52 + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 25 BETWEEN ( NULL ) AND NULL
----

query II rowsort
SELECT ALL col0 AS col0, - ( + 61 ) * - col1 FROM tab2
----
46
3111
64
4697
75
4087

query I rowsort
SELECT - 32 * - col1 AS col2 FROM tab1
----
1504
160
448

onlyif mysql # aggregate syntax: 
query I rowsort label-3219
SELECT ALL MIN( DISTINCT + 71 ) AS col2 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-3219
SELECT ALL MIN ( DISTINCT + 71 ) AS col2 FROM tab0
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3220
SELECT DISTINCT col1, 83 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-3220
SELECT DISTINCT col1, 83 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 30
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 AS cor0 WHERE - col0 + - 80 >= + col0
----

query II rowsort
SELECT DISTINCT - col0 AS col0, col2 * - - col1 AS col0 FROM tab0 AS cor0
----
-15
3807
-87
210
-97
99

query II rowsort
SELECT DISTINCT + col0, col2 FROM tab2 cor0
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3225
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + + col2 ) ) NOT BETWEEN CAST( NULL AS SIGNED ) AND ( col1 * 62 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3225
SELECT * FROM tab2 AS cor0 WHERE NOT ( - ( + + col2 ) ) NOT BETWEEN CAST ( NULL AS INTEGER ) AND ( col1 * 62 + - col1 )
----

query II rowsort
SELECT ALL - + 82, ( col2 ) AS col2 FROM tab2 cor0
----
-82
23
-82
40
-82
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT - COUNT( * ) * + SUM( DISTINCT ( 48 ) ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-3227
SELECT - COUNT ( * ) * + SUM ( DISTINCT ( 48 ) ) FROM tab2 AS cor0
----
-144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col1 * 79 AND - col1
----

query I rowsort
SELECT - - col2 * + 29 + - - col0 AS col1 FROM tab2 cor0
----
1224
1757
713

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3230
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3230
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + + col1 / - + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3232
SELECT DISTINCT 81 FROM tab2 WHERE 72 <= ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT 81 FROM tab2 WHERE 72 <= ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT ALL + col1 * - col2 * + ( + 22 ) * 33 + 94 FROM tab2
----
-2235986
-2821142
-851504

query II rowsort
SELECT + col1 * + col0, 62 AS col1 FROM tab0
----
1215
62
1827
62
97
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + - col0 AND + 28
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 57 + 28 - col0 col1 FROM tab2
----
10
21
39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col1 FROM tab1 WHERE + col1 IS NOT NULL
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 > - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( + 13 ) ) >= NULL
----

query I rowsort
SELECT DISTINCT + 18 * 58 + + + 65 FROM tab1 AS cor0
----
1109

query I rowsort
SELECT DISTINCT - col2 + + col0 * - 68 FROM tab1 AS cor0
----
-3564
-5839
-6256

query I rowsort
SELECT + - 40 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f02f17e9bc17e514af018c6f245ed7a9

query I rowsort
SELECT - + 0 + - 92 AS col0 FROM tab0 AS cor0
----
-92
-92
-92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL AND NOT NULL NOT IN ( + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3245
SELECT DISTINCT + 81 * col2 + - - CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
4694
5417
7725

skipif mysql # not compatible
query I rowsort label-3245
SELECT DISTINCT + 81 * col2 + - - CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
4694
5417
7725

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL 34 + - SUM( ALL 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < ( 3 ) * 15
----
NULL

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL 34 + - SUM ( ALL 42 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL < ( 3 ) * 15
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3247
SELECT - ( - + SUM( - - col1 ) ) DIV 46 + COUNT( * ) * + COUNT( DISTINCT + 31 ) FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-3247
SELECT - ( - + SUM ( - - col1 ) ) / 46 + COUNT ( * ) * + COUNT ( DISTINCT + 31 ) FROM tab2
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3248
SELECT ALL 97 + + MIN( + col2 ) FROM tab0
----
107

skipif mysql # not compatible
query I rowsort label-3248
SELECT ALL 97 + + MIN ( + col2 ) FROM tab0
----
107

query I rowsort
SELECT DISTINCT - 97 + 9 AS col1 FROM tab2
----
-88

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN ( + 1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3252
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3252
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + 48 * - col2 AS col1 FROM tab2
----
-1104
-1920
-2784

onlyif mysql # aggregate syntax: 
query II rowsort label-3254
SELECT - COUNT( ALL - col2 ), + 18 AS col2 FROM tab0 AS cor0
----
-3
18

skipif mysql # not compatible
query II rowsort label-3254
SELECT - COUNT ( ALL - col2 ), + 18 AS col2 FROM tab0 AS cor0
----
-3
18

query I rowsort
SELECT + + ( - - col1 ) * 43 * - + col2 FROM tab2 AS cor0
----
-132440
-167098
-50439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3256
SELECT + 75 / - AVG ( DISTINCT - + CAST( NULL AS SIGNED ) ) * + 50 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3256
SELECT + 75 / - AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) * + 50 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ( + 48 ) FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT ALL MAX( + ( - col1 ) ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3258
SELECT ALL MAX ( + ( - col1 ) ) FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT DISTINCT ( COUNT( * ) ) AS col1, - MAX( ALL + col0 ) FROM tab2 AS cor0
----
3
-75

skipif mysql # not compatible
query II rowsort label-3259
SELECT DISTINCT ( COUNT ( * ) ) AS col1, - MAX ( ALL + col0 ) FROM tab2 AS cor0
----
3
-75

query II rowsort
SELECT + ( + - col0 ) AS col0, + col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT - col2 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT DISTINCT + col2 + - 26 AS col0 FROM tab0
----
-16
21
73

query II rowsort
SELECT - col0 AS col0, 52 AS col2 FROM tab1
----
-51
52
-85
52
-91
52

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE ( - col2 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col2 + 85 + + 81 / 27 + col0 col0 FROM tab1 WHERE ( + col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3266
SELECT + col1 AS col2, + col2 + + - col2 DIV col0 col0 FROM tab0
----
1
98
21
10
81
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3266
SELECT + col1 AS col2, + col2 + + - col2 / col0 col0 FROM tab0
----
1
98
21
10
81
44

onlyif mysql # aggregate syntax: 
query I rowsort label-3267
SELECT - 55 * COUNT( * ) FROM tab2
----
-165

skipif mysql # not compatible
query I rowsort label-3267
SELECT - 55 * COUNT ( * ) FROM tab2
----
-165

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN NULL AND ( + 4 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3269
SELECT * FROM tab1 cor0 WHERE - CAST( NULL AS SIGNED ) <= + - col1
----

skipif mysql # not compatible
query III rowsort label-3269
SELECT * FROM tab1 cor0 WHERE - CAST ( NULL AS INTEGER ) <= + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - col2 )
----

query I rowsort
SELECT ALL - + 14 * - + col1 * - col0 + + + col0 AS col0 FROM tab2 AS cor0
----
-32798
-68928
-70275

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3273
SELECT DISTINCT COUNT( col0 ) + 27 AS col1 FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-3273
SELECT DISTINCT COUNT ( col0 ) + 27 AS col1 FROM tab1 AS cor0
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 17 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - - col1 - - 8 AS col0, 87 AS col0 FROM tab0 AS cor0
----
29
87
89
87
9
87

onlyif mysql # DIV for integer division: 
query I rowsort label-3276
SELECT ALL + col0 DIV - - col0 FROM tab2 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3276
SELECT ALL + col0 / - - col0 FROM tab2 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3277
SELECT ALL + COUNT( * ) - + 63 AS col1 FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3277
SELECT ALL + COUNT ( * ) - + 63 AS col1 FROM tab2 cor0
----
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-3278
SELECT DISTINCT COUNT( ALL col0 ) col1, + 19 - + 50 AS col1 FROM tab1 AS cor0
----
3
-31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3278
SELECT DISTINCT COUNT ( ALL col0 ) col1, + 19 - + 50 AS col1 FROM tab1 AS cor0
----
3
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-3279
SELECT + col2 DIV + col2 - + col1 - col2 * + col1 * + col2 FROM tab0 AS cor0
----
-179009
-2120
-9801

skipif mysql # not compatible
query I rowsort label-3279
SELECT + col2 / + col2 - + col1 - col2 * + col1 * + col2 FROM tab0 AS cor0
----
-179009
-2120
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-3280
SELECT DISTINCT + 17 DIV ( + 57 ) + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-3280
SELECT DISTINCT + 17 / ( + 57 ) + - col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT 28 - 0 * - col2 + - col2 + - 42 AS col1 FROM tab0
----
-113
-24
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-3282
SELECT SUM( col0 ) * + COUNT( * ) AS col0 FROM tab0
----
597

skipif mysql # not compatible
query I rowsort label-3282
SELECT SUM ( col0 ) * + COUNT ( * ) AS col0 FROM tab0
----
597

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3283
SELECT DISTINCT - 80 * - - CAST( 61 AS SIGNED ) col0, col1 DIV - 60 + - col0 * + 23 FROM tab1
----
-4880
-1173
-4880
-1955
-4880
-2093

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3283
SELECT DISTINCT - 80 * - - CAST ( 61 AS INTEGER ) col0, col1 / - 60 + - col0 * + 23 FROM tab1
----
-4880
-1173
-4880
-1955
-4880
-2093

query I rowsort
SELECT 69 * - col1 FROM tab0
----
-1449
-5589
-69

query II rowsort
SELECT DISTINCT + col2 AS col1, 70 FROM tab0
----
10
70
47
70
99
70

query I rowsort
SELECT ALL + 6 * - 92 AS col1 FROM tab2
----
-552
-552
-552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 52 col0 FROM tab0 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + col2 * col0 + ( + col1 ) + + col0 + 79 * + - col2 FROM tab2 cor0
----
-459
-662
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 * - + col1 col1 FROM tab0
----
-1533
-5913
-73

query I rowsort
SELECT DISTINCT + col0 * + col1 FROM tab0 WHERE NOT NULL NOT IN ( - - 65 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3291
SELECT DISTINCT - CAST( + COUNT( - col1 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3291
SELECT DISTINCT - CAST ( + COUNT ( - col1 ) AS INTEGER ) FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) < ( - + 94 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 73 * + 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3294
SELECT ALL 13 DIV - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-3294
SELECT ALL 13 / - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

query I rowsort
SELECT col0 * - - 93 * 87 FROM tab2 AS cor0
----
372186
517824
606825

onlyif mysql # aggregate syntax: 
query II rowsort label-3297
SELECT + - COUNT( * ) AS col1, + MIN( 28 ) FROM tab2 cor0
----
-3
28

skipif mysql # not compatible
query II rowsort label-3297
SELECT + - COUNT ( * ) AS col1, + MIN ( 28 ) FROM tab2 cor0
----
-3
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col0 * - - col2 AS col2 FROM tab0 AS cor0
----
-1
9603
-21
870
-81
705

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3299
SELECT + COUNT( * ) AS col0, CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-3299
SELECT + COUNT ( * ) AS col0, CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3300
SELECT + - ( - 65 ) * + CAST( NULL AS SIGNED ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3300
SELECT + - ( - 65 ) * + CAST ( NULL AS INTEGER ) + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 57 + + + ( - col1 ) AS col0 FROM tab2
----
-10
-20
6

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE NULL < + 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3303
SELECT DISTINCT col0 + 59, CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
146
-10
156
-99
74
-47

skipif mysql # not compatible
query II rowsort label-3303
SELECT DISTINCT col0 + 59, CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
146
-10
156
-99
74
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT DISTINCT col1 + col0 DIV 54 + + - col1 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-3304
SELECT DISTINCT col1 + col0 / 54 + + - col1 FROM tab2
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( - + col2 ) - + 97 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - col0 * col1 / + 56 * + ( col2 )
----

query I rowsort
SELECT ALL + + ( - 26 ) AS col1 FROM tab2 AS cor0
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT - - MIN( col0 ) AS col2 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3308
SELECT - - MIN ( col0 ) AS col2 FROM tab1 cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT DISTINCT COUNT( + col0 ) + - - 39 AS col0 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-3309
SELECT DISTINCT COUNT ( + col0 ) + - - 39 AS col0 FROM tab1
----
42

query I rowsort
SELECT + col1 * + col2 * + col2 FROM tab0 AS cor0 WHERE NULL NOT IN ( + 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3311
SELECT - 5 + - MIN( ALL 51 ) * + 0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3311
SELECT - 5 + - MIN ( ALL 51 ) * + 0 FROM tab1 AS cor0
----
-5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 / col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / - col2 * + - 11 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3314
SELECT ALL + MAX( ALL + + 56 ) - + - COUNT( * ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3314
SELECT ALL + MAX ( ALL + + 56 ) - + - COUNT ( * ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3315
SELECT * FROM tab2 cor0 WHERE col0 IN ( + + col1, col2, col0 + + - col2 * - 65 * + - col2 / CAST( NULL AS SIGNED ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3315
SELECT * FROM tab2 cor0 WHERE col0 IN ( + + col1, col2, col0 + + - col2 * - 65 * + - col2 / CAST ( NULL AS INTEGER ) * - col1 )
----

query I rowsort
SELECT - - col0 + - col2 * - col1 AS col2 FROM tab1 AS cor0
----
1395
3287
380

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3317
SELECT - CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3317
SELECT - CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT - SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3318
SELECT - SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + 14 / ( col2 ) + - + col2 FROM tab2 WHERE NOT col0 >= + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT col1 DIV - 52 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3320
SELECT col1 / - 52 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 * - 58 FROM tab2
----
-2958
-3886
-4466

query I rowsort
SELECT ( + 47 ) AS col2 FROM tab1
----
47
47
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3323
SELECT DISTINCT + - COUNT( * ) DIV - + 52 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3323
SELECT DISTINCT + - COUNT ( * ) / - + 52 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT + ( + 95 ) AS col2 FROM tab1 AS cor0
----
95

query I rowsort
SELECT ALL - 18 * - col0 FROM tab2
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query II rowsort label-3326
SELECT ALL 36 * - - 25 AS col2, + COUNT( * ) * - 28 FROM tab2, tab2 AS cor0
----
900
-252

skipif mysql # not compatible
query II rowsort label-3326
SELECT ALL 36 * - - 25 AS col2, + COUNT ( * ) * - 28 FROM tab2, tab2 AS cor0
----
900
-252

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3327
SELECT ALL + 35 DIV COUNT( * ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-3327
SELECT ALL + 35 / COUNT ( * ) FROM tab0
----
11

query I rowsort
SELECT + 60 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

query II rowsort
SELECT - col2 * + col2 + col1, 28 - col2 + - 46 * - col1 AS col0 FROM tab0 AS cor0
----
-2128
3707
-79
984
-9800
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + + col1 BETWEEN - 4 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3331
SELECT ALL - - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3331
SELECT ALL - - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3332
SELECT - + 72 + - - CAST( NULL AS SIGNED ) + + ( + col0 ) AS col0 FROM tab0 cor0 WHERE NULL = col0
----

skipif mysql # not compatible
query I rowsort label-3332
SELECT - + 72 + - - CAST ( NULL AS INTEGER ) + + ( + col0 ) AS col0 FROM tab0 cor0 WHERE NULL = col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3333
SELECT ALL + 68 * + AVG ( ALL + - CAST( NULL AS SIGNED ) ) * - 23 - + - 98 - + COUNT( * ) FROM tab1 AS cor0 WHERE 95 - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3333
SELECT ALL + 68 * + AVG ( ALL + - CAST ( NULL AS INTEGER ) ) * - 23 - + - 98 - + COUNT ( * ) FROM tab1 AS cor0 WHERE 95 - col1 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col1 * - col1 + 74 >= NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, col2 * + 77 AS col2 FROM tab1
----
51
7392
85
4543
91
5236

query II rowsort
SELECT 97, col2 AS col2 FROM tab0
----
97
10
97
47
97
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3337
SELECT MIN( ALL + + col1 ) AS col1 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3337
SELECT MIN ( ALL + + col1 ) AS col1 FROM tab1
----
5

query I rowsort
SELECT ( - + ( col2 ) ) AS col1 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT col0 * - 92 AS col0 FROM tab1
----
-4692
-7820
-8372

query I rowsort
SELECT ALL ( + col0 ) + col2 AS col1 FROM tab1
----
144
147
159

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3341
SELECT col0 AS col1, 2 * + CAST( NULL AS DECIMAL ) - - - 43 * - - 55 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3341
SELECT col0 AS col1, 2 * + CAST ( NULL AS REAL ) - - - 43 * - - 55 FROM tab2
----
46
NULL
64
NULL
75
NULL

query I rowsort
SELECT DISTINCT - col0 * + - col1 + col2 AS col2 FROM tab0
----
1262
1837
196

query I rowsort
SELECT DISTINCT 8 + col2 + + 39 * - 8 FROM tab0
----
-205
-257
-294

query II rowsort
SELECT ALL - 19 + + col1 AS col1, + col2 FROM tab2
----
32
23
48
58
58
40

query I rowsort
SELECT ALL + col1 + 5 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
26
6
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col2 FROM tab2 cor0
----
31
31
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3347
SELECT - COUNT( - col2 ) DIV - COUNT( 84 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3347
SELECT - COUNT ( - col2 ) / - COUNT ( 84 ) FROM tab0
----
1

query I rowsort
SELECT ALL + - 5 + + + 71 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query II rowsort
SELECT DISTINCT + col2 + + 21 AS col1, ( 41 ) AS col0 FROM tab1
----
117
41
80
41
89
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3350
SELECT + SUM( - - col1 ) col0 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3350
SELECT + SUM ( - - col1 ) col0 FROM tab2 AS cor0
----
195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3351
SELECT - ( col1 ) * + - CAST( col0 AS SIGNED ) AS col1 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-3351
SELECT - ( col1 ) * + - CAST ( col0 AS INTEGER ) AS col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3352
SELECT - 14 * COUNT( * ) AS col2 FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-3352
SELECT - 14 * COUNT ( * ) AS col2 FROM tab0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3353
SELECT col0 DIV - 54 AS col0 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3353
SELECT col0 / - 54 AS col0 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3354
SELECT ALL CAST( + 30 AS SIGNED ) FROM tab1
----
30
30
30

skipif mysql # not compatible
query I rowsort label-3354
SELECT ALL CAST ( + 30 AS INTEGER ) FROM tab1
----
30
30
30

onlyif mysql # aggregate syntax: 
query II rowsort label-3355
SELECT DISTINCT COUNT( * ), + 36 AS col2 FROM tab1
----
3
36

skipif mysql # not compatible
query II rowsort label-3355
SELECT DISTINCT COUNT ( * ), + 36 AS col2 FROM tab1
----
3
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3356
SELECT ALL CAST( - col1 AS SIGNED ) * + 32 AS col1 FROM tab0
----
-2592
-32
-672

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL CAST ( - col1 AS INTEGER ) * + 32 AS col1 FROM tab0
----
-2592
-32
-672

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + 48 col1 FROM tab2
----
1104
1920
2784

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * - + col1 * + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + 29, - col2 col0 FROM tab0 AS cor0
----
29
-10
29
-47
29
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT DISTINCT + MAX( ALL + + col0 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-3360
SELECT DISTINCT + MAX ( ALL + + col0 ) FROM tab0
----
97

query I rowsort
SELECT ( - col2 ) * col1 AS col1 FROM tab2 cor0
----
-1173
-3080
-3886

query II rowsort
SELECT col2 * - col2 AS col0, + col2 FROM tab1 AS cor0
----
-3481
59
-4624
68
-9216
96

query I rowsort
SELECT col2 + + 60 + + col2 * - + col0 AS col2 FROM tab1 AS cor0
----
-4740
-4896
-6060

query I rowsort
SELECT col1 + + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-2295
-4851
-4958

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + ( + col0 ) <> + col2 / - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col2 * 55 + - 18 * - - col0 * + col0 AS col0 FROM tab0 AS cor0
----
-135692
-1465
-163917

query I rowsort
SELECT ALL - col0 + 38 AS col2 FROM tab2 AS cor0
----
-26
-37
-8

query I rowsort
SELECT DISTINCT + - col0 FROM tab2 cor0 WHERE NOT NULL <> + 76
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3369
SELECT COUNT( * ) + - 6 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3369
SELECT COUNT ( * ) + - 6 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3370
SELECT - COUNT( * ) + - - 28 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-3370
SELECT - COUNT ( * ) + - - 28 FROM tab1
----
25

query I rowsort
SELECT 8 + col1 AS col1 FROM tab2
----
59
75
85

query I rowsort
SELECT - col2 + + 59 AS col1 FROM tab1
----
-37
-9
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT ALL - 52 + COUNT( * ) FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-3373
SELECT ALL - 52 + COUNT ( * ) FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3374
SELECT + MAX( + 11 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-3374
SELECT + MAX ( + 11 ) FROM tab0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3375
SELECT ALL 18 DIV + + COUNT( * ) + COUNT( * ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3375
SELECT ALL 18 / + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1
----
9

query I rowsort
SELECT DISTINCT - 1 + 75 AS col1 FROM tab0 AS cor0
----
74

query I rowsort
SELECT 50 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3378
SELECT - + 59 - - COUNT( * ) * + 15 FROM tab0 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3378
SELECT - + 59 - - COUNT ( * ) * + 15 FROM tab0 AS cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3379
SELECT 95 - + ( CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3379
SELECT 95 - + ( CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3380
SELECT - 59 * col1 - col1 * col0 - CAST( NULL AS SIGNED ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3380
SELECT - 59 * col1 - col1 * col0 - CAST ( NULL AS INTEGER ) / col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + - 99 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3382
SELECT DISTINCT 90 + COUNT( * ) AS col2 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3382
SELECT DISTINCT 90 + COUNT ( * ) AS col2 FROM tab1
----
93

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 23 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3384
SELECT COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

query II rowsort
SELECT col0 AS col1, 0 * + col2 + - col0 FROM tab2 AS cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT - - MAX( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3386
SELECT - - MAX ( DISTINCT col0 ) AS col2 FROM tab0 AS cor0
----
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN 0 AND 99
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT - - MIN( ALL - ( - col1 ) ) col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT - - MIN ( ALL - ( - col1 ) ) col1 FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 7 AS col0, - col1 col2 FROM tab2 AS cor0
----
7
-51
7
-67
7
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 57, col0 col2 FROM tab2 AS cor0
----
57
46
57
64
57
75

query I rowsort
SELECT - col2 * - + 17 * 18 * - col2 * - 66 AS col2 FROM tab2
----
10683684
32313600
67939344

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT ALL + MIN( ALL - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3392
SELECT ALL + MIN ( ALL - col2 ) AS col1 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3393
SELECT col2 / - col0 * - CAST( NULL AS SIGNED ) * - + 11 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3393
SELECT col2 / - col0 * - CAST ( NULL AS INTEGER ) * - + 11 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query II rowsort
SELECT - 96 * + - 47, + col2 FROM tab1
----
4512
59
4512
68
4512
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - 47 ) + 48 * + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT + + MIN( - - col1 ) * - MAX( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-3396
SELECT + + MIN ( - - col1 ) * - MAX ( DISTINCT + col1 ) AS col1 FROM tab0 cor0
----
-81

query I rowsort
SELECT ALL col2 * + col1 + - col0 + - + 53 * + + 82 + 38 + + col1 AS col2 FROM tab1
----
-1156
-3001
-4093

onlyif mysql # aggregate syntax: 
query I rowsort label-3398
SELECT COUNT( col2 ) FROM tab2 WHERE 22 - col1 + col1 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-3398
SELECT COUNT ( col2 ) FROM tab2 WHERE 22 - col1 + col1 = NULL
----
0

query I rowsort
SELECT ALL col1 + 92 AS col0 FROM tab1 AS cor0
----
106
139
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT DISTINCT - SUM( + col0 ) + - COUNT( DISTINCT + 71 ) + - 51 col0 FROM tab0 AS cor0 WHERE NOT col1 + + 50 NOT BETWEEN NULL AND + col1 / - 33
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3400
SELECT DISTINCT - SUM ( + col0 ) + - COUNT ( DISTINCT + 71 ) + - 51 col0 FROM tab0 AS cor0 WHERE NOT col1 + + 50 NOT BETWEEN NULL AND + col1 / - 33
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL - COUNT( * ) * 70 - - COUNT( * ) FROM tab0 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL - COUNT ( * ) * 70 - - COUNT ( * ) FROM tab0 cor0
----
-207

query I rowsort
SELECT ALL - - col0 * - 66 AS col2 FROM tab1 AS cor0
----
-3366
-5610
-6006

onlyif mysql # DIV for integer division: 
query I rowsort label-3403
SELECT DISTINCT - + col1 DIV col2 + - + 20 FROM tab2 cor0
----
-21
-22

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - + col1 / col2 + - + 20 FROM tab2 cor0
----
-21
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT DISTINCT - 1 * SUM( ALL ( 57 ) ) AS col2 FROM tab0 cor0
----
-171

skipif mysql # not compatible
query I rowsort label-3404
SELECT DISTINCT - 1 * SUM ( ALL ( 57 ) ) AS col2 FROM tab0 cor0
----
-171

onlyif mysql # DIV for integer division: 
query I rowsort label-3405
SELECT ALL col2 DIV - - col2 + + - col0 * - + col2 AS col2 FROM tab2
----
1059
2561
4351

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL col2 / - - col2 + + - col0 * - + col2 AS col2 FROM tab2
----
1059
2561
4351

onlyif mysql # aggregate syntax: 
query I rowsort label-3406
SELECT DISTINCT 67 * - COUNT( * ) AS col2 FROM tab2
----
-201

skipif mysql # not compatible
query I rowsort label-3406
SELECT DISTINCT 67 * - COUNT ( * ) AS col2 FROM tab2
----
-201

query I rowsort
SELECT DISTINCT col1 * - + col1 + 19 * - col1 * - - col2 * col1 FROM tab1
----
-28050
-2856237
-357700

query I rowsort
SELECT 11 + - col0 - + 28 AS col0 FROM tab0
----
-104
-114
-32

query I rowsort
SELECT 29 + - + 28 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3410
SELECT + 13 * + 38 + + COUNT( * ) col1 FROM tab0
----
497

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3410
SELECT + 13 * + 38 + + COUNT ( * ) col1 FROM tab0
----
497

query I rowsort
SELECT ALL ( - col0 ) - + 22 FROM tab1
----
-107
-113
-73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3412
SELECT DISTINCT col2 * - 70 AS col2 FROM tab1 AS cor0 WHERE - col1 * - CAST( - + 78 AS SIGNED ) BETWEEN col0 + col1 + + + col2 AND col2
----

skipif mysql # not compatible
query I rowsort label-3412
SELECT DISTINCT col2 * - 70 AS col2 FROM tab1 AS cor0 WHERE - col1 * - CAST ( - + 78 AS INTEGER ) BETWEEN col0 + col1 + + + col2 AND col2
----

query I rowsort
SELECT DISTINCT 20 * + + col0 FROM tab0 AS cor0
----
1740
1940
300

onlyif mysql # aggregate syntax: 
query I rowsort label-3414
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL < 11
----
0

skipif mysql # not compatible
query I rowsort label-3414
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL < 11
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( col1 ) <= + 99 * col2 + + - 0 + col0
----

query I rowsort
SELECT ALL + - 73 AS col1 FROM tab2 cor0
----
-73
-73
-73

query I rowsort
SELECT col2 * - + col1 * - 82 * 74 AS col2 FROM tab2 AS cor0
----
18689440
23580248
7117764

onlyif mysql # aggregate syntax: 
query I rowsort label-3418
SELECT 59 * - COUNT( * ) + + - 40 FROM tab2 AS cor0
----
-217

skipif mysql # not compatible
query I rowsort label-3418
SELECT 59 * - COUNT ( * ) + + - 40 FROM tab2 AS cor0
----
-217

query I rowsort
SELECT 64 * + col0 * + + 54 FROM tab0
----
300672
335232
51840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3420
SELECT CAST( + SUM( - - 86 ) AS SIGNED ) DIV - COUNT( * ) col1 FROM tab2
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3420
SELECT CAST ( + SUM ( - - 86 ) AS INTEGER ) / - COUNT ( * ) col1 FROM tab2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-3421
SELECT ALL + col2 DIV + 77 col1 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3421
SELECT ALL + col2 / + 77 col1 FROM tab0 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 39 * - col0 NOT IN ( - col1, col1 * 18 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3423
SELECT + + CAST( MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3423
SELECT + + CAST ( MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0, col0 + - col0 col2 FROM tab2
----
46
0
64
0
75
0

query I rowsort
SELECT + ( + 33 ) AS col2 FROM tab2
----
33
33
33

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT NULL <= - col0 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3427
SELECT ALL MAX( + + ( - - col0 ) ) * - - COUNT( + col1 ) * - COUNT( + col2 ) FROM tab1
----
-819

skipif mysql # not compatible
query I rowsort label-3427
SELECT ALL MAX ( + + ( - - col0 ) ) * - - COUNT ( + col1 ) * - COUNT ( + col2 ) FROM tab1
----
-819

query I rowsort
SELECT col1 + col0 + - col2 + col1 - 65 * - col2 + + - 53 FROM tab1
----
3818
4484
6170

query II rowsort
SELECT + - 3, - 91 AS col1 FROM tab0 AS cor0
----
-3
-91
-3
-91
-3
-91

query II rowsort
SELECT ALL + col2 AS col2, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL + + 76 * - 85 AS col0 FROM tab0 AS cor0
----
-6460
-6460
-6460

query I rowsort
SELECT DISTINCT 92 + 26 FROM tab1
----
118

onlyif mysql # aggregate syntax: 
query I rowsort label-3433
SELECT DISTINCT - SUM( - 82 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
738

skipif mysql # not compatible
query I rowsort label-3433
SELECT DISTINCT - SUM ( - 82 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL + ( - ( + COUNT( * ) ) ) AS col2 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL + ( - ( + COUNT ( * ) ) ) AS col2 FROM tab0, tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3435
SELECT + SUM( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3435
SELECT + SUM ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query II rowsort
SELECT - col1 + + + col1 AS col0, 66 + - 7 FROM tab0 cor0
----
0
59
0
59
0
59

query I rowsort
SELECT DISTINCT - 42 * + col0 / 45 FROM tab0 AS cor0 WHERE NOT NULL < col1
----

query I rowsort
SELECT + - 37 + - 32 AS col1 FROM tab0 cor0
----
-69
-69
-69

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * - + col0 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3440
SELECT ALL CAST( - AVG ( DISTINCT + - col0 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL CAST ( - AVG ( DISTINCT + - col0 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
66

query I rowsort
SELECT - 96 + col2 FROM tab1 cor0
----
-28
-37
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3442
SELECT ALL 39 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT ALL 39 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT ALL COUNT( + + 54 ) + + - COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3443
SELECT ALL COUNT ( + + 54 ) + + - COUNT ( * ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - - 6 FROM tab1 cor0
----
6
6
6

query III rowsort
SELECT * FROM tab0 WHERE - 26 - 82 + - ( col2 ) / col2 <= + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col0, - col0 + + + 66 AS col1 FROM tab0
----
-10
-21
-47
51
-99
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT DISTINCT 12 + + - COUNT( * ) col1 FROM tab1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3447
SELECT DISTINCT 12 + + - COUNT ( * ) col1 FROM tab1
----
9

query III rowsort
SELECT * FROM tab0 WHERE + ( col0 ) <= - - 91 + + - col2
----
15
81
47

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN col0 AND + ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3450
SELECT DISTINCT COUNT( - + col0 ) + 22 FROM tab1
----
25

skipif mysql # not compatible
query I rowsort label-3450
SELECT DISTINCT COUNT ( - + col0 ) + 22 FROM tab1
----
25

query I rowsort
SELECT DISTINCT + 39 FROM tab1 cor0 WHERE NULL IS NULL
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT + COUNT( * ) * 95 AS col1 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-3452
SELECT + COUNT ( * ) * 95 AS col1 FROM tab0 AS cor0
----
285

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 51 > 44 + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col0 FROM tab0 AS cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL + ( + 4 ) AS col1 FROM tab0 AS cor0
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 * - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= - - 24
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3458
SELECT COUNT( * ) DIV - ( 25 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3458
SELECT COUNT ( * ) / - ( 25 ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT 12 * - COUNT( * ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-3459
SELECT 12 * - COUNT ( * ) FROM tab0
----
-36

query I rowsort
SELECT + + 9 AS col1 FROM tab1 cor0
----
9
9
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 78 + - - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3462
SELECT - CAST( col2 AS SIGNED ) + - col1 FROM tab1
----
-110
-115
-64

skipif mysql # not compatible
query I rowsort label-3462
SELECT - CAST ( col2 AS INTEGER ) + - col1 FROM tab1
----
-110
-115
-64

query I rowsort
SELECT ( + + 23 ) FROM tab0
----
23
23
23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 BETWEEN col0 + + 32 AND col1
----
87
21
10
97
1
99

query II rowsort
SELECT 33 AS col2, ( + col0 ) * - col1 AS col0 FROM tab2
----
33
-2346
33
-4928
33
-5025

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 82 <= - + col2 * + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3467
SELECT DISTINCT col1 col1, + CAST( NULL AS DECIMAL ) * + + col2 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3467
SELECT DISTINCT col1 col1, + CAST ( NULL AS REAL ) * + + col2 AS col0 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query II rowsort
SELECT ALL col0, - col1 AS col0 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-3469
SELECT - col1 - - - 84 AS col2, col1 + col2 + col1 * - - col2 DIV col2 FROM tab2 AS cor0
----
-135
125
-151
192
-161
194

skipif mysql # not compatible
query II rowsort label-3469
SELECT - col1 - - - 84 AS col2, col1 + col2 + col1 * - - col2 / col2 FROM tab2 AS cor0
----
-135
125
-151
192
-161
194

query I rowsort
SELECT ( - + 75 ) - + col0 AS col1 FROM tab1
----
-126
-160
-166

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 3 + + col0 col1 FROM tab0
----
100
18
90

query I rowsort
SELECT ( + col2 ) + - col1 * - + col0 * + + col1 FROM tab2
----
119669
336733
379496

onlyif mysql # aggregate syntax: 
query I rowsort label-3473
SELECT + ( + - COUNT( * ) ) FROM tab1 WHERE NOT + + col1 - + - 57 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3473
SELECT + ( + - COUNT ( * ) ) FROM tab1 WHERE NOT + + col1 - + - 57 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - 51 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT - ( MIN( DISTINCT - col1 ) ) * - - COUNT( * ) col2 FROM tab2 cor0
----
231

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3476
SELECT - ( MIN ( DISTINCT - col1 ) ) * - - COUNT ( * ) col2 FROM tab2 cor0
----
231

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3477
SELECT COUNT( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3477
SELECT COUNT ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3478
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col1 FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + col1 AS col2, - ( - col0 ) AS col2 FROM tab2
----
51
46
67
75
77
64

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + 17 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3481
SELECT DISTINCT COUNT( * ) AS col0, + 77 AS col0 FROM tab0 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-3481
SELECT DISTINCT COUNT ( * ) AS col0, + 77 AS col0 FROM tab0 AS cor0
----
3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT DISTINCT 93 * COUNT( * ) col0 FROM tab2 AS cor0
----
279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3482
SELECT DISTINCT 93 * COUNT ( * ) col0 FROM tab2 AS cor0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3483
SELECT ALL + + CAST( - - 97 AS SIGNED ) FROM tab1 AS cor0 WHERE - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL + + CAST ( - - 97 AS INTEGER ) FROM tab1 AS cor0 WHERE - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT - + COUNT( * ) AS col2, ( - + MAX( + ( col0 ) ) ) FROM tab1 AS cor0
----
-3
-91

skipif mysql # not compatible
query II rowsort label-3484
SELECT - + COUNT ( * ) AS col2, ( - + MAX ( + ( col0 ) ) ) FROM tab1 AS cor0
----
-3
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT - COUNT( - + 16 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3485
SELECT - COUNT ( - + 16 ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND - col0 * + col1
----

query I rowsort
SELECT + ( - col2 ) + col1 + - + 24 AS col0 FROM tab0
----
-122
-13
10

query I rowsort
SELECT ( + 65 ) + + col0 * - col2 FROM tab1
----
-4831
-4950
-6123

onlyif mysql # DIV for integer division: 
query I rowsort label-3489
SELECT ALL 80 + + 0 DIV + col0 * col2 FROM tab1
----
80
80
80

skipif mysql # not compatible
query I rowsort label-3489
SELECT ALL 80 + + 0 / + col0 * col2 FROM tab1
----
80
80
80

query I rowsort
SELECT + + ( + 82 ) FROM tab1 cor0
----
82
82
82

onlyif mysql # aggregate syntax: 
query II rowsort label-3491
SELECT + 35 * + + COUNT( * ) col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
105
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3491
SELECT + 35 * + + COUNT ( * ) col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
105
3

query I rowsort
SELECT DISTINCT ( + col2 ) * - 95 + - + col0 AS col0 FROM tab0 AS cor0
----
-1037
-4480
-9502

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NULL ) <> NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 59 IS NOT NULL
----

query I rowsort
SELECT + 27 AS col0 FROM tab2 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 61 - 9 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-3497
SELECT COUNT( * ) + + 43 AS col1 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3497
SELECT COUNT ( * ) + + 43 AS col1 FROM tab0 AS cor0
----
46

query I rowsort
SELECT - + 98 + + 65 FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT - 80 + COUNT( * ) FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3499
SELECT - 80 + COUNT ( * ) FROM tab0 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT ALL - MIN( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-3500
SELECT ALL - MIN ( DISTINCT col2 ) AS col0 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT col2 * - - col1 * col0 * + col1 FROM tab1 AS cor0
----
125375
13669292
959616

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT ( + - MIN( + ( 13 ) ) ) * - 81 - + COUNT( * ) - + COUNT( * ) + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1050

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT ( + - MIN ( + ( 13 ) ) ) * - 81 - + COUNT ( * ) - + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1050

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 14 >= NULL
----

query I rowsort
SELECT ALL 55 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 68 > + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / - col0 + + col2 - - + 38 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3507
SELECT DISTINCT MIN( col1 ) col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3507
SELECT DISTINCT MIN ( col1 ) col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( 37 ) FROM tab2 cor0
----
37

query I rowsort
SELECT ALL + col1 * ( - col0 ) AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT COUNT( * ) * - - MAX( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-3510
SELECT COUNT ( * ) * - - MAX ( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT + + ( - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3511
SELECT + + ( - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3512
SELECT + COUNT( * ) DIV 48 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3512
SELECT + COUNT ( * ) / 48 FROM tab2 cor0
----
0

query I rowsort
SELECT - + col2 FROM tab1 AS cor0 WHERE NOT 40 BETWEEN NULL AND + + 47
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3514
SELECT ALL + col0 * - col0 DIV - col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3514
SELECT ALL + col0 * - col0 / - col0 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query II rowsort label-3515
SELECT DISTINCT COUNT( * ) + - COUNT( ALL - + col1 ) AS col1, 92 * + 51 AS col2 FROM tab1
----
0
4692

skipif mysql # not compatible
query II rowsort label-3515
SELECT DISTINCT COUNT ( * ) + - COUNT ( ALL - + col1 ) AS col1, 92 * + 51 AS col2 FROM tab1
----
0
4692

query I rowsort
SELECT ALL col2 + - ( + col1 ) FROM tab0
----
-11
-34
98

query III rowsort
SELECT * FROM tab2 WHERE - col1 / - col1 + - 51 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT ALL 2 * + + 32 + COUNT( * ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-3518
SELECT ALL 2 * + + 32 + COUNT ( * ) FROM tab0
----
67

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3520
SELECT MIN( ALL + - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3520
SELECT MIN ( ALL + - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3521
SELECT - col2 AS col0, - 22 + - CAST( 63 AS SIGNED ) FROM tab0
----
-10
-85
-47
-85
-99
-85

skipif mysql # not compatible
query II rowsort label-3521
SELECT - col2 AS col0, - 22 + - CAST ( 63 AS INTEGER ) FROM tab0
----
-10
-85
-47
-85
-99
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3522
SELECT + COUNT( * ) DIV + COUNT( * ) + SUM( ALL + + 52 ) AS col0 FROM tab1
----
157

skipif mysql # not compatible
query I rowsort label-3522
SELECT + COUNT ( * ) / + COUNT ( * ) + SUM ( ALL + + 52 ) AS col0 FROM tab1
----
157

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3523
SELECT CAST( - col1 AS SIGNED ) FROM tab0 WHERE NULL < col1
----

skipif mysql # not compatible
query I rowsort label-3523
SELECT CAST ( - col1 AS INTEGER ) FROM tab0 WHERE NULL < col1
----

query I rowsort
SELECT ALL - col2 * + + col0 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - 61 * - - 79 FROM tab1 AS cor0
----
-4819

query I rowsort
SELECT - 72 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query III rowsort
SELECT ALL * FROM tab1 WHERE + 41 IS NULL
----

query I rowsort
SELECT ALL 22 * - 82 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8513b2cc71f62044cd2fecd133e25d54

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3529
SELECT ALL col2 - - col0 AS col0, - col0 * - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
104
NULL
133
NULL
69
NULL

skipif mysql # not compatible
query II rowsort label-3529
SELECT ALL col2 - - col0 AS col0, - col0 * - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
104
NULL
133
NULL
69
NULL

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 AND + col1 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3531
SELECT DISTINCT - col0 - 59 + col1 * + - col0 - - CAST( + - 54 AS SIGNED ) DIV - 68 AS col1 FROM tab1 AS cor0
----
-4427
-569
-824

skipif mysql # not compatible
query I rowsort label-3531
SELECT DISTINCT - col0 - 59 + col1 * + - col0 - - CAST ( + - 54 AS INTEGER ) / - 68 AS col1 FROM tab1 AS cor0
----
-4427
-569
-824

onlyif mysql # DIV for integer division: 
query I rowsort label-3532
SELECT ALL - ( 80 ) DIV - col2 - - col0 AS col0 FROM tab1 cor0
----
51
86
92

skipif mysql # not compatible
query I rowsort label-3532
SELECT ALL - ( 80 ) / - col2 - - col0 AS col0 FROM tab1 cor0
----
51
86
92

query I rowsort
SELECT DISTINCT - 61 - col0 AS col0 FROM tab0 AS cor0
----
-148
-158
-76

query I rowsort
SELECT + col2 * - + 19 AS col1 FROM tab1 AS cor0
----
-1121
-1292
-1824

query I rowsort
SELECT DISTINCT col1 * - ( 79 ) + - - 63 + col2 FROM tab2 AS cor0
----
-3943
-5172
-5980

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 * + ( + + col2 ) )
----

query I rowsort
SELECT - ( + 56 ) AS col2 FROM tab0 AS cor0
----
-56
-56
-56

query I rowsort
SELECT 42 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3539
SELECT DISTINCT + COUNT( * ) DIV - - 15 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT DISTINCT + COUNT ( * ) / - - 15 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT MAX( col1 ) * - 22 * 19 AS col1 FROM tab2
----
-32186

skipif mysql # not compatible
query I rowsort label-3540
SELECT MAX ( col1 ) * - 22 * 19 AS col1 FROM tab2
----
-32186

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT ALL - COUNT( ALL 81 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3541
SELECT ALL - COUNT ( ALL 81 ) AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ( + ( col0 ) ) AS col0 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT - ( + - col1 ) * 16 FROM tab2
----
1072
1232
816

query I rowsort
SELECT DISTINCT 15 + 54 FROM tab0
----
69

query I rowsort
SELECT DISTINCT - ( 43 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-43

query I rowsort
SELECT ALL 42 AS col0 FROM tab2 WHERE NOT + 39 * + - col1 * + col2 * + col1 + 7 BETWEEN NULL AND ( - + 56 )
----

query I rowsort
SELECT + 65 AS col2 FROM tab1 cor0
----
65
65
65

query I rowsort
SELECT DISTINCT + col0 * - + col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT ALL - MAX( ALL - + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3549
SELECT ALL - MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT - - 98 + + - col1 * + col0 FROM tab2 AS cor0
----
-2248
-4830
-4927

query I rowsort
SELECT DISTINCT + 94 + - 28 FROM tab0 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT - COUNT( * ) + + ( + 10 ) + + COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3552
SELECT - COUNT ( * ) + + ( + 10 ) + + COUNT ( * ) FROM tab2 AS cor0
----
10

query I rowsort
SELECT ALL - col1 + col2 * + col0 + - col2 AS col1 FROM tab2
----
2443
4225
984

query I rowsort
SELECT ALL col2 + - + col2 * - + col1 FROM tab2
----
1196
3120
3944

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL - col1 * + col2 + + - col0 DIV - col2 col1 FROM tab1
----
-1344
-294
-3195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3555
SELECT ALL - col1 * + col2 + + - col0 / - col2 col1 FROM tab1
----
-1344
-294
-3195

query I rowsort
SELECT ALL 54 FROM tab2, tab2 cor0
----
9 values hashing to d2364c4ffc09ac2cf1f6fa4d767d8b09

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3557
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) AS col1, + SUM( col2 ) * + COUNT( * ) col0 FROM tab1 AS cor0
----
NULL
669

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3557
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1, + SUM ( col2 ) * + COUNT ( * ) col0 FROM tab1 AS cor0
----
NULL
669

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3558
SELECT - COUNT( * ) DIV - - MAX( DISTINCT - + 66 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3558
SELECT - COUNT ( * ) / - - MAX ( DISTINCT - + 66 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + - col2 FROM tab2 WHERE col2 <= ( + col1 ) * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT - COUNT( * ) + 44 AS col1 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT - COUNT ( * ) + 44 AS col1 FROM tab2
----
41

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 15 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT ALL + CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + - col2 * - 60 * - 93 - + 47 + - col2 * - col1 AS col1 FROM tab1 cor0
----
-328972
-376291
-534383

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 * - + col0 col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3565
SELECT ALL col2 DIV + 14 FROM tab1 AS cor0
----
4
4
6

skipif mysql # not compatible
query I rowsort label-3565
SELECT ALL col2 / + 14 FROM tab1 AS cor0
----
4
4
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( 61 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT DISTINCT MIN( ALL + + col0 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3567
SELECT DISTINCT MIN ( ALL + + col0 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3568
SELECT ALL COUNT( ALL - - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3568
SELECT ALL COUNT ( ALL - - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - ( - 58 ) * - col1 FROM tab2
----
-2958
-3886
-4466

query I rowsort
SELECT ALL 24 * - - col0 AS col2 FROM tab1
----
1224
2040
2184

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < - col2 * + col0 * + col1 + 33
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN + - 37 AND + - 82
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * 15 AS col0 FROM tab1 AS cor0
----
210
705
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 71 col1 FROM tab1 AS cor0
----
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3575
SELECT ALL - CAST( - 82 AS SIGNED ) col2, - 41 * + COUNT( * ) col0 FROM tab1 cor0
----
82
-123

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3575
SELECT ALL - CAST ( - 82 AS INTEGER ) col2, - 41 * + COUNT ( * ) col0 FROM tab1 cor0
----
82
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT + CAST( 92 AS SIGNED ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-3576
SELECT + CAST ( 92 AS INTEGER ) AS col1 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3577
SELECT ALL + ( COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3577
SELECT ALL + ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3578
SELECT col1 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3578
SELECT col1 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3579
SELECT + COUNT( * ) + + CAST( + 26 AS SIGNED ) FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-3579
SELECT + COUNT ( * ) + + CAST ( + 26 AS INTEGER ) FROM tab2
----
29

query I rowsort
SELECT col2 + - col2 - col0 AS col0 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - 96 + + col0 AS col2 FROM tab2
----
-21
-32
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT - - 89 + - - 97 * - MIN( DISTINCT - 83 ) FROM tab2 AS cor0
----
8140

skipif mysql # not compatible
query I rowsort label-3582
SELECT - - 89 + - - 97 * - MIN ( DISTINCT - 83 ) FROM tab2 AS cor0
----
8140

query I rowsort
SELECT - - col0 * + col0 + + + col1 * - col2 + - col1 AS col2 FROM tab2 AS cor0
----
1672
892
939

onlyif mysql # aggregate syntax: 
query I rowsort label-3584
SELECT DISTINCT ( + + COUNT( * ) ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3584
SELECT DISTINCT ( + + COUNT ( * ) ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT DISTINCT - COUNT( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3585
SELECT DISTINCT - COUNT ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3586
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST( - CAST( col2 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3586
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + CAST ( - CAST ( col2 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3587
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, COUNT( * ) AS col2 FROM tab2
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3587
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) AS col2 FROM tab2
----
NULL
3

query I rowsort
SELECT DISTINCT 30 + - col2 FROM tab1
----
-29
-38
-66

query II rowsort
SELECT col2 - + 3, 52 * col0 + + col1 AS col0 FROM tab2
----
20
2443
37
3405
55
3967

onlyif mysql # aggregate syntax: 
query I rowsort label-3590
SELECT 94 - - COUNT( DISTINCT + + col1 ) * + MAX( DISTINCT + col0 ) FROM tab0
----
385

skipif mysql # not compatible
query I rowsort label-3590
SELECT 94 - - COUNT ( DISTINCT + + col1 ) * + MAX ( DISTINCT + col0 ) FROM tab0
----
385

query III rowsort
SELECT * FROM tab2 WHERE + - col1 * - col2 * col2 * + col0 + - + col0 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 11 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL 64, - ( - 73 ) AS col0 FROM tab1 cor0
----
64
73
64
73
64
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3594
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) BETWEEN NULL AND - - col2
----

skipif mysql # not compatible
query III rowsort label-3594
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) BETWEEN NULL AND - - col2
----

query I rowsort
SELECT ALL col2 + + 2 - - col1 FROM tab1
----
112
117
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 + - 60 col2 FROM tab1
----
-5
-5
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-3597
SELECT + col1 DIV - ( - col1 ) AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3597
SELECT + col1 / - ( - col1 ) AS col1 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 61 * - 5, 77 col0 FROM tab1 AS cor0
----
-305
77

query I rowsort
SELECT ALL + - 4 FROM tab0 cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-3600
SELECT DISTINCT - - COUNT( DISTINCT col0 ) * + COUNT( * ) FROM tab1 cor0
----
9

skipif mysql # not compatible
query I rowsort label-3600
SELECT DISTINCT - - COUNT ( DISTINCT col0 ) * + COUNT ( * ) FROM tab1 cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3601
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 27 IS NULL
----

skipif mysql # not compatible
query III rowsort label-3601
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 27 IS NULL
----

query I rowsort
SELECT ALL col1 * + - 19 AS col1 FROM tab0 AS cor0
----
-1539
-19
-399

query I rowsort
SELECT DISTINCT - 96 * col0 * - col1 - col2 FROM tab2 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3604
SELECT + + 2 * - + COUNT( * ) * + - COUNT( DISTINCT - col2 ) * 40 AS col0 FROM tab1 AS cor0
----
720

skipif mysql # not compatible
query I rowsort label-3604
SELECT + + 2 * - + COUNT ( * ) * + - COUNT ( DISTINCT - col2 ) * 40 AS col0 FROM tab1 AS cor0
----
720

query I rowsort
SELECT + ( + ( + - 30 ) ) AS col0 FROM tab2 AS cor0
----
-30
-30
-30

query I rowsort
SELECT DISTINCT + - 2 AS col1 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT DISTINCT + - ( - + col1 ) * - col1 AS col0 FROM tab0 AS cor0
----
-1
-441
-6561

query I rowsort
SELECT + 42 * - col0 FROM tab1
----
-2142
-3570
-3822

query I rowsort
SELECT 67 * + - col0 * - col2 FROM tab2
----
171520
291450
70886

query I rowsort
SELECT ALL - ( - 17 ) FROM tab2
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NOT NULL > - col1
----
0

skipif mysql # not compatible
query I rowsort label-3611
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NOT NULL > - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - 8 * - 92 * col2 AS col0, + col1 FROM tab1
----
43424
5
50048
47
70656
14

query I rowsort
SELECT ALL + col2 * + 34 * + - col0 FROM tab0
----
-23970
-29580
-326502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3616
SELECT DISTINCT + 64 * MIN( ALL col2 ) AS col0 FROM tab1
----
3776

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + 64 * MIN ( ALL col2 ) AS col0 FROM tab1
----
3776

query I rowsort
SELECT + 87 + 40 AS col2 FROM tab1
----
127
127
127

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( col2 + - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 76 - 73 ) < NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col2 ) - - 91 col1 FROM tab0
----
101
138
190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3622
SELECT CAST( NULL AS SIGNED ) + + ( - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3622
SELECT CAST ( NULL AS INTEGER ) + + ( - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 66 * - ( col2 ) FROM tab2
----
-1518
-2640
-3828

query I rowsort
SELECT 3 - + 24 FROM tab0
----
-21
-21
-21

query I rowsort
SELECT - col1 * - col2 + col0 AS col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT COUNT( * ) + 59 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3626
SELECT COUNT ( * ) + 59 FROM tab0
----
62

query I rowsort
SELECT 73 + + 88 AS col0 FROM tab0 WHERE NOT - 75 * 46 IS NOT NULL
----

query I rowsort
SELECT - AVG ( DISTINCT col2 ) FROM tab0 WHERE ( col1 ) IS NULL
----
NULL

query I rowsort
SELECT - col1 * 16 FROM tab2
----
-1072
-1232
-816

query I rowsort
SELECT DISTINCT + col0 - - 59 AS col0 FROM tab2
----
105
123
134

query I rowsort
SELECT DISTINCT 76 + col1 FROM tab2 WHERE col1 NOT BETWEEN NULL AND - col0
----
127
143
153

query I rowsort
SELECT DISTINCT + ( 8 ) + col1 FROM tab0
----
29
89
9

query I rowsort
SELECT DISTINCT + col2 * - col1 + ( col1 + - col0 ) FROM tab2
----
-1168
-3067
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT COUNT( * ) * 74 col0 FROM tab1
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3634
SELECT COUNT ( * ) * 74 col0 FROM tab1
----
222

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT MIN( col0 ) - - 94 AS col0 FROM tab2
----
140

skipif mysql # not compatible
query I rowsort label-3635
SELECT MIN ( col0 ) - - 94 AS col0 FROM tab2
----
140

query I rowsort
SELECT + col0 * 86 FROM tab0
----
1290
7482
8342

query I rowsort
SELECT 36 FROM tab2 WHERE - col0 BETWEEN 36 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3638
SELECT ALL + 49 DIV col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3638
SELECT ALL + 49 / col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT DISTINCT + 81 * COUNT( * ) FROM tab1
----
243

skipif mysql # not compatible
query I rowsort label-3639
SELECT DISTINCT + 81 * COUNT ( * ) FROM tab1
----
243

query III rowsort
SELECT * FROM tab2 WHERE NOT + 90 / 16 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 31 AS col2 FROM tab2 WHERE - col2 >= - col2
----
31
31
31

query III rowsort
SELECT * FROM tab1 WHERE - col1 < ( 44 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3643
SELECT DISTINCT col0 DIV + 19 AS col1 FROM tab2
----
2
3

skipif mysql # not compatible
query I rowsort label-3643
SELECT DISTINCT col0 / + 19 AS col1 FROM tab2
----
2
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 + + col1 NOT BETWEEN ( col2 ) AND ( col0 * - 67 - - 73 * col0 )
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - 12 * - 74 ) NOT IN ( - 90 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) col0 FROM tab1 AS cor0 WHERE - col1 <= ( 72 / + 27 )
----
14
47
5

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3648
SELECT SUM( ALL col2 ) * + 13 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
2025

skipif mysql # not compatible
query I rowsort label-3648
SELECT SUM ( ALL col2 ) * + 13 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT - COUNT( * ) - - 7 AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3649
SELECT - COUNT ( * ) - - 7 AS col0 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3650
SELECT + MIN( col0 ) DIV - 46 - 17 * 97 AS col2 FROM tab2 AS cor0
----
-1650

skipif mysql # not compatible
query I rowsort label-3650
SELECT + MIN ( col0 ) / - 46 - 17 * 97 AS col2 FROM tab2 AS cor0
----
-1650

query I rowsort
SELECT ALL 80 * + col0 - col1 AS col1 FROM tab2 AS cor0
----
3629
5043
5933

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3652
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 29 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT DISTINCT CAST ( NULL AS REAL ) * - 29 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + 1 * 69 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND 66
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 70 * col2 + - col2 col0 FROM tab2 WHERE NOT ( col2 ) NOT IN ( 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3655
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3656
SELECT ALL COUNT( DISTINCT + col1 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3656
SELECT ALL COUNT ( DISTINCT + col1 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT ( col2 / col2 + col1 * col1 ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT ( SUM( DISTINCT 8 ) ) + 88 FROM tab0 AS cor0 CROSS JOIN tab0
----
96

skipif mysql # not compatible
query I rowsort label-3658
SELECT ( SUM ( DISTINCT 8 ) ) + 88 FROM tab0 AS cor0 CROSS JOIN tab0
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( 41 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3660
SELECT + + COUNT( * ) * CAST( + 52 * + 76 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
11856

skipif mysql # not compatible
query I rowsort label-3660
SELECT + + COUNT ( * ) * CAST ( + 52 * + 76 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
11856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + - MIN( DISTINCT + 91 ) FROM tab2 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3662
SELECT + - MIN ( DISTINCT + 91 ) FROM tab2 cor0
----
-91

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 cor0 WHERE 22 IS NOT NULL
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - col1 col0 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT col1 * ( col1 ) AS col2 FROM tab0 WHERE NOT col0 <= ( CAST( NULL AS SIGNED ) / ( 21 ) )
----

skipif mysql # not compatible
query I rowsort label-3665
SELECT col1 * ( col1 ) AS col2 FROM tab0 WHERE NOT col0 <= ( CAST ( NULL AS INTEGER ) / ( 21 ) )
----

query I rowsort
SELECT DISTINCT col0 * - - 15 FROM tab0
----
1305
1455
225

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 95 ) IS NOT NULL
----

query I rowsort
SELECT col0 * - + col0 * 84 FROM tab0
----
-18900
-635796
-790356

query I rowsort
SELECT DISTINCT + col0 * + col2 FROM tab0 WHERE ( + 17 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 + col2 AS col1 FROM tab2 WHERE NOT + 76 * + 9 IS NULL
----
-17
-23
-24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3671
SELECT ALL 86 DIV + COUNT( * ) FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-3671
SELECT ALL 86 / + COUNT ( * ) FROM tab2
----
28

onlyif mysql # DIV for integer division: 
query I rowsort label-3672
SELECT + ( + - col0 ) DIV + col1 AS col2 FROM tab0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-3672
SELECT + ( + - col0 ) / + col1 AS col2 FROM tab0
----
-4
-97
0

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 * + 89 NOT BETWEEN NULL AND - 58
----

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab2 AS cor0 WHERE NOT col1 + + col2 IS NULL
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3675
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3675
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - COUNT( ALL + ( + col2 ) ) * MIN( ALL 24 * col1 - - col0 ) + + 26 FROM tab2
----
-3784

skipif mysql # not compatible
query I rowsort label-3676
SELECT - COUNT ( ALL + ( + col2 ) ) * MIN ( ALL 24 * col1 - - col0 ) + + 26 FROM tab2
----
-3784

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT DISTINCT col0 + - 3 AS col0 FROM tab2
----
43
61
72

query I rowsort
SELECT - col2 AS col2 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 BETWEEN NULL AND - col2 - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3681
SELECT + AVG ( CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3681
SELECT + AVG ( CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3682
SELECT DISTINCT CAST( NULL AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE NOT - col2 / 71 = + 6 * col2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3682
SELECT DISTINCT CAST ( NULL AS REAL ) col0 FROM tab2 AS cor0 WHERE NOT - col2 / 71 = + 6 * col2
----
NULL

query I rowsort
SELECT + ( + 93 ) AS col1 FROM tab1 AS cor0
----
93
93
93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 93 BETWEEN - col2 + - col1 AND NULL
----
85
5
59

query II rowsort
SELECT ALL + col1, ( + - col2 ) + 55 FROM tab2 cor0
----
51
32
67
-3
77
15

query I rowsort
SELECT - 68 - - ( + col2 ) AS col0 FROM tab0 AS cor0
----
-21
-58
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3687
SELECT ALL - COUNT( * ) * 45 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3687
SELECT ALL - COUNT ( * ) * 45 FROM tab1 AS cor0
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-3688
SELECT col1 - - col0 DIV - col1 FROM tab0 cor0
----
-96
17
81

skipif mysql # not compatible
query I rowsort label-3688
SELECT col1 - - col0 / - col1 FROM tab0 cor0
----
-96
17
81

query I rowsort
SELECT + 2 FROM tab0 WHERE - - col2 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3690
SELECT + CAST( NULL AS SIGNED ) * + AVG ( DISTINCT col0 ) + - - 72 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3690
SELECT + CAST ( NULL AS INTEGER ) * + AVG ( DISTINCT col0 ) + - - 72 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col2 + + + col2 FROM tab1
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3692
SELECT CAST( - col2 AS SIGNED ) + + - ( - col1 ) + - ( ( ( - col0 ) ) ) DIV - col1 AS col2 FROM tab2
----
28
37
8

skipif mysql # not compatible
query I rowsort label-3692
SELECT CAST ( - col2 AS INTEGER ) + + - ( - col1 ) + - ( ( ( - col0 ) ) ) / - col1 AS col2 FROM tab2
----
28
37
8

query I rowsort
SELECT col2 * + - col0 * - - 70 + - col2 FROM tab0
----
-49397
-60910
-672309

query I rowsort
SELECT DISTINCT 51 * - + col1 * - col2 - col0 AS col1 FROM tab2
----
157016
198111
59777

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3695
SELECT ( + COUNT( * ) ) / - + COUNT( * ) + - CAST( NULL AS DECIMAL ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3695
SELECT ( + COUNT ( * ) ) / - + COUNT ( * ) + - CAST ( NULL AS REAL ) AS col2 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3696
SELECT DISTINCT col2 * + CAST( 42 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
1680
2436
966

skipif mysql # not compatible
query I rowsort label-3696
SELECT DISTINCT col2 * + CAST ( 42 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
1680
2436
966

query I rowsort
SELECT + - col2 * col0 AS col2 FROM tab2 AS cor0 WHERE NOT col2 > NULL
----

query I rowsort
SELECT - - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( 6 / + col1 ) <= + 70
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT DISTINCT - - COUNT( * ) - - + 80 FROM tab1 cor0 WHERE NULL = 32
----
80

skipif mysql # not compatible
query I rowsort label-3699
SELECT DISTINCT - - COUNT ( * ) - - + 80 FROM tab1 cor0 WHERE NULL = 32
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-3700
SELECT ALL - col1 DIV - - col1 + - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-3700
SELECT ALL - col1 / - - col1 + - col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-100
-11
-48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 42 * ( + col0 ) AND + 18
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT col2 * - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT ( NULL ) IN ( 50 + - - ( + - col1 ) )
----

skipif mysql # not compatible
query I rowsort label-3702
SELECT col2 * - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT ( NULL ) IN ( 50 + - - ( + - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3703
SELECT ( CAST( col0 AS SIGNED ) ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3703
SELECT ( CAST ( col0 AS INTEGER ) ) FROM tab0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3704
SELECT DISTINCT + 82 + + 70 + 97 DIV - + col2 AS col0 FROM tab1
----
151

skipif mysql # not compatible
query I rowsort label-3704
SELECT DISTINCT + 82 + + 70 + 97 / - + col2 AS col0 FROM tab1
----
151

query I rowsort
SELECT ALL + 88 + - + 34 FROM tab0
----
54
54
54

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE - 19 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT + + COUNT( * ) * COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3707
SELECT + + COUNT ( * ) * COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT - ( CAST( + 97 AS SIGNED ) ) col1 FROM tab0 AS cor0
----
-97
-97
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3708
SELECT - ( CAST ( + 97 AS INTEGER ) ) col1 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3709
SELECT - + 95 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-3709
SELECT - + 95 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 * + + col2 col0 FROM tab1
----
-4779
-5508
-7776

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT + MIN( ALL 24 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3711
SELECT + MIN ( ALL 24 ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-3712
SELECT ALL + COUNT( 53 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3712
SELECT ALL + COUNT ( 53 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3713
SELECT * FROM tab2 AS cor0 WHERE ( + + col2 <= + - col2 * CAST( ( + CAST( col1 AS SIGNED ) ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3713
SELECT * FROM tab2 AS cor0 WHERE ( + + col2 <= + - col2 * CAST ( ( + CAST ( col1 AS INTEGER ) ) AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) >= NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE 75 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + - col2 - - + 71 FROM tab1 AS cor0
----
-25
12
3

query I rowsort
SELECT col1 + - col2 * - + col2 + + col0 AS col0 FROM tab1 AS cor0
----
3571
4762
9281

query I rowsort
SELECT DISTINCT - 90 * + + col2 FROM tab0 AS cor0
----
-4230
-8910
-900

query I rowsort
SELECT ( + - 25 ) + col0 FROM tab0 AS cor0
----
-10
62
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT + + COUNT( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NULL <> col1
----
0

skipif mysql # not compatible
query I rowsort label-3720
SELECT + + COUNT ( DISTINCT col2 ) AS col1 FROM tab1 cor0 WHERE NULL <> col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( 28 ) col2 FROM tab1 AS cor0 WHERE ( NOT + col0 NOT IN ( - col0 * + ( - + col0 ) + - 7 ) )
----
NULL

query I rowsort
SELECT ALL + col2 * + + 69 + + + col1 - - - col1 FROM tab1
----
4071
4692
6624

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NOT col2 < - ( + col2 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT ALL + 49 + COUNT( DISTINCT + 50 ) * - 38 AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-3724
SELECT ALL + 49 + COUNT ( DISTINCT + 50 ) * - 38 AS col1 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-3725
SELECT - - COUNT( * ) FROM tab0 WHERE + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3725
SELECT - - COUNT ( * ) FROM tab0 WHERE + col2 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 + + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= ( + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3728
SELECT COUNT( * ), - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3728
SELECT COUNT ( * ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
3
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - ( - col1 ) ) col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + 9 * + - ( + col0 ) FROM tab0 AS cor0
----
-135
-783
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-3731
SELECT + MAX( col1 ) * - 50 AS col2 FROM tab0 AS cor0
----
-4050

skipif mysql # not compatible
query I rowsort label-3731
SELECT + MAX ( col1 ) * - 50 AS col2 FROM tab0 AS cor0
----
-4050

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col0 - ( - - col1 ) ) BETWEEN + 22 * - + col2 AND ( 51 )
----
85
5
59

query II rowsort
SELECT col2 * 84 AS col0, col2 FROM tab1
----
4956
59
5712
68
8064
96

onlyif mysql # DIV for integer division: 
query II rowsort label-3734
SELECT + ( col1 ) * 2 DIV + col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
1
75
2
46
2
64

skipif mysql # not compatible
query II rowsort label-3734
SELECT + ( col1 ) * 2 / + col0 AS col2, col0 AS col1 FROM tab2 AS cor0
----
1
75
2
46
2
64

query I rowsort
SELECT - col2 * + - ( - - col0 ) AS col2 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT - - col2 - - col0 AS col0 FROM tab0 AS cor0 WHERE NOT - 88 / 16 - + col1 NOT IN ( + col2, ( + col1 ) )
----

query I rowsort
SELECT ALL + 21 * col1 FROM tab1
----
105
294
987

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT ALL + + COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL < col0 + 99 - + - col0 + + 44
----
0

skipif mysql # not compatible
query I rowsort label-3738
SELECT ALL + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL < col0 + 99 - + - col0 + + 44
----
0

query I rowsort
SELECT 44 * 85 * + col1 FROM tab0
----
302940
3740
78540

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 col0 FROM tab2
----
51
51
51

query II rowsort
SELECT DISTINCT col0 AS col2, + 47 FROM tab0
----
15
47
87
47
97
47

query I rowsort
SELECT - - 18 + ( + ( + col2 ) ) FROM tab0 AS cor0 WHERE col0 BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT - ( - - col2 ) + - - col1 + - - col0 + 97 FROM tab0 AS cor0
----
146
195
96

query I rowsort
SELECT + - 82 / - - col0 + - 51 + + ( + 72 ) AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL <= - + 54 * + col1 * + 82 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3745
SELECT ALL + CAST( NULL AS SIGNED ) * - AVG ( col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3745
SELECT ALL + CAST ( NULL AS INTEGER ) * - AVG ( col1 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 <= - - 29 * + 83 + col1
----

query I rowsort
SELECT 16 + - col2 AS col0 FROM tab1 AS cor0
----
-43
-52
-80

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - col0 * + - col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + col0 / - 33 IS NULL
----

query I rowsort
SELECT ALL + + 22 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3751
SELECT col2, CAST( + 69 AS SIGNED ) col1 FROM tab1
----
59
69
68
69
96
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3751
SELECT col2, CAST ( + 69 AS INTEGER ) col1 FROM tab1
----
59
69
68
69
96
69

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col0 AND + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3753
SELECT 57 * - + COUNT( * ) * + 22 AS col1, + 65 FROM tab1 AS cor0 WHERE ( 72 ) BETWEEN ( NULL ) AND NULL
----
0
65

skipif mysql # not compatible
query II rowsort label-3753
SELECT 57 * - + COUNT ( * ) * + 22 AS col1, + 65 FROM tab1 AS cor0 WHERE ( 72 ) BETWEEN ( NULL ) AND NULL
----
0
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3754
SELECT - CAST( NULL AS SIGNED ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3754
SELECT - CAST ( NULL AS INTEGER ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 25 FROM tab1
----
-30
-39
-72

query I rowsort
SELECT DISTINCT col0 * + + 98 AS col2 FROM tab1
----
4998
8330
8918

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3757
SELECT - 84 DIV + - COUNT( * ) FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-3757
SELECT - 84 / + - COUNT ( * ) FROM tab0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-3758
SELECT - 97 * + COUNT( * ) FROM tab2
----
-291

skipif mysql # not compatible
query I rowsort label-3758
SELECT - 97 * + COUNT ( * ) FROM tab2
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT COUNT( * ) * - 52 * + 6 * - COUNT( * ) * 73 AS col0 FROM tab0
----
204984

skipif mysql # not compatible
query I rowsort label-3759
SELECT COUNT ( * ) * - 52 * + 6 * - COUNT ( * ) * 73 AS col0 FROM tab0
----
204984

query I rowsort
SELECT DISTINCT 94 FROM tab2 AS cor0 WHERE - col0 + 98 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 32 col0 FROM tab0 cor0
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT - ( COUNT( * ) ) * COUNT( * ) * COUNT( * ) + + + 30 AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3762
SELECT - ( COUNT ( * ) ) * COUNT ( * ) * COUNT ( * ) + + + 30 AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3763
SELECT ALL - CAST( - - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3763
SELECT ALL - CAST ( - - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query II rowsort
SELECT ALL col1 AS col2, + col0 + + 38 + col2 FROM tab2
----
51
107
67
171
77
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3765
SELECT - col0 + - - col0 FROM tab0 WHERE NOT col0 * - col2 IN ( - + CAST( NULL AS SIGNED ) - + + 80 )
----

skipif mysql # not compatible
query I rowsort label-3765
SELECT - col0 + - - col0 FROM tab0 WHERE NOT col0 * - col2 IN ( - + CAST ( NULL AS INTEGER ) - + + 80 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3766
SELECT ALL - 67 * COUNT( * ) AS col0 FROM tab0 cor0
----
-201

skipif mysql # not compatible
query I rowsort label-3766
SELECT ALL - 67 * COUNT ( * ) AS col0 FROM tab0 cor0
----
-201

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3767
SELECT DISTINCT MAX( + - 73 ) DIV - SUM( DISTINCT + ( + col2 ) ) * + 31 col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3767
SELECT DISTINCT MAX ( + - 73 ) / - SUM ( DISTINCT + ( + col2 ) ) * + 31 col0 FROM tab2 cor0
----
0

query I rowsort
SELECT - - col0 * + - col2 AS col0 FROM tab2 cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT + COUNT( - col1 ) + COUNT( - col2 ) + MIN( ALL + col1 ) FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-3769
SELECT + COUNT ( - col1 ) + COUNT ( - col2 ) + MIN ( ALL + col1 ) FROM tab1 AS cor0
----
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3770
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> 25 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL <> 25 + col2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3771
SELECT - col0 * - col2 * + - 90 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3771
SELECT - col0 * - col2 * + - 90 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - col0 + - col2 AS col2 FROM tab0
----
-2
1168
1817

query I rowsort
SELECT - 88 + - - 48 * - + col1 AS col1 FROM tab1
----
-2344
-328
-760

query I rowsort
SELECT + 37 + - col1 FROM tab2
----
-14
-30
-40

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + col0 IN ( + col1 * - ( - 50 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 37 + - 78 + 36 AS col0 FROM tab2
----
-79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 = + col2 * + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 94 * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT + MIN( DISTINCT + + col2 ) AS col1 FROM tab1 WHERE ( col0 * + - 77 * + + col2 / col2 IS NOT NULL )
----
59

skipif mysql # not compatible
query I rowsort label-3779
SELECT + MIN ( DISTINCT + + col2 ) AS col1 FROM tab1 WHERE ( col0 * + - 77 * + + col2 / col2 IS NOT NULL )
----
59

query III rowsort
SELECT * FROM tab0 WHERE col2 + - 58 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3781
SELECT + - col0 + + + col1 DIV - 60 AS col2 FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3781
SELECT + - col0 + + + col1 / - 60 AS col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3782
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + 89 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + 89 AS col1 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query I rowsort
SELECT - ( 78 ) * - col1 * + + col1 FROM tab2 AS cor0
----
202878
350142
462462

query II rowsort
SELECT + - 79 AS col0, 16 AS col0 FROM tab0 AS cor0
----
-79
16
-79
16
-79
16

query I rowsort
SELECT ALL + + col0 * - 14 * + - col0 AS col0 FROM tab1 AS cor0
----
101150
115934
36414

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 88 - - col0 * - 52 + - 26 * col0 BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= - 41
----

query I rowsort
SELECT ALL - 4 * - col0 FROM tab2
----
184
256
300

query I rowsort
SELECT - ( + col2 ) + + col0 AS col1 FROM tab1 WHERE NOT - col1 <> 30
----

query I rowsort
SELECT ALL col0 * 27 FROM tab1
----
1377
2295
2457

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT - 48 * + COUNT( - col1 ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-3792
SELECT - 48 * + COUNT ( - col1 ) FROM tab2
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT DISTINCT + col2 DIV - + col0 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
28
37
9

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT + col2 / - + col0 + + col1 + - col2 AS col0 FROM tab2 AS cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + + COUNT( ALL - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3794
SELECT + + COUNT ( ALL - ( + col0 ) ) AS col2 FROM tab2 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 17 * - col1 + - 84 / - col0 < - col0 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3796
SELECT DISTINCT * FROM tab0 WHERE + col1 + - 88 < + CAST( + col1 AS SIGNED ) * - ( ( col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3796
SELECT DISTINCT * FROM tab0 WHERE + col1 + - 88 < + CAST ( + col1 AS INTEGER ) * - ( ( col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3797
SELECT + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 48 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 10 FROM tab2 AS cor0 WHERE 67 + - + col1 < - col0
----

query II rowsort
SELECT - col0 * - col2 AS col0, - ( col2 ) AS col1 FROM tab2 AS cor0
----
1058
-23
2560
-40
4350
-58

query I rowsort
SELECT + + 57 * 25 AS col1 FROM tab2 AS cor0
----
1425
1425
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3802
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT - col0 AS col0, 73 FROM tab2 WHERE ( NOT NULL <> NULL )
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 47 <= - + col0 * - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, 28 FROM tab0
----
15
28
87
28
97
28

query I rowsort
SELECT ALL + 76 + + 69 AS col0 FROM tab2
----
145
145
145

query I rowsort
SELECT ALL - 71 + - 26 AS col2 FROM tab1
----
-97
-97
-97

query I rowsort
SELECT ALL + 38 - - 68 FROM tab0
----
106
106
106

query I rowsort
SELECT ALL 0 + 86 AS col0 FROM tab1
----
86
86
86

query I rowsort
SELECT ( - 38 ) + - col0 FROM tab2
----
-102
-113
-84

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT ALL + col2 + + + col2 DIV - col1 + col0 FROM tab0
----
62
97
97

skipif mysql # not compatible
query I rowsort label-3812
SELECT ALL + col2 + + + col2 / - col1 + col0 FROM tab0
----
62
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT - MIN( DISTINCT col1 ) + 43 AS col1 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3813
SELECT - MIN ( DISTINCT col1 ) + 43 AS col1 FROM tab0
----
42

query I rowsort
SELECT 36 + - - col2 AS col0 FROM tab2
----
59
76
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3815
SELECT DISTINCT - 55 * - COUNT( * ) - 66 AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3815
SELECT DISTINCT - 55 * - COUNT ( * ) - 66 AS col2 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3816
SELECT CAST( NULL AS SIGNED ) * - col2 * 64 / ( + + col1 ) * - - col0 + + 45 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3816
SELECT CAST ( NULL AS INTEGER ) * - col2 * 64 / ( + + col1 ) * - - col0 + + 45 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) > ( + col1 / - col1 )
----

query I rowsort
SELECT + col1 + 68 AS col1 FROM tab2 AS cor0
----
119
135
145

onlyif mysql # aggregate syntax: 
query I rowsort label-3819
SELECT DISTINCT - 81 + - COUNT( * ) FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3819
SELECT DISTINCT - 81 + - COUNT ( * ) FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT + + 51 * - 69 + - - COUNT( + 19 ) + 50 * + MIN( + 34 ) AS col2 FROM tab0 AS cor0
----
-1816

skipif mysql # not compatible
query I rowsort label-3820
SELECT + + 51 * - 69 + - - COUNT ( + 19 ) + 50 * + MIN ( + 34 ) AS col2 FROM tab0 AS cor0
----
-1816

onlyif mysql # aggregate syntax: 
query I rowsort label-3821
SELECT - 19 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3821
SELECT - 19 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-57

query II rowsort
SELECT ALL + 44 AS col2, col0 FROM tab1 AS cor0
----
44
51
44
85
44
91

query I rowsort
SELECT 81 * - 83 AS col2 FROM tab0
----
-6723
-6723
-6723

query I rowsort
SELECT ALL - - 99 AS col2 FROM tab0 cor0
----
99
99
99

query I rowsort
SELECT ALL + col0 * col0 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) IN ( col1, + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 84 > ( - - col1 / + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 86 + - col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3828
SELECT + CAST( - MIN( ALL + col2 ) AS SIGNED ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3828
SELECT + CAST ( - MIN ( ALL + col2 ) AS INTEGER ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT ALL - + 17 FROM tab0 AS cor0 WHERE + 34 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 83 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3831
SELECT - col0 * 0 DIV - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3831
SELECT - col0 * 0 / - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3832
SELECT COUNT( * ) AS col2 FROM tab1 WHERE NOT + 26 * + col1 <> - col1 + col0 * + + 50 / + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3832
SELECT COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 26 * + col1 <> - col1 + col0 * + + 50 / + CAST ( NULL AS INTEGER )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3833
SELECT 19 / + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT 19 / + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT - MAX( DISTINCT + 47 ) FROM tab2 WHERE NOT col2 / col2 + + col1 * + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3834
SELECT - MAX ( DISTINCT + 47 ) FROM tab2 WHERE NOT col2 / col2 + + col1 * + col1 IS NOT NULL
----
NULL

query II rowsort
SELECT - col2 AS col0, + ( ( - col0 ) ) FROM tab1
----
-59
-85
-68
-91
-96
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-3836
SELECT ALL col2 DIV - col0 * + 58 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3836
SELECT ALL col2 / - col0 * + 58 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT DISTINCT - MIN( DISTINCT - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-3837
SELECT DISTINCT - MIN ( DISTINCT - col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT DISTINCT + 3 AS col2 FROM tab1 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 38 col1, + col0 FROM tab0 AS cor0
----
-38
15
-38
87
-38
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 89, - col2 * - col2 col2 FROM tab1 AS cor0
----
-89
3481
-89
4624
-89
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
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-3841
SELECT MIN ( DISTINCT col0 ) col0 FROM tab0
----
15

query I rowsort
SELECT - + 89 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT ALL col2 * - 80 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
-3713
-7821
-790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3844
SELECT CAST( NULL AS SIGNED ) + - ( 97 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3844
SELECT CAST ( NULL AS INTEGER ) + - ( 97 ) AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 56 + + 35 - + col0 FROM tab2 AS cor0
----
16
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT - + COUNT( * ) + + + COUNT( * ) * 29 AS col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-3846
SELECT - + COUNT ( * ) + + + COUNT ( * ) * 29 AS col2 FROM tab1 AS cor0
----
84

query I rowsort
SELECT DISTINCT - - 47 * - 10 AS col1 FROM tab2 AS cor0
----
-470

query I rowsort
SELECT + col2 + - + col1 * - 76 FROM tab2 AS cor0
----
3899
5150
5892

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * ( col2 ) * - + col2 col1 FROM tab1
----
129024
17405
217328

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col2 + col0 col0 FROM tab2
----
-1536
-3289
-483

onlyif mysql # aggregate syntax: 
query II rowsort label-3851
SELECT DISTINCT + COUNT( * ) + + - MAX( ALL - + 1 ) AS col2, + 82 AS col2 FROM tab0
----
4
82

skipif mysql # not compatible
query II rowsort label-3851
SELECT DISTINCT + COUNT ( * ) + + - MAX ( ALL - + 1 ) AS col2, + 82 AS col2 FROM tab0
----
4
82

query III rowsort
SELECT * FROM tab0 WHERE - col0 - col0 / 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3853
SELECT - COUNT( ALL - col2 ) AS col1 FROM tab0 WHERE 38 + + + col1 - + - col0 + col2 NOT IN ( + 64, col0 * - ( 9 ) )
----
-3

skipif mysql # not compatible
query I rowsort label-3853
SELECT - COUNT ( ALL - col2 ) AS col1 FROM tab0 WHERE 38 + + + col1 - + - col0 + col2 NOT IN ( + 64, col0 * - ( 9 ) )
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT + MAX( DISTINCT + - col1 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3854
SELECT + MAX ( DISTINCT + - col1 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT col2 + + - 13, col1 * - col1 + 39 * - ( - ( - + col0 ) ) + + 60 AS col0 FROM tab1
----
46
-3280
55
-5698
83
-2125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3856
SELECT + MIN( + CAST( + 0 AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3856
SELECT + MIN ( + CAST ( + 0 AS INTEGER ) ) AS col0 FROM tab0
----
0

query I rowsort
SELECT ALL 97 - + col2 * + 71 - + + col1 AS col1 FROM tab2 AS cor0
----
-1587
-2820
-4088

query I rowsort
SELECT - col1 - + + col0 AS col0 FROM tab1 cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3859
SELECT + - CAST( NULL AS SIGNED ) - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3859
SELECT + - CAST ( NULL AS INTEGER ) - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3860
SELECT - - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-3860
SELECT - - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 + - + 73 > NULL
----

query II rowsort
SELECT + col2 AS col1, + col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query II rowsort
SELECT + + col1, 99 FROM tab0 AS cor0
----
1
99
21
99
81
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3864
SELECT CAST( + AVG ( DISTINCT - - col2 ) AS SIGNED ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3864
SELECT CAST ( + AVG ( DISTINCT - - col2 ) AS INTEGER ) FROM tab1 AS cor0
----
74

query II rowsort
SELECT DISTINCT - - col0 AS col2, 87 FROM tab1 AS cor0
----
51
87
85
87
91
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3866
SELECT DISTINCT + - COUNT( - 23 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3866
SELECT DISTINCT + - COUNT ( - 23 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT 76, + 75 AS col0 FROM tab2 AS cor0
----
76
75
76
75
76
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT ALL MIN( - 0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3868
SELECT ALL MIN ( - 0 ) FROM tab1 cor0
----
0

query I rowsort
SELECT + ( - ( - col1 ) ) FROM tab1 WHERE NOT + + col0 IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 32 ) / + col2 <= - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT DISTINCT COUNT( * ) col1 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3871
SELECT DISTINCT COUNT ( * ) col1 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT SUM( DISTINCT + - col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT SUM ( DISTINCT + - col2 ) AS col2 FROM tab2 AS cor0
----
-121

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <> - + col2 * + col2
----

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE col1 IS NULL
----

query I rowsort
SELECT 24 * - col0 * - - col2 + - + 64 FROM tab0
----
-16984
-20944
-230536

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT ALL MAX( + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3876
SELECT ALL MAX ( + ( col0 ) ) AS col1 FROM tab0 AS cor0
----
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3877
SELECT - COUNT( * ) * - CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3877
SELECT - COUNT ( * ) * - CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 38 * - col0 FROM tab2 cor0
----
-1748
-2432
-2850

query I rowsort
SELECT ALL + col0 * 75 FROM tab2 AS cor0
----
3450
4800
5625

query I rowsort
SELECT - col0 * + 3 + 37 + - 47 + + + ( - col1 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3881
SELECT ALL - + MIN( DISTINCT - col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3881
SELECT ALL - + MIN ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
141

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + 5 <= col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 92 + - col0 * col1 + ( + col2 ) * col0 - - col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3884
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IN ( 32 * + col1 / - - col0, 88 * + col0, + 37 )
----

skipif mysql # not compatible
query III rowsort label-3884
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IN ( 32 * + col1 / - - col0, 88 * + col0, + 37 )
----

query I rowsort
SELECT - col0 FROM tab0 WHERE + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3886
SELECT DISTINCT col2 DIV col2 * + 72 AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-3886
SELECT DISTINCT col2 / col2 * + 72 AS col0 FROM tab2
----
72

query I rowsort
SELECT ALL + col1 * 97 * - - col1 + - - col0 FROM tab0
----
194
42864
636432

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3888
SELECT - col0 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT - col0 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3889
SELECT DISTINCT 93 + - COUNT( * ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-3889
SELECT DISTINCT 93 + - COUNT ( * ) AS col0 FROM tab0
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3890
SELECT COUNT( * ) + - + COUNT( + col2 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3890
SELECT COUNT ( * ) + - + COUNT ( + col2 ) FROM tab0
----
0

query II rowsort
SELECT DISTINCT - ( - col2 ) AS col1, + 30 * 5 AS col0 FROM tab0 AS cor0
----
10
150
47
150
99
150

onlyif mysql # aggregate syntax: 
query I rowsort label-3892
SELECT - COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = 43
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3892
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL = 43
----
0

query I rowsort
SELECT DISTINCT - 47 FROM tab0, tab0 cor0
----
-47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 92 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3895
SELECT ALL + col1 DIV 33 + ( - col0 ) FROM tab0 cor0
----
-13
-87
-97

skipif mysql # not compatible
query I rowsort label-3895
SELECT ALL + col1 / 33 + ( - col0 ) FROM tab0 cor0
----
-13
-87
-97

query I rowsort
SELECT - ( col2 ) * - ( - 96 ) * - - col0 FROM tab2
----
-101568
-245760
-417600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col0 FROM tab2
----
-46
46
-64
64
-75
75

query II rowsort
SELECT ALL col0 * - ( + - col1 ) AS col1, col0 AS col0 FROM tab2
----
2346
46
4928
64
5025
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3899
SELECT + 20 DIV - + COUNT( * ) + + - 69, 1 AS col0 FROM tab1
----
-75
1

skipif mysql # not compatible
query II rowsort label-3899
SELECT + 20 / - + COUNT ( * ) + + - 69, 1 AS col0 FROM tab1
----
-75
1

query I rowsort
SELECT ALL - col1 + - 77 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT - MIN( ALL + + 23 ) * MIN( ALL + col1 ) AS col1 FROM tab0
----
-23

skipif mysql # not compatible
query I rowsort label-3901
SELECT - MIN ( ALL + + 23 ) * MIN ( ALL + col1 ) AS col1 FROM tab0
----
-23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 76 / - - 19 <> 87
----

query I rowsort
SELECT - ( - - col0 ) AS col0 FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT DISTINCT col1 * col0 + + ( 3 ) FROM tab0
----
100
1218
1830

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE ( - + 73 ) + - + col2 * - col2 > - - col0
----
-15
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL 70 + COUNT( * ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL 70 + COUNT ( * ) FROM tab2
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3907
SELECT - col1 + + 77, 59 * + 73 + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
4243
10
4232
26
4261

skipif mysql # not compatible
query II rowsort label-3907
SELECT - col1 + + 77, 59 * + 73 + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
4243
10
4232
26
4261

query II rowsort
SELECT + col1 * - col1 AS col0, - col0 * + 22 FROM tab0 cor0
----
-1
-2134
-441
-1914
-6561
-330

query I rowsort
SELECT DISTINCT + col1 - - col2 + col2 FROM tab2
----
157
183
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3910
SELECT DISTINCT + ( - MIN( + col2 ) ) AS col0, - COUNT( - col2 ) AS col2 FROM tab0 AS cor0
----
-10
-3

skipif mysql # not compatible
query II rowsort label-3910
SELECT DISTINCT + ( - MIN ( + col2 ) ) AS col0, - COUNT ( - col2 ) AS col2 FROM tab0 AS cor0
----
-10
-3

query II rowsort
SELECT DISTINCT + + col0 AS col2, 7 + + ( + + 9 ) FROM tab2 AS cor0
----
46
16
64
16
75
16

query I rowsort
SELECT DISTINCT - 4 * - + col0 FROM tab0
----
348
388
60

query II rowsort
SELECT 19 AS col2, 41 AS col2 FROM tab0
----
19
41
19
41
19
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3914
SELECT + - col1 DIV + 98 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3914
SELECT + - col1 / + 98 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3915
SELECT DISTINCT 12 DIV - + col2 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3915
SELECT DISTINCT 12 / - + col2 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3916
SELECT ALL - col1 DIV - 61 AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3916
SELECT ALL - col1 / - 61 AS col1 FROM tab2 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT DISTINCT + + 48 + + - 3 - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
42

skipif mysql # not compatible
query I rowsort label-3917
SELECT DISTINCT + + 48 + + - 3 - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
42

query II rowsort
SELECT ALL col2 AS col1, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query II rowsort
SELECT ALL - col1, 40 AS col2 FROM tab2 AS cor0
----
-51
40
-67
40
-77
40

query I rowsort
SELECT DISTINCT + + 64 + col0 FROM tab2 AS cor0
----
110
128
139

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3921
SELECT - MIN( + 2 ) * - MIN( - CAST( - col0 AS SIGNED ) ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3921
SELECT - MIN ( + 2 ) * - MIN ( - CAST ( - col0 AS INTEGER ) ) FROM tab2
----
92

query I rowsort
SELECT ALL col0 + + - col1 AS col1 FROM tab0
----
-66
66
96

query I rowsort
SELECT - 94 * + + col0 FROM tab0
----
-1410
-8178
-9118

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 * ( + + col0 ) col1, col0 * + col1 + + + ( - 49 ) FROM tab1
----
425
376
4277
4228
714
665

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3925
SELECT DISTINCT - + col1 / - col2, col2 / - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT 25 NOT BETWEEN + - ( + 88 ) * + 44 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3925
SELECT DISTINCT - + col1 / - col2, col2 / - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT 25 NOT BETWEEN + - ( + 88 ) * + 44 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 cor0 WHERE NOT + col0 + + col1 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3927
SELECT - col0 + - CAST( + col2 AS SIGNED ) + - ( + + col1 ) + + + col1 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-3927
SELECT - col0 + - CAST ( + col2 AS INTEGER ) + - ( + + col1 ) + + + col1 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query II rowsort
SELECT 87 + + + col2 + 83, + 47 * - + col2 AS col0 FROM tab2 AS cor0
----
193
-1081
210
-1880
228
-2726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3929
SELECT ALL - CAST( + + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3929
SELECT ALL - CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + 92 * col1 * - col1 + col1 - + 37 + - col2 AS col2 FROM tab0
----
-227
-40598
-603615

query I rowsort
SELECT ALL - 76 + col0 FROM tab0
----
-61
11
21

query II rowsort
SELECT ALL + + col1 AS col1, + 9 FROM tab1 AS cor0
----
14
9
47
9
5
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3933
SELECT DISTINCT + 59 AS col2 FROM tab2 AS cor0 WHERE - col2 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3933
SELECT DISTINCT + 59 AS col2 FROM tab2 AS cor0 WHERE - col2 <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - - col0 - - - col2 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 > - + 28
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 65 + - - 4 AS col2 FROM tab0
----
69
69
69

query I rowsort
SELECT col0 + + 80 AS col2 FROM tab1
----
131
165
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT MAX( - col0 ) + 75 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-3938
SELECT MAX ( - col0 ) + 75 FROM tab0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT MAX( DISTINCT - col0 ) + + 3 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-3939
SELECT MAX ( DISTINCT - col0 ) + + 3 FROM tab1
----
-48

query II rowsort
SELECT DISTINCT col0 + + + ( + + 52 ) + + - ( + col1 ), + col2 FROM tab2
----
39
40
47
23
60
58

query I rowsort
SELECT ALL + col0 * - + 60 FROM tab2
----
-2760
-3840
-4500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - 47 col0 FROM tab1
----
-2773
-3196
-4512

query I rowsort
SELECT DISTINCT + col0 * 57 FROM tab1
----
2907
4845
5187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3944
SELECT - CAST( + + 15 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-15
-15
-15

skipif mysql # not compatible
query I rowsort label-3944
SELECT - CAST ( + + 15 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT ALL ( + 50 ) * + col2 AS col0 FROM tab2
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-3946
SELECT ALL - MIN( ALL - - col1 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3946
SELECT ALL - MIN ( ALL - - col1 ) FROM tab2
----
-51

query I rowsort
SELECT 55 * 41 AS col1 FROM tab0
----
2255
2255
2255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3948
SELECT DISTINCT 99 * + + COUNT( + ( + CAST( NULL AS SIGNED ) ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3948
SELECT DISTINCT 99 * + + COUNT ( + ( + CAST ( NULL AS INTEGER ) ) ) col0 FROM tab1
----
0

query I rowsort
SELECT + ( 97 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

query I rowsort
SELECT DISTINCT - + 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3951
SELECT - MIN( - - 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-3951
SELECT - MIN ( - - 11 ) AS col1 FROM tab0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3952
SELECT ALL - 47 - + COUNT( * ) - + - 57 FROM tab1 AS cor0 WHERE NOT 53 * - col0 IN ( - col2 )
----
7

skipif mysql # not compatible
query I rowsort label-3952
SELECT ALL - 47 - + COUNT ( * ) - + - 57 FROM tab1 AS cor0 WHERE NOT 53 * - col0 IN ( - col2 )
----
7

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3954
SELECT + - col2 - col2 AS col2 FROM tab0 cor0 WHERE NOT col2 = - + 93 * - ( - 22 ) - + col0 - - 25 + - - CAST( NULL AS SIGNED ) + ( col0 )
----

skipif mysql # not compatible
query I rowsort label-3954
SELECT + - col2 - col2 AS col2 FROM tab0 cor0 WHERE NOT col2 = - + 93 * - ( - 22 ) - + col0 - - 25 + - - CAST ( NULL AS INTEGER ) + ( col0 )
----

query II rowsort
SELECT - 86, col0 AS col0 FROM tab0 AS cor0
----
-86
15
-86
87
-86
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3956
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE + col1 + 67 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3956
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE + col1 + 67 IS NULL
----
0

query I rowsort
SELECT 91 * - col2 + col2 AS col2 FROM tab1
----
-5310
-6120
-8640

query I rowsort
SELECT DISTINCT 72 + - col2 AS col2 FROM tab1
----
-24
13
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT ALL 90 + COUNT( * ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-3959
SELECT ALL 90 + COUNT ( * ) FROM tab1
----
93

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + - col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3961
SELECT COUNT( * ) * MIN( ALL - col0 ) DIV - 85 col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3961
SELECT COUNT ( * ) * MIN ( ALL - col0 ) / - 85 col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3962
SELECT DISTINCT - 10 + - - CAST( + + col0 AS SIGNED ) col1 FROM tab2 AS cor0
----
36
54
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3962
SELECT DISTINCT - 10 + - - CAST ( + + col0 AS INTEGER ) col1 FROM tab2 AS cor0
----
36
54
65

query II rowsort
SELECT ALL - col2 AS col0, + col2 AS col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3964
SELECT + COUNT( - col0 ) - + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3964
SELECT + COUNT ( - col0 ) - + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3965
SELECT DISTINCT - COUNT( * ) * - - COUNT( * ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3965
SELECT DISTINCT - COUNT ( * ) * - - COUNT ( * ) AS col0 FROM tab0
----
-9

query I rowsort
SELECT ALL col0 * - + col1 + - ( 27 ) FROM tab0
----
-124
-1242
-1854

query I rowsort
SELECT ALL + + 69 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

query I rowsort
SELECT - 62 + + col1 FROM tab2
----
-11
15
5

query I rowsort
SELECT DISTINCT ( + - 0 ) - + col0 * + 57 AS col2 FROM tab1
----
-2907
-4845
-5187

query I rowsort
SELECT col2 * - 21 * - + col2 + col1 + - col1 + - 18 + col2 + 60 * + col1 FROM tab1 cor0
----
194454
73442
99974

query II rowsort
SELECT DISTINCT + + col0 + + 98 AS col1, 47 * 39 AS col2 FROM tab1 cor0
----
149
1833
183
1833
189
1833

onlyif mysql # aggregate syntax: 
query II rowsort label-3972
SELECT + + 60 + - - COUNT( * ) AS col0, - 29 AS col0 FROM tab0 AS cor0
----
63
-29

skipif mysql # not compatible
query II rowsort label-3972
SELECT + + 60 + - - COUNT ( * ) AS col0, - 29 AS col0 FROM tab0 AS cor0
----
63
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3973
SELECT ALL + COUNT( * ) - + 36 AS col2 FROM tab2 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-3973
SELECT ALL + COUNT ( * ) - + 36 AS col2 FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT + COUNT( * ) + + + MIN( DISTINCT - 55 ) FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3974
SELECT + COUNT ( * ) + + + MIN ( DISTINCT - 55 ) FROM tab0 AS cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-3975
SELECT + col2 DIV + + col0 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3975
SELECT + col2 / + + col0 FROM tab0 cor0
----
0
1
3

query I rowsort
SELECT ALL 57 - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-30
-40
42

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3977
SELECT + CAST( SUM( DISTINCT + - 94 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-3977
SELECT + CAST ( SUM ( DISTINCT + - 94 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT col0 * 54 FROM tab2 WHERE NOT - col0 * 3 + - col1 IS NULL
----
2484
3456
4050

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT + COUNT( * ) * 35 FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3979
SELECT + COUNT ( * ) * 35 FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT DISTINCT 81 * + 12 * - SUM( + col0 ) FROM tab0
----
-193428

skipif mysql # not compatible
query I rowsort label-3980
SELECT DISTINCT 81 * + 12 * - SUM ( + col0 ) FROM tab0
----
-193428

query II rowsort
SELECT col1 AS col2, - col2 + - col2 AS col0 FROM tab1
----
14
-192
47
-136
5
-118

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 BETWEEN ( NULL ) AND 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT ALL MAX( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE - ( - 78 ) + - ( 41 ) NOT BETWEEN + ( + col1 ) AND NULL
----
91

skipif mysql # not compatible
query I rowsort label-3983
SELECT ALL MAX ( DISTINCT + col0 ) FROM tab1 AS cor0 WHERE - ( - 78 ) + - ( 41 ) NOT BETWEEN + ( + col1 ) AND NULL
----
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3984
SELECT ALL + col1 col0, - col2 FROM tab1 AS cor0 WHERE + 86 <> - + CAST( NULL AS DECIMAL ) * + + ( + 33 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3984
SELECT ALL + col1 col0, - col2 FROM tab1 AS cor0 WHERE + 86 <> - + CAST ( NULL AS REAL ) * + + ( + 33 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT - col1 * + + CAST( + col2 AS SIGNED ) * - ( ( + col0 ) ) AS col0 FROM tab2
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-3985
SELECT - col1 * + + CAST ( + col2 AS INTEGER ) * - ( ( + col0 ) ) AS col0 FROM tab2
----
197120
291450
53958

query I rowsort
SELECT DISTINCT - col2 * - - 35 * + col2 AS col1 FROM tab0
----
-343035
-3500
-77315

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3987
SELECT CAST( NULL AS SIGNED ) / - - col0 + 0 * + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3987
SELECT CAST ( NULL AS INTEGER ) / - - col0 + 0 * + + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3988
SELECT + ( + - col0 ) DIV + - col1 col2 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3988
SELECT + ( + - col0 ) / + - col1 col2 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3989
SELECT DISTINCT + + 97 * - CAST( - - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-4947
-8245
-8827

skipif mysql # not compatible
query I rowsort label-3989
SELECT DISTINCT + + 97 * - CAST ( - - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-4947
-8245
-8827

query I rowsort
SELECT DISTINCT + - 52 FROM tab1 cor0 WHERE NOT + col2 + + col1 >= + col1 + - col2 - + 4
----

query II rowsort
SELECT ALL - col1 + col2 - 24 * + col1, col1 - 87 AS col1 FROM tab0 AS cor0
----
-1978
-6
-515
-66
74
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3992
SELECT DISTINCT + 74 + - + 37 * + 48 * COUNT( * ) FROM tab2 cor0
----
-5254

skipif mysql # not compatible
query I rowsort label-3992
SELECT DISTINCT + 74 + - + 37 * + 48 * COUNT ( * ) FROM tab2 cor0
----
-5254

query I rowsort
SELECT DISTINCT 0 * - - col0 AS col1 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3994
SELECT DISTINCT col2 + - ( - col2 ) DIV + 90 AS col2 FROM tab0
----
10
100
47

skipif mysql # not compatible
query I rowsort label-3994
SELECT DISTINCT col2 + - ( - col2 ) / + 90 AS col2 FROM tab0
----
10
100
47

query II rowsort
SELECT col1 AS col2, col0 * - col2 * + 11 FROM tab1
----
14
-53856
47
-68068
5
-55165

query I rowsort
SELECT DISTINCT + col0 + - 69 + col1 + + col2 * - 51 + - col0 AS col1 FROM tab0
----
-2385
-5117
-558

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3997
SELECT - CAST( NULL AS SIGNED ) AS col1, - col1 FROM tab1 WHERE NULL IS NULL
----
NULL
-14
NULL
-47
NULL
-5

skipif mysql # not compatible
query II rowsort label-3997
SELECT - CAST ( NULL AS INTEGER ) AS col1, - col1 FROM tab1 WHERE NULL IS NULL
----
NULL
-14
NULL
-47
NULL
-5

query II rowsort
SELECT col1 * + ( - col2 ), col0 AS col2 FROM tab2
----
-1173
46
-3080
64
-3886
75

query II rowsort
SELECT DISTINCT - 12, + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 + col0 + 68 + - 66 * + + col1 FROM tab0
----
-1210
-5182
100

query I rowsort
SELECT ALL - col1 * + 86 + + col2 FROM tab2
----
-4363
-5704
-6582

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4002
SELECT - 17 + - COUNT( col2 ) FROM tab0 AS cor0 WHERE CAST( + col2 AS SIGNED ) * + 50 IS NOT NULL
----
-20

skipif mysql # not compatible
query I rowsort label-4002
SELECT - 17 + - COUNT ( col2 ) FROM tab0 AS cor0 WHERE CAST ( + col2 AS INTEGER ) * + 50 IS NOT NULL
----
-20

query I rowsort
SELECT - - 77 + + 65 * + col0 AS col0 FROM tab2 AS cor0
----
3067
4237
4952

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) > + 57
----
0

skipif mysql # not compatible
query I rowsort label-4004
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) > + 57
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE - 24 / col0 / + col1 > + col0 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 - 54 FROM tab2
----
-14
-31
4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4007
SELECT DISTINCT + col0 + - CAST( NULL AS DECIMAL ) + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4007
SELECT DISTINCT + col0 + - CAST ( NULL AS REAL ) + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + - MIN( + + col2 ) AS col0 FROM tab0 AS cor0 WHERE col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + - MIN ( + + col2 ) AS col0 FROM tab0 AS cor0 WHERE col2 > NULL
----
NULL

query I rowsort
SELECT ALL 24 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL + - 12 * - col2 AS col2 FROM tab0 cor0
----
1188
120
564

onlyif mysql # DIV for integer division: 
query I rowsort label-4011
SELECT ALL - 19 DIV col2 * - col0 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4011
SELECT ALL - 19 / col2 * - col0 FROM tab2 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4012
SELECT + ( + + MIN( col2 ) ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4012
SELECT + ( + + MIN ( col2 ) ) AS col2 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT + col1 * CAST( col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-4013
SELECT + col1 * CAST ( col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
1
441
6561

query I rowsort
SELECT col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT ALL - + COUNT( 62 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4015
SELECT ALL - + COUNT ( 62 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4016
SELECT COUNT( * ) / - + SUM( + CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4016
SELECT COUNT ( * ) / - + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4017
SELECT - 19 DIV + + ( 27 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4017
SELECT - 19 / + + ( 27 ) FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT ALL CAST( 36 AS SIGNED ) FROM tab1
----
36
36
36

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL CAST ( 36 AS INTEGER ) FROM tab1
----
36
36
36

query I rowsort
SELECT DISTINCT - + 45 + + 17 + + + col0 * - col1 FROM tab0 WHERE NOT + col0 + - + col2 IS NULL
----
-1243
-125
-1855

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT ALL + MIN( ALL - 11 ) AS col1 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-4020
SELECT ALL + MIN ( ALL - 11 ) AS col1 FROM tab0
----
-11

query I rowsort
SELECT - + 96 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col0 * - col2 - + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col0 + + + 75 * - col1
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col1 / col0 = NULL
----

query I rowsort
SELECT - 22 FROM tab2 WHERE NOT - + 95 IS NULL
----
-22
-22
-22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 36 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 77, + 91 AS col0 FROM tab1
----
77
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - col1 * 51 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4028
SELECT + - 75 + - COUNT( * ) FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-4028
SELECT + - 75 + - COUNT ( * ) FROM tab2 AS cor0
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-4029
SELECT ALL MAX( ALL col0 ) * - - 16 AS col0 FROM tab1 AS cor0
----
1456

skipif mysql # not compatible
query I rowsort label-4029
SELECT ALL MAX ( ALL col0 ) * - - 16 AS col0 FROM tab1 AS cor0
----
1456

query I rowsort
SELECT ALL + 56 * + + col0 - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
11284
7752
9775

query I rowsort
SELECT - - col2 + + col1 - - 43 + col0 AS col1 FROM tab1 AS cor0
----
192
204
249

query I rowsort
SELECT + ( 29 ) * - - col0 + - - col0 + + col0 AS col0 FROM tab1 AS cor0
----
1581
2635
2821

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4033
SELECT COUNT( * ) DIV - + COUNT( * ) + + 62 AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-4033
SELECT COUNT ( * ) / - + COUNT ( * ) + + 62 AS col1 FROM tab2
----
61

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * col0 NOT IN ( - 96, col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 * - + 46 * col2 + - - col0 AS col2 FROM tab0
----
-175107
-4457
-9573

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4036
SELECT DISTINCT - CAST( - 87 AS SIGNED ) AS col2 FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT - CAST ( - 87 AS INTEGER ) AS col2 FROM tab0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4037
SELECT ALL + col0 DIV + 42 + - - col0 FROM tab1
----
52
87
93

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL + col0 / + 42 + - - col0 FROM tab1
----
52
87
93

query I rowsort
SELECT ALL - + 3 + - - 82 AS col2 FROM tab2 WHERE NULL IS NULL
----
79
79
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4039
SELECT + COUNT( - col0 ) col0 FROM tab2 WHERE NULL < - + col0 + - + 62
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4039
SELECT + COUNT ( - col0 ) col0 FROM tab2 WHERE NULL < - + col0 + - + 62
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT DISTINCT ( ( - 81 ) ) * + COUNT( DISTINCT - + ( 85 ) ) FROM tab1 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4040
SELECT DISTINCT ( ( - 81 ) ) * + COUNT ( DISTINCT - + ( 85 ) ) FROM tab1 cor0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col0 FROM tab1 AS cor0 WHERE col2 * - col0 + 57 IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 66 < - 92
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4043
SELECT 0 - + 36, COUNT( * ) * 3 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-36
27

skipif mysql # not compatible
query II rowsort label-4043
SELECT 0 - + 36, COUNT ( * ) * 3 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-36
27

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT ALL - + col2 DIV - - col2 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL - + col2 / - - col2 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4045
SELECT ALL * FROM tab0 WHERE NOT NULL > + CAST( + - 36 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4045
SELECT ALL * FROM tab0 WHERE NOT NULL > + CAST ( + - 36 AS INTEGER )
----

query I rowsort
SELECT ALL + 18 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col1 * + col0 / + + 41 BETWEEN - col0 * + - col1 AND 6 / 30 - + col1 / + col2 * - col1 - + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 26 * 65 FROM tab2 AS cor0
----
-1690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4049
SELECT ALL col1 / - CAST( NULL AS SIGNED ) / - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4049
SELECT ALL col1 / - CAST ( NULL AS INTEGER ) / - 37 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * - + 27 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT DISTINCT - - COUNT( * ) DIV 76 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT - - COUNT ( * ) / 76 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT ALL 54, col0 AS col0 FROM tab1 cor0 WHERE + - 51 IS NULL OR NOT NULL IS NOT NULL AND ( NULL BETWEEN + ( + - col2 ) AND - - 43 + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4053
SELECT - CAST( NULL AS SIGNED ) * col0 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4053
SELECT - CAST ( NULL AS INTEGER ) * col0 / + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT DISTINCT SUM( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4055
SELECT DISTINCT SUM ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - + 15 ) col2 FROM tab0
----
-15

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IS NOT NULL AND - - col0 * - + col2 / + col1 + + + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 * - col0 FROM tab0
----
15
-225
87
-7569
97
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4059
SELECT DISTINCT - SUM( CAST( + + 43 AS SIGNED ) ) AS col2 FROM tab2
----
-129

skipif mysql # not compatible
query I rowsort label-4059
SELECT DISTINCT - SUM ( CAST ( + + 43 AS INTEGER ) ) AS col2 FROM tab2
----
-129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col2, - col0 AS col1 FROM tab2
----
51
-46
67
-75
77
-64

query I rowsort
SELECT ( + + 95 ) FROM tab2
----
95
95
95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - - 1 ) + - + col1 * 52 col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 40 IS NULL
----

query I rowsort
SELECT + 29 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

onlyif mysql # aggregate syntax: 
query I rowsort label-4065
SELECT - MAX( DISTINCT + + col0 ) col0 FROM tab1 cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4065
SELECT - MAX ( DISTINCT + + col0 ) col0 FROM tab1 cor0
----
-91

query I rowsort
SELECT ALL - 78 * 34 AS col0 FROM tab0 AS cor0
----
-2652
-2652
-2652

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN + 46 * - ( - + col0 ) AND - col2
----

query II rowsort
SELECT ALL 97 + + - 4, 74 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4069
SELECT col2 * 63 + - ( 40 ) AS col2, - CAST( NULL AS DECIMAL ) * + col0 * - col2 * - - col0 / - + col1 AS col1 FROM tab0
----
2921
NULL
590
NULL
6197
NULL

skipif mysql # not compatible
query II rowsort label-4069
SELECT col2 * 63 + - ( 40 ) AS col2, - CAST ( NULL AS REAL ) * + col0 * - col2 * - - col0 / - + col1 AS col1 FROM tab0
----
2921
NULL
590
NULL
6197
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4070
SELECT - 9 + COUNT( * ) AS col0 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-4070
SELECT - 9 + COUNT ( * ) AS col0 FROM tab2
----
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4071
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) + 39 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4071
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) + 39 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col0 + + + 27 - + col0 AS col1 FROM tab1 AS cor0
----
27
27
27

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 - ( col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - ( 25 ) / + 1 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 25 * - 72 <= ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col1 FROM tab1 WHERE - 30 BETWEEN ( NULL ) AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col1 FROM tab1 WHERE - 30 BETWEEN ( NULL ) AND ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col1 NOT IN ( + 26 * 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( - col2 ) * col0 - + 46 AS col2 FROM tab2
----
1012
2514
4304

query I rowsort
SELECT DISTINCT - 39 FROM tab1 WHERE ( + col2 * 68 + - col2 / - 89 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4080
SELECT COUNT( * ) + + MAX( DISTINCT 89 ) AS col1 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-4080
SELECT COUNT ( * ) + + MAX ( DISTINCT 89 ) AS col1 FROM tab2
----
92

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( + col0 ) ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4082
SELECT * FROM tab2 WHERE + col1 * - CAST( NULL AS DECIMAL ) - 26 >= + 81
----

skipif mysql # not compatible
query III rowsort label-4082
SELECT * FROM tab2 WHERE + col1 * - CAST ( NULL AS REAL ) - 26 >= + 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4083
SELECT ALL COUNT( * ) + 92 AS col0 FROM tab0
----
95

skipif mysql # not compatible
query I rowsort label-4083
SELECT ALL COUNT ( * ) + 92 AS col0 FROM tab0
----
95

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN col2 + col2 AND ( ( 66 ) )
----

query I rowsort
SELECT DISTINCT - col2 + 6 AS col2 FROM tab0
----
-4
-41
-93

onlyif mysql # aggregate syntax: 
query I rowsort label-4086
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE col2 IN ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4086
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE col2 IN ( col0 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 + + col2 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col2 AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 31 ) IN ( 24 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4090
SELECT + ( MIN( + 30 ) ) col0 FROM tab0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4090
SELECT + ( MIN ( + 30 ) ) col0 FROM tab0
----
30

query I rowsort
SELECT + ( + 90 ) - - col2 * 47 FROM tab1
----
2863
3286
4602

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT MAX( - 55 ) AS col1 FROM tab0 WHERE NOT col1 * ( 42 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT MAX ( - 55 ) AS col1 FROM tab0 WHERE NOT col1 * ( 42 ) IS NOT NULL
----
NULL

query I rowsort
SELECT ALL 16 + - col2 FROM tab0
----
-31
-83
6

query I rowsort
SELECT DISTINCT + 22 AS col0 FROM tab2 WHERE ( 20 - - col2 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT ALL + COUNT( * ) + - 14 AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL + COUNT ( * ) + - 14 AS col1 FROM tab1
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT DISTINCT + col1 DIV 34 AS col0 FROM tab0 cor0
----
0
2

skipif mysql # not compatible
query I rowsort label-4097
SELECT DISTINCT + col1 / 34 AS col0 FROM tab0 cor0
----
0
2

query I rowsort
SELECT ALL - col0 + - 46 FROM tab2 AS cor0
----
-110
-121
-92

query I rowsort
SELECT DISTINCT - col0 + + 83 FROM tab1 AS cor0
----
-2
-8
32

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE ( col1 ) < NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT col2 AS col2 FROM tab0 AS cor0 WHERE 63 NOT IN ( + ( - col2 ) + + col1 * 68 )
----
10
47
99

query I rowsort
SELECT col1 + 42 AS col2 FROM tab2 AS cor0
----
109
119
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4104
SELECT DISTINCT - + ( MIN( DISTINCT col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4104
SELECT DISTINCT - + ( MIN ( DISTINCT col2 ) ) AS col0 FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - col0 * 6 + - col1 FROM tab2 AS cor0
----
-327
-461
-517

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * col0 NOT BETWEEN ( 31 - + col1 ) AND col2
----

query I rowsort
SELECT ( - 2 ) + 34 FROM tab0 AS cor0
----
32
32
32

query I rowsort
SELECT ALL - col1 / + ( col2 * col1 ) + + 7 * + 93 AS col1 FROM tab1 cor0 WHERE - col0 * 10 <= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4109
SELECT * FROM tab0 WHERE col2 < - col0 / CAST( NULL AS SIGNED ) - + col0 * + 21
----

skipif mysql # not compatible
query III rowsort label-4109
SELECT * FROM tab0 WHERE col2 < - col0 / CAST ( NULL AS INTEGER ) - + col0 * + 21
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col0 NOT BETWEEN ( col0 ) AND + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 54 * + col1 col2 FROM tab0
----
11340
205578
5346

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 57 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4113
SELECT ALL CAST( - col2 AS SIGNED ) AS col2 FROM tab0 WHERE - col2 IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-4113
SELECT ALL CAST ( - col2 AS INTEGER ) AS col2 FROM tab0 WHERE - col2 IN ( - col0 )
----

query I rowsort
SELECT - 0 AS col2 FROM tab2 WHERE ( NULL ) >= + col0 * col0 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4115
SELECT DISTINCT 76 * COUNT( * ) FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4115
SELECT DISTINCT 76 * COUNT ( * ) FROM tab0 WHERE NOT ( col0 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL 4 + - MIN( ALL col0 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL 4 + - MIN ( ALL col0 ) FROM tab2
----
-42

query I rowsort
SELECT DISTINCT ( - col2 ) - 74 AS col0 FROM tab1
----
-133
-142
-170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 23 - - col0 col2 FROM tab0 AS cor0
----
110
120
38

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT - 79 DIV col2 * 48 - - col1 FROM tab0 AS cor0
----
-315
1
33

skipif mysql # not compatible
query I rowsort label-4119
SELECT - 79 / col2 * 48 - - col1 FROM tab0 AS cor0
----
-315
1
33

query I rowsort
SELECT 68 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 599bee15ac4cc39b859854e07dfe7990

query I rowsort
SELECT + - 6 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4122
SELECT + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4122
SELECT + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT col1 * col2 FROM tab0 WHERE NOT ( NULL ) IN ( - col2 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( - 89 ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + col1 + - 62 * ( - col0 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 15 col1 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - + col1 * - - ( - + col0 ) AS col1 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT - CAST( 88 AS SIGNED ) FROM tab0 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-4128
SELECT - CAST ( 88 AS INTEGER ) FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT + COUNT( + 2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + COUNT ( + 2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + 92 ) col2 FROM tab1 AS cor0
----
92
92
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 / 67 <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - 66, col0 FROM tab1 AS cor0
----
-66
51
-66
85
-66
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4134
SELECT ALL - MAX( DISTINCT 38 ) * ( - SUM( DISTINCT col1 ) ) AS col2 FROM tab0 WHERE + col2 + - + 61 * ( + 21 + - 34 / col1 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4134
SELECT ALL - MAX ( DISTINCT 38 ) * ( - SUM ( DISTINCT col1 ) ) AS col2 FROM tab0 WHERE + col2 + - + 61 * ( + 21 + - 34 / col1 ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 - col0 ) IN ( + 71 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 * - 42 AS col1 FROM tab2
----
-1932
-2688
-3150

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 - + col0 BETWEEN - col0 * col1 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col2 * - ( + col1 ) * col1 AS col0 FROM tab0
----
308367
4410
99

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 NOT IN ( 50 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <> ( - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4141
SELECT DISTINCT 95 DIV SUM( col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT 95 / SUM ( col1 ) FROM tab1
----
1

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - col1 / col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL 12 / col2 AS col0 FROM tab2 WHERE NOT + col2 <= - - col2
----

query II rowsort
SELECT DISTINCT - col1 + - col2 AS col1, + col2 FROM tab0 AS cor0
----
-100
99
-128
47
-31
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4145
SELECT 6 + - + 26 - 28 + 2 DIV + 55 + 87 * col2 FROM tab1
----
5085
5868
8304

skipif mysql # not compatible
query I rowsort label-4145
SELECT 6 + - + 26 - 28 + 2 / + 55 + 87 * col2 FROM tab1
----
5085
5868
8304

onlyif mysql # aggregate syntax: 
query II rowsort label-4146
SELECT DISTINCT COUNT( * ) AS col2, COUNT( * ) * + - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
-81

skipif mysql # not compatible
query II rowsort label-4146
SELECT DISTINCT COUNT ( * ) AS col2, COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9
-81

query III rowsort
SELECT * FROM tab1 WHERE + col1 NOT IN ( + ( + + ( 67 ) ) + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 20 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-20

query I rowsort
SELECT - 22 AS col1 FROM tab2 cor0
----
-22
-22
-22

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( ( 40 ) ) = NULL
----

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE + col1 + - col0 / + - 98 IS NULL
----

query I rowsort
SELECT DISTINCT - - 44 AS col0 FROM tab0 cor0
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-4154
SELECT ALL ( - COUNT( + - 47 ) ) - - 92 col0 FROM tab0 AS cor0
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4154
SELECT ALL ( - COUNT ( + - 47 ) ) - - 92 col0 FROM tab0 AS cor0
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4155
SELECT ALL - MIN( col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4155
SELECT ALL - MIN ( col2 ) FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + + col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 42, 91 + col0 AS col0 FROM tab2 AS cor0
----
42
137
42
155
42
166

query I rowsort
SELECT ALL col0 + + + col2 FROM tab0 cor0
----
196
62
97

query I rowsort
SELECT col2 - + 54 FROM tab0
----
-44
-7
45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 > NULL )
----

query I rowsort
SELECT - 67 + - col0 AS col1 FROM tab0
----
-154
-164
-82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - ( - - col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - col1 + 87 AS col0 FROM tab2
----
10
20
36

query I rowsort
SELECT - col1 * + 12 + + 8 FROM tab1
----
-160
-52
-556

query I rowsort
SELECT col2 + - ( 95 ) + col1 + 51 FROM tab0
----
-13
56
84

onlyif mysql # DIV for integer division: 
query I rowsort label-4166
SELECT - col2 DIV + 23 + + col0 - + 5 DIV + col1 - - col2 * 54 FROM tab0
----
2551
5434
627

skipif mysql # not compatible
query I rowsort label-4166
SELECT - col2 / + 23 + + col0 - + 5 / + col1 - - col2 * 54 FROM tab0
----
2551
5434
627

query I rowsort
SELECT ALL - 46 + 33 FROM tab1
----
-13
-13
-13

query I rowsort
SELECT - col1 * + col2 * col1 AS col2 FROM tab2 WHERE ( - + col0 ) IS NULL
----

query I rowsort
SELECT ALL col1 * - - col1 * + 58 - col2 AS col1 FROM tab2
----
150835
260304
343842

query II rowsort
SELECT DISTINCT ( + col1 ) AS col0, 54 FROM tab1 AS cor0
----
14
54
47
54
5
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4171
SELECT - CAST( NULL AS SIGNED ) * + 31 * - + col1 * 82 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-4171
SELECT - CAST ( NULL AS INTEGER ) * + 31 * - + col1 * 82 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 99 * + + ( - 96 ) + - 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to adbc31a61f3f52bd15ddbf1205c1a4ac

query I rowsort
SELECT + 68 * + col0 FROM tab2 AS cor0
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-4174
SELECT DISTINCT - MIN( ALL col0 ) AS col0 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4174
SELECT DISTINCT - MIN ( ALL col0 ) AS col0 FROM tab0 cor0
----
-15

query I rowsort
SELECT - - col2 * - ( - 79 ) AS col0 FROM tab2 AS cor0
----
1817
3160
4582

query I rowsort
SELECT - col0 * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( col0 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE ( NOT ( NOT ( col2 ) IN ( - col1 * + + col1 * ( + col2 ) ) ) )
----

query I rowsort
SELECT DISTINCT col2 + ( - + col0 ) + - col2 * col1 * + 53 AS col1 FROM tab2 AS cor0
----
-163264
-205975
-62192

query I rowsort
SELECT ALL - col0 * + 30 AS col0 FROM tab2 AS cor0
----
-1380
-1920
-2250

query I rowsort
SELECT DISTINCT - col2 * col2 + - - col2 + col2 * + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT - 72 + col1 FROM tab0
----
-51
-71
9

query I rowsort
SELECT + - col0 - - col0 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col1, + 14 - + col1 FROM tab2
----
23
-37
40
-63
58
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-4184
SELECT DISTINCT + 61 DIV col0 AS col0 FROM tab0 WHERE - - col2 * - col1 * - col1 NOT BETWEEN - - col1 AND + col2
----
0
4

skipif mysql # not compatible
query I rowsort label-4184
SELECT DISTINCT + 61 / col0 AS col0 FROM tab0 WHERE - - col2 * - col1 * - col1 NOT BETWEEN - - col1 AND + col2
----
0
4

query III rowsort
SELECT * FROM tab1 WHERE ( - ( - 73 ) ) IS NULL
----

query I rowsort
SELECT ALL + 44 + - - col1 + + col2 FROM tab2
----
118
161
169

query II rowsort
SELECT - col2, - 97 AS col2 FROM tab0 AS cor0
----
-10
-97
-47
-97
-99
-97

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 * - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4189
SELECT - col1 FROM tab1 AS cor0 WHERE - CAST( + 48 AS SIGNED ) NOT BETWEEN - col2 + - col2 AND + col2
----

skipif mysql # not compatible
query I rowsort label-4189
SELECT - col1 FROM tab1 AS cor0 WHERE - CAST ( + 48 AS INTEGER ) NOT BETWEEN - col2 + - col2 AND + col2
----

query I rowsort
SELECT - 56 * 84 FROM tab2 AS cor0
----
-4704
-4704
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-4191
SELECT ALL - 61 + - COUNT( * ) * 9 * - COUNT( * ) col2 FROM tab2
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4191
SELECT ALL - 61 + - COUNT ( * ) * 9 * - COUNT ( * ) col2 FROM tab2
----
20

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 97 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - + - 99 col0 FROM tab1 cor0
----
14
48
8

query II rowsort
SELECT DISTINCT col0 * col2 AS col0, col0 FROM tab1 AS cor0
----
4896
51
5015
85
6188
91

query II rowsort
SELECT DISTINCT + + 24 - + + col0, col1 AS col1 FROM tab0 AS cor0
----
-63
21
-73
1
9
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT ALL + SUM( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-4196
SELECT ALL + SUM ( ALL - - col0 ) AS col2 FROM tab1 AS cor0
----
227

query II rowsort
SELECT col0, - 37 + 4 FROM tab1
----
51
-33
85
-33
91
-33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 - - col1 BETWEEN ( col2 * + col2 + + ( - 40 ) / + ( + + 45 ) ) AND + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE ( - 20 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( + col2 * - + 32 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4201
SELECT ALL + col1 DIV + 38 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4201
SELECT ALL + col1 / + 38 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4202
SELECT - 37 * 16 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-1776

skipif mysql # not compatible
query I rowsort label-4202
SELECT - 37 * 16 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-1776

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 99 = NULL
----

query II rowsort
SELECT DISTINCT - + 8, ( - + col1 ) AS col1 FROM tab1 AS cor0
----
-8
-14
-8
-47
-8
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> col1 + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4206
SELECT ALL - CAST( + + 44 AS SIGNED ) FROM tab2 cor0
----
-44
-44
-44

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL - CAST ( + + 44 AS INTEGER ) FROM tab2 cor0
----
-44
-44
-44

query II rowsort
SELECT col1 AS col1, + col1 - - - col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col0, + col0 col2 FROM tab2 AS cor0
----
46
46
64
64
75
75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > 28
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4210
SELECT + 93 * + 28 AS col1, + CAST( col2 AS SIGNED ) FROM tab1 AS cor0
----
2604
59
2604
68
2604
96

skipif mysql # not compatible
query II rowsort label-4210
SELECT + 93 * + 28 AS col1, + CAST ( col2 AS INTEGER ) FROM tab1 AS cor0
----
2604
59
2604
68
2604
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4211
SELECT DISTINCT + 20 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4211
SELECT DISTINCT + 20 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT ( 72 ) FROM tab2, tab2 AS cor0
----
72

query I rowsort
SELECT DISTINCT + col0 + + 30 AS col2 FROM tab2
----
105
76
94

query I rowsort
SELECT DISTINCT + col2 + + - col2 * - 95 + col0 AS col0 FROM tab2
----
2254
3904
5643

query I rowsort
SELECT ALL col2 * + 75 + col1 AS col1 FROM tab1
----
4430
5147
7214

onlyif mysql # DIV for integer division: 
query I rowsort label-4216
SELECT 81 DIV col2 + + - col1 FROM tab2
----
-48
-66
-75

skipif mysql # not compatible
query I rowsort label-4216
SELECT 81 / col2 + + - col1 FROM tab2
----
-48
-66
-75

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4217
SELECT 60 + + CAST( NULL AS DECIMAL ) * COUNT( * ) - - COUNT( col0 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4217
SELECT 60 + + CAST ( NULL AS REAL ) * COUNT ( * ) - - COUNT ( col0 ) AS col1 FROM tab1
----
NULL

query II rowsort
SELECT - - 83 + - col0 AS col2, + col1 AS col1 FROM tab2 AS cor0
----
19
77
37
51
8
67

query I rowsort
SELECT DISTINCT + ( + 39 ) AS col0 FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN - - col0 AND + col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4220
SELECT - - COUNT( DISTINCT + col2 ) + - MIN( ALL - 9 ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-4220
SELECT - - COUNT ( DISTINCT + col2 ) + - MIN ( ALL - 9 ) AS col1 FROM tab0 AS cor0
----
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT DISTINCT + MIN( ALL col1 ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4222
SELECT DISTINCT + MIN ( ALL col1 ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT - MAX( - 73 ) AS col1 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4223
SELECT - MAX ( - 73 ) AS col1 FROM tab0
----
73

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + - col2 - - + col1 + - col1 + - col0 + + col0 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + COUNT( * ) * - + 91 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-4225
SELECT + COUNT ( * ) * - + 91 FROM tab1
----
-273

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 33 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 - - col1 + + col1 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT DISTINCT + - col1 DIV + - col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + - col1 / + - col1 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE 2 NOT IN ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 < + 60
----
87
21
10
97
1
99

query I rowsort
SELECT - col2 * col0 * + col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-25075
-290836
-68544

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NULL ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT ALL + ( + - SUM( ALL + - col0 ) ) FROM tab2 cor0
----
185

skipif mysql # not compatible
query I rowsort label-4233
SELECT ALL + ( + - SUM ( ALL + - col0 ) ) FROM tab2 cor0
----
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4234
SELECT DISTINCT ( - AVG ( ALL + col2 ) ) / - 2 col2 FROM tab2 WHERE NOT + 59 * CAST( NULL AS SIGNED ) <> + - col1 * + ( col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4234
SELECT DISTINCT ( - AVG ( ALL + col2 ) ) / - 2 col2 FROM tab2 WHERE NOT + 59 * CAST ( NULL AS INTEGER ) <> + - col1 * + ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT + - SUM( ALL + - col1 ) * + MAX( + - col2 ) FROM tab1 WHERE NOT - - col1 IS NULL
----
-3894

skipif mysql # not compatible
query I rowsort label-4235
SELECT + - SUM ( ALL + - col1 ) * + MAX ( + - col2 ) FROM tab1 WHERE NOT - - col1 IS NULL
----
-3894

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT MIN( ALL - - 89 ) * - - COUNT( * ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-4236
SELECT MIN ( ALL - - 89 ) * - - COUNT ( * ) FROM tab0
----
267

onlyif mysql # DIV for integer division: 
query II rowsort label-4237
SELECT DISTINCT - col2 DIV - col1 col2, - 98 AS col0 FROM tab1
----
1
-98
11
-98
6
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4237
SELECT DISTINCT - col2 / - col1 col2, - 98 AS col0 FROM tab1
----
1
-98
11
-98
6
-98

query I rowsort
SELECT DISTINCT col0 * - + 25 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1150
-1600
-1875

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col0 * - 5 AND col1
----

query I rowsort
SELECT DISTINCT + + 21 AS col0 FROM tab0 AS cor0
----
21

query I rowsort
SELECT DISTINCT 97 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
97

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 AS col1 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4244
SELECT ( + SUM( + ( - 28 ) ) ) * 21 DIV - COUNT( * ) AS col0 FROM tab1
----
588

skipif mysql # not compatible
query I rowsort label-4244
SELECT ( + SUM ( + ( - 28 ) ) ) * 21 / - COUNT ( * ) AS col0 FROM tab1
----
588

query I rowsort
SELECT + - col0 + - col1 AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4246
SELECT - CAST( NULL AS SIGNED ) * + - 32 + + 56 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4246
SELECT - CAST ( NULL AS INTEGER ) * + - 32 + + 56 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 16 * - col2 + - + 56 + + col0 col0 FROM tab1 AS cor0
----
-1053
-1541
-915

query I rowsort
SELECT DISTINCT + - 99 AS col1 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT - ( - + col1 ) * + col1 + + + 2 + col1 AS col0 FROM tab0 AS cor0
----
4
464
6644

query II rowsort
SELECT ALL col0, 85 AS col0 FROM tab2
----
46
85
64
85
75
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4251
SELECT - ( + CAST( NULL AS SIGNED ) ) + + col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT - ( + CAST ( NULL AS INTEGER ) ) + + col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - col1 * + + col2 + col2 AS col1 FROM tab0 WHERE - ( + col1 ) + + - col0 = - col2
----

query I rowsort
SELECT 14 * - + 93 + - + 27 FROM tab2
----
-1329
-1329
-1329

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT DISTINCT - SUM( ALL + 75 ) + + + 36 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-4254
SELECT DISTINCT - SUM ( ALL + 75 ) + + + 36 FROM tab1
----
-189

onlyif mysql # DIV for integer division: 
query I rowsort label-4255
SELECT DISTINCT - col1 * - col1 DIV - col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4255
SELECT DISTINCT - col1 * - col1 / - col1 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NOT + col0 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT ALL MIN( + + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4257
SELECT ALL MIN ( + + col2 ) FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL 76 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
76
76
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4259
SELECT DISTINCT - CAST( - 52 AS SIGNED ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-4259
SELECT DISTINCT - CAST ( - 52 AS INTEGER ) FROM tab1 AS cor0
----
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4260
SELECT + col0 - + + CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
17
23
24

skipif mysql # not compatible
query I rowsort label-4260
SELECT + col0 - + + CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT MIN( DISTINCT - col1 ) - COUNT( * ) * - 31 FROM tab2 cor0
----
16

skipif mysql # not compatible
query I rowsort label-4261
SELECT MIN ( DISTINCT - col1 ) - COUNT ( * ) * - 31 FROM tab2 cor0
----
16

onlyif mysql # DIV for integer division: 
query I rowsort label-4262
SELECT DISTINCT - - 81 + col1 - + 58 * + col1 DIV col1 FROM tab2 AS cor0
----
100
74
90

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT - - 81 + col1 - + 58 * + col1 / col1 FROM tab2 AS cor0
----
100
74
90

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 48 - - 32 ) NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4264
SELECT + COUNT( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4264
SELECT + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL + + SUM( ALL - col2 ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
-468

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4265
SELECT ALL + + SUM ( ALL - col2 ) * + COUNT ( * ) col2 FROM tab0 AS cor0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT + + 58 * + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-4266
SELECT + + 58 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 90 * col2 col0 FROM tab1 AS cor0
----
-5310
-6120
-8640

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 cor0 WHERE NOT + col1 + - col0 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT + MIN( 23 ) AS col2 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-4269
SELECT + MIN ( 23 ) AS col2 FROM tab2 cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT - + 39 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-4270
SELECT - + 39 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
117

query I rowsort
SELECT ALL col2 * + + 18 AS col0 FROM tab1
----
1062
1224
1728

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 > + 48
----
87
21
10
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - - col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + 81 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4275
SELECT DISTINCT - 94 DIV - 50 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT DISTINCT - 94 / - 50 FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4276
SELECT ALL - 50 DIV col2 AS col1 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-4276
SELECT ALL - 50 / col2 AS col1 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL - col1 + - 62 AS col0 FROM tab2
----
-113
-129
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 58 * + + col0 * - 99 col0 FROM tab0 AS cor0
----
-499554
-556974
-86130

query II rowsort
SELECT - + ( - + col0 ) AS col1, + col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT - + 89 * - col2 FROM tab0 AS cor0
----
4183
8811
890

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 96 + + + col1 AS col1 FROM tab0
----
-15
-75
-95

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN col2 * - + col1 AND col0 - 48
----

query I rowsort
SELECT - col2 + + 55 FROM tab2
----
-3
15
32

query I rowsort
SELECT + col1 FROM tab0 WHERE - - 70 - - + 15 + + 74 BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT 76 + + - col1 FROM tab1
----
29
62
71

query I rowsort
SELECT DISTINCT 76 + - 21 * - 62 AS col2 FROM tab0
----
1378

query I rowsort
SELECT ALL col0 * + - col0 * + - 15 * - ( ( - + 97 ) ) + col0 AS col0 FROM tab2
----
3078826
5959744
8184450

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT ALL - MIN( - - 58 ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4289
SELECT ALL - MIN ( - - 58 ) FROM tab1 AS cor0
----
-58

query II rowsort
SELECT + - 91, col0 AS col0 FROM tab0 AS cor0
----
-91
15
-91
87
-91
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col1, ( + - col2 ) + + + col0 + + - 2 col1 FROM tab0 AS cor0
----
15
-34
87
75
97
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT ALL - + COUNT( * ) FROM tab2 AS cor0 WHERE ( col0 ) > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-4292
SELECT ALL - + COUNT ( * ) FROM tab2 AS cor0 WHERE ( col0 ) > ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4293
SELECT - + ( + ( + CAST( NULL AS SIGNED ) ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT - + ( + ( + CAST ( NULL AS INTEGER ) ) ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( + col2 ) AND ( - col2 * - col1 )
----

query I rowsort
SELECT - col2 * + + col2 AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT - COUNT( * ) * 71 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-4296
SELECT - COUNT ( * ) * 71 FROM tab0
----
-213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT DISTINCT CAST( + - 72 AS SIGNED ) * - 40 FROM tab0
----
2880

skipif mysql # not compatible
query I rowsort label-4297
SELECT DISTINCT CAST ( + - 72 AS INTEGER ) * - 40 FROM tab0
----
2880

query I rowsort
SELECT + col0 * ( - + col2 ) FROM tab2
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 < + col0 + + col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 15 * - - col1 col1, 14 AS col1 FROM tab2
----
1005
14
1155
14
765
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4301
SELECT - CAST( - COUNT( * ) AS SIGNED ) AS col1, - COUNT( * ) * - 60 DIV ( - COUNT( * ) ) * - COUNT( * ) + + COUNT( DISTINCT + col1 ) * 92 FROM tab1 AS cor0
----
3
456

skipif mysql # not compatible
query II rowsort label-4301
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) AS col1, - COUNT ( * ) * - 60 / ( - COUNT ( * ) ) * - COUNT ( * ) + + COUNT ( DISTINCT + col1 ) * 92 FROM tab1 AS cor0
----
3
456

query II rowsort
SELECT ALL col0 + col1 AS col0, col0 AS col1 FROM tab2 AS cor0
----
141
64
142
75
97
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4303
SELECT ALL - 30 * + COUNT( * ) + + COUNT( * ) FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-4303
SELECT ALL - 30 * + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-87

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> + col2
----

query I rowsort
SELECT 26 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + - col1 + col2 * - 68 + - - col1 FROM tab2 AS cor0
----
-1564
-2720
-3944

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * 40 col2 FROM tab2 AS cor0
----
2040
2680
3080

onlyif mysql # aggregate syntax: 
query II rowsort label-4308
SELECT + COUNT( * ) AS col2, + MIN( - - 51 ) + + 81 AS col0 FROM tab0 AS cor0 WHERE + 79 / 60 > + col2 + - col2
----
3
132

skipif mysql # not compatible
query II rowsort label-4308
SELECT + COUNT ( * ) AS col2, + MIN ( - - 51 ) + + 81 AS col0 FROM tab0 AS cor0 WHERE + 79 / 60 > + col2 + - col2
----
3
132

query I rowsort
SELECT DISTINCT col0 * - - col1 FROM tab2 AS cor0
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / + col1 >= NULL
----

query I rowsort
SELECT ALL + - 20 * - col0 * + col0 * + - col2 FROM tab1 AS cor0
----
-11262160
-4993920
-8525500

query I rowsort
SELECT + col0 + ( - ( - col2 ) ) AS col0 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT DISTINCT - 54 + - 85 - MAX( ALL 24 ) col0 FROM tab0 AS cor0
----
-163

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4313
SELECT DISTINCT - 54 + - 85 - MAX ( ALL 24 ) col0 FROM tab0 AS cor0
----
-163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT CAST( - col1 AS SIGNED ) AS col2 FROM tab0 cor0 WHERE NULL <> + col1
----

skipif mysql # not compatible
query I rowsort label-4314
SELECT CAST ( - col1 AS INTEGER ) AS col2 FROM tab0 cor0 WHERE NULL <> + col1
----

query I rowsort
SELECT 58 + + - col0 FROM tab1
----
-27
-33
7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4316
SELECT DISTINCT * FROM tab0 WHERE + - CAST( NULL AS SIGNED ) - + + 30 * - ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4316
SELECT DISTINCT * FROM tab0 WHERE + - CAST ( NULL AS INTEGER ) - + + 30 * - ( - + col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4317
SELECT DISTINCT - 19 DIV - col0 - 25 DIV 79 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT - 19 / - col0 - 25 / 79 FROM tab1
----
0

query II rowsort
SELECT DISTINCT col1 + + col2, + 52 AS col0 FROM tab0
----
100
52
128
52
31
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT - MAX( - col1 ) - 22 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4319
SELECT - MAX ( - col1 ) - 22 AS col0 FROM tab0 AS cor0 WHERE col1 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4320
SELECT - 86 + - - col2 + + col1 * - + ( + 92 ) * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) / + col2 * - col1 * + + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4320
SELECT - 86 + - - col2 + + col1 * - + ( + 92 ) * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) / + col2 * - col1 * + + 15 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 ) BETWEEN - + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT MIN( 11 ) AS col0 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT MIN ( 11 ) AS col0 FROM tab0
----
11

onlyif mysql # aggregate syntax: 
query II rowsort label-4323
SELECT ALL + COUNT( * ) AS col2, 42 FROM tab0 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-4323
SELECT ALL + COUNT ( * ) AS col2, 42 FROM tab0 AS cor0
----
3
42

query I rowsort
SELECT DISTINCT 30 FROM tab1 AS cor0 WHERE + col1 < NULL
----

query I rowsort
SELECT ( - - 48 ) AS col0 FROM tab1 AS cor0
----
48
48
48

query II rowsort
SELECT DISTINCT - col0 * - + col2 * - - col2 AS col0, col0 - + col1 AS col2 FROM tab0 AS cor0
----
33135
-66
8700
66
950697
96

query I rowsort
SELECT ALL - col1 * + - 27 FROM tab2
----
1377
1809
2079

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT COUNT( * ) * - COUNT( * ) * - COUNT( * ) * 96 * COUNT( * ) col1 FROM tab2
----
7776

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4328
SELECT COUNT ( * ) * - COUNT ( * ) * - COUNT ( * ) * 96 * COUNT ( * ) col1 FROM tab2
----
7776

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 49 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - 50 AS col1 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT 54 + - 89 FROM tab2 AS cor0
----
-35
-35
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-4332
SELECT ALL + COUNT( * ) + - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4332
SELECT ALL + COUNT ( * ) + - + COUNT ( * ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT ALL + COUNT( * ) * + 51 AS col2 FROM tab0, tab2 AS cor0
----
459

skipif mysql # not compatible
query I rowsort label-4333
SELECT ALL + COUNT ( * ) * + 51 AS col2 FROM tab0, tab2 AS cor0
----
459

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4334
SELECT ALL - + 25 * - - COUNT( + 39 ) * + 68 * - + ( AVG ( ALL + - CAST( NULL AS DECIMAL ) ) ) / 46 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4334
SELECT ALL - + 25 * - - COUNT ( + 39 ) * + 68 * - + ( AVG ( ALL + - CAST ( NULL AS REAL ) ) ) / 46 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4335
SELECT DISTINCT + COUNT( * ) * + 92 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-4335
SELECT DISTINCT + COUNT ( * ) * + 92 FROM tab1 AS cor0
----
276

onlyif mysql # aggregate syntax: 
query I rowsort label-4336
SELECT - - MIN( ALL + col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-4336
SELECT - - MIN ( ALL + col0 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT - COUNT( * ) + + + 59 * + + 59 FROM tab1
----
3478

skipif mysql # not compatible
query I rowsort label-4337
SELECT - COUNT ( * ) + + + 59 * + + 59 FROM tab1
----
3478

query I rowsort
SELECT col0 + 3 + - col1 + - col1 FROM tab0
----
-144
48
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4339
SELECT DISTINCT 77 * - - col1 + CAST( NULL AS SIGNED ) / 4 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT 77 * - - col1 + CAST ( NULL AS INTEGER ) / 4 FROM tab1
----
NULL

query I rowsort
SELECT 65 + + + 81 AS col2 FROM tab0
----
146
146
146

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4341
SELECT + 31 / - - col1 + + 43 + + CAST( NULL AS SIGNED ), 80 AS col1 FROM tab1
----
NULL
80
NULL
80
NULL
80

skipif mysql # not compatible
query II rowsort label-4341
SELECT + 31 / - - col1 + + 43 + + CAST ( NULL AS INTEGER ), 80 AS col1 FROM tab1
----
NULL
80
NULL
80
NULL
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4342
SELECT 82 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-4342
SELECT 82 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4343
SELECT ALL - + col0 - CAST( NULL AS SIGNED ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4343
SELECT ALL - + col0 - CAST ( NULL AS INTEGER ) - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT + col0, 89 AS col1 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL + 70 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

query I rowsort
SELECT 39 * col0 FROM tab2
----
1794
2496
2925

onlyif mysql # aggregate syntax: 
query I rowsort label-4347
SELECT DISTINCT + 87 + + MIN( + - 31 ) + - - 13 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
69

skipif mysql # not compatible
query I rowsort label-4347
SELECT DISTINCT + 87 + + MIN ( + - 31 ) + - - 13 AS col1 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
69

onlyif mysql # aggregate syntax: 
query II rowsort label-4348
SELECT COUNT( + - col2 ) AS col2, - COUNT( * ) AS col2 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-4348
SELECT COUNT ( + - col2 ) AS col2, - COUNT ( * ) AS col2 FROM tab2
----
3
-3

query II rowsort
SELECT DISTINCT - ( + col1 ) AS col2, - col1 FROM tab1 AS cor0
----
-14
-14
-47
-47
-5
-5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 92 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4351
SELECT DISTINCT + CAST( 97 AS SIGNED ) AS col1, 74 + + 6 * col1 * + col1 AS col2 FROM tab0 AS cor0
----
97
2720
97
39440
97
80

skipif mysql # not compatible
query II rowsort label-4351
SELECT DISTINCT + CAST ( 97 AS INTEGER ) AS col1, 74 + + 6 * col1 * + col1 AS col2 FROM tab0 AS cor0
----
97
2720
97
39440
97
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 + - col0 col1 FROM tab2 AS cor0 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT ( 5 ) AS col0 FROM tab1 AS cor0
----
5
5
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 8 * + + col0 * col0 IS NOT NULL
----

query II rowsort
SELECT ALL col1 * - col1 AS col1, + 15 * - 48 FROM tab2 WHERE NOT NULL <> + col1
----

query I rowsort
SELECT 33 + - - 51 + + col2 + - 96 FROM tab1
----
47
56
84

query II rowsort
SELECT ALL col2, + col2 FROM tab0
----
10
10
47
47
99
99

query I rowsort
SELECT 75 * - col2 * - - col1 * - 20 * col0 + col0 AS col2 FROM tab1 AS cor0
----
102816051
37612585
436254091

onlyif mysql # DIV for integer division: 
query II rowsort label-4359
SELECT - - col0 AS col1, + 69 * col2 DIV - - 40 AS col2 FROM tab2 AS cor0
----
46
39
64
69
75
100

skipif mysql # not compatible
query II rowsort label-4359
SELECT - - col0 AS col1, + 69 * col2 / - - 40 AS col2 FROM tab2 AS cor0
----
46
39
64
69
75
100

query I rowsort
SELECT - col2 * - + 75 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4361
SELECT DISTINCT - col1 * + ( + col2 ) * col0 DIV - col2 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-4361
SELECT DISTINCT - col1 * + ( + col2 ) * col0 / - col2 FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT - MIN( ALL - + 54 ) AS col1 FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-4362
SELECT - MIN ( ALL - + 54 ) AS col1 FROM tab1
----
54

query I rowsort
SELECT ALL + col0 + + - col0 + - 81 + + 86 + - 91 + - - ( 39 ) FROM tab1
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4364
SELECT - CAST( + 6 AS SIGNED ) FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-4364
SELECT - CAST ( + 6 AS INTEGER ) FROM tab2
----
-6
-6
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4366
SELECT - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE - col2 <> NULL
----

query I rowsort
SELECT DISTINCT + ( + col0 ) * - + col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL - 79 AS col1, + COUNT( * ) FROM tab2 AS cor0
----
-79
3

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL - 79 AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
-79
3

query I rowsort
SELECT - col2 + + col2 FROM tab0 AS cor0 WHERE col1 * + col1 NOT IN ( - - 66 )
----
0
0
0

query I rowsort
SELECT ALL - 58 * - col2 + col2 FROM tab1 cor0
----
3481
4012
5664

query I rowsort
SELECT - + 18 + 55 * 52 AS col2 FROM tab0 AS cor0
----
2842
2842
2842

query I rowsort
SELECT ALL - col0 + col2 + - 88 + + + 53 * + col1 * + + col1 FROM tab0 AS cor0
----
-33
23208
347677

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4374
SELECT 25 DIV - SUM( col1 ), - COUNT( * ) AS col1 FROM tab1
----
0
-3

skipif mysql # not compatible
query II rowsort label-4374
SELECT 25 / - SUM ( col1 ), - COUNT ( * ) AS col1 FROM tab1
----
0
-3

query I rowsort
SELECT col1 * 70 AS col2 FROM tab2
----
3570
4690
5390

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT - - MAX( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4376
SELECT - - MAX ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL <= + col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4377
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4377
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + col2 FROM tab1 cor0
----
NULL

query I rowsort
SELECT + 41 * - - col2 FROM tab1 AS cor0
----
2419
2788
3936

query I rowsort
SELECT ALL + col2 * 73 FROM tab1
----
4307
4964
7008

query II rowsort
SELECT ALL col2 AS col0, - 5 * - 95 * ( - col1 ) FROM tab1 AS cor0
----
59
-2375
68
-22325
96
-6650

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT + COUNT( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4381
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT - 70 AS col0, col1 + - + col2 FROM tab0 AS cor0
----
-70
-98
-70
11
-70
34

query I rowsort
SELECT + 5 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
5
5
5

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 * + ( + col0 ) * - + col2 * + col0 IS NULL
----

query II rowsort
SELECT - col1, + 53 AS col0 FROM tab0 AS cor0
----
-1
53
-21
53
-81
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4386
SELECT ALL * FROM tab0 WHERE NOT - col2 + - CAST( + - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4386
SELECT ALL * FROM tab0 WHERE NOT - col2 + - CAST ( + - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4387
SELECT ALL COUNT( * ) + + COUNT( * ) + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4387
SELECT ALL COUNT ( * ) + + COUNT ( * ) + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4388
SELECT DISTINCT COUNT( * ) * + 65 / - CAST( NULL AS SIGNED ) * - 4 * - + 8 + + - 44 - - COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT COUNT ( * ) * + 65 / - CAST ( NULL AS INTEGER ) * - 4 * - + 8 + + - 44 - - COUNT ( * ) FROM tab0
----
NULL

query I rowsort
SELECT + ( + 10 ) * col2 + + col1 * col0 AS col2 FROM tab2
----
2576
5328
5605

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4390
SELECT CAST( NULL AS SIGNED ) * - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4390
SELECT CAST ( NULL AS INTEGER ) * - - col0 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4391
SELECT 43 * + + COUNT( * ) AS col1 FROM tab1
----
129

skipif mysql # not compatible
query I rowsort label-4391
SELECT 43 * + + COUNT ( * ) AS col1 FROM tab1
----
129

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <> - ( + - col1 ) + + + 3
----

query I rowsort
SELECT + 24 + - col1 * col0 AS col1 FROM tab1 AS cor0
----
-401
-4253
-690

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4394
SELECT + - 55 + - CAST( - + col2 AS SIGNED ) FROM tab0 AS cor0
----
-45
-8
44

skipif mysql # not compatible
query I rowsort label-4394
SELECT + - 55 + - CAST ( - + col2 AS INTEGER ) FROM tab0 AS cor0
----
-45
-8
44

onlyif mysql # DIV for integer division: 
query I rowsort label-4395
SELECT - ( - col2 ) * + 30 + - + col0 DIV col2 + - col1 FROM tab0 AS cor0
----
1329
271
2969

skipif mysql # not compatible
query I rowsort label-4395
SELECT - ( - col2 ) * + 30 + - + col0 / col2 + - col1 FROM tab0 AS cor0
----
1329
271
2969

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE NOT 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT ALL ( - + MAX( + - 61 ) ) AS col0 FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-4397
SELECT ALL ( - + MAX ( + - 61 ) ) AS col0 FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT MIN( - 59 ) FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-4398
SELECT MIN ( - 59 ) FROM tab2
----
-59

query I rowsort
SELECT - + 50 FROM tab0 WHERE 63 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4400
SELECT SUM( DISTINCT - 82 ) col1 FROM tab0
----
-82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4400
SELECT SUM ( DISTINCT - 82 ) col1 FROM tab0
----
-82

query II rowsort
SELECT ALL + 53, col0 AS col1 FROM tab0 AS cor0
----
53
15
53
87
53
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4402
SELECT + COUNT( * ) - AVG ( - 32 ) / + ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4402
SELECT + COUNT ( * ) - AVG ( - 32 ) / + ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 + - col2 * - + 58 AS col1 FROM tab0
----
2807
5743
601

onlyif mysql # DIV for integer division: 
query I rowsort label-4404
SELECT ALL ( + 81 ) + + 6 DIV 3 FROM tab0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-4404
SELECT ALL ( + 81 ) + + 6 / 3 FROM tab0
----
83
83
83

onlyif mysql # aggregate syntax: 
query II rowsort label-4405
SELECT MAX( - + col1 ) AS col0, COUNT( * ) AS col2 FROM tab0
----
-1
3

skipif mysql # not compatible
query II rowsort label-4405
SELECT MAX ( - + col1 ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
-1
3

query I rowsort
SELECT DISTINCT - col1 * + 92 AS col1 FROM tab2
----
-4692
-6164
-7084

query I rowsort
SELECT - 3 * + col1 FROM tab1
----
-141
-15
-42

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN - 11 * - 2 + 7 AND 64 * - - col1
----

query I rowsort
SELECT ALL - col2 * - 48 * - - col1 AS col0 FROM tab1
----
14160
153408
64512

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + col1 * + 91 * + col1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4411
SELECT DISTINCT + COUNT( + - 95 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4411
SELECT DISTINCT + COUNT ( + - 95 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 64 AS col1 FROM tab0 WHERE ( - col1 * + - 18 + + - col1 >= - col0 )
----
64
64
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4413
SELECT + - CAST( + + ( - COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4413
SELECT + - CAST ( + + ( - COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT col1 * - 36 FROM tab0 AS cor0
----
-2916
-36
-756

query I rowsort
SELECT ALL + + 30 AS col2 FROM tab1 cor0
----
30
30
30

query II rowsort
SELECT + - col2, + col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT ALL + - SUM( + 82 ) AS col2 FROM tab0 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-4417
SELECT ALL + - SUM ( + 82 ) AS col2 FROM tab0 AS cor0
----
-246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4418
SELECT - MIN( DISTINCT CAST( + col0 AS SIGNED ) ) * + + COUNT( * ) * - SUM( DISTINCT + 73 ) FROM tab2 AS cor0
----
10074

skipif mysql # not compatible
query I rowsort label-4418
SELECT - MIN ( DISTINCT CAST ( + col0 AS INTEGER ) ) * + + COUNT ( * ) * - SUM ( DISTINCT + 73 ) FROM tab2 AS cor0
----
10074

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col2 < - col0 * - - 67
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT ALL - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4421
SELECT ALL - COUNT( * ) DIV - 8 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - COUNT ( * ) / - 8 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 46 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 27 AS col2 FROM tab2 cor0
----
27
27
27

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + col2 >= - col1 + - - col0 * - col2
----

query I rowsort
SELECT ALL 73 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4426
SELECT col1 DIV + col2 + + 32 + + 61 * - 63 AS col0, col0 * + col2 * + 98 FROM tab2 AS cor0
----
-3809
103684
-3810
250880
-3810
426300

skipif mysql # not compatible
query II rowsort label-4426
SELECT col1 / + col2 + + 32 + + 61 * - 63 AS col0, col0 * + col2 * + 98 FROM tab2 AS cor0
----
-3809
103684
-3810
250880
-3810
426300

onlyif mysql # DIV for integer division: 
query I rowsort label-4427
SELECT - 37 + col1 + - 10 DIV + - col1 AS col0 FROM tab2 cor0
----
14
30
40

skipif mysql # not compatible
query I rowsort label-4427
SELECT - 37 + col1 + - 10 / + - col1 AS col0 FROM tab2 cor0
----
14
30
40

query I rowsort
SELECT - 41 + - ( - + ( - - col2 ) ) + + 82 AS col2 FROM tab1 AS cor0
----
100
109
137

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT - CAST( NULL AS SIGNED ) + + ( + - col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4429
SELECT - CAST ( NULL AS INTEGER ) + + ( + - col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + 84 FROM tab0
----
131
183
94

query I rowsort
SELECT ALL - col1 + ( + 32 ) + - - col0 FROM tab2
----
19
27
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 94 + + + col1 FROM tab2
----
-17
-27
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT ALL 82 + + COUNT( * ) col2 FROM tab1
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4434
SELECT ALL 82 + + COUNT ( * ) col2 FROM tab1
----
85

query I rowsort
SELECT DISTINCT col2 * col1 + col1 AS col2 FROM tab0
----
100
231
3888

query I rowsort
SELECT DISTINCT + 2 + + - col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 95 AND + ( + 14 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 * - - col1 + - + col0 BETWEEN + - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4438
SELECT + col0 - + col1 AS col1, + CAST( NULL AS SIGNED ) FROM tab2
----
-13
NULL
-5
NULL
8
NULL

skipif mysql # not compatible
query II rowsort label-4438
SELECT + col0 - + col1 AS col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
-13
NULL
-5
NULL
8
NULL

query I rowsort
SELECT DISTINCT 47 * + - col0 * + col0 * + col0 - + ( + + 56 ) AS col2 FROM tab1
----
-28863931
-35417893
-6234653

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 28 col0 FROM tab2 AS cor0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-4441
SELECT MIN( col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4441
SELECT MIN ( col0 ) AS col2 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4442
SELECT DISTINCT CAST( col0 AS SIGNED ) * + + 27 AS col0 FROM tab1
----
1377
2295
2457

skipif mysql # not compatible
query I rowsort label-4442
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + + 27 AS col0 FROM tab1
----
1377
2295
2457

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4443
SELECT ALL MAX( - 77 ) * - MIN( + CAST( - 88 AS SIGNED ) ) FROM tab0
----
-6776

skipif mysql # not compatible
query I rowsort label-4443
SELECT ALL MAX ( - 77 ) * - MIN ( + CAST ( - 88 AS INTEGER ) ) FROM tab0
----
-6776

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4444
SELECT col1 * + col2 * + 16 + ( + 44 ) AS col1 FROM tab0 WHERE NOT + CAST( NULL AS DECIMAL ) / 75 IS NOT NULL
----
1628
3404
60956

skipif mysql # not compatible
query I rowsort label-4444
SELECT col1 * + col2 * + 16 + ( + 44 ) AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS REAL ) / 75 IS NOT NULL
----
1628
3404
60956

onlyif mysql # aggregate syntax: 
query I rowsort label-4445
SELECT - ( - MIN( 18 ) ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4445
SELECT - ( - MIN ( 18 ) ) AS col2 FROM tab0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT DISTINCT + MAX( + + 51 ) FROM tab1 AS cor0 WHERE + col1 / + col1 * - col2 IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-4446
SELECT DISTINCT + MAX ( + + 51 ) FROM tab1 AS cor0 WHERE + col1 / + col1 * - col2 IS NOT NULL
----
51

query I rowsort
SELECT - + ( + 57 ) AS col2 FROM tab2 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4448
SELECT ALL 42 + + - COUNT( * ) DIV - 42 + - 44 FROM tab2 AS cor0 INNER JOIN tab1 cor1 ON NOT - 2 - 55 * + 13 >= NULL
----
-2

skipif mysql # not compatible
query I rowsort label-4448
SELECT ALL 42 + + - COUNT ( * ) / - 42 + - 44 FROM tab2 AS cor0 INNER JOIN tab1 cor1 ON NOT - 2 - 55 * + 13 >= NULL
----
-2

query II rowsort
SELECT DISTINCT 28, col1 AS col0 FROM tab0
----
28
1
28
21
28
81

query I rowsort
SELECT + col1 * + col0 FROM tab1 AS cor0 WHERE NOT - 82 + + col0 IS NOT NULL
----

query II rowsort
SELECT - col0 AS col2, - 81 + + col2 AS col1 FROM tab0 AS cor0
----
-15
-34
-87
-71
-97
18

query II rowsort
SELECT col0, + 71 AS col1 FROM tab2 AS cor0
----
46
71
64
71
75
71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4453
SELECT * FROM tab2 AS cor0 WHERE NULL > CAST( NULL AS SIGNED ) + + ( - + 97 )
----

skipif mysql # not compatible
query III rowsort label-4453
SELECT * FROM tab2 AS cor0 WHERE NULL > CAST ( NULL AS INTEGER ) + + ( - + 97 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4454
SELECT ALL + + 25 * + COUNT( + col2 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4454
SELECT ALL + + 25 * + COUNT ( + col2 ) AS col0 FROM tab2 AS cor0
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( - col0 ) * + col0 - - col0 FROM tab2 AS cor0 WHERE - 83 < + - 80 * 17 - ( 40 ) * + + col2 * 97 * ( + - col1 ) * - - col2
----
2162
4160
5700

query I rowsort
SELECT DISTINCT + 5 * + - ( + col1 ) - - col0 + - 80 FROM tab1 AS cor0
----
-20
-224
-99

query I rowsort
SELECT ALL - 20 + + ( - 82 ) * + 54 FROM tab2
----
-4448
-4448
-4448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4459
SELECT DISTINCT CAST( NULL AS SIGNED ) + 31 FROM tab2, tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4459
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 31 FROM tab2, tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4460
SELECT + COUNT( * ) + + + MIN( - col0 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4460
SELECT + COUNT ( * ) + + + MIN ( - col0 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 + - + 41 FROM tab2
----
23
34
5

query I rowsort
SELECT - + 13 AS col0 FROM tab0 WHERE col1 + - col2 - + 50 IS NULL
----

query I rowsort
SELECT col1 + 68 * col1 * - - col1 * + col1 + - - 47 + - col2 * col2 AS col0 FROM tab2
----
20448634
31042768
9019837

query II rowsort
SELECT col2 + ( 48 ) AS col0, col0 AS col2 FROM tab0
----
147
97
58
87
95
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT DISTINCT 3 + - + col0 AS col2 FROM tab0 WHERE NOT + ( + - CAST( - col0 AS SIGNED ) ) * - 52 <> NULL
----

skipif mysql # not compatible
query I rowsort label-4465
SELECT DISTINCT 3 + - + col0 AS col2 FROM tab0 WHERE NOT + ( + - CAST ( - col0 AS INTEGER ) ) * - 52 <> NULL
----

query II rowsort
SELECT DISTINCT + + ( + + col2 ) AS col0, 39 * - + ( - 2 ) AS col1 FROM tab1 AS cor0
----
59
78
68
78
96
78

query I rowsort
SELECT + 20 FROM tab2 AS cor0 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT ALL 51 * col0 - - col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL 51 * col0 - - col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE ( + + col1 ) + + - col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT ALL col0 + + + ( + 52 ) AS col0 FROM tab1
----
103
137
143

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND - col1 * col0
----

query I rowsort
SELECT DISTINCT + 51 * + - 51 FROM tab0 AS cor0
----
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL + + SUM( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL + + SUM ( DISTINCT col0 ) AS col2 FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4474
SELECT - col1 * + col0 FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4474
SELECT - col1 * + col0 FROM tab2 WHERE NOT CAST ( NULL AS REAL ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4475
SELECT + + 92 col2 FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) * - 72 IS NOT NULL
----
92
92
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4475
SELECT + + 92 col2 FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) * - 72 IS NOT NULL
----
92
92
92

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT + 15 * + MIN( DISTINCT + + 89 ) FROM tab0
----
1335

skipif mysql # not compatible
query I rowsort label-4476
SELECT + 15 * + MIN ( DISTINCT + + 89 ) FROM tab0
----
1335

query II rowsort
SELECT + ( + - col0 ) AS col0, - col2 FROM tab1
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query II rowsort label-4478
SELECT + ( COUNT( * ) ), + 82 col2 FROM tab1
----
3
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4478
SELECT + ( COUNT ( * ) ), + 82 col2 FROM tab1
----
3
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 - - col2 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4480
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT - 96 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4482
SELECT + SUM( + 72 ) AS col2 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-4482
SELECT + SUM ( + 72 ) AS col2 FROM tab0
----
216

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + col0 ) * - col1 * - + ( + col1 ) col1 FROM tab1 AS cor0
----
201019
2125
9996

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4485
SELECT - CAST( NULL AS SIGNED ) + col0 + col2 * + 56 + - col0 / + col0 * CAST( + + col2 AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4485
SELECT - CAST ( NULL AS INTEGER ) + col0 + col2 * + 56 + - col0 / + col0 * CAST ( + + col2 AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 93 * - 59 AS col1 FROM tab1 AS cor0
----
-5487
-5487
-5487

query I rowsort
SELECT 55 + - col1 * + ( - 37 ) FROM tab1 AS cor0
----
1794
240
573

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) <= + col2
----

query I rowsort
SELECT DISTINCT + + 58 * - - col0 + - 84 AS col2 FROM tab0 AS cor0
----
4962
5542
786

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + - col2 col0 FROM tab2
----
-112
-129
-147

query III rowsort
SELECT * FROM tab2 WHERE + - 26 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4492
SELECT col0 / - + col2 * CAST( NULL AS SIGNED ) FROM tab2 WHERE + + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4492
SELECT col0 / - + col2 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4493
SELECT + col1 AS col0, + col0 DIV - col0 + col1 FROM tab0
----
1
0
21
20
81
80

skipif mysql # not compatible
query II rowsort label-4493
SELECT + col1 AS col0, + col0 / - col0 + col1 FROM tab0
----
1
0
21
20
81
80

query I rowsort
SELECT ALL 74 + ( - + col2 ) FROM tab0
----
-25
27
64

query I rowsort
SELECT ALL 1 + + 59 AS col0 FROM tab2
----
60
60
60

query I rowsort
SELECT ALL ( - - col2 ) * col2 + 31 - + 8 AS col2 FROM tab1
----
3504
4647
9239

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4498
SELECT + COUNT( * ), MIN( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3
-99

skipif mysql # not compatible
query II rowsort label-4498
SELECT + COUNT ( * ), MIN ( - ( + col2 ) ) AS col2 FROM tab0 AS cor0
----
3
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + 38 col0 FROM tab2 cor0
----
-1520
-2204
-874

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT ALL - col0 DIV col2 + + - col0 AS col2 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-4500
SELECT ALL - col0 / col2 + + - col0 AS col2 FROM tab2 AS cor0
----
-48
-65
-76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4501
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4501
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 - ( - - ( + col1 ) ) FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4503
SELECT 13 - COUNT( * ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4503
SELECT 13 - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT ALL - CAST( + col1 AS SIGNED ) + + 55 AS col1 FROM tab0 AS cor0
----
-26
34
54

skipif mysql # not compatible
query I rowsort label-4504
SELECT ALL - CAST ( + col1 AS INTEGER ) + + 55 AS col1 FROM tab0 AS cor0
----
-26
34
54

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
46
64
75

query I rowsort
SELECT DISTINCT col1 * - - col0 * - - ( + 79 ) FROM tab0 WHERE - + col0 IS NOT NULL
----
144333
7663
95985

query I rowsort
SELECT + 79 * - 75 AS col2 FROM tab0 cor0
----
-5925
-5925
-5925

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 * col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col1 * col0 ) IS NOT NULL
----
0

query I rowsort
SELECT ALL 28 AS col0 FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
28
28
28

query I rowsort
SELECT + + 91 * - 1 FROM tab1 AS cor0
----
-91
-91
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4511
SELECT ALL - + col2 DIV CAST( - - col2 AS SIGNED ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4511
SELECT ALL - + col2 / CAST ( - - col2 AS INTEGER ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4512
SELECT 96 DIV + MAX( + ( - + 65 ) ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-4512
SELECT 96 / + MAX ( + ( - + 65 ) ) AS col2 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-4513
SELECT ALL 70 col0, col1 DIV col1 + 56 col0 FROM tab2 AS cor0
----
70
57
70
57
70
57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4513
SELECT ALL 70 col0, col1 / col1 + 56 col0 FROM tab2 AS cor0
----
70
57
70
57
70
57

query II rowsort
SELECT + 77 AS col1, + 34 AS col0 FROM tab0 AS cor0
----
77
34
77
34
77
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col2 FROM tab1 cor0 WHERE NOT NULL BETWEEN 5 * - - col0 AND - 67
----

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - 95 FROM tab2 AS cor0
----
-118
-135
-153

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) * - 37 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-4518
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) * - 37 FROM tab1
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT ALL - MIN( DISTINCT col1 ) * 20 + COUNT( * ) * 37 col2 FROM tab1
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4519
SELECT ALL - MIN ( DISTINCT col1 ) * 20 + COUNT ( * ) * 37 col2 FROM tab1
----
11

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4521
SELECT * FROM tab1 WHERE NOT col2 * col1 + col1 NOT IN ( col1 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4521
SELECT * FROM tab1 WHERE NOT col2 * col1 + col1 NOT IN ( col1 - + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - AVG ( DISTINCT col2 ) FROM tab0 WHERE col2 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= ( + 20 )
----

query I rowsort
SELECT ALL 74 + + col1 AS col2 FROM tab1
----
121
79
88

query I rowsort
SELECT ALL 31 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 70 * - col0 ) NOT BETWEEN NULL AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT MAX( DISTINCT 66 ) AS col2 FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-4527
SELECT MAX ( DISTINCT 66 ) AS col2 FROM tab2
----
66

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( 2 * - col0 + col2 )
----

query I rowsort
SELECT ALL + ( - 28 ) * col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( col2 ) - + col2 AS col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * + col1 <> NULL
----

query I rowsort
SELECT DISTINCT + 43 + - col2 FROM tab0
----
-4
-56
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4533
SELECT - MIN( ALL + col0 ) * - COUNT( * ) FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-4533
SELECT - MIN ( ALL + col0 ) * - COUNT ( * ) FROM tab1
----
153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4534
SELECT - ( - col1 ) * + CAST( + 50 * - col1 AS SIGNED ) FROM tab0
----
-22050
-328050
-50

skipif mysql # not compatible
query I rowsort label-4534
SELECT - ( - col1 ) * + CAST ( + 50 * - col1 AS INTEGER ) FROM tab0
----
-22050
-328050
-50

query I rowsort
SELECT ALL 37 FROM tab2 WHERE NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT + COUNT( + 53 ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4536
SELECT + COUNT ( + 53 ) * COUNT ( * ) AS col2 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4537
SELECT + ( + COUNT( * ) ) * COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4537
SELECT + ( + COUNT ( * ) ) * COUNT ( * ) AS col1 FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4538
SELECT + 54 AS col0 FROM tab2 WHERE NULL IN ( + CAST( NULL AS SIGNED ) * col0 )
----

skipif mysql # not compatible
query I rowsort label-4538
SELECT + 54 AS col0 FROM tab2 WHERE NULL IN ( + CAST ( NULL AS INTEGER ) * col0 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE col0 * - ( col1 * 25 ) NOT BETWEEN ( col0 ) AND NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 * col2 IN ( ( + ( - 73 ) ) * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4541
SELECT DISTINCT - COUNT( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4541
SELECT DISTINCT - COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4542
SELECT ALL + CAST( 93 AS SIGNED ) AS col2 FROM tab2 cor0
----
93
93
93

skipif mysql # not compatible
query I rowsort label-4542
SELECT ALL + CAST ( 93 AS INTEGER ) AS col2 FROM tab2 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-4543
SELECT ALL SUM( 58 ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4543
SELECT ALL SUM ( 58 ) FROM tab1 AS cor0
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT SUM( - 75 ) * COUNT( * ) AS col2 FROM tab0
----
-675

skipif mysql # not compatible
query I rowsort label-4544
SELECT SUM ( - 75 ) * COUNT ( * ) AS col2 FROM tab0
----
-675

query I rowsort
SELECT ALL 72 * 53 FROM tab2
----
3816
3816
3816

query I rowsort
SELECT col1 FROM tab2 WHERE NOT + col1 > 54
----
51

query I rowsort
SELECT + 86 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT ALL + col2 * + 15 FROM tab1
----
1020
1440
885

query I rowsort
SELECT ALL 57 * 68 AS col1 FROM tab1
----
3876
3876
3876

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT - COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4551
SELECT - COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab1
----
-9

query I rowsort
SELECT + col1 * 98 + + col0 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ( col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4554
SELECT ALL col2 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4554
SELECT ALL col2 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4555
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4555
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( - col0 ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 - - col0 * + col2 ) BETWEEN NULL AND ( col2 * col2 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4557
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE 38 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4557
SELECT ALL col2 AS col0 FROM tab1 AS cor0 WHERE 38 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4558
SELECT DISTINCT 66 DIV + col0 col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4558
SELECT DISTINCT 66 / + col0 col0 FROM tab1 AS cor0
----
0
1

query I rowsort
SELECT + col0 * 73 FROM tab1 AS cor0
----
3723
6205
6643

query I rowsort
SELECT + col1 * + 24 AS col1 FROM tab1
----
1128
120
336

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) <= - col2 + col1
----
97
1
99

onlyif mysql # DIV for integer division: 
query I rowsort label-4562
SELECT + col2 DIV - 88 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4562
SELECT + col2 / - 88 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT CAST( + col0 AS SIGNED ) + - ( - 42 ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + col2 AS col1 FROM tab1 AS cor0 WHERE NOT CAST ( + col0 AS INTEGER ) + - ( - 42 ) IS NULL
----
59
68
96

query I rowsort
SELECT ALL 75 AS col2 FROM tab2 AS cor0 WHERE NOT ( + col1 * col2 ) BETWEEN col1 AND + 72
----
75
75
75

query II rowsort
SELECT ALL - 34 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
-34
15
-34
87
-34
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 col1 FROM tab1 cor0 WHERE + 28 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4568
SELECT ALL + 35 AS col1, - MAX( + ( 28 ) ) AS col0 FROM tab0 AS cor0
----
35
-28

skipif mysql # not compatible
query II rowsort label-4568
SELECT ALL + 35 AS col1, - MAX ( + ( 28 ) ) AS col0 FROM tab0 AS cor0
----
35
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4569
SELECT COUNT( * ) * + MIN( + CAST( NULL AS SIGNED ) ) + COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT COUNT ( * ) * + MIN ( + CAST ( NULL AS INTEGER ) ) + COUNT ( * ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 11 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col2 AS col1, col2 AS col2 FROM tab1 cor0
----
-59
59
-68
68
-96
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4572
SELECT col1 FROM tab0 WHERE + col0 / + col1 = CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-4572
SELECT col1 FROM tab0 WHERE + col0 / + col1 = CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4573
SELECT 31 DIV - col0 AS col1, + col2 FROM tab0
----
-2
47
0
10
0
99

skipif mysql # not compatible
query II rowsort label-4573
SELECT 31 / - col0 AS col1, + col2 FROM tab0
----
-2
47
0
10
0
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4574
SELECT DISTINCT + 38 * + 81 * - - col2 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4574
SELECT DISTINCT + 38 * + 81 * - - col2 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4575
SELECT DISTINCT 48 + + - CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4575
SELECT DISTINCT 48 + + - CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4576
SELECT col0 FROM tab0 WHERE NULL <= - + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4576
SELECT col0 FROM tab0 WHERE NULL <= - + CAST ( - col2 AS INTEGER )
----

query I rowsort
SELECT ALL col0 FROM tab2 WHERE - col1 NOT BETWEEN ( NULL ) AND ( + 94 )
----

query I rowsort
SELECT ALL + 32 + - 78 AS col0 FROM tab1
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4579
SELECT ALL - col1 - col0 col1, CAST( 97 AS SIGNED ) FROM tab1
----
-138
97
-65
97
-90
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4579
SELECT ALL - col1 - col0 col1, CAST ( 97 AS INTEGER ) FROM tab1
----
-138
97
-65
97
-90
97

query I rowsort
SELECT DISTINCT 94 + + col1 AS col0 FROM tab1
----
108
141
99

query I rowsort
SELECT DISTINCT + 59 * - col0 - - col1 AS col1 FROM tab0
----
-5112
-5722
-804

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4582
SELECT ALL - 73 DIV + COUNT( * ) + - CAST( + AVG ( DISTINCT + ( + 89 ) ) AS SIGNED ) AS col0 FROM tab1
----
-113

skipif mysql # not compatible
query I rowsort label-4582
SELECT ALL - 73 / + COUNT ( * ) + - CAST ( + AVG ( DISTINCT + ( + 89 ) ) AS INTEGER ) AS col0 FROM tab1
----
-113

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + - 69 ) > + col0 + + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4584
SELECT DISTINCT - CAST( - COUNT( * ) AS SIGNED ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4584
SELECT DISTINCT - CAST ( - COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) FROM tab0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-4585
SELECT + + col1 DIV ( - - 86 ) DIV 41 - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4585
SELECT + + col1 / ( - - 86 ) / 41 - col1 AS col0 FROM tab0 AS cor0
----
-1
-21
-81

query II rowsort
SELECT ALL col2 AS col0, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4587
SELECT DISTINCT COUNT( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4587
SELECT DISTINCT COUNT ( ALL + col0 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4588
SELECT ALL + 47 * COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0 WHERE col0 * + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4588
SELECT ALL + 47 * COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 * + - col0 IS NULL
----
0

query I rowsort
SELECT ALL - - col1 + col2 FROM tab1 cor0 WHERE + col1 + + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - 69 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4591
SELECT + + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4591
SELECT + + CAST ( - - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0
----
3

query II rowsort
SELECT DISTINCT + + 43 AS col2, - 84 AS col2 FROM tab1 AS cor0
----
43
-84

query I rowsort
SELECT DISTINCT - col1 * + 96 AS col2 FROM tab0
----
-2016
-7776
-96

query I rowsort
SELECT - col1 * + col1 FROM tab2 WHERE NOT - - col0 + - + col1 * - 47 + - - ( - col0 ) >= - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4595
SELECT * FROM tab0 WHERE NOT ( ( ( - col2 ) <> - CAST( - ( + col2 ) AS SIGNED ) / col0 ) )
----

skipif mysql # not compatible
query III rowsort label-4595
SELECT * FROM tab0 WHERE NOT ( ( ( - col2 ) <> - CAST ( - ( + col2 ) AS INTEGER ) / col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4596
SELECT ALL 87 DIV - col0 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4596
SELECT ALL 87 / - col0 AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT 28, + col2 AS col2, + col1 FROM tab1
----
9 values hashing to 8c1aa6a26a4953ace019838bf2a55aed

onlyif mysql # aggregate syntax: 
query I rowsort label-4599
SELECT ALL - COUNT( * ) + + MAX( + 20 ) AS col1 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-4599
SELECT ALL - COUNT ( * ) + + MAX ( + 20 ) AS col1 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT DISTINCT COUNT( ALL + 98 ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4600
SELECT DISTINCT COUNT ( ALL + 98 ) * COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4601
SELECT ALL - MIN( DISTINCT + ( - col0 ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-4601
SELECT ALL - MIN ( DISTINCT + ( - col0 ) ) AS col1 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 33 * - col2 * col2 FROM tab1
----
-114873
-152592
-304128

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT ALL col0 DIV - - col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4604
SELECT ALL col0 / - - col1 AS col0 FROM tab0
----
0
4
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4605
SELECT - - CAST( NULL AS SIGNED ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4605
SELECT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT - MAX( ALL + 69 ) AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4606
SELECT - MAX ( ALL + 69 ) AS col1 FROM tab2 AS cor0
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-4607
SELECT 61 + - 80 DIV - col1 + - col1 FROM tab0 AS cor0
----
-20
140
43

skipif mysql # not compatible
query I rowsort label-4607
SELECT 61 + - 80 / - col1 + - col1 FROM tab0 AS cor0
----
-20
140
43

query I rowsort
SELECT DISTINCT + col1 FROM tab0 cor0 WHERE col2 BETWEEN + col0 AND 58 * col0 + - col1
----
1
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > col2
----

query I rowsort
SELECT 17 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query II rowsort
SELECT + col0 * + 47, + col1 AS col2 FROM tab0
----
4089
21
4559
1
705
81

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 63, 52 )
----

query I rowsort
SELECT ALL + - col1 * - + 35 AS col1 FROM tab2 AS cor0
----
1785
2345
2695

onlyif mysql # aggregate syntax: 
query I rowsort label-4614
SELECT ALL + + COUNT( DISTINCT + - ( col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4614
SELECT ALL + + COUNT ( DISTINCT + - ( col2 ) ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL + + ( + col1 ) AS col1, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT - col0 + + + col2 * 76 * + + 88 - - 39 FROM tab0 cor0 WHERE ( - 67 ) >= + col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT - + 25 NOT BETWEEN - - col2 AND NULL ) OR col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE 0 NOT IN ( - col1 * + + 35 * - col1 + + ( + col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 + + col1 * - col1 FROM tab2
----
-2550
-4422
-5852

query I rowsort
SELECT - col0 * - + 68 / - 89 + - 63 AS col1 FROM tab1 WHERE + col2 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 - - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + ( col1 ) col2 FROM tab0
----
-66
-96
66

query III rowsort
SELECT * FROM tab0 WHERE ( col1 / + + col1 ) IN ( - col2 )
----

query I rowsort
SELECT 36 * + ( - ( 37 ) ) + - col0 FROM tab0
----
-1347
-1419
-1429

query I rowsort
SELECT DISTINCT col2 - - + col1 + + + col2 AS col1 FROM tab2
----
157
183
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4626
SELECT - COUNT( ALL - col2 ) col2 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4626
SELECT - COUNT ( ALL - col2 ) col2 FROM tab1
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - ( + 91 ) FROM tab1 cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4629
SELECT ALL + 79 + - MIN( + 87 ) + + 25 + + MIN( DISTINCT - - 95 ) AS col1 FROM tab2 AS cor0
----
112

skipif mysql # not compatible
query I rowsort label-4629
SELECT ALL + 79 + - MIN ( + 87 ) + + 25 + + MIN ( DISTINCT - - 95 ) AS col1 FROM tab2 AS cor0
----
112

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT DISTINCT - 69 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-4630
SELECT DISTINCT - 69 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4631
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - - 76 AS SIGNED ) NOT BETWEEN NULL AND col2 * col0 + - col1 - + col2
----

skipif mysql # not compatible
query III rowsort label-4631
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - - 76 AS INTEGER ) NOT BETWEEN NULL AND col2 * col0 + - col1 - + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + + col1, col1 + col2 col1 FROM tab2 AS cor0
----
28
74
37
117
9
125

query I rowsort
SELECT ALL - + col1 * col2 + - 36 FROM tab2 AS cor0
----
-1209
-3116
-3922

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( - col2 ) <> ( col1 )
----
-51
-67
-77

query I rowsort
SELECT - ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1, + col2, - col2 )
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 WHERE + 28 BETWEEN col1 AND + + col0
----
51
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4637
SELECT DISTINCT + COUNT( * ) DIV - 2 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + COUNT ( * ) / - 2 AS col2 FROM tab0
----
-1

query I rowsort
SELECT + 43 + - col1 FROM tab1
----
-4
29
38

query I rowsort
SELECT DISTINCT + col0 + 56 * 1 * + 7 FROM tab1
----
443
477
483

query I rowsort
SELECT col0 * 61 + + col0 * 67 AS col2 FROM tab0
----
11136
12416
1920

query I rowsort
SELECT ALL - 96 + col1 FROM tab0
----
-15
-75
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - 10 + - COUNT( * ) * - 72 + + 55 - + ( - MAX( + ( + - col0 ) ) ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-4642
SELECT - 10 + - COUNT ( * ) * - 72 + + 55 - + ( - MAX ( + ( + - col0 ) ) ) FROM tab1
----
210

query I rowsort
SELECT + + ( + + col0 ) FROM tab2 WHERE - col2 / + 55 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4644
SELECT ALL + 69 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4644
SELECT ALL + 69 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4645
SELECT + col1 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-4645
SELECT + col1 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( 44 ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 * + col1 * + col1 FROM tab1 cor0
----
103823
125
2744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 76 col2 FROM tab1 AS cor0 WHERE ( - col0 IS NULL )
----

query I rowsort
SELECT - 42 AS col0 FROM tab2 cor0 WHERE ( NOT - 46 IS NULL )
----
-42
-42
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4650
SELECT * FROM tab0 AS cor0 WHERE + CAST( - + 61 AS SIGNED ) * + + 6 * + col2 IN ( + 65 )
----

skipif mysql # not compatible
query III rowsort label-4650
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - + 61 AS INTEGER ) * + + 6 * + col2 IN ( + 65 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4651
SELECT ALL + 86 + + COUNT( * ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-4651
SELECT ALL + 86 + + COUNT ( * ) FROM tab2
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4652
SELECT DISTINCT + 92 + - ( - + COUNT( + ( col2 ) ) ) col2 FROM tab1
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4652
SELECT DISTINCT + 92 + - ( - + COUNT ( + ( col2 ) ) ) col2 FROM tab1
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT ALL - 59 + - COUNT( * ) FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-4653
SELECT ALL - 59 + - COUNT ( * ) FROM tab0
----
-62

query I rowsort
SELECT ALL - col2 + - 40 * + col0 FROM tab0
----
-3490
-3979
-647

query I rowsort
SELECT 44 * - 59 + - col0 AS col1 FROM tab2 AS cor0
----
-2642
-2660
-2671

onlyif mysql # DIV for integer division: 
query II rowsort label-4656
SELECT DISTINCT col2 * - col1 + - col1 + + + 46 AS col0, + col0 DIV - 57 AS col1 FROM tab2 AS cor0
----
-1178
0
-3111
-1
-3907
-1

skipif mysql # not compatible
query II rowsort label-4656
SELECT DISTINCT col2 * - col1 + - col1 + + + 46 AS col0, + col0 / - 57 AS col1 FROM tab2 AS cor0
----
-1178
0
-3111
-1
-3907
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 WHERE 42 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4657
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 WHERE 42 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT + - ( - 26 ) * col0 AS col2 FROM tab0 AS cor0
----
2262
2522
390

query I rowsort
SELECT ALL - + col0 + - - 77 FROM tab2 AS cor0 WHERE NOT + col0 * + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + col2 ) * + col1 * - + col0 AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
-18270
-57105
-9603

query I rowsort
SELECT - ( + 63 ) FROM tab1 AS cor0
----
-63
-63
-63

query I rowsort
SELECT ALL - + 6 + - col1 + - col0 FROM tab0 AS cor0
----
-102
-104
-114

query III rowsort
SELECT * FROM tab1 WHERE + 95 * + col2 * col2 * 45 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 * + 97 * 39 col1 FROM tab0
----
37077183
378300
8356647

onlyif mysql # aggregate syntax: 
query I rowsort label-4665
SELECT COUNT( * ) - + 98 AS col1 FROM tab2, tab0 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-4665
SELECT COUNT ( * ) - + 98 AS col1 FROM tab2, tab0 AS cor0
----
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-4666
SELECT SUM( ALL 99 ) FROM tab1 cor0
----
297

skipif mysql # not compatible
query I rowsort label-4666
SELECT SUM ( ALL 99 ) FROM tab1 cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + ( + col1 ) col2 FROM tab0 AS cor0 WHERE - - col2 < - + 98 OR NOT NULL IS NOT NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4668
SELECT COUNT( - 31 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4668
SELECT COUNT ( - 31 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT 32 * col0 AS col2 FROM tab0
----
2784
3104
480

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + 12 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT ( 50 ) AS col2 FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4672
SELECT SUM( + 37 ) FROM tab0 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4672
SELECT SUM ( + 37 ) FROM tab0 AS cor0
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT + COUNT( DISTINCT - + col1 ) * + COUNT( 83 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4673
SELECT + COUNT ( DISTINCT - + col1 ) * + COUNT ( 83 ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 93 + 14 FROM tab1 AS cor0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-4675
SELECT ALL COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) < + 62
----
3

skipif mysql # not compatible
query I rowsort label-4675
SELECT ALL COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( - col2 ) < + 62
----
3

query I rowsort
SELECT - col0 * - col2 FROM tab2 AS cor0 WHERE + col2 IS NOT NULL
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4677
SELECT ALL + 50 + - - ( col1 ) AS col0, - col1 * - CAST( col0 AS SIGNED ) FROM tab0 WHERE ( - col1 ) * - - col2 + - col1 IS NOT NULL
----
131
1215
51
97
71
1827

skipif mysql # not compatible
query II rowsort label-4677
SELECT ALL + 50 + - - ( col1 ) AS col0, - col1 * - CAST ( col0 AS INTEGER ) FROM tab0 WHERE ( - col1 ) * - - col2 + - col1 IS NOT NULL
----
131
1215
51
97
71
1827

query III rowsort
SELECT * FROM tab1 WHERE - - col0 + col2 < 82
----

query II rowsort
SELECT + 60 + - 8 AS col0, - col1 - 42 + - + 47 * - col0 AS col0 FROM tab2
----
52
2069
52
2889
52
3416

query I rowsort
SELECT - col1 * + ( + col0 ) + + col1 FROM tab0
----
-1134
-1806
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT ALL 61 * COUNT( * ) AS col2 FROM tab1
----
183

skipif mysql # not compatible
query I rowsort label-4681
SELECT ALL 61 * COUNT ( * ) AS col2 FROM tab1
----
183

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 12 <= NULL AND - col2 NOT IN ( + col0, col1 )
----

query I rowsort
SELECT DISTINCT 98 FROM tab2 AS cor0 WHERE ( col0 * + 71 * - col2 ) > col0
----

query I rowsort
SELECT DISTINCT - - col0 * + - col1 * + col1 AS col1 FROM tab2 cor0
----
-119646
-336675
-379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT - MIN( - + 83 ) AS col1 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-4685
SELECT - MIN ( - + 83 ) AS col1 FROM tab0
----
83

onlyif mysql # DIV for integer division: 
query I rowsort label-4686
SELECT ( + 78 ) - + 57 DIV - + col0 AS col2 FROM tab1
----
78
78
79

skipif mysql # not compatible
query I rowsort label-4686
SELECT ( + 78 ) - + 57 / - + col0 AS col2 FROM tab1
----
78
78
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4687
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE + col1 BETWEEN col0 * + + col1 * col2 + + + CAST( NULL AS SIGNED ) + + 25 AND + - 80
----
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE + col1 BETWEEN col0 * + + col1 * col2 + + + CAST ( NULL AS INTEGER ) + + 25 AND + - 80
----
0

query I rowsort
SELECT DISTINCT - + 7 - col2 FROM tab2 cor0
----
-30
-47
-65

query I rowsort
SELECT ALL - 47 - - col1 FROM tab2 AS cor0
----
20
30
4

query I rowsort
SELECT - - col1 - 69 FROM tab0 AS cor0
----
-48
-68
12

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 NOT BETWEEN - 75 * - - col1 AND 9
----

query I rowsort
SELECT DISTINCT 89 - + col1 + + 48 AS col2 FROM tab1 AS cor0
----
123
132
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT + 17 * + - COUNT( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4693
SELECT + 17 * + - COUNT ( * ) FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4694
SELECT + + MAX( ALL + - 5 ) FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4694
SELECT + + MAX ( ALL + - 5 ) FROM tab2 AS cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4695
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - - 83 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4695
SELECT * FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - - 83 / col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 4 IN ( + 57 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 + 2 FROM tab1
----
59
87
68
93
96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL - COUNT( * ) * + COUNT( * ) * - ( + - COUNT( * ) ) + - 42 AS col2 FROM tab0 WHERE NOT - + 60 * col2 * - col0 IS NOT NULL
----
-42

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL - COUNT ( * ) * + COUNT ( * ) * - ( + - COUNT ( * ) ) + - 42 AS col2 FROM tab0 WHERE NOT - + 60 * col2 * - col0 IS NOT NULL
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL - MIN( ALL - col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL - MIN ( ALL - col0 ) AS col2 FROM tab1
----
91

query II rowsort
SELECT DISTINCT - col1 AS col0, col1 AS col0 FROM tab0
----
-1
1
-21
21
-81
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 col1 FROM tab0 WHERE NOT col2 IS NULL
----
-87
-87
-87

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4702
SELECT + COUNT( * ) DIV COUNT( * ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4702
SELECT + COUNT ( * ) / COUNT ( * ) AS col0 FROM tab1
----
1

query I rowsort
SELECT 92 * - - 33 AS col0 FROM tab0
----
3036
3036
3036

query I rowsort
SELECT ALL ( + + 43 ) FROM tab1
----
43
43
43

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - 32 * - 58 FROM tab0 AS cor0
----
1856

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 / 50 col2 FROM tab2 AS cor0 WHERE ( NOT - col2 - - col0 > NULL )
----

query I rowsort
SELECT col2 * col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( - 64 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT - COUNT( * ) + 74 + 27 * 10 AS col1 FROM tab0 cor0
----
341

skipif mysql # not compatible
query I rowsort label-4711
SELECT - COUNT ( * ) + 74 + 27 * 10 AS col1 FROM tab0 cor0
----
341

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4712
SELECT DISTINCT + CAST( + ( col2 ) AS SIGNED ) FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-4712
SELECT DISTINCT + CAST ( + ( col2 ) AS INTEGER ) FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 + - col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4714
SELECT + 41 DIV col2 DIV + col2 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-4714
SELECT + 41 / col2 / + col2 + - + col2 AS col0 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4715
SELECT ALL + col1 DIV - 63 + + col1 col0 FROM tab0
----
1
21
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4715
SELECT ALL + col1 / - 63 + + col1 col0 FROM tab0
----
1
21
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 55 col1 FROM tab0 WHERE - 45 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4717
SELECT + CAST( + col0 AS SIGNED ) col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4717
SELECT + CAST ( + col0 AS INTEGER ) col1 FROM tab2
----
46
64
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4718
SELECT DISTINCT - col1 DIV col2 + + 5 FROM tab2
----
3
4

skipif mysql # not compatible
query I rowsort label-4718
SELECT DISTINCT - col1 / col2 + + 5 FROM tab2
----
3
4

query III rowsort
SELECT * FROM tab0 WHERE - + col2 / + - 82 IN ( + + col1 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4720
SELECT DISTINCT COUNT( + + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4720
SELECT DISTINCT COUNT ( + + col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - 89 col0 FROM tab2 AS cor0
----
-14
-25
-43

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4722
SELECT * FROM tab1 WHERE CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4722
SELECT * FROM tab1 WHERE CAST ( + col2 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT DISTINCT + + COUNT( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4723
SELECT DISTINCT + + COUNT ( * ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT SUM( ALL - col1 ) AS col2 FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4724
SELECT SUM ( ALL - col1 ) AS col2 FROM tab2 cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 col1 FROM tab1 AS cor0
----
-67
-67
-67

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 11 IN ( 6 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4727
SELECT * FROM tab0 WHERE NOT - col2 + - + 32 >= + col2 * - - CAST( NULL AS SIGNED ) + - - col0
----

skipif mysql # not compatible
query III rowsort label-4727
SELECT * FROM tab0 WHERE NOT - col2 + - + 32 >= + col2 * - - CAST ( NULL AS INTEGER ) + - - col0
----

query I rowsort
SELECT DISTINCT 8 * + + 91 FROM tab0
----
728

query I rowsort
SELECT DISTINCT ( col2 ) * col0 AS col0 FROM tab2
----
1058
2560
4350

query I rowsort
SELECT ALL - 24 * + col1 FROM tab2
----
-1224
-1608
-1848

onlyif mysql # aggregate syntax: 
query I rowsort label-4731
SELECT DISTINCT + + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 + - + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4731
SELECT DISTINCT + + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE - col1 + - + col2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4732
SELECT + CAST( - 10 AS SIGNED ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4732
SELECT + CAST ( - 10 AS INTEGER ) col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

query I rowsort
SELECT + + col2 * + col1 + - 7 + - + col2 * + + 47 AS col2 FROM tab1 AS cor0
----
-2485
-3175
-7

onlyif mysql # aggregate syntax: 
query II rowsort label-4734
SELECT ALL + COUNT( * ) AS col1, + COUNT( * ) + + - COUNT( * ) FROM tab1 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-4734
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) + + - COUNT ( * ) FROM tab1 AS cor0
----
3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + col1 * col1 col2 FROM tab0 AS cor0
----
1
531441
9261

query I rowsort
SELECT ALL + col1 + + 58 * + col0 FROM tab0
----
5067
5627
951

query I rowsort
SELECT DISTINCT 68 + col2 FROM tab0
----
115
167
78

query I rowsort
SELECT - 87 + - 25 AS col1 FROM tab0
----
-112
-112
-112

query I rowsort
SELECT ( + + 80 ) AS col2 FROM tab2
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4740
SELECT DISTINCT COUNT( DISTINCT - col2 ) / AVG ( ALL + + CAST( NULL AS SIGNED ) ) - - + MIN( + - col1 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4740
SELECT DISTINCT COUNT ( DISTINCT - col2 ) / AVG ( ALL + + CAST ( NULL AS INTEGER ) ) - - + MIN ( + - col1 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT + 53 * COUNT( * ) AS col1 FROM tab0
----
159

skipif mysql # not compatible
query I rowsort label-4741
SELECT + 53 * COUNT ( * ) AS col1 FROM tab0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4742
SELECT DISTINCT + COUNT( ALL col1 ) col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4742
SELECT DISTINCT + COUNT ( ALL col1 ) col0 FROM tab0 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL >= col2 + - - col0 * - ( col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 90 * - col0 col0 FROM tab1 AS cor0
----
4590
7650
8190

onlyif mysql # aggregate syntax: 
query I rowsort label-4745
SELECT ALL + COUNT( DISTINCT - 76 ) FROM tab1 AS cor0 WHERE NOT - col1 / col2 NOT BETWEEN - + col0 AND + - col2
----
0

skipif mysql # not compatible
query I rowsort label-4745
SELECT ALL + COUNT ( DISTINCT - 76 ) FROM tab1 AS cor0 WHERE NOT - col1 / col2 NOT BETWEEN - + col0 AND + - col2
----
0

query I rowsort
SELECT 87 + + - col1 + - ( - 58 ) - + + col1 * + 8 * - ( col2 ) * + 82 + - 85 AS col2 FROM tab1 WHERE NOT + 46 / + col1 <= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4747
SELECT DISTINCT 59 * - - 54 / CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4747
SELECT DISTINCT 59 * - - 54 / CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT - COUNT( * ) * 18 AS col0 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-4748
SELECT - COUNT ( * ) * 18 AS col0 FROM tab0
----
-54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * 94 col1 FROM tab2
----
4324
6016
7050

query I rowsort
SELECT + col2 * - + col0 * - col2 AS col2 FROM tab0
----
33135
8700
950697

query I rowsort
SELECT - 40 - - + col1 + + col1 + - col0 FROM tab2 WHERE NOT ( NOT NULL <> col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4753
SELECT + MIN( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4753
SELECT + MIN ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1172c9a62bdad7db0def9205c06ee1f2

onlyif mysql # aggregate syntax: 
query I rowsort label-4755
SELECT ALL - ( + + MIN( ALL - 63 ) ) FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-4755
SELECT ALL - ( + + MIN ( ALL - 63 ) ) FROM tab2
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT DISTINCT 90 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT DISTINCT 90 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + col1 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL + + MIN( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL + + MIN ( DISTINCT col1 ) AS col2 FROM tab1 AS cor0
----
5

query II rowsort
SELECT ALL - - col1 AS col1, + 65 AS col0 FROM tab2 AS cor0
----
51
65
67
65
77
65

query II rowsort
SELECT DISTINCT - col0 AS col0, - 44 AS col0 FROM tab0 cor0
----
-15
-44
-87
-44
-97
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4761
SELECT DISTINCT - CAST( - 85 AS SIGNED ) * + col0 AS col0 FROM tab2 AS cor0
----
3910
5440
6375

skipif mysql # not compatible
query I rowsort label-4761
SELECT DISTINCT - CAST ( - 85 AS INTEGER ) * + col0 AS col0 FROM tab2 AS cor0
----
3910
5440
6375

query I rowsort
SELECT - col1 + col1 + col2 - - col1 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT - col0 AS col1 FROM tab1 cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ALL - + col1 AS col2, ( col2 ) AS col1 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

onlyif mysql # DIV for integer division: 
query II rowsort label-4765
SELECT - 24 DIV + 67, + col2 FROM tab0
----
0
10
0
47
0
99

skipif mysql # not compatible
query II rowsort label-4765
SELECT - 24 / + 67, + col2 FROM tab0
----
0
10
0
47
0
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4766
SELECT DISTINCT - COUNT( * ) + - ( - - 0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT - COUNT ( * ) + - ( - - 0 ) AS col2 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4767
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( col0 AS SIGNED ) + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4767
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( col0 AS INTEGER ) + CAST ( NULL AS REAL ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4768
SELECT + - CAST( NULL AS SIGNED ) + 59 FROM tab1 AS cor0 WHERE 10 + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4768
SELECT + - CAST ( NULL AS INTEGER ) + 59 FROM tab1 AS cor0 WHERE 10 + col0 IS NULL
----

query I rowsort
SELECT + - 75 - - col1 + + + col1 FROM tab0 cor0
----
-33
-73
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT - 49 + MAX( + ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-4770
SELECT - 49 + MAX ( + ( - col2 ) ) AS col2 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= 13 + - 93 * col1 + + ( + 95 )
----

query I rowsort
SELECT 38 + - - col0 FROM tab1 AS cor0
----
123
129
89

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 0 NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT 21 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c5272facdaaa11f884c8cc0d9d4f41c7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 9 col0 FROM tab0 cor0
----
9
9
9

query I rowsort
SELECT DISTINCT - + ( - ( - + col2 ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT col1 AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN 55 * - 23 AND - col0 + - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4779
SELECT DISTINCT COUNT( * ) * + - COUNT( - 4 ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4779
SELECT DISTINCT COUNT ( * ) * + - COUNT ( - 4 ) AS col2 FROM tab2
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + - ( + col0 ) IS NOT NULL
----

query II rowsort
SELECT ALL + col2, col0 + col1 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 69 * - col2 AS col1 FROM tab0
----
3243
6831
690

query I rowsort
SELECT col1 FROM tab0 WHERE NOT - - col2 IS NULL
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4784
SELECT - SUM( ALL - col1 ) * - + 20 + CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
-2057

skipif mysql # not compatible
query I rowsort label-4784
SELECT - SUM ( ALL - col1 ) * - + 20 + CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
-2057

onlyif mysql # aggregate syntax: 
query I rowsort label-4785
SELECT + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4785
SELECT + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab1 cor0
----
-9

query I rowsort
SELECT 98 AS col0 FROM tab2 AS cor0 WHERE NOT ( col1 ) * - + col0 NOT BETWEEN 5 AND - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, + 1 * - ( - + 80 ) col0 FROM tab2 AS cor0
----
-23
80
-40
80
-58
80

query II rowsort
SELECT ALL + + 39, + col0 * - col1 AS col0 FROM tab2 AS cor0
----
39
-2346
39
-4928
39
-5025

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 * 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT - COUNT( * ) + - MAX( 24 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-4790
SELECT - COUNT ( * ) + - MAX ( 24 ) AS col1 FROM tab0 WHERE NULL IS NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4791
SELECT ALL + + ( + MIN( DISTINCT 87 ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
87

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + + ( + MIN ( DISTINCT 87 ) ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
87

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col2 FROM tab2 cor0 WHERE ( 30 ) IS NULL
----

query II rowsort
SELECT ALL 10 * col0 * + 5 * col2, col2 FROM tab1 AS cor0
----
244800
96
250750
59
309400
68

query I rowsort
SELECT ALL - col0 * 71 FROM tab0 AS cor0
----
-1065
-6177
-6887

onlyif mysql # aggregate syntax: 
query II rowsort label-4795
SELECT 39 * - 92 AS col2, + ( + COUNT( * ) ) FROM tab1 AS cor0
----
-3588
3

skipif mysql # not compatible
query II rowsort label-4795
SELECT 39 * - 92 AS col2, + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
-3588
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 * 18 + + col0 col2 FROM tab1 AS cor0
----
-1133
-1139
-1173

onlyif mysql # DIV for integer division: 
query I rowsort label-4797
SELECT DISTINCT + 88 DIV 22 AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4797
SELECT DISTINCT + 88 / 22 AS col1 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4798
SELECT - 94 - - COUNT( * ) AS col2, + CAST( - 69 AS SIGNED ) + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-91
-72

skipif mysql # not compatible
query II rowsort label-4798
SELECT - 94 - - COUNT ( * ) AS col2, + CAST ( - 69 AS INTEGER ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-91
-72

query I rowsort
SELECT col0 * - col0 AS col0 FROM tab1 cor0 WHERE NULL IS NULL
----
-2601
-7225
-8281

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN - - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col2 FROM tab1
----
196
2209
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4802
SELECT ALL col2 DIV ( - + 88 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4802
SELECT ALL col2 / ( - + 88 ) FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT ALL + SUM( - col1 ) * - 98 AS col1 FROM tab2 WHERE NULL IS NULL
----
19110

skipif mysql # not compatible
query I rowsort label-4803
SELECT ALL + SUM ( - col1 ) * - 98 AS col1 FROM tab2 WHERE NULL IS NULL
----
19110

query I rowsort
SELECT col0 * + ( - col1 ) + 91 AS col2 FROM tab0
----
-1124
-1736
-6

query I rowsort
SELECT DISTINCT - ( + + 16 ) + - col1 AS col1 FROM tab0
----
-17
-37
-97

query I rowsort
SELECT - - 6 FROM tab0 WHERE + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4807
SELECT 95 DIV + ( - col0 ) + 60 FROM tab1
----
59
59
59

skipif mysql # not compatible
query I rowsort label-4807
SELECT 95 / + ( - col0 ) + 60 FROM tab1
----
59
59
59

query I rowsort
SELECT DISTINCT 88 + + 88 + - col2 AS col1 FROM tab2
----
118
136
153

query I rowsort
SELECT ALL + + 99 - - + col1 FROM tab0 AS cor0
----
100
120
180

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT ALL 35 * - SUM( DISTINCT + - col2 ) * COUNT( * ) + ( + ( + MAX( ALL - - 21 ) ) ) FROM tab2 AS cor0
----
12726

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL 35 * - SUM ( DISTINCT + - col2 ) * COUNT ( * ) + ( + ( + MAX ( ALL - - 21 ) ) ) FROM tab2 AS cor0
----
12726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT DISTINCT 63 col2, 28 AS col1, - col1 FROM tab1
----
9 values hashing to 8f0fcdd2f5a7bd6e60ed27d0bd432d47

query II rowsort
SELECT ALL - col2, + 53 AS col2 FROM tab1 AS cor0
----
-59
53
-68
53
-96
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT - - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 35
----
0

skipif mysql # not compatible
query I rowsort label-4813
SELECT - - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 35
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 17 <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN - col2 * - ( + 56 ) AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT col0 * col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL - col1 * - - CAST( + + 28 AS SIGNED ) col0 FROM tab1 cor0
----
-1316
-140
-392

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4817
SELECT ALL - col1 * - - CAST ( + + 28 AS INTEGER ) col0 FROM tab1 cor0
----
-1316
-140
-392

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 WHERE col2 / + 24 NOT BETWEEN + 20 AND NULL
----
-15
-87
-97

query I rowsort
SELECT - col0 + + 73 FROM tab1
----
-12
-18
22

query I rowsort
SELECT col2 * 75 + + col1 FROM tab2
----
1776
3077
4417

query I rowsort
SELECT DISTINCT - col0 + - ( - + col1 ) AS col2 FROM tab2
----
-8
13
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4822
SELECT ALL + CAST( MIN( - col1 ) AS SIGNED ) * - COUNT( * ) + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1
----
142

skipif mysql # not compatible
query I rowsort label-4822
SELECT ALL + CAST ( MIN ( - col1 ) AS INTEGER ) * - COUNT ( * ) + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1
----
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4823
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT col2 IS NULL
----
NULL

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4825
SELECT - + COUNT( 44 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4825
SELECT - + COUNT ( 44 ) FROM tab2 AS cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 cor0 JOIN tab1 AS cor1 ON NOT NULL NOT BETWEEN - 90 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4827
SELECT DISTINCT ( - ( - - 5 ) ) - 33 + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

skipif mysql # not compatible
query I rowsort label-4827
SELECT DISTINCT ( - ( - - 5 ) ) - 33 + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-29

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * col2 NOT BETWEEN + + col1 AND ( 23 )
----

query I rowsort
SELECT ALL + col0 - - + col1 FROM tab2 cor0
----
141
142
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4830
SELECT ALL + - CAST( - + col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-4830
SELECT ALL + - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + col1 * 53 * 50 - - col1 + + 2 * col1 FROM tab0 AS cor0
----
214893
2653
55713

query I rowsort
SELECT ALL + + 84 * - - col2 AS col1 FROM tab1 AS cor0
----
4956
5712
8064

onlyif mysql # aggregate syntax: 
query II rowsort label-4833
SELECT - COUNT( * ) AS col1, - COUNT( - col0 ) FROM tab2 AS cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-4833
SELECT - COUNT ( * ) AS col1, - COUNT ( - col0 ) FROM tab2 AS cor0
----
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + - col1 * + 7 col1 FROM tab2 cor0
----
-16422
-34496
-35175

query I rowsort
SELECT DISTINCT - col1 * - - 0 + + - ( - + 9 ) AS col1 FROM tab0 AS cor0
----
9

query II rowsort
SELECT col1 * - col2 * + 36, 38 AS col0 FROM tab2 AS cor0
----
-110880
38
-139896
38
-42228
38

query I rowsort
SELECT + 19 * + - col2 FROM tab0
----
-1881
-190
-893

query I rowsort
SELECT ALL + 58 * col0 * - col1 + - 87 AS col2 FROM tab1
----
-24737
-248153
-41499

query I rowsort
SELECT DISTINCT + col1 + + 73 AS col0 FROM tab1
----
120
78
87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) = - col2
----

query I rowsort
SELECT + col1 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
2624
4547
5969

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT DISTINCT + - COUNT( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4842
SELECT DISTINCT + - COUNT ( DISTINCT + col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4843
SELECT MAX( DISTINCT - - 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-4843
SELECT MAX ( DISTINCT - - 35 ) FROM tab0 AS cor0
----
35

query I rowsort
SELECT - - ( + 29 ) AS col1 FROM tab1 AS cor0
----
29
29
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 = - 88 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 * - 76 AS col0 FROM tab1
----
-3876
-6460
-6916

onlyif mysql # aggregate syntax: 
query I rowsort label-4847
SELECT ALL + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4847
SELECT ALL + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-9

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 BETWEEN - col2 AND NULL
----
85
5
59
91
47
68

query II rowsort
SELECT + - 16, 36 * - 84 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to 6dc7edf16c52f9b88de09ecfb9372dba

query I rowsort
SELECT - 11 AS col2 FROM tab0 AS cor0 WHERE NOT + 66 * - col0 = NULL
----

query I rowsort
SELECT ( + 92 ) AS col2 FROM tab1 AS cor0
----
92
92
92

query I rowsort
SELECT DISTINCT + + 54 AS col2 FROM tab0 AS cor0
----
54

query I rowsort
SELECT + ( + 54 ) AS col0 FROM tab2 AS cor0
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-4854
SELECT + col1 DIV - - col2 AS col2 FROM tab0 AS cor0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4854
SELECT + col1 / - - col2 AS col2 FROM tab0 AS cor0
----
0
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4855
SELECT CAST( NULL AS SIGNED ) * - - SUM( ALL 86 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4855
SELECT CAST ( NULL AS INTEGER ) * - - SUM ( ALL 86 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - col2 * col2 + - col0 AS col2 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT ALL - col1 + + ( - 96 ) + - + col2 + + 89 AS col2 FROM tab0
----
-107
-135
-38

query I rowsort
SELECT DISTINCT col0 + + - 46 FROM tab2
----
0
18
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT ALL - 27 * - + SUM( - 45 ) + - - SUM( + col0 ) AS col0 FROM tab2
----
-3460

skipif mysql # not compatible
query I rowsort label-4859
SELECT ALL - 27 * - + SUM ( - 45 ) + - - SUM ( + col0 ) AS col0 FROM tab2
----
-3460

query I rowsort
SELECT col2 + + 7 AS col0 FROM tab1
----
103
66
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4861
SELECT - SUM( DISTINCT + - col0 ) + - 20 * - 32 + - 23 AS col1 FROM tab0
----
816

skipif mysql # not compatible
query I rowsort label-4861
SELECT - SUM ( DISTINCT + - col0 ) + - 20 * - 32 + - 23 AS col1 FROM tab0
----
816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 43 * - col2 + + 72 col1 FROM tab2 AS cor0
----
-132368
-167026
-50367

onlyif mysql # aggregate syntax: 
query I rowsort label-4863
SELECT + + COUNT( * ) + + + 38 AS col2 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-4863
SELECT + + COUNT ( * ) + + + 38 AS col2 FROM tab0 AS cor0
----
41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4864
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4864
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * CAST ( + col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4865
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - - col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - - col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 88 * + col1 - + col0 FROM tab2
----
4442
5821
6712

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4867
SELECT DISTINCT + col2 + 17 AS col0, ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
40
NULL
57
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-4867
SELECT DISTINCT + col2 + 17 AS col0, ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
40
NULL
57
NULL
75
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 35 * + - col1 - + - col0 * col1 AS col2 FROM tab1 AS cor0
----
1204
5922
600

query I rowsort
SELECT ALL 50 AS col1 FROM tab2 cor0
----
50
50
50

query I rowsort
SELECT col0 * + col2 + + col1 + - col0 FROM tab2 AS cor0 WHERE col2 * - col1 * - ( - 53 ) IN ( col0 * + col1 + - + col1 + - ( - 61 ) + - 39 / + col1 * + col1, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4872
SELECT ALL COUNT( - + col0 ) FROM tab1 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * - col0 * col1 * + 76 + 37 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4872
SELECT ALL COUNT ( - + col0 ) FROM tab1 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col0 * col1 * + 76 + 37 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - col0 * + - 90 FROM tab2
----
4140
5760
6750

onlyif mysql # aggregate syntax: 
query I rowsort label-4874
SELECT DISTINCT COUNT( * ) + - COUNT( - col2 ) FROM tab0 WHERE NOT + - 16 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4874
SELECT DISTINCT COUNT ( * ) + - COUNT ( - col2 ) FROM tab0 WHERE NOT + - 16 > NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4875
SELECT 82 DIV - - col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4875
SELECT 82 / - - col0 AS col0 FROM tab2
----
1
1
1

query II rowsort
SELECT col2, + 64 FROM tab2
----
23
64
40
64
58
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4877
SELECT ( CAST( - col2 AS SIGNED ) ) AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4877
SELECT ( CAST ( - col2 AS INTEGER ) ) AS col2 FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN - 58 / + 73 AND - col1
----

query I rowsort
SELECT DISTINCT col2 + + + 45 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT - + col0 + 85 * + col2, 19 FROM tab1 AS cor0 WHERE col0 = - col1
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - 16 BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT ALL - MIN( - 82 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
82

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL - MIN ( - 82 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
82

query I rowsort
SELECT ALL col2 * + + 10 AS col0 FROM tab2
----
230
400
580

query I rowsort
SELECT ( 62 ) FROM tab0
----
62
62
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4885
SELECT * FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4885
SELECT * FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - - ( - + 5 ) ) IS NOT NULL
----

query I rowsort
SELECT 42 + - + 43 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT ALL 79 * - - 83 + - 87 + - 43 * + 40 * col0 AS col0 FROM tab2 AS cor0
----
-103610
-122530
-72650

query III rowsort
SELECT ALL * FROM tab2 WHERE 48 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 56 + col1 * - + 9 + - col1 AS col2 FROM tab0
----
-154
-754
46

query I rowsort
SELECT col1 * 2 * - col1 AS col2 FROM tab2
----
-11858
-5202
-8978

onlyif mysql # DIV for integer division: 
query I rowsort label-4892
SELECT DISTINCT - col2 DIV - 86 * + - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4892
SELECT DISTINCT - col2 / - 86 * + - col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT + - 57 + - MAX( - col0 ) FROM tab0 WHERE NULL <= + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT + - 57 + - MAX ( - col0 ) FROM tab0 WHERE NULL <= + + col1
----
NULL

query I rowsort
SELECT DISTINCT 2 * 62 + + 61 FROM tab2
----
185

query I rowsort
SELECT + - ( - + col1 ) FROM tab2 cor0 WHERE + 99 / + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 64 - + col2 col0 FROM tab1 cor0
----
-32
-4
5

query I rowsort
SELECT DISTINCT + - col0 + - - ( - col1 ) * - + col0 AS col1 FROM tab1 cor0
----
340
4186
663

onlyif mysql # aggregate syntax: 
query I rowsort label-4898
SELECT DISTINCT COUNT( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT COUNT ( DISTINCT - col1 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL <> + ( - 60 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4901
SELECT ALL 54 DIV 82 - + col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4901
SELECT ALL 54 / 82 - + col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + ( - 81 ) - + 62 AS col2 FROM tab2 AS cor0
----
-143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 + 56 * 11 * + col2 col1 FROM tab2 cor0
----
14214
24704
35803

query II rowsort
SELECT + col2, col0 AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - col2 - + 36 AS col1 FROM tab2 AS cor0
----
-59
-76
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 67 col0, - col1 FROM tab0 AS cor0
----
67
-1
67
-21
67
-81

query II rowsort
SELECT ALL col1 AS col2, + col0 + - ( - + 75 ) AS col2 FROM tab2 cor0 WHERE NOT - 17 - - col0 IS NULL
----
51
121
67
150
77
139

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT - MAX( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-4908
SELECT - MAX ( ALL + col0 ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT DISTINCT + 11 * SUM( DISTINCT - col0 ) FROM tab1
----
-2497

skipif mysql # not compatible
query I rowsort label-4909
SELECT DISTINCT + 11 * SUM ( DISTINCT - col0 ) FROM tab1
----
-2497

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 3
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4911
SELECT ALL col1, + col1 DIV col1 + 64 AS col0 FROM tab0
----
1
65
21
65
81
65

skipif mysql # not compatible
query II rowsort label-4911
SELECT ALL col1, + col1 / col1 + 64 AS col0 FROM tab0
----
1
65
21
65
81
65

query I rowsort
SELECT ALL + col2 * - - col1 * + 83 AS col1 FROM tab2
----
255640
322538
97359

query I rowsort
SELECT - col2 * + - 61 FROM tab0
----
2867
6039
610

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT - - MIN( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT - - MIN ( DISTINCT - - col2 ) AS col0 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL + SUM( - 62 ) AS col0 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL + SUM ( - 62 ) AS col0 FROM tab1 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT - MAX( + + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4916
SELECT - MAX ( + + col2 ) AS col0 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT - + ( + 13 ) FROM tab0 AS cor0 WHERE ( NULL ) <= + col0
----

query I rowsort
SELECT - ( - col0 ) * + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT MAX( ALL + - ( 55 ) ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4919
SELECT MAX ( ALL + - ( 55 ) ) AS col1 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL - + ( - col0 ) + + col0 AS col0 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4921
SELECT ALL COUNT( col1 ) + + 43 col1 FROM tab0
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4921
SELECT ALL COUNT ( col1 ) + + 43 col1 FROM tab0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT DISTINCT + COUNT( + - ( + col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4922
SELECT DISTINCT + COUNT ( + - ( + col0 ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4923
SELECT - 84 * 33 * 44 + - + CAST( NULL AS SIGNED ) + + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4923
SELECT - 84 * 33 * 44 + - + CAST ( NULL AS INTEGER ) + + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 10 FROM tab1 WHERE + + col1 IS NULL
----

query I rowsort
SELECT col1 / ( + + col1 ) AS col2 FROM tab0 WHERE - 15 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 32 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4927
SELECT ALL + col1 - - col2 DIV - - CAST( - - 52 AS SIGNED ) FROM tab0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + col1 - - col2 / - - CAST ( - - 52 AS INTEGER ) FROM tab0
----
2
21
81

query II rowsort
SELECT ALL col1 AS col1, col0 - - col1 FROM tab0 cor0
----
1
98
21
108
81
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * 69 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col0, col0 * + + col0 + + 3 FROM tab1 cor0
----
14
2604
47
8284
5
7228

query I rowsort
SELECT col0 * + 16 * + + col1 AS col1 FROM tab0 AS cor0
----
1552
19440
29232

onlyif mysql # aggregate syntax: 
query II rowsort label-4932
SELECT + COUNT( * ) AS col1, 1 + - - 93 FROM tab1 AS cor0
----
3
94

skipif mysql # not compatible
query II rowsort label-4932
SELECT + COUNT ( * ) AS col1, 1 + - - 93 FROM tab1 AS cor0
----
3
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4933
SELECT CAST( NULL AS SIGNED ) * col2 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT CAST ( NULL AS INTEGER ) * col2 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 FROM tab0 WHERE NOT col1 * col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, col1 FROM tab2
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4936
SELECT - COUNT( * ) * - + COUNT( col1 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4936
SELECT - COUNT ( * ) * - + COUNT ( col1 ) FROM tab1
----
9

query II rowsort
SELECT + 97 AS col1, - 20 AS col0 FROM tab2
----
97
-20
97
-20
97
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4938
SELECT + col1 / + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4938
SELECT + col1 / + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4939
SELECT ALL ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4939
SELECT ALL ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 - 81 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 66 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-66

query I rowsort
SELECT DISTINCT col0 * 42 + + - col0 * 74 FROM tab0 AS cor0
----
-2784
-3104
-480

query I rowsort
SELECT DISTINCT - col1 * + col2 + + - 82 FROM tab2 AS cor0
----
-1255
-3162
-3968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + - col2 + col2 col1 FROM tab2 AS cor0
----
1196
3120
3944

query I rowsort
SELECT + + 57 * + col2 + - 4 + - - 75 + - 52 AS col0 FROM tab0 AS cor0
----
2698
5662
589

query I rowsort
SELECT DISTINCT col2 + - ( - + col0 ) FROM tab1
----
144
147
159

query I rowsort
SELECT - - 45 FROM tab1 WHERE ( col1 * + ( - 62 ) + + 56 NOT BETWEEN NULL AND NULL )
----

query I rowsort
SELECT + col2 FROM tab0 WHERE - col1 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-4949
SELECT DISTINCT ( - + 20 ) * COUNT( * ), + 67 AS col2 FROM tab1
----
-60
67

skipif mysql # not compatible
query II rowsort label-4949
SELECT DISTINCT ( - + 20 ) * COUNT ( * ), + 67 AS col2 FROM tab1
----
-60
67

query I rowsort
SELECT - + col0 FROM tab1 WHERE - + col2 * - + 12 + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 10 - - col1 + - col0 + - 89 AS col2 FROM tab2
----
-66
-74
-87

query I rowsort
SELECT ALL 93 + - col1 - 87 FROM tab0
----
-15
-75
5

query I rowsort
SELECT + + col1 FROM tab1 WHERE NULL IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT + 37, col0 FROM tab1
----
37
51
37
85
37
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT COUNT( * ) - 35 AS col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-4955
SELECT COUNT ( * ) - 35 AS col0 FROM tab1 AS cor0
----
-32

query I rowsort
SELECT - 79 * - col2 + col2 AS col1 FROM tab1 AS cor0
----
4720
5440
7680

query I rowsort
SELECT + col0 + - col0 * + - col2 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= col1 * 28
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + col2 < NULL
----

query I rowsort
SELECT + 92 + col1 FROM tab2
----
143
159
169

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4960
SELECT + col1 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4960
SELECT + col1 * + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL < ( - ( - col0 ) / col0 + - col1 )
----

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT ( + 66 - + col0 ) = NULL
----

query I rowsort
SELECT + 8 FROM tab1 WHERE NOT col2 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4964
SELECT DISTINCT + col0 * col2 + - col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col2 + 55 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT + col0 * col2 + - col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col2 + 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT COUNT( * ) + 98 AS col0 FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-4965
SELECT COUNT ( * ) + 98 AS col0 FROM tab0
----
101

query I rowsort
SELECT col0 * - col0 AS col1 FROM tab0 WHERE NOT NULL NOT IN ( col2 * col2 )
----

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab1 WHERE NOT ( col0 ) IS NULL
----
83

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 45 * - col1 ) > + 24
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - MAX( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4969
SELECT - MAX ( DISTINCT + col2 ) FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND NULL
----
NULL

query I rowsort
SELECT 6 * col1 - col0 AS col2 FROM tab2
----
260
327
398

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4971
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + 53 FROM tab2
----
56

skipif mysql # not compatible
query I rowsort label-4971
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + 53 FROM tab2
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4972
SELECT * FROM tab0 WHERE - ( CAST( NULL AS DECIMAL ) ) / - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4972
SELECT * FROM tab0 WHERE - ( CAST ( NULL AS REAL ) ) / - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 65 + - col0 FROM tab1
----
-20
-26
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col1 * - 31 ) <= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 44 < NULL
----

query I rowsort
SELECT - 36 AS col0 FROM tab1 WHERE NOT ( NULL ) IN ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4977
SELECT - MIN( CAST( col2 AS SIGNED ) ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4977
SELECT - MIN ( CAST ( col2 AS INTEGER ) ) FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL - SUM( + col1 ) FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - SUM ( + col1 ) FROM tab0 WHERE NOT NULL NOT IN ( col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4979
SELECT DISTINCT MIN( - ( + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4979
SELECT DISTINCT MIN ( - ( + col1 ) ) FROM tab0
----
-81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT IN ( ( + 5 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 - - col2 >= col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4982
SELECT ALL + 93 + - 24 DIV col1 AS col1 FROM tab0
----
69
92
93

skipif mysql # not compatible
query I rowsort label-4982
SELECT ALL + 93 + - 24 / col1 AS col1 FROM tab0
----
69
92
93

query I rowsort
SELECT DISTINCT + 37 FROM tab0 AS cor0 CROSS JOIN tab1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT CAST( NULL AS SIGNED ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE NOT NULL NOT BETWEEN - 77 - - 34 AND ( 14 )
----

skipif mysql # not compatible
query I rowsort label-4984
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM ( tab2 AS cor0 CROSS JOIN tab2 ) WHERE NOT NULL NOT BETWEEN - 77 - - 34 AND ( 14 )
----

query I rowsort
SELECT ALL - - col0 + - col1 * + col1 AS col2 FROM tab1 AS cor0
----
-145
-2118
60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4986
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + CAST( NULL AS SIGNED ) / + col1 ) AND 34
----

skipif mysql # not compatible
query III rowsort label-4986
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + CAST ( NULL AS INTEGER ) / + col1 ) AND 34
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 88 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 38 + col0 * col0 ) > + 63
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 < ( + col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT + col2 * - + 91 + 21 FROM tab0
----
-4256
-889
-8988

query III rowsort
SELECT * FROM tab0 WHERE + 44 * col0 IS NULL
----

query I rowsort
SELECT + col1 + - - col0 * col2 AS col1 FROM tab2
----
1109
2637
4417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4993
SELECT ALL CAST( 21 AS SIGNED ) * col2 - col1 AS col0 FROM tab0
----
189
2078
906

skipif mysql # not compatible
query I rowsort label-4993
SELECT ALL CAST ( 21 AS INTEGER ) * col2 - col1 AS col0 FROM tab0
----
189
2078
906

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 86 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4995
SELECT DISTINCT + 56 + COUNT( * ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-4995
SELECT DISTINCT + 56 + COUNT ( * ) FROM tab1
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4996
SELECT - col2 + + + col2 - + CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4996
SELECT - col2 + + + col2 - + CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT - 95 * ( 42 ) + COUNT( * ) AS col0 FROM tab1
----
-3987

skipif mysql # not compatible
query I rowsort label-4997
SELECT - 95 * ( 42 ) + COUNT ( * ) AS col0 FROM tab1
----
-3987

query I rowsort
SELECT col2 + - + 43 AS col2 FROM tab1
----
16
25
53

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * col0 + ( + 86 + 49 * 53 ) BETWEEN col0 * col1 + col2 * + ( 86 ) AND NULL
----
51
14
96
91
47
68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5000
SELECT DISTINCT + CAST( NULL AS DECIMAL ) - 80 * col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5000
SELECT DISTINCT + CAST ( NULL AS REAL ) - 80 * col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5001
SELECT - 29 * + + CAST( NULL AS SIGNED ) - + 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5001
SELECT - 29 * + + CAST ( NULL AS INTEGER ) - + 58 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 90 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT MIN( DISTINCT - ( - col0 ) ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-5003
SELECT MIN ( DISTINCT - ( - col0 ) ) AS col2 FROM tab2 cor0
----
46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / - 24 - col1 NOT IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 80 + CAST( col0 AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query I rowsort label-5005
SELECT + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 80 + CAST ( col0 AS INTEGER ) * col1 )
----

query I rowsort
SELECT DISTINCT col1 - - col0 FROM tab0 WHERE NOT NULL <> ( 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT DISTINCT COUNT( * ) * COUNT( - col0 ) col2 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5007
SELECT DISTINCT COUNT ( * ) * COUNT ( - col0 ) col2 FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 67 AS col2, col1 col0 FROM tab1 AS cor0
----
67
14
67
47
67
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT + SUM( + col2 ) col1 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5009
SELECT + SUM ( + col2 ) col1 FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-5010
SELECT DISTINCT ( col0 ) DIV + col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT ( col0 ) / + col2 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL < 56
----

query I rowsort
SELECT ALL - 95 * - col1 + + col1 - - col1 * ( - col1 ) AS col1 FROM tab1 AS cor0
----
1148
2303
455

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 99 + ( ( - 76 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 * + 50 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5015
SELECT ALL + col1 / + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL + col1 / + CAST ( NULL AS REAL ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 74 FROM tab2 AS cor0 WHERE col0 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> ( + + col1 + + col1 )
----

query I rowsort
SELECT ALL - ( + 38 ) - - 51 * - 47 AS col1 FROM tab1 WHERE NOT col0 - col2 / - 53 IN ( col2 )
----
-2435
-2435
-2435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5019
SELECT + CAST( - - col1 AS SIGNED ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5019
SELECT + CAST ( - - col1 AS INTEGER ) FROM tab1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5020
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT - col0 / + col1 - col2 > + col1
----
3

skipif mysql # not compatible
query I rowsort label-5020
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col0 / + col1 - col2 > + col1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5021
SELECT col1 DIV col1 * + - col1 AS col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5021
SELECT col1 / col1 * + - col1 AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5022
SELECT + col1 DIV - 76 * + - ( - + col2 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5022
SELECT + col1 / - 76 * + - ( - + col2 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5023
SELECT ALL - - MIN( + col1 ) col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5023
SELECT ALL - - MIN ( + col1 ) col2 FROM tab0 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5024
SELECT DISTINCT MAX( - - col2 ) * - 63 - 55 col2 FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5024
SELECT DISTINCT MAX ( - - col2 ) * - 63 - 55 col2 FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( 9 ) NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + 17 + + 83 * - col1 * + - 97 FROM tab0 AS cor0
----
169088
652148
8068

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 ) NOT BETWEEN ( + + 27 ) AND 3 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 46 * - + col2 FROM tab1 AS cor0
----
-2714
-3128
-4416

query I rowsort
SELECT col1 * + col0 + + col2 FROM tab0 AS cor0
----
1262
1837
196

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab0 cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5031
SELECT + 81 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5031
SELECT + 81 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + + 99 col1 FROM tab2 AS cor0
----
24
35
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5033
SELECT 2 * 20 + + - CAST( NULL AS SIGNED ), + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5033
SELECT 2 * 20 + + - CAST ( NULL AS INTEGER ), + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5034
SELECT - 29 DIV + + 7 FROM tab1 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 29 / + + 7 FROM tab1 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5035
SELECT - - 18 DIV + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5035
SELECT - - 18 / + - COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL + col0 * col0 FROM tab1 AS cor0 WHERE - 93 + col2 + - + 75 + + + col0 <= - col0 - - 56 * - 50
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5037
SELECT - 0 * - - 39 DIV 61 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5037
SELECT - 0 * - - 39 / 61 FROM tab2
----
0
0
0

query II rowsort
SELECT ALL 42, - col0 AS col2 FROM tab1
----
42
-51
42
-85
42
-91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN 80 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 + col2 / + - col0 + 37 < - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5041
SELECT ALL 86 + - COUNT( * ) FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5041
SELECT ALL 86 + - COUNT ( * ) FROM tab2
----
83

query I rowsort
SELECT DISTINCT col0 + + 9 - - - col1 * + col2 * col1 * - + col1 * - col1 FROM tab1
----
-331818208
-36781
-3687876

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 + + ( + 62 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT ALL - MAX( ALL + col0 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5044
SELECT ALL - MAX ( ALL + col0 ) FROM tab1 cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5045
SELECT + CAST( NULL AS SIGNED ) * + 29, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5045
SELECT + CAST ( NULL AS INTEGER ) * + 29, col1 FROM tab1 cor0
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT - 60 * + 25 * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
4500

skipif mysql # not compatible
query I rowsort label-5046
SELECT - 60 * + 25 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
4500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5047
SELECT ALL - col0 FROM tab1 WHERE NOT NULL > col0 - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5047
SELECT ALL - col0 FROM tab1 WHERE NOT NULL > col0 - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5048
SELECT DISTINCT 73 + COUNT( * ) * COUNT( * ) FROM tab0 WHERE NOT + col2 NOT IN ( + col2, + col2 / - col1 + col2 )
----
82

skipif mysql # not compatible
query I rowsort label-5048
SELECT DISTINCT 73 + COUNT ( * ) * COUNT ( * ) FROM tab0 WHERE NOT + col2 NOT IN ( + col2, + col2 / - col1 + col2 )
----
82

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 56 * col1 / + col1 NOT BETWEEN 8 AND ( NULL )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT + 42 NOT IN ( + + 15, 57 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 - + col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col0 AS col1 FROM tab2 AS cor0 WHERE 85 * + + col2 IN ( - col0, + col0 )
----

query I rowsort
SELECT ALL - + 6 AS col0 FROM tab1 AS cor0
----
-6
-6
-6

query I rowsort
SELECT ALL col2 + - 29 AS col0 FROM tab2
----
-6
11
29

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT - MAX( ALL - 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT - MAX ( ALL - 19 ) FROM tab0
----
19

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT BETWEEN + + 89 AND NULL
----

query I rowsort
SELECT - 47 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0 AS col1, - 37 AS col0 FROM tab0
----
15
-37
87
-37
97
-37

query I rowsort
SELECT ALL col1 + col1 + - + 25 * col0 * + col2 * - col0 * + col1 FROM tab0
----
21414537
23287277
39737292

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 45 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 14 + + + 97 + + col1 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5062
SELECT ALL + MAX( col1 ) AS col1 FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-5062
SELECT ALL + MAX ( col1 ) AS col1 FROM tab0
----
81

query I rowsort
SELECT DISTINCT col1 - - - col1 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5064
SELECT ALL - MIN( ALL - col2 ) col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5064
SELECT ALL - MIN ( ALL - col2 ) col1 FROM tab1 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 + + 14 col1, + 27 FROM tab0 AS cor0
----
101
27
111
27
29
27

query I rowsort
SELECT - 56 AS col1 FROM tab1 AS cor0 WHERE col0 + col1 >= NULL
----

query I rowsort
SELECT + 21 AS col0 FROM tab0 AS cor0 WHERE ( 2 ) >= NULL
----

query II rowsort
SELECT DISTINCT 6 AS col1, col1 FROM tab1
----
6
14
6
47
6
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 30 + + col2 * + - 44 col0 FROM tab0
----
-4326
190
362

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5070
SELECT ALL + COUNT( DISTINCT ( + CAST( NULL AS SIGNED ) ) ) DIV + 44 AS col2 FROM tab0 WHERE NOT + CAST( + col0 AS SIGNED ) NOT BETWEEN 97 DIV + col1 + + 5 + + + col0 AND - col0 DIV + 39
----
0

skipif mysql # not compatible
query I rowsort label-5070
SELECT ALL + COUNT ( DISTINCT ( + CAST ( NULL AS INTEGER ) ) ) / + 44 AS col2 FROM tab0 WHERE NOT + CAST ( + col0 AS INTEGER ) NOT BETWEEN 97 / + col1 + + 5 + + + col0 AND - col0 / + 39
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT MAX( col1 ) + + 62 + - + COUNT( * ) AS col2 FROM tab0
----
140

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT MAX ( col1 ) + + 62 + - + COUNT ( * ) AS col2 FROM tab0
----
140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5072
SELECT DISTINCT * FROM tab1 WHERE - col2 * - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-5072
SELECT DISTINCT * FROM tab1 WHERE - col2 * - CAST ( NULL AS INTEGER ) = NULL
----

query II rowsort
SELECT + col2, col0 * - + col2 FROM tab0
----
10
-870
47
-705
99
-9603

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 80 >= ( NULL )
----

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 II rowsort label-5076
SELECT ALL + + COUNT( * ) AS col0, - 91 AS col2 FROM tab2 AS cor0
----
3
-91

skipif mysql # not compatible
query II rowsort label-5076
SELECT ALL + + COUNT ( * ) AS col0, - 91 AS col2 FROM tab2 AS cor0
----
3
-91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT + SUM( 74 ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) = ( + col2 )
----
222

skipif mysql # not compatible
query I rowsort label-5078
SELECT + SUM ( 74 ) FROM tab2 AS cor0 WHERE NOT ( - col1 ) = ( + col2 )
----
222

query I rowsort
SELECT + 20 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT - - 80 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL - ( - 31 ) AS col2 FROM tab0 WHERE NOT - + col1 * + 96 - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5082
SELECT ALL - - MAX( ALL - col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL - - MAX ( ALL - col0 ) FROM tab1 AS cor0
----
-51

query II rowsort
SELECT ALL - col2, - col1 * + col0 AS col2 FROM tab1 AS cor0
----
-59
-425
-68
-4277
-96
-714

query I rowsort
SELECT 27 + - 60 AS col1 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT + col0 + + - 8 AS col0 FROM tab0 AS cor0
----
7
79
89

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT ( - 10 ) + - COUNT( * ) AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-5087
SELECT ( - 10 ) + - COUNT ( * ) AS col0 FROM tab1
----
-13

query I rowsort
SELECT ALL - 54 + + + col2 - col1 AS col0 FROM tab0
----
-65
-88
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5089
SELECT + COUNT( DISTINCT 4 ) + 23 - - 14 AS col2 FROM tab0
----
38

skipif mysql # not compatible
query I rowsort label-5089
SELECT + COUNT ( DISTINCT 4 ) + 23 - - 14 AS col2 FROM tab0
----
38

query I rowsort
SELECT 90 + + col0 AS col2 FROM tab1
----
141
175
181

query I rowsort
SELECT - - col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + + 89 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT ALL col1 * 48 DIV col1 * - col1 + 71 * + + 52 AS col0 FROM tab2
----
-4
1244
476

skipif mysql # not compatible
query I rowsort label-5092
SELECT ALL col1 * 48 / col1 * - col1 + 71 * + + 52 AS col0 FROM tab2
----
-4
1244
476

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 23 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 62 * - - 64 AS col2, - 46 AS col1 FROM tab1 AS cor0
----
3968
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT - - COUNT( * ) * - 90 col2 FROM tab1 cor0
----
-270

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT - - COUNT ( * ) * - 90 col2 FROM tab1 cor0
----
-270

query I rowsort
SELECT ALL - 28 * - 15 FROM tab0 AS cor0
----
420
420
420

onlyif mysql # aggregate syntax: 
query I rowsort label-5097
SELECT DISTINCT + - MIN( ALL ( - 34 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-5097
SELECT DISTINCT + - MIN ( ALL ( - 34 ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5098
SELECT ALL - col1 - - CAST( NULL AS SIGNED ) + + col2 AS col0, col2 - + col2 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

skipif mysql # not compatible
query II rowsort label-5098
SELECT ALL - col1 - - CAST ( NULL AS INTEGER ) + + col2 AS col0, col2 - + col2 FROM tab1 AS cor0
----
NULL
0
NULL
0
NULL
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - col1 + col2 ) <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( + - 50 ) col0 FROM tab0 AS cor0 WHERE NOT - col0 <> NULL
----

query II rowsort
SELECT - col1 AS col0, + col0 + ( - col0 ) AS col1 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5102
SELECT - - MIN( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-5102
SELECT - - MIN ( + - col2 ) AS col1 FROM tab0 AS cor0
----
-99

query I rowsort
SELECT ALL + 48 - - + col1 AS col0 FROM tab0 AS cor0
----
129
49
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= col2 + col0 - col1
----

query I rowsort
SELECT + 96 * + col0 AS col2 FROM tab2 AS cor0 WHERE col1 > + 54
----
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT + MIN( DISTINCT + 19 ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5106
SELECT + MIN ( DISTINCT + 19 ) FROM tab2 AS cor0
----
19

query I rowsort
SELECT - - col1 * - 70 AS col0 FROM tab0 AS cor0
----
-1470
-5670
-70

query I rowsort
SELECT ALL - col2 * 20 AS col2 FROM tab1 AS cor0
----
-1180
-1360
-1920

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5109
SELECT DISTINCT COUNT( * ) DIV - + 70 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5109
SELECT DISTINCT COUNT ( * ) / - + 70 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5110
SELECT ALL * FROM tab1 WHERE ( + col0 - 74 * - col1 - - ( - - col0 ) * 26 + - 42 * CAST( NULL AS SIGNED ) + + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5110
SELECT ALL * FROM tab1 WHERE ( + col0 - 74 * - col1 - - ( - - col0 ) * 26 + - 42 * CAST ( NULL AS INTEGER ) + + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT + 70 + - COUNT( * ) AS col1 FROM tab2 WHERE NULL IS NULL OR NOT - col0 >= + col1
----
67

skipif mysql # not compatible
query I rowsort label-5112
SELECT + 70 + - COUNT ( * ) AS col1 FROM tab2 WHERE NULL IS NULL OR NOT - col0 >= + col1
----
67

query I rowsort
SELECT 62 FROM tab0 AS cor0 WHERE NOT col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5114
SELECT * FROM tab1 AS cor0 WHERE NOT 89 * + - CAST( + col0 AS SIGNED ) / col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5114
SELECT * FROM tab1 AS cor0 WHERE NOT 89 * + - CAST ( + col0 AS INTEGER ) / col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT 66 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT 66 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5116
SELECT - - 65 FROM tab0 WHERE NOT NULL NOT IN ( CAST( - 74 AS SIGNED ) * col2, - 35 / - 99 + + col2 )
----

skipif mysql # not compatible
query I rowsort label-5116
SELECT - - 65 FROM tab0 WHERE NOT NULL NOT IN ( CAST ( - 74 AS INTEGER ) * col2, - 35 / - 99 + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT DISTINCT 72 + + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-5117
SELECT DISTINCT 72 + + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
81

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 WHERE NOT + 33 / + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * 61 col1 FROM tab0 AS cor0
----
5307
5917
915

query II rowsort
SELECT ALL + col1 AS col1, 34 AS col2 FROM tab2 AS cor0
----
51
34
67
34
77
34

query I rowsort
SELECT DISTINCT + + 85 AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT 56 + - col2 FROM tab0 AS cor0
----
-43
46
9

query I rowsort
SELECT DISTINCT - col1 + - 78 AS col1 FROM tab0 cor0
----
-159
-79
-99

query I rowsort
SELECT DISTINCT col0 + + + col0 AS col2 FROM tab1
----
102
170
182

query I rowsort
SELECT DISTINCT col2 + col2 * - - col1 * + col2 FROM tab0
----
178976
2110
9900

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5126
SELECT DISTINCT - col2 * col0 + + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5126
SELECT DISTINCT - col2 * col0 + + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5127
SELECT + 49 + + - MIN( + col2 ) AS col0 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5127
SELECT + 49 + + - MIN ( + col2 ) AS col0 FROM tab2
----
26

query I rowsort
SELECT 7 + 78 * + col2 AS col2 FROM tab2
----
1801
3127
4531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 19 + + - col2 col2 FROM tab1 AS cor0
----
-115
-78
-87

query I rowsort
SELECT ALL - 29 * + col1 AS col0 FROM tab2 AS cor0
----
-1479
-1943
-2233

onlyif mysql # DIV for integer division: 
query I rowsort label-5131
SELECT ALL - + col2 DIV - 37 AS col0 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL - + col2 / - 37 AS col0 FROM tab1 AS cor0
----
1
1
2

query II rowsort
SELECT 71 - - col1, + col0 AS col1 FROM tab1
----
118
91
76
85
85
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT COUNT( * ) - + 72 FROM tab2
----
-69

skipif mysql # not compatible
query I rowsort label-5133
SELECT COUNT ( * ) - + 72 FROM tab2
----
-69

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + + 99 * + col2 IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5135
SELECT DISTINCT + 65 AS col2, SUM( - col2 ) AS col2 FROM tab2
----
65
-121

skipif mysql # not compatible
query II rowsort label-5135
SELECT DISTINCT + 65 AS col2, SUM ( - col2 ) AS col2 FROM tab2
----
65
-121

query I rowsort
SELECT - 41 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN 69 AND col0 / - - col0
----

query I rowsort
SELECT ALL + 10 * - col0 FROM tab0
----
-150
-870
-970

onlyif mysql # DIV for integer division: 
query I rowsort label-5138
SELECT DISTINCT + - col0 DIV - + col2 col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5138
SELECT DISTINCT + - col0 / - + col2 col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT + MIN( DISTINCT - col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT + MIN ( DISTINCT - col0 ) FROM tab0 cor0
----
-97

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE - col2 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5141
SELECT DISTINCT - COUNT( * ) * + + COUNT( * ) col2 FROM tab2 WHERE NULL IS NULL
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5141
SELECT DISTINCT - COUNT ( * ) * + + COUNT ( * ) col2 FROM tab2 WHERE NULL IS NULL
----
-9

query I rowsort
SELECT 52 * + + col2 * - - 65 AS col0 FROM tab1
----
199420
229840
324480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 61 + + + col2 col0 FROM tab0
----
108
160
71

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col0 + col2 - 86 - + col2 / + - col1 + + col0 NOT BETWEEN - col1 + - col1 AND - 31
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5145
SELECT + + ( + 78 ) DIV + - 34 + - - MAX( + 8 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5145
SELECT + + ( + 78 ) / + - 34 + - - MAX ( + 8 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL + 60 * - col2 + - 82 FROM tab1 AS cor0 WHERE NOT 12 <= NULL
----

query I rowsort
SELECT - ( + + col1 ) + - col0 + col2 + + + 46 * + - col0 AS col2 FROM tab2 AS cor0
----
-2190
-3045
-3534

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5149
SELECT + CAST( NULL AS SIGNED ) * - ( 61 ) + + + 59 * + col1 AS col1, col0 + 79 FROM tab2 AS cor0
----
NULL
125
NULL
143
NULL
154

skipif mysql # not compatible
query II rowsort label-5149
SELECT + CAST ( NULL AS INTEGER ) * - ( 61 ) + + + 59 * + col1 AS col1, col0 + 79 FROM tab2 AS cor0
----
NULL
125
NULL
143
NULL
154

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5150
SELECT + - col2 + CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-5150
SELECT + - col2 + CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT + + col0 * - 95 + - ( - - 64 ) FROM tab1 AS cor0
----
-4909
-8139
-8709

onlyif mysql # aggregate syntax: 
query I rowsort label-5152
SELECT DISTINCT COUNT( * ) + - 1 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5152
SELECT DISTINCT COUNT ( * ) + - 1 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - SUM( DISTINCT 63 ) FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-5153
SELECT - SUM ( DISTINCT 63 ) FROM tab2
----
-63

query I rowsort
SELECT ALL + col2 + - + col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT DISTINCT - MAX( ALL + 17 ) + - + COUNT( * ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-5155
SELECT DISTINCT - MAX ( ALL + 17 ) + - + COUNT ( * ) FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-5156
SELECT MIN( 1 ) AS col1 FROM tab2 WHERE NULL <= ( - + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT MIN ( 1 ) AS col1 FROM tab2 WHERE NULL <= ( - + col0 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT SUM( - 53 ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-5157
SELECT SUM ( - 53 ) FROM tab0
----
-159

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5158
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col2 col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5158
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col2 col0 FROM tab2
----
NULL
-23
NULL
-40
NULL
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT DISTINCT + COUNT( ALL - 17 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-5159
SELECT DISTINCT + COUNT ( ALL - 17 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5160
SELECT ALL - MIN( DISTINCT - col0 ) + - COUNT( * ) AS col0 FROM tab2
----
72

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - MIN ( DISTINCT - col0 ) + - COUNT ( * ) AS col0 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query II rowsort label-5161
SELECT COUNT( * ) * - 86, 14 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-774
14

skipif mysql # not compatible
query II rowsort label-5161
SELECT COUNT ( * ) * - 86, 14 AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-774
14

onlyif mysql # aggregate syntax: 
query I rowsort label-5162
SELECT DISTINCT COUNT( * ) * - 32 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5162
SELECT DISTINCT COUNT ( * ) * - 32 FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5163
SELECT ALL col2 DIV - 24 FROM tab0 AS cor0
----
-1
-4
0

skipif mysql # not compatible
query I rowsort label-5163
SELECT ALL col2 / - 24 FROM tab0 AS cor0
----
-1
-4
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL - 18 * + COUNT( * ) FROM tab2 cor0
----
-54

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL - 18 * + COUNT ( * ) FROM tab2 cor0
----
-54

query I rowsort
SELECT DISTINCT - - 60 * - col0 FROM tab2 AS cor0
----
-2760
-3840
-4500

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT ALL - MAX( DISTINCT 27 ) FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - MAX ( DISTINCT 27 ) FROM tab1 AS cor0
----
-27

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 15 BETWEEN 96 AND ( - - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 81 col1, 40 AS col1 FROM tab0 AS cor0
----
81
40
81
40
81
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5169
SELECT + 32 DIV - - COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-5169
SELECT + 32 / - - COUNT ( * ) FROM tab1
----
10

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT NULL <> - 96
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <> + col1 + 56
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT DISTINCT COUNT( * ) * - + 11 AS col1 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT COUNT ( * ) * - + 11 AS col1 FROM tab2
----
-33

query I rowsort
SELECT + - ( 94 ) FROM tab1 AS cor0
----
-94
-94
-94

query III rowsort
SELECT * FROM tab1 WHERE NOT 21 / + col2 + - col2 = + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-5175
SELECT col1 AS col0, - col0 + ( col2 ) DIV - ( col1 ) AS col1 FROM tab0
----
1
-196
21
-87
81
-15

skipif mysql # not compatible
query II rowsort label-5175
SELECT col1 AS col0, - col0 + ( col2 ) / - ( col1 ) AS col1 FROM tab0
----
1
-196
21
-87
81
-15

query I rowsort
SELECT - - 81 + - 3 AS col1 FROM tab0 AS cor0 WHERE - col0 NOT IN ( + col1, + 14, + col1 )
----
78
78
78

query I rowsort
SELECT ALL - + col1 * col1 + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - - 25 AS col1 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-5179
SELECT col2 DIV col2 + - - 11 + + col0 FROM tab1
----
103
63
97

skipif mysql # not compatible
query I rowsort label-5179
SELECT col2 / col2 + - - 11 + + col0 FROM tab1
----
103
63
97

query I rowsort
SELECT + col1 + + 98 FROM tab1
----
103
112
145

query I rowsort
SELECT + 58 + + + col0 AS col1 FROM tab0
----
145
155
73

onlyif mysql # aggregate syntax: 
query I rowsort label-5182
SELECT + COUNT( * ) + - 22 + + 83 col2 FROM tab0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5182
SELECT + COUNT ( * ) + - 22 + + 83 col2 FROM tab0
----
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5183
SELECT col1 DIV - CAST( - col0 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE - col2 DIV - col1 IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5183
SELECT col1 / - CAST ( - col0 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE - col2 / - col1 IS NOT NULL
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5184
SELECT DISTINCT - MAX( col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5184
SELECT DISTINCT - MAX ( col0 ) FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5185
SELECT DISTINCT + COUNT( - + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5185
SELECT DISTINCT + COUNT ( - + col0 ) FROM tab2
----
3

query I rowsort
SELECT ALL + + ( - + 29 ) * + - 69 FROM tab1 AS cor0
----
2001
2001
2001

query I rowsort
SELECT DISTINCT - col1 * - + col1 AS col1 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL - - MIN( DISTINCT col1 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL - - MIN ( DISTINCT col1 ) AS col2 FROM tab0 cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 19 >= + col2
----

query I rowsort
SELECT ALL + col2 * + ( 20 ) AS col2 FROM tab1 AS cor0
----
1180
1360
1920

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5191
SELECT DISTINCT + MIN( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5191
SELECT DISTINCT + MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - ( + col1 ) AS col0 FROM tab2 WHERE NOT - col2 * + + col1 <= NULL
----

query I rowsort
SELECT - col0 * - + 15 AS col2 FROM tab0
----
1305
1455
225

query I rowsort
SELECT ALL 82 * + 53 * 62 FROM tab2
----
269452
269452
269452

query I rowsort
SELECT ALL 19 / col2 FROM tab0 WHERE NOT - + 68 NOT IN ( + - 35 )
----

query II rowsort
SELECT ALL - col1, - col1 * col1 AS col0 FROM tab0
----
-1
-1
-21
-441
-81
-6561

query I rowsort
SELECT - - 36 / col2 / + 30 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT SUM( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-5198
SELECT SUM ( ALL + - col0 ) AS col1 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT - col1 AS col1, - col0 AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT ALL + ( + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-5201
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5201
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 36 BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5203
SELECT COUNT( * ) + - + 64 + 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

skipif mysql # not compatible
query I rowsort label-5203
SELECT COUNT ( * ) + - + 64 + 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5204
SELECT * FROM tab2 WHERE + 23 + - CAST( col1 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5204
SELECT * FROM tab2 WHERE + 23 + - CAST ( col1 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( col2 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 56 + 59 FROM tab1 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT - + ( SUM( ALL 81 ) ) FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT - + ( SUM ( ALL 81 ) ) FROM tab0 AS cor0
----
-243

query II rowsort
SELECT + col2 + + col2 AS col2, - 78 FROM tab2 AS cor0
----
116
-78
46
-78
80
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5209
SELECT ALL + - SUM( - + CAST( - col1 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-5209
SELECT ALL + - SUM ( - + CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
-66

query II rowsort
SELECT DISTINCT - - 58 + - col2, col1 FROM tab0 AS cor0
----
-41
1
11
81
48
21

query I rowsort
SELECT DISTINCT - - col0 * + 58 AS col0 FROM tab0 AS cor0
----
5046
5626
870

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 * - col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT DISTINCT 55 + - 71 * col0 FROM tab2
----
-3211
-4489
-5270

query I rowsort
SELECT DISTINCT + 0 + - col1 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL + + ( + ( + + col2 ) ) / + + col0 + 37 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col2 * + - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT ALL + col2 - + 97 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL IN ( - 42, + 9, - 45 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5219
SELECT - - COUNT( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5219
SELECT - - COUNT ( ALL - col2 ) AS col2 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT - ( - - 72 ) AS col2, col2 - col1 + + ( - col2 ) + + col2 FROM tab1 AS cor0
----
-72
21
-72
54
-72
82

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - COUNT( ALL - - col2 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5221
SELECT - COUNT ( ALL - - col2 ) AS col2 FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 col0, + col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - 6 AND + - 61 + 27 * + col2 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-5223
SELECT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - 6 AND + - 61 + 27 * + col2 * - col2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * 62 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5225
SELECT DISTINCT col0 DIV col2 * + + 88 * + 20 FROM tab2
----
1760
3520

skipif mysql # not compatible
query I rowsort label-5225
SELECT DISTINCT col0 / col2 * + + 88 * + 20 FROM tab2
----
1760
3520

query I rowsort
SELECT DISTINCT col1 + + + 26 AS col0 FROM tab0 AS cor0
----
107
27
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 ) <= + 26
----
46
51
23

query II rowsort
SELECT DISTINCT + 51 * + + ( + col1 ), + col2 FROM tab0 AS cor0
----
1071
10
4131
47
51
99

query I rowsort
SELECT DISTINCT - col1 - + - col1 + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT + - 64 * - col0 + - 4 FROM tab1 AS cor0
----
3260
5436
5820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5231
SELECT ALL + + col1 - + CAST( NULL AS SIGNED ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5231
SELECT ALL + + col1 - + CAST ( NULL AS INTEGER ) col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5232
SELECT + + 15 - CAST( - 71 AS SIGNED ) FROM tab0 AS cor0
----
86
86
86

skipif mysql # not compatible
query I rowsort label-5232
SELECT + + 15 - CAST ( - 71 AS INTEGER ) FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5233
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE col0 * - - col2 - - + col1 <= + 47
----
0

skipif mysql # not compatible
query I rowsort label-5233
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE col0 * - - col2 - - + col1 <= + 47
----
0

query I rowsort
SELECT + + 46 - + col1 AS col2 FROM tab0 AS cor0
----
-35
25
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5235
SELECT - + col2 + - CAST( NULL AS SIGNED ) - + CAST( 24 AS SIGNED ) / - 91 AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5235
SELECT - + col2 + - CAST ( NULL AS INTEGER ) - + CAST ( 24 AS INTEGER ) / - 91 AS col2 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL + - COUNT( * ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + - COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5237
SELECT ALL col2 * + CAST( - 4 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-236
-272
-384

skipif mysql # not compatible
query I rowsort label-5237
SELECT ALL col2 * + CAST ( - 4 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-236
-272
-384

query I rowsort
SELECT DISTINCT + ( + + col2 ) FROM tab0 WHERE NOT + + col0 IS NULL
----
10
47
99

query I rowsort
SELECT - col0 * col0 + + + col2 FROM tab1
----
-2505
-7166
-8213

query I rowsort
SELECT DISTINCT col0 + 40 + col1 AS col1 FROM tab2
----
137
181
182

query I rowsort
SELECT DISTINCT ( - ( - col2 ) ) FROM tab0
----
10
47
99

query I rowsort
SELECT col2 + - 30 AS col2 FROM tab1
----
29
38
66

query I rowsort
SELECT DISTINCT - col1 - - ( col2 ) FROM tab1
----
21
54
82

query I rowsort
SELECT ALL 97 + col0 FROM tab1
----
148
182
188

query I rowsort
SELECT col1 + 88 + + col0 * - col0 FROM tab2
----
-1977
-3931
-5470

query I rowsort
SELECT - 37 * + col2 + col2 * - + 28 AS col2 FROM tab0
----
-3055
-6435
-650

query I rowsort
SELECT ALL - col1 - 23 AS col0 FROM tab0
----
-104
-24
-44

query I rowsort
SELECT ALL + 33 * col2 + + 16 FROM tab0
----
1567
3283
346

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5249
SELECT - MAX( + CAST( + col1 AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5249
SELECT - MAX ( + CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - col1 + + + col0 * - + col0 * + - col1 col0 FROM tab1 cor0
----
36100
36218
386998

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 >= - col0
----

query II rowsort
SELECT + + col0 * + col2 + - 41 AS col2, 56 + col0 * - col1 AS col2 FROM tab0 AS cor0
----
664
-1159
829
-1771
9562
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5253
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= col0 * col1 - CAST( NULL AS SIGNED ) + - col2
----

skipif mysql # not compatible
query III rowsort label-5253
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= col0 * col1 - CAST ( NULL AS INTEGER ) + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5254
SELECT DISTINCT - 39 / + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5254
SELECT DISTINCT - 39 / + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5255
SELECT 4 * + ( - - COUNT( * ) ) * + COUNT( * ) + + 25 AS col2 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-5255
SELECT 4 * + ( - - COUNT ( * ) ) * + COUNT ( * ) + + 25 AS col2 FROM tab2
----
61

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT NULL IN ( 92 * col2, + ( - col1 ), + + 26 * - col0 / - + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT MAX( - + col0 ) * + 54 + COUNT( * ) * 30 FROM tab2
----
-2394

skipif mysql # not compatible
query I rowsort label-5257
SELECT MAX ( - + col0 ) * + 54 + COUNT ( * ) * 30 FROM tab2
----
-2394

onlyif mysql # DIV for integer division: 
query I rowsort label-5258
SELECT 45 DIV 35 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5258
SELECT 45 / 35 FROM tab0
----
1
1
1

query I rowsort
SELECT ALL + 78 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

onlyif mysql # DIV for integer division: 
query II rowsort label-5260
SELECT DISTINCT - col0 AS col1, 2 DIV col2 * - - col0 FROM tab1
----
-51
0
-85
0
-91
0

skipif mysql # not compatible
query II rowsort label-5260
SELECT DISTINCT - col0 AS col1, 2 / col2 * - - col0 FROM tab1
----
-51
0
-85
0
-91
0

query I rowsort
SELECT col1 * + col1 + - col0 AS col1 FROM tab1 cor0 WHERE NOT NULL <> NULL
----

query II rowsort
SELECT - col1 + + 0, col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, 4 AS col1 FROM tab1 AS cor0
----
59
4
68
4
96
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5264
SELECT - 73 + - col2 * - CAST( + col1 AS SIGNED ) * - 99 AS col2 FROM tab1 AS cor0
----
-133129
-29278
-316477

skipif mysql # not compatible
query I rowsort label-5264
SELECT - 73 + - col2 * - CAST ( + col1 AS INTEGER ) * - 99 AS col2 FROM tab1 AS cor0
----
-133129
-29278
-316477

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5265
SELECT col2 + CAST( + 36 AS DECIMAL ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + CAST( - col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5265
SELECT col2 + CAST ( + 36 AS REAL ) AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + CAST ( - col0 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT + + COUNT( * ) + - 16 FROM tab0 AS cor0
----
-13

skipif mysql # not compatible
query I rowsort label-5266
SELECT + + COUNT ( * ) + - 16 FROM tab0 AS cor0
----
-13

query I rowsort
SELECT 73 + 12 FROM tab1
----
85
85
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 28 / - 18 * + col2 / ( + - col1 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5269
SELECT ALL * FROM tab1 WHERE NOT - - col0 BETWEEN + col1 - col2 * - 19 * - - col2 AND + CAST( col2 AS SIGNED )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5269
SELECT ALL * FROM tab1 WHERE NOT - - col0 BETWEEN + col1 - col2 * - 19 * - - col2 AND + CAST ( col2 AS INTEGER )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + ( ( + 94 ) ) - + col0 AS col0 FROM tab2
----
107
86
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT COUNT( - col1 ) * - 76 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-5271
SELECT COUNT ( - col1 ) * - 76 FROM tab1
----
-228

query I rowsort
SELECT 29 * - 56 FROM tab0
----
-1624
-1624
-1624

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT DISTINCT COUNT( * ) col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5273
SELECT DISTINCT COUNT ( * ) col2 FROM tab1 WHERE NOT + col0 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 77 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col1 * + - 10 + - 99 AS col2 FROM tab0
----
-89
111
711

query I rowsort
SELECT ALL 89 - + col2 FROM tab0
----
-10
42
79

query I rowsort
SELECT ALL col2 * - 1 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5278
SELECT DISTINCT - MIN( ALL + col2 ) * + COUNT( * ) + COUNT( * ) FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5278
SELECT DISTINCT - MIN ( ALL + col2 ) * + COUNT ( * ) + COUNT ( * ) FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT + 63 * + - COUNT( * ) * - 23 AS col0 FROM tab2 cor0
----
4347

skipif mysql # not compatible
query I rowsort label-5279
SELECT + 63 * + - COUNT ( * ) * - 23 AS col0 FROM tab2 cor0
----
4347

onlyif mysql # aggregate syntax: 
query I rowsort label-5280
SELECT + COUNT( * ) - + + 74 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
-74

skipif mysql # not compatible
query I rowsort label-5280
SELECT + COUNT ( * ) - + + 74 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-5281
SELECT col1 * + - ( + col1 ) DIV col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5281
SELECT col1 * + - ( + col1 ) / col1 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT ALL 43 DIV + - col2 AS col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL 43 / + - col2 AS col0 FROM tab2 AS cor0
----
-1
-1
0

query I rowsort
SELECT DISTINCT - 17 AS col1 FROM tab2 WHERE NOT ( NOT col2 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5284
SELECT DISTINCT - CAST( + ( ( + 86 ) ) AS SIGNED ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - CAST ( + ( ( + 86 ) ) AS INTEGER ) FROM tab2
----
-86

query I rowsort
SELECT col1 * 85 - 94 FROM tab0
----
-9
1691
6791

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab2 AS cor0 WHERE + ( + - col2 ) * - - 94 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5287
SELECT DISTINCT - ( - MIN( col2 ) ) * + 1 + + + SUM( ALL - col1 ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-5287
SELECT DISTINCT - ( - MIN ( col2 ) ) * + 1 + + + SUM ( ALL - col1 ) FROM tab1
----
-7

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-5288
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT CAST( + 77 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-5288
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NOT CAST ( + 77 AS INTEGER ) < NULL
----

query I rowsort
SELECT DISTINCT 98 AS col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT + + ( + - COUNT( * ) ) + + ( + MAX( DISTINCT - 24 ) ) + 49 AS col1 FROM tab2 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + + ( + - COUNT ( * ) ) + + ( + MAX ( DISTINCT - 24 ) ) + 49 AS col1 FROM tab2 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT ALL + 76 + + + MAX( ALL - col2 ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-5292
SELECT ALL + 76 + + + MAX ( ALL - col2 ) FROM tab1 AS cor0
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21 col2, - 45 AS col2 FROM tab1
----
-21
-45
-21
-45
-21
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + - - col0 + - col0 * + + ( + col1 ) * + - 55 col1, 43 + + + col2 FROM tab0
----
100562
53
5333
142
66793
90

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT DISTINCT COUNT( DISTINCT - - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5295
SELECT DISTINCT COUNT ( DISTINCT - - col2 ) AS col2 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5296
SELECT COUNT( * ) + + - 30 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-5296
SELECT COUNT ( * ) + + - 30 FROM tab0
----
-27

onlyif mysql # DIV for integer division: 
query I rowsort label-5297
SELECT DISTINCT - 14 DIV - + col0 + - 98 AS col2 FROM tab1
----
-98

skipif mysql # not compatible
query I rowsort label-5297
SELECT DISTINCT - 14 / - + col0 + - 98 AS col2 FROM tab1
----
-98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 41 >= NULL
----

query I rowsort
SELECT + 65 + - col1 * - + col1 AS col0 FROM tab0
----
506
66
6626

query II rowsort
SELECT col2 AS col1, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <= + - col0 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 33 - col1, + 46 AS col2 FROM tab1
----
-14
46
19
46
28
46

query II rowsort
SELECT col2 - + - 93, 49 AS col0 FROM tab1
----
152
49
161
49
189
49

query I rowsort
SELECT - + col0 - + col0 - - + 84 FROM tab0 AS cor0
----
-110
-90
54

query I rowsort
SELECT col1 - - - 35 * + - col0 FROM tab0 cor0
----
3066
3396
606

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 69 NOT IN ( 41 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE + 12 NOT BETWEEN col2 AND NULL
----
15
81
47
97
1
99

query I rowsort
SELECT ALL - + 72 - + ( - - 44 ) AS col1 FROM tab2 AS cor0
----
-116
-116
-116

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5309
SELECT * FROM tab2 AS cor0 WHERE 34 / + CAST( - + col2 AS SIGNED ) * - col0 * - + col2 * + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5309
SELECT * FROM tab2 AS cor0 WHERE 34 / + CAST ( - + col2 AS INTEGER ) * - col0 * - + col2 * + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5310
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 - + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5310
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 - + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5311
SELECT DISTINCT - SUM( DISTINCT + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5311
SELECT DISTINCT - SUM ( DISTINCT + col1 ) FROM tab0 cor0
----
-103

query II rowsort
SELECT DISTINCT - col1 * + + col0 * + 12 AS col1, 13 + + 59 FROM tab2
----
-28152
72
-59136
72
-60300
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5313
SELECT DISTINCT - ( + 46 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT DISTINCT - ( + 46 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ( - ( ( + + col2 ) ) ) AS col2 FROM tab0
----
-10
-47
-99

query II rowsort
SELECT col1, + 84 FROM tab2
----
51
84
67
84
77
84

onlyif mysql # DIV for integer division: 
query I rowsort label-5316
SELECT ALL - col1 DIV + + 33 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5316
SELECT ALL - col1 / + + 33 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT + 99 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
99

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE 27 NOT BETWEEN NULL AND 26
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5319
SELECT ALL - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5320
SELECT ALL - ( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5320
SELECT ALL - ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5321
SELECT DISTINCT 7 AS col0, - ( - COUNT( * ) ) FROM tab2 AS cor0
----
7
3

skipif mysql # not compatible
query II rowsort label-5321
SELECT DISTINCT 7 AS col0, - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
7
3

query I rowsort
SELECT col0 * + - col2 + - col2 + - col0 AS col1 FROM tab2 AS cor0
----
-1127
-2664
-4483

onlyif mysql # aggregate syntax: 
query I rowsort label-5323
SELECT ALL ( MAX( - col1 ) ) col2 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5323
SELECT ALL ( MAX ( - col1 ) ) col2 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT - ( col0 ) + + + col2 AS col2, - 2 AS col2 FROM tab0
----
-77
-2
2
-2
32
-2

query I rowsort
SELECT DISTINCT + col1 + + + 5 AS col0 FROM tab0
----
26
6
86

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT ALL 63 + COUNT( * ) AS col1 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-5326
SELECT ALL 63 + COUNT ( * ) AS col1 FROM tab0
----
66

query III rowsort
SELECT * FROM tab1 WHERE - - col2 < + 20
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 WHERE + col2 IS NOT NULL
----
14
47
5

query II rowsort
SELECT 8 + 54 * + col1, - col2 AS col1 FROM tab2 cor0
----
2762
-23
3626
-58
4166
-40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 32 - + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 46 + col2 * + + col1 FROM tab2
----
1219
3126
3932

query II rowsort
SELECT + col0 * col1 * - - col0 AS col1, - col2 FROM tab0 AS cor0
----
158949
-10
18225
-47
9409
-99

query I rowsort
SELECT ALL - ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL 18 * col0 + - col2 + - ( - - 47 ) AS col0 FROM tab2 cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5335
SELECT + SUM( ALL - 86 ) AS col0 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5335
SELECT + SUM ( ALL - 86 ) AS col0 FROM tab2 AS cor0
----
-258

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 BETWEEN - 57 * + - 84 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 54 * - - col2 AS col1 FROM tab2
----
1242
2160
3132

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5338
SELECT - 73 DIV - ( - + SUM( col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5338
SELECT - 73 / - ( - + SUM ( col2 ) ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5339
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT ALL + 74 * - col2 AS col2, + 6 FROM tab1
----
-4366
6
-5032
6
-7104
6

query I rowsort
SELECT + - 34 AS col2 FROM tab1 cor0
----
-34
-34
-34

query II rowsort
SELECT ALL - col0 * + - 97, - col0 AS col1 FROM tab2 AS cor0
----
4462
-46
6208
-64
7275
-75

query I rowsort
SELECT DISTINCT - 46 * - 9 FROM tab2
----
414

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT + COUNT( * ) * + MIN( DISTINCT + 79 ) + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT + COUNT ( * ) * + MIN ( DISTINCT + 79 ) + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5346
SELECT DISTINCT + - ( 26 ) DIV + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5346
SELECT DISTINCT + - ( 26 ) / + col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5347
SELECT - col0 DIV - ( col1 ), col1 + + 95 AS col0 FROM tab1 AS cor0
----
1
142
17
100
3
109

skipif mysql # not compatible
query II rowsort label-5347
SELECT - col0 / - ( col1 ), col1 + + 95 AS col0 FROM tab1 AS cor0
----
1
142
17
100
3
109

query I rowsort
SELECT DISTINCT - col2 * - - col2 AS col0 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-5349
SELECT - + col0 DIV + 15 AS col2 FROM tab1 AS cor0
----
-3
-5
-6

skipif mysql # not compatible
query I rowsort label-5349
SELECT - + col0 / + 15 AS col2 FROM tab1 AS cor0
----
-3
-5
-6

query I rowsort
SELECT ALL 4 * - 46 * + 51 * 65 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-609960
-609960
-609960

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL <> 32 * - 17 * - - ( + + col0 )
----

query I rowsort
SELECT ALL + 17 * + col2 FROM tab1 cor0
----
1003
1156
1632

query I rowsort
SELECT ALL + ( col1 ) + - + col0 FROM tab2
----
-8
13
5

query I rowsort
SELECT DISTINCT + col0 + - + 76 AS col2 FROM tab0
----
-61
11
21

query I rowsort
SELECT + ( - 10 ) FROM tab2 WHERE NULL IS NOT NULL AND NOT - col2 NOT BETWEEN col0 * + - 97 AND - + col0 + - + 23
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE NULL >= + 52 / + - 47 + - 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5357
SELECT 34 + 42 * + COUNT( * ) AS col0 FROM tab1
----
160

skipif mysql # not compatible
query I rowsort label-5357
SELECT 34 + 42 * + COUNT ( * ) AS col0 FROM tab1
----
160

query I rowsort
SELECT DISTINCT 0 * - 83 + + col2 AS col1 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5359
SELECT DISTINCT - 52 col2, - CAST( NULL AS DECIMAL ) * - + col0 AS col2 FROM tab0
----
-52
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5359
SELECT DISTINCT - 52 col2, - CAST ( NULL AS REAL ) * - + col0 AS col2 FROM tab0
----
-52
NULL

query I rowsort
SELECT ALL - 41 + col2 FROM tab0
----
-31
58
6

query I rowsort
SELECT col0 + ( + - col2 ) FROM tab1
----
-45
23
26

query I rowsort
SELECT col0 + + 66 * col1 FROM tab1
----
3193
415
975

query I rowsort
SELECT + col2 * - 56 + - + col2 FROM tab1
----
-3363
-3876
-5472

query I rowsort
SELECT + col0 + - - col0 FROM tab1 WHERE - 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5365
SELECT DISTINCT COUNT( * ) * - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5365
SELECT DISTINCT COUNT ( * ) * - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT - + SUM( + 87 ) AS col0 FROM tab1 AS cor0
----
-261

skipif mysql # not compatible
query I rowsort label-5366
SELECT - + SUM ( + 87 ) AS col0 FROM tab1 AS cor0
----
-261

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * - 80 * col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5368
SELECT 25 + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE NOT + 98 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5368
SELECT 25 + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE NOT + 98 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL ( + - MAX( ALL 88 ) ) col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5369
SELECT ALL ( + - MAX ( ALL 88 ) ) col0 FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5370
SELECT + + 58 * + COUNT( ALL CAST( NULL AS SIGNED ) ) + + - 55 DIV - COUNT( * ) + + + 83 col2 FROM tab2 AS cor0
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5370
SELECT + + 58 * + COUNT ( ALL CAST ( NULL AS INTEGER ) ) + + - 55 / - COUNT ( * ) + + + 83 col2 FROM tab2 AS cor0
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5371
SELECT ALL + CAST( 15 AS SIGNED ) AS col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
15
3

skipif mysql # not compatible
query II rowsort label-5371
SELECT ALL + CAST ( 15 AS INTEGER ) AS col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
15
3

query I rowsort
SELECT ALL + + col2 + col2 FROM tab2 WHERE NOT ( NOT col1 IS NULL )
----

query I rowsort
SELECT ALL - 78 + + col2 + - 79 * + 65 FROM tab1 WHERE NOT - 88 + + col0 IS NOT NULL
----

query II rowsort
SELECT 90 AS col2, ( - ( - col2 ) ) + col1 AS col2 FROM tab0
----
90
100
90
128
90
31

query I rowsort
SELECT ALL 12 * col1 FROM tab0
----
12
252
972

onlyif mysql # aggregate syntax: 
query I rowsort label-5376
SELECT 40 * - - COUNT( * ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-5376
SELECT 40 * - - COUNT ( * ) FROM tab0
----
120

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5377
SELECT - CAST( - + CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5377
SELECT - CAST ( - + CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5378
SELECT 81 DIV + col2 FROM tab0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-5378
SELECT 81 / + col2 FROM tab0
----
0
1
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5379
SELECT DISTINCT + 44 + + COUNT( * ) FROM tab0 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5379
SELECT DISTINCT + 44 + + COUNT ( * ) FROM tab0 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5380
SELECT ALL - + 92 + - - ( - COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-95

skipif mysql # not compatible
query I rowsort label-5380
SELECT ALL - + 92 + - - ( - COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-95

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5381
SELECT - MIN( ALL 43 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2 + CAST( - col2 AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5381
SELECT - MIN ( ALL 43 ) AS col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2 + CAST ( - col2 AS REAL )
----
NULL

query I rowsort
SELECT col2 FROM tab0 WHERE NOT NULL BETWEEN ( NULL ) AND - col2 + + col0
----

query I rowsort
SELECT col1 * ( + 41 ) + col0 FROM tab0
----
138
3336
948

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 WHERE NOT + col0 <= ( ( + 33 ) )
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT ALL AVG ( - col2 ) - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5385
SELECT ALL AVG ( - col2 ) - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 * col1 = NULL
----

query I rowsort
SELECT DISTINCT + col0 - + col1 * ( col0 ) FROM tab1
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - COUNT( * ) + 99 AS col0 FROM tab2 WHERE ( ( 2 ) ) IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-5388
SELECT - COUNT ( * ) + 99 AS col0 FROM tab2 WHERE ( ( 2 ) ) IS NOT NULL
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5389
SELECT - COUNT( * ) - MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT - COUNT ( * ) - MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN ( col0 * + 39 + + col2 ) AND ( NULL )
----

query I rowsort
SELECT - col2 * + 1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col0 + 25 FROM tab2
----
100
71
89

query I rowsort
SELECT DISTINCT col1 * col2 + - 98 FROM tab2
----
1075
2982
3788

query I rowsort
SELECT - 49 * - col0 AS col2 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE col1 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT + col0 * + 63 FROM tab0
----
5481
6111
945

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col2 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5398
SELECT SUM( DISTINCT 21 ) * - 23 AS col2 FROM tab1
----
-483

skipif mysql # not compatible
query I rowsort label-5398
SELECT SUM ( DISTINCT 21 ) * - 23 AS col2 FROM tab1
----
-483

query I rowsort
SELECT DISTINCT + 29 * - 94 FROM tab0
----
-2726

query I rowsort
SELECT DISTINCT col0 * + 20 AS col1 FROM tab0
----
1740
1940
300

query I rowsort
SELECT - 42 - + col1 AS col2 FROM tab2
----
-109
-119
-93

query I rowsort
SELECT DISTINCT 53 * ( col0 ) AS col1 FROM tab2
----
2438
3392
3975

query I rowsort
SELECT + 95 FROM tab2 WHERE ( NULL ) <> ( + col2 )
----

query I rowsort
SELECT ALL + 91 * + col0 FROM tab2 WHERE NOT - 13 IS NULL
----
4186
5824
6825

query I rowsort
SELECT + 31 - col0 FROM tab1
----
-20
-54
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT COUNT( * ) * COUNT( * ) AS col0 FROM tab1 WHERE NOT + 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1 WHERE NOT + 15 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5407
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - 57 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - 57 FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 67 > ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5409
SELECT + COUNT( * ) DIV + 40 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5409
SELECT + COUNT ( * ) / + 40 FROM tab1
----
0

query I rowsort
SELECT col1 FROM tab0 WHERE 17 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5411
SELECT DISTINCT 60 DIV - ( col2 * 92 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5411
SELECT DISTINCT 60 / - ( col2 * 92 ) FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5412
SELECT + CAST( NULL AS SIGNED ) - - ( - SUM( col0 ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5412
SELECT + CAST ( NULL AS INTEGER ) - - ( - SUM ( col0 ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5413
SELECT 59 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-5413
SELECT 59 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
62

query I rowsort
SELECT + 42 / + 57 + + 10 AS col2 FROM tab1 cor0 WHERE ( col2 * ( col1 ) ) IN ( - 55 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 35 col2 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT col1 + col1 FROM tab0 AS cor0 WHERE NULL NOT IN ( col2 + 0 )
----

query I rowsort
SELECT + 88 + col2 * col0 AS col2 FROM tab2 WHERE ( - col0 * col0 ) IS NOT NULL
----
1146
2648
4438

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col2 + 13 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5419
SELECT ALL - COUNT( * ) * 27 AS col1 FROM tab1 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5419
SELECT ALL - COUNT ( * ) * 27 AS col1 FROM tab1 AS cor0 WHERE - col2 BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5420
SELECT + SUM( + 80 ) col0 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5420
SELECT + SUM ( + 80 ) col0 FROM tab2 AS cor0
----
240

onlyif mysql # aggregate syntax: 
query I rowsort label-5421
SELECT DISTINCT ( ( COUNT( * ) ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5421
SELECT DISTINCT ( ( COUNT ( * ) ) ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 30 * col1 < - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-5423
SELECT DISTINCT + - ( + col0 ) DIV - 22 AS col1 FROM tab2 AS cor0
----
2
3

skipif mysql # not compatible
query I rowsort label-5423
SELECT DISTINCT + - ( + col0 ) / - 22 AS col1 FROM tab2 AS cor0
----
2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 45 * + col1 col2 FROM tab0 AS cor0
----
-3645
-45
-945

onlyif mysql # aggregate syntax: 
query I rowsort label-5425
SELECT + 56 * + COUNT( * ) col0 FROM tab0 AS cor0
----
168

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5425
SELECT + 56 * + COUNT ( * ) col0 FROM tab0 AS cor0
----
168

query I rowsort
SELECT DISTINCT col0 + col1 FROM tab2 AS cor0 WHERE 34 <= col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5427
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 5 * col1 NOT BETWEEN 58 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5427
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT 5 * col1 NOT BETWEEN 58 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5428
SELECT ALL - MAX( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5428
SELECT ALL - MAX ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT + COUNT( * ) * + 99 AS col1 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-5429
SELECT + COUNT ( * ) * + 99 AS col1 FROM tab1 AS cor0
----
297

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( ( col1 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 36 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5432
SELECT ALL * FROM tab2 WHERE NOT - CAST( col1 AS SIGNED ) < ( + col2 ) OR NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-5432
SELECT ALL * FROM tab2 WHERE NOT - CAST ( col1 AS INTEGER ) < ( + col2 ) OR NOT NULL IS NULL
----

query I rowsort
SELECT 41 * + 53 FROM tab0 WHERE NOT + col2 >= col1
----
2173
2173

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN col1 - 46 AND 84
----

query I rowsort
SELECT ALL - 99 - col1 FROM tab0 WHERE NOT + col0 NOT IN ( col0 )
----
-100
-120
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 1 / 14 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5436
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 1 / 14 IS NULL
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5437
SELECT DISTINCT + COUNT( * ) DIV + - COUNT( * ) + - 37 col1 FROM tab0
----
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5437
SELECT DISTINCT + COUNT ( * ) / + - COUNT ( * ) + - 37 col1 FROM tab0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT ALL COUNT( * ) * 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
333

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL COUNT ( * ) * 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
333

query I rowsort
SELECT - 66 * - col2 AS col2 FROM tab0
----
3102
6534
660

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5440
SELECT + CAST( NULL AS SIGNED ) * - 53 / + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5440
SELECT + CAST ( NULL AS INTEGER ) * - 53 / + COUNT ( * ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT ALL COUNT( * ) * + - COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT ( + col1 ) * + - 75 AS col1 FROM tab1 AS cor0
----
-1050
-3525
-375

query I rowsort
SELECT + + col1 * + - col0 + + col0 * col0 FROM tab2 AS cor0
----
-230
-832
600

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 69 col1, col2 * + ( + 92 ) FROM tab2 AS cor0
----
-69
2116
-69
3680
-69
5336

query II rowsort
SELECT + 33 AS col1, - col0 * col2 FROM tab0 AS cor0
----
33
-705
33
-870
33
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT - 86 AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + col2 + + col0 NOT BETWEEN col0 AND ( col2 * - 67 )
----

skipif mysql # not compatible
query I rowsort label-5446
SELECT - 86 AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + col2 + + col0 NOT BETWEEN col0 AND ( col2 * - 67 )
----

query I rowsort
SELECT DISTINCT + + col1 * 23 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col1 AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN col1 AND ( - col2 )
----
0

query I rowsort
SELECT ALL - 2 * + 46 + 14 FROM tab1 AS cor0
----
-78
-78
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5450
SELECT ALL CAST( - 98 AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
-98
-98
-98

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL CAST ( - 98 AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NOT 47 IS NULL
----
-98
-98
-98

onlyif mysql # DIV for integer division: 
query I rowsort label-5451
SELECT DISTINCT col0 * + col1 * + + 65 * + 9 + col1 DIV - 60 AS col0 FROM tab2
----
1372410
2882879
2939624

skipif mysql # not compatible
query I rowsort label-5451
SELECT DISTINCT col0 * + col1 * + + 65 * + 9 + col1 / - 60 AS col0 FROM tab2
----
1372410
2882879
2939624

query I rowsort
SELECT DISTINCT + col1 + + col0 + + - 1 FROM tab2
----
140
141
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT ALL - 14 + - ( - 36 ) + - + COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL - 14 + - ( - 36 ) + - + COUNT ( * ) FROM tab1
----
19

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - 66 * + + col1 )
----

query I rowsort
SELECT - - col1 FROM tab2 WHERE col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT + col2 * + col0 + ( + - 37 ) FROM tab0
----
668
833
9566

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5457
SELECT COUNT( DISTINCT col0 ) * + 66 + + CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5457
SELECT COUNT ( DISTINCT col0 ) * + 66 + + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5458
SELECT * FROM tab1 WHERE ( + - 32 ) <> - CAST( NULL AS DECIMAL ) + col2
----

skipif mysql # not compatible
query III rowsort label-5458
SELECT * FROM tab1 WHERE ( + - 32 ) <> - CAST ( NULL AS REAL ) + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5459
SELECT ALL - 12 + + SUM( + col2 ) FROM tab2
----
109

skipif mysql # not compatible
query I rowsort label-5459
SELECT ALL - 12 + + SUM ( + col2 ) FROM tab2
----
109

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT ALL - 7 * COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-5460
SELECT ALL - 7 * COUNT ( * ) AS col2 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5462
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col1 / - col0 - + ( + col2 ) / - col2 ) AND ( col2 + - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5462
SELECT * FROM tab1 WHERE NULL BETWEEN ( - col1 / - col0 - + ( + col2 ) / - col2 ) AND ( col2 + - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5463
SELECT DISTINCT + COUNT( * ) - - - COUNT( ALL + col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5463
SELECT DISTINCT + COUNT ( * ) - - - COUNT ( ALL + col0 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 92 * + col1 AS col1 FROM tab1 AS cor0
----
-1288
-4324
-460

query I rowsort
SELECT ALL + + col1 * + col2 * + - ( - col2 ) - col2 - ( col2 ) FROM tab1 AS cor0
----
128832
17287
217192

query I rowsort
SELECT - col1 * + 54 FROM tab2 AS cor0
----
-2754
-3618
-4158

query I rowsort
SELECT ALL + - col1 - 36 AS col0 FROM tab0 AS cor0
----
-117
-37
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-5468
SELECT DISTINCT + + MIN( ALL - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5468
SELECT DISTINCT + + MIN ( ALL - + col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5469
SELECT DISTINCT + col1 * col0 + col2 * - ( - 79 ) * CAST( NULL AS SIGNED ) - col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT + col1 * col0 + col2 * - ( - 79 ) * CAST ( NULL AS INTEGER ) - col0 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( col2 ) * - 76 + 20 FROM tab1 WHERE NOT col1 + - + col0 - - col1 IN ( 89 * col2 )
----
-4464
-5148
-7276

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT ( ( 84 ) + 89 * - col0 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5472
SELECT + col0 DIV 35 AS col1 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
query I rowsort label-5472
SELECT + col0 / 35 AS col1 FROM tab0 AS cor0
----
0
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT ALL - 67 * - col2 * 15 DIV col2 FROM tab1 AS cor0
----
1005
1005
1005

skipif mysql # not compatible
query I rowsort label-5473
SELECT ALL - 67 * - col2 * 15 / col2 FROM tab1 AS cor0
----
1005
1005
1005

query I rowsort
SELECT DISTINCT + 27 * - 62 AS col1 FROM tab2 cor0
----
-1674

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT ALL + 98 * - COUNT( * ) * - - 30 FROM tab1 AS cor0
----
-8820

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL + 98 * - COUNT ( * ) * - - 30 FROM tab1 AS cor0
----
-8820

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 / + - ( - + col2 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5477
SELECT DISTINCT + + ( + + ( 52 ) ) DIV col1 AS col1 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT + + ( + + ( 52 ) ) / col1 AS col1 FROM tab1 AS cor0
----
1
10
3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL IN ( col1 * + col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 89 + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col0 * col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-4896
-5015
-6188

query I rowsort
SELECT ALL - col0 + - col0 * + - col1 FROM tab1
----
340
4186
663

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5482
SELECT ALL - 34 AS col2, CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NULL >= - col0
----

skipif mysql # not compatible
query II rowsort label-5482
SELECT ALL - 34 AS col2, CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NULL >= - col0
----

query I rowsort
SELECT ( - col0 ) * - + 92 AS col2 FROM tab0
----
1380
8004
8924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5484
SELECT ALL - MAX( + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5484
SELECT ALL - MAX ( + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query II rowsort
SELECT col0 AS col1, - 62 FROM tab2
----
46
-62
64
-62
75
-62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5486
SELECT * FROM tab2 AS cor0 WHERE NOT + 33 / + col2 NOT BETWEEN + col1 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5486
SELECT * FROM tab2 AS cor0 WHERE NOT + 33 / + col2 NOT BETWEEN + col1 AND CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - col1 ) - + + 98 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT + SUM( + col1 ) col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5488
SELECT DISTINCT + SUM ( + col1 ) col0 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 2 + + 99 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 * - - col0 * + + col0 * col1 - + 59 + - col2 col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
15735882
1804169
931333

onlyif mysql # aggregate syntax: 
query I rowsort label-5491
SELECT DISTINCT + MAX( DISTINCT + ( col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5491
SELECT DISTINCT + MAX ( DISTINCT + ( col0 ) ) FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5492
SELECT - ( MAX( col1 ) ) + + 29 - - - 96 FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-5492
SELECT - ( MAX ( col1 ) ) + + 29 - - - 96 FROM tab2
----
-144

query I rowsort
SELECT + 57 + + - col1 + - + 9 FROM tab2
----
-19
-29
-3

query I rowsort
SELECT ALL - col2 * + col0 + 93 AS col2 FROM tab0
----
-612
-777
-9510

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - 43 * + + col1 )
----

query I rowsort
SELECT ( + 23 ) + - - col0 FROM tab2 AS cor0
----
69
87
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT ALL + MIN( - - col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5497
SELECT ALL + MIN ( - - col0 ) FROM tab0 cor0
----
15

query I rowsort
SELECT - 30 AS col2 FROM tab1 cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT ALL - COUNT( * ) * - - 29 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-87

skipif mysql # not compatible
query I rowsort label-5499
SELECT ALL - COUNT ( * ) * - - 29 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-87

query I rowsort
SELECT ALL + + ( + col1 ) * + 37 FROM tab0 AS cor0
----
2997
37
777

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5501
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 * - CAST( NULL AS SIGNED ) + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5501
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 * - CAST ( NULL AS INTEGER ) + + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col0 - - col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5503
SELECT + col0 * col0 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5503
SELECT + col0 * col0 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5504
SELECT DISTINCT + ( - COUNT( col2 ) ) * + COUNT( * ) + + MAX( DISTINCT + CAST( NULL AS SIGNED ) ) - - MIN( - 48 ) * - MIN( DISTINCT + col1 + - 17 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5504
SELECT DISTINCT + ( - COUNT ( col2 ) ) * + COUNT ( * ) + + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) - - MIN ( - 48 ) * - MIN ( DISTINCT + col1 + - 17 ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + + 62 AS col1 FROM tab1
----
2914
310
868

query I rowsort
SELECT - col0 - + - col2 + col0 * col1 FROM tab2
----
2323
4904
5008

onlyif mysql # DIV for integer division: 
query I rowsort label-5507
SELECT ALL col2 + - - col1 + + ( + - col0 ) DIV col1 * + col2 AS col0 FROM tab2
----
117
67
74

skipif mysql # not compatible
query I rowsort label-5507
SELECT ALL col2 + - - col1 + + ( + - col0 ) / col1 * + col2 AS col0 FROM tab2
----
117
67
74

onlyif mysql # DIV for integer division: 
query I rowsort label-5508
SELECT ALL 68 DIV + col1 - + col1 FROM tab1
----
-10
-46
8

skipif mysql # not compatible
query I rowsort label-5508
SELECT ALL 68 / + col1 - + col1 FROM tab1
----
-10
-46
8

query I rowsort
SELECT col2 * + - col0 - + col2 FROM tab2
----
-1081
-2600
-4408

query II rowsort
SELECT ALL - ( + col2 ) * - 37 + + 0 AS col2, 99 AS col2 FROM tab1
----
2183
99
2516
99
3552
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT ALL - COUNT( * ) - + - 18 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-5511
SELECT ALL - COUNT ( * ) - + - 18 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 16 / + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 66 * + + col0 FROM tab2 cor0
----
3036
4224
4950

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5514
SELECT ALL + CAST( NULL AS SIGNED ) * col1 * + + col1 + + + col1 - - CAST( + col1 AS DECIMAL ) FROM tab1 AS cor0 WHERE - 83 - + ( + - col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5514
SELECT ALL + CAST ( NULL AS INTEGER ) * col1 * + + col1 + + + col1 - - CAST ( + col1 AS REAL ) FROM tab1 AS cor0 WHERE - 83 - + ( + - col0 ) IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 76 NOT IN ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5516
SELECT DISTINCT - - COUNT( * ) * 58 AS col1 FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-5516
SELECT DISTINCT - - COUNT ( * ) * 58 AS col1 FROM tab1 AS cor0
----
174

query I rowsort
SELECT DISTINCT - + ( - 60 ) FROM tab1 AS cor0
----
60

query I rowsort
SELECT DISTINCT 96 * 25 FROM tab1
----
2400

query I rowsort
SELECT 11 * + col1 * col2 FROM tab1 AS cor0
----
14784
3245
35156

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL - + MAX( - col1 ) AS col1 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5520
SELECT ALL - + MAX ( - col1 ) AS col1 FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL + 39 * + col2 AS col1 FROM tab0 AS cor0 WHERE + 72 >= ( + 33 + + col0 )
----
1833

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5522
SELECT DISTINCT 34 * - CAST( + + 87 AS SIGNED ) + + ( + col2 ) + col2 AS col2, + col2 AS col0 FROM tab2
----
-2842
58
-2878
40
-2912
23

skipif mysql # not compatible
query II rowsort label-5522
SELECT DISTINCT 34 * - CAST ( + + 87 AS INTEGER ) + + ( + col2 ) + col2 AS col2, + col2 AS col0 FROM tab2
----
-2842
58
-2878
40
-2912
23

query I rowsort
SELECT ALL + 40 * col0 FROM tab1
----
2040
3400
3640

query II rowsort
SELECT ALL + col1 * - + col0 + + - col2, - 83 AS col0 FROM tab1
----
-4345
-83
-484
-83
-810
-83

query I rowsort
SELECT - 1 + + col1 AS col2 FROM tab0
----
0
20
80

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT DISTINCT 0, COUNT( * ) AS col0 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-5526
SELECT DISTINCT 0, COUNT ( * ) AS col0 FROM tab2
----
0
3

query I rowsort
SELECT + col1 + + 32 * + col1 AS col1 FROM tab1
----
1551
165
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col2 col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-5529
SELECT + MIN( ALL + + col1 ) FROM tab0 WHERE - + col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-5529
SELECT + MIN ( ALL + + col1 ) FROM tab0 WHERE - + col1 IS NOT NULL
----
1

query I rowsort
SELECT - 56 + + col0 FROM tab2 AS cor0
----
-10
19
8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + 86 = + ( + + 89 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - COUNT( * ) + + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-5532
SELECT - COUNT ( * ) + + 10 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT DISTINCT col2 + col0 * + col2 AS col2 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT col1 - - 59 - - col0 - - col1 * 25 FROM tab2
----
1431
1876
2125

query I rowsort
SELECT 27 - - 90 * + col0 AS col0 FROM tab0 AS cor0
----
1377
7857
8757

query I rowsort
SELECT - 5 * - + col2 - col0 FROM tab1 AS cor0
----
210
249
429

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5537
SELECT DISTINCT + ( + CAST( - col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5537
SELECT DISTINCT + ( + CAST ( - col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5538
SELECT 42 + - col1 DIV - + 73 + ( + 25 ) FROM tab0 AS cor0
----
67
67
68

skipif mysql # not compatible
query I rowsort label-5538
SELECT 42 + - col1 / - + 73 + ( + 25 ) FROM tab0 AS cor0
----
67
67
68

query I rowsort
SELECT DISTINCT + 23 + + col1 + - col2 * - col2 + col0 AS col0 FROM tab2 AS cor0
----
1764
3529
649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 22 ) col2, col0 AS col2 FROM tab2 cor0
----
-22
46
-22
64
-22
75

query I rowsort
SELECT ALL - 12 + + - col0 AS col2 FROM tab1
----
-103
-63
-97

query I rowsort
SELECT 68 AS col2 FROM tab2 WHERE NULL IN ( + 74 + - ( + + col1 ) + - ( + + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT MIN( DISTINCT + + 11 ) + - 60 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-5543
SELECT MIN ( DISTINCT + + 11 ) + - 60 FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5544
SELECT DISTINCT - MAX( + - col1 ) * - MIN( ALL + col1 ) AS col0 FROM tab2
----
-2601

skipif mysql # not compatible
query I rowsort label-5544
SELECT DISTINCT - MAX ( + - col1 ) * - MIN ( ALL + col1 ) AS col0 FROM tab2
----
-2601

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT DISTINCT - ( - MIN( DISTINCT + 83 ) ) - + - COUNT( * ) FROM tab2 WHERE - + 3 * + ( - - col1 ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - ( - MIN ( DISTINCT + 83 ) ) - + - COUNT ( * ) FROM tab2 WHERE - + 3 * + ( - - col1 ) = NULL
----
NULL

query I rowsort
SELECT + + ( + 24 ) + - + col0 AS col0 FROM tab1 WHERE NOT - col0 NOT BETWEEN 18 AND - col2
----

query I rowsort
SELECT + col1 * ( - - 52 ) AS col1 FROM tab0
----
1092
4212
52

onlyif mysql # aggregate syntax: 
query I rowsort label-5548
SELECT - SUM( 91 ) col1 FROM tab0
----
-273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5548
SELECT - SUM ( 91 ) col1 FROM tab0
----
-273

query I rowsort
SELECT ALL - col2 * + - ( + col0 ) FROM tab1
----
4896
5015
6188

query I rowsort
SELECT - 36 * + 47 + + col0 + ( + col1 ) / - - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT + COUNT( * ) - - - 39 FROM tab0 AS cor0 WHERE NOT col0 >= - + 13
----
-39

skipif mysql # not compatible
query I rowsort label-5551
SELECT + COUNT ( * ) - - - 39 FROM tab0 AS cor0 WHERE NOT col0 >= - + 13
----
-39

query I rowsort
SELECT 47 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 / col2 * - col2 - - 87 AND ( NULL )
----

query II rowsort
SELECT ALL + + 78 * col2 AS col2, 42 FROM tab2 AS cor0
----
1794
42
3120
42
4524
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5554
SELECT 69 DIV - + COUNT( * ) col0 FROM tab2
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5554
SELECT 69 / - + COUNT ( * ) col0 FROM tab2
----
-23

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 52 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5556
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL IS NOT NULL )
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 57 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT - COUNT( * ) + + 9 FROM tab0 AS cor0 WHERE NOT + col2 < NULL
----
9

skipif mysql # not compatible
query I rowsort label-5558
SELECT - COUNT ( * ) + + 9 FROM tab0 AS cor0 WHERE NOT + col2 < NULL
----
9

query I rowsort
SELECT + 65 + - - 92 AS col2 FROM tab1 AS cor0
----
157
157
157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5560
SELECT + 70 + - 6 DIV COUNT( * ) AS col0 FROM tab0 cor0
----
68

skipif mysql # not compatible
query I rowsort label-5560
SELECT + 70 + - 6 / COUNT ( * ) AS col0 FROM tab0 cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + 74 + - COUNT( * ) AS col2 FROM tab2 cor0
----
71

skipif mysql # not compatible
query I rowsort label-5561
SELECT + 74 + - COUNT ( * ) AS col2 FROM tab2 cor0
----
71

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 25 - + + col1 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5563
SELECT - + CAST( + + 8 AS SIGNED ) + + + ( - SUM( DISTINCT + + 73 ) ) col2 FROM tab2 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5563
SELECT - + CAST ( + + 8 AS INTEGER ) + + + ( - SUM ( DISTINCT + + 73 ) ) col2 FROM tab2 AS cor0
----
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 <= ( - col0 * + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( - col0 ) * col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5566
SELECT ALL - COUNT( * ) DIV - - 43 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5566
SELECT ALL - COUNT ( * ) / - - 43 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5567
SELECT MIN( ALL - 3 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5567
SELECT MIN ( ALL - 3 ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5568
SELECT DISTINCT ( - COUNT( * ) ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5568
SELECT DISTINCT ( - COUNT ( * ) ) + + COUNT ( * ) FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5569
SELECT DISTINCT - COUNT( * ) DIV - 50 AS col2, 1 AS col1 FROM tab1
----
0
1

skipif mysql # not compatible
query II rowsort label-5569
SELECT DISTINCT - COUNT ( * ) / - 50 AS col2, 1 AS col1 FROM tab1
----
0
1

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT 40 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + - ( + 99 ) IS NULL
----

query I rowsort
SELECT ALL - + ( + + col2 ) + - - col0 AS col1 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5573
SELECT - - 19 DIV col2 AS col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5573
SELECT - - 19 / col2 AS col1 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT - col1 - - col2 - - col1 * + - col0 AS col1 FROM tab0 cor0
----
-1249
-1838
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 * col0 * + - 29 * col1 * - ( - col0 ) col2 FROM tab0 AS cor0
----
-4092915
-69142815
-7927875

query I rowsort
SELECT DISTINCT + 67 * - - col1 - - + 55 + + col0 * col2 FROM tab2 AS cor0
----
4530
7774
8894

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5577
SELECT + 62 AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * - col1 > + - col1
----

skipif mysql # not compatible
query I rowsort label-5577
SELECT + 62 AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * - col1 > + - col1
----

query I rowsort
SELECT ALL ( col2 ) * + col0 * col2 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT - 16 * col1 * col0 FROM tab0
----
-1552
-19440
-29232

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5580
SELECT + COUNT( * ) DIV 17 DIV COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5580
SELECT + COUNT ( * ) / 17 / COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT ALL 84 * + col1 FROM tab1
----
1176
3948
420

query II rowsort
SELECT ALL col1 AS col1, col1 AS col0 FROM tab0
----
1
1
21
21
81
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5583
SELECT ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5583
SELECT ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 90 AS col2, col0 AS col0 FROM tab0 cor0
----
-90
15
-90
87
-90
97

onlyif mysql # aggregate syntax: 
query II rowsort label-5585
SELECT DISTINCT + + MIN( col0 ) AS col1, - 29 FROM tab1 cor0 WHERE NULL > + ( + col0 ) + - col0
----
NULL
-29

skipif mysql # not compatible
query II rowsort label-5585
SELECT DISTINCT + + MIN ( col0 ) AS col1, - 29 FROM tab1 cor0 WHERE NULL > + ( + col0 ) + - col0
----
NULL
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT CAST( + 63 AS SIGNED ) - + 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

skipif mysql # not compatible
query I rowsort label-5587
SELECT CAST ( + 63 AS INTEGER ) - + 80 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query I rowsort
SELECT ALL 51 AS col2 FROM tab0 cor0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5589
SELECT ALL ( 45 ) * + + ( CAST( col2 AS SIGNED ) ) + - - 37 * col1 FROM tab1 AS cor0
----
2840
4799
4838

skipif mysql # not compatible
query I rowsort label-5589
SELECT ALL ( 45 ) * + + ( CAST ( col2 AS INTEGER ) ) + - - 37 * col1 FROM tab1 AS cor0
----
2840
4799
4838

query I rowsort
SELECT - + col1 * + - col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 * col1 + col0 * + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5592
SELECT + COUNT( DISTINCT - - col2 ), - COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 cor0
----
3
-9

skipif mysql # not compatible
query II rowsort label-5592
SELECT + COUNT ( DISTINCT - - col2 ), - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 cor0
----
3
-9

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5593
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + CAST( NULL AS DECIMAL ) * col2 * - 98 )
----

skipif mysql # not compatible
query III rowsort label-5593
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( NULL AS REAL ) * col2 * - 98 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col2 FROM tab0 cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5595
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + + 44 AS SIGNED ) < + + 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5595
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + + 44 AS INTEGER ) < + + 21
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 + 74 FROM tab2 AS cor0
----
-3
23
7

query I rowsort
SELECT DISTINCT - col0 + col2 + + - 71 AS col0 FROM tab1
----
-26
-94
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5598
SELECT DISTINCT 8 + COUNT( DISTINCT - 57 ) AS col0 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT 8 + COUNT ( DISTINCT - 57 ) AS col0 FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT 75 + + - COUNT( * ) col2 FROM tab0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5599
SELECT DISTINCT 75 + + - COUNT ( * ) col2 FROM tab0
----
72

query I rowsort
SELECT + ( - col2 ) + + - col0 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT 91 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 5748627ef5fd86a21cd559fd278d7277

query I rowsort
SELECT DISTINCT 21 - + col2 FROM tab1 AS cor0
----
-38
-47
-75

query I rowsort
SELECT ( - + col2 ) + + col1 + col0 AS col2 FROM tab1 cor0
----
-31
31
70

onlyif mysql # aggregate syntax: 
query I rowsort label-5604
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5604
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9

query II rowsort
SELECT + + col1 - + + 57 + 54 * + 1 AS col0, col1 AS col0 FROM tab1 AS cor0
----
11
14
2
5
44
47

onlyif mysql # DIV for integer division: 
query I rowsort label-5606
SELECT + col2 + - + 75 + + col0 DIV + 85 + col1 AS col2 FROM tab2 AS cor0
----
-1
42
50

skipif mysql # not compatible
query I rowsort label-5606
SELECT + col2 + - + 75 + + col0 / + 85 + col1 AS col2 FROM tab2 AS cor0
----
-1
42
50

query II rowsort
SELECT - + col2 + - 30 AS col2, - col1 AS col1 FROM tab2 cor0
----
-53
-51
-70
-77
-88
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5608
SELECT DISTINCT - CAST( 58 AS SIGNED ) AS col2 FROM tab1 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - CAST ( 58 AS INTEGER ) AS col2 FROM tab1 cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 * - col1 col2, - col0 AS col2 FROM tab0 AS cor0
----
-1215
-15
-1827
-87
-97
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5610
SELECT - + col2 DIV - 1 - - col1 FROM tab0 AS cor0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-5610
SELECT - + col2 / - 1 - - col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT 98 * - + 60 * + + COUNT( * ) FROM tab1
----
-17640

skipif mysql # not compatible
query I rowsort label-5611
SELECT 98 * - + 60 * + + COUNT ( * ) FROM tab1
----
-17640

onlyif mysql # DIV for integer division: 
query I rowsort label-5612
SELECT + col1 DIV 85 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5612
SELECT + col1 / 85 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5613
SELECT - col2 DIV + + 29 FROM tab1
----
-2
-2
-3

skipif mysql # not compatible
query I rowsort label-5613
SELECT - col2 / + + 29 FROM tab1
----
-2
-2
-3

query II rowsort
SELECT 46 * - - ( col1 ) AS col0, 99 FROM tab0
----
3726
99
46
99
966
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 49 * col2 IS NOT NULL
----

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5617
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - ( - 31 ) - - col2 * - - col2 BETWEEN - + col2 + + - CAST( NULL AS SIGNED ) + - col0 AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5617
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - ( - 31 ) - - col2 * - - col2 BETWEEN - + col2 + + - CAST ( NULL AS INTEGER ) + - col0 AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) > col1 + - col0
----

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NULL = - col1 * + ( ( - col2 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5620
SELECT ALL col0, 55 DIV + 88 FROM tab1
----
51
0
85
0
91
0

skipif mysql # not compatible
query II rowsort label-5620
SELECT ALL col0, 55 / + 88 FROM tab1
----
51
0
85
0
91
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5621
SELECT ALL - ( + + COUNT( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5621
SELECT ALL - ( + + COUNT ( * ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT + - COUNT( * ) + + 29 + + MAX( DISTINCT + + col1 ) FROM tab0 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-5622
SELECT + - COUNT ( * ) + + 29 + + MAX ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
107

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 - + col2 BETWEEN - 1 + - 88 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5624
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND col1 * 26 + + col2 + - col1 + - CAST( + col0 AS SIGNED ) * + col2 * col2
----

skipif mysql # not compatible
query I rowsort label-5624
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE NULL BETWEEN + col0 AND col1 * 26 + + col2 + - col1 + - CAST ( + col0 AS INTEGER ) * + col2 * col2
----

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE + 6 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 + + 64 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 45 * - + col0 AS col1 FROM tab2 AS cor0
----
2070
2880
3375

query I rowsort
SELECT DISTINCT col2 * + col1 + - ( + - col0 ) AS col0 FROM tab2
----
1219
3144
3961

query I rowsort
SELECT ALL col0 + - - 52 AS col0 FROM tab2
----
116
127
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 91 * col0 * + + col0 col2 FROM tab1
----
236691
657475
753571

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 38 * 60 + 21 BETWEEN NULL AND - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT 50 * + + COUNT( * ) + MIN( ALL + - 56 ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5634
SELECT 50 * + + COUNT ( * ) + MIN ( ALL + - 56 ) FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL - COUNT( * ) * - 35 FROM tab1
----
105

skipif mysql # not compatible
query I rowsort label-5635
SELECT ALL - COUNT ( * ) * - 35 FROM tab1
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT DISTINCT + COUNT( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5636
SELECT DISTINCT + COUNT ( ALL - col0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * + ( - + col2 ) = 87 AND ( NULL ) IS NOT NULL
----

query II rowsort
SELECT - col2 AS col1, col0 * + col2 FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

query II rowsort
SELECT ALL + ( - col2 ) AS col2, col1 * - - col0 FROM tab1
----
-59
425
-68
4277
-96
714

query II rowsort
SELECT col1 * col0, - col1 AS col0 FROM tab1
----
425
-5
4277
-47
714
-14

query I rowsort
SELECT + col0 * + col2 AS col0 FROM tab0 WHERE NOT ( NOT 35 <= + - 14 + - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5642
SELECT col2 * + 65 + - col1 - col2 * + 70 + col2 + - - col2 / col0 FROM tab0 WHERE NOT + ( - + CAST( - col1 AS SIGNED ) ) + + col1 / + - col2 * + + 51 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5642
SELECT col2 * + 65 + - col1 - col2 * + 70 + col2 + - - col2 / col0 FROM tab0 WHERE NOT + ( - + CAST ( - col1 AS INTEGER ) ) + + c