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 ) ) + + col1 / + - col2 * + + 51 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query III rowsort label-5643
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 = + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 17 * + + 38 IS NOT NULL )
----

query I rowsort
SELECT col1 * - ( + 65 ) AS col1 FROM tab1
----
-3055
-325
-910

query I rowsort
SELECT + - col1 * + + col0 - + col1 FROM tab2 AS cor0 WHERE NOT 87 IS NULL
----
-2397
-5005
-5092

onlyif mysql # aggregate syntax: 
query I rowsort label-5647
SELECT + COUNT( * ) + - SUM( - col0 ) col1 FROM tab1 AS cor0 WHERE NOT 40 IS NULL
----
230

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5647
SELECT + COUNT ( * ) + - SUM ( - col0 ) col1 FROM tab1 AS cor0 WHERE NOT 40 IS NULL
----
230

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

skipif mysql # not compatible
query I rowsort label-5648
SELECT + + CAST ( - COUNT ( * ) AS INTEGER ) + 93 FROM tab1 AS cor0
----
90

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

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

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

query I rowsort
SELECT ALL + col2 * 25 + + col1 FROM tab0
----
1256
2476
271

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 * - col2 AS col2 FROM tab0 cor0
----
-1
-9801
-21
-100
-81
-2209

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

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 + + + 25 + + col0 AS col0 FROM tab1 AS cor0
----
127
195
207

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

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 42 / - 90 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5661
SELECT ALL + MIN( DISTINCT - CAST( + col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5661
SELECT ALL + MIN ( DISTINCT - CAST ( + col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5662
SELECT DISTINCT COUNT( * ) - + COUNT( * ) + MIN( + col1 ) + + SUM( DISTINCT - + col1 ) + + COUNT( * ) * - 15 * + - 97 FROM tab1
----
4304

skipif mysql # not compatible
query I rowsort label-5662
SELECT DISTINCT COUNT ( * ) - + COUNT ( * ) + MIN ( + col1 ) + + SUM ( DISTINCT - + col1 ) + + COUNT ( * ) * - 15 * + - 97 FROM tab1
----
4304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5663
SELECT ALL MIN( + col1 ) + SUM( ALL + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) FROM tab2
----
NULL

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

query II rowsort
SELECT + 16 + col2, col1 AS col2 FROM tab2
----
39
51
56
77
74
67

query III rowsort
SELECT ALL * FROM tab1 WHERE 96 < + + col0
----

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

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

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

query I rowsort
SELECT DISTINCT - 74 - + col1 FROM tab1 cor0
----
-121
-79
-88

query I rowsort
SELECT DISTINCT + col0 * + 79 * - 52 FROM tab1
----
-209508
-349180
-373828

query I rowsort
SELECT DISTINCT ( + 88 ) * - + col1 AS col1 FROM tab1 AS cor0
----
-1232
-4136
-440

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

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

query I rowsort
SELECT DISTINCT - col0 * - col1 * + + col2 + - ( + col2 ) + col2 FROM tab0 WHERE NOT + + col1 + - col1 * + - col1 IS NULL
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 6 col2 FROM tab2
----
-138
-240
-348

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5676
SELECT - - 73 * + CAST( NULL AS SIGNED ) + - col0 * 55 - - + 69 AS col1 FROM tab1 WHERE NOT 66 * + 24 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5676
SELECT - - 73 * + CAST ( NULL AS INTEGER ) + - col0 * 55 - - + 69 AS col1 FROM tab1 WHERE NOT 66 * + 24 IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT MIN( + 83 ) FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-5677
SELECT MIN ( + 83 ) FROM tab0
----
83

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

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

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

skipif mysql # not compatible
query I rowsort label-5679
SELECT - MAX ( ALL 89 ) FROM tab1 AS cor0
----
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5680
SELECT ALL + - CAST( NULL AS SIGNED ) + + + 10 + + + CAST( NULL AS SIGNED ) - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5680
SELECT ALL + - CAST ( NULL AS INTEGER ) + + + 10 + + + CAST ( NULL AS INTEGER ) - col0 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5681
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT - 88 IN ( - 8, 1 + col2, + col2, - col1 )
----
3

skipif mysql # not compatible
query I rowsort label-5681
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT - 88 IN ( - 8, 1 + col2, + col2, - col1 )
----
3

query I rowsort
SELECT col0 + - col1 * col0 + 57 * 2 * 39 * - col2 + - col0 AS col0 FROM tab2
----
-104604
-182768
-262893

query I rowsort
SELECT ALL + col1 * 87 + - 18 AS col1 FROM tab1
----
1200
4071
417

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5684
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 * + CAST( NULL AS SIGNED ) - + ( - - ( + - 94 ) ), - + col0 * + - col0 + + 3 )
----

skipif mysql # not compatible
query I rowsort label-5684
SELECT + + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col2, col2 * + CAST ( NULL AS INTEGER ) - + ( - - ( + - 94 ) ), - + col0 * + - col0 + + 3 )
----

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5686
SELECT 22 * + col1 AS col1, 75 * - 93 * - col1 DIV col1 - + col0 + - 84 AS col1 FROM tab2 AS cor0
----
1122
6845
1474
6816
1694
6827

skipif mysql # not compatible
query II rowsort label-5686
SELECT 22 * + col1 AS col1, 75 * - 93 * - col1 / col1 - + col0 + - 84 AS col1 FROM tab2 AS cor0
----
1122
6845
1474
6816
1694
6827

query II rowsort
SELECT + col1 + + col2 AS col0, col0 FROM tab0 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
100
97
128
15
31
87

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT + COUNT( * ) * + + 71 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - ( - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5688
SELECT + COUNT ( * ) * + + 71 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( - ( - col0 ) )
----
0

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

query I rowsort
SELECT DISTINCT 25 + 47 FROM tab0
----
72

query I rowsort
SELECT DISTINCT col2 - - + col1 + - + 85 + + 92 * + col0 FROM tab2
----
4221
5920
6940

query I rowsort
SELECT DISTINCT - - col1 + 31 FROM tab1 AS cor0
----
36
45
78

query I rowsort
SELECT ALL - - col2 - + - col1 + 50 AS col2 FROM tab0 AS cor0
----
150
178
81

query I rowsort
SELECT + col2 * - 75 AS col2 FROM tab2 AS cor0
----
-1725
-3000
-4350

query I rowsort
SELECT 80 * col0 FROM tab0 AS cor0
----
1200
6960
7760

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5696
SELECT ALL - COUNT ( 94 ) col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - 29 * + col1 + col0 FROM tab1 AS cor0
----
-1272
-355
-60

query III rowsort
SELECT * FROM tab2 WHERE NOT - 67 * 66 + + col2 * + col0 * + 83 * - 94 + col1 NOT IN ( + + col2, ( + col2 ) * + 94 + - col0, + - 85, - ( + - col0 ), 93, col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 77 col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5703
SELECT DISTINCT - COUNT( * ) * 82 AS col2 FROM tab1 AS cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT - COUNT ( * ) * 82 AS col2 FROM tab1 AS cor0
----
-246

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

skipif mysql # not compatible
query II rowsort label-5704
SELECT DISTINCT - - 72 AS col1, + COUNT ( * ) FROM tab2 cor0
----
72
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5705
SELECT ALL - - COUNT( * ) * 55 AS col1 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-5705
SELECT ALL - - COUNT ( * ) * 55 AS col1 FROM tab1 AS cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5706
SELECT ALL - CAST( + + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5706
SELECT ALL - CAST ( + + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - 64 * - + col2 AS col2 FROM tab0
----
3008
6336
640

onlyif mysql # DIV for integer division: 
query I rowsort label-5708
SELECT ALL 16 DIV - - ( - col0 ) AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5708
SELECT ALL 16 / - - ( - col0 ) AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT - col2 * - + 68 * - - col1 AS col0 FROM tab1
----
20060
217328
91392

query II rowsort
SELECT - col0 + + col2 AS col0, + 44 + - col1 AS col2 FROM tab0 AS cor0
----
-77
23
2
43
32
-37

query I rowsort
SELECT - col0 + - ( + 98 ) - + col0 FROM tab2 AS cor0
----
-190
-226
-248

query I rowsort
SELECT ALL - - col1 + - - 0 * col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5713
SELECT - + 13 + MIN( DISTINCT + - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5713
SELECT - + 13 + MIN ( DISTINCT + - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT col0 DIV col1 + 15 AS col1 FROM tab2
----
15
16

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT col0 / col1 + 15 AS col1 FROM tab2
----
15
16

query I rowsort
SELECT + + col1 * + - col1 AS col0 FROM tab2 AS cor0
----
-2601
-4489
-5929

query I rowsort
SELECT DISTINCT + + 76 AS col0 FROM tab1 AS cor0
----
76

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col1 / - col2 - + col1 + - col2 + 1 * - col0 IS NOT NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5719
SELECT - 66 + COUNT ( * ) col2 FROM tab2 AS cor0
----
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col0 * + col0 col1 FROM tab1 AS cor0
----
2601
7225
8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( 64 ) col2 FROM tab2
----
-104
-122
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5722
SELECT CAST( NULL AS SIGNED ) / - + col0 AS col1 FROM tab2 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5722
SELECT CAST ( NULL AS INTEGER ) / - + col0 AS col1 FROM tab2 WHERE - col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - 24 * - ( 8 ) AND NULL
----

query I rowsort
SELECT + col0 + + 60 FROM tab0
----
147
157
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5725
SELECT col0 + + CAST( NULL AS DECIMAL ) * 59 / - + col2 * - 61 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5725
SELECT col0 + + CAST ( NULL AS REAL ) * 59 / - + col2 * - 61 * - col0 AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col0 - - - col1 AS col0, col1 * col2 AS col1 FROM tab0
----
-108
210
-96
3807
-98
99

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5730
SELECT - SUM( + + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5730
SELECT - SUM ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT - + 53 AS col0 FROM tab1 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5732
SELECT - - col1 + - - CAST( 45 AS SIGNED ) * col1 AS col1 FROM tab2 cor0
----
2346
3082
3542

skipif mysql # not compatible
query I rowsort label-5732
SELECT - - col1 + - - CAST ( 45 AS INTEGER ) * col1 AS col1 FROM tab2 cor0
----
2346
3082
3542

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT col1 * + 83 <= - 46
----
-51
-67
-77

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

query I rowsort
SELECT ALL 43 * ( 76 ) AS col2 FROM tab0 AS cor0
----
3268
3268
3268

query I rowsort
SELECT ALL - 14 FROM tab1, tab2 cor0
----
9 values hashing to d321461994ba49c3a70fa6373032fc94

query I rowsort
SELECT col0 * - col2 * - 57 FROM tab2
----
145920
247950
60306

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col1, + col1 FROM tab2 WHERE NOT - col0 + - 66 * + - col0 + 30 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL + 84 * - 58 + + 10 AS col2 FROM tab0 AS cor0
----
-4862
-4862
-4862

query I rowsort
SELECT DISTINCT + + 55 * + col2 + + + ( col1 ) * col1 AS col1 FROM tab2 AS cor0
----
3866
7679
8129

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5743
SELECT DISTINCT - COUNT( * ) + - AVG ( - 39 ) + - - 44 * AVG ( ALL + - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5743
SELECT DISTINCT - COUNT ( * ) + - AVG ( - 39 ) + - - 44 * AVG ( ALL + - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col2 + + 48 AS col0 FROM tab0 AS cor0
----
147
58
95

onlyif mysql # aggregate syntax: 
query II rowsort label-5745
SELECT COUNT( * ) + - - 58 * COUNT( * ), 77 AS col1 FROM tab0
----
177
77

skipif mysql # not compatible
query II rowsort label-5745
SELECT COUNT ( * ) + - - 58 * COUNT ( * ), 77 AS col1 FROM tab0
----
177
77

query II rowsort
SELECT ALL + col1 * col0 + col1 + + + ( - col0 ), col1 AS col0 FROM tab1 AS cor0
----
345
5
4233
47
677
14

query I rowsort
SELECT ALL - 20 - col2 AS col2 FROM tab2 AS cor0
----
-43
-60
-78

query I rowsort
SELECT DISTINCT + col1 * ( + + 93 ) FROM tab1 AS cor0
----
1302
4371
465

query I rowsort
SELECT - 21 * 73 AS col0 FROM tab0 AS cor0
----
-1533
-1533
-1533

onlyif mysql # DIV for integer division: 
query II rowsort label-5750
SELECT 80 * - col2 AS col1, 41 DIV + col0 FROM tab1 AS cor0
----
-4720
0
-5440
0
-7680
0

skipif mysql # not compatible
query II rowsort label-5750
SELECT 80 * - col2 AS col1, 41 / + col0 FROM tab1 AS cor0
----
-4720
0
-5440
0
-7680
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 38 <= - col1
----
51
14
96
85
5
59

onlyif mysql # DIV for integer division: 
query I rowsort label-5752
SELECT ALL + 51 DIV + col1 FROM tab0 AS cor0
----
0
2
51

skipif mysql # not compatible
query I rowsort label-5752
SELECT ALL + 51 / + col1 FROM tab0 AS cor0
----
0
2
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5753
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) + + - CAST( 78 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5753
SELECT ALL * FROM tab1 AS cor0 WHERE ( + col0 ) + + - CAST ( 78 AS INTEGER ) IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT - 31 * - - MAX( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-2976

skipif mysql # not compatible
query I rowsort label-5755
SELECT - 31 * - - MAX ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-5756
SELECT DISTINCT - - COUNT( * ) * MAX( DISTINCT - - 62 ) FROM tab0 cor0 WHERE NOT - col2 + col2 + - - col0 - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5756
SELECT DISTINCT - - COUNT ( * ) * MAX ( DISTINCT - - 62 ) FROM tab0 cor0 WHERE NOT - col2 + col2 + - - col0 - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT 19 - + 88 + col2 AS col0 FROM tab0
----
-22
-59
30

query I rowsort
SELECT 81 - col1 + + + col0 - + - 10 AS col2 FROM tab2
----
78
86
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5759
SELECT ALL col0 + 41 * - CAST( + - col0 AS SIGNED ) AS col2, + ( col2 ) AS col1 FROM tab1 WHERE NOT 17 < + + col2
----

skipif mysql # not compatible
query II rowsort label-5759
SELECT ALL col0 + 41 * - CAST ( + - col0 AS INTEGER ) AS col2, + ( col2 ) AS col1 FROM tab1 WHERE NOT 17 < + + col2
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL <= 37 - - - 92 + + + col1
----

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

query I rowsort
SELECT col2 * - - col0 + + + col0 FROM tab0 AS cor0
----
720
957
9700

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5764
SELECT col0, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 - - 85 )
----

skipif mysql # not compatible
query II rowsort label-5764
SELECT col0, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 - - 85 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT DISTINCT + SUM( DISTINCT - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-5765
SELECT DISTINCT + SUM ( DISTINCT - ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5766
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 84 + + + 47 col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5767
SELECT + + 73 DIV COUNT( * ) - - + MAX( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-5767
SELECT + + 73 / COUNT ( * ) - - + MAX ( DISTINCT + col0 ) AS col1 FROM tab1 AS cor0
----
115

query I rowsort
SELECT ALL + 79 + - ( - col2 ) AS col1 FROM tab0 AS cor0
----
126
178
89

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

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

query I rowsort
SELECT ALL - col1 + - - col1 + + + col2 + + - ( + 38 ) * - 43 AS col0 FROM tab1
----
1693
1702
1730

query I rowsort
SELECT DISTINCT 91 + ( col2 ) - - - col1 + col0 + - col2 AS col1 FROM tab2
----
78
86
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5772
SELECT ALL COUNT( * ) + - 95 AS col0 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-5772
SELECT ALL COUNT ( * ) + - 95 AS col0 FROM tab1
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT 67 + + MAX( ALL + col0 ) AS col1 FROM tab1
----
158

skipif mysql # not compatible
query I rowsort label-5773
SELECT 67 + + MAX ( ALL + col0 ) AS col1 FROM tab1
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-5774
SELECT col0 + 40 DIV + col0 AS col2 FROM tab0
----
17
87
97

skipif mysql # not compatible
query I rowsort label-5774
SELECT col0 + 40 / + col0 AS col2 FROM tab0
----
17
87
97

query I rowsort
SELECT ALL + 68 * - + col1 AS col0 FROM tab2 AS cor0
----
-3468
-4556
-5236

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

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

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

query I rowsort
SELECT DISTINCT col0 + - col2 + - col1 * - + col2 + col1 FROM tab0
----
308
3856
98

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

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

query I rowsort
SELECT DISTINCT col0 + 32 AS col2 FROM tab1 AS cor0
----
117
123
83

query I rowsort
SELECT ALL + - col1 - + + 6 + + col0 FROM tab0 AS cor0
----
-72
60
90

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT ALL - SUM( ALL + 54 ) FROM tab2 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-5787
SELECT ALL - SUM ( ALL + 54 ) FROM tab2 AS cor0
----
-162

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5788
SELECT + CAST( - - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5789
SELECT ( - MAX( ( - col0 ) ) ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5789
SELECT ( - MAX ( ( - col0 ) ) ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT col0 * - ( + col1 ) FROM tab0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT DISTINCT + col0 DIV + + col2 col0 FROM tab1
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5791
SELECT DISTINCT + col0 / + + col2 col0 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5792
SELECT - 63 * + - col1, col0 DIV ( - - col2 ) AS col1 FROM tab0 AS cor0
----
1323
8
5103
0
63
0

skipif mysql # not compatible
query II rowsort label-5792
SELECT - 63 * + - col1, col0 / ( - - col2 ) AS col1 FROM tab0 AS cor0
----
1323
8
5103
0
63
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5793
SELECT + 88 * - + ( - 23 ) * - col2 + - CAST( 4 AS SIGNED ) AS col0, + ( - col0 ) - + col1 DIV + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-119420
-85
-137636
-91
-194308
-51

skipif mysql # not compatible
query II rowsort label-5793
SELECT + 88 * - + ( - 23 ) * - col2 + - CAST ( 4 AS INTEGER ) AS col0, + ( - col0 ) - + col1 / + + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-119420
-85
-137636
-91
-194308
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-5794
SELECT DISTINCT + - col0 DIV + - col2 FROM tab0 cor0
----
0
8

skipif mysql # not compatible
query I rowsort label-5794
SELECT DISTINCT + - col0 / + - col2 FROM tab0 cor0
----
0
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5797
SELECT 62 * - - col0 * + CAST( + + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
43710
53940
595386

skipif mysql # not compatible
query I rowsort label-5797
SELECT 62 * - - col0 * + CAST ( + + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
43710
53940
595386

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

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

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

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT 0 / - - COUNT ( * ) AS col1 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 col2, 36 FROM tab2 cor0
----
51
36
67
36
77
36

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5803
SELECT ALL + COUNT( * ) + + 71 + + - 75 * - 66 FROM tab2 AS cor0
----
5024

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL + COUNT ( * ) + + 71 + + - 75 * - 66 FROM tab2 AS cor0
----
5024

query II rowsort
SELECT DISTINCT col2 + + 55, + col2 FROM tab1
----
114
59
123
68
151
96

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

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

query I rowsort
SELECT ALL + - 78 AS col0 FROM tab0 WHERE NULL = NULL
----

query I rowsort
SELECT + + col2 * - 23 AS col1 FROM tab2 WHERE + ( + col2 ) + - ( col1 ) * + col2 - - col0 <> NULL
----

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

query I rowsort
SELECT 97 * - 32 FROM tab2
----
-3104
-3104
-3104

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5810
SELECT + - CAST( col0 AS SIGNED ) FROM tab0 WHERE + col1 NOT BETWEEN + 27 AND 45 + col0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5810
SELECT + - CAST ( col0 AS INTEGER ) FROM tab0 WHERE + col1 NOT BETWEEN + 27 AND 45 + col0
----
-15
-87
-97

query I rowsort
SELECT + col2 FROM tab1 WHERE ( 64 ) IS NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) = + - 20 + 82 / col2 * + col2
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 27 + 41 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ALL - 26 * col2 FROM tab2
----
-1040
-1508
-598

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

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

query I rowsort
SELECT DISTINCT + 99 * - 99 FROM tab1
----
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - 57 col1 FROM tab1
----
59
-57
68
-57
96
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5824
SELECT col0 / - - 15 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5824
SELECT col0 / - - 15 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5825
SELECT + COUNT( * ) AS col0, 56 * - 18 FROM tab2 AS cor0
----
3
-1008

skipif mysql # not compatible
query II rowsort label-5825
SELECT + COUNT ( * ) AS col0, 56 * - 18 FROM tab2 AS cor0
----
3
-1008

query I rowsort
SELECT + 12 * - + col0 AS col0 FROM tab0 AS cor0
----
-1044
-1164
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 24 * col1 col0 FROM tab2 cor0
----
1224
1608
1848

query I rowsort
SELECT ALL - 71 + 34 FROM tab1
----
-37
-37
-37

query II rowsort
SELECT ALL col0 + 36 AS col2, 1 FROM tab1
----
121
1
127
1
87
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5830
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

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

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

query II rowsort
SELECT col2 * - - 22 AS col1, col0 FROM tab1 AS cor0
----
1298
85
1496
91
2112
51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5833
SELECT MAX( - col0 ) DIV + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5833
SELECT MAX ( - col0 ) / + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT ALL + col0 * + + col0 * - 81 FROM tab0 cor0
----
-18225
-613089
-762129

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5836
SELECT - + ( - - col2 ) + + CAST ( NULL AS INTEGER ) col1 FROM tab1 WHERE + col0 * + 2 NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col1 * - - col0 - - col2 FROM tab0
----
1262
1837
196

query I rowsort
SELECT DISTINCT + 30 AS col0 FROM tab0 AS cor0 WHERE col2 * + - 39 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 + col1 * + 95 FROM tab1
----
1381
4556
560

query I rowsort
SELECT DISTINCT col1 * - col0 + + 62 AS col1 FROM tab2
----
-2284
-4866
-4963

query I rowsort
SELECT ALL 27 + - col1 * - col1 AS col0 FROM tab2
----
2628
4516
5956

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5842
SELECT 78 DIV - COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-5842
SELECT 78 / - COUNT ( * ) FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5843
SELECT ALL + COUNT( * ) + MAX( ALL + col0 ) AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-5843
SELECT ALL + COUNT ( * ) + MAX ( ALL + col0 ) AS col1 FROM tab1
----
94

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT ( + 23 ) BETWEEN + col1 + - col0 * - col0 AND NULL
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) < ( - col0 * + 32 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 54 * 39 = ( NULL )
----

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

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

query I rowsort
SELECT + col1 * col2 + col2 * + col2 FROM tab1 WHERE ( + col2 * col1 + + 67 ) NOT IN ( ( col2 ) )
----
10560
3776
7820

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5850
SELECT DISTINCT + SUM ( ALL + col0 ) col2 FROM tab0
----
199

query I rowsort
SELECT 83 * 39 - col1 FROM tab2
----
3160
3170
3186

onlyif mysql # aggregate syntax: 
query I rowsort label-5852
SELECT 32 * - COUNT( * ) - COUNT( col1 ) AS col2 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-5852
SELECT 32 * - COUNT ( * ) - COUNT ( col1 ) AS col2 FROM tab1
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5853
SELECT DISTINCT - MIN( DISTINCT + 87 ) - ( ( + COUNT( * ) ) ) * SUM( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5853
SELECT DISTINCT - MIN ( DISTINCT + 87 ) - ( ( + COUNT ( * ) ) ) * SUM ( DISTINCT + col1 ) FROM tab1 WHERE NOT NULL > ( NULL )
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT DISTINCT - 40 + + 5 * - MAX( ALL col1 ) FROM tab0
----
-445

skipif mysql # not compatible
query I rowsort label-5855
SELECT DISTINCT - 40 + + 5 * - MAX ( ALL col1 ) FROM tab0
----
-445

query I rowsort
SELECT DISTINCT - ( - ( - col1 ) ) + col2 FROM tab1
----
21
54
82

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

query I rowsort
SELECT ALL 51 + + col2 FROM tab1 AS cor0 WHERE col0 IN ( - ( - ( col0 ) ) + + col1 )
----

query I rowsort
SELECT ALL 8 + - col1 * col2 FROM tab0 AS cor0
----
-202
-3799
-91

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

query I rowsort
SELECT 34 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

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

skipif mysql # not compatible
query I rowsort label-5862
SELECT DISTINCT ( ( col2 ) ) / - 67 + + col1 AS col0 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT DISTINCT 95 + COUNT( * ) FROM tab0
----
98

skipif mysql # not compatible
query I rowsort label-5863
SELECT DISTINCT 95 + COUNT ( * ) FROM tab0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5864
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5864
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - CAST ( NULL AS INTEGER ) )
----

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 >= col0 * col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5868
SELECT + SUM( 5 ) FROM tab1 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5868
SELECT + SUM ( 5 ) FROM tab1 cor0
----
15

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT ALL COUNT( * ) * + MIN( col1 - - col2 ) + 18 AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-5870
SELECT ALL COUNT ( * ) * + MIN ( col1 - - col2 ) + 18 AS col1 FROM tab1 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-5871
SELECT + 42 * + - SUM( ( col0 ) ) AS col0 FROM tab0
----
-8358

skipif mysql # not compatible
query I rowsort label-5871
SELECT + 42 * + - SUM ( ( col0 ) ) AS col0 FROM tab0
----
-8358

query I rowsort
SELECT col1 FROM tab2 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5873
SELECT DISTINCT * FROM tab1 WHERE ( - col1 / + CAST( NULL AS SIGNED ) ) BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5873
SELECT DISTINCT * FROM tab1 WHERE ( - col1 / + CAST ( NULL AS INTEGER ) ) BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5874
SELECT 17 * 70 - + MIN( DISTINCT + col2 ) FROM tab1
----
1131

skipif mysql # not compatible
query I rowsort label-5874
SELECT 17 * 70 - + MIN ( DISTINCT + col2 ) FROM tab1
----
1131

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

query I rowsort
SELECT DISTINCT - 31 - - + col1 + 63 FROM tab0
----
113
33
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ALL + COUNT( * ) + + COUNT( * ) col2 FROM tab0 WHERE ( 17 + col1 ) IN ( col0 + col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5877
SELECT ALL + COUNT ( * ) + + COUNT ( * ) col2 FROM tab0 WHERE ( 17 + col1 ) IN ( col0 + col2 )
----
0

query I rowsort
SELECT - 7 - 39 FROM tab2
----
-46
-46
-46

query I rowsort
SELECT ALL ( - + col2 ) + - 57 FROM tab0
----
-104
-156
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5881
SELECT - + COUNT( * ) * - 50 + + 39 AS col0 FROM tab0 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-5881
SELECT - + COUNT ( * ) * - 50 + + 39 AS col0 FROM tab0 AS cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 17 + - + col1 + - col2 col1 FROM tab1 AS cor0
----
-127
-132
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5883
SELECT ALL 62 DIV SUM( 35 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL 62 / SUM ( 35 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5884
SELECT DISTINCT + ( COUNT( * ) ) + + ( + 99 ) FROM tab1, tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-5884
SELECT DISTINCT + ( COUNT ( * ) ) + + ( + 99 ) FROM tab1, tab1 AS cor0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - 12 col1 FROM tab0 AS cor0
----
12
252
972

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

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 66 <> NULL
----

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

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 NOT BETWEEN 59 AND NULL
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL + 23 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> ( 56 )
----

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

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

query I rowsort
SELECT ALL + 39 FROM tab2 cor0 WHERE ( NOT NULL IS NOT NULL )
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT ALL ( + COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE ( ( + + 51 ) IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-5898
SELECT ALL ( + COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE ( ( + + 51 ) IS NOT NULL )
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5899
SELECT DISTINCT + 55 + + + COUNT( * ) AS col2, - CAST( - 22 AS SIGNED ) DIV COUNT( * ) AS col0 FROM tab0 AS cor0
----
58
7

skipif mysql # not compatible
query II rowsort label-5899
SELECT DISTINCT + 55 + + + COUNT ( * ) AS col2, - CAST ( - 22 AS INTEGER ) / COUNT ( * ) AS col0 FROM tab0 AS cor0
----
58
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5900
SELECT DISTINCT - 95 * + 15 + COUNT( * ) DIV - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-1426

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5900
SELECT DISTINCT - 95 * + 15 + COUNT ( * ) / - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-1426

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - + col2 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + + + col1 AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * 39 * - 80 FROM tab0 AS cor0
----
-252720
-3120
-65520

query I rowsort
SELECT 87 FROM tab2 AS cor0 WHERE + col1 * - 14 + + col1 + + - 84 * 72 NOT BETWEEN ( col1 * 66 + - 67 ) AND col1 + 90
----
87
87
87

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

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

query I rowsort
SELECT DISTINCT + + col1 + 96 * col2 AS col0 FROM tab2 cor0
----
2259
3917
5635

onlyif mysql # DIV for integer division: 
query I rowsort label-5907
SELECT DISTINCT - 86 DIV - col1 * - col2 DIV - + col2 AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5907
SELECT DISTINCT - 86 / - col1 * - col2 / - + col2 AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 16 - - + 91 BETWEEN - col1 AND col1 / - col0
----

query III rowsort
SELECT * FROM tab0 WHERE - ( col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT ALL 5 + COUNT( ALL - + 8 ) + + COUNT( * ) AS col1 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-5910
SELECT ALL 5 + COUNT ( ALL - + 8 ) + + COUNT ( * ) AS col1 FROM tab1
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5911
SELECT DISTINCT - 3 + - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5911
SELECT DISTINCT - 3 + - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL 77 - + COUNT( * ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL 77 - + COUNT ( * ) FROM tab1
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT DISTINCT 80 * MAX( - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT DISTINCT 80 * MAX ( - col1 ) AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-5914
SELECT - - CAST ( NULL AS INTEGER ) * + + 19 * + - ( + MAX ( - 82 ) ) FROM tab0 cor0
----
NULL

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

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

query II rowsort
SELECT col2 AS col0, - 1 AS col2 FROM tab2 AS cor0
----
23
-1
40
-1
58
-1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 20 = 90
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT DISTINCT + 80 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
80

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5921
SELECT 35 DIV - col1 FROM tab0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT 35 / - col1 FROM tab0
----
-1
-35
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5922
SELECT COUNT ( DISTINCT - - col0 ) AS col2, - ( + COUNT ( * ) ) col0 FROM tab2
----
3
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 * - ( + + 93 ) + + 33 BETWEEN + + col2 / - + col0 + col1 * + col2 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

query I rowsort
SELECT + 15 * 57 / - - col1 + - 25 + + col2 * - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 17 + - - col0 IS NOT NULL
----

query I rowsort
SELECT 81 AS col1 FROM tab2 AS cor0 WHERE NOT - 3 IS NULL
----
81
81
81

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

query I rowsort
SELECT DISTINCT 14 + + ( 81 ) FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT ALL ( + - MIN( ALL - - 86 ) ) FROM tab0
----
-86

skipif mysql # not compatible
query I rowsort label-5930
SELECT ALL ( + - MIN ( ALL - - 86 ) ) FROM tab0
----
-86

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

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

query II rowsort
SELECT - col1 AS col2, - 81 AS col1 FROM tab1
----
-14
-81
-47
-81
-5
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5933
SELECT - CAST( + col2 AS SIGNED ) * - + col0 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-5933
SELECT - CAST ( + col2 AS INTEGER ) * - + col0 FROM tab1
----
4896
5015
6188

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

query I rowsort
SELECT DISTINCT - ( + 48 ) AS col1 FROM tab0
----
-48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5936
SELECT ALL 95 * MIN( DISTINCT - - CAST( NULL AS SIGNED ) ) col1 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5936
SELECT ALL 95 * MIN ( DISTINCT - - CAST ( NULL AS INTEGER ) ) col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5937
SELECT ALL CAST( NULL AS DECIMAL ) * + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT ALL CAST ( NULL AS REAL ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5938
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - col1 * - - 23 * + col0 + - + col1 + CAST( + + 98 AS DECIMAL ) NOT IN ( - + col0 )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5938
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE - col1 * - - 23 * + col0 + - + col1 + CAST ( + + 98 AS REAL ) NOT IN ( - + col0 )
----
10
47
99

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

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

query I rowsort
SELECT ALL + 49 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT DISTINCT - - col1 * + col0 * col1 * - col1 FROM tab0 AS cor0
----
-7971615
-805707
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT - COUNT( * ) * + 82 + + SUM( + col2 ) + + + 12 + - - MIN( - 47 ) AS col0 FROM tab2 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-5942
SELECT - COUNT ( * ) * + 82 + + SUM ( + col2 ) + + + 12 + - - MIN ( - 47 ) AS col0 FROM tab2 AS cor0
----
-160

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

skipif mysql # not compatible
query I rowsort label-5943
SELECT - - col0 / + - col2 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT ALL ( - 68 ) AS col2 FROM tab0
----
-68
-68
-68

query I rowsort
SELECT DISTINCT - 31 + + 15 FROM tab2
----
-16

query I rowsort
SELECT + col1 * + col2 - + 50 AS col2 FROM tab0
----
160
3757
49

query I rowsort
SELECT ALL - col1 + + 83 AS col1 FROM tab1
----
36
69
78

query I rowsort
SELECT ALL 14 + + col1 AS col1 FROM tab1
----
19
28
61

query I rowsort
SELECT 2 - + + 32 AS col2 FROM tab1
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT DISTINCT + + MAX( - 98 ) * - COUNT( * ) + - 40 FROM tab1 AS cor0
----
254

skipif mysql # not compatible
query I rowsort label-5950
SELECT DISTINCT + + MAX ( - 98 ) * - COUNT ( * ) + - 40 FROM tab1 AS cor0
----
254

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5952
SELECT ALL - + CAST( 96 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-96
-96
-96

skipif mysql # not compatible
query I rowsort label-5952
SELECT ALL - + CAST ( 96 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-96
-96
-96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT ALL + 25 * + + COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-5954
SELECT ALL + 25 * + + COUNT ( * ) FROM tab1
----
75

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

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

query I rowsort
SELECT ALL + col0 AS col2 FROM tab2 cor0 WHERE ( NULL ) > ( + 5 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5957
SELECT DISTINCT + col1 DIV col1 + col1 col1 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5957
SELECT DISTINCT + col1 / col1 + col1 col1 FROM tab0 AS cor0
----
2
22
82

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT + - MIN( DISTINCT 9 ) FROM tab0 AS cor0
----
-9

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

query II rowsort
SELECT ALL col2 AS col1, + 17 * - 21 * + + 66 + col1 FROM tab1 AS cor0 WHERE NULL BETWEEN 55 * + + col0 AND - col2 + col2
----

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 59 + + col2 AS col2 FROM tab0 AS cor0
----
-12
-49
40

query I rowsort
SELECT + - col1 * - ( + 99 ) AS col1 FROM tab2 AS cor0
----
5049
6633
7623

query I rowsort
SELECT ALL - 34 + - + col0 AS col1 FROM tab2 AS cor0 WHERE + 59 IS NOT NULL
----
-109
-80
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-5968
SELECT DISTINCT + COUNT( ALL - col0 ) AS col2, - COUNT( * ) FROM tab1 WHERE + col1 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5968
SELECT DISTINCT + COUNT ( ALL - col0 ) AS col2, - COUNT ( * ) FROM tab1 WHERE + col1 IS NULL
----
0
0

query III rowsort
SELECT * FROM tab0 WHERE col2 * + col2 + + - ( + 38 ) BETWEEN col0 AND + - 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5970
SELECT ALL - col0 DIV - 19 FROM tab1
----
2
4
4

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL - col0 / - 19 FROM tab1
----
2
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT 8 * + COUNT( * ) + SUM( DISTINCT col1 ) + + COUNT( * ) * - COUNT( * ) FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-5971
SELECT 8 * + COUNT ( * ) + SUM ( DISTINCT col1 ) + + COUNT ( * ) * - COUNT ( * ) FROM tab2 AS cor0
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5972
SELECT ALL + COUNT( * ) DIV - + 68 AS col0, - 24 FROM tab1 AS cor0
----
0
-24

skipif mysql # not compatible
query II rowsort label-5972
SELECT ALL + COUNT ( * ) / - + 68 AS col0, - 24 FROM tab1 AS cor0
----
0
-24

query I rowsort
SELECT + col1 FROM tab0 cor0 WHERE + 99 * + col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5975
SELECT ALL COUNT( * ) * + 16 - - - 14 FROM tab2
----
34

skipif mysql # not compatible
query I rowsort label-5975
SELECT ALL COUNT ( * ) * + 16 - - - 14 FROM tab2
----
34

query I rowsort
SELECT - + col2 - - - col1 + + col2 * col2 FROM tab1 AS cor0
----
3417
4509
9106

query I rowsort
SELECT DISTINCT + col0 - - 69 FROM tab2 AS cor0
----
115
133
144

query I rowsort
SELECT 71 - + - ( + 21 ) AS col0 FROM tab2 AS cor0
----
92
92
92

query I rowsort
SELECT col1 * + col2 - col1 AS col0 FROM tab0 cor0
----
189
3726
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col2 col0, 46 FROM tab1 AS cor0
----
-59
46
-68
46
-96
46

onlyif mysql # DIV for integer division: 
query II rowsort label-5981
SELECT ALL 36 col2, + 32 DIV + col1 col1 FROM tab0 AS cor0
----
36
0
36
1
36
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5981
SELECT ALL 36 col2, + 32 / + col1 col1 FROM tab0 AS cor0
----
36
0
36
1
36
32

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

query I rowsort
SELECT ALL + 52 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
52
52
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 7 IN ( 64 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5985
SELECT 22 + CAST( - - 26 AS SIGNED ) FROM tab0 AS cor0
----
48
48
48

skipif mysql # not compatible
query I rowsort label-5985
SELECT 22 + CAST ( - - 26 AS INTEGER ) FROM tab0 AS cor0
----
48
48
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5986
SELECT - + COUNT( * ) AS col2, + 86 - - 29 FROM tab0 WHERE NULL < - + col2 * - 86 * - col0 + + col2
----
0
115

skipif mysql # not compatible
query II rowsort label-5986
SELECT - + COUNT ( * ) AS col2, + 86 - - 29 FROM tab0 WHERE NULL < - + col2 * - 86 * - col0 + + col2
----
0
115

query I rowsort
SELECT - col1 * + + col1 * + - col0 FROM tab0 WHERE NOT col1 >= col2 * - 52 * 84 * + - col1
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT MAX( - 1 ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5988
SELECT MAX ( - 1 ) col0 FROM tab0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5989
SELECT 64 DIV + 73 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5989
SELECT 64 / + 73 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - + col0 * ( - col1 ) * - col1 AS col0 FROM tab1 WHERE NOT - ( + 50 ) IS NULL
----
-201019
-2125
-9996

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

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

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT ( NOT - 31 > + col1 )
----

query I rowsort
SELECT ALL + col0 * 37 * - col0 + - col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= + 84 / + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5994
SELECT DISTINCT 71 / CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 70 = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5994
SELECT DISTINCT 71 / CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 70 = ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 33 + - 65 col2 FROM tab2 AS cor0 WHERE + 3 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT DISTINCT + 43 * - COUNT( ALL col2 ) * 82 * + 28 FROM tab1 AS cor0
----
-296184

skipif mysql # not compatible
query I rowsort label-5996
SELECT DISTINCT + 43 * - COUNT ( ALL col2 ) * 82 * + 28 FROM tab1 AS cor0
----
-296184

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

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

query I rowsort
SELECT ALL col0 + - + 35 AS col1 FROM tab2
----
11
29
40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 10 col2 FROM tab1
----
51
10
85
10
91
10

query III rowsort
SELECT * FROM tab1 WHERE - 51 IN ( col1, + 60, - col2, col1 )
----

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

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

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

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

query I rowsort
SELECT + col1 + + + col1 * 77 AS col1 FROM tab1
----
1092
3666
390

onlyif mysql # aggregate syntax: 
query II rowsort label-6005
SELECT ALL - COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab2 WHERE NULL BETWEEN + col2 + col0 AND NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-6005
SELECT ALL - COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab2 WHERE NULL BETWEEN + col2 + col0 AND NULL
----
0
0

query II rowsort
SELECT + 0 AS col2, col1 FROM tab2 cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL - - 45 - - - 77 + + col0 FROM tab2 AS cor0
----
14
32
43

query I rowsort
SELECT - 49 * - 96 + + + 5 AS col2 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT + col2 * + - col0 AS col0 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT - 36 * - 96 AS col0 FROM tab2 cor0
----
3456
3456
3456

query I rowsort
SELECT 4 FROM tab1 WHERE NOT ( col1 IS NOT NULL )
----

query I rowsort
SELECT ALL 75 * + col2 AS col0 FROM tab1
----
4425
5100
7200

query I rowsort
SELECT DISTINCT + 27 FROM tab0 WHERE NOT - - col0 * + 17 IS NULL
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT + SUM( 18 ) FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-6014
SELECT + SUM ( 18 ) FROM tab0
----
54

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6016
SELECT ALL - - col2 DIV col0 * - 25 * - 60 FROM tab1 AS cor0 WHERE + col0 + - 19 IS NOT NULL OR NOT + - col1 IS NOT NULL
----
0
0
1500

skipif mysql # not compatible
query I rowsort label-6016
SELECT ALL - - col2 / col0 * - 25 * - 60 FROM tab1 AS cor0 WHERE + col0 + - 19 IS NOT NULL OR NOT + - col1 IS NOT NULL
----
0
0
1500

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6018
SELECT DISTINCT + COUNT( * ) * + - 5 AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-6018
SELECT DISTINCT + COUNT ( * ) * + - 5 AS col1 FROM tab2
----
-15

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

skipif mysql # not compatible
query I rowsort label-6019
SELECT + col1 / - 74 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + - col2 * + col1 FROM tab1 AS cor0 WHERE NOT - col0 >= + col1 * col0 * + 70 + + 80
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT + col2 DIV - ( + - col1 ) + + - 14 AS col0 FROM tab1 AS cor0
----
-13
-3
-8

skipif mysql # not compatible
query I rowsort label-6021
SELECT + col2 / - ( + - col1 ) + + - 14 AS col0 FROM tab1 AS cor0
----
-13
-3
-8

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

query I rowsort
SELECT - col0 * col2 * + col0 AS col1 FROM tab1 cor0
----
-249696
-426275
-563108

query I rowsort
SELECT 62 * - col1 FROM tab0 AS cor0 WHERE ( NOT ( - 15 ) IS NULL )
----
-1302
-5022
-62

query II rowsort
SELECT DISTINCT - 35 + + 59 + + ( - col0 ), + 58 AS col2 FROM tab1 AS cor0
----
-27
58
-61
58
-67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6026
SELECT + AVG ( DISTINCT 2 ) FROM tab1 AS cor0 WHERE 79 IN ( - col2 * - + 3 + - col2 + - col1 + + col2, CAST( - 89 AS SIGNED ), + + 53, + + 73 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6026
SELECT + AVG ( DISTINCT 2 ) FROM tab1 AS cor0 WHERE 79 IN ( - col2 * - + 3 + - col2 + - col1 + + col2, CAST ( - 89 AS INTEGER ), + + 53, + + 73 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - + col1 ) >= + + col2
----
15
81
47
87
21
10

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

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

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

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

query I rowsort
SELECT col2 + - col0 * - - ( + + col1 ) FROM tab2
----
-2323
-4888
-4967

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6033
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT - CAST( NULL AS DECIMAL ) + + 83 - + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-6033
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT - CAST ( NULL AS REAL ) + + 83 - + col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6034
SELECT ALL + + col2 / 9 + + CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL + + col2 / 9 + + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6035
SELECT - + 17 FROM tab1 WHERE + + CAST( col0 AS SIGNED ) + - 60 <= NULL
----

skipif mysql # not compatible
query I rowsort label-6035
SELECT - + 17 FROM tab1 WHERE + + CAST ( col0 AS INTEGER ) + - 60 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6036
SELECT DISTINCT - + col0 DIV 38 * - 19 * + - col0 * + + 82 AS col2 FROM tab1 AS cor0
----
-264860
-283556
-79458

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT - + col0 / 38 * - 19 * + - col0 * + + 82 AS col2 FROM tab1 AS cor0
----
-264860
-283556
-79458

query I rowsort
SELECT ALL + - 76 * - + 55 FROM tab0 AS cor0
----
4180
4180
4180

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

query I rowsort
SELECT ALL + 40 * - col0 FROM tab0 AS cor0
----
-3480
-3880
-600

query II rowsort
SELECT col2 AS col2, 37 * + col2 FROM tab2 cor0
----
23
851
40
1480
58
2146

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

skipif mysql # not compatible
query I rowsort label-6041
SELECT + - COUNT ( 89 ) FROM tab2 cor0
----
-3

query II rowsort
SELECT DISTINCT - + 24 AS col0, - 20 + + 19 FROM tab2 AS cor0
----
-24
-1

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 15 col0, col2 * + col1 AS col2 FROM tab2 AS cor0
----
15
1173
15
3080
15
3886

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - ( - 29 ) + col2 * - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT DISTINCT + SUM( + 94 ) FROM tab1 cor0
----
282

skipif mysql # not compatible
query I rowsort label-6046
SELECT DISTINCT + SUM ( + 94 ) FROM tab1 cor0
----
282

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6047
SELECT 82 DIV - - COUNT( ALL col0 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-6047
SELECT 82 / - - COUNT ( ALL col0 ) FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-6048
SELECT MIN( DISTINCT + 40 ) * - + 34 AS col0 FROM tab2
----
-1360

skipif mysql # not compatible
query I rowsort label-6048
SELECT MIN ( DISTINCT + 40 ) * - + 34 AS col0 FROM tab2
----
-1360

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6050
SELECT ALL col2 + - col2 DIV 79 FROM tab0 WHERE ( 25 ) IS NOT NULL
----
10
47
98

skipif mysql # not compatible
query I rowsort label-6050
SELECT ALL col2 + - col2 / 79 FROM tab0 WHERE ( 25 ) IS NOT NULL
----
10
47
98

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 5 NOT BETWEEN + + 83 AND col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6052
SELECT DISTINCT COUNT ( - col2 ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT DISTINCT + ( 85 ) * - + COUNT( * ) * - 30 col2 FROM tab1
----
7650

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6053
SELECT DISTINCT + ( 85 ) * - + COUNT ( * ) * - 30 col2 FROM tab1
----
7650

query I rowsort
SELECT + - col2 FROM tab0 WHERE NOT + col1 + + - col0 * + 31 * - col1 * + 51 + - col0 IS NULL
----
-10
-47
-99

query II rowsort
SELECT - col2 AS col1, - col1 / - + 73 AS col2 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6056
SELECT DISTINCT - 17 DIV ( + MIN( - + col0 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT - 17 / ( + MIN ( - + col0 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT col2 AS col1, - 69 FROM tab0
----
10
-69
47
-69
99
-69

query I rowsort
SELECT DISTINCT - col1 * 94 FROM tab1 AS cor0
----
-1316
-4418
-470

query I rowsort
SELECT DISTINCT + - ( + col1 ) + col0 AS col0 FROM tab0 AS cor0
----
-66
66
96

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

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

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 99 = col0 / - col2
----

query I rowsort
SELECT ALL + col0 + - 3 + - col2 * - 21 FROM tab0
----
2173
294
999

query I rowsort
SELECT DISTINCT - - ( - 46 ) * - col2 AS col0 FROM tab0 AS cor0
----
2162
4554
460

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT - 5 * MAX( DISTINCT - + col0 ) + - 10 + - - 92 AS col1 FROM tab0 AS cor0
----
157

skipif mysql # not compatible
query I rowsort label-6069
SELECT - 5 * MAX ( DISTINCT - + col0 ) + - 10 + - - 92 AS col1 FROM tab0 AS cor0
----
157

query I rowsort
SELECT ALL - ( - + col0 ) * col2 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL ( + ( col0 ) ) FROM tab1 AS cor0
----
51
85
91

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

query I rowsort
SELECT + 83 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col0 )
----

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

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

query I rowsort
SELECT + 77 * + - col1 FROM tab2 AS cor0
----
-3927
-5159
-5929

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6077
SELECT DISTINCT COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT col1 > + + 79
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6078
SELECT MIN( 63 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6078
SELECT MIN ( 63 ) FROM tab1
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6079
SELECT DISTINCT col1, - col0 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-6079
SELECT DISTINCT col1, - col0 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6080
SELECT + col1 * + - col0 + - + col2 + - CAST( 39 AS SIGNED ) FROM tab0 AS cor0
----
-1301
-1876
-235

skipif mysql # not compatible
query I rowsort label-6080
SELECT + col1 * + - col0 + - + col2 + - CAST ( 39 AS INTEGER ) FROM tab0 AS cor0
----
-1301
-1876
-235

onlyif mysql # aggregate syntax: 
query II rowsort label-6081
SELECT DISTINCT - - 23 AS col0, 28 * SUM( col0 ) FROM tab0 AS cor0
----
23
5572

skipif mysql # not compatible
query II rowsort label-6081
SELECT DISTINCT - - 23 AS col0, 28 * SUM ( col0 ) FROM tab0 AS cor0
----
23
5572

query I rowsort
SELECT ALL - - 70 + - 85 AS col2 FROM tab0 AS cor0
----
-15
-15
-15

query I rowsort
SELECT 97 * + - col1 FROM tab2 AS cor0
----
-4947
-6499
-7469

onlyif mysql # DIV for integer division: 
query II rowsort label-6084
SELECT 31 DIV + + col0, 36 * - 1 AS col0 FROM tab1 AS cor0
----
0
-36
0
-36
0
-36

skipif mysql # not compatible
query II rowsort label-6084
SELECT 31 / + + col0, 36 * - 1 AS col0 FROM tab1 AS cor0
----
0
-36
0
-36
0
-36

query I rowsort
SELECT - 84 * - ( + col2 ) FROM tab0 AS cor0
----
3948
8316
840

query I rowsort
SELECT DISTINCT + col2 * - + col1 + 51 - - col0 FROM tab0 AS cor0
----
-3741
-72
49

onlyif mysql # DIV for integer division: 
query II rowsort label-6087
SELECT ALL - ( - col0 ) AS col1, - col1 DIV col1 + - col0 FROM tab2 AS cor0
----
46
-47
64
-65
75
-76

skipif mysql # not compatible
query II rowsort label-6087
SELECT ALL - ( - col0 ) AS col1, - col1 / col1 + - col0 FROM tab2 AS cor0
----
46
-47
64
-65
75
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 + + col0, 46 col0 FROM tab0 AS cor0
----
-2
46
-32
46
77
46

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6090
SELECT - - col0 * - 12 - - - col1 * - - col2 + ( + col1 ) + - col0 + - col1 + + + col0 * - 65 - + col2 DIV col2 FROM tab1 AS cor0
----
-10295
-5323
-6926

skipif mysql # not compatible
query I rowsort label-6090
SELECT - - col0 * - 12 - - - col1 * - - col2 + ( + col1 ) + - col0 + - col1 + + + col0 * - 65 - + col2 / col2 FROM tab1 AS cor0
----
-10295
-5323
-6926

query I rowsort
SELECT ALL col0 * col1 + 43 FROM tab2
----
2389
4971
5068

query I rowsort
SELECT DISTINCT 59 + - + 56 AS col0 FROM tab0
----
3

query I rowsort
SELECT + 25 + - col1 AS col1 FROM tab2
----
-26
-42
-52

query I rowsort
SELECT DISTINCT col2 + + + 73 FROM tab0
----
120
172
83

query I rowsort
SELECT DISTINCT col2 - + 19 + col2 AS col0 FROM tab1 AS cor0
----
117
173
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 36 * col1 + - + 23 > + + 3
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6097
SELECT ALL SUM( DISTINCT - 38 ) * - - 81 AS col2 FROM tab2 AS cor0
----
-3078

skipif mysql # not compatible
query I rowsort label-6097
SELECT ALL SUM ( DISTINCT - 38 ) * - - 81 AS col2 FROM tab2 AS cor0
----
-3078

query I rowsort
SELECT DISTINCT - - ( + 64 ) AS col0 FROM tab1 AS cor0
----
64

query I rowsort
SELECT DISTINCT - + 61 FROM tab2 cor0
----
-61

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6100
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( + - col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6100
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( + - col1 AS REAL ) IS NULL
----

query II rowsort
SELECT - col2 * + - col1 * col2 AS col1, - 73 AS col0 FROM tab2
----
123200
-73
225388
-73
26979
-73

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT COUNT( * ) * - + 38 AS col1 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-6103
SELECT COUNT ( * ) * - + 38 AS col1 FROM tab1
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-6104
SELECT DISTINCT col2 DIV 53 DIV - col0 * - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6104
SELECT DISTINCT col2 / 53 / - col0 * - col0 FROM tab2
----
0

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

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

query I rowsort
SELECT DISTINCT - 73 + + ( - 22 ) FROM tab1 AS cor0
----
-95

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

query II rowsort
SELECT ALL + + col2, - col1 * - 6 - - col2 AS col0 FROM tab0 AS cor0
----
10
136
47
533
99
105

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT - - COUNT( * ) * - ( + 18 ) + - - 94 AS col2 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6109
SELECT - - COUNT ( * ) * - ( + 18 ) + - - 94 AS col2 FROM tab1 AS cor0
----
40

query I rowsort
SELECT 85 - - + col2 FROM tab1
----
144
153
181

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

query I rowsort
SELECT + - col1 + + ( col0 ) + - - col2 * + + col2 FROM tab1 cor0 WHERE - col0 * - - col1 + + + 12 IS NOT NULL
----
3561
4668
9253

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

skipif mysql # not compatible
query I rowsort label-6113
SELECT DISTINCT - + COUNT ( ALL + CAST ( CAST ( col1 AS REAL ) AS INTEGER ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6114
SELECT DISTINCT + col2 DIV 8 FROM tab2
----
2
5
7

skipif mysql # not compatible
query I rowsort label-6114
SELECT DISTINCT + col2 / 8 FROM tab2
----
2
5
7

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

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

query I rowsort
SELECT col1 * + col0 + - - 81 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + ( + col0 )
----

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

query I rowsort
SELECT ALL - + col0 * - 93 FROM tab0 AS cor0
----
1395
8091
9021

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

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

query I rowsort
SELECT col0 * - col0 + + - 41 * - 18 AS col1 FROM tab0
----
-6831
-8671
513

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * 30 + - col1 IN ( - col0, 41 + - 92 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 7 FROM tab0 AS cor0 WHERE + col2 IN ( col2, + col0 )
----
-7
-7
-7

query I rowsort
SELECT col1 * + 88 + + col2 + - 24 FROM tab2 AS cor0
----
4487
5930
6792

query II rowsort
SELECT - - col0 + + 69 - - - col1 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
106
-14
113
-47
149
-5

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 29 + - 18 + + 88 col2, - col0 * - col0 AS col1 FROM tab0 AS cor0
----
41
225
41
7569
41
9409

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6130
SELECT col0 DIV - - 17 FROM tab2
----
2
3
4

skipif mysql # not compatible
query I rowsort label-6130
SELECT col0 / - - 17 FROM tab2
----
2
3
4

query I rowsort
SELECT - + 97 AS col1 FROM tab1, tab1 AS cor0 WHERE 1 IS NOT NULL
----
9 values hashing to e4a6bd848a69226cbb7ad3d154be321b

query II rowsort
SELECT - 90, col2 FROM tab1
----
-90
59
-90
68
-90
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6133
SELECT - COUNT( DISTINCT + 70 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6133
SELECT - COUNT ( DISTINCT + 70 ) FROM tab1
----
-1

query II rowsort
SELECT ALL 18 AS col0, - col2 FROM tab2
----
18
-23
18
-40
18
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT - SUM( ALL - 20 ) * ( + COUNT( * ) ) + + 74 FROM tab2 AS cor0
----
254

skipif mysql # not compatible
query I rowsort label-6135
SELECT - SUM ( ALL - 20 ) * ( + COUNT ( * ) ) + + 74 FROM tab2 AS cor0
----
254

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6137
SELECT * FROM tab2 WHERE NOT - 10 - - - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6137
SELECT * FROM tab2 WHERE NOT - 10 - - - CAST ( NULL AS REAL ) IS NULL
----

query II rowsort
SELECT - col0 * - col2 AS col1, 96 - + col0 AS col0 FROM tab0
----
705
81
870
9
9603
-1

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6141
SELECT ALL - col0 * 25 * col0 DIV - col0 FROM tab0 AS cor0
----
2175
2425
375

skipif mysql # not compatible
query I rowsort label-6141
SELECT ALL - col0 * 25 * col0 / - col0 FROM tab0 AS cor0
----
2175
2425
375

onlyif mysql # aggregate syntax: 
query I rowsort label-6142
SELECT ALL + ( + COUNT( + - col2 ) ) + + MAX( ALL + + ( + col1 ) ) FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6142
SELECT ALL + ( + COUNT ( + - col2 ) ) + + MAX ( ALL + + ( + col1 ) ) FROM tab2 AS cor0
----
80

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

query I rowsort
SELECT - col0 * 83 AS col2 FROM tab0
----
-1245
-7221
-8051

query I rowsort
SELECT ALL - col2 + + 74 - - col2 FROM tab1
----
74
74
74

query II rowsort
SELECT - col1, col1 * + 46 AS col0 FROM tab1
----
-14
644
-47
2162
-5
230

query II rowsort
SELECT DISTINCT col0, 58 + - + col1 FROM tab2
----
46
7
64
-19
75
-9

query I rowsort
SELECT + ( 41 ) FROM tab2
----
41
41
41

query I rowsort
SELECT - 85 * col2 AS col0 FROM tab1
----
-5015
-5780
-8160

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6151
SELECT + SUM( DISTINCT + 40 ) FROM tab0 AS cor0 WHERE + 89 = + col1 * + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6151
SELECT + SUM ( DISTINCT + 40 ) FROM tab0 AS cor0 WHERE + 89 = + col1 * + - col0
----
NULL

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

query I rowsort
SELECT ALL - - col0 AS col1 FROM tab1 AS cor0 WHERE + 8 * - + 59 NOT IN ( + col2, col1 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6154
SELECT ALL + + SUM( ALL + col1 ) + - 68, - 35 AS col1 FROM tab0 cor0
----
35
-35

skipif mysql # not compatible
query II rowsort label-6154
SELECT ALL + + SUM ( ALL + col1 ) + - 68, - 35 AS col1 FROM tab0 cor0
----
35
-35

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT - MAX( - + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 / + col1 * col1 AND + 6 * + - ( - col0 ) / - - 22 - - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT - MAX ( - + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 / + col1 * col1 AND + 6 * + - ( - col0 ) / - - 22 - - + col0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + + 89 * - + 45 / - col2 / - col0 IS NULL OR - + ( 21 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-6158
SELECT SUM( - col0 ) AS col0, - 79 FROM tab0 AS cor0
----
-199
-79

skipif mysql # not compatible
query II rowsort label-6158
SELECT SUM ( - col0 ) AS col0, - 79 FROM tab0 AS cor0
----
-199
-79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT ( - COUNT( * ) ) * + 64 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
-192

skipif mysql # not compatible
query I rowsort label-6160
SELECT ( - COUNT ( * ) ) * + 64 AS col0 FROM tab1 WHERE col1 IS NOT NULL
----
-192

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

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

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

query II rowsort
SELECT + 41, + col1 * + + col1 * - 10 AS col1 FROM tab0
----
41
-10
41
-4410
41
-65610

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6165
SELECT ALL + COUNT( * ) col2 FROM tab0 WHERE + col2 IS NOT NULL
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6166
SELECT DISTINCT CAST( NULL AS SIGNED ) - + 27 + + - col0 - + ( + 19 ) + - 47, col1 AS col0 FROM tab0 AS cor0 WHERE NULL < + 49
----

skipif mysql # not compatible
query II rowsort label-6166
SELECT DISTINCT CAST ( NULL AS INTEGER ) - + 27 + + - col0 - + ( + 19 ) + - 47, col1 AS col0 FROM tab0 AS cor0 WHERE NULL < + 49
----

query I rowsort
SELECT ALL + col2 * - 46 FROM tab2 AS cor0
----
-1058
-1840
-2668

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL = + 48
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 * - 1 col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6172
SELECT DISTINCT + col0 AS col0, col0 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-6172
SELECT DISTINCT + col0 AS col0, col0 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 <> NULL
----

query II rowsort
SELECT - 95 + - + col1, + 85 AS col0 FROM tab1
----
-100
85
-109
85
-142
85

query I rowsort
SELECT DISTINCT 82 + + + 51 FROM tab2
----
133

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6177
SELECT - MAX( + col2 ) + + - COUNT( * ) AS col0 FROM tab1
----
-99

skipif mysql # not compatible
query I rowsort label-6177
SELECT - MAX ( + col2 ) + + - COUNT ( * ) AS col0 FROM tab1
----
-99

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

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

query III rowsort
SELECT * FROM tab1 WHERE + col2 < + + col1
----

query I rowsort
SELECT ALL + 35 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 60 col0 FROM tab1 WHERE + col0 + - + ( 72 ) * + - col1 IS NULL AND NULL IS NULL
----

query I rowsort
SELECT DISTINCT 88 * + 78 * - col0 FROM tab2
----
-315744
-439296
-514800

query I rowsort
SELECT - - 46 + 83 AS col2 FROM tab0 AS cor0
----
129
129
129

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <= - - col2
----
85
5
59
91
47
68

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6187
SELECT DISTINCT + - 76 * - - SUM( ALL - col2 ) col1 FROM tab0 cor0
----
11856

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6187
SELECT DISTINCT + - 76 * - - SUM ( ALL - col2 ) col1 FROM tab0 cor0
----
11856

query I rowsort
SELECT DISTINCT + col1 * + - col0 * - + col0 AS col1 FROM tab1
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6189
SELECT - col2 DIV + CAST( 30 AS SIGNED ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-6189
SELECT - col2 / + CAST ( 30 AS INTEGER ) FROM tab2
----
-1
-1
0

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

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

query I rowsort
SELECT DISTINCT + col1 * + + col2 AS col0 FROM tab0 AS cor0
----
210
3807
99

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT + - ( COUNT( * ) ) - + + 78 * + 48 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3747

skipif mysql # not compatible
query I rowsort label-6194
SELECT + - ( COUNT ( * ) ) - + + 78 * + 48 AS col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-3747

query I rowsort
SELECT 43 * - - 30 FROM tab2
----
1290
1290
1290

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6196
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - CAST( NULL AS SIGNED ) AND - col2 + 22
----

skipif mysql # not compatible
query III rowsort label-6196
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - - CAST ( NULL AS INTEGER ) AND - col2 + 22
----

query I rowsort
SELECT 9 + + 13 AS col1 FROM tab2 AS cor0
----
22
22
22

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

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

skipif mysql # not compatible
query I rowsort label-6199
SELECT DISTINCT - - MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-6200
SELECT COUNT( - 35 ) AS col1, + MAX( ALL - + 59 ) * + - 17 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6200
SELECT COUNT ( - 35 ) AS col1, + MAX ( ALL - + 59 ) * + - 17 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0
NULL

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

query I rowsort
SELECT ALL col0 + + 53 FROM tab2 AS cor0
----
117
128
99

query I rowsort
SELECT 79 * - col2 FROM tab0
----
-3713
-7821
-790

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6206
SELECT + 23 AS col0, SUM( DISTINCT + - col2 ) col2 FROM tab1
----
23
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6206
SELECT + 23 AS col0, SUM ( DISTINCT + - col2 ) col2 FROM tab1
----
23
-223

query I rowsort
SELECT ALL + 84 * - - col0 * - + col2 FROM tab1
----
-411264
-421260
-519792

query I rowsort
SELECT DISTINCT - col1 + + 25 FROM tab2
----
-26
-42
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-6209
SELECT + COUNT( * ) * - + SUM( ALL 40 ) FROM tab1
----
-360

skipif mysql # not compatible
query I rowsort label-6209
SELECT + COUNT ( * ) * - + SUM ( ALL 40 ) FROM tab1
----
-360

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT DISTINCT 65 + CAST( - col2 AS SIGNED ) FROM tab0
----
-34
18
55

skipif mysql # not compatible
query I rowsort label-6210
SELECT DISTINCT 65 + CAST ( - col2 AS INTEGER ) FROM tab0
----
-34
18
55

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

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

query I rowsort
SELECT ALL + - 56 - 10 AS col2 FROM tab0 AS cor0 WHERE 3 + + col1 <= + + col0 * + col0
----
-66
-66
-66

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

query I rowsort
SELECT - - col2 AS col1 FROM tab0 AS cor0 WHERE - 33 IS NULL
----

query II rowsort
SELECT ALL col2 AS col0, + 46 + + 9 + + ( - col1 ) FROM tab0 AS cor0
----
10
34
47
-26
99
54

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

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

query II rowsort
SELECT DISTINCT col2 + - col1, - col1 AS col2 FROM tab1
----
21
-47
54
-5
82
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-6219
SELECT DISTINCT 87 DIV + col1 + + col1 * - 23 FROM tab2
----
-1172
-1540
-1770

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT 87 / + col1 + + col1 * - 23 FROM tab2
----
-1172
-1540
-1770

onlyif mysql # DIV for integer division: 
query I rowsort label-6220
SELECT DISTINCT + 89 DIV - col2 col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6220
SELECT DISTINCT + 89 / - col2 col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6221
SELECT CAST( - 10 AS SIGNED ) + - + 86 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 AND 40
----

skipif mysql # not compatible
query I rowsort label-6221
SELECT CAST ( - 10 AS INTEGER ) + - + 86 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN col2 AND 40
----

query I rowsort
SELECT ALL + - 53 AS col1 FROM tab2 AS cor0
----
-53
-53
-53

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6224
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( - 1 AS SIGNED ) = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6224
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( - 1 AS INTEGER ) = - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col0 * - - col0 + + col0 - + - col1 FROM tab0 AS cor0
----
321
7677
9507

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + MIN( - - col0 ) AS col1 FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-6227
SELECT + MIN ( - - col0 ) AS col1 FROM tab0 cor0
----
15

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

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

query I rowsort
SELECT ( + 69 ) FROM tab0
----
69
69
69

query I rowsort
SELECT DISTINCT col0 * - 34 AS col0 FROM tab2
----
-1564
-2176
-2550

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6231
SELECT DISTINCT COUNT( * ) DIV - ( COUNT( * ) ), + 53 AS col2 FROM tab1
----
-1
53

skipif mysql # not compatible
query II rowsort label-6231
SELECT DISTINCT COUNT ( * ) / - ( COUNT ( * ) ), + 53 AS col2 FROM tab1
----
-1
53

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

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

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

query I rowsort
SELECT ALL col2 * 81 * - col1 * + - ( - - 86 ) FROM tab2
----
21455280
27069876
8171118

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, - 89 FROM tab1 AS cor0
----
-59
-89
-68
-89
-96
-89

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

query I rowsort
SELECT ALL - ( + col1 ) FROM tab0 WHERE + col0 * 66 NOT BETWEEN NULL AND 18
----
-1
-21
-81

query I rowsort
SELECT - 64 * ( 81 ) FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + 68 ) - col2 FROM tab1
----
-28
0
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6243
SELECT ALL COUNT( * ) * 9 + 42 * + 19 AS col0 FROM tab2
----
825

skipif mysql # not compatible
query I rowsort label-6243
SELECT ALL COUNT ( * ) * 9 + 42 * + 19 AS col0 FROM tab2
----
825

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT 2 + + 38 DIV 21 AS col1 FROM tab1
----
3
3
3

skipif mysql # not compatible
query I rowsort label-6244
SELECT 2 + + 38 / 21 AS col1 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT COUNT( * ) + 16 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-6245
SELECT COUNT ( * ) + 16 FROM tab0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6246
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - 79 < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6246
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - 79 < ( NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6247
SELECT ALL ( CAST( col0 AS SIGNED ) ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6247
SELECT ALL ( CAST ( col0 AS INTEGER ) ) AS col1 FROM tab1
----
51
85
91

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT DISTINCT + MAX( DISTINCT - 6 ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-6249
SELECT DISTINCT + MAX ( DISTINCT - 6 ) AS col0 FROM tab1
----
-6

query I rowsort
SELECT + col0 * - col1 - 17 FROM tab0
----
-114
-1232
-1844

query I rowsort
SELECT col2 AS col1 FROM tab0 WHERE + 42 * ( 23 ) IS NOT NULL
----
10
47
99

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE ( col2 ) = col0
----

query I rowsort
SELECT - ( - 51 ) * col1 FROM tab2
----
2601
3417
3927

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT COUNT( * ) * + 10 AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-6256
SELECT COUNT ( * ) * + 10 AS col2 FROM tab1
----
30

query I rowsort
SELECT ALL 2 - col2 AS col0 FROM tab0
----
-45
-8
-97

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col1 ) > + col0
----
46
51
23
64
77
40

query I rowsort
SELECT 36 * col0 AS col1 FROM tab2
----
1656
2304
2700

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

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT MIN ( - 86 ) AS col0 FROM tab2
----
-86

onlyif mysql # DIV for integer division: 
query I rowsort label-6262
SELECT 42 + + col2 DIV col2 FROM tab1
----
43
43
43

skipif mysql # not compatible
query I rowsort label-6262
SELECT 42 + + col2 / col2 FROM tab1
----
43
43
43

query I rowsort
SELECT DISTINCT 92 * col1 FROM tab2
----
4692
6164
7084

query I rowsort
SELECT 48 * 79 AS col1 FROM tab2
----
3792
3792
3792

query I rowsort
SELECT ALL AVG ( ALL - ( col1 ) ) FROM tab1 WHERE ( - 72 ) BETWEEN ( col2 ) AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6266
SELECT DISTINCT col2 * CAST( + col1 * col2 AS SIGNED ) + + col0 AS col2 FROM tab1
----
129075
17490
217419

skipif mysql # not compatible
query I rowsort label-6266
SELECT DISTINCT col2 * CAST ( + col1 * col2 AS INTEGER ) + + col0 AS col2 FROM tab1
----
129075
17490
217419

onlyif mysql # DIV for integer division: 
query I rowsort label-6267
SELECT DISTINCT + col1 DIV - 67 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT + col1 / - 67 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT COUNT( * ) col1 FROM tab1 WHERE ( + col1 ) BETWEEN ( NULL ) AND - 72
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6268
SELECT COUNT ( * ) col1 FROM tab1 WHERE ( + col1 ) BETWEEN ( NULL ) AND - 72
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT DISTINCT MAX( - col2 ) * - 44 AS col0 FROM tab2
----
1012

skipif mysql # not compatible
query I rowsort label-6269
SELECT DISTINCT MAX ( - col2 ) * - 44 AS col0 FROM tab2
----
1012

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT DISTINCT - COUNT( * ) + MIN( + ( col0 ) ) FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-6270
SELECT DISTINCT - COUNT ( * ) + MIN ( + ( col0 ) ) FROM tab1
----
48

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

query I rowsort
SELECT DISTINCT + 24 FROM tab2 AS cor0 WHERE ( - 41 ) IS NULL
----

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

query I rowsort
SELECT 70 - - 4 * - 81 FROM tab1
----
-254
-254
-254

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

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab1 AS cor0 CROSS JOIN tab1 ) WHERE NULL IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6277
SELECT CAST( MAX( - col2 ) AS SIGNED ) FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6277
SELECT CAST ( MAX ( - col2 ) AS INTEGER ) FROM tab0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 col1 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT 90 * col0 + ( - col2 ) FROM tab2 AS cor0 WHERE NOT col1 + 2 IS NULL
----
4117
5720
6692

query I rowsort
SELECT ALL col1 * - col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1344
-295
-3196

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT ALL + MIN( ALL 72 ) + + 55 FROM tab0 AS cor0 WHERE - col0 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT ALL + MIN ( ALL 72 ) + + 55 FROM tab0 AS cor0 WHERE - col0 < NULL
----
NULL

query I rowsort
SELECT DISTINCT 76 + 64 AS col0 FROM tab2 WHERE NOT 78 / + col2 - + col1 IS NOT NULL
----

query I rowsort
SELECT + 33 * + + col1 FROM tab0
----
2673
33
693

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

skipif mysql # not compatible
query I rowsort label-6286
SELECT CAST ( NULL AS REAL ) + 6 FROM tab1 WHERE NOT col2 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6288
SELECT - 99 * MIN( DISTINCT ( + 7 ) ) FROM tab0
----
-693

skipif mysql # not compatible
query I rowsort label-6288
SELECT - 99 * MIN ( DISTINCT ( + 7 ) ) FROM tab0
----
-693

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

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

query I rowsort
SELECT ALL col2 * + 4 * col0 AS col1 FROM tab1
----
19584
20060
24752

query I rowsort
SELECT + - ( - + col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query I rowsort
SELECT DISTINCT col0 + 22 FROM tab0 AS cor0 WHERE NULL > ( col2 + 37 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col1 * col0
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( - col1 ) / 18 NOT BETWEEN NULL AND + 53
----

query I rowsort
SELECT ALL ( - 64 ) FROM tab0 AS cor0 WHERE NOT NULL IN ( 25 * - + 89 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6300
SELECT DISTINCT + - 26 AS col1, + CAST( - MIN( ALL - 96 ) AS SIGNED ) FROM tab0 AS cor0
----
-26
96

skipif mysql # not compatible
query II rowsort label-6300
SELECT DISTINCT + - 26 AS col1, + CAST ( - MIN ( ALL - 96 ) AS INTEGER ) FROM tab0 AS cor0
----
-26
96

query I rowsort
SELECT ALL + 74 * - - col2 AS col2 FROM tab2 cor0
----
1702
2960
4292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6302
SELECT ALL + COUNT( * ) + + + COUNT( DISTINCT + - col0 ) DIV - COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-6302
SELECT ALL + COUNT ( * ) + + + COUNT ( DISTINCT + - col0 ) / - COUNT ( * ) FROM tab1 AS cor0
----
2

query I rowsort
SELECT DISTINCT + + 80 * + - ( - col2 ) AS col2 FROM tab1 AS cor0
----
4720
5440
7680

query I rowsort
SELECT ALL + col1 + - - col1 * col2 FROM tab1 AS cor0
----
1358
300
3243

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

query I rowsort
SELECT + col0 * - col1 - col2 * - col1 FROM tab1 cor0
----
-1081
-130
630

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

query I rowsort
SELECT ALL 18 + + col2 + + - 56 AS col2 FROM tab2
----
-15
2
20

query I rowsort
SELECT col2 FROM tab0 WHERE NULL IN ( col1 )
----

query I rowsort
SELECT DISTINCT + col2 + - 16 FROM tab2
----
24
42
7

query II rowsort
SELECT col2 - - col2 AS col2, col2 * - col0 + - ( 92 ) * col0 FROM tab0
----
198
-18527
20
-8874
94
-2085

query I rowsort
SELECT ALL ( col2 ) + 64 * col2 FROM tab0
----
3055
6435
650

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * col0 ) <= col2 AND + 32 BETWEEN ( + 58 ) AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6314
SELECT + COUNT( * ) AS col0 FROM tab1 cor0 WHERE col2 <= ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6314
SELECT + COUNT ( * ) AS col0 FROM tab1 cor0 WHERE col2 <= ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT - + 41 * + - COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
120

skipif mysql # not compatible
query I rowsort label-6315
SELECT - + 41 * + - COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
120

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6317
SELECT ALL - MAX( - + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6317
SELECT ALL - MAX ( - + col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT ( - 38 ) * + + col1 AS col0 FROM tab1 AS cor0
----
-1786
-190
-532

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

skipif mysql # not compatible
query I rowsort label-6319
SELECT 14 * + COUNT ( * ) * COUNT ( * ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
1134

query IIIIII rowsort
SELECT ALL * FROM ( tab1 AS cor0 INNER JOIN tab0 AS cor1 ON ( + 3 ) IS NULL )
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6323
SELECT DISTINCT + MIN ( + - 85 ) col1 FROM tab1 AS cor0
----
-85

query I rowsort
SELECT + col0 * + 66 AS col1 FROM tab0 cor0
----
5742
6402
990

query I rowsort
SELECT ALL + col0 * col2 - col1 FROM tab0 AS cor0
----
624
849
9602

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

query I rowsort
SELECT col0 * - col2 * + 95 FROM tab1
----
-465120
-476425
-587860

query II rowsort
SELECT 4 AS col0, - col1 FROM tab2
----
4
-51
4
-67
4
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 NOT BETWEEN - 75 AND - col2 * + 69
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6330
SELECT DISTINCT AVG ( 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-6330
SELECT DISTINCT AVG ( CAST ( NULL AS INTEGER ) ) col0 FROM tab2
----
NULL

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

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

query I rowsort
SELECT + col0 * - + 21 * ( + + 72 ) + col1 FROM tab0
----
-131523
-146663
-22599

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6334
SELECT ALL - SUM ( ALL + col2 ) col2 FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-6335
SELECT + COUNT( * ) + 85 * 32 * - 38 AS col1 FROM tab1 AS cor0
----
-103357

skipif mysql # not compatible
query I rowsort label-6335
SELECT + COUNT ( * ) + 85 * 32 * - 38 AS col1 FROM tab1 AS cor0
----
-103357

query I rowsort
SELECT + col0 + - 90 FROM tab1 AS cor0
----
-39
-5
1

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

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

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

query I rowsort
SELECT ALL + col1 * 78 * + + col1 + - 10 AS col1 FROM tab0 AS cor0
----
34388
511748
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 IN ( - 58 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6342
SELECT - 80 + + COUNT( * ) * - ( COUNT( * ) ) * COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0 WHERE NULL IS NOT NULL
----
-80

skipif mysql # not compatible
query I rowsort label-6342
SELECT - 80 + + COUNT ( * ) * - ( COUNT ( * ) ) * COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 WHERE NULL IS NOT NULL
----
-80

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

query I rowsort
SELECT + 49 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) >= ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT ALL - col2 * + + col1 DIV + col1 - + + col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-6345
SELECT ALL - col2 * + + col1 / + col1 - + + col2 FROM tab1 AS cor0
----
-118
-136
-192

query II rowsort
SELECT - - 96 - + + col1, - 27 + + 73 AS col2 FROM tab2 AS cor0
----
19
46
29
46
45
46

onlyif mysql # DIV for integer division: 
query I rowsort label-6347
SELECT DISTINCT + col0 * + + col2 DIV + col2 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6347
SELECT DISTINCT + col0 * + + col2 / + col2 FROM tab2 AS cor0
----
46
64
75

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

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

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

query I rowsort
SELECT 37 + - + 78 + + - col0 FROM tab2 cor0
----
-105
-116
-87

query I rowsort
SELECT ALL + col2 + - 17 AS col0 FROM tab0 AS cor0
----
-7
30
82

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

query I rowsort
SELECT DISTINCT 3 * 12 AS col2 FROM tab0 AS cor0
----
36

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL + 22 + - COUNT( * ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL + 22 + - COUNT ( * ) AS col2 FROM tab1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6357
SELECT DISTINCT COUNT( DISTINCT 88 ) + + + ( - ( 56 ) ) AS col1 FROM tab0
----
-55

skipif mysql # not compatible
query I rowsort label-6357
SELECT DISTINCT COUNT ( DISTINCT 88 ) + + + ( - ( 56 ) ) AS col1 FROM tab0
----
-55

query I rowsort
SELECT col1 * + + 16 AS col2 FROM tab0
----
1296
16
336

query I rowsort
SELECT ALL - col1 + + - 87 * + col2 AS col0 FROM tab2
----
-2052
-3557
-5113

query I rowsort
SELECT DISTINCT + col0 * + + col1 * - + col0 * + + col2 - col1 FROM tab0
----
-1589511
-856656
-931492

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 2 + col1 col1 FROM tab1
----
12
3
45

query I rowsort
SELECT DISTINCT - + 53 * + + col2 FROM tab2 AS cor0
----
-1219
-2120
-3074

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 44, + 61 + col2 col1 FROM tab1 AS cor0
----
-44
120
-44
129
-44
157

query I rowsort
SELECT DISTINCT - 3 * - col2 FROM tab1 AS cor0
----
177
204
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6365
SELECT DISTINCT + + MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6365
SELECT DISTINCT + + MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
15

query II rowsort
SELECT - col1, + 70 * - ( - col1 ) AS col1 FROM tab2 WHERE NOT 78 * + col2 - + + col1 + 14 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6367
SELECT * FROM tab0 cor0 WHERE NOT CAST( col0 AS SIGNED ) NOT BETWEEN ( - + col2 ) - - + ( 32 ) AND + - 72
----

skipif mysql # not compatible
query III rowsort label-6367
SELECT * FROM tab0 cor0 WHERE NOT CAST ( col0 AS INTEGER ) NOT BETWEEN ( - + col2 ) - - + ( 32 ) AND + - 72
----

query I rowsort
SELECT + col2 * 6 + col1 + - 71 * + col2 AS col0 FROM tab2 AS cor0 WHERE NOT - col0 <= col1 * - ( col1 ) + col2
----
-1444
-2523
-3703

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6370
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6370
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT 24 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col1 + ( - 94 ) - + col1 * col1 * 72 / - col1 + + col0 ) IS NOT NULL
----

query II rowsort
SELECT col1, 69 + + + col1 AS col0 FROM tab2
----
51
120
67
136
77
146

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6374
SELECT DISTINCT + col1 AS col2, - col2 DIV + col2 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

skipif mysql # not compatible
query II rowsort label-6374
SELECT DISTINCT + col1 AS col2, - col2 / + col2 FROM tab2 AS cor0
----
51
-1
67
-1
77
-1

query II rowsort
SELECT DISTINCT col1 AS col0, - 2 FROM tab2 cor0
----
51
-2
67
-2
77
-2

query I rowsort
SELECT + - 71 + col2 AS col2 FROM tab1 AS cor0
----
-12
-3
25

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

skipif mysql # not compatible
query I rowsort label-6377
SELECT + COUNT ( * ) * + + 73 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
657

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

query I rowsort
SELECT + + 16 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
16
16
16

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

query I rowsort
SELECT ALL col2 + - col0 + - ( + + 67 ) * + 46 FROM tab2
----
-3099
-3105
-3106

onlyif mysql # aggregate syntax: 
query I rowsort label-6382
SELECT MAX( - + col1 ) - - + SUM( - + ( col2 ) ) col2 FROM tab0
----
-157

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6382
SELECT MAX ( - + col1 ) - - + SUM ( - + ( col2 ) ) col2 FROM tab0
----
-157

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

query I rowsort
SELECT col2 - + ( - - col1 ) AS col0 FROM tab1
----
21
54
82

query I rowsort
SELECT DISTINCT col2 * + col2 * col2 + 50 * - 89 * + 44 AS col2 FROM tab1 AS cor0
----
118632
688936
9579

query I rowsort
SELECT ALL - 66 * - + col2 FROM tab1 AS cor0
----
3894
4488
6336

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6388
SELECT ALL + CAST( + ( + + MIN( DISTINCT 26 ) ) AS SIGNED ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6388
SELECT ALL + CAST ( + ( + + MIN ( DISTINCT 26 ) ) AS INTEGER ) FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6389
SELECT 55 DIV - COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6389
SELECT 55 / - COUNT ( * ) FROM tab1
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-6390
SELECT 89 * COUNT( * ) * - 95 AS col1 FROM tab1 AS cor0
----
-25365

skipif mysql # not compatible
query I rowsort label-6390
SELECT 89 * COUNT ( * ) * - 95 AS col1 FROM tab1 AS cor0
----
-25365

onlyif mysql # DIV for integer division: 
query I rowsort label-6391
SELECT - 51 DIV - 80 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6391
SELECT - 51 / - 80 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6392
SELECT ALL + 28 AS col0 FROM tab2 cor0 WHERE NOT NULL <= CAST( + col2 AS SIGNED ) + + col2
----

skipif mysql # not compatible
query I rowsort label-6392
SELECT ALL + 28 AS col0 FROM tab2 cor0 WHERE NOT NULL <= CAST ( + col2 AS INTEGER ) + + col2
----

query I rowsort
SELECT DISTINCT + 61 * 25 * - 89 FROM tab2 AS cor0
----
-135725

onlyif mysql # DIV for integer division: 
query I rowsort label-6394
SELECT ALL col0 DIV + ( 99 ) col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6394
SELECT ALL col0 / + ( 99 ) col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6395
SELECT ALL - 4 AS col2, COUNT( * ) FROM tab0 AS cor0
----
-4
3

skipif mysql # not compatible
query II rowsort label-6395
SELECT ALL - 4 AS col2, COUNT ( * ) FROM tab0 AS cor0
----
-4
3

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

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

query I rowsort
SELECT 29 + ( + + col0 ) * 79 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
4058
6744
7218

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

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

query I rowsort
SELECT ALL + col2 + + - col0 FROM tab2 cor0
----
-17
-23
-24

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

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

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

query I rowsort
SELECT DISTINCT col1 + - ( - + col2 ) + + col1 FROM tab2
----
125
192
194

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 col1 FROM tab0 WHERE NOT 73 IS NULL
----
23
23
23

query I rowsort
SELECT - col2 * + + col0 + ( - - col0 ) + - 70 FROM tab0
----
-760
-853
-9576

onlyif mysql # DIV for integer division: 
query I rowsort label-6406
SELECT col1 + + - col1 + + ( - col2 ) DIV - 96 col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6406
SELECT col1 + + - col1 + + ( - col2 ) / - 96 col1 FROM tab1
----
0
0
1

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6408
SELECT - 15 AS col1, + COUNT( * ) * - COUNT( ALL - + col2 ) col0 FROM tab0
----
-15
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6408
SELECT - 15 AS col1, + COUNT ( * ) * - COUNT ( ALL - + col2 ) col0 FROM tab0
----
-15
-9

query I rowsort
SELECT 19 + 19 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL 88 - - + col2 * col2 AS col2 FROM tab0
----
188
2297
9889

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

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

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 18 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT col2 - + - 93 AS col1 FROM tab2
----
116
133
151

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col2 - - + col2 + col0 IS NULL
----

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

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

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

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

query I rowsort
SELECT ALL 19 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query I rowsort
SELECT + col0 * - ( + col2 ) AS col2 FROM tab2
----
-1058
-2560
-4350

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + 48 * + - col1 col2 FROM tab1
----
20400
205296
34272

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6424
SELECT + COUNT( * ) * 58 DIV - COUNT( * ) FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-6424
SELECT + COUNT ( * ) * 58 / - COUNT ( * ) FROM tab0
----
-58

query II rowsort
SELECT col2 AS col2, - 94 AS col2 FROM tab2
----
23
-94
40
-94
58
-94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6426
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2, col0 * - 52 + - ( - CAST( + 55 AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
-2337
NULL
-3273
NULL
-3845

skipif mysql # not compatible
query II rowsort label-6426
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2, col0 * - 52 + - ( - CAST ( + 55 AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
-2337
NULL
-3273
NULL
-3845

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col2, - col1 + 64 * + + 52 FROM tab2 AS cor0
----
51
3277
67
3261
77
3251

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

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

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

query I rowsort
SELECT - 7 * col2 * + col2 FROM tab0
----
-15463
-68607
-700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6431
SELECT 24 DIV - + COUNT( * ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-6431
SELECT 24 / - + COUNT ( * ) FROM tab1
----
-8

query I rowsort
SELECT DISTINCT + - 52 AS col1 FROM tab2 cor0
----
-52

query I rowsort
SELECT ALL + 50 - ( + 69 ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + - col2 * col2 AND col2 + - col0
----

query I rowsort
SELECT + 42 * + + col2 * col0 FROM tab1 AS cor0
----
205632
210630
259896

query I rowsort
SELECT + 76 - ( + col0 ) FROM tab2 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + - col0 col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT DISTINCT - + col2 FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + 44 * - + col0 AS col1 FROM tab1
----
-2244
-3740
-4004

query I rowsort
SELECT ALL 8 + - 36 AS col0 FROM tab1
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT DISTINCT 26 + - MIN( ALL + col2 ) + - COUNT( * ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-6440
SELECT DISTINCT 26 + - MIN ( ALL + col2 ) + - COUNT ( * ) FROM tab1
----
-36

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

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

query II rowsort
SELECT ALL + 5 AS col2, 14 * + 34 AS col0 FROM tab2
----
5
476
5
476
5
476

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6444
SELECT CAST( + + 11 AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
-4
-76
-86

skipif mysql # not compatible
query I rowsort label-6444
SELECT CAST ( + + 11 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
-4
-76
-86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 + + 63 col2 FROM tab2 AS cor0
----
134
134
134

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

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL - COUNT ( * ) + + SUM ( ALL - col1 ) + + + ( + 54 ) - - 69 AS col1 FROM tab1 AS cor0
----
54

query II rowsort
SELECT + ( ( + + 83 ) ) AS col2, col1 FROM tab1 AS cor0 WHERE ( NULL ) > col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT ALL SUM( col2 ) + + ( - ( 27 ) ) * - 17 FROM tab0
----
615

skipif mysql # not compatible
query I rowsort label-6448
SELECT ALL SUM ( col2 ) + + ( - ( 27 ) ) * - 17 FROM tab0
----
615

query I rowsort
SELECT DISTINCT + col1 - - col2 * col0 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT ALL 49 FROM tab2 WHERE - 6 IS NOT NULL
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 - 9 <= - col2
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT 70 + + + 32 NOT IN ( col1, 5 + - 89 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6454
SELECT SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6454
SELECT SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-223

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + ( + SUM( - - col2 ) ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-6456
SELECT + ( + SUM ( - - col2 ) ) AS col0 FROM tab0
----
156

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab2 WHERE col2 * + - col1 NOT BETWEEN NULL AND 14 / + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6458
SELECT ( + COUNT( * ) ) FROM tab1 cor0 WHERE NOT 19 * + 29 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6458
SELECT ( + COUNT ( * ) ) FROM tab1 cor0 WHERE NOT 19 * + 29 IS NOT NULL
----
0

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

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

query I rowsort
SELECT DISTINCT + 47 * + + 95 * + col0 + - col2 AS col2 FROM tab0 AS cor0
----
388445
433006
66928

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

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

query I rowsort
SELECT - col2 * - 11 AS col1 FROM tab0
----
1089
110
517

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT + MAX( DISTINCT + 18 ) AS col0 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-6465
SELECT + MAX ( DISTINCT + 18 ) AS col0 FROM tab1
----
18

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6467
SELECT + + COUNT( * ) * + 56 AS col1 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-6467
SELECT + + COUNT ( * ) * + 56 AS col1 FROM tab1 AS cor0
----
168

query I rowsort
SELECT DISTINCT col2 * + - 18 FROM tab0 AS cor0
----
-1782
-180
-846

query I rowsort
SELECT + col1 * + ( + col2 ) AS col1 FROM tab1 cor0
----
1344
295
3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 <= + col0
----
51
14
96

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

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

query I rowsort
SELECT DISTINCT + - 82 * 88 * col2 FROM tab0 AS cor0
----
-339152
-714384
-72160

query II rowsort
SELECT ALL - 67 * + - 29 AS col0, col1 FROM tab2 AS cor0
----
1943
51
1943
67
1943
77

query I rowsort
SELECT DISTINCT - ( - 15 ) * ( col1 ) + col1 FROM tab0 AS cor0
----
1296
16
336

query I rowsort
SELECT + 37 + + 41 + ( - col1 ) * - - col1 * - 52 FROM tab1
----
10270
114946
1378

query I rowsort
SELECT ALL col0 * + col2 + - 48 AS col1 FROM tab0
----
657
822
9555

query II rowsort
SELECT ALL col2 + + 97, col0 * - - col1 AS col2 FROM tab2
----
120
2346
137
4928
155
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 79 col2 FROM tab1
----
-11
-20
17

query I rowsort
SELECT ALL 77 - - + col0 AS col2 FROM tab0
----
164
174
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6480
SELECT ALL + 3 * ( - - 16 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6480
SELECT ALL + 3 * ( - - 16 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6482
SELECT DISTINCT - MIN( - + col0 ) * - 76 + - COUNT( ( - col2 ) ) FROM tab0 AS cor0
----
-7375

skipif mysql # not compatible
query I rowsort label-6482
SELECT DISTINCT - MIN ( - + col0 ) * - 76 + - COUNT ( ( - col2 ) ) FROM tab0 AS cor0
----
-7375

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT - SUM( ALL col1 ) FROM tab2 AS cor0 WHERE NULL >= + 89
----
NULL

skipif mysql # not compatible
query I rowsort label-6483
SELECT - SUM ( ALL col1 ) FROM tab2 AS cor0 WHERE NULL >= + 89
----
NULL

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

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

query I rowsort
SELECT DISTINCT col2 - + 46 * - 5 FROM tab2
----
253
270
288

onlyif mysql # aggregate syntax: 
query I rowsort label-6486
SELECT DISTINCT - 67 + + COUNT( * ) AS col2 FROM tab0
----
-64

skipif mysql # not compatible
query I rowsort label-6486
SELECT DISTINCT - 67 + + COUNT ( * ) AS col2 FROM tab0
----
-64

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6488
SELECT col0 AS col0, + col2 DIV - + col2 AS col2 FROM tab1 AS cor0
----
51
-1
85
-1
91
-1

skipif mysql # not compatible
query II rowsort label-6488
SELECT col0 AS col0, + col2 / - + col2 AS col2 FROM tab1 AS cor0
----
51
-1
85
-1
91
-1

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

query II rowsort
SELECT ALL + - col0 AS col1, - 5 * col0 FROM tab0 AS cor0
----
-15
-75
-87
-435
-97
-485

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

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

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

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

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

query I rowsort
SELECT DISTINCT - ( - 45 ) AS col2 FROM tab1
----
45

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 * - col1 * col2 IS NOT NULL
----

query I rowsort
SELECT + 46 * + col0 * - ( 55 ) + - col2 FROM tab0
----
-220120
-245509
-37997

query I rowsort
SELECT - 14 + + col2 + - - ( + + 20 ) AS col1 FROM tab0
----
105
16
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 2, col0 col0 FROM tab0 AS cor0
----
2
15
2
87
2
97

query II rowsort
SELECT DISTINCT col1 * - col1 * col2, + 17 * col0 AS col2 FROM tab2 AS cor0
----
-237160
1088
-260362
1275
-59823
782

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

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

query I rowsort
SELECT DISTINCT 88 * - col0 AS col1 FROM tab2 cor0
----
-4048
-5632
-6600

query I rowsort
SELECT col2 * + 48 FROM tab0 AS cor0
----
2256
4752
480

query II rowsort
SELECT ALL + 30 * + 79 + - - col0 AS col2, 54 AS col0 FROM tab1 AS cor0
----
2421
54
2455
54
2461
54

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

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

query I rowsort
SELECT - col2 * + - 57 AS col1 FROM tab0
----
2679
5643
570

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

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

query I rowsort
SELECT DISTINCT + col1 + 14 + col2 * - col2 FROM tab1
----
-3462
-4563
-9188

query II rowsort
SELECT + 12, - 33 AS col2 FROM tab1
----
12
-33
12
-33
12
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6511
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-6511
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <= - col1
----
0

query II rowsort
SELECT DISTINCT col2 + - col2 - 18 * col2 AS col2, + 66 + col1 FROM tab1
----
-1062
71
-1224
113
-1728
80

onlyif mysql # aggregate syntax: 
query II rowsort label-6513
SELECT - SUM( - col0 ), COUNT( * ) AS col2 FROM tab2
----
185
3

skipif mysql # not compatible
query II rowsort label-6513
SELECT - SUM ( - col0 ), COUNT ( * ) AS col2 FROM tab2
----
185
3

query II rowsort
SELECT DISTINCT 8, 98 AS col2 FROM tab1
----
8
98

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * + - col2 - col2 / + 51 = NULL AND NOT + col2 = - 42 - + ( + + ( - 72 ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) = 55 + + - col1
----

query I rowsort
SELECT + 39 + - 38 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + 63 * - 88 + col0 FROM tab1 AS cor0
----
5595
5629
5635

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6520
SELECT DISTINCT COUNT( * ) + - 11 AS col2 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-6520
SELECT DISTINCT COUNT ( * ) + - 11 AS col2 FROM tab2
----
-8

query II rowsort
SELECT - 6 * + col1 AS col2, + 33 * col1 FROM tab0
----
-126
693
-486
2673
-6
33

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 90 < - - 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6524
SELECT + + SUM( col1 ) * - - CAST( NULL AS DECIMAL ) * MAX( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( - + 45 ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6524
SELECT + + SUM ( col1 ) * - - CAST ( NULL AS REAL ) * MAX ( + col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + ( - + 45 ) BETWEEN NULL AND NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6527
SELECT ALL + 71 DIV col1, ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
15
3
87
71
97

skipif mysql # not compatible
query II rowsort label-6527
SELECT ALL + 71 / col1, ( + col0 ) AS col1 FROM tab0 AS cor0
----
0
15
3
87
71
97

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6530
SELECT ALL + col0 DIV - 85 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6530
SELECT ALL + col0 / - 85 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * col0 * 77 AS col2 FROM tab1 AS cor0
----
376992
386155
476476

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6533
SELECT 48 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-6533
SELECT 48 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-144

query II rowsort
SELECT DISTINCT col2, - 37 AS col1 FROM tab0
----
10
-37
47
-37
99
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6535
SELECT DISTINCT + COUNT( DISTINCT + - 77 ) * - 12 AS col1 FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6535
SELECT DISTINCT + COUNT ( DISTINCT + - 77 ) * - 12 AS col1 FROM tab0
----
-12

query I rowsort
SELECT - ( - col0 ) + ( + ( - + col2 ) ) * - 53 + - 93 + + col0 AS col2 FROM tab2 AS cor0
----
1218
2155
3131

query I rowsort
SELECT ALL + 90 + ( + 81 ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6538
SELECT - - 8 DIV + 40 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6538
SELECT - - 8 / + 40 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6539
SELECT ALL - col1 + - col1 + - 64 - - CAST( NULL AS DECIMAL ) * ( + col0 ) * + ( 73 ) * - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL - col1 + - col1 + - 64 - - CAST ( NULL AS REAL ) * ( + col0 ) * + ( 73 ) * - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 + - 54 col1 FROM tab1 WHERE NOT col0 <= - 89
----
-3
31
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col2 FROM tab1 cor0 WHERE NULL <= - 29
----

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

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

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

query I rowsort
SELECT ALL ( - 95 ) AS col1 FROM tab1 AS cor0
----
-95
-95
-95

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL IN ( col0 / - col1 * col0 )
----

query I rowsort
SELECT ALL + 56 AS col2 FROM tab2 WHERE NULL <= - col2 * - col0
----

query I rowsort
SELECT ALL - 53 + + - col1 FROM tab2
----
-104
-120
-130

query III rowsort
SELECT * FROM tab0 cor0 WHERE 88 IS NULL
----

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

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

query I rowsort
SELECT - 44 / + 93 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6551
SELECT ALL + 53 * - COUNT( * ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + 53 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col2 * + + 68 AS col2 FROM tab0
----
3196
6732
680

query I rowsort
SELECT ALL col0 FROM tab1 WHERE + - col0 + + - 24 * ( + - col0 ) < + ( col2 ) - 35 + ( + + 95 )
----

query I rowsort
SELECT ALL 69 * - + col2 * + col0 FROM tab2
----
-176640
-300150
-73002

query II rowsort
SELECT col1, + ( - - col0 ) + + 38 FROM tab0
----
1
135
21
125
81
53

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6557
SELECT DISTINCT col0 DIV - 94 * col1 AS col0 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-6557
SELECT DISTINCT col0 / - 94 * col1 AS col0 FROM tab0
----
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT ALL - col2 * 80 + - - CAST( + - col0 AS SIGNED ) FROM tab0 AS cor0
----
-3775
-8017
-887

skipif mysql # not compatible
query I rowsort label-6558
SELECT ALL - col2 * 80 + - - CAST ( + - col0 AS INTEGER ) FROM tab0 AS cor0
----
-3775
-8017
-887

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6560
SELECT col0 DIV + 31 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - col0 * ( - col1 ) DIV + 10 * - col0 * col0 IS NULL
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6560
SELECT col0 / + 31 AS col2 FROM tab2 AS cor0 WHERE NOT col0 * - col0 * ( - col1 ) / + 10 * - col0 * col0 IS NULL
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6561
SELECT ALL + ( - 38 ) DIV MIN( ALL + 4 ) * 82 FROM tab1 AS cor0
----
-738

skipif mysql # not compatible
query I rowsort label-6561
SELECT ALL + ( - 38 ) / MIN ( ALL + 4 ) * 82 FROM tab1 AS cor0
----
-738

query II rowsort
SELECT DISTINCT - 52, col0 + - 35 AS col0 FROM tab0 AS cor0
----
-52
-20
-52
52
-52
62

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

query I rowsort
SELECT DISTINCT + - 77 * - 53 * + 90 * 60 AS col0 FROM tab0 WHERE NOT + 0 IS NOT NULL
----

query I rowsort
SELECT - col2 * + 96 * - col0 FROM tab2
----
101568
245760
417600

onlyif mysql # aggregate syntax: 
query I rowsort label-6566
SELECT ALL + COUNT( * ) * 67 FROM tab0
----
201

skipif mysql # not compatible
query I rowsort label-6566
SELECT ALL + COUNT ( * ) * 67 FROM tab0
----
201

query I rowsort
SELECT + col1 * 8 AS col2 FROM tab0
----
168
648
8

onlyif mysql # DIV for integer division: 
query I rowsort label-6568
SELECT ( + col1 ) DIV - - col1 AS col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6568
SELECT ( + col1 ) / - - col1 AS col2 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6569
SELECT + 55 * + MAX( - col0 ) FROM tab2
----
-2530

skipif mysql # not compatible
query I rowsort label-6569
SELECT + 55 * + MAX ( - col0 ) FROM tab2
----
-2530

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6571
SELECT COUNT( * ) FROM tab1 WHERE NOT - col2 NOT BETWEEN col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6571
SELECT COUNT ( * ) FROM tab1 WHERE NOT - col2 NOT BETWEEN col0 AND NULL
----
0

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

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

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

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

query I rowsort
SELECT ALL - col2 + 6 AS col1 FROM tab2
----
-17
-34
-52

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6576
SELECT col1 + + col1 + col2 DIV 67 FROM tab0
----
162
3
42

skipif mysql # not compatible
query I rowsort label-6576
SELECT col1 + + col1 + col2 / 67 FROM tab0
----
162
3
42

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE - ( + col1 ) * ( 64 ) >= - col1
----

query I rowsort
SELECT col2 - 46 FROM tab1
----
13
22
50

query I rowsort
SELECT ALL col0 + + 15 + - 75 AS col1 FROM tab0
----
-45
27
37

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col2 * - - 75 ) IS NULL AND - 1 NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT - col0 - + col1 + - 80 FROM tab1
----
-145
-170
-218

query I rowsort
SELECT + col1 - - ( + 88 ) AS col2 FROM tab0
----
109
169
89

query I rowsort
SELECT DISTINCT col2 - - 64 AS col0 FROM tab0
----
111
163
74

query I rowsort
SELECT ( col1 ) * + col2 + col2 + col2 * + col1 FROM tab1
----
2784
6460
649

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6590
SELECT 38 * - + COUNT( * ) FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-6590
SELECT 38 * - + COUNT ( * ) FROM tab1
----
-114

onlyif mysql # DIV for integer division: 
query I rowsort label-6591
SELECT + 33 DIV col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-6591
SELECT + 33 / col0 FROM tab0
----
0
0
2

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

query I rowsort
SELECT + - 97 FROM tab0 AS cor0 WHERE NOT + 38 IS NULL
----
-97
-97
-97

query I rowsort
SELECT + col1 * - ( + col2 ) * col1 AS col2 FROM tab1 AS cor0
----
-1475
-150212
-18816

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6597
SELECT - - col0 col1, + CAST( + 82 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
15
82
87
82
97
82

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 72 < + + 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 59 * - - col0 * + + col2 + - + col1 col2 FROM tab0 AS cor0
----
-41676
-51351
-566578

query I rowsort
SELECT + 10 AS col2 FROM tab1 AS cor0 WHERE NOT 85 NOT BETWEEN - col1 * + col1 AND ( col0 )
----
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6601
SELECT ( - COUNT( - 93 ) ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6601
SELECT ( - COUNT ( - 93 ) ) AS col2 FROM tab0
----
-3

query II rowsort
SELECT ALL 97 + col2 AS col0, + 10 + 52 + + - col1 AS col0 FROM tab1
----
156
57
165
15
193
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6604
SELECT DISTINCT MAX( ALL 78 ) FROM tab2, tab2 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT MAX ( ALL 78 ) FROM tab2, tab2 AS cor0
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-6605
SELECT + col1 * 10 + - col0 + - ( - 99 ) DIV - col2 FROM tab1
----
-36
378
88

skipif mysql # not compatible
query I rowsort label-6605
SELECT + col1 * 10 + - col0 + - ( - 99 ) / - col2 FROM tab1
----
-36
378
88

query I rowsort
SELECT ALL - 70 AS col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT - col2 DIV - ( 92 ) FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6609
SELECT - col2 / - ( 92 ) FROM tab1 AS cor0
----
0
0
1

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

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

query II rowsort
SELECT + 37 + - 21 AS col1, + 50 + + - 8 + 16 AS col0 FROM tab0
----
16
58
16
58
16
58

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

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

query II rowsort
SELECT - 11 + + + col0 AS col1, + col0 AS col0 FROM tab1 AS cor0
----
40
51
74
85
80
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 * - - 45 + - ( + col2 ) + - + 56 col2 FROM tab0 AS cor0
----
-110
3542
879

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6615
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT + 49 <= - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6615
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT + 49 <= - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT - 78 * 32 + + COUNT( * ) col1 FROM tab2 AS cor0
----
-2493

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6616
SELECT - 78 * 32 + + COUNT ( * ) col1 FROM tab2 AS cor0
----
-2493

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col0 * + col0 col1 FROM tab1 AS cor0
----
2652
7310
8372

query II rowsort
SELECT + 24 + - 99 * - col1 * + col2 * 12 + col0 * 10 AS col0, 11 + + col0 AS col2 FROM tab2 AS cor0
----
1394008
57
3659704
75
4617342
86

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT + + COUNT( * ) + 12 col2 FROM tab0 cor0
----
15

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 + col0 > NULL
----

query II rowsort
SELECT ALL + col1 + - - 9 * + - col2 AS col2, ( col0 ) * + - 37 FROM tab1
----
-526
-3145
-565
-3367
-850
-1887

query II rowsort
SELECT DISTINCT + col1 * - col1 - 57 / 3 AS col0, 37 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT ( col2 ) * - - 45, col0 FROM tab1
----
2655
85
3060
91
4320
51

onlyif mysql # aggregate syntax: 
query II rowsort label-6626
SELECT DISTINCT + 72 col0, + MAX( ALL + 93 ) + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
72
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6626
SELECT DISTINCT + 72 col0, + MAX ( ALL + 93 ) + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
72
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6628
SELECT DISTINCT - ( - COUNT( ALL + - 80 ) ) * + SUM( + 58 ) + + 83 FROM tab0 AS cor0
----
605

skipif mysql # not compatible
query I rowsort label-6628
SELECT DISTINCT - ( - COUNT ( ALL + - 80 ) ) * + SUM ( + 58 ) + + 83 FROM tab0 AS cor0
----
605

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6630
SELECT 96 * + + COUNT( * ) * - COUNT( * ) FROM tab1
----
-864

skipif mysql # not compatible
query I rowsort label-6630
SELECT 96 * + + COUNT ( * ) * - COUNT ( * ) FROM tab1
----
-864

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL - MIN( DISTINCT - col0 ) + COUNT( * ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL - MIN ( DISTINCT - col0 ) + COUNT ( * ) FROM tab0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6632
SELECT ALL - 24 + + CAST( NULL AS SIGNED ) - + 83 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6632
SELECT ALL - 24 + + CAST ( NULL AS INTEGER ) - + 83 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * 38 AS col1 FROM tab1
----
-1938
-3230
-3458

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT - COUNT( + + 73 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - COUNT ( + + 73 ) FROM tab1
----
-3

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

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

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE col0 / + 65 * - col1 * - 23 < - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6638
SELECT ALL + col1 * + col1 * 54 AS col2, - ( + + col2 ) + - CAST( NULL AS SIGNED ) * col1 col0 FROM tab1 AS cor0
----
10584
NULL
119286
NULL
1350
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6638
SELECT ALL + col1 * + col1 * 54 AS col2, - ( + + col2 ) + - CAST ( NULL AS INTEGER ) * col1 col0 FROM tab1 AS cor0
----
10584
NULL
119286
NULL
1350
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6639
SELECT ALL - + MAX( - col0 ) * 99 * + COUNT( * ) FROM tab1 AS cor0
----
15147

skipif mysql # not compatible
query I rowsort label-6639
SELECT ALL - + MAX ( - col0 ) * 99 * + COUNT ( * ) FROM tab1 AS cor0
----
15147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6640
SELECT ALL - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) + + MAX( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) + + MAX ( + col1 ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 37 * + - ( col2 ) + + 83 FROM tab0 cor0
----
-1656
-287
-3580

query I rowsort
SELECT DISTINCT - + col1 * - 40 FROM tab0 AS cor0
----
3240
40
840

query I rowsort
SELECT ALL col1 + - 74 AS col2 FROM tab2 AS cor0
----
-23
-7
3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6645
SELECT DISTINCT + 13 * + ( 15 ) * + COUNT( * ) AS col0 FROM tab1
----
585

skipif mysql # not compatible
query I rowsort label-6645
SELECT DISTINCT + 13 * + ( 15 ) * + COUNT ( * ) AS col0 FROM tab1
----
585

query I rowsort
SELECT DISTINCT - col0 - 10 FROM tab0 AS cor0
----
-107
-25
-97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6647
SELECT - - CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6649
SELECT ALL + MAX ( DISTINCT col2 ) col0 FROM tab0 AS cor0
----
99

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 IS NULL AND 89 IS NULL
----

query I rowsort
SELECT ALL + 32 + + col2 AS col0 FROM tab1 AS cor0
----
100
128
91

query I rowsort
SELECT + 3 - + + 0 FROM tab2 AS cor0
----
3
3
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6654
SELECT - COUNT( * ) - MIN( DISTINCT col2 ) DIV - - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-6654
SELECT - COUNT ( * ) - MIN ( DISTINCT col2 ) / - - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-7

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

query I rowsort
SELECT + col0 * + 35 AS col0 FROM tab1
----
1785
2975
3185

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 * col0 + + 93, - col2 + + - col1 + col1 col1 FROM tab2 AS cor0
----
-2467
-40
-4257
-58
-965
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6659
SELECT + - CAST( + ( + col2 ) AS SIGNED ) AS col0, + 82 * - col1 AS col2, - 16 - col2 FROM tab1 AS cor0
----
9 values hashing to 3b7ba750db23e85090242a40eb190784

skipif mysql # not compatible
query III rowsort label-6659
SELECT + - CAST ( + ( + col2 ) AS INTEGER ) AS col0, + 82 * - col1 AS col2, - 16 - col2 FROM tab1 AS cor0
----
9 values hashing to 3b7ba750db23e85090242a40eb190784

query I rowsort
SELECT 1 FROM tab1 cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6661
SELECT - MAX( DISTINCT + col1 ) * - + 90 * - 19 FROM tab0 AS cor0
----
-138510

skipif mysql # not compatible
query I rowsort label-6661
SELECT - MAX ( DISTINCT + col1 ) * - + 90 * - 19 FROM tab0 AS cor0
----
-138510

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6663
SELECT DISTINCT + SUM( DISTINCT - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-6663
SELECT DISTINCT + SUM ( DISTINCT - col2 ) FROM tab0
----
-156

query I rowsort
SELECT DISTINCT col0 - col1 FROM tab2 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-6666
SELECT - SUM( + col2 ) * - 28 FROM tab1 AS cor0
----
6244

skipif mysql # not compatible
query I rowsort label-6666
SELECT - SUM ( + col2 ) * - 28 FROM tab1 AS cor0
----
6244

query II rowsort
SELECT + 37 AS col0, + 79 FROM tab1 AS cor0
----
37
79
37
79
37
79

query I rowsort
SELECT DISTINCT col2 + - - 30 + - 23 FROM tab0
----
106
17
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6669
SELECT ALL * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) < + 88 + + + 40
----

skipif mysql # not compatible
query III rowsort label-6669
SELECT ALL * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) < + 88 + + + 40
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6672
SELECT col2 + - - col1 + - - 36 DIV - ( - col0 ) + + ( - 91 ) FROM tab2
----
-17
26
34

skipif mysql # not compatible
query I rowsort label-6672
SELECT col2 + - - col1 + - - 36 / - ( - col0 ) + + ( - 91 ) FROM tab2
----
-17
26
34

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6676
SELECT * FROM tab0 AS cor0 WHERE CAST( - col1 AS DECIMAL ) / - 94 + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-6676
SELECT * FROM tab0 AS cor0 WHERE CAST ( - col1 AS REAL ) / - 94 + col1 IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-6677
SELECT - + COUNT ( * ) / - - 42 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 79 + + + ( + col0 ) + - ( col2 ) * + 39 AS col0 FROM tab2
----
-1575
-2266
-930

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6679
SELECT DISTINCT col0 * + col0 AS col0, CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2601
NULL
7225
NULL
8281
NULL

skipif mysql # not compatible
query II rowsort label-6679
SELECT DISTINCT col0 * + col0 AS col0, CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
2601
NULL
7225
NULL
8281
NULL

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 63 BETWEEN NULL AND - 52 * 57
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6682
SELECT ALL + col0 DIV - 91 AS col2 FROM tab2 AS cor0 WHERE NOT 68 * + col2 * + col1 * + + CAST( + - col0 AS SIGNED ) IS NULL
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6683
SELECT DISTINCT + + 39 * + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT + + 39 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-117

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6685
SELECT ALL + MIN( col2 ) FROM tab2 AS cor0 WHERE NOT col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6685
SELECT ALL + MIN ( col2 ) FROM tab2 AS cor0 WHERE NOT col2 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6686
SELECT DISTINCT - COUNT( + + 94 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT - COUNT ( + + 94 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6687
SELECT 64 DIV - COUNT( * ) FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-6687
SELECT 64 / - COUNT ( * ) FROM tab2
----
-21

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

skipif mysql # not compatible
query II rowsort label-6688
SELECT ALL col2, - col1 * - + 30 + + ( + col0 ) / - CAST ( NULL AS INTEGER ) + col2 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6689
SELECT 30 DIV - - COUNT( * ) FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-6689
SELECT 30 / - - COUNT ( * ) FROM tab2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col2, col0 col1 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT - 10 * 47 FROM tab0
----
-470
-470
-470

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 89 * + 63 NOT BETWEEN NULL AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT DISTINCT + - SUM( col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6694
SELECT DISTINCT + - SUM ( col2 ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-6695
SELECT MAX( + ( - 3 ) ) + - ( + 74 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT MAX ( + ( - 3 ) ) + - ( + 74 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL + - 25, + col1 AS col1 FROM tab0 AS cor0
----
-25
1
-25
21
-25
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6697
SELECT ALL + 52 + + CAST( - col2 AS SIGNED ) col2 FROM tab2
----
-6
12
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6697
SELECT ALL + 52 + + CAST ( - col2 AS INTEGER ) col2 FROM tab2
----
-6
12
29

query I rowsort
SELECT 99 + col1 FROM tab1
----
104
113
146

onlyif mysql # aggregate syntax: 
query II rowsort label-6699
SELECT + 50 + + COUNT( * ) AS col1, ( - COUNT( * ) ) * + 96 AS col0 FROM tab2
----
53
-288

skipif mysql # not compatible
query II rowsort label-6699
SELECT + 50 + + COUNT ( * ) AS col1, ( - COUNT ( * ) ) * + 96 AS col0 FROM tab2
----
53
-288

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT - CAST( NULL AS SIGNED ) / - col2 * - 64 + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6700
SELECT - CAST ( NULL AS INTEGER ) / - col2 * - 64 + col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6702
SELECT - + col1 DIV + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-6702
SELECT - + col1 / + col0 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-5
0
0

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

query II rowsort
SELECT DISTINCT + col2 * - - col0 + + 9, col0 FROM tab0
----
714
15
879
87
9612
97

query I rowsort
SELECT DISTINCT - col1 * 8 AS col0 FROM tab1
----
-112
-376
-40

query I rowsort
SELECT DISTINCT col1 * ( + col1 ) - col0 FROM tab1
----
-60
145
2118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6707
SELECT + + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - - col2 + + 81 + - + CAST( col1 AS SIGNED ) * - + 24 * - - 44 / + 85
----

skipif mysql # not compatible
query I rowsort label-6707
SELECT + + col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <= - - col2 + + 81 + - + CAST ( col1 AS INTEGER ) * - + 24 * - - 44 / + 85
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6709
SELECT + - 18 * + - SUM( ALL + col2 ) + COUNT( * ) + - + 58 AS col0 FROM tab0 AS cor0
----
2753

skipif mysql # not compatible
query I rowsort label-6709
SELECT + - 18 * + - SUM ( ALL + col2 ) + COUNT ( * ) + - + 58 AS col0 FROM tab0 AS cor0
----
2753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6710
SELECT 87 * - 66 + ( - 68 ) + - SUM( - + col2 ) DIV - - COUNT( * ) AS col2 FROM tab1 cor0
----
-5736

skipif mysql # not compatible
query I rowsort label-6710
SELECT 87 * - 66 + ( - 68 ) + - SUM ( - + col2 ) / - - COUNT ( * ) AS col2 FROM tab1 cor0
----
-5736

onlyif mysql # aggregate syntax: 
query I rowsort label-6711
SELECT ALL - COUNT( * ) * - 92 FROM tab0
----
276

skipif mysql # not compatible
query I rowsort label-6711
SELECT ALL - COUNT ( * ) * - 92 FROM tab0
----
276

query I rowsort
SELECT col1 - 56 FROM tab2
----
-5
11
21

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL = ( 95 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) = ( + col1 )
----

query I rowsort
SELECT 81 + + col0 FROM tab2
----
127
145
156

onlyif mysql # DIV for integer division: 
query I rowsort label-6716
SELECT ALL 75 DIV col1 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-6716
SELECT ALL 75 / col1 FROM tab1
----
1
15
5

query I rowsort
SELECT ALL - 49 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN + col2 + - col0 / col2 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6718
SELECT ALL + CAST( COUNT( DISTINCT - 99 ) AS SIGNED ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6718
SELECT ALL + CAST ( COUNT ( DISTINCT - 99 ) AS INTEGER ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6719
SELECT MIN( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - 99 * col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6719
SELECT MIN ( DISTINCT col1 ) AS col0 FROM tab2 WHERE NOT NULL NOT IN ( - 99 * col1 )
----
NULL

query I rowsort
SELECT ALL col0 + - col1 * + col0 AS col1 FROM tab1
----
-340
-4186
-663

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

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + col0 * 44 <= col2 * col0 - 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - col2 + - 10 * + col0 FROM tab0
----
-1069
-197
-880

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - 59 * - 93 )
----

query I rowsort
SELECT 69 FROM tab2 WHERE NOT NULL IS NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6730
SELECT DISTINCT MAX( ALL 72 ) + + COUNT( * ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-6730
SELECT DISTINCT MAX ( ALL 72 ) + + COUNT ( * ) FROM tab1
----
75

query I rowsort
SELECT DISTINCT ( + 31 ) AS col2 FROM tab1
----
31

query I rowsort
SELECT DISTINCT col1 + 15 AS col2 FROM tab1 WHERE NOT ( 35 - col1 * col2 ) IS NULL
----
20
29
62

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL <= - col0 * + 10
----

query I rowsort
SELECT DISTINCT - 16 * + 36 FROM tab0 WHERE NOT ( 20 ) >= NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 34 * + col1 + - 88 IS NOT NULL
----

query I rowsort
SELECT - col0 + - col2 AS col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-104
-133
-69

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

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

query I rowsort
SELECT ALL + col2 + + 13 AS col1 FROM tab1 AS cor0
----
109
72
81

query I rowsort
SELECT + col1 * ( 6 ) FROM tab0 AS cor0
----
126
486
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6742
SELECT DISTINCT - 59 + + SUM( DISTINCT - 51 ) FROM tab1
----
-110

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - 59 + + SUM ( DISTINCT - 51 ) FROM tab1
----
-110

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

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

skipif mysql # not compatible
query I rowsort label-6744
SELECT DISTINCT + col2 / 72 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 53 * col2 FROM tab1 cor0
----
-3127
-3604
-5088

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

skipif mysql # not compatible
query I rowsort label-6746
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + 15 FROM tab2 cor0
----
18

query I rowsort
SELECT DISTINCT - 19 + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 21 * + col1 ) AND NULL
----

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

query I rowsort
SELECT ALL + 87 + - col0 * col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-138
-7482
-9322

query I rowsort
SELECT + col2 + - 39 AS col2 FROM tab2 AS cor0
----
-16
1
19

onlyif mysql # aggregate syntax: 
query I rowsort label-6751
SELECT DISTINCT - SUM( - 71 ) FROM tab0 AS cor0 WHERE ( + col2 ) IN ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6751
SELECT DISTINCT - SUM ( - 71 ) FROM tab0 AS cor0 WHERE ( + col2 ) IN ( + col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6752
SELECT col0 DIV - 99 + + col1 * + col2 FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-6752
SELECT col0 / - 99 + + col1 * + col2 FROM tab0 AS cor0
----
210
3807
99

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 83 IS NULL
----

query I rowsort
SELECT ALL + 7 + + 14 + 20 * col1 FROM tab0
----
1641
41
441

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6757
SELECT * FROM tab0 WHERE ( + col1 * CAST( NULL AS DECIMAL ) ) BETWEEN NULL AND ( NULL )
----

skipif mysql # not compatible
query III rowsort label-6757
SELECT * FROM tab0 WHERE ( + col1 * CAST ( NULL AS REAL ) ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT ALL 12 + 56 AS col2 FROM tab0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6759
SELECT ALL + COUNT( + 76 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6759
SELECT ALL + COUNT ( + 76 ) FROM tab2
----
3

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

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

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

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

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

query I rowsort
SELECT ALL col0 + - col0 - + 40 FROM tab2
----
-40
-40
-40

query I rowsort
SELECT DISTINCT - 70 * col0 - - 62 FROM tab1
----
-3508
-5888
-6308

query I rowsort
SELECT + + 74 * + 41 AS col1 FROM tab0 AS cor0
----
3034
3034
3034

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6767
SELECT + CAST( + col1 AS SIGNED ) DIV - col0 - - 52 FROM tab0 cor0
----
47
52
52

skipif mysql # not compatible
query I rowsort label-6767
SELECT + CAST ( + col1 AS INTEGER ) / - col0 - - 52 FROM tab0 cor0
----
47
52
52

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6768
SELECT ALL + col1 + - col1 DIV CAST( - 84 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
21
81

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT + 28 / ( + MAX( + 79 ) ) FROM tab1 WHERE NOT + col0 + 68 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6771
SELECT + 28 / ( + MAX ( + 79 ) ) FROM tab1 WHERE NOT + col0 + 68 IS NOT NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6772
SELECT DISTINCT - - 53 * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-477

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

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

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

query I rowsort
SELECT 66 * col0 FROM tab0 AS cor0
----
5742
6402
990

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT ALL - COUNT( DISTINCT - 50 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6776
SELECT ALL - COUNT ( DISTINCT - 50 ) FROM tab0 AS cor0
----
-1

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

query II rowsort
SELECT - + col1 AS col1, col1 * - col2 FROM tab0 AS cor0
----
-1
-99
-21
-210
-81
-3807

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6779
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT IN ( ( 52 ) + 88 )
----

skipif mysql # not compatible
query III rowsort label-6779
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT IN ( ( 52 ) + 88 )
----

query II rowsort
SELECT DISTINCT + 86 AS col0, col0 * + col1 FROM tab2 AS cor0
----
86
2346
86
4928
86
5025

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6782
SELECT + CAST( col1 AS DECIMAL ) FROM tab0 WHERE NOT col2 NOT BETWEEN + + 99 * 97 AND col1 * col1
----

skipif mysql # not compatible
query I rowsort label-6782
SELECT + CAST ( col1 AS REAL ) FROM tab0 WHERE NOT col2 NOT BETWEEN + + 99 * 97 AND col1 * col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6783
SELECT 64 * 66 col1, - MIN( col1 ) FROM tab1
----
4224
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6783
SELECT 64 * 66 col1, - MIN ( col1 ) FROM tab1
----
4224
-5

query I rowsort
SELECT ALL - 80 * + 80 AS col1 FROM tab2
----
-6400
-6400
-6400

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

query I rowsort
SELECT + 36 * + + 44 FROM tab2
----
1584
1584
1584

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

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

query I rowsort
SELECT ALL + 2 AS col1 FROM tab0 WHERE NOT - 46 IS NULL
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT - COUNT( * ) * 93 col2 FROM tab2
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6789
SELECT - COUNT ( * ) * 93 col2 FROM tab2
----
-279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6790
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - 5 FROM tab1 AS cor0 WHERE 69 * + - 54 + - col2 IN ( - 9 * col2 )
----

skipif mysql # not compatible
query I rowsort label-6790
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - 5 FROM tab1 AS cor0 WHERE 69 * + - 54 + - col2 IN ( - 9 * col2 )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( 70 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 NOT BETWEEN 3 + - 90 AND ( col2 * - 26 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 87 * + + 80 col2 FROM tab2 AS cor0
----
6960
6960
6960

onlyif mysql # DIV for integer division: 
query I rowsort label-6796
SELECT DISTINCT col0 DIV + col0 AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6796
SELECT DISTINCT col0 / + col0 AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6797
SELECT ( col2 ) + + CAST( col0 AS SIGNED ) AS col1 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-6797
SELECT ( col2 ) + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2
----
104
133
69

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

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

query I rowsort
SELECT + 89 * - - ( - + 76 ) + col1 FROM tab0
----
-6683
-6743
-6763

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

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

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

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

query I rowsort
SELECT + col1 + + col1 FROM tab2 AS cor0 WHERE NULL >= + ( - 74 ) * - col0
----

query I rowsort
SELECT + - col0 / + col2 + - col1 * + col2 FROM tab0 AS cor0 WHERE - 13 / + col0 >= col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6805
SELECT - - col1 DIV + col0 + col1 FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6805
SELECT - - col1 / + col0 + col1 FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6806
SELECT ALL + + COUNT( * ) * + + COUNT( * ) FROM tab0 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6806
SELECT ALL + + COUNT ( * ) * + + COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT ALL col2 + - + ( + 22 ) FROM tab2
----
1
18
36

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 21 BETWEEN 41 AND ( NULL )
----

query I rowsort
SELECT + 4 + + 1 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 6035628694bdea36f584f3649088551d

query I rowsort
SELECT DISTINCT + 20 + - + col1 FROM tab1
----
-27
15
6

query I rowsort
SELECT DISTINCT - 14 - - col0 * col2 FROM tab0
----
691
856
9589

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

query I rowsort
SELECT - col1 * - col1 - + col0 * - col0 + + col0 FROM tab1
----
10581
2848
7335

query I rowsort
SELECT ALL ( - col2 ) + + 41 FROM tab0
----
-58
-6
31

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

query I rowsort
SELECT + 75 + - ( col0 ) + + col0 + - 25 AS col1 FROM tab1
----
50
50
50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6818
SELECT ALL ( - + COUNT( + - col1 ) ) * 94 - + - COUNT( * ) FROM tab1 cor0
----
-279

skipif mysql # not compatible
query I rowsort label-6818
SELECT ALL ( - + COUNT ( + - col1 ) ) * 94 - + - COUNT ( * ) FROM tab1 cor0
----
-279

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 = + 88
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col2 + - col0 ) > 33
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 96 <= + col2
----
85
5
59
91
47
68

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

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

skipif mysql # not compatible
query I rowsort label-6825
SELECT DISTINCT - col0 / col0 AS col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1

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

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

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

query II rowsort
SELECT ALL col1 * - 94, + 17 * - - col1 * - col0 * + ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1974
2702133
-7614
309825
-94
159953

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

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL + MAX ( + - col2 ) FROM tab0 AS cor0 WHERE col0 IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 90 col1, + ( col1 ) + - + col0 AS col2 FROM tab2
----
90
-8
90
13
90
5

query I rowsort
SELECT ALL col2 * - - 32 AS col2 FROM tab1
----
1888
2176
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT MIN( ALL 95 ) FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-6833
SELECT MIN ( ALL 95 ) FROM tab1
----
95

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 54 * 72 * 44 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 >= 88
----
51
14
96
85
5
59

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 BETWEEN NULL AND col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6837
SELECT - MIN( + 25 ) AS col1 FROM tab0 cor0
----
-25

skipif mysql # not compatible
query I rowsort label-6837
SELECT - MIN ( + 25 ) AS col1 FROM tab0 cor0
----
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6838
SELECT + CAST( 14 AS SIGNED ) * col2 FROM tab1 AS cor0
----
1344
826
952

skipif mysql # not compatible
query I rowsort label-6838
SELECT + CAST ( 14 AS INTEGER ) * col2 FROM tab1 AS cor0
----
1344
826
952

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6840
SELECT COUNT( * ) * + COUNT( * ) + + + 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6840
SELECT COUNT ( * ) * + COUNT ( * ) + + + 57 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
138

query I rowsort
SELECT + col0 - + 83 FROM tab1
----
-32
2
8

query I rowsort
SELECT - 5 - - col1 AS col0 FROM tab1
----
0
42
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT - + MAX( ( - 47 ) ) - + MIN( ALL - 18 ) FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT - + MAX ( ( - 47 ) ) - + MIN ( ALL - 18 ) FROM tab2 AS cor0
----
65

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6844
SELECT * FROM tab1 AS cor0 WHERE CAST( + 43 AS DECIMAL ) NOT BETWEEN ( - - col1 + 82 * col1 * - 18 + + - 50 ) AND col2 * - 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6844
SELECT * FROM tab1 AS cor0 WHERE CAST ( + 43 AS REAL ) NOT BETWEEN ( - - col1 + 82 * col1 * - 18 + + - 50 ) AND col2 * - 78
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

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

query I rowsort
SELECT + + col1 + - + ( - 30 ) FROM tab0 AS cor0
----
111
31
51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 80 BETWEEN NULL AND col1 + - + 38 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * + 63 AS col1 FROM tab2 AS cor0
----
-2898
-4032
-4725

query I rowsort
SELECT ALL + col0 + 12 AS col0 FROM tab1
----
103
63
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL + MIN( ( - col2 ) ) AS col0 FROM tab0 WHERE + + col0 * - - col0 + col2 NOT IN ( - ( + ( - ( + col0 ) ) ) * + 87 + - col2 )
----
-99

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL + MIN ( ( - col2 ) ) AS col0 FROM tab0 WHERE + + col0 * - - col0 + col2 NOT IN ( - ( + ( - ( + col0 ) ) ) * + 87 + - col2 )
----
-99

query II rowsort
SELECT + 99 AS col0, + 65 AS col0 FROM tab0
----
99
65
99
65
99
65

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

query I rowsort
SELECT ALL col1 - 23 AS col0 FROM tab0
----
-2
-22
58

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

skipif mysql # not compatible
query I rowsort label-6855
SELECT - COUNT ( 37 ) AS col1 FROM tab2
----
-3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col2 > NULL
----

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

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

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

query III rowsort
SELECT ALL + col1 AS col2, 19 * + 73 AS col2, - 16 AS col0 FROM tab2 AS cor0
----
9 values hashing to c3ae6e795320b2f2d626ef4e0b3ad50e

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

skipif mysql # not compatible
query I rowsort label-6860
SELECT ALL + 13 / - - MIN ( DISTINCT col2 ) / + + COUNT ( * ) FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6861
SELECT + col0 DIV col2 DIV col1 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6861
SELECT + col0 / col2 / col1 AS col1 FROM tab0
----
0
0
0

query II rowsort
SELECT + 89 AS col2, 73 FROM tab1
----
89
73
89
73
89
73

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6864
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < - CAST( col0 AS DECIMAL ) + - - col2
----

skipif mysql # not compatible
query III rowsort label-6864
SELECT DISTINCT * FROM tab1 WHERE NOT - col2 < - CAST ( col0 AS REAL ) + - - col2
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 * - - 72 * col2 + - 78 + + + col1 NOT IN ( + col0, col1 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col1 + + + 90, + 8 )
----

query I rowsort
SELECT + col0 * - col0 * 61 FROM tab0 cor0
----
-13725
-461709
-573949

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT ALL 64 + - MIN( - - 91 ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-6870
SELECT ALL 64 + - MIN ( - - 91 ) FROM tab0
----
-27

query I rowsort
SELECT ALL 84 FROM tab1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT ALL ( + ( - - col1 ) ) + - ( - 85 ) + - - 98 AS col2 FROM tab1
----
188
197
230

onlyif mysql # aggregate syntax: 
query I rowsort label-6874
SELECT DISTINCT + 69 * COUNT( * ) FROM tab0, tab0 AS cor0
----
621

skipif mysql # not compatible
query I rowsort label-6874
SELECT DISTINCT + 69 * COUNT ( * ) FROM tab0, tab0 AS cor0
----
621

onlyif mysql # DIV for integer division: 
query I rowsort label-6875
SELECT + 27 DIV - - col2 + + ( - 30 ) col1 FROM tab1 AS cor0
----
-30
-30
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6875
SELECT + 27 / - - col2 + + ( - 30 ) col1 FROM tab1 AS cor0
----
-30
-30
-30

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6878
SELECT - col2 + + col1 * col1 DIV col0 FROM tab2
----
1
33
52

skipif mysql # not compatible
query I rowsort label-6878
SELECT - col2 + + col1 * col1 / col0 FROM tab2
----
1
33
52

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6880
SELECT ALL COUNT( * ) - - - MAX( DISTINCT col1 ) col1 FROM tab1
----
-44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6880
SELECT ALL COUNT ( * ) - - - MAX ( DISTINCT col1 ) col1 FROM tab1
----
-44

query II rowsort
SELECT DISTINCT + col2 - + - col0 + + 98 AS col1, 89 + + - col0 FROM tab2 AS cor0
----
167
43
202
25
231
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 77 * - ( 6 ) col0 FROM tab2 cor0
----
-462
-462
-462

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6884
SELECT - - col0 * - ( ( 0 ) ) DIV + + 45 + + - col0 - col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

skipif mysql # not compatible
query I rowsort label-6884
SELECT - - col0 * - ( ( 0 ) ) / + + 45 + + - col0 - col2 AS col2 FROM tab2 AS cor0
----
-104
-133
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT MIN( ALL - col0 ) - 13 AS col0 FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-6886
SELECT MIN ( ALL - col0 ) - 13 AS col0 FROM tab1
----
-104

query I rowsort
SELECT + 47 * - col2 * - + col1 - - col1 FROM tab2
----
144837
182709
55182

query I rowsort
SELECT 26 * + col2 FROM tab1
----
1534
1768
2496

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 44 ) >= - 0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6890
SELECT ALL + + col1 DIV + + ( col0 ) + + col2 * + 67 AS col1 FROM tab0 AS cor0
----
3154
6633
670

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + + col1 / + + ( col0 ) + + col2 * + 67 AS col1 FROM tab0 AS cor0
----
3154
6633
670

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6891
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6891
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
NULL

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

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

query II rowsort
SELECT - col2 AS col1, - 43 + - col2 AS col2 FROM tab2
----
-23
-66
-40
-83
-58
-101

query II rowsort
SELECT - col2, + col1 * - 95 AS col2 FROM tab0
----
-10
-1995
-47
-7695
-99
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-6895
SELECT - 1 DIV - col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6895
SELECT - 1 / - col1 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * - + col0 * + - col1 * + col2 FROM tab1
----
1479425
19776848
6580224

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

skipif mysql # not compatible
query I rowsort label-6897
SELECT + MIN ( DISTINCT + col2 ) / + 52 AS col1 FROM tab2
----
0

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT 30 * + + 97 BETWEEN col1 AND - + ( - col1 ) * + col1
----
-14
-47
-5

query I rowsort
SELECT 95 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6904
SELECT - - MAX ( ALL col1 ) FROM tab1 AS cor0
----
47

query I rowsort
SELECT DISTINCT + + 4 FROM tab2 AS cor0 WHERE 28 * 76 * + + col2 / - + 75 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col0 ) col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT + + SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-6907
SELECT + + SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT DISTINCT 65 - + col0 FROM tab2 WHERE NOT ( ( - col2 ) + 79 ) = + 6
----
-10
1
19

query I rowsort
SELECT + ( - ( - 3 ) ) FROM tab2 WHERE ( NULL ) >= + col1 + + col2 + col0 + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - ( - ( 6 ) ) + ( - + 87 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6911
SELECT 25 + - MAX( + + 74 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-6911
SELECT 25 + - MAX ( + + 74 ) FROM tab1
----
-49

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

skipif mysql # not compatible
query I rowsort label-6912
SELECT - COUNT ( + col1 ) + - COUNT ( * ) FROM tab0
----
-6

query I rowsort
SELECT 66 + + ( - 44 ) * - ( + col1 ) * - - col1 + - col1 FROM tab1
----
1161
8676
97215

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6914
SELECT DISTINCT + 24 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6914
SELECT DISTINCT + 24 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - + COUNT( * ) * + 95 FROM tab1 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-6915
SELECT - + COUNT ( * ) * + 95 FROM tab1 AS cor0
----
-285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - col0 ) col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL - col2 + + + 64 - 7 * + 65 FROM tab2 AS cor0
----
-414
-431
-449

query I rowsort
SELECT DISTINCT col1 - + col0 * - 47 FROM tab1
----
2411
4000
4324

query I rowsort
SELECT ALL - ( + ( - 92 ) ) FROM tab0
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL <= - col1 * + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6922
SELECT + 14 * - COUNT( * ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-6922
SELECT + 14 * - COUNT ( * ) FROM tab2
----
-42

query I rowsort
SELECT ALL col0 + col0 AS col2 FROM tab1 WHERE col2 * - col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6924
SELECT ALL + COUNT( * ) * COUNT( * ) col0 FROM tab1
----
9

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6927
SELECT DISTINCT + COUNT( * ) * + 75 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-6927
SELECT DISTINCT + COUNT ( * ) * + 75 FROM tab0
----
225

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

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

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

query II rowsort
SELECT DISTINCT - 1 AS col0, 28 AS col1 FROM tab2 AS cor0
----
-1
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN + col1 AND NULL
----

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

query II rowsort
SELECT DISTINCT - + col1 AS col0, - col1 * + - col1 * - 8 + - 67 * - 18 + + + 14 * - col2 FROM tab1 AS cor0
----
-14
-1706
-47
-17418
-5
180

query I rowsort
SELECT - 84 + - col0 FROM tab1
----
-135
-169
-175

query I rowsort
SELECT ( + + col1 ) + 97 FROM tab0 AS cor0
----
118
178
98

query I rowsort
SELECT + 26 * + col1 - - col2 FROM tab0 AS cor0
----
125
2153
556

onlyif mysql # aggregate syntax: 
query I rowsort label-6938
SELECT MIN( - - col1 ) AS col0 FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-6938
SELECT MIN ( - - col1 ) AS col0 FROM tab1
----
5

query III rowsort
SELECT * FROM tab2 WHERE + + 25 BETWEEN NULL AND - - col2 * + 91
----

query I rowsort
SELECT col2 * + col2 * - col2 * col2 AS col1 FROM tab0
----
-10000
-4879681
-96059601

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

skipif mysql # not compatible
query I rowsort label-6941
SELECT MIN ( ALL + ( + - ( - col1 ) ) ) FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT - SUM( DISTINCT col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-6942
SELECT - SUM ( DISTINCT col1 ) AS col0 FROM tab0
----
-103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 - + col1 * - + 29 + - 97 col1 FROM tab1
----
1249
292
31

query II rowsort
SELECT DISTINCT - 10, col1 * - col1 AS col2 FROM tab0 cor0
----
-10
-1
-10
-441
-10
-6561

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6946
SELECT DISTINCT + + SUM( DISTINCT + 20 ) + - - 48, - SUM( DISTINCT + + 85 ) AS col2 FROM tab1 AS cor0
----
68
-85

skipif mysql # not compatible
query II rowsort label-6946
SELECT DISTINCT + + SUM ( DISTINCT + 20 ) + - - 48, - SUM ( DISTINCT + + 85 ) AS col2 FROM tab1 AS cor0
----
68
-85

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

skipif mysql # not compatible
query I rowsort label-6947
SELECT + CAST ( COUNT ( * ) AS INTEGER ) + + COUNT ( * ) + + 9 * - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT ALL 4 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

query I rowsort
SELECT ALL 36 - 97 FROM tab0
----
-61
-61
-61

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6952
SELECT - MAX( ALL - col0 ) AS col0 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-6952
SELECT - MAX ( ALL - col0 ) AS col0 FROM tab2 cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT + SUM( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6953
SELECT + SUM ( - col2 ) AS col0 FROM tab2 AS cor0 WHERE NOT col1 > NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT + - 15 * 54 * - COUNT( * ) FROM tab0 AS cor0
----
2430

skipif mysql # not compatible
query I rowsort label-6955
SELECT + - 15 * 54 * - COUNT ( * ) FROM tab0 AS cor0
----
2430

onlyif mysql # DIV for integer division: 
query I rowsort label-6956
SELECT col1 DIV - - 87 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6956
SELECT col1 / - - 87 FROM tab2
----
0
0
0

query I rowsort
SELECT - ( + col0 ) * - ( + col1 ) FROM tab0
----
1215
1827
97

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + 41 + + col0 * + col2 - + 63 * 50 * col0 NOT BETWEEN + - col1 * + - 48 AND - + col1 + - col1
----

query II rowsort
SELECT DISTINCT 77 * - col1 * col0, 27 AS col1 FROM tab1
----
-32725
27
-329329
27
-54978
27

query I rowsort
SELECT + col2 + - col1 FROM tab2 cor0 WHERE NOT NULL > - col0 - - 37
----

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

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

query II rowsort
SELECT 41 AS col1, col2 * - 82 + 63 AS col0 FROM tab0 AS cor0
----
41
-3791
41
-757
41
-8055

query II rowsort
SELECT - col1 * - col1 * + + 37 * - col2 AS col0, col1 FROM tab0 AS cor0
----
-11409579
81
-163170
21
-3663
1

query I rowsort
SELECT DISTINCT - + 56 FROM tab0 AS cor0 WHERE NOT + col0 - 5 + - col2 / - 30 >= - col2
----

query I rowsort
SELECT 78 + - - col1 AS col2 FROM tab1 cor0
----
125
83
92

query I rowsort
SELECT ALL col2 * + 43 AS col1 FROM tab1 AS cor0
----
2537
2924
4128

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6968
SELECT + 60 + col0 DIV - CAST( + 24 AS SIGNED ) FROM tab0
----
56
57
60

skipif mysql # not compatible
query I rowsort label-6968
SELECT + 60 + col0 / - CAST ( + 24 AS INTEGER ) FROM tab0
----
56
57
60

query I rowsort
SELECT DISTINCT - col2 + - 22 + + + 46 * + ( + + 17 ) FROM tab0
----
661
713
750

query I rowsort
SELECT 24 FROM tab2 WHERE + 1 IS NOT NULL
----
24
24
24

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6971
SELECT ALL 68 + COUNT( + col2 ) DIV + 7 AS col1 FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-6971
SELECT ALL 68 + COUNT ( + col2 ) / + 7 AS col1 FROM tab0
----
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6972
SELECT + MAX( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

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

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

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

query I rowsort
SELECT - 36 * - + col1 + - col0 + col2 * + col1 * col0 AS col1 FROM tab0 AS cor0
----
18939
60006
9542

query I rowsort
SELECT ALL + + 7 + + 66 * - col1 FROM tab0 AS cor0
----
-1379
-5339
-59

query I rowsort
SELECT + 45 * + - col0 * 73 FROM tab1 cor0
----
-167535
-279225
-298935

query I rowsort
SELECT - col1 * 8 + + 76 * + 29 + - 84 FROM tab0 AS cor0
----
1472
1952
2112

query I rowsort
SELECT col1 * - 33 - - 89 + + col0 AS col0 FROM tab2
----
-1548
-2047
-2388

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

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

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

query I rowsort
SELECT DISTINCT 91 * + 40 FROM tab2 AS cor0
----
3640

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < col2 * + - 76 + - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6984
SELECT ALL MAX( DISTINCT + 97 ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-6984
SELECT ALL MAX ( DISTINCT + 97 ) FROM tab0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6985
SELECT DISTINCT + SUM( DISTINCT + col2 ) col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6985
SELECT DISTINCT + SUM ( DISTINCT + col2 ) col2 FROM tab1 AS cor0
----
223

query I rowsort
SELECT + 38 + col1 FROM tab1
----
43
52
85

query I rowsort
SELECT ALL - - 74 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL col1 * + ( + 25 ) FROM tab2 AS cor0 WHERE NOT - col2 - 81 / - 23 * col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT - + col0 + col0 + - - 4 * - col2 FROM tab0 cor0
----
-188
-396
-40

query I rowsort
SELECT ALL + 62 * + + 40 AS col0 FROM tab2 AS cor0
----
2480
2480
2480

query II rowsort
SELECT + col0 * + + col0 AS col2, col1 * 76 FROM tab2 AS cor0
----
2116
3876
4096
5852
5625
5092

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 IN ( - col0 * col0 / + - 39 )
----

query I rowsort
SELECT ALL 39 + + col2 AS col2 FROM tab1
----
107
135
98

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 NOT BETWEEN 46 AND - - col0 - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6995
SELECT SUM( ALL - col2 ) DIV + - 68 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6995
SELECT SUM ( ALL - col2 ) / + - 68 FROM tab2
----
1

query I rowsort
SELECT DISTINCT 24 + + col2 + + - col0 * + col2 + + - col1 * + - col1 FROM tab0
----
-395
-9479
5927

query I rowsort
SELECT 79 - - col0 AS col1 FROM tab0
----
166
176
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6998
SELECT DISTINCT 64 - + SUM( CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6998
SELECT DISTINCT 64 - + SUM ( CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

query I rowsort
SELECT ALL 91 * - 53 FROM tab0
----
-4823
-4823
-4823

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - + 24 / + 51 IN ( - 35, - 71 * + - col0 + + col2 )
----

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

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

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

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

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

query I rowsort
SELECT ALL - col0 / - - col2 FROM tab1 WHERE NULL < - col0 * - - col0
----

query I rowsort
SELECT DISTINCT + + 87 * 25 FROM tab0 AS cor0
----
2175

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

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

query I rowsort
SELECT - col2 * + ( + - col2 ) AS col0 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT + 49 * + col1 FROM tab0 cor0
----
1029
3969
49

onlyif mysql # aggregate syntax: 
query I rowsort label-7009
SELECT 52 * - COUNT( * ) FROM tab2
----
-156

skipif mysql # not compatible
query I rowsort label-7009
SELECT 52 * - COUNT ( * ) FROM tab2
----
-156

query I rowsort
SELECT + col0 * 91 FROM tab2
----
4186
5824
6825

query I rowsort
SELECT DISTINCT - col0 * - 15 FROM tab1
----
1275
1365
765

query I rowsort
SELECT col1 + + col0 + + col0 - - col1 FROM tab1
----
130
180
276

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT + 51 + + - COUNT( + col2 ) AS col0 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-7014
SELECT + 51 + + - COUNT ( + col2 ) AS col0 FROM tab1 AS cor0
----
48

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

skipif mysql # not compatible
query I rowsort label-7015
SELECT COUNT ( * ) + - - MAX ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
99

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 61 + + - 20 col0, col0 + + col1 AS col2 FROM tab0 cor0
----
-81
108
-81
96
-81
98

query I rowsort
SELECT ALL - col1 + + 63 + - col0 FROM tab1 AS cor0
----
-2
-27
-75

query I rowsort
SELECT DISTINCT col0 + col0 - - 14 FROM tab1
----
116
184
196

query I rowsort
SELECT col2 + 19 FROM tab0 WHERE + col1 <> + col2
----
118
29
66

query I rowsort
SELECT DISTINCT col0 - + 63 FROM tab0
----
-48
24
34

query II rowsort
SELECT ALL 22 - + + 8 + - ( + + ( col2 ) ), + col1 AS col2 FROM tab2
----
-26
77
-44
67
-9
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7023
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7028
SELECT DISTINCT - 57 / col0 col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7029
SELECT SUM( ALL + 15 ) AS col1 FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7029
SELECT SUM ( ALL + 15 ) AS col1 FROM tab2 AS cor0
----
45

query I rowsort
SELECT ALL + + 48 + 40 * + 25 FROM tab2 AS cor0 WHERE NOT col1 / + col2 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-7031
SELECT + MIN ( 30 ) FROM tab2 AS cor0
----
30

query I rowsort
SELECT 39 * + 15 * col1 FROM tab1
----
27495
2925
8190

query I rowsort
SELECT col1 * - col2 FROM tab1 WHERE NOT + 84 * 5 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7034
SELECT ALL col2 DIV ( + - col1 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL col2 / ( + - col1 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col0 * - - 39 * - col2 FROM tab1
----
-190944
-195585
-241332

onlyif mysql # DIV for integer division: 
query I rowsort label-7036
SELECT ALL + + col2 DIV 36 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL + + col2 / 36 FROM tab2 AS cor0
----
0
1
1

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

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

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

query I rowsort
SELECT ALL - col0 + - ( - col2 ) AS col2 FROM tab1
----
-23
-26
45

query I rowsort
SELECT - col0 + + 90 + - 38 - - - col2 + - col0 + - col2 AS col0 FROM tab2
----
-156
-214
-86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7042
SELECT ALL - - MAX( ALL - 36 ) - 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-7042
SELECT ALL - - MAX ( ALL - 36 ) - CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + 11 ), + 65 * - col0 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 30 * + - ( + col2 ) FROM tab1 AS cor0
----
-1770
-2040
-2880

query I rowsort
SELECT + col2 - + + col1 AS col1 FROM tab0 AS cor0
----
-11
-34
98

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

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

skipif mysql # not compatible
query I rowsort label-7048
SELECT DISTINCT - 70 + + COUNT ( + - col2 ) FROM tab0
----
-67

query I rowsort
SELECT + col0 - + 44 AS col2 FROM tab2
----
2
20
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7050
SELECT 78 + + COUNT( * ) DIV + 72 AS col1 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7050
SELECT 78 + + COUNT ( * ) / + 72 AS col1 FROM tab2
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-7051
SELECT 82 DIV - 70 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

skipif mysql # not compatible
query I rowsort label-7051
SELECT 82 / - 70 AS col2 FROM tab2, tab2 AS cor0
----
9 values hashing to 60fdd6924bb763d6aca00ba74935ef4b

query I rowsort
SELECT DISTINCT + + 72 * + + ( + col0 ) + - col1 FROM tab0 AS cor0
----
6243
6983
999

query II rowsort
SELECT ALL + col2 AS col0, 63 * - - 97 * 5 FROM tab0 AS cor0
----
10
30555
47
30555
99
30555

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7054
SELECT + - col1 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

skipif mysql # not compatible
query II rowsort label-7054
SELECT + - col1 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1
NULL
-21
NULL
-81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT + 64 * COUNT( - col0 ) AS col1 FROM tab1 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-7055
SELECT + 64 * COUNT ( - col0 ) AS col1 FROM tab1 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-7056
SELECT ALL COUNT( * ) * - + 28 AS col0 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7056
SELECT ALL COUNT ( * ) * - + 28 AS col0 FROM tab1
----
-84

query I rowsort
SELECT DISTINCT - 33 * - col0 FROM tab0
----
2871
3201
495

query II rowsort
SELECT ALL - col2 * col0 AS col1, - col2 * - - 30 + + col1 FROM tab1
----
-4896
-2866
-5015
-1765
-6188
-1993

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7059
SELECT + + 61 * - + CAST( NULL AS SIGNED ) + col2 AS col2, 45 FROM tab0 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) IS NOT NULL )
----
NULL
45
NULL
45
NULL
45

skipif mysql # not compatible
query II rowsort label-7059
SELECT + + 61 * - + CAST ( NULL AS INTEGER ) + col2 AS col2, 45 FROM tab0 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
NULL
45
NULL
45
NULL
45

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7061
SELECT ALL - + col1 * - col1 col2, + CAST( - + col0 AS SIGNED ) + col2 AS col2 FROM tab0 AS cor0
----
1
2
441
-77
6561
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7061
SELECT ALL - + col1 * - col1 col2, + CAST ( - + col0 AS INTEGER ) + col2 AS col2 FROM tab0 AS cor0
----
1
2
441
-77
6561
32

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <= 24
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col2 col1 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT col2 + 84 FROM tab2
----
107
124
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT DISTINCT 89 + + - MAX( - col0 ) AS col1 FROM tab2
----
135

skipif mysql # not compatible
query I rowsort label-7065
SELECT DISTINCT 89 + + - MAX ( - col0 ) AS col1 FROM tab2
----
135

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7067
SELECT DISTINCT + 10 DIV 22 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7067
SELECT DISTINCT + 10 / 22 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - 55 + 37 FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + - 48 AS col2 FROM tab0
----
-1
-38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7070
SELECT DISTINCT + MAX( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7070
SELECT DISTINCT + MAX ( DISTINCT - - col0 ) AS col2 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7071
SELECT - 50 DIV - COUNT( * ) FROM tab0 cor0
----
16

skipif mysql # not compatible
query I rowsort label-7071
SELECT - 50 / - COUNT ( * ) FROM tab0 cor0
----
16

onlyif mysql # aggregate syntax: 
query II rowsort label-7072
SELECT DISTINCT - - COUNT( * ) AS col1, 52 col1 FROM tab2 AS cor0
----
3
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7072
SELECT DISTINCT - - COUNT ( * ) AS col1, 52 col1 FROM tab2 AS cor0
----
3
52

query I rowsort
SELECT DISTINCT col0 * - col0 + - + col1 + - + col0 * + col1 * - col1 FROM tab0
----
-9313
30777
98109

onlyif mysql # aggregate syntax: 
query I rowsort label-7074
SELECT - + COUNT( * ) FROM tab2 WHERE - 42 + + col2 + + 61 * - col0 BETWEEN - col0 AND - col1
----
0

skipif mysql # not compatible
query I rowsort label-7074
SELECT - + COUNT ( * ) FROM tab2 WHERE - 42 + + col2 + + 61 * - col0 BETWEEN - col0 AND - col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 46 * + - col2 * + col0 + + col2 col1, 83 FROM tab1
----
-225120
83
-230631
83
-284580
83

query I rowsort
SELECT ALL + 6 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT - COUNT( - - 25 ) + + + 7 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7077
SELECT - COUNT ( - - 25 ) + + + 7 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7078
SELECT + COUNT( * ) DIV + MAX( ALL - + 45 ) + COUNT( * ) + COUNT( * ) AS col0, 86 AS col0 FROM tab1 AS cor0
----
6
86

skipif mysql # not compatible
query II rowsort label-7078
SELECT + COUNT ( * ) / + MAX ( ALL - + 45 ) + COUNT ( * ) + COUNT ( * ) AS col0, 86 AS col0 FROM tab1 AS cor0
----
6
86

query I rowsort
SELECT + col2 + - - 18 FROM tab1 cor0
----
114
77
86

query I rowsort
SELECT - 5 + + + col1 * + + col0 AS col2 FROM tab2 AS cor0
----
2341
4923
5020

query I rowsort
SELECT ALL + - 32 AS col1 FROM tab2 AS cor0 WHERE NOT NULL > col2
----

query II rowsort
SELECT ALL + 85 * - col2 + + 84 AS col0, - 57 * + col1 * 83 AS col2 FROM tab1
----
-4931
-23655
-5696
-222357
-8076
-66234

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 96 AS col0, 22 col1 FROM tab0
----
96
22

query I rowsort
SELECT - ( + 29 ) FROM tab0 cor0
----
-29
-29
-29

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 16 * col0 + + 18 = NULL
----

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7091
SELECT - 92 DIV + 58 AS col2 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 92 / + 58 AS col2 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT col1 + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 98 AND + col1 * - + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 65 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7094
SELECT DISTINCT + MAX( 15 ) + + COUNT( DISTINCT - 22 ) AS col0 FROM tab1 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-7094
SELECT DISTINCT + MAX ( 15 ) + + COUNT ( DISTINCT - 22 ) AS col0 FROM tab1 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7095
SELECT - col0 * col1 AS col2, ( + ( - + CAST( + + ( + col2 ) AS SIGNED ) ) ) + + col0 * + 58 + - ( + + 85 ) AS col0 FROM tab0
----
-1215
738
-1827
4951
-97
5442

skipif mysql # not compatible
query II rowsort label-7095
SELECT - col0 * col1 AS col2, ( + ( - + CAST ( + + ( + col2 ) AS INTEGER ) ) ) + + col0 * + 58 + - ( + + 85 ) AS col0 FROM tab0
----
-1215
738
-1827
4951
-97
5442

query I rowsort
SELECT DISTINCT - col0 * + 30 + + col0 AS col2 FROM tab0
----
-2523
-2813
-435

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7098
SELECT - 86 * 62 col1, CAST( NULL AS SIGNED ) FROM tab0
----
-5332
NULL
-5332
NULL
-5332
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7098
SELECT - 86 * 62 col1, CAST ( NULL AS INTEGER ) FROM tab0
----
-5332
NULL
-5332
NULL
-5332
NULL

query I rowsort
SELECT DISTINCT col1 + col0 + + col1 + + col1 AS col0 FROM tab2
----
199
276
295

query II rowsort
SELECT col0 * - col0, - col1 AS col1 FROM tab2
----
-2116
-51
-4096
-77
-5625
-67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7101
SELECT ALL - 48 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) = col0 + - + col2
----

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL - 48 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) = col0 + - + col2
----

query I rowsort
SELECT DISTINCT + col0 * + col0 + - col2 + - - col0 * - + col1 + + 96 * + 19 + + col0 * - 68 AS col2 FROM tab2 AS cor0
----
-1557
-2734
-3400

onlyif mysql # aggregate syntax: 
query I rowsort label-7103
SELECT ALL + 4 + - - COUNT( * ) + - MAX( 91 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7103
SELECT ALL + 4 + - - COUNT ( * ) + - MAX ( 91 ) FROM tab1
----
-84

query I rowsort
SELECT DISTINCT + col2 + - 66 + - - 72 * - + col1 * 67 FROM tab0
----
-101360
-390763
-4791

query I rowsort
SELECT DISTINCT col0 + 16 FROM tab0
----
103
113
31

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + col1 NOT BETWEEN + 74 + + ( + + 73 ) AND + ( - ( 23 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + + col0 + - + 56 + + 14 <> 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + + 31 ) - col2 + + - col0 AS col1 FROM tab0 AS cor0
----
-128
-227
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7109
SELECT - + ( - col1 ) FROM tab1 AS cor0 WHERE NULL > - CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7109
SELECT - + ( - col1 ) FROM tab1 AS cor0 WHERE NULL > - CAST ( - col1 AS INTEGER )
----

query II rowsort
SELECT + 76 AS col1, col2 * col0 AS col0 FROM tab2 AS cor0
----
76
1058
76
2560
76
4350

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

query II rowsort
SELECT ALL - col2 AS col0, + col2 - - - 59 FROM tab1 AS cor0
----
-59
0
-68
9
-96
37

query I rowsort
SELECT ( - AVG ( col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - 59 AND + col2
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-7115
SELECT + col1 / - ( col1 ) FROM tab2
----
-1
-1
-1

query I rowsort
SELECT - 32 FROM tab2 WHERE NOT - 98 + - - col0 + col1 NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL + + 82 * col0 FROM tab0 WHERE + ( - 55 ) * - col2 * col1 * - col2 NOT IN ( + col1, 48 )
----
1230
7134
7954

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7119
SELECT + 39 DIV - - ( - COUNT( * ) ) AS col2 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-7119
SELECT + 39 / - - ( - COUNT ( * ) ) AS col2 FROM tab2
----
-13

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT DISTINCT 20 * col0 - - col2 * 82 DIV - col1 FROM tab2 AS cor0
----
1238
1430
884

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT 20 * col0 - - col2 * 82 / - col1 FROM tab2 AS cor0
----
1238
1430
884

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7123
SELECT DISTINCT 24 DIV MIN( DISTINCT + CAST( + col1 AS SIGNED ) ) * - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT 24 / MIN ( DISTINCT + CAST ( + col1 AS INTEGER ) ) * - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
36

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

skipif mysql # not compatible
query I rowsort label-7124
SELECT + 0 * - col2 / - col2 * + ( col1 ) + 46 AS col0 FROM tab2 cor0
----
46
46
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, col2 col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7126
SELECT ALL + COUNT( * ) + ( 92 ) FROM tab0, tab2 AS cor0
----
101

skipif mysql # not compatible
query I rowsort label-7126
SELECT ALL + COUNT ( * ) + ( 92 ) FROM tab0, tab2 AS cor0
----
101

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7130
SELECT - CAST( - 90 AS SIGNED ) + + col2 AS col0 FROM tab0 AS cor0
----
100
137
189

skipif mysql # not compatible
query I rowsort label-7130
SELECT - CAST ( - 90 AS INTEGER ) + + col2 AS col0 FROM tab0 AS cor0
----
100
137
189

query I rowsort
SELECT ALL 42 * - 51 AS col0 FROM tab0 AS cor0
----
-2142
-2142
-2142

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7133
SELECT DISTINCT col0 DIV - - col2 + + 26 AS col0 FROM tab1
----
26
27

skipif mysql # not compatible
query I rowsort label-7133
SELECT DISTINCT col0 / - - col2 + + 26 AS col0 FROM tab1
----
26
27

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

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

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 / - 77 * + col0 AS col0 FROM tab2 WHERE NOT - - 9 * col1 + + 58 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7137
SELECT ALL - col0 DIV 88 + - col2 FROM tab0
----
-10
-100
-47

skipif mysql # not compatible
query I rowsort label-7137
SELECT ALL - col0 / 88 + - col2 FROM tab0
----
-10
-100
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7138
SELECT - col2 * + CAST( + 76 AS SIGNED ) AS col1 FROM tab2
----
-1748
-3040
-4408

skipif mysql # not compatible
query I rowsort label-7138
SELECT - col2 * + CAST ( + 76 AS INTEGER ) AS col1 FROM tab2
----
-1748
-3040
-4408

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

query I rowsort
SELECT DISTINCT col0 * - col1 * + 63 AS col2 FROM tab0 AS cor0
----
-115101
-6111
-76545

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

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

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

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

query I rowsort
SELECT 34 AS col2 FROM tab1 WHERE NULL IS NULL
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT DISTINCT - 11 + + COUNT( * ) AS col0 FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-7144
SELECT DISTINCT - 11 + + COUNT ( * ) AS col0 FROM tab0
----
-8

query I rowsort
SELECT ALL + 78 - - 70 + - col0 FROM tab0
----
133
51
61

query I rowsort
SELECT 71 + - col0 AS col1 FROM tab0 AS cor0
----
-16
-26
56

query I rowsort
SELECT DISTINCT - - 92 * ( - 19 ) AS col2 FROM tab1 AS cor0
----
-1748

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

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

query I rowsort
SELECT + ( 91 ) FROM tab0
----
91
91
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7151
SELECT 73 DIV - ( col1 ) FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7151
SELECT 73 / - ( col1 ) FROM tab2
----
-1
-1
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - ( - 51 ) <> - col0
----

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

query I rowsort
SELECT ALL - 32 * - + 61 AS col1 FROM tab1
----
1952
1952
1952

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7156
SELECT DISTINCT + 99 DIV - 10 AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7156
SELECT DISTINCT + 99 / - 10 AS col0 FROM tab0
----
-9

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

skipif mysql # not compatible
query I rowsort label-7157
SELECT COUNT ( * ) * + - COUNT ( + - col2 ) / + 82 FROM tab1
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7159
SELECT ALL MIN ( ALL - + ( col1 ) ) col1 FROM tab2 AS cor0
----
-77

query II rowsort
SELECT ALL + col1, 69 FROM tab0 cor0
----
1
69
21
69
81
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7161
SELECT ALL + 93 * COUNT( * ) FROM tab2
----
279

skipif mysql # not compatible
query I rowsort label-7161
SELECT ALL + 93 * COUNT ( * ) FROM tab2
----
279

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7163
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - 5 )
----
0

skipif mysql # not compatible
query I rowsort label-7163
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( - 5 )
----
0

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

query I rowsort
SELECT ALL col0 - + 55 FROM tab0
----
-40
32
42

query I rowsort
SELECT ALL 61 + - 57 FROM tab2
----
4
4
4

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7167
SELECT ALL col2 * CAST( + col2 DIV col0 AS SIGNED ) - + 50 AS col2 FROM tab2
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-7167
SELECT ALL col2 * CAST ( + col2 / col0 AS INTEGER ) - + 50 AS col2 FROM tab2
----
-50
-50
-50

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7169
SELECT ALL MIN( DISTINCT - 46 ) + + ( + 66 + ( 79 ) ) * + CAST( COUNT( * ) * + CAST( NULL AS SIGNED ) AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7169
SELECT ALL MIN ( DISTINCT - 46 ) + + ( + 66 + ( 79 ) ) * + CAST ( COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS REAL ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col2 * + col1 + + col2 AS col1 FROM tab0
----
198
220
3854

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7172
SELECT - col0 DIV - col0 - + col1 AS col1 FROM tab1
----
-13
-4
-46

skipif mysql # not compatible
query I rowsort label-7172
SELECT - col0 / - col0 - + col1 AS col1 FROM tab1
----
-13
-4
-46

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

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

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

query I rowsort
SELECT + 24 FROM tab1 WHERE NULL > ( + 19 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7176
SELECT SUM( CAST( - col2 AS SIGNED ) ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-7176
SELECT SUM ( CAST ( - col2 AS INTEGER ) ) FROM tab2
----
-121

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

skipif mysql # not compatible
query I rowsort label-7177
SELECT DISTINCT + ( COUNT ( * ) ) * ( - 1 ) FROM tab2
----
-3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7179
SELECT MAX( col1 ) * + COUNT( * ) AS col1 FROM tab2
----
231

skipif mysql # not compatible
query I rowsort label-7179
SELECT MAX ( col1 ) * + COUNT ( * ) AS col1 FROM tab2
----
231

query I rowsort
SELECT ( col1 ) * col2 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7181
SELECT CAST( + col0 AS SIGNED ) * col0 FROM tab1
----
2601
7225
8281

skipif mysql # not compatible
query I rowsort label-7181
SELECT CAST ( + col0 AS INTEGER ) * col0 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7182
SELECT ALL MAX( + 44 ) DIV + 76 - 63 AS col1 FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-7182
SELECT ALL MAX ( + 44 ) / + 76 - 63 AS col1 FROM tab2 AS cor0
----
-63

query I rowsort
SELECT - col2 - col2 AS col1 FROM tab0 cor0 WHERE ( + 72 + - col1 ) IS NOT NULL
----
-198
-20
-94

onlyif mysql # DIV for integer division: 
query I rowsort label-7184
SELECT col0 + - 18 DIV + 86 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-7184
SELECT col0 + - 18 / + 86 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 31 * 80 FROM tab1 AS cor0 CROSS JOIN tab2
----
9 values hashing to 50a4aa55475010dee5619e03a286767d

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

skipif mysql # not compatible
query I rowsort label-7186
SELECT + 34 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2
----
43

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE + 8 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT ( - MAX( DISTINCT 80 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 70 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7188
SELECT ( - MAX ( DISTINCT 80 ) ) AS col1 FROM tab0 AS cor0 WHERE NOT 70 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL - 80 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-80
-80
-80

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

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

query I rowsort
SELECT + + col0 * ( ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 50 col2 FROM tab2 AS cor0
----
2300
3200
3750

onlyif mysql # aggregate syntax: 
query I rowsort label-7194
SELECT + - MIN( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7194
SELECT + - MIN ( DISTINCT col0 ) col0 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT - 15 * + 44 FROM tab1 AS cor0
----
-660
-660
-660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 + col1 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col0 col1 FROM tab2 WHERE NULL >= ( - col1 + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT ALL + col1 * col1 DIV - 84 AS col0 FROM tab1
----
-2
-26
0

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + col1 * col1 / - 84 AS col0 FROM tab1
----
-2
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT + COUNT( ALL col1 ) AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-7199
SELECT + COUNT ( ALL col1 ) AS col0 FROM tab1 WHERE NOT NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT DISTINCT + 71 * COUNT( * ) FROM tab0
----
213

skipif mysql # not compatible
query I rowsort label-7200
SELECT DISTINCT + 71 * COUNT ( * ) FROM tab0
----
213

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7201
SELECT DISTINCT 85 DIV - MIN( col0 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-7201
SELECT DISTINCT 85 / - MIN ( col0 ) FROM tab2
----
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT ALL + col2 DIV + + 22 AS col2 FROM tab1
----
2
3
4

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL + col2 / + + 22 AS col2 FROM tab1
----
2
3
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7204
SELECT CAST( - 23 AS SIGNED ) * - 95 FROM tab0 AS cor0
----
2185
2185
2185

skipif mysql # not compatible
query I rowsort label-7204
SELECT CAST ( - 23 AS INTEGER ) * - 95 FROM tab0 AS cor0
----
2185
2185
2185

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

query I rowsort
SELECT ALL 4 + - + col0 FROM tab1
----
-47
-81
-87

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

query I rowsort
SELECT ALL col1 * + 57 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( col2 + + ( + 52 ) )
----

query II rowsort
SELECT ALL 19 AS col2, - 38 * - - col2 + col1 AS col2 FROM tab2 AS cor0
----
19
-1443
19
-2137
19
-823

query I rowsort
SELECT + 33 * - + col1 + - col1 * - col2 AS col0 FROM tab0 AS cor0
----
-483
1134
66

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7212
SELECT ALL - 21, COUNT( * ) AS col2 FROM tab0 AS cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-7212
SELECT ALL - 21, COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-21
3

query I rowsort
SELECT DISTINCT col1 + + ( + 60 ) + - 65 FROM tab2 AS cor0
----
46
62
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7214
SELECT ALL CAST( col0 AS SIGNED ) FROM tab2 cor0 WHERE col0 BETWEEN NULL AND ( + col1 / + 90 )
----

skipif mysql # not compatible
query I rowsort label-7214
SELECT ALL CAST ( col0 AS INTEGER ) FROM tab2 cor0 WHERE col0 BETWEEN NULL AND ( + col1 / + 90 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7215
SELECT - col2 DIV - - col0 + - + col0 + col1 + + 26 FROM tab1 AS cor0
----
-12
-18
-54

skipif mysql # not compatible
query I rowsort label-7215
SELECT - col2 / - - col0 + - + col0 + col1 + + 26 FROM tab1 AS cor0
----
-12
-18
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-7216
SELECT DISTINCT - - MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7216
SELECT DISTINCT - - MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7218
SELECT DISTINCT col2 FROM tab0 WHERE ( - - 26 ) NOT BETWEEN CAST( NULL AS SIGNED ) + + col0 AND - 59
----
10
47
99

skipif mysql # not compatible
query I rowsort label-7218
SELECT DISTINCT col2 FROM tab0 WHERE ( - - 26 ) NOT BETWEEN CAST ( NULL AS INTEGER ) + + col0 AND - 59
----
10
47
99

query I rowsort
SELECT - 0 FROM tab0 WHERE NULL NOT IN ( - col0 * - - col0 - + 21 )
----

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7221
SELECT ALL + CAST( + 71 AS SIGNED ) * + CAST( + col1 AS DECIMAL ) FROM tab0 WHERE - - col2 - - + 22 + - col2 * + col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-7221
SELECT ALL + CAST ( + 71 AS INTEGER ) * + CAST ( + col1 AS REAL ) FROM tab0 WHERE - - col2 - - + 22 + - col2 * + col0 IS NULL
----

query I rowsort
SELECT ALL - 0 * - col0 - - 90 + + col1 * + col1 AS col1 FROM tab0 AS cor0
----
531
6651
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT COUNT( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE NULL = + 33
----
0

skipif mysql # not compatible
query I rowsort label-7223
SELECT COUNT ( DISTINCT + - col2 ) FROM tab0 AS cor0 WHERE NULL = + 33
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + 2 / - 30 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7225
SELECT 5 AS col1, - COUNT( * ) FROM tab1
----
5
-3

skipif mysql # not compatible
query II rowsort label-7225
SELECT 5 AS col1, - COUNT ( * ) FROM tab1
----
5
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT ALL - COUNT( * ) * 37 * + 59 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7226
SELECT ALL - COUNT ( * ) * 37 * + 59 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 98 col0 FROM tab2 AS cor0 WHERE ( + 63 ) >= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7229
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( CAST( NULL AS SIGNED ) * + col2 * - 12 ) IS NULL
----
59
68
96

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) * + col2 * - 12 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7230
SELECT DISTINCT + MAX( ALL - - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7230
SELECT DISTINCT + MAX ( ALL - - col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7233
SELECT ALL + 11 * 23 DIV + ( + 91 ) FROM tab2
----
2
2
2

skipif mysql # not compatible
query I rowsort label-7233
SELECT ALL + 11 * 23 / + ( + 91 ) FROM tab2
----
2
2
2

query I rowsort
SELECT ALL + 5 * 37 FROM tab1
----
185
185
185

onlyif mysql # DIV for integer division: 
query I rowsort label-7235
SELECT DISTINCT + col0 DIV + + col1 AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-7235
SELECT DISTINCT + col0 / + + col1 AS col0 FROM tab0
----
0
4
97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT DISTINCT 95 * - - COUNT( * ) AS col1 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-7238
SELECT DISTINCT 95 * - - COUNT ( * ) AS col1 FROM tab0
----
285

query I rowsort
SELECT DISTINCT col2 * - col1 - - col0 + - col2 FROM tab0 AS cor0
----
-101
-133
-3839

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

query II rowsort
SELECT DISTINCT - 72 AS col2, - 10 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7243
SELECT DISTINCT - + MIN( + col2 ) FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7243
SELECT DISTINCT - + MIN ( + col2 ) FROM tab1 cor0
----
-59

query I rowsort
SELECT DISTINCT - - col2 * + - col0 - + 92 FROM tab1 AS cor0
----
-4988
-5107
-6280

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

query I rowsort
SELECT ALL - col1 * + 70 * + 46 FROM tab0 cor0
----
-260820
-3220
-67620

onlyif mysql # DIV for integer division: 
query I rowsort label-7247
SELECT - 75 DIV + + 72 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7247
SELECT - 75 / + + 72 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + col1 + - - col2 AS col0 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT DISTINCT col0 + - - col0 FROM tab2 AS cor0
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7250
SELECT ALL + MAX( ALL 12 ) + - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7250
SELECT ALL + MAX ( ALL 12 ) + - COUNT ( * ) FROM tab2
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - 4 * - + col2 + + col2 col0 FROM tab1
----
354
408
576

onlyif mysql # aggregate syntax: 
query I rowsort label-7252
SELECT - COUNT( DISTINCT 74 ) FROM tab0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7252
SELECT - COUNT ( DISTINCT 74 ) FROM tab0 WHERE + col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT + ( 84 ) - + COUNT( * ) - MAX( - col0 ) AS col0 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-7253
SELECT + ( 84 ) - + COUNT ( * ) - MAX ( - col0 ) AS col0 FROM tab0
----
96

query I rowsort
SELECT - col1 * + col2 - + col1 FROM tab1
----
-1358
-300
-3243

query I rowsort
SELECT DISTINCT + col0 * + + 98 * col1 + - - col2 AS col0 FROM tab0
----
119117
179056
9605

query I rowsort
SELECT DISTINCT - 9 + - col2 AS col1 FROM tab0
----
-108
-19
-56

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + col0 + + 96 col2 FROM tab1
----
-4800
-4919
-6092

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7259
SELECT COUNT( * ) AS col0, + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7259
SELECT COUNT ( * ) AS col0, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 98 NOT IN ( - 92 + - 87 - 27 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7262
SELECT DISTINCT MAX( 26 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-7262
SELECT DISTINCT MAX ( 26 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 91 col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # aggregate syntax: 
query I rowsort label-7264
SELECT ALL + + SUM( + ( col2 ) ) FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7264
SELECT ALL + + SUM ( + ( col2 ) ) FROM tab1 cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7265
SELECT MAX( DISTINCT + 62 ) FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-7265
SELECT MAX ( DISTINCT + 62 ) FROM tab1 AS cor0
----
62

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

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

query I rowsort
SELECT 24 * + - col2 AS col0 FROM tab1
----
-1416
-1632
-2304

onlyif mysql # aggregate syntax: 
query I rowsort label-7268
SELECT DISTINCT SUM( DISTINCT ( ( - - 33 ) ) ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-7268
SELECT DISTINCT SUM ( DISTINCT ( ( - - 33 ) ) ) FROM tab0
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col0 + - + col1 + - 18 + 28 / + col2 * col1 - col1 * col2 IN ( 20 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query I rowsort
SELECT ALL + col2 + 5 FROM tab2 AS cor0
----
28
45
63

query I rowsort
SELECT DISTINCT col1 * + col0 + + col1 - - - col1 FROM tab1 AS cor0
----
425
4277
714

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

skipif mysql # not compatible
query I rowsort label-7273
SELECT - MAX ( + - 85 ) FROM tab2 AS cor0
----
85

query I rowsort
SELECT ALL - 66 + - 42 AS col0 FROM tab1
----
-108
-108
-108

query II rowsort
SELECT DISTINCT 97, 99 AS col1 FROM tab0
----
97
99

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

query II rowsort
SELECT DISTINCT + col1, + 64 * + col1 + + + ( col2 ) AS col2 FROM tab1 AS cor0
----
14
992
47
3076
5
379

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7279
SELECT + CAST( + 50 AS SIGNED ) + 69 AS col2 FROM tab0 AS cor0
----
119
119
119

skipif mysql # not compatible
query I rowsort label-7279
SELECT + CAST ( + 50 AS INTEGER ) + 69 AS col2 FROM tab0 AS cor0
----
119
119
119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7280
SELECT - - 7 + + + CAST( NULL AS SIGNED ) AS col1, + col0 + - - 27 + - col0 FROM tab2 AS cor0
----
NULL
27
NULL
27
NULL
27

skipif mysql # not compatible
query II rowsort label-7280
SELECT - - 7 + + + CAST ( NULL AS INTEGER ) AS col1, + col0 + - - 27 + - col0 FROM tab2 AS cor0
----
NULL
27
NULL
27
NULL
27

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

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

query I rowsort
SELECT ALL 72 * col1 FROM tab2 AS cor0
----
3672
4824
5544

onlyif mysql # DIV for integer division: 
query I rowsort label-7283
SELECT DISTINCT - ( - + col2 ) DIV 94 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7283
SELECT DISTINCT - ( - + col2 ) / 94 FROM tab1 cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 11 * + col2 / - 22 - col0 - 26 * + col2 * + col0 AND col1
----

query I rowsort
SELECT 78 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - col2 ) + + + col0 AS col1 FROM tab0 AS cor0
----
196
62
97

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

query III rowsort
SELECT * FROM tab0 WHERE 70 IS NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + - 73 * - col0 col0 FROM tab2
----
3335
4632
5417

query II rowsort
SELECT col1 * + 26, - col0 AS col1 FROM tab2
----
1326
-46
1742
-75
2002
-64

query I rowsort
SELECT ALL - col1 * - col2 + + col0 + - col2 - col0 * + + col0 - - + 63 + + ( + col2 ) AS col2 FROM tab1
----
-1143
-4931
-6782

query I rowsort
SELECT DISTINCT col2 * + - ( + col2 ) - col0 FROM tab1
----
-3566
-4715
-9267

query I rowsort
SELECT DISTINCT - ( + 49 ) AS col2 FROM tab0
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT - - SUM( ALL col0 ) FROM tab2 AS cor0 WHERE NOT + col2 - + col1 > + + col0
----
185

skipif mysql # not compatible
query I rowsort label-7295
SELECT - - SUM ( ALL col0 ) FROM tab2 AS cor0 WHERE NOT + col2 - + col1 > + + col0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7296
SELECT - + MAX( ALL - 86 ) * - + CAST( NULL AS SIGNED ) * 70 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7296
SELECT - + MAX ( ALL - 86 ) * - + CAST ( NULL AS INTEGER ) * 70 AS col1 FROM tab2 cor0
----
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7300
SELECT COUNT( * ), - COUNT( * ) * MAX( + - 6 ) col0 FROM tab2 AS cor0
----
3
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7300
SELECT COUNT ( * ), - COUNT ( * ) * MAX ( + - 6 ) col0 FROM tab2 AS cor0
----
3
18

query II rowsort
SELECT DISTINCT col1 AS col1, + 50 FROM tab2 AS cor0
----
51
50
67
50
77
50

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

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

query I rowsort
SELECT - col0 + - - 2 FROM tab2 AS cor0 WHERE NOT + col0 IS NULL
----
-44
-62
-73

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 / col1 + - 68 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 44 * 82 AS col1 FROM tab0
----
3608
3608
3608

query I rowsort
SELECT DISTINCT - ( - col2 ) + - ( + + ( - col2 ) ) FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL > 86 * col2 * col1
----

query I rowsort
SELECT ALL + + 91 FROM tab1 AS cor0 WHERE col1 / - - 30 * 58 / + col2 < - 12
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7312
SELECT - SUM( - + 90 ) + + - COUNT( * ) FROM tab0
----
267

skipif mysql # not compatible
query I rowsort label-7312
SELECT - SUM ( - + 90 ) + + - COUNT ( * ) FROM tab0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-7313
SELECT 80 + - ( + 42 ) DIV + 49 AS col0 FROM tab2
----
80
80
80

skipif mysql # not compatible
query I rowsort label-7313
SELECT 80 + - ( + 42 ) / + 49 AS col0 FROM tab2
----
80
80
80

query I rowsort
SELECT DISTINCT - 10 + - 10 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-20

query I rowsort
SELECT DISTINCT - ( + ( + ( 34 ) ) ) AS col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
-34

query I rowsort
SELECT 49 * + 45 FROM tab0
----
2205
2205
2205

query I rowsort
SELECT DISTINCT col2 - 83 AS col0 FROM tab0 AS cor0
----
-36
-73
16

query I rowsort
SELECT DISTINCT 46 * + 55 * col0 FROM tab2 cor0
----
116380
161920
189750

query I rowsort
SELECT - col2 + - col2 / + - ( col1 ) / col1 * col1 AS col1 FROM tab2 AS cor0 WHERE NULL = - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 < + col1
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 + + 47 IS NULL
----

query I rowsort
SELECT 0 * - ( - col0 ) * - ( 90 ) - + 32 - - 50 FROM tab2 AS cor0
----
18
18
18

onlyif mysql # aggregate syntax: 
query I rowsort label-7323
SELECT ALL + - COUNT( * ) * - 18 + + - MAX( ALL - col1 ) * COUNT( * ) col1 FROM tab0 AS cor0
----
57

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT ALL + - 22 DIV + - 68 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + - 22 / + - 68 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT ALL - 17 * + 96 + col1 AS col1 FROM tab1 AS cor0
----
-1585
-1618
-1627

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 NOT IN ( - - 83, 50 * - col2, + 42 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query I rowsort
SELECT - col2 * + + ( - - col0 ) AS col0 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7330
SELECT ALL - CAST( - + col0 AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL < 94
----

skipif mysql # not compatible
query I rowsort label-7330
SELECT ALL - CAST ( - + col0 AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL < 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - ( + col0 ) * - + col0 col2 FROM tab2
----
262144
421875
97336

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7333
SELECT MIN( ALL - col2 ) col0 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7333
SELECT MIN ( ALL - col2 ) col0 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7334
SELECT - COUNT( * ) AS col0, COUNT( * ) * COUNT( * ) * COUNT( * ) * + 66 FROM tab0
----
-3
1782

skipif mysql # not compatible
query II rowsort label-7334
SELECT - COUNT ( * ) AS col0, COUNT ( * ) * COUNT ( * ) * COUNT ( * ) * + 66 FROM tab0
----
-3
1782

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

query III rowsort
SELECT ALL + col2, 29 / + 51 * 69 * col2 - ( 60 ) / - col0 * - 38, + - col2 FROM tab0 WHERE + col0 + + 66 * - col1 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7338
SELECT ALL + + 66 * - COUNT( * ) AS col2 FROM tab2 cor0
----
-198

skipif mysql # not compatible
query I rowsort label-7338
SELECT ALL + + 66 * - COUNT ( * ) AS col2 FROM tab2 cor0
----
-198

query I rowsort
SELECT - col1 * - col2 * - col2 + + 77 AS col2 FROM tab0 cor0
----
-178852
-2023
-9724

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7343
SELECT - col2 + - CAST( NULL AS SIGNED ), 19 col0 FROM tab2 AS cor0
----
NULL
19
NULL
19
NULL
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7343
SELECT - col2 + - CAST ( NULL AS INTEGER ), 19 col0 FROM tab2 AS cor0
----
NULL
19
NULL
19
NULL
19

query I rowsort
SELECT DISTINCT - col2 + + col2 + - ( + 28 ) * + + col0 * ( - - 71 ) FROM tab1 AS cor0
----
-101388
-168980
-180908

query I rowsort
SELECT DISTINCT - col2 + + 53 FROM tab0 AS cor0
----
-46
43
6

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

query I rowsort
SELECT + ( - + 70 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 35707a5d99c98b2657c084a50ff1b073

query I rowsort
SELECT ALL 83 AS col1 FROM tab2 WHERE - col0 * col0 NOT BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7350
SELECT DISTINCT 84 * COUNT( - - col1 ), SUM( ALL 20 ) AS col0 FROM tab0
----
252
60

skipif mysql # not compatible
query II rowsort label-7350
SELECT DISTINCT 84 * COUNT ( - - col1 ), SUM ( ALL 20 ) AS col0 FROM tab0
----
252
60

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT ALL + 26 * + COUNT( * ) + 85 FROM tab0 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-7351
SELECT ALL + 26 * + COUNT ( * ) + 85 FROM tab0 AS cor0
----
163

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 34 + + 77 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7353
SELECT + ( - - 71 ) DIV - - 50 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7353
SELECT + ( - - 71 ) / - - 50 AS col0 FROM tab1 AS cor0
----
1
1
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT - - COUNT( * ) + - - 25 AS col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-7356
SELECT - - COUNT ( * ) + - - 25 AS col1 FROM tab0 AS cor0
----
28

query I rowsort
SELECT ALL + 52 - + col2 AS col1 FROM tab1 AS cor0
----
-16
-44
-7

query I rowsort
SELECT ALL 91 AS col1 FROM tab1 cor0 WHERE NOT 83 / + col2 * - ( + col1 ) IS NULL
----
91
91
91

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT + COUNT( * ) * - - ( - COUNT( * ) ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7364
SELECT + COUNT ( * ) * - - ( - COUNT ( * ) ) FROM tab0
----
-9

query I rowsort
SELECT DISTINCT + + ( - + col1 ) AS col0 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT DISTINCT + MIN( DISTINCT - 51 ) FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7366
SELECT DISTINCT + MIN ( DISTINCT - 51 ) FROM tab0 AS cor0
----
-51

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

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

query II rowsort
SELECT + col0 + col0 * - col1 * - + col2 * + - col2 + - col2 AS col1, col2 + + col1 FROM tab0
----
-182623
31
-2683967
128
-950699
100

query I rowsort
SELECT - col2 * col0 * - col2 + col0 * - col2 FROM tab1 AS cor0
----
290870
414596
465120

query II rowsort
SELECT DISTINCT - 87, + col0 FROM tab1 AS cor0
----
-87
51
-87
85
-87
91

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

query I rowsort
SELECT + col2 * 34 FROM tab1 cor0 WHERE + col1 + col0 IS NOT NULL
----
2006
2312
3264

query I rowsort
SELECT ALL - 91 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-91
-91
-91

query I rowsort
SELECT ALL 19 / - col1 AS col1 FROM tab2 AS cor0 WHERE NULL >= col1 * - ( - col0 ) * - 50 * + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT ALL - ( MAX( DISTINCT col0 ) ) + - COUNT( - + 44 ) FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7376
SELECT ALL - ( MAX ( DISTINCT col0 ) ) + - COUNT ( - + 44 ) FROM tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + col2 + + col2 + col0 - + col0 * - col1 FROM tab1
----
4504
628
957

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT 3 - - COUNT( DISTINCT + ( - 44 ) ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7382
SELECT 3 - - COUNT ( DISTINCT + ( - 44 ) ) AS col1 FROM tab2
----
4

query I rowsort
SELECT ( - 53 ) + + col0 * + + 86 AS col1 FROM tab0
----
1237
7429
8289

query I rowsort
SELECT ( + + col1 ) + + + col1 - - + col1 AS col1 FROM tab0 AS cor0
----
243
3
63

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

skipif mysql # not compatible
query I rowsort label-7385
SELECT ALL + ( MIN ( + col1 ) ) + COUNT ( * ) AS col2 FROM tab0 cor0
----
4

query I rowsort
SELECT + - 36 + + col1 + + col2 FROM tab1 AS cor0
----
28
74
79

query I rowsort
SELECT ALL + - 18 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( 30 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7389
SELECT + ( - + CAST( + col2 AS SIGNED ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) > - col2
----

skipif mysql # not compatible
query I rowsort label-7389
SELECT + ( - + CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab0 AS cor0 WHERE NOT ( + col1 ) > - col2
----

query II rowsort
SELECT 42 * col2 * - - col0 AS col0, + col2 FROM tab0 AS cor0
----
29610
47
36540
10
403326
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL < 34 * - 90
----

query I rowsort
SELECT col0 * - - 14 AS col1 FROM tab2
----
1050
644
896

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7394
SELECT - CAST( - 82 AS SIGNED ) AS col0 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-7394
SELECT - CAST ( - 82 AS INTEGER ) AS col0 FROM tab0
----
82
82
82

query I rowsort
SELECT col1 * - - 79 * + - col0 FROM tab1
----
-33575
-337883
-56406

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT ALL - COUNT( * ) * 91 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7398
SELECT ALL - COUNT ( * ) * 91 FROM tab2 AS cor0
----
-273

query I rowsort
SELECT - 99 * 90 AS col2 FROM tab0
----
-8910
-8910
-8910

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7400
SELECT DISTINCT CAST( NULL AS DECIMAL ) * + AVG ( - col1 ) * 66 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT CAST ( NULL AS REAL ) * + AVG ( - col1 ) * 66 FROM tab0
----
NULL

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

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

query I rowsort
SELECT col1 * 53 FROM tab2
----
2703
3551
4081

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7405
SELECT 52 + + + 89 + - - 59 AS col0, + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( - 3 * col2 * CAST( NULL AS SIGNED ) + + + 80 + + - 9 / + col1 * + - col1 NOT IN ( + - col1, - col1 ) )
----
200
0

skipif mysql # not compatible
query II rowsort label-7405
SELECT 52 + + + 89 + - - 59 AS col0, + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( - 3 * col2 * CAST ( NULL AS INTEGER ) + + + 80 + + - 9 / + col1 * + - col1 NOT IN ( + - col1, - col1 ) )
----
200
0

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

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

query I rowsort
SELECT + 99 AS col0 FROM tab0 AS cor0 WHERE ( NULL = NULL )
----

query I rowsort
SELECT ALL + + ( col0 ) * + - 18 FROM tab2 cor0 WHERE ( + col2 ) + + col1 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7410
SELECT + - 22 + - COUNT( - col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN col2 / col2 AND + 58
----
-22

skipif mysql # not compatible
query I rowsort label-7410
SELECT + - 22 + - COUNT ( - col1 ) AS col2 FROM tab1 WHERE NULL BETWEEN col2 / col2 AND + 58
----
-22

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

query I rowsort
SELECT 13 FROM tab2 WHERE NULL IS NULL
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-7413
SELECT COUNT( * ) AS col2 FROM tab0 WHERE + - col2 BETWEEN col2 + 75 AND + col0 / - 25
----
0

skipif mysql # not compatible
query I rowsort label-7413
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE + - col2 BETWEEN col2 + 75 AND + col0 / - 25
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7414
SELECT ALL 58 + + COUNT( * ) AS col1 FROM tab2
----
61

skipif mysql # not compatible
query I rowsort label-7414
SELECT ALL 58 + + COUNT ( * ) AS col1 FROM tab2
----
61

query I rowsort
SELECT DISTINCT + col1 * - col0 * - col0 FROM tab1
----
36125
36414
389207

onlyif mysql # DIV for integer division: 
query I rowsort label-7416
SELECT col0 DIV + 91 + - - 34 + 96 AS col2 FROM tab0 AS cor0
----
130
130
131

skipif mysql # not compatible
query I rowsort label-7416
SELECT col0 / + 91 + - - 34 + 96 AS col2 FROM tab0 AS cor0
----
130
130
131

query I rowsort
SELECT - 67 + col0 - - 77 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 72 * + 32 AND - - 97
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7418
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST( 35 AS DECIMAL ) * col1 / + col2 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7418
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - CAST ( 35 AS REAL ) * col1 / + col2 > col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( col2 ) - + - 91 AS col1 FROM tab0 AS cor0
----
101
138
190

query I rowsort
SELECT DISTINCT - - col1 + 2 AS col2 FROM tab0 AS cor0
----
23
3
83

query I rowsort
SELECT + 46 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( col2, 54, - 6, + 96 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7424
SELECT DISTINCT + 72 DIV - 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-3

skipif mysql # not compatible
query I rowsort label-7424
SELECT DISTINCT + 72 / - 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7425
SELECT DISTINCT - col0 - - CAST( NULL AS SIGNED ) - + col1 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT SUM( + 63 ) AS col1 FROM tab2 cor0
----
189

skipif mysql # not compatible
query I rowsort label-7426
SELECT SUM ( + 63 ) AS col1 FROM tab2 cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - - col2 ) col2, + col2 FROM tab1 cor0
----
59
59
68
68
96
96

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

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

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

query II rowsort
SELECT ( + col0 ) * + col1 * - - 79, + col2 FROM tab1
----
33575
59
337883
68
56406
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - 26 col1 FROM tab1
----
-1534
-1768
-2496

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + 24 col0 FROM tab2
----
1392
552
960

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7434
SELECT MAX( ALL + col1 ) * + + 8, + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
648
NULL

skipif mysql # not compatible
query II rowsort label-7434
SELECT MAX ( ALL + col1 ) * + + 8, + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
648
NULL

query II rowsort
SELECT DISTINCT col0 AS col0, col2 * + col1 FROM tab2
----
46
1173
64
3080
75
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT - SUM( DISTINCT 26 ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-7436
SELECT - SUM ( DISTINCT 26 ) FROM tab1
----
-26

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7438
SELECT - SUM( DISTINCT + + 18 ) AS col2 FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-7438
SELECT - SUM ( DISTINCT + + 18 ) AS col2 FROM tab2
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-7439
SELECT ALL - COUNT( * ) * 52 AS col0 FROM tab2 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-7439
SELECT ALL - COUNT ( * ) * 52 AS col0 FROM tab2 AS cor0
----
-156

query I rowsort
SELECT ALL 95 + 73 * - col1 * - col1 + + col1 FROM tab0
----
169
32309
479129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 96 col0 FROM tab1 WHERE ( NULL ) < + 33 * + 84 * col0 + - col2 * + col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 / + col1 * 68 - col2 = + + 76
----

query I rowsort
SELECT DISTINCT + + 55 AS col0 FROM tab1 AS cor0
----
55

query I rowsort
SELECT DISTINCT - col0 + + col1 * + 63 FROM tab0 AS cor0
----
-34
1236
5088

query I rowsort
SELECT ALL 60 * + - col1 + + + col2 AS col0 FROM tab0 AS cor0
----
-1250
-4813
39

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + SUM( - col2 ) * - 65 - + - 17 AS col0 FROM tab0
----
10157

skipif mysql # not compatible
query I rowsort label-7448
SELECT + SUM ( - col2 ) * - 65 - + - 17 AS col0 FROM tab0
----
10157

query I rowsort
SELECT ALL - col2 + - - col0 + + 52 FROM tab0
----
129
20
50

query I rowsort
SELECT - col1 * + - 90 - + ( - 78 ) AS col2 FROM tab2
----
4668
6108
7008

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

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

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

query I rowsort
SELECT ALL + col1 + col0 + - ( - col1 ) FROM tab1
----
185
79
95

query I rowsort
SELECT col0 + col1 - + col1 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT - col2 * + - 62 AS col1 FROM tab1 WHERE + + col2 BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT 66 AS col1 FROM tab2, tab1 cor0
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query II rowsort label-7457
SELECT ALL + 5 * - COUNT( * ) AS col1, - 4 * 16 FROM tab1 cor0 WHERE NULL IS NULL
----
-15
-64

skipif mysql # not compatible
query II rowsort label-7457
SELECT ALL + 5 * - COUNT ( * ) AS col1, - 4 * 16 FROM tab1 cor0 WHERE NULL IS NULL
----
-15
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7458
SELECT ALL - - SUM( ALL + col2 ) + - SUM( ALL - 86 ) FROM tab2 AS cor0
----
379

skipif mysql # not compatible
query I rowsort label-7458
SELECT ALL - - SUM ( ALL + col2 ) + - SUM ( ALL - 86 ) FROM tab2 AS cor0
----
379

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

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

query II rowsort
SELECT - 96, 58 AS col2 FROM tab1
----
-96
58
-96
58
-96
58

query I rowsort
SELECT DISTINCT - 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-3

query I rowsort
SELECT DISTINCT + - col1 * + + col2 AS col0 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT ALL col0 AS col1, - 4 / col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

query II rowsort
SELECT ALL - col1 AS col0, col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT DISTINCT + 21, 75 AS col0 FROM tab1 AS cor0
----
21
75

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + - + col0 AS col2 FROM tab0 cor0 WHERE NOT 4 * - col0 * + col1 + + col0 BETWEEN - + 54 AND + + col1
----
-77
2
32

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT - 17 * - CAST( NULL AS SIGNED ) * - - col1 * - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT - 17 * - CAST ( NULL AS INTEGER ) * - - col1 * - 8 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT 15 * - 23 * - 91 * COUNT( * ) FROM tab0
----
94185

skipif mysql # not compatible
query I rowsort label-7474
SELECT 15 * - 23 * - 91 * COUNT ( * ) FROM tab0
----
94185

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT ALL + 17 - COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 < NULL
----
17

skipif mysql # not compatible
query I rowsort label-7475
SELECT ALL + 17 - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 < NULL
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT - COUNT( * ) * + COUNT( * ) * 26 * - 56 + + + 66 AS col0 FROM tab2
----
13170

skipif mysql # not compatible
query I rowsort label-7477
SELECT - COUNT ( * ) * + COUNT ( * ) * 26 * - 56 + + + 66 AS col0 FROM tab2
----
13170

query I rowsort
SELECT col0 + - col2 FROM tab1 WHERE NOT - 59 < NULL
----

query II rowsort
SELECT + 28 + 39 AS col0, col0 AS col0 FROM tab1
----
67
51
67
85
67
91

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < + col2 * + 22 * 6
----

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

query I rowsort
SELECT DISTINCT - + 96 FROM tab2 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7483
SELECT + + SUM( - 10 ) FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7483
SELECT + + SUM ( - 10 ) FROM tab2 AS cor0
----
-30

query I rowsort
SELECT DISTINCT 92 AS col0 FROM tab1 cor0
----
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7485
SELECT 78 * col0 DIV - ( col1 ) AS col0 FROM tab2 AS cor0
----
-64
-70
-87

skipif mysql # not compatible
query I rowsort label-7485
SELECT 78 * col0 / - ( col1 ) AS col0 FROM tab2 AS cor0
----
-64
-70
-87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 49 * + - col0 NOT BETWEEN - - 90 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT + 61 * - col2 * - col2 + - 53 * col2, + col0 FROM tab1 AS cor0
----
209214
85
278460
91
557088
51

query I rowsort
SELECT DISTINCT ( col1 ) + col2 AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT + col1 + ( col0 ) + 69 - + 65 + - 88 * - + 38 AS col0 FROM tab1 AS cor0
----
3413
3438
3486

query I rowsort
SELECT - + col0 + + 76 FROM tab2 AS cor0
----
1
12
30

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

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

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

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

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

query I rowsort
SELECT DISTINCT 31 * - 45 FROM tab1 AS cor0
----
-1395

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - - col1 IS NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 AS cor0 WHERE 30 + + + 47 / + col2 >= NULL
----

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

query I rowsort
SELECT ALL + 7 * - col2 FROM tab2 WHERE NOT col1 * + + col2 BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7501
SELECT ALL SUM( - + col2 ) + + + 67 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-7501
SELECT ALL SUM ( - + col2 ) + + + 67 FROM tab2
----
-54

query I rowsort
SELECT col0 FROM tab0 WHERE + col2 <> ( col1 )
----
15
87
97

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7503
SELECT SUM ( ALL + 10 ) col2 FROM tab1
----
30

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + + ( - 72 ) > NULL
----

query I rowsort
SELECT ALL + 67 + + col1 AS col0 FROM tab0
----
148
68
88

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7510
SELECT 47 - + + COUNT( * ) - + COUNT( * ) AS col1 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-7510
SELECT 47 - + + COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT ALL - 41 * + COUNT( * ) - - COUNT( * ) FROM tab1
----
-120

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

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

query I rowsort
SELECT DISTINCT col0 * + + ( 53 ) FROM tab2 AS cor0
----
2438
3392
3975

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7517
SELECT MAX( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
NULL

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

query I rowsort
SELECT ALL col2 * + 58 AS col2 FROM tab0
----
2726
5742
580

onlyif mysql # DIV for integer division: 
query I rowsort label-7519
SELECT ALL col0 DIV - + 51 AS col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7519
SELECT ALL col0 / - + 51 AS col1 FROM tab2
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7520
SELECT DISTINCT - 29 DIV - - CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - 29 / - - CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query II rowsort label-7521
SELECT ALL + + ( + + 89 ) DIV - col1, 83 AS col2 FROM tab1 AS cor0
----
-1
83
-17
83
-6
83

skipif mysql # not compatible
query II rowsort label-7521
SELECT ALL + + ( + + 89 ) / - col1, 83 AS col2 FROM tab1 AS cor0
----
-1
83
-17
83
-6
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7522
SELECT ALL - - MIN( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7522
SELECT ALL - - MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT ALL - 30 AS col0 FROM tab0 AS cor0 WHERE col0 + - - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7524
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + col0 * - col2
----
-3

skipif mysql # not compatible
query I rowsort label-7524
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND + col0 * - col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7525
SELECT - 85 * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-255

skipif mysql # not compatible
query I rowsort label-7525
SELECT - 85 * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-255

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT DISTINCT - - COUNT( * ) DIV MAX( ALL + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT DISTINCT - - COUNT ( * ) / MAX ( ALL + col0 ) FROM tab0 AS cor0
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 / + 14 = NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7530
SELECT ALL + 98 AS col0, + col2 DIV col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
98
1
98
1
98
1

skipif mysql # not compatible
query II rowsort label-7530
SELECT ALL + 98 AS col0, + col2 / col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
98
1
98
1
98
1

query I rowsort
SELECT DISTINCT + col2 + + col2 AS col1 FROM tab2 cor0
----
116
46
80

query I rowsort
SELECT + col0 - + col1 + + 38 - + + col2 AS col2 FROM tab2
----
-12
-15
10

query I rowsort
SELECT DISTINCT + 1 + + + col2 AS col0 FROM tab2
----
24
41
59

query I rowsort
SELECT + 74 + - 44 FROM tab0
----
30
30
30

onlyif mysql # aggregate syntax: 
query I rowsort label-7535
SELECT ALL - 68 + COUNT( * ) AS col2 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-7535
SELECT ALL - 68 + COUNT ( * ) AS col2 FROM tab1
----
-65

query III rowsort
SELECT * FROM tab0 WHERE NULL <= + 13
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col2 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7538
SELECT DISTINCT + COUNT( * ) * - - SUM( - - col1 ) + - - 47 AS col2 FROM tab1
----
245

skipif mysql # not compatible
query I rowsort label-7538
SELECT DISTINCT + COUNT ( * ) * - - SUM ( - - col1 ) + - - 47 AS col2 FROM tab1
----
245

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

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + col2
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT + 22 * + COUNT( * ) FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7544
SELECT + 22 * + COUNT ( * ) FROM tab2 AS cor0
----
66

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7545
SELECT - SUM ( DISTINCT + col0 ) col0 FROM tab2 AS cor0
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-7546
SELECT DISTINCT 8 * - MIN( col0 ) * 63 FROM tab2
----
-23184

skipif mysql # not compatible
query I rowsort label-7546
SELECT DISTINCT 8 * - MIN ( col0 ) * 63 FROM tab2
----
-23184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT DISTINCT 26 * CAST( - + 39 AS SIGNED ) AS col0 FROM tab1
----
-1014

skipif mysql # not compatible
query I rowsort label-7547
SELECT DISTINCT 26 * CAST ( - + 39 AS INTEGER ) AS col0 FROM tab1
----
-1014

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7549
SELECT ALL ( 3 ) DIV - - 72 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7549
SELECT ALL ( 3 ) / - - 72 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7550
SELECT DISTINCT + COUNT( * ) DIV CAST( CAST( + - SUM( DISTINCT - ( - ( - col1 ) ) ) AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
0

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

query I rowsort
SELECT - col2 * - 2 FROM tab1 AS cor0 WHERE NOT col2 * + 70 * - ( + - col0 ) IS NULL
----
118
136
192

query I rowsort
SELECT - - 79 AS col1 FROM tab2 cor0
----
79
79
79

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7554
SELECT DISTINCT 81 + - COUNT( * ) AS col0 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-7554
SELECT DISTINCT 81 + - COUNT ( * ) AS col0 FROM tab2
----
78

query I rowsort
SELECT 99 + + 88 + - 28 * col2 * 78 FROM tab1
----
-128669
-148325
-209477

onlyif mysql # DIV for integer division: 
query I rowsort label-7556
SELECT DISTINCT + 68 DIV + 33 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7556
SELECT DISTINCT + 68 / + 33 FROM tab1
----
2

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7558
SELECT MIN( col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7558
SELECT MIN ( col2 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - 36 ) + col0 col0 FROM tab0
----
-21
51
61

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

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

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

query I rowsort
SELECT + 80 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7563
SELECT CAST( NULL AS DECIMAL ) + MAX( ALL + col1 ) * COUNT( * ) * - - 33 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7563
SELECT CAST ( NULL AS REAL ) + MAX ( ALL + col1 ) * COUNT ( * ) * - - 33 AS col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL col2, 51 FROM tab0 AS cor0
----
10
51
47
51
99
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + col0 col2 FROM tab2 AS cor0
----
141
142
97

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

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

query I rowsort
SELECT DISTINCT + + 73 AS col0 FROM tab0 AS cor0
----
73

query II rowsort
SELECT ALL + + col2 AS col0, 11 AS col2 FROM tab2 cor0 WHERE NOT - 55 + - col2 IS NULL
----
23
11
40
11
58
11

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7570
SELECT * FROM tab2 WHERE NOT + + CAST( - + 98 AS SIGNED ) IN ( + col0, ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7570
SELECT * FROM tab2 WHERE NOT + + CAST ( - + 98 AS INTEGER ) IN ( + col0, ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 26 AND ( - 12 - - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-7571
SELECT + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 26 AND ( - 12 - - col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7572
SELECT ALL CAST( - - SUM( ALL + col2 ) AS SIGNED ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-7572
SELECT ALL CAST ( - - SUM ( ALL + col2 ) AS INTEGER ) FROM tab1
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-7573
SELECT COUNT( DISTINCT - + col1 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7573
SELECT COUNT ( DISTINCT - + col1 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT ALL - MIN( ALL + - 99 ) FROM tab2 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7574
SELECT ALL - MIN ( ALL + - 99 ) FROM tab2 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7575
SELECT + COUNT( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7575
SELECT + COUNT ( * ) col2 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7576
SELECT ALL + MAX( DISTINCT - - 64 ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-7576
SELECT ALL + MAX ( DISTINCT - - 64 ) FROM tab1 AS cor0
----
64

query II rowsort
SELECT ALL + col0, + 87 FROM tab0 AS cor0
----
15
87
87
87
97
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7578
SELECT - AVG ( - + CAST( + col1 AS DECIMAL ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7578
SELECT - AVG ( - + CAST ( + col1 AS REAL ) ) AS col1 FROM tab0 AS cor0 WHERE - col1 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7579
SELECT SUM( DISTINCT col1 ) * - + 42 AS col1 FROM tab1
----
-2772

skipif mysql # not compatible
query I rowsort label-7579
SELECT SUM ( DISTINCT col1 ) * - + 42 AS col1 FROM tab1
----
-2772

query I rowsort
SELECT DISTINCT col1 + + + col1 * + col0 AS col0 FROM tab2
----
2397
5005
5092

onlyif mysql # DIV for integer division: 
query I rowsort label-7581
SELECT 76 * - - col0 DIV - col0 AS col1 FROM tab0
----
-76
-76
-76

skipif mysql # not compatible
query I rowsort label-7581
SELECT 76 * - - col0 / - col0 AS col1 FROM tab0
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7583
SELECT CAST( - COUNT( + - col2 ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-7583
SELECT CAST ( - COUNT ( + - col2 ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7584
SELECT MIN( DISTINCT col1 ) + 1 col0 FROM tab0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7584
SELECT MIN ( DISTINCT col1 ) + 1 col0 FROM tab0
----
2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7585
SELECT ALL 97 - - CAST( NULL AS DECIMAL ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL 97 - - CAST ( NULL AS REAL ) * - col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - 71 + col0 AS col0, 37 AS col0 FROM tab0 cor0
----
-56
37
16
37
26
37

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 > + col2 * col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 47 + + + col0 col1 FROM tab1 AS cor0
----
38
4
44

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + - ( - SUM( + col1 ) ) + - COUNT( * ) + - 2 AS col1 FROM tab2 AS cor0
----
190

skipif mysql # not compatible
query I rowsort label-7589
SELECT + - ( - SUM ( + col1 ) ) + - COUNT ( * ) + - 2 AS col1 FROM tab2 AS cor0
----
190

query I rowsort
SELECT DISTINCT col1 + - 25 AS col2 FROM tab1 AS cor0
----
-11
-20
22

query I rowsort
SELECT - 97 + - col2 * - col0 AS col2 FROM tab0
----
608
773
9506

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT COUNT( - + col1 ) * 37 FROM tab2
----
111

skipif mysql # not compatible
query I rowsort label-7592
SELECT COUNT ( - + col1 ) * 37 FROM tab2
----
111

query I rowsort
SELECT DISTINCT + 45 * + 57 * + 46 * + col2 - - ( - ( + col2 ) ) * - 10 * 93 * 39 * + col1 FROM tab2
----
116431200
147788640
45258480

query I rowsort
SELECT DISTINCT + 2 + 42 FROM tab2
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7595
SELECT DISTINCT - CAST( 35 AS SIGNED ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-35

skipif mysql # not compatible
query I rowsort label-7595
SELECT DISTINCT - CAST ( 35 AS INTEGER ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7596
SELECT ALL - - COUNT( * ) * MIN( ALL + - col1 ) FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-7596
SELECT ALL - - COUNT ( * ) * MIN ( ALL + - col1 ) FROM tab2 AS cor0
----
-231

query I rowsort
SELECT DISTINCT + + 39 - + col0 FROM tab0 AS cor0
----
-48
-58
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 7 col1 FROM tab1 cor0
----
7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 25 NOT BETWEEN + col2 AND - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= 32 * + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 30
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( + col1 * + col2 - - ( - + col0 ) ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7603
SELECT - - 93 * - 43 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7603
SELECT - - 93 * - 43 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 77 AS col1, col0 col1 FROM tab2
----
77
46
77
64
77
75

onlyif mysql # DIV for integer division: 
query I rowsort label-7605
SELECT ALL col0 DIV - ( - - col0 ) AS col2 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7605
SELECT ALL col0 / - ( - - col0 ) AS col2 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7606
SELECT DISTINCT COUNT( ALL col1 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7606
SELECT DISTINCT COUNT ( ALL col1 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + ( - 37 ) AS col2 FROM tab1
----
-37

query III rowsort
SELECT ALL + 34, + col2, + + col1 FROM tab0
----
9 values hashing to 0196d73c6ca17a6dc55be173cb7f55f8

onlyif mysql # aggregate syntax: 
query II rowsort label-7609
SELECT DISTINCT - 75, + COUNT( * ) AS col0 FROM tab2
----
-75
3

skipif mysql # not compatible
query II rowsort label-7609
SELECT DISTINCT - 75, + COUNT ( * ) AS col0 FROM tab2
----
-75
3

query I rowsort
SELECT DISTINCT 91 FROM tab1 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7611
SELECT ALL - + COUNT( 29 ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7611
SELECT ALL - + COUNT ( 29 ) AS col1 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7612
SELECT + + col1 * - + col0 + - + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-2369
-4968
-5083

skipif mysql # not compatible
query I rowsort label-7612
SELECT + + col1 * - + col0 + - + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-2369
-4968
-5083

query II rowsort
SELECT + 52, ( + 24 ) * col2 + + col1 * ( - col2 ) - col2 AS col1 FROM tab0 cor0
----
52
-2726
52
20
52
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT MIN( + col0 ) AS col1 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-7614
SELECT MIN ( + col0 ) AS col1 FROM tab2 AS cor0
----
46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7615
SELECT ALL - ( + - MIN( + + CAST( - col0 AS SIGNED ) ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7615
SELECT ALL - ( + - MIN ( + + CAST ( - col0 AS INTEGER ) ) ) FROM tab0 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - + col1 ) col0 FROM tab1 cor0
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 col1, col2 AS col1 FROM tab1 AS cor0
----
9
59
9
68
9
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7618
SELECT - 24 DIV + + col1 FROM tab0 AS cor0
----
-1
-24
0

skipif mysql # not compatible
query I rowsort label-7618
SELECT - 24 / + + col1 FROM tab0 AS cor0
----
-1
-24
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 + + - col2 - + 80 col1 FROM tab1 cor0
----
-166
-175
-203

query I rowsort
SELECT - col1 + + 7 AS col1 FROM tab0 AS cor0
----
-14
-74
6

query I rowsort
SELECT DISTINCT - + col0 + col2 * + + ( col0 ) + - col0 FROM tab2 AS cor0
----
2432
4200
966

query II rowsort
SELECT + col2 + - col0, - 74 AS col2 FROM tab1 AS cor0
----
-23
-74
-26
-74
45
-74

query I rowsort
SELECT + + col0 + 8 AS col1 FROM tab0 AS cor0
----
105
23
95

query I rowsort
SELECT col1 * + ( 82 ) FROM tab0
----
1722
6642
82

query II rowsort
SELECT ALL - ( + - 59 ) * + + col2, col0 AS col1 FROM tab1 AS cor0
----
3481
85
4012
91
5664
51

query I rowsort
SELECT DISTINCT - + 76 * - 75 AS col0 FROM tab0 AS cor0
----
5700

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7627
SELECT - COUNT( + 98 ) DIV + 21 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7627
SELECT - COUNT ( + 98 ) / + 21 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7628
SELECT COUNT( * ) * - COUNT( * ) + 17 AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-7628
SELECT COUNT ( * ) * - COUNT ( * ) + 17 AS col0 FROM tab1
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7629
SELECT * FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) * - col2 + col0 / col2 ) BETWEEN + col0 + + col0 AND col0
----

skipif mysql # not compatible
query III rowsort label-7629
SELECT * FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) * - col2 + col0 / col2 ) BETWEEN + col0 + + col0 AND col0
----

query I rowsort
SELECT ALL 14 + 63 AS col1 FROM tab1
----
77
77
77

query I rowsort
SELECT DISTINCT + col1 + 43 * col2 FROM tab1
----
2542
2971
4142

query I rowsort
SELECT DISTINCT 71 + 11 FROM tab0 WHERE ( + col0 / col1 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 48 + col1 ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab1 WHERE NOT col0 * col1 < ( - 4 * + col0 + col0 )
----
51
85
91

query I rowsort
SELECT 60 + col0 AS col0 FROM tab2
----
106
124
135

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT + col0 + 1 < ( col1 )
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT - 18 + - COUNT( * ) col0 FROM tab0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7637
SELECT - 18 + - COUNT ( * ) col0 FROM tab0
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT COUNT( * ) + - MIN( 54 ) AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-7638
SELECT COUNT ( * ) + - MIN ( 54 ) AS col0 FROM tab0
----
-51

query I rowsort
SELECT ALL 97 - + col2 AS col0 FROM tab0
----
-2
50
87

query I rowsort
SELECT - col2 AS col0 FROM tab1 WHERE NOT - col1 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col1 * + 27 + col2 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7642
SELECT 84 DIV - col2 AS col2 FROM tab1 WHERE NOT - ( - col2 ) IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7642
SELECT 84 / - col2 AS col2 FROM tab1 WHERE NOT - ( - col2 ) IS NULL
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7643
SELECT DISTINCT + SUM( + col1 ) + ( - 65 ) FROM tab2
----
130

skipif mysql # not compatible
query I rowsort label-7643
SELECT DISTINCT + SUM ( + col1 ) + ( - 65 ) FROM tab2
----
130

query III rowsort
SELECT ALL * FROM tab1 WHERE 28 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7645
SELECT DISTINCT + 95 DIV COUNT( * ) FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-7645
SELECT DISTINCT + 95 / COUNT ( * ) FROM tab1 AS cor0
----
31

query I rowsort
SELECT - col0 * - 47 + col0 * + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab0 WHERE NOT ( 57 ) <> NULL
----

query I rowsort
SELECT + 92 * 89 + 31 AS col2 FROM tab0
----
8219
8219
8219

query I rowsort
SELECT 78 * 29 + 10 FROM tab2
----
2272
2272
2272

query I rowsort
SELECT 74 + + ( 87 ) AS col0 FROM tab0
----
161
161
161

query I rowsort
SELECT + 45 + + col1 AS col0 FROM tab2
----
112
122
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7653
SELECT DISTINCT 46 DIV col2 + col0 AS col1 FROM tab2
----
48
65
75

skipif mysql # not compatible
query I rowsort label-7653
SELECT DISTINCT 46 / col2 + col0 AS col1 FROM tab2
----
48
65
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 39 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7655
SELECT COUNT( - col2 ) DIV 64 col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7655
SELECT COUNT ( - col2 ) / 64 col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7656
SELECT - COUNT( * ) * 58 FROM tab2 AS cor0 WHERE col2 IN ( col1 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-7656
SELECT - COUNT ( * ) * 58 FROM tab2 AS cor0 WHERE col2 IN ( col1 * col1 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 - col2 * 94 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 16 * col2 BETWEEN - col1 + - ( + col1 ) AND col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col1 * 79 AS col2 FROM tab2 AS cor0
----
-4029
-5293
-6083

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7662
SELECT ALL 83 + - CAST( + col1 AS SIGNED ) FROM tab2
----
16
32
6

skipif mysql # not compatible
query I rowsort label-7662
SELECT ALL 83 + - CAST ( + col1 AS INTEGER ) FROM tab2
----
16
32
6

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE ( - col2 ) IN ( col0 + col1 )
----

query I rowsort
SELECT - col1 * - col2 - 85 FROM tab1
----
1259
210
3111

query I rowsort
SELECT 82 * + - ( + col1 ) * 99 - ( col2 ) * + col1 AS col0 FROM tab2
----
-415191
-547792
-628166

query I rowsort
SELECT 68 - + col0 AS col1 FROM tab0
----
-19
-29
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT - COUNT( * ) + - 13 - + SUM( DISTINCT - col0 ) AS col2 FROM tab0
----
183

skipif mysql # not compatible
query I rowsort label-7667
SELECT - COUNT ( * ) + - 13 - + SUM ( DISTINCT - col0 ) AS col2 FROM tab0
----
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7668
SELECT ALL CAST( - col0 AS SIGNED ) - - col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7668
SELECT ALL CAST ( - col0 AS INTEGER ) - - col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 6 * - + col2 + col0 * - col1 AS col0 FROM tab0
----
-1497
-1887
-691

query I rowsort
SELECT DISTINCT 3 * + col0 FROM tab2
----
138
192
225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 WHERE NOT + col1 NOT IN ( + 84 * 28 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7672
SELECT - ( - 53 ) + SUM( 82 + + 39 * - col2 ) * + COUNT( * ) AS col1 FROM tab0
----
-17461

skipif mysql # not compatible
query I rowsort label-7672
SELECT - ( - 53 ) + SUM ( 82 + + 39 * - col2 ) * + COUNT ( * ) AS col1 FROM tab0
----
-17461

onlyif mysql # aggregate syntax: 
query I rowsort label-7673
SELECT DISTINCT 70 - + - SUM( DISTINCT 51 ) AS col0 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-7673
SELECT DISTINCT 70 - + - SUM ( DISTINCT 51 ) AS col0 FROM tab2
----
121

query I rowsort
SELECT + col1 + + - col1 * 2 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT DISTINCT col2 + + col0 FROM tab0 AS cor0 WHERE ( - 13 * col2 ) IS NOT NULL
----
196
62
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7676
SELECT CAST( MIN( ALL + 1 ) AS SIGNED ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7676
SELECT CAST ( MIN ( ALL + 1 ) AS INTEGER ) FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT ( - 19 ) DIV ( - 80 * + 86 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7677
SELECT ( - 19 ) / ( - 80 * + 86 ) FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT - col2 + 46 >= - 54 + 25
----
-51

query I rowsort
SELECT ALL col2 + 52 AS col1 FROM tab0 WHERE ( ( - col1 * - ( - col0 / - col0 ) + col0 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7680
SELECT + COUNT( * ) * 57 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
171

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7680
SELECT + COUNT ( * ) * 57 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
171

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * + col0 * + 58 + - col2 BETWEEN ( + col2 ) AND 64 + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL + COUNT( - 62 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL + COUNT ( - 62 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 85 * - col0 AS col0 FROM tab0 AS cor0
----
-1275
-7395
-8245

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 + - + col0 / 18 ) BETWEEN ( col1 ) AND ( - col0 - + 11 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND - col1
----

query I rowsort
SELECT 59 * + - 81 * - 76 AS col2 FROM tab0
----
363204
363204
363204

query I rowsort
SELECT ALL - 96 * - ( + - col2 ) AS col0 FROM tab0
----
-4512
-9504
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-7688
SELECT MAX( DISTINCT ( - 70 ) ) FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-7688
SELECT MAX ( DISTINCT ( - 70 ) ) FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE NULL NOT IN ( - - col2 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7689
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE NULL NOT IN ( - - col2 + col2 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 + - col2 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7691
SELECT DISTINCT + col2 * + CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL > + col2
----

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + col2 * + CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL > + col2
----

query I rowsort
SELECT - + 43 + col1 FROM tab0 AS cor0 WHERE NOT - 46 IS NULL
----
-22
-42
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7693
SELECT 65 + - CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT + col1 - - 85 IS NULL
----
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7693
SELECT 65 + - CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT + col1 - - 85 IS NULL
----
68

query I rowsort
SELECT ALL - - 61 + - 48 - + 99 * - col1 FROM tab0 AS cor0
----
112
2092
8032

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + - col0 + - 78 + col0 * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7696
SELECT + MAX( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7696
SELECT + MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

query I rowsort
SELECT + 51 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - col1 * + - col0 FROM tab0 WHERE NULL >= + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7699
SELECT ALL - CAST( + 66 AS SIGNED ) * - + COUNT( * ) + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7699
SELECT ALL - CAST ( + 66 AS INTEGER ) * - + COUNT ( * ) + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
201

query I rowsort
SELECT 4 * 33 * + ( - 92 ) + + 4 * - col1 FROM tab2 AS cor0
----
-12348
-12412
-12452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7701
SELECT + ( + col1 ) + CAST( - 66 AS SIGNED ) + 49 * - col2 AS col2 FROM tab1 AS cor0
----
-2952
-3351
-4756

skipif mysql # not compatible
query I rowsort label-7701
SELECT + ( + col1 ) + CAST ( - 66 AS INTEGER ) + 49 * - col2 AS col2 FROM tab1 AS cor0
----
-2952
-3351
-4756

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + col2 <= NULL
----

query I rowsort
SELECT ALL 2 + + + col1 + + col1 + 31 * - 46 AS col0 FROM tab2 AS cor0
----
-1270
-1290
-1322

query I rowsort
SELECT ALL col0 - + + col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
37
44
80

query I rowsort
SELECT 81 + + - 72 + + 16 AS col1 FROM tab1 AS cor0
----
25
25
25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7706
SELECT 67 + - col1 FROM tab0 WHERE + CAST( + col1 AS SIGNED ) NOT BETWEEN NULL AND + col2
----
-14
46

skipif mysql # not compatible
query I rowsort label-7706
SELECT 67 + - col1 FROM tab0 WHERE + CAST ( + col1 AS INTEGER ) NOT BETWEEN NULL AND + col2
----
-14
46

query I rowsort
SELECT ALL col2 + + + 7 AS col0 FROM tab0
----
106
17
54

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE ( NOT ( NOT ( NOT NULL > NULL ) ) )
----

query III rowsort
SELECT * FROM tab1 WHERE ( col2 ) <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7710
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) BETWEEN ( - + col2 * - 90 + - col1 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-7710
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) BETWEEN ( - + col2 * - 90 + - col1 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7711
SELECT + - 17 AS col2, ( - 89 ) DIV - ( + + 3 ) AS col1 FROM tab2 AS cor0
----
-17
29
-17
29
-17
29

skipif mysql # not compatible
query II rowsort label-7711
SELECT + - 17 AS col2, ( - 89 ) / - ( + + 3 ) AS col1 FROM tab2 AS cor0
----
-17
29
-17
29
-17
29

query I rowsort
SELECT col2 - 40 + + 80 FROM tab0 AS cor0
----
139
50
87

query I rowsort
SELECT + - col0 * - - 94 - col0 FROM tab1 AS cor0
----
-4845
-8075
-8645

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT ALL - MAX( + 75 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-7714
SELECT ALL - MAX ( + 75 ) FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT + + COUNT( + 1 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7715
SELECT + + COUNT ( + 1 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + + col2 * + 18 BETWEEN ( - col0 ) AND ( col2 / col1 )
----

query I rowsort
SELECT DISTINCT - ( 14 ) * + col2 AS col1 FROM tab0 cor0
----
-1386
-140
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-7718
SELECT DISTINCT - + COUNT( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7718
SELECT DISTINCT - + COUNT ( DISTINCT col1 ) col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - - 45 * + - 18 * ( + ( 72 ) ) FROM tab0 cor0 WHERE NOT - 64 < + - col0 - col2
----
-58320
-58320

query I rowsort
SELECT ALL + col2 * + - 96 AS col1 FROM tab0 AS cor0
----
-4512
-9504
-960

query I rowsort
SELECT ALL - col1 * + 61 FROM tab2
----
-3111
-4087
-4697

query I rowsort
SELECT DISTINCT 71 * + 74 FROM tab2
----
5254

query III rowsort
SELECT * FROM tab0 WHERE NOT 56 IN ( + 39, + col1, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7724
SELECT + col1 DIV - - col0 AS col0 FROM tab0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7724
SELECT + col1 / - - col0 AS col0 FROM tab0
----
0
0
5

query I rowsort
SELECT 21 * - - col2 AS col2 FROM tab1
----
1239
1428
2016

query I rowsort
SELECT DISTINCT + + ( - + 58 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-58

query I rowsort
SELECT - 72 + - - 15 FROM tab1 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7728
SELECT ALL 5 * COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-7728
SELECT ALL 5 * COUNT ( * ) AS col0 FROM tab2
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7729
SELECT * FROM tab0 WHERE NOT 18 * + - col0 * + CAST( col0 AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7729
SELECT * FROM tab0 WHERE NOT 18 * + - col0 * + CAST ( col0 AS INTEGER ) + + col1 IS NOT NULL
----

query II rowsort
SELECT - - col2 AS col1, 72 AS col0 FROM tab1 AS cor0
----
59
72
68
72
96
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7731
SELECT - - CAST( NULL AS SIGNED ) AS col1, - COUNT( * ) * 66 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-7731
SELECT - - CAST ( NULL AS INTEGER ) AS col1, - COUNT ( * ) * 66 AS col2 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
0

query II rowsort
SELECT DISTINCT - 46, col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-46
1
-46
21
-46
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7733
SELECT DISTINCT - - COUNT( * ) + - 97 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7733
SELECT DISTINCT - - COUNT ( * ) + - 97 FROM tab1 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col1 ) + - 5 col2 FROM tab0
----
-26
-6
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-7735
SELECT + SUM( ALL + 60 ) + SUM( DISTINCT - + col0 ) - + + 82 AS col2 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-7735
SELECT + SUM ( ALL + 60 ) + SUM ( DISTINCT - + col0 ) - + + 82 AS col2 FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-7736
SELECT COUNT( * ) col2 FROM tab2 WHERE ( - + col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7736
SELECT COUNT ( * ) col2 FROM tab2 WHERE ( - + col0 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7737
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST( NULL AS SIGNED ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-7737
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE - CAST ( NULL AS INTEGER ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT + + AVG ( col2 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 61 AS col1 FROM tab1 AS cor0
----
61

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 12 >= NULL
----

query I rowsort
SELECT DISTINCT + 18 * col2 + + - col0 + 90 + + - 22 FROM tab0 cor0
----
161
1753
899

query I rowsort
SELECT DISTINCT - col2 + + col0 - + + col0 AS col1 FROM tab2 AS cor0 WHERE - ( col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT - CAST( COUNT( * ) AS SIGNED ) - - COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7743
SELECT - CAST ( COUNT ( * ) AS INTEGER ) - - COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT DISTINCT col1 * ( col2 ) + + col2 FROM tab1
----
1440
3264
354

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7745
SELECT - col2 FROM tab0 WHERE CAST( NULL AS SIGNED ) = - col2
----

skipif mysql # not compatible
query I rowsort label-7745
SELECT - col2 FROM tab0 WHERE CAST ( NULL AS INTEGER ) = - col2
----

query I rowsort
SELECT col2 + col2 * - col1 * col0 AS col1 FROM tab2
----
-197080
-291392
-53935

onlyif mysql # aggregate syntax: 
query I rowsort label-7747
SELECT ALL - 29 - + COUNT( * ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-7747
SELECT ALL - 29 - + COUNT ( * ) AS col0 FROM tab2
----
-32

query I rowsort
SELECT col2 + - col0 + + 70 + + col1 FROM tab0
----
14
183
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * + + col1 + - 33 AS col1, 86 col1 FROM tab1
----
-1377
86
-3229
86
-328
86

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT MIN( ALL 33 ) + 13 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-7750
SELECT MIN ( ALL 33 ) + 13 FROM tab2
----
46

query I rowsort
SELECT + col2 + - - ( + col1 ) * + - col2 FROM tab2
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-7752
SELECT ALL 23 - COUNT( * ) AS col2 FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-7752
SELECT ALL 23 - COUNT ( * ) AS col2 FROM tab1
----
20

query I rowsort
SELECT ALL 62 + 97 FROM tab1
----
159
159
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT DISTINCT + ( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7754
SELECT DISTINCT + ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 11 * 22 FROM tab2 AS cor0
----
242
242
242

query I rowsort
SELECT + + 91 AS col2 FROM tab0 cor0
----
91
91
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7757
SELECT - CAST( NULL AS SIGNED ) * MAX( DISTINCT 98 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT - CAST ( NULL AS INTEGER ) * MAX ( DISTINCT 98 ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7758
SELECT col0 DIV - + ( + col1 ) FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7758
SELECT col0 / - + ( + col1 ) FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT 4 DIV - - col1 * + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7759
SELECT 4 / - - col1 * + col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7760
SELECT DISTINCT - col0, col0 + - + 79 DIV - col2 + + col2 AS col0 FROM tab2
----
-46
72
-64
105
-75
134

skipif mysql # not compatible
query II rowsort label-7760
SELECT DISTINCT - col0, col0 + - + 79 / - col2 + + col2 AS col0 FROM tab2
----
-46
72
-64
105
-75
134

query I rowsort
SELECT 53 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - 78 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) = col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 97 col0 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7764
SELECT ALL - SUM( DISTINCT 9 ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7764
SELECT ALL - SUM ( DISTINCT 9 ) AS col0 FROM tab1 AS cor0
----
-9

query II rowsort
SELECT + + col0, col0 + - - col1 FROM tab2 AS cor0
----
46
97
64
141
75
142

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT DISTINCT + COUNT( * ) * SUM( DISTINCT - 32 ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-7766
SELECT DISTINCT + COUNT ( * ) * SUM ( DISTINCT - 32 ) AS col1 FROM tab1 AS cor0
----
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - col0 * - col1 * col1 col1 FROM tab0
----
1476225
3337929
9409

onlyif mysql # DIV for integer division: 
query I rowsort label-7768
SELECT ALL col0 DIV - 72 + - - ( 24 ) AS col0 FROM tab0
----
23
23
24

skipif mysql # not compatible
query I rowsort label-7768
SELECT ALL col0 / - 72 + - - ( 24 ) AS col0 FROM tab0
----
23
23
24

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT col1 + - col0 + col1 DIV - + col0 AS col1 FROM tab2
----
-8
12
4

skipif mysql # not compatible
query I rowsort label-7769
SELECT col1 + - col0 + col1 / - + col0 AS col1 FROM tab2
----
-8
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7770
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7770
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( + col1 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col1 + + 47 FROM tab2
----
114
124
98

query I rowsort
SELECT + col0 AS col1 FROM tab1 WHERE ( NOT col2 + + - col2 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 19 ) col2 FROM tab0 AS cor0
----
19
19
19

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7774
SELECT - 37 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 37 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR col2 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col1 ) * - + ( col0 ) AS col2 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7776
SELECT + MAX( DISTINCT + 18 ) AS col2 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-7776
SELECT + MAX ( DISTINCT + 18 ) AS col2 FROM tab1 AS cor0
----
18

query I rowsort
SELECT ( col2 ) * + 3 + - + 15 + - col0 FROM tab0
----
-72
111
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7778
SELECT ALL + CAST( NULL AS SIGNED ) / - - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7778
SELECT ALL + CAST ( NULL AS INTEGER ) / - - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT ALL + 94 FROM tab0 AS cor0 WHERE NOT NULL >= ( - 96 ) * col0
----

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 cor0 WHERE NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7781
SELECT ALL + 99 * + col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7781
SELECT ALL + 99 * + col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7782
SELECT DISTINCT + + col1 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7782
SELECT DISTINCT + + col1 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7783
SELECT DISTINCT + MIN( col0 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7783
SELECT DISTINCT + MIN ( col0 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
138

query I rowsort
SELECT DISTINCT - 70 + + - 85 FROM tab1 AS cor0
----
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT DISTINCT 35 * - COUNT( * ) + - COUNT( - col1 ) FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-7785
SELECT DISTINCT 35 * - COUNT ( * ) + - COUNT ( - col1 ) FROM tab1 AS cor0
----
-108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7786
SELECT DISTINCT - + ( - CAST( NULL AS SIGNED ) ) * + + 89 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( col0 ) + - 12, - col0 / 81 * + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-7786
SELECT DISTINCT - + ( - CAST ( NULL AS INTEGER ) ) * + + 89 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + ( col0 ) + - 12, - col0 / 81 * + + CAST ( NULL AS INTEGER ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 37 + + col2 col1 FROM tab2 cor0
----
-14
21
3

query II rowsort
SELECT ALL + 1 + + col0 + + - ( + col1 ) AS col0, col2 * col1 FROM tab2
----
-12
3080
-4
1173
9
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-7789
SELECT DISTINCT - COUNT( * ) - - ( - COUNT( * ) ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-7789
SELECT DISTINCT - COUNT ( * ) - - ( - COUNT ( * ) ) FROM tab0
----
-6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + 78 AND - col1
----

query I rowsort
SELECT 31 AS col0 FROM tab0 cor0
----
31
31
31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - 78 * + col1 AND 79 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7793
SELECT DISTINCT - 29 + + + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

skipif mysql # not compatible
query I rowsort label-7793
SELECT DISTINCT - 29 + + + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 14 col0 FROM tab2
----
1078
714
938

query I rowsort
SELECT ALL + 77 * - 26 AS col0 FROM tab2 cor0 WHERE NULL IS NULL
----
-2002
-2002
-2002

query I rowsort
SELECT - - 26 * col2 * col2 FROM tab0 AS cor0
----
254826
2600
57434

onlyif mysql # aggregate syntax: 
query I rowsort label-7797
SELECT ALL COUNT( + 84 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7797
SELECT ALL COUNT ( + 84 ) AS col0 FROM tab1 cor0
----
3

query II rowsort
SELECT DISTINCT + 33, col1 AS col2 FROM tab0 AS cor0
----
33
1
33
21
33
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= + 43 * + + ( - 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7800
SELECT DISTINCT + COUNT( * ) + 88 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT + COUNT ( * ) + 88 FROM tab2
----
91

query I rowsort
SELECT DISTINCT col1 + col1 - + + 2 AS col2 FROM tab1
----
26
8
92

query I rowsort
SELECT - ( - 73 ) * col1 FROM tab1
----
1022
3431
365

query II rowsort
SELECT + col1 AS col1, + col0 AS col2 FROM tab2
----
51
46
67
75
77
64

query II rowsort
SELECT col2 * + - col2 * - col0, col0 FROM tab1 WHERE ( + 66 ) <= ( NULL )
----

query I rowsort
SELECT ALL + 45 * col1 + - 44 FROM tab2
----
2251
2971
3421

query II rowsort
SELECT ALL 11, - 19 AS col0 FROM tab1
----
11
-19
11
-19
11
-19

query II rowsort
SELECT DISTINCT col2, + 44 AS col2 FROM tab2
----
23
44
40
44
58
44

onlyif mysql # DIV for integer division: 
query II rowsort label-7808
SELECT DISTINCT + 35 * 9 * + col0 + + + col1 DIV col1 AS col1, 20 * + 1 * - col1 * col1 * + - col0 AS col0 FROM tab2
----
14491
2392920
20161
7589120
23626
6733500

skipif mysql # not compatible
query II rowsort label-7808
SELECT DISTINCT + 35 * 9 * + col0 + + + col1 / col1 AS col1, 20 * + 1 * - col1 * col1 * + - col0 AS col0 FROM tab2
----
14491
2392920
20161
7589120
23626
6733500

query I rowsort
SELECT - + 4 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT DISTINCT + COUNT( * ) - - + 93 AS col1 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-7810
SELECT DISTINCT + COUNT ( * ) - - + 93 AS col1 FROM tab2 cor0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7811
SELECT + col2 - + col0 * CAST( - col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4992
5074
6256

skipif mysql # not compatible
query I rowsort label-7811
SELECT + col2 - + col0 * CAST ( - col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7812
SELECT CAST( 1 AS SIGNED ) - + 37 + + - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-2637
-4525
-5965

skipif mysql # not compatible
query I rowsort label-7812
SELECT CAST ( 1 AS INTEGER ) - + 37 + + - col1 * + + col1 AS col0 FROM tab2 AS cor0
----
-2637
-4525
-5965

query I rowsort
SELECT col0 * - + 36 * - 49 * 38 AS col1 FROM tab2
----
3083472
4290048
5027400

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7814
SELECT DISTINCT - 40 DIV + COUNT( * ) FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-7814
SELECT DISTINCT - 40 / + COUNT ( * ) FROM tab1
----
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-7815
SELECT 94 DIV - 14 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-7815
SELECT 94 / - 14 FROM tab2
----
-6
-6
-6

query II rowsort
SELECT ALL + 68 AS col2, + 95 FROM tab0
----
68
95
68
95
68
95

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - + 54
----

query II rowsort
SELECT DISTINCT - 9, col0 FROM tab2
----
-9
46
-9
64
-9
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7819
SELECT DISTINCT - SUM( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7819
SELECT DISTINCT - SUM ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7820
SELECT - - CAST( + - 10 AS SIGNED ) AS col1 FROM tab0 WHERE NOT + - col0 <= NULL
----

skipif mysql # not compatible
query I rowsort label-7820
SELECT - - CAST ( + - 10 AS INTEGER ) AS col1 FROM tab0 WHERE NOT + - col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT - SUM( + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 31 * + 24 + ( + col1 ) * col1 * 31 / - col2 + - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7821
SELECT - SUM ( + col1 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND 31 * + 24 + ( + col1 ) * col1 * 31 / - col2 + - - col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7822
SELECT DISTINCT - + col0 DIV + 20 FROM tab1 cor0
----
-2
-4

skipif mysql # not compatible
query I rowsort label-7822
SELECT DISTINCT - + col0 / + 20 FROM tab1 cor0
----
-2
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-7823
SELECT ALL - MIN( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7823
SELECT ALL - MIN ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL <= col2 - 24
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7825
SELECT - - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7825
SELECT - - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 7 AS col0 FROM tab0 AS cor0 WHERE - ( - + 51 ) IS NULL
----

query I rowsort
SELECT col0 * - + 78 AS col0 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7828
SELECT col0 * + - 40, col0 + + CAST( col2 AS SIGNED ) AS col0 FROM tab0
----
-3480
97
-3880
196
-600
62

skipif mysql # not compatible
query II rowsort label-7828
SELECT col0 * + - 40, col0 + + CAST ( col2 AS INTEGER ) AS col0 FROM tab0
----
-3480
97
-3880
196
-600
62

query I rowsort
SELECT col0 * 28 FROM tab0 WHERE NOT + col2 IS NULL
----
2436
2716
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT DISTINCT - col1 * + CAST( + col0 AS SIGNED ) FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-7830
SELECT DISTINCT - col1 * + CAST ( + col0 AS INTEGER ) FROM tab2
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + 97 IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7832
SELECT - CAST( COUNT( DISTINCT - + col1 ) AS SIGNED ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7832
SELECT - CAST ( COUNT ( DISTINCT - + col1 ) AS INTEGER ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7833
SELECT + CAST( NULL AS SIGNED ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7833
SELECT + CAST ( NULL AS INTEGER ) * - - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + col2 + col2 + - 49 * + ( + col0 ) * + + ( - - 59 ) + - 27 + col1 col0 FROM tab1 cor0
----
-142462
-240683
-256805

query I rowsort
SELECT + col2 * + - col2 + - 37 FROM tab0 AS cor0
----
-137
-2246
-9838

query I rowsort
SELECT DISTINCT + 85 + + + col0 FROM tab1 AS cor0
----
136
170
176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7837
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE col0 < + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7837
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE col0 < + col2
----
NULL

query I rowsort
SELECT + 27 * + + col1 + + 91 AS col0 FROM tab0
----
118
2278
658

query II rowsort
SELECT DISTINCT 68, col2 FROM tab1
----
68
59
68
68
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7840
SELECT col1 / col1, CAST( + col0 AS DECIMAL ) FROM tab1 WHERE NULL < - 95
----

skipif mysql # not compatible
query II rowsort label-7840
SELECT col1 / col1, CAST ( + col0 AS REAL ) FROM tab1 WHERE NULL < - 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7841
SELECT DISTINCT + col2 / col1 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7841
SELECT DISTINCT + col2 / col1 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col2 FROM tab1
----
22
22
22

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 35 * 90 AS col1 FROM tab0 AS cor0
----
-3150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 - - col0 col2 FROM tab0 AS cor0
----
163
173
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7846
SELECT - 98 * - - COUNT( * ) * + COUNT( DISTINCT - col1 ) FROM tab1 AS cor0
----
-882

skipif mysql # not compatible
query I rowsort label-7846
SELECT - 98 * - - COUNT ( * ) * + COUNT ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-882

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7847
SELECT DISTINCT + + col1 * - col2 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7847
SELECT DISTINCT + + col1 * - col2 * + CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 88 col2, 7 FROM tab0 AS cor0
----
-88
7
-88
7
-88
7

query I rowsort
SELECT - - ( + + 30 ) AS col0 FROM tab1 AS cor0
----
30
30
30

query I rowsort
SELECT + col0 * - ( + + 24 ) FROM tab1 AS cor0
----
-1224
-2040
-2184

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 72 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 58 * + - 26 < 67
----

query I rowsort
SELECT DISTINCT - 23 * + col1 FROM tab2
----
-1173
-1541
-1771

query I rowsort
SELECT ALL col2 * - - col0 * - col0 AS col2 FROM tab2
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-7855
SELECT SUM( DISTINCT 72 ) AS col1 FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-7855
SELECT SUM ( DISTINCT 72 ) AS col1 FROM tab0
----
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7856
SELECT ALL - COUNT( * ) * COUNT( * ), COUNT( * ) / 47 + CAST( NULL AS SIGNED ) + - ( MAX( - - 6 ) ) AS col0 FROM tab1
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-7856
SELECT ALL - COUNT ( * ) * COUNT ( * ), COUNT ( * ) / 47 + CAST ( NULL AS INTEGER ) + - ( MAX ( - - 6 ) ) AS col0 FROM tab1
----
-9
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7857
SELECT COUNT( * ) * + 70, ( - 25 ) AS col2 FROM tab1
----
210
-25

skipif mysql # not compatible
query II rowsort label-7857
SELECT COUNT ( * ) * + 70, ( - 25 ) AS col2 FROM tab1
----
210
-25

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 5 BETWEEN NULL AND - 71
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col0 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL - COUNT( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL - COUNT ( ALL + - col2 ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 2 col0 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col0 BETWEEN - col2 AND - 7
----
51
14
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 76 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( + col2 ) >= - + col0
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-7865
SELECT ALL - MAX( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7865
SELECT ALL - MAX ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7866
SELECT ALL - - COUNT( * ) + - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - - COUNT ( * ) + - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + - 78 AS col1 FROM tab0
----
-125
-177
-88

query III rowsort
SELECT * FROM tab2 WHERE ( - 62 - - - col2 ) <> ( NULL )
----

query I rowsort
SELECT - 0 - - col2 * - col2 + 6 - - 6 AS col2 FROM tab0
----
-2197
-88
-9789

query I rowsort
SELECT col0 + 76 FROM tab2
----
122
140
151

query I rowsort
SELECT + 10 AS col2 FROM tab2 WHERE - 14 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT COUNT( ALL + 10 ) - 80 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7872
SELECT COUNT ( ALL + 10 ) - 80 FROM tab2
----
-77

query I rowsort
SELECT ( col1 ) * - col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
-210
-3807
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 44 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7875
SELECT - - COUNT( - ( CAST( NULL AS SIGNED ) ) ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7875
SELECT - - COUNT ( - ( CAST ( NULL AS INTEGER ) ) ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7876
SELECT - CAST( ( + COUNT( * ) ) AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7876
SELECT - CAST ( ( + COUNT ( * ) ) AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT DISTINCT 53 * + col2 FROM tab0 AS cor0
----
2491
5247
530

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT + 25 * COUNT( DISTINCT + col0 ) AS col0 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-7878
SELECT + 25 * COUNT ( DISTINCT + col0 ) AS col0 FROM tab1
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7879
SELECT ALL - col2 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7879
SELECT ALL - col2 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7880
SELECT DISTINCT 3 * - COUNT( * ) * + 69 AS col2 FROM tab2
----
-621

skipif mysql # not compatible
query I rowsort label-7880
SELECT DISTINCT 3 * - COUNT ( * ) * + 69 AS col2 FROM tab2
----
-621

query I rowsort
SELECT - ( - col0 ) * - - 96 * + col1 FROM tab0
----
116640
175392
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 * col2 col0, - col1 FROM tab0
----
-100
-21
-2209
-81
-9801
-1

query I rowsort
SELECT - 91 * - col2 AS col1 FROM tab2
----
2093
3640
5278

query I rowsort
SELECT 57 FROM tab1 WHERE NOT + 73 > - - col0
----
57
57

query II rowsort
SELECT - 38 AS col2, col2 AS col1 FROM tab0 WHERE NOT - - col1 IS NULL
----
-38
10
-38
47
-38
99

query II rowsort
SELECT DISTINCT - 24 AS col1, - 33 AS col0 FROM tab2 WHERE col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL 77 * + COUNT( * ) AS col1 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL 77 * + COUNT ( * ) AS col1 FROM tab0
----
231

query II rowsort
SELECT + col0 AS col2, 72 FROM tab1 cor0
----
51
72
85
72
91
72

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + + col2 + + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 35 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT ALL + SUM( DISTINCT col0 ) * + 38 FROM tab1
----
8626

skipif mysql # not compatible
query I rowsort label-7891
SELECT ALL + SUM ( DISTINCT col0 ) * + 38 FROM tab1
----
8626

query II rowsort
SELECT DISTINCT col0 AS col0, - ( + col2 ) FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 + + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7894
SELECT COUNT( * ) + + + 73 * + ( - MAX( ALL - 80 ) ) AS col2 FROM tab0 AS cor0
----
5843

skipif mysql # not compatible
query I rowsort label-7894
SELECT COUNT ( * ) + + + 73 * + ( - MAX ( ALL - 80 ) ) AS col2 FROM tab0 AS cor0
----
5843

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7895
SELECT + 39 + CAST( NULL AS SIGNED ) col2, 31 * - - col2 AS col1 FROM tab2 AS cor0
----
NULL
1240
NULL
1798
NULL
713

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7895
SELECT + 39 + CAST ( NULL AS INTEGER ) col2, 31 * - - col2 AS col1 FROM tab2 AS cor0
----
NULL
1240
NULL
1798
NULL
713

query I rowsort
SELECT + 68 - - 13 FROM tab0 AS cor0 WHERE NULL >= col0 - col0 / + + col2 * - + col1 * - 56 * + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7897
SELECT ALL + 7 DIV - - 39 + + 18 AS col0 FROM tab2 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL + 7 / - - 39 + + 18 AS col0 FROM tab2 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 17 * + 16, - 30 / ( + + 48 ) col1 FROM tab0 WHERE col0 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col1, + 73 + + col2 AS col1 FROM tab2 WHERE NULL NOT BETWEEN col2 AND NULL
----

query II rowsort
SELECT ALL 71, - ( col2 ) AS col0 FROM tab1
----
71
-59
71
-68
71
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7902
SELECT ALL - CAST( + 52 AS SIGNED ) FROM tab1 AS cor0
----
-52
-52
-52

skipif mysql # not compatible
query I rowsort label-7902
SELECT ALL - CAST ( + 52 AS INTEGER ) FROM tab1 AS cor0
----
-52
-52
-52

query I rowsort
SELECT + col1 - + col1 * col0 + + + 32 + col0 FROM tab1 AS cor0
----
-303
-4107
-617

query I rowsort
SELECT + - col1 - + + col0 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7905
SELECT ALL - - CAST( NULL AS DECIMAL ) * - CAST( - - col2 AS SIGNED ) * + ( + + 90 ) + - 21 + - - ( + col0 ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7905
SELECT ALL - - CAST ( NULL AS REAL ) * - CAST ( - - col2 AS INTEGER ) * + ( + + 90 ) + - 21 + - - ( + col0 ) + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 65 * col1 * + 33 FROM tab1
----
100815
10725
30030

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 WHERE + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7908
SELECT 26 + MAX( DISTINCT - 21 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-7908
SELECT 26 + MAX ( DISTINCT - 21 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
5

query I rowsort
SELECT DISTINCT - ( - ( - - 11 ) ) AS col2 FROM tab2 AS cor0
----
11

query I rowsort
SELECT DISTINCT + ( + 42 ) + + - col1 + - col1 / + col1 + col0 FROM tab2 AS cor0 WHERE NOT + 80 + 72 * - 52 + - col2 NOT IN ( - - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 17 * 26, + col0 col2 FROM tab2 AS cor0
----
-442
46
-442
64
-442
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7912
SELECT + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7912
SELECT + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
1

query II rowsort
SELECT ALL + col0, 89 + - - col2 FROM tab0
----
15
136
87
99
97
188

query I rowsort
SELECT 61 FROM tab0 AS cor0 WHERE NOT NULL <= NULL
----

query II rowsort
SELECT + - 67, + col0 AS col2 FROM tab0 AS cor0
----
-67
15
-67
87
-67
97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 > + + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 67 * - 49 - 41 + - 48 IS NULL
----

query I rowsort
SELECT DISTINCT + 52 * + + ( 11 ) + + col1 AS col1 FROM tab0 AS cor0
----
573
593
653

query I rowsort
SELECT - col0 * - - col2 FROM tab1
----
-4896
-5015
-6188

query II rowsort
SELECT ALL col1 AS col1, + 99 FROM tab1 AS cor0
----
14
99
47
99
5
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 16
----

query I rowsort
SELECT ALL - col2 * - col1 + + - col2 AS col2 FROM tab2 AS cor0
----
1150
3040
3828

onlyif mysql # aggregate syntax: 
query I rowsort label-7923
SELECT + - MAX( - 84 ) * - 49 AS col2 FROM tab2 AS cor0
----
-4116

skipif mysql # not compatible
query I rowsort label-7923
SELECT + - MAX ( - 84 ) * - 49 AS col2 FROM tab2 AS cor0
----
-4116

query I rowsort
SELECT ALL + col1 + + col2 * + ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT col1 - - 23 FROM tab1 AS cor0
----
28
37
70

onlyif mysql # DIV for integer division: 
query II rowsort label-7926
SELECT ALL 60 * - ( + col1 ) AS col1, + col2 DIV - col0 FROM tab1
----
-2820
0
-300
0
-840
-1

skipif mysql # not compatible
query II rowsort label-7926
SELECT ALL 60 * - ( + col1 ) AS col1, + col2 / - col0 FROM tab1
----
-2820
0
-300
0
-840
-1

query I rowsort
SELECT ALL 78 + - 11 AS col2 FROM tab0
----
67
67
67

query II rowsort
SELECT ALL - col1 - + 25 AS col1, - col1 AS col2 FROM tab2
----
-102
-77
-76
-51
-92
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-7929
SELECT col0 DIV + - col1 + col0 * - col2 * col2 AS col2 FROM tab2
----
-102400
-24334
-252301

skipif mysql # not compatible
query I rowsort label-7929
SELECT col0 / + - col1 + col0 * - col2 * col2 AS col2 FROM tab2
----
-102400
-24334
-252301

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 * - ( - - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE - col0 + 94 - col1 * - col0 IS NULL
----

query I rowsort
SELECT ALL - + 84 AS col2 FROM tab2 WHERE + 32 = + + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7933
SELECT ALL - + 24 - + + 79 + + 4 + - - COUNT( * ) * SUM( 90 ) FROM tab1 cor0
----
711

skipif mysql # not compatible
query I rowsort label-7933
SELECT ALL - + 24 - + + 79 + + 4 + - - COUNT ( * ) * SUM ( 90 ) FROM tab1 cor0
----
711

onlyif mysql # aggregate syntax: 
query I rowsort label-7934
SELECT + SUM( col0 ) AS col2 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-7934
SELECT + SUM ( col0 ) AS col2 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT + COUNT( * ) * + 40 + + SUM( ALL + 81 ) col1 FROM tab2 AS cor0
----
363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7935
SELECT + COUNT ( * ) * + 40 + + SUM ( ALL + 81 ) col1 FROM tab2 AS cor0
----
363

query I rowsort
SELECT - 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query I rowsort
SELECT DISTINCT - 63 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7938
SELECT ALL - CAST( + col1 AS SIGNED ) AS col1 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-7938
SELECT ALL - CAST ( + col1 AS INTEGER ) AS col1 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NOT + col2 IS NULL ) )
----

query I rowsort
SELECT 35 * 74 * - ( - - col0 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7941
SELECT - CAST( NULL AS SIGNED ), + col0 - + + col2 AS col0 FROM tab2 AS cor0
----
NULL
17
NULL
23
NULL
24

skipif mysql # not compatible
query II rowsort label-7941
SELECT - CAST ( NULL AS INTEGER ), + col0 - + + col2 AS col0 FROM tab2 AS cor0
----
NULL
17
NULL
23
NULL
24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7942
SELECT ALL + + 44 / + - ( + - col0 ) * + - CAST( NULL AS SIGNED ), col1 AS col0 FROM tab2 AS cor0 WHERE 63 / - col1 + + 68 + + + 33 IS NULL
----

skipif mysql # not compatible
query II rowsort label-7942
SELECT ALL + + 44 / + - ( + - col0 ) * + - CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab2 AS cor0 WHERE 63 / - col1 + + 68 + + + 33 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 + - col2 * - + 87 * - - 62 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7944
SELECT + col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7944
SELECT + col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT 82 AS col0, col0 FROM tab2 cor0
----
82
46
82
64
82
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col1 - + col2 col1, + col2 FROM tab2 AS cor0
----
1150
23
3040
40
3828
58

query II rowsort
SELECT ALL col1 AS col2, 22 + + col0 FROM tab1 AS cor0
----
14
73
47
113
5
107

query II rowsort
SELECT DISTINCT + + col2, col2 AS col1 FROM tab0 AS cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7949
SELECT + 21 * - col0 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7949
SELECT + 21 * - col0 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * 43 FROM tab2
----
2193
2881
3311

query I rowsort
SELECT 24 + + 50 AS col1 FROM tab0
----
74
74
74

onlyif mysql # aggregate syntax: 
query I rowsort label-7952
SELECT DISTINCT + COUNT( ALL col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7952
SELECT DISTINCT + COUNT ( ALL col1 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT COUNT( + - 85 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7953
SELECT COUNT ( + - 85 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 / + 15 IS NULL
----

query I rowsort
SELECT ALL - 46 + + + ( + col1 ) AS col0 FROM tab1 AS cor0
----
-32
-41
1

query I rowsort
SELECT - + ( col0 ) FROM tab0 cor0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + + col1 + - 23 * + col0 / + col0 >= + + ( + - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 > + + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT + + col2 + 65 + + col0 DIV - col1 + - col2 * - col1 * + col2 * col2 * - col1 FROM tab0 AS cor0
----
-440929
-681182591
-970232

skipif mysql # not compatible
query I rowsort label-7959
SELECT + + col2 + 65 + + col0 / - col1 + - col2 * - col1 * + col2 * col2 * - col1 FROM tab0 AS cor0
----
-440929
-681182591
-970232

query I rowsort
SELECT DISTINCT - col2 * + - col2 - - - col0 FROM tab1 AS cor0
----
3396
4533
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT - - 55 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7961
SELECT - - 55 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7962
SELECT ALL - - CAST( - 99 AS SIGNED ) * - 69 * + 39 FROM tab1 AS cor0
----
266409
266409
266409

skipif mysql # not compatible
query I rowsort label-7962
SELECT ALL - - CAST ( - 99 AS INTEGER ) * - 69 * + 39 FROM tab1 AS cor0
----
266409
266409
266409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT + CAST( NULL AS SIGNED ) + - col1 + - - 58 / - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7963
SELECT + CAST ( NULL AS INTEGER ) + - col1 + - - 58 / - + col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + - 2 NOT BETWEEN NULL AND - + col0 + - - CAST( NULL AS SIGNED ) * - col1
----

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + - 2 NOT BETWEEN NULL AND - + col0 + - - CAST ( NULL AS INTEGER ) * - col1
----

query I rowsort
SELECT ALL col0 + + 56 FROM tab2 AS cor0
----
102
120
131

query I rowsort
SELECT - - col0 * - col0 * + col2 FROM tab2 AS cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query I rowsort label-7967
SELECT ALL + + 56 + + COUNT( * ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7967
SELECT ALL + + 56 + + COUNT ( * ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7968
SELECT DISTINCT ( - 71 ) * + - SUM( - - 91 ) FROM tab0, tab2 AS cor0
----
58149

skipif mysql # not compatible
query I rowsort label-7968
SELECT DISTINCT ( - 71 ) * + - SUM ( - - 91 ) FROM tab0, tab2 AS cor0
----
58149

query I rowsort
SELECT ALL - 92 + col0 FROM tab0
----
-5
-77
5

onlyif mysql # DIV for integer division: 
query I rowsort label-7970
SELECT ALL + 51 * - col0 * col0 * col2 - col0 DIV + 71 + 29 FROM tab2
----
-16638722
-2482039
-8355811

skipif mysql # not compatible
query I rowsort label-7970
SELECT ALL + 51 * - col0 * col0 * col2 - col0 / + 71 + 29 FROM tab2
----
-16638722
-2482039
-8355811

query I rowsort
SELECT col0 - 56 FROM tab0
----
-41
31
41

query I rowsort
SELECT + + 35 - - - 48 * - + col1 FROM tab0 AS cor0
----
1043
3923
83

query II rowsort
SELECT + - col1, col1 AS col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query II rowsort
SELECT ALL - + 79, - 48 AS col1 FROM tab1 AS cor0
----
-79
-48
-79
-48
-79
-48

query I rowsort
SELECT col0 * - + col0 + col2 AS col0 FROM tab0 cor0
----
-178
-7559
-9310

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 60 + col2 + + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT COUNT( * ) * - ( - COUNT( ALL + - 67 ) ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7977
SELECT COUNT ( * ) * - ( - COUNT ( ALL + - 67 ) ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7978
SELECT DISTINCT + - MAX( ALL + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-7978
SELECT DISTINCT + - MAX ( ALL + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 96 * - + 69 FROM tab0 cor0
----
-6624

query I rowsort
SELECT DISTINCT + + 47 * + + col2 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT ( - ( - + col2 ) ), 80 AS col1 FROM tab0 AS cor0
----
10
80
47
80
99
80

query I rowsort
SELECT ALL - 94 * col0 + - col1 AS col1 FROM tab0
----
-1491
-8199
-9119

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7983
SELECT DISTINCT col2 * - 71 + + CAST( NULL AS SIGNED ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-7983
SELECT DISTINCT col2 * - 71 + + CAST ( NULL AS INTEGER ) AS col2, col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT col2 * 12 FROM tab0
----
1188
120
564

query I rowsort
SELECT 1 * - - ( 31 ) AS col0 FROM tab2
----
31
31
31

query I rowsort
SELECT ( - col1 ) * + + ( col2 ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT col0 * - - col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7988
SELECT CAST( NULL AS DECIMAL ) * + col0 + + col0 - - col1 / + col0 * - col1 + col0 * - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7988
SELECT CAST ( NULL AS REAL ) * + col0 + + col0 - - col1 / + col0 * - col1 + col0 * - col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > 12 + ( 55 ) + + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7990
SELECT - CAST( 49 AS SIGNED ) AS col1, ( col1 ) FROM tab0
----
-49
1
-49
21
-49
81

skipif mysql # not compatible
query II rowsort label-7990
SELECT - CAST ( 49 AS INTEGER ) AS col1, ( col1 ) FROM tab0
----
-49
1
-49
21
-49
81

query II rowsort
SELECT DISTINCT col2 * col0 AS col0, + col0 * + col1 * - ( - + col0 ) FROM tab0
----
705
18225
870
158949
9603
9409

query I rowsort
SELECT + 85 * + 28 * - col2 AS col0 FROM tab2 AS cor0
----
-138040
-54740
-95200

query I rowsort
SELECT + - col1 AS col1 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 * 56 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-7995
SELECT - COUNT( * ) - - 74 AS col1, + COUNT( * ) * 90 FROM tab2 cor0
----
71
270

skipif mysql # not compatible
query II rowsort label-7995
SELECT - COUNT ( * ) - - 74 AS col1, + COUNT ( * ) * 90 FROM tab2 cor0
----
71
270

query I rowsort
SELECT col0 + + ( - - col2 ) - + col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7997
SELECT COUNT( * ) + - MIN( + col2 ) + CAST( 29 AS SIGNED ) AS col0, COUNT( + col2 ) FROM tab1
----
-27
3

skipif mysql # not compatible
query II rowsort label-7997
SELECT COUNT ( * ) + - MIN ( + col2 ) + CAST ( 29 AS INTEGER ) AS col0, COUNT ( + col2 ) FROM tab1
----
-27
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7998
SELECT col0 * 84 DIV + col1 + col0 AS col0 FROM tab2
----
121
133
169

skipif mysql # not compatible
query I rowsort label-7998
SELECT col0 * 84 / + col1 + col0 AS col0 FROM tab2
----
121
133
169

onlyif mysql # aggregate syntax: 
query I rowsort label-7999
SELECT COUNT( * ) + + 20 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-7999
SELECT COUNT ( * ) + + 20 FROM tab0
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-8000
SELECT col2 DIV - - 9 FROM tab2
----
2
4
6

skipif mysql # not compatible
query I rowsort label-8000
SELECT col2 / - - 9 FROM tab2
----
2
4
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < + col2 * - + 47 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8002
SELECT ALL COUNT( DISTINCT - - col0 ) * - 90 * - 24 AS col1 FROM tab2
----
6480

skipif mysql # not compatible
query I rowsort label-8002
SELECT ALL COUNT ( DISTINCT - - col0 ) * - 90 * - 24 AS col1 FROM tab2
----
6480

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 AS col1 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8004
SELECT ALL + - 64 * COUNT( * ) FROM tab1 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-8004
SELECT ALL + - 64 * COUNT ( * ) FROM tab1 AS cor0
----
-192

query I rowsort
SELECT - - 51 * 62 FROM tab2 AS cor0
----
3162
3162
3162

onlyif mysql # aggregate syntax: 
query I rowsort label-8006
SELECT - ( - COUNT( * ) ) AS col0 FROM tab0 WHERE NOT + col2 = + 43
----
3

skipif mysql # not compatible
query I rowsort label-8006
SELECT - ( - COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT + col2 = + 43
----
3

query I rowsort
SELECT ALL + 47 * col1 AS col0 FROM tab2
----
2397
3149
3619

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8008
SELECT DISTINCT + 54 DIV + COUNT( * ) FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-8008
SELECT DISTINCT + 54 / + COUNT ( * ) FROM tab1
----
18

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8010
SELECT ALL - 21 DIV - 24 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8010
SELECT ALL - 21 / - 24 FROM tab0
----
0
0
0

query II rowsort
SELECT col1, + col1 * col1 * + col2 AS col0 FROM tab1 AS cor0
----
14
18816
47
150212
5
1475

onlyif mysql # aggregate syntax: 
query I rowsort label-8012
SELECT - - MIN( ALL col0 ) col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8012
SELECT - - MIN ( ALL col0 ) col2 FROM tab1 AS cor0
----
51

query II rowsort
SELECT + - col1, + 88 + - 20 AS col1 FROM tab0 AS cor0
----
-1
68
-21
68
-81
68

query II rowsort
SELECT DISTINCT + 32, + col0 AS col0 FROM tab2 AS cor0 WHERE col1 * 58 IS NOT NULL
----
32
46
32
64
32
75

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT - - 30 DIV + col1 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8015
SELECT - - 30 / + col1 * - col2 + + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8016
SELECT + col0 + - - CAST( NULL AS SIGNED ) - - col2 + + 2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8016
SELECT + col0 + - - CAST ( NULL AS INTEGER ) - - col2 + + 2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8017
SELECT COUNT( + col0 ) + - 48 + - 0 FROM tab2
----
-45

skipif mysql # not compatible
query I rowsort label-8017
SELECT COUNT ( + col0 ) + - 48 + - 0 FROM tab2
----
-45

query I rowsort
SELECT DISTINCT + 98 + - - col1 + col1 AS col1 FROM tab2
----
200
232
252

onlyif mysql # DIV for integer division: 
query I rowsort label-8019
SELECT ALL - col0 DIV 29 FROM tab1
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-8019
SELECT ALL - col0 / 29 FROM tab1
----
-1
-2
-3

query I rowsort
SELECT - col0 * - col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
1215
1827
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8021
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8021
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8022
SELECT ALL - COUNT( * ) * - 7 + + - 15 AS col2 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8022
SELECT ALL - COUNT ( * ) * - 7 + + - 15 AS col2 FROM tab1
----
6

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8023
SELECT ALL + ( - 6 ) * MIN( DISTINCT + - 0 ) DIV - 83 + + 16 DIV - COUNT( * ) + + + COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-8023
SELECT ALL + ( - 6 ) * MIN ( DISTINCT + - 0 ) / - 83 + + 16 / - COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
-2

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NULL BETWEEN - 14 AND + + 76
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8025
SELECT * FROM tab1 WHERE NULL IN ( CAST( NULL AS SIGNED ) - col0 )
----

skipif mysql # not compatible
query III rowsort label-8025
SELECT * FROM tab1 WHERE NULL IN ( CAST ( NULL AS INTEGER ) - col0 )
----

query II rowsort
SELECT DISTINCT - - 88, col1 * col0 AS col0 FROM tab0 AS cor0
----
88
1215
88
1827
88
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8027
SELECT ALL - + CAST( + ( col0 ) AS SIGNED ) FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8027
SELECT ALL - + CAST ( + ( col0 ) AS INTEGER ) FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8028
SELECT ALL - - 27 / + + 26 * + + CAST( NULL AS SIGNED ) * COUNT( * ) - COUNT( * ) / + COUNT( * ) * + ( + SUM( DISTINCT - - 39 ) ) FROM tab0 cor0 WHERE NOT + 53 * - col1 = + col2 * + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - - 27 / + + 26 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) - COUNT ( * ) / + COUNT ( * ) * + ( + SUM ( DISTINCT - - 39 ) ) FROM tab0 cor0 WHERE NOT + 53 * - col1 = + col2 * + col2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8029
SELECT + 64 * COUNT( - - col2 ) AS col0, COUNT( * ) AS col1 FROM tab2 AS cor0
----
192
3

skipif mysql # not compatible
query II rowsort label-8029
SELECT + 64 * COUNT ( - - col2 ) AS col0, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
192
3

query II rowsort
SELECT + col0 AS col2, - ( 13 ) * + col1 AS col0 FROM tab1 AS cor0
----
51
-182
85
-65
91
-611

query I rowsort
SELECT ALL + 8 + + 18 AS col2 FROM tab1 cor0
----
26
26
26

query I rowsort
SELECT DISTINCT + + ( - 31 ) AS col0 FROM tab1 cor0
----
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 53 * - 80 col1 FROM tab0 AS cor0
----
-4240
-4240
-4240

onlyif mysql # aggregate syntax: 
query I rowsort label-8034
SELECT ALL COUNT( DISTINCT + + 42 ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8034
SELECT ALL COUNT ( DISTINCT + + 42 ) AS col0 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab1 WHERE + 63 * col1 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8036
SELECT + COUNT( * ) DIV - 9 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8036
SELECT + COUNT ( * ) / - 9 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8037
SELECT - MAX( 91 ), COUNT( * ) AS col1 FROM tab0
----
-91
3

skipif mysql # not compatible
query II rowsort label-8037
SELECT - MAX ( 91 ), COUNT ( * ) AS col1 FROM tab0
----
-91
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT + 89 * - COUNT( * ) FROM tab1 cor0
----
-267

skipif mysql # not compatible
query I rowsort label-8038
SELECT + 89 * - COUNT ( * ) FROM tab1 cor0
----
-267

onlyif mysql # DIV for integer division: 
query I rowsort label-8039
SELECT col1 DIV - 28 FROM tab0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-8039
SELECT col1 / - 28 FROM tab0
----
-2
0
0

query II rowsort
SELECT ALL 50, ( 14 ) * col2 AS col2 FROM tab1
----
50
1344
50
826
50
952

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT - COUNT( 74 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8041
SELECT - COUNT ( 74 ) AS col0 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 62 col1 FROM tab0 cor0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT SUM( ALL - 6 ) AS col2 FROM tab0 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-8043
SELECT SUM ( ALL - 6 ) AS col2 FROM tab0 AS cor0
----
-18

query I rowsort
SELECT ALL - + col1 + - col0 * - col2 FROM tab0 AS cor0
----
624
849
9602

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 <= + col1 / + - col2 + - 15
----

query I rowsort
SELECT - col2 * + - 58 AS col1 FROM tab2 AS cor0
----
1334
2320
3364

query I rowsort
SELECT ALL - 97 + + col1 FROM tab2
----
-20
-30
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8048
SELECT DISTINCT - COUNT( DISTINCT + - col1 ) col2, + 77 DIV + 21 FROM tab1
----
-3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8048
SELECT DISTINCT - COUNT ( DISTINCT + - col1 ) col2, + 77 / + 21 FROM tab1
----
-3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, - col2 col0 FROM tab2
----
46
-23
64
-40
75
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT - MAX( - col2 ) * - - 15 AS col1 FROM tab0
----
150

skipif mysql # not compatible
query I rowsort label-8050
SELECT - MAX ( - col2 ) * - - 15 AS col1 FROM tab0
----
150

query I rowsort
SELECT ALL 32 * + col0 + - + 9 + col0 AS col0 FROM tab1
----
1674
2796
2994

onlyif mysql # aggregate syntax: 
query I rowsort label-8052
SELECT + 34 + SUM( + col1 ) col2 FROM tab1
----
100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8052
SELECT + 34 + SUM ( + col1 ) col2 FROM tab1
----
100

query I rowsort
SELECT - col0 + - + col0 AS col2 FROM tab0
----
-174
-194
-30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8054
SELECT ALL - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8054
SELECT ALL - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8055
SELECT - + COUNT( * ) + + + 98 + 35 DIV 3 * 22 FROM tab1 AS cor0
----
337

skipif mysql # not compatible
query I rowsort label-8055
SELECT - + COUNT ( * ) + + + 98 + 35 / 3 * 22 FROM tab1 AS cor0
----
337

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 AS cor0 WHERE ( NULL = NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 * + col1 * - - col2 col0 FROM tab2 AS cor0
----
10557
27720
34974

query I rowsort
SELECT - col2 * + col0 + col0 FROM tab1 AS cor0 WHERE ( ( NULL IS NULL ) )
----
-4845
-4930
-6097

query I rowsort
SELECT DISTINCT - 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8060
SELECT DISTINCT + 91 + - COUNT( * ) AS col1, + 12 + SUM( DISTINCT - 85 ) FROM tab1
----
88
-73

skipif mysql # not compatible
query II rowsort label-8060
SELECT DISTINCT + 91 + - COUNT ( * ) AS col1, + 12 + SUM ( DISTINCT - 85 ) FROM tab1
----
88
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT ALL - + COUNT( * ) - - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8061
SELECT ALL - + COUNT ( * ) - - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8062
SELECT - - 25 * - + ( + MIN( - col0 ) ) AS col0 FROM tab1 cor0
----
2275

skipif mysql # not compatible
query I rowsort label-8062
SELECT - - 25 * - + ( + MIN ( - col0 ) ) AS col0 FROM tab1 cor0
----
2275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 70 - col0 * - col0 * col2 * - - 30 AND - - 97
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 * + col2 - + + col1 * - 85 * + col1 + - col2 = NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( NULL ) <> NULL )
----

query I rowsort
SELECT ( 6 ) * - col0 * - col1 FROM tab2
----
14076
29568
30150

onlyif mysql # aggregate syntax: 
query I rowsort label-8067
SELECT - MIN( DISTINCT col2 ) AS col2 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8067
SELECT - MIN ( DISTINCT col2 ) AS col2 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-8068
SELECT - 5 DIV + col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8068
SELECT - 5 / + col1 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8070
SELECT + ( ( CAST( col0 AS SIGNED ) ) ) + 64 * col2 AS col0 FROM tab0
----
3023
6433
727

skipif mysql # not compatible
query I rowsort label-8070
SELECT + ( ( CAST ( col0 AS INTEGER ) ) ) + 64 * col2 AS col0 FROM tab0
----
3023
6433
727

query I rowsort
SELECT ALL 17 + + 48 FROM tab2
----
65
65
65

query I rowsort
SELECT DISTINCT 21 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8073
SELECT COUNT( * ) * 38 + CAST( + 92 AS SIGNED ) col2 FROM tab1
----
206

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8073
SELECT COUNT ( * ) * 38 + CAST ( + 92 AS INTEGER ) col2 FROM tab1
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-8074
SELECT - COUNT( DISTINCT 60 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8074
SELECT - COUNT ( DISTINCT 60 ) FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - col0 FROM tab0 WHERE NOT + 10 + + ( + 63 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8076
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8076
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT ( col2 ) IS NULL
----
3

query I rowsort
SELECT col1 * + 41 - 88 FROM tab1 WHERE NULL IS NULL
----
117
1839
486

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8078
SELECT - 70 + + CAST( NULL AS SIGNED ) * + 27 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8078
SELECT - 70 + + CAST ( NULL AS INTEGER ) * + 27 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 - - col0 AS col0 FROM tab1 WHERE NULL < ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( - col1 ) AND col1 * - 50 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT ALL 16 + MAX( col2 + 39 ) * 91 FROM tab0
----
12574

skipif mysql # not compatible
query I rowsort label-8081
SELECT ALL 16 + MAX ( col2 + 39 ) * 91 FROM tab0
----
12574

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) NOT BETWEEN + 76 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT 82 * SUM( ALL ( + ( 70 ) ) ) AS col1 FROM tab0
----
17220

skipif mysql # not compatible
query I rowsort label-8083
SELECT 82 * SUM ( ALL ( + ( 70 ) ) ) AS col1 FROM tab0
----
17220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8084
SELECT 19 * CAST( - MAX( DISTINCT + col0 ) AS SIGNED ) AS col2 FROM tab1
----
-1729

skipif mysql # not compatible
query I rowsort label-8084
SELECT 19 * CAST ( - MAX ( DISTINCT + col0 ) AS INTEGER ) AS col2 FROM tab1
----
-1729

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8085
SELECT DISTINCT * FROM tab1 WHERE + 86 * - CAST( 93 AS SIGNED ) NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8085
SELECT DISTINCT * FROM tab1 WHERE + 86 * - CAST ( 93 AS INTEGER ) NOT IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * col2 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - col2 * 17 + - 52 FROM tab1
----
-1055
-1208
-1684

query I rowsort
SELECT ( col2 ) * - 39 FROM tab1
----
-2301
-2652
-3744

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8089
SELECT CAST( NULL AS DECIMAL ) * + COUNT( ALL 94 / col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8089
SELECT CAST ( NULL AS REAL ) * + COUNT ( ALL 94 / col1 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 73 * col0 AS col0 FROM tab0
----
1095
6351
7081

query I rowsort
SELECT DISTINCT + col0 + col0 AS col1 FROM tab1 WHERE col2 = col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8092
SELECT DISTINCT - 57 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8092
SELECT DISTINCT - 57 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8093
SELECT ALL CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT MAX( ALL - 77 ) FROM tab1
----
-77

skipif mysql # not compatible
query I rowsort label-8094
SELECT MAX ( ALL - 77 ) FROM tab1
----
-77

query I rowsort
SELECT - ( + 12 ) - col0 FROM tab0
----
-109
-27
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8096
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS SIGNED ) IN ( ( - 87 ) )
----

skipif mysql # not compatible
query III rowsort label-8096
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS INTEGER ) IN ( ( - 87 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT DISTINCT ( COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT ( COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8098
SELECT ALL + 25 - COUNT( * ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-8098
SELECT ALL + 25 - COUNT ( * ) FROM tab2
----
22

query I rowsort
SELECT 66 + col1 * col0 FROM tab1 WHERE 16 + - 9 / 41 <> col2
----
4343
491
780

query I rowsort
SELECT ALL - 92 * ( col1 ) FROM tab1
----
-1288
-4324
-460

query I rowsort
SELECT - - 97 * - col1 AS col2 FROM tab0 AS cor0
----
-2037
-7857
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8102
SELECT COUNT( * ) DIV 44 FROM tab0 AS cor0 WHERE NOT - 92 * + 92 + - col1 NOT IN ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8102
SELECT COUNT ( * ) / 44 FROM tab0 AS cor0 WHERE NOT - 92 * + 92 + - col1 NOT IN ( col1 )
----
0

query I rowsort
SELECT ALL + col1 FROM tab2 cor0 WHERE NOT ( 81 + - col2 ) > - col1 + col2
----

query I rowsort
SELECT + + col0 * + 57 AS col2 FROM tab0 AS cor0
----
4959
5529
855

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( 91 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8107
SELECT ALL - - col0 DIV 21 AS col1 FROM tab0 AS cor0
----
0
4
4

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL - - col0 / 21 AS col1 FROM tab0 AS cor0
----
0
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT ALL MAX( ALL 92 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8108
SELECT ALL MAX ( ALL 92 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1 + col0 )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( ( - 1 ) / + col2 + - col2 ) = + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT IN ( - 16 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 / - 28 col0 FROM tab1 WHERE NOT 43 + + 88 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8112
SELECT ( + - ( + col0 ) ) DIV - col0 AS col2 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8112
SELECT ( + - ( + col0 ) ) / - col0 AS col2 FROM tab0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8113
SELECT 46 DIV + + col1 FROM tab0
----
0
2
46

skipif mysql # not compatible
query I rowsort label-8113
SELECT 46 / + + col1 FROM tab0
----
0
2
46

query I rowsort
SELECT ALL + ( + + col2 ) * col2 AS col2 FROM tab0
----
100
2209
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col2 FROM tab2 AS cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8116
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8116
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 + + 98 AS col0 FROM tab2 AS cor0 WHERE NULL < col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 NOT IN ( - ( - col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 6 col1 FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-6

query I rowsort
SELECT col0 * col0 + - col2 FROM tab0
----
178
7559
9310

onlyif mysql # aggregate syntax: 
query II rowsort label-8121
SELECT - COUNT( * ) AS col1, 85 FROM tab2
----
-3
85

skipif mysql # not compatible
query II rowsort label-8121
SELECT - COUNT ( * ) AS col1, 85 FROM tab2
----
-3
85

query I rowsort
SELECT - - 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8123
SELECT ALL - 36 + 61 FROM tab0 AS cor0 WHERE NOT col2 * + col1 * col2 IN ( - CAST( NULL AS SIGNED ) - + 23 )
----

skipif mysql # not compatible
query I rowsort label-8123
SELECT ALL - 36 + 61 FROM tab0 AS cor0 WHERE NOT col2 * + col1 * col2 IN ( - CAST ( NULL AS INTEGER ) - + 23 )
----

query I rowsort
SELECT DISTINCT - col2 * + - ( - col0 ) FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 18 BETWEEN - col1 / - col2 - + col2 * col1 AND + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 / + col0 * 19 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8127
SELECT ALL - SUM( ALL + col0 ) DIV + 21 AS col0 FROM tab0 AS cor0 WHERE CAST( 17 AS SIGNED ) * col2 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - SUM ( ALL + col0 ) / + 21 AS col0 FROM tab0 AS cor0 WHERE CAST ( 17 AS INTEGER ) * col2 IS NOT NULL
----
-9

query II rowsort
SELECT DISTINCT + 39 AS col1, - 85 AS col0 FROM tab0 AS cor0
----
39
-85

query I rowsort
SELECT DISTINCT col1 + - + 1 FROM tab1 AS cor0
----
13
4
46

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8130
SELECT - - col0, - 77 * 76 * - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8130
SELECT - - col0, - 77 * 76 * - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

query I rowsort
SELECT + 38 * + col2 * - + col2 - ( + col0 ) AS col1 FROM tab1
----
-132363
-175803
-350259

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) > ( 37 )
----
87
21
10
97
1
99

query I rowsort
SELECT col1 + 49 + col2 + col0 FROM tab1
----
198
210
255

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8134
SELECT - CAST( NULL AS SIGNED ) / - 21 + + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8134
SELECT - CAST ( NULL AS INTEGER ) / - 21 + + + col2 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 19 + - col2 FROM tab0
----
-118
-29
-66

query I rowsort
SELECT 13 * col1 + col2 AS col2 FROM tab0
----
1100
112
283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT + CAST( NULL AS SIGNED ) / 72 FROM tab1 WHERE + 47 NOT BETWEEN ( 85 ) AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8137
SELECT + CAST ( NULL AS INTEGER ) / 72 FROM tab1 WHERE + 47 NOT BETWEEN ( 85 ) AND NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT DISTINCT MIN( col2 ) FROM tab1 WHERE + 67 IS NULL AND NOT ( NULL ) <= + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8138
SELECT DISTINCT MIN ( col2 ) FROM tab1 WHERE + 67 IS NULL AND NOT ( NULL ) <= + col1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8139
SELECT + col2 DIV + - ( + 99 ) * + 27 * - col2 + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8139
SELECT + col2 / + - ( + 99 ) * + 27 * - col2 + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT DISTINCT - COUNT( * ) + ( - 34 ) + - COUNT( * ) + + 72 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT - COUNT ( * ) + ( - 34 ) + - COUNT ( * ) + + 72 FROM tab2
----
32

query I rowsort
SELECT DISTINCT - col0 - + - col0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL ( - col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT - 88 + 59 / + col2 BETWEEN ( NULL ) AND 10 * 89
----

query I rowsort
SELECT ALL col1 - - 4 FROM tab2 AS cor0 WHERE NOT ( NOT 39 IS NOT NULL )
----
55
71
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT ALL + 75 * - COUNT( * ) FROM tab0 AS cor0 WHERE 47 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-8144
SELECT ALL + 75 * - COUNT ( * ) FROM tab0 AS cor0 WHERE 47 = NULL
----
0

query I rowsort
SELECT ALL - 82 * + 51 FROM tab0
----
-4182
-4182
-4182

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( 80 ) BETWEEN col0 AND NULL
----

query I rowsort
SELECT DISTINCT ( + col0 ) * + - col0 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8148
SELECT ALL CAST( NULL AS DECIMAL ) FROM tab1 cor0 WHERE ( col2 ) <> ( + col2 + + col1 - col0 / + 58 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL CAST ( NULL AS REAL ) FROM tab1 cor0 WHERE ( col2 ) <> ( + col2 + + col1 - col0 / + 58 )
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT MIN( 25 ) FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8150
SELECT MIN ( 25 ) FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query I rowsort label-8151
SELECT - col2 DIV - ( - col1 ) FROM tab1 AS cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-8151
SELECT - col2 / - ( - col1 ) FROM tab1 AS cor0
----
-1
-11
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT + MIN( DISTINCT + ( + - col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT + MIN ( DISTINCT + ( + - col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT + 33 * + + col2 AS col1 FROM tab2
----
1320
1914
759

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab0 WHERE NOT - 7 >= + col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8155
SELECT - COUNT( * ) FROM tab1 WHERE NOT ( ( NOT ( NOT + col0 IS NULL ) ) )
----
-3

skipif mysql # not compatible
query I rowsort label-8155
SELECT - COUNT ( * ) FROM tab1 WHERE NOT ( ( NOT ( NOT + col0 IS NULL ) ) )
----
-3

query II rowsort
SELECT - col0 AS col2, - 25 FROM tab1
----
-51
-25
-85
-25
-91
-25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( 48 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT ( col0 + col2 ) > + 34 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + 89 IS NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <= + 65 / - - 23
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + - ( COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8161
SELECT + - ( COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8162
SELECT DISTINCT + col1 + col1 + - - 36 - - col2 + 52 * + + col1 * - CAST( col1 AS SIGNED ) FROM tab0 AS cor0
----
-22844
-340927
85

skipif mysql # not compatible
query I rowsort label-8162
SELECT DISTINCT + col1 + col1 + - - 36 - - col2 + 52 * + + col1 * - CAST ( col1 AS INTEGER ) FROM tab0 AS cor0
----
-22844
-340927
85

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT COUNT( * ) + + + 40 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT COUNT ( * ) + + + 40 FROM tab2
----
43

query I rowsort
SELECT + 59 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT - col0 + - - col2 * col1 AS col2 FROM tab2 AS cor0
----
1127
3016
3811

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 36 * - 45 IS NOT NULL
----

query I rowsort
SELECT - ( + - col0 ) + - col2 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT col0 * 45 + - 49 FROM tab2 AS cor0
----
2021
2831
3326

onlyif mysql # DIV for integer division: 
query I rowsort label-8170
SELECT - - col0 + - col2 DIV + col1 FROM tab0 AS cor0
----
-2
15
87

skipif mysql # not compatible
query I rowsort label-8170
SELECT - - col0 + - col2 / + col1 FROM tab0 AS cor0
----
-2
15
87

query II rowsort
SELECT + col2 + + col0 AS col1, - col2 FROM tab0 AS cor0
----
196
-99
62
-47
97
-10

query I rowsort
SELECT ALL + col0 + - + col0 * + - ( col1 ) AS col0 FROM tab1 AS cor0
----
4368
510
765

query II rowsort
SELECT - 82 + - col0 - - col1 * - ( + 31 ) AS col2, - col0 + - col0 FROM tab1 AS cor0
----
-1630
-182
-322
-170
-567
-102

query I rowsort
SELECT + + col1 AS col1 FROM tab2 AS cor0 WHERE ( NOT NULL <> 46 - + col1 )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE NOT + ( - col2 ) + - - 92 + - 20 IS NULL
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 52 + - + 82 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8177
SELECT ALL + COUNT( * ) * - 64 + + - COUNT( ALL + col2 ) FROM tab0 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL + COUNT ( * ) * - 64 + + - COUNT ( ALL + col2 ) FROM tab0 cor0
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT SUM( DISTINCT - - col1 ) * + - 51 * 15 FROM tab1
----
-50490

skipif mysql # not compatible
query I rowsort label-8178
SELECT SUM ( DISTINCT - - col1 ) * + - 51 * 15 FROM tab1
----
-50490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8179
SELECT ALL + 34 / - COUNT( DISTINCT - col1 ) + + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8179
SELECT ALL + 34 / - COUNT ( DISTINCT - col1 ) + + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8180
SELECT ALL col2 * + + 84 * + CAST( NULL AS SIGNED ) - + 8 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8180
SELECT ALL col2 * + + 84 * + CAST ( NULL AS INTEGER ) - + 8 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + 52 + - - col1 BETWEEN col2 / - + 22 + + + 10 + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8182
SELECT - 49 * - - col1 * - col1 - + 3 + + 75 - - 8 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8182
SELECT - 49 * - - col1 * - col1 - + 3 + + 75 - - 8 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT DISTINCT + 26 - COUNT( * ) AS col2 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-8183
SELECT DISTINCT + 26 - COUNT ( * ) AS col2 FROM tab2
----
23

query I rowsort
SELECT - ( + col0 ) AS col1 FROM tab2 WHERE col0 + - - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT - col0 DIV + - 57 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8185
SELECT - col0 / + - 57 AS col0 FROM tab2 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 col0 FROM tab1 WHERE NOT ( NOT 4 IS NULL )
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 71 + - 48 + + 15 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

onlyif mysql # DIV for integer division: 
query II rowsort label-8188
SELECT DISTINCT col1 DIV col0 AS col0, 48 AS col0 FROM tab1
----
0
48

skipif mysql # not compatible
query II rowsort label-8188
SELECT DISTINCT col1 / col0 AS col0, 48 AS col0 FROM tab1
----
0
48

query I rowsort
SELECT ALL - 10 * + - col1 + + ( + col2 ) AS col0 FROM tab2 AS cor0 WHERE NULL <= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8190
SELECT ALL - + MIN( - 25 ) col0 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8190
SELECT ALL - + MIN ( - 25 ) col0 FROM tab2 AS cor0
----
25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 IS NULL OR - col2 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - + 34 AS col2 FROM tab2
----
-1360
-1972
-782

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col0, col0 FROM tab0
----
10
87
47
15
99
97

query I rowsort
SELECT DISTINCT - 20 * col0 AS col0 FROM tab0
----
-1740
-1940
-300

query I rowsort
SELECT ALL ( + col1 ) * col1 AS col2 FROM tab0
----
1
441
6561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8196
SELECT + SUM( DISTINCT col2 ) FROM tab2 WHERE NOT col2 + + - col0 + CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8196
SELECT + SUM ( DISTINCT col2 ) FROM tab2 WHERE NOT col2 + + - col0 + CAST ( NULL AS INTEGER ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT + ( col1 ) DIV + col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-8197
SELECT + ( col1 ) / + col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT ALL + + ( COUNT( * ) ) AS col0 FROM tab2 WHERE NOT - 11 >= - 95
----
0

skipif mysql # not compatible
query I rowsort label-8198
SELECT ALL + + ( COUNT ( * ) ) AS col0 FROM tab2 WHERE NOT - 11 >= - 95
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT ALL 81 DIV - col1 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL 81 / - col1 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT + 62 FROM tab1 WHERE NOT 27 IS NULL
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT DISTINCT SUM( ALL + ( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-8201
SELECT DISTINCT SUM ( ALL + ( col0 ) ) FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-8202
SELECT DISTINCT + + col1 DIV - - 62 * - col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8202
SELECT DISTINCT + + col1 / - - 62 * - col1 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 col1 FROM tab1 AS cor0
----
46
46
46

onlyif mysql # aggregate syntax: 
query I rowsort label-8204
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE - col0 * col0 BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8204
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE - col0 * col0 BETWEEN NULL AND + col0
----
0

query I rowsort
SELECT + ( + - col1 ) + - 96 FROM tab2 AS cor0
----
-147
-163
-173

onlyif mysql # aggregate syntax: 
query II rowsort label-8206
SELECT ALL + COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-8206
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL - - col0 + - + col1 + - - col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + COUNT( * ) - - 17 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8208
SELECT + COUNT ( * ) - - 17 FROM tab1 AS cor0
----
20

query I rowsort
SELECT + col1 - - col2 * + 49 AS col2 FROM tab0 AS cor0
----
2384
4852
511

onlyif mysql # aggregate syntax: 
query II rowsort label-8210
SELECT DISTINCT 16 * + + COUNT( * ) AS col1, MAX( 81 ) FROM tab2
----
48
81

skipif mysql # not compatible
query II rowsort label-8210
SELECT DISTINCT 16 * + + COUNT ( * ) AS col1, MAX ( 81 ) FROM tab2
----
48
81

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE 59 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + 12 ) + - - 50 col0 FROM tab2
----
62
62
62

query I rowsort
SELECT col0 + col1 * - - col1 FROM tab0
----
528
6576
98

query I rowsort
SELECT - col0 + 9 FROM tab1
----
-42
-76
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * + 38 * - col0 + - col1 col0 FROM tab2
----
-11984973
-14321317
-4100859

query I rowsort
SELECT ALL + - 97 AS col2 FROM tab0 AS cor0
----
-97
-97
-97

onlyif mysql # DIV for integer division: 
query II rowsort label-8217
SELECT ( 66 ) DIV + + col2, 8 AS col2 FROM tab0
----
0
8
1
8
6
8

skipif mysql # not compatible
query II rowsort label-8217
SELECT ( 66 ) / + + col2, 8 AS col2 FROM tab0
----
0
8
1
8
6
8

onlyif mysql # aggregate syntax: 
query II rowsort label-8218
SELECT DISTINCT 97 AS col1, + COUNT( * ) AS col2 FROM tab1 cor0
----
97
3

skipif mysql # not compatible
query II rowsort label-8218
SELECT DISTINCT 97 AS col1, + COUNT ( * ) AS col2 FROM tab1 cor0
----
97
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8219
SELECT ALL + CAST( COUNT( * ) AS SIGNED ) + - COUNT( - - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
0

skipif mysql # not compatible
query I rowsort label-8219
SELECT ALL + CAST ( COUNT ( * ) AS INTEGER ) + - COUNT ( - - col1 ) FROM tab0 AS cor0 WHERE ( NULL ) = col0
----
0

query II rowsort
SELECT ALL + - col0, col0 * + - 48 AS col2 FROM tab1 cor0
----
-51
-2448
-85
-4080
-91
-4368

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 + + + 74 col2 FROM tab1 AS cor0
----
133
142
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, col1 AS col2 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT + + col0 + + - 65 FROM tab0 AS cor0
----
-50
22
32

query I rowsort
SELECT ALL - 73 * - 50 AS col0 FROM tab0 AS cor0
----
3650
3650
3650

query I rowsort
SELECT + col1 + - 12 AS col0 FROM tab2
----
39
55
65

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 - col1 > - 89
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 59 * - col1 FROM tab2
----
-3009
-3953
-4543

query I rowsort
SELECT - 21 + + + 92 AS col1 FROM tab0
----
71
71
71

query I rowsort
SELECT - - col1 FROM tab1 WHERE NOT - 49 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8230
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8230
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT ALL + ( CAST( + col0 AS SIGNED ) ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8231
SELECT ALL + ( CAST ( + col0 AS INTEGER ) ) FROM tab1
----
51
85
91

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL OR 61 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-8233
SELECT - 60 * + COUNT( * ) AS col1, 67 FROM tab1
----
-180
67

skipif mysql # not compatible
query II rowsort label-8233
SELECT - 60 * + COUNT ( * ) AS col1, 67 FROM tab1
----
-180
67

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8235
SELECT - - col1 DIV + col1 col0, col2 AS col1 FROM tab0 AS cor0
----
1
10
1
47
1
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8235
SELECT - - col1 / + col1 col0, col2 AS col1 FROM tab0 AS cor0
----
1
10
1
47
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 + ( - col2 ) = - - col0 + - - col0 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 1 AS col2 FROM tab1 cor0
----
1
1
1

query II rowsort
SELECT ALL 33 * col1 + - col1, + col0 AS col1 FROM tab1
----
1504
91
160
85
448
51

query III rowsort
SELECT * FROM tab1 WHERE + 45 * + 24 IS NULL
----

query I rowsort
SELECT - col0 * - - col0 * + col1 + + 53 AS col1 FROM tab2 AS cor0
----
-107863
-315339
-376822

query I rowsort
SELECT ALL - 62 - col0 AS col0 FROM tab0 AS cor0
----
-149
-159
-77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - col0 - - col1 NOT IN ( + + col0, 0 )
----

query II rowsort
SELECT DISTINCT - col2 AS col0, 86 + - ( + col0 ) + + col2 * - + 24 * - col2 AS col2 FROM tab0 AS cor0
----
-10
2399
-47
53087
-99
235213

query I rowsort
SELECT + + col1 + + 72 FROM tab2 AS cor0
----
123
139
149

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 10 NOT BETWEEN col0 - + 30 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 * 52 * - col0 + - col2 AS col1 FROM tab1 AS cor0
----
-135348
-375759
-430680

query I rowsort
SELECT - 30 + - + col2 FROM tab0 AS cor0
----
-129
-40
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8248
SELECT SUM( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-8248
SELECT SUM ( DISTINCT - - col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-8249
SELECT ALL - COUNT( * ) * - MIN( DISTINCT + 83 ) * + MAX( DISTINCT 63 ) + + 55 + + - COUNT( * ) col0 FROM tab1 AS cor0
----
15739

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8249
SELECT ALL - COUNT ( * ) * - MIN ( DISTINCT + 83 ) * + MAX ( DISTINCT 63 ) + + 55 + + - COUNT ( * ) col0 FROM tab1 AS cor0
----
15739

onlyif mysql # DIV for integer division: 
query I rowsort label-8250
SELECT - col2 DIV + - 15 FROM tab2 cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-8250
SELECT - col2 / + - 15 FROM tab2 cor0
----
1
2
3

query I rowsort
SELECT + col0 * - 52 AS col2 FROM tab0 AS cor0
----
-4524
-5044
-780

onlyif mysql # aggregate syntax: 
query I rowsort label-8252
SELECT ALL 25 + + + 11 * COUNT( * ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-8252
SELECT ALL 25 + + + 11 * COUNT ( * ) FROM tab2
----
58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-8253
SELECT ALL 64 * COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) FROM tab0
----
192
NULL

skipif mysql # not compatible
query II rowsort label-8253
SELECT ALL 64 * COUNT ( * ) AS col1, CAST ( NULL AS REAL ) FROM tab0
----
192
NULL

query I rowsort
SELECT DISTINCT - col0 + + + col2 + - col0 FROM tab1
----
-111
-114
-6

query III rowsort
SELECT * FROM tab0 WHERE + col0 * - + col0 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 3 ) AS col0 FROM tab2
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8257
SELECT DISTINCT + ( + - MIN( + 3 ) ) * - - 77 + + 79 AS col1 FROM tab1 AS cor0
----
-152

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT + ( + - MIN ( + 3 ) ) * - - 77 + + 79 AS col1 FROM tab1 AS cor0
----
-152

query II rowsort
SELECT ALL + - col0, col0 AS col2 FROM tab0 AS cor0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8259
SELECT ALL - 90 - COUNT( * ) FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----
-90

skipif mysql # not compatible
query I rowsort label-8259
SELECT ALL - 90 - COUNT ( * ) FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----
-90

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 5 + col2 NOT BETWEEN - ( + col2 ) AND NULL
----

query I rowsort
SELECT ALL 32 AS col2 FROM tab1 cor0
----
32
32
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8262
SELECT + MIN( DISTINCT CAST( NULL AS SIGNED ) ) col1, 13 AS col1 FROM tab2 AS cor0
----
NULL
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8262
SELECT + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) col1, 13 AS col1 FROM tab2 AS cor0
----
NULL
13

query I rowsort
SELECT DISTINCT ( + col0 ) * - col1 + - col0 AS col2 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col2 FROM tab1 cor0 WHERE NULL < + col2
----

query I rowsort
SELECT DISTINCT + 86 + + col2 AS col1 FROM tab2 AS cor0
----
109
126
144

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 29 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - ( + + col2 ) + - col2 >= - col1 * ( col2 )
----
97
1
99

query II rowsort
SELECT + col0 AS col2, + col1 AS col0 FROM tab0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8269
SELECT - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8269
SELECT - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE - col2 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8270
SELECT - ( - 33 ) + + CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8270
SELECT - ( - 33 ) + + CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8271
SELECT * FROM tab2 AS cor0 WHERE + col0 / + - col2 IN ( col0 * - col0 / 63 + - - CAST( - 93 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8271
SELECT * FROM tab2 AS cor0 WHERE + col0 / + - col2 IN ( col0 * - col0 / 63 + - - CAST ( - 93 AS INTEGER ) )
----

query I rowsort
SELECT ALL 20 * + - col0 + - col1 AS col0 FROM tab2
----
-1357
-1567
-971

query II rowsort
SELECT DISTINCT + + col1 - - col1 AS col0, 4 FROM tab2 AS cor0
----
102
4
134
4
154
4

query I rowsort
SELECT DISTINCT - col1 * col0 * 81 FROM tab2 AS cor0
----
-190026
-399168
-407025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8275
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE 53 NOT BETWEEN - col2 - + - CAST( - - 21 AS SIGNED ) * - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-8275
SELECT + col2 AS col1 FROM tab1 AS cor0 WHERE 53 NOT BETWEEN - col2 - + - CAST ( - - 21 AS INTEGER ) * - col2 AND NULL
----

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8277
SELECT ALL + COUNT( * ) + ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT ALL + COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8278
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8278
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8279
SELECT + CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8279
SELECT + CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8280
SELECT ALL 22 DIV + - 42 * - 18 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8280
SELECT ALL 22 / + - 42 * - 18 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL - + 89 AS col2 FROM tab1 WHERE - col2 * + - 35 IN ( + col2, col0 )
----

query I rowsort
SELECT + 41 * 29 AS col2 FROM tab2
----
1189
1189
1189

onlyif mysql # aggregate syntax: 
query II rowsort label-8283
SELECT 97 AS col1, - COUNT( * ) FROM tab2
----
97
-3

skipif mysql # not compatible
query II rowsort label-8283
SELECT 97 AS col1, - COUNT ( * ) FROM tab2
----
97
-3

query I rowsort
SELECT ALL 81 AS col2 FROM tab2 WHERE - - 2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT ALL + COUNT( * ) * + COUNT( - col1 ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8285
SELECT ALL + COUNT ( * ) * + COUNT ( - col1 ) AS col2 FROM tab0
----
9

query I rowsort
SELECT DISTINCT ( + col2 ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT ALL + - 63 + col2 FROM tab0 cor0 WHERE col1 * - + col2 IS NOT NULL
----
-16
-53
36

query II rowsort
SELECT col2 AS col0, - col0 + col0 FROM tab1 WHERE NOT + 20 IS NULL
----
59
0
68
0
96
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NOT + ( - col2 ) > col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 94 + - - 81 AS col0 FROM tab1 AS cor0
----
-13
-13
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8291
SELECT ALL + - SUM( ALL - + 15 ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8291
SELECT ALL + - SUM ( ALL - + 15 ) AS col2 FROM tab0 AS cor0
----
45

query I rowsort
SELECT + col0 * - + 42 + - - col0 + - + col1 + - 82 FROM tab1 AS cor0
----
-2187
-3572
-3860

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT ALL + 22 + - - MAX( + - 99 ) - + + 13 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-8293
SELECT ALL + 22 + - - MAX ( + - 99 ) - + + 13 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8294
SELECT ALL - COUNT( * ) + - 78 AS col0 FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-8294
SELECT ALL - COUNT ( * ) + - 78 AS col0 FROM tab1
----
-81

query III rowsort
SELECT * FROM tab2 WHERE + + 97 <= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 = - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8297
SELECT DISTINCT - SUM( ALL - + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-8297
SELECT DISTINCT - SUM ( ALL - + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT ALL col0 * - - 19 / + col2 AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT + col2 * - col2 DIV - - col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-8299
SELECT + col2 * - col2 / - - col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-8300
SELECT + + 82 DIV + 66 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8300
SELECT + + 82 / + 66 AS col1 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND - 20
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + - + col0 + - 97 / + col2 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 - col0, + col1 - + col1 col1 FROM tab1 AS cor0
----
-138
0
-65
0
-90
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query II rowsort
SELECT + col2 AS col0, + ( + ( + col1 ) ) AS col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 + 73 = - - 53
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 col2 FROM tab1 cor0
----
-60
-60
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8309
SELECT + CAST( col2 AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100
128
31

skipif mysql # not compatible
query I rowsort label-8309
SELECT + CAST ( col2 AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
100
128
31

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8310
SELECT + 38, - CAST( col1 AS SIGNED ) * - CAST( + - 41 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
38
-3321
38
-41
38
-861

skipif mysql # not compatible
query II rowsort label-8310
SELECT + 38, - CAST ( col1 AS INTEGER ) * - CAST ( + - 41 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
38
-3321
38
-41
38
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT DISTINCT COUNT( + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8311
SELECT DISTINCT COUNT ( + col0 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8312
SELECT - + CAST( + COUNT( ALL - 64 ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8312
SELECT - + CAST ( + COUNT ( ALL - 64 ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 76 * + 30 col2 FROM tab1
----
134520
155040
218880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8314
SELECT DISTINCT MAX( DISTINCT + col2 ), CAST( NULL AS SIGNED ) * ( + - 49 ) * 0 / + + COUNT( * ) col1 FROM tab1
----
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8314
SELECT DISTINCT MAX ( DISTINCT + col2 ), CAST ( NULL AS INTEGER ) * ( + - 49 ) * 0 / + + COUNT ( * ) col1 FROM tab1
----
96
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8315
SELECT col0 + + ( - CAST( + + 61 AS SIGNED ) ) * + col1 col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-220
-2776
-803

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8315
SELECT col0 + + ( - CAST ( + + 61 AS INTEGER ) ) * + col1 col2 FROM tab1 WHERE NOT ( NOT NULL IS NULL )
----
-220
-2776
-803

query II rowsort
SELECT + col0 * + 77, col2 AS col0 FROM tab2
----
3542
23
4928
40
5775
58

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT - col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT MIN( col2 ) * 43 AS col0 FROM tab1
----
2537

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT MIN ( col2 ) * 43 AS col0 FROM tab1
----
2537

onlyif mysql # DIV for integer division: 
query I rowsort label-8319
SELECT ALL col2 DIV col0 * col2 FROM tab0
----
0
141
99

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL col2 / col0 * col2 FROM tab0
----
0
141
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8320
SELECT DISTINCT + SUM( DISTINCT + + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8320
SELECT DISTINCT + SUM ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL - ( - col0 ) + - + 33 + - col1 FROM tab0 AS cor0
----
-99
33
63

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8322
SELECT ALL + 97 AS col1, COUNT( * ) * 23 DIV + + MAX( col0 ) FROM tab0
----
97
0

skipif mysql # not compatible
query II rowsort label-8322
SELECT ALL + 97 AS col1, COUNT ( * ) * 23 / + + MAX ( col0 ) FROM tab0
----
97
0

query I rowsort
SELECT + 61 * - - 74 AS col1 FROM tab1 cor0
----
4514
4514
4514

query I rowsort
SELECT + 5 - + - col0 AS col2 FROM tab1 AS cor0 WHERE + ( col1 ) IS NOT NULL
----
56
90
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2
----

query I rowsort
SELECT ALL + col1 + - 46 * + col1 + col2 FROM tab1 cor0
----
-166
-2047
-534

query I rowsort
SELECT DISTINCT 52 + 54 + + 78 AS col0 FROM tab1 AS cor0
----
184

onlyif mysql # aggregate syntax: 
query II rowsort label-8328
SELECT 67 AS col1, SUM( ALL + - col0 ) FROM tab0
----
67
-199

skipif mysql # not compatible
query II rowsort label-8328
SELECT 67 AS col1, SUM ( ALL + - col0 ) FROM tab0
----
67
-199

query II rowsort
SELECT DISTINCT + col1 + + + 73 AS col0, - col1 + - - col1 FROM tab0
----
154
0
74
0
94
0

query III rowsort
SELECT * FROM tab0 WHERE col2 > - 99
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 * - col1 * - col2 + + - col2 FROM tab2
----
-237200
-260420
-59846

query I rowsort
SELECT - 90 + - - col2 * - col2 * col0 FROM tab0
----
-33225
-8790
-950787

query I rowsort
SELECT col2 + - 67 + + col1 AS col2 FROM tab2
----
50
58
7

query I rowsort
SELECT DISTINCT 77 + + + 24 AS col1 FROM tab1
----
101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8335
SELECT ALL COUNT( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8335
SELECT ALL COUNT ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8336
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, + COUNT( * ) * + 26 FROM tab0
----
NULL
78

skipif mysql # not compatible
query II rowsort label-8336
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, + COUNT ( * ) * + 26 FROM tab0
----
NULL
78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8337
SELECT CAST( NULL AS SIGNED ) + - + 39 + + - ( 8 ) + - + COUNT( * ) * COUNT( * ) * + 86 * + + 47 * SUM( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8337
SELECT CAST ( NULL AS INTEGER ) + - + 39 + + - ( 8 ) + - + COUNT ( * ) * COUNT ( * ) * + 86 * + + 47 * SUM ( DISTINCT - col0 ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8338
SELECT - 2 + + MAX( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8338
SELECT - 2 + + MAX ( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
-12

query I rowsort
SELECT DISTINCT + col0 - - - col1 AS col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-8340
SELECT ALL - SUM( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL - SUM ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ALL + 16 * + + 76 + col0 + - - col1 AS col2 FROM tab1
----
1281
1306
1354

query III rowsort
SELECT * FROM tab1 WHERE - 74 * - 76 BETWEEN NULL AND NULL
----

query I rowsort
SELECT 61 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT DISTINCT - ( + 93 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT + CAST( col2 AS SIGNED ) * - col0 * 56 FROM tab0 cor0
----
-39480
-48720
-537768

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT + CAST ( col2 AS INTEGER ) * - col0 * 56 FROM tab0 cor0
----
-39480
-48720
-537768

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8346
SELECT - ( + CAST( + CAST( + 93 AS SIGNED ) AS SIGNED ) ) * COUNT( * ) AS col0 FROM tab1 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-8346
SELECT - ( + CAST ( + CAST ( + 93 AS INTEGER ) AS INTEGER ) ) * COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-279

query I rowsort
SELECT ALL - - 48 AS col0 FROM tab1 AS cor0
----
48
48
48

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 62 * - 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 20 * - - col0 AS col0 FROM tab1 AS cor0
----
1020
1700
1820

onlyif mysql # DIV for integer division: 
query I rowsort label-8350
SELECT - 1 DIV + col0 * + 2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8350
SELECT - 1 / + col0 * + 2 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 87 ) col2 FROM tab0
----
-87
-87
-87

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * + col2 IS NOT NULL
----

query I rowsort
SELECT 49 * - - 21 FROM tab2
----
1029
1029
1029

onlyif mysql # aggregate syntax: 
query I rowsort label-8354
SELECT DISTINCT + COUNT( * ) * + + 32 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-8354
SELECT DISTINCT + COUNT ( * ) * + + 32 FROM tab1
----
96

query I rowsort
SELECT ALL 69 * - 49 FROM tab0
----
-3381
-3381
-3381

query II rowsort
SELECT col0 AS col0, col0 + col1 FROM tab0
----
15
96
87
108
97
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8357
SELECT ALL 96 DIV - COUNT( * ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL 96 / - COUNT ( * ) AS col0 FROM tab2
----
-32

query III rowsort
SELECT * FROM tab2 WHERE NOT + 40 BETWEEN + + 15 AND + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE + col0 - - ( 47 ) + - - col2 + - 92 IN ( + - col1, + ( - 81 ), - - col2, col0 * - 37 * ( - 44 ) * - + col0 * - 82 - - - 95 * 88 )
----

query I rowsort
SELECT DISTINCT - col1 * - col1 + + + col1 AS col2 FROM tab1 AS cor0
----
210
2256
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8361
SELECT DISTINCT - 56 + + - COUNT( * ) FROM tab0
----
-59

skipif mysql # not compatible
query I rowsort label-8361
SELECT DISTINCT - 56 + + - COUNT ( * ) FROM tab0
----
-59

query I rowsort
SELECT - col2 + + + col1 - - col2 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + AVG ( ALL - + 99 ) AS col0 FROM tab1 AS cor0 WHERE - col1 * - 8 <= col1
----
NULL

query I rowsort
SELECT + 39 + + + col2 - + + ( + + col2 ) * + col0 AS col1 FROM tab1 AS cor0
----
-4761
-4917
-6081

onlyif mysql # aggregate syntax: 
query I rowsort label-8365
SELECT DISTINCT + ( - ( - COUNT( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8365
SELECT DISTINCT + ( - ( - COUNT ( * ) ) ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8366
SELECT 98 * + MIN( ALL col2 ) + - 72 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8366
SELECT 98 * + MIN ( ALL col2 ) + - 72 AS col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col1 + + ( + ( + ( - - col2 ) ) ) * ( col1 ) * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT 11 ) FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - 27 - - col2 FROM tab1 AS cor0
----
32
41
69

onlyif mysql # aggregate syntax: 
query I rowsort label-8370
SELECT + COUNT( * ) AS col0 FROM tab2 cor0 WHERE - col2 + + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8370
SELECT + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE - col2 + + col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8371
SELECT + + COUNT( * ) - - ( + + 85 ), COUNT( * ) AS col2 FROM tab2 AS cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-8371
SELECT + + COUNT ( * ) - - ( + + 85 ), COUNT ( * ) AS col2 FROM tab2 AS cor0
----
88
3

query I rowsort
SELECT ALL + - 71 - + 48 AS col2 FROM tab2 AS cor0
----
-119
-119
-119

query I rowsort
SELECT + 72 * - + 82 * - 48 * 76 + + col2 - col0 FROM tab1 AS cor0
----
21537766
21537769
21537837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + col0 * 46 ) BETWEEN ( - ( + ( 94 ) ) ) + + + col0 AND ( col0 ) * + col2
----
46
51
23
64
77
40

query I rowsort
SELECT ALL 60 + - + 95 FROM tab0 WHERE + 6 IS NOT NULL
----
-35
-35
-35

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 2 * col0 - - col1 - - + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( + col2 ), col1 FROM tab2 AS cor0
----
23
51
40
77
58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8379
SELECT + MAX( DISTINCT + 27 ) FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-8379
SELECT + MAX ( DISTINCT + 27 ) FROM tab0 cor0
----
27

query II rowsort
SELECT ALL + + col0 AS col0, - col1 * + col1 FROM tab1 AS cor0
----
51
-196
85
-25
91
-2209

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 66 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8382
SELECT ALL CAST( + col2 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8382
SELECT ALL CAST ( + col2 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8383
SELECT DISTINCT - COUNT( * ) * - 28 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8383
SELECT DISTINCT - COUNT ( * ) * - 28 FROM tab2 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 62 NOT BETWEEN 24 AND - + ( - - 60 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 18 * col0 AS col0 FROM tab2
----
1152
1350
828

onlyif mysql # aggregate syntax: 
query I rowsort label-8387
SELECT + SUM( DISTINCT - 6 ) AS col1 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-8387
SELECT + SUM ( DISTINCT - 6 ) AS col1 FROM tab1
----
-6

query I rowsort
SELECT col2 * - + 40 AS col0 FROM tab2
----
-1600
-2320
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT ( + 58 ) * + COUNT( * ) FROM tab0
----
174

skipif mysql # not compatible
query I rowsort label-8389
SELECT ( + 58 ) * + COUNT ( * ) FROM tab0
----
174

query I rowsort
SELECT ALL - - col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) >= NULL
----

query I rowsort
SELECT DISTINCT - + col1 + + col2 AS col1 FROM tab2 cor0
----
-28
-37
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE - ( + + 14 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8392
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE - ( + + 14 ) IS NOT NULL
----
3

query I rowsort
SELECT + col1 + - 65 * + - col0 AS col2 FROM tab0
----
1056
5676
6306

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE - + 51 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query III rowsort
SELECT * FROM tab1 WHERE col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8396
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8396
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8397
SELECT ALL col2 * - 21 * + col0 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8397
SELECT ALL col2 * - 21 * + col0 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( - 88 ) AS col2 FROM tab0 cor0
----
-88
-88
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8399
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 29 + - 31 + - - col1 + + col0 BETWEEN + + CAST( NULL AS SIGNED ) * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8399
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 29 + - 31 + - - col1 + + col0 BETWEEN + + CAST ( NULL AS INTEGER ) * col1 AND NULL
----

query II rowsort
SELECT DISTINCT + 48, + col2 AS col2 FROM tab2 AS cor0
----
48
23
48
40
48
58

query I rowsort
SELECT DISTINCT - - col2 + - col0 + + col2 AS col2 FROM tab1 AS cor0
----
141
33
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8402
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + 61 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + 61 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 22 + 51 FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT + ( - + col2 ) + - 12 FROM tab0
----
-111
-22
-59

query I rowsort
SELECT - 84 + col1 AS col1 FROM tab0
----
-3
-63
-83

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 / + + ( 2 ) IS NULL AND NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 11 + - + col0 AS col0 FROM tab1
----
-40
-74
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8408
SELECT col0 + + 94 + - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT col0 + + 94 + - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 - - 79 AS col1, - col1 * - ( - col2 ) FROM tab1
----
138
-295
147
-3196
175
-1344

query I rowsort
SELECT DISTINCT 33 * - 99 AS col0 FROM tab0 WHERE NOT ( NULL ) = + - col2 AND col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 69 - col0 * + 23 col0 FROM tab0
----
-1932
-2162
-276

onlyif mysql # DIV for integer division: 
query I rowsort label-8412
SELECT ALL - 42 DIV + + col1 - 75 AS col1 FROM tab0
----
-117
-75
-77

skipif mysql # not compatible
query I rowsort label-8412
SELECT ALL - 42 / + + col1 - 75 AS col1 FROM tab0
----
-117
-75
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-8413
SELECT - col0 DIV 50 + - col1 + - col2 col1 FROM tab2
----
-118
-126
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8413
SELECT - col0 / 50 + - col1 + - col2 col1 FROM tab2
----
-118
-126
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT col1 * col2 + - col1 >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 58 col1 FROM tab2 AS cor0
----
58
58
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - + col1 <> - + 30 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8417
SELECT - + ( - CAST( + 89 AS SIGNED ) ) * 7 AS col2 FROM tab0 AS cor0
----
623
623
623

skipif mysql # not compatible
query I rowsort label-8417
SELECT - + ( - CAST ( + 89 AS INTEGER ) ) * 7 AS col2 FROM tab0 AS cor0
----
623
623
623

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= col0 + col2 / + ( - 49 )
----

query II rowsort
SELECT + col0 AS col2, - col0 FROM tab1 AS cor0
----
51
-51
85
-85
91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT - 79 * - COUNT( * ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-8420
SELECT - 79 * - COUNT ( * ) FROM tab1 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-8421
SELECT + 89 * - COUNT( * ) col0 FROM tab0 AS cor0
----
-267

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8421
SELECT + 89 * - COUNT ( * ) col0 FROM tab0 AS cor0
----
-267

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8422
SELECT DISTINCT - CAST( - 87 AS SIGNED ) FROM tab0
----
87

skipif mysql # not compatible
query I rowsort label-8422
SELECT DISTINCT - CAST ( - 87 AS INTEGER ) FROM tab0
----
87

query I rowsort
SELECT - 87 * - + col2 * - + col2 FROM tab2
----
-139200
-292668
-46023

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8425
SELECT SUM( - + 32 ) AS col1, - CAST( NULL AS SIGNED ) FROM tab2
----
-96
NULL

skipif mysql # not compatible
query II rowsort label-8425
SELECT SUM ( - + 32 ) AS col1, - CAST ( NULL AS INTEGER ) FROM tab2
----
-96
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 * + - 18 / - - 7 IS NULL
----

query II rowsort
SELECT 20 AS col2, col1 FROM tab0 AS cor0
----
20
1
20
21
20
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8428
SELECT - 45 DIV + MAX( - - col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8428
SELECT - 45 / + MAX ( - - col0 ) FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col2 AS col0, + col1 AS col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT - 72 * col1 AS col1 FROM tab2
----
-3672
-4824
-5544

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT DISTINCT 9 * + 38 * + CAST( 20 AS SIGNED ) * 69 * + + col2 AS col0 FROM tab2
----
10855080
18878400
27373680

skipif mysql # not compatible
query I rowsort label-8431
SELECT DISTINCT 9 * + 38 * + CAST ( 20 AS INTEGER ) * 69 * + + col2 AS col0 FROM tab2
----
10855080
18878400
27373680

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 14 + + col1 + + + 31 - + + col1 * + col1 * + col2 * + col0 AS col2, 36 + + - col2 + ( + ( + 99 ) ) + + col1 * - + 38 col2 FROM tab1 AS cor0
----
-125353
-114
-13669228
-1719
-959585
-493

query I rowsort
SELECT col1 + ( col0 ) * 16 AS col1 FROM tab0 AS cor0
----
1413
1553
321

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 43 col2, + col0 + - col2 FROM tab2 AS cor0 WHERE col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - 20 + col1 + col2 col2 FROM tab0 AS cor0
----
123
177
98

query I rowsort
SELECT ALL + col2 * col1 + + 1 FROM tab0 AS cor0
----
100
211
3808

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT - col2 * - col1 * + CAST( 11 AS SIGNED ) FROM tab0 AS cor0
----
1089
2310
41877

skipif mysql # not compatible
query I rowsort label-8437
SELECT - col2 * - col1 * + CAST ( 11 AS INTEGER ) FROM tab0 AS cor0
----
1089
2310
41877

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8438
SELECT + col2 AS col1 FROM tab0 WHERE - + CAST( NULL AS SIGNED ) >= + col2
----

skipif mysql # not compatible
query I rowsort label-8438
SELECT + col2 AS col1 FROM tab0 WHERE - + CAST ( NULL AS INTEGER ) >= + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8439
SELECT DISTINCT + CAST( 98 AS DECIMAL ) + - col0 AS col2 FROM tab2 WHERE ( - CAST( NULL AS SIGNED ) ) > + col0
----

skipif mysql # not compatible
query I rowsort label-8439
SELECT DISTINCT + CAST ( 98 AS REAL ) + - col0 AS col2 FROM tab2 WHERE ( - CAST ( NULL AS INTEGER ) ) > + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8440
SELECT ALL + 82 * - - CAST( NULL AS SIGNED ) + col0 AS col1, + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8440
SELECT ALL + 82 * - - CAST ( NULL AS INTEGER ) + col0 AS col1, + col2 AS col0 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 5 + - 55 col2 FROM tab2 WHERE NOT + col0 BETWEEN NULL AND col0 * + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 26 col0 FROM tab1
----
26
26
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8443
SELECT * FROM tab0 WHERE NOT col2 IN ( + 94 * col0 + - + CAST( + col2 AS SIGNED ) * col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8443
SELECT * FROM tab0 WHERE NOT col2 IN ( + 94 * col0 + - + CAST ( + col2 AS INTEGER ) * col1, col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8444
SELECT DISTINCT - COUNT( * ) * 74 AS col0 FROM tab2 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT - COUNT ( * ) * 74 AS col0 FROM tab2 AS cor0
----
-222

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 67 + 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8446
SELECT ALL - COUNT( + + ( + 71 ) ) AS col2, - 4 FROM tab0 AS cor0
----
-3
-4

skipif mysql # not compatible
query II rowsort label-8446
SELECT ALL - COUNT ( + + ( + 71 ) ) AS col2, - 4 FROM tab0 AS cor0
----
-3
-4

query I rowsort
SELECT ALL - ( + + 63 ) * col2 AS col2 FROM tab0
----
-2961
-6237
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-8448
SELECT + 65 DIV + 27 AS col1 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8448
SELECT + 65 / + 27 AS col1 FROM tab0
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8449
SELECT CAST( NULL AS SIGNED ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8449
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8450
SELECT ALL + col0 DIV - - col1 AS col2 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-8450
SELECT ALL + col0 / - - col1 AS col2 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT ALL - col2 * - + col0 + - col0 FROM tab1 AS cor0
----
4845
4930
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-8452
SELECT + MIN( - ( 37 ) ) FROM tab1 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-8452
SELECT + MIN ( - ( 37 ) ) FROM tab1 AS cor0
----
-37

query I rowsort
SELECT ALL 29 AS col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8454
SELECT DISTINCT MAX( ALL + - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8454
SELECT DISTINCT MAX ( ALL + - col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - + col2 + col1 + - 18 * 90 * 0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ALL + col1 AS col1 FROM tab0 AS cor0 WHERE - col0 * - + 2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 17 + col1 FROM tab0
----
18
38
98

query I rowsort
SELECT DISTINCT 91 * - 58 + + 54 AS col2 FROM tab0
----
-5224

query I rowsort
SELECT + 38 * col1 AS col0 FROM tab1
----
1786
190
532

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8460
SELECT + MIN( + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8460
SELECT + MIN ( + CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8461
SELECT DISTINCT COUNT( ALL + - col2 ) AS col2 FROM tab0 WHERE NOT + col0 >= col2
----
2

skipif mysql # not compatible
query I rowsort label-8461
SELECT DISTINCT COUNT ( ALL + - col2 ) AS col2 FROM tab0 WHERE NOT + col0 >= col2
----
2

query I rowsort
SELECT + 5 * col1 AS col1 FROM tab2
----
255
335
385

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT DISTINCT + MAX( - 94 ) AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-8463
SELECT DISTINCT + MAX ( - 94 ) AS col1 FROM tab0
----
-94

query I rowsort
SELECT DISTINCT - ( + 60 ) FROM tab2
----
-60

query I rowsort
SELECT 54 + + + ( - col1 ) FROM tab2 AS cor0
----
-13
-23
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8466
SELECT ALL - SUM( DISTINCT + col0 ) AS col2, COUNT( + col1 ) AS col1 FROM tab1
----
-227
3

skipif mysql # not compatible
query II rowsort label-8466
SELECT ALL - SUM ( DISTINCT + col0 ) AS col2, COUNT ( + col1 ) AS col1 FROM tab1
----
-227
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8467
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) AS col2 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8467
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col2 FROM tab0
----
3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8468
SELECT + - COUNT( * ) - 30 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
-30

skipif mysql # not compatible
query I rowsort label-8468
SELECT + - COUNT ( * ) - 30 AS col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----
-30

query I rowsort
SELECT DISTINCT - + 46 * - col0 - col2 AS col1 FROM tab2 AS cor0
----
2093
2904
3392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - + col1 ) * - col2 col1 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT - + 72 FROM tab1 cor0
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT - COUNT( * ) + SUM( + + col1 ) AS col1 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8472
SELECT - COUNT ( * ) + SUM ( + + col1 ) AS col1 FROM tab0 AS cor0
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8473
SELECT ALL + - CAST( NULL AS SIGNED ) + col1 * + 12 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL + - CAST ( NULL AS INTEGER ) + col1 * + 12 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8474
SELECT - - COUNT( * ) + - 87 + - 73 - - COUNT( + col1 ) * 55 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
338

skipif mysql # not compatible
query I rowsort label-8474
SELECT - - COUNT ( * ) + - 87 + - 73 - - COUNT ( + col1 ) * 55 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
338

query I rowsort
SELECT ( - 49 ) AS col0 FROM tab0, tab2 AS cor0
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT 40 * col1 AS col0 FROM tab2
----
2040
2680
3080

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT + 67 FROM tab2 WHERE NOT + - col2 < CAST( - col1 AS SIGNED )
----
67
67
67

skipif mysql # not compatible
query I rowsort label-8477
SELECT + 67 FROM tab2 WHERE NOT + - col2 < CAST ( - col1 AS INTEGER )
----
67
67
67

query I rowsort
SELECT DISTINCT col0 * - + col1 * - + 67 * - - 10 * + - col0 FROM tab0
----
-106495830
-12210750
-6304030

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( 75 ) NOT IN ( - col1 + - ( + 38 ), 36 * 89 + - col1, - ( 93 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-8481
SELECT DISTINCT col0 DIV - col2 - - - col0 FROM tab2 AS cor0
----
-48
-65
-76

skipif mysql # not compatible
query I rowsort label-8481
SELECT DISTINCT col0 / - col2 - - - col0 FROM tab2 AS cor0
----
-48
-65
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT ALL - + col2 / + - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - + col2 / + - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8483
SELECT + - SUM( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-8483
SELECT + - SUM ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT + col1 * col2 + - + 13 + - + col2 * + - 92 * - + col0 * 14 AS col2 FROM tab2 AS cor0
----
-1361544
-3294213
-5598927

query I rowsort
SELECT - col0 + - - 21 AS col1 FROM tab0 AS cor0
----
-66
-76
6

query I rowsort
SELECT DISTINCT - 9 * + 71 + col0 AS col0 FROM tab0 AS cor0
----
-542
-552
-624

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 <> + + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 88 + - 0 - col2 FROM tab1
----
-8
20
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT 54 * + COUNT( * ) FROM tab1
----
162

skipif mysql # not compatible
query I rowsort label-8489
SELECT 54 * + COUNT ( * ) FROM tab1
----
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8490
SELECT DISTINCT + 49 DIV - - COUNT( * ) FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8490
SELECT DISTINCT + 49 / - - COUNT ( * ) FROM tab2
----
16

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN + col0 + + + col0 + + - col0 * + col2 * 15 + + 55 + col2 * - ( - col0 ) + - + col1 / - col0 AND + col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 32 * - 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8493
SELECT - + COUNT( * ) - + - 23 AS col1 FROM tab1 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8493
SELECT - + COUNT ( * ) - + - 23 AS col1 FROM tab1 AS cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT - - ( COUNT( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-8494
SELECT - - ( COUNT ( * ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT - - SUM( - 11 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

skipif mysql # not compatible
query I rowsort label-8495
SELECT - - SUM ( - 11 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-99

query I rowsort
SELECT ALL + ( + col2 ) * + col2 + - col0 AS col1 FROM tab0
----
13
2194
9704

query I rowsort
SELECT DISTINCT col2 - + col1 * - - col0 AS col2 FROM tab1 AS cor0
----
-366
-4209
-618

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 47 col2 FROM tab1 cor0
----
-47
-47
-47

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 66 * 13 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 32 + - + 71 col1 FROM tab2 AS cor0
----
1209
1785
665

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN + col1 / - - 31 * - 6 / - col2 AND - + col0
----

query I rowsort
SELECT DISTINCT col0 * - 17 FROM tab1
----
-1445
-1547
-867

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 28 * 65 col0 FROM tab1
----
-1820

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 9 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8505
SELECT + + COUNT( * ) * - COUNT( * ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8505
SELECT + + COUNT ( * ) * - COUNT ( * ) FROM tab1 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8506
SELECT CAST( NULL AS DECIMAL ) * - ( + + COUNT( * ) ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT CAST ( NULL AS REAL ) * - ( + + COUNT ( * ) ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT + ( + - SUM( - - col1 ) ) FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8507
SELECT + ( + - SUM ( - - col1 ) ) FROM tab0
----
-103

query II rowsort
SELECT ALL - ( + 30 ) AS col1, + 9 FROM tab0 AS cor0
----
-30
9
-30
9
-30
9

query I rowsort
SELECT ALL + 15 * + col1 + + - col1 FROM tab2 AS cor0
----
1078
714
938

query I rowsort
SELECT ALL col1 + - + 42 AS col0 FROM tab1 AS cor0
----
-28
-37
5

query I rowsort
SELECT ALL + 86 + + col0 FROM tab1 AS cor0
----
137
171
177

query I rowsort
SELECT DISTINCT - col0 * - col1 + ( col2 ) + col2 + - 19 AS col0 FROM tab0 cor0
----
1290
1828
276

query I rowsort
SELECT + 22 + + col1 + + - col1 AS col2 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col2 + + col2 * col1 - col1 FROM tab0 AS cor0
----
197
199
3773

query I rowsort
SELECT DISTINCT - + col1 * - - col0 FROM tab1 WHERE NOT col1 / col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 22 + - 20 AS col0 FROM tab2
----
2

query III rowsort
SELECT * FROM tab2 WHERE - + 4 NOT BETWEEN col1 * - - ( + col0 ) + + 83 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( ( NULL ) BETWEEN col1 AND 2 * + col1 * + - 11 / - - col1 )
----

query I rowsort
SELECT - 72 AS col1 FROM tab1 WHERE - - 91 BETWEEN NULL AND NULL
----

query II rowsort
SELECT DISTINCT 15 AS col1, - col1 FROM tab0
----
15
-1
15
-21
15
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-8521
SELECT ALL - col1 * col1 + col2 - 65 DIV + - col1 - 35 AS col1 FROM tab0
----
-463
-6549
128

skipif mysql # not compatible
query I rowsort label-8521
SELECT ALL - col1 * col1 + col2 - 65 / + - col1 - 35 AS col1 FROM tab0
----
-463
-6549
128

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 94 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8523
SELECT DISTINCT + + col2 col1, CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8523
SELECT DISTINCT + + col2 col1, CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT col1 FROM tab1 cor0 WHERE col2 NOT BETWEEN ( 83 ) AND NULL
----
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8525
SELECT ALL - - CAST( + col2 AS SIGNED ) + + col1, 72 DIV - + 90 AS col1 FROM tab1 cor0
----
110
0
115
0
64
0

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL - - CAST ( + col2 AS INTEGER ) + + col1, 72 / - + 90 AS col1 FROM tab1 cor0
----
110
0
115
0
64
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8526
SELECT ALL - COUNT( * ) * 57 AS col1 FROM tab0
----
-171

skipif mysql # not compatible
query I rowsort label-8526
SELECT ALL - COUNT ( * ) * 57 AS col1 FROM tab0
----
-171

query I rowsort
SELECT + 60 + + col2 FROM tab0
----
107
159
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8528
SELECT COUNT( * ) + 6 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8528
SELECT COUNT ( * ) + 6 FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8529
SELECT DISTINCT - COUNT( * ) * - 56 - - 65 FROM tab2 WHERE NOT col2 IN ( + col0 * CAST( - 19 * ( + col2 ) AS SIGNED ) )
----
233

skipif mysql # not compatible
query I rowsort label-8529
SELECT DISTINCT - COUNT ( * ) * - 56 - - 65 FROM tab2 WHERE NOT col2 IN ( + col0 * CAST ( - 19 * ( + col2 ) AS INTEGER ) )
----
233

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT COUNT( ALL - col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8530
SELECT COUNT ( ALL - col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8531
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + CAST( ( col0 ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + CAST ( ( col0 ) AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NULL = col2
----

query III rowsort
SELECT * FROM tab2 WHERE + col2 > - col2 * + 25
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 84 - col2 FROM tab2
----
26
44
61

query I rowsort
SELECT ALL + col1 * 32 + ( 24 ) FROM tab0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8536
SELECT col0 * col1 + - CAST( - 0 AS SIGNED ) FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-8536
SELECT col0 * col1 + - CAST ( - 0 AS INTEGER ) FROM tab0
----
1215
1827
97

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN col0 + - col1 AND ( - ( + col2 ) )
----

query I rowsort
SELECT DISTINCT + 53 * 26 AS col2 FROM tab0
----
1378

query I rowsort
SELECT - col0 + + 24 * + col2 AS col2 FROM tab2
----
1317
506
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 27 * + col1 + col1
----

skipif mysql # not compatible
query I rowsort label-8540
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 27 * + col1 + col1
----

query I rowsort
SELECT - col2 + 37 * 19 FROM tab2
----
645
663
680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8542
SELECT DISTINCT CAST( 0 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8542
SELECT DISTINCT CAST ( 0 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + col0 + 10 FROM tab0
----
107
25
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT ALL + MAX( ALL 69 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-8544
SELECT ALL + MAX ( ALL 69 ) FROM tab1
----
69

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 10 * ( 50 ) ) IN ( col1 * - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - 79 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT + 26 <> ( col2 )
----

query I rowsort
SELECT ( 70 ) AS col0 FROM tab1 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - ( 42 ) AS col0 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NULL IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8551
SELECT ALL CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab0 WHERE col1 >= ( + col2 )
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab0 WHERE col1 >= ( + col2 )
----
NULL
NULL

query I rowsort
SELECT ALL 2 * 58 AS col1 FROM tab1
----
116
116
116

query I rowsort
SELECT 36 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

query I rowsort
SELECT col1 AS col0 FROM tab1 cor0 WHERE NULL < ( - 83 )
----

query I rowsort
SELECT ALL + 68 * 72 AS col1 FROM tab0 cor0
----
4896
4896
4896

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8556
SELECT + + COUNT( * ) * + 39 + CAST( - 14 AS SIGNED ) FROM tab1 cor0
----
103

skipif mysql # not compatible
query I rowsort label-8556
SELECT + + COUNT ( * ) * + 39 + CAST ( - 14 AS INTEGER ) FROM tab1 cor0
----
103

query I rowsort
SELECT - col2 + 81 * 80 AS col1 FROM tab0 AS cor0
----
6381
6433
6470

query I rowsort
SELECT col0 + + 56 * col2 AS col2 FROM tab2 AS cor0
----
1334
2304
3323

query I rowsort
SELECT + col0 * col1 + - ( col0 ) AS col2 FROM tab0 cor0
----
0
1200
1740

query I rowsort
SELECT ALL + - 14 + - col0 FROM tab1 AS cor0
----
-105
-65
-99

query I rowsort
SELECT + col2 / + col1 FROM tab0 WHERE NULL NOT IN ( + ( - 6 ) )
----

query III rowsort
SELECT * FROM tab0 WHERE col2 * 8 NOT IN ( - ( - col1 ) * + col2 - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col1 - col0 col1 FROM tab1
----
340
4186
663

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE ( col0 ) IS NULL
----

query I rowsort
SELECT ( - 49 ) FROM tab1 WHERE ( col0 * - 59 ) IS NULL
----

query I rowsort
SELECT 39 * col2 FROM tab2 WHERE ( col2 ) IS NOT NULL
----
1560
2262
897

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= ( - 92 )
----

query I rowsort
SELECT ALL 3 - - 3 * col1 FROM tab0
----
246
6
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT + 42 * - - MIN( CAST( 93 AS SIGNED ) ) AS col1 FROM tab1
----
3906

skipif mysql # not compatible
query I rowsort label-8569
SELECT + 42 * - - MIN ( CAST ( 93 AS INTEGER ) ) AS col1 FROM tab1
----
3906

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8570
SELECT DISTINCT - col0 * - CAST( + ( ( - col1 ) ) AS SIGNED ) * - col0 - - col2 FROM tab2 AS cor0
----
107939
315432
376933

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT - col0 * - CAST ( + ( ( - col1 ) ) AS INTEGER ) * - col0 - - col2 FROM tab2 AS cor0
----
107939
315432
376933

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT ALL + - COUNT( * ) * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8571
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8572
SELECT ALL + col1 * + + col2 + 63 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8572
SELECT ALL + col1 * + + col2 + 63 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col2 - + - col2 FROM tab1 cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8574
SELECT + MAX( - col1 ) FROM tab1 AS cor0 WHERE ( + col2 * + col0 ) <= ( + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8574
SELECT + MAX ( - col1 ) FROM tab1 AS cor0 WHERE ( + col2 * + col0 ) <= ( + col0 )
----
NULL

query I rowsort
SELECT DISTINCT + col0 + + col1 + - col1 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT + 30 + 47 AS col1 FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT DISTINCT - 82 * - col2 AS col0 FROM tab2
----
1886
3280
4756

query I rowsort
SELECT + 2 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT DISTINCT 58 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 36 * + 28 IN ( 60 )
----
58

query I rowsort
SELECT col2 + 76 FROM tab2
----
116
134
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> col2 * + 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - MIN( DISTINCT + col0 ) * - + COUNT( * ) AS col1 FROM tab1 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-8582
SELECT - MIN ( DISTINCT + col0 ) * - + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT DISTINCT - 70 * - COUNT( * ) - COUNT( * ) AS col0 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-8583
SELECT DISTINCT - 70 * - COUNT ( * ) - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
207

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 - 89 - + ( col1 ) NOT IN ( - col2 )
----
91
47
68

query II rowsort
SELECT - - col1 AS col1, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8586
SELECT ALL - col0 DIV - + ( + col2 ) + - 55 FROM tab1 AS cor0
----
-54
-54
-55

skipif mysql # not compatible
query I rowsort label-8586
SELECT ALL - col0 / - + ( + col2 ) + - 55 FROM tab1 AS cor0
----
-54
-54
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8587
SELECT ( + + ( col1 ) ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8587
SELECT ( + + ( col1 ) ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 71 AS col2 FROM tab2 AS cor0 WHERE NOT - col1 * + 29 * - ( - 30 ) - + col2 IS NULL
----
-71
-71
-71

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8589
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 * col0 AND CAST( NULL AS SIGNED ) + 80
----

skipif mysql # not compatible
query III rowsort label-8589
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col2 * col0 AND CAST ( NULL AS INTEGER ) + 80
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8590
SELECT - col0 * CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8590
SELECT - col0 * CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - col1 FROM tab2 AS cor0 WHERE NOT 75 IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT + COUNT( * ) * - - 56 + - COUNT( DISTINCT 63 + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
165

skipif mysql # not compatible
query I rowsort label-8592
SELECT + COUNT ( * ) * - - 56 + - COUNT ( DISTINCT 63 + col0 ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
165

query I rowsort
SELECT ALL + + col1 FROM tab2 WHERE - 2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8594
SELECT + COUNT( 35 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8594
SELECT + COUNT ( 35 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT col2 * + col1 AS col1 FROM tab0 WHERE NOT ( + - 47 ) = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 49 / - col2 = NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE + col1 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + col2 * + col2 + - 69 AS col0 FROM tab1 AS cor0
----
3412
4555
9147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8599
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + CAST( col0 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-8599
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + CAST ( col0 AS INTEGER ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8600
SELECT - - COUNT( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8600
SELECT - - COUNT ( * ) FROM tab0 WHERE NOT - col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-8601
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-8601
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IN ( - - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8602
SELECT col0 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8602
SELECT col0 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8603
SELECT DISTINCT + SUM( - col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8603
SELECT DISTINCT + SUM ( - col2 ) col0 FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-8604
SELECT ALL + + MIN( - col0 ) AS col0 FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8604
SELECT ALL + + MIN ( - col0 ) AS col0 FROM tab2 cor0
----
-75

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 / - + 49 <> col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8606
SELECT + MAX( ALL 82 ) DIV + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8606
SELECT + MAX ( ALL 82 ) / + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 64 + - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + 72 NOT IN ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - - col1 / + + col0 = 23 + + 25 AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col1 * + 25 + 20 AS col2 FROM tab1 cor0
----
1195
145
370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8611
SELECT DISTINCT col1 * - - col1 * - + 20 + + - 49 * CAST( col2 AS SIGNED ) * - col1 FROM tab1
----
112424
13955
61936

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT col1 * - - col1 * - + 20 + + - 49 * CAST ( col2 AS INTEGER ) * - col1 FROM tab1
----
112424
13955
61936

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 + 31 NOT IN ( - ( + col0 ) + + 99 / col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 + + + 56 + col0 FROM tab1
----
200
203
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8614
SELECT DISTINCT CAST( 6 AS SIGNED ) - - + COUNT( * ) + + 51 AS col0 FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-8614
SELECT DISTINCT CAST ( 6 AS INTEGER ) - - + COUNT ( * ) + + 51 AS col0 FROM tab0
----
60

query I rowsort
SELECT + 7 * - col1 + + + 92 FROM tab0
----
-475
-55
85

query I rowsort
SELECT - col0 + + col0 + + col2 AS col2 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT + col2 * - - 32 - + col0 FROM tab2
----
1216
1781
690

query I rowsort
SELECT - col0 + 60 FROM tab2 WHERE ( col0 ) / ( + - col1 ) + 88 / + 27 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8619
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab1 WHERE NOT - col1 + - col2 * - col2 NOT IN ( - col0 / - col2 )
----

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab1 WHERE NOT - col1 + - col2 * - col2 NOT IN ( - col0 / - col2 )
----

query I rowsort
SELECT ALL + col0 * col1 - + 28 AS col0 FROM tab0 AS cor0
----
1187
1799
69

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 / col0 < - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - + col1 - col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 15 - + col1 FROM tab2 AS cor0
----
-36
-52
-62

query I rowsort
SELECT DISTINCT col2 + col2 + 4 * + col1 - + 44 + ( - col0 ) * col0 FROM tab1 AS cor0
----
-2397
-7131
-8001

query I rowsort
SELECT ALL + 24 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b0d834ef9e4346801b6aaa0e74b2c8ef

onlyif mysql # aggregate syntax: 
query II rowsort label-8626
SELECT DISTINCT COUNT( * ) * + + 69, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
207
3

skipif mysql # not compatible
query II rowsort label-8626
SELECT DISTINCT COUNT ( * ) * + + 69, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
207
3

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8628
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE - 35 IN ( + + CAST( - - col1 AS SIGNED ) + + 96 )
----

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE - 35 IN ( + + CAST ( - - col1 AS INTEGER ) + + 96 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) / COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8629
SELECT DISTINCT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8630
SELECT ALL + col2 DIV - + 60 + - col1 * + 3 AS col2 FROM tab0 AS cor0
----
-243
-4
-63

skipif mysql # not compatible
query I rowsort label-8630
SELECT ALL + col2 / - + 60 + - col1 * + 3 AS col2 FROM tab0 AS cor0
----
-243
-4
-63

query I rowsort
SELECT ALL - 63 FROM tab0 cor0 WHERE NOT NULL < 41
----

query I rowsort
SELECT col2 FROM tab1 WHERE NOT - + col1 + col0 IS NULL
----
59
68
96

query I rowsort
SELECT col1 * + + 87 AS col1 FROM tab0
----
1827
7047
87

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ALL + COUNT( * ) * + ( - + 10 ) AS col1 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-8635
SELECT ALL + COUNT ( * ) * + ( - + 10 ) AS col1 FROM tab2
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-8636
SELECT - col1 DIV + - 6 FROM tab0
----
0
13
3

skipif mysql # not compatible
query I rowsort label-8636
SELECT - col1 / + - 6 FROM tab0
----
0
13
3

query II rowsort
SELECT ALL + col1, col2 * + col2 FROM tab2
----
51
529
67
3364
77
1600

query II rowsort
SELECT DISTINCT col0, + col2 + 77 + + - col0 * + col0 AS col0 FROM tab0 WHERE + + col0 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 79 NOT BETWEEN + col2 + 75 - - 31 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT ALL - MIN( - + 52 ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-8640
SELECT ALL - MIN ( - + 52 ) FROM tab1
----
52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8641
SELECT - MIN( DISTINCT CAST( - ( col1 ) AS SIGNED ) ) + MAX( - 45 ) FROM tab0 WHERE NOT ( CAST( col2 AS SIGNED ) ) <> col2 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8641
SELECT - MIN ( DISTINCT CAST ( - ( col1 ) AS INTEGER ) ) + MAX ( - 45 ) FROM tab0 WHERE NOT ( CAST ( col2 AS INTEGER ) ) <> col2 + + col0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8642
SELECT DISTINCT - 23 + - CAST( NULL AS SIGNED ) / + - MIN( DISTINCT + col0 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8642
SELECT DISTINCT - 23 + - CAST ( NULL AS INTEGER ) / + - MIN ( DISTINCT + col0 ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT + col0 - + col0 FROM tab2 WHERE + col2 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8644
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab1, tab1 AS cor0 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT - + col0 + - - 31 AS col0 FROM tab2 AS cor0
----
-15
-33
-44

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0, col2 )
----

query I rowsort
SELECT - col2 + 20 FROM tab0 cor0 WHERE NULL IS NULL
----
-27
-79
10

query I rowsort
SELECT DISTINCT + 78 - - - ( - 1 ) AS col1 FROM tab1
----
79

query I rowsort
SELECT ALL col2 + - - 65 * + - col0 + + + 18 + + - col2 - - ( - col2 ) * - + col2 * col1 * - col1 AS col1 FROM tab1
----
-10220313
-1809633
-92532

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8650
SELECT - CAST( + + col1 AS SIGNED ) * col1 - - ( col1 ) AS col0, col1 DIV - CAST( - 51 AS SIGNED ) - - + 64 FROM tab2
----
-2550
65
-4422
65
-5852
65

skipif mysql # not compatible
query II rowsort label-8650
SELECT - CAST ( + + col1 AS INTEGER ) * col1 - - ( col1 ) AS col0, col1 / - CAST ( - 51 AS INTEGER ) - - + 64 FROM tab2
----
-2550
65
-4422
65
-5852
65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8651
SELECT ALL - CAST( + - col0 AS SIGNED ) * col2 - + col1 AS col2 FROM tab0
----
624
849
9602

skipif mysql # not compatible
query I rowsort label-8651
SELECT ALL - CAST ( + - col0 AS INTEGER ) * col2 - + col1 AS col2 FROM tab0
----
624
849
9602

query III rowsort
SELECT * FROM tab0 WHERE col1 NOT IN ( - - col2 * + 58 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT ( col1 ) <= NULL )
----

query II rowsort
SELECT DISTINCT - + col0 AS col1, - col1 FROM tab0 AS cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8655
SELECT DISTINCT - COUNT( * ) * - 79 AS col0 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-8655
SELECT DISTINCT - COUNT ( * ) * - 79 AS col0 FROM tab0
----
237

onlyif mysql # DIV for integer division: 
query I rowsort label-8656
SELECT ALL - - col0 DIV + + 29 AS col0 FROM tab2 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - - col0 / + + 29 AS col0 FROM tab2 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT - 13 + - + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-13

skipif mysql # not compatible
query I rowsort label-8657
SELECT - 13 + - + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
-13

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 61 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8659
SELECT ALL + col1 DIV col2 AS col1, col0 FROM tab2 AS cor0
----
1
64
1
75
2
46

skipif mysql # not compatible
query II rowsort label-8659
SELECT ALL + col1 / col2 AS col1, col0 FROM tab2 AS cor0
----
1
64
1
75
2
46

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE col2 / - col2 IN ( 82 * - - 65 / - 99 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8661
SELECT DISTINCT - + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8661
SELECT DISTINCT - + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - COUNT( * ) FROM tab0 cor0 WHERE NOT 17 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT - COUNT ( * ) FROM tab0 cor0 WHERE NOT 17 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8663
SELECT DISTINCT - CAST( + 28 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT - CAST ( + 28 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8664
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE NOT ( col2 * - 81 + - + 79 + + + col1 / - CAST( NULL AS SIGNED ) ) NOT BETWEEN col1 * - + ( - + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8664
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( col2 * - 81 + - + 79 + + + col1 / - CAST ( NULL AS INTEGER ) ) NOT BETWEEN col1 * - + ( - + col1 ) AND NULL
----
0

query II rowsort
SELECT DISTINCT + 78 * - + col2 AS col2, - 14 FROM tab0
----
-3666
-14
-7722
-14
-780
-14

query I rowsort
SELECT ALL - - col1 AS col2 FROM tab0 WHERE NOT 34 NOT BETWEEN + col1 AND col2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8667
SELECT MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) / COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) / COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8668
SELECT ( COUNT( - - col2 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8668
SELECT ( COUNT ( - - col2 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT ALL + SUM( DISTINCT col1 ) DIV - SUM( - + col2 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8669
SELECT ALL + SUM ( DISTINCT col1 ) / - SUM ( - + col2 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col2 + + 83 + col1 FROM tab2 AS cor0
----
111
120
92

query II rowsort
SELECT ( - col0 ) * - col2, col2 AS col1 FROM tab1
----
4896
96
5015
59
6188
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 col1 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8673
SELECT ALL - - 29, - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
29
NULL
29
NULL
29
NULL

skipif mysql # not compatible
query II rowsort label-8673
SELECT ALL - - 29, - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
29
NULL
29
NULL
29
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL - SUM( - ( - col0 ) ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL - SUM ( - ( - col0 ) ) FROM tab0 AS cor0
----
-199

query I rowsort
SELECT ALL 43 + + col1 AS col0 FROM tab2 cor0
----
110
120
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8676
SELECT - col2 DIV + col0 + - + col1 + + col0 * col0 * - ( - - 28 ) FROM tab0 AS cor0
----
-211953
-263454
-6384

skipif mysql # not compatible
query I rowsort label-8676
SELECT - col2 / + col0 + - + col1 + + col0 * col0 * - ( - - 28 ) FROM tab0 AS cor0
----
-211953
-263454
-6384

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - - COUNT( * ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8677
SELECT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL > ( NULL )
----
0

query I rowsort
SELECT - 23 + + + 4 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-8679
SELECT DISTINCT - col2 DIV + - col2 + - - col1 + - - 0 + + 78 col1 FROM tab1
----
126
84
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8679
SELECT DISTINCT - col2 / + - col2 + - - col1 + - - 0 + + 78 col1 FROM tab1
----
126
84
93

query I rowsort
SELECT + 27 + + 81 FROM tab0
----
108
108
108

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8681
SELECT DISTINCT + COUNT( * ) + + CAST( - COUNT( * ) AS SIGNED ) col0 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8681
SELECT DISTINCT + COUNT ( * ) + + CAST ( - COUNT ( * ) AS INTEGER ) col0 FROM tab0
----
0

query I rowsort
SELECT ( - 31 ) + - - col0 AS col0 FROM tab1
----
20
54
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8683
SELECT ALL 64 DIV + 59 + COUNT( * ) + + MAX( DISTINCT - 66 ) AS col2 FROM tab0
----
-62

skipif mysql # not compatible
query I rowsort label-8683
SELECT ALL 64 / + 59 + COUNT ( * ) + + MAX ( DISTINCT - 66 ) AS col2 FROM tab0
----
-62

query I rowsort
SELECT ALL + ( + + 83 ) AS col2 FROM tab2 WHERE NULL >= + + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT DISTINCT - MAX( - 27 ) - - 22 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-8685
SELECT DISTINCT - MAX ( - 27 ) - - 22 FROM tab1
----
49

query I rowsort
SELECT + col1 + + ( col2 ) FROM tab1
----
110
115
64

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + ( col2 ) ) + - col2 FROM tab0 AS cor0 WHERE NOT col0 + + + col2 > ( - col2 / 1 * col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + col1 * + col1 + 41 col0, - 50 FROM tab0 AS cor0
----
-38326
-50
-56
-50
-98374
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT ALL - 63 - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

skipif mysql # not compatible
query I rowsort label-8690
SELECT ALL - 63 - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-72

query I rowsort
SELECT ALL - 16 AS col0 FROM tab1 cor0
----
-16
-16
-16

query II rowsort
SELECT DISTINCT - col0, + col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query II rowsort
SELECT DISTINCT 95 * + col2 + - col2 AS col0, + 58 FROM tab0 AS cor0
----
4418
58
9306
58
940
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL + 5 * + COUNT( * ) FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-8694
SELECT ALL + 5 * + COUNT ( * ) FROM tab2 AS cor0
----
15

query II rowsort
SELECT col1 + + + col1, - col0 AS col1 FROM tab1
----
10
-85
28
-51
94
-91

query I rowsort
SELECT ALL + col1 + + - 38 FROM tab0
----
-17
-37
43

onlyif mysql # DIV for integer division: 
query II rowsort label-8697
SELECT col1 AS col1, - 60 + 39 DIV + - col2 * + col1 * - 47 AS col2 FROM tab1
----
14
-60
47
-60
5
-60

skipif mysql # not compatible
query II rowsort label-8697
SELECT col1 AS col1, - 60 + 39 / + - col2 * + col1 * - 47 AS col2 FROM tab1
----
14
-60
47
-60
5
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-8698
SELECT ALL + col2 DIV + + col0 col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8698
SELECT ALL + col2 / + + col0 col0 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE - col2 + 47 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 22 * + ( + + 42 ) AS col2 FROM tab0
----
924

query I rowsort
SELECT + + 84 * + 15 + + 29 FROM tab1 AS cor0
----
1289
1289
1289

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 >= + 26
----
15
81
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8703
SELECT COUNT( * ) DIV + 51 * + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8703
SELECT COUNT ( * ) / + 51 * + - COUNT ( * ) FROM tab0 cor0
----
0

query II rowsort
SELECT - col0 - - col0 AS col2, - ( col1 ) AS col2 FROM tab0 AS cor0
----
0
-1
0
-21
0
-81

query I rowsort
SELECT DISTINCT - 38 AS col0 FROM tab0 WHERE NULL NOT BETWEEN 54 + col0 * - + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 75 NOT BETWEEN + col0 AND 60 * - col0 * - col1 - + - col2 - - col0 * col1 * - - col1
----

query I rowsort
SELECT col2 * + col2 + col1 + - 25 FROM tab1
----
3461
4646
9205

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8708
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( 34 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8708
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( 34 AS INTEGER ) > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8709
SELECT DISTINCT + col2 - + col2 DIV col0 FROM tab0 AS cor0
----
10
44
98

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT + col2 - + col2 / col0 FROM tab0 AS cor0
----
10
44
98

query I rowsort
SELECT DISTINCT - - col1 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query I rowsort
SELECT col1 * col0 * - - col0 AS col2 FROM tab1 AS cor0
----
36125
36414
389207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8712
SELECT + CAST( NULL AS SIGNED ) / + 4 AS col1, ( 26 ) FROM tab0 AS cor0
----
NULL
26
NULL
26
NULL
26

skipif mysql # not compatible
query II rowsort label-8712
SELECT + CAST ( NULL AS INTEGER ) / + 4 AS col1, ( 26 ) FROM tab0 AS cor0
----
NULL
26
NULL
26
NULL
26

onlyif mysql # DIV for integer division: 
query I rowsort label-8713
SELECT + col1 DIV + col0 - - + col1 * + + 47 + - 70 - col2 FROM tab0 cor0
----
-122
3695
907

skipif mysql # not compatible
query I rowsort label-8713
SELECT + col1 / + col0 - - + col1 * + + 47 + - 70 - col2 FROM tab0 cor0
----
-122
3695
907

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - col0, - col0 col0 FROM tab0 AS cor0
----
-225
-15
-7569
-87
-9409
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8715
SELECT + AVG ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col2 * + CAST( col2 AS SIGNED ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-8715
SELECT + AVG ( DISTINCT + col2 ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( col2 * + CAST ( col2 AS INTEGER ) )
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * + col2 BETWEEN - col1 AND + col1 * + col0 + col2 + - col0
----
15
81
47
87
21
10

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT 79 FROM tab1 WHERE NOT - col2 IS NULL
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 42, - 19 + - col1 col1 FROM tab0
----
42
-100
42
-20
42
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8720
SELECT + MAX( - - col1 ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-8720
SELECT + MAX ( - - col1 ) FROM tab0
----
81

query I rowsort
SELECT + - ( - + col2 ) AS col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query II rowsort label-8722
SELECT ALL + 38 AS col0, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
38
-3

skipif mysql # not compatible
query II rowsort label-8722
SELECT ALL + 38 AS col0, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
38
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT + MIN( DISTINCT - 36 ) - 75 AS col0 FROM tab0 AS cor0 WHERE NOT 18 <> col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT + MIN ( DISTINCT - 36 ) - 75 AS col0 FROM tab0 AS cor0 WHERE NOT 18 <> col0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 - - - ( - + 94 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8725
SELECT + COUNT( * ) * 93 AS col2, - 31 FROM tab2
----
279
-31

skipif mysql # not compatible
query II rowsort label-8725
SELECT + COUNT ( * ) * 93 AS col2, - 31 FROM tab2
----
279
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-8726
SELECT - COUNT( 7 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8726
SELECT - COUNT ( 7 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT + ( + ( - + col0 ) ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( + 65 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 82 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 96 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8731
SELECT ALL 71 / col1 + + + col2 + + ( col0 ) + 38 * + CAST( NULL AS DECIMAL ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8731
SELECT ALL 71 / col1 + + + col2 + + ( col0 ) + 38 * + CAST ( NULL AS REAL ) * col0 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8732
SELECT * FROM tab0 WHERE CAST( + + col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8732
SELECT * FROM tab0 WHERE CAST ( + + col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 + 82 + - + 52 AS col2 FROM tab0
----
-57
-67
15

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 BETWEEN + - 32 AND - 18 / - 26 + - col0 + - ( + ( 21 ) ) + - 4 + - ( - col0 ) + - col0 * col1 + + col1
----

query I rowsort
SELECT + col1 + 6 FROM tab1
----
11
20
53

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 + + + col0 + + col1 + col1 - 35 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8737
SELECT COUNT( * ) + - 34 * - - 32 * + 91 AS col1 FROM tab0
----
-99005

skipif mysql # not compatible
query I rowsort label-8737
SELECT COUNT ( * ) + - 34 * - - 32 * + 91 AS col1 FROM tab0
----
-99005

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col2 ) BETWEEN - 45 AND 49 + col1 + - col1
----
46
51
23
64
77
40

query I rowsort
SELECT DISTINCT - - 46 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
46

query III rowsort
SELECT * FROM tab2 WHERE + 33 < NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 LEFT JOIN tab2 cor1 ON NOT NULL <> NULL
----
18 values hashing to 3bb2bca130a6dfa84e4c44460040062d

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col1 * col2 - + + 51 )
----

query I rowsort
SELECT ALL - col0 - + col2 FROM tab0 cor0
----
-196
-62
-97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 AND + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8745
SELECT 35 DIV ( col1 ) FROM tab1 cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-8745
SELECT 35 / ( col1 ) FROM tab1 cor0
----
0
2
7

query II rowsort
SELECT + col2 AS col1, 0 + + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT + + col1 * - col1 * 82 - col2 FROM tab0 AS cor0
----
-181
-36172
-538049

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT + MAX( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT + MAX ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col2 * + ( - 83 ) AS col0 FROM tab1
----
-4897
-5644
-7968

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 WHERE NOT NULL IN ( - col1, - col1 * + col0 + + 56 * + 5, col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8751
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8751
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8752
SELECT DISTINCT + SUM( DISTINCT - + 76 ) AS col1 FROM tab1
----
-76

skipif mysql # not compatible
query I rowsort label-8752
SELECT DISTINCT + SUM ( DISTINCT - + 76 ) AS col1 FROM tab1
----
-76

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query II rowsort label-8754
SELECT DISTINCT + + ( COUNT( * ) ), 59 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0
59

skipif mysql # not compatible
query II rowsort label-8754
SELECT DISTINCT + + ( COUNT ( * ) ), 59 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----
0
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8755
SELECT ALL COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT 88 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8755
SELECT ALL COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT 88 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 NOT IN ( + ( + col0 ), col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + - COUNT( * ) + - 70 * MAX( col2 ) FROM tab0 cor0
----
-6933

skipif mysql # not compatible
query I rowsort label-8757
SELECT + - COUNT ( * ) + - 70 * MAX ( col2 ) FROM tab0 cor0
----
-6933

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 20 + + - ( - col0 ) col0 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT col1 + + 8 + col2 FROM tab1 AS cor0
----
118
123
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8760
SELECT + COUNT( * ) * CAST( NULL AS SIGNED ) + - 24 + + + 61 * + COUNT( * ) + - MIN( - - 41 ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8760
SELECT + COUNT ( * ) * CAST ( NULL AS INTEGER ) + - 24 + + + 61 * + COUNT ( * ) + - MIN ( - - 41 ) col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col0 + + col0 + - + col0 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8762
SELECT DISTINCT + 81 + + COUNT( * ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-8762
SELECT DISTINCT + 81 + + COUNT ( * ) FROM tab2 AS cor0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8763
SELECT ALL CAST( + col1 AS SIGNED ) + - - col0 FROM tab0 AS cor0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-8763
SELECT ALL CAST ( + col1 AS INTEGER ) + - - col0 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT ALL 51 + - col2 AS col2 FROM tab2 AS cor0
----
-7
11
28

query I rowsort
SELECT DISTINCT + 11 + + col0 FROM tab2 AS cor0
----
57
75
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8766
SELECT ALL - COUNT( * ) * 24 FROM tab2, tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-8766
SELECT ALL - COUNT ( * ) * 24 FROM tab2, tab0 AS cor0
----
-216

query III rowsort
SELECT * FROM tab2 WHERE - - 49 + + col2 = 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 90 - - 9 col0, 67 AS col0 FROM tab2 AS cor0
----
-81
67
-81
67
-81
67

query I rowsort
SELECT ALL 87 * + 41 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8770
SELECT ALL + - col1 AS col2 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-8770
SELECT ALL + - col1 AS col2 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-14
-47
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8771
SELECT - CAST( NULL AS SIGNED ) + - col0 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8771
SELECT - CAST ( NULL AS INTEGER ) + - col0 + - col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8772
SELECT - CAST( + - ( - - col1 ) AS DECIMAL ) / - col1 col1 FROM tab0 WHERE col2 < + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8772
SELECT - CAST ( + - ( - - col1 ) AS REAL ) / - col1 col1 FROM tab0 WHERE col2 < + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8773
SELECT - MIN( 65 ) FROM tab2 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-8773
SELECT - MIN ( 65 ) FROM tab2 cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8774
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8774
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT ( - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-8776
SELECT DISTINCT - 7 DIV 9 + + 25 FROM tab0 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT - 7 / 9 + + 25 FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + col0 * - - col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
1058
2560
4350

query I rowsort
SELECT 86 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
86
86
86

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8779
SELECT ALL - 4 DIV MIN( + col0 ) FROM tab0 WHERE NOT - - 37 + + - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8779
SELECT ALL - 4 / MIN ( + col0 ) FROM tab0 WHERE NOT - - 37 + + - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8780
SELECT ALL - MIN( - + col2 ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8780
SELECT ALL - MIN ( - + col2 ) FROM tab0
----
99

query II rowsort
SELECT ALL col2 AS col1, + col0 * ( + + col2 ) AS col1 FROM tab0
----
10
870
47
705
99
9603

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 93 >= col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8783
SELECT ALL SUM( col1 ) DIV COUNT( * ) AS col0 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-8783
SELECT ALL SUM ( col1 ) / COUNT ( * ) AS col0 FROM tab1
----
22

query I rowsort
SELECT DISTINCT - col1 * + 5 * col0 AS col1 FROM tab1
----
-2125
-21385
-3570

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + col2, + col0 + col0 * - + 9 + + 50 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8786
SELECT col0 AS col2, 60 + - 86 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8786
SELECT col0 AS col2, 60 + - 86 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

query II rowsort
SELECT - - 82, col0 AS col0 FROM tab1 AS cor0
----
82
51
82
85
82
91

onlyif mysql # aggregate syntax: 
query II rowsort label-8788
SELECT + + COUNT( * ), - 33 AS col0 FROM tab2 AS cor0
----
3
-33

skipif mysql # not compatible
query II rowsort label-8788
SELECT + + COUNT ( * ), - 33 AS col0 FROM tab2 AS cor0
----
3
-33

query I rowsort
SELECT ALL + col2 * - 93 * - col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8790
SELECT ALL - 12 DIV - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-8790
SELECT ALL - 12 / - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8791
SELECT ( - CAST( col0 AS SIGNED ) ) + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8791
SELECT ( - CAST ( col0 AS INTEGER ) ) + + col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, + ( col0 ) col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT + ( + 12 ) + + col0 * - ( + col2 ) FROM tab2
----
-1046
-2548
-4338

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT DISTINCT COUNT( * ) * 21 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-8794
SELECT DISTINCT COUNT ( * ) * 21 FROM tab2
----
63

query I rowsort
SELECT col2 * 70 AS col2 FROM tab1
----
4130
4760
6720

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT MIN( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8796
SELECT MIN ( ALL col2 ) AS col1 FROM tab1 AS cor0
----
59

query I rowsort
SELECT DISTINCT - + ( + - 88 ) FROM tab1 AS cor0
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 + 71 col2 FROM tab0 AS cor0
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8799
SELECT DISTINCT - col1 + + 67 + + - CAST( NULL AS SIGNED ) * - col0 AS col2 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8799
SELECT DISTINCT - col1 + + 67 + + - CAST ( NULL AS INTEGER ) * - col0 AS col2 FROM tab1 cor0
----
NULL

query II rowsort
SELECT DISTINCT ( - col0 ), col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT - col0 + ( 70 ) + + 60 FROM tab1 cor0
----
39
45
79

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE 33 IS NULL
----

query I rowsort
SELECT + 20 + + col1 AS col1 FROM tab1
----
25
34
67

query I rowsort
SELECT 19 + - - col1 FROM tab0
----
100
20
40

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT - COUNT( * ) + + + ( + 94 ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-8805
SELECT - COUNT ( * ) + + + ( + 94 ) FROM tab0
----
91

query I rowsort
SELECT ALL 87 + col0 AS col0 FROM tab1
----
138
172
178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 51 col1 FROM tab2
----
102
118
128

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8808
SELECT 6 + - + CAST( NULL AS SIGNED ) - + col1 + + col1 * col2 col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8808
SELECT 6 + - + CAST ( NULL AS INTEGER ) - + col1 + + col1 * col2 col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - + 57 * + 79 + 4 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <> - 6
----

query I rowsort
SELECT DISTINCT - - col0 + - col1 * + 30 - col2 FROM tab1 AS cor0
----
-124
-1387
-465

query I rowsort
SELECT - - 95 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL col0 + + + 26 * - + col1 FROM tab0
----
-2091
-459
71

query I rowsort
SELECT ALL 49 * - - col2 + - 84 AS col1 FROM tab0 AS cor0
----
2219
406
4767

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col0 ) >= + 98
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + 71
----

query II rowsort
SELECT - col0 * - + 88 * col2, 23 AS col1 FROM tab2
----
225280
23
382800
23
93104
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8818
SELECT COUNT( * ) * - MIN( - col0 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-8818
SELECT COUNT ( * ) * - MIN ( - col0 ) FROM tab0
----
291

query I rowsort
SELECT DISTINCT ( + 37 ) FROM tab2
----
37

query I rowsort
SELECT - 73 * - - 79 AS col0 FROM tab0
----
-5767
-5767
-5767

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8821
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( col0 BETWEEN + col0 AND - + CAST( - ( - + 32 ) AS DECIMAL ) )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8821
SELECT DISTINCT - col0 FROM tab0 WHERE NOT ( col0 BETWEEN + col0 AND - + CAST ( - ( - + 32 ) AS REAL ) )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8822
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + 99 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8822
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + 99 col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL <> - col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8824
SELECT ALL 5 DIV + + col2 * - 55 AS col0, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

skipif mysql # not compatible
query II rowsort label-8824
SELECT ALL 5 / + + col2 * - 55 AS col0, - col2 AS col1 FROM tab2
----
0
-23
0
-40
0
-58

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8825
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT ( + ( col2 ) * - col2 - - col2 NOT BETWEEN - 45 * - ( - col0 ) - + - CAST( NULL AS DECIMAL ) - - col2 AND NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8825
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( + ( col2 ) * - col2 - - col2 NOT BETWEEN - 45 * - ( - col0 ) - + - CAST ( NULL AS REAL ) - - col2 AND NULL )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8826
SELECT + col2 FROM tab2 WHERE NOT + CAST( col0 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8826
SELECT + col2 FROM tab2 WHERE NOT + CAST ( col0 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 - + + col1 / + 32 FROM tab1 cor0 WHERE col2 / + col1 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT - ( - + ( SUM( 83 ) ) ) FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-8828
SELECT - ( - + ( SUM ( 83 ) ) ) FROM tab2 AS cor0
----
249

query I rowsort
SELECT - + 56 * - 68 FROM tab2 AS cor0
----
3808
3808
3808

query I rowsort
SELECT ALL + + col2 + + ( + - 23 ) + + col2 * + - ( col2 ) + + 55 * 17 FROM tab0 AS cor0
----
-1250
-8790
822

query I rowsort
SELECT - 51 + 96 AS col2 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8832
SELECT DISTINCT + col1 - - col1 FROM tab2 AS cor0 WHERE NOT + 35 <= - + CAST( col2 AS SIGNED ) + - 81
----
102
134
154

skipif mysql # not compatible
query I rowsort label-8832
SELECT DISTINCT + col1 - - col1 FROM tab2 AS cor0 WHERE NOT + 35 <= - + CAST ( col2 AS INTEGER ) + - 81
----
102
134
154

query II rowsort
SELECT DISTINCT - col0 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-8834
SELECT - col0 + + 35 DIV - - col2 FROM tab0 AS cor0
----
-15
-84
-97

skipif mysql # not compatible
query I rowsort label-8834
SELECT - col0 + + 35 / - - col2 FROM tab0 AS cor0
----
-15
-84
-97

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( + + col2 ) * - - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab2 AS cor0 WHERE NULL <= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT SUM( - - col0 ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-8837
SELECT SUM ( - - col0 ) FROM tab2 AS cor0
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8838
SELECT DISTINCT - ( COUNT( * ) ) + + 1 DIV - MAX( ALL + col0 ) AS col0, - 62 - - CAST( - 93 AS SIGNED ) + 33 AS col0 FROM tab1
----
-3
-122

skipif mysql # not compatible
query II rowsort label-8838
SELECT DISTINCT - ( COUNT ( * ) ) + + 1 / - MAX ( ALL + col0 ) AS col0, - 62 - - CAST ( - 93 AS INTEGER ) + 33 AS col0 FROM tab1
----
-3
-122

query III rowsort
SELECT * FROM tab2 WHERE - ( - col1 ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT DISTINCT - SUM( + 99 ) + - 17 FROM tab2
----
-314

skipif mysql # not compatible
query I rowsort label-8840
SELECT DISTINCT - SUM ( + 99 ) + - 17 FROM tab2
----
-314

query I rowsort
SELECT col2 - - - ( 23 ) + + - 50 * + + 75 AS col2 FROM tab1
----
-3677
-3705
-3714

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT DISTINCT SUM( ALL - 91 ) FROM tab0
----
-273

skipif mysql # not compatible
query I rowsort label-8842
SELECT DISTINCT SUM ( ALL - 91 ) FROM tab0
----
-273

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( ( 15 IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT MAX( ALL - 42 ) col1 FROM tab0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8844
SELECT MAX ( ALL - 42 ) col1 FROM tab0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8845
SELECT col1 * CAST( + col0 AS SIGNED ) * + - 1 * + - col0 AS col1 FROM tab1 AS cor0
----
36125
36414
389207

skipif mysql # not compatible
query I rowsort label-8845
SELECT col1 * CAST ( + col0 AS INTEGER ) * + - 1 * + - col0 AS col1 FROM tab1 AS cor0
----
36125
36414
389207

query II rowsort
SELECT DISTINCT - + 84 AS col1, + 10 FROM tab1 cor0
----
-84
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8847
SELECT - COUNT( + + 62 ) * + COUNT( * ) - - COUNT( ALL + col2 ) + - + 50 col1 FROM tab0
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8847
SELECT - COUNT ( + + 62 ) * + COUNT ( * ) - - COUNT ( ALL + col2 ) + - + 50 col1 FROM tab0
----
-56

query II rowsort
SELECT DISTINCT col0 * 47, col0 FROM tab2
----
2162
46
3008
64
3525
75

query I rowsort
SELECT + - col1 AS col1 FROM tab0 WHERE NOT - 52 IS NOT NULL
----

query I rowsort
SELECT + col0 * - 77 AS col2 FROM tab1
----
-3927
-6545
-7007

query I rowsort
SELECT ALL + ( + 51 ) AS col0 FROM tab0
----
51
51
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8852
SELECT - col0 FROM tab1 WHERE NOT - ( - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8852
SELECT - col0 FROM tab1 WHERE NOT - ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8853
SELECT - ( + ( + CAST( + col2 AS SIGNED ) ) ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8853
SELECT - ( + ( + CAST ( + col2 AS INTEGER ) ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL col0 * - 91 * - col0 AS col0 FROM tab0
----
20475
688779
856219

query II rowsort
SELECT - col1 * + col2, + col1 FROM tab2
----
-1173
51
-3080
77
-3886
67

query I rowsort
SELECT col0 + col1 - - 91 AS col1 FROM tab1 AS cor0
----
156
181
229

query I rowsort
SELECT + ( - 92 ) + + col2 AS col2 FROM tab2 AS cor0
----
-34
-52
-69

query I rowsort
SELECT ALL - 70 AS col0 FROM tab0 cor0
----
-70
-70
-70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT + - col0 > NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE - - 60 IS NULL
----

query I rowsort
SELECT + - 52 * + col0 AS col2 FROM tab2 AS cor0
----
-2392
-3328
-3900

query I rowsort
SELECT - col0 * ( col2 ) + + col0 AS col2 FROM tab2 AS cor0
----
-1012
-2496
-4275

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 BETWEEN - 59 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8864
SELECT ALL - - ( + COUNT( * ) ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8864
SELECT ALL - - ( + COUNT ( * ) ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8865
SELECT DISTINCT COUNT( * ) * + ( + 95 ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-8865
SELECT DISTINCT COUNT ( * ) * + ( + 95 ) FROM tab1 AS cor0
----
285

query I rowsort
SELECT + 85 + + 73 * + - col0 AS col0 FROM tab0 AS cor0
----
-1010
-6266
-6996

query I rowsort
SELECT - - 2 AS col2 FROM tab1 AS cor0 WHERE + col0 / 67 * - - col1 IS NOT NULL
----
2
2
2

query I rowsort
SELECT + ( - ( + col0 ) ) + + ( + col1 ) * + col1 FROM tab1 AS cor0
----
-60
145
2118

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN + col0 + - 54 * - - 67 * - col0 AND - ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8870
SELECT DISTINCT CAST( NULL AS SIGNED ) - col1 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col1 AS col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8871
SELECT - col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) * - 5 IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8871
SELECT - col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) * - 5 IS NULL
----
-15
-87
-97

query I rowsort
SELECT ALL 7 - col0 + - col2 + - col1 * 10 AS col0 FROM tab2
----
-572
-796
-867

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8873
SELECT + 55 * - - 9 * CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8873
SELECT + 55 * - - 9 * CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + + col0 AS col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-8875
SELECT ALL 29 DIV + 41 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL 29 / + 41 FROM tab1 cor0
----
0
0
0

query I rowsort
SELECT col0 * - col1 * + 6 * - col2 AS col2 FROM tab1 AS cor0
----
150450
1745016
411264

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 * + 54 IS NOT NULL
----

query I rowsort
SELECT col1 * + ( col1 ) FROM tab0
----
1
441
6561

query I rowsort
SELECT + - col0 + 26 + + col1 AS col2 FROM tab1 WHERE NOT NULL <= - ( col2 )
----

query I rowsort
SELECT + col1 - + 38 FROM tab1 AS cor0 WHERE NOT NULL <> - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL + 73 + - COUNT( * ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + 73 + - COUNT ( * ) FROM tab0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT 79 * + + COUNT( * ) AS col0 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-8883
SELECT 79 * + + COUNT ( * ) AS col0 FROM tab0
----
237

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8884
SELECT * FROM tab0 WHERE NOT NULL < + col2 + + col2 * - col0 * - - CAST( - 75 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8884
SELECT * FROM tab0 WHERE NOT NULL < + col2 + + col2 * - col0 * - - CAST ( - 75 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8885
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col2 + - col1 AS col0, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8885
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col2 + - col1 AS col0, col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-8886
SELECT - col1 DIV + col2 * - 33 DIV - + 29 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8886
SELECT - col1 / + col2 * - 33 / - + 29 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - + 8 FROM ( tab0 cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: 
query I rowsort label-8888
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-8888
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-8889
SELECT col2 + ( + col1 ) DIV col1 - col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8889
SELECT col2 + ( + col1 ) / col1 - col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8890
SELECT DISTINCT - MIN( - + col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8890
SELECT DISTINCT - MIN ( - + col1 ) AS col0 FROM tab1 AS cor0
----
47

query II rowsort
SELECT + col2 * - - col2 * + col2 + + - col1, + col2 AS col0 FROM tab1 AS cor0
----
205374
59
314385
68
884722
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8892
SELECT ALL 61 * + 28 * COUNT( * ) FROM tab0 AS cor0
----
5124

skipif mysql # not compatible
query I rowsort label-8892
SELECT ALL 61 * + 28 * COUNT ( * ) FROM tab0 AS cor0
----
5124

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8893
SELECT + - CAST( - col2 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8893
SELECT + - CAST ( - col2 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - col0 * - - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
1215
1827
97

query I rowsort
SELECT ALL 81 + 23 FROM tab0 AS cor0
----
104
104
104

query I rowsort
SELECT col2 AS col1 FROM tab1 AS cor0 WHERE 92 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8897
SELECT ALL + COUNT( * ) + - COUNT( ALL + col0 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8897
SELECT ALL + COUNT ( * ) + - COUNT ( ALL + col0 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT * FROM tab0 WHERE + 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-8899
SELECT ALL + 5 DIV + col2 + + - col1 + - 43 * 5 + 85 + - col2 DIV - 46 AS col0 FROM tab1
----
-134
-142
-176

skipif mysql # not compatible
query I rowsort label-8899
SELECT ALL + 5 / + col2 + + - col1 + - 43 * 5 + 85 + - col2 / - 46 AS col0 FROM tab1
----
-134
-142
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT ALL + MAX( - ( - col1 ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8900
SELECT ALL + MAX ( - ( - col1 ) ) AS col2 FROM tab1
----
47

query I rowsort
SELECT DISTINCT - col2 * - 32 AS col1 FROM tab0
----
1504
3168
320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8902
SELECT ALL ( - COUNT( DISTINCT + 10 ) ) * - CAST( - 40 AS SIGNED ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-8902
SELECT ALL ( - COUNT ( DISTINCT + 10 ) ) * - CAST ( - 40 AS INTEGER ) FROM tab0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-8903
SELECT - + MIN( ALL + col2 ) * - 60 AS col1 FROM tab1 cor0
----
3540

skipif mysql # not compatible
query I rowsort label-8903
SELECT - + MIN ( ALL + col2 ) * - 60 AS col1 FROM tab1 cor0
----
3540

query I rowsort
SELECT + - 8 * col1 FROM tab1 AS cor0
----
-112
-376
-40

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + - col0 - col1 < NULL OR + col0 * + col0 < + - 17 * - 47
----
15
81
47

query I rowsort
SELECT ALL - - 3 FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) NOT BETWEEN NULL AND - col0 + + - col1 - - - col1 * + - col0 AND col1 NOT BETWEEN + 17 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8908
SELECT MAX( DISTINCT + 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-8908
SELECT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT + ( col2 ) AS col2, + 99 FROM tab2 AS cor0
----
23
99
40
99
58
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - - 75 IS NULL AND NOT NULL > NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, - col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-8912
SELECT DISTINCT - col2 * - col0 DIV - + col0 + - col2 FROM tab1 AS cor0
----
-118
-136
-192

skipif mysql # not compatible
query I rowsort label-8912
SELECT DISTINCT - col2 * - col0 / - + col0 + - col2 FROM tab1 AS cor0
----
-118
-136
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8913
SELECT ALL - 78 - - + COUNT( * ) + - - 26 col1 FROM tab2 AS cor0 WHERE NULL >= 72 - - 55
----
-52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8913
SELECT ALL - 78 - - + COUNT ( * ) + - - 26 col1 FROM tab2 AS cor0 WHERE NULL >= 72 - - 55
----
-52

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 8 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 33 + + col1 + - + 13 FROM tab0 AS cor0 WHERE - 80 - - col1 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8916
SELECT CAST( + 91 AS SIGNED ) FROM tab0 AS cor0
----
91
91
91

skipif mysql # not compatible
query I rowsort label-8916
SELECT CAST ( + 91 AS INTEGER ) FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - + 55 + - 12 + - 34 * - ( 83 ) AS col2 FROM tab0 AS cor0
----
2755
2755
2755

query II rowsort
SELECT ALL col2 AS col0, 96 FROM tab0 AS cor0
----
10
96
47
96
99
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT + 89 * - MAX( - col2 ) AS col2 FROM tab2 AS cor0
----
2047

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + 89 * - MAX ( - col2 ) AS col2 FROM tab2 AS cor0
----
2047

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8920
SELECT col0 * - 79 * - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8920
SELECT col0 * - 79 * - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * + ( 89 ) col2 FROM tab0
----
6141
6141
6141

query I rowsort
SELECT col0 / col2 / + col2 AS col1 FROM tab2 WHERE ( NOT + 65 + - col1 NOT IN ( + - 87 ) )
----

query I rowsort
SELECT - 91 + + col1 FROM tab1
----
-44
-77
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8924
SELECT * FROM tab2 WHERE ( col2 - - CAST( NULL AS SIGNED ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8924
SELECT * FROM tab2 WHERE ( col2 - - CAST ( NULL AS INTEGER ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8925
SELECT DISTINCT + + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 = col2 + - - col2 + + + col0
----
-3

skipif mysql # not compatible
query I rowsort label-8925
SELECT DISTINCT + + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT + col2 = col2 + - - col2 + + + col0
----
-3

query I rowsort
SELECT ALL + 63 + + col2 FROM tab0
----
110
162
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 + + 90 IS NULL
----

query I rowsort
SELECT ALL + col0 + - - col0 AS col1 FROM tab2
----
128
150
92

query II rowsort
SELECT + col0, - 36 + col1 * - - col0 AS col2 FROM tab2
----
46
2310
64
4892
75
4989

query I rowsort
SELECT - ( + 7 ) - - col1 FROM tab0
----
-6
14
74

query II rowsort
SELECT DISTINCT + col0 AS col0, 82 FROM tab1 AS cor0
----
51
82
85
82
91
82

onlyif mysql # aggregate syntax: 
query II rowsort label-8932
SELECT ALL COUNT( * ) col0, COUNT( * ) AS col1 FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8932
SELECT ALL COUNT ( * ) col0, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - - 66 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE col2 + 4 * + 10 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8935
SELECT DISTINCT 30 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-8935
SELECT DISTINCT 30 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-90

query I rowsort
SELECT ALL + ( + + col0 ) AS col2 FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT ALL - 55 + - col1 * + 31 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8938
SELECT * FROM tab1 WHERE NOT - + CAST( NULL AS SIGNED ) > 86 + 80
----

skipif mysql # not compatible
query III rowsort label-8938
SELECT * FROM tab1 WHERE NOT - + CAST ( NULL AS INTEGER ) > 86 + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8939
SELECT COUNT( * ) FROM tab0 WHERE NOT + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8939
SELECT COUNT ( * ) FROM tab0 WHERE NOT + col1 <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8940
SELECT ALL - col1 * 2 DIV - - 81 col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8940
SELECT ALL - col1 * 2 / - - 81 col2 FROM tab1
----
-1
0
0

query I rowsort
SELECT ALL 10 * - 44 AS col2 FROM tab2 AS cor0
----
-440
-440
-440

query I rowsort
SELECT DISTINCT 1 * + ( col0 ) FROM tab2
----
46
64
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - 1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8944
SELECT ALL + ( + ( MAX( + col2 ) ) ) col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8944
SELECT ALL + ( + ( MAX ( + col2 ) ) ) col0 FROM tab1 cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 10 col2, - col2 FROM tab0 AS cor0
----
-10
-10
-10
-47
-10
-99

query I rowsort
SELECT ALL - - col0 + 46 FROM tab0 cor0 WHERE NULL <> 25
----

query I rowsort
SELECT - col2 + - - ( + col1 ) * 39 FROM tab1 AS cor0
----
136
1765
450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + - col0 * + col2 col0 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8949
SELECT - + ( - + ( + - CAST( NULL AS DECIMAL ) ) ) + - + 94 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT - + ( - + ( + - CAST ( NULL AS REAL ) ) ) + - + 94 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 24 FROM tab0 AS cor0 WHERE ( NULL ) <= + col1
----

query I rowsort
SELECT + 32 * + col1 + - 62 + col2 + - col2 AS col2 FROM tab0 AS cor0
----
-30
2530
610

onlyif mysql # DIV for integer division: 
query I rowsort label-8952
SELECT col1 DIV - - ( - 47 ) + + + col1 + col2 FROM tab2
----
116
124
73

skipif mysql # not compatible
query I rowsort label-8952
SELECT col1 / - - ( - 47 ) + + + col1 + col2 FROM tab2
----
116
124
73

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col2 - 74 * + col0 + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT + col2, + col1 AS col0, - 62 FROM tab2
----
9 values hashing to 604e3b5dd2aa542568402849421e354b

query II rowsort
SELECT 13 AS col2, - ( col2 ) FROM tab1
----
13
-59
13
-68
13
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-8956
SELECT + COUNT( * ) AS col0, - COUNT( * ) * 51 AS col1 FROM tab2
----
3
-153

skipif mysql # not compatible
query II rowsort label-8956
SELECT + COUNT ( * ) AS col0, - COUNT ( * ) * 51 AS col1 FROM tab2
----
3
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8957
SELECT ALL - col1 + + CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8957
SELECT ALL - col1 + + CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8958
SELECT + MIN( ALL col0 ) * SUM( ALL col2 ) * - - 58 * + COUNT( * ) FROM tab1
----
1978902

skipif mysql # not compatible
query I rowsort label-8958
SELECT + MIN ( ALL col0 ) * SUM ( ALL col2 ) * - - 58 * + COUNT ( * ) FROM tab1
----
1978902

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + 98 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8960
SELECT - CAST( + MIN( DISTINCT - ( 24 ) ) AS SIGNED ) + + 37 FROM tab0 cor0
----
61

skipif mysql # not compatible
query I rowsort label-8960
SELECT - CAST ( + MIN ( DISTINCT - ( 24 ) ) AS INTEGER ) + + 37 FROM tab0 cor0
----
61

query I rowsort
SELECT + 67 + - ( - - col2 ) FROM tab1 AS cor0
----
-1
-29
8

onlyif mysql # DIV for integer division: 
query I rowsort label-8962
SELECT DISTINCT + col2 DIV + col1 + + col1 + - - col2 FROM tab0
----
128
199
31

skipif mysql # not compatible
query I rowsort label-8962
SELECT DISTINCT + col2 / + col1 + + col1 + - - col2 FROM tab0
----
128
199
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT - COUNT( * ) * + COUNT( * ) + - - MIN( col0 ) FROM tab2 cor0
----
37

skipif mysql # not compatible
query I rowsort label-8963
SELECT - COUNT ( * ) * + COUNT ( * ) + - - MIN ( col0 ) FROM tab2 cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT - MIN( - 47 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-8964
SELECT - MIN ( - 47 ) AS col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT - ( - 10 ) FROM tab2 AS cor0
----
10
10
10

query I rowsort
SELECT + ( - 93 ) AS col0 FROM tab1 cor0
----
-93
-93
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-8967
SELECT + ( - 15 ) DIV + 41 + + - col0 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8967
SELECT + ( - 15 ) / + 41 + + - col0 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - 30 * 64 AS col1 FROM tab1
----
-1920

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 68 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 86 * + col0 AS col1 FROM tab2
----
-3956
-5504
-6450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8971
SELECT + 58 * 61 / - + col1 * CAST( 36 AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( NULL < NULL )
----

skipif mysql # not compatible
query I rowsort label-8971
SELECT + 58 * 61 / - + col1 * CAST ( 36 AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( NULL < NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8972
SELECT - 65 DIV + ( + 17 ), 68 AS col0 FROM tab0
----
-3
68
-3
68
-3
68

skipif mysql # not compatible
query II rowsort label-8972
SELECT - 65 / + ( + 17 ), 68 AS col0 FROM tab0
----
-3
68
-3
68
-3
68

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8973
SELECT CAST( NULL AS SIGNED ) * + CAST( + 55 AS SIGNED ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-8973
SELECT CAST ( NULL AS INTEGER ) * + CAST ( + 55 AS INTEGER ), + col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8974
SELECT DISTINCT + MAX( DISTINCT - col1 ) * - ( 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-8974
SELECT DISTINCT + MAX ( DISTINCT - col1 ) * - ( 32 ) FROM tab0
----
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 66 IS NULL
----

query I rowsort
SELECT ALL col2 * - col1 - col2 AS col1 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( - col0 ) AND - col2 + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8977
SELECT + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8977
SELECT + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8978
SELECT + 44 + + MAX( col0 ) AS col0 FROM tab2
----
119

skipif mysql # not compatible
query I rowsort label-8978
SELECT + 44 + + MAX ( col0 ) AS col0 FROM tab2
----
119

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8980
SELECT - 16 FROM tab1 WHERE NOT NULL < col0 - + CAST( col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8980
SELECT - 16 FROM tab1 WHERE NOT NULL < col0 - + CAST ( col2 AS REAL )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( 1 ) + col1 BETWEEN NULL AND + col1 + + col0 * + col1
----

query I rowsort
SELECT 91 - 6 FROM tab2
----
85
85
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT + ( COUNT( * ) ) - 8 FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-8983
SELECT + ( COUNT ( * ) ) - 8 FROM tab2
----
-5

query I rowsort
SELECT 3 + + ( + col2 + - col0 ) FROM tab0
----
-74
35
5

query I rowsort
SELECT ALL + col0 + ( col2 ) FROM tab0
----
196
62
97

query I rowsort
SELECT + col2 * - 8 AS col0 FROM tab1 WHERE NOT col0 + - 69 IS NULL
----
-472
-544
-768

query I rowsort
SELECT col1 * + 54 AS col2 FROM tab2
----
2754
3618
4158

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8988
SELECT CAST( - COUNT( * ) AS SIGNED ) * - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-8988
SELECT CAST ( - COUNT ( * ) AS INTEGER ) * - COUNT ( * ) AS col0 FROM tab1
----
9

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 82 ) BETWEEN col1 + col2 AND - 23
----

query I rowsort
SELECT ALL col2 * 33 FROM tab2
----
1320
1914
759

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8991
SELECT DISTINCT - col1 * + col1 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8991
SELECT DISTINCT - col1 * + col1 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE ( NULL ) IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT DISTINCT + 11 AS col1 FROM tab2 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL 5 + col2 FROM tab2 AS cor0 WHERE + ( - col1 ) / col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 col0 FROM tab1 cor0
----
54
54
54

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + ( - col0 ) + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + 27 * + MAX( ( + col0 ) ) AS col2 FROM tab2
----
2025

skipif mysql # not compatible
query I rowsort label-8998
SELECT + 27 * + MAX ( ( + col0 ) ) AS col2 FROM tab2
----
2025

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT SUM( - 84 ) AS col1 FROM tab1
----
-252

skipif mysql # not compatible
query I rowsort label-8999
SELECT SUM ( - 84 ) AS col1 FROM tab1
----
-252

query I rowsort
SELECT ALL - col0 * - - col1 AS col1 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 40 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN col2 AND col0
----

query I rowsort
SELECT + ( + + 44 ) AS col0 FROM tab2
----
44
44
44

query I rowsort
SELECT ALL - 26 AS col0 FROM tab0 WHERE - col1 + 23 * - ( 40 ) IS NOT NULL
----
-26
-26
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT DISTINCT + COUNT( * ) FROM tab2 cor0 WHERE NULL BETWEEN - 82 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9004
SELECT DISTINCT + COUNT ( * ) FROM tab2 cor0 WHERE NULL BETWEEN - 82 AND ( NULL )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9005
SELECT CAST( MIN( DISTINCT 80 ) AS SIGNED ) AS col2 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-9005
SELECT CAST ( MIN ( DISTINCT 80 ) AS INTEGER ) AS col2 FROM tab0 cor0
----
80

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col0 NOT BETWEEN ( NULL ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9007
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + CAST( NULL AS SIGNED ) = - 61
----

skipif mysql # not compatible
query III rowsort label-9007
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 + CAST ( NULL AS INTEGER ) = - 61
----

query I rowsort
SELECT DISTINCT col2 * col1 FROM tab2 WHERE NOT 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT DISTINCT - MAX( 9 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9009
SELECT DISTINCT - MAX ( 9 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + 82 AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - - col1 + - 38 AS col2 FROM tab2 AS cor0
----
13
29
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9013
SELECT ALL + MAX( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9013
SELECT ALL + MAX ( DISTINCT - col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9014
SELECT - MAX( DISTINCT col2 ) + + - 91 + 61 DIV + MIN( + col0 ) FROM tab2 AS cor0
----
-148

skipif mysql # not compatible
query I rowsort label-9014
SELECT - MAX ( DISTINCT col2 ) + + - 91 + 61 / + MIN ( + col0 ) FROM tab2 AS cor0
----
-148

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 70 NOT BETWEEN - 19 * + col1 AND col1 * 17 - - 26 * col0
----

query I rowsort
SELECT ALL - + 71 + - col1 + 23 + - col0 FROM tab1 cor0
----
-113
-138
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9017
SELECT + CAST( NULL AS SIGNED ) + AVG ( ALL + col1 ) + - 20 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9017
SELECT + CAST ( NULL AS INTEGER ) + AVG ( ALL + col1 ) + - 20 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9018
SELECT ALL - col1 DIV - 53 + + + col0 FROM tab0 AS cor0
----
16
87
97

skipif mysql # not compatible
query I rowsort label-9018
SELECT ALL - col1 / - 53 + + + col0 FROM tab0 AS cor0
----
16
87
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9019
SELECT DISTINCT - COUNT( col0 ) + + 45 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9019
SELECT DISTINCT - COUNT ( col0 ) + + 45 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9020
SELECT - MIN( + 92 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-9020
SELECT - MIN ( + 92 ) FROM tab2 AS cor0
----
-92

query I rowsort
SELECT + col1 * + + 38 AS col1 FROM tab1
----
1786
190
532

query II rowsort
SELECT DISTINCT col1 + + 10, 39 AS col1 FROM tab0
----
11
39
31
39
91
39

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL IN ( - 11 * + - 17 * col1 + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 96 - - - col2 * - 65 col2 FROM tab1
----
3931
4516
6336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9025
SELECT ALL + ( 46 ) - col0 FROM tab2 WHERE 4 + - col2 + col0 BETWEEN + CAST( NULL AS SIGNED ) * + col2 AND ( col2 )
----

skipif mysql # not compatible
query I rowsort label-9025
SELECT ALL + ( 46 ) - col0 FROM tab2 WHERE 4 + - col2 + col0 BETWEEN + CAST ( NULL AS INTEGER ) * + col2 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9026
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE ( + - col1 * + + 51 + col0 ) IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9026
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE ( + - col1 * + + 51 + col0 ) IN ( - col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9027
SELECT - CAST( - col0 AS SIGNED ) - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
query I rowsort label-9027
SELECT - CAST ( - col0 AS INTEGER ) - col2 AS col1 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 22 + + col2 col2, col1 FROM tab2 AS cor0
----
45
51
62
77
80
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT + MAX( col0 ) + - 12 FROM tab0 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-9030
SELECT + MAX ( col0 ) + - 12 FROM tab0 AS cor0
----
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NULL ) < + 11 / col0 )
----

query II rowsort
SELECT + col1 + + 40 AS col1, col0 AS col2 FROM tab0 AS cor0
----
121
15
41
97
61
87

query I rowsort
SELECT + - ( - col0 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL + 5 * - 64 + - 42 AS col2, col1 AS col1 FROM tab1
----
-362
14
-362
47
-362
5

query I rowsort
SELECT DISTINCT col2 + - 63 FROM tab0 WHERE + 95 NOT IN ( + - col0 )
----
-16
-53
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + COUNT( * ) + 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
23

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + COUNT ( * ) + 14 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT DISTINCT + 7 * COUNT( * ) col1 FROM tab0
----
21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9037
SELECT DISTINCT + 7 * COUNT ( * ) col1 FROM tab0
----
21

query I rowsort
SELECT - - col2 * + 85 FROM tab0 cor0
----
3995
8415
850

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - 79 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9040
SELECT + - CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9040
SELECT + - CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 / col0 col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT IN ( + col0, - col2 * - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9043
SELECT DISTINCT * FROM tab1 WHERE NOT - - 52 IN ( - CAST( NULL AS SIGNED ) / - col0 )
----

skipif mysql # not compatible
query III rowsort label-9043
SELECT DISTINCT * FROM tab1 WHERE NOT - - 52 IN ( - CAST ( NULL AS INTEGER ) / - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9044
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 3 / + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9044
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 3 / + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9045
SELECT - ( - 51 ), + col1 DIV - 40 AS col2 FROM tab2 AS cor0
----
51
-1
51
-1
51
-1

skipif mysql # not compatible
query II rowsort label-9045
SELECT - ( - 51 ), + col1 / - 40 AS col2 FROM tab2 AS cor0
----
51
-1
51
-1
51
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9046
SELECT ALL - + COUNT( * ) AS col1, 10 AS col0 FROM tab1 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-9046
SELECT ALL - + COUNT ( * ) AS col1, 10 AS col0 FROM tab1 AS cor0
----
-3
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL <> - 9
----
0

skipif mysql # not compatible
query I rowsort label-9047
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL <> - 9
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + + 8 * - + col1 col2 FROM tab2 AS cor0
----
-357
-469
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-9049
SELECT - - col1 + col2 DIV + col1 * + col1 * - + 1 FROM tab0 AS cor0
----
-98
21
81

skipif mysql # not compatible
query I rowsort label-9049
SELECT - - col1 + col2 / + col1 * + col1 * - + 1 FROM tab0 AS cor0
----
-98
21
81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - col0 - + - 77 + + 41 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 * col2 + - 63 * + - 56 AS col2 FROM tab0
----
13329
3628
5737

onlyif mysql # aggregate syntax: 
query II rowsort label-9052
SELECT DISTINCT - SUM( col2 ) col1, - 24 AS col0 FROM tab1
----
-223
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9052
SELECT DISTINCT - SUM ( col2 ) col1, - 24 AS col0 FROM tab1
----
-223
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT - - COUNT( - - col0 ) + - - COUNT( * ) * - 37 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT - - COUNT ( - - col0 ) + - - COUNT ( * ) * - 37 FROM tab0 AS cor0
----
-108

query I rowsort
SELECT - 64 * - col2 AS col0 FROM tab1 AS cor0 WHERE ( 96 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + + col0 + + col1 FROM tab0 AS cor0
----
786
891
9604

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 49 * + ( + col0 ) col0 FROM tab2 AS cor0
----
2254
3136
3675

query II rowsort
SELECT DISTINCT + col1 + - - col1 AS col0, + ( col2 ) + col1 FROM tab1 AS cor0
----
10
64
28
110
94
115

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( + + 49 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 76 <> NULL
----

query I rowsort
SELECT 84 + - + col2 AS col2 FROM tab1
----
-12
16
25

query I rowsort
SELECT + col2 + - 52 FROM tab2
----
-12
-29
6

onlyif mysql # DIV for integer division: 
query II rowsort label-9063
SELECT 99 + + 73 DIV - - 74 * - col0, 59 AS col0 FROM tab1
----
99
59
99
59
99
59

skipif mysql # not compatible
query II rowsort label-9063
SELECT 99 + + 73 / - - 74 * - col0, 59 AS col0 FROM tab1
----
99
59
99
59
99
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9064
SELECT ALL SUM( DISTINCT - 87 ) - - ( - 7 ) AS col0 FROM tab1
----
-94

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL SUM ( DISTINCT - 87 ) - - ( - 7 ) AS col0 FROM tab1
----
-94

query I rowsort
SELECT - 96 FROM tab2 WHERE + col1 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9066
SELECT DISTINCT COUNT( * ) DIV + 57 - - + COUNT( ALL - col1 ), - 3 AS col0 FROM tab1
----
3
-3

skipif mysql # not compatible
query II rowsort label-9066
SELECT DISTINCT COUNT ( * ) / + 57 - - + COUNT ( ALL - col1 ), - 3 AS col0 FROM tab1
----
3
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9067
SELECT ( - COUNT( * ) ) + + MAX( ALL - col0 ) + - + 5 DIV - - 68 * 70 AS col0 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-9067
SELECT ( - COUNT ( * ) ) + + MAX ( ALL - col0 ) + - + 5 / - - 68 * 70 AS col0 FROM tab1
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT DISTINCT COUNT( * ) * - - 95 FROM tab0
----
285

skipif mysql # not compatible
query I rowsort label-9068
SELECT DISTINCT COUNT ( * ) * - - 95 FROM tab0
----
285

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9069
SELECT DISTINCT 73 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-9069
SELECT DISTINCT 73 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-9070
SELECT ALL COUNT( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT 62 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9070
SELECT ALL COUNT ( + 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT 62 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN + col1 * - ( - 54 ) / + + 14 AND + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 17 * - col0 * - col1 + + col1 < - - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 60 / + 86 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( + ( 1 ) ) AS col2 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + 96 * + ( + + 70 ) FROM tab2
----
6720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9076
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9076
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9079
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 62 IS NOT NULL
----
0

query I rowsort
SELECT 22 * + 74 FROM tab1 AS cor0
----
1628
1628
1628

query I rowsort
SELECT - ( + - 31 ) * col1 + col0 + col0 AS col1 FROM tab2
----
1673
2227
2515

query II rowsort
SELECT ALL 10, col0 FROM tab0
----
10
15
10
87
10
97

query I rowsort
SELECT ALL - 69 * + - 99 AS col1 FROM tab2
----
6831
6831
6831

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9084
SELECT DISTINCT * FROM tab0 WHERE + CAST( - 9 AS DECIMAL ) / + col0 BETWEEN NULL AND - CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9084
SELECT DISTINCT * FROM tab0 WHERE + CAST ( - 9 AS REAL ) / + col0 BETWEEN NULL AND - CAST ( + col2 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9085
SELECT - 28 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9085
SELECT - 28 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT - + col0 IN ( col2, + col2 )
----
-51
-85
-91

query II rowsort
SELECT - 89, col2 AS col2 FROM tab2
----
-89
23
-89
40
-89
58

query II rowsort
SELECT - col1 AS col2, + 45 FROM tab1
----
-14
45
-47
45
-5
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT + MIN( + 32 ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT + MIN ( + 32 ) FROM tab0
----
32

query I rowsort
SELECT - - col1 - - col0 + - + ( ( - + ( - + ( 18 ) ) ) ) + 82 FROM tab1 WHERE NOT + col1 < col1
----
129
154
202

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + + col2, col2, - 78 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 8 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + 30 ) col1 FROM tab0 AS cor0
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9094
SELECT DISTINCT - + COUNT( * ) * + 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-666

skipif mysql # not compatible
query I rowsort label-9094
SELECT DISTINCT - + COUNT ( * ) * + 74 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-666

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 17 + + 73 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 97 BETWEEN NULL AND + 39
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9097
SELECT - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-9097
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-3
NULL

query II rowsort
SELECT + col1 * - col2 AS col2, col0 AS col0 FROM tab0 AS cor0
----
-210
87
-3807
15
-99
97

query I rowsort
SELECT + ( - ( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
-23
-40
-58

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col0 + + ( col1 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + - + 96 / - col1 IS NULL
----

query II rowsort
SELECT - col1 AS col2, 82 AS col0 FROM tab0 AS cor0
----
-1
82
-21
82
-81
82

query I rowsort
SELECT ALL - + 23 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

query I rowsort
SELECT DISTINCT col2 + col1 + col2 + col2 + + col1 * + - col0 * - 69 + - + 75 * + + 94 FROM tab2
----
154944
333179
339916

query I rowsort
SELECT col1 * + 75 AS col0 FROM tab1
----
1050
3525
375

query I rowsort
SELECT DISTINCT col2 * + 20 * 51 + col2 FROM tab1
----
60239
69428
98016

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 94 col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 34 - + col0 col1, 88 FROM tab0
----
-53
88
-63
88
19
88

query II rowsort
SELECT + col1 - + 13 AS col0, + 10 FROM tab2
----
38
10
54
10
64
10

query I rowsort
SELECT DISTINCT - col1 * 81 - 49 * + + 18 AS col1 FROM tab2
----
-5013
-6309
-7119

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + - - 90 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9112
SELECT ALL + SUM( + col0 ) * 84 FROM tab0 AS cor0
----
16716

skipif mysql # not compatible
query I rowsort label-9112
SELECT ALL + SUM ( + col0 ) * 84 FROM tab0 AS cor0
----
16716

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col1 + + col2 + - 61 <= NULL
----

query II rowsort
SELECT - col2 AS col2, + col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9115
SELECT ALL 19 * + - COUNT( * ) * - MAX( - + col2 ) FROM tab2 AS cor0
----
-1311

skipif mysql # not compatible
query I rowsort label-9115
SELECT ALL 19 * + - COUNT ( * ) * - MAX ( - + col2 ) FROM tab2 AS cor0
----
-1311

query II rowsort
SELECT ALL + 75 AS col2, col1 AS col2 FROM tab1 AS cor0
----
75
14
75
47
75
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9118
SELECT col2 * - 28 * + CAST( - 25 AS SIGNED ) - 48 + - col2 AS col2, + col2 * 54 col0 FROM tab2 AS cor0
----
16029
1242
27912
2160
40494
3132

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9118
SELECT col2 * - 28 * + CAST ( - 25 AS INTEGER ) - 48 + - col2 AS col2, + col2 * 54 col0 FROM tab2 AS cor0
----
16029
1242
27912
2160
40494
3132

query II rowsort
SELECT ALL - col1 AS col0, - col0 * col1 AS col1 FROM tab0 AS cor0
----
-1
-97
-21
-1827
-81
-1215

onlyif mysql # aggregate syntax: 
query I rowsort label-9120
SELECT DISTINCT + MIN( DISTINCT ( col1 ) ) + + - COUNT( * ) FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9120
SELECT DISTINCT + MIN ( DISTINCT ( col1 ) ) + + - COUNT ( * ) FROM tab1 cor0
----
2

query I rowsort
SELECT DISTINCT + - col0 / + - col1 + - - col0 FROM tab1 AS cor0 WHERE + 8 * - col2 * - col2 IS NULL
----

query I rowsort
SELECT ALL - col0 * - + col2 * + + col1 + - 57 + - col1 + col1 FROM tab0
----
18213
57048
9546

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL - ( - + MAX( ALL 40 ) ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL - ( - + MAX ( ALL 40 ) ) FROM tab2
----
40

query I rowsort
SELECT + col0 * + 10 FROM tab0
----
150
870
970

onlyif mysql # DIV for integer division: 
query I rowsort label-9125
SELECT + 45 DIV col2 * + col1 FROM tab0
----
0
0
84

skipif mysql # not compatible
query I rowsort label-9125
SELECT + 45 / col2 * + col1 FROM tab0
----
0
0
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col2 + col0 ) NOT IN ( - col0, + ( + 71 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9127
SELECT - CAST( - 94 AS SIGNED ) + + - 42 AS col0 FROM tab1
----
52
52
52

skipif mysql # not compatible
query I rowsort label-9127
SELECT - CAST ( - 94 AS INTEGER ) + + - 42 AS col0 FROM tab1
----
52
52
52

query I rowsort
SELECT ALL 63 * - col0 AS col0 FROM tab1
----
-3213
-5355
-5733

query I rowsort
SELECT ALL col1 * - 17 AS col2 FROM tab0 WHERE NOT - + col2 < NULL
----

query I rowsort
SELECT - 11 + col0 FROM tab0
----
4
76
86

onlyif mysql # DIV for integer division: 
query II rowsort label-9131
SELECT DISTINCT ( + col1 ) * col2 + 52, + 36 DIV col2 DIV + col1 AS col0 FROM tab1
----
1396
0
3248
0
347
0

skipif mysql # not compatible
query II rowsort label-9131
SELECT DISTINCT ( + col1 ) * col2 + 52, + 36 / col2 / + col1 AS col0 FROM tab1
----
1396
0
3248
0
347
0

query I rowsort
SELECT ALL + - 38 + col1 FROM tab1 AS cor0
----
-24
-33
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT DISTINCT MIN( - ( + col2 ) ) + + - ( + - 9 ) FROM tab1 AS cor0 WHERE - col0 = + - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9133
SELECT DISTINCT MIN ( - ( + col2 ) ) + + - ( + - 9 ) FROM tab1 AS cor0 WHERE - col0 = + - col2
----
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NULL NOT BETWEEN + - 83 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9135
SELECT 96 col0, - CAST( NULL AS SIGNED ) * + 71 * - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to c43d22acd45dd08c981210210d07b570

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9135
SELECT 96 col0, - CAST ( NULL AS INTEGER ) * + 71 * - 32 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to c43d22acd45dd08c981210210d07b570

query I rowsort
SELECT - col1 - + + col0 FROM tab0 AS cor0
----
-108
-96
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col2 FROM tab0 cor0
----
52

query II rowsort
SELECT DISTINCT + + col1, col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query I rowsort
SELECT DISTINCT - - col2 + + + 86 FROM tab1 AS cor0
----
145
154
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9140
SELECT + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-9140
SELECT + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9141
SELECT - 58 / col2 + col0 + + 93 * + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9141
SELECT - 58 / col2 + col0 + + 93 * + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9142
SELECT ALL COUNT( * ) + + - COUNT( * ) DIV COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-9142
SELECT ALL COUNT ( * ) + + - COUNT ( * ) / COUNT ( * ) FROM tab0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 81 + + + col1 col1 FROM tab0
----
-60
-80
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9144
SELECT CAST( NULL AS SIGNED ) + - ( + 84 ) * - 41 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9144
SELECT CAST ( NULL AS INTEGER ) + - ( + 84 ) * - 41 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, + col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query II rowsort label-9146
SELECT COUNT( * ) col2, MIN( - - 41 ) FROM tab0
----
3
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9146
SELECT COUNT ( * ) col2, MIN ( - - 41 ) FROM tab0
----
3
41

query II rowsort
SELECT DISTINCT col2, + col0 FROM tab0
----
10
87
47
15
99
97

query III rowsort
SELECT * FROM tab2 WHERE NOT + 17 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 + + col2 NOT IN ( - 49 * + col0 * col1 )
----

query II rowsort
SELECT + 75 AS col1, - col2 * - col2 FROM tab2 AS cor0
----
75
1600
75
3364
75
529

query I rowsort
SELECT ALL - col2 / + col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col1 AS col0 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9153
SELECT ( - ( + + MIN( - 7 ) ) ) * - 96 + + - 40 FROM tab2
----
-712

skipif mysql # not compatible
query I rowsort label-9153
SELECT ( - ( + + MIN ( - 7 ) ) ) * - 96 + + - 40 FROM tab2
----
-712

query I rowsort
SELECT DISTINCT - 75 FROM tab1 AS cor0 WHERE NULL < NULL
----

query I rowsort
SELECT + col1 + + 75 FROM tab1 cor0
----
122
80
89

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 + - + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col1 * + col0 + col2 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9158
SELECT ( + MIN( + 36 ) ) + + COUNT( * ) FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-9158
SELECT ( + MIN ( + 36 ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 56 + + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9159
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + 56 + + col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9160
SELECT ALL MIN( DISTINCT - - 38 ) + - 39 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL MIN ( DISTINCT - - 38 ) + - 39 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT col2 * - 66 * + 64 AS col1 FROM tab1
----
-249216
-287232
-405504

onlyif mysql # aggregate syntax: 
query I rowsort label-9162
SELECT 74 - COUNT( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
71

skipif mysql # not compatible
query I rowsort label-9162
SELECT 74 - COUNT ( * ) AS col2 FROM tab1 WHERE NULL IS NULL
----
71

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9163
SELECT - 67 / col1 - + CAST( - + col2 AS SIGNED ) * 78 * - col0 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9163
SELECT - 67 / col1 - + CAST ( - + col2 AS INTEGER ) * 78 * - col0 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 36 + 98 FROM tab1 AS cor0
----
134

onlyif mysql # aggregate syntax: 
query I rowsort label-9165
SELECT ALL - COUNT( * ) + - + 84 col2 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9165
SELECT ALL - COUNT ( * ) + - + 84 col2 FROM tab0 AS cor0
----
-87

query II rowsort
SELECT col2 + col0 AS col0, col2 AS col2 FROM tab2
----
104
40
133
58
69
23

query I rowsort
SELECT 66 + + col0 AS col1 FROM tab0
----
153
163
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + + col0 * - 8 col1 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
-1800
-60552
-75272

onlyif mysql # DIV for integer division: 
query II rowsort label-9169
SELECT - 92 DIV col2 AS col2, - col1 * + + col1 AS col2 FROM tab1 AS cor0
----
-1
-2209
-1
-25
0
-196

skipif mysql # not compatible
query II rowsort label-9169
SELECT - 92 / col2 AS col2, - col1 * + + col1 AS col2 FROM tab1 AS cor0
----
-1
-2209
-1
-25
0
-196

query I rowsort
SELECT col1 * 47 AS col2 FROM tab1 cor0
----
2209
235
658

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <> ( col2 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 59 = NULL
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT + - col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT 75, + 18 AS col0 FROM tab2
----
75
18

query II rowsort
SELECT DISTINCT + col0 AS col2, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9176
SELECT ALL * FROM tab0 AS cor0 WHERE 45 >= + - col0 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9176
SELECT ALL * FROM tab0 AS cor0 WHERE 45 >= + - col0 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9177
SELECT + MAX( - + 69 ) AS col0 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-9177
SELECT + MAX ( - + 69 ) AS col0 FROM tab0 AS cor0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT ALL + MIN( DISTINCT - col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-9178
SELECT ALL + MIN ( DISTINCT - col2 ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9179
SELECT + CAST( - COUNT( * ) AS SIGNED ) - - 80 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
77

skipif mysql # not compatible
query I rowsort label-9179
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) - - 80 AS col0 FROM tab1 WHERE NOT col2 IS NULL
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
-9

query I rowsort
SELECT 6 * - - col1 AS col0 FROM tab2
----
306
402
462

query I rowsort
SELECT - 66 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to a408108d423d7784b7d610cb779e515a

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, col0 col1 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT DISTINCT + ( - 91 ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9185
SELECT - CAST( NULL AS SIGNED ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-9185
SELECT - CAST ( NULL AS INTEGER ), col1 AS col2 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 74 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT 55 * - 6 * + col1 AS col1 FROM tab0
----
-26730
-330
-6930

query II rowsort
SELECT + col2, col2 AS col1 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9189
SELECT + CAST( - + col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9189
SELECT + CAST ( - + col2 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9190
SELECT ALL - + col1, CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

skipif mysql # not compatible
query II rowsort label-9190
SELECT ALL - + col1, CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-14
NULL
-47
NULL
-5
NULL

query I rowsort
SELECT DISTINCT - - col2 * + - 51 + + col2 AS col1 FROM tab2 AS cor0
----
-1150
-2000
-2900

onlyif mysql # aggregate syntax: 
query I rowsort label-9192
SELECT + COUNT( * ) AS col0 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9192
SELECT + COUNT ( * ) AS col0 FROM tab0 cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9193
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + col0 + - col0 + 36 + + 81 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9193
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + col0 + - col0 + 36 + + 81 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - col0 + col0 - + + ( - col0 ) FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9195
SELECT ALL SUM( ALL - - ( - - col0 ) ) AS col2 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9195
SELECT ALL SUM ( ALL - - ( - - col0 ) ) AS col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9196
SELECT + COUNT( * ) + + 79 FROM tab1
----
82

skipif mysql # not compatible
query I rowsort label-9196
SELECT + COUNT ( * ) + + 79 FROM tab1
----
82

query I rowsort
SELECT + ( + - col2 ) * col2 + + + col0 FROM tab2
----
-1536
-3289
-483

query II rowsort
SELECT DISTINCT + + col2 * + col1, col1 FROM tab2 AS cor0
----
1173
51
3080
77
3886
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT ALL - CAST( NULL AS SIGNED ) * + - col1 * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col1 * - col2 AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + - col1, + 95 col0 FROM tab1 AS cor0
----
21
95
54
95
82
95

query I rowsort
SELECT DISTINCT col2 + - - ( + col2 ) AS col2 FROM tab2
----
116
46
80

query I rowsort
SELECT DISTINCT ( - + col1 ) - - col1 * + col0 FROM tab1 AS cor0
----
420
4230
700

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT DISTINCT + ( - MIN( DISTINCT - + col0 ) ) FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9203
SELECT DISTINCT + ( - MIN ( DISTINCT - + col0 ) ) FROM tab0 AS cor0
----
97

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT ALL + + COUNT( * ) * - 67 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-603

skipif mysql # not compatible
query I rowsort label-9205
SELECT ALL + + COUNT ( * ) * - 67 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col0 + + - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 25 * + + 76 * - 69 FROM tab1
----
-131100
-131100
-131100

onlyif mysql # aggregate syntax: 
query I rowsort label-9208
SELECT COUNT( * ) * + MIN( ALL - 39 ) FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-9208
SELECT COUNT ( * ) * + MIN ( ALL - 39 ) FROM tab2
----
-117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9209
SELECT - col1 FROM tab0 WHERE NOT + + CAST( - col2 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9209
SELECT - col1 FROM tab0 WHERE NOT + + CAST ( - col2 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL + ( + + ( col2 ) ) FROM tab0
----
10
47
99

query I rowsort
SELECT ALL - col1 * - col1 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + + 97 + - col2 + col1 AS col1 FROM tab0 AS cor0
----
-1
108
131

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT DISTINCT - MAX( ALL - + 56 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT - MAX ( ALL - + 56 ) FROM tab2 AS cor0
----
56

query I rowsort
SELECT + col2 + - 95 FROM tab2 AS cor0
----
-37
-55
-72

query I rowsort
SELECT ALL + 43 * + 43 AS col0 FROM tab0 AS cor0
----
1849
1849
1849

query I rowsort
SELECT 88 * - - col0 + - col2 FROM tab2 AS cor0
----
4025
5592
6542

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9217
SELECT + ( + col1 ) + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9217
SELECT + ( + col1 ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9218
SELECT - COUNT( * ) + + 48 + 48 AS col2 FROM tab0 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9218
SELECT - COUNT ( * ) + + 48 + 48 AS col2 FROM tab0 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-9219
SELECT ALL COUNT( * ) + 66 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-9219
SELECT ALL COUNT ( * ) + 66 FROM tab1
----
69

query II rowsort
SELECT ALL col2, - col0 * - col0 + 39 AS col0 FROM tab0
----
10
7608
47
264
99
9448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 22 col0, + col2 AS col0 FROM tab2
----
22
23
22
40
22
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9222
SELECT ALL MAX( DISTINCT col0 ) * - + CAST( + AVG ( col1 ) AS SIGNED ) AS col2 FROM tab1
----
-2002

skipif mysql # not compatible
query I rowsort label-9222
SELECT ALL MAX ( DISTINCT col0 ) * - + CAST ( + AVG ( col1 ) AS INTEGER ) AS col2 FROM tab1
----
-2002

query III rowsort
SELECT ALL * FROM tab1 WHERE 18 IS NULL OR ( 46 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 62 - - col2 > - 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - 13 * - 97 col0 FROM tab1
----
-107185
-114751
-64311

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT + col0 - + 12 * col0 DIV col1 col2 FROM tab2 AS cor0
----
36
55
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9226
SELECT + col0 - + 12 * col0 / col1 col2 FROM tab2 AS cor0
----
36
55
62

query I rowsort
SELECT + 1 + + 85 + - col2 AS col2 FROM tab2 cor0
----
28
46
63

query I rowsort
SELECT ALL 69 * + col1 AS col1 FROM tab1 AS cor0
----
3243
345
966

query I rowsort
SELECT - - col2 + col1 + 31 FROM tab1 cor0
----
141
146
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9230
SELECT ALL 66 - + 40 * + CAST( NULL AS SIGNED ) + - col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL 66 - + 40 * + CAST ( NULL AS INTEGER ) + - col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9231
SELECT DISTINCT 48 DIV + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-9231
SELECT DISTINCT 48 / + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
5

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 75 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9233
SELECT - CAST( - CAST( + - ( + 70 ) AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
-70
-70
-70

skipif mysql # not compatible
query I rowsort label-9233
SELECT - CAST ( - CAST ( + - ( + 70 ) AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
-70
-70
-70

query I rowsort
SELECT ALL col2 + + 96 + - col1 + - ( + col2 ) FROM tab2 WHERE NULL > - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9235
SELECT DISTINCT 58 DIV + - ( col1 ) + - col2 * CAST( - + col0 AS SIGNED ) FROM tab0 AS cor0
----
705
868
9545

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT 58 / + - ( col1 ) + - col2 * CAST ( - + col0 AS INTEGER ) FROM tab0 AS cor0
----
705
868
9545

query I rowsort
SELECT col0 * + ( 66 ) FROM tab2 cor0
----
3036
4224
4950

query I rowsort
SELECT + 33 * + - col0 FROM tab2 AS cor0
----
-1518
-2112
-2475

query I rowsort
SELECT DISTINCT + - 24 * + 80 AS col1 FROM tab2 AS cor0
----
-1920

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 * + 63 col1 FROM tab0 AS cor0
----
3465
3465
3465

onlyif mysql # aggregate syntax: 
query II rowsort label-9241
SELECT ALL - 15 * COUNT( * ), - SUM( ( - 66 ) ) col2 FROM tab2 AS cor0
----
-45
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9241
SELECT ALL - 15 * COUNT ( * ), - SUM ( ( - 66 ) ) col2 FROM tab2 AS cor0
----
-45
198

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 + col2 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 91 * col2 NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + MAX( col2 ) FROM tab0 WHERE NOT - 66 IS NULL
----
99

skipif mysql # not compatible
query I rowsort label-9244
SELECT + MAX ( col2 ) FROM tab0 WHERE NOT - 66 IS NULL
----
99

query I rowsort
SELECT ALL + 52 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col0, col0 * - col0 AS col0 FROM tab1
----
51
-2601
85
-7225
91
-8281

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9248
SELECT DISTINCT 74 * - COUNT( DISTINCT - - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9248
SELECT DISTINCT 74 * - COUNT ( DISTINCT - - CAST ( NULL AS REAL ) ) AS col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9249
SELECT DISTINCT + + 16 * CAST( col2 AS SIGNED ) FROM tab2 AS cor0
----
368
640
928

skipif mysql # not compatible
query I rowsort label-9249
SELECT DISTINCT + + 16 * CAST ( col2 AS INTEGER ) FROM tab2 AS cor0
----
368
640
928

onlyif mysql # DIV for integer division: 
query I rowsort label-9250
SELECT - - col1 DIV col1 + - col2 + - col2 DIV + 93 FROM tab0 AS cor0
----
-46
-9
-99

skipif mysql # not compatible
query I rowsort label-9250
SELECT - - col1 / col1 + - col2 + - col2 / + 93 FROM tab0 AS cor0
----
-46
-9
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9251
SELECT ALL 80 / 38 / - 43 * + AVG ( ALL - - CAST( NULL AS DECIMAL ) ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9251
SELECT ALL 80 / 38 / - 43 * + AVG ( ALL - - CAST ( NULL AS REAL ) ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9252
SELECT + - SUM( DISTINCT + col1 ) + + CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-9252
SELECT + - SUM ( DISTINCT + col1 ) + + CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

query I rowsort
SELECT ALL - + ( 57 ) + - + 40 AS col0 FROM tab0 AS cor0 WHERE - col1 + - col2 NOT BETWEEN 44 AND NULL
----
-97
-97
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 30 * - col0 col2 FROM tab0 AS cor0
----
-2610
-2910
-450

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9256
SELECT ALL COUNT( * ) + - 12 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-9256
SELECT ALL COUNT ( * ) + - 12 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----
-12

query I rowsort
SELECT ALL - col2 + + col1 * - 66 AS col0 FROM tab1 cor0
----
-1020
-3170
-389

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT - 52 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - 52 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 24 + + col2 col0 FROM tab2 AS cor0
----
47
64
82

query II rowsort
SELECT DISTINCT ( + + col2 ) + + - col1, col2 * - + col0 AS col2 FROM tab2
----
-28
-1058
-37
-2560
-9
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT ALL 79 + - + SUM( + + 80 ) AS col2 FROM tab1
----
-161

skipif mysql # not compatible
query I rowsort label-9261
SELECT ALL 79 + - + SUM ( + + 80 ) AS col2 FROM tab1
----
-161

query I rowsort
SELECT + 58 + col2 * + col1 - col0 - + col0 FROM tab2
----
1139
3010
3794

query I rowsort
SELECT 28 AS col0 FROM tab0 WHERE + col0 + col2 * - + col1 IN ( 28 / + - 17 )
----

query I rowsort
SELECT ALL col1 * col2 - - 44 AS col1 FROM tab0
----
143
254
3851

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9265
SELECT DISTINCT * FROM tab2 WHERE NOT + - 77 > - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9265
SELECT DISTINCT * FROM tab2 WHERE NOT + - 77 > - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL 77 + 33 FROM tab0
----
110
110
110

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT + MIN( + - col2 ) AS col2 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT + MIN ( + - col2 ) AS col2 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT ALL SUM( DISTINCT - + 42 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL SUM ( DISTINCT - + 42 ) FROM tab1
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9269
SELECT + col1 * + 65 + col1 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9269
SELECT + col1 * + 65 + col1 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 13 ) FROM tab1 AS cor0
----
-13

query I rowsort
SELECT - col2 - + + 24 FROM tab2
----
-47
-64
-82

query II rowsort
SELECT + col1 * - - 61 AS col0, col0 FROM tab2
----
3111
46
4087
75
4697
64

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT 29 IS NULL
----
14
47
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2, ( - - 50 ) col2 FROM tab0 cor0
----
-10
50
-47
50
-99
50

query I rowsort
SELECT + + ( - - 76 ) FROM tab2 AS cor0
----
76
76
76

query I rowsort
SELECT ( 16 ) * - + col1 FROM tab0 AS cor0
----
-1296
-16
-336

onlyif mysql # aggregate syntax: 
query I rowsort label-9277
SELECT ALL + + COUNT( DISTINCT + - col1 ) col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9277
SELECT ALL + + COUNT ( DISTINCT + - col1 ) col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT - - MIN( + + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9278
SELECT - - MIN ( + + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE 89 > ( col2 )
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9280
SELECT ALL col2 * + col1 + + CAST( NULL AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9280
SELECT ALL col2 * + col1 + + CAST ( NULL AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT 55 * - + COUNT( * ) FROM tab0
----
-165

skipif mysql # not compatible
query I rowsort label-9281
SELECT 55 * - + COUNT ( * ) FROM tab0
----
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-9282
SELECT ALL - 93 * - COUNT( * ) FROM tab1
----
279

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL - 93 * - COUNT ( * ) FROM tab1
----
279

query II rowsort
SELECT col1 * col0 * + 80, col2 AS col2 FROM tab2
----
187680
23
394240
40
402000
58

onlyif mysql # DIV for integer division: 
query I rowsort label-9284
SELECT ALL 97 DIV + 15 AS col0 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-9284
SELECT ALL 97 / + 15 AS col0 FROM tab0
----
6
6
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9285
SELECT COUNT( * ) * - - 16 AS col0 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-9285
SELECT COUNT ( * ) * - - 16 AS col0 FROM tab2
----
48

query I rowsort
SELECT 22 * - 98 FROM tab0
----
-2156
-2156
-2156

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT DISTINCT MIN( ALL ( - col1 ) ) * - COUNT( * ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-9287
SELECT DISTINCT MIN ( ALL ( - col1 ) ) * - COUNT ( * ) FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT - MAX( col1 ) AS col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9288
SELECT - MAX ( col1 ) AS col0 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9289
SELECT + col1 + + + col2 - - CAST( NULL AS SIGNED ) + - - ( - - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9289
SELECT + col1 + + + col2 - - CAST ( NULL AS INTEGER ) + - - ( - - col0 ) AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 70 + + - 42 FROM tab1
----
28
28
28

onlyif mysql # DIV for integer division: 
query I rowsort label-9291
SELECT DISTINCT - col1 DIV + + col1 + col0 FROM tab2 AS cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9291
SELECT DISTINCT - col1 / + + col1 + col0 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ( COUNT( * ) ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9292
SELECT ( COUNT ( * ) ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL - 3 + col0 AS col2 FROM tab0 AS cor0
----
12
84
94

query I rowsort
SELECT ALL - 74 + + 23 FROM tab2 AS cor0
----
-51
-51
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT DISTINCT - - col1 DIV - col2 + + col1 FROM tab2 AS cor0
----
49
66
76

skipif mysql # not compatible
query I rowsort label-9295
SELECT DISTINCT - - col1 / - col2 + + col1 FROM tab2 AS cor0
----
49
66
76

query I rowsort
SELECT ALL 86 + - + ( - 88 ) AS col0 FROM tab1 AS cor0
----
174
174
174

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT - MIN( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-9297
SELECT - MIN ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9298
SELECT ALL * FROM tab0 WHERE + 82 / - col0 + CAST( - 57 AS SIGNED ) + col1 * 29 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9298
SELECT ALL * FROM tab0 WHERE + 82 / - col0 + CAST ( - 57 AS INTEGER ) + col1 * 29 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9299
SELECT SUM( - CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9299
SELECT SUM ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT col1 * - 79 - - ( - col1 ) + - + col1 * + 13 * + col1 - + - col0 + + col1 * col1 * col0 + + col0 FROM tab0
----
198
31128
6672

query I rowsort
SELECT DISTINCT + col0 + + - 71 - - - 58 AS col2 FROM tab1
----
-38
-44
-78

query I rowsort
SELECT DISTINCT - - col0 + + col2 * + col2 AS col0 FROM tab0 AS cor0
----
187
2224
9898

query I rowsort
SELECT ALL - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + 85 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col0 col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 96 col0, col1 FROM tab0 AS cor0
----
96
1
96
21
96
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT - - MIN( col0 ) AS col0 FROM tab1 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9306
SELECT - - MIN ( col0 ) AS col0 FROM tab1 cor0
----
51

query II rowsort
SELECT + + col2 AS col1, 75 * - - col1 + - + col0 + - col2 FROM tab2 AS cor0
----
23
3756
40
5671
58
4892

onlyif mysql # aggregate syntax: 
query I rowsort label-9308
SELECT + MAX( DISTINCT - 60 ) * - 77 FROM tab2
----
4620

skipif mysql # not compatible
query I rowsort label-9308
SELECT + MAX ( DISTINCT - 60 ) * - 77 FROM tab2
----
4620

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 58 * - 97 col0, + col0 AS col0 FROM tab1
----
5626
51
5626
85
5626
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 * - 24 AS col2, col1 col1 FROM tab2
----
1944
51
1944
67
1944
77

query I rowsort
SELECT + col0 * 0 * + - 33 FROM tab0
----
0
0
0

query I rowsort
SELECT + col1 * + + col2 AS col0 FROM tab0
----
210
3807
99

query II rowsort
SELECT - 98, col0 AS col0 FROM tab1
----
-98
51
-98
85
-98
91

query I rowsort
SELECT + 48 + col0 * + - 98 AS col0 FROM tab0 AS cor0
----
-1422
-8478
-9458

query I rowsort
SELECT ALL - col0 + ( - col1 ) AS col2 FROM tab2
----
-141
-142
-97

query I rowsort
SELECT col0 * col1 * + col0 FROM tab1 AS cor0
----
36125
36414
389207

query I rowsort
SELECT DISTINCT col1 * + col1 * ( + - ( 63 ) ) * - + col2 FROM tab2 cor0 WHERE NOT NULL <= + col1
----

query I rowsort
SELECT + + 60 - - - 4 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT 2 - + col2 FROM tab1 AS cor0
----
-57
-66
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9320
SELECT DISTINCT ( - col2 ) + + CAST( - + col2 AS SIGNED ) * - ( col1 ) * col2 FROM tab0 AS cor0
----
178882
2090
9702

skipif mysql # not compatible
query I rowsort label-9320
SELECT DISTINCT ( - col2 ) + + CAST ( - + col2 AS INTEGER ) * - ( col1 ) * col2 FROM tab0 AS cor0
----
178882
2090
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9321
SELECT - + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9321
SELECT - + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 38 * + ( col0 ) IN ( - + 3, col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 BETWEEN NULL AND + - col1 * + 82 * - - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE + 72 >= NULL
----

query I rowsort
SELECT DISTINCT - 65 * + col1 FROM tab2 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9327
SELECT DISTINCT ( + + CAST( - 65 AS SIGNED ) ) + - ( - 34 ) - + - col2 * - - col1 FROM tab1
----
1313
264
3165

skipif mysql # not compatible
query I rowsort label-9327
SELECT DISTINCT ( + + CAST ( - 65 AS INTEGER ) ) + - ( - 34 ) - + - col2 * - - col1 FROM tab1
----
1313
264
3165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT ALL - col0 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL - col0 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 79 ) + - + col1 col2, + col2 AS col2 FROM tab0
----
-100
10
-160
47
-80
99

query I rowsort
SELECT ALL 99 + - ( 99 ) FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE ( NOT NULL IS NOT NULL ) OR NOT col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - + + col0 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + ( + + 80 ) - + + col2 FROM tab2 WHERE - ( - 38 ) IS NULL
----

query I rowsort
SELECT ALL - 17 * - col1 - + 32 FROM tab1
----
206
53
767

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + col2 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9336
SELECT ALL 2, col1 DIV + - col0 AS col0 FROM tab0 cor0
----
2
-5
2
0
2
0

skipif mysql # not compatible
query II rowsort label-9336
SELECT ALL 2, col1 / + - col0 AS col0 FROM tab0 cor0
----
2
-5
2
0
2
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NOT ( NOT 91 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9338
SELECT DISTINCT - MAX( col0 ) AS col2 FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT - MAX ( col0 ) AS col2 FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT DISTINCT - SUM( - + 55 ) AS col2 FROM tab0 AS cor0 WHERE - col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT DISTINCT - SUM ( - + 55 ) AS col2 FROM tab0 AS cor0 WHERE - col2 >= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 <= NULL OR NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * + - col0 * col0 AS col2 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT - col1 * - - col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-9343
SELECT - MAX( ALL + col2 ) FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9343
SELECT - MAX ( ALL + col2 ) FROM tab1 cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9344
SELECT ALL + COUNT( ALL 42 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9344
SELECT ALL + COUNT ( ALL 42 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9345
SELECT DISTINCT COUNT( * ) + COUNT( ALL - col2 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-9345
SELECT DISTINCT COUNT ( * ) + COUNT ( ALL - col2 ) FROM tab1
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 37 * col2 col2 FROM tab2
----
1480
2146
851

query I rowsort
SELECT - col0 * ( + + col0 ) FROM tab2
----
-2116
-4096
-5625

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9348
SELECT ALL - - col2 col0 FROM tab0 WHERE NOT - 0 * col2 NOT BETWEEN - 77 AND - + ( + + CAST( NULL AS SIGNED ) ) + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9348
SELECT ALL - - col2 col0 FROM tab0 WHERE NOT - 0 * col2 NOT BETWEEN - 77 AND - + ( + + CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - ( + col1 ) AND - 85
----

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9351
SELECT - COUNT( + + col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9351
SELECT - COUNT ( + + col0 ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - - 29 * - 90 AS col1 FROM tab0 cor0
----
-2610
-2610
-2610

query I rowsort
SELECT 24 + - 43 AS col0 FROM tab1
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL - 43 + - ( + + COUNT( * ) ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL - 43 + - ( + + COUNT ( * ) ) FROM tab2
----
-46

query I rowsort
SELECT DISTINCT + 93 FROM tab0 WHERE + 43 = + - col1
----

query I rowsort
SELECT ALL - - 48 * col2 FROM tab0 cor0
----
2256
4752
480

query II rowsort
SELECT - col2 * - 2, ( + col0 ) * + col1 AS col0 FROM tab1 AS cor0
----
118
425
136
4277
192
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT DISTINCT 66 * + COUNT( * ) + 72 + 12 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-9358
SELECT DISTINCT 66 * + COUNT ( * ) + 72 + 12 FROM tab0 AS cor0
----
282

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + col2 * + col2 + - + 88 AS col2 FROM tab2 AS cor0
----
1512
3276
441

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col0 NOT IN ( - 32, - col0, + col2, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 + col2 + + + 72 * - + col2 col2, - col0 * - + col1 AS col1 FROM tab2 cor0
----
-1610
2346
-2800
4928
-4060
5025

query I rowsort
SELECT DISTINCT - 65 + - - col1 AS col0 FROM tab2
----
-14
12
2

query I rowsort
SELECT ALL col1 + - + 17 FROM tab2
----
34
50
60

onlyif mysql # aggregate syntax: 
query I rowsort label-9365
SELECT ALL - 66 * + + COUNT( * ) FROM tab0
----
-198

skipif mysql # not compatible
query I rowsort label-9365
SELECT ALL - 66 * + + COUNT ( * ) FROM tab0
----
-198

query I rowsort
SELECT - + 6 AS col0 FROM tab1 WHERE NOT - - ( + - col0 ) > 43
----
-6
-6
-6

query I rowsort
SELECT 33 * + + col1 * - 75 AS col0 FROM tab2 cor0
----
-126225
-165825
-190575

query I rowsort
SELECT DISTINCT + ( + 14 ) AS col1 FROM tab0
----
14

query I rowsort
SELECT ALL col2 * - - col0 FROM tab2 WHERE NOT - - 88 < NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - + col2 + - col0 >= ( NULL )
----

query II rowsort
SELECT ALL - 22 AS col2, + col1 FROM tab1
----
-22
14
-22
47
-22
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9372
SELECT + - COUNT( * ) / - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9372
SELECT + - COUNT ( * ) / - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 35 AS col0 FROM tab1 AS cor0
----
-35
-35
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0 WHERE NOT ( col2 * - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT MIN( + col0 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-9375
SELECT MIN ( + col0 ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15

query I rowsort
SELECT DISTINCT - 78 * col0 + + 69 AS col1 FROM tab0 AS cor0
----
-1101
-6717
-7497

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT ALL - COUNT( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9377
SELECT ALL - COUNT ( DISTINCT + - col1 ) AS col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + 90 FROM tab1 WHERE NOT + col0 * - 74 > + 91
----
90
90
90

query I rowsort
SELECT 24 + + 61 AS col2 FROM tab1
----
85
85
85

query I rowsort
SELECT 57 + col1 - ( - 68 ) FROM tab0
----
126
146
206

query I rowsort
SELECT 30 * + col0 + col2 + + ( + col2 ) - + - 34 FROM tab1 cor0
----
1756
2702
2900

query I rowsort
SELECT ALL col0 + - 66 + + col0 * - col1 * - col1 + - col2 + - + col0 + - col1 FROM tab1
----
1995
200838
9820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9383
SELECT ALL col0 - + 55 + + 15 * + col0 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9383
SELECT ALL col0 - + 55 + + 15 * + col0 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - col1 + - 67 * - col2 + col0 FROM tab1 AS cor0
----
4038
4647
6483

query I rowsort
SELECT DISTINCT - - 74 - - 79 + - + 67 AS col1 FROM tab1 AS cor0
----
86

query I rowsort
SELECT ALL + - 26 - 98 + - + 18 FROM tab1 AS cor0
----
-142
-142
-142

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE NOT 70 + + col1 + - col2 + + col2 IS NOT NULL
----

query I rowsort
SELECT + 3 AS col1 FROM tab2 AS cor0 WHERE ( col0 * + col1 * + 75 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9389
SELECT DISTINCT + CAST( - col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-9389
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col0, - col1 * 1 * - + col1 col0 FROM tab1
----
14
196
47
2209
5
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9391
SELECT + COUNT( * ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9391
SELECT + COUNT ( * ) col2 FROM tab0 WHERE NOT NULL >= NULL
----
0

query II rowsort
SELECT 11 AS col2, col0 * + + 17 AS col0 FROM tab2
----
11
1088
11
1275
11
782

query I rowsort
SELECT + + col2 FROM tab0 WHERE NOT NULL <> - + col2 * - col2 + col0 + - - 99 * col2
----

query I rowsort
SELECT DISTINCT - 3 * + col1 * - col1 AS col0 FROM tab1
----
588
6627
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 73 - col2 NOT IN ( - - col2, 80, - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( col1 ) * + col2 FROM tab0 AS cor0
----
-210
-3807
-99

query II rowsort
SELECT DISTINCT + 97 / + 80, + col2 AS col0 FROM tab0 AS cor0 WHERE NULL = col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT ALL + + col0 DIV - col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9398
SELECT ALL + + col0 / - col0 col0 FROM tab2 AS cor0
----
-1
-1
-1

query I rowsort
SELECT + col2 * - 98 FROM tab0 cor0
----
-4606
-9702
-980

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 65 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9400
SELECT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 65 + + col1 IS NOT NULL
----
0

query I rowsort
SELECT - col0 * + 90 + + col0 + - 30 * + 35 FROM tab1 AS cor0
----
-5589
-8615
-9149

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 + + col1 > 73
----
51
14
96
85
5
59

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - + 66
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9404
SELECT * FROM tab0 WHERE NOT + CAST( - col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9404
SELECT * FROM tab0 WHERE NOT + CAST ( - col2 AS INTEGER ) >= NULL
----

query I rowsort
SELECT + - 22 + col0 AS col0 FROM tab0 AS cor0
----
-7
65
75

query I rowsort
SELECT - 36 + col1 AS col2 FROM tab1 AS cor0
----
-22
-31
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT SUM( - - 38 ) + - + 48 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9407
SELECT SUM ( - - 38 ) + - + 48 FROM tab2 AS cor0
----
66

query I rowsort
SELECT ALL - col1 + - + 61 FROM tab1 AS cor0
----
-108
-66
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9409
SELECT - MAX( col0 ) + - 81 FROM tab2 AS cor0 WHERE + 62 * + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9409
SELECT - MAX ( col0 ) + - 81 FROM tab2 AS cor0 WHERE + 62 * + col0 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9410
SELECT ALL + 21 + - col0 + col2 DIV - 99 AS col0 FROM tab0
----
-66
-77
6

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL + 21 + - col0 + col2 / - 99 AS col0 FROM tab0
----
-66
-77
6

onlyif mysql # aggregate syntax: 
query II rowsort label-9411
SELECT + 16 AS col1, + COUNT( * ) AS col2 FROM tab2
----
16
3

skipif mysql # not compatible
query II rowsort label-9411
SELECT + 16 AS col1, + COUNT ( * ) AS col2 FROM tab2
----
16
3

query I rowsort
SELECT + ( - col2 ) * - col0 FROM tab2 WHERE + - 9 <> - col1
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9413
SELECT - CAST( NULL AS SIGNED ) AS col0, 18 * COUNT( * ) - + 50 AS col0 FROM tab2 AS cor0
----
NULL
4

skipif mysql # not compatible
query II rowsort label-9413
SELECT - CAST ( NULL AS INTEGER ) AS col0, 18 * COUNT ( * ) - + 50 AS col0 FROM tab2 AS cor0
----
NULL
4

query I rowsort
SELECT - col1 - - + col2 + - ( col2 ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - - 48 * + - 64 - ( - - col0 ) FROM tab0 AS cor0
----
-3087
-3159
-3169

query I rowsort
SELECT ALL ( - - ( - col1 ) ) + - col2 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT col0 + + col1 BETWEEN ( + ( 68 ) + 54 ) AND NULL
----
-14
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9418
SELECT ALL + COUNT( * ) col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9418
SELECT ALL + COUNT ( * ) col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9419
SELECT 99 * - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9419
SELECT 99 * - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9420
SELECT 37 * CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-9420
SELECT 37 * CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-111

query I rowsort
SELECT 5 + col0 AS col0 FROM tab1
----
56
90
96

query I rowsort
SELECT 23 * col1 + - col1 FROM tab2
----
1122
1474
1694

query I rowsort
SELECT ( ( 48 ) ) * col1 FROM tab2
----
2448
3216
3696

onlyif mysql # aggregate syntax: 
query I rowsort label-9424
SELECT COUNT( * ) * 21 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-9424
SELECT COUNT ( * ) * 21 FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-9425
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9425
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9426
SELECT ALL - ( col1 ) + 41 AS col2 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9426
SELECT ALL - ( col1 ) + 41 AS col2 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 IS NULL
----

query I rowsort
SELECT ALL 34 * col2 FROM tab1 WHERE NOT 29 / col2 + - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT ALL 13 + COUNT( * ) FROM tab0 WHERE NOT col2 < + col2
----
16

skipif mysql # not compatible
query I rowsort label-9428
SELECT ALL 13 + COUNT ( * ) FROM tab0 WHERE NOT col2 < + col2
----
16

query I rowsort
SELECT ALL - 13 * col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9430
SELECT ALL - 31 DIV 25 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9430
SELECT ALL - 31 / 25 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT - 2 * col1 + - col1 AS col2 FROM tab2
----
-153
-201
-231

query I rowsort
SELECT DISTINCT ( col2 ) * - 77 - + col1 AS col2 FROM tab2
----
-1822
-3157
-4533

onlyif mysql # aggregate syntax: 
query I rowsort label-9433
SELECT ALL COUNT( * ) + 5 AS col0 FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-9433
SELECT ALL COUNT ( * ) + 5 AS col0 FROM tab0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9434
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9434
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 16 - col0 AS col2 FROM tab2 WHERE NOT 87 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9437
SELECT COUNT( * ) * + COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-9437
SELECT COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT col2 + - 96 * 64 FROM tab2
----
-6086
-6104
-6121

query I rowsort
SELECT ALL col2 * 99 AS col1 FROM tab2 WHERE 24 / col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 + ( - col1 ) ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9441
SELECT DISTINCT - col1 + - 64 DIV col0 AS col1 FROM tab1
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-9441
SELECT DISTINCT - col1 + - 64 / col0 AS col1 FROM tab1
----
-15
-47
-5

query I rowsort
SELECT - 62 FROM tab2 WHERE col2 / + col2 <= NULL
----

query I rowsort
SELECT 11 AS col1 FROM tab0 WHERE NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col2 FROM tab2 WHERE NOT NULL NOT IN ( + 77 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 37 * - col0 = 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( + 84 - + 47 ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9447
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 / - col2 ) < - CAST( + col2 AS SIGNED ) * - col2 + - 63
----

skipif mysql # not compatible
query III rowsort label-9447
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 / - col2 ) < - CAST ( + col2 AS INTEGER ) * - col2 + - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT SUM( 52 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-9448
SELECT SUM ( 52 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 + col1 * - col2 ) NOT BETWEEN - 49 / + 81 AND - col1 * col2 - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - col2 AS col2 FROM tab1 WHERE NOT col1 * - 61 = 27 + - col0
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9451
SELECT ALL COUNT( * ) * 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
630

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL COUNT ( * ) * 70 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1
----
630

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col2 * - col1 + - col2 * 71 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 * - col0 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT ALL ( + col0 ) + 69 AS col1 FROM tab0 AS cor0
----
156
166
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9455
SELECT DISTINCT - COUNT( ALL - 0 ) * 35 FROM tab0 AS cor0 WHERE - 40 * 41 NOT IN ( + col1 )
----
-105

skipif mysql # not compatible
query I rowsort label-9455
SELECT DISTINCT - COUNT ( ALL - 0 ) * 35 FROM tab0 AS cor0 WHERE - 40 * 41 NOT IN ( + col1 )
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-9456
SELECT ALL + MIN( ALL - col1 ) * - 60 - COUNT( * ) FROM tab0 AS cor0 WHERE - 18 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9456
SELECT ALL + MIN ( ALL - col1 ) * - 60 - COUNT ( * ) FROM tab0 AS cor0 WHERE - 18 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col2 * - col1 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 NOT BETWEEN 22 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9459
SELECT DISTINCT ( COUNT( ALL ( col1 ) ) ) * COUNT( * ) FROM tab2 AS cor0 WHERE col1 + + 0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9459
SELECT DISTINCT ( COUNT ( ALL ( col1 ) ) ) * COUNT ( * ) FROM tab2 AS cor0 WHERE col1 + + 0 IS NULL
----
0

query I rowsort
SELECT + 16 FROM tab1 WHERE NULL NOT IN ( + col2 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9461
SELECT ALL 1 / + col0 + + CAST( - col1 + + ( col2 ) AS SIGNED ) * - 41 FROM tab0 WHERE 75 * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9461
SELECT ALL 1 / + col0 + + CAST ( - col1 + + ( col2 ) AS INTEGER ) * - 41 FROM tab0 WHERE 75 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + 38 * col2 + + 29
----

query I rowsort
SELECT ( 54 ) + col2 AS col0 FROM tab2
----
112
77
94

query I rowsort
SELECT col2 + - - 25 * col0 FROM tab1
----
1371
2184
2343

query III rowsort
SELECT * FROM tab1 WHERE col2 * + 41 BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9466
SELECT + 41 + + + col1 DIV col2 AS col1 FROM tab1
----
41
41
41

skipif mysql # not compatible
query I rowsort label-9466
SELECT + 41 + + + col1 / col2 AS col1 FROM tab1
----
41
41
41

query I rowsort
SELECT - + col2 + - + 74 FROM tab1 AS cor0
----
-133
-142
-170

query I rowsort
SELECT ALL col1 + 28 FROM tab1 AS cor0
----
33
42
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col2 ) < col2 * 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - - 16 - 0 FROM tab0
----
-31
-83
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col2, col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - col1 * + 13 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT + 61 = - col2
----
15
87
97

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 <= ( NULL )
----

query I rowsort
SELECT ( col0 ) FROM tab0 WHERE NOT 26 / - + 12 IN ( - col2 * - col2 )
----
15
87
97

query I rowsort
SELECT + col1 * - - ( + - 30 ) FROM tab0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-9477
SELECT - COUNT( * ) col2 FROM tab2 WHERE NOT - col1 IN ( + - col2 * col2 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9477
SELECT - COUNT ( * ) col2 FROM tab2 WHERE NOT - col1 IN ( + - col2 * col2 )
----
-3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 96 + - col1 = 65
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 38 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 78 * - col2 AS col2, 23 FROM tab1
----
-4602
23
-5304
23
-7488
23

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9481
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9481
SELECT - ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 24 FROM tab0 WHERE NOT ( + ( + 41 ) * + 18 ) IS NULL
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9483
SELECT DISTINCT + 74 AS col1 FROM tab0 WHERE NOT + - ( - col1 ) + col2 NOT BETWEEN - 71 AND - ( - CAST( NULL AS SIGNED ) ) / col0
----

skipif mysql # not compatible
query I rowsort label-9483
SELECT DISTINCT + 74 AS col1 FROM tab0 WHERE NOT + - ( - col1 ) + col2 NOT BETWEEN - 71 AND - ( - CAST ( NULL AS INTEGER ) ) / col0
----

query I rowsort
SELECT DISTINCT - + 17 AS col1 FROM tab0 cor0
----
-17

query I rowsort
SELECT ALL 22 + + 70 + + + col1 + + + 78 + 24 FROM tab0 AS cor0
----
195
215
275

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE ( NOT ( NULL ) IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col0 ) col0 FROM tab2 AS cor0 WHERE NOT - col2 IN ( - 61 - - col0 * - col2 )
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9488
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col2, 84 FROM tab0 AS cor0
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
query II rowsort label-9488
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col2, 84 FROM tab0 AS cor0
----
NULL
84
NULL
84
NULL
84

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 NOT BETWEEN NULL AND NULL OR NOT + 84 + 87 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9490
SELECT ALL 31 DIV - + 16 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9490
SELECT ALL 31 / - + 16 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT 49 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - 10 * - 24 * col1 FROM tab2
----
281520
739200
932640

query I rowsort
SELECT ALL - ( + + 1 ) FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9494
SELECT DISTINCT - - COUNT( * ) * + + 9 col1 FROM tab2 AS cor0
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9494
SELECT DISTINCT - - COUNT ( * ) * + + 9 col1 FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9495
SELECT ALL col0 + + 8 - CAST( NULL AS SIGNED ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9495
SELECT ALL col0 + + 8 - CAST ( NULL AS INTEGER ) / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 * + + col2 - + - 52 AS col2 FROM tab0 cor0
----
152
2261
9853

query I rowsort
SELECT - ( - 84 ) AS col0 FROM tab0 AS cor0
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 26 + + - 92 col0 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9499
SELECT DISTINCT CAST( NULL AS SIGNED ) * - col0 + - 43 AS col1 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9499
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - col0 + - 43 AS col1 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9500
SELECT DISTINCT COUNT( * ) - + 66 AS col0 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-9500
SELECT DISTINCT COUNT ( * ) - + 66 AS col0 FROM tab2
----
-63

query I rowsort
SELECT ALL col1 FROM tab2 WHERE + col0 / - col2 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9502
SELECT + - COUNT( * ) DIV - - 8 - - - 34 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-9502
SELECT + - COUNT ( * ) / - - 8 - - - 34 FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9503
SELECT CAST( NULL AS DECIMAL ) + - col0 + col1 * - col2 - - col2 + + 15 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9503
SELECT CAST ( NULL AS REAL ) + - col0 + col1 * - col2 - - col2 + + 15 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 50 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 NOT BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT DISTINCT + 3 DIV + - col0 * + 44 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + 3 / + - col0 * + 44 AS col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 71 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9508
SELECT ALL + - CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9508
SELECT ALL + - CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT + - 79 AS col2 FROM tab0 AS cor0 WHERE NOT - 53 > - 36 * - + 36
----
-79
-79
-79

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9510
SELECT 62 * + CAST( NULL AS SIGNED ), 76 AS col1 FROM tab1 cor0
----
NULL
76
NULL
76
NULL
76

skipif mysql # not compatible
query II rowsort label-9510
SELECT 62 * + CAST ( NULL AS INTEGER ), 76 AS col1 FROM tab1 cor0
----
NULL
76
NULL
76
NULL
76

query I rowsort
SELECT + 35 * ( - col0 ) * - col1 FROM tab1 AS cor0
----
14875
149695
24990

query I rowsort
SELECT ( + 45 ) AS col1 FROM tab2 AS cor0
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT + - 27 * COUNT( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT + ( col2 ) * + 10 + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9513
SELECT + - 27 * COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0 WHERE NOT + ( col2 ) * + 10 + col0 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9514
SELECT ALL - ( - + SUM( + CAST( col2 AS SIGNED ) ) ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - ( - + SUM ( + CAST ( col2 AS INTEGER ) ) ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT MIN( DISTINCT - col0 ) col0 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9515
SELECT DISTINCT MIN ( DISTINCT - col0 ) col0 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61, + col1 col2 FROM tab2
----
61
51
61
67
61
77

query I rowsort
SELECT + - col1 + - 62 FROM tab2 AS cor0
----
-113
-129
-139

query I rowsort
SELECT + - col2 + - + col1 AS col0 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT - AVG ( ALL col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 10 BETWEEN NULL AND + 22 * + col0 + - 56 - + - col0 + - col2
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - - ( + + 61 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 AS col0 FROM tab2 WHERE ( NOT - 69 * col0 IN ( - 8 ) )
----
23
40
58

query II rowsort
SELECT - 3 AS col1, 48 - 5 + + col1 FROM tab1 WHERE + 90 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + col2 * + col0 + - col2
----

query I rowsort
SELECT ALL - + col1 AS col2 FROM tab0 cor0 WHERE - col0 + - - col2 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT - + col0 * + + col2, + col0 AS col1 FROM tab0 AS cor0
----
-705
15
-870
87
-9603
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9526
SELECT DISTINCT + 31 * + - MAX( ALL + + col1 ) FROM tab1 AS cor0
----
-1457

skipif mysql # not compatible
query I rowsort label-9526
SELECT DISTINCT + 31 * + - MAX ( ALL + + col1 ) FROM tab1 AS cor0
----
-1457

query I rowsort
SELECT - 34 - 23 FROM tab0 AS cor0
----
-57
-57
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col0 ) + + col2 col1 FROM tab0 AS cor0 WHERE NOT ( col2 - - - 24 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + + 16 FROM tab2
----
39
56
74

query I rowsort
SELECT ALL 86 - - col0 FROM tab2
----
132
150
161

query I rowsort
SELECT - col2 + - + ( + 8 ) FROM tab2
----
-31
-48
-66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9532
SELECT + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9532
SELECT + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 - - + col2 + col2 + 42 AS col1 FROM tab1
----
219
246
330

onlyif mysql # aggregate syntax: 
query I rowsort label-9534
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NULL >= + - col1
----
0

skipif mysql # not compatible
query I rowsort label-9534
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NULL >= + - col1
----
0

query I rowsort
SELECT DISTINCT + 59 * + + col2 FROM tab2
----
1357
2360
3422

query I rowsort
SELECT ALL + col2 * ( + col0 ) AS col1 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9537
SELECT ALL + - MIN( - 0 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL + - MIN ( - 0 ) FROM tab0 cor0
----
0

query I rowsort
SELECT - col2 - + 19 * + 10 + + col0 + + 73 * - 34 FROM tab0 AS cor0 WHERE NOT - col0 * + - col1 + - - col0 BETWEEN 21 AND + col0
----
-2595
-2674
-2704

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9539
SELECT 29 / - CAST( NULL AS DECIMAL ) + + col2 / + - 41 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9539
SELECT 29 / - CAST ( NULL AS REAL ) + + col2 / + - 41 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + ( + 47 ) AS col2 FROM tab2
----
47
47
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NULL ) >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT DISTINCT COUNT( ALL + + 99 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9542
SELECT DISTINCT COUNT ( ALL + + 99 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col0 * + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # DIV for integer division: 
query I rowsort label-9544
SELECT DISTINCT - - col2 DIV - - 80 + col2 AS col0 FROM tab1 cor0
----
59
68
97

skipif mysql # not compatible
query I rowsort label-9544
SELECT DISTINCT - - col2 / - - 80 + col2 AS col0 FROM tab1 cor0
----
59
68
97

query II rowsort
SELECT ALL + col2, col0 + col0 FROM tab0 AS cor0
----
10
174
47
30
99
194

query II rowsort
SELECT - col1, col0 + - col1 AS col1 FROM tab0 AS cor0
----
-1
96
-21
66
-81
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9547
SELECT - CAST( - col2 AS SIGNED ) + + - col1 * + col1 FROM tab2 WHERE NOT - 28 IS NULL
----
-2578
-4431
-5889

skipif mysql # not compatible
query I rowsort label-9547
SELECT - CAST ( - col2 AS INTEGER ) + + - col1 * + col1 FROM tab2 WHERE NOT - 28 IS NULL
----
-2578
-4431
-5889

query I rowsort
SELECT ALL - col1 * - ( ( - col0 ) ) AS col0 FROM tab0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 32 * + 37 col2 FROM tab2
----
1184

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 59 * - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 + 28 col1 FROM tab2 AS cor0
----
125
169
170

onlyif mysql # aggregate syntax: 
query I rowsort label-9552
SELECT MAX( - - 99 ) FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-9552
SELECT MAX ( - - 99 ) FROM tab1 AS cor0
----
99

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + + 13 / - col2, - col2, + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9554
SELECT - - COUNT( * ) + + 16 * - - 84 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT - - COUNT ( * ) + + 16 * - - 84 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + - ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col2, - col1 AS col2 FROM tab0 AS cor0
----
10
-21
47
-81
99
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-9557
SELECT - col0 DIV col1 - - col2 - + - 52 * + - col1 * - col0 * col0 * col2 FROM tab0 AS cor0
----
44541947
48437534
82653486

skipif mysql # not compatible
query I rowsort label-9557
SELECT - col0 / col1 - - col2 - + - 52 * + - col1 * - col0 * col0 * col2 FROM tab0 AS cor0
----
44541947
48437534
82653486

query I rowsort
SELECT - col1 * + - 62 FROM tab0 AS cor0
----
1302
5022
62

onlyif mysql # aggregate syntax: 
query I rowsort label-9559
SELECT - SUM( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-9559
SELECT - SUM ( DISTINCT col0 ) FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-227

query I rowsort
SELECT DISTINCT col0 + - - col1 AS col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT - 78 * MIN( DISTINCT 53 ) AS col1 FROM tab2
----
-4134

skipif mysql # not compatible
query I rowsort label-9561
SELECT - 78 * MIN ( DISTINCT 53 ) AS col1 FROM tab2
----
-4134

onlyif mysql # aggregate syntax: 
query II rowsort label-9562
SELECT DISTINCT - MIN( - + col0 ) col0, 74 FROM tab2
----
75
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9562
SELECT DISTINCT - MIN ( - + col0 ) col0, 74 FROM tab2
----
75
74

onlyif mysql # aggregate syntax: 
query I rowsort label-9563
SELECT ALL + 99 - - 88 + + + COUNT( * ) AS col0 FROM tab1
----
190

skipif mysql # not compatible
query I rowsort label-9563
SELECT ALL + 99 - - 88 + + + COUNT ( * ) AS col0 FROM tab1
----
190

query III rowsort
SELECT * FROM tab2 WHERE - col1 < - 17
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + ( - 64 ) FROM tab2 AS cor0
----
64
64
64

query I rowsort
SELECT ALL + 81 * + col2 * - - col2 FROM tab2 AS cor0
----
129600
272484
42849

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9567
SELECT DISTINCT + MIN( col0 ) / - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9567
SELECT DISTINCT + MIN ( col0 ) / - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 2 IN ( - + ( + ( - col2 ) ), 46 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 + 74 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
16
34
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, 50 AS col2 FROM tab2
----
46
50
64
50
75
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9571
SELECT ALL 84 * + - CAST( NULL AS SIGNED ) / - col2 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9571
SELECT ALL 84 * + - CAST ( NULL AS INTEGER ) / - col2 * - col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * ( + - 57 ) <= ( - - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 50 AS col0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query I rowsort
SELECT 61 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07149905a72bd87553381f34d19ed290

query I rowsort
SELECT - - ( - 12 ) AS col0 FROM tab0 AS cor0
----
-12
-12
-12

query I rowsort
SELECT - col2 * + col2 FROM tab1 AS cor0 WHERE NOT - col2 IS NULL
----
-3481
-4624
-9216

query I rowsort
SELECT ALL - 36 * - + col2 AS col2 FROM tab1 AS cor0
----
2124
2448
3456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab1 AS cor0 WHERE col1 * col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9579
SELECT DISTINCT - col1 DIV 19 + col2 FROM tab0 AS cor0
----
43
9
99

skipif mysql # not compatible
query I rowsort label-9579
SELECT DISTINCT - col1 / 19 + col2 FROM tab0 AS cor0
----
43
9
99

query I rowsort
SELECT DISTINCT col0 * - + col2 AS col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9581
SELECT ALL 78 DIV col1 + 37 * + 6 AS col1 FROM tab0
----
222
225
300

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL 78 / col1 + 37 * + 6 AS col1 FROM tab0
----
222
225
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9582
SELECT + 97 col0 FROM tab0 WHERE NOT - CAST( + col2 AS SIGNED ) + col2 <> + - 24 * - - 83
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9582
SELECT + 97 col0 FROM tab0 WHERE NOT - CAST ( + col2 AS INTEGER ) + col2 <> + - 24 * - - 83
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + 28 ) > - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9584
SELECT ALL MAX( 97 ) * ( + 33 ) FROM tab2
----
3201

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL MAX ( 97 ) * ( + 33 ) FROM tab2
----
3201

query I rowsort
SELECT DISTINCT col2 * + 85 AS col2 FROM tab1
----
5015
5780
8160

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9586
SELECT DISTINCT + COUNT( * ) * 94 * + CAST( COUNT( * ) AS SIGNED ) * + - COUNT( * ) FROM tab1
----
-2538

skipif mysql # not compatible
query I rowsort label-9586
SELECT DISTINCT + COUNT ( * ) * 94 * + CAST ( COUNT ( * ) AS INTEGER ) * + - COUNT ( * ) FROM tab1
----
-2538

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9587
SELECT ALL COUNT( ALL - - 72 ) col0, + COUNT( * ) DIV + 29 FROM tab0
----
3
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9587
SELECT ALL COUNT ( ALL - - 72 ) col0, + COUNT ( * ) / + 29 FROM tab0
----
3
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 63 + - 99 + col0 AS col1 FROM tab0 AS cor0
----
-147
-65
-75

query I rowsort
SELECT ALL - 63 + + col0 * - 64 AS col1 FROM tab2 AS cor0
----
-3007
-4159
-4863

query I rowsort
SELECT DISTINCT - - 36 FROM tab1 WHERE NOT col1 = 61
----
36

query I rowsort
SELECT 45 - + col2 + ( + - 80 ) AS col2 FROM tab2
----
-58
-75
-93

query I rowsort
SELECT col1 - + 1 + + + ( - col0 ) AS col2 FROM tab2 cor0
----
-9
12
4

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT - + 12 - - - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9594
SELECT - + 12 - - - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9595
SELECT DISTINCT - CAST( NULL AS SIGNED ) - 80 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9595
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - 80 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 11 IS NOT NULL AND NOT 23 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 67 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 / + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + 64 col2 FROM tab2
----
104
122
87

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - col0 + - col1 = + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT 70, 20 + 47 - + + 23 AS col1 FROM tab1
----
70
44

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9602
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9602
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 60 col1, col1 FROM tab0
----
60
1
60
21
60
81

query I rowsort
SELECT ALL + 28 * - col1 FROM tab0
----
-2268
-28
-588

query I rowsort
SELECT DISTINCT + - 57 * + - col1 AS col0 FROM tab2 AS cor0
----
2907
3819
4389

query II rowsort
SELECT DISTINCT col0 AS col1, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query II rowsort label-9607
SELECT ALL - COUNT( * ) AS col1, + 87 FROM tab2 cor0
----
-3
87

skipif mysql # not compatible
query II rowsort label-9607
SELECT ALL - COUNT ( * ) AS col1, + 87 FROM tab2 cor0
----
-3
87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9608
SELECT + + COUNT( * ) / - - AVG ( DISTINCT col1 ) + + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9608
SELECT + + COUNT ( * ) / - - AVG ( DISTINCT col1 ) + + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9609
SELECT ALL - COUNT( * ) AS col1 FROM tab0 WHERE NOT - + 59 * + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9609
SELECT ALL - COUNT ( * ) AS col1 FROM tab0 WHERE NOT - + 59 * + col2 IS NULL
----
-3

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT + col0 * - + col2 <> NULL )
----

query I rowsort
SELECT DISTINCT + - col0 + - col0 + + col1 FROM tab2 cor0 WHERE NOT ( + 4 <> + ( + col1 ) )
----

query I rowsort
SELECT + 82 + col0 AS col0 FROM tab0 cor0
----
169
179
97

query II rowsort
SELECT + - col0 + - 39 AS col2, - col0 FROM tab2 AS cor0
----
-103
-64
-114
-75
-85
-46

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9615
SELECT CAST( col2 AS SIGNED ) AS col0, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

skipif mysql # not compatible
query II rowsort label-9615
SELECT CAST ( col2 AS INTEGER ) AS col0, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9616
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9616
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1
----
0

query II rowsort
SELECT col0 AS col1, 14 FROM tab0
----
15
14
87
14
97
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9618
SELECT ALL + 95 DIV - + COUNT( * ) AS col0 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9618
SELECT ALL + 95 / - + COUNT ( * ) AS col0 FROM tab2
----
-31

query I rowsort
SELECT + - 96 + col1 FROM tab0 AS cor0
----
-15
-75
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - MIN( ALL + + 50 ) + + ( - COUNT( * ) ) FROM tab1 cor0
----
-53

skipif mysql # not compatible
query I rowsort label-9620
SELECT - MIN ( ALL + + 50 ) + + ( - COUNT ( * ) ) FROM tab1 cor0
----
-53

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col2 AND + 62
----

query III rowsort
SELECT * FROM tab2 WHERE + 7 + + col0 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query III rowsort
SELECT * FROM tab1 WHERE + ( + + 4 ) + + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 FROM tab1 WHERE ( + - col1 * - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9626
SELECT 14 DIV - 86 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9626
SELECT 14 / - 86 AS col1 FROM tab2
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, - 42 - col2 col2 FROM tab1 AS cor0
----
51
-138
85
-101
91
-110

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9628
SELECT + - CAST( CAST( - 89 AS DECIMAL ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
89
89
89

skipif mysql # not compatible
query I rowsort label-9628
SELECT + - CAST ( CAST ( - 89 AS REAL ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
89
89
89

query I rowsort
SELECT 35 * + 17 FROM tab1 AS cor0
----
595
595
595

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 41 ) - + 8 col2 FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT - 46 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * col2 AND - + 17 * 69 * + col1
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL >= - col2
----

query I rowsort
SELECT + col0 - + col2 * 24 AS col1 FROM tab2 AS cor0
----
-1317
-506
-896

onlyif mysql # aggregate syntax: 
query I rowsort label-9634
SELECT DISTINCT COUNT( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT COUNT ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9635
SELECT ALL - 62 / - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9635
SELECT ALL - 62 / - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9636
SELECT ALL - SUM( ALL + 29 ) AS col2 FROM tab0
----
-87

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL - SUM ( ALL + 29 ) AS col2 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT - MIN( + 42 ) AS col0 FROM tab0 WHERE NOT - 8 IS NULL
----
-42

skipif mysql # not compatible
query I rowsort label-9637
SELECT - MIN ( + 42 ) AS col0 FROM tab0 WHERE NOT - 8 IS NULL
----
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 7 ) col0 FROM tab1
----
7

query I rowsort
SELECT col2 * + 31 AS col0 FROM tab2
----
1240
1798
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9640
SELECT DISTINCT 76 * - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9640
SELECT DISTINCT 76 * - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT ALL + col2, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 5 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # DIV for integer division: 
query I rowsort label-9643
SELECT - col0 DIV 71 AS col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9643
SELECT - col0 / 71 AS col1 FROM tab2
----
-1
0
0

query II rowsort
SELECT ALL - col0 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query II rowsort
SELECT + col0 AS col2, col1 * + col2 * - - col2 FROM tab2 AS cor0
----
46
26979
64
123200
75
225388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT ALL - - CAST( + 46 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
46
46
46

skipif mysql # not compatible
query I rowsort label-9646
SELECT ALL - - CAST ( + 46 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + - 55 * col0 * + col1 + - - ( + col1 ) AS col2 FROM tab2 AS cor0
----
-128979
-270963
-276308

query I rowsort
SELECT - - col1 AS col1 FROM tab0 cor0 WHERE col0 <> 73
----
1
21
81

query I rowsort
SELECT DISTINCT + 42 + - + col1 + 16 AS col1 FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----

query I rowsort
SELECT DISTINCT - col1 + - + 43 AS col2 FROM tab0
----
-124
-44
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9651
SELECT col0 + + col2 + - CAST( 65 AS SIGNED ) * + ( + - col1 ) + + - 89, + 56 AS col0 FROM tab2
----
3295
56
4399
56
5020
56

skipif mysql # not compatible
query II rowsort label-9651
SELECT col0 + + col2 + - CAST ( 65 AS INTEGER ) * + ( + - col1 ) + + - 89, + 56 AS col0 FROM tab2
----
3295
56
4399
56
5020
56

query I rowsort
SELECT ALL + ( - 84 ) FROM tab1
----
-84
-84
-84

query II rowsort
SELECT 99 + 26 * 4 + + col1, col0 FROM tab2
----
254
46
270
75
280
64

query I rowsort
SELECT ALL 15 FROM tab0 WHERE + 27 * - col1 + - 15 + - 77 IS NULL
----

query I rowsort
SELECT - col0 + - 12 FROM tab2
----
-58
-76
-87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9656
SELECT - - 18 * 71 * - + col0 * CAST( NULL AS DECIMAL ) - - - col0 + - + col2 + 51 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9656
SELECT - - 18 * 71 * - + col0 * CAST ( NULL AS REAL ) - - - col0 + - + col2 + 51 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9657
SELECT * FROM tab2 cor0 WHERE col0 - + 25 NOT BETWEEN NULL AND + + CAST( NULL AS DECIMAL ) * + col2
----

skipif mysql # not compatible
query III rowsort label-9657
SELECT * FROM tab2 cor0 WHERE col0 - + 25 NOT BETWEEN NULL AND + + CAST ( NULL AS REAL ) * + col2
----

query I rowsort
SELECT ALL 20 + + 11 + - col1 FROM tab0 cor0
----
-50
10
30

query I rowsort
SELECT DISTINCT + + col0 * - - col2 AS col0 FROM tab0 cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9660
SELECT * FROM tab0 AS cor0 WHERE col1 / - ( + CAST( NULL AS SIGNED ) ) = + col2 / - 58 * - col1 + col1 - - 63
----

skipif mysql # not compatible
query III rowsort label-9660
SELECT * FROM tab0 AS cor0 WHERE col1 / - ( + CAST ( NULL AS INTEGER ) ) = + col2 / - 58 * - col1 + col1 - - 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + col2 ) * col2 - + col2 col0 FROM tab2
----
-1640
-3422
-552

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IS NOT NULL AND NULL IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9663
SELECT ( - - 48 ) + - ( + CAST( NULL AS SIGNED ) ) + - col2 AS col2, 13 - col0 - col2 + 18 AS col0 FROM tab0
----
NULL
-165
NULL
-31
NULL
-66

skipif mysql # not compatible
query II rowsort label-9663
SELECT ( - - 48 ) + - ( + CAST ( NULL AS INTEGER ) ) + - col2 AS col2, 13 - col0 - col2 + 18 AS col0 FROM tab0
----
NULL
-165
NULL
-31
NULL
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT ALL + MAX( - + col2 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9664
SELECT ALL + MAX ( - + col2 ) FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9665
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 50 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9665
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > 50 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9666
SELECT COUNT( * ) DIV - 35 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9666
SELECT COUNT ( * ) / - 35 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9667
SELECT + COUNT( * ) * + - 12 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9667
SELECT + COUNT ( * ) * + - 12 FROM tab2 AS cor0
----
-36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT SUM( ALL - col2 ) DIV - 59 + + - 16 FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT SUM ( ALL - col2 ) / - 59 + + - 16 FROM tab2 AS cor0
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-9669
SELECT + SUM( ALL + 76 ) AS col1 FROM tab2
----
228

skipif mysql # not compatible
query I rowsort label-9669
SELECT + SUM ( ALL + 76 ) AS col1 FROM tab2
----
228

onlyif mysql # aggregate syntax: 
query II rowsort label-9670
SELECT ALL - - COUNT( ALL - - 74 ) * - + COUNT( * ) AS col0, + 13 AS col0 FROM tab0 WHERE NOT + col0 <= NULL
----
0
13

skipif mysql # not compatible
query II rowsort label-9670
SELECT ALL - - COUNT ( ALL - - 74 ) * - + COUNT ( * ) AS col0, + 13 AS col0 FROM tab0 WHERE NOT + col0 <= NULL
----
0
13

query II rowsort
SELECT DISTINCT + 24, 30 * + - col1 AS col0 FROM tab2
----
24
-1530
24
-2010
24
-2310

onlyif mysql # DIV for integer division: 
query II rowsort label-9672
SELECT + 10 col1, 64 - + - 14 * + + col1 DIV + col1 col0 FROM tab1
----
10
78
10
78
10
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9672
SELECT + 10 col1, 64 - + - 14 * + + col1 / + col1 col0 FROM tab1
----
10
78
10
78
10
78

query I rowsort
SELECT DISTINCT + col2 * - - 62 FROM tab1
----
3658
4216
5952

query I rowsort
SELECT ALL col2 * - col2 * - ( + 35 ) AS col2 FROM tab1
----
121835
161840
322560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9675
SELECT - CAST( - + 15 AS SIGNED ) AS col1 FROM tab0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-9675
SELECT - CAST ( - + 15 AS INTEGER ) AS col1 FROM tab0
----
15
15
15

query I rowsort
SELECT DISTINCT + 73 * + - 44 FROM tab1 AS cor0
----
-3212

onlyif mysql # aggregate syntax: 
query II rowsort label-9677
SELECT ALL 36 AS col1, + MIN( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
36
46

skipif mysql # not compatible
query II rowsort label-9677
SELECT ALL 36 AS col1, + MIN ( ALL + col0 ) AS col1 FROM tab2 AS cor0
----
36
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 71 col1 FROM tab1 cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT ALL + ( + COUNT( ALL + col1 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9679
SELECT ALL + ( + COUNT ( ALL + col1 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9680
SELECT ALL + COUNT( * ) + + MIN( ALL 71 ) FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-9680
SELECT ALL + COUNT ( * ) + + MIN ( ALL 71 ) FROM tab0 AS cor0
----
74

query I rowsort
SELECT + 33 + + + 55 + - - 11 - - + 54 FROM tab1 AS cor0
----
153
153
153

query I rowsort
SELECT + - col1 * - 62 + - + 10 AS col1 FROM tab0 AS cor0
----
1292
5012
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT ALL - CAST( + col0 AS SIGNED ) + + ( - - col2 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-9683
SELECT ALL - CAST ( + col0 AS INTEGER ) + + ( - - col2 ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-77
2
32

query II rowsort
SELECT DISTINCT - col0 + + 83, + col0 * col0 AS col0 FROM tab2 AS cor0
----
19
4096
37
2116
8
5625

query I rowsort
SELECT DISTINCT 23 + + col1 FROM tab0 AS cor0
----
104
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9686
SELECT - MIN( - + col2 ) AS col0 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9686
SELECT - MIN ( - + col2 ) AS col0 FROM tab1
----
96

query I rowsort
SELECT DISTINCT + col0 + + col2 * + + 90 AS col0 FROM tab0
----
4245
9007
987

query I rowsort
SELECT ALL 85 * - + col2 * ( 10 ) FROM tab2
----
-19550
-34000
-49300

onlyif mysql # DIV for integer division: 
query I rowsort label-9689
SELECT + col0 DIV + - 54 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9689
SELECT + col0 / + - 54 FROM tab2
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9690
SELECT ALL + ( COUNT( * ) ) - - - COUNT( + col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9690
SELECT ALL + ( COUNT ( * ) ) - - - COUNT ( + col1 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 * - col0 + - col1 FROM tab2 AS cor0
----
-1109
-2637
-4417

onlyif mysql # DIV for integer division: 
query I rowsort label-9692
SELECT DISTINCT - col1 * + 97 * - col0 DIV - col0 AS col0 FROM tab1 cor0
----
-1358
-4559
-485

skipif mysql # not compatible
query I rowsort label-9692
SELECT DISTINCT - col1 * + 97 * - col0 / - col0 AS col0 FROM tab1 cor0
----
-1358
-4559
-485

query I rowsort
SELECT DISTINCT + 16 + - + 96 - + + col1 FROM tab1
----
-127
-85
-94

query I rowsort
SELECT DISTINCT 77 * col2 AS col2 FROM tab2
----
1771
3080
4466

query I rowsort
SELECT DISTINCT + 78 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-9696
SELECT SUM( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
783

skipif mysql # not compatible
query I rowsort label-9696
SELECT SUM ( ALL 87 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
783

onlyif mysql # DIV for integer division: 
query I rowsort label-9697
SELECT ALL + - 25 DIV + col1 - col2 AS col0 FROM tab0 AS cor0
----
-11
-124
-47

skipif mysql # not compatible
query I rowsort label-9697
SELECT ALL + - 25 / + col1 - col2 AS col0 FROM tab0 AS cor0
----
-11
-124
-47

query I rowsort
SELECT ALL - col1 * + - col1 AS col0 FROM tab0 AS cor0
----
1
441
6561

onlyif mysql # aggregate syntax: 
query II rowsort label-9699
SELECT DISTINCT - - SUM( DISTINCT col0 ) AS col2, COUNT( * ) FROM tab2 AS cor0
----
185
3

skipif mysql # not compatible
query II rowsort label-9699
SELECT DISTINCT - - SUM ( DISTINCT col0 ) AS col2, COUNT ( * ) FROM tab2 AS cor0
----
185
3

query I rowsort
SELECT - + col2 * + ( + 62 ) AS col1 FROM tab1 AS cor0
----
-3658
-4216
-5952

onlyif mysql # DIV for integer division: 
query I rowsort label-9701
SELECT DISTINCT 78 DIV - col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-9701
SELECT DISTINCT 78 / - col0 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9702
SELECT ALL 14 DIV - 18 AS col0, 39 * - + 21 AS col2 FROM tab1 AS cor0
----
0
-819
0
-819
0
-819

skipif mysql # not compatible
query II rowsort label-9702
SELECT ALL 14 / - 18 AS col0, 39 * - + 21 AS col2 FROM tab1 AS cor0
----
0
-819
0
-819
0
-819

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT ALL COUNT( * ) AS col2 FROM tab0 WHERE NOT - - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9703
SELECT ALL COUNT ( * ) AS col2 FROM tab0 WHERE NOT - - col1 IS NULL
----
3

query I rowsort
SELECT - col2 * + col1 * + 84 FROM tab1
----
-112896
-24780
-268464

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT NULL <= col0
----

query I rowsort
SELECT ALL + col1 * + 9 * + 66 * - + 77 FROM tab0
----
-3704778
-45738
-960498

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col0 col0 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9708
SELECT DISTINCT COUNT( * ) * 15 * + MAX( col0 ) FROM tab2 AS cor0
----
3375

skipif mysql # not compatible
query I rowsort label-9708
SELECT DISTINCT COUNT ( * ) * 15 * + MAX ( col0 ) FROM tab2 AS cor0
----
3375

query I rowsort
SELECT ALL - ( + 21 ) AS col2 FROM tab1 AS cor0
----
-21
-21
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9710
SELECT DISTINCT + col2 + - - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT + col2 + - - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9711
SELECT ALL col1 col1, CAST( NULL AS SIGNED ) - - - 89 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9711
SELECT ALL col1 col1, CAST ( NULL AS INTEGER ) - - - 89 AS col1 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9712
SELECT ALL - 92 DIV + SUM( + col1 ) + + + 67 AS col1 FROM tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9712
SELECT ALL - 92 / + SUM ( + col1 ) + + + 67 AS col1 FROM tab0 AS cor0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9714
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 91 NOT BETWEEN 12 * + CAST( NULL AS SIGNED ) * col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9714
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 91 NOT BETWEEN 12 * + CAST ( NULL AS INTEGER ) * col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9715
SELECT MIN( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9715
SELECT MIN ( DISTINCT - + col0 ) AS col0 FROM tab1 AS cor0
----
-91

query I rowsort
SELECT ALL ( + 65 ) FROM tab2 AS cor0
----
65
65
65

query I rowsort
SELECT ALL - col1 + + col1 + 94 FROM tab1 cor0
----
94
94
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9718
SELECT + + col2, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-9718
SELECT + + col2, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + 17 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 + - ( + + col2 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9721
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 31 + + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 * + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9721
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 31 + + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col2 * + + col0 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL + 74 + + CAST( col2 AS SIGNED ) + col1 * - 8 FROM tab0 AS cor0
----
-527
-84
165

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + 74 + + CAST ( col2 AS INTEGER ) + col1 * - 8 FROM tab0 AS cor0
----
-527
-84
165

onlyif mysql # aggregate syntax: 
query I rowsort label-9723
SELECT + COUNT( * ) + - - 3 * + 42 AS col0 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-9723
SELECT + COUNT ( * ) + - - 3 * + 42 AS col0 FROM tab2
----
129

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 NOT BETWEEN + 83 / - + col2 AND - col2 * - col2
----

query I rowsort
SELECT col0 + ( - + col1 ) AS col1 FROM tab1
----
37
44
80

query I rowsort
SELECT + 35 + + col1 AS col1 FROM tab0
----
116
36
56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9727
SELECT COUNT( + - col2 ) * 60 DIV COUNT( * ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-9727
SELECT COUNT ( + - col2 ) * 60 / COUNT ( * ) FROM tab0
----
60

query I rowsort
SELECT + 50 AS col0 FROM tab2 WHERE ( + col2 + + - col2 ) IS NOT NULL
----
50
50
50

query I rowsort
SELECT + col1 + ( + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 NOT IN ( - col1, col1 )
----

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 89 * + 41 FROM tab1
----
3649
3649
3649

query I rowsort
SELECT DISTINCT - col0 * col2 * - col0 FROM tab0
----
10575
75690
931491

onlyif mysql # aggregate syntax: 
query II rowsort label-9734
SELECT - COUNT( * ), 11 AS col2 FROM tab1 AS cor0
----
-3
11

skipif mysql # not compatible
query II rowsort label-9734
SELECT - COUNT ( * ), 11 AS col2 FROM tab1 AS cor0
----
-3
11

onlyif mysql # aggregate syntax: 
query I rowsort label-9735
SELECT DISTINCT 21 * - COUNT( * ) FROM tab2 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-9735
SELECT DISTINCT 21 * - COUNT ( * ) FROM tab2 AS cor0
----
-63

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + ( col2 ) IS NOT NULL
----

query II rowsort
SELECT ALL col2, 0 FROM tab2 AS cor0
----
23
0
40
0
58
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9738
SELECT DISTINCT + COUNT( * ) * 79 AS col2 FROM tab1 cor0
----
237

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + COUNT ( * ) * 79 AS col2 FROM tab1 cor0
----
237

query I rowsort
SELECT + + 51 * ( - col2 ) + 37 * col0 + + col0 AS col0 FROM tab2 AS cor0
----
-108
392
575

query I rowsort
SELECT DISTINCT col0 * + 43 FROM tab2
----
1978
2752
3225

onlyif mysql # aggregate syntax: 
query I rowsort label-9741
SELECT SUM( + col2 ) * 91 * - MAX( - col1 ) AS col2 FROM tab0
----
14196

skipif mysql # not compatible
query I rowsort label-9741
SELECT SUM ( + col2 ) * 91 * - MAX ( - col1 ) AS col2 FROM tab0
----
14196

query I rowsort
SELECT ALL 20 * - + col2 AS col2 FROM tab2
----
-1160
-460
-800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9743
SELECT CAST( NULL AS SIGNED ) * + + MIN( + 17 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9743
SELECT CAST ( NULL AS INTEGER ) * + + MIN ( + 17 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9744
SELECT ALL 87 * + COUNT( ALL + col0 ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-9744
SELECT ALL 87 * + COUNT ( ALL + col0 ) FROM tab2
----
261

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 + + col1 FROM tab0 WHERE NULL <> col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9747
SELECT DISTINCT - col0 DIV - - ( + col2 ) AS col0 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - col0 / - - ( + col2 ) AS col0 FROM tab1
----
-1
0

query I rowsort
SELECT ALL + col2 + + - 69 FROM tab0 AS cor0
----
-22
-59
30

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - 48 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9750
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) + + 87 FROM tab2 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9750
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) + + 87 FROM tab2 AS cor0
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-9751
SELECT DISTINCT + 95 + - + col2 - + + col0 DIV + 24 FROM tab1
----
-3
24
33

skipif mysql # not compatible
query I rowsort label-9751
SELECT DISTINCT + 95 + - + col2 - + + col0 / + 24 FROM tab1
----
-3
24
33

query I rowsort
SELECT ALL - col1 * + col0 + + - col1 * col1 * ( - ( + col2 ) ) AS col0 FROM tab0
----
2
2583
307152

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT - 66 * + 99 + COUNT( * ) FROM tab1 cor0
----
-6531

skipif mysql # not compatible
query I rowsort label-9753
SELECT - 66 * + 99 + COUNT ( * ) FROM tab1 cor0
----
-6531

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 <= ( - 59 )
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 42 * - 13 / - 74 - - col0 col1 FROM tab2 cor0 WHERE col0 * - + 18 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * + col1 - + - col0 IS NULL
----

query I rowsort
SELECT + col1 * - col1 * + col0 FROM tab0 AS cor0
----
-38367
-97
-98415

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + 76 * - col1 * + col0 col1 FROM tab1 AS cor0
----
-32295
-325005
-54250

onlyif mysql # DIV for integer division: 
query II rowsort label-9759
SELECT - col2, col0 + + 6 + col2 DIV + col2 AS col2 FROM tab1 AS cor0
----
-59
92
-68
98
-96
58

skipif mysql # not compatible
query II rowsort label-9759
SELECT - col2, col0 + + 6 + col2 / + col2 AS col2 FROM tab1 AS cor0
----
-59
92
-68
98
-96
58

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE + 83 + - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 99 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9762
SELECT DISTINCT + COUNT( * ) - - MAX( - col1 ) AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9762
SELECT DISTINCT + COUNT ( * ) - - MAX ( - col1 ) AS col2 FROM tab2
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT COUNT( - col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9763
SELECT COUNT ( - col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 - + col2 + + col2 * col1 + 39 AS col1 FROM tab2 WHERE NULL IS NULL
----
1235
3143
3942

query I rowsort
SELECT - 47 + col2 + - - col2 FROM tab1 AS cor0
----
145
71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT DISTINCT + MAX( - - 52 ) col2 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9766
SELECT DISTINCT + MAX ( - - 52 ) col2 FROM tab0 AS cor0
----
52

query I rowsort
SELECT ALL col0 + - col2 * ( + col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9768
SELECT + AVG ( CAST( NULL AS DECIMAL ) ) FROM tab0 cor0 WHERE NOT NULL = + 22 * - + CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-9768
SELECT + AVG ( CAST ( NULL AS REAL ) ) FROM tab0 cor0 WHERE NOT NULL = + 22 * - + CAST ( NULL AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9769
SELECT ALL - ( CAST( NULL AS SIGNED ) ) + - - 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - ( CAST ( NULL AS INTEGER ) ) + - - 86 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT + 66 AS col1 FROM tab1 AS cor0 WHERE NOT col0 + - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - 88 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9772
SELECT + 66 + - 53 * + + COUNT( * ) + 60 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
126

skipif mysql # not compatible
query I rowsort label-9772
SELECT + 66 + - 53 * + + COUNT ( * ) + 60 FROM tab0 AS cor0 WHERE NOT NULL <= col2
----
126

query I rowsort
SELECT - col2 * - + ( + + col0 ) FROM tab1 cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT ALL + MIN( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9774
SELECT ALL + MIN ( DISTINCT + - col0 ) AS col0 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT 58 + - - 7 AS col1 FROM tab0 AS cor0
----
65

query I rowsort
SELECT DISTINCT 16 AS col2 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----

query II rowsort
SELECT ALL - col0, 75 AS col0 FROM tab2
----
-46
75
-64
75
-75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IN ( - col1 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9779
SELECT + COUNT( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-9779
SELECT + COUNT ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9780
SELECT DISTINCT + 90 DIV + COUNT( * ) FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-9780
SELECT DISTINCT + 90 / + COUNT ( * ) FROM tab0
----
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9781
SELECT DISTINCT COUNT( * ) DIV - 55 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9781
SELECT DISTINCT COUNT ( * ) / - 55 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9782
SELECT + 50 + + COUNT( * ) AS col1 FROM tab1
----
53

skipif mysql # not compatible
query I rowsort label-9782
SELECT + 50 + + COUNT ( * ) AS col1 FROM tab1
----
53

onlyif mysql # DIV for integer division: 
query I rowsort label-9783
SELECT ALL - col2 DIV 65 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL - col2 / 65 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9784
SELECT - - col1 * - col1 + - CAST( 99 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2700
-4588
-6028

skipif mysql # not compatible
query I rowsort label-9784
SELECT - - col1 * - col1 + - CAST ( 99 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2700
-4588
-6028

query I rowsort
SELECT 43 + col0 FROM tab0 AS cor0
----
130
140
58

query I rowsort
SELECT DISTINCT + ( + ( + + col2 ) ) + + + col0 AS col1 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NULL <> - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9788
SELECT ALL CAST( NULL AS SIGNED ) + + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9788
SELECT ALL CAST ( NULL AS INTEGER ) + + col0 * + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 08d3853e39924d3c636260a6dd856837

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9790
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9790
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9791
SELECT DISTINCT CAST( NULL AS SIGNED ) * + + col2 + - ( col1 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + + col2 + - ( col1 ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT ALL - col2 - 49 AS col2 FROM tab0
----
-148
-59
-96

query I rowsort
SELECT + - ( col1 ) - 39 AS col0 FROM tab0 AS cor0
----
-120
-40
-60

query I rowsort
SELECT - 33 FROM tab0 cor0 WHERE col2 * + - ( + - col1 ) * + col2 * - - 10 - - col0 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <= - 60
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9796
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9796
SELECT ALL * FROM tab2 AS cor0 WHERE + col2 >= + - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + + + ( - col0 ) >= - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= - 41 + + + col0
----

query I rowsort
SELECT 20 + - col1 * - col0 AS col0 FROM tab0 cor0
----
117
1235
1847

onlyif mysql # DIV for integer division: 
query I rowsort label-9800
SELECT col0 + + 41 DIV - - 12 AS col0 FROM tab1
----
54
88
94

skipif mysql # not compatible
query I rowsort label-9800
SELECT col0 + + 41 / - - 12 AS col0 FROM tab1
----
54
88
94

query III rowsort
SELECT ALL * FROM tab0 WHERE + 76 BETWEEN - - col0 AND + col0 - col2 / 28
----

query I rowsort
SELECT DISTINCT + 50 - - col0 FROM tab0
----
137
147
65

query III rowsort
SELECT * FROM tab0 WHERE ( - + 55 ) IS NULL
----

query I rowsort
SELECT + ( - 54 ) AS col1 FROM tab1
----
-54
-54
-54

query I rowsort
SELECT DISTINCT 8 - 94 FROM tab2
----
-86

onlyif mysql # aggregate syntax: 
query II rowsort label-9806
SELECT - 32 AS col0, 31 + + + COUNT( * ) AS col1 FROM tab0
----
-32
34

skipif mysql # not compatible
query II rowsort label-9806
SELECT - 32 AS col0, 31 + + + COUNT ( * ) AS col1 FROM tab0
----
-32
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 - - col2 + col0 col1, col2 FROM tab1 WHERE NULL IS NULL
----
112
68
133
96
139
59

query I rowsort
SELECT ALL + - 45 * - 84 FROM tab0 AS cor0
----
3780
3780
3780

onlyif mysql # aggregate syntax: 
query II rowsort label-9809
SELECT DISTINCT 92, COUNT( * ) AS col2 FROM tab1
----
92
3

skipif mysql # not compatible
query II rowsort label-9809
SELECT DISTINCT 92, COUNT ( * ) AS col2 FROM tab1
----
92
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9810
SELECT ALL - + CAST( + - col1 AS SIGNED ) FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-9810
SELECT ALL - + CAST ( + - col1 AS INTEGER ) FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT ( 29 ) FROM tab0 AS cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT - + 28 + + COUNT( * ) - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT 15 < + - col1
----
-22

skipif mysql # not compatible
query I rowsort label-9812
SELECT - + 28 + + COUNT ( * ) - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT 15 < + - col1
----
-22

query I rowsort
SELECT DISTINCT col0 * + + ( 5 ) + - col1 + - ( + + 18 ) + 2 * + 43 FROM tab1 AS cor0
----
309
476
488

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9814
SELECT 46 * + col0 + + CAST( col2 AS SIGNED ) AS col1 FROM tab2 cor0
----
2139
2984
3508

skipif mysql # not compatible
query I rowsort label-9814
SELECT 46 * + col0 + + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
2139
2984
3508

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9816
SELECT ALL - CAST( - - col1 AS SIGNED ), + col0 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-9816
SELECT ALL - CAST ( - - col1 AS INTEGER ), + col0 FROM tab2
----
-51
46
-67
75
-77
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col0 col0 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT 30 * - + 82 + + 84 - - col0 * 56 * + ( 64 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9819
SELECT SUM( ( - col0 ) ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-9819
SELECT SUM ( ( - col0 ) ) AS col1 FROM tab1
----
-227

query I rowsort
SELECT ( + col1 ) * + 26 FROM tab0
----
2106
26
546

query II rowsort
SELECT 11 * - - col0 AS col2, col2 AS col0 FROM tab1
----
1001
68
561
96
935
59

query I rowsort
SELECT DISTINCT - col0 * 94 + - col0 AS col2 FROM tab1 AS cor0
----
-4845
-8075
-8645

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= 46
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 3 < NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col1 AND - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < - + col0 OR NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL - 33 + col0 FROM tab1
----
18
52
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - 61 + ( - + 43 ) col0, col2 AS col0, - 53 AS col2 FROM tab2 AS cor0
----
9 values hashing to b6e6722e89c7e7083b8e974c485e939e

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL - - COUNT( DISTINCT + - col2 ) * - 53 + - ( + + CAST( COUNT( * ) AS SIGNED ) ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL - - COUNT ( DISTINCT + - col2 ) * - 53 + - ( + + CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab1 AS cor0
----
-162

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9831
SELECT * FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) BETWEEN + 10 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9831
SELECT * FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) BETWEEN + 10 AND NULL
----

query I rowsort
SELECT DISTINCT + - 76 + - col1 + 18 FROM tab1 AS cor0
----
-105
-63
-72

query I rowsort
SELECT + 11 * + - col1 AS col2 FROM tab0 AS cor0
----
-11
-231
-891

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT ALL - COUNT( * ) + + 82 FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-9834
SELECT ALL - COUNT ( * ) + + 82 FROM tab0 AS cor0
----
79

query I rowsort
SELECT col2 - + 79 AS col0 FROM tab0 cor0
----
-32
-69
20

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9836
SELECT DISTINCT - AVG ( DISTINCT ( + col2 ) ) + - 29 FROM tab2 AS cor0 WHERE NOT + ( - - CAST( NULL AS SIGNED ) ) = + 57 + CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9836
SELECT DISTINCT - AVG ( DISTINCT ( + col2 ) ) + - 29 FROM tab2 AS cor0 WHERE NOT + ( - - CAST ( NULL AS INTEGER ) ) = + 57 + CAST ( NULL AS REAL )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9837
SELECT col2 - - col0 DIV 16 FROM tab2
----
25
44
62

skipif mysql # not compatible
query I rowsort label-9837
SELECT col2 - - col0 / 16 FROM tab2
----
25
44
62

query I rowsort
SELECT DISTINCT - 90 + + col0 + + + col0 AS col2 FROM tab2
----
2
38
60

query I rowsort
SELECT col0 - - ( - col2 ) AS col1 FROM tab0
----
-2
-32
77

query I rowsort
SELECT - col0 + - - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query I rowsort
SELECT DISTINCT + 77 FROM tab0 WHERE NULL NOT IN ( + col0, + col0 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + col1 * - 35 + - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9843
SELECT DISTINCT + 89 * + - col1 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT DISTINCT + 89 * + - col1 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col1 * + + 32 FROM tab2 cor0
----
1632
2144
2464

query I rowsort
SELECT ALL + - 69 AS col2 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT - MIN( + 97 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9846
SELECT - MIN ( + 97 ) FROM tab2 AS cor0
----
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col1, col1 AS col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ( - + 47 ) FROM tab2 cor0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-9849
SELECT DISTINCT + + 61 DIV + col0 + - 36 + col1 + + - ( + col0 ) * 89 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-1286
-7758
-8668

skipif mysql # not compatible
query I rowsort label-9849
SELECT DISTINCT + + 61 / + col0 + - 36 + col1 + + - ( + col0 ) * 89 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-1286
-7758
-8668

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL SUM( ALL - - col1 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL SUM ( ALL - - col1 ) FROM tab1
----
66

query I rowsort
SELECT DISTINCT ( + ( - col0 ) ) + col2 * col2 AS col2 FROM tab2
----
1536
3289
483

query I rowsort
SELECT ALL 92 + 67 * - + col2 * 67 FROM tab0
----
-210891
-444319
-44798

query I rowsort
SELECT DISTINCT col0 * col2 + + ( - col2 ) FROM tab2
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL + MAX( DISTINCT - - 25 ) FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + MAX ( DISTINCT - - 25 ) FROM tab2
----
25

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + 99 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9856
SELECT - 76 + col1 - - + col2 DIV col2 + - 45 AS col0 FROM tab2
----
-43
-53
-69

skipif mysql # not compatible
query I rowsort label-9856
SELECT - 76 + col1 - - + col2 / col2 + - 45 AS col0 FROM tab2
----
-43
-53
-69

query II rowsort
SELECT DISTINCT 37, col2 + - + col0 + + + col0 + + col1 * col0 AS col2 FROM tab1
----
37
4345
37
484
37
810

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT - MAX( DISTINCT - col0 ) + + COUNT( * ) FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-9858
SELECT - MAX ( DISTINCT - col0 ) + + COUNT ( * ) FROM tab2
----
49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col2, + ( 46 ) AS col1 FROM tab2 AS cor0
----
-46
46
-64
46
-75
46

query I rowsort
SELECT DISTINCT + 10 + + 54 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
64

query II rowsort
SELECT ALL - 84 - + - col2, col2 AS col0 FROM tab1
----
-16
68
-25
59
12
96

query I rowsort
SELECT + col0 - + col2 + + - col1 FROM tab2
----
-28
-50
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 64 * + col0 * col2 col1 FROM tab0
----
45120
55680
614592

query I rowsort
SELECT DISTINCT + col2 - - - 27 FROM tab0
----
-17
20
72

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT COUNT( * ) + + 81 - - ( + ( + + SUM( + 85 ) ) ) * - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-9865
SELECT COUNT ( * ) + + 81 - - ( + ( + + SUM ( + 85 ) ) ) * - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-681

query I rowsort
SELECT DISTINCT - - ( col0 ) * col2 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - col1 ) <> + + 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9868
SELECT ALL 2 * + 14 + + COUNT( * ) col2 FROM tab0 AS cor0
----
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9868
SELECT ALL 2 * + 14 + + COUNT ( * ) col2 FROM tab0 AS cor0
----
31

query I rowsort
SELECT ALL + 70 * col1 * - + col1 FROM tab0 cor0
----
-30870
-459270
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9870
SELECT + CAST( NULL AS DECIMAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9870
SELECT + CAST ( NULL AS REAL ) col2 FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9872
SELECT COUNT( - 19 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9872
SELECT COUNT ( - 19 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9873
SELECT ALL - COUNT( * ) AS col2 FROM tab0 WHERE NOT 6 IN ( col1, col2 * + col1 + + + col1, - col1, + col2 * - col1 + - ( - 81 ), + col0 + + - 27 )
----
-3

skipif mysql # not compatible
query I rowsort label-9873
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 WHERE NOT 6 IN ( col1, col2 * + col1 + + + col1, - col1, + col2 * - col1 + - ( - 81 ), + col0 + + - 27 )
----
-3

query II rowsort
SELECT ALL 31 AS col2, - col0 AS col2 FROM tab2
----
31
-46
31
-64
31
-75

query I rowsort
SELECT ALL col1 * 94 * + col2 AS col0 FROM tab1
----
126336
27730
300424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9876
SELECT DISTINCT + 5 * + MIN( - CAST( NULL AS SIGNED ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9876
SELECT DISTINCT + 5 * + MIN ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT COUNT( ALL + ( col1 ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9877
SELECT COUNT ( ALL + ( col1 ) ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9878
SELECT + SUM( ALL + 61 ) * - MIN( - + 70 ) FROM tab0
----
12810

skipif mysql # not compatible
query I rowsort label-9878
SELECT + SUM ( ALL + 61 ) * - MIN ( - + 70 ) FROM tab0
----
12810

query I rowsort
SELECT DISTINCT 28 * + 80 FROM tab1
----
2240

onlyif mysql # DIV for integer division: 
query I rowsort label-9880
SELECT DISTINCT - 79 DIV + col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9880
SELECT DISTINCT - 79 / + col1 FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9881
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9881
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT + 59 + + col0 * 73 AS col1 FROM tab1
----
3782
6264
6702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 / col1 + + 61 / - 59 col2 FROM tab0 WHERE NOT + 25 NOT IN ( col2 * + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab1 WHERE ( + ( 13 ) ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab1 WHERE ( + ( 13 ) ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 87 AS col2 FROM tab2
----
133
151
162

query III rowsort
SELECT * FROM tab0 WHERE NOT - 20 >= ( + ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT + ( - CAST( NULL AS SIGNED ) ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9887
SELECT + ( - CAST ( NULL AS INTEGER ) ) * col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NULL >= ( ( col2 ) + - ( 19 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9889
SELECT ALL CAST( 3 AS SIGNED ) AS col1 FROM tab2
----
3
3
3

skipif mysql # not compatible
query I rowsort label-9889
SELECT ALL CAST ( 3 AS INTEGER ) AS col1 FROM tab2
----
3
3
3

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9891
SELECT DISTINCT 97 * SUM( DISTINCT col0 ) AS col2 FROM tab1
----
22019

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT 97 * SUM ( DISTINCT col0 ) AS col2 FROM tab1
----
22019

query I rowsort
SELECT DISTINCT 0 FROM tab1 WHERE col0 > + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 ) * col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT ( + 2 ) BETWEEN ( col1 ) AND NULL
----
23
40
58

query I rowsort
SELECT col2 FROM tab2 WHERE ( + 52 + + 73 ) NOT BETWEEN 2 / 51 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( ( col0 ) * 66 - 12 ) AND NULL
----

query I rowsort
SELECT - ( - ( col1 ) ) - col1 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9898
SELECT DISTINCT MIN( 14 ) * + ( + COUNT( * ) ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-9898
SELECT DISTINCT MIN ( 14 ) * + ( + COUNT ( * ) ) FROM tab0
----
42

query I rowsort
SELECT col0 - 31 * 78 AS col1 FROM tab0 WHERE NOT + col0 IS NULL
----
-2321
-2331
-2403

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col1 - + 23 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT MAX( DISTINCT - col0 ) AS col2 FROM tab0 WHERE + 87 / + 41 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9902
SELECT MAX ( DISTINCT - col0 ) AS col2 FROM tab0 WHERE + 87 / + 41 IS NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9903
SELECT ALL * FROM tab1 WHERE NOT + CAST( NULL AS DECIMAL ) NOT BETWEEN col2 AND + col0 + - col1
----

skipif mysql # not compatible
query III rowsort label-9903
SELECT ALL * FROM tab1 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN col2 AND + col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9904
SELECT ALL COUNT( ALL 97 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL COUNT ( ALL 97 ) FROM tab2
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9905
SELECT ALL - col1 DIV - 20 + - 17 FROM tab2
----
-14
-14
-15

skipif mysql # not compatible
query I rowsort label-9905
SELECT ALL - col1 / - 20 + - 17 FROM tab2
----
-14
-14
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-9906
SELECT col2 - - 7 DIV - col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9906
SELECT col2 - - 7 / - col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT + col0 FROM tab0 AS cor0 WHERE ( 54 * + 3 ) IS NOT NULL
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT CAST( 96 AS SIGNED ) * col1 + ( 23 ) col1 FROM tab2 AS cor0
----
4919
6455
7415

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9908
SELECT CAST ( 96 AS INTEGER ) * col1 + ( 23 ) col1 FROM tab2 AS cor0
----
4919
6455
7415

query I rowsort
SELECT DISTINCT - 50 + - 89 FROM tab1 AS cor0
----
-139

onlyif mysql # aggregate syntax: 
query I rowsort label-9910
SELECT 62 * MIN( + 46 ) + - MAX( ALL col0 - - col0 ) col2 FROM tab2
----
2702

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9910
SELECT 62 * MIN ( + 46 ) + - MAX ( ALL col0 - - col0 ) col2 FROM tab2
----
2702

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT ALL - COUNT( col1 ) + 47 AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-9911
SELECT ALL - COUNT ( col1 ) + 47 AS col1 FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-9912
SELECT - + 7 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9912
SELECT - + 7 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( col1 ) ) IN ( + col2 * - 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 65 + - col0 FROM tab1 AS cor0 WHERE NOT NULL > 13
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9915
SELECT - SUM( + col2 ) / ( COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) * + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9915
SELECT - SUM ( + col2 ) / ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) * + col1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 34 col0 FROM tab1 AS cor0
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9918
SELECT MIN( col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9918
SELECT MIN ( col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN NULL AND 5 + col1 * - 63
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9921
SELECT DISTINCT - COUNT( * ) * SUM( col2 ) AS col0 FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-9921
SELECT DISTINCT - COUNT ( * ) * SUM ( col2 ) AS col0 FROM tab2 AS cor0
----
-363

query I rowsort
SELECT DISTINCT 95 AS col1 FROM tab2 AS cor0 WHERE NOT ( 7 ) IS NULL
----
95

query III rowsort
SELECT * FROM tab2 WHERE NOT 82 * col1 + col2 / 81 <= col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 >= ( + col0 * 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9925
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9925
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 36 col1 FROM tab0 WHERE NOT col0 IS NULL
----
36

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 5 / + col1 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9930
SELECT DISTINCT - MAX( DISTINCT - - col1 ) * + 89 AS col2 FROM tab2
----
-6853

skipif mysql # not compatible
query I rowsort label-9930
SELECT DISTINCT - MAX ( DISTINCT - - col1 ) * + 89 AS col2 FROM tab2
----
-6853

query I rowsort
SELECT 65 * - col0 AS col1 FROM tab1
----
-3315
-5525
-5915

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 42 col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN col1 / col1 AND 67 + + col2 AND NOT NULL NOT IN ( - 48 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9933
SELECT DISTINCT + COUNT( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9933
SELECT DISTINCT + COUNT ( * ) AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT + 19 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

query I rowsort
SELECT 50 - - col1 FROM tab2 WHERE NOT col1 NOT BETWEEN 92 AND NULL
----

query I rowsort
SELECT DISTINCT - 28 * - col0 FROM tab0
----
2436
2716
420

onlyif mysql # DIV for integer division: 
query I rowsort label-9937
SELECT ALL + + 72 DIV + + col1 + + col1 FROM tab2 AS cor0
----
52
68
77

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL + + 72 / + + col1 + + col1 FROM tab2 AS cor0
----
52
68
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9938
SELECT DISTINCT - COUNT( * ) + 89 AS col2 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9938
SELECT DISTINCT - COUNT ( * ) + 89 AS col2 FROM tab1 AS cor0
----
86

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - 0 + + col1 + + col1 * - col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9940
SELECT * FROM tab2 AS cor0 WHERE - CAST( + 9 AS SIGNED ) + - ( - 91 ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-9940
SELECT * FROM tab2 AS cor0 WHERE - CAST ( + 9 AS INTEGER ) + - ( - 91 ) IN ( - col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9941
SELECT + + 79 DIV + col2 col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9941
SELECT + + 79 / + col2 col1 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT + col0 * - - col0 AS col1 FROM tab0 AS cor0
----
225
7569
9409

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 42 col2 FROM tab0 AS cor0
----
42

query I rowsort
SELECT DISTINCT + + col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 * - + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * col2 + ( col0 ) + - col1 * col2 col1 FROM tab2 AS cor0
----
-2300
-6096
-7697

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - ( col0 ) ) NOT BETWEEN + col0 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9948
SELECT DISTINCT - ( col1 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col0 * 55 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9948
SELECT DISTINCT - ( col1 ) AS col0 FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col0 * 55 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col0 + - - col0 AS col0 FROM tab0
----
174
194
30

onlyif mysql # DIV for integer division: 
query I rowsort label-9950
SELECT DISTINCT 83 DIV - - 76 col2 FROM tab2
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9950
SELECT DISTINCT 83 / - - 76 col2 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9951
SELECT ALL * FROM tab1 WHERE NOT - col1 + + - col2 * CAST( 66 AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9951
SELECT ALL * FROM tab1 WHERE NOT - col1 + + - col2 * CAST ( 66 AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col1 + - col1 + - ( col2 ) + ( + col0 ) FROM tab2
----
17
23
24

query I rowsort
SELECT ALL - col0 - + col2 - - - col2 AS col0 FROM tab1
----
-203
-227
-243

query I rowsort
SELECT DISTINCT ( - 59 ) FROM tab2
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT + MIN( DISTINCT + 25 ) FROM tab1 WHERE - 73 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9955
SELECT + MIN ( DISTINCT + 25 ) FROM tab1 WHERE - 73 IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9956
SELECT + ( - CAST( + MAX( - + ( + col0 ) ) AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-9956
SELECT + ( - CAST ( + MAX ( - + ( + col0 ) ) AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - - 21 - - - col0 FROM tab1 AS cor0
----
-30
-64
-70

query I rowsort
SELECT + col1 - - 14 AS col0 FROM tab2
----
65
81
91

query I rowsort
SELECT col1 - + - col2 AS col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT COUNT( * ) * 32 AS col1 FROM tab1 WHERE NOT + - col1 BETWEEN ( + 18 + + col1 ) AND + 65
----
96

skipif mysql # not compatible
query I rowsort label-9960
SELECT COUNT ( * ) * 32 AS col1 FROM tab1 WHERE NOT + - col1 BETWEEN ( + 18 + + col1 ) AND + 65
----
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + 35 ) <= + col1
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <= + 40
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( + - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= 47
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9965
SELECT ALL + COUNT( + ( + - CAST( - col0 AS SIGNED ) ) ) AS col2 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9965
SELECT ALL + COUNT ( + ( + - CAST ( - col0 AS INTEGER ) ) ) AS col2 FROM tab0 cor0
----
3

query I rowsort
SELECT ALL - ( + ( - - col1 ) ) FROM tab2
----
-51
-67
-77

query II rowsort
SELECT DISTINCT 36, col0 FROM tab0
----
36
15
36
87
36
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9968
SELECT DISTINCT - 79 * + - SUM( - CAST( col0 AS SIGNED ) ) FROM tab1
----
-17933

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT - 79 * + - SUM ( - CAST ( col0 AS INTEGER ) ) FROM tab1
----
-17933

query I rowsort
SELECT ( + 74 ) * - + 0 + - - ( - col0 ) FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9970
SELECT col1 DIV 2 FROM tab1
----
2
23
7

skipif mysql # not compatible
query I rowsort label-9970
SELECT col1 / 2 FROM tab1
----
2
23
7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( + 18 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9972
SELECT 55 DIV + + col1 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9972
SELECT 55 / + + col1 FROM tab2
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT - COUNT( DISTINCT + - 76 ) col0 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9973
SELECT - COUNT ( DISTINCT + - 76 ) col0 FROM tab0
----
-1

query I rowsort
SELECT 4 * 84 AS col0 FROM tab0
----
336
336
336

query I rowsort
SELECT ALL + 57 AS col1 FROM tab2, tab1 AS cor0 WHERE ( NULL ) IS NULL
----
9 values hashing to 61da70c624ad60604a668f7f8f29392a

query I rowsort
SELECT ALL + ( + - col2 ) AS col0 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9977
SELECT ALL - + 10 + MIN( col2 ) FROM tab2 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-9977
SELECT ALL - + 10 + MIN ( col2 ) FROM tab2 AS cor0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9978
SELECT DISTINCT - col0 DIV 88 FROM tab0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9978
SELECT DISTINCT - col0 / 88 FROM tab0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9979
SELECT COUNT( DISTINCT 7 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-9979
SELECT COUNT ( DISTINCT 7 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
1

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + + col0 )
----

query I rowsort
SELECT ALL + 2 AS col0 FROM tab1 WHERE NOT ( + + col2 + + col2 ) IS NULL
----
2
2
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9982
SELECT - 1 DIV col0 + + 77 FROM tab1 AS cor0
----
77
77
77

skipif mysql # not compatible
query I rowsort label-9982
SELECT - 1 / col0 + + 77 FROM tab1 AS cor0
----
77
77
77

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 * - 8 * col0 * - 18 NOT IN ( col0 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9984
SELECT + 68 DIV + 36 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9984
SELECT + 68 / + 36 FROM tab2 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9985
SELECT ALL SUM( ALL - - col1 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9985
SELECT ALL SUM ( ALL - - col1 ) FROM tab1 AS cor0 WHERE NULL NOT IN ( - col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9986
SELECT DISTINCT + + col1 + - + 12 + + col1 DIV 63 FROM tab0 cor0
----
-11
70
9

skipif mysql # not compatible
query I rowsort label-9986
SELECT DISTINCT + + col1 + - + 12 + + col1 / 63 FROM tab0 cor0
----
-11
70
9

query I rowsort
SELECT col1 * + 19 * - col1 AS col2 FROM tab2
----
-112651
-49419
-85291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9988
SELECT ALL CAST( 5 AS SIGNED ) + - - col0 FROM tab1
----
56
90
96

skipif mysql # not compatible
query I rowsort label-9988
SELECT ALL CAST ( 5 AS INTEGER ) + - - col0 FROM tab1
----
56
90
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT 80 + - 70 AS col1 FROM tab0
----
10

query I rowsort
SELECT 95 - - col1 FROM tab0
----
116
176
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * - + ( - col2 ) - + + col0 * - 95 * - + col0 col0 FROM tab2
----
-202078
-391680
-538725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9993
SELECT DISTINCT - CAST( - 93 AS SIGNED ) * 26 FROM tab0 AS cor0
----
2418

skipif mysql # not compatible
query I rowsort label-9993
SELECT DISTINCT - CAST ( - 93 AS INTEGER ) * 26 FROM tab0 AS cor0
----
2418

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9994
SELECT DISTINCT - - CAST( NULL AS SIGNED ) col1, + col0 + - col1 FROM tab2 AS cor0
----
NULL
-13
NULL
-5
NULL
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9994
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) col1, + col0 + - col1 FROM tab2 AS cor0
----
NULL
-13
NULL
-5
NULL
8

query I rowsort
SELECT + - col1 + + 84 - col2 * col1 * + ( - 79 ) * + 30 * - col2 AS col0 FROM tab2 AS cor0
----
-291983993
-534169543
-63940197

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9996
SELECT + CAST( 91 AS DECIMAL ) + + 75 FROM tab0 AS cor0 WHERE + col2 = + 61
----

skipif mysql # not compatible
query I rowsort label-9996
SELECT + CAST ( 91 AS REAL ) + + 75 FROM tab0 AS cor0 WHERE + col2 = + 61
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL >= - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9998
SELECT ALL COUNT( + 58 ) DIV COUNT( * ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9998
SELECT ALL COUNT ( + 58 ) / COUNT ( * ) AS col1 FROM tab2
----
1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL BETWEEN NULL AND ( + 52 ) )
----

