hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 * col1 * + + col2 + - + col1 AS col2 FROM tab0
----
18249
57024
9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 62 - col0 col1 FROM tab0
----
-25
-35
47

query I rowsort
SELECT - col0 - - col1 + + - col0 * - + col1 * - col2 FROM tab0
----
-18336
-57039
-9699

query I rowsort
SELECT col2 - - + col1 * ( - col2 ) FROM tab0
----
-200
-3760
0

query II rowsort
SELECT ALL 35, + col2 FROM tab1
----
35
59
35
68
35
96

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6
SELECT DISTINCT + ( + 25 ) DIV + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8

skipif mysql # not compatible
query I rowsort label-6
SELECT DISTINCT + ( + 25 ) / + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-8

query I rowsort
SELECT ALL + + col0 * - col0 - + - col2 * + 63 * ( 49 ) AS col0 FROM tab1 AS cor0
----
174908
201635
293751

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

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

query II rowsort
SELECT + + col1 * col0, 19 AS col1 FROM tab2 AS cor0
----
2346
19
4928
19
5025
19

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-11
SELECT ALL - - col1 * - 21 - + 88 + - + CAST( - 23 AS SIGNED ) + + + 70 DIV - col2 FROM tab0 AS cor0
----
-1767
-513
-86

skipif mysql # not compatible
query I rowsort label-11
SELECT ALL - - col1 * - 21 - + 88 + - + CAST ( - 23 AS INTEGER ) + + + 70 / - col2 FROM tab0 AS cor0
----
-1767
-513
-86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-12
SELECT DISTINCT + CAST( + CAST( + + 20 AS SIGNED ) AS SIGNED ) + col1 col1 FROM tab0 AS cor0
----
101
21
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-12
SELECT DISTINCT + CAST ( + CAST ( + + 20 AS INTEGER ) AS INTEGER ) + col1 col1 FROM tab0 AS cor0
----
101
21
41

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

skipif mysql # not compatible
query I rowsort label-13
SELECT col2 / + 36 AS col1 FROM tab2
----
0
1
1

query I rowsort
SELECT - ( + 32 ) * + - col1 + 17 FROM tab2
----
1649
2161
2481

query I rowsort
SELECT DISTINCT - ( - + 60 ) FROM tab2
----
60

query I rowsort
SELECT ALL - col0 * - - 45 FROM tab1
----
-2295
-3825
-4095

query I rowsort
SELECT ALL ( - 99 ) * - col2 FROM tab1
----
5841
6732
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-18
SELECT ALL 18 DIV + col0 col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-18
SELECT ALL 18 / + col0 col0 FROM tab0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-19
SELECT DISTINCT + + col0 DIV col0 * 63 * - + 44 FROM tab1 AS cor0
----
-2772

skipif mysql # not compatible
query I rowsort label-19
SELECT DISTINCT + + col0 / col0 * 63 * - + 44 FROM tab1 AS cor0
----
-2772

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

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

query II rowsort
SELECT - col1 AS col1, + col2 * 67 - + 31 FROM tab2 AS cor0
----
-51
1510
-67
3855
-77
2649

query I rowsort
SELECT ( - 63 ) FROM tab2
----
-63
-63
-63

query III rowsort
SELECT * FROM tab0 WHERE - col1 / col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * ( col0 ) col0 FROM tab1
----
4896
5015
6188

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

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

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

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

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

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

query I rowsort
SELECT 13 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT - col1 * + 25 FROM tab2
----
-1275
-1675
-1925

onlyif mysql # DIV for integer division: 
query I rowsort label-31
SELECT ALL + 80 DIV col2 + + col0 DIV + col0 AS col2 FROM tab0
----
1
2
9

skipif mysql # not compatible
query I rowsort label-31
SELECT ALL + 80 / col2 + + col0 / + col0 AS col2 FROM tab0
----
1
2
9

query I rowsort
SELECT ALL + col2 FROM tab2 WHERE NULL NOT IN ( - 46 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-34
SELECT - COUNT( DISTINCT ( - 63 ) ) * SUM( DISTINCT col2 * - col2 ) FROM tab0
----
12110

skipif mysql # not compatible
query I rowsort label-34
SELECT - COUNT ( DISTINCT ( - 63 ) ) * SUM ( DISTINCT col2 * - col2 ) FROM tab0
----
12110

query III rowsort
SELECT * FROM tab2 WHERE ( - col0 ) < ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT - COUNT( * ) * ( 70 * + MIN( col2 ) ) AS col2 FROM tab2
----
-4830

skipif mysql # not compatible
query I rowsort label-36
SELECT - COUNT ( * ) * ( 70 * + MIN ( col2 ) ) AS col2 FROM tab2
----
-4830

onlyif mysql # aggregate syntax: 
query I rowsort label-37
SELECT ( COUNT( * ) ) * COUNT( * ) + 59 * + COUNT( * ) FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-37
SELECT ( COUNT ( * ) ) * COUNT ( * ) + 59 * + COUNT ( * ) FROM tab1
----
186

query I rowsort
SELECT 8 * + col1 + col0 FROM tab1 WHERE NOT ( 52 - col2 ) <> 5
----

query I rowsort
SELECT col0 * + 5 AS col2 FROM tab2
----
230
320
375

query I rowsort
SELECT col1 * - 30 FROM tab2
----
-1530
-2010
-2310

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

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

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

query I rowsort
SELECT col1 * + col0 - col2 FROM tab1
----
366
4209
618

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

query I rowsort
SELECT ALL + 15 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE NOT - 51 IS NULL
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

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

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

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

query I rowsort
SELECT + 51 * - col2 + + col0 * + col1 FROM tab1 AS cor0
----
-2584
-4182
809

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

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 AS cor0 WHERE col2 * + col1 NOT BETWEEN - 82 AND ( col0 )
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-53
SELECT DISTINCT - col0 DIV + 23 + - 18 col1 FROM tab2 AS cor0
----
-20
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-53
SELECT DISTINCT - col0 / + 23 + - 18 col1 FROM tab2 AS cor0
----
-20
-21

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 98 / - col0 BETWEEN + col1 * col1 AND ( - 73 + col0 * 95 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-56
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( CAST( NULL AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-56
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN ( CAST ( NULL AS INTEGER ) ) AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + 29 + col2 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-59
SELECT ALL col0 / + 66 + + col0 / col0 FROM tab1
----
1
2
2

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

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

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

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

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

query III rowsort
SELECT * FROM tab2 WHERE + 84 NOT IN ( 75 * 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT - COUNT( * ) * - 47 * - 34 AS col2 FROM tab1
----
-4794

skipif mysql # not compatible
query I rowsort label-64
SELECT - COUNT ( * ) * - 47 * - 34 AS col2 FROM tab1
----
-4794

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-65
SELECT DISTINCT CAST( - col0 AS SIGNED ) * col2 AS col2 FROM tab2
----
-1058
-2560
-4350

skipif mysql # not compatible
query I rowsort label-65
SELECT DISTINCT CAST ( - col0 AS INTEGER ) * col2 AS col2 FROM tab2
----
-1058
-2560
-4350

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-68
SELECT ALL 15 / - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-68
SELECT ALL 15 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT + ( + + COUNT( DISTINCT 85 ) ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-69
SELECT + ( + + COUNT ( DISTINCT 85 ) ) FROM tab2
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - 56 col1 FROM tab1 AS cor0
----
-42
-51
-9

query I rowsort
SELECT ALL + col1 + + col2 - col0 AS col1 FROM tab0 AS cor0
----
-56
113
3

query III rowsort
SELECT * FROM tab1 WHERE ( ( col2 ) * - col0 ) < + col0 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT + ( col2 ) * - - 6 * col2 AS col2 FROM tab2 AS cor0
----
20184
3174
9600

query I rowsort
SELECT DISTINCT + col0 * - 45 + col1 FROM tab0 AS cor0
----
-3894
-4364
-594

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, - 7 col1 FROM tab0 AS cor0
----
1
-7
21
-7
81
-7

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

query I rowsort
SELECT DISTINCT - 75 * + col0 * 5 AS col2 FROM tab1 cor0
----
-19125
-31875
-34125

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col0 * - col0 = ( 45 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-81
SELECT DISTINCT - MIN( DISTINCT - - 64 ) AS col1 FROM tab2
----
-64

skipif mysql # not compatible
query I rowsort label-81
SELECT DISTINCT - MIN ( DISTINCT - - 64 ) AS col1 FROM tab2
----
-64

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-82
SELECT ALL + MAX ( DISTINCT 49 ) col0 FROM tab1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-83
SELECT + 55 / col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - - col0 + + CAST( col0 AS SIGNED ) * 8 )
----

skipif mysql # not compatible
query I rowsort label-83
SELECT + 55 / col2 AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - - col0 + + CAST ( col0 AS INTEGER ) * 8 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-84
SELECT DISTINCT - 73 DIV - 13 AS col2 FROM tab0
----
5

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT - 73 / - 13 AS col2 FROM tab0
----
5

query I rowsort
SELECT DISTINCT col0 * - col1 + col2 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-86
SELECT ALL CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE col1 / ( col1 ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-86
SELECT ALL CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE col1 / ( col1 ) <= NULL
----

query I rowsort
SELECT ( 14 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT DISTINCT - MAX( DISTINCT 15 ) col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-88
SELECT DISTINCT - MAX ( DISTINCT 15 ) col1 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT ALL + col1 + col0 * + + 11 * - col0 FROM tab2 AS cor0
----
-23225
-44979
-61808

onlyif mysql # aggregate syntax: 
query I rowsort label-90
SELECT ALL + SUM( ALL 37 ) AS col1 FROM tab2 cor0
----
111

skipif mysql # not compatible
query I rowsort label-90
SELECT ALL + SUM ( ALL 37 ) AS col1 FROM tab2 cor0
----
111

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

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

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

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

query I rowsort
SELECT + 29 + col0 - + col1 * + col1 AS col2 FROM tab0 AS cor0
----
-325
-6517
125

query I rowsort
SELECT DISTINCT - col0 * - + col1 + 36 FROM tab0
----
1251
133
1863

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-96
SELECT + ( - 91 ) + COUNT( * ) + 48 DIV - COUNT( * ) AS col0 FROM tab1
----
-104

skipif mysql # not compatible
query I rowsort label-96
SELECT + ( - 91 ) + COUNT ( * ) + 48 / - COUNT ( * ) AS col0 FROM tab1
----
-104

query I rowsort
SELECT 61 + - col1 - - 99 * + 60 + + col1 + + col1 + col1 * + col0 AS col1 FROM tab0
----
6099
7297
7849

query I rowsort
SELECT ALL 52 * 26 FROM tab1
----
1352
1352
1352

query I rowsort
SELECT col0 * + col2 FROM tab2 WHERE - col1 IN ( + - 73 / col2 + + col2 * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-100
SELECT + 28 + + SUM( DISTINCT - ( 80 ) ) AS col0 FROM tab0, tab1 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-100
SELECT + 28 + + SUM ( DISTINCT - ( 80 ) ) AS col0 FROM tab0, tab1 cor0
----
-52

query I rowsort
SELECT col1 * - 41 + + + 57 FROM tab1
----
-148
-1870
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-102
SELECT COUNT( col2 ) FROM tab1 WHERE ( NOT NULL IN ( + 30 + - - col0 ) )
----
0

skipif mysql # not compatible
query I rowsort label-102
SELECT COUNT ( col2 ) FROM tab1 WHERE ( NOT NULL IN ( + 30 + - - col0 ) )
----
0

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > + col1
----
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 60 AS col1, 52 + 26 + - - col2 * 60 col2 FROM tab0 cor0
----
-60
2898
-60
6018
-60
678

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-106
SELECT ALL + + 41 / CAST( NULL AS SIGNED ) * + 82 - col0 + - 49 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-106
SELECT ALL + + 41 / CAST ( NULL AS INTEGER ) * + 82 - col0 + - 49 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-107
SELECT ALL COUNT( * ) + 13 FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-107
SELECT ALL COUNT ( * ) + 13 FROM tab0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-108
SELECT DISTINCT - col2 * + + ( - - CAST( + col2 AS SIGNED ) ) - - CAST( - - 6 AS SIGNED ) FROM tab1
----
-3475
-4618
-9210

skipif mysql # not compatible
query I rowsort label-108
SELECT DISTINCT - col2 * + + ( - - CAST ( + col2 AS INTEGER ) ) - - CAST ( - - 6 AS INTEGER ) FROM tab1
----
-3475
-4618
-9210

query I rowsort
SELECT - 26 + + col1 FROM tab2 AS cor0
----
25
41
51

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-112
SELECT DISTINCT SUM( + + col2 ) col0 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-112
SELECT DISTINCT SUM ( + + col2 ) col0 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-113
SELECT - CAST( NULL AS SIGNED ) / - COUNT( col0 ), MIN( ALL - col2 ) col2 FROM tab0 AS cor0
----
NULL
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-113
SELECT - CAST ( NULL AS INTEGER ) / - COUNT ( col0 ), MIN ( ALL - col2 ) col2 FROM tab0 AS cor0
----
NULL
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-115
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL BETWEEN CAST( - - col1 AS SIGNED ) * - col1 AND + - 5 * col1 + + col1 + - 79 * + ( - ( + 87 ) )
----

skipif mysql # not compatible
query I rowsort label-115
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL BETWEEN CAST ( - - col1 AS INTEGER ) * - col1 AND + - 5 * col1 + + col1 + - 79 * + ( - ( + 87 ) )
----

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 76 <> 16
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-119
SELECT ALL + COUNT( * ) - + 51 FROM tab2 WHERE NOT ( NULL IS NOT NULL ) OR ( col0 ) IS NOT NULL
----
-48

skipif mysql # not compatible
query I rowsort label-119
SELECT ALL + COUNT ( * ) - + 51 FROM tab2 WHERE NOT ( NULL IS NOT NULL ) OR ( col0 ) IS NOT NULL
----
-48

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab1 WHERE ( - 20 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-121
SELECT ALL + MIN( - 75 ) FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-121
SELECT ALL + MIN ( - 75 ) FROM tab1
----
-75

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

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

skipif mysql # not compatible
query II rowsort label-123
SELECT - COUNT ( * ) * + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1, + COUNT ( * ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-124
SELECT + COUNT( * ) * + 74 + + 95 col1 FROM tab2 AS cor0
----
317

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-124
SELECT + COUNT ( * ) * + 74 + + 95 col1 FROM tab2 AS cor0
----
317

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT ALL MAX( - 77 ) AS col2 FROM tab0 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-126
SELECT ALL MAX ( - 77 ) AS col2 FROM tab0 AS cor0
----
-77

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

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT + COUNT ( * ) / + SUM ( - - 2 ) FROM tab2
----
0

query I rowsort
SELECT DISTINCT + + col2 FROM tab1 WHERE NOT ( NULL ) > 30
----

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL NOT IN ( - 60 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, + 54 * col0 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

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

skipif mysql # not compatible
query I rowsort label-133
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 * - col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col2 + ( 52 ) FROM tab0 AS cor0
----
151
62
99

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

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT ALL 8 + 61 * COUNT( * ) FROM tab2 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-136
SELECT ALL 8 + 61 * COUNT ( * ) FROM tab2 AS cor0
----
191

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

query I rowsort
SELECT ALL + col0 + - 66 * col1 FROM tab2 cor0
----
-3320
-4347
-5018

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

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

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

query I rowsort
SELECT col0 * - 41 * + col2 AS col1 FROM tab1
----
-200736
-205615
-253708

query I rowsort
SELECT col2 * - col1 - + - 6 AS col2 FROM tab2
----
-1167
-3074
-3880

query I rowsort
SELECT + 48 + - 75 FROM tab2 AS cor0
----
-27
-27
-27

query I rowsort
SELECT - col0 * - - col2 * 81 + + ( - col1 ) * + - 80 * - - col1 + - + col1 + + col1 * + 56 + col0 AS col2 FROM tab2 AS cor0
----
10530
125233
271259

onlyif mysql # aggregate syntax: 
query I rowsort label-146
SELECT DISTINCT 23 - + + COUNT( ALL - ( col1 ) ) FROM tab1
----
20

skipif mysql # not compatible
query I rowsort label-146
SELECT DISTINCT 23 - + + COUNT ( ALL - ( col1 ) ) FROM tab1
----
20

query I rowsort
SELECT - 5 * - 60 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051dd47c7027701e5db0a6b5c203cbc7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-148
SELECT DISTINCT + col0 * - + CAST( + 60 AS SIGNED ) FROM tab0
----
-5220
-5820
-900

skipif mysql # not compatible
query I rowsort label-148
SELECT DISTINCT + col0 * - + CAST ( + 60 AS INTEGER ) FROM tab0
----
-5220
-5820
-900

query I rowsort
SELECT col1 * - 19 * - + 10 AS col1 FROM tab1
----
2660
8930
950

query I rowsort
SELECT ALL 71 * col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1065
6177
6887

query I rowsort
SELECT - ( - - 29 ) FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT ALL + 59 * + col1 FROM tab2 cor0
----
3009
3953
4543

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

onlyif mysql # DIV for integer division: 
query I rowsort label-154
SELECT - col1 DIV - 72 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-154
SELECT - col1 / - 72 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-155
SELECT CAST( col0 AS SIGNED ) * + col2 FROM tab0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-155
SELECT CAST ( col0 AS INTEGER ) * + col2 FROM tab0
----
705
870
9603

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - col1 * + 77 + - col0 = col0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-157
SELECT DISTINCT - SUM( + col1 ) * + 27 * + 90 AS col2 FROM tab2
----
-473850

skipif mysql # not compatible
query I rowsort label-157
SELECT DISTINCT - SUM ( + col1 ) * + 27 * + 90 AS col2 FROM tab2
----
-473850

query I rowsort
SELECT DISTINCT + 9 + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
-6
-78
-88

query I rowsort
SELECT - col0 + 52 AS col2 FROM tab2 AS cor0
----
-12
-23
6

query I rowsort
SELECT DISTINCT - + 6 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT - 59 * MIN( ALL + col2 ) FROM tab2
----
-1357

skipif mysql # not compatible
query I rowsort label-161
SELECT - 59 * MIN ( ALL + col2 ) FROM tab2
----
-1357

onlyif mysql # DIV for integer division: 
query I rowsort label-162
SELECT col1 DIV - 7 AS col1 FROM tab1
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-162
SELECT col1 / - 7 AS col1 FROM tab1
----
-2
-6
0

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

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

query I rowsort
SELECT ALL - 5 * + ( - col0 ) + - 41 AS col1 FROM tab2 AS cor0
----
189
279
334

onlyif mysql # aggregate syntax: 
query I rowsort label-165
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-165
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col0 * - col1 * col2 IS NULL
----
0

query I rowsort
SELECT ALL 79 + 63 FROM tab0 cor0
----
142
142
142

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-167
SELECT - - col1 + + ( CAST( 97 AS SIGNED ) ) * - 18 FROM tab2 AS cor0
----
-1669
-1679
-1695

skipif mysql # not compatible
query I rowsort label-167
SELECT - - col1 + + ( CAST ( 97 AS INTEGER ) ) * - 18 FROM tab2 AS cor0
----
-1669
-1679
-1695

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-169
SELECT + 87 * CAST( + + 38 AS SIGNED ) + 27 FROM tab1 AS cor0
----
3333
3333
3333

skipif mysql # not compatible
query I rowsort label-169
SELECT + 87 * CAST ( + + 38 AS INTEGER ) + 27 FROM tab1 AS cor0
----
3333
3333
3333

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-171
SELECT ALL - col1 + col1 DIV - 6, CAST( NULL AS SIGNED ) * col0 col1 FROM tab0 AS cor0
----
-1
NULL
-24
NULL
-94
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-171
SELECT ALL - col1 + col1 / - 6, CAST ( NULL AS INTEGER ) * col0 col1 FROM tab0 AS cor0
----
-1
NULL
-24
NULL
-94
NULL

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

query I rowsort
SELECT ALL - col0 * - + 9 + + + 29 FROM tab2 AS cor0
----
443
605
704

query I rowsort
SELECT + + 73 * + col0 FROM tab1 WHERE + col0 IS NULL
----

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

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

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

query I rowsort
SELECT 84 + ( + - col2 ) + + 7 FROM tab2
----
33
51
68

query III rowsort
SELECT * FROM tab2 WHERE col0 NOT BETWEEN NULL AND + - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT ( + col0 ) + - col1 + col1 + - col0 * 2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 - 48 * 98 <> NULL
----

query I rowsort
SELECT 9 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-185
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-185
SELECT - COUNT ( * ) col2 FROM ( tab2 AS cor0 CROSS JOIN tab0 AS cor1 )
----
-9

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-187
SELECT COUNT( * ) + - 28, 22 * COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
-28
0

skipif mysql # not compatible
query II rowsort label-187
SELECT COUNT ( * ) + - 28, 22 * COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
-28
0

query I rowsort
SELECT ( + + col1 ) * - 75 AS col2 FROM tab2 AS cor0
----
-3825
-5025
-5775

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

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

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

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

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

query I rowsort
SELECT - col1 * + col0 * - col1 + 68 FROM tab2 AS cor0
----
119714
336743
379524

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

query II rowsort
SELECT DISTINCT col2, 98 AS col0 FROM tab2
----
23
98
40
98
58
98

query I rowsort
SELECT ALL ( + - 63 ) * col0 AS col1 FROM tab1
----
-3213
-5355
-5733

query I rowsort
SELECT ALL 38 * + - 88 * - col0 FROM tab1
----
170544
284240
304304

query II rowsort
SELECT ALL + col2, - col0 + + col2 * - col2 * - - col2 FROM tab0
----
10
-1087
47
-103838
99
-970396

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-200
SELECT ALL - col0 DIV - 64 FROM tab2 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-200
SELECT ALL - col0 / - 64 FROM tab2 cor0
----
0
1
1

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

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

query I rowsort
SELECT DISTINCT 92 - - col0 FROM tab1 AS cor0 WHERE ( + + col1 ) IS NULL
----

query II rowsort
SELECT ALL - - 96 * - + col2, - col0 AS col2 FROM tab2 AS cor0
----
-2208
-46
-3840
-64
-5568
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-204
SELECT DISTINCT - 8 + MIN( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-204
SELECT DISTINCT - 8 + MIN ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-206
SELECT DISTINCT - MAX( + 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-206
SELECT DISTINCT - MAX ( + 96 ) FROM tab0 AS cor0
----
-96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT + MIN( 50 ) FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-208
SELECT + MIN ( 50 ) FROM tab0 cor0 WHERE - col1 IS NOT NULL
----
50

query I rowsort
SELECT DISTINCT 70 * + col0 * - col2 AS col0 FROM tab2
----
-179200
-304500
-74060

query I rowsort
SELECT DISTINCT col1 * - - 11 AS col1 FROM tab1
----
154
517
55

query I rowsort
SELECT + - 10 * + - 43 * + 62 + 78 * 14 FROM tab2 cor0
----
27752
27752
27752

query I rowsort
SELECT 89 + + + 44 AS col0 FROM tab1 AS cor0
----
133
133
133

query I rowsort
SELECT ALL col0 * col1 + col0 + + 28 FROM tab2 AS cor0
----
2420
5020
5128

query I rowsort
SELECT DISTINCT + col1 * + 27 + + + col1 FROM tab1 AS cor0
----
1316
140
392

query I rowsort
SELECT DISTINCT col1 * + ( 7 ) + 6 AS col2 FROM tab2
----
363
475
545

onlyif mysql # aggregate syntax: 
query I rowsort label-216
SELECT + COUNT( * ) - - SUM( 99 ) AS col1 FROM tab1
----
300

skipif mysql # not compatible
query I rowsort label-216
SELECT + COUNT ( * ) - - SUM ( 99 ) AS col1 FROM tab1
----
300

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 87 * + - ( + col2 ) * + - 73 + - - 82 + + - col0 + - 1 BETWEEN col1 - 77 * col2 + - - 37 AND NULL
----

query I rowsort
SELECT ALL - + 64 FROM tab1 cor0
----
-64
-64
-64

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

skipif mysql # not compatible
query III rowsort label-221
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - - CAST ( + - col2 AS INTEGER ) ) <= + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 84 NOT BETWEEN col1 * 83 AND NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-224
SELECT - 1 DIV - col1 * 28 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-224
SELECT - 1 / - col1 * 28 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - col1 + + col2 * + 49 + - + col0 - col0 IS NULL OR NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - col1 + + col2 * + 49 + - + col0 - col0 IS NULL OR NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT COUNT( * ) * SUM( DISTINCT - - 19 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-226
SELECT COUNT ( * ) * SUM ( DISTINCT - - 19 ) FROM tab0
----
57

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-227
SELECT ALL + COUNT ( ALL - 72 ) col2 FROM tab0
----
3

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

skipif mysql # not compatible
query I rowsort label-228
SELECT - 28 / + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT col2 + + 8 AS col1 FROM tab0
----
107
18
55

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-231
SELECT ALL + - CAST( NULL AS SIGNED ) * col2 / ( + col1 ) / - 18, 96 + - 54 AS col2 FROM tab1 cor0
----
NULL
42
NULL
42
NULL
42

skipif mysql # not compatible
query II rowsort label-231
SELECT ALL + - CAST ( NULL AS INTEGER ) * col2 / ( + col1 ) / - 18, 96 + - 54 AS col2 FROM tab1 cor0
----
NULL
42
NULL
42
NULL
42

query I rowsort
SELECT 72 AS col0 FROM tab1 cor0
----
72
72
72

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-233
SELECT - CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-233
SELECT - CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col1 + + 97 - col0 FROM tab2
----
102
110
89

query I rowsort
SELECT ALL + 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL IS NULL )
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL - + COUNT( DISTINCT - 55 ) + 64 AS col1 FROM tab2 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - + COUNT ( DISTINCT - 55 ) + 64 AS col1 FROM tab2 AS cor0
----
63

query I rowsort
SELECT + col1 + 89 FROM tab1 AS cor0
----
103
136
94

query I rowsort
SELECT ALL + - 88 + - col0 + + col1 + col0 + col0 FROM tab2 AS cor0
----
53
54
9

onlyif mysql # aggregate syntax: 
query I rowsort label-241
SELECT - - 18 + + + MIN( - col0 ) AS col0 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-241
SELECT - - 18 + + + MIN ( - col0 ) AS col0 FROM tab0 AS cor0
----
-79

query I rowsort
SELECT DISTINCT - 68 + + 12 FROM tab1 AS cor0
----
-56

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

onlyif mysql # DIV for integer division: 
query I rowsort label-244
SELECT DISTINCT col0 DIV + 5 + - + 25 * + 46 * - col0 + + - 51 FROM tab1
----
104617
58609
97716

skipif mysql # not compatible
query I rowsort label-244
SELECT DISTINCT col0 / + 5 + - + 25 * + 46 * - col0 + + - 51 FROM tab1
----
104617
58609
97716

onlyif mysql # DIV for integer division: 
query I rowsort label-245
SELECT col1 + - + col1 DIV 45 FROM tab2
----
50
66
76

skipif mysql # not compatible
query I rowsort label-245
SELECT col1 + - + col1 / 45 FROM tab2
----
50
66
76

query III rowsort
SELECT * FROM tab2 WHERE col1 * + + ( 26 ) < ( - 92 )
----

query I rowsort
SELECT DISTINCT 98 * col1 - + col0 AS col2 FROM tab2
----
4952
6491
7482

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + 45 / - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-249
SELECT + - CAST( col1 AS SIGNED ), col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
-14
0
-47
0
-5
0

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

query I rowsort
SELECT DISTINCT + 67 * + - col2 + + + 92 FROM tab1 AS cor0
----
-3861
-4464
-6340

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 93 * - col2 + 77 col0 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

query II rowsort
SELECT - - col1 AS col1, + 75 + + col0 FROM tab0 cor0
----
1
172
21
162
81
90

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

query I rowsort
SELECT - - col1 * + 60 AS col0 FROM tab0 AS cor0
----
1260
4860
60

onlyif mysql # aggregate syntax: 
query I rowsort label-256
SELECT 27 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-256
SELECT 27 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
81

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 6
----

query I rowsort
SELECT DISTINCT - + 51 + - col2 + + ( col1 ) * col0 FROM tab1 AS cor0
----
315
4158
567

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

query I rowsort
SELECT DISTINCT ( - 52 ) FROM tab1
----
-52

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-263
SELECT CAST( - col2 AS SIGNED ) * + 70 AS col0 FROM tab1
----
-4130
-4760
-6720

skipif mysql # not compatible
query I rowsort label-263
SELECT CAST ( - col2 AS INTEGER ) * + 70 AS col0 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-264
SELECT ALL * FROM tab2 WHERE NULL = - CAST( ( - col0 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-264
SELECT ALL * FROM tab2 WHERE NULL = - CAST ( ( - col0 ) AS INTEGER )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - col0 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( - col0 + - - col0 / 90 - + - col1 + - col2 ) AND NULL
----

query I rowsort
SELECT ALL col0 - + - col0 FROM tab1
----
102
170
182

query I rowsort
SELECT 81 * - + col0 AS col0 FROM tab2 cor0
----
-3726
-5184
-6075

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

query I rowsort
SELECT - 8 * - - 88 FROM tab0 AS cor0
----
-704
-704
-704

query I rowsort
SELECT DISTINCT - 90 + - - col0 FROM tab0 AS cor0
----
-3
-75
7

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( 49, 13 + 80 )
----

query I rowsort
SELECT DISTINCT - 93 + - col0 * col2 AS col1 FROM tab2
----
-1151
-2653
-4443

onlyif mysql # aggregate syntax: 
query I rowsort label-275
SELECT DISTINCT MIN( 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-275
SELECT DISTINCT MIN ( 92 ) FROM tab1
----
92

onlyif mysql # DIV for integer division: 
query II rowsort label-276
SELECT - 45 AS col0, + 50 DIV + - col2 * - - 88 AS col0 FROM tab1
----
-45
0
-45
0
-45
0

skipif mysql # not compatible
query II rowsort label-276
SELECT - 45 AS col0, + 50 / + - col2 * - - 88 AS col0 FROM tab1
----
-45
0
-45
0
-45
0

query II rowsort
SELECT ALL + 78 AS col1, col0 FROM tab1
----
78
51
78
85
78
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + + 83 IS NOT NULL
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 * - col2 col2 FROM tab0 AS cor0
----
-2538
-5346
-540

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

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

query I rowsort
SELECT ALL + - col0 FROM tab0 WHERE NOT + col0 IS NULL
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > + col1 * + col2 * 60
----

query I rowsort
SELECT - + 68 * - + 57 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e404e575a909243fa3706e976172d09b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-286
SELECT ALL - CAST( NULL AS SIGNED ) * 81, 50 * + - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
NULL
2550
NULL
4250
NULL
4550

skipif mysql # not compatible
query II rowsort label-286
SELECT ALL - CAST ( NULL AS INTEGER ) * 81, 50 * + - ( - + col0 ) AS col2 FROM tab1 AS cor0
----
NULL
2550
NULL
4250
NULL
4550

query I rowsort
SELECT DISTINCT - col1 * - - 99 AS col2 FROM tab1 cor0
----
-1386
-4653
-495

query I rowsort
SELECT ALL + 46 * + + col0 * + col1 AS col1 FROM tab1 AS cor0
----
19550
196742
32844

onlyif mysql # aggregate syntax: 
query I rowsort label-289
SELECT ALL + 17 + + COUNT( ALL + col0 ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL + 17 + + COUNT ( ALL + col0 ) FROM tab0 AS cor0
----
20

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

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT - 53 + - col1 DIV - - col1 FROM tab0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-291
SELECT - 53 + - col1 / - - col1 FROM tab0
----
-54
-54
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-292
SELECT - 54 + + MAX( DISTINCT + + col2 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-292
SELECT - 54 + + MAX ( DISTINCT + + col2 ) FROM tab0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-293
SELECT ALL - 26 + + - COUNT( * ) AS col1 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-293
SELECT ALL - 26 + + - COUNT ( * ) AS col1 FROM tab2
----
-29

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

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

query I rowsort
SELECT ALL - - 26 + + + col1 AS col2 FROM tab0 AS cor0
----
107
27
47

query I rowsort
SELECT ALL col1 * 70 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT + 62 + col1 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT + ( - - col0 ) - + 14 + + 14 FROM tab2
----
46
64
75

query I rowsort
SELECT 36 * col0 * + col2 * + col1 AS col1 FROM tab2 AS cor0 WHERE - 62 * + col0 IN ( + 10 + + col0 + col0, + col0, 46 + - 55 * + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-301
SELECT - MIN( 6 ) FROM tab2 AS cor0 WHERE + CAST( - col1 AS SIGNED ) * - CAST( + + 4 AS SIGNED ) + - col2 + - col1 + + 29 / - col1 * + + col2 + 12 * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-301
SELECT - MIN ( 6 ) FROM tab2 AS cor0 WHERE + CAST ( - col1 AS INTEGER ) * - CAST ( + + 4 AS INTEGER ) + - col2 + - col1 + + 29 / - col1 * + + col2 + 12 * - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-302
SELECT col2 * + + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-302
SELECT col2 * + + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
705
870
9603

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

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

query I rowsort
SELECT + 87 * - - col0 FROM tab0 cor0
----
1305
7569
8439

query I rowsort
SELECT DISTINCT + - ( - 28 ) AS col1 FROM tab2 WHERE - + 3 <> - ( - + col0 )
----
28

query I rowsort
SELECT ALL 13 * - 45 FROM tab0
----
-585
-585
-585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 93 * 65 col2 FROM tab2
----
-6045

query I rowsort
SELECT ALL + 5 FROM tab1 WHERE NOT + col1 NOT BETWEEN + col2 AND col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT ALL + 73 DIV ( ( + ( 21 ) ) ) DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL + 73 / ( ( + ( 21 ) ) ) / col2 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-311
SELECT - CAST( col2 AS SIGNED ) * + col2 AS col2, col2 * col0 col1 FROM tab0 AS cor0
----
-100
870
-2209
705
-9801
9603

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-311
SELECT - CAST ( col2 AS INTEGER ) * + col2 AS col2, col2 * col0 col1 FROM tab0 AS cor0
----
-100
870
-2209
705
-9801
9603

query I rowsort
SELECT + 23 * 56 * 40 AS col1 FROM tab1 AS cor0
----
51520
51520
51520

onlyif mysql # aggregate syntax: 
query I rowsort label-313
SELECT + 11 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-313
SELECT + 11 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
33

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

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

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

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

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

query I rowsort
SELECT DISTINCT - col2 + + 40 - - col1 AS col1 FROM tab1 AS cor0
----
-14
-42
19

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-319
SELECT - COUNT( * ) * COUNT( * ) * 52 FROM tab0 cor0
----
-468

skipif mysql # not compatible
query I rowsort label-319
SELECT - COUNT ( * ) * COUNT ( * ) * 52 FROM tab0 cor0
----
-468

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

query I rowsort
SELECT DISTINCT + col1 + - + 76 FROM tab0 cor0
----
-55
-75
5

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

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

query I rowsort
SELECT + 38 * - + col2 FROM tab0
----
-1786
-3762
-380

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( col0 ) + col1 * - col0 col0, - 24 / ( 54 ) FROM tab2 WHERE NOT - col0 BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL + col0 + + col1 * + col1 * - 9 AS col2 FROM tab1 AS cor0
----
-140
-1713
-19790

onlyif mysql # aggregate syntax: 
query I rowsort label-329
SELECT 38 * - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-342

skipif mysql # not compatible
query I rowsort label-329
SELECT 38 * - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-342

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

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

query I rowsort
SELECT 29 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-334
SELECT DISTINCT - + 36 AS col2, + COUNT( * ) * ( - + COUNT( * ) ) FROM tab0 AS cor0
----
-36
-9

skipif mysql # not compatible
query II rowsort label-334
SELECT DISTINCT - + 36 AS col2, + COUNT ( * ) * ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
-36
-9

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 67 > - - ( 66 ) + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT DISTINCT COUNT( - 95 ) * - MAX( 14 ) FROM tab1
----
-42

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT COUNT ( - 95 ) * - MAX ( 14 ) FROM tab1
----
-42

query III rowsort
SELECT * FROM tab1 WHERE NOT + 20 + - col1 * + 74 * - col1 NOT BETWEEN - ( + 31 ) AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT SUM( DISTINCT 8 ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-339
SELECT SUM ( DISTINCT 8 ) FROM tab1
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-340
SELECT DISTINCT + 32 * COUNT( * ) * 58 FROM tab1
----
5568

skipif mysql # not compatible
query I rowsort label-340
SELECT DISTINCT + 32 * COUNT ( * ) * 58 FROM tab1
----
5568

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 1 AS col1 FROM tab2 cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-345
SELECT col0 * 24 * + - CAST( + - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
173400
198744
62424

skipif mysql # not compatible
query I rowsort label-345
SELECT col0 * 24 * + - CAST ( + - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
173400
198744
62424

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

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

query I rowsort
SELECT - 81 * + + col1 * col1 AS col1 FROM tab2 WHERE NOT + col1 NOT BETWEEN - col2 * + + col2 AND NULL
----

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

query I rowsort
SELECT DISTINCT - ( - - col2 ) + - 19 FROM tab1
----
-115
-78
-87

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

query I rowsort
SELECT ALL + - col0 * - + 40 + + - col2 AS col2 FROM tab1 AS cor0 WHERE col0 = col1 * + + col1
----

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

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

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

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

query I rowsort
SELECT ALL - col0 + - 96 AS col0 FROM tab0
----
-111
-183
-193

query I rowsort
SELECT ALL - 26 * + 51 AS col1 FROM tab2
----
-1326
-1326
-1326

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 = - col1 - - 87 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 18 + + + 24 + col1 AS col2 FROM tab2
----
109
119
93

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + col1 + - 42 * - col1 * + 56 FROM tab0 AS cor0
----
190674
2354
49434

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

skipif mysql # not compatible
query I rowsort label-363
SELECT + + col2 / + - 54 FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL 35 AS col2 FROM tab1 AS cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-365
SELECT DISTINCT - 56 * - ( + col1 ) + 50 DIV - + 90 AS col2 FROM tab2 AS cor0
----
2856
3752
4312

skipif mysql # not compatible
query I rowsort label-365
SELECT DISTINCT - 56 * - ( + col1 ) + 50 / - + 90 AS col2 FROM tab2 AS cor0
----
2856
3752
4312

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT - ( - COUNT( DISTINCT - 38 ) ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-366
SELECT - ( - COUNT ( DISTINCT - 38 ) ) FROM tab1 AS cor0
----
1

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

query I rowsort
SELECT - - 33 * + 1 AS col2 FROM tab1 AS cor0
----
33
33
33

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

query I rowsort
SELECT + ( - ( 24 ) ) * + + col2 FROM tab1 AS cor0
----
-1416
-1632
-2304

onlyif mysql # DIV for integer division: 
query III rowsort label-371
SELECT + ( - - col2 ) DIV + + 51 AS col0, 80 * - + 98, col2 FROM tab2 AS cor0
----
9 values hashing to 1653f3d2c212dab743ef9559e06aad86

skipif mysql # not compatible
query III rowsort label-371
SELECT + ( - - col2 ) / + + 51 AS col0, 80 * - + 98, col2 FROM tab2 AS cor0
----
9 values hashing to 1653f3d2c212dab743ef9559e06aad86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-372
SELECT DISTINCT - 64 * col2 AS col1, - 86 + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-3776
NULL
-4352
NULL
-6144
NULL

skipif mysql # not compatible
query II rowsort label-372
SELECT DISTINCT - 64 * col2 AS col1, - 86 + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-3776
NULL
-4352
NULL
-6144
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-373
SELECT ALL - + 34 * + - col2 AS col2, - col2 * + + 23 + - col0 + + + CAST( NULL AS DECIMAL ) / col1 AS col1 FROM tab0 AS cor0
----
1598
NULL
3366
NULL
340
NULL

skipif mysql # not compatible
query II rowsort label-373
SELECT ALL - + 34 * + - col2 AS col2, - col2 * + + 23 + - col0 + + + CAST ( NULL AS REAL ) / col1 AS col1 FROM tab0 AS cor0
----
1598
NULL
3366
NULL
340
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-374
SELECT DISTINCT - SUM( ALL - + 31 ) AS col2, COUNT( * ) AS col0 FROM tab1 AS cor0
----
93
3

skipif mysql # not compatible
query II rowsort label-374
SELECT DISTINCT - SUM ( ALL - + 31 ) AS col2, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
93
3

query I rowsort
SELECT - - 26 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + + col2 - 87 AND 68
----
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-376
SELECT DISTINCT MIN( ALL - 41 ) FROM tab1
----
-41

skipif mysql # not compatible
query I rowsort label-376
SELECT DISTINCT MIN ( ALL - 41 ) FROM tab1
----
-41

query I rowsort
SELECT DISTINCT + 40 - - col2 FROM tab0 WHERE + + col0 - 9 + - col1 = - col1 / - col0 * col1 * + 4 * + 24 + + col0 + col0
----

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

query I rowsort
SELECT - - col2 + + 86 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
109
126
144

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

onlyif mysql # aggregate syntax: 
query I rowsort label-381
SELECT DISTINCT + 54 + - COUNT( * ) col1 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-381
SELECT DISTINCT + 54 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
51

query I rowsort
SELECT - col0 * + - 94 AS col1 FROM tab0 AS cor0
----
1410
8178
9118

query I rowsort
SELECT ALL col2 + + ( + - 93 ) AS col2 FROM tab2 AS cor0
----
-35
-53
-70

query I rowsort
SELECT col1 FROM tab1 WHERE ( + col1 - - 86 ) IS NOT NULL
----
14
47
5

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

query I rowsort
SELECT DISTINCT col1 + + + ( + col2 ) AS col0 FROM tab1 AS cor0
----
110
115
64

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

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

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

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

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

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

query I rowsort
SELECT ALL - col1 * col0 FROM tab2 AS cor0 WHERE ( + col2 ) <= + 94
----
-2346
-4928
-5025

query I rowsort
SELECT DISTINCT - col0 + 53 + ( + col1 ) * ( + 1 ) FROM tab2 AS cor0
----
45
58
66

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT + + COUNT( * ) AS col1 FROM tab2 WHERE - + 53 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-395
SELECT + + COUNT ( * ) AS col1 FROM tab2 WHERE - + 53 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - 75 + + col2 col2 FROM tab1
----
117
43
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-397
SELECT CAST( - col1 AS SIGNED ) * - - col1 - - col0 + - 5 FROM tab0 WHERE NULL NOT IN ( 45 * - col0, - col2, col2 ) AND NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-397
SELECT CAST ( - col1 AS INTEGER ) * - - col1 - - col0 + - 5 FROM tab0 WHERE NULL NOT IN ( 45 * - col0, - col2, col2 ) AND NULL IS NOT NULL
----

query I rowsort
SELECT ALL + col2 - + 9 + - - ( - + col0 ) AS col2 FROM tab1
----
-32
-35
36

query I rowsort
SELECT 36 + - - col0 AS col0 FROM tab0
----
123
133
51

query I rowsort
SELECT - ( + - col1 ) + + col1 * + - 80 + + col2 AS col2 FROM tab2 AS cor0
----
-4006
-5235
-6043

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL + 33 + + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
33

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL + 33 + + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
33

query I rowsort
SELECT DISTINCT + 87 * - + col0 FROM tab0 AS cor0
----
-1305
-7569
-8439

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

onlyif mysql # aggregate syntax: 
query I rowsort label-404
SELECT ALL - SUM( col0 ) * - + ( SUM( DISTINCT - col2 ) ) * - COUNT( * ) FROM tab2 AS cor0
----
67155

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL - SUM ( col0 ) * - + ( SUM ( DISTINCT - col2 ) ) * - COUNT ( * ) FROM tab2 AS cor0
----
67155

query I rowsort
SELECT - 73 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84ab9db5468b4a1781bd8d5c8e0e77fc

onlyif mysql # DIV for integer division: 
query I rowsort label-406
SELECT DISTINCT - col1 DIV + + col1 + 5 AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-406
SELECT DISTINCT - col1 / + + col1 + 5 AS col2 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-407
SELECT DISTINCT MIN( ALL 82 ) DIV 22 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT MIN ( ALL 82 ) / 22 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-408
SELECT DISTINCT + 87 DIV - + col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-6

skipif mysql # not compatible
query I rowsort label-408
SELECT DISTINCT + 87 / - + col1 AS col2 FROM tab1 AS cor0
----
-1
-17
-6

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL < 16 * 31 * + 72 * 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-411
SELECT DISTINCT - SUM( + 7 ) FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-411
SELECT DISTINCT - SUM ( + 7 ) FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + - 63 AS col0 FROM tab1 AS cor0 WHERE NOT + 30 * - - col2 <> - col2 * + 73 - - col2
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-414
SELECT + col1 / col0 AS col0, col1 col0 FROM tab1
----
0
14
0
47
0
5

query I rowsort
SELECT ALL - col2 + - + col0 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - 69 + + 48 + - col0 FROM tab2 AS cor0 WHERE col1 * + + col0 * - - col2 = + 53
----

query I rowsort
SELECT ALL - 13 + + col2 AS col0 FROM tab0 cor0
----
-3
34
86

query I rowsort
SELECT DISTINCT - 52 + + 15 FROM tab2 AS cor0
----
-37

query I rowsort
SELECT DISTINCT - - ( - col1 ) + + + 98 FROM tab2 AS cor0
----
21
31
47

onlyif mysql # aggregate syntax: 
query I rowsort label-420
SELECT ALL SUM( + 38 ) + 27 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-420
SELECT ALL SUM ( + 38 ) + 27 FROM tab1 AS cor0
----
141

query I rowsort
SELECT ALL 85 + - + col1 FROM tab0 cor0
----
4
64
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + 97 col1 FROM tab1 AS cor0
----
1
29
38

onlyif mysql # DIV for integer division: 
query I rowsort label-423
SELECT DISTINCT + col2 DIV ( - 9 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-6
-7

skipif mysql # not compatible
query I rowsort label-423
SELECT DISTINCT + col2 / ( - 9 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-10
-6
-7

query I rowsort
SELECT 2 + + col0 AS col1 FROM tab2 AS cor0
----
48
66
77

onlyif mysql # aggregate syntax: 
query II rowsort label-425
SELECT - - COUNT( ALL 65 ) + - 55 AS col0, 57 FROM tab2 AS cor0
----
-52
57

skipif mysql # not compatible
query II rowsort label-425
SELECT - - COUNT ( ALL 65 ) + - 55 AS col0, 57 FROM tab2 AS cor0
----
-52
57

query I rowsort
SELECT + col2 * - - 31 + - - 5 FROM tab0 AS cor0
----
1462
3074
315

onlyif mysql # aggregate syntax: 
query I rowsort label-427
SELECT ALL COUNT( * ) - - 18 AS col0 FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL COUNT ( * ) - - 18 AS col0 FROM tab2
----
21

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-428
SELECT - 35 * COUNT( * ) col2, ( + + CAST( NULL AS SIGNED ) ) FROM tab2
----
-105
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-428
SELECT - 35 * COUNT ( * ) col2, ( + + CAST ( NULL AS INTEGER ) ) FROM tab2
----
-105
NULL

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + 85, + col2 * + col2 )
----

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

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

query I rowsort
SELECT DISTINCT 79 * - - col2 FROM tab2
----
1817
3160
4582

onlyif mysql # aggregate syntax: 
query I rowsort label-433
SELECT ALL + 78 * - - SUM( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
9438

skipif mysql # not compatible
query I rowsort label-433
SELECT ALL + 78 * - - SUM ( ALL + col2 ) AS col1 FROM tab2 AS cor0
----
9438

query I rowsort
SELECT ALL + col0 * - 27 FROM tab1 AS cor0
----
-1377
-2295
-2457

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT DISTINCT - + col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT - + col2 / + col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT 47 * 16 * - 18 AS col0 FROM tab2 cor0
----
-13536
-13536
-13536

query II rowsort
SELECT ALL col1 AS col2, - 97 AS col0 FROM tab2 AS cor0
----
51
-97
67
-97
77
-97

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

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

query I rowsort
SELECT DISTINCT 27 * + + 40 * + col2 FROM tab2
----
24840
43200
62640

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-440
SELECT - COUNT( ALL 9 ) DIV - 52 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-440
SELECT - COUNT ( ALL 9 ) / - 52 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-441
SELECT DISTINCT 5, + 37 + + COUNT( CAST( + + col0 AS SIGNED ) ) AS col2 FROM tab2
----
5
40

skipif mysql # not compatible
query II rowsort label-441
SELECT DISTINCT 5, + 37 + + COUNT ( CAST ( + + col0 AS INTEGER ) ) AS col2 FROM tab2
----
5
40

query I rowsort
SELECT ALL 46 * - - 0 AS col0 FROM tab1
----
0
0
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70, col1 * + col1 col1 FROM tab1
----
70
196
70
2209
70
25

query II rowsort
SELECT col1, col2 * - col1 AS col2 FROM tab2 AS cor0
----
51
-1173
67
-3886
77
-3080

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 13 + col0 col0, 56 AS col0 FROM tab0
----
2
56
74
56
84
56

query II rowsort
SELECT ALL - 86, 85 * + col1 / - 96 * col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - col2 + - + 33 AS col1 FROM tab0 AS cor0
----
-132
-43
-80

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-453
SELECT COUNT ( * ) / 65 col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-454
SELECT + 53 DIV 57 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-454
SELECT + 53 / 57 FROM tab1, tab0 AS cor0
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT DISTINCT 39 - 40 FROM tab0 WHERE + 32 * 26 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-456
SELECT - col0 DIV - col0 - + ( 38 ) - + col0 DIV col2 AS col0, - CAST( col0 AS SIGNED ) * + col0 + - col0 - + + 91 FROM tab1
----
-37
-2743
-38
-7401
-38
-8463

skipif mysql # not compatible
query II rowsort label-456
SELECT - col0 / - col0 - + ( 38 ) - + col0 / col2 AS col0, - CAST ( col0 AS INTEGER ) * + col0 + - col0 - + + 91 FROM tab1
----
-37
-2743
-38
-7401
-38
-8463

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-457
SELECT DISTINCT - 20 - - - COUNT( * ) DIV + MIN( DISTINCT - col1 ) FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT - 20 - - - COUNT ( * ) / + MIN ( DISTINCT - col1 ) FROM tab2
----
-20

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

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

query II rowsort
SELECT DISTINCT col1 + + 52 * + 95, col2 AS col2 FROM tab2
----
4991
23
5007
58
5017
40

query I rowsort
SELECT ALL - AVG ( ALL - 53 ) FROM tab1 WHERE NOT ( ( 94 ) * col1 NOT BETWEEN NULL AND - col2 )
----
NULL

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-463
SELECT DISTINCT + MAX( 17 ) - - 94 AS col2 FROM tab1 WHERE ( - col2 + - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT + MAX ( 17 ) - - 94 AS col2 FROM tab1 WHERE ( - col2 + - col0 ) IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-464
SELECT ALL - ( + 64 ) - + col1 DIV - col2 col2 FROM tab1
----
-64
-64
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-464
SELECT ALL - ( + 64 ) - + col1 / - col2 col2 FROM tab1
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-465
SELECT * FROM tab0 WHERE NOT + 99 NOT BETWEEN col0 + - 75 AND CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-465
SELECT * FROM tab0 WHERE NOT + 99 NOT BETWEEN col0 + - 75 AND CAST ( col0 AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + 73 BETWEEN ( - 37 * ( + col2 ) ) AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + col0 + col1 FROM tab2 WHERE NULL NOT BETWEEN - 74 / - col0 AND - 40 / - 20
----

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

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE 92 + col1 BETWEEN ( + 74 * + 19 + 95 * + col1 ) AND - col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-471
SELECT SUM( - 95 ) AS col2 FROM tab0
----
-285

skipif mysql # not compatible
query I rowsort label-471
SELECT SUM ( - 95 ) AS col2 FROM tab0
----
-285

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

skipif mysql # not compatible
query I rowsort label-472
SELECT + ( - col1 ) - + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-473
SELECT MIN( col1 ) col2 FROM tab1
----
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-473
SELECT MIN ( col1 ) col2 FROM tab1
----
5

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

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 42 * 39 IN ( - col1 * col2 + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-476
SELECT MAX( DISTINCT ( - col0 ) ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-476
SELECT MAX ( DISTINCT ( - col0 ) ) AS col1 FROM tab1
----
-51

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 25 + col2 * 1 NOT IN ( 20 )
----

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

query I rowsort
SELECT DISTINCT - 2 * col0 + col1 * 1 AS col2 FROM tab0 WHERE NOT col0 NOT IN ( col0 )
----
-153
-193
51

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT 89 + 25 * COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
164

skipif mysql # not compatible
query I rowsort label-480
SELECT 89 + 25 * COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
164

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-481
SELECT ALL - ( CAST( - ( + col0 ) AS SIGNED ) ) DIV - col2 - + col2 FROM tab0 WHERE NOT ( + ( 40 ) * col0 + 89 ) IN ( - col1 )
----
-18
-47
-99

skipif mysql # not compatible
query I rowsort label-481
SELECT ALL - ( CAST ( - ( + col0 ) AS INTEGER ) ) / - col2 - + col2 FROM tab0 WHERE NOT ( + ( 40 ) * col0 + 89 ) IN ( - col1 )
----
-18
-47
-99

query I rowsort
SELECT DISTINCT 16 AS col1 FROM tab2 WHERE NOT ( + 19 ) < - col1
----
16

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

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NULL IN ( 77 + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 24 + col1 col0 FROM tab0
----
-1047
-219
-2375

query I rowsort
SELECT 83 * - col2 AS col1 FROM tab2
----
-1909
-3320
-4814

query I rowsort
SELECT ( 1 ) * col2 FROM tab1
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 * 75 FROM tab1
----
-4425
-5100
-7200

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-489
SELECT DISTINCT ( - 96 ) + AVG ( ALL col0 ) / CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-489
SELECT DISTINCT ( - 96 ) + AVG ( ALL col0 ) / CAST ( NULL AS REAL ) FROM tab1
----
NULL

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-491
SELECT DISTINCT + 65 + - COUNT ( * ) col2 FROM tab0 AS cor0
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-492
SELECT + SUM( ALL - 77 ) AS col1 FROM tab2 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-492
SELECT + SUM ( ALL - 77 ) AS col1 FROM tab2 AS cor0
----
-231

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE 29 * 50 > + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 - col2 * 51 AS col2 FROM tab1 WHERE 90 NOT IN ( 33 )
----
-3004
-3421
-4882

onlyif mysql # aggregate syntax: 
query I rowsort label-497
SELECT ALL MIN( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-497
SELECT ALL MIN ( ALL + col1 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51

query I rowsort
SELECT ALL - col1 * - 27 AS col1 FROM tab0 AS cor0 WHERE NOT 53 + - ( col1 ) IS NULL
----
2187
27
567

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

skipif mysql # not compatible
query I rowsort label-499
SELECT - + 20 / + COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
-3

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-502
SELECT + SUM ( + + col0 ) * ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) + COUNT ( * ) ) col2 FROM tab0
----
NULL

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

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - 32 / 13 NOT BETWEEN + 46 * - 85 AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / - col1 NOT IN ( 69 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-509
SELECT ALL 47 DIV - col1 AS col1 FROM tab1
----
-1
-3
-9

skipif mysql # not compatible
query I rowsort label-509
SELECT ALL 47 / - col1 AS col1 FROM tab1
----
-1
-3
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-510
SELECT ( MAX( - 55 ) ) FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-510
SELECT ( MAX ( - 55 ) ) FROM tab1
----
-55

query I rowsort
SELECT - col0 * 34 * + 22 FROM tab1
----
-38148
-63580
-68068

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT + col1 <> + col1
----
3

skipif mysql # not compatible
query I rowsort label-512
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT + col1 <> + col1
----
3

query I rowsort
SELECT col2 - col1 FROM tab1 AS cor0 WHERE 94 IS NOT NULL AND col2 < NULL
----

query I rowsort
SELECT ALL + + col1 * 26 + + col0 AS col0 FROM tab2 AS cor0
----
1372
1817
2066

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 / 80 ) BETWEEN NULL AND 85 - - col2 * ( - col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL col0 + col1 AS col0 FROM tab1 WHERE NOT col1 BETWEEN + 47 AND ( NULL )
----
65
90

query III rowsort
SELECT * FROM tab0 WHERE NOT 62 + - col0 / 20 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL > - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-520
SELECT DISTINCT - 74 * SUM( 90 ) DIV 14 AS col0 FROM tab2 AS cor0
----
-1427

skipif mysql # not compatible
query I rowsort label-520
SELECT DISTINCT - 74 * SUM ( 90 ) / 14 AS col0 FROM tab2 AS cor0
----
-1427

query I rowsort
SELECT DISTINCT + - col0 + + col2 AS col0 FROM tab1 AS cor0
----
-23
-26
45

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

query I rowsort
SELECT ALL - 85 + - 73 FROM tab0 AS cor0
----
-158
-158
-158

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-524
SELECT - col2 DIV + + 26 + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
14
87
94

skipif mysql # not compatible
query I rowsort label-524
SELECT - col2 / + + 26 + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
14
87
94

query I rowsort
SELECT DISTINCT + - 76 + - 42 AS col2 FROM tab0 AS cor0
----
-118

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-526
SELECT - COUNT ( - ( 47 ) ) col2 FROM tab1 AS cor0
----
-3

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

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

query I rowsort
SELECT ALL 23 + + col2 FROM tab2 AS cor0
----
46
63
81

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

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

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

query I rowsort
SELECT DISTINCT - 11 + + 81 FROM tab1 cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-533
SELECT DISTINCT - - COUNT( - - col0 ) * - 30 AS col1 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-533
SELECT DISTINCT - - COUNT ( - - col0 ) * - 30 AS col1 FROM tab0 AS cor0
----
-90

query I rowsort
SELECT ALL col0 * - - 98 FROM tab2
----
4508
6272
7350

onlyif mysql # aggregate syntax: 
query I rowsort label-535
SELECT DISTINCT + COUNT( * ) + - 52 AS col2 FROM tab0
----
-49

skipif mysql # not compatible
query I rowsort label-535
SELECT DISTINCT + COUNT ( * ) + - 52 AS col2 FROM tab0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-536
SELECT DISTINCT + CAST( - 2 AS SIGNED ) + AVG ( + 56 ) FROM tab2 WHERE NOT + 57 NOT IN ( + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + CAST ( - 2 AS INTEGER ) + AVG ( + 56 ) FROM tab2 WHERE NOT + 57 NOT IN ( + - col2 )
----
NULL

query I rowsort
SELECT ALL col2 * col0 * + col2 FROM tab2
----
102400
24334
252300

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

query I rowsort
SELECT ALL 65 + - - col2 AS col0 FROM tab2
----
105
123
88

query I rowsort
SELECT ALL - - col2 AS col1 FROM tab0 AS cor0 WHERE + col0 = 27
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT DISTINCT - CAST( - col1 AS SIGNED ) + col0 FROM tab0 WHERE NULL >= col1
----

skipif mysql # not compatible
query I rowsort label-542
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) + col0 FROM tab0 WHERE NULL >= col1
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-543
SELECT ALL - COUNT ( * ) + - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 95 col0, col1 * + 55 AS col1 FROM tab2 AS cor0
----
95
2805
95
3685
95
4235

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT - MIN( col0 ) FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-545
SELECT - MIN ( col0 ) FROM tab0 cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL AND + 21 * + + col1 * - col1 <= NULL
----

query I rowsort
SELECT + col1 * 9 * + + col0 FROM tab1
----
3825
38493
6426

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

skipif mysql # not compatible
query I rowsort label-548
SELECT 5 AS col0 FROM tab1 WHERE NOT + + col0 BETWEEN + - col0 + col2 * + + col2 + - ( 75 ) AND col1 + CAST ( ( - col2 ) AS INTEGER ) * - 19
----
5
5
5

query II rowsort
SELECT col1 AS col0, - col2 * + col1 * - col1 FROM tab2
----
51
59823
67
260362
77
237160

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-551
SELECT SUM( ALL + + 40 ) FROM tab1, tab0 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-551
SELECT SUM ( ALL + + 40 ) FROM tab1, tab0 AS cor0
----
360

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-554
SELECT ALL + 98 DIV col0 FROM tab0
----
1
1
6

skipif mysql # not compatible
query I rowsort label-554
SELECT ALL + 98 / col0 FROM tab0
----
1
1
6

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab2 WHERE NOT ( + + col1 ) NOT IN ( + col2 )
----

query I rowsort
SELECT ALL 56 * + col0 * - 42 FROM tab1
----
-119952
-199920
-214032

query I rowsort
SELECT - 26 * + col0 AS col2 FROM tab2
----
-1196
-1664
-1950

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-558
SELECT - COUNT( * ) DIV + SUM( col0 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-558
SELECT - COUNT ( * ) / + SUM ( col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-559
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN ( 67 - - 61 * 31 ) AND ( - col1 * + CAST( + col0 * 87 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-559
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN ( 67 - - 61 * 31 ) AND ( - col1 * + CAST ( + col0 * 87 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-560
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col2 / + CAST( NULL AS SIGNED ) IS NOT NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-560
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE NOT col2 / + CAST ( NULL AS INTEGER ) IS NOT NULL
----
-1
-21
-81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-561
SELECT SUM ( DISTINCT - ( + col0 ) ) col2 FROM tab2
----
-185

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-562
SELECT COUNT( * ) DIV - 16 AS col2, + COUNT( * ) AS col2 FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-562
SELECT COUNT ( * ) / - 16 AS col2, + COUNT ( * ) AS col2 FROM tab1
----
0
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-564
SELECT DISTINCT - col0 + + 7 + - + col2 DIV + 80 AS col1 FROM tab0 AS cor0
----
-8
-80
-91

skipif mysql # not compatible
query I rowsort label-564
SELECT DISTINCT - col0 + + 7 + - + col2 / + 80 AS col1 FROM tab0 AS cor0
----
-8
-80
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 22 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-566
SELECT + 87 + + col0 - CAST( + ( - - col1 ) AS SIGNED ) DIV - col0 * + col1 col0 FROM tab1 AS cor0
----
138
172
178

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-566
SELECT + 87 + + col0 - CAST ( + ( - - col1 ) AS INTEGER ) / - col0 * + col1 col0 FROM tab1 AS cor0
----
138
172
178

query I rowsort
SELECT + 24 + - 82 - + col1 AS col1 FROM tab2 cor0
----
-109
-125
-135

query I rowsort
SELECT DISTINCT ( col1 ) * col1 + + col2 AS col2 FROM tab0 AS cor0
----
100
451
6608

query I rowsort
SELECT DISTINCT ( 28 ) * + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1428
-1876
-2156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-570
SELECT 1 + CAST( - ( col1 ) AS SIGNED ) + col0 AS col0 FROM tab2
----
-12
-4
9

skipif mysql # not compatible
query I rowsort label-570
SELECT 1 + CAST ( - ( col1 ) AS INTEGER ) + col0 AS col0 FROM tab2
----
-12
-4
9

query I rowsort
SELECT + 83 + col0 AS col0 FROM tab1
----
134
168
174

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

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

query I rowsort
SELECT + 10 + - + 0 AS col2 FROM tab1
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-574
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN + + col1 AND ( + col0 + CAST( NULL AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-574
SELECT ALL * FROM tab0 WHERE NOT ( + col0 ) NOT BETWEEN + + col1 AND ( + col0 + CAST ( NULL AS INTEGER ) * - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col2 col1 FROM tab0
----
196
62
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 86 AS col2, col2 - + col1 + 48 col1 FROM tab2
----
86
11
86
20
86
39

onlyif mysql # aggregate syntax: 
query II rowsort label-577
SELECT DISTINCT COUNT( * ) col2, 42 FROM tab0
----
3
42

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + col2 + - col0 NOT IN ( + - col1 * - 95 + - 75 )
----

query I rowsort
SELECT DISTINCT + 16 AS col0 FROM tab1 WHERE NOT ( - col1 + - col0 ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-580
SELECT COUNT( + col2 ) + - COUNT( * ) AS col1, - 90 AS col0 FROM tab1
----
0
-90

skipif mysql # not compatible
query II rowsort label-580
SELECT COUNT ( + col2 ) + - COUNT ( * ) AS col1, - 90 AS col0 FROM tab1
----
0
-90

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

query II rowsort
SELECT DISTINCT - col2 AS col1, 57 + - + col1 FROM tab2
----
-23
6
-40
-20
-58
-10

query I rowsort
SELECT 45 * - col2 + - - col0 * col2 * + col2 AS col1 FROM tab1 AS cor0
----
293230
417724
465696

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - - col0 col1 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT - - 35 * 12 + - col1 + + + col1 / + col2 * - col1 FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND - 23
----

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

query I rowsort
SELECT + col1 - + col2 + - col1 * - - 14 * 82 FROM tab0 cor0
----
-1246
-24097
-92954

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

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

query I rowsort
SELECT - 98 * + col0 + - - ( + 66 ) * col2 + - col0 AS col2 FROM tab0
----
-3069
-7953
1617

onlyif mysql # aggregate syntax: 
query I rowsort label-590
SELECT ALL - + MIN( ALL + - col2 ) FROM tab1 AS cor0
----
96

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

query I rowsort
SELECT 84 * - 31 * - col2 AS col0 FROM tab2 AS cor0
----
104160
151032
59892

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

query I rowsort
SELECT ALL 15 * + - 94 FROM tab2 AS cor0
----
-1410
-1410
-1410

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 83 * + col0 + - - col2 col2 FROM tab2 AS cor0
----
-3795
-5272
-6167

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

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

query I rowsort
SELECT ALL + 30 * + + 64 - 39 FROM tab2 AS cor0
----
1881
1881
1881

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

query I rowsort
SELECT col0 * - 8 * - ( + col1 ) + + ( - col2 ) FROM tab2 AS cor0
----
18745
39384
40142

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

skipif mysql # not compatible
query III rowsort label-599
SELECT DISTINCT * FROM tab0 WHERE + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-601
SELECT ALL COUNT( * ) * 1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-601
SELECT ALL COUNT ( * ) * 1 FROM tab0
----
3

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

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

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

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

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

query I rowsort
SELECT col2 * - + 42 FROM tab2 cor0
----
-1680
-2436
-966

onlyif mysql # aggregate syntax: 
query II rowsort label-606
SELECT DISTINCT + COUNT( * ) AS col0, 80 * 37 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * + 39 AND ( - - col1 )
----
0
2960

skipif mysql # not compatible
query II rowsort label-606
SELECT DISTINCT + COUNT ( * ) AS col0, 80 * 37 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 * + 39 AND ( - - col1 )
----
0
2960

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-608
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) <> - + col1 + + + 2
----

skipif mysql # not compatible
query III rowsort label-608
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) <> - + col1 + + + 2
----

query I rowsort
SELECT - col0 + + + 34 + + + col0 FROM tab2
----
34
34
34

onlyif mysql # aggregate syntax: 
query I rowsort label-610
SELECT SUM( DISTINCT - col0 ) + 50 FROM tab2
----
-135

skipif mysql # not compatible
query I rowsort label-610
SELECT SUM ( DISTINCT - col0 ) + 50 FROM tab2
----
-135

query I rowsort
SELECT - 93 + + - 49 FROM tab1 AS cor0
----
-142
-142
-142

query I rowsort
SELECT - + 65 + + col0 AS col0 FROM tab1 AS cor0
----
-14
20
26

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-616
SELECT DISTINCT + 20 * - COUNT( * ) * + 26 * - ( + - 4 ) AS col1 FROM tab2 cor0 WHERE NULL > - 47
----
0

skipif mysql # not compatible
query I rowsort label-616
SELECT DISTINCT + 20 * - COUNT ( * ) * + 26 * - ( + - 4 ) AS col1 FROM tab2 cor0 WHERE NULL > - 47
----
0

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

query II rowsort
SELECT DISTINCT col1 AS col1, col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

onlyif mysql # aggregate syntax: 
query I rowsort label-619
SELECT ALL SUM( 46 ) AS col0 FROM tab1
----
138

skipif mysql # not compatible
query I rowsort label-619
SELECT ALL SUM ( 46 ) AS col0 FROM tab1
----
138

query I rowsort
SELECT DISTINCT 45 FROM tab1 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-621
SELECT 47 - - 88 + + col0 * - + col0 + - + CAST( NULL AS SIGNED ) * 75 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-621
SELECT 47 - - 88 + + col0 * - + col0 + - + CAST ( NULL AS INTEGER ) * 75 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-622
SELECT DISTINCT - MAX( - - col0 ) + COUNT( * ) + - + COUNT( ALL + col1 ) FROM tab1 cor0
----
-91

skipif mysql # not compatible
query I rowsort label-622
SELECT DISTINCT - MAX ( - - col0 ) + COUNT ( * ) + - + COUNT ( ALL + col1 ) FROM tab1 cor0
----
-91

query I rowsort
SELECT - 19 + + col0 AS col1 FROM tab0 cor0
----
-4
68
78

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-624
SELECT ALL COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND - - 90 - - + col2 * + col1
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 77 <= - - 55
----

onlyif mysql # DIV for integer division: 
query I rowsort label-626
SELECT ALL col1 + - col1 DIV - - col2 + + col2 FROM tab2 cor0
----
116
124
72

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL col1 + - col1 / - - col2 + + col2 FROM tab2 cor0
----
116
124
72

query I rowsort
SELECT DISTINCT + col0 - - 58 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT ALL + 28 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-630
SELECT 95 + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----
95

skipif mysql # not compatible
query I rowsort label-630
SELECT 95 + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL > NULL
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-631
SELECT DISTINCT + col1 + col2 + + col1 / + col2 AS col0, CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-631
SELECT DISTINCT + col1 + col2 + + col1 / + col2 AS col0, CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT 44 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-634
SELECT ALL COUNT( * ) + - SUM( - 86 ) FROM tab2 AS cor0 WHERE NOT col0 * - 70 IS NULL
----
261

skipif mysql # not compatible
query I rowsort label-634
SELECT ALL COUNT ( * ) + - SUM ( - 86 ) FROM tab2 AS cor0 WHERE NOT col0 * - 70 IS NULL
----
261

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

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

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

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-640
SELECT DISTINCT - col1 / - + col0 col2 FROM tab0 cor0
----
0
5

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 17 col0 FROM tab2
----
-1088
-1275
-782

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

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

query I rowsort
SELECT ALL - ( - 15 ) * col0 AS col2 FROM tab2
----
1125
690
960

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT DISTINCT + MAX( + col0 ) * 33 AS col2 FROM tab0 cor0
----
3201

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT + MAX ( + col0 ) * 33 AS col2 FROM tab0 cor0
----
3201

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

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-652
SELECT - SUM( col2 ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-652
SELECT - SUM ( col2 ) AS col1 FROM tab2 AS cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT 5 - - - col1 * + 28 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-1311
-135
-387

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 39 * - col2 + - 84 col0 FROM tab0 AS cor0
----
-1917
-3945
-474

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-657
SELECT ALL + - 99 + - COUNT( * ) DIV 79 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > + - 57
----
-99

skipif mysql # not compatible
query I rowsort label-657
SELECT ALL + - 99 + - COUNT ( * ) / 79 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) > + - 57
----
-99

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

query I rowsort
SELECT + 3 + - col0 FROM tab0
----
-12
-84
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - 42 col0, col1 AS col2, col2 FROM tab2
----
9 values hashing to 7e6f157741af4a3ce61a34b2350df8b7

query II rowsort
SELECT col2 AS col2, col0 * + col1 AS col1 FROM tab0
----
10
1827
47
1215
99
97

query I rowsort
SELECT DISTINCT col1 - + 56 - col1 FROM tab2
----
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 * 59 * + - col2 col2 FROM tab0
----
-210276
-21240
-99828

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-664
SELECT 97 - col2 * + ( - col0 ) FROM tab2 WHERE - + col1 BETWEEN - col2 AND - CAST( - col2 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-664
SELECT 97 - col2 * + ( - col0 ) FROM tab2 WHERE - + col1 BETWEEN - col2 AND - CAST ( - col2 AS REAL )
----

query I rowsort
SELECT - 97 - + 18 + - + col2 * 50 - - col1 FROM tab0 AS cor0
----
-2384
-5064
-594

onlyif mysql # aggregate syntax: 
query II rowsort label-666
SELECT ALL - COUNT( * ) AS col2, 59 * + 9 * - - MIN( 16 ) AS col0 FROM tab2 AS cor0
----
-3
8496

skipif mysql # not compatible
query II rowsort label-666
SELECT ALL - COUNT ( * ) AS col2, 59 * + 9 * - - MIN ( 16 ) AS col0 FROM tab2 AS cor0
----
-3
8496

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * col2 + col0 + col1 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - - col0 * + - col1 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - + ( - 67 ) * - col2 * + + col2 FROM tab2 AS cor0
----
-107200
-225388
-35443

onlyif mysql # aggregate syntax: 
query I rowsort label-671
SELECT SUM( ALL - 56 ) AS col1 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-671
SELECT SUM ( ALL - 56 ) AS col1 FROM tab2 AS cor0
----
-168

query I rowsort
SELECT + + col0 * - col2 + - + col1 FROM tab0 AS cor0
----
-786
-891
-9604

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-673
SELECT CAST( col0 AS SIGNED ) DIV col2 FROM tab1 cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-673
SELECT CAST ( col0 AS INTEGER ) / col2 FROM tab1 cor0
----
0
1
1

query I rowsort
SELECT + col0 * - + 82 AS col2 FROM tab2 AS cor0
----
-3772
-5248
-6150

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

skipif mysql # not compatible
query I rowsort label-675
SELECT + 28 / - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - col1 * - - 23 AS col0 FROM tab0
----
-1863
-23
-483

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL - + MAX( ALL + 94 ) AS col1 FROM tab1 WHERE + col2 = + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-677
SELECT ALL - + MAX ( ALL + 94 ) AS col1 FROM tab1 WHERE + col2 = + col0
----
NULL

query I rowsort
SELECT ALL 82 * + - 74 FROM tab1
----
-6068
-6068
-6068

onlyif mysql # aggregate syntax: 
query I rowsort label-679
SELECT DISTINCT MAX( ALL + - col1 ) FROM tab0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT MAX ( ALL + - col1 ) FROM tab0 WHERE NOT NULL > NULL
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-681
SELECT + + col0 col2, - 34 DIV - + 94 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-681
SELECT + + col0 col2, - 34 / - + 94 AS col1 FROM tab0 AS cor0
----
15
0
87
0
97
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-682
SELECT - MIN( ALL col1 ) * + MIN( DISTINCT + CAST( col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-1173

skipif mysql # not compatible
query I rowsort label-682
SELECT - MIN ( ALL col1 ) * + MIN ( DISTINCT + CAST ( col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-1173

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-684
SELECT ALL CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT 50 + CAST( col2 AS SIGNED ) * + 70 = NULL
----

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT 50 + CAST ( col2 AS INTEGER ) * + 70 = NULL
----

query I rowsort
SELECT ALL - 73 - 26 * + 20 FROM tab2 cor0 WHERE + ( - col1 ) IS NULL
----

query II rowsort
SELECT ALL + col2 + - col0, col1 FROM tab2 AS cor0
----
-17
67
-23
51
-24
77

onlyif mysql # aggregate syntax: 
query I rowsort label-687
SELECT ALL - MAX( ALL - + 61 ) + + 2 AS col0 FROM tab1 cor0
----
63

skipif mysql # not compatible
query I rowsort label-687
SELECT ALL - MAX ( ALL - + 61 ) + + 2 AS col0 FROM tab1 cor0
----
63

query II rowsort
SELECT ALL - col0 - + col2, col1 AS col0 FROM tab0 AS cor0
----
-196
1
-62
81
-97
21

query I rowsort
SELECT 70 + + - col2 AS col1 FROM tab0
----
-29
23
60

query I rowsort
SELECT DISTINCT col2 * 69 - - col2 FROM tab0
----
3290
6930
700

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * 41 + - 24 col0 FROM tab0
----
1288
1288
1288

onlyif mysql # DIV for integer division: 
query II rowsort label-693
SELECT ALL - ( 35 ) DIV col0, col2 AS col1 FROM tab1 AS cor0
----
0
59
0
68
0
96

skipif mysql # not compatible
query II rowsort label-693
SELECT ALL - ( 35 ) / col0, col2 AS col1 FROM tab1 AS cor0
----
0
59
0
68
0
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * - 90 BETWEEN ( + col0 + col2 ) AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - - 71 * + + col1 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1578
168
5766

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-696
SELECT DISTINCT col2 AS col2, - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-696
SELECT DISTINCT col2 AS col2, - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT + + 26 + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-21
-73
16

onlyif mysql # DIV for integer division: 
query II rowsort label-698
SELECT col1, + col2 DIV - + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-698
SELECT col1, + col2 / - + col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 47 <= ( + + col0 * 58 * - + 48 + + - col2 )
----

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

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

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

query I rowsort
SELECT - ( ( col2 ) ) * col2 * - 8 AS col0 FROM tab2 AS cor0
----
12800
26912
4232

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 33 + + col1 * + + 42 BETWEEN 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT ALL SUM( ALL 55 ) AS col2, 51 FROM tab1
----
165
51

skipif mysql # not compatible
query II rowsort label-705
SELECT ALL SUM ( ALL 55 ) AS col2, 51 FROM tab1
----
165
51

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( - col2 ) * - col1 + + - 57 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-707
SELECT 61 + + 16 DIV + col0 FROM tab0
----
61
61
62

skipif mysql # not compatible
query I rowsort label-707
SELECT 61 + + 16 / + col0 FROM tab0
----
61
61
62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT SUM( DISTINCT + ( 97 ) ) FROM tab2
----
97

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT SUM ( DISTINCT + ( 97 ) ) FROM tab2
----
97

query I rowsort
SELECT col0 + - col2 - + col2 FROM tab0
----
-101
-79
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 10 * - + 93 col2, 50 * col0 FROM tab1
----
-930
2550
-930
4250
-930
4550

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-712
SELECT ALL - 1 * - - col2 * + col0 + + 75 * + 87 * - 38 * + ( + col1 ) * + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-712
SELECT ALL - 1 * - - col2 * + col0 + + 75 * + 87 * - 38 * + ( + col1 ) * + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - - 60 + 16 AS col2 FROM tab0 AS cor0
----
2836
5956
616

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * 60 + - 89 IS NULL
----

query I rowsort
SELECT - col2 - + col1 AS col0 FROM tab2
----
-117
-125
-74

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

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

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

query I rowsort
SELECT - - 50 + - col2 FROM tab1 cor0
----
-18
-46
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + - 28 + + + col1 col0, 53 + + 38 AS col0 FROM tab2 AS cor0
----
-1377
91
-1809
91
-2079
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-720
SELECT DISTINCT + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-720
SELECT DISTINCT + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
NULL

query I rowsort
SELECT + - 96 + col2 FROM tab2 AS cor0
----
-38
-56
-73

query I rowsort
SELECT ALL + col0 + - - col1 * - 69 AS col0 FROM tab1 AS cor0
----
-260
-3152
-915

query I rowsort
SELECT DISTINCT + 78 - - + 74 + - - col0 AS col0 FROM tab2
----
198
216
227

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

query I rowsort
SELECT ALL 17 - - - col1 * - 78 * + + col0 + col1 + + col1 AS col2 FROM tab1
----
33177
333717
55737

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-726
SELECT DISTINCT - MAX ( - col2 ) col1 FROM tab1
----
59

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - col2 ) col2 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= - 69
----

query I rowsort
SELECT DISTINCT 62 FROM tab2 WHERE - col1 IS NOT NULL
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT - + MIN( 62 ) * + 87 + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5385

skipif mysql # not compatible
query I rowsort label-731
SELECT - + MIN ( 62 ) * + 87 + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-5385

query I rowsort
SELECT ALL + - 50 AS col0 FROM tab1 WHERE col2 IS NOT NULL
----
-50
-50
-50

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

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

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

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

query II rowsort
SELECT DISTINCT + col0 AS col2, + 28 AS col0 FROM tab0 AS cor0
----
15
28
87
28
97
28

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-739
SELECT 87 * + - col2 - - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2024
-3520
-5104

skipif mysql # not compatible
query I rowsort label-739
SELECT 87 * + - col2 - - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2024
-3520
-5104

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-743
SELECT DISTINCT 11 AS col2, MIN( + CAST( - col2 AS SIGNED ) ) col2 FROM tab2
----
11
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-743
SELECT DISTINCT 11 AS col2, MIN ( + CAST ( - col2 AS INTEGER ) ) col2 FROM tab2
----
11
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-744
SELECT col1 * - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-744
SELECT col1 * - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0
----
210
3807
99

query II rowsort
SELECT col2 AS col0, - 96 * - col2 AS col0 FROM tab0 AS cor0
----
10
960
47
4512
99
9504

onlyif mysql # DIV for integer division: 
query I rowsort label-746
SELECT - 9 + 1 DIV col1 FROM tab0 AS cor0
----
-8
-9
-9

skipif mysql # not compatible
query I rowsort label-746
SELECT - 9 + 1 / col1 FROM tab0 AS cor0
----
-8
-9
-9

query I rowsort
SELECT DISTINCT - - col2 + - - col0 - + + 8 + col2 * col1 * + 13 AS col1 FROM tab1 AS cor0
----
17611
3971
41699

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-748
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 * + - 30 + col0 / col0 AND 78 * + - ( + + ( - CAST( 30 AS SIGNED ) ) ) + + 69
----

skipif mysql # not compatible
query III rowsort label-748
SELECT * FROM tab2 WHERE NULL BETWEEN + col1 * + - 30 + col0 / col0 AND 78 * + - ( + + ( - CAST ( 30 AS INTEGER ) ) ) + + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-749
SELECT DISTINCT - - ( + MIN( 88 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
88

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT - - ( + MIN ( 88 ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 73 * - col2 col0 FROM tab2
----
-1679
-2920
-4234

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

query I rowsort
SELECT - col0 * + col2 * - col1 * col1 FROM tab0 AS cor0
----
383670
4625505
9603

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + col2 + 61 AS col2 FROM tab0 AS cor0
----
-644
-809
-9542

onlyif mysql # aggregate syntax: 
query I rowsort label-756
SELECT DISTINCT + + 74 * SUM( ALL ( 50 ) ) FROM tab1 AS cor0
----
11100

skipif mysql # not compatible
query I rowsort label-756
SELECT DISTINCT + + 74 * SUM ( ALL ( 50 ) ) FROM tab1 AS cor0
----
11100

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 - + 86 / col2 BETWEEN ( + - col0 - + 46 ) AND NULL
----

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

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

query I rowsort
SELECT DISTINCT + ( col2 ) * - + col0 * col2 FROM tab1
----
-295885
-420784
-470016

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 12 col1, 89 col2 FROM tab1
----
12
89
12
89
12
89

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

query I rowsort
SELECT DISTINCT + 17 * col2 * 12 AS col1 FROM tab1
----
12036
13872
19584

onlyif mysql # aggregate syntax: 
query I rowsort label-766
SELECT ALL + - SUM( DISTINCT 25 ) FROM tab0 WHERE + col0 IS NOT NULL
----
-25

skipif mysql # not compatible
query I rowsort label-766
SELECT ALL + - SUM ( DISTINCT 25 ) FROM tab0 WHERE + col0 IS NOT NULL
----
-25

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

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

query II rowsort
SELECT DISTINCT + + col1 AS col0, - col1 + - col1 + - + col2 + + col1 AS col0 FROM tab2 AS cor0
----
51
-74
67
-125
77
-117

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-772
SELECT + MIN( + CAST( NULL AS SIGNED ) ) + - SUM( col0 ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-773
SELECT 38 DIV 28 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-773
SELECT 38 / 28 FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-774
SELECT DISTINCT - ( COUNT( * ) ) * - - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-774
SELECT DISTINCT - ( COUNT ( * ) ) * - - COUNT ( * ) col1 FROM tab1
----
-9

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

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

query I rowsort
SELECT ( col0 ) + - 14 AS col0 FROM tab0
----
1
73
83

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-778
SELECT - col1 + - - col1 * + CAST( NULL AS DECIMAL ) FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
NULL
NULL
NULL

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

query I rowsort
SELECT + 53 * - + col2 + - 57 FROM tab2
----
-1276
-2177
-3131

onlyif mysql # DIV for integer division: 
query I rowsort label-780
SELECT - col1 DIV - + col0 + col0 + + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-780
SELECT - col1 / - + col0 + col0 + + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT 61 + - col2 FROM tab2
----
21
3
38

query II rowsort
SELECT DISTINCT 58, + col1 + - - col0 AS col0 FROM tab1
----
58
138
58
65
58
90

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

skipif mysql # not compatible
query I rowsort label-783
SELECT ALL - COUNT ( * ) / + + ( COUNT ( * ) ) FROM tab0, tab1 AS cor0
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT + + SUM( ALL - 33 ) AS col0 FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-785
SELECT + + SUM ( ALL - 33 ) AS col0 FROM tab2 AS cor0
----
-99

query I rowsort
SELECT ALL - col1 * col2 + + - 5 * + - 38 AS col2 FROM tab2 AS cor0
----
-2890
-3696
-983

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 62 + + col2 col2 FROM tab1
----
-3
34
6

onlyif mysql # aggregate syntax: 
query I rowsort label-789
SELECT - COUNT( * ) - SUM( DISTINCT - col1 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-789
SELECT - COUNT ( * ) - SUM ( DISTINCT - col1 ) FROM tab1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-790
SELECT ALL + col0 + - - col1 DIV + col1 col1 FROM tab1
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-790
SELECT ALL + col0 + - - col1 / + col1 col1 FROM tab1
----
52
86
92

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-793
SELECT + + CAST( col0 AS SIGNED ) + ( + 89 ) DIV 12 * + - 59 col1 FROM tab1 AS cor0
----
-322
-328
-362

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-793
SELECT + + CAST ( col0 AS INTEGER ) + ( + 89 ) / 12 * + - 59 col1 FROM tab1 AS cor0
----
-322
-328
-362

query I rowsort
SELECT col0 + + 79 + col0 AS col2 FROM tab2 AS cor0
----
171
207
229

onlyif mysql # DIV for integer division: 
query I rowsort label-795
SELECT - col0 DIV + col0 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col0 + - + 37 AND ( - - col2 )
----
-1
-1

skipif mysql # not compatible
query I rowsort label-795
SELECT - col0 / + col0 FROM tab1 AS cor0 WHERE col1 NOT BETWEEN + col0 + - + 37 AND ( - - col2 )
----
-1
-1

query I rowsort
SELECT + 44 * + + 23 FROM tab1 AS cor0
----
1012
1012
1012

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND + col1
----

query II rowsort
SELECT ALL + 86, col1 + + 90 * + col2 AS col1 FROM tab0 AS cor0
----
86
4311
86
8911
86
921

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

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

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

query I rowsort
SELECT ALL col1 FROM tab1 WHERE - col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-802
SELECT ALL ( CAST( NULL AS SIGNED ) ), - 49 AS col2 FROM tab0
----
NULL
-49
NULL
-49
NULL
-49

skipif mysql # not compatible
query II rowsort label-802
SELECT ALL ( CAST ( NULL AS INTEGER ) ), - 49 AS col2 FROM tab0
----
NULL
-49
NULL
-49
NULL
-49

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

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

query I rowsort
SELECT ALL - col2 * - + 73 FROM tab0 AS cor0
----
3431
7227
730

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

onlyif mysql # DIV for integer division: 
query II rowsort label-806
SELECT DISTINCT col1 DIV + col2 col2, + 12 * + - col1 FROM tab2 AS cor0
----
1
-804
1
-924
2
-612

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-806
SELECT DISTINCT col1 / + col2 col2, + 12 * + - col1 FROM tab2 AS cor0
----
1
-804
1
-924
2
-612

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 99
----

query I rowsort
SELECT - col2 + - 11 * 32 AS col2 FROM tab1 AS cor0
----
-411
-420
-448

query I rowsort
SELECT + col1 * - - 46 * 59 * - col0 * - col0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT col1 AS col2, col0 * - 59 - col1 FROM tab2 AS cor0
----
51
-2765
67
-4492
77
-3853

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 15 * + col0 col1 FROM tab1 cor0
----
-1275
-1365
-765

query I rowsort
SELECT ALL - 48 + + col0 AS col1 FROM tab2 AS cor0
----
-2
16
27

query I rowsort
SELECT ALL + 50 * - + col2 FROM tab1
----
-2950
-3400
-4800

query I rowsort
SELECT DISTINCT - col0 + + - col0 AS col2 FROM tab1
----
-102
-170
-182

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 * col1 >= NULL
----

query II rowsort
SELECT 12 * + + 0, 48 AS col0 FROM tab1
----
0
48
0
48
0
48

query I rowsort
SELECT col0 - + + col1 + col1 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL 42 * + 75 AS col1 FROM tab2
----
3150
3150
3150

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-821
SELECT ALL col0 DIV + CAST( + col1 AS SIGNED ) AS col0 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-821
SELECT ALL col0 / + CAST ( + col1 AS INTEGER ) AS col0 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-822
SELECT ALL + 77 DIV 79 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-822
SELECT ALL + 77 / 79 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3

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

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

query I rowsort
SELECT ALL col0 + - col1 * - + col2 + + 55 AS col1 FROM tab2
----
1274
3199
4016

query I rowsort
SELECT - 96 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT ALL - 75 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT ALL - 6 FROM tab1 AS cor0 WHERE NOT - col2 + col1 * - 35 < NULL
----

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

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

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

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

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

query II rowsort
SELECT - 14 * - 54 AS col0, + 5 FROM tab1
----
756
5
756
5
756
5

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

onlyif mysql # aggregate syntax: 
query II rowsort label-835
SELECT MIN( DISTINCT - - col1 ), COUNT( * ) col1 FROM tab0
----
1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-835
SELECT MIN ( DISTINCT - - col1 ), COUNT ( * ) col1 FROM tab0
----
1
3

query I rowsort
SELECT ( - 66 ) AS col2 FROM tab1
----
-66
-66
-66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 + + 7 > + + col1
----
15
81
47

query I rowsort
SELECT + + 5 * - col1 FROM tab0 AS cor0
----
-105
-405
-5

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

query I rowsort
SELECT DISTINCT col2 * + ( - col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-842
SELECT 46 DIV - COUNT( DISTINCT col0 ), + 88 AS col0 FROM tab1
----
-15
88

skipif mysql # not compatible
query II rowsort label-842
SELECT 46 / - COUNT ( DISTINCT col0 ), + 88 AS col0 FROM tab1
----
-15
88

query I rowsort
SELECT ALL col2 * - - 66 + + 80 FROM tab0 AS cor0
----
3182
6614
740

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col1 ) + + + 61 + - col0 * - - 42 AS col1, col1 col0 FROM tab1 AS cor0
----
-2067
14
-3504
5
-3714
47

query I rowsort
SELECT DISTINCT - 31 + - - ( + col0 ) FROM tab1 AS cor0
----
20
54
60

query I rowsort
SELECT DISTINCT + col1 + - - col0 + + col1 AS col0 FROM tab0 AS cor0
----
129
177
99

onlyif mysql # DIV for integer division: 
query I rowsort label-848
SELECT - col1 DIV col0 * + col1 + - col0 + + + col1 * + 79 * - + ( - col1 ) + col0 col1 FROM tab1 AS cor0
----
15484
174511
1975

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-848
SELECT - col1 / col0 * + col1 + - col0 + + + col1 * + 79 * - + ( - col1 ) + col0 col1 FROM tab1 AS cor0
----
15484
174511
1975

query I rowsort
SELECT - col0 + 20 FROM tab0
----
-67
-77
5

query I rowsort
SELECT DISTINCT col0 - 23 FROM tab2
----
23
41
52

query I rowsort
SELECT - 52 + + - 72 AS col2 FROM tab1
----
-124
-124
-124

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 6 * + col1 col0 FROM tab0
----
126
486
6

onlyif mysql # aggregate syntax: 
query I rowsort label-854
SELECT ALL SUM( ALL 87 ) FROM tab2
----
261

skipif mysql # not compatible
query I rowsort label-854
SELECT ALL SUM ( ALL 87 ) FROM tab2
----
261

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 90 IS NOT NULL
----

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

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

query II rowsort
SELECT col0 * - - col1 - col2 - + 44, col1 FROM tab0 AS cor0
----
-46
1
1124
81
1773
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-861
SELECT CAST( NULL AS DECIMAL ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-861
SELECT CAST ( NULL AS REAL ) * - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-862
SELECT CAST( - 20 AS SIGNED ), + ( 86 ) col1 FROM tab0 AS cor0
----
-20
86
-20
86
-20
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-862
SELECT CAST ( - 20 AS INTEGER ), + ( 86 ) col1 FROM tab0 AS cor0
----
-20
86
-20
86
-20
86

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + + ( + 92 ) * - col1 col0 FROM tab1 AS cor0
----
-1484
-485
-6533

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 13 = ( - - 22 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-867
SELECT + + COUNT( * ) FROM tab0 WHERE NOT + 87 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-867
SELECT + + COUNT ( * ) FROM tab0 WHERE NOT + 87 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN col2 AND - 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) col0 FROM tab0 AS cor0
----
-1
-21
-81

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

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

query II rowsort
SELECT ALL 65 AS col2, ( + col2 ) + - col1 FROM tab0
----
65
-11
65
-34
65
98

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= col1 * 92 + 2 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-873
SELECT + - col1 * + + col1 AS col1, + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-1
-1
-441
-21
-6561
-81

skipif mysql # not compatible
query II rowsort label-873
SELECT + - col1 * + + col1 AS col1, + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-1
-1
-441
-21
-6561
-81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 9 < NULL
----

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

query I rowsort
SELECT - 21 + - 36 * 16 FROM tab1
----
-597
-597
-597

query I rowsort
SELECT - col2 * col1 - - - col0 AS col0 FROM tab1 WHERE NOT - 58 IS NULL
----
-1395
-3287
-380

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

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

query I rowsort
SELECT DISTINCT - col2 * - col2 - + col1 FROM tab0 AS cor0
----
2128
79
9800

query I rowsort
SELECT ALL col0 * - - 58 + col0 AS col1 FROM tab2 AS cor0
----
2714
3776
4425

query I rowsort
SELECT DISTINCT + 19 * 46 FROM tab0 AS cor0
----
874

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-884
SELECT - 66 DIV + MIN( + col1 ) FROM tab2 AS cor0
----
-1

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-888
SELECT ( col1 ) DIV - col2 + - col2 AS col1 FROM tab0
----
-12
-48
-99

skipif mysql # not compatible
query I rowsort label-888
SELECT ( col1 ) / - col2 + - col2 AS col1 FROM tab0
----
-12
-48
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-889
SELECT + MAX( DISTINCT - 24 ) * + 13 + - COUNT( * ), - 83 AS col0 FROM tab1
----
-315
-83

skipif mysql # not compatible
query II rowsort label-889
SELECT + MAX ( DISTINCT - 24 ) * + 13 + - COUNT ( * ), - 83 AS col0 FROM tab1
----
-315
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT 65 DIV - col1 + - + col1 FROM tab0
----
-24
-66
-81

skipif mysql # not compatible
query I rowsort label-890
SELECT 65 / - col1 + - + col1 FROM tab0
----
-24
-66
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-891
SELECT DISTINCT + + col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE - CAST( col1 AS SIGNED ) + + 83 >= + 15 + col0
----
147

skipif mysql # not compatible
query I rowsort label-891
SELECT DISTINCT + + col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE - CAST ( col1 AS INTEGER ) + + 83 >= + 15 + col0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT + 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-892
SELECT DISTINCT + COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-893
SELECT DISTINCT + CAST( 15 AS SIGNED ) * + 78 + - - col2 FROM tab2 AS cor0
----
1193
1210
1228

skipif mysql # not compatible
query I rowsort label-893
SELECT DISTINCT + CAST ( 15 AS INTEGER ) * + 78 + - - col2 FROM tab2 AS cor0
----
1193
1210
1228

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

query I rowsort
SELECT DISTINCT + - 84 + - 47 FROM tab1 AS cor0
----
-131

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-896
SELECT ALL - CAST( + col2 AS SIGNED ) + 28 FROM tab1 AS cor0
----
-31
-40
-68

skipif mysql # not compatible
query I rowsort label-896
SELECT ALL - CAST ( + col2 AS INTEGER ) + 28 FROM tab1 AS cor0
----
-31
-40
-68

query I rowsort
SELECT - - col0 + + ( - - 52 ) FROM tab1 AS cor0
----
103
137
143

onlyif mysql # aggregate syntax: 
query I rowsort label-898
SELECT + COUNT( DISTINCT 36 ) + COUNT( * ) * + + MIN( DISTINCT 22 ) + + 80 AS col0 FROM tab1 cor0
----
147

skipif mysql # not compatible
query I rowsort label-898
SELECT + COUNT ( DISTINCT 36 ) + COUNT ( * ) * + + MIN ( DISTINCT 22 ) + + 80 AS col0 FROM tab1 cor0
----
147

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 + + 91 IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + col1 + - + 51 AS col0 FROM tab1
----
-37
-4
-46

query I rowsort
SELECT - 90 FROM tab0 WHERE NULL IS NULL
----
-90
-90
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-902
SELECT ALL - 18 - col1 + - col1 DIV - col1 col2 FROM tab0
----
-18
-38
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-902
SELECT ALL - 18 - col1 + - col1 / - col1 col2 FROM tab0
----
-18
-38
-98

query I rowsort
SELECT DISTINCT - 79 * - col1 * - + ( - + col2 ) FROM tab1
----
106176
23305
252484

query I rowsort
SELECT DISTINCT - 62 FROM tab1 WHERE NOT - 22 IS NULL
----
-62

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 + + ( + + col1 ) < col2
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-906
SELECT MAX( DISTINCT + + col1 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
77

skipif mysql # not compatible
query I rowsort label-906
SELECT MAX ( DISTINCT + + col1 ) AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
77

query I rowsort
SELECT ALL - col2 * - - ( col2 ) FROM tab1 AS cor0
----
-3481
-4624
-9216

query I rowsort
SELECT + col0 * col2 + - ( col2 ) * + col1 AS col0 FROM tab0 AS cor0
----
-3102
660
9504

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab1 AS cor0 WHERE NULL > col0
----

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

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

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

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

query I rowsort
SELECT DISTINCT + col2 * col2 * + col0 + col0 FROM tab2 cor0
----
102464
24380
252375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - + col0 col2 FROM tab0 AS cor0
----
-705
-870
-9603

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT - + ( 7 ) * + - MIN( + col1 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-915
SELECT - + ( 7 ) * + - MIN ( + col1 ) FROM tab1 AS cor0
----
35

query I rowsort
SELECT + ( + ( - ( + col0 ) ) ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-918
SELECT 46 DIV col0 col2 FROM tab1
----
0
0
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 6 col0 FROM tab2
----
-276
-384
-450

query I rowsort
SELECT DISTINCT + 25 AS col0 FROM tab2 WHERE NOT NULL >= + 27
----

query II rowsort
SELECT DISTINCT 4 AS col2, - 51 FROM tab1
----
4
-51

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

query II rowsort
SELECT 40 AS col1, + 40 * + col1 FROM tab0
----
40
3240
40
40
40
840

query I rowsort
SELECT DISTINCT 19 * + - col2 * - - col2 * col0 + - col1 FROM tab2 AS cor0
----
-1945677
-462397
-4793767

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT COUNT( * ) + - 94 * + 25 AS col1 FROM tab2 AS cor0
----
-2347

skipif mysql # not compatible
query I rowsort label-925
SELECT COUNT ( * ) + - 94 * + 25 AS col1 FROM tab2 AS cor0
----
-2347

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

query I rowsort
SELECT DISTINCT 43 AS col1 FROM tab1 WHERE NULL IN ( + col1 )
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-930
SELECT * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IN ( 47 )
----

skipif mysql # not compatible
query III rowsort label-930
SELECT * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IN ( 47 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-931
SELECT CAST( NULL AS SIGNED ) * 62 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-931
SELECT CAST ( NULL AS INTEGER ) * 62 FROM tab0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT 58 * 26 + - col1 FROM tab2
----
1431
1441
1457

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT ALL - COUNT( * ) * 68 AS col1 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-934
SELECT ALL - COUNT ( * ) * 68 AS col1 FROM tab2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT - MAX( ALL - ( 72 ) ) FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-935
SELECT - MAX ( ALL - ( 72 ) ) FROM tab1
----
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-936
SELECT ALL - col0 * CAST( col0 * - col2 AS DECIMAL ) + - col2 * col0 FROM tab1 WHERE NOT + col1 <> + CAST( + 13 AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-936
SELECT ALL - col0 * CAST ( col0 * - col2 AS REAL ) + - col2 * col0 FROM tab1 WHERE NOT + col1 <> + CAST ( + 13 AS REAL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * - 0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 53 * + col0 FROM tab1
----
2703
4505
4823

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-939
SELECT - 64 DIV MIN( 63 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-939
SELECT - 64 / MIN ( 63 ) FROM tab2
----
-1

query I rowsort
SELECT DISTINCT col2 + col1 AS col0 FROM tab0 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT col0 * + col1 FROM tab1 WHERE + col0 IS NOT NULL
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-942
SELECT ALL - MIN( - 2 ) AS col0 FROM tab1 WHERE - col2 NOT BETWEEN col1 - col2 * - 44 AND NULL
----
2

skipif mysql # not compatible
query I rowsort label-942
SELECT ALL - MIN ( - 2 ) AS col0 FROM tab1 WHERE - col2 NOT BETWEEN col1 - col2 * - 44 AND NULL
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-943
SELECT ( 26 ) DIV 39 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-943
SELECT ( 26 ) / 39 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT col0 DIV 27 - - 83 FROM tab0 WHERE NOT col2 NOT BETWEEN ( col0 DIV + col2 ) AND 94 * + col2
----
83
86
86

skipif mysql # not compatible
query I rowsort label-944
SELECT col0 / 27 - - 83 FROM tab0 WHERE NOT col2 NOT BETWEEN ( col0 / + col2 ) AND 94 * + col2
----
83
86
86

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

query I rowsort
SELECT ALL 43 + + col1 AS col1 FROM tab0
----
124
44
64

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) <> - col1 * col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-948
SELECT ALL + 81 / COUNT ( * ) FROM tab1
----
27

onlyif mysql # aggregate syntax: 
query I rowsort label-949
SELECT ALL SUM( DISTINCT 81 ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-949
SELECT ALL SUM ( DISTINCT 81 ) FROM tab1
----
81

query I rowsort
SELECT + col2 FROM tab1 WHERE - 7 * + col2 + col0 / col0 BETWEEN NULL AND ( NULL )
----

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

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

query I rowsort
SELECT ALL 44 AS col1 FROM tab2 AS cor0 WHERE NOT ( + 86 ) * - col0 IS NULL
----
44
44
44

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

query I rowsort
SELECT ALL + 18 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-956
SELECT ALL - CAST ( - 12 AS INTEGER ) FROM tab0
----
12
12
12

query I rowsort
SELECT DISTINCT - 66 AS col2 FROM tab1 WHERE NOT + 7 NOT IN ( - col2 )
----

query I rowsort
SELECT 67 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

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

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

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT col2 + col2 * - 20 BETWEEN ( col1 ) AND NULL
----
14
47
5

query I rowsort
SELECT ALL - 65 + + col1 FROM tab1 cor0
----
-18
-51
-60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-963
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * 67 + 55 BETWEEN ( - col2 / - col2 ) AND col0 + + 76 * - col1
----

skipif mysql # not compatible
query I rowsort label-963
SELECT ALL col1 AS col0 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * 67 + 55 BETWEEN ( - col2 / - col2 ) AND col0 + + 76 * - col1
----

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

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

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

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

query I rowsort
SELECT ALL + + col0 + + ( - 72 ) * col2 FROM tab0 AS cor0
----
-3369
-633
-7031

onlyif mysql # aggregate syntax: 
query I rowsort label-968
SELECT + SUM( col1 ) * 89 AS col2 FROM tab2 AS cor0
----
17355

skipif mysql # not compatible
query I rowsort label-968
SELECT + SUM ( col1 ) * 89 AS col2 FROM tab2 AS cor0
----
17355

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL 13 * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 11 + - 84 NOT BETWEEN + ( col0 ) - 51 * 41 AND col2
----
0

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL 13 * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 11 + - 84 NOT BETWEEN + ( col0 ) - 51 * 41 AND col2
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + col2 NOT IN ( 23 + + col0 * col2 )
----

query I rowsort
SELECT DISTINCT + 91 + col2 FROM tab0 cor0
----
101
138
190

query I rowsort
SELECT ALL - 12 * - - col2 FROM tab1
----
-1152
-708
-816

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-973
SELECT - CAST( 26 AS SIGNED ) + - col1 FROM tab0
----
-107
-27
-47

skipif mysql # not compatible
query I rowsort label-973
SELECT - CAST ( 26 AS INTEGER ) + - col1 FROM tab0
----
-107
-27
-47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-975
SELECT ALL + AVG ( + - 84 ) * - 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-975
SELECT ALL + AVG ( + - 84 ) * - CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-976
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE - col0 + - col2 / - col1 BETWEEN 40 * 67 AND col0
----
0

skipif mysql # not compatible
query I rowsort label-976
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE - col0 + - col2 / - col1 BETWEEN 40 * 67 AND col0
----
0

query I rowsort
SELECT col1 + col2 * ( + 68 ) AS col1 FROM tab2
----
1615
2797
4011

onlyif mysql # aggregate syntax: 
query I rowsort label-978
SELECT SUM( DISTINCT - col2 ) + SUM( col0 ) * 3 AS col1 FROM tab2
----
434

skipif mysql # not compatible
query I rowsort label-978
SELECT SUM ( DISTINCT - col2 ) + SUM ( col0 ) * 3 AS col1 FROM tab2
----
434

onlyif mysql # aggregate syntax: 
query I rowsort label-979
SELECT + COUNT( DISTINCT col1 ) + + 64 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-979
SELECT + COUNT ( DISTINCT col1 ) + + 64 FROM tab1
----
67

query I rowsort
SELECT DISTINCT col1 * + 89 AS col0 FROM tab2
----
4539
5963
6853

onlyif mysql # aggregate syntax: 
query I rowsort label-981
SELECT COUNT( * ) + + - 51 * + COUNT( * ) FROM tab0
----
-150

skipif mysql # not compatible
query I rowsort label-981
SELECT COUNT ( * ) + + - 51 * + COUNT ( * ) FROM tab0
----
-150

query I rowsort
SELECT DISTINCT - col0 * - - col2 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT col0 * - ( col0 ) AS col1 FROM tab1 AS cor0 WHERE col1 + ( col2 ) * col1 NOT BETWEEN ( col1 ) AND + col0
----
-2601
-7225
-8281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-986
SELECT DISTINCT - ( 97 ) + COUNT( * ) * 41 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-986
SELECT DISTINCT - ( 97 ) + COUNT ( * ) * 41 FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-987
SELECT SUM( + col1 ) col0 FROM tab1 AS cor0 WHERE - col2 * - col0 IS NOT NULL
----
66

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

query I rowsort
SELECT DISTINCT col1 * - - col0 - - col0 * + col1 FROM tab0 AS cor0
----
194
2430
3654

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT + SUM( ALL 69 ) * SUM( + 70 ) FROM tab2
----
43470

skipif mysql # not compatible
query I rowsort label-989
SELECT + SUM ( ALL 69 ) * SUM ( + 70 ) FROM tab2
----
43470

query I rowsort
SELECT col0 - + + col0 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-991
SELECT + col2 * col2 FROM tab2 AS cor0 WHERE ( - 23 + ( CAST( - col2 AS SIGNED ) ) ) IN ( 82 * col1 )
----

skipif mysql # not compatible
query I rowsort label-991
SELECT + col2 * col2 FROM tab2 AS cor0 WHERE ( - 23 + ( CAST ( - col2 AS INTEGER ) ) ) IN ( 82 * col1 )
----

query I rowsort
SELECT 99 + - - 1 + - 85 FROM tab2 AS cor0
----
15
15
15

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

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

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

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

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

query I rowsort
SELECT col2 + col0 * - 38 FROM tab0 AS cor0
----
-3296
-3587
-523

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1000
SELECT COUNT( - - col0 ) DIV + + MIN( - col2 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1000
SELECT COUNT ( - - col0 ) / + + MIN ( - col2 ) AS col1 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1001
SELECT 59 * MAX( DISTINCT 82 / + col2 ) + - COUNT( * ) * MAX( ALL col2 ) AS col2 FROM tab2 WHERE NOT CAST( - col1 AS SIGNED ) > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1001
SELECT 59 * MAX ( DISTINCT 82 / + col2 ) + - COUNT ( * ) * MAX ( ALL col2 ) AS col2 FROM tab2 WHERE NOT CAST ( - col1 AS INTEGER ) > NULL
----
NULL

query I rowsort
SELECT ALL + col2 * 60 FROM tab2
----
1380
2400
3480

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT + 30 + MAX( col0 + col1 ) FROM tab2 WHERE NOT ( 17 ) <= + 20 + col2 * + 41 AND NOT 92 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1003
SELECT + 30 + MAX ( col0 + col1 ) FROM tab2 WHERE NOT ( 17 ) <= + 20 + col2 * + 41 AND NOT 92 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1004
SELECT ALL + MIN( + 30 ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-1004
SELECT ALL + MIN ( + 30 ) FROM tab1
----
30

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

query I rowsort
SELECT ALL 57 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND - ( 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1007
SELECT DISTINCT + MIN( - - col0 ) col2 FROM tab0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1007
SELECT DISTINCT + MIN ( - - col0 ) col2 FROM tab0
----
15

query I rowsort
SELECT DISTINCT + 19 AS col1 FROM tab2 WHERE ( 36 + - col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - - 33 FROM tab2
----
1518
2112
2475

query I rowsort
SELECT ALL col0 * + + col0 FROM tab1
----
2601
7225
8281

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1011
SELECT + + 93 * 71 + - + COUNT( * ) AS col2, 70 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
6600
NULL

skipif mysql # not compatible
query II rowsort label-1011
SELECT + + 93 * 71 + - + COUNT ( * ) AS col2, 70 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
6600
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1013
SELECT ALL + - col1 + - + col1 * CAST( NULL AS SIGNED ) / - 60 + + 78 + + 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1013
SELECT ALL + - col1 + - + col1 * CAST ( NULL AS INTEGER ) / - 60 + + 78 + + 54 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1015
SELECT ALL + AVG ( ALL col2 ) AS col1 FROM tab0 cor0 WHERE ( col2 * - - CAST( NULL AS DECIMAL ) ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1015
SELECT ALL + AVG ( ALL col2 ) AS col1 FROM tab0 cor0 WHERE ( col2 * - - CAST ( NULL AS REAL ) ) = NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + - - 72 + + - col2 * ( - - 3 ) * - col1 * - col2 FROM tab2 AS cor0
----
-369451
-676025
-80814

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 + - 45 col1 FROM tab1 cor0
----
-31
-40
2

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

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

query I rowsort
SELECT DISTINCT 96 * + col1 + ( - + 86 ) FROM tab0 AS cor0
----
10
1930
7690

query II rowsort
SELECT ALL 23 * + col1, - 47 * + + col2 AS col0 FROM tab2
----
1173
-1081
1541
-2726
1771
-1880

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

query I rowsort
SELECT DISTINCT + 89 * - - col1 + + + col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * - 71 AS col0 FROM tab2
----
3266
4544
5325

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1027
SELECT DISTINCT COUNT( * ) * - 99 AS col2 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-1027
SELECT DISTINCT COUNT ( * ) * - 99 AS col2 FROM tab0
----
-297

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

query I rowsort
SELECT 58 - - 14 AS col2 FROM tab2 WHERE ( NOT + col2 > NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1030
SELECT ALL - 7 DIV col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1030
SELECT ALL - 7 / col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT + 63 + - + col2 FROM tab1
----
-33
-5
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1032
SELECT - 98 * - - CAST( - + 29 AS SIGNED ) + col1 * - + 99 * + + col1 AS col1 FROM tab0 AS cor0
----
-40817
-646697
2743

skipif mysql # not compatible
query I rowsort label-1032
SELECT - 98 * - - CAST ( - + 29 AS INTEGER ) + col1 * - + 99 * + + col1 AS col1 FROM tab0 AS cor0
----
-40817
-646697
2743

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1034
SELECT ALL - COUNT( * ) - - + MAX( - col0 ) * - 10 FROM tab0
----
147

skipif mysql # not compatible
query I rowsort label-1034
SELECT ALL - COUNT ( * ) - - + MAX ( - col0 ) * - 10 FROM tab0
----
147

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

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

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

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

query I rowsort
SELECT - + 6 * + - 38 AS col0 FROM tab2 cor0
----
228
228
228

onlyif mysql # DIV for integer division: 
query II rowsort label-1040
SELECT ALL + col1 DIV + ( 1 ), col1 FROM tab1
----
14
14
47
47
5
5

skipif mysql # not compatible
query II rowsort label-1040
SELECT ALL + col1 / + ( 1 ), col1 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1041
SELECT - 1 * MAX( ALL col2 ) FROM tab2 WHERE NOT + col1 * - ( + + col2 ) * + - 53 + + - col1 BETWEEN 8 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1041
SELECT - 1 * MAX ( ALL col2 ) FROM tab2 WHERE NOT + col1 * - ( + + col2 ) * + - 53 + + - col1 BETWEEN 8 AND NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1042
SELECT + CAST( NULL AS DECIMAL ) + - + col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-1042
SELECT + CAST ( NULL AS REAL ) + - + col2 FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT col2, + col1 * - col2 FROM tab0
----
10
-210
47
-3807
99
-99

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1047
SELECT - COUNT( * ), - SUM( DISTINCT - col2 ) AS col1 FROM tab1
----
-3
223

skipif mysql # not compatible
query II rowsort label-1047
SELECT - COUNT ( * ), - SUM ( DISTINCT - col2 ) AS col1 FROM tab1
----
-3
223

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1049
SELECT DISTINCT + CAST( + - AVG ( DISTINCT - col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1049
SELECT DISTINCT + CAST ( + - AVG ( DISTINCT - col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-1050
SELECT DISTINCT + - MAX( col0 ) FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1050
SELECT DISTINCT + - MAX ( col0 ) FROM tab0 AS cor0 WHERE NOT col2 <> NULL
----
NULL

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

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

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

query II rowsort
SELECT + 27 AS col2, 67 + - col0 FROM tab2 AS cor0
----
27
-8
27
21
27
3

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1056
SELECT - COUNT( * ) * + - ( - COUNT( * ) ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1056
SELECT - COUNT ( * ) * + - ( - COUNT ( * ) ) FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT ( - MAX( - 29 ) ) * COUNT( * ) + + 85 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
346

skipif mysql # not compatible
query I rowsort label-1057
SELECT ( - MAX ( - 29 ) ) * COUNT ( * ) + + 85 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
346

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > ( NULL )
----

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

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

query I rowsort
SELECT ALL - 7 + 60 FROM tab2 AS cor0 WHERE NULL NOT IN ( col0 / + - col0 / 77 / col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1063
SELECT DISTINCT - SUM( + - col0 ) + COUNT( * ) FROM tab0 AS cor0
----
202

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - SUM ( + - col0 ) + COUNT ( * ) FROM tab0 AS cor0
----
202

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1064
SELECT ALL - col0 + - - 44 * 21 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NOT NULL
----
849
860
878

skipif mysql # not compatible
query I rowsort label-1064
SELECT ALL - col0 + - - 44 * 21 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS REAL ) IS NOT NULL
----
849
860
878

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT ALL - SUM( ALL + 59 ) + - 6 FROM tab2 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-1065
SELECT ALL - SUM ( ALL + 59 ) + - 6 FROM tab2 cor0
----
-183

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

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

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

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

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

query I rowsort
SELECT ALL ( - + col2 ) * + - 73 * - col2 AS col2 FROM tab2
----
-116800
-245572
-38617

query I rowsort
SELECT + col0 * + - 70 FROM tab0
----
-1050
-6090
-6790

query I rowsort
SELECT DISTINCT col2 + + + col2 + - col1 - + - col2 - col0 * col0 FROM tab2 cor0
----
-2098
-4053
-5518

onlyif mysql # aggregate syntax: 
query II rowsort label-1072
SELECT ALL 30 * ( - MIN( - col0 ) ) + - COUNT( * ) col2, + 39 AS col1 FROM tab1 AS cor0
----
2727
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1072
SELECT ALL 30 * ( - MIN ( - col0 ) ) + - COUNT ( * ) col2, + 39 AS col1 FROM tab1 AS cor0
----
2727
39

query I rowsort
SELECT + 53 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to fede6033dee346dbd272085c05724fda

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1075
SELECT + - MAX( - - col0 ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1075
SELECT + - MAX ( - - col0 ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1076
SELECT DISTINCT 78 DIV - + MAX( - col0 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT 78 / - + MAX ( - col0 ) AS col0 FROM tab2 AS cor0
----
1

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

skipif mysql # not compatible
query I rowsort label-1077
SELECT - col1 / + 91 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + + col1 * - + 64 FROM tab2 AS cor0
----
-3264
-4288
-4928

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 79, 23 col1 FROM tab0 AS cor0
----
-79
23

onlyif mysql # DIV for integer division: 
query I rowsort label-1083
SELECT - ( - col0 ) DIV - + col1 FROM tab0 AS cor0
----
-4
-97
0

skipif mysql # not compatible
query I rowsort label-1083
SELECT - ( - col0 ) / - + col1 FROM tab0 AS cor0
----
-4
-97
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1084
SELECT + SUM( ALL - col1 ) * MAX( + col2 ) FROM tab1
----
-6336

skipif mysql # not compatible
query I rowsort label-1084
SELECT + SUM ( ALL - col1 ) * MAX ( + col2 ) FROM tab1
----
-6336

onlyif mysql # aggregate syntax: 
query I rowsort label-1085
SELECT ALL SUM( - 26 ) AS col2 FROM tab2 WHERE + - col0 * - col1 + + + col1 + + col1 + + 81 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1085
SELECT ALL SUM ( - 26 ) AS col2 FROM tab2 WHERE + - col0 * - col1 + + + col1 + + col1 + + 81 IS NULL
----
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1088
SELECT + MAX( DISTINCT - - ( + + col1 ) ) FROM tab0 AS cor0 WHERE NOT + 57 < 41
----
81

skipif mysql # not compatible
query I rowsort label-1088
SELECT + MAX ( DISTINCT - - ( + + col1 ) ) FROM tab0 AS cor0 WHERE NOT + 57 < 41
----
81

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT DISTINCT + + 87 + + - MAX( - - 20 ) + + 71 AS col1 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-1094
SELECT DISTINCT + + 87 + + - MAX ( - - 20 ) + + 71 AS col1 FROM tab2 AS cor0
----
138

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1097
SELECT 9 DIV - col0 * - 52 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1097
SELECT 9 / - col0 * - 52 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + 78 AS col1 FROM tab1 AS cor0 WHERE col2 < 83 / col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1100
SELECT ALL + + ( + COUNT( * ) ) + - + 90 + + COUNT( * ) * - COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1100
SELECT ALL + + ( + COUNT ( * ) ) + - + 90 + + COUNT ( * ) * - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1101
SELECT - COUNT( * ) DIV - - 63 FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1101
SELECT - COUNT ( * ) / - - 63 FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT DISTINCT + col2 + - 82 * - 5 FROM tab0 AS cor0
----
420
457
509

query I rowsort
SELECT + 1 FROM tab2 AS cor0 WHERE + 93 IS NOT NULL
----
1
1
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1105
SELECT DISTINCT + ( + - col2 ) + - col0 DIV - + col1 AS col1 FROM tab1
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-1105
SELECT DISTINCT + ( + - col2 ) + - col0 / - + col1 AS col1 FROM tab1
----
-42
-67
-93

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

query I rowsort
SELECT + 71 + + col1 * - col0 FROM tab2
----
-2275
-4857
-4954

query II rowsort
SELECT DISTINCT - ( + col0 ) - + 88 * col0, col1 AS col2 FROM tab0
----
-1335
81
-7743
21
-8633
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 * - col0 * 46 * + 97 * - - col0 NOT IN ( + 71 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 * + - col1 * - col2 + + 28 + col2 FROM tab1
----
-1388
-150116
-18692

query II rowsort
SELECT DISTINCT 24 AS col2, - 63 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
24
-63

query I rowsort
SELECT DISTINCT - 61 * - 74 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
4514

query I rowsort
SELECT - - ( + + 62 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 51dd2771d516ceb935483eded78a5fa0

query I rowsort
SELECT ALL + 9 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1115
SELECT - - COUNT ( - + ( + + 93 ) ) col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT 41, + col0 + + ( - col1 ) AS col0 FROM tab0 AS cor0
----
41
-66
41
66
41
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1117
SELECT COUNT( * ) DIV + 69 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1117
SELECT COUNT ( * ) / + 69 AS col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----
0

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

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

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

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

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

query I rowsort
SELECT + 76 * + col0 AS col1 FROM tab1
----
3876
6460
6916

query I rowsort
SELECT + 43 * - 30 AS col0 FROM tab2
----
-1290
-1290
-1290

onlyif mysql # aggregate syntax: 
query II rowsort label-1124
SELECT - 11 AS col2, - 43 * + COUNT( * ) - + - COUNT( * ) FROM tab1
----
-11
-126

skipif mysql # not compatible
query II rowsort label-1124
SELECT - 11 AS col2, - 43 * + COUNT ( * ) - + - COUNT ( * ) FROM tab1
----
-11
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-1125
SELECT + 61 DIV - 40 col2 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1125
SELECT + 61 / - 40 col2 FROM tab1
----
-1
-1
-1

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

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

query II rowsort
SELECT 16 AS col1, 83 FROM tab1
----
16
83
16
83
16
83

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT COUNT( ALL + - 93 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1128
SELECT COUNT ( ALL + - 93 ) FROM tab2
----
3

query I rowsort
SELECT - col2 * - - ( 71 ) + + col2 AS col1 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1130
SELECT 9 + 25 AS col1, - CAST( - - 31 AS SIGNED ) FROM tab1
----
34
-31
34
-31
34
-31

skipif mysql # not compatible
query II rowsort label-1130
SELECT 9 + 25 AS col1, - CAST ( - - 31 AS INTEGER ) FROM tab1
----
34
-31
34
-31
34
-31

query II rowsort
SELECT 27 + - + col0, - col2 AS col0 FROM tab2
----
-19
-23
-37
-40
-48
-58

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

skipif mysql # not compatible
query I rowsort label-1132
SELECT ALL - col2 * CAST ( NULL AS INTEGER ) * col2 * + col1 + - 78 FROM tab0 cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - col2 + 15 FROM tab1 AS cor0
----
-44
-53
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1135
SELECT DISTINCT COUNT( * ) + 48 * - SUM( col1 ) AS col0 FROM tab0
----
-4941

skipif mysql # not compatible
query I rowsort label-1135
SELECT DISTINCT COUNT ( * ) + 48 * - SUM ( col1 ) AS col0 FROM tab0
----
-4941

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1137
SELECT DISTINCT + SUM( + - col2 ) * - + 85 * + MIN( col2 ) AS col2 FROM tab0
----
132600

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT + SUM ( + - col2 ) * - + 85 * + MIN ( col2 ) AS col2 FROM tab0
----
132600

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 + - col1 col1 FROM tab1 AS cor0
----
50
83
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + - + col1 col2 FROM tab1 cor0
----
-18
15
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT DISTINCT COUNT( * ) + - - MAX( ALL - - col2 ) AS col2 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-1141
SELECT DISTINCT COUNT ( * ) + - - MAX ( ALL - - col2 ) AS col2 FROM tab0
----
102

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1143
SELECT ( + 20 ) * 58 DIV - col0 + + col0 * + col0 + + col0 FROM tab0
----
163
7643
9495

skipif mysql # not compatible
query I rowsort label-1143
SELECT ( + 20 ) * 58 / - col0 + + col0 * + col0 + + col0 FROM tab0
----
163
7643
9495

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1144
SELECT DISTINCT + col0 AS col1, 12 * + col2 + - 44 * + + 70 + + - CAST( NULL AS SIGNED ) - - 82 FROM tab0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-1144
SELECT DISTINCT + col0 AS col1, 12 * + col2 + - 44 * + + 70 + + - CAST ( NULL AS INTEGER ) - - 82 FROM tab0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT - 21 FROM tab0 WHERE NULL >= + col0
----

query I rowsort
SELECT + 89 - + col1 FROM tab0 AS cor0
----
68
8
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT DISTINCT 84 * - + SUM( - 65 ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT DISTINCT 84 * - + SUM ( - 65 ) FROM tab1 AS cor0 WHERE NULL <= NULL
----
NULL

query II rowsort
SELECT + + col0, - col1 * + col1 FROM tab0 AS cor0
----
15
-6561
87
-441
97
-1

query I rowsort
SELECT ALL - 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to a95bfa539191d3f72f6548147d7efb9e

query II rowsort
SELECT DISTINCT ( 49 ), + 19 AS col0 FROM tab0
----
49
19

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1153
SELECT DISTINCT + + CAST( COUNT( * ) AS SIGNED ), 50 * + SUM( + col0 ) AS col2 FROM tab2 AS cor0
----
3
9250

skipif mysql # not compatible
query II rowsort label-1153
SELECT DISTINCT + + CAST ( COUNT ( * ) AS INTEGER ), 50 * + SUM ( + col0 ) AS col2 FROM tab2 AS cor0
----
3
9250

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

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

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

query I rowsort
SELECT - col2 * - + col1 + col1 * 77 * + - col0 AS col0 FROM tab1 AS cor0
----
-32430
-326133
-53634

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1159
SELECT + MAX( + 15 ) AS col1 FROM tab2 cor0 WHERE NOT CAST( NULL AS SIGNED ) + + col1 - + CAST( - col1 AS SIGNED ) IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-1159
SELECT + MAX ( + 15 ) AS col1 FROM tab2 cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + col1 - + CAST ( - col1 AS INTEGER ) IS NOT NULL
----
15

query II rowsort
SELECT + col0 * + col0 * + + col0 * 95 AS col1, + ( + 94 ) AS col1 FROM tab2 cor0
----
24903680
94
40078125
94
9246920
94

query I rowsort
SELECT ALL - 53 * + 46 AS col0 FROM tab1
----
-2438
-2438
-2438

query II rowsort
SELECT DISTINCT - AVG ( ALL + - 74 ) AS col2, 86 FROM tab0 WHERE 58 IS NULL
----
NULL
86

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 <= col2
----
87
21
10

query I rowsort
SELECT ALL - col1 * - 94 FROM tab2
----
4794
6298
7238

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

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

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

skipif mysql # not compatible
query I rowsort label-1166
SELECT + ( + ( MIN ( ALL + 89 ) ) ) FROM tab0 cor0
----
89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1167
SELECT + + 79 + - 40 + + col2 * col1 + + + 72 * CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1168
SELECT ALL + - col2 DIV - col2 + 92 + + col2 * + - ( + - col1 ) FROM tab1 AS cor0
----
1437
3289
388

skipif mysql # not compatible
query I rowsort label-1168
SELECT ALL + - col2 / - col2 + 92 + + col2 * + - ( + - col1 ) FROM tab1 AS cor0
----
1437
3289
388

query I rowsort
SELECT ALL - + col0 * col0 FROM tab0 WHERE + - 17 IS NOT NULL
----
-225
-7569
-9409

query I rowsort
SELECT DISTINCT col0 * - 25 FROM tab2
----
-1150
-1600
-1875

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1171
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE - CAST( NULL AS DECIMAL ) IS NULL
----
15
87
97

skipif mysql # not compatible
query I rowsort label-1171
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE - CAST ( NULL AS REAL ) IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1172
SELECT - COUNT( + col1 ) - + - 1 + - + 84 * + + 67 FROM tab1 AS cor0
----
-5630

skipif mysql # not compatible
query I rowsort label-1172
SELECT - COUNT ( + col1 ) - + - 1 + - + 84 * + + 67 FROM tab1 AS cor0
----
-5630

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 71 + + - col1 col1 FROM tab2 AS cor0
----
-122
-138
-148

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - 74 * 8 / col2 * + col0 * - col2
----

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

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

query I rowsort
SELECT 77 + - col0 + - 7 AS col2 FROM tab0
----
-17
-27
55

onlyif mysql # DIV for integer division: 
query I rowsort label-1177
SELECT + 91 * ( 13 ) DIV + col0 FROM tab1
----
13
13
23

skipif mysql # not compatible
query I rowsort label-1177
SELECT + 91 * ( 13 ) / + col0 FROM tab1
----
13
13
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT - COUNT( * ) * - SUM( - col1 ) FROM tab2 cor0
----
-585

skipif mysql # not compatible
query I rowsort label-1178
SELECT - COUNT ( * ) * - SUM ( - col1 ) FROM tab2 cor0
----
-585

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 66 col1 FROM tab0 WHERE col1 <= NULL OR NOT + + 18 IS NULL
----
66
66
66

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT ALL - SUM( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL - SUM ( ALL - col1 ) AS col2 FROM tab2 AS cor0
----
195

query II rowsort
SELECT DISTINCT - col2 AS col1, col2 + - + col1 FROM tab0 AS cor0
----
-10
-11
-47
-34
-99
98

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

skipif mysql # not compatible
query I rowsort label-1184
SELECT + SUM ( ALL + col1 ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-1185
SELECT 37 * - SUM( - 93 ) FROM tab2
----
10323

skipif mysql # not compatible
query I rowsort label-1185
SELECT 37 * - SUM ( - 93 ) FROM tab2
----
10323

onlyif mysql # DIV for integer division: 
query I rowsort label-1186
SELECT col2 + - + col2 DIV 83 + 60 FROM tab2
----
100
118
83

skipif mysql # not compatible
query I rowsort label-1186
SELECT col2 + - + col2 / 83 + 60 FROM tab2
----
100
118
83

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

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

query I rowsort
SELECT DISTINCT - col1 * + + 51 FROM tab1
----
-2397
-255
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 20 + - 80 * - 64 col1 FROM tab1, tab0 cor0
----
9 values hashing to 3bef5dc0c74c7c960e4bc22d2c2d2f71

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( col1 + 63 ) BETWEEN NULL AND - 89
----

query I rowsort
SELECT ALL 2 * + col0 FROM tab1
----
102
170
182

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1194
SELECT DISTINCT col0 DIV 85 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1194
SELECT DISTINCT col0 / 85 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1195
SELECT ALL col0 DIV col0 * - col1 * - col2 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1195
SELECT ALL col0 / col0 * - col1 * - col2 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - col1 * + + col1 FROM tab2
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - col0 + - 8 AS col2 FROM tab0
----
-105
-23
-95

query II rowsort
SELECT - 56 AS col0, col1 - 14 AS col2 FROM tab0 AS cor0 WHERE ( NOT col1 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + + col0 + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1219
3144
3961

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 54 + + ( col1 ) col2 FROM tab1 AS cor0
----
101
59
68

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

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

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

query I rowsort
SELECT 90 + + 88 AS col2 FROM tab2 AS cor0
----
178
178
178

query I rowsort
SELECT ALL 84 + + col1 AS col0 FROM tab2 AS cor0
----
135
151
161

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

query I rowsort
SELECT DISTINCT + + col0 * col1 + + 23 AS col1 FROM tab1 AS cor0
----
4300
448
737

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT ALL COUNT( * ) + - SUM( col1 ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-1208
SELECT ALL COUNT ( * ) + - SUM ( col1 ) FROM tab2
----
-192

query III rowsort
SELECT ALL * FROM tab2 WHERE 33 IS NULL
----

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

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

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

query II rowsort
SELECT col0, - col2 + - col1 AS col1 FROM tab2
----
46
-74
64
-117
75
-125

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

skipif mysql # not compatible
query I rowsort label-1213
SELECT DISTINCT ( + COUNT ( * ) ) / + - 11 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1214
SELECT col0 * + col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) >= + 59
----

skipif mysql # not compatible
query I rowsort label-1214
SELECT col0 * + col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) >= + 59
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1215
SELECT ALL + 45 FROM tab0 AS cor0 WHERE col1 * - CAST( - 46 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1215
SELECT ALL + 45 FROM tab0 AS cor0 WHERE col1 * - CAST ( - 46 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 55 col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query I rowsort
SELECT DISTINCT 27 * + 36 FROM tab0
----
972

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - col0 * + col0 * + col1 IS NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1221
SELECT + col1 col0 FROM tab0 AS cor0 WHERE NOT NULL = CAST ( NULL AS REAL )
----

query I rowsort
SELECT + col0 * - 51 - + col2 AS col0 FROM tab1 cor0
----
-2697
-4394
-4709

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1223
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( - col2 AS SIGNED ) = - 57 - - col2 * col2 + - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1223
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) = - 57 - - col2 * col2 + - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 WHERE NOT ( - - 39 + - 82 + + col2 + col1 + col0 ) IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1226
SELECT ALL 57 DIV - COUNT( * ) + - 28 AS col1 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL 57 / - COUNT ( * ) + - 28 AS col1 FROM tab1
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1227
SELECT DISTINCT ( - + CAST( - - ( + col0 ) AS SIGNED ) ) * - - col0 AS col1 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-1227
SELECT DISTINCT ( - + CAST ( - - ( + col0 ) AS INTEGER ) ) * - - col0 AS col1 FROM tab0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1228
SELECT - CAST( + - col1 AS SIGNED ) * col1 + 68 * - col1 * + - 17 + + 52 FROM tab1
----
16432
56593
5857

skipif mysql # not compatible
query I rowsort label-1228
SELECT - CAST ( + - col1 AS INTEGER ) * col1 + 68 * - col1 * + - 17 + + 52 FROM tab1
----
16432
56593
5857

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1230
SELECT - COUNT( * ) * + SUM( - 81 ) FROM tab0 WHERE NULL IS NULL
----
729

skipif mysql # not compatible
query I rowsort label-1230
SELECT - COUNT ( * ) * + SUM ( - 81 ) FROM tab0 WHERE NULL IS NULL
----
729

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

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE - col1 IS NOT NULL
----
46
64
75

query II rowsort
SELECT ALL - 29, - 27 * - + col2 AS col1 FROM tab2
----
-29
1080
-29
1566
-29
621

onlyif mysql # DIV for integer division: 
query I rowsort label-1234
SELECT DISTINCT - - 35 DIV + + col1 + col1 FROM tab0 AS cor0
----
22
36
81

skipif mysql # not compatible
query I rowsort label-1234
SELECT DISTINCT - - 35 / + + col1 + col1 FROM tab0 AS cor0
----
22
36
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT ALL + - MIN( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1235
SELECT ALL + - MIN ( col0 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 >= NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + 25 + 71 - - col1 col0 FROM tab2 AS cor0
----
101
109
88

query I rowsort
SELECT DISTINCT + + 65 * - col2 + - 96 AS col2 FROM tab1 AS cor0
----
-3931
-4516
-6336

query I rowsort
SELECT - 59 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1e6537c922fa953e0fd2f59430803703

query I rowsort
SELECT DISTINCT 99 + + col1 FROM tab2
----
150
166
176

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

query I rowsort
SELECT - ( 95 ) AS col2 FROM tab2
----
-95
-95
-95

query II rowsort
SELECT + col0 * - col1 AS col1, + 25 AS col0 FROM tab1 AS cor0
----
-425
25
-4277
25
-714
25

query I rowsort
SELECT col2 - - 0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 * col1 * - 17 + 74 AS col2 FROM tab2 cor0
----
-39808
-83702
-85351

query I rowsort
SELECT ALL + 7 * + 7 AS col0 FROM tab1
----
49
49
49

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1248
SELECT + col2 / col0 col1 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT ALL - 42 * 67 AS col1 FROM tab0
----
-2814
-2814
-2814

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

query I rowsort
SELECT ALL - 61 * + col1 FROM tab1 cor0
----
-2867
-305
-854

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 0 ) NOT IN ( col0 + 81, - col0, 27 * col2 + ( + 6 ) + ( + 79 ) + - - ( - 93 ) * + 28 * col2 )
----

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

query II rowsort
SELECT + 39, - col2 + - - col2 AS col0 FROM tab0
----
39
0
39
0
39
0

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

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

query I rowsort
SELECT DISTINCT - col0 + + 86 AS col0 FROM tab2 AS cor0
----
11
22
40

query II rowsort
SELECT DISTINCT - col0, - col1 AS col0 FROM tab0 cor0
----
-15
-81
-87
-21
-97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1260
SELECT ALL col1 + 67, - col0 * + CAST( - col0 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
114
8281
72
7225
81
2601

skipif mysql # not compatible
query II rowsort label-1260
SELECT ALL col1 + 67, - col0 * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
114
8281
72
7225
81
2601

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

skipif mysql # not compatible
query I rowsort label-1261
SELECT DISTINCT + 74 + + COUNT ( * ) / 84 AS col1 FROM tab0
----
74

query I rowsort
SELECT - col2 * + + col2 + + - col0 AS col0 FROM tab0
----
-187
-2224
-9898

onlyif mysql # aggregate syntax: 
query I rowsort label-1263
SELECT 88 * + 95 + + + COUNT( * ) FROM tab2
----
8363

skipif mysql # not compatible
query I rowsort label-1263
SELECT 88 * + 95 + + + COUNT ( * ) FROM tab2
----
8363

onlyif mysql # aggregate syntax: 
query II rowsort label-1264
SELECT DISTINCT - 94 AS col1, COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL <= - - col0 - + + col2
----
-94
0

skipif mysql # not compatible
query II rowsort label-1264
SELECT DISTINCT - 94 AS col1, COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <= - - col0 - + + col2
----
-94
0

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

skipif mysql # not compatible
query I rowsort label-1265
SELECT - COUNT ( * ) + + 58 AS col2 FROM tab0
----
55

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

skipif mysql # not compatible
query III rowsort label-1266
SELECT * FROM tab1 WHERE NULL <> + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1267
SELECT DISTINCT 43 + - CAST( - col0 AS SIGNED ) + + col0 FROM tab0
----
217
237
73

skipif mysql # not compatible
query I rowsort label-1267
SELECT DISTINCT 43 + - CAST ( - col0 AS INTEGER ) + + col0 FROM tab0
----
217
237
73

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

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

query I rowsort
SELECT ALL + 47 - col0 AS col0 FROM tab0 cor0
----
-40
-50
32

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

query I rowsort
SELECT DISTINCT - 58 * - + 16 AS col1 FROM tab1 AS cor0
----
928

query I rowsort
SELECT ALL col2 * col2 + + col0 AS col0 FROM tab2 cor0
----
1664
3439
575

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1273
SELECT + - SUM( DISTINCT - col1 ) DIV COUNT( ALL - 1 ) FROM tab2 cor0
----
65

skipif mysql # not compatible
query I rowsort label-1273
SELECT + - SUM ( DISTINCT - col1 ) / COUNT ( ALL - 1 ) FROM tab2 cor0
----
65

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

query I rowsort
SELECT DISTINCT - 48 AS col2 FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1276
SELECT - 42 / + - CAST( NULL AS SIGNED ) * 91 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1276
SELECT - 42 / + - CAST ( NULL AS INTEGER ) * 91 AS col1 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1278
SELECT DISTINCT COUNT( * ) * - SUM( ALL col2 ) AS col1 FROM tab1
----
-669

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT COUNT ( * ) * - SUM ( ALL col2 ) AS col1 FROM tab1
----
-669

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * col1 col0 FROM tab0
----
-147
-567
-7

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1281
SELECT CAST( NULL AS SIGNED ) * MIN( ALL col2 ) AS col2 FROM tab2 AS cor0
----
NULL

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

query I rowsort
SELECT DISTINCT - col2 * 91 AS col2 FROM tab2 AS cor0
----
-2093
-3640
-5278

query II rowsort
SELECT ALL + + 31 AS col0, col1 FROM tab2 AS cor0
----
31
51
31
67
31
77

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

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

query I rowsort
SELECT DISTINCT 36 + + 42 FROM tab1 AS cor0
----
78

query I rowsort
SELECT DISTINCT + + col2 * + 22 + col1 AS col0 FROM tab1 AS cor0
----
1303
1543
2126

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1287
SELECT ALL 44 + + - CAST( NULL AS SIGNED ) - + MAX( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1287
SELECT ALL 44 + + - CAST ( NULL AS INTEGER ) - + MAX ( ALL + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT DISTINCT + MIN( col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1288
SELECT DISTINCT + MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
23

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1290
SELECT + 29 * + CAST( + col1 AS SIGNED ), 14 col1 FROM tab2 cor0
----
1479
14
1943
14
2233
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1290
SELECT + 29 * + CAST ( + col1 AS INTEGER ), 14 col1 FROM tab2 cor0
----
1479
14
1943
14
2233
14

query I rowsort
SELECT ALL - + col0 * - col2 AS col2 FROM tab0 WHERE NOT - col0 NOT IN ( col2, - col0 / - col1 * - col1 )
----
9603

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

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

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

skipif mysql # not compatible
query I rowsort label-1293
SELECT ALL CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab2
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT - col1 * + 90 + 19 AS col2 FROM tab0
----
-1871
-71
-7271

query I rowsort
SELECT - 5 + + - col1 FROM tab0
----
-26
-6
-86

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * ( - col0 ), col1 col0 FROM tab0 AS cor0 WHERE NOT ( - - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1300
SELECT - 38 * - SUM( DISTINCT + col0 ) FROM tab1
----
8626

skipif mysql # not compatible
query I rowsort label-1300
SELECT - 38 * - SUM ( DISTINCT + col0 ) FROM tab1
----
8626

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

query I rowsort
SELECT - 11 * + - col0 + + col1 FROM tab2 AS cor0
----
557
781
892

onlyif mysql # aggregate syntax: 
query I rowsort label-1303
SELECT ALL SUM( ALL - - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1303
SELECT ALL SUM ( ALL - - col2 ) AS col2 FROM tab0 AS cor0 WHERE NULL < NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 91 AS col2 FROM tab1
----
1274
4277
455

onlyif mysql # DIV for integer division: 
query I rowsort label-1305
SELECT 51 DIV + col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-1305
SELECT 51 / + col1 FROM tab1
----
1
10
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1306
SELECT + col0 * - + CAST( NULL AS SIGNED ) col1 FROM tab0 WHERE NOT NULL <= + + 48 - - 62 + 23
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1306
SELECT + col0 * - + CAST ( NULL AS INTEGER ) col1 FROM tab0 WHERE NOT NULL <= + + 48 - - 62 + 23
----

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

skipif mysql # not compatible
query I rowsort label-1307
SELECT + 4 * - COUNT ( + ( - col1 ) ) FROM tab1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT 92 DIV col1 AS col1 FROM tab1
----
1
18
6

skipif mysql # not compatible
query I rowsort label-1308
SELECT 92 / col1 AS col1 FROM tab1
----
1
18
6

query II rowsort
SELECT DISTINCT - col2 - - col1 * 81, col0 AS col1 FROM tab0 WHERE NULL < - col0 + - col2 + - + 87
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <> 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT + ( - 56 ) * - - COUNT( ALL - col0 ) + + + COUNT( * ) FROM tab1
----
-165

skipif mysql # not compatible
query I rowsort label-1311
SELECT + ( - 56 ) * - - COUNT ( ALL - col0 ) + + + COUNT ( * ) FROM tab1
----
-165

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

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

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

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

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

query I rowsort
SELECT ALL + ( + 62 ) + col0 - + - col2 AS col2 FROM tab2
----
131
166
195

query I rowsort
SELECT ALL - - col0 + - + col0 AS col0 FROM tab1 cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT 13 + + COUNT( * ) + + 25 FROM tab1 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT 13 + + COUNT ( * ) + + 25 FROM tab1 AS cor0
----
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - - col1 / col2 + + 84 + + col2 * + col1 + - 61 / - 39 OR + - 86 * col2 * + 35 <> + + col0
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1320
SELECT - 98 + + col1 + - CAST( col1 AS SIGNED ) * 9 AS col0 FROM tab0 AS cor0
----
-106
-266
-746

skipif mysql # not compatible
query I rowsort label-1320
SELECT - 98 + + col1 + - CAST ( col1 AS INTEGER ) * 9 AS col0 FROM tab0 AS cor0
----
-106
-266
-746

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

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

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

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

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

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

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

query I rowsort
SELECT 50 + - col1 AS col2 FROM tab0
----
-31
29
49

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

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

query I rowsort
SELECT DISTINCT + 40 * - col0 FROM tab0
----
-3480
-3880
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-1328
SELECT col2 * - col2 * - col0 DIV + col0 FROM tab2
----
1600
3364
529

skipif mysql # not compatible
query I rowsort label-1328
SELECT col2 * - col2 * - col0 / + col0 FROM tab2
----
1600
3364
529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + + col0 col2 FROM tab0
----
225
7569
9409

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

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1332
SELECT DISTINCT + col1 * + col0 - CAST( NULL AS SIGNED ) * col1 + + col2 + + ( - col1 ) + + - 51 * - CAST( - 22 AS DECIMAL ) * + - col2 / - + col2 + - + 9 AS col2, - col0 + ( + col1 ) FROM tab0
----
NULL
-66
NULL
-96
NULL
66

skipif mysql # not compatible
query II rowsort label-1332
SELECT DISTINCT + col1 * + col0 - CAST ( NULL AS INTEGER ) * col1 + + col2 + + ( - col1 ) + + - 51 * - CAST ( - 22 AS REAL ) * + - col2 / - + col2 + - + 9 AS col2, - col0 + ( + col1 ) FROM tab0
----
NULL
-66
NULL
-96
NULL
66

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

query I rowsort
SELECT col2 * + 22 - + 82 AS col0 FROM tab2 AS cor0
----
1194
424
798

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( - col1 ) - col1 AS col0, ( + 4 ) + - + col0 + 51 * - 10 * + col0 - + col1 col0 FROM tab0 AS cor0
----
0
-44474
0
-49564
0
-7742

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1336
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0, 3 DIV - col0 col2 FROM tab0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1336
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0, 3 / - col0 col2 FROM tab0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT ALL - + 80 * - 62 * - MAX( ALL 53 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-262880

skipif mysql # not compatible
query I rowsort label-1337
SELECT ALL - + 80 * - 62 * - MAX ( ALL 53 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-262880

query I rowsort
SELECT - 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 98 * 33 >= NULL
----

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

query I rowsort
SELECT - 85 * - + col1 FROM tab0 cor0
----
1785
6885
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1342
SELECT MIN( + col0 ) DIV + COUNT( * ) + SUM( ALL - - col1 ) FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-1342
SELECT MIN ( + col0 ) / + COUNT ( * ) + SUM ( ALL - - col1 ) FROM tab2 AS cor0
----
210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1343
SELECT - 93 * - 91 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1343
SELECT - 93 * - 91 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1345
SELECT ALL CAST( + + col0 AS SIGNED ) AS col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1345
SELECT ALL CAST ( + + col0 AS INTEGER ) AS col0 FROM tab1
----
51
85
91

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1347
SELECT MIN( - 61 ) DIV + - 58 AS col2 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1347
SELECT MIN ( - 61 ) / + - 58 AS col2 FROM tab2
----
1

query I rowsort
SELECT - 69 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( + col2, - col2 )
----

query II rowsort
SELECT + 54 * + col0 AS col0, - col1 * + col1 AS col1 FROM tab2
----
2484
-2601
3456
-5929
4050
-4489

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1351
SELECT + ( + 31 ), - COUNT( * ) + MIN( - + 41 ) AS col1 FROM tab2 AS cor0
----
31
-44

skipif mysql # not compatible
query II rowsort label-1351
SELECT + ( + 31 ), - COUNT ( * ) + MIN ( - + 41 ) AS col1 FROM tab2 AS cor0
----
31
-44

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

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

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1354
SELECT ALL + COUNT ( * ) * 44 col0 FROM tab2
----
132

query II rowsort
SELECT ALL + col2 AS col1, ( + ( col0 ) ) * 97 + + col1 + - col2 FROM tab1 AS cor0
----
59
8191
68
8806
96
4865

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

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

query I rowsort
SELECT - ( - 23 ) FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL 85 + + 60 + + - 80 FROM tab1 AS cor0
----
65
65
65

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1360
SELECT DISTINCT col0 + - - col0 + col0, CAST( NULL AS SIGNED ) + + col0 AS col2 FROM tab2 AS cor0
----
138
NULL
192
NULL
225
NULL

skipif mysql # not compatible
query II rowsort label-1360
SELECT DISTINCT col0 + - - col0 + col0, CAST ( NULL AS INTEGER ) + + col0 AS col2 FROM tab2 AS cor0
----
138
NULL
192
NULL
225
NULL

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

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE - - col0 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1363
SELECT DISTINCT SUM( - - col0 ) - - ( 37 ) FROM tab2
----
222

skipif mysql # not compatible
query I rowsort label-1363
SELECT DISTINCT SUM ( - - col0 ) - - ( 37 ) FROM tab2
----
222

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1364
SELECT - 25 + - + CAST( NULL AS SIGNED ) * col0 + - 71 AS col0, - 74 + - col1 * + col2 AS col2 FROM tab1
----
NULL
-1418
NULL
-3270
NULL
-369

skipif mysql # not compatible
query II rowsort label-1364
SELECT - 25 + - + CAST ( NULL AS INTEGER ) * col0 + - 71 AS col0, - 74 + - col1 * + col2 AS col2 FROM tab1
----
NULL
-1418
NULL
-3270
NULL
-369

query I rowsort
SELECT - 75 * + - col1 * col0 + - - ( - + col1 ) + + + col2 FROM tab1 AS cor0
----
31929
320796
53632

query II rowsort
SELECT - + ( 16 ) + - ( - - col0 ) AS col2, col1 AS col1 FROM tab2 cor0
----
-62
51
-80
77
-91
67

onlyif mysql # DIV for integer division: 
query I rowsort label-1367
SELECT ALL + - col2 * - ( ( ( + col2 ) ) ) + + col1 DIV 87 + + col0 AS col1 FROM tab0 AS cor0
----
187
2224
9898

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL + - col2 * - ( ( ( + col2 ) ) ) + + col1 / 87 + + col0 AS col1 FROM tab0 AS cor0
----
187
2224
9898

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

query I rowsort
SELECT - col2 * - col2 + + 30 + - - 0 FROM tab1 AS cor0
----
3511
4654
9246

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1370
SELECT 34 * - COUNT( DISTINCT col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 / CAST( + 39 AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-1370
SELECT 34 * - COUNT ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1 / CAST ( + 39 AS INTEGER )
----
0

query II rowsort
SELECT 11 AS col0, col2 + - 28 + + col1 + - - col2 FROM tab0
----
11
13
11
147
11
171

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - col2 col2 FROM tab2
----
-1720
-2494
-989

query I rowsort
SELECT + 64 * col2 AS col0 FROM tab1
----
3776
4352
6144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1374
SELECT col0 + + + 19 * - + CAST( - col0 AS SIGNED ) FROM tab2
----
1280
1500
920

skipif mysql # not compatible
query I rowsort label-1374
SELECT col0 + + + 19 * - + CAST ( - col0 AS INTEGER ) FROM tab2
----
1280
1500
920

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

query II rowsort
SELECT - 78 AS col2, 96 + - col0 AS col0 FROM tab0 AS cor0
----
-78
-1
-78
81
-78
9

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

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

query I rowsort
SELECT ALL + col2 + - - 52 * - + 17 FROM tab2
----
-826
-844
-861

query I rowsort
SELECT + col0 + + + col0 * 97 AS col0 FROM tab2 AS cor0
----
4508
6272
7350

query I rowsort
SELECT ALL col2 + - 69 FROM tab2 cor0
----
-11
-29
-46

query I rowsort
SELECT + + 95 * + ( col1 ) FROM tab1 AS cor0
----
1330
4465
475

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT + col1 * 48 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1387
SELECT - MAX ( DISTINCT - + 10 ) col0 FROM tab1 AS cor0
----
10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) * - + col1 col2 FROM tab1 AS cor0
----
196
2209
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1391
SELECT ALL - MAX( - 46 ) col2 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1391
SELECT ALL - MAX ( - 46 ) col2 FROM tab2
----
46

query I rowsort
SELECT ALL 82 AS col1 FROM tab2 WHERE NOT 29 * + col0 < - col2
----
82
82
82

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 25 * col2 >= NULL
----

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

query III rowsort
SELECT * FROM tab0 WHERE ( - 63 * - 89 ) <= - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1396
SELECT + MIN( ALL col0 ) AS col2 FROM tab2 WHERE NOT + col0 < + 55 + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1396
SELECT + MIN ( ALL col0 ) AS col2 FROM tab2 WHERE NOT + col0 < + 55 + col1
----
NULL

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

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

query I rowsort
SELECT ALL 29 FROM tab0 WHERE NULL < NULL
----

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

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

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

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

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

query I rowsort
SELECT ALL 89 FROM tab1 WHERE NOT 93 * col2 IS NULL
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - 5 col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-56
-72
-82

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

query I rowsort
SELECT - ( ( col2 ) ) AS col0 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1406
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) / 20 BETWEEN - col1 + - col2 AND + 99
----

skipif mysql # not compatible
query III rowsort label-1406
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) / 20 BETWEEN - col1 + - col2 AND + 99
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab1 WHERE NOT + col0 IN ( + ( - col0 ) / + 76 )
----
56

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 44 ) IN ( + 7 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE - col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1410
SELECT MIN( col0 ) + + 70 col2 FROM tab2
----
116

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1410
SELECT MIN ( col0 ) + + 70 col2 FROM tab2
----
116

query I rowsort
SELECT DISTINCT - 64 FROM tab2 AS cor0 WHERE 4 * col1 >= 83
----
-64

query I rowsort
SELECT DISTINCT - 53 * + 92 + - 98 * + col0 AS col1 FROM tab1 AS cor0
----
-13206
-13794
-9874

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

query I rowsort
SELECT ALL 17 * + 77 + - 85 FROM tab0 cor0
----
1224
1224
1224

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

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

query I rowsort
SELECT ALL col1 + col2 * + col2 AS col2 FROM tab2 AS cor0
----
1677
3431
580

query I rowsort
SELECT 9 + col0 FROM tab1 AS cor0
----
100
60
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1419
SELECT DISTINCT + 14 - + MAX( - col0 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-1419
SELECT DISTINCT + 14 - + MAX ( - col0 ) FROM tab1
----
65

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1421
SELECT ALL COUNT( * ) - + 22 FROM tab2 AS cor0 CROSS JOIN tab2
----
-13

skipif mysql # not compatible
query I rowsort label-1421
SELECT ALL COUNT ( * ) - + 22 FROM tab2 AS cor0 CROSS JOIN tab2
----
-13

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 51 < col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1424
SELECT DISTINCT CAST( col2 AS SIGNED ) + + col2 FROM tab0 AS cor0
----
198
20
94

skipif mysql # not compatible
query I rowsort label-1424
SELECT DISTINCT CAST ( col2 AS INTEGER ) + + col2 FROM tab0 AS cor0
----
198
20
94

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 75 / - col1 BETWEEN ( - col0 * 59 ) AND ( NULL )
----

query I rowsort
SELECT 47 AS col2 FROM tab2 AS cor0 WHERE 41 / col1 IN ( - 11 )
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1428
SELECT ALL * FROM tab1 cor0 WHERE CAST( col0 AS SIGNED ) * + col2 <= + col0 + 60
----

skipif mysql # not compatible
query III rowsort label-1428
SELECT ALL * FROM tab1 cor0 WHERE CAST ( col0 AS INTEGER ) * + col2 <= + col0 + 60
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT IN ( - 38 )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT ALL - 77 + CAST( col2 + col0 AS SIGNED ) * - col0 AS col0 FROM tab0 AS cor0
----
-1007
-19089
-8516

skipif mysql # not compatible
query I rowsort label-1432
SELECT ALL - 77 + CAST ( col2 + col0 AS INTEGER ) * - col0 AS col0 FROM tab0 AS cor0
----
-1007
-19089
-8516

query I rowsort
SELECT - - 97 - - col0 FROM tab2 AS cor0
----
143
161
172

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE + 31 * 92 IS NOT NULL
----
10
47
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1436
SELECT ALL - 31 DIV + col2 - col2 FROM tab2 AS cor0
----
-24
-40
-58

skipif mysql # not compatible
query I rowsort label-1436
SELECT ALL - 31 / + col2 - col2 FROM tab2 AS cor0
----
-24
-40
-58

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

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 = ( 10 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT DISTINCT MIN( + 64 ) col1 FROM tab2 WHERE NOT - ( ( 89 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1439
SELECT DISTINCT MIN ( + 64 ) col1 FROM tab2 WHERE NOT - ( ( 89 ) ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 62 ) > + col0 + col2 / col0
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 + - col0 <> NULL
----

query I rowsort
SELECT - col0 * + - 15 FROM tab2
----
1125
690
960

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 70 BETWEEN ( - col1 ) AND NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1445
SELECT DISTINCT COUNT( DISTINCT + col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1445
SELECT DISTINCT COUNT ( DISTINCT + col0 ) col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - ( 98 ) FROM tab0 WHERE NOT + col0 / 8 NOT BETWEEN ( NULL ) AND ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1447
SELECT DISTINCT - 40 DIV - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1447
SELECT DISTINCT - 40 / - col0 + - col1 AS col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col0 + - + 61 * - - col0 FROM tab1 AS cor0
----
-3060
-5100
-5460

query I rowsort
SELECT ALL + 12 * - + col2 * + 72 + + 60 FROM tab2 AS cor0
----
-19812
-34500
-50052

query I rowsort
SELECT ALL - 3 + - col0 AS col1 FROM tab0 AS cor0
----
-100
-18
-90

onlyif mysql # DIV for integer division: 
query I rowsort label-1451
SELECT + + 19 DIV + col2 * ( - col2 ) + 55 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-1451
SELECT + + 19 / + col2 * ( - col2 ) + 55 FROM tab2 AS cor0
----
55
55
55

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( 34 / col2 )
----

query I rowsort
SELECT + 98 + + 42 + + col0 * - ( - col0 * col1 ) FROM tab0 AS cor0
----
159089
18365
9549

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT SUM( + col2 ) + - 31 AS col2 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-1455
SELECT SUM ( + col2 ) + - 31 AS col2 FROM tab2
----
90

query I rowsort
SELECT 25 + - col2 AS col2 FROM tab1
----
-34
-43
-71

query I rowsort
SELECT DISTINCT - 75 * + col0 AS col0 FROM tab1
----
-3825
-6375
-6825

query I rowsort
SELECT ALL 24 * + 46 FROM tab2
----
1104
1104
1104

onlyif mysql # DIV for integer division: 
query I rowsort label-1459
SELECT ALL ( + col2 ) DIV - - 90 AS col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1459
SELECT ALL ( + col2 ) / - - 90 AS col0 FROM tab1
----
0
0
1

query I rowsort
SELECT ALL - col0 + + col1 * + + 10 AS col0 FROM tab0
----
-87
123
795

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1461
SELECT + + CAST( - SUM( + 39 ) AS SIGNED ) FROM tab0 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-1461
SELECT + + CAST ( - SUM ( + 39 ) AS INTEGER ) FROM tab0 AS cor0
----
-117

query I rowsort
SELECT DISTINCT + col2 + + 83 FROM tab1 AS cor0
----
142
151
179

onlyif mysql # DIV for integer division: 
query II rowsort label-1463
SELECT col0 * + col0 AS col0, ( + + 92 ) + col2 DIV + col2 AS col1 FROM tab1 cor0
----
2601
93
7225
93
8281
93

skipif mysql # not compatible
query II rowsort label-1463
SELECT col0 * + col0 AS col0, ( + + 92 ) + col2 / + col2 AS col1 FROM tab1 cor0
----
2601
93
7225
93
8281
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1464
SELECT DISTINCT col1 * + CAST( - ( - 65 ) AS SIGNED ) - col2 AS col1 FROM tab2 AS cor0
----
3292
4297
4965

skipif mysql # not compatible
query I rowsort label-1464
SELECT DISTINCT col1 * + CAST ( - ( - 65 ) AS INTEGER ) - col2 AS col1 FROM tab2 AS cor0
----
3292
4297
4965

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

query I rowsort
SELECT DISTINCT 96 * + col1 * + 34 AS col1 FROM tab2
----
166464
218688
251328

query I rowsort
SELECT + + col2 + 83 FROM tab1 AS cor0
----
142
151
179

query I rowsort
SELECT ALL - + 49 + - col0 + 16 AS col2 FROM tab0 AS cor0
----
-120
-130
-48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 10 + col0 col1 FROM tab2 AS cor0 WHERE + col2 + - 16 IN ( + + col0 )
----

query I rowsort
SELECT DISTINCT - 37 * - col2 - + 63 + col0 FROM tab0 AS cor0
----
1691
3697
394

query I rowsort
SELECT ALL - 20 AS col2 FROM tab2 AS cor0 WHERE 37 + - ( + col0 ) < + + col2
----
-20
-20
-20

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 * + col1 >= + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1473
SELECT ALL - COUNT( DISTINCT + + 37 ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1473
SELECT ALL - COUNT ( DISTINCT + + 37 ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1474
SELECT ALL - col0 * col1 * - 68 * 53 + col0 * CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
17763072
18114450
8456042

skipif mysql # not compatible
query I rowsort label-1474
SELECT ALL - col0 * col1 * - 68 * 53 + col0 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
17763072
18114450
8456042

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, - col0 col0 FROM tab2 cor0
----
46
-46
64
-64
75
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1479
SELECT DISTINCT 15 AS col2, 32 DIV + MIN( + + col1 ) FROM tab0 AS cor0
----
15
32

skipif mysql # not compatible
query II rowsort label-1479
SELECT DISTINCT 15 AS col2, 32 / + MIN ( + + col1 ) FROM tab0 AS cor0
----
15
32

query II rowsort
SELECT - col0 AS col1, + col1 * + col1 FROM tab2
----
-46
2601
-64
5929
-75
4489

query I rowsort
SELECT + 73 FROM tab2 WHERE NOT + ( + + 98 ) + + col0 <> ( 57 - - 87 )
----
73

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

query II rowsort
SELECT - 76, 15 AS col0 FROM tab2
----
-76
15
-76
15
-76
15

query I rowsort
SELECT DISTINCT ( 47 ) * 96 - col1 AS col1 FROM tab0 WHERE ( NOT ( ( NOT ( NULL ) IS NOT NULL ) ) )
----

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

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

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

query I rowsort
SELECT DISTINCT + col2 * + 42 FROM tab2
----
1680
2436
966

query I rowsort
SELECT DISTINCT - 94 * + col1 * - 35 FROM tab1 cor0
----
154630
16450
46060

query I rowsort
SELECT DISTINCT + col2 * + col0 + + + 4 AS col1 FROM tab1 AS cor0
----
4900
5019
6192

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

skipif mysql # not compatible
query I rowsort label-1490
SELECT ALL - - 28 + CAST ( NULL AS INTEGER ) + 48 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1491
SELECT DISTINCT 24, col2 / - col0 * CAST( NULL AS SIGNED ) col1 FROM tab2
----
24
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1491
SELECT DISTINCT 24, col2 / - col0 * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
24
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1492
SELECT DISTINCT - COUNT( - - col0 ) col0 FROM tab1 WHERE NOT - 98 + - col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1492
SELECT DISTINCT - COUNT ( - - col0 ) col0 FROM tab1 WHERE NOT - 98 + - col2 IS NOT NULL
----
0

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

query I rowsort
SELECT ALL ( - 81 ) * + 16 + - - 98 AS col1 FROM tab1
----
-1198
-1198
-1198

onlyif mysql # aggregate syntax: 
query I rowsort label-1495
SELECT 79 * + COUNT( * ) AS col2 FROM tab2 WHERE + - col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1495
SELECT 79 * + COUNT ( * ) AS col2 FROM tab2 WHERE + - col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT 4 + - 81 AS col0 FROM tab1
----
-77
-77
-77

query I rowsort
SELECT col2 + + 91 AS col1 FROM tab2
----
114
131
149

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1499
SELECT - MAX( + 44 ) + 25 FROM tab0 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-1499
SELECT - MAX ( + 44 ) + 25 FROM tab0 AS cor0
----
-19

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1501
SELECT SUM( DISTINCT - + 90 ) AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-1501
SELECT SUM ( DISTINCT - + 90 ) AS col0 FROM tab0
----
-90

query I rowsort
SELECT DISTINCT col1 * + + 74 - - 17 AS col0 FROM tab2
----
3791
4975
5715

onlyif mysql # DIV for integer division: 
query II rowsort label-1503
SELECT 38 DIV + col2, - col1 col1 FROM tab0 AS cor0
----
0
-1
0
-81
3
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1503
SELECT 38 / + col2, - col1 col1 FROM tab0 AS cor0
----
0
-1
0
-81
3
-21

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

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

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

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

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

query I rowsort
SELECT 57 FROM tab1 AS cor0 WHERE NOT NULL <= + 43 + + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 96 ) * + 56 col2 FROM tab1
----
-5376
-5376
-5376

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1510
SELECT + COUNT( * ) * 57 DIV + 45 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1510
SELECT + COUNT ( * ) * 57 / + 45 FROM tab1
----
3

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

skipif mysql # not compatible
query I rowsort label-1511
SELECT + AVG ( ALL col1 ) * + COUNT ( * ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT 34 * 19 * - 55 * - COUNT( * ) col1 FROM tab0
----
106590

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1516
SELECT 34 * 19 * - 55 * - COUNT ( * ) col1 FROM tab0
----
106590

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

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

query I rowsort
SELECT DISTINCT - 90 AS col2 FROM tab1 cor0
----
-90

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

query I rowsort
SELECT DISTINCT + 43 * + - 47 FROM tab2
----
-2021

query I rowsort
SELECT col0 * + col1 * + col1 FROM tab0
----
38367
97
98415

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1522
SELECT col2 col2, CAST( - - 71 AS SIGNED ) col2 FROM tab0
----
10
71
47
71
99
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1522
SELECT col2 col2, CAST ( - - 71 AS INTEGER ) col2 FROM tab0
----
10
71
47
71
99
71

query I rowsort
SELECT DISTINCT + col1 + - - col2 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT + col2 * - 1 + + 2 AS col0 FROM tab1 AS cor0
----
-57
-66
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-1525
SELECT ALL COUNT( * ) * 32 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1525
SELECT ALL COUNT ( * ) * 32 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

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

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

skipif mysql # not compatible
query I rowsort label-1527
SELECT DISTINCT - + COUNT ( * ) * COUNT ( ALL - CAST ( + + col2 AS INTEGER ) ) + COUNT ( * ) FROM tab0 cor0
----
-6

query I rowsort
SELECT - col0 + - 76 AS col1 FROM tab2 AS cor0
----
-122
-140
-151

query I rowsort
SELECT ALL - col1 * - - col1 - 18 FROM tab2
----
-2619
-4507
-5947

query I rowsort
SELECT - col2 * + + 30 * + col0 AS col2 FROM tab2
----
-130500
-31740
-76800

onlyif mysql # DIV for integer division: 
query II rowsort label-1531
SELECT DISTINCT 46 DIV - 89 AS col2, + col0 AS col2 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-1531
SELECT DISTINCT 46 / - 89 AS col2, + col0 AS col2 FROM tab2
----
0
46
0
64
0
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1532
SELECT ALL - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - 91 / + 66 - + 5 FROM tab1 WHERE NOT NULL NOT BETWEEN + - ( + - 70 ) / - col0 * - 43 * + - 93 AND col1 * - col1
----

skipif mysql # not compatible
query I rowsort label-1532
SELECT ALL - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - 91 / + 66 - + 5 FROM tab1 WHERE NOT NULL NOT BETWEEN + - ( + - 70 ) / - col0 * - 43 * + - 93 AND col1 * - col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1533
SELECT DISTINCT - 24 + - col2, 46 DIV + + ( - col0 ) + - ( col0 ) AS col2 FROM tab1 cor0
----
-120
-51
-83
-85
-92
-91

skipif mysql # not compatible
query II rowsort label-1533
SELECT DISTINCT - 24 + - col2, 46 / + + ( - col0 ) + - ( col0 ) AS col2 FROM tab1 cor0
----
-120
-51
-83
-85
-92
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-1534
SELECT ALL COUNT( * ) + + COUNT( * ) col1, - SUM( - col2 ) FROM tab0 AS cor0
----
6
156

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

query III rowsort
SELECT * FROM tab1 WHERE + - ( + + 27 ) - + col1 < ( + 69 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

skipif mysql # not compatible
query I rowsort label-1537
SELECT DISTINCT - COUNT ( * ) / - 52 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

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

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

query II rowsort
SELECT - col0, col1 + + 76 AS col0 FROM tab0 AS cor0
----
-15
157
-87
97
-97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1540
SELECT + MIN( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1540
SELECT + MIN ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND col0
----
NULL

query I rowsort
SELECT col0 * - 43 + - - col2 - + col1 AS col1 FROM tab2 AS cor0
----
-2006
-2789
-3234

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

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

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT col2 * - 97 + - + ( 84 ) AS col1 FROM tab2
----
-2315
-3964
-5710

query II rowsort
SELECT 56, - ( - col2 ) AS col0 FROM tab0
----
56
10
56
47
56
99

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1554
SELECT DISTINCT ( + + MIN( - 13 ) ), 93 AS col1 FROM tab2 AS cor0
----
-13
93

skipif mysql # not compatible
query II rowsort label-1554
SELECT DISTINCT ( + + MIN ( - 13 ) ), 93 AS col1 FROM tab2 AS cor0
----
-13
93

query I rowsort
SELECT DISTINCT - col2 * - col0 + + 19 * - - col2 FROM tab1 AS cor0
----
6136
6720
7480

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1557
SELECT SUM( col1 ) FROM tab0 WHERE ( NULL ) IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-1557
SELECT SUM ( col1 ) FROM tab0 WHERE ( NULL ) IS NULL
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1558
SELECT DISTINCT + CAST( + 74 AS SIGNED ) - + - 14 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-1558
SELECT DISTINCT + CAST ( + 74 AS INTEGER ) - + - 14 FROM tab0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-1559
SELECT DISTINCT - COUNT( * ) - + COUNT( * ) + - COUNT( * ) + - MIN( + col2 ) AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-1559
SELECT DISTINCT - COUNT ( * ) - + COUNT ( * ) + - COUNT ( * ) + - MIN ( + col2 ) AS col2 FROM tab0
----
-19

query III rowsort
SELECT * FROM tab1 WHERE + 97 < NULL
----

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * 11 + + + col0 col1 FROM tab0 AS cor0 WHERE - 43 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1564
SELECT + - COUNT( * ) + - + COUNT( * ) + + 60 - + - COUNT( * ) * - 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-426

skipif mysql # not compatible
query I rowsort label-1564
SELECT + - COUNT ( * ) + - + COUNT ( * ) + + 60 - + - COUNT ( * ) * - 52 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-426

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

query I rowsort
SELECT ALL - 27 * col1 + - - col1 + + col0 AS col2 FROM tab2 AS cor0
----
-1280
-1667
-1938

query I rowsort
SELECT ALL + - 39 FROM tab1 cor0
----
-39
-39
-39

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

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

query I rowsort
SELECT - + ( + 47 ) * + + col2 * + col2 FROM tab1 AS cor0
----
-163607
-217328
-433152

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT - 0 * SUM( DISTINCT + + 73 ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1570
SELECT - 0 * SUM ( DISTINCT + + 73 ) AS col1 FROM tab1
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1572
SELECT ALL SUM( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

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

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

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

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

query I rowsort
SELECT col0 * + - col2 + + + col1 - + - 29 * + col0 * col0 FROM tab2
----
116301
158842
60357

query I rowsort
SELECT col2 + 80 AS col0 FROM tab1
----
139
148
176

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1578
SELECT CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL > ( + col0 - 44 )
----

skipif mysql # not compatible
query I rowsort label-1578
SELECT CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL > ( + col0 - 44 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1579
SELECT - col0, 76 + - CAST( NULL AS SIGNED ) * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-1579
SELECT - col0, 76 + - CAST ( NULL AS INTEGER ) * - col2 + + col0 AS col1 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1580
SELECT DISTINCT 53 * + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
477

skipif mysql # not compatible
query I rowsort label-1580
SELECT DISTINCT 53 * + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
477

query I rowsort
SELECT ALL - 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 975e2ef2a3bf1ee2622362f4e435752f

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

query I rowsort
SELECT DISTINCT - 44 - - + col1 FROM tab2
----
23
33
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < 26 * - - col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1587
SELECT ALL SUM( + + 25 ) AS col1 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1587
SELECT ALL SUM ( + + 25 ) AS col1 FROM tab2 AS cor0
----
75

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

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

query II rowsort
SELECT - col1 AS col0, - col2 FROM tab2
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: 
query II rowsort label-1591
SELECT + 97 AS col2, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
97
-3

skipif mysql # not compatible
query II rowsort label-1591
SELECT + 97 AS col2, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
97
-3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < col2 * 81 * 34 / col1 + - - col0 + 40
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL - SUM( - 29 ) col0 FROM tab0 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1595
SELECT ALL - SUM ( - 29 ) col0 FROM tab0 AS cor0
----
87

query II rowsort
SELECT - 57 * + - col2 AS col1, - col0 FROM tab0
----
2679
-15
5643
-97
570
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT ALL - CAST( + col1 AS SIGNED ) * 62 FROM tab2
----
-3162
-4154
-4774

skipif mysql # not compatible
query I rowsort label-1597
SELECT ALL - CAST ( + col1 AS INTEGER ) * 62 FROM tab2
----
-3162
-4154
-4774

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1599
SELECT ( MIN( ALL + + col0 ) ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1599
SELECT ( MIN ( ALL + + col0 ) ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1600
SELECT COUNT( * ) AS col1 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1600
SELECT COUNT ( * ) AS col1 FROM tab1 WHERE - col0 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT col1 + col2 + - 50 FROM tab0 AS cor0
----
-19
50
78

query I rowsort
SELECT - 60 + + + col2 AS col0 FROM tab1 AS cor0
----
-1
36
8

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

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT MIN ( 22 ) AS col0 FROM tab1 AS cor0
----
22

query I rowsort
SELECT 75 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22042bfd4d787415457a42bb93d48eea

query I rowsort
SELECT ALL + 32 * + col1 FROM tab2
----
1632
2144
2464

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

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

query I rowsort
SELECT 25 * - col0 * + 64 AS col1 FROM tab1 cor0
----
-136000
-145600
-81600

query I rowsort
SELECT DISTINCT + + 73 + - 70 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 * 31 - - col0 AS col1 FROM tab0
----
2784
3104
480

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1610
SELECT DISTINCT + SUM( ALL + CAST( - col1 AS SIGNED ) ) + - - COUNT( * ) AS col2 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-1610
SELECT DISTINCT + SUM ( ALL + CAST ( - col1 AS INTEGER ) ) + - - COUNT ( * ) AS col2 FROM tab0
----
-100

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT MAX( - + col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT MAX ( - + col0 ) FROM tab0 AS cor0
----
-15

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 < - - 81 + - col1
----
85
5
59

onlyif mysql # aggregate syntax: 
query II rowsort label-1615
SELECT ALL COUNT( * ) col2, + 84 * 66 AS col1 FROM tab1
----
3
5544

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1615
SELECT ALL COUNT ( * ) col2, + 84 * 66 AS col1 FROM tab1
----
3
5544

query I rowsort
SELECT 32 * + - col2 AS col2 FROM tab1
----
-1888
-2176
-3072

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1621
SELECT DISTINCT + + SUM( - col1 ), COUNT( * ) * + + 85 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + + 42 + + - 62 * col2 * + col1, col2, + + col0 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-1621
SELECT DISTINCT + + SUM ( - col1 ), COUNT ( * ) * + + 85 AS col1 FROM tab0 AS cor0 WHERE NOT col0 IN ( + + 42 + + - 62 * col2 * + col1, col2, + + col0 )
----
NULL
0

query I rowsort
SELECT ALL 74 * - col1 AS col0 FROM tab0 cor0
----
-1554
-5994
-74

query I rowsort
SELECT DISTINCT + - 26 * + + col1 + - 84 FROM tab2 AS cor0
----
-1410
-1826
-2086

query I rowsort
SELECT - col0 * - - 63 FROM tab2 AS cor0
----
-2898
-4032
-4725

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1625
SELECT ALL COUNT( * ) + 79 DIV - 96 * - COUNT( * ) col2 FROM tab1 AS cor0
----
3

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

query II rowsort
SELECT DISTINCT 30, 38 - + 83 + + col1 + + - col1 * col2 + + 12 / - + col0 - - + ( + col2 ) * - 7 + - 96 FROM tab1 AS cor0 WHERE col1 + + col1 / + 69 BETWEEN col0 AND + col2 * + - col2 + - col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1627
SELECT DISTINCT + COUNT( ALL + col2 ) + - COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1627
SELECT DISTINCT + COUNT ( ALL + col2 ) + - COUNT ( * ) FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT - 92 + col2 + - col2 AS col1 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT col1 * + - col0 + + 52 + - 15 FROM tab2
----
-2309
-4891
-4988

onlyif mysql # DIV for integer division: 
query I rowsort label-1631
SELECT + col1 + - 52 DIV + 27 col0 FROM tab0
----
0
20
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1631
SELECT + col1 + - 52 / + 27 col0 FROM tab0
----
0
20
80

onlyif mysql # aggregate syntax: 
query I rowsort label-1632
SELECT COUNT( + 28 ) + 90 AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-1632
SELECT COUNT ( + 28 ) + 90 AS col2 FROM tab0
----
93

query I rowsort
SELECT ALL + col1 * 51 FROM tab2
----
2601
3417
3927

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - col2 col0 FROM tab0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT DISTINCT COUNT( * ) + + MAX( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-48

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 + - 22 * - 32 IN ( + - col2 - - 82 )
----

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

query I rowsort
SELECT ALL - ( - 68 ) * - col2 + col1 - + 91 AS col2 FROM tab0 AS cor0
----
-3206
-6822
-750

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1639
SELECT - 9 / - - 5 - - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1639
SELECT - 9 / - - 5 - - - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 + col1 + col2 >= NULL
----

query I rowsort
SELECT - 13 * + 43 - - col1 + - 49 AS col1 FROM tab2
----
-531
-541
-557

onlyif mysql # DIV for integer division: 
query I rowsort label-1642
SELECT ALL - 76 DIV + col1 FROM tab1
----
-1
-15
-5

skipif mysql # not compatible
query I rowsort label-1642
SELECT ALL - 76 / + col1 FROM tab1
----
-1
-15
-5

query I rowsort
SELECT ALL col1 + - + 99 + + col2 FROM tab2 AS cor0
----
-25
18
26

query I rowsort
SELECT DISTINCT + 5 + + 22 AS col1 FROM tab1 cor0
----
27

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT ALL + COUNT( DISTINCT + 56 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL + COUNT ( DISTINCT + 56 ) FROM tab1 cor0
----
1

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

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

skipif mysql # not compatible
query I rowsort label-1648
SELECT MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT ALL col0 * - - 21 FROM tab2
----
1344
1575
966

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1650
SELECT DISTINCT + CAST( - col0 AS SIGNED ) DIV + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1650
SELECT DISTINCT + CAST ( - col0 AS INTEGER ) / + col2 FROM tab1
----
-1
0

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 60 * col1 col1 FROM tab2 cor0
----
-3060
-4020
-4620

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

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

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

query I rowsort
SELECT DISTINCT 57 + + 14 AS col1 FROM tab0 AS cor0
----
71

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1658
SELECT ALL 18 * - COUNT( * ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1658
SELECT ALL 18 * - COUNT ( * ) FROM tab2
----
-54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col1 ) > + col2 * + col1
----

query II rowsort
SELECT DISTINCT + col0, 62 FROM tab2
----
46
62
64
62
75
62

query I rowsort
SELECT ALL + + 8 + + col2 + - - col2 AS col2 FROM tab1 AS cor0
----
126
144
200

query I rowsort
SELECT + 2 + - 63 AS col1 FROM tab2 AS cor0
----
-61
-61
-61

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

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

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

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

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

query I rowsort
SELECT 33 * 2 FROM tab0
----
66
66
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1668
SELECT - CAST( + - 84 AS SIGNED ) * + + COUNT( * ) * - 1 - ( COUNT( * ) ) + + 68 FROM tab2
----
-187

skipif mysql # not compatible
query I rowsort label-1668
SELECT - CAST ( + - 84 AS INTEGER ) * + + COUNT ( * ) * - 1 - ( COUNT ( * ) ) + + 68 FROM tab2
----
-187

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

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

query II rowsort
SELECT ALL + col1, 68 - + col1 FROM tab2 AS cor0
----
51
17
67
1
77
-9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1672
SELECT DISTINCT + 13 DIV 35 FROM tab2 cor0 WHERE NOT + col1 * + + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1672
SELECT DISTINCT + 13 / 35 FROM tab2 cor0 WHERE NOT + col1 * + + col1 IS NULL
----
0

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1680
SELECT DISTINCT MIN( 36 ) AS col0, 50 * + + 60 * 85 * - COUNT( * ) FROM tab0
----
36
-765000

skipif mysql # not compatible
query II rowsort label-1680
SELECT DISTINCT MIN ( 36 ) AS col0, 50 * + + 60 * 85 * - COUNT ( * ) FROM tab0
----
36
-765000

onlyif mysql # aggregate syntax: 
query I rowsort label-1681
SELECT DISTINCT + + 58 * - COUNT( * ) * - - ( ( + + SUM( ALL 17 ) ) ) FROM tab2 AS cor0
----
-8874

skipif mysql # not compatible
query I rowsort label-1681
SELECT DISTINCT + + 58 * - COUNT ( * ) * - - ( ( + + SUM ( ALL 17 ) ) ) FROM tab2 AS cor0
----
-8874

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1684
SELECT ALL + COUNT( * ) FROM tab0 WHERE + col2 * + 9 + ( 19 ) - col2 + + 58 * + + 5 + + 73 * - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1684
SELECT ALL + COUNT ( * ) FROM tab0 WHERE + col2 * + 9 + ( 19 ) - col2 + + 58 * + + 5 + + 73 * - col1 IS NULL
----
0

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1688
SELECT + COUNT( CAST( NULL AS SIGNED ) ), + 67 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----
0
67

skipif mysql # not compatible
query II rowsort label-1688
SELECT + COUNT ( CAST ( NULL AS INTEGER ) ), + 67 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----
0
67

query I rowsort
SELECT DISTINCT + 1 + + col0 FROM tab0 AS cor0
----
16
88
98

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

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

query II rowsort
SELECT + 67 + - col2, col0 * - - col0 * + ( 5 ) AS col0 FROM tab1
----
-1
41405
-29
13005
8
36125

query I rowsort
SELECT DISTINCT 46 + + col1 AS col2 FROM tab2
----
113
123
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1694
SELECT + MIN( ALL + col1 ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-1694
SELECT + MIN ( ALL + col1 ) AS col1 FROM tab2
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1695
SELECT DISTINCT AVG ( 75 ) + COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1695
SELECT DISTINCT AVG ( 75 ) + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT ALL - - 40 * COUNT( * ) * - + COUNT( ALL - - ( 3 ) ) + - - 99 + - + COUNT( * ) AS col1 FROM tab1 cor0
----
-264

skipif mysql # not compatible
query I rowsort label-1696
SELECT ALL - - 40 * COUNT ( * ) * - + COUNT ( ALL - - ( 3 ) ) + - - 99 + - + COUNT ( * ) AS col1 FROM tab1 cor0
----
-264

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

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

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

query I rowsort
SELECT col1 - + col1 + - + 0 * + col1 + 10 * col0 + + - 73 * - 38 AS col2 FROM tab0
----
2924
3644
3744

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT + COUNT( ALL - 36 ) + + + 83 * - COUNT( * ) * - COUNT( - 13 ) AS col1 FROM tab2
----
750

skipif mysql # not compatible
query I rowsort label-1700
SELECT + COUNT ( ALL - 36 ) + + + 83 * - COUNT ( * ) * - COUNT ( - 13 ) AS col1 FROM tab2
----
750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1701
SELECT * FROM tab2 WHERE - col1 * col2 >= + 71 OR NOT col1 * ( + 26 ) BETWEEN NULL AND ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1701
SELECT * FROM tab2 WHERE - col1 * col2 >= + 71 OR NOT col1 * ( + 26 ) BETWEEN NULL AND ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1702
SELECT ALL MIN( + 22 ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-1702
SELECT ALL MIN ( + 22 ) FROM tab1
----
22

query III rowsort
SELECT * FROM tab0 WHERE + - col1 <> ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1706
SELECT DISTINCT - - CAST( NULL AS SIGNED ), col0 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
-38367
NULL
-97
NULL
-98415

skipif mysql # not compatible
query II rowsort label-1706
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), col0 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
NULL
-38367
NULL
-97
NULL
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1707
SELECT + 17 * + - CAST( - - 11 AS SIGNED ) * - col1 AS col2 FROM tab1 cor0
----
2618
8789
935

skipif mysql # not compatible
query I rowsort label-1707
SELECT + 17 * + - CAST ( - - 11 AS INTEGER ) * - col1 AS col2 FROM tab1 cor0
----
2618
8789
935

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1708
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + 95 - - + CAST( col2 AS SIGNED ) * - col2 AND col0 * col0
----

skipif mysql # not compatible
query III rowsort label-1708
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN + 95 - - + CAST ( col2 AS INTEGER ) * - col2 AND col0 * col0
----

query I rowsort
SELECT DISTINCT - + ( col1 ) * - col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 97 col0 FROM tab2 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-1711
SELECT - COUNT( * ) AS col0, MAX( col0 ) FROM tab1
----
-3
91

skipif mysql # not compatible
query II rowsort label-1711
SELECT - COUNT ( * ) AS col0, MAX ( col0 ) FROM tab1
----
-3
91

onlyif mysql # DIV for integer division: 
query I rowsort label-1712
SELECT ALL col1 DIV - 73 AS col2 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1712
SELECT ALL col1 / - 73 AS col2 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1713
SELECT DISTINCT - ( - + ( COUNT( ALL col1 ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-1713
SELECT DISTINCT - ( - + ( COUNT ( ALL col1 ) ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 65 * + col0 * + col2 FROM tab1
----
-318240
-325975
-402220

onlyif mysql # DIV for integer division: 
query I rowsort label-1715
SELECT DISTINCT - - col2 DIV + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1715
SELECT DISTINCT - - col2 / + ( - col0 ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - col1 * + - col1 AS col2 FROM tab2 cor0
----
-2601
-4489
-5929

query I rowsort
SELECT ALL - col2 + - col0 + + - col2 * + + col0 AS col0 FROM tab1 cor0
----
-5043
-5159
-6347

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 + + - col0 * + 5 col0 FROM tab0
----
-431
-481
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT ALL - + MIN( DISTINCT 56 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1719
SELECT ALL - + MIN ( DISTINCT 56 ) col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-56

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1720
SELECT DISTINCT - + SUM( - col2 ) DIV + COUNT( + 22 ) + + ( MIN( + col2 ) ) + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-1720
SELECT DISTINCT - + SUM ( - col2 ) / + COUNT ( + 22 ) + + ( MIN ( + col2 ) ) + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
130

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1721
SELECT ALL + CAST( NULL AS SIGNED ) * - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1721
SELECT ALL + CAST ( NULL AS INTEGER ) * - - COUNT ( * ) FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( + - col2 ) AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1723
SELECT - 10 + - COUNT( * ) FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-1723
SELECT - 10 + - COUNT ( * ) FROM tab0
----
-13

query I rowsort
SELECT col2 + + 9 AS col2 FROM tab2
----
32
49
67

query II rowsort
SELECT + 77 + ( - 18 ) AS col1, - col1 AS col1 FROM tab1
----
59
-14
59
-47
59
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1726
SELECT DISTINCT - col2 DIV + + 40 col2 FROM tab2 WHERE NOT - 28 IS NULL
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1726
SELECT DISTINCT - col2 / + + 40 col2 FROM tab2 WHERE NOT - 28 IS NULL
----
-1
0

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE col0 >= + col1
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab2 cor0 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT COUNT( * ) * - + 71 * + 26 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-5541

skipif mysql # not compatible
query I rowsort label-1729
SELECT COUNT ( * ) * - + 71 * + 26 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-5541

query I rowsort
SELECT DISTINCT col1 + 31 AS col1 FROM tab0 AS cor0
----
112
32
52

query I rowsort
SELECT DISTINCT - 70 * + col2 + - + col2 FROM tab1
----
-4189
-4828
-6816

query I rowsort
SELECT ( - col2 ) * 91 AS col2 FROM tab1
----
-5369
-6188
-8736

onlyif mysql # aggregate syntax: 
query I rowsort label-1733
SELECT ALL COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1733
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NULL
----
0

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 88 <> NULL
----

query I rowsort
SELECT ALL + 80 AS col1 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # DIV for integer division: 
query I rowsort label-1736
SELECT ( - col0 ) * - col1 + - col2 DIV + ( + + 69 ) AS col2 FROM tab0
----
1215
1827
96

skipif mysql # not compatible
query I rowsort label-1736
SELECT ( - col0 ) * - col1 + - col2 / + ( + + 69 ) AS col2 FROM tab0
----
1215
1827
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT ( - ( + COUNT( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1737
SELECT ( - ( + COUNT ( * ) ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 * col2 col1 FROM tab0 AS cor0
----
1504
3168
320

query I rowsort
SELECT DISTINCT ( 18 ) * - + 77 AS col1 FROM tab2 AS cor0
----
-1386

query I rowsort
SELECT ALL - col1 * ( - - col1 ) FROM tab2 AS cor0
----
-2601
-4489
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT - 16 DIV - col1 FROM tab0
----
0
0
16

skipif mysql # not compatible
query I rowsort label-1741
SELECT - 16 / - col1 FROM tab0
----
0
0
16

onlyif mysql # DIV for integer division: 
query I rowsort label-1742
SELECT - col0 DIV - 66 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1742
SELECT - col0 / - 66 FROM tab2
----
0
0
1

query I rowsort
SELECT DISTINCT - 87 AS col0 FROM tab0 WHERE 0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1744
SELECT ( - - COUNT( ALL - + col0 ) ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1744
SELECT ( - - COUNT ( ALL - + col0 ) ) col2 FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE col1 IS NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT DISTINCT 28 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1746
SELECT DISTINCT 28 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1747
SELECT DISTINCT + col0 DIV + - col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-1747
SELECT DISTINCT + col0 / + - col2 FROM tab1
----
-1
0

query I rowsort
SELECT - 62 * + col1 * + ( col0 ) AS col1 FROM tab0 AS cor0
----
-113274
-6014
-75330

query I rowsort
SELECT ALL + col1 + + + col2 AS col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-1750
SELECT ALL + ( - MAX( ALL + col2 ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-1750
SELECT ALL + ( - MAX ( ALL + col2 ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1751
SELECT 86, - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
86
NULL
86
NULL
86
NULL

skipif mysql # not compatible
query II rowsort label-1751
SELECT 86, - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
86
NULL
86
NULL
86
NULL

query I rowsort
SELECT ALL + 93 AS col2 FROM tab2 WHERE NOT - col2 / + col1 IS NOT NULL
----

query I rowsort
SELECT - ( + + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - 19 * + 10 + - col2 AS col2 FROM tab2 cor0
----
-213
-230
-248

onlyif mysql # aggregate syntax: 
query I rowsort label-1755
SELECT DISTINCT 85 * - COUNT( DISTINCT + col0 ) * + - 74 + + MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
18885

skipif mysql # not compatible
query I rowsort label-1755
SELECT DISTINCT 85 * - COUNT ( DISTINCT + col0 ) * + - 74 + + MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
18885

query II rowsort
SELECT 77 + + col1 AS col1, col0 AS col2 FROM tab1 AS cor0
----
124
91
82
85
91
51

query I rowsort
SELECT - 20 * + 36 AS col1 FROM tab0
----
-720
-720
-720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1758
SELECT DISTINCT ( + CAST( col2 AS SIGNED ) ) - - col2 FROM tab1
----
118
136
192

skipif mysql # not compatible
query I rowsort label-1758
SELECT DISTINCT ( + CAST ( col2 AS INTEGER ) ) - - col2 FROM tab1
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1759
SELECT - COUNT( * ) * 78 FROM tab0
----
-234

skipif mysql # not compatible
query I rowsort label-1759
SELECT - COUNT ( * ) * 78 FROM tab0
----
-234

query I rowsort
SELECT ALL 8 - - + col2 + - col0 AS col1 FROM tab1
----
-15
-18
53

onlyif mysql # DIV for integer division: 
query II rowsort label-1761
SELECT DISTINCT + col0 * + + col1 AS col1, - 34 DIV col0 FROM tab0
----
1215
-2
1827
0
97
0

skipif mysql # not compatible
query II rowsort label-1761
SELECT DISTINCT + col0 * + + col1 AS col1, - 34 / col0 FROM tab0
----
1215
-2
1827
0
97
0

query III rowsort
SELECT * FROM tab2 WHERE + - 91 - 16 < - col2 + 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-1763
SELECT ALL col1 DIV - - col1 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1763
SELECT ALL col1 / - - col1 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT - ( - 29 ) * 60 + + 20 + - + col2 + + col1 * - col0 FROM tab1
----
-2585
1276
950

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 BETWEEN 53 AND ( - 89 ) * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1766
SELECT SUM( DISTINCT ( - col2 ) ) + + - COUNT( * ) - + MIN( ALL + - col2 ) FROM tab1 AS cor0
----
-130

skipif mysql # not compatible
query I rowsort label-1766
SELECT SUM ( DISTINCT ( - col2 ) ) + + - COUNT ( * ) - + MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
-130

onlyif mysql # aggregate syntax: 
query II rowsort label-1767
SELECT + 78, - COUNT( * ) * SUM( DISTINCT + - 26 ) FROM tab1
----
78
78

skipif mysql # not compatible
query II rowsort label-1767
SELECT + 78, - COUNT ( * ) * SUM ( DISTINCT + - 26 ) FROM tab1
----
78
78

query II rowsort
SELECT ALL + col0 AS col2, 40 + + - 93 AS col1 FROM tab2
----
46
-53
64
-53
75
-53

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE NOT - 77 IS NULL
----
-1
-21
-81

query I rowsort
SELECT - col0 * + + col0 AS col1 FROM tab0 cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT COUNT( ALL + 15 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1771
SELECT COUNT ( ALL + 15 ) col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN + col2 AND - col1
----

query II rowsort
SELECT DISTINCT + + col2, + col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

query I rowsort
SELECT ALL - ( 54 ) AS col1 FROM tab2 AS cor0
----
-54
-54
-54

query II rowsort
SELECT + 64, + col2 AS col2 FROM tab1 AS cor0
----
64
59
64
68
64
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1776
SELECT 36 * + col0 * - CAST( 79 AS SIGNED ) col2, col0 FROM tab2 AS cor0
----
-130824
46
-182016
64
-213300
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1776
SELECT 36 * + col0 * - CAST ( 79 AS INTEGER ) col2, col0 FROM tab2 AS cor0
----
-130824
46
-182016
64
-213300
75

onlyif mysql # DIV for integer division: 
query I rowsort label-1777
SELECT ( - col1 ) DIV + ( - + 33 ) AS col1 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1777
SELECT ( - col1 ) / + ( - + 33 ) AS col1 FROM tab2
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1778
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1778
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1779
SELECT + 91 DIV ( - col1 ) FROM tab1
----
-1
-18
-6

skipif mysql # not compatible
query I rowsort label-1779
SELECT + 91 / ( - col1 ) FROM tab1
----
-1
-18
-6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1780
SELECT + 44 DIV - col0 AS col1 FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * col2 * col1 + + 85 IS NOT NULL
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1780
SELECT + 44 / - col0 AS col1 FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * col2 * col1 + + 85 IS NOT NULL
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1781
SELECT DISTINCT - + CAST( + + col2 AS SIGNED ) AS col1 FROM tab1 WHERE NULL = + + col1
----

skipif mysql # not compatible
query I rowsort label-1781
SELECT DISTINCT - + CAST ( + + col2 AS INTEGER ) AS col1 FROM tab1 WHERE NULL = + + col1
----

query I rowsort
SELECT ALL - 14 + - 5 AS col2 FROM tab1 WHERE + + col0 IS NOT NULL
----
-19
-19
-19

query I rowsort
SELECT ALL col1 * 8 FROM tab1
----
112
376
40

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT ( COUNT( + col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1784
SELECT ( COUNT ( + col1 ) ) FROM tab1
----
3

query II rowsort
SELECT + col0 + - col0 * - col1 - + + 60 AS col2, + col1 FROM tab2 cor0
----
2332
51
4932
77
5040
67

query I rowsort
SELECT - - 48 + - 15 AS col1 FROM tab0 AS cor0
----
33
33
33

query I rowsort
SELECT ALL + - 55 FROM tab2 AS cor0 WHERE NOT 2 IS NULL
----
-55
-55
-55

query I rowsort
SELECT ( + 0 ) FROM tab2 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 <> - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT - COUNT( * ) * + 91 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-1790
SELECT - COUNT ( * ) * + 91 FROM tab2
----
-273

query I rowsort
SELECT DISTINCT + col1 + - + 46 + 71 AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1792
SELECT * FROM tab2 AS cor0 WHERE + col0 + + CAST( - - 16 AS DECIMAL ) + + 61 NOT BETWEEN + + col2 AND NULL
----

skipif mysql # not compatible
query III rowsort label-1792
SELECT * FROM tab2 AS cor0 WHERE + col0 + + CAST ( - - 16 AS REAL ) + + 61 NOT BETWEEN + + col2 AND NULL
----

query I rowsort
SELECT DISTINCT col2 + - 13 FROM tab0 AS cor0
----
-3
34
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col2 col0 FROM tab2
----
17
23
24

query I rowsort
SELECT + ( col0 ) + - col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 <> 49 * - - col1 AND NOT col1 * + col0 + - + 57 NOT BETWEEN + ( col0 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 50 - + 50 col0 FROM tab0
----
0

query I rowsort
SELECT - 3 + - + col0 AS col2 FROM tab2
----
-49
-67
-78

query I rowsort
SELECT col2 * col1 + + 74 FROM tab1
----
1418
3270
369

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1800
SELECT - 84 DIV - - COUNT( * ) + 86 FROM tab0
----
58

skipif mysql # not compatible
query I rowsort label-1800
SELECT - 84 / - - COUNT ( * ) + 86 FROM tab0
----
58

query I rowsort
SELECT DISTINCT - 3 * + 28 * + + 5 * 21 FROM tab0 AS cor0
----
-8820

onlyif mysql # DIV for integer division: 
query I rowsort label-1802
SELECT + 92 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-1802
SELECT + 92 / - col2 FROM tab2 AS cor0
----
-1
-2
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col1 col0, - ( + - col0 ) AS col0 FROM tab1 AS cor0
----
14
51
47
91
5
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1804
SELECT DISTINCT + CAST( - ( + - COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1804
SELECT DISTINCT + CAST ( - ( + - COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT - col0 * + 73 AS col1 FROM tab0
----
-1095
-6351
-7081

onlyif mysql # aggregate syntax: 
query II rowsort label-1806
SELECT ALL + - COUNT( * ) * - COUNT( * ) AS col2, SUM( + col2 ) FROM tab0 AS cor0
----
9
156

skipif mysql # not compatible
query II rowsort label-1806
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) AS col2, SUM ( + col2 ) FROM tab0 AS cor0
----
9
156

query I rowsort
SELECT ALL - ( - + 57 ) AS col0 FROM tab1 cor0
----
57
57
57

query I rowsort
SELECT + + col1 FROM tab1 AS cor0 WHERE NOT NULL > 4
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0 / col2 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1810
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 < col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1810
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 < col0 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + - 6 FROM tab1 WHERE NOT ( + col0 * - col2 - - 93 IS NOT NULL )
----

query I rowsort
SELECT col1 * + col0 + - col0 - - 77 * col0 FROM tab2
----
10725
5842
9792

onlyif mysql # aggregate syntax: 
query I rowsort label-1813
SELECT DISTINCT + + SUM( + 7 ) * + 6 FROM tab1 WHERE NOT ( NOT 47 <> + col1 + - + col1 )
----
126

skipif mysql # not compatible
query I rowsort label-1813
SELECT DISTINCT + + SUM ( + 7 ) * + 6 FROM tab1 WHERE NOT ( NOT 47 <> + col1 + - + col1 )
----
126

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT 76 BETWEEN NULL AND - - 88 + - - 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1815
SELECT 48 * + 68 * - + COUNT( + col1 ) + + - 62 AS col1 FROM tab2
----
-9854

skipif mysql # not compatible
query I rowsort label-1815
SELECT 48 * + 68 * - + COUNT ( + col1 ) + + - 62 AS col1 FROM tab2
----
-9854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT ( + CAST( - + col1 AS SIGNED ) ) + 75 - col1 FROM tab1
----
-19
47
65

skipif mysql # not compatible
query I rowsort label-1816
SELECT ( + CAST ( - + col1 AS INTEGER ) ) + 75 - col1 FROM tab1
----
-19
47
65

query I rowsort
SELECT 68 * 49 FROM tab1
----
3332
3332
3332

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 11 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1819
SELECT ALL COUNT( * ) AS col0, 67 DIV - + COUNT( * ) FROM tab1 AS cor0
----
3
-22

skipif mysql # not compatible
query II rowsort label-1819
SELECT ALL COUNT ( * ) AS col0, 67 / - + COUNT ( * ) FROM tab1 AS cor0
----
3
-22

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT + SUM( ALL ( + - col2 ) ) AS col1, + 43 FROM tab1 AS cor0
----
-223
43

skipif mysql # not compatible
query II rowsort label-1820
SELECT + SUM ( ALL ( + - col2 ) ) AS col1, + 43 FROM tab1 AS cor0
----
-223
43

query I rowsort
SELECT DISTINCT + col2 * + 94 FROM tab2
----
2162
3760
5452

query I rowsort
SELECT col1 * + 74 FROM tab0
----
1554
5994
74

query I rowsort
SELECT ( col0 ) * + 96 AS col0 FROM tab1
----
4896
8160
8736

query I rowsort
SELECT - 40 * + col2 FROM tab1
----
-2360
-2720
-3840

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 / + ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + - col1 = ( NULL )
----

query I rowsort
SELECT + 29 * 36 FROM tab1
----
1044
1044
1044

query I rowsort
SELECT - col1 * 11 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT + col2 - col0 * - col1 AS col0 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT + 13 - 95 * - col1 FROM tab1
----
1343
4478
488

query I rowsort
SELECT ( 32 ) * - col0 FROM tab2
----
-1472
-2048
-2400

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT - 3 - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-1832
SELECT - 3 - COUNT ( * ) AS col0 FROM tab0
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN 59 * - col1 AND ( - col1 - + col2 )
----

query I rowsort
SELECT - col1 * - 68 FROM tab2
----
3468
4556
5236

query I rowsort
SELECT ALL col1 + 63 FROM tab1
----
110
68
77

query I rowsort
SELECT col1 FROM tab1 WHERE NOT col2 <= col0
----
14

query I rowsort
SELECT DISTINCT 40 AS col1 FROM tab0 WHERE NOT NULL IN ( + col0 / col2 )
----

query I rowsort
SELECT ALL 82 * 72 FROM tab1
----
5904
5904
5904

query I rowsort
SELECT DISTINCT + col2 * + ( + col1 / col0 ) AS col2 FROM tab1 WHERE NOT ( + 89 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1840
SELECT ALL - col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1840
SELECT ALL - col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1841
SELECT ALL COUNT( * ) DIV COUNT( * ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1841
SELECT ALL COUNT ( * ) / COUNT ( * ) AS col1 FROM tab0
----
1

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN col0 + 33 AND ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1843
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( + CAST( ( - 86 ) AS DECIMAL ) + - col1 )
----

skipif mysql # not compatible
query III rowsort label-1843
SELECT ALL * FROM tab2 WHERE NOT col0 NOT IN ( + CAST ( ( - 86 ) AS REAL ) + - col1 )
----

query I rowsort
SELECT DISTINCT - 31 + col0 FROM tab2
----
15
33
44

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 80 ) = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 62 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 4 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 62 > + col1
----
64
77
40
75
67
58

onlyif mysql # DIV for integer division: 
query I rowsort label-1849
SELECT + 81 DIV col2 AS col1 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-1849
SELECT + 81 / col2 AS col1 FROM tab0 AS cor0
----
0
1
8

onlyif mysql # DIV for integer division: 
query I rowsort label-1850
SELECT DISTINCT 60 DIV + col1 col0 FROM tab1 AS cor0
----
1
12
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1850
SELECT DISTINCT 60 / + col1 col0 FROM tab1 AS cor0
----
1
12
4

query I rowsort
SELECT ALL col0 * - 80 AS col1 FROM tab0 AS cor0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1852
SELECT + MIN( - col1 ) DIV - COUNT( * ) col1 FROM tab2
----
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1852
SELECT + MIN ( - col1 ) / - COUNT ( * ) col1 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT + MIN( ALL - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1853
SELECT + MIN ( ALL - col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT 6 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-1855
SELECT ALL - 61 * COUNT( * ) AS col0 FROM tab0 cor0
----
-183

skipif mysql # not compatible
query I rowsort label-1855
SELECT ALL - 61 * COUNT ( * ) AS col0 FROM tab0 cor0
----
-183

query I rowsort
SELECT DISTINCT col2 + 71 FROM tab0 AS cor0
----
118
170
81

query I rowsort
SELECT DISTINCT ( - col0 ) / + ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1858
SELECT 25 DIV - 77 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1858
SELECT 25 / - 77 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1859
SELECT DISTINCT - - col1 DIV col1 AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1859
SELECT DISTINCT - - col1 / col1 AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 23 AS col2 FROM tab1 AS cor0 WHERE NOT col2 - 17 / + 46 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 37 col0 FROM tab2
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1863
SELECT ALL * FROM tab2 WHERE NOT col0 - + 20 NOT IN ( + CAST( NULL AS SIGNED ) - 16 )
----

skipif mysql # not compatible
query III rowsort label-1863
SELECT ALL * FROM tab2 WHERE NOT col0 - + 20 NOT IN ( + CAST ( NULL AS INTEGER ) - 16 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1864
SELECT DISTINCT MAX( DISTINCT - col1 ) col2 FROM tab1
----
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1864
SELECT DISTINCT MAX ( DISTINCT - col1 ) col2 FROM tab1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1865
SELECT - SUM( DISTINCT + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1865
SELECT - SUM ( DISTINCT + col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT DISTINCT 54 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL AND col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1867
SELECT - COUNT( * ) + - COUNT( * ) col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1867
SELECT - COUNT ( * ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT - 76 + + 7 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT DISTINCT ( 77 ) FROM tab1 cor0 WHERE NOT col2 BETWEEN ( + col1 + + 68 ) AND ( - col2 * + col1 )
----
77

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN 63 * 45 + - 4 AND - 36
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - + 41 ) - - col2 col0 FROM tab1
----
18
27
55

query I rowsort
SELECT - 52 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 9500afe5646d620d5e8943351a29d082

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, 38 FROM tab0 AS cor0
----
15
38
87
38
97
38

onlyif mysql # DIV for integer division: 
query I rowsort label-1874
SELECT ALL col0 DIV + - 17 + ( col0 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
82
92

skipif mysql # not compatible
query I rowsort label-1874
SELECT ALL col0 / + - 17 + ( col0 ) FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
15
82
92

query I rowsort
SELECT col2 + col2 AS col0 FROM tab2 cor0 WHERE NULL NOT IN ( + col2 )
----

query I rowsort
SELECT - ( 64 ) - + col1 AS col0 FROM tab0 cor0
----
-145
-65
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1877
SELECT ALL - 40 + + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1877
SELECT ALL - 40 + + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( - 52 ) - + - 65 AS col1 FROM tab0 AS cor0
----
13

query I rowsort
SELECT col1 * col2 AS col1 FROM tab0 cor0 WHERE + col0 BETWEEN ( + col0 * + col1 ) AND NULL
----

query I rowsort
SELECT col1 + col0 * + - col1 - 54 AS col2 FROM tab1 AS cor0
----
-4284
-474
-754

query I rowsort
SELECT DISTINCT col0 * ( - + 56 ) + 49 * col0 + + 76 FROM tab2 AS cor0
----
-246
-372
-449

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= NULL ) OR NOT 45 IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE - col0 IN ( - col0 + col0 )
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE 21 = ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1885
SELECT ALL MIN( + col2 ) AS col0, - COUNT( * ) col2 FROM tab2
----
23
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1885
SELECT ALL MIN ( + col2 ) AS col0, - COUNT ( * ) col2 FROM tab2
----
23
-3

query I rowsort
SELECT ALL + - ( - col1 ) * + col0 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1887
SELECT + ( - + COUNT( * ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1887
SELECT + ( - + COUNT ( * ) ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1888
SELECT ALL - 83 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1888
SELECT ALL - 83 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 < ( NULL )
----

query I rowsort
SELECT col2 * - 70 FROM tab2
----
-1610
-2800
-4060

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1891
SELECT DISTINCT 58 DIV - - COUNT( * ) + - MIN( ALL + 11 ) - + 77 AS col1 FROM tab0 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1891
SELECT DISTINCT 58 / - - COUNT ( * ) + - MIN ( ALL + 11 ) - + 77 AS col1 FROM tab0 AS cor0
----
-69

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 20 + + col2 * col0 )
----

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE - - col0 * col1 * + - col1 >= + col2 + - col2
----

query I rowsort
SELECT ALL - 56 * + col2 AS col1 FROM tab1
----
-3304
-3808
-5376

query II rowsort
SELECT - col1, col2 AS col0 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1896
SELECT - 30 DIV - + col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1896
SELECT - 30 / - + col0 FROM tab2
----
0
0
0

query II rowsort
SELECT col1, - col0 + - 72 AS col2 FROM tab2 AS cor0
----
51
-118
67
-147
77
-136

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 col0 FROM tab0 AS cor0 WHERE NOT col2 - 57 * col1 >= - + col2
----
59
59

query I rowsort
SELECT ALL + ( + + col2 ) * col2 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1900
SELECT ALL CAST( NULL AS SIGNED ) + + 0 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1900
SELECT ALL CAST ( NULL AS INTEGER ) + + 0 - + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * + - col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1902
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 - CAST( NULL AS SIGNED ) - 30 * + + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1902
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 - CAST ( NULL AS INTEGER ) - 30 * + + col2 IS NOT NULL
----

query I rowsort
SELECT - + 49 FROM tab1 cor0 WHERE NOT 63 NOT BETWEEN 77 AND + col2
----

query I rowsort
SELECT 77 FROM tab2 AS cor0 WHERE NULL IN ( - col0 ) AND NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + col0 ) NOT IN ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1906
SELECT 1 + + MAX( + col2 ) AS col2 FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-1906
SELECT 1 + + MAX ( + col2 ) AS col2 FROM tab0
----
100

query I rowsort
SELECT - + 49 FROM tab2 WHERE ( NOT 3 IS NOT NULL )
----

query I rowsort
SELECT + col0 FROM tab0 WHERE + col2 / col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 39 ) + col0 <= ( col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT IN ( col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1911
SELECT ALL + COUNT( - col0 ) FROM tab0 AS cor0 WHERE 42 <> col2 * - col2 + - 48
----
3

skipif mysql # not compatible
query I rowsort label-1911
SELECT ALL + COUNT ( - col0 ) FROM tab0 AS cor0 WHERE 42 <> col2 * - col2 + - 48
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1912
SELECT DISTINCT - CAST( - ( + + col2 ) AS SIGNED ) DIV + 1 - 25 AS col0 FROM tab1
----
34
43
71

skipif mysql # not compatible
query I rowsort label-1912
SELECT DISTINCT - CAST ( - ( + + col2 ) AS INTEGER ) / + 1 - 25 AS col0 FROM tab1
----
34
43
71

onlyif mysql # aggregate syntax: 
query II rowsort label-1913
SELECT ALL + MAX( + 5 ), 22 * 95 AS col2 FROM tab1 AS cor0
----
5
2090

skipif mysql # not compatible
query II rowsort label-1913
SELECT ALL + MAX ( + 5 ), 22 * 95 AS col2 FROM tab1 AS cor0
----
5
2090

query I rowsort
SELECT ALL - col1 + + - col0 + col2 FROM tab0 AS cor0
----
-49
-98
1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + 99 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
41
59
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1917
SELECT - ( + col0 ) * col2 + col1 * + col2 FROM tab1 AS cor0 WHERE NOT ( NOT col1 - col0 + col0 <= ( ( + CAST( - 67 AS SIGNED ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-1917
SELECT - ( + col0 ) * col2 + col1 * + col2 FROM tab1 AS cor0 WHERE NOT ( NOT col1 - col0 + col0 <= ( ( + CAST ( - 67 AS INTEGER ) ) ) )
----

query I rowsort
SELECT - ( - - 54 ) AS col0 FROM tab0
----
-54
-54
-54

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - ( col2 ) - + 9 + - + 89 - col0 NOT IN ( - 94 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col2 + col2 AS col1 FROM tab2 WHERE - - 34 * - - col0 + - ( col2 ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col0 + col1 + + 75 + - 64 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * - - col0 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-1924
SELECT 51 DIV + 42 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1924
SELECT 51 / + 42 FROM tab0 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 15 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 = + - col0
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 + col0 + + ( + ( - 40 ) ) AND NULL
----

query II rowsort
SELECT ALL col1 * - - 69 AS col0, col1 AS col2 FROM tab1
----
3243
47
345
5
966
14

onlyif mysql # DIV for integer division: 
query I rowsort label-1929
SELECT - 54 DIV - col2 FROM tab0 AS cor0 WHERE NOT 14 - - col1 + - col1 IS NULL
----
0
1
5

skipif mysql # not compatible
query I rowsort label-1929
SELECT - 54 / - col2 FROM tab0 AS cor0 WHERE NOT 14 - - col1 + - col1 IS NULL
----
0
1
5

query I rowsort
SELECT ALL + col2 * - - 59 FROM tab0 AS cor0
----
2773
5841
590

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1931
SELECT + CAST( - col2 AS SIGNED ), + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

skipif mysql # not compatible
query II rowsort label-1931
SELECT + CAST ( - col2 AS INTEGER ), + col1 AS col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query I rowsort
SELECT ALL - 21 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-21
-21
-21

query I rowsort
SELECT DISTINCT + col1 * col0 * - col2 * - ( + - col2 ) AS col1 FROM tab0
----
-182700
-2683935
-950697

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1934
SELECT DISTINCT COUNT( * ) DIV - - COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT COUNT ( * ) / - - COUNT ( * ) FROM tab2
----
1

query I rowsort
SELECT ALL 72 * col0 + + + 92 FROM tab1
----
3764
6212
6644

query I rowsort
SELECT DISTINCT + 21 * - col2 * - col2 AS col2 FROM tab1
----
193536
73101
97104

query I rowsort
SELECT + + col2 + + 55 AS col1 FROM tab0 AS cor0
----
102
154
65

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 34 + - col1 - + 75 * + ( - + col2 ) AS col1 FROM tab0 AS cor0
----
3410
695
7390

query I rowsort
SELECT 23 + + col1 FROM tab2 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + AVG ( - - 47 ) FROM tab0 WHERE + col0 + + 56 NOT BETWEEN + 66 AND ( NULL )
----
NULL

query II rowsort
SELECT col1 AS col0, 4 AS col1 FROM tab1
----
14
4
47
4
5
4

query I rowsort
SELECT + col0 * 39 - col2 FROM tab2 AS cor0
----
1771
2456
2867

query I rowsort
SELECT col0 * 49 + - col2 - 55 + + - col1 + + - col1 * + 59 * - col2 / + + 28 AS col0 FROM tab1 AS cor0 WHERE NOT - 42 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 90 * + col0 * - + 62 col2 FROM tab2 AS cor0
----
256680
357120
418500

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1946
SELECT + CAST( - 18 AS SIGNED ) * 32 FROM tab0 AS cor0
----
-576
-576
-576

skipif mysql # not compatible
query I rowsort label-1946
SELECT + CAST ( - 18 AS INTEGER ) * 32 FROM tab0 AS cor0
----
-576
-576
-576

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 30 * - col2 <= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 AS col1, - col2 + col0 col1 FROM tab2 cor0
----
23
23
40
24
58
17

onlyif mysql # aggregate syntax: 
query I rowsort label-1949
SELECT ALL + - COUNT( * ) FROM tab1 AS cor0 WHERE col2 IN ( col0, 70 * col1 )
----
0

skipif mysql # not compatible
query I rowsort label-1949
SELECT ALL + - COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IN ( col0, 70 * col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1950
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 14 AND + 32 + col0 * + col0 + + 74 + - + col2
----
0

skipif mysql # not compatible
query I rowsort label-1950
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 14 AND + 32 + col0 * + col0 + + 74 + - + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1951
SELECT MIN( DISTINCT - + col2 ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-1951
SELECT MIN ( DISTINCT - + col2 ) AS col2 FROM tab0
----
-99

query II rowsort
SELECT DISTINCT + col1 * col2, col2 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1953
SELECT SUM( - 87 ) AS col1 FROM tab1
----
-261

skipif mysql # not compatible
query I rowsort label-1953
SELECT SUM ( - 87 ) AS col1 FROM tab1
----
-261

onlyif mysql # aggregate syntax: 
query I rowsort label-1954
SELECT DISTINCT - MIN( ALL ( + 90 ) ) FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-1954
SELECT DISTINCT - MIN ( ALL ( + 90 ) ) FROM tab1
----
-90

query II rowsort
SELECT DISTINCT + ( + col2 ), + ( + ( + + col2 ) ) AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col1 * + + col1 AND NULL
----

query I rowsort
SELECT ALL + + col0 FROM tab2 WHERE NOT - col1 + + - col1 = col0
----
46
64
75

query I rowsort
SELECT ALL - ( + + col1 ) * + col2 * 84 + + col1 AS col1 FROM tab2 AS cor0
----
-258643
-326357
-98481

query I rowsort
SELECT - + col1 + - + 24 * - + 5 AS col2 FROM tab0 AS cor0
----
119
39
99

query I rowsort
SELECT + + 58 AS col1 FROM tab2 cor0 WHERE col1 * col2 NOT BETWEEN NULL AND + + col1 * col1
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab0 AS cor0 WHERE 72 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1962
SELECT ALL + col2 + + col2 DIV + col2 AS col2 FROM tab0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-1962
SELECT ALL + col2 + + col2 / + col2 AS col2 FROM tab0
----
100
11
48

query I rowsort
SELECT DISTINCT + ( + col2 ) * + 35 + + ( + col1 ) FROM tab2
----
1477
2097
856

query II rowsort
SELECT DISTINCT col0 + col1, col0 FROM tab0
----
108
87
96
15
98
97

onlyif mysql # DIV for integer division: 
query I rowsort label-1965
SELECT + col0 DIV - + 51 col2 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1965
SELECT + col0 / - + 51 col2 FROM tab2
----
-1
-1
0

query I rowsort
SELECT col2 * - + 96 * + col1 * + col0 AS col1 FROM tab0
----
-1753920
-5482080
-921888

query I rowsort
SELECT ( + 73 ) - 44 AS col2 FROM tab2 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1968
SELECT COUNT( ALL - CAST( NULL AS SIGNED ) ) + + SUM( ALL + + col1 ) + + - 37 AS col2 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-1968
SELECT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) + + SUM ( ALL + + col1 ) + + - 37 AS col2 FROM tab1 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL - COUNT( ALL + col2 ) + + 71 AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - COUNT ( ALL + col2 ) + + 71 AS col0 FROM tab2
----
68

query II rowsort
SELECT 87, 57 AS col2 FROM tab2
----
87
57
87
57
87
57

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * + col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1972
SELECT - 18 DIV - COUNT( * ) col1 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1972
SELECT - 18 / - COUNT ( * ) col1 FROM tab0 AS cor0
----
6

query I rowsort
SELECT ALL - 30 AS col1 FROM tab1 AS cor0 WHERE NOT col1 * - 63 IS NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-1974
SELECT + - 63 * - ( COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1974
SELECT + - 63 * - ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
189

onlyif mysql # DIV for integer division: 
query I rowsort label-1975
SELECT - + col2 DIV col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1975
SELECT - + col2 / col1 FROM tab2 cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * col2 col0 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - col2 * 79 FROM tab1 AS cor0
----
-4661
-5372
-7584

query I rowsort
SELECT - 27 * - 66 * - - col2 AS col1 FROM tab1
----
105138
121176
171072

onlyif mysql # DIV for integer division: 
query I rowsort label-1979
SELECT DISTINCT + col1 DIV 18 AS col1 FROM tab0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-1979
SELECT DISTINCT + col1 / 18 AS col1 FROM tab0
----
0
1
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - 41 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1981
SELECT ALL COUNT( DISTINCT - 81 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1981
SELECT ALL COUNT ( DISTINCT - 81 ) FROM tab1
----
1

query II rowsort
SELECT col2 AS col0, - col0 + + - col2 FROM tab0 AS cor0
----
10
-97
47
-62
99
-196

query I rowsort
SELECT + col0 * + ( - - 52 ) FROM tab1 AS cor0
----
2652
4420
4732

query I rowsort
SELECT DISTINCT + - ( + col0 ) * + + col1 AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT DISTINCT 78, + col1 + - col1 + + col0 AS col2 FROM tab0 AS cor0
----
78
15
78
87
78
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + col2 * + - col1 col0 FROM tab0 cor0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT 82 + 18 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
100

onlyif mysql # aggregate syntax: 
query I rowsort label-1988
SELECT DISTINCT - 98 + + + COUNT( * ) AS col2 FROM tab2 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-1988
SELECT DISTINCT - 98 + + + COUNT ( * ) AS col2 FROM tab2 cor0
----
-95

query II rowsort
SELECT - ( + + col2 ) AS col2, 73 + col1 FROM tab0 AS cor0
----
-10
94
-47
154
-99
74

onlyif mysql # aggregate syntax: 
query II rowsort label-1990
SELECT DISTINCT ( COUNT( * ) ) AS col1, + 63 AS col0 FROM tab2 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-1990
SELECT DISTINCT ( COUNT ( * ) ) AS col1, + 63 AS col0 FROM tab2 AS cor0
----
3
63

query I rowsort
SELECT ALL - + col2 + - + col1 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-1992
SELECT - MAX( + + col0 ), - COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-97
-3

skipif mysql # not compatible
query II rowsort label-1992
SELECT - MAX ( + + col0 ), - COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-97
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1993
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= CAST( NULL AS DECIMAL ) + + - 89
----

skipif mysql # not compatible
query III rowsort label-1993
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= CAST ( NULL AS REAL ) + + - 89
----

query I rowsort
SELECT DISTINCT col1 - col2 + + 20 + - col2 - - - col2 + + col0 * - - 31 * - col0 * + 46 + - 61 * + col1 + - - 17 * + - 70 AS col0 FROM tab2 AS cor0
----
-3021715
-5846806
-8026614

query I rowsort
SELECT DISTINCT + col0 * - 34 + 30 AS col1 FROM tab1 AS cor0
----
-1704
-2860
-3064

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE - 24 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL col0 - 81 * + col1 FROM tab1
----
-1083
-320
-3716

query IIIIII rowsort
SELECT ALL * FROM tab0, tab1 cor0 WHERE 16 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT col1 * - - col0 + + col1 + - + ( + + 28 ) FROM tab2
----
2369
4977
5064

query I rowsort
SELECT DISTINCT 67 AS col0 FROM tab2, tab0 cor0
----
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2001
SELECT - CAST( + MIN( ALL + col2 ) AS SIGNED ) AS col2 FROM tab0 WHERE + 90 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2001
SELECT - CAST ( + MIN ( ALL + col2 ) AS INTEGER ) AS col2 FROM tab0 WHERE + 90 IS NULL
----
NULL

query II rowsort
SELECT ALL - ( + col1 ) - - 93 AS col0, + 46 AS col0 FROM tab2
----
16
46
26
46
42
46

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2003
SELECT ALL 64 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2003
SELECT ALL 64 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 * - + col0 AS col0 FROM tab0 cor0
----
225
7569
9409

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 39 NOT IN ( - + ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2006
SELECT ALL - - 54 + - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
45

skipif mysql # not compatible
query I rowsort label-2006
SELECT ALL - - 54 + - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2007
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) NOT BETWEEN col1 AND col2
----

skipif mysql # not compatible
query III rowsort label-2007
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) NOT BETWEEN col1 AND col2
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NOT - ( + 64 ) / - 11 IS NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2009
SELECT - SUM( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-2009
SELECT - SUM ( ALL - col1 ) AS col1 FROM tab2 AS cor0
----
195

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - ( - col0 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + + col1 * + col0 AS col1, 3 FROM tab0 AS cor0
----
1215
3
1827
3
97
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2012
SELECT ALL + col1 DIV col0 * - - 28 FROM tab2 AS cor0
----
0
28
28

skipif mysql # not compatible
query I rowsort label-2012
SELECT ALL + col1 / col0 * - - 28 FROM tab2 AS cor0
----
0
28
28

query I rowsort
SELECT ALL + col2 * + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + 54 * + + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2015
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS DECIMAL ) * 67 IN ( + - col0 * - 54 + + 53, + col0 )
----

skipif mysql # not compatible
query III rowsort label-2015
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS REAL ) * 67 IN ( + - col0 * - 54 + + 53, + col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 - + 16 * + 67 >= - - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2017
SELECT + COUNT( * ), + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2017
SELECT + COUNT ( * ), + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL IS NULL
----
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2018
SELECT + 26 AS col2, - SUM( DISTINCT - col1 ) + + 18 FROM tab1
----
26
84

skipif mysql # not compatible
query II rowsort label-2018
SELECT + 26 AS col2, - SUM ( DISTINCT - col1 ) + + 18 FROM tab1
----
26
84

query II rowsort
SELECT col2 AS col2, + 63 FROM tab1 AS cor0
----
59
63
68
63
96
63

query I rowsort
SELECT + + col2 / + col2 / col2 + 37 * col2 + ( - - col0 ) AS col1 FROM tab1 AS cor0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL + + 11 + - - 86 FROM tab0 AS cor0
----
97
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2022
SELECT - MIN( + 36 ) AS col0 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2022
SELECT - MIN ( + 36 ) AS col0 FROM tab2 AS cor0
----
-36

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col0 ) + - col1 IS NULL
----

query I rowsort
SELECT ALL + + 78 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2aff42d3e015022a738905090a20dfd4

query I rowsort
SELECT DISTINCT - + 4 + - col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-101
-145
-146

query I rowsort
SELECT ALL + - col0 + + 85 AS col0 FROM tab2 AS cor0
----
10
21
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT ALL + CAST( NULL AS SIGNED ) + 40 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT ALL + CAST ( NULL AS INTEGER ) + 40 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + + + col0 FROM tab2 cor0
----
141
142
97

query I rowsort
SELECT - + 82 + - + col2 FROM tab1 AS cor0
----
-141
-150
-178

query I rowsort
SELECT DISTINCT + col2 + col0 - col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2031
SELECT ALL SUM( + + col1 ) + + 89 AS col0 FROM tab1 AS cor0
----
155

skipif mysql # not compatible
query I rowsort label-2031
SELECT ALL SUM ( + + col1 ) + + 89 AS col0 FROM tab1 AS cor0
----
155

query I rowsort
SELECT - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 22 * + col2 * - + col1 * + col0 NOT BETWEEN ( - col1 ) AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT SUM( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2034
SELECT SUM ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2035
SELECT ALL col1 - - CAST( + col0 AS SIGNED ) FROM tab2
----
141
142
97

skipif mysql # not compatible
query I rowsort label-2035
SELECT ALL col1 - - CAST ( + col0 AS INTEGER ) FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query II rowsort label-2036
SELECT ALL MIN( + col0 ) AS col0, MIN( - - col1 ) AS col1 FROM tab0
----
15
1

skipif mysql # not compatible
query II rowsort label-2036
SELECT ALL MIN ( + col0 ) AS col0, MIN ( - - col1 ) AS col1 FROM tab0
----
15
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2037
SELECT col2 * + CAST( - - col1 AS SIGNED ) - - - col1 FROM tab2
----
1122
3003
3819

skipif mysql # not compatible
query I rowsort label-2037
SELECT col2 * + CAST ( - - col1 AS INTEGER ) - - - col1 FROM tab2
----
1122
3003
3819

onlyif mysql # aggregate syntax: 
query I rowsort label-2038
SELECT COUNT( * ) - 91 AS col1 FROM tab2
----
-88

skipif mysql # not compatible
query I rowsort label-2038
SELECT COUNT ( * ) - 91 AS col1 FROM tab2
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2039
SELECT DISTINCT CAST( col1 AS SIGNED ) * - + col0 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2039
SELECT DISTINCT CAST ( col1 AS INTEGER ) * - + col0 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL + - col2 FROM tab0 AS cor0 WHERE NOT ( NOT + col0 > NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2041
SELECT ALL - 62 * - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * 42 - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2041
SELECT ALL - 62 * - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * 42 - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 4 / - - ( 73 ) > col0 * + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2043
SELECT + CAST( - col0 AS SIGNED ) * - + 13 * + col2 FROM tab0 AS cor0
----
11310
124839
9165

skipif mysql # not compatible
query I rowsort label-2043
SELECT + CAST ( - col0 AS INTEGER ) * - + 13 * + col2 FROM tab0 AS cor0
----
11310
124839
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-2044
SELECT ALL - COUNT( * ) * + 36 FROM tab2 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-2044
SELECT ALL - COUNT ( * ) * + 36 FROM tab2 cor0
----
-108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 92 col1 FROM tab0 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT ALL + ( - COUNT( * ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + ( - COUNT ( * ) ) AS col1 FROM tab0
----
-3

query I rowsort
SELECT 64 * + 79 * - - 21 + + col1 FROM tab0 cor0
----
106177
106197
106257

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2048
SELECT ALL + COUNT( * ) DIV + + COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2048
SELECT ALL + COUNT ( * ) / + + COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2049
SELECT ALL + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - + 4 * - - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2049
SELECT ALL + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - + 4 * - - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2050
SELECT DISTINCT ( - + ( 84 ) ) DIV col0 FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-2050
SELECT DISTINCT ( - + ( 84 ) ) / col0 FROM tab0 AS cor0
----
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2051
SELECT ALL + 48 FROM tab2 AS cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED ) * - 85 * + col2
----

skipif mysql # not compatible
query I rowsort label-2051
SELECT ALL + 48 FROM tab2 AS cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER ) * - 85 * + col2
----

query I rowsort
SELECT 15 * + col1 AS col1 FROM tab1 AS cor0
----
210
705
75

query I rowsort
SELECT DISTINCT + 95 AS col1 FROM tab2 WHERE NOT col2 + + 56 BETWEEN + 76 AND col1
----
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2054
SELECT ALL ( CAST( + 32 AS SIGNED ) ) AS col0 FROM tab2
----
32
32
32

skipif mysql # not compatible
query I rowsort label-2054
SELECT ALL ( CAST ( + 32 AS INTEGER ) ) AS col0 FROM tab2
----
32
32
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2055
SELECT DISTINCT - CAST( NULL AS SIGNED ) + - + 81 FROM tab0 WHERE NOT col2 <> NULL
----

skipif mysql # not compatible
query I rowsort label-2055
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + - + 81 FROM tab0 WHERE NOT col2 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * 70 AS col0, - ( + col1 ) * + 41 col0 FROM tab2
----
3220
-2091
4480
-3157
5250
-2747

onlyif mysql # aggregate syntax: 
query I rowsort label-2057
SELECT ALL - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab0, tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab0, tab2 AS cor0
----
-18

query I rowsort
SELECT DISTINCT 6 * + col0 FROM tab2
----
276
384
450

onlyif mysql # aggregate syntax: 
query II rowsort label-2059
SELECT MIN( - + col2 ) AS col1, - ( - + ( + 37 ) ) AS col2 FROM tab0
----
-99
37

skipif mysql # not compatible
query II rowsort label-2059
SELECT MIN ( - + col2 ) AS col1, - ( - + ( + 37 ) ) AS col2 FROM tab0
----
-99
37

query II rowsort
SELECT ALL 33 * + + 81, + col1 FROM tab1
----
2673
14
2673
47
2673
5

query I rowsort
SELECT - 50 AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 + + col0 col0 FROM tab0 AS cor0
----
101
19
91

query I rowsort
SELECT 68 + + + 72 FROM tab0 AS cor0
----
140
140
140

query I rowsort
SELECT ALL + col0 + + - 3 AS col1 FROM tab2 AS cor0
----
43
61
72

query I rowsort
SELECT + 58 * col1 AS col1 FROM tab0
----
1218
4698
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT - COUNT( * ) * + 58 AS col2 FROM tab0
----
-174

skipif mysql # not compatible
query I rowsort label-2066
SELECT - COUNT ( * ) * + 58 AS col2 FROM tab0
----
-174

query I rowsort
SELECT - + col0 * + - 12 FROM tab2 AS cor0
----
552
768
900

onlyif mysql # DIV for integer division: 
query I rowsort label-2068
SELECT + col0 - + col1 DIV - + col2 + + col2 FROM tab1 cor0
----
144
147
159

skipif mysql # not compatible
query I rowsort label-2068
SELECT + col0 - + col1 / - + col2 + + col2 FROM tab1 cor0
----
144
147
159

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 48 <> - col0
----

query I rowsort
SELECT + col0 - + ( col0 ) + - 82 + - 37 * - col2 FROM tab2 AS cor0
----
1398
2064
769

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT ALL + MAX( + col1 ) + + 47 FROM tab0 AS cor0
----
128

skipif mysql # not compatible
query I rowsort label-2071
SELECT ALL + MAX ( + col1 ) + + 47 FROM tab0 AS cor0
----
128

query I rowsort
SELECT DISTINCT + col2 + - + 40 AS col2 FROM tab2 AS cor0
----
-17
0
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2073
SELECT ALL - col2 / + col1 * + 54 - - col0 + CAST( NULL AS SIGNED ) + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2073
SELECT ALL - col2 / + col1 * + 54 - - col0 + CAST ( NULL AS INTEGER ) + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2074
SELECT DISTINCT + + MIN( DISTINCT CAST( 94 AS SIGNED ) ) + - COUNT( * ) * CAST( NULL AS SIGNED ) AS col0, - 93 FROM tab1 cor0
----
NULL
-93

skipif mysql # not compatible
query II rowsort label-2074
SELECT DISTINCT + + MIN ( DISTINCT CAST ( 94 AS INTEGER ) ) + - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col0, - 93 FROM tab1 cor0
----
NULL
-93

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL col0 - + - 64 + + 99 AS col2 FROM tab0 AS cor0
----
178
250
260

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 78 - - 28 col0 FROM tab2 WHERE + col2 >= NULL
----

query I rowsort
SELECT DISTINCT col2 * - + col2 - + col1 AS col1 FROM tab0
----
-121
-2290
-9802

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT COUNT( * ) + + + 52 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-2080
SELECT COUNT ( * ) + + + 52 FROM tab2
----
55

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2082
SELECT ALL - 52 * CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2082
SELECT ALL - 52 * CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT col2, ( + col2 ) FROM tab2
----
23
23
40
40
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT + SUM( ALL - col1 ) AS col0 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-2084
SELECT + SUM ( ALL - col1 ) AS col0 FROM tab0
----
-103

query I rowsort
SELECT DISTINCT + 58 AS col2 FROM tab0 WHERE NOT + - col2 * col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 - - col0 AS col1, col1 FROM tab0 AS cor0 WHERE NULL = - 4
----

query I rowsort
SELECT + AVG ( col0 ) FROM tab1 WHERE NOT ( col1 ) NOT BETWEEN ( col2 ) AND col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2088
SELECT DISTINCT + 10 * - SUM( ALL - - col1 ) FROM tab1 AS cor0
----
-660

skipif mysql # not compatible
query I rowsort label-2088
SELECT DISTINCT + 10 * - SUM ( ALL - - col1 ) FROM tab1 AS cor0
----
-660

query I rowsort
SELECT ALL - - 58 FROM tab0 AS cor0
----
58
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2090
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + ( CAST( - + 81 AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2090
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + ( CAST ( - + 81 AS INTEGER ) ) <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2091
SELECT 84 + COUNT( DISTINCT col0 ) AS col1, - COUNT( * ) - COUNT( * ) FROM tab1
----
87
-6

skipif mysql # not compatible
query II rowsort label-2091
SELECT 84 + COUNT ( DISTINCT col0 ) AS col1, - COUNT ( * ) - COUNT ( * ) FROM tab1
----
87
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2092
SELECT ALL + CAST( + col2 AS SIGNED ) * col1 * - col1 AS col0 FROM tab2
----
-237160
-260362
-59823

skipif mysql # not compatible
query I rowsort label-2092
SELECT ALL + CAST ( + col2 AS INTEGER ) * col1 * - col1 AS col0 FROM tab2
----
-237160
-260362
-59823

query I rowsort
SELECT - 72 AS col1 FROM tab1 WHERE + col0 >= - col2 * - 58
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2094
SELECT 92 + - + COUNT( - col0 ), + SUM( + + col2 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
89
NULL

skipif mysql # not compatible
query II rowsort label-2094
SELECT 92 + - + COUNT ( - col0 ), + SUM ( + + col2 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
89
NULL

query I rowsort
SELECT col1 + 85 + col1 FROM tab2
----
187
219
239

query I rowsort
SELECT DISTINCT + 57 * + 33 FROM tab1
----
1881

query I rowsort
SELECT ( + col0 ) + - 18 FROM tab0
----
-3
69
79

onlyif mysql # DIV for integer division: 
query I rowsort label-2098
SELECT 25 DIV + + col1 col0 FROM tab0
----
0
1
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2098
SELECT 25 / + + col1 col0 FROM tab0
----
0
1
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2099
SELECT 40 * - - CAST( NULL AS SIGNED ) * 85 AS col2, + 34 FROM tab0
----
NULL
34
NULL
34
NULL
34

skipif mysql # not compatible
query II rowsort label-2099
SELECT 40 * - - CAST ( NULL AS INTEGER ) * 85 AS col2, + 34 FROM tab0
----
NULL
34
NULL
34
NULL
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2100
SELECT ALL col1 AS col0, CAST( 15 AS SIGNED ) FROM tab0
----
1
15
21
15
81
15

skipif mysql # not compatible
query II rowsort label-2100
SELECT ALL col1 AS col0, CAST ( 15 AS INTEGER ) FROM tab0
----
1
15
21
15
81
15

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < col0 + + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2102
SELECT + CAST( NULL AS SIGNED ) / + + ( col0 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2102
SELECT + CAST ( NULL AS INTEGER ) / + + ( col0 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + col1 + - 19 AS col0 FROM tab1 AS cor0
----
-14
-5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE - 90 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2104
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE - 90 IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT - col1, 33 + + - col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
19
-47
-14
-5
28

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 + - 87 col2 FROM tab2 cor0
----
-10
-20
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
59
68
96

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 = + + col0 * - col2 + - ( + col2 ) + col2
----

query I rowsort
SELECT col2 * - ( - col0 ) AS col0 FROM tab2 cor0 WHERE col2 NOT BETWEEN + 20 + col0 AND NULL
----
1058
2560
4350

query I rowsort
SELECT 72 AS col2 FROM tab0 WHERE + col0 > NULL
----

query I rowsort
SELECT - col2 * - - col0 + + 1 FROM tab2
----
-1057
-2559
-4349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2112
SELECT DISTINCT 4 DIV - COUNT( * ) AS col2 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2112
SELECT DISTINCT 4 / - COUNT ( * ) AS col2 FROM tab1
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2113
SELECT ALL 49 + - - 20 + - col0 DIV - 57 FROM tab2
----
69
70
70

skipif mysql # not compatible
query I rowsort label-2113
SELECT ALL 49 + - - 20 + - col0 / - 57 FROM tab2
----
69
70
70

query III rowsort
SELECT * FROM tab2 WHERE 11 * - - 66 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE + col2 * + - col1 / 70 * 58 + + - 75 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2115
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE + col2 * + - col1 / 70 * 58 + + - 75 IS NULL
----
0

query I rowsort
SELECT - 73 FROM tab2 AS cor0 WHERE + 90 IS NOT NULL
----
-73
-73
-73

query I rowsort
SELECT ALL ( - + col1 ) AS col2 FROM tab1 AS cor0
----
-14
-47
-5

query I rowsort
SELECT DISTINCT - + col1 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2119
SELECT ALL 22 AS col0, + ( - CAST( NULL AS SIGNED ) ) FROM tab0
----
22
NULL
22
NULL
22
NULL

skipif mysql # not compatible
query II rowsort label-2119
SELECT ALL 22 AS col0, + ( - CAST ( NULL AS INTEGER ) ) FROM tab0
----
22
NULL
22
NULL
22
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT DISTINCT CAST( - COUNT( * ) AS SIGNED ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2120
SELECT DISTINCT CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 cor0
----
-3

query I rowsort
SELECT - + col0 * - - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2122
SELECT ALL SUM( + col1 ) * + - 60 AS col2 FROM tab2 AS cor0
----
-11700

skipif mysql # not compatible
query I rowsort label-2122
SELECT ALL SUM ( + col1 ) * + - 60 AS col2 FROM tab2 AS cor0
----
-11700

query I rowsort
SELECT - 51 * - col2 - 55 + + ( 29 ) * - - col2 FROM tab0 AS cor0
----
3705
745
7865

onlyif mysql # aggregate syntax: 
query I rowsort label-2124
SELECT + + COUNT( * ) * COUNT( ALL - 68 ) AS col1 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2124
SELECT + + COUNT ( * ) * COUNT ( ALL - 68 ) AS col1 FROM tab0 AS cor0
----
9

query I rowsort
SELECT ALL + - 78 + + col2 FROM tab0 cor0
----
-31
-68
21

query I rowsort
SELECT ALL + - col2 * + 35 * + 52 AS col0 FROM tab1 AS cor0
----
-107380
-123760
-174720

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE + col0 / + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2128
SELECT ALL + MAX( ALL - col1 ) AS col0 FROM tab2 WHERE NOT + + 15 * - + col1 + - + col1 + 69 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2128
SELECT ALL + MAX ( ALL - col1 ) AS col0 FROM tab2 WHERE NOT + + 15 * - + col1 + - + col1 + 69 IS NOT NULL
----
NULL

query I rowsort
SELECT + ( col0 ) FROM tab1 WHERE - 30 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 90 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 80 + col2 FROM tab1
----
-12
-21
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2132
SELECT + ( + - col2 ) DIV col1 + - + 38 AS col1 FROM tab1 AS cor0
----
-39
-44
-49

skipif mysql # not compatible
query I rowsort label-2132
SELECT + ( + - col2 ) / col1 + - + 38 AS col1 FROM tab1 AS cor0
----
-39
-44
-49

query I rowsort
SELECT + + col0 + 95 FROM tab1 AS cor0 WHERE NULL > 69
----

query II rowsort
SELECT ALL - col2 AS col0, col0 + col1 AS col1 FROM tab0
----
-10
108
-47
96
-99
98

query I rowsort
SELECT ALL + col1 + + + 33 FROM tab0 AS cor0
----
114
34
54

query II rowsort
SELECT DISTINCT - + col2 AS col2, - col1 FROM tab0 AS cor0
----
-10
-21
-47
-81
-99
-1

query I rowsort
SELECT - col0 * - - col0 - 54 + - 23 AS col0 FROM tab0 AS cor0
----
-302
-7646
-9486

query II rowsort
SELECT + - col2, + col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT DISTINCT - 76 * + 7 AS col2 FROM tab2 AS cor0
----
-532

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 64 NOT IN ( 59, - col0, 25 * + 90 + - col2 * col0 + + col2 + 51 + + col2, col0 + + col0, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2140
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 64 NOT IN ( 59, - col0, 25 * + 90 + - col2 * col0 + + col2 + 51 + + col2, col0 + + col0, + col1 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2141
SELECT + CAST( - + col2 AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2141
SELECT + CAST ( - + col2 AS INTEGER ) FROM tab1
----
-59
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 78 AS col2, + 46 + + col0 col0 FROM tab1 WHERE NOT - + ( + col2 ) + - + col2 BETWEEN ( + - col1 + + col0 ) AND - col0
----
78
131
78
137
78
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2143
SELECT CAST( + 42 AS SIGNED ) FROM tab2
----
42
42
42

skipif mysql # not compatible
query I rowsort label-2143
SELECT CAST ( + 42 AS INTEGER ) FROM tab2
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-2144
SELECT COUNT( * ) * + 23 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-2144
SELECT COUNT ( * ) * + 23 FROM tab1
----
69

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2145
SELECT * FROM tab1 WHERE NOT + CAST( - ( - 29 ) AS DECIMAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2145
SELECT * FROM tab1 WHERE NOT + CAST ( - ( - 29 ) AS REAL ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col1 * + ( 37 ) AS col1 FROM tab2
----
-1887
-2479
-2849

query I rowsort
SELECT 93 * + 92 FROM tab1
----
8556
8556
8556

query I rowsort
SELECT + ( + 56 ) AS col2 FROM tab2
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-2149
SELECT ( MAX( + col2 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2149
SELECT ( MAX ( + col2 ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT ALL + 82 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2151
SELECT CAST( NULL AS SIGNED ) + - + 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2151
SELECT CAST ( NULL AS INTEGER ) + - + 50 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2152
SELECT DISTINCT col0 * - - ( + CAST( col0 AS SIGNED ) ) FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-2152
SELECT DISTINCT col0 * - - ( + CAST ( col0 AS INTEGER ) ) FROM tab0
----
225
7569
9409

query II rowsort
SELECT + 65, + col2 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
65
10
65
47
65
99

query I rowsort
SELECT DISTINCT + - 1 AS col0 FROM tab2 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT ALL + 24 + - + ( - + COUNT( * ) ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-2155
SELECT ALL + 24 + - + ( - + COUNT ( * ) ) FROM tab2 AS cor0
----
27

query III rowsort
SELECT * FROM tab1 WHERE - col2 + + col1 - + + 33 * 96 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 27, + ( - + col1 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - + col1
----

query I rowsort
SELECT col2 + - 76 AS col1 FROM tab0
----
-29
-66
23

query II rowsort
SELECT DISTINCT col2 AS col1, + col0 AS col1 FROM tab1
----
59
85
68
91
96
51

query II rowsort
SELECT col2, 23 - + 10 AS col2 FROM tab0
----
10
13
47
13
99
13

query I rowsort
SELECT DISTINCT ( - 19 ) + + 93 + 13 FROM tab1
----
87

query I rowsort
SELECT - ( 49 ) * 68 AS col1 FROM tab2
----
-3332
-3332
-3332

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 28 + - 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 * - col2 FROM tab0 WHERE NULL >= + 50
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 96 > NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2166
SELECT ALL 78, - col0 DIV - + col1 AS col1 FROM tab0 AS cor0
----
78
0
78
4
78
97

skipif mysql # not compatible
query II rowsort label-2166
SELECT ALL 78, - col0 / - + col1 AS col1 FROM tab0 AS cor0
----
78
0
78
4
78
97

query I rowsort
SELECT 45 + col0 * - 55 FROM tab1 AS cor0 WHERE col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 - col1 + + + 40 AS col2 FROM tab2 AS cor0
----
12
3
31

query I rowsort
SELECT ALL - 99 + - - 24 AS col1 FROM tab0 AS cor0
----
-75
-75
-75

query II rowsort
SELECT - 36 + + - col1, + 1 AS col1 FROM tab0
----
-117
1
-37
1
-57
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT 31 DIV + ( 67 ) + - 71 FROM tab0
----
-71
-71
-71

skipif mysql # not compatible
query I rowsort label-2171
SELECT 31 / + ( 67 ) + - 71 FROM tab0
----
-71
-71
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-2172
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= - 86
----
0

skipif mysql # not compatible
query I rowsort label-2172
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL <= - 86
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2173
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0 * + col2 + CAST( - - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2173
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = - col0 * + col2 + CAST ( - - col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2174
SELECT DISTINCT + + MIN( ALL 16 ) DIV + COUNT( * ) AS col1 FROM tab2 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2174
SELECT DISTINCT + + MIN ( ALL 16 ) / + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2175
SELECT col0 DIV + col1 + + - col2 col1 FROM tab0 AS cor0
----
-2
-47
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2175
SELECT col0 / + col1 + + - col2 col1 FROM tab0 AS cor0
----
-2
-47
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-2176
SELECT DISTINCT - + MIN( ALL + col1 ) AS col0, + 16 FROM tab1 AS cor0
----
-5
16

skipif mysql # not compatible
query II rowsort label-2176
SELECT DISTINCT - + MIN ( ALL + col1 ) AS col0, + 16 FROM tab1 AS cor0
----
-5
16

onlyif mysql # DIV for integer division: 
query I rowsort label-2177
SELECT + col0 DIV + - ( - + 24 ) FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-2177
SELECT + col0 / + - ( - + 24 ) FROM tab0 AS cor0
----
0
3
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2178
SELECT DISTINCT + COUNT( * ) DIV - - 5 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT + COUNT ( * ) / - - 5 AS col1 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 + 23 col1 FROM tab1 AS cor0
----
1367
318
3219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2180
SELECT ( - + 16 ) / + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2180
SELECT ( - + 16 ) / + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 * - col2 * + col1 FROM tab1
----
-25075
-290836
-68544

query II rowsort
SELECT DISTINCT + col2, + ( + + 40 ) + - 39 AS col1 FROM tab0
----
10
1
47
1
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2183
SELECT DISTINCT MIN( ALL col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2183
SELECT DISTINCT MIN ( ALL col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT ( - + col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-2185
SELECT col0 DIV col0 * col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-2185
SELECT col0 / col0 * col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT ( - - col2 ) * - ( col2 ) * + col0 FROM tab1
----
-295885
-420784
-470016

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT + 48 * + - COUNT( * ) FROM tab2 AS cor0
----
-144

skipif mysql # not compatible
query I rowsort label-2187
SELECT + 48 * + - COUNT ( * ) FROM tab2 AS cor0
----
-144

query I rowsort
SELECT col2 * - + col0 FROM tab0 cor0
----
-705
-870
-9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 72 col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 col0 FROM tab1 cor0
----
138
65
90

query I rowsort
SELECT + ( + 57 ) FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL 7 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT 3 + + ( col2 ) - - + col2 AS col1 FROM tab0 AS cor0
----
201
23
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2194
SELECT ( - SUM( ALL - col2 ) ) AS col1 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2194
SELECT ( - SUM ( ALL - col2 ) ) AS col1 FROM tab2 AS cor0
----
121

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + - col1 NOT BETWEEN + 39 * + + 3 AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2196
SELECT + SUM( + 36 ) AS col1 FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-2196
SELECT + SUM ( + 36 ) AS col1 FROM tab0 AS cor0
----
108

query I rowsort
SELECT + - 66 AS col1 FROM tab1 cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT 63 + + - MIN( + col0 ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT 63 + + - MIN ( + col0 ) FROM tab1 AS cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2199
SELECT ALL + CAST( + 11 AS SIGNED ) + + COUNT( * ) FROM tab0
----
14

skipif mysql # not compatible
query I rowsort label-2199
SELECT ALL + CAST ( + 11 AS INTEGER ) + + COUNT ( * ) FROM tab0
----
14

onlyif mysql # DIV for integer division: 
query I rowsort label-2200
SELECT ALL - 48 * col1 DIV - 45 - col0 - + - 46 * - - col0 - - col2 FROM tab2
----
2147
3002
3504

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL - 48 * col1 / - 45 - col0 - + - 46 * - - col0 - - col2 FROM tab2
----
2147
3002
3504

query III rowsort
SELECT * FROM tab2 WHERE + 5 >= + 69
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 < + + col1 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + COUNT( * ) + + 70 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2203
SELECT + COUNT ( * ) + + 70 FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT 76 + COUNT( * ) col0 FROM tab1
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2204
SELECT 76 + COUNT ( * ) col0 FROM tab1
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2205
SELECT 18 + - COUNT( * ) * 56 FROM tab0 AS cor0
----
-150

skipif mysql # not compatible
query I rowsort label-2205
SELECT 18 + - COUNT ( * ) * 56 FROM tab0 AS cor0
----
-150

query II rowsort
SELECT + + 67 AS col0, + col1 AS col1 FROM tab2 AS cor0 WHERE + 36 IS NOT NULL
----
67
51
67
67
67
77

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT - col1 * - + 84 > NULL
----

query I rowsort
SELECT ALL - + 89 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

onlyif mysql # aggregate syntax: 
query I rowsort label-2209
SELECT DISTINCT MIN( ALL - + 47 ) * COUNT( * ) * - 14 FROM tab2 AS cor0
----
1974

skipif mysql # not compatible
query I rowsort label-2209
SELECT DISTINCT MIN ( ALL - + 47 ) * COUNT ( * ) * - 14 FROM tab2 AS cor0
----
1974

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + col2 * 86 * + col2 * + col0 AND NULL
----

query II rowsort
SELECT DISTINCT - col2 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2212
SELECT 95 AS col2, - COUNT( * ) FROM tab0 AS cor0
----
95
-3

skipif mysql # not compatible
query II rowsort label-2212
SELECT 95 AS col2, - COUNT ( * ) FROM tab0 AS cor0
----
95
-3

query I rowsort
SELECT ALL - - col2 * + col1 + + - col1 FROM tab2 AS cor0
----
1122
3003
3819

query II rowsort
SELECT - - col2 AS col1, 19 FROM tab1 cor0
----
59
19
68
19
96
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( 86 + 98 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2216
SELECT MAX( DISTINCT + 99 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2216
SELECT MAX ( DISTINCT + 99 ) FROM tab1
----
99

query II rowsort
SELECT ALL - col0 * - col2, col0 FROM tab2
----
1058
46
2560
64
4350
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2218
SELECT - - col2 AS col0 FROM tab0 WHERE - col1 * - col1 * + CAST( NULL AS SIGNED ) >= col0
----

skipif mysql # not compatible
query I rowsort label-2218
SELECT - - col2 AS col0 FROM tab0 WHERE - col1 * - col1 * + CAST ( NULL AS INTEGER ) >= col0
----

query I rowsort
SELECT - 12 * - 62 FROM tab2
----
744
744
744

onlyif mysql # aggregate syntax: 
query I rowsort label-2220
SELECT ALL - MAX( + col0 ) * - - 21 * - + MIN( - - col1 ) FROM tab0
----
2037

skipif mysql # not compatible
query I rowsort label-2220
SELECT ALL - MAX ( + col0 ) * - - 21 * - + MIN ( - - col1 ) FROM tab0
----
2037

onlyif mysql # aggregate syntax: 
query I rowsort label-2221
SELECT ALL 11 * - COUNT( 64 ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-2221
SELECT ALL 11 * - COUNT ( 64 ) FROM tab0
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2222
SELECT DISTINCT + COUNT( * ) DIV COUNT( * ) * - SUM( + 15 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2222
SELECT DISTINCT + COUNT ( * ) / COUNT ( * ) * - SUM ( + 15 ) FROM tab2 AS cor0
----
-45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT DISTINCT - 95 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + + + 24 + + col0 NOT IN ( col1, col2 )
----

skipif mysql # not compatible
query I rowsort label-2223
SELECT DISTINCT - 95 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + + + 24 + + col0 NOT IN ( col1, col2 )
----

query I rowsort
SELECT + col2 AS col1 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + ( - col0 ) - + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 24 + + 62 FROM tab0 AS cor0
----
38

query I rowsort
SELECT + col2 + - col0 FROM tab0 cor0 WHERE ( NULL ) = + 95
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2228
SELECT DISTINCT + 79 + - CAST( - col1 AS SIGNED ) AS col2 FROM tab1 cor0 WHERE + 25 + + 40 <> + + col2
----
126
84
93

skipif mysql # not compatible
query I rowsort label-2228
SELECT DISTINCT + 79 + - CAST ( - col1 AS INTEGER ) AS col2 FROM tab1 cor0 WHERE + 25 + + 40 <> + + col2
----
126
84
93

query I rowsort
SELECT ALL - 35 + - 21 * - col2 AS col0 FROM tab1
----
1204
1393
1981

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT SUM( - 97 ) AS col2 FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-2230
SELECT SUM ( - 97 ) AS col2 FROM tab0
----
-291

onlyif mysql # aggregate syntax: 
query II rowsort label-2231
SELECT - MAX( ALL - + col1 ) AS col1, 52 col2 FROM tab0
----
1
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2231
SELECT - MAX ( ALL - + col1 ) AS col1, 52 col2 FROM tab0
----
1
52

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2232
SELECT DISTINCT col0 * + col0 col1, CAST( NULL AS SIGNED ) * + + ( - 65 ) / - + 10 FROM tab1
----
2601
NULL
7225
NULL
8281
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2232
SELECT DISTINCT col0 * + col0 col1, CAST ( NULL AS INTEGER ) * + + ( - 65 ) / - + 10 FROM tab1
----
2601
NULL
7225
NULL
8281
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2233
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 WHERE NOT + 89 * + 98 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2233
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 89 * + 98 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2234
SELECT DISTINCT - COUNT( * ) DIV + - ( COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2234
SELECT DISTINCT - COUNT ( * ) / + - ( COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + - 6 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE + 18 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2237
SELECT ALL MIN( DISTINCT - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL MIN ( DISTINCT - col2 ) FROM tab0
----
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2238
SELECT COUNT( * ) * + - MAX( + + CAST( NULL AS SIGNED ) ) * COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2238
SELECT COUNT ( * ) * + - MAX ( + + CAST ( NULL AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + - 3 * - + col2 FROM tab1 cor0
----
177
204
288

query II rowsort
SELECT ALL - + col2 AS col1, - 66 FROM tab0 AS cor0
----
-10
-66
-47
-66
-99
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2241
SELECT - + COUNT( * ) AS col1, - 1 AS col1 FROM tab1 AS cor0
----
-3
-1

skipif mysql # not compatible
query II rowsort label-2241
SELECT - + COUNT ( * ) AS col1, - 1 AS col1 FROM tab1 AS cor0
----
-3
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-2242
SELECT - - 46 DIV col0 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-2242
SELECT - - 46 / col0 FROM tab0 AS cor0
----
0
0
3

query I rowsort
SELECT ALL 94 FROM tab0 WHERE NOT col1 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2244
SELECT ALL * FROM tab0 WHERE NOT CAST( - col2 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2244
SELECT ALL * FROM tab0 WHERE NOT CAST ( - col2 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT - MAX( + 97 ) FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT - MAX ( + 97 ) FROM tab2
----
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col1 ) BETWEEN NULL AND - col2
----
97
1
99

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) AS col1 FROM tab2
----
-13
-5
8

onlyif mysql # DIV for integer division: 
query I rowsort label-2249
SELECT DISTINCT - + col1 * 59 + - + col0 + + col2 DIV 76 AS col2 FROM tab2 cor0
----
-3055
-4028
-4607

skipif mysql # not compatible
query I rowsort label-2249
SELECT DISTINCT - + col1 * 59 + - + col0 + + col2 / 76 AS col2 FROM tab2 cor0
----
-3055
-4028
-4607

query I rowsort
SELECT col0 * - - col1 * 98 + - 27 AS col0 FROM tab0 AS cor0
----
119043
179019
9479

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 21 + + - col1 * col2 AS col2 FROM tab1
----
-1323
-274
-3175

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 65 * + 85 AS col0, 48 col0 FROM tab2 AS cor0
----
5525
48
5525
48
5525
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2254
SELECT - 68 / + col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2254
SELECT - 68 / + col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 * - + col0 * + col2 + 10 * - col0 AS col0 FROM tab2 cor0
----
-164480
-327000
-49128

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + col1 * - 66 + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT COUNT( * ) - 95 col2 FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2257
SELECT COUNT ( * ) - 95 col2 FROM tab2 AS cor0
----
-92

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + + 65 IS NOT NULL AND NOT + col1 / + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT + ( + SUM( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT + ( + SUM ( + col2 ) ) AS col0 FROM tab2 AS cor0
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 57 + col1 col2, col0 AS col0 FROM tab0 AS cor0
----
138
15
58
97
78
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2261
SELECT ALL * FROM tab1 WHERE NOT col1 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2261
SELECT ALL * FROM tab1 WHERE NOT col1 >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

query I rowsort
SELECT + col2 + - - col2 - + ( - - 89 ) FROM tab1
----
103
29
47

query I rowsort
SELECT + 61 + col2 AS col1 FROM tab0
----
108
160
71

onlyif mysql # DIV for integer division: 
query II rowsort label-2265
SELECT DISTINCT 40 - - col1 DIV - 96 AS col1, col0 FROM tab2
----
40
46
40
64
40
75

skipif mysql # not compatible
query II rowsort label-2265
SELECT DISTINCT 40 - - col1 / - 96 AS col1, col0 FROM tab2
----
40
46
40
64
40
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IS NULL OR - - col1 * + 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 IN ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 53 - 53 FROM tab2 WHERE NULL > col0 * - 58
----

query I rowsort
SELECT 58 + + col2 AS col1 FROM tab1
----
117
126
154

onlyif mysql # aggregate syntax: 
query I rowsort label-2270
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NULL NOT IN ( col0 / - 15 )
----
0

skipif mysql # not compatible
query I rowsort label-2270
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NULL NOT IN ( col0 / - 15 )
----
0

query I rowsort
SELECT DISTINCT col1 * col0 FROM tab0 WHERE NULL NOT BETWEEN ( NULL ) AND col2
----

query III rowsort
SELECT * FROM tab1 WHERE + col1 BETWEEN NULL AND ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) IN ( + ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT + MAX( 0 ) FROM tab2 WHERE NOT ( + ( col1 ) + - 51 * col2 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT + MAX ( 0 ) FROM tab2 WHERE NOT ( + ( col1 ) + - 51 * col2 ) <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2275
SELECT ALL - MIN( ALL 20 ) AS col2 FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-2275
SELECT ALL - MIN ( ALL 20 ) AS col2 FROM tab1
----
-20

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT - 34 * - col0 + col0 * - col0 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-4335
-5187
-867

onlyif mysql # DIV for integer division: 
query I rowsort label-2278
SELECT + 47 DIV col1 - col1 * 46 AS col0 FROM tab1
----
-2161
-221
-641

skipif mysql # not compatible
query I rowsort label-2278
SELECT + 47 / col1 - col1 * 46 AS col0 FROM tab1
----
-2161
-221
-641

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT SUM( DISTINCT col1 ) * 50 col1 FROM tab1
----
3300

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2279
SELECT SUM ( DISTINCT col1 ) * 50 col1 FROM tab1
----
3300

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT 5 * - COUNT( * ) AS col1 FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-2280
SELECT 5 * - COUNT ( * ) AS col1 FROM tab2
----
-15

query I rowsort
SELECT + col0 * - col1 - col1 * + col1 AS col1 FROM tab0
----
-2268
-7776
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2282
SELECT ALL + col0 * + ( col2 * 73 ) + + CAST( - 19 AS SIGNED ) AS col1 FROM tab1
----
357389
366076
451705

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL + col0 * + ( col2 * 73 ) + + CAST ( - 19 AS INTEGER ) AS col1 FROM tab1
----
357389
366076
451705

query I rowsort
SELECT DISTINCT - 15 + col0 AS col2 FROM tab0 WHERE NULL IN ( - col0 )
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE ( col2 * col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT - CAST( col1 AS SIGNED ) * - 5 AS col0 FROM tab2 WHERE NOT + col0 * + 90 IS NULL
----
255
335
385

skipif mysql # not compatible
query I rowsort label-2285
SELECT - CAST ( col1 AS INTEGER ) * - 5 AS col0 FROM tab2 WHERE NOT + col0 * + 90 IS NULL
----
255
335
385

query III rowsort
SELECT * FROM tab0 WHERE + col0 / col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 13 AS col1 FROM tab2 WHERE NULL <> - col0
----

query I rowsort
SELECT DISTINCT - col1 + col0 * + 38 AS col0 FROM tab2
----
1697
2355
2783

query I rowsort
SELECT ALL + col1 + col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( + 66 ) AND 26
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2290
SELECT DISTINCT ( + COUNT( * ) ) * MIN( ALL col1 DIV + col2 + col2 ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-2290
SELECT DISTINCT ( + COUNT ( * ) ) * MIN ( ALL col1 / + col2 + col2 ) FROM tab1
----
177

query I rowsort
SELECT + col0 + 84 FROM tab1 WHERE NOT ( 5 ) <> + col2
----

query I rowsort
SELECT - 33 FROM tab1 WHERE NOT col2 + ( col0 + col1 ) BETWEEN + col2 * + 91 AND ( NULL )
----
-33
-33
-33

query I rowsort
SELECT DISTINCT 84 + 23 AS col2 FROM tab0
----
107

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 7 * col0 ) IS NULL
----

query I rowsort
SELECT DISTINCT 85 + - col2 FROM tab2 AS cor0
----
27
45
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2296
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE + 71 < 96 + col0
----
3

skipif mysql # not compatible
query I rowsort label-2296
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE + 71 < 96 + col0
----
3

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) NOT IN ( - 38 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT COUNT( * ) * COUNT( * ) + 37 AS col0 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2298
SELECT COUNT ( * ) * COUNT ( * ) + 37 AS col0 FROM tab2
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT - 47 * COUNT( * ) + MAX( 9 + - col0 ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-2299
SELECT - 47 * COUNT ( * ) + MAX ( 9 + - col0 ) FROM tab1
----
-183

query I rowsort
SELECT ALL 46 * - 17 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2
----
9 values hashing to 92d61ff6ad50f2f7762ed51567f01894

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 99 * col1 - 99 * - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT DISTINCT - 16 * + 10 - + col0 * ( - 3 DIV col0 ) FROM tab1 AS cor0
----
-160

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT - 16 * + 10 - + col0 * ( - 3 / col0 ) FROM tab1 AS cor0
----
-160

query I rowsort
SELECT ALL - - col1 - - 0 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT DISTINCT + col2 - + 43 FROM tab0
----
-33
4
56

query I rowsort
SELECT 13 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2306
SELECT CAST( + 11 AS SIGNED ) FROM tab2
----
11
11
11

skipif mysql # not compatible
query I rowsort label-2306
SELECT CAST ( + 11 AS INTEGER ) FROM tab2
----
11
11
11

query I rowsort
SELECT DISTINCT col1 * - + col0 - col2 AS col1 FROM tab1
----
-4345
-484
-810

query I rowsort
SELECT - col1 FROM tab2 WHERE 21 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT ALL - 90 * - - 89 FROM tab2
----
-8010
-8010
-8010

onlyif mysql # aggregate syntax: 
query I rowsort label-2310
SELECT ALL SUM( DISTINCT + 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2310
SELECT ALL SUM ( DISTINCT + 1 ) FROM tab1
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 29 / col1 + col2 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * - col1 AS col1 FROM tab1 WHERE ( col0 * col1 ) IS NOT NULL
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col0 ) col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 + - col2 * col2 )
----

query I rowsort
SELECT DISTINCT col2 * 27 * - ( - 72 ) AS col1 FROM tab2 AS cor0
----
112752
44712
77760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - ( - 42 ) col2 FROM tab0 AS cor0
----
3402
42
882

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 * 7 < col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 * + - 77 * + 3 AS col1 FROM tab0 AS cor0
----
-18711
-231
-4851

onlyif mysql # aggregate syntax: 
query I rowsort label-2319
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-2319
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT 87 * + 95 + - + 11 * COUNT( + col2 ) FROM tab1 AS cor0
----
8232

skipif mysql # not compatible
query I rowsort label-2320
SELECT 87 * + 95 + - + 11 * COUNT ( + col2 ) FROM tab1 AS cor0
----
8232

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2321
SELECT ALL SUM( - - CAST( - col1 AS SIGNED ) ) + + 31 AS col1 FROM tab2 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-2321
SELECT ALL SUM ( - - CAST ( - col1 AS INTEGER ) ) + + 31 AS col1 FROM tab2 AS cor0
----
-164

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT + + MIN( col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + + MIN ( col0 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT 3 AS col2 FROM tab0 cor0
----
3
3
3

query I rowsort
SELECT + ( - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
0

query I rowsort
SELECT - 39 / + col1 AS col2 FROM tab2 WHERE NOT NULL IN ( 1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2327
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN col0 AND + col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2327
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) NOT BETWEEN col0 AND + col2 + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT ALL + ( col2 ), - col2 * + col0 + col2 * col2 FROM tab2
----
23
-529
40
-960
58
-986

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL >= ( col1 )
----

query I rowsort
SELECT col2 FROM tab1 WHERE 23 + + + 43 + 36 * 1 * + col2 <= NULL
----

query I rowsort
SELECT ( - - 73 ) * + col2 + + col0 + col0 AS col1 FROM tab0
----
3461
7421
904

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) IS NULL AND col1 + - 58 IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 66 >= NULL
----

query I rowsort
SELECT ( - col1 ) + + - col1 AS col0 FROM tab1 AS cor0
----
-10
-28
-94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT ALL + - col1 * col2 + + CAST( NULL AS SIGNED ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2335
SELECT ALL + - col1 * col2 + + CAST ( NULL AS INTEGER ) / col2 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 92 - + col0 AS col0 FROM tab0 AS cor0
----
-107
-179
-189

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - 45 + - - 16 ) > ( 66 * col0 )
----

query I rowsort
SELECT ALL 51 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 IS NOT NULL OR NOT + col1 * - 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( - - 42 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT - col0 * + col0 * + + col0 * + + col1 FROM tab0
----
-13828563
-273375
-912673

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2342
SELECT ALL + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2342
SELECT ALL + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 IS NOT NULL AND NOT + col0 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 - + + 21 - + + col2, col0 col1 FROM tab2 AS cor0
----
-125
64
-154
75
-90
46

query I rowsort
SELECT - 9 - + + col0 FROM tab0 AS cor0
----
-106
-24
-96

query I rowsort
SELECT + ( 96 ) * 40 FROM tab0 AS cor0 WHERE ( - 49 ) NOT BETWEEN col0 AND - - col0
----
3840
3840
3840

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2347
SELECT - CAST( NULL AS SIGNED ) - - COUNT( * ) * - 73 * COUNT( * ) + - SUM( ALL - 6 ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT - CAST ( NULL AS INTEGER ) - - COUNT ( * ) * - 73 * COUNT ( * ) + - SUM ( ALL - 6 ) FROM tab1 cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 74 / 97 BETWEEN - 52 + + col1 * col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2349
SELECT - MAX( DISTINCT - 30 ) + + 55 AS col1, 0 FROM tab1 AS cor0
----
85
0

skipif mysql # not compatible
query II rowsort label-2349
SELECT - MAX ( DISTINCT - 30 ) + + 55 AS col1, 0 FROM tab1 AS cor0
----
85
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= + col2
----

query I rowsort
SELECT + ( - col2 ) AS col2 FROM tab0 WHERE NOT ( col0 / - 99 ) IN ( - col1 )
----
-10
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2352
SELECT - COUNT( ALL - 5 ) FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2352
SELECT - COUNT ( ALL - 5 ) FROM tab1 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2353
SELECT ALL - + CAST( 39 AS SIGNED ) AS col0 FROM tab0 WHERE NULL < + - col2
----

skipif mysql # not compatible
query I rowsort label-2353
SELECT ALL - + CAST ( 39 AS INTEGER ) AS col0 FROM tab0 WHERE NULL < + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 * col1 col1, - col2 FROM tab0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2355
SELECT ALL - CAST( + - 30 AS SIGNED ) * COUNT( DISTINCT + + col0 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2355
SELECT ALL - CAST ( + - 30 AS INTEGER ) * COUNT ( DISTINCT + + col0 ) FROM tab1
----
90

query II rowsort
SELECT + col1, col1 - - - col2 FROM tab1
----
14
-82
47
-21
5
-54

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2357
SELECT - COUNT( * ) * + + COUNT( ALL CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2357
SELECT - COUNT ( * ) * + + COUNT ( ALL CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 80 + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + col0 FROM tab1 WHERE NOT ( + col1 + - col2 IS NULL )
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT DISTINCT + COUNT( * ) * - MAX( + col1 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + COUNT ( * ) * - MAX ( + col1 ) FROM tab1
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT + MAX( - - 97 ) AS col2 FROM tab2 WHERE NOT - col1 >= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2361
SELECT + MAX ( - - 97 ) AS col2 FROM tab2 WHERE NOT - col1 >= ( NULL )
----
NULL

query I rowsort
SELECT - col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + - - 77 / - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL - MIN( ALL - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - MIN ( ALL - - col1 ) FROM tab0 AS cor0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2364
SELECT ALL + col1 * col2 * + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2364
SELECT ALL + col1 * col2 * + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 43 BETWEEN NULL AND - col1 + + col0 + + - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2366
SELECT DISTINCT + - col0 * CAST( - col1 - - col2 AS SIGNED ) + 71 AS col1 FROM tab2 AS cor0 WHERE 21 * CAST( CAST( NULL AS SIGNED ) AS SIGNED ) < - 15
----

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT + - col0 * CAST ( - col1 - - col2 AS INTEGER ) + 71 AS col1 FROM tab2 AS cor0 WHERE 21 * CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) < - 15
----

query I rowsort
SELECT DISTINCT 1 + - 49 AS col0 FROM tab1 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2368
SELECT DISTINCT + col0 * ( + CAST( col2 AS SIGNED ) ) col2 FROM tab1 AS cor0
----
4896
5015
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2368
SELECT DISTINCT + col0 * ( + CAST ( col2 AS INTEGER ) ) col2 FROM tab1 AS cor0
----
4896
5015
6188

query II rowsort
SELECT ALL + 8 + - col2, 92 + col2 AS col2 FROM tab0 cor0
----
-2
102
-39
139
-91
191

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2370
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + + CAST( NULL AS SIGNED ) ) = ( - 27 )
----

skipif mysql # not compatible
query III rowsort label-2370
SELECT * FROM tab0 AS cor0 WHERE NOT ( col0 + + CAST ( NULL AS INTEGER ) ) = ( - 27 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2371
SELECT ALL - - COUNT( * ) + + 77 + - SUM( - - col0 ) + MIN( ALL - - col2 ) FROM tab0 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-2371
SELECT ALL - - COUNT ( * ) + + 77 + - SUM ( - - col0 ) + MIN ( ALL - - col2 ) FROM tab0 AS cor0
----
-109

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( ( + col1 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( + 82 ) + + - col1 + - - col1 FROM tab2 AS cor0
----
82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 3 IS NULL
----

query I rowsort
SELECT + 81 * 4 + + col2 FROM tab0
----
334
371
423

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 = - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 71 ) col1 FROM tab0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT - col2 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * + 74 AS col1 FROM tab0
----
1110
6438
7178

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 + - 35 col0 FROM tab1 AS cor0
----
-118
-118
-118

query I rowsort
SELECT DISTINCT - + ( - col0 ) + + col1 + col1 + + + col2 AS col1 FROM tab0 cor0
----
139
198
224

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + + col1 + - 61 - - col1 col2 FROM tab0 AS cor0
----
-59
401
6581

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + + - col2 = + 49 AND + col2 * + + 83 * - ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2385
SELECT ALL COUNT( * ) - - ( - + COUNT( * ) ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2385
SELECT ALL COUNT ( * ) - - ( - + COUNT ( * ) ) AS col1 FROM tab0
----
0

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT col0 - - - col1 * + + 4 * - col2 + + + col2 FROM tab2
----
12424
15677
4761

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 < - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2390
SELECT - - col1 * - + 11 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - CAST( + col1 AS SIGNED ) + - col1 + - 10 ) IN ( - col2, - col1 )
----
-607
-812
-911

skipif mysql # not compatible
query I rowsort label-2390
SELECT - - col1 * - + 11 + - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - CAST ( + col1 AS INTEGER ) + - col1 + - 10 ) IN ( - col2, - col1 )
----
-607
-812
-911

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT DISTINCT - - MAX( - + col0 ) * + 20 FROM tab2 AS cor0
----
-920

skipif mysql # not compatible
query I rowsort label-2391
SELECT DISTINCT - - MAX ( - + col0 ) * + 20 FROM tab2 AS cor0
----
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT DISTINCT - ( + MAX( - col1 ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2392
SELECT DISTINCT - ( + MAX ( - col1 ) ) FROM tab2 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2393
SELECT + COUNT( * ) * - 25 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-2393
SELECT + COUNT ( * ) * - 25 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT DISTINCT - col0 AS col2, + 88 FROM tab1
----
-51
88
-85
88
-91
88

query I rowsort
SELECT + 77 * + 10 FROM tab1
----
770
770
770

query I rowsort
SELECT DISTINCT col0 + col2 / col0 FROM tab0 WHERE - col0 IN ( - 1 + - ( - col1 ) + - ( + col1 ) + + 55 )
----

query II rowsort
SELECT - col1 AS col0, + 18 AS col1 FROM tab2
----
-51
18
-67
18
-77
18

query III rowsort
SELECT * FROM tab2 WHERE NOT - 25 <= + col0
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 7 + - + col0, - col1, + + 36 / - - col0 / - - col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT 80 * + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col2 col2 FROM tab1 cor0
----
3481
4624
9216

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 21 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 69 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NULL
----
69
69
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2404
SELECT ALL - + MIN( ALL col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL - + MIN ( ALL col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT - MAX( + 18 ) + + MAX( 30 ) AS col1 FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-2405
SELECT - MAX ( + 18 ) + + MAX ( 30 ) AS col1 FROM tab0
----
12

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2408
SELECT DISTINCT + col2 DIV + col0 + - col0 FROM tab0 AS cor0
----
-12
-87
-96

skipif mysql # not compatible
query I rowsort label-2408
SELECT DISTINCT + col2 / + col0 + - col0 FROM tab0 AS cor0
----
-12
-87
-96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT ALL - COUNT( * ) + + COUNT( * ) col0 FROM tab1 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2410
SELECT ALL - COUNT ( * ) + + COUNT ( * ) col0 FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2411
SELECT + + MIN( + + 42 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-2411
SELECT + + MIN ( + + 42 ) FROM tab0 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-2412
SELECT - + COUNT( * ) AS col2, - 75 AS col2 FROM tab0 cor0
----
-3
-75

skipif mysql # not compatible
query II rowsort label-2412
SELECT - + COUNT ( * ) AS col2, - 75 AS col2 FROM tab0 cor0
----
-3
-75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2413
SELECT 1 + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2413
SELECT 1 + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2414
SELECT ALL + COUNT( * ) + + COUNT( - + col1 ) AS col1 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-2414
SELECT ALL + COUNT ( * ) + + COUNT ( - + col1 ) AS col1 FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN col0 + - col1 AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2416
SELECT DISTINCT - - 19 + - col1 DIV - col2 FROM tab2 AS cor0
----
20
21

skipif mysql # not compatible
query I rowsort label-2416
SELECT DISTINCT - - 19 + - col1 / - col2 FROM tab2 AS cor0
----
20
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2417
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + ( - + col1 ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2417
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + ( - + col1 ) AS col1 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL IN ( - col0 * - 98 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT + col2 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-2419
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT + col2 ) FROM tab1
----
99

query I rowsort
SELECT DISTINCT - 79 FROM tab2 WHERE NOT + col0 + + col2 <= - col0 / - 60 + - col2
----
-79

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2421
SELECT DISTINCT + COUNT( * ) * - 13, CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
-39
NULL

skipif mysql # not compatible
query II rowsort label-2421
SELECT DISTINCT + COUNT ( * ) * - 13, CAST ( NULL AS REAL ) AS col0 FROM tab2
----
-39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2422
SELECT + COUNT( * ) FROM tab1 WHERE NULL <= - ( + - col1 ) / + - 28
----
0

skipif mysql # not compatible
query I rowsort label-2422
SELECT + COUNT ( * ) FROM tab1 WHERE NULL <= - ( + - col1 ) / + - 28
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 NOT BETWEEN - 38 AND col0 )
----

query I rowsort
SELECT ALL - ( + - col2 ) * - + 46 AS col0 FROM tab1
----
-2714
-3128
-4416

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2425
SELECT + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col0 IS NULL
----
0

query I rowsort
SELECT DISTINCT 94 + + + 26 AS col1 FROM tab2 AS cor0
----
120

query I rowsort
SELECT + col0 + + 87 AS col1 FROM tab2 AS cor0
----
133
151
162

query I rowsort
SELECT ALL - 18 + ( + + col1 ) + + + col2 FROM tab1 cor0
----
46
92
97

query I rowsort
SELECT + 84 AS col0 FROM tab0 cor0
----
84
84
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2430
SELECT + SUM( ALL - 33 ) AS col1 FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-2430
SELECT + SUM ( ALL - 33 ) AS col1 FROM tab2
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2431
SELECT DISTINCT COUNT( * ) - - ( + SUM( DISTINCT + ( 91 ) ) ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-2431
SELECT DISTINCT COUNT ( * ) - - ( + SUM ( DISTINCT + ( 91 ) ) ) FROM tab1
----
94

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN - + col1 * - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2433
SELECT CAST( 1 AS SIGNED ) FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2433
SELECT CAST ( 1 AS INTEGER ) FROM tab1
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT SUM( ALL - 91 ) AS col1 FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-2434
SELECT SUM ( ALL - 91 ) AS col1 FROM tab2 AS cor0
----
-273

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 BETWEEN - 25 AND NULL
----
87
21
10
97
1
99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - col1 * col0 - col2 IS NULL
----

query II rowsort
SELECT col1 AS col1, 59 FROM tab1 AS cor0
----
14
59
47
59
5
59

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 * + - col0 >= NULL
----

query I rowsort
SELECT col2 * + 87 FROM tab2
----
2001
3480
5046

query I rowsort
SELECT col1 * + col0 * - 53 FROM tab1
----
-22525
-226681
-37842

onlyif mysql # aggregate syntax: 
query II rowsort label-2441
SELECT SUM( col1 ), 84 AS col0 FROM tab1 cor0
----
66
84

skipif mysql # not compatible
query II rowsort label-2441
SELECT SUM ( col1 ), 84 AS col0 FROM tab1 cor0
----
66
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( ( + col0 ) ) col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2443
SELECT ALL - + COUNT( ALL + 83 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2443
SELECT ALL - + COUNT ( ALL + 83 ) FROM tab1 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-2444
SELECT ALL ( col1 ) col0, col0 DIV - - col1 FROM tab2 AS cor0
----
51
0
67
1
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2444
SELECT ALL ( col1 ) col0, col0 / - - col1 FROM tab2 AS cor0
----
51
0
67
1
77
0

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT - col0 + + - col1 NOT IN ( + col2, - col2 * - - col2, - col1, + + col0, 52 )
----

query I rowsort
SELECT col1 * 32 AS col1 FROM tab2
----
1632
2144
2464

onlyif mysql # aggregate syntax: 
query I rowsort label-2447
SELECT - MIN( - 3 ) * 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2447
SELECT - MIN ( - 3 ) * 3 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2448
SELECT DISTINCT + CAST( - - col1 AS SIGNED ) * + col0 * 34 FROM tab2
----
167552
170850
79764

skipif mysql # not compatible
query I rowsort label-2448
SELECT DISTINCT + CAST ( - - col1 AS INTEGER ) * + col0 * 34 FROM tab2
----
167552
170850
79764

query I rowsort
SELECT col1 + + col0 * + + col2 FROM tab0
----
786
891
9604

query I rowsort
SELECT ALL 40 + - 45 AS col1 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT ( 32 ) + - col1 + col2 * + 0 AS col2 FROM tab1 cor0
----
-15
18
27

onlyif mysql # aggregate syntax: 
query I rowsort label-2452
SELECT ALL + + COUNT( * ) FROM tab0 cor0 WHERE NOT col0 + + 8 * - ( - + col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2452
SELECT ALL + + COUNT ( * ) FROM tab0 cor0 WHERE NOT col0 + + 8 * - ( - + col1 ) IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2453
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ) / - 48 + + MIN( col0 ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2453
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ) / - 48 + + MIN ( col0 ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT - 59 * + col1 AS col0 FROM tab1
----
-2773
-295
-826

query II rowsort
SELECT col0 AS col2, col2 + - col1 FROM tab1
----
51
82
85
54
91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-2456
SELECT - 26 * COUNT( * ) AS col1 FROM tab2
----
-78

skipif mysql # not compatible
query I rowsort label-2456
SELECT - 26 * COUNT ( * ) AS col1 FROM tab2
----
-78

query I rowsort
SELECT DISTINCT col0 - - + 31 + 34 * - - ( + + ( ( + col0 ) ) ) FROM tab1
----
1816
3006
3216

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT ALL COUNT( * ) * + MAX( DISTINCT + ( + - col1 ) ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2458
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + ( + - col1 ) ) AS col0 FROM tab0
----
-3

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT - + 31 + - COUNT( * ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-2460
SELECT - + 31 + - COUNT ( * ) FROM tab0 AS cor0
----
-34

query I rowsort
SELECT ALL col0 * + + col2 + - 39 AS col0 FROM tab1 AS cor0
----
4857
4976
6149

query II rowsort
SELECT DISTINCT - 59 * - col1 + 60 AS col1, - 15 FROM tab1
----
2833
-15
355
-15
886
-15

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2463
SELECT DISTINCT 45 DIV - 4, + CAST( - 35 AS SIGNED ) AS col1 FROM tab0
----
-11
-35

skipif mysql # not compatible
query II rowsort label-2463
SELECT DISTINCT 45 / - 4, + CAST ( - 35 AS INTEGER ) AS col1 FROM tab0
----
-11
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-2464
SELECT DISTINCT col0 DIV - 50 AS col1, col2 + col0 FROM tab0
----
-1
196
-1
97
0
62

skipif mysql # not compatible
query II rowsort label-2464
SELECT DISTINCT col0 / - 50 AS col1, col2 + col0 FROM tab0
----
-1
196
-1
97
0
62

query I rowsort
SELECT ALL 35 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d9b103f79c4e8f0de4b7c1c821783a29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 90 * col1 col2 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT col0 * + col1 - 93 FROM tab2 AS cor0
----
2253
4835
4932

onlyif mysql # aggregate syntax: 
query I rowsort label-2468
SELECT ALL COUNT( ALL - col1 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2468
SELECT ALL COUNT ( ALL - col1 ) col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col0 * col1 * + + col2 * col1 * - - 16 + + 33 FROM tab2 AS cor0
----
-242851807
-312434367
-44029695

onlyif mysql # aggregate syntax: 
query II rowsort label-2470
SELECT SUM( DISTINCT + col0 ), + 42 AS col2 FROM tab2 AS cor0
----
185
42

skipif mysql # not compatible
query II rowsort label-2470
SELECT SUM ( DISTINCT + col0 ), + 42 AS col2 FROM tab2 AS cor0
----
185
42

query I rowsort
SELECT ALL col1 * + + 87 AS col2 FROM tab2
----
4437
5829
6699

onlyif mysql # DIV for integer division: 
query I rowsort label-2472
SELECT ALL - col0 DIV - 35 AS col2 FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-2472
SELECT ALL - col0 / - 35 AS col2 FROM tab1
----
1
2
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2473
SELECT DISTINCT - SUM( + ( + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT - SUM ( + ( + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 71 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 * col0 / 72 + + col0 IN ( 23 + + ( 27 ) )
----

query I rowsort
SELECT DISTINCT + 3 AS col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( + 98, col0 )
----

query I rowsort
SELECT ALL + - 57 + col2 * ( col2 ) * + - col2 AS col2 FROM tab1 AS cor0
----
-205436
-314489
-884793

query I rowsort
SELECT + + col0 + + 89 AS col0 FROM tab2 cor0
----
135
153
164

query I rowsort
SELECT ALL + col0 * - col0 * - col1 AS col2 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2480
SELECT - COUNT( * ) DIV + - ( - 82 ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND + col1
----
0

skipif mysql # not compatible
query I rowsort label-2480
SELECT - COUNT ( * ) / + - ( - 82 ) AS col2 FROM tab1 WHERE NULL BETWEEN NULL AND + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2481
SELECT DISTINCT - - COUNT( * ) * - COUNT( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT - - COUNT ( * ) * - COUNT ( * ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-81

query I rowsort
SELECT - - col0 AS col0 FROM tab1 WHERE - 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2483
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + col0 * + + 41 BETWEEN - col2 AND + col1
----

skipif mysql # not compatible
query I rowsort label-2483
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + col0 * + + 41 BETWEEN - col2 AND + col1
----

query I rowsort
SELECT ALL + - ( + 69 ) AS col2 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT + 62 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT + 62 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT - col0 - + + 30 AS col2 FROM tab1 AS cor0
----
-115
-121
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2487
SELECT - - col1 + CAST( NULL AS SIGNED ) FROM tab2 WHERE + - 86 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2487
SELECT - - col1 + CAST ( NULL AS INTEGER ) FROM tab2 WHERE + - 86 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - 37 + - 51 AS col2 FROM tab1
----
-2234
-2567
-3603

query I rowsort
SELECT DISTINCT - 25 - + col0 FROM tab0
----
-112
-122
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2490
SELECT DISTINCT MIN( ALL + col0 ) - + 9 + + 91 col0 FROM tab1
----
133

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2490
SELECT DISTINCT MIN ( ALL + col0 ) - + 9 + + 91 col0 FROM tab1
----
133

query I rowsort
SELECT - 42 + ( - + 95 ) AS col1 FROM tab0
----
-137
-137
-137

onlyif mysql # DIV for integer division: 
query I rowsort label-2492
SELECT + col1 + - col1 + col2 + - col0 + - - col2 DIV + - col1 * col2 AS col1 FROM tab2
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-2492
SELECT + col1 + - col1 + col2 + - col0 + - - col2 / + - col1 * col2 AS col1 FROM tab2
----
-17
-23
-24

query I rowsort
SELECT ALL - - ( + col2 ) FROM tab0 WHERE NOT - col2 IS NOT NULL OR NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT ALL + - col0 + + 65 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col0 * + 32 AND NULL
----

query II rowsort
SELECT ALL 17 AS col0, col2 + + - 31 FROM tab2 AS cor0
----
17
-8
17
27
17
9

query I rowsort
SELECT DISTINCT + + ( + - col2 ) FROM tab1 cor0
----
-59
-68
-96

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT + 53 BETWEEN NULL AND - col2
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2499
SELECT 18 * ( + ( + - 20 ) ) + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN 13 + - CAST( col0 AS SIGNED ) AND NULL AND NOT - col0 * - + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2499
SELECT 18 * ( + ( + - 20 ) ) + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NULL NOT BETWEEN 13 + - CAST ( col0 AS INTEGER ) AND NULL AND NOT - col0 * - + col1 IS NULL
----

query I rowsort
SELECT + 26 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
26
26
26

query I rowsort
SELECT + - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) > 26 * + 25
----

query I rowsort
SELECT + col0 + - col1 * 35 FROM tab0 AS cor0
----
-2820
-648
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT ALL + SUM( DISTINCT 30 ) col1 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2504
SELECT ALL + SUM ( DISTINCT 30 ) col1 FROM tab0 AS cor0
----
30

query II rowsort
SELECT col0 AS col1, + ( col2 ) * - - 32 FROM tab2 AS cor0
----
46
736
64
1280
75
1856

query I rowsort
SELECT ALL col0 * 56 + - - col2 FROM tab2
----
2599
3624
4258

query I rowsort
SELECT ALL - 59 - + col0 AS col0 FROM tab1
----
-110
-144
-150

query III rowsort
SELECT * FROM tab2 WHERE 59 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2509
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE - - CAST( NULL AS SIGNED ) / - col1 - col1 + - col2 * - 2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE - - CAST ( NULL AS INTEGER ) / - col1 - col1 + - col2 * - 2 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 - col0 + col0 col2 FROM tab0
----
67
67
67

query I rowsort
SELECT ALL + + col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2512
SELECT DISTINCT + col1 DIV - 99 - + ( + + 31 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-2512
SELECT DISTINCT + col1 / - 99 - + ( + + 31 ) FROM tab2
----
-31

query I rowsort
SELECT DISTINCT 21 * ( - + ( - col2 ) ) AS col0 FROM tab1
----
1239
1428
2016

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 42 + - + col1 + + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2515
SELECT - MAX( col2 ) AS col1 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-2515
SELECT - MAX ( col2 ) AS col1 FROM tab0 cor0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 97 AS col1, - col2 + ( - col1 ) + - 13 col2 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2517
SELECT ALL - CAST( NULL AS DECIMAL ) * - 53 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2517
SELECT ALL - CAST ( NULL AS REAL ) * - 53 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT - 90 + + col2 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2519
SELECT ALL + MAX( DISTINCT - - 72 ) * - 96 FROM tab2 AS cor0
----
-6912

skipif mysql # not compatible
query I rowsort label-2519
SELECT ALL + MAX ( DISTINCT - - 72 ) * - 96 FROM tab2 AS cor0
----
-6912

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * + 87 col1 FROM tab2 cor0
----
4002
5568
6525

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT SUM( DISTINCT - 72 ) FROM tab2 AS cor0 WHERE NOT - 75 * col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT SUM ( DISTINCT - 72 ) FROM tab2 AS cor0 WHERE NOT - 75 * col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2522
SELECT + SUM( col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-2522
SELECT + SUM ( col1 ) AS col0 FROM tab0 AS cor0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2523
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----
0

query I rowsort
SELECT - col1 * + - col2 * col1 AS col2 FROM tab0
----
308367
4410
99

query III rowsort
SELECT * FROM tab1 WHERE NOT + 7 = 39 * - - 38 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT col1 AS col0, + col2 AS col2, - - col0 FROM tab0
----
9 values hashing to 744110e2d469323ed8c777ba14bd1b9e

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * - 2 col0 FROM tab1
----
102
170
182

query I rowsort
SELECT - 73 * - - col0 + + col2 + - - 16 AS col0 FROM tab2 WHERE + col0 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2529
SELECT ALL - 76 + 9 + + 35 + col1 DIV - col0 AS col0 FROM tab2 AS cor0
----
-32
-33
-33

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL - 76 + 9 + + 35 + col1 / - col0 AS col0 FROM tab2 AS cor0
----
-32
-33
-33

query I rowsort
SELECT + 4 + - + 74 + + col2 FROM tab2 cor0
----
-12
-30
-47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2531
SELECT * FROM tab1 WHERE ( col0 + + col1 + + CAST( NULL AS SIGNED ) + - 75 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2531
SELECT * FROM tab1 WHERE ( col0 + + col1 + + CAST ( NULL AS INTEGER ) + - 75 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2532
SELECT + CAST( NULL AS DECIMAL ) + + 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2532
SELECT + CAST ( NULL AS REAL ) + + 10 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-2533
SELECT DISTINCT - 47 * - ( - - COUNT( * ) ) col0 FROM tab0
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2533
SELECT DISTINCT - 47 * - ( - - COUNT ( * ) ) col0 FROM tab0
----
141

query II rowsort
SELECT 86 * - - col0, 46 AS col0 FROM tab2 cor0
----
3956
46
5504
46
6450
46

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 38 * - - 96 + - col2 * + col1 NOT IN ( - 87 / - 40 + - + 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2536
SELECT DISTINCT + 3 + - - MAX( - - col1 ) AS col1 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-2536
SELECT DISTINCT + 3 + - - MAX ( - - col1 ) AS col1 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2537
SELECT ALL - + CAST( - - COUNT( * ) AS SIGNED ) + - + COUNT( * ) AS col2 FROM tab1 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2537
SELECT ALL - + CAST ( - - COUNT ( * ) AS INTEGER ) + - + COUNT ( * ) AS col2 FROM tab1 cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2538
SELECT DISTINCT - 98 + - + COUNT( * ) - + 13 AS col2 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-2538
SELECT DISTINCT - 98 + - + COUNT ( * ) - + 13 AS col2 FROM tab0
----
-114

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( + - col1, + ( - 3 ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2540
SELECT ALL + 36 AS col0, MAX( + col2 ) FROM tab2
----
36
58

skipif mysql # not compatible
query II rowsort label-2540
SELECT ALL + 36 AS col0, MAX ( + col2 ) FROM tab2
----
36
58

query II rowsort
SELECT - col1, col0 * + col2 AS col0 FROM tab1
----
-14
4896
-47
6188
-5
5015

query II rowsort
SELECT col2, 46 FROM tab1
----
59
46
68
46
96
46

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= - 58
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 NOT BETWEEN - - col1 + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 30 * - - col1 FROM tab1
----
-1410
-150
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-2546
SELECT DISTINCT MIN( + 25 ) AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-2546
SELECT DISTINCT MIN ( + 25 ) AS col2 FROM tab2
----
25

query II rowsort
SELECT ALL 5 AS col0, + ( + col1 ) AS col1 FROM tab1
----
5
14
5
47
5
5

query I rowsort
SELECT ALL ( - 16 ) AS col0 FROM tab2 AS cor0
----
-16
-16
-16

query I rowsort
SELECT + 4 * + - col0 AS col1 FROM tab1 cor0
----
-204
-340
-364

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 23 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2551
SELECT + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 66 <= NULL
----

skipif mysql # not compatible
query I rowsort label-2551
SELECT + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 66 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2552
SELECT DISTINCT - COUNT( DISTINCT - - 17 ) + + 32 FROM tab1 WHERE - + 6 + - col1 * col0 * CAST( NULL AS SIGNED ) + + + col0 >= ( + + 55 ) - - + CAST( NULL AS SIGNED )
----
32

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT - COUNT ( DISTINCT - - 17 ) + + 32 FROM tab1 WHERE - + 6 + - col1 * col0 * CAST ( NULL AS INTEGER ) + + + col0 >= ( + + 55 ) - - + CAST ( NULL AS INTEGER )
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT - SUM( - - col1 ) FROM tab0 AS cor0 WHERE NOT + ( - - col2 ) + - 16 + + - col1 * + col2 * 55 IS NULL
----
-103

skipif mysql # not compatible
query I rowsort label-2553
SELECT - SUM ( - - col1 ) FROM tab0 AS cor0 WHERE NOT + ( - - col2 ) + - 16 + + - col1 * + col2 * 55 IS NULL
----
-103

query I rowsort
SELECT DISTINCT - col0 FROM tab0 cor0 WHERE + 11 * + ( - col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2555
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1 / 56 * + - CAST( NULL AS SIGNED ) - + + 5
----

skipif mysql # not compatible
query III rowsort label-2555
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <> + col1 / 56 * + - CAST ( NULL AS INTEGER ) - + + 5
----

query I rowsort
SELECT ALL 22 * + col0 * col0 AS col2 FROM tab1
----
158950
182182
57222

query I rowsort
SELECT ALL + col2 * 16 AS col1 FROM tab1
----
1088
1536
944

query I rowsort
SELECT DISTINCT 20 * + + col0 FROM tab2
----
1280
1500
920

query I rowsort
SELECT ALL 68 * col2 FROM tab0
----
3196
6732
680

query I rowsort
SELECT ALL + col2 * - col2 * col0 AS col0 FROM tab2
----
-102400
-24334
-252300

onlyif mysql # DIV for integer division: 
query I rowsort label-2561
SELECT DISTINCT + + 17 DIV + + 88 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2561
SELECT DISTINCT + + 17 / + + 88 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 + 88 * + col2 col1 FROM tab2 AS cor0
----
1978
3456
5029

query II rowsort
SELECT + col2 + col0 AS col0, 55 AS col2 FROM tab0
----
196
55
62
55
97
55

query I rowsort
SELECT DISTINCT + 94 * + + col2 + + - col0 * - + 5 FROM tab0 cor0
----
1375
4493
9791

query I rowsort
SELECT DISTINCT + - 68 + - - 62 AS col2 FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-2566
SELECT ALL + + col2 DIV 71 DIV 99 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2566
SELECT ALL + + col2 / 71 / 99 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - 86, col1 FROM tab1 AS cor0
----
-86
14
-86
47
-86
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2568
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - COUNT( - + col2 ) FROM tab0 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-2568
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - COUNT ( - + col2 ) FROM tab0 AS cor0
----
NULL
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2569
SELECT ALL CAST( NULL AS DECIMAL ) * + 1 col1, - 39 FROM tab1
----
NULL
-39
NULL
-39
NULL
-39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2569
SELECT ALL CAST ( NULL AS REAL ) * + 1 col1, - 39 FROM tab1
----
NULL
-39
NULL
-39
NULL
-39

query I rowsort
SELECT ALL - col2 * + 63 AS col1 FROM tab0
----
-2961
-6237
-630

query I rowsort
SELECT - col2 AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT DISTINCT + - COUNT( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2572
SELECT DISTINCT + - COUNT ( ALL + + col0 ) AS col2 FROM tab2 AS cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 83 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

query I rowsort
SELECT - 86 AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9ac806793c03d3a6b5e3a3029d20e4da

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 * - col1 = col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2576
SELECT - - MIN( + 42 ) col0 FROM tab0 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2576
SELECT - - MIN ( + 42 ) col0 FROM tab0 AS cor0
----
42

query II rowsort
SELECT + col1, + col1 * - col2 * + - col2 FROM tab0 AS cor0
----
1
9801
21
2100
81
178929

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2578
SELECT ALL - 12 + - CAST( NULL AS DECIMAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2578
SELECT ALL - 12 + - CAST ( NULL AS REAL ) * col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - 51 + + col2 - 67 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
26
29
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2580
SELECT + - COUNT( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2580
SELECT + - COUNT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT - - col0 AS col0, + col2 + - ( - 15 ) AS col1 FROM tab0 AS cor0
----
15
62
87
25
97
114

query I rowsort
SELECT ALL - 73 * - col2 FROM tab1 AS cor0
----
4307
4964
7008

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2583
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND - CAST( 68 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2583
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND - CAST ( 68 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2584
SELECT DISTINCT CAST( NULL AS SIGNED ) * - + 93 AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2584
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - + 93 AS col0 FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT 52 * COUNT( ALL + + col0 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2585
SELECT 52 * COUNT ( ALL + + col0 ) FROM tab0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2586
SELECT DISTINCT COUNT( * ) * - 0 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2586
SELECT DISTINCT COUNT ( * ) * - 0 AS col1 FROM tab1
----
0

query III rowsort
SELECT * FROM tab0 WHERE + col2 * col2 + + 30 IS NULL
----

query I rowsort
SELECT col1 + - 93 AS col2 FROM tab0
----
-12
-72
-92

query I rowsort
SELECT DISTINCT - - 0 - 1 FROM tab2 cor0
----
-1

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE - col2 + col1 * - + col1 IS NULL
----

query I rowsort
SELECT col1 - - + col1 + 26 - col2 AS col0 FROM tab2
----
102
105
140

query III rowsort
SELECT * FROM tab0 WHERE 23 / + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT COUNT( * ) - - + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2593
SELECT COUNT ( * ) - - + COUNT ( * ) FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 33 col2 FROM tab0 AS cor0
----
-33
-33
-33

query I rowsort
SELECT + col2 * col0 - 98 FROM tab0 AS cor0
----
607
772
9505

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2596
SELECT - + ( - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2596
SELECT - + ( - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - 74 + col1 FROM tab2 AS cor0
----
-3723
-4891
-5621

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + ( 71 ) col2, col0 FROM tab1 AS cor0
----
3337
91
355
85
994
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= + 8 / + col0 + ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2600
SELECT ALL - CAST( NULL AS SIGNED ) * + CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2600
SELECT ALL - CAST ( NULL AS INTEGER ) * + CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2601
SELECT ALL col0 DIV - + ( - ( - - 67 ) ) AS col0 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL col0 / - + ( - ( - - 67 ) ) AS col0 FROM tab1
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 36 col2, - col0 * + 37 AS col2 FROM tab2
----
36
-1702
36
-2368
36
-2775

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2603
SELECT + 54, - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
54
-1

skipif mysql # not compatible
query II rowsort label-2603
SELECT + 54, - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
54
-1

query II rowsort
SELECT DISTINCT + 59, + col1 FROM tab0
----
59
1
59
21
59
81

query I rowsort
SELECT - ( + ( - col0 ) ) AS col2 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL - 68, col2 FROM tab2 cor0
----
-68
23
-68
40
-68
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2608
SELECT + + CAST( MIN( - col1 ) AS SIGNED ) * - COUNT( * ) FROM tab1 cor0
----
141

skipif mysql # not compatible
query I rowsort label-2608
SELECT + + CAST ( MIN ( - col1 ) AS INTEGER ) * - COUNT ( * ) FROM tab1 cor0
----
141

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 61 + + 15 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + - col2 + + 69 AS col1 FROM tab0 AS cor0
----
-30
22
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + - ( - + 64 ) / 1 AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 4 col1, + ( 0 ) * - + 82 FROM tab1
----
4
0
4
0
4
0

query I rowsort
SELECT ALL - col2 * + col2 + col0 + + 74 * - col1 AS col0 FROM tab1
----
-10201
-3766
-8011

query I rowsort
SELECT ALL + 46 * + - col2 - - col0 - + col0 + 42 AS col0 FROM tab1
----
-2672
-3086
-4374

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2616
SELECT + - col1 * + + col2 * - - col0 * col2 AS col2 FROM tab1 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-1479425
-19776848
-6580224

skipif mysql # not compatible
query I rowsort label-2616
SELECT + - col1 * + + col2 * - - col0 * col2 AS col2 FROM tab1 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-1479425
-19776848
-6580224

query II rowsort
SELECT ALL col2, 48 AS col1 FROM tab2
----
23
48
40
48
58
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT - SUM( - 47 ) col1 FROM tab2
----
141

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2618
SELECT - SUM ( - 47 ) col1 FROM tab2
----
141

query II rowsort
SELECT DISTINCT 94, - 35 * - 44 AS col2 FROM tab0
----
94
1540

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT - 30 * + MIN( DISTINCT col2 ) * - 49 col2 FROM tab1
----
86730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2620
SELECT - 30 * + MIN ( DISTINCT col2 ) * - 49 col2 FROM tab1
----
86730

query I rowsort
SELECT + ( - ( col2 ) ) FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab1 WHERE - 96 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2623
SELECT + col2 * + - ( - + CAST( NULL AS DECIMAL ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2623
SELECT + col2 * + - ( - + CAST ( NULL AS REAL ) ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query III rowsort label-2624
SELECT - ( - SUM( DISTINCT + 1 ) ) col1, + 68, 80 AS col2 FROM tab1
----
1
68
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-2624
SELECT - ( - SUM ( DISTINCT + 1 ) ) col1, + 68, 80 AS col2 FROM tab1
----
1
68
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT DISTINCT COUNT( * ) + - 71 col2 FROM tab2 AS cor0
----
-68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2625
SELECT DISTINCT COUNT ( * ) + - 71 col2 FROM tab2 AS cor0
----
-68

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2626
SELECT ALL - col0 * - col0 * + - CAST( NULL AS DECIMAL ) - + col2 + - - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2626
SELECT ALL - col0 * - col0 * + - CAST ( NULL AS REAL ) - + col2 + - - col0 * - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 72 - col1 col0 FROM tab2 AS cor0
----
-5
21
5

query I rowsort
SELECT 29 + - col0 AS col2 FROM tab0
----
-58
-68
14

query I rowsort
SELECT ALL 47 + + col1 FROM tab2
----
114
124
98

query I rowsort
SELECT DISTINCT + 46 AS col2 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT MIN( DISTINCT - 26 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26

skipif mysql # not compatible
query I rowsort label-2631
SELECT MIN ( DISTINCT - 26 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-26

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 24 <> NULL
----

query I rowsort
SELECT DISTINCT - 51 * - 16 AS col0 FROM tab1 cor0
----
816

onlyif mysql # DIV for integer division: 
query I rowsort label-2634
SELECT DISTINCT col1 DIV + col2 col2 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2634
SELECT DISTINCT col1 / + col2 col2 FROM tab2 AS cor0
----
1
2

query I rowsort
SELECT col2 * + 20 FROM tab2 AS cor0
----
1160
460
800

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT - + col2 * + 77 FROM tab2 AS cor0
----
-1771
-3080
-4466

onlyif mysql # DIV for integer division: 
query III rowsort label-2638
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 46 ) < - col0 DIV col2 * + 17 * + - col0
----
51
14
96

skipif mysql # not compatible
query III rowsort label-2638
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 46 ) < - col0 / col2 * + 17 * + - col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query II rowsort label-2639
SELECT ALL - ( + COUNT( * ) ), 55 AS col1 FROM tab0 AS cor0
----
-3
55

skipif mysql # not compatible
query II rowsort label-2639
SELECT ALL - ( + COUNT ( * ) ), 55 AS col1 FROM tab0 AS cor0
----
-3
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT + + col1 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT + + col1 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col0 * + - 24 AS col0 FROM tab0
----
-2088
-2328
-360

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT DISTINCT MAX( DISTINCT col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2642
SELECT DISTINCT MAX ( DISTINCT col1 ) col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT + 4 * - + col2 FROM tab1
----
-236
-272
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 57 col1 FROM tab0 WHERE - col2 IS NOT NULL
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT ALL 6 * COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2645
SELECT ALL 6 * COUNT ( * ) FROM tab2
----
18

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2646
SELECT DISTINCT + MAX( DISTINCT + CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT + MAX ( DISTINCT + CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2647
SELECT ALL col2 * + CAST( NULL AS SIGNED ) 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-2647
SELECT ALL col2 * + CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 36 * - - 97 FROM tab2 AS cor0
----
3492
3492
3492

query I rowsort
SELECT DISTINCT + col0 * - 96 AS col0 FROM tab1 AS cor0
----
-4896
-8160
-8736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) >= + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL col1 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL col1 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + + col2 + 44 AS col0 FROM tab2 AS cor0 WHERE NOT 79 IS NULL
----
102
67
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2653
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ) + + 55 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2653
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ) + + 55 FROM tab2 AS cor0
----
58

query I rowsort
SELECT 8 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT - COUNT( ALL - + 37 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT - COUNT ( ALL - + 37 ) FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * - col0 col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + 99, + col2 + col1, - 13, - col0 )
----

query II rowsort
SELECT + col2 AS col0, 33 AS col2 FROM tab2 AS cor0
----
23
33
40
33
58
33

query I rowsort
SELECT DISTINCT - col0 + + col0 + - col0 * + + col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2660
SELECT - 79 DIV - 34 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-2660
SELECT - 79 / - 34 AS col1 FROM tab2 AS cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 89, + col0 col2 FROM tab2 AS cor0
----
89
46
89
64
89
75

query I rowsort
SELECT - 54 * + ( - 80 ) FROM tab1 AS cor0
----
4320
4320
4320

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT - COUNT( * ) FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN - col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2663
SELECT - COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN - col1 AND NULL
----
0

query II rowsort
SELECT DISTINCT - col2 + + 97 AS col1, col2 AS col0 FROM tab1 AS cor0
----
1
96
29
68
38
59

query I rowsort
SELECT - - col1 - 3 FROM tab1 AS cor0
----
11
2
44

onlyif mysql # aggregate syntax: 
query I rowsort label-2666
SELECT ALL + 64 + SUM( DISTINCT + col0 ) + + SUM( ALL - 19 ) FROM tab0 cor0
----
206

skipif mysql # not compatible
query I rowsort label-2666
SELECT ALL + 64 + SUM ( DISTINCT + col0 ) + + SUM ( ALL - 19 ) FROM tab0 cor0
----
206

onlyif mysql # aggregate syntax: 
query I rowsort label-2667
SELECT + - MIN( ALL + - col0 ) + - 93 AS col1 FROM tab2 cor0
----
-18

skipif mysql # not compatible
query I rowsort label-2667
SELECT + - MIN ( ALL + - col0 ) + - 93 AS col1 FROM tab2 cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-2668
SELECT ALL COUNT( ALL + 73 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2668
SELECT ALL COUNT ( ALL + 73 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2669
SELECT + + col1 / + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE - 29 + col0 NOT BETWEEN - - 1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-2669
SELECT + + col1 / + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE - 29 + col0 NOT BETWEEN - - 1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2670
SELECT DISTINCT - ( + - MAX( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT - ( + - MAX ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 60 - col2 col0 FROM tab1 AS cor0
----
241
2752
744

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 54 IS NULL
----

query I rowsort
SELECT + + 49 FROM tab1 cor0
----
49
49
49

query I rowsort
SELECT - col0 * - 66 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT + col2 + - col0 * col1 > - ( + - col2 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2675
SELECT - 86 AS col2, col2 DIV + ( - col0 ) + - col2 + - + col2 AS col1 FROM tab1 AS cor0
----
-86
-118
-86
-136
-86
-193

skipif mysql # not compatible
query II rowsort label-2675
SELECT - 86 AS col2, col2 / + ( - col0 ) + - col2 + - + col2 AS col1 FROM tab1 AS cor0
----
-86
-118
-86
-136
-86
-193

query I rowsort
SELECT ( 73 ) FROM tab2 AS cor0
----
73
73
73

query I rowsort
SELECT ALL - col2 * + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <= NULL
----

query II rowsort
SELECT col1, col2 AS col2 FROM tab2 AS cor0
----
51
23
67
58
77
40

query II rowsort
SELECT - + 95 AS col1, 15 AS col0 FROM tab1 AS cor0 WHERE NOT col0 * + col0 IS NULL
----
-95
15
-95
15
-95
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2680
SELECT DISTINCT CAST( + ( + 27 ) AS SIGNED ) AS col2 FROM tab2 cor0
----
27

skipif mysql # not compatible
query I rowsort label-2680
SELECT DISTINCT CAST ( + ( + 27 ) AS INTEGER ) AS col2 FROM tab2 cor0
----
27

query I rowsort
SELECT DISTINCT - 9 FROM tab1 AS cor0 WHERE NOT col1 * - 13 - + + col0 <= + + col2 - col0 * + + 2 * 36
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2682
SELECT - COUNT( * ) DIV + ( + COUNT( * ) ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-2682
SELECT - COUNT ( * ) / + ( + COUNT ( * ) ) AS col0 FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2683
SELECT * FROM tab2 WHERE NOT + - ( - CAST( NULL AS SIGNED ) ) * col1 + + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2683
SELECT * FROM tab2 WHERE NOT + - ( - CAST ( NULL AS INTEGER ) ) * col1 + + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 70 * + col2 FROM tab1
----
-4130
-4760
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT MAX( ALL + 19 ) AS col1 FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2685
SELECT MAX ( ALL + 19 ) AS col1 FROM tab0
----
19

query I rowsort
SELECT DISTINCT col1 * + 46 FROM tab1
----
2162
230
644

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - 55 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 AS cor0 WHERE NOT ( - col0 ) = NULL
----

query I rowsort
SELECT - - 25 * - col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1150
-1600
-1875

query II rowsort
SELECT ALL col1 + + - col1 + 43 * + col0 AS col1, col0 FROM tab1 cor0
----
2193
51
3655
85
3913
91

onlyif mysql # aggregate syntax: 
query II rowsort label-2691
SELECT ALL + COUNT( * ) AS col1, + 23 AS col2 FROM tab2
----
3
23

skipif mysql # not compatible
query II rowsort label-2691
SELECT ALL + COUNT ( * ) AS col1, + 23 AS col2 FROM tab2
----
3
23

query I rowsort
SELECT - 15 + - + 31 FROM tab0
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2693
SELECT ALL - col0 * + 25 * - col2 + + col2 + CAST( - 31 AS SIGNED ) FROM tab1 AS cor0
----
122465
125403
154737

skipif mysql # not compatible
query I rowsort label-2693
SELECT ALL - col0 * + 25 * - col2 + + col2 + CAST ( - 31 AS INTEGER ) FROM tab1 AS cor0
----
122465
125403
154737

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

query I rowsort
SELECT col2 * - col0 / + 35 + - ( - col0 ) AS col0 FROM tab0 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 36 + - 71 AS col0 FROM tab1 cor0
----
-35

query II rowsort
SELECT + col1, - col0 AS col0 FROM tab0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT - + 30 AS col2 FROM tab0 WHERE NULL = NULL
----

query II rowsort
SELECT 38 AS col0, col1 AS col2 FROM tab2
----
38
51
38
67
38
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT + SUM( ALL - + col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2700
SELECT + SUM ( ALL - + col1 ) FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2701
SELECT DISTINCT ( col0 ) * col1 * - ( - col0 ) - - + CAST( 41 AS SIGNED ), + col1 FROM tab2
----
107957
51
315433
77
376916
67

skipif mysql # not compatible
query II rowsort label-2701
SELECT DISTINCT ( col0 ) * col1 * - ( - col0 ) - - + CAST ( 41 AS INTEGER ), + col1 FROM tab2
----
107957
51
315433
77
376916
67

onlyif mysql # DIV for integer division: 
query I rowsort label-2702
SELECT ALL - - 60 + + - 28 DIV - col0 FROM tab2 cor0
----
60
60
60

skipif mysql # not compatible
query I rowsort label-2702
SELECT ALL - - 60 + + - 28 / - col0 FROM tab2 cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 col2, - col0 AS col0 FROM tab0 AS cor0
----
-1
-97
-21
-87
-81
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 86 col1 FROM tab0 AS cor0
----
86
86
86

query II rowsort
SELECT ALL + 53 AS col0, col2 AS col2 FROM tab2 AS cor0
----
53
23
53
40
53
58

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN + 30 AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE 76 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE 76 IS NULL
----
0

query I rowsort
SELECT - - 33 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 620d384286e82d1c6c8b1b2b109a7da5

query I rowsort
SELECT + - ( + 10 ) FROM tab2 AS cor0
----
-10
-10
-10

query II rowsort
SELECT - + col0 * - + 68 AS col2, + 5 AS col2 FROM tab1 AS cor0
----
3468
5
5780
5
6188
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2711
SELECT DISTINCT + COUNT( * ) * AVG ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2711
SELECT DISTINCT + COUNT ( * ) * AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2712
SELECT ALL + COUNT( * ) * 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-2712
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT CAST( + - col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2713
SELECT CAST ( + - col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query II rowsort
SELECT ALL + 38, col1 AS col1 FROM tab0
----
38
1
38
21
38
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 57 + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 58 * col2 FROM tab0
----
2726
5742
580

query II rowsort
SELECT col0, 80 + + col1 AS col0 FROM tab2
----
46
131
64
157
75
147

onlyif mysql # aggregate syntax: 
query I rowsort label-2718
SELECT ALL - + AVG ( DISTINCT 5 ) - + COUNT( * ) FROM tab1 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2718
SELECT ALL - + AVG ( DISTINCT 5 ) - + COUNT ( * ) FROM tab1 WHERE NULL < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2719
SELECT - 77 * + - col2 + - + col1 + + 3 + + col2 * + col2 + + col0 + + col1 DIV - col2 FROM tab2 AS cor0
----
2296
4669
7840

skipif mysql # not compatible
query I rowsort label-2719
SELECT - 77 * + - col2 + - + col1 + + 3 + + col2 * + col2 + + col0 + + col1 / - col2 FROM tab2 AS cor0
----
2296
4669
7840

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2720
SELECT DISTINCT - COUNT( * ) DIV + 96 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2720
SELECT DISTINCT - COUNT ( * ) / + 96 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 AS col2, + col0 col0 FROM tab1 AS cor0
----
51
51
85
85
91
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 98 * + col2 col2 FROM tab1 cor0
----
-5782
-6664
-9408

query I rowsort
SELECT 53 FROM tab0 WHERE NULL IS NULL
----
53
53
53

query I rowsort
SELECT 38 - col2 * + col0 AS col1 FROM tab2
----
-1020
-2522
-4312

query I rowsort
SELECT - 3 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2726
SELECT ALL + 33 + - COUNT( * ) FROM tab1 WHERE NOT + ( - CAST( NULL AS SIGNED ) ) + + col2 IN ( + col0 )
----
33

skipif mysql # not compatible
query I rowsort label-2726
SELECT ALL + 33 + - COUNT ( * ) FROM tab1 WHERE NOT + ( - CAST ( NULL AS INTEGER ) ) + + col2 IN ( + col0 )
----
33

query I rowsort
SELECT ALL - 65 * col2 AS col2 FROM tab2
----
-1495
-2600
-3770

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT + SUM( ( col0 ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2728
SELECT + SUM ( ( col0 ) ) FROM tab0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-2729
SELECT + 93 DIV + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2729
SELECT + 93 / + col1 FROM tab2
----
1
1
1

query I rowsort
SELECT DISTINCT col1 * 89 + - 24 AS col0 FROM tab1
----
1222
4159
421

query I rowsort
SELECT - col0 AS col2 FROM tab2 WHERE NOT ( ( col1 ) * 72 + - col1 ) < ( NULL )
----

query I rowsort
SELECT ALL - 37 - - 69 AS col2 FROM tab1
----
32
32
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2733
SELECT ALL - COUNT( * ) * 20 + + COUNT( * ) DIV - COUNT( * ) FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-2733
SELECT ALL - COUNT ( * ) * 20 + + COUNT ( * ) / - COUNT ( * ) FROM tab0
----
-61

onlyif mysql # DIV for integer division: 
query I rowsort label-2734
SELECT + 67 DIV ( + 85 ) FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2734
SELECT + 67 / ( + 85 ) FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2735
SELECT ( COUNT( * ) ) * - 92 AS col2 FROM tab1
----
-276

skipif mysql # not compatible
query I rowsort label-2735
SELECT ( COUNT ( * ) ) * - 92 AS col2 FROM tab1
----
-276

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT - ( 35 ) * + COUNT( * ) FROM tab2
----
-105

skipif mysql # not compatible
query I rowsort label-2737
SELECT - ( 35 ) * + COUNT ( * ) FROM tab2
----
-105

onlyif mysql # DIV for integer division: 
query I rowsort label-2738
SELECT DISTINCT + col2 DIV - 7 AS col1 FROM tab1
----
-13
-8
-9

skipif mysql # not compatible
query I rowsort label-2738
SELECT DISTINCT + col2 / - 7 AS col1 FROM tab1
----
-13
-8
-9

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 70 * col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 98 + - col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN - ( - 93 ) AND ( - col2 / 67 )
----

query I rowsort
SELECT + 91 * + 51 AS col0 FROM tab0
----
4641
4641
4641

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2742
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2742
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col0 FROM tab1
----
NULL

query I rowsort
SELECT 91 * col1 AS col2 FROM tab1
----
1274
4277
455

query I rowsort
SELECT ALL + 26 * col0 + + col1 * 8 FROM tab0
----
1038
2430
2530

query I rowsort
SELECT - 36 * col2 FROM tab0
----
-1692
-3564
-360

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( col0 * + col1 )
----

query I rowsort
SELECT col2 * col0 + col1 FROM tab1 WHERE NULL IN ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2748
SELECT ALL col2 DIV - ( 52 ) FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2748
SELECT ALL col2 / - ( 52 ) FROM tab0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL - ( - ( COUNT( * ) ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL - ( - ( COUNT ( * ) ) ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 10 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2751
SELECT 39 DIV col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2751
SELECT 39 / col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 52 * col2 + + 60 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT 88 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 / + 51 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 80 col1 FROM tab0 AS cor0
----
80
80
80

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE 46 <= + col1 * 41 + col0 * 38
----
59
68
96

query I rowsort
SELECT + - 10 * + col0 FROM tab0 AS cor0
----
-150
-870
-970

query I rowsort
SELECT ALL - 56 + 96 * col0 FROM tab0 cor0
----
1384
8296
9256

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT DISTINCT + - 8 * - COUNT( * ) + 88 * + COUNT( * ) FROM tab2 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2760
SELECT DISTINCT + - 8 * - COUNT ( * ) + 88 * + COUNT ( * ) FROM tab2 AS cor0
----
288

query I rowsort
SELECT DISTINCT - 66 * + col1 FROM tab1 cor0
----
-3102
-330
-924

query I rowsort
SELECT DISTINCT + + 65 * + col1 AS col2 FROM tab0 AS cor0
----
1365
5265
65

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + 73 * col2 ) = + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT 59 * + col1 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 + + - col1 col2 FROM tab1
----
19
52
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2766
SELECT - col1 * + CAST( NULL AS SIGNED ) * 63 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2766
SELECT - col1 * + CAST ( NULL AS INTEGER ) * 63 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 FROM tab0 WHERE + 54 IS NOT NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2768
SELECT + ( + COUNT( * ) ) * - SUM( ALL - 76 + + 16 ) col0 FROM tab2
----
540

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2768
SELECT + ( + COUNT ( * ) ) * - SUM ( ALL - 76 + + 16 ) col0 FROM tab2
----
540

onlyif mysql # DIV for integer division: 
query I rowsort label-2769
SELECT 15 DIV ( + 73 ) FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT 15 / ( + 73 ) FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 WHERE col1 NOT BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col2 * - - col2 + - col1 * col0 FROM tab0
----
-1727
9704
994

query I rowsort
SELECT DISTINCT + - col0 + 43 * - col1 AS col0 FROM tab1 AS cor0
----
-2112
-300
-653

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( ( col1 ) ) BETWEEN 4 AND col2 + col2
----
15
81
47

query I rowsort
SELECT + + col0 + + + col0 + + col2 * col1 AS col2 FROM tab0 AS cor0
----
293
3837
384

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2775
SELECT DISTINCT - MAX( + - CAST( NULL AS SIGNED ) ) - + 50 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2775
SELECT DISTINCT - MAX ( + - CAST ( NULL AS INTEGER ) ) - + 50 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + col0 + + ( + col1 ) FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT + + 97 + - 99 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-794

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT + + 97 + - 99 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-794

query I rowsort
SELECT col1 * + col0 FROM tab1 cor0 WHERE ( - col2 * + + col1 ) IS NOT NULL
----
425
4277
714

query I rowsort
SELECT ALL col0 FROM tab0 AS cor0 WHERE NOT - col0 * + - col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + ( col0 ) + - 62 AS col0 FROM tab2 AS cor0
----
-108
-126
-137

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - col1 - - 32 * + col2 col0 FROM tab2 AS cor0
----
1139
1714
639

onlyif mysql # aggregate syntax: 
query I rowsort label-2782
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE ( - col1 + - col1 / + ( 8 ) ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2782
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE ( - col1 + - col1 / + ( 8 ) ) < NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2783
SELECT + + COUNT( * ) * - 47 FROM tab0 cor0 WHERE NULL <> 88
----
0

skipif mysql # not compatible
query I rowsort label-2783
SELECT + + COUNT ( * ) * - 47 FROM tab0 cor0 WHERE NULL <> 88
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col0 + - + col2 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE + 82 - col0 + - col1 * + 42 IN ( 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2786
SELECT COUNT( + 77 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2786
SELECT COUNT ( + 77 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2787
SELECT DISTINCT col2 DIV - col0 * - col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT col2 / - col0 * - col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2788
SELECT * FROM tab2 WHERE CAST( - ( - ( col1 ) ) AS SIGNED ) NOT IN ( col2 / col1 ) AND NOT ( - CAST( col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2788
SELECT * FROM tab2 WHERE CAST ( - ( - ( col1 ) ) AS INTEGER ) NOT IN ( col2 / col1 ) AND NOT ( - CAST ( col0 AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2789
SELECT COUNT( DISTINCT + + col0 ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2789
SELECT COUNT ( DISTINCT + + col0 ) col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - 88 col0 FROM tab2
----
-4488
-5896
-6776

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 * ( + col2 ) + col2 col2 FROM tab2 WHERE NOT NULL <= + col2 * + col1 * col1 + col2
----

query I rowsort
SELECT ALL - ( - + col1 ) AS col2 FROM tab2
----
51
67
77

query I rowsort
SELECT - + ( + + 94 ) * + + col0 + + + col2 FROM tab1 AS cor0
----
-4698
-7931
-8486

query I rowsort
SELECT + col2 - - col1 AS col0 FROM tab0 AS cor0 WHERE NOT + 90 > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT ALL - COUNT( * ) * 84 col0 FROM tab1 cor0 WHERE NULL BETWEEN + 46 AND ( - 92 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2796
SELECT ALL - COUNT ( * ) * 84 col0 FROM tab1 cor0 WHERE NULL BETWEEN + 46 AND ( - 92 )
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 37 ) IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2798
SELECT ALL + COUNT( * ) DIV COUNT( - 9 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2798
SELECT ALL + COUNT ( * ) / COUNT ( - 9 ) FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT DISTINCT - SUM( ( - ( + col2 ) ) ) FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-2799
SELECT DISTINCT - SUM ( ( - ( + col2 ) ) ) FROM tab2 AS cor0
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2800
SELECT ALL - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 <= - 44
----
-3

skipif mysql # not compatible
query I rowsort label-2800
SELECT ALL - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col1 <= - 44
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 17 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( + col1 + 26 + - + ( + - col0 ) * 66 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2803
SELECT DISTINCT - - col1 / + col1 * + ( - 99 ) * CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT - - col1 / + col1 * + ( - 99 ) * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + 64 + + col0 FROM tab0 AS cor0
----
151
161
79

query III rowsort
SELECT * FROM tab2 WHERE - + 96 NOT BETWEEN ( - - col2 * + + col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col2 ) * + 10 FROM tab0 WHERE NOT - col0 / + 84 BETWEEN + col0 AND NULL
----
100
470
990

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2807
SELECT ALL 21 + COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2807
SELECT ALL 21 + COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 40 AS col0 FROM tab1 WHERE NULL IS NULL
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-2809
SELECT ALL + ( COUNT( * ) ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2809
SELECT ALL + ( COUNT ( * ) ) FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2810
SELECT + 30 * + 32 * + 95 * - CAST( NULL AS SIGNED ) * - col1 * col1 + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2810
SELECT + 30 * + 32 * + 95 * - CAST ( NULL AS INTEGER ) * - col1 * col1 + + col1 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 + + 39 AS col0 FROM tab1 AS cor0
----
124
130
90

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 50 < ( NULL )
----

query I rowsort
SELECT - col1 + + ( col1 ) AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL > + 74
----

query I rowsort
SELECT DISTINCT + col2 * col1 - + 98 AS col1 FROM tab2
----
1075
2982
3788

onlyif mysql # DIV for integer division: 
query I rowsort label-2816
SELECT DISTINCT col1 - - col0 * col1 DIV + 23 FROM tab2
----
153
285
291

skipif mysql # not compatible
query I rowsort label-2816
SELECT DISTINCT col1 - - col0 * col1 / + 23 FROM tab2
----
153
285
291

query I rowsort
SELECT + col2 - - col1 + - col1 * col1 * ( - - ( - + col1 ) ) + - col2 FROM tab1 AS cor0
----
103870
130
2758

onlyif mysql # aggregate syntax: 
query I rowsort label-2818
SELECT - MAX( ALL 10 ) - - 1 col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2818
SELECT - MAX ( ALL 10 ) - - 1 col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT col2 + + ( - col2 ) + + + 76 FROM tab0 AS cor0
----
76
76
76

onlyif mysql # DIV for integer division: 
query I rowsort label-2820
SELECT col2 + + + 51 + + col1 DIV + col2 AS col2 FROM tab1 AS cor0
----
110
119
147

skipif mysql # not compatible
query I rowsort label-2820
SELECT col2 + + + 51 + + col1 / + col2 AS col2 FROM tab1 AS cor0
----
110
119
147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col1 <= + col2 * col2 + + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT ALL + 14 + - MIN( DISTINCT - 49 ) FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2822
SELECT ALL + 14 + - MIN ( DISTINCT - 49 ) FROM tab0 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2823
SELECT ALL - col1 + - col1 * - - col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) = + - col1
----

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL - col1 + - col1 * - - col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) = + - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT - + col2 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2825
SELECT DISTINCT 31 - - + 95 + + - 52 - MIN( + col1 + col2 * col0 ) FROM tab1 AS cor0 WHERE + col1 = + 1 / + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2825
SELECT DISTINCT 31 - - + 95 + + - 52 - MIN ( + col1 + col2 * col0 ) FROM tab1 AS cor0 WHERE + col1 = + 1 / + - col0
----
NULL

query I rowsort
SELECT ALL + col0 + - col0 * + col1 FROM tab2 cor0 WHERE ( - 32 > NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 43 * - - col2 * col0 col1 FROM tab1 AS cor0
----
210528
215645
266084

query I rowsort
SELECT - col0 AS col0 FROM tab0 cor0 WHERE NOT 2 IS NULL
----
-15
-87
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * col0 AS col2, + col1 * - - col2 col2 FROM tab1 cor0
----
-2601
1344
-7225
295
-8281
3196

query III rowsort
SELECT * FROM tab0 WHERE NOT + 75 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 92 + 24 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 4 + + col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2833
SELECT - COUNT( DISTINCT + 35 ) AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-2833
SELECT - COUNT ( DISTINCT + 35 ) AS col0 FROM tab2
----
-1

query II rowsort
SELECT ALL - col1 * - col2 + - 9 AS col0, col2 FROM tab0 WHERE + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 8 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - MAX( ALL 6 ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2837
SELECT - MAX ( ALL 6 ) FROM tab2
----
-6

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE - col2 + - 82 IS NULL
----

query I rowsort
SELECT 82 * + - col0 FROM tab1
----
-4182
-6970
-7462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 14 col2, + col1 AS col1 FROM tab1 AS cor0
----
14
14
14
47
14
5

query I rowsort
SELECT - ( - + 16 ) FROM tab1 AS cor0
----
16
16
16

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 + 53 NOT IN ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - 27 col0 FROM tab2
----
-1242
-1728
-2025

onlyif mysql # aggregate syntax: 
query I rowsort label-2844
SELECT DISTINCT 96 * COUNT( * ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-2844
SELECT DISTINCT 96 * COUNT ( * ) FROM tab2
----
288

query I rowsort
SELECT DISTINCT - 53 * + - 27 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NULL
----
1431

query I rowsort
SELECT 71 + - + 79 AS col1 FROM tab2 AS cor0
----
-8
-8
-8

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 94 = NULL
----

query I rowsort
SELECT DISTINCT + 1 + - col1 AS col1 FROM tab0 AS cor0 WHERE 36 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + + - 32 FROM tab2 AS cor0
----
19
35
45

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN 97 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * + + 62 AS col0 FROM tab1 AS cor0 WHERE ( + 58 ) IS NOT NULL
----
3658
4216
5952

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 88 ) col1 FROM tab1 AS cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT DISTINCT ( + - ( - MIN( ALL + - col0 ) ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT ( + - ( - MIN ( ALL + - col0 ) ) ) FROM tab0 AS cor0
----
-97

query II rowsort
SELECT - 76 AS col1, col0 AS col2 FROM tab1
----
-76
51
-76
85
-76
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2855
SELECT ALL + - col2 * + + 70 / - col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) + col2 = + 4
----

skipif mysql # not compatible
query I rowsort label-2855
SELECT ALL + - col2 * + + 70 / - col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) + col2 = + 4
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2856
SELECT ALL + CAST( NULL AS SIGNED ) + - col0 + + col1 * - 56 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2856
SELECT ALL + CAST ( NULL AS INTEGER ) + - col0 + + col1 * - 56 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 BETWEEN - - col0 AND - 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * 97 FROM tab0
----
-4559
-9603
-970

query II rowsort
SELECT 66, + ( + col2 ) FROM tab1
----
66
59
66
68
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( ( + + col0 ) ) col2, - col1 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT + 6 + + 94 FROM tab1 AS cor0
----
100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 31 NOT IN ( 3 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 3 - + + col2 FROM tab2 cor0
----
-20
-37
-55

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + 76, + col2 + - col2 + + 7 )
----

query I rowsort
SELECT col0 + 98 AS col0 FROM tab2
----
144
162
173

onlyif mysql # aggregate syntax: 
query I rowsort label-2867
SELECT ALL COUNT( * ) - - - 2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2867
SELECT ALL COUNT ( * ) - - - 2 FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2868
SELECT DISTINCT CAST( NULL AS SIGNED ) - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2868
SELECT DISTINCT CAST ( NULL AS INTEGER ) - col2 AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + - 55 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2869
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 + - 55 + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT - + 57 * - 95 AS col1 FROM tab0 AS cor0
----
5415
5415
5415

onlyif mysql # DIV for integer division: 
query I rowsort label-2871
SELECT - col1 DIV - col2 col2 FROM tab0 cor0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2871
SELECT - col1 / - col2 col2 FROM tab0 cor0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + MIN( + col1 ) * - 89 FROM tab2 AS cor0
----
-4539

skipif mysql # not compatible
query I rowsort label-2872
SELECT + MIN ( + col1 ) * - 89 FROM tab2 AS cor0
----
-4539

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE col2 <> - col1 + - ( + - col0 ) + + ( - col2 ) * + ( col0 )
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + MIN( 99 ) AS col2 FROM tab1 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-2874
SELECT + MIN ( 99 ) AS col2 FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2875
SELECT DISTINCT + COUNT( ALL - 21 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2875
SELECT DISTINCT + COUNT ( ALL - 21 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE + col0 + + + col1 = ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT + col2 IS NULL )
----

query I rowsort
SELECT ALL + 93 * + + ( - - col0 ) AS col0 FROM tab1 WHERE + 97 + - col2 <= NULL
----

query I rowsort
SELECT ALL + 73 * - col1 FROM tab0
----
-1533
-5913
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-2880
SELECT ALL + SUM( DISTINCT + 0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL + SUM ( DISTINCT + 0 ) AS col2 FROM tab2
----
0

query IIIIII rowsort
SELECT ALL * FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL OR NULL <= NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2882
SELECT * FROM tab0 WHERE NOT CAST( col2 AS SIGNED ) >= + - col0
----

skipif mysql # not compatible
query III rowsort label-2882
SELECT * FROM tab0 WHERE NOT CAST ( col2 AS INTEGER ) >= + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - 88 col0 FROM tab0 AS cor0
----
1848
7128
88

query I rowsort
SELECT ALL - - col2 AS col2 FROM tab0 cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE NOT + + 32 * 79 + - col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2885
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE NOT + + 32 * 79 + - col2 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT DISTINCT col2 * CAST( + - 2 AS SIGNED ) AS col1 FROM tab2
----
-116
-46
-80

skipif mysql # not compatible
query I rowsort label-2886
SELECT DISTINCT col2 * CAST ( + - 2 AS INTEGER ) AS col1 FROM tab2
----
-116
-46
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2887
SELECT COUNT( - - 95 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2887
SELECT COUNT ( - - 95 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT ALL - 19 + COUNT( * ) FROM tab0 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-2888
SELECT ALL - 19 + COUNT ( * ) FROM tab0 cor0
----
-16

query I rowsort
SELECT + col1 * + 1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 + - 72 - + col2 AS col0, col0 col1 FROM tab0 AS cor0
----
-103
87
-172
97
-200
15

query I rowsort
SELECT ALL 29 + - - 95 AS col1 FROM tab2 AS cor0
----
124
124
124

query I rowsort
SELECT DISTINCT - col1 * - + 15 + + ( 82 ) + 6 FROM tab2 AS cor0
----
1093
1243
853

query I rowsort
SELECT + col0 + col1 + 57 AS col0 FROM tab1 AS cor0 WHERE col2 * + col2 IS NULL
----

query I rowsort
SELECT - + col0 + - 16 FROM tab0 AS cor0
----
-103
-113
-31

query I rowsort
SELECT + col1 + ( 55 ) FROM tab0
----
136
56
76

query I rowsort
SELECT - 12 + + 67 AS col1 FROM tab1
----
55
55
55

onlyif mysql # DIV for integer division: 
query I rowsort label-2897
SELECT DISTINCT + ( + 83 ) DIV - - col2 - - 92 AS col2 FROM tab1
----
92
93

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT + ( + 83 ) / - - col2 - - 92 AS col2 FROM tab1
----
92
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2898
SELECT DISTINCT + col1 + - + CAST( + + col1 AS SIGNED ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2898
SELECT DISTINCT + col1 + - + CAST ( + + col1 AS INTEGER ) AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2899
SELECT COUNT( * ) + - COUNT( * ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2899
SELECT COUNT ( * ) + - COUNT ( * ) FROM tab0 cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 38 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2901
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - ( - ( - 16 ) ) col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2901
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - ( - ( - 16 ) ) col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> + 80 / col2 * ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2903
SELECT + COUNT( * ) AS col2, CAST( - 94 AS SIGNED ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-94

skipif mysql # not compatible
query II rowsort label-2903
SELECT + COUNT ( * ) AS col2, CAST ( - 94 AS INTEGER ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9
-94

query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab1 WHERE + + col0 IS NOT NULL
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT DISTINCT + COUNT( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-2905
SELECT DISTINCT + COUNT ( * ) FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2, tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2907
SELECT DISTINCT col2 DIV - 20 AS col0 FROM tab2
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2907
SELECT DISTINCT col2 / - 20 AS col0 FROM tab2
----
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2908
SELECT + MIN( - - 37 ) * - MAX( - col1 ) AS col2 FROM tab2
----
1887

skipif mysql # not compatible
query I rowsort label-2908
SELECT + MIN ( - - 37 ) * - MAX ( - col1 ) AS col2 FROM tab2
----
1887

query II rowsort
SELECT DISTINCT 34 AS col0, - col2 FROM tab1 AS cor0
----
34
-59
34
-68
34
-96

query I rowsort
SELECT DISTINCT - 0 * col1 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
0

query I rowsort
SELECT - + col2 * + + col2 AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query I rowsort label-2912
SELECT + 21 DIV + 96 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2912
SELECT + 21 / + 96 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( + + col0 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NULL OR NULL IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2915
SELECT DISTINCT ( + - MIN( DISTINCT + 95 ) ) AS col0 FROM tab1 cor0
----
-95

skipif mysql # not compatible
query I rowsort label-2915
SELECT DISTINCT ( + - MIN ( DISTINCT + 95 ) ) AS col0 FROM tab1 cor0
----
-95

onlyif mysql # aggregate syntax: 
query II rowsort label-2916
SELECT 42 AS col1, - COUNT( * ) * 26 AS col0 FROM tab0
----
42
-78

skipif mysql # not compatible
query II rowsort label-2916
SELECT 42 AS col1, - COUNT ( * ) * 26 AS col0 FROM tab0
----
42
-78

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + 49 + - col0 AND + 82 + - 67
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2918
SELECT col2, + CAST( NULL AS SIGNED ) * 14 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-2918
SELECT col2, + CAST ( NULL AS INTEGER ) * 14 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2919
SELECT DISTINCT - COUNT( * ) + + 76 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - COUNT ( * ) + + 76 FROM tab1 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2920
SELECT ALL + col0 DIV col2 * col2 + col0 AS col0 FROM tab0 cor0
----
15
167
97

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + col0 / col2 * col2 + col0 AS col0 FROM tab0 cor0
----
15
167
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2921
SELECT ALL + COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2921
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL <= NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT + + MIN( + - 81 ) + COUNT( * ) + + 9 AS col1 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2922
SELECT + + MIN ( + - 81 ) + COUNT ( * ) + + 9 AS col1 FROM tab2 AS cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2923
SELECT DISTINCT col1 * + CAST( - col1 AS SIGNED ) FROM tab1 AS cor0 WHERE NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT col1 * + CAST ( - col1 AS INTEGER ) FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + 92 + 61 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-2925
SELECT + + 98 * + COUNT( * ) FROM tab2 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-2925
SELECT + + 98 * + COUNT ( * ) FROM tab2 AS cor0
----
294

query I rowsort
SELECT DISTINCT col1 * 43 FROM tab2
----
2193
2881
3311

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - ( + - 32 ) * col2 col0, + ( + + col2 ) FROM tab1
----
1888
59
2176
68
3072
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2928
SELECT MAX( - + 84 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-2928
SELECT MAX ( - + 84 ) FROM tab0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2929
SELECT DISTINCT + COUNT( DISTINCT - - col2 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + COUNT ( DISTINCT - - col2 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT ALL 37 * MAX( ALL col1 ) FROM tab1
----
1739

skipif mysql # not compatible
query I rowsort label-2930
SELECT ALL 37 * MAX ( ALL col1 ) FROM tab1
----
1739

query I rowsort
SELECT - 71 + + + ( + col0 ) AS col2 FROM tab1 WHERE NULL <> + - ( + - col2 )
----

query I rowsort
SELECT ( + col0 ) * + 41 * + col0 AS col2 FROM tab0
----
310329
385769
9225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2933
SELECT - + 73 FROM tab1 WHERE - + col1 + CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2933
SELECT - + 73 FROM tab1 WHERE - + col1 + CAST ( + col2 AS INTEGER ) IS NULL
----

query II rowsort
SELECT 9 AS col0, - col0 * col0 AS col0 FROM tab2
----
9
-2116
9
-4096
9
-5625

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 = + col2 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT DISTINCT - COUNT( * ) + + - COUNT( + 59 ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2936
SELECT DISTINCT - COUNT ( * ) + + - COUNT ( + 59 ) AS col0 FROM tab1 AS cor0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2937
SELECT MIN( ALL + + 39 ) FROM tab2 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-2937
SELECT MIN ( ALL + + 39 ) FROM tab2 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-2938
SELECT + ( + ( + - COUNT( * ) ) ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2938
SELECT + ( + ( + - COUNT ( * ) ) ) AS col0 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col1 FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT - 90 * MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-2941
SELECT - 90 * MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
90

query I rowsort
SELECT ALL col0 * - - 43 * + - 81 AS col2 FROM tab2 AS cor0
----
-160218
-222912
-261225

query I rowsort
SELECT 87 * - col0 FROM tab2 WHERE NOT 51 NOT BETWEEN + - col0 AND + - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2944
SELECT ALL col2 col0, + CAST( NULL AS DECIMAL ) col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2944
SELECT ALL col2 col0, + CAST ( NULL AS REAL ) col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col2 + - - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 AS col2, 8 FROM tab0
----
1
8
21
8
81
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col1 FROM tab2 WHERE + 49 * 62 / - + col2 IS NULL
----

query I rowsort
SELECT + + 87 AS col0 FROM tab0 WHERE NOT + + col2 / + col2 IS NULL
----
87
87
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2949
SELECT ALL * FROM tab1 WHERE + col0 + col1 / + col0 * col1 - + 21 + - 61 * col2 NOT IN ( col2, CAST( col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2949
SELECT ALL * FROM tab1 WHERE + col0 + col1 / + col0 * col1 - + 21 + - 61 * col2 NOT IN ( col2, CAST ( col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE + - ( col0 ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2951
SELECT + + col1 * - col2 + - col2 * CAST( 91 AS SIGNED ) FROM tab0 AS cor0
----
-1120
-8084
-9108

skipif mysql # not compatible
query I rowsort label-2951
SELECT + + col1 * - col2 + - col2 * CAST ( 91 AS INTEGER ) FROM tab0 AS cor0
----
-1120
-8084
-9108

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT - - 69 + - + COUNT( DISTINCT col1 ) * + 85 * + SUM( + 29 ) AS col2 FROM tab1 AS cor0
----
-22116

skipif mysql # not compatible
query I rowsort label-2952
SELECT - - 69 + - + COUNT ( DISTINCT col1 ) * + 85 * + SUM ( + 29 ) AS col2 FROM tab1 AS cor0
----
-22116

query II rowsort
SELECT + - col0 + - + 9 + + col1 AS col2, ( - col1 ) + col2 AS col2 FROM tab1 AS cor0
----
-46
82
-53
21
-89
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2954
SELECT ( + COUNT( * ) ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2954
SELECT ( + COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2955
SELECT CAST( NULL AS SIGNED ) + ( - SUM( + + 41 ) ) + - - 27 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2955
SELECT CAST ( NULL AS INTEGER ) + ( - SUM ( + + 41 ) ) + - - 27 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT ALL - 95 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 * + ( + - 77 ) NOT IN ( - - 60 + + ( - 35 ) * col1, 6 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 >= col1
----

query I rowsort
SELECT DISTINCT + 24 * + ( - col1 ) + + col1 AS col0 FROM tab0 AS cor0
----
-1863
-23
-483

onlyif mysql # DIV for integer division: 
query I rowsort label-2960
SELECT ALL + 85 + - + col2 + + + 55 + - + ( + col1 ) - + 15 DIV col1 DIV - col1 AS col1 FROM tab2 AS cor0
----
15
23
66

skipif mysql # not compatible
query I rowsort label-2960
SELECT ALL + 85 + - + col2 + + + 55 + - + ( + col1 ) - + 15 / col1 / - col1 AS col1 FROM tab2 AS cor0
----
15
23
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2961
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT - + CAST( NULL AS SIGNED ) NOT BETWEEN 52 AND + 49
----

skipif mysql # not compatible
query I rowsort label-2961
SELECT DISTINCT + col1 AS col2 FROM tab2 WHERE NOT - + CAST ( NULL AS INTEGER ) NOT BETWEEN 52 AND + 49
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - 11 col2 FROM tab2
----
62
78
88

query I rowsort
SELECT - col1 AS col0 FROM tab1 WHERE ( - + col2 ) IS NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE + col2 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ( - 80 ) + - + col2 FROM tab0
----
-127
-179
-90

query II rowsort
SELECT ALL - col0 - + col0 AS col0, + col1 FROM tab1
----
-102
14
-170
5
-182
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT + COUNT( * ) - + - COUNT( * ) + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT + COUNT ( * ) - + - COUNT ( * ) + COUNT ( * ) FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2968
SELECT DISTINCT + + 43 / CAST( NULL AS SIGNED ) * col2 + - 25 + - 79 + + + 90 / + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2968
SELECT DISTINCT + + 43 / CAST ( NULL AS INTEGER ) * col2 + - 25 + - 79 + + + 90 / + + col0 * - col1 AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2969
SELECT + + SUM( DISTINCT + ( 15 ) ) * - COUNT( * ) FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-2969
SELECT + + SUM ( DISTINCT + ( 15 ) ) * - COUNT ( * ) FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2970
SELECT DISTINCT SUM( ALL - 78 ) FROM tab1 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-2970
SELECT DISTINCT SUM ( ALL - 78 ) FROM tab1 AS cor0
----
-234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2971
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - ( 26 ) * - 58 - 60 )
----

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IN ( - ( 26 ) * - 58 - 60 )
----

query I rowsort
SELECT + + 22 FROM tab0 WHERE NOT NULL NOT IN ( + 67, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2973
SELECT + ( - ( + SUM( - 63 ) ) ) AS col0 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-2973
SELECT + ( - ( + SUM ( - 63 ) ) ) AS col0 FROM tab2
----
189

query II rowsort
SELECT 11 * ( + col1 ) AS col1, + col0 FROM tab2
----
561
46
737
75
847
64

query II rowsort
SELECT DISTINCT 27 AS col2, - col2 + + + col1 FROM tab0 AS cor0
----
27
-98
27
11
27
34

query I rowsort
SELECT DISTINCT + col0 - + col0 FROM tab1 AS cor0 WHERE NOT - 22 < - col0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 2 * - - col2 >= col0
----
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab2
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-2979
SELECT - + COUNT( * ) AS col0, 28 * + COUNT( * ) FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2979
SELECT - + COUNT ( * ) AS col0, 28 * + COUNT ( * ) FROM tab1 WHERE NOT - + col1 IS NOT NULL
----
0
0

query II rowsort
SELECT col1 * + col1, ( - col2 ) * + col0 AS col1 FROM tab2
----
2601
-1058
4489
-4350
5929
-2560

query I rowsort
SELECT col0 - + 52 FROM tab0 WHERE NOT ( + col1 + ( + ( - 45 ) ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2982
SELECT - COUNT( - - 49 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2982
SELECT - COUNT ( - - 49 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE - col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT DISTINCT CAST( 98 AS SIGNED ) AS col0 FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-2984
SELECT DISTINCT CAST ( 98 AS INTEGER ) AS col0 FROM tab1
----
98

query II rowsort
SELECT DISTINCT 26 + - 66 AS col0, + col0 AS col0 FROM tab2
----
-40
46
-40
64
-40
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2986
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE 51 - - + 21 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2986
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE 51 - - + 21 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2987
SELECT - 53 DIV + 96 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2987
SELECT - 53 / + 96 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2988
SELECT DISTINCT + - COUNT( * ) + + + 3 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2988
SELECT DISTINCT + - COUNT ( * ) + + + 3 AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT - 98 + + + 90 * - COUNT( * ) FROM tab2 AS cor0
----
-368

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT - 98 + + + 90 * - COUNT ( * ) FROM tab2 AS cor0
----
-368

query II rowsort
SELECT + 73 * col0 + + 63 AS col1, col0 AS col2 FROM tab0
----
1158
15
6414
87
7144
97

query I rowsort
SELECT + col2 + + - col2 FROM tab2 WHERE NULL IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2992
SELECT + COUNT( DISTINCT - col1 ) DIV 98 + + 40 + - + MAX( ALL 50 ) FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-2992
SELECT + COUNT ( DISTINCT - col1 ) / 98 + + 40 + - + MAX ( ALL 50 ) FROM tab2
----
-10

query I rowsort
SELECT ALL + + 41 + col1 FROM tab2 AS cor0
----
108
118
92

query I rowsort
SELECT + - AVG ( - 61 ) FROM tab0 AS cor0 WHERE col1 BETWEEN - col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2995
SELECT ALL + 53 + MIN( + col1 ) AS col1 FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-2995
SELECT ALL + 53 + MIN ( + col1 ) AS col1 FROM tab0 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT - + MAX( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2996
SELECT - + MAX ( DISTINCT col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2997
SELECT ALL - + col0 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2997
SELECT ALL - + col0 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - + col1 + + col0 IS NULL
----

query II rowsort
SELECT ALL + ( + 16 ) AS col1, + col2 AS col2 FROM tab0
----
16
10
16
47
16
99

query I rowsort
SELECT + col0 * - col0 - - col0 AS col0 FROM tab0
----
-210
-7482
-9312

query III rowsort
SELECT * FROM tab1 WHERE - 35 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3002
SELECT DISTINCT COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3002
SELECT DISTINCT COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL + ( - - 68 ) FROM tab1
----
68
68
68

query II rowsort
SELECT - col0, col1 FROM tab1 cor0
----
-51
14
-85
5
-91
47

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 * + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + - col0 + - 60 FROM tab0 AS cor0
----
645
810
9543

onlyif mysql # aggregate syntax: 
query I rowsort label-3008
SELECT + - 29 * + - COUNT( * ) col2 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3008
SELECT + - 29 * + - COUNT ( * ) col2 FROM tab1 AS cor0
----
87

query I rowsort
SELECT + col0 * 47 + col1 FROM tab1 AS cor0
----
2411
4000
4324

onlyif mysql # DIV for integer division: 
query I rowsort label-3010
SELECT col2 DIV - 97 + + 23 col0 FROM tab0 AS cor0
----
22
23
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3010
SELECT col2 / - 97 + + 23 col0 FROM tab0 AS cor0
----
22
23
23

query I rowsort
SELECT + 81 * col0 AS col2 FROM tab2
----
3726
5184
6075

onlyif mysql # aggregate syntax: 
query I rowsort label-3012
SELECT ALL COUNT( * ) * + ( 30 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-3012
SELECT ALL COUNT ( * ) * + ( 30 ) AS col2 FROM tab1
----
90

query I rowsort
SELECT ALL col0 * - - ( + - 57 ) FROM tab0
----
-4959
-5529
-855

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 68 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3015
SELECT + - MIN( 91 ) FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-3015
SELECT + - MIN ( 91 ) FROM tab0 AS cor0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT 47 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT col2 - - col0 * - 63 * + col0 * - col2 AS col0, + col2 AS col0 FROM tab2
----
10321960
40
20553808
58
3066107
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 36 - + col0 col1 FROM tab0 AS cor0
----
-123
-133
-51

query II rowsort
SELECT DISTINCT - + col0 + + col1 AS col0, col2 FROM tab0 AS cor0
----
-66
10
-96
99
66
47

query II rowsort
SELECT - 67, + col0 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-67
46
-67
64
-67
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT COUNT( * ) * COUNT( * ) - + COUNT( col1 ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3022
SELECT COUNT ( * ) * COUNT ( * ) - + COUNT ( col1 ) FROM tab1 AS cor0
----
6

query I rowsort
SELECT ALL - col1 + - - col1 AS col1 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - ( - col2 ) / - col2 * + col0 + - - 91 IS NULL
----

query I rowsort
SELECT 16 * + col1 * + 0 + - - col2 + - 87 + + 51 AS col2 FROM tab1 AS cor0
----
23
32
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3026
SELECT + + col2 + 0 DIV - + col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3026
SELECT + + col2 + 0 / - + col1 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT ALL 82 / - 96 FROM tab2 WHERE NULL <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 < col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3029
SELECT - 40 * + SUM( 73 ) AS col0 FROM tab1
----
-8760

skipif mysql # not compatible
query I rowsort label-3029
SELECT - 40 * + SUM ( 73 ) AS col0 FROM tab1
----
-8760

onlyif mysql # aggregate syntax: 
query I rowsort label-3030
SELECT COUNT( ALL - + col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3030
SELECT COUNT ( ALL - + col2 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3031
SELECT + col1 * + - CAST( col2 AS SIGNED ) AS col2, + 34 AS col1 FROM tab1
----
-1344
34
-295
34
-3196
34

skipif mysql # not compatible
query II rowsort label-3031
SELECT + col1 * + - CAST ( col2 AS INTEGER ) AS col2, + 34 AS col1 FROM tab1
----
-1344
34
-295
34
-3196
34

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + ( - col0 ) IS NOT NULL
----

query I rowsort
SELECT col0 * + - col0 * - - 72 AS col1 FROM tab0 AS cor0
----
-16200
-544968
-677448

onlyif mysql # DIV for integer division: 
query I rowsort label-3034
SELECT ALL col0 * col1 DIV col0 col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3034
SELECT ALL col0 * col1 / col0 col0 FROM tab1 AS cor0
----
14
47
5

query II rowsort
SELECT DISTINCT col2 AS col0, 50 FROM tab0
----
10
50
47
50
99
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3036
SELECT COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT col1 + - col2 + + CAST( NULL AS SIGNED ) * + col0 FROM tab1 WHERE NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-3037
SELECT col1 + - col2 + + CAST ( NULL AS INTEGER ) * + col0 FROM tab1 WHERE NOT NULL <> NULL
----

query I rowsort
SELECT ALL - 44 + + + col0 + + - 16 FROM tab2
----
-14
15
4

query I rowsort
SELECT DISTINCT + - ( - 56 ) FROM tab1 AS cor0
----
56

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - + MAX( - 91 ) + - COUNT( * ) col2 FROM tab2 AS cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3040
SELECT - + MAX ( - 91 ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
88

query II rowsort
SELECT ALL + 3 * - col2 AS col2, - col2 * + 72 + col1 AS col1 FROM tab2 AS cor0
----
-120
-2803
-174
-4109
-69
-1605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 23 col0 FROM tab2 AS cor0
----
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - col2 ) * col0 col0 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3044
SELECT col1 * - CAST( - - col0 AS SIGNED ) * - col2 FROM tab2
----
197120
291450
53958

skipif mysql # not compatible
query I rowsort label-3044
SELECT col1 * - CAST ( - - col0 AS INTEGER ) * - col2 FROM tab2
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-3045
SELECT ALL 64 * 32 * + COUNT( * ) FROM tab0 WHERE NOT NULL <= ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3045
SELECT ALL 64 * 32 * + COUNT ( * ) FROM tab0 WHERE NOT NULL <= ( col1 )
----
0

query I rowsort
SELECT DISTINCT + 48 FROM tab2 WHERE NOT - 99 / - col1 * - 95 IN ( + ( + + 8 ), col2 / - 93 * - col1 + col2, + 41, - col2 * 73 * - col0 )
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3047
SELECT COUNT( * ) * - ( - + 81 ) FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-3047
SELECT COUNT ( * ) * - ( - + 81 ) FROM tab2
----
243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3048
SELECT DISTINCT - COUNT( * ) + - 76 + 33 * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3048
SELECT DISTINCT - COUNT ( * ) + - 76 + 33 * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-3049
SELECT ALL + - col1 + - col1, ( - 59 ) DIV - 34 + - ( + - col1 ) * + 21 * - - col2 AS col1 FROM tab0 AS cor0
----
-162
79948
-2
2080
-42
4411

skipif mysql # not compatible
query II rowsort label-3049
SELECT ALL + - col1 + - col1, ( - 59 ) / - 34 + - ( + - col1 ) * + 21 * - - col2 AS col1 FROM tab0 AS cor0
----
-162
79948
-2
2080
-42
4411

query II rowsort
SELECT col2 + + col2 * + + 4 AS col2, col2 AS col0 FROM tab2
----
115
23
200
40
290
58

query I rowsort
SELECT DISTINCT 52 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NOT NULL
----
52

onlyif mysql # DIV for integer division: 
query I rowsort label-3052
SELECT ALL 3 DIV - col1 FROM tab0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL 3 / - col1 FROM tab0
----
-3
0
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab0 WHERE - - col0 IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NOT + 8 * 87 * - - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT ALL - COUNT( DISTINCT + 69 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3055
SELECT ALL - COUNT ( DISTINCT + 69 ) FROM tab2 AS cor0
----
-1

query II rowsort
SELECT ALL + + 32, - col1 AS col1 FROM tab1 AS cor0
----
32
-14
32
-47
32
-5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL <= + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3058
SELECT ( + 81 ), + COUNT( * ) AS col0 FROM tab1
----
81
3

skipif mysql # not compatible
query II rowsort label-3058
SELECT ( + 81 ), + COUNT ( * ) AS col0 FROM tab1
----
81
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - 28
----

query I rowsort
SELECT DISTINCT - 12 * col2 FROM tab0
----
-1188
-120
-564

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 41 + 80 <> - 58 * + col1 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3062
SELECT + CAST( + MAX( - 47 ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT + CAST ( + MAX ( - 47 ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - 21 IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 * + col2 * - col0 AS col0 FROM tab1 AS cor0
----
295885
420784
470016

query I rowsort
SELECT - 39 + - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + 47 < - - col0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-3066
SELECT MAX( + ( - + 73 ) ) AS col0 FROM tab1
----
-73

skipif mysql # not compatible
query I rowsort label-3066
SELECT MAX ( + ( - + 73 ) ) AS col0 FROM tab1
----
-73

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col1 NOT IN ( - + col1 + + 10, ( - col0 ), + - col0, - + 82 )
----

query I rowsort
SELECT DISTINCT - col0 + + 42 AS col2 FROM tab1
----
-43
-49
-9

query I rowsort
SELECT ( - 2 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT DISTINCT - 40 - - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

skipif mysql # not compatible
query I rowsort label-3070
SELECT DISTINCT - 40 - - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-31

query I rowsort
SELECT ALL - col2 * - 58 AS col1 FROM tab1 AS cor0
----
3422
3944
5568

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 46 * + - col0 >= + 82
----

query I rowsort
SELECT ALL + 11 AS col0 FROM tab0 cor0
----
11
11
11

query I rowsort
SELECT - 23 * - - 85 FROM tab1 cor0
----
-1955
-1955
-1955

onlyif mysql # aggregate syntax: 
query I rowsort label-3075
SELECT DISTINCT 91 + + COUNT( * ) FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-3075
SELECT DISTINCT 91 + + COUNT ( * ) FROM tab1 AS cor0
----
94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3076
SELECT ALL + AVG ( ALL - CAST( NULL AS DECIMAL ) ) * - 28 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3076
SELECT ALL + AVG ( ALL - CAST ( NULL AS REAL ) ) * - 28 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL ( + + 2 ) FROM tab0 AS cor0
----
2
2
2

query I rowsort
SELECT + 89 + - 46 FROM tab1
----
43
43
43

query II rowsort
SELECT ALL col1, + col2 + + col0 * - 98 FROM tab0
----
1
-9407
21
-8516
81
-1423

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col1 / col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3081
SELECT ALL ( col1 ) * col1 + + col2 + + 66 + + col0 + CAST( NULL AS SIGNED ) * - 69 * + col2 * col2 * - col2 * - 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL ( col1 ) * col1 + + col2 + + 66 + + col0 + CAST ( NULL AS INTEGER ) * - 69 * + col2 * col2 * - col2 * - 27 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 26 FROM tab2 AS cor0 WHERE NULL >= col2
----

query I rowsort
SELECT - 35 * 77 + 19 FROM tab2 cor0
----
-2676
-2676
-2676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3084
SELECT - + ( + + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3084
SELECT - + ( + + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT DISTINCT - SUM( DISTINCT 42 ) + - - COUNT( * ) - - + SUM( + - col1 ) AS col0 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-3085
SELECT DISTINCT - SUM ( DISTINCT 42 ) + - - COUNT ( * ) - - + SUM ( + - col1 ) AS col0 FROM tab2 AS cor0
----
-234

query I rowsort
SELECT DISTINCT + col0 + + col2 * col0 - + col2 AS col1 FROM tab0 AS cor0
----
673
947
9601

query II rowsort
SELECT ALL - + 80 + + - 14 AS col2, - col2 * - 61 FROM tab1 AS cor0
----
-94
3599
-94
4148
-94
5856

onlyif mysql # aggregate syntax: 
query I rowsort label-3088
SELECT - - 64 * + SUM( ALL + 56 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
32256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3088
SELECT - - 64 * + SUM ( ALL + 56 ) col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
32256

query I rowsort
SELECT + 81 - col0 AS col2 FROM tab0
----
-16
-6
66

query I rowsort
SELECT 88 * + col1 - - 48 - col0 AS col2 FROM tab1
----
1229
403
4093

onlyif mysql # aggregate syntax: 
query I rowsort label-3091
SELECT ALL 1 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3091
SELECT ALL 1 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3092
SELECT - COUNT( DISTINCT - 78 ) DIV - 30 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3092
SELECT - COUNT ( DISTINCT - 78 ) / - 30 AS col1 FROM tab0 AS cor0
----
0

query II rowsort
SELECT + col2 * + col1, + col1 AS col1 FROM tab1 AS cor0
----
1344
14
295
5
3196
47

query I rowsort
SELECT - 15 * - 12 AS col0 FROM tab2 AS cor0
----
180
180
180

onlyif mysql # aggregate syntax: 
query II rowsort label-3095
SELECT 76 AS col0, MIN( - - col2 ) + - ( + - AVG ( ALL + - col2 ) ) FROM tab1 cor0 WHERE NOT 22 <= col2 * + col2
----
76
NULL

skipif mysql # not compatible
query II rowsort label-3095
SELECT 76 AS col0, MIN ( - - col2 ) + - ( + - AVG ( ALL + - col2 ) ) FROM tab1 cor0 WHERE NOT 22 <= col2 * + col2
----
76
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 NOT BETWEEN + col0 AND + col2 * - 60
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3097
SELECT ALL 15 DIV COUNT( * ) FROM tab1
----
5

skipif mysql # not compatible
query I rowsort label-3097
SELECT ALL 15 / COUNT ( * ) FROM tab1
----
5

query II rowsort
SELECT ALL 63, - col0 AS col1 FROM tab1
----
63
-51
63
-85
63
-91

query I rowsort
SELECT ALL ( + 17 ) FROM tab0
----
17
17
17

query I rowsort
SELECT col0 + + col1 FROM tab1 WHERE NOT 57 IS NULL
----
138
65
90

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3102
SELECT ALL COUNT( * ), + SUM( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-3102
SELECT ALL COUNT ( * ), + SUM ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
3
NULL

query II rowsort
SELECT DISTINCT - col2 AS col0, 96 - + - 17 AS col1 FROM tab1
----
-59
113
-68
113
-96
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3104
SELECT + CAST( NULL AS SIGNED ) AS col2, + MAX( ALL col1 ) AS col2 FROM tab2
----
NULL
77

skipif mysql # not compatible
query II rowsort label-3104
SELECT + CAST ( NULL AS INTEGER ) AS col2, + MAX ( ALL col1 ) AS col2 FROM tab2
----
NULL
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 col0, + 61 FROM tab2 AS cor0
----
-23
61
-40
61
-58
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3106
SELECT DISTINCT + SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-3106
SELECT DISTINCT + SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-3107
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3107
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3108
SELECT + COUNT( - - col0 ) * - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-3108
SELECT + COUNT ( - - col0 ) * - COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3109
SELECT DISTINCT COUNT( - 14 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3109
SELECT DISTINCT COUNT ( - 14 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT + col1 + - 49 AS col1 FROM tab0 AS cor0
----
-28
-48
32

query I rowsort
SELECT + - ( + - 68 ) + - col1 FROM tab1 AS cor0
----
21
54
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + - + 44 col1 FROM tab1 AS cor0
----
-30
-39
3

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT 46 * col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3114
SELECT ALL - - col2 + + 17 * col2 DIV col2 col2 FROM tab2 AS cor0
----
40
57
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3114
SELECT ALL - - col2 + + 17 * col2 / col2 col2 FROM tab2 AS cor0
----
40
57
75

query I rowsort
SELECT ALL + col1 + - + 65 AS col2 FROM tab2 AS cor0
----
-14
12
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT DISTINCT + MAX( col1 ) + CAST( 74 AS SIGNED ) FROM tab1
----
121

skipif mysql # not compatible
query I rowsort label-3116
SELECT DISTINCT + MAX ( col1 ) + CAST ( 74 AS INTEGER ) FROM tab1
----
121

query I rowsort
SELECT ALL + 45 * + 60 FROM tab0
----
2700
2700
2700

query II rowsort
SELECT DISTINCT + col0, col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
15
15
87
87
97
97

query I rowsort
SELECT ( - - 8 ) AS col2 FROM tab2
----
8
8
8

query I rowsort
SELECT 31 * + - col0 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT DISTINCT + + 18 + col1 - 56 * col1 * - ( col0 ) AS col2 FROM tab1 WHERE NOT + 1 = - col2 + col0
----
23823
239577
40016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3122
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3122
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 NOT BETWEEN col1 + - col2 + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + col1 / + 65 AND NULL
----

query I rowsort
SELECT ALL + col1 - + + col0 AS col1 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3126
SELECT - col1 + col0 + CAST( 77 AS SIGNED ) - - col2 AS col2 FROM tab0
----
153
272
58

skipif mysql # not compatible
query I rowsort label-3126
SELECT - col1 + col0 + CAST ( 77 AS INTEGER ) - - col2 AS col2 FROM tab0
----
153
272
58

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col2 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT ALL col0 * - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3128
SELECT ALL col0 * - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3129
SELECT ALL + + 53 * - COUNT( + col2 ) col2 FROM tab2 AS cor0
----
-159

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3129
SELECT ALL + + 53 * - COUNT ( + col2 ) col2 FROM tab2 AS cor0
----
-159

query I rowsort
SELECT DISTINCT + - 54 * + col2 * - col2 FROM tab1 AS cor0
----
187974
249696
497664

query I rowsort
SELECT 95 * + + col2 + + 45 AS col2 FROM tab0 AS cor0
----
4510
9450
995

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 76, + col1 col0 FROM tab1 AS cor0
----
76
14
76
47
76
5

onlyif mysql # DIV for integer division: 
query II rowsort label-3133
SELECT + col0 DIV + col2, col2 AS col2 FROM tab0 AS cor0
----
0
47
0
99
8
10

skipif mysql # not compatible
query II rowsort label-3133
SELECT + col0 / + col2, col2 AS col2 FROM tab0 AS cor0
----
0
47
0
99
8
10

query II rowsort
SELECT DISTINCT + col0 * + - 56, - col2 AS col1 FROM tab1 AS cor0
----
-2856
-96
-4760
-59
-5096
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT - COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3135
SELECT - COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT DISTINCT SUM( DISTINCT - 15 ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-3136
SELECT DISTINCT SUM ( DISTINCT - 15 ) FROM tab2
----
-15

onlyif mysql # DIV for integer division: 
query II rowsort label-3137
SELECT ALL col0 DIV - - col1 AS col0, col1 AS col0 FROM tab0
----
0
81
4
21
97
1

skipif mysql # not compatible
query II rowsort label-3137
SELECT ALL col0 / - - col1 AS col0, col1 AS col0 FROM tab0
----
0
81
4
21
97
1

query I rowsort
SELECT + 25 * - 93 * 12 FROM tab2 cor0
----
-27900
-27900
-27900

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 + - 11 + col1 * - col1 * col1 * - col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + - 5 AS col0 FROM tab2 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 >= + 71 * + - col2 - - 60 + - - col2 * - - col1
----
64
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3142
SELECT - SUM( DISTINCT col0 ) + + 65 FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-3142
SELECT - SUM ( DISTINCT col0 ) + + 65 FROM tab2 AS cor0
----
-120

query I rowsort
SELECT + + col2 * - 80 + - - 65 FROM tab0 AS cor0
----
-3695
-735
-7855

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT NULL = - col0 * + 61 )
----

query I rowsort
SELECT ALL - col0 + + col2 - - - col1 - col2 * - 23 FROM tab2 AS cor0
----
1250
455
819

onlyif mysql # aggregate syntax: 
query I rowsort label-3146
SELECT ALL - - COUNT( * ) + COUNT( * ) AS col0 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3146
SELECT ALL - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3147
SELECT 75 - + 53 * + COUNT( - - CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
75

skipif mysql # not compatible
query I rowsort label-3147
SELECT 75 - + 53 * + COUNT ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
75

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3149
SELECT + col2 - + + CAST( NULL AS SIGNED ) + + - 38 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3149
SELECT + col2 - + + CAST ( NULL AS INTEGER ) + + - 38 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col1 + - + col0 AS col1 FROM tab0 cor0
----
-66
-96
66

query I rowsort
SELECT ALL - col1 - col2 - + col1 * - - col0 AS col0 FROM tab2 AS cor0
----
-2420
-5045
-5150

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT COUNT( * ) + + SUM( DISTINCT 41 ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-3153
SELECT COUNT ( * ) + + SUM ( DISTINCT 41 ) AS col1 FROM tab1
----
44

query III rowsort
SELECT * FROM tab2 WHERE + col1 * - + 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT MAX( + + 32 ) col2 FROM tab2
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3155
SELECT MAX ( + + 32 ) col2 FROM tab2
----
32

query I rowsort
SELECT DISTINCT - ( - + 86 ) * - col2 AS col1 FROM tab0
----
-4042
-8514
-860

onlyif mysql # aggregate syntax: 
query II rowsort label-3157
SELECT COUNT( * ) AS col0, 78 * + + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
3432

skipif mysql # not compatible
query II rowsort label-3157
SELECT COUNT ( * ) AS col0, 78 * + + 44 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
3432

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT SUM( ALL - - 74 ) AS col1 FROM tab0 AS cor0
----
222

skipif mysql # not compatible
query I rowsort label-3158
SELECT SUM ( ALL - - 74 ) AS col1 FROM tab0 AS cor0
----
222

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * - col2 * + col2 col0 FROM tab1 AS cor0
----
205379
314432
884736

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3160
SELECT + CAST( - - 6 AS SIGNED ) + 9 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - 35 AND - col2
----

skipif mysql # not compatible
query I rowsort label-3160
SELECT + CAST ( - - 6 AS INTEGER ) + 9 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + - 35 AND - col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 71 * + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3162
SELECT SUM( DISTINCT + col2 ) DIV - + CAST( - SUM( ALL col1 ) AS SIGNED ) FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3162
SELECT SUM ( DISTINCT + col2 ) / - + CAST ( - SUM ( ALL col1 ) AS INTEGER ) FROM tab0 cor0
----
1

query II rowsort
SELECT ALL 75, col1 + + - 13 AS col2 FROM tab0
----
75
-12
75
68
75
8

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 * + col1 < NULL
----

query III rowsort
SELECT ALL - 81 AS col1, col2, - + col1 FROM tab0
----
9 values hashing to e842b30fcfda272fd2995ab0fc667148

query II rowsort
SELECT col0 AS col0, + col0 + + col1 AS col0 FROM tab1
----
51
65
85
90
91
138

query I rowsort
SELECT DISTINCT - 82 * + 42 AS col1 FROM tab0 AS cor0
----
-3444

onlyif mysql # aggregate syntax: 
query I rowsort label-3168
SELECT + 92 * 5 + + COUNT( * ) FROM tab2 AS cor0
----
463

skipif mysql # not compatible
query I rowsort label-3168
SELECT + 92 * 5 + + COUNT ( * ) FROM tab2 AS cor0
----
463

query I rowsort
SELECT DISTINCT - + 78 AS col0 FROM tab0 cor0
----
-78

onlyif mysql # aggregate syntax: 
query II rowsort label-3170
SELECT COUNT( * ), COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

skipif mysql # not compatible
query II rowsort label-3170
SELECT COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
3
3

query II rowsort
SELECT - 82, - col1 * 7 AS col2 FROM tab2 AS cor0
----
-82
-357
-82
-469
-82
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT DISTINCT - COUNT( * ) + + 89 AS col2 FROM tab2
----
86

skipif mysql # not compatible
query I rowsort label-3172
SELECT DISTINCT - COUNT ( * ) + + 89 AS col2 FROM tab2
----
86

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 cor1 WHERE NOT 93 IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT - col0 + + 21 + col2 + + col2 - + col2 AS col2 FROM tab1
----
-2
-5
66

query II rowsort
SELECT 44 + 14 AS col1, - col2 + - 82 + 31 * + + col0 + col1 FROM tab0 AS cor0
----
58
2626
58
2827
58
417

onlyif mysql # DIV for integer division: 
query I rowsort label-3176
SELECT ALL 39 DIV 22 * - - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL 39 / 22 * - - col2 AS col0 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3177
SELECT * FROM tab0 AS cor0 WHERE 27 * CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3177
SELECT * FROM tab0 AS cor0 WHERE 27 * CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3178
SELECT + SUM( ALL - col0 ) col1 FROM tab2 AS cor0 WHERE - col0 + - - col1 + + col0 IS NOT NULL
----
-185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3178
SELECT + SUM ( ALL - col0 ) col1 FROM tab2 AS cor0 WHERE - col0 + - - col1 + + col0 IS NOT NULL
----
-185

query II rowsort
SELECT - 37 * + + col0 * - col0, col2 AS col2 FROM tab2 AS cor0
----
151552
40
208125
58
78292
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3180
SELECT COUNT( DISTINCT + col0 ) * - MIN( - col1 ) DIV 38 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-3180
SELECT COUNT ( DISTINCT + col0 ) * - MIN ( - col1 ) / 38 FROM tab2
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3181
SELECT - CAST( NULL AS SIGNED ) - - 57 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3181
SELECT - CAST ( NULL AS INTEGER ) - - 57 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 - - col1 * + 35 FROM tab2
----
1734
2278
2618

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL < 71
----

query II rowsort
SELECT ALL + col0 * - + 42 - - col2, col1 FROM tab1
----
-2046
14
-3511
5
-3754
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3185
SELECT - 25 - COUNT( * ) col2 FROM tab2
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3185
SELECT - 25 - COUNT ( * ) col2 FROM tab2
----
-28

query II rowsort
SELECT DISTINCT col2 / + col1 + 65, + 29 FROM tab2 AS cor0 WHERE NULL IS NOT 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-3188
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3188
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col0 IS NULL
----
3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL > - 86 * col1
----

query I rowsort
SELECT 45 * 55 FROM tab0 WHERE + 66 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( col2 + - col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) <> col2 * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3193
SELECT col2 - + CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT col2 - + CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + 8 AS col2 FROM tab2
----
54
72
83

onlyif mysql # aggregate syntax: 
query I rowsort label-3195
SELECT ALL 99 + COUNT( * ) * - MAX( + 28 + 16 ) AS col1 FROM tab2 WHERE NOT col2 / col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT ALL 99 + COUNT ( * ) * - MAX ( + 28 + 16 ) AS col1 FROM tab2 WHERE NOT col2 / col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT - 74 - - MAX( col1 ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT - 74 - - MAX ( col1 ) FROM tab0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3197
SELECT DISTINCT - col2 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE ( col2 * - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - col2 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE ( col2 * - col0 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3198
SELECT ALL - 25 + CAST( - COUNT( * ) AS SIGNED ) FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-3198
SELECT ALL - 25 + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0
----
-28

onlyif mysql # DIV for integer division: 
query I rowsort label-3199
SELECT col0 DIV + col2 AS col0 FROM tab2 WHERE - ( - 52 ) + col0 IS NOT NULL
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3199
SELECT col0 / + col2 AS col0 FROM tab2 WHERE - ( - 52 ) + col0 IS NOT NULL
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT - COUNT( 86 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3200
SELECT - COUNT ( 86 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3201
SELECT ALL MIN( ALL + 14 ) + - MAX( DISTINCT 80 ) AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-3201
SELECT ALL MIN ( ALL + 14 ) + - MAX ( DISTINCT 80 ) AS col2 FROM tab2
----
-66

query I rowsort
SELECT DISTINCT 37 * col0 + + 21 FROM tab1 WHERE 0 < - col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + 22 AS col0 FROM tab0
----
109
119
37

query I rowsort
SELECT + AVG ( col2 ) AS col2 FROM tab1 WHERE NOT + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT 59 FROM tab1 WHERE ( 32 ) IS NOT NULL
----
59
59
59

query I rowsort
SELECT DISTINCT + col0 / col0 FROM tab2 WHERE NOT NULL BETWEEN - 33 AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT + SUM( + 98 ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-3208
SELECT + SUM ( + 98 ) FROM tab1
----
294

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col2 + 56
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3210
SELECT * FROM tab0 WHERE NOT NULL <> - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3210
SELECT * FROM tab0 WHERE NOT NULL <> - CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 col0 FROM tab2 WHERE - col2 <> ( NULL )
----

query I rowsort
SELECT ALL - col1 + + 66 FROM tab0 WHERE NOT col1 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3213
SELECT DISTINCT - 95 * + ( + MAX( 51 ) ) + COUNT( * ) FROM tab1 AS cor0
----
-4842

skipif mysql # not compatible
query I rowsort label-3213
SELECT DISTINCT - 95 * + ( + MAX ( 51 ) ) + COUNT ( * ) FROM tab1 AS cor0
----
-4842

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col2 * col2 NOT IN ( 17 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3215
SELECT + 88 * + ( + 51 * COUNT( * ) ) + - 16 DIV - 85 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3215
SELECT + 88 * + ( + 51 * COUNT ( * ) ) + - 16 / - 85 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL + 72 + col1 AS col1 FROM tab1 cor0
----
119
77
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * + col1 + col0 col1 FROM tab2 AS cor0
----
4432
5837
6686

query I rowsort
SELECT - 4 + - col0 FROM tab0 AS cor0
----
-101
-19
-91

query I rowsort
SELECT ALL - 45 + + col2 AS col0 FROM tab2 AS cor0
----
-22
-5
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3220
SELECT - 29 - COUNT( * ) FROM tab1 AS cor0 WHERE NULL <> col2
----
-29

skipif mysql # not compatible
query I rowsort label-3220
SELECT - 29 - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL <> col2
----
-29

query I rowsort
SELECT ALL + col2 + 79 FROM tab2
----
102
119
137

query I rowsort
SELECT ALL ( 53 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 )
----
9 values hashing to fede6033dee346dbd272085c05724fda

query I rowsort
SELECT - 40 - - col2 AS col2 FROM tab0 AS cor0
----
-30
59
7

query I rowsort
SELECT - 4 * 87 - col0 FROM tab1 cor0
----
-399
-433
-439

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3225
SELECT 31 * - col2 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3225
SELECT 31 * - col2 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 13 col1 FROM tab1 AS cor0
----
13
13
13

query I rowsort
SELECT DISTINCT + col0 + + 47 FROM tab2 AS cor0
----
111
122
93

query I rowsort
SELECT + col1 + 2 * 19 FROM tab1 AS cor0
----
43
52
85

query I rowsort
SELECT + 76 * + 34 + 63 * + 27 AS col1 FROM tab0 AS cor0
----
4285
4285
4285

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 2 IS NULL
----

query I rowsort
SELECT DISTINCT AVG ( 34 ) AS col1 FROM tab0 WHERE + 50 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 + - - col0 col0 FROM tab1
----
138
65
90

query III rowsort
SELECT * FROM tab1 WHERE - 43 / - 59 BETWEEN ( - col1 ) AND ( NULL )
----

query I rowsort
SELECT ALL col0 - - col0 AS col1 FROM tab0
----
174
194
30

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * col2 + col2 ) NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3236
SELECT ALL COUNT( * ) - + + 32 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-3236
SELECT ALL COUNT ( * ) - + + 32 FROM tab2
----
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-3237
SELECT + MAX( + 44 ) * COUNT( * ) FROM tab1
----
132

skipif mysql # not compatible
query I rowsort label-3237
SELECT + MAX ( + 44 ) * COUNT ( * ) FROM tab1
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL + - CAST( NULL AS SIGNED ) / - 36 * + col2 + + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL + - CAST ( NULL AS INTEGER ) / - 36 * + col2 + + 93 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3239
SELECT 0 DIV ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3239
SELECT 0 / ( col2 ) * - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT 16 * - - col2 + 5 FROM tab2 AS cor0
----
373
645
933

onlyif mysql # aggregate syntax: 
query I rowsort label-3241
SELECT MIN( DISTINCT + 53 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
53

skipif mysql # not compatible
query I rowsort label-3241
SELECT MIN ( DISTINCT + 53 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query I rowsort
SELECT ALL - 24 AS col1 FROM tab2 cor0 JOIN tab2 cor1 ON ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3243
SELECT - COUNT( * ) AS col0, - MIN( ALL - + col1 ) * 52 AS col2 FROM tab0 AS cor0
----
-3
4212

skipif mysql # not compatible
query II rowsort label-3243
SELECT - COUNT ( * ) AS col0, - MIN ( ALL - + col1 ) * 52 AS col2 FROM tab0 AS cor0
----
-3
4212

query I rowsort
SELECT + ( - - 82 ) AS col1 FROM tab2 AS cor0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3245
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-3245
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2, col1 FROM tab0 AS cor0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ALL - - 83 AS col1 FROM tab2 cor0
----
83
83
83

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL > ( + col1 )
----

query I rowsort
SELECT + - 18 + - + col2 AS col1 FROM tab0 AS cor0
----
-117
-28
-65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( + + 94 ) * - ( col1 ) * - col2 col0 FROM tab2 AS cor0
----
-110262
-289520
-365284

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 28 NOT BETWEEN + col2 * - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - + 23 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3254
SELECT ALL + 72 / ( - 55 ) col1 FROM tab2 WHERE NOT + + CAST( + 22 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3254
SELECT ALL + 72 / ( - 55 ) col1 FROM tab2 WHERE NOT + + CAST ( + 22 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE NOT NULL < ( - - 42 )
----

query III rowsort
SELECT * FROM tab1 WHERE - 85 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 83 * + col2 AS col1 FROM tab0
----
3901
8217
830

onlyif mysql # aggregate syntax: 
query I rowsort label-3258
SELECT DISTINCT ( - COUNT( * ) ) * + + MIN( DISTINCT 25 ) * COUNT( * ) col1 FROM tab1
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3258
SELECT DISTINCT ( - COUNT ( * ) ) * + + MIN ( DISTINCT 25 ) * COUNT ( * ) col1 FROM tab1
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-3259
SELECT - 14 DIV - col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3259
SELECT - 14 / - col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + 4 + col2 FROM tab2 WHERE col2 - - - 73 > ( col1 + - 65 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 + + col0 col0 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 27 NOT BETWEEN ( - col1 ) AND NULL
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT - MIN( ALL - 7 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3263
SELECT - MIN ( ALL - 7 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT ALL + 36 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to eee96a85519f92856a7500dc8b6cf752

onlyif mysql # DIV for integer division: 
query I rowsort label-3265
SELECT - - col0 DIV - 10 FROM tab2 cor0
----
-4
-6
-7

skipif mysql # not compatible
query I rowsort label-3265
SELECT - - col0 / - 10 FROM tab2 cor0
----
-4
-6
-7

query I rowsort
SELECT ALL col0 + - 35 AS col0 FROM tab0 cor0 WHERE NOT - 22 < ( - col1 * - 59 )
----

query I rowsort
SELECT DISTINCT - 13 / - col2 * + + col1 + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL >= NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3268
SELECT DISTINCT - - CAST( NULL AS DECIMAL ) + + - col2 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3268
SELECT DISTINCT - - CAST ( NULL AS REAL ) + + - col2 AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - + 19 * col1 FROM tab0 AS cor0
----
-1539
-19
-399

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 61 <= col1 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3271
SELECT ALL + CAST( - - col2 AS SIGNED ) + + 52 col2 FROM tab1 cor0
----
111
120
148

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3271
SELECT ALL + CAST ( - - col2 AS INTEGER ) + + 52 col2 FROM tab1 cor0
----
111
120
148

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT - + col2 * - col0 * + 92 + + 5 DIV - 40 - col1 FROM tab0 AS cor0
----
64779
80019
883475

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT - + col2 * - col0 * + 92 + + 5 / - 40 - col1 FROM tab0 AS cor0
----
64779
80019
883475

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3273
SELECT ( + - COUNT( * ) ) DIV 64 AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3273
SELECT ( + - COUNT ( * ) ) / 64 AS col1 FROM tab2 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3274
SELECT * FROM tab1 AS cor0 WHERE NOT + 10 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3274
SELECT * FROM tab1 AS cor0 WHERE NOT + 10 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) / col0 * + - 87 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) / col0 * + - 87 FROM tab1
----
NULL

query II rowsort
SELECT + col1, + 81 FROM tab0
----
1
81
21
81
81
81

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN NULL AND 17
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 * - + col1 <= - - 6 - - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 76 col2, col0 col1 FROM tab0 AS cor0
----
76
15
76
87
76
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3281
SELECT ALL + - 14 AS col1, - COUNT( * ) + COUNT( * ) FROM tab2 AS cor0
----
-14
0

skipif mysql # not compatible
query II rowsort label-3281
SELECT ALL + - 14 AS col1, - COUNT ( * ) + COUNT ( * ) FROM tab2 AS cor0
----
-14
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * - 25 col1 FROM tab0 cor0 WHERE - 97 + + 63 NOT BETWEEN col0 AND NULL
----
-1175
-2475
-250

query II rowsort
SELECT ALL - col1, + col1 * - 27 AS col1 FROM tab1 AS cor0
----
-14
-378
-47
-1269
-5
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-3284
SELECT 58 DIV + col2 AS col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-3284
SELECT 58 / + col2 AS col2 FROM tab2
----
1
1
2

query I rowsort
SELECT col1 + - col0 FROM tab2 AS cor0 WHERE ( ( NOT NULL <> NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3286
SELECT CAST( NULL AS SIGNED ) AS col2, col1 + col2 AS col0 FROM tab2
----
NULL
117
NULL
125
NULL
74

skipif mysql # not compatible
query II rowsort label-3286
SELECT CAST ( NULL AS INTEGER ) AS col2, col1 + col2 AS col0 FROM tab2
----
NULL
117
NULL
125
NULL
74

query I rowsort
SELECT ALL - col0 * - 71 + - col1 * + col2 FROM tab2
----
1439
1464
2093

query II rowsort
SELECT DISTINCT 61, col0 AS col1 FROM tab1
----
61
51
61
85
61
91

query III rowsort
SELECT * FROM tab1 WHERE - col1 * ( + + col2 ) + - col2 * + col2 + + 51 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3290
SELECT DISTINCT 69 AS col2, 42 - - - COUNT( - + col2 ) - - + CAST( + COUNT( * ) AS SIGNED ) FROM tab2
----
69
42

skipif mysql # not compatible
query II rowsort label-3290
SELECT DISTINCT 69 AS col2, 42 - - - COUNT ( - + col2 ) - - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2
----
69
42

query I rowsort
SELECT DISTINCT - AVG ( DISTINCT + 0 ) AS col2 FROM tab1 WHERE NOT - col2 <> 13
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 <= - ( - ( - - col0 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT BETWEEN ( - - col1 ) * + 41 AND NULL
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3294
SELECT CAST( + ( - 83 ) AS SIGNED ) FROM tab0 AS cor0
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-3294
SELECT CAST ( + ( - 83 ) AS INTEGER ) FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT + MAX( + col0 ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3295
SELECT + MAX ( + col0 ) AS col2 FROM tab2 AS cor0
----
75

query I rowsort
SELECT DISTINCT - ( + + 44 ) - - col0 AS col1 FROM tab2 AS cor0
----
2
20
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 90 col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 46 * col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3299
SELECT - CAST( col1 AS SIGNED ) + - - 80 DIV 82, - col2 AS col1 FROM tab2 cor0
----
-51
-23
-67
-58
-77
-40

skipif mysql # not compatible
query II rowsort label-3299
SELECT - CAST ( col1 AS INTEGER ) + - - 80 / 82, - col2 AS col1 FROM tab2 cor0
----
-51
-23
-67
-58
-77
-40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3300
SELECT COUNT( * ) * - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3300
SELECT COUNT ( * ) * - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT + col2 NOT BETWEEN - 21 AND - 87
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT ALL + SUM( ALL + col1 ) * 46 AS col2 FROM tab2 AS cor0
----
8970

skipif mysql # not compatible
query I rowsort label-3302
SELECT ALL + SUM ( ALL + col1 ) * 46 AS col2 FROM tab2 AS cor0
----
8970

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3304
SELECT ALL col0 DIV + col0 AS col1 FROM tab1 cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL col0 / + col0 AS col1 FROM tab1 cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + ( - 20 ) AS col1 FROM tab1
----
-20
-20
-20

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col0 > ( + + 69 )
----
85
5
59
91
47
68

query I rowsort
SELECT + 29 FROM tab2 WHERE NOT NULL IS NOT NULL
----
29
29
29

query I rowsort
SELECT col0 * 78 FROM tab1
----
3978
6630
7098

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3310
SELECT - ( - col1 ) * - col1 * CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3310
SELECT - ( - col1 ) * - col1 * CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 AS col1, + 30 col2 FROM tab0 AS cor0
----
15
30
87
30
97
30

query I rowsort
SELECT ALL + col1 * + + col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT DISTINCT - col1 * - - col0 AS col0 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3314
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - - 48 + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - - 48 + col1 AS col1 FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT ALL + 99 DIV + col0 col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3315
SELECT ALL + 99 / + col0 col2 FROM tab2 AS cor0
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col2 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT - 54 * + 77 + - + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4167

skipif mysql # not compatible
query I rowsort label-3317
SELECT - 54 * + 77 + - + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4167

onlyif mysql # aggregate syntax: 
query I rowsort label-3318
SELECT + COUNT( * ) + - 33 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3318
SELECT + COUNT ( * ) + - 33 FROM tab2 AS cor0
----
-30

query I rowsort
SELECT DISTINCT - + col0 * col2 + col0 + - col1 + - 13 AS col0 FROM tab0 AS cor0
----
-784
-817
-9520

query I rowsort
SELECT ALL - col1 * + - 10 + + + col1 AS col2 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3321
SELECT + col1 + col0 - + col0 + - col2 DIV + col0 FROM tab1 AS cor0
----
13
47
5

skipif mysql # not compatible
query I rowsort label-3321
SELECT + col1 + col0 - + col0 + - col2 / + col0 FROM tab1 AS cor0
----
13
47
5

query I rowsort
SELECT ALL + col2 * - col1 + 48 AS col0 FROM tab0 AS cor0
----
-162
-3759
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 89 * - 7 * + col2 IN ( 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3324
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= - 68
----
0

skipif mysql # not compatible
query I rowsort label-3324
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NULL <= - 68
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3325
SELECT DISTINCT + - 24 + - + col2 DIV col2 DIV - ( - col1 ) * col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3325
SELECT DISTINCT + - 24 + - + col2 / col2 / - ( - col1 ) * col0 FROM tab1 AS cor0
----
-24

query I rowsort
SELECT ALL + - 25 + - col2 AS col2 FROM tab2 AS cor0
----
-48
-65
-83

query I rowsort
SELECT col2 + + 67 AS col0 FROM tab0 AS cor0 WHERE + 73 - - + col1 NOT IN ( col2 - + - col0 - - - 40 )
----
114
166
77

query I rowsort
SELECT DISTINCT + 19 + - col2 + - 29 FROM tab1 cor0
----
-106
-69
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3329
SELECT + 50 AS col0 FROM tab0 cor0 WHERE - CAST( NULL AS SIGNED ) * - - col0 IS NULL
----
50
50
50

skipif mysql # not compatible
query I rowsort label-3329
SELECT + 50 AS col0 FROM tab0 cor0 WHERE - CAST ( NULL AS INTEGER ) * - - col0 IS NULL
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3330
SELECT - COUNT( * ) * + ( - 94 ) FROM tab2
----
282

skipif mysql # not compatible
query I rowsort label-3330
SELECT - COUNT ( * ) * + ( - 94 ) FROM tab2
----
282

query I rowsort
SELECT DISTINCT + 11 + - + ( col0 ) - + col1 AS col0 FROM tab2
----
-130
-131
-86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL NOT IN ( - + ( - col2 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3333
SELECT DISTINCT * FROM tab0 WHERE NOT 23 * - - CAST( NULL AS SIGNED ) - - - 90 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3333
SELECT DISTINCT * FROM tab0 WHERE NOT 23 * - - CAST ( NULL AS INTEGER ) - - - 90 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + 69 * + - col0 FROM tab2
----
-3174
-4416
-5175

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT COUNT( + 90 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3335
SELECT COUNT ( + 90 ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT + + 60 * col0 + col0 FROM tab0 cor0
----
5307
5917
915

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3337
SELECT - col2 + - + col2 * - CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3337
SELECT - col2 + - + col2 * - CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
128
150
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3339
SELECT DISTINCT + + MAX( ALL col0 ) + + - 9 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3339
SELECT DISTINCT + + MAX ( ALL col0 ) + + - 9 FROM tab2 AS cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3340
SELECT + ( + COUNT( * ) ) + + - CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3340
SELECT + ( + COUNT ( * ) ) + + - CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT + 74 + COUNT( * ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-3341
SELECT + 74 + COUNT ( * ) FROM tab2
----
77

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3343
SELECT CAST( + + col2 AS SIGNED ) + + col0 AS col1 FROM tab1
----
144
147
159

skipif mysql # not compatible
query I rowsort label-3343
SELECT CAST ( + + col2 AS INTEGER ) + + col0 AS col1 FROM tab1
----
144
147
159

query II rowsort
SELECT col1 AS col0, 33 FROM tab2
----
51
33
67
33
77
33

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + ( - 97 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 9 col1, 88 FROM tab2 AS cor0
----
-9
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3347
SELECT - 4 + + 54 / col2 + + col0 FROM tab0 AS cor0 WHERE NOT + col2 * + - col2 IN ( + + col1, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3347
SELECT - 4 + + 54 / col2 + + col0 FROM tab0 AS cor0 WHERE NOT + col2 * + - col2 IN ( + + col1, CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT col2 + col1 AS col2, col1 / + + 37 FROM tab2 cor0 WHERE NOT ( ( ( col1 ) NOT IN ( - 95 ) ) )
----

query I rowsort
SELECT ALL + - 85 * + col2 * col1 AS col0 FROM tab1 AS cor0
----
-114240
-25075
-271660

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 85 * + - 96 col0 FROM tab1 AS cor0
----
8160

onlyif mysql # DIV for integer division: 
query I rowsort label-3351
SELECT - 9 DIV - 34 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3351
SELECT - 9 / - 34 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0
0

query II rowsort
SELECT - col2 * + + 83 * col2 AS col1, - 84 FROM tab0 cor0
----
-183347
-84
-813483
-84
-8300
-84

query II rowsort
SELECT DISTINCT + 61, + col0 - + col2 AS col0 FROM tab2 AS cor0
----
61
17
61
23
61
24

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE + 76 NOT BETWEEN - 48 AND - 45
----
23
40
58

query II rowsort
SELECT DISTINCT - ( col2 ) * col1 * - 4 AS col1, col2 FROM tab1
----
1180
59
12784
68
5376
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3356
SELECT ALL - + MAX( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3356
SELECT ALL - + MAX ( ALL - col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT - - col0 + - + col2 * + ( - 97 ) FROM tab1 cor0
----
5808
6687
9363

query I rowsort
SELECT ( - + 59 ) + col1 AS col2 FROM tab0 cor0
----
-38
-58
22

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( + 87 * + col2 * + 49 ) IS NOT NULL
----

query I rowsort
SELECT + 32 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 58 IS NULL
----
9 values hashing to d30a2acbf33c88274474306936d3227b

query I rowsort
SELECT - 36 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT DISTINCT + col2 * + col1 * + + col0 AS col0 FROM tab0 WHERE NULL < + 57 * + col0
----

query I rowsort
SELECT 22 * - - 87 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a77178baea378bcb3119d890a311bcaa

query I rowsort
SELECT DISTINCT + 10 * col1 - - 48 AS col2 FROM tab2 AS cor0
----
558
718
818

onlyif mysql # aggregate syntax: 
query I rowsort label-3365
SELECT ALL + MAX( ALL - - 83 ) * + 76 AS col1 FROM tab1 AS cor0
----
6308

skipif mysql # not compatible
query I rowsort label-3365
SELECT ALL + MAX ( ALL - - 83 ) * + 76 AS col1 FROM tab1 AS cor0
----
6308

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN + - 29 + + 48 AND ( col0 )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3368
SELECT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3368
SELECT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3369
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) IN ( + col2 * - + col2 )
----

skipif mysql # not compatible
query III rowsort label-3369
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) IN ( + col2 * - + col2 )
----

query I rowsort
SELECT ALL + - 50 + + - col1 FROM tab2 AS cor0
----
-101
-117
-127

query I rowsort
SELECT DISTINCT - 72 + + - 96 FROM tab0 AS cor0
----
-168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3372
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + - 84 / + - SUM( DISTINCT 61 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3372
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + - 84 / + - SUM ( DISTINCT 61 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + col2 ) + col1 AS col0 FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 55 BETWEEN + 92 AND NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 WHERE NULL > + col0
----

query I rowsort
SELECT DISTINCT + + 21 FROM tab1 WHERE NOT ( - - col2 ) < col0
----
21

query I rowsort
SELECT DISTINCT + 35 * + ( col0 ) FROM tab2
----
1610
2240
2625

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3379
SELECT DISTINCT ( - CAST( 10 AS SIGNED ) ) DIV + - 95 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3379
SELECT DISTINCT ( - CAST ( 10 AS INTEGER ) ) / + - 95 FROM tab1
----
0

query II rowsort
SELECT DISTINCT + col1, - 12 AS col0 FROM tab1
----
14
-12
47
-12
5
-12

onlyif mysql # aggregate syntax: 
query II rowsort label-3381
SELECT DISTINCT + 26 AS col2, - COUNT( * ) FROM tab1
----
26
-3

skipif mysql # not compatible
query II rowsort label-3381
SELECT DISTINCT + 26 AS col2, - COUNT ( * ) FROM tab1
----
26
-3

query II rowsort
SELECT ALL - 2 + - col2 AS col0, col0 * 85 FROM tab2
----
-25
3910
-42
5440
-60
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-3383
SELECT ALL + + COUNT( + + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3383
SELECT ALL + + COUNT ( + + col0 ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT + + col0, col1 AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3385
SELECT DISTINCT CAST( + - CAST( + + col2 AS SIGNED ) AS SIGNED ) FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3385
SELECT DISTINCT CAST ( + - CAST ( + + col2 AS INTEGER ) AS INTEGER ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + MAX( - 76 ) FROM tab1 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-3386
SELECT + MAX ( - 76 ) FROM tab1 AS cor0
----
-76

query II rowsort
SELECT col2 * - - col1, col1 FROM tab0 AS cor0
----
210
21
3807
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3388
SELECT DISTINCT + COUNT( * ) * + + 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3388
SELECT DISTINCT + COUNT ( * ) * + + 98 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3389
SELECT - + 68 * MIN( + col2 ) FROM tab2 AS cor0
----
-1564

skipif mysql # not compatible
query I rowsort label-3389
SELECT - + 68 * MIN ( + col2 ) FROM tab2 AS cor0
----
-1564

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3390
SELECT - + col2 * CAST( NULL AS SIGNED ) + ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3390
SELECT - + col2 * CAST ( NULL AS INTEGER ) + ( + col1 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - + col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-3393
SELECT 71 AS col1, - 69 + + COUNT( * ) col1 FROM tab2
----
71
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3393
SELECT 71 AS col1, - 69 + + COUNT ( * ) col1 FROM tab2
----
71
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 85 col2 FROM tab2, tab0 cor0
----
85

query I rowsort
SELECT DISTINCT - col2 * + - col2 * col2 FROM tab1
----
205379
314432
884736

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3396
SELECT 89 col2, - CAST( - col1 AS SIGNED ) FROM tab0
----
89
1
89
21
89
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3396
SELECT 89 col2, - CAST ( - col1 AS INTEGER ) FROM tab0
----
89
1
89
21
89
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3397
SELECT DISTINCT COUNT( * ) * + MIN( ALL + col0 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-3397
SELECT DISTINCT COUNT ( * ) * + MIN ( ALL + col0 ) FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3398
SELECT DISTINCT * FROM tab0 WHERE + col1 + CAST( NULL AS SIGNED ) IN ( - col2 * - - ( col1 ) * - 22 + col0 + - col2, col2 )
----

skipif mysql # not compatible
query III rowsort label-3398
SELECT DISTINCT * FROM tab0 WHERE + col1 + CAST ( NULL AS INTEGER ) IN ( - col2 * - - ( col1 ) * - 22 + col0 + - col2, col2 )
----

query I rowsort
SELECT ALL - 75 * - col0 AS col2 FROM tab0
----
1125
6525
7275

query III rowsort
SELECT * FROM tab2 WHERE NOT - 5 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3401
SELECT * FROM tab1 WHERE NOT + - col2 + + + col1 * + 14 BETWEEN col1 * - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3401
SELECT * FROM tab1 WHERE NOT + - col2 + + + col1 * + 14 BETWEEN col1 * - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3402
SELECT ALL + + ( + - MAX( DISTINCT - 64 ) ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-3402
SELECT ALL + + ( + - MAX ( DISTINCT - 64 ) ) FROM tab1 AS cor0
----
64

query II rowsort
SELECT ALL - 91 * + col1, + col0 FROM tab0
----
-1911
87
-7371
15
-91
97

query I rowsort
SELECT 19 + - col1 * + col1 AS col1 FROM tab2
----
-2582
-4470
-5910

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3405
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 99 ) <= + ( + - 90 ) * + col2 - - + CAST( + + 97 AS DECIMAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3405
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 99 ) <= + ( + - 90 ) * + col2 - - + CAST ( + + 97 AS REAL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + - ( 58 ) AS col2 FROM tab1 AS cor0
----
-7
27
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT DISTINCT col1 DIV - ( col0 ) FROM tab0 AS cor0
----
-5
0

skipif mysql # not compatible
query I rowsort label-3407
SELECT DISTINCT col1 / - ( col0 ) FROM tab0 AS cor0
----
-5
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col0 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
-59
-68
-96

query II rowsort
SELECT ALL - col2 + + + 49, - col0 AS col2 FROM tab1 AS cor0
----
-10
-85
-19
-91
-47
-51

query I rowsort
SELECT col0 AS col0 FROM tab0 AS cor0 WHERE 34 > 3
----
15
87
97

query I rowsort
SELECT DISTINCT - col1 * - - 36 - col0 FROM tab1
----
-1783
-265
-555

query I rowsort
SELECT ALL + 69 * 85 FROM tab0
----
5865
5865
5865

query I rowsort
SELECT DISTINCT - ( - - col0 ) - - 6 FROM tab1
----
-45
-79
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT - col1 / + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3414
SELECT DISTINCT - col1 / + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - ( - ( + - 14 ) ) - - 57 AS col0 FROM tab2
----
43
43
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 6 col1 FROM tab2
----
6

query I rowsort
SELECT + col0 - ( col0 ) AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + + ( 67 ) + + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 + - 74 AS col0 FROM tab0 AS cor0
----
-121
-173
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-3420
SELECT DISTINCT + COUNT( * ) * - - 16 AS col0, COUNT( * ) col2 FROM tab2
----
48
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3420
SELECT DISTINCT + COUNT ( * ) * - - 16 AS col0, COUNT ( * ) col2 FROM tab2
----
48
3

query I rowsort
SELECT ALL + - 9 AS col0 FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3422
SELECT + ( CAST( + - 88 AS SIGNED ) ) FROM tab1 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-3422
SELECT + ( CAST ( + - 88 AS INTEGER ) ) FROM tab1 AS cor0
----
-88
-88
-88

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <= 94
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 39 col0 FROM tab0 cor0
----
-39
-39
-39

query I rowsort
SELECT ALL + col0 * + + ( - + col0 ) FROM tab2 AS cor0
----
-2116
-4096
-5625

query II rowsort
SELECT DISTINCT col1 AS col2, col1 + + + 19 AS col2 FROM tab0 AS cor0
----
1
20
21
40
81
100

query II rowsort
SELECT - + 52 AS col2, col2 AS col2 FROM tab1 AS cor0
----
-52
59
-52
68
-52
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT - COUNT( * ) * - COUNT( * ) * 36 * - + ( - 99 ) AS col2 FROM tab1 AS cor0
----
32076

skipif mysql # not compatible
query I rowsort label-3428
SELECT - COUNT ( * ) * - COUNT ( * ) * 36 * - + ( - 99 ) AS col2 FROM tab1 AS cor0
----
32076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3429
SELECT - CAST( NULL AS SIGNED ) * 6 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3429
SELECT - CAST ( NULL AS INTEGER ) * 6 col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col1 col2, + col1 AS col0 FROM tab1
----
425
5
4277
47
714
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT DISTINCT COUNT( * ) * - ( + - 69 ) AS col0 FROM tab2
----
207

skipif mysql # not compatible
query I rowsort label-3431
SELECT DISTINCT COUNT ( * ) * - ( + - 69 ) AS col0 FROM tab2
----
207

query I rowsort
SELECT - ( + - col0 ) AS col1 FROM tab2 WHERE NOT - - col1 IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 21 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 76 + - col0 AS col2, - col0 FROM tab2 AS cor0
----
1
-75
12
-64
30
-46

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3435
SELECT - COUNT( * ), - COUNT( * ) col1 FROM tab2 AS cor0 WHERE CAST( - + col1 AS SIGNED ) NOT BETWEEN + - 39 * - + col1 / - + 10 AND NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3435
SELECT - COUNT ( * ), - COUNT ( * ) col1 FROM tab2 AS cor0 WHERE CAST ( - + col1 AS INTEGER ) NOT BETWEEN + - 39 * - + col1 / - + 10 AND NULL
----
0
0

query I rowsort
SELECT ALL - 91 AS col1 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN 46 AND 0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3437
SELECT COUNT( * ) AS col1, + 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
94

skipif mysql # not compatible
query II rowsort label-3437
SELECT COUNT ( * ) AS col1, + 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
94

query I rowsort
SELECT DISTINCT - 69 * + col2 FROM tab0
----
-3243
-6831
-690

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3439
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

skipif mysql # not compatible
query II rowsort label-3439
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
9

query I rowsort
SELECT col2 * + + 49 FROM tab0
----
2303
4851
490

query I rowsort
SELECT ALL + 33 + - col0 FROM tab2 AS cor0
----
-13
-31
-42

query II rowsort
SELECT + col2 + col1 + - col1 AS col2, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # aggregate syntax: 
query I rowsort label-3443
SELECT + COUNT( * ) + + - 4 AS col1 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-3443
SELECT + COUNT ( * ) + + - 4 AS col1 FROM tab2
----
-1

query III rowsort
SELECT * FROM tab0 WHERE + 40 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3445
SELECT DISTINCT ( + MAX( DISTINCT - 40 ) ) FROM tab0
----
-40

skipif mysql # not compatible
query I rowsort label-3445
SELECT DISTINCT ( + MAX ( DISTINCT - 40 ) ) FROM tab0
----
-40

query II rowsort
SELECT col1 * - 39 AS col2, + col1 FROM tab0
----
-3159
81
-39
1
-819
21

query I rowsort
SELECT 80 FROM tab1 WHERE + 68 + 3 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3448
SELECT DISTINCT - COUNT( col1 ), 25 col2 FROM tab1 AS cor0
----
-3
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3448
SELECT DISTINCT - COUNT ( col1 ), 25 col2 FROM tab1 AS cor0
----
-3
25

onlyif mysql # DIV for integer division: 
query I rowsort label-3449
SELECT + col2 * + col0 * + col2 DIV - + col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-3449
SELECT + col2 * + col0 * + col2 / - + col2 AS col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3450
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) = + col1
----

skipif mysql # not compatible
query III rowsort label-3450
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = + col1
----

query II rowsort
SELECT + ( - ( - - col1 ) ) AS col1, - col1 AS col1 FROM tab0 AS cor0
----
-1
-1
-21
-21
-81
-81

query I rowsort
SELECT ALL + col1 * - 42 FROM tab1 cor0
----
-1974
-210
-588

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL >= 34
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT + - COUNT( * ) + - COUNT( * ) col2 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3454
SELECT + - COUNT ( * ) + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL = NULL )
----

query I rowsort
SELECT ALL - 19 + - - 58 AS col0 FROM tab1 AS cor0
----
39
39
39

query I rowsort
SELECT DISTINCT + + ( - 13 ) AS col2 FROM tab0 AS cor0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT - SUM( ALL + col0 ) AS col1 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-3458
SELECT - SUM ( ALL + col0 ) AS col1 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL + MAX( ALL - - col0 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + MAX ( ALL - - col0 ) FROM tab1
----
91

query I rowsort
SELECT + ( - + 13 ) FROM tab2
----
-13
-13
-13

query I rowsort
SELECT + col2 * + 67 AS col1 FROM tab1
----
3953
4556
6432

query I rowsort
SELECT - col0 * + col1 * - 62 FROM tab2
----
145452
305536
311550

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + ( + MAX( DISTINCT + 71 ) ) AS col1 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-3463
SELECT + ( + MAX ( DISTINCT + 71 ) ) AS col1 FROM tab0
----
71

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> + 69 * ( + 74 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3465
SELECT DISTINCT - - 70 DIV + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3465
SELECT DISTINCT - - 70 / + 84 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT SUM( ALL + col0 ) + - MAX( + - col0 ) * 33 AS col2 FROM tab1
----
1910

skipif mysql # not compatible
query I rowsort label-3466
SELECT SUM ( ALL + col0 ) + - MAX ( + - col0 ) * 33 AS col2 FROM tab1
----
1910

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE + col1 > + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col0, col2 * 42 - + 77, 94 + 42 / col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3469
SELECT DISTINCT COUNT( * ) - - - 97, 0 AS col2 FROM tab1 AS cor0
----
-94
0

skipif mysql # not compatible
query II rowsort label-3469
SELECT DISTINCT COUNT ( * ) - - - 97, 0 AS col2 FROM tab1 AS cor0
----
-94
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3470
SELECT * FROM tab0 WHERE CAST( col0 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3470
SELECT * FROM tab0 WHERE CAST ( col0 AS INTEGER ) IS NULL
----

query I rowsort
SELECT col1 - - col0 - + col1 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3472
SELECT DISTINCT + 73 - COUNT( * ) FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-3472
SELECT DISTINCT + 73 - COUNT ( * ) FROM tab0
----
70

query I rowsort
SELECT col1 * - - 44 - - 35 * 3 + + col1 FROM tab1
----
2220
330
735

query I rowsort
SELECT col1 * - - 23 FROM tab2
----
1173
1541
1771

query I rowsort
SELECT ALL - - col2 * + 57 AS col0 FROM tab2 cor0
----
1311
2280
3306

query II rowsort
SELECT ALL - - 89 AS col1, - col1 FROM tab2 AS cor0
----
89
-51
89
-67
89
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3477
SELECT ALL + COUNT( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3477
SELECT ALL + COUNT ( * ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT + CAST( NULL AS SIGNED ) / + + MAX( ALL col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3478
SELECT + CAST ( NULL AS INTEGER ) / + + MAX ( ALL col0 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT MAX( DISTINCT - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-3479
SELECT MAX ( DISTINCT - col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT + + col0 * + + 87 * + col0 * + + col1 FROM tab1 cor0
----
3142875
3168018
33861009

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT 33 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT + 25 * - + COUNT( * ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3482
SELECT + 25 * - + COUNT ( * ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT - col2 + col1 + + 4 * + - col1 / + ( col0 ) - 65 FROM tab2 AS cor0 WHERE NOT ( - 50 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3484
SELECT COUNT( * ) * + 7 - - 43 col1 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3484
SELECT COUNT ( * ) * + 7 - - 43 col1 FROM tab0 AS cor0
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + MIN( - 25 ) * + 31 - + COUNT( * ) FROM tab0
----
-778

skipif mysql # not compatible
query I rowsort label-3486
SELECT + MIN ( - 25 ) * + 31 - + COUNT ( * ) FROM tab0
----
-778

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( + - col1, col1 )
----

query I rowsort
SELECT 33 + + col0 AS col0 FROM tab2
----
108
79
97

query I rowsort
SELECT - col1 + 22 + + - col1 * col2 + + + col1 + + 64 * col1 * col2 AS col0 FROM tab2 AS cor0
----
194062
244840
73921

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 AS cor0 WHERE 9 + + col2 IS NULL
----

query I rowsort
SELECT - 75 * + + col1 AS col1 FROM tab2 AS cor0
----
-3825
-5025
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3492
SELECT ALL + CAST( - 38 AS SIGNED ) * + 53 + col2 FROM tab2 AS cor0
----
-1956
-1974
-1991

skipif mysql # not compatible
query I rowsort label-3492
SELECT ALL + CAST ( - 38 AS INTEGER ) * + 53 + col2 FROM tab2 AS cor0
----
-1956
-1974
-1991

query II rowsort
SELECT col0, 41 AS col2 FROM tab0
----
15
41
87
41
97
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3494
SELECT ALL + COUNT( * ) + - - ( + 96 ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-3494
SELECT ALL + COUNT ( * ) + - - ( + 96 ) FROM tab1
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT ALL + col0 - 43 + + col1 AS col2 FROM tab0
----
53
55
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 35 col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

query I rowsort
SELECT + 36 - + col2 + col2 * - 1 * + - col2 + - + col2 FROM tab2 cor0
----
1556
3284
519

onlyif mysql # aggregate syntax: 
query I rowsort label-3499
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 46 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT + 46 IS NOT NULL )
----
3

query I rowsort
SELECT + + col0 AS col1 FROM tab1 cor0 WHERE + 1 IS NOT NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT COUNT( * ) + - ( - + ( - 77 ) ) col2 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3501
SELECT COUNT ( * ) + - ( - + ( - 77 ) ) col2 FROM tab1 AS cor0
----
-74

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 28 * col2 - + 10 * + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3503
SELECT - col0 * - ( col0 ) DIV - col0 + + + 63 * - + ( - ( - col0 ) ) * - col2 + - col0 + + 42 DIV ( - - ( col0 ) ) AS col1 FROM tab1 AS cor0
----
308346
315775
389662

skipif mysql # not compatible
query I rowsort label-3503
SELECT - col0 * - ( col0 ) / - col0 + + + 63 * - + ( - ( - col0 ) ) * - col2 + - col0 + + 42 / ( - - ( col0 ) ) AS col1 FROM tab1 AS cor0
----
308346
315775
389662

query I rowsort
SELECT DISTINCT col1 * - + 14 FROM tab2
----
-1078
-714
-938

query I rowsort
SELECT DISTINCT + + 73 FROM tab0 WHERE + - col1 > - 34 * - + 89
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3506
SELECT DISTINCT CAST( 95 AS DECIMAL ) * - + col2 + - col2 - + CAST( NULL AS SIGNED ) / - + ( 84 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT CAST ( 95 AS REAL ) * - + col2 + - col2 - + CAST ( NULL AS INTEGER ) / - + ( 84 ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3507
SELECT CAST( col0 AS SIGNED ) * - col2 - col1 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

skipif mysql # not compatible
query I rowsort label-3507
SELECT CAST ( col0 AS INTEGER ) * - col2 - col1 AS col2 FROM tab0 AS cor0
----
-786
-891
-9604

query I rowsort
SELECT - 76 * + col0 AS col1 FROM tab2 AS cor0
----
-3496
-4864
-5700

onlyif mysql # aggregate syntax: 
query I rowsort label-3509
SELECT DISTINCT + COUNT( col1 ) * 30 AS col0 FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-3509
SELECT DISTINCT + COUNT ( col1 ) * 30 AS col0 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3510
SELECT ALL SUM( + - col0 ) * + COUNT( * ) AS col0 FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-3510
SELECT ALL SUM ( + - col0 ) * + COUNT ( * ) AS col0 FROM tab0
----
-597

query II rowsort
SELECT - col0, col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-15
81
-87
21
-97
1

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 81 + + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL - col2 + + col1 + - col2 FROM tab0 AS cor0
----
-13
-197
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT MAX( DISTINCT 2 ) * + 19 AS col2 FROM tab0 AS cor0 WHERE + ( + col1 ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT MAX ( DISTINCT 2 ) * + 19 AS col2 FROM tab0 AS cor0 WHERE + ( + col1 ) <> NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 48 * + - col0 * col1 * col2 col1 FROM tab0
----
-2741040
-460944
-876960

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN - + 22 AND 23
----

query I rowsort
SELECT ALL 36 * + col0 AS col0 FROM tab0
----
3132
3492
540

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( + col1 + col0, col2, - ( - + col2 ), 95 )
----

query I rowsort
SELECT ( col0 ) * - + 99 * + 44 + col2 AS col1 FROM tab2
----
-200353
-278744
-326642

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3520
SELECT ALL - COUNT( * ) DIV + COUNT( * ) + - 5 AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-3520
SELECT ALL - COUNT ( * ) / + COUNT ( * ) + - 5 AS col2 FROM tab0
----
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN + 90 AND + col2
----

query I rowsort
SELECT + col2 + col2 + + col1 AS col0 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT 36 - - - col0 DIV + - col0 + 10 AS col0 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT 36 - - - col0 / + - col0 + 10 AS col0 FROM tab2
----
47

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab1 WHERE - 72 < - col1
----
51
85
91

query I rowsort
SELECT - 68 + 85 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL - COUNT( * ) - 16 AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-3526
SELECT ALL - COUNT ( * ) - 16 AS col2 FROM tab0
----
-19

query I rowsort
SELECT + - 97 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-97
-97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3528
SELECT + COUNT( ALL - - col0 ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3528
SELECT + COUNT ( ALL - - col0 ) AS col0 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT + - SUM( col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-3529
SELECT DISTINCT + - SUM ( col1 ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - 21 * - 75 + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1634
1643
1671

query II rowsort
SELECT + + 45, 89 + - + 37 AS col2 FROM tab0 AS cor0
----
45
52
45
52
45
52

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 16 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3533
SELECT - MAX( ALL + + 76 ) DIV COUNT( * ) col1 FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3533
SELECT - MAX ( ALL + + 76 ) / COUNT ( * ) col1 FROM tab1 AS cor0
----
-25

query II rowsort
SELECT ALL - col2, + col1 FROM tab2 AS cor0
----
-23
51
-40
77
-58
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3535
SELECT - MAX( ALL col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3535
SELECT - MAX ( ALL col1 ) FROM tab2 cor0
----
-77

query II rowsort
SELECT + 8 * + col2 AS col2, 16 + 57 AS col2 FROM tab0
----
376
73
792
73
80
73

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT ALL - SUM( DISTINCT + 85 ) FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-3537
SELECT ALL - SUM ( DISTINCT + 85 ) FROM tab2
----
-85

query II rowsort
SELECT ALL col0, 3 * - col0 * - - 35 AS col1 FROM tab1
----
51
-5355
85
-8925
91
-9555

onlyif mysql # aggregate syntax: 
query I rowsort label-3539
SELECT - COUNT( * ) AS col1 FROM tab2 WHERE NOT - col1 < + col1
----
0

skipif mysql # not compatible
query I rowsort label-3539
SELECT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT - col1 < + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 col1 FROM tab1
----
8
8
8

query I rowsort
SELECT + 25 AS col0 FROM tab2 WHERE NOT - col1 IS NULL
----
25
25
25

query I rowsort
SELECT ALL 82 * - col0 FROM tab0
----
-1230
-7134
-7954

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT DISTINCT - MIN( DISTINCT col1 ) FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3543
SELECT DISTINCT - MIN ( DISTINCT col1 ) FROM tab2 cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT + 77 + + COUNT( * ) + + 28 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
108

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT + 77 + + COUNT ( * ) + + 28 AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
108

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT - 12 * - COUNT( * ) * + MIN( ALL - 58 ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-6264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3546
SELECT - 12 * - COUNT ( * ) * + MIN ( ALL - 58 ) col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-6264

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3547
SELECT DISTINCT - CAST( NULL AS DECIMAL ) FROM tab0 WHERE - + 67 = col0
----

skipif mysql # not compatible
query I rowsort label-3547
SELECT DISTINCT - CAST ( NULL AS REAL ) FROM tab0 WHERE - + 67 = col0
----

query I rowsort
SELECT ALL - col1 * - + col1 + - + col0 FROM tab0
----
-96
354
6546

query I rowsort
SELECT ALL - 17 + + - 62 * - - col0 AS col1 FROM tab2 AS cor0
----
-2869
-3985
-4667

query I rowsort
SELECT ALL ( - col2 ) FROM tab2 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1 AS cor0 WHERE + col1 * 36 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3552
SELECT + + CAST( + + 24 AS SIGNED ) AS col1, + col2 col1 FROM tab0 AS cor0
----
24
10
24
47
24
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3552
SELECT + + CAST ( + + 24 AS INTEGER ) AS col1, + col2 col1 FROM tab0 AS cor0
----
24
10
24
47
24
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + 54 ) col2 FROM tab0 AS cor0
----
54

query II rowsort
SELECT ALL - + col1 + - - col2 - + - col0, col2 FROM tab0 AS cor0
----
-19
47
195
99
76
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3555
SELECT ALL + + col1 + col2 DIV col1 + - 94 - - col0 AS col1 FROM tab0 AS cor0
----
103
14
2

skipif mysql # not compatible
query I rowsort label-3555
SELECT ALL + + col1 + col2 / col1 + - 94 - - col0 AS col1 FROM tab0 AS cor0
----
103
14
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL ( + 3 ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL ( + 3 ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL - 91 AS col2 FROM tab0 WHERE + col1 * + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 69 + col1 AS col2 FROM tab2
----
-18
-2
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3559
SELECT COUNT( * ) + - + 82 + + 45 AS col0 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-3559
SELECT COUNT ( * ) + - + 82 + + 45 AS col0 FROM tab0
----
-34

query I rowsort
SELECT ALL col0 * + 91 AS col2 FROM tab2
----
4186
5824
6825

query III rowsort
SELECT * FROM tab0 WHERE + + 96 - + - 51 <> + 95 * - - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3562
SELECT ALL - col2 DIV + + col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - col2 / + + col2 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT + col1 * + col2 FROM tab1 WHERE NULL IS NULL
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3564
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3565
SELECT DISTINCT COUNT( * ) + 38 AS col0 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT COUNT ( * ) + 38 AS col0 FROM tab1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-3566
SELECT ALL + MIN( DISTINCT + ( + col2 ) ) FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3566
SELECT ALL + MIN ( DISTINCT + ( + col2 ) ) FROM tab1
----
59

query I rowsort
SELECT ALL + col1 + 43 - + - 38 FROM tab2 AS cor0
----
132
148
158

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3568
SELECT + + col0, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-3568
SELECT + + col0, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
51
NULL
85
NULL
91
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3569
SELECT + + col0 DIV 23 AS col0 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-3569
SELECT + + col0 / 23 AS col0 FROM tab0 AS cor0
----
0
3
4

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3571
SELECT 68 * - ( + 92 ) + 61 DIV + - 16 FROM tab2 AS cor0
----
-6259
-6259
-6259

skipif mysql # not compatible
query I rowsort label-3571
SELECT 68 * - ( + 92 ) + 61 / + - 16 FROM tab2 AS cor0
----
-6259
-6259
-6259

query I rowsort
SELECT + col2 * col2 * - col1 FROM tab0 AS cor0
----
-178929
-2100
-9801

query I rowsort
SELECT - + 50 AS col1 FROM tab2 cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT 16 + + col0 FROM tab0 cor0 WHERE NOT + ( + + col2 ) < - + 73
----
103
113
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 BETWEEN - - 39 * + col0 * col0 * + + col2 + - col1 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 * col0 * - col1 FROM tab0 AS cor0
----
-158949
-18225
-9409

onlyif mysql # DIV for integer division: 
query I rowsort label-3577
SELECT DISTINCT 68 DIV col0 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3577
SELECT DISTINCT 68 / col0 AS col1 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col1 * - col1 IS NULL
----

query II rowsort
SELECT col1, - col1 + + - 10 + + - col1 FROM tab0
----
1
-12
21
-52
81
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-3580
SELECT ALL + - MAX( DISTINCT 35 ) + - 47 col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 81 + + col2 AND - + col0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3580
SELECT ALL + - MAX ( DISTINCT 35 ) + - 47 col1 FROM tab0 WHERE NOT NULL NOT BETWEEN + 81 + + col2 AND - + col0
----
NULL

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE NOT + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT COUNT( DISTINCT - + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3582
SELECT COUNT ( DISTINCT - + col2 ) AS col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3583
SELECT + SUM( + + 36 ) * COUNT( * ) AS col1 FROM tab2
----
324

skipif mysql # not compatible
query I rowsort label-3583
SELECT + SUM ( + + 36 ) * COUNT ( * ) AS col1 FROM tab2
----
324

query II rowsort
SELECT - col0, - col0 FROM tab1
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT col1 * + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT + MAX( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-3586
SELECT DISTINCT + MAX ( ALL - col2 ) AS col1 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * 65 - + col2 IS NOT NULL
----

query I rowsort
SELECT - + 66 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND 30 / - col0 * - + col2 + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL - + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

query II rowsort
SELECT DISTINCT - col0, col0 * - - 71 AS col1 FROM tab0
----
-15
1065
-87
6177
-97
6887

query I rowsort
SELECT col2 + 68 AS col2 FROM tab2 AS cor0
----
108
126
91

query I rowsort
SELECT 93 FROM tab0 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT ALL + + col1 + - col1 AS col0 FROM tab2 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 76 + + col1 FROM tab0 cor0
----
157
77
97

query I rowsort
SELECT DISTINCT + - 66 + col2 * - 95 FROM tab1 AS cor0
----
-5671
-6526
-9186

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 < + col2 * - 92 + + 52 / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3597
SELECT - MIN( DISTINCT - 13 ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3597
SELECT - MIN ( DISTINCT - 13 ) AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * 77 * + col0 FROM tab1
----
376992
386155
476476

query I rowsort
SELECT - col1 * + + ( + col0 ) AS col0 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT + 77 - ( + col2 ) AS col1 FROM tab0
----
-22
30
67

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3601
SELECT DISTINCT COUNT( * ) AS col1, CAST( NULL AS DECIMAL ) FROM tab1, tab0 AS cor0
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3601
SELECT DISTINCT COUNT ( * ) AS col1, CAST ( NULL AS REAL ) FROM tab1, tab0 AS cor0
----
9
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT - - 82 * + CAST( NULL AS SIGNED ) + col2 + + 40 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT - - 82 * + CAST ( NULL AS INTEGER ) + col2 + + 40 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + 41 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41

query I rowsort
SELECT + 95 * - col2 FROM tab2
----
-2185
-3800
-5510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3605
SELECT ALL 74 * CAST( NULL AS SIGNED ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3605
SELECT ALL 74 * CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT - MAX( + col1 ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3606
SELECT - MAX ( + col1 ) col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3607
SELECT - COUNT( * ) DIV ( - COUNT( * ) ) AS col1 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-3607
SELECT - COUNT ( * ) / ( - COUNT ( * ) ) AS col1 FROM tab1 cor0
----
1

query II rowsort
SELECT - + col1 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT DISTINCT - SUM( + - col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-3609
SELECT DISTINCT - SUM ( + - col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT ALL - 18 AS col0 FROM tab1
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3611
SELECT DISTINCT - ( + MAX( col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3611
SELECT DISTINCT - ( + MAX ( col1 ) ) AS col1 FROM tab0
----
-81

query I rowsort
SELECT DISTINCT + + 59 * - col1 + - col2 AS col0 FROM tab0 WHERE 10 * col0 / - col1 * col1 IS NOT NULL
----
-1249
-158
-4826

onlyif mysql # DIV for integer division: 
query II rowsort label-3613
SELECT ALL ( col2 ) AS col2, + 45 DIV - 26 + col2 col0 FROM tab0
----
10
9
47
46
99
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3613
SELECT ALL ( col2 ) AS col2, + 45 / - 26 + col2 col0 FROM tab0
----
10
9
47
46
99
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col2 col2 FROM tab2 WHERE NOT ( - - col2 ) IS NOT NULL
----

query I rowsort
SELECT ALL - ( + 14 ) FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3616
SELECT DISTINCT + - MIN( - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3616
SELECT DISTINCT + - MIN ( - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3617
SELECT + 77 + - + CAST( NULL AS SIGNED ) AS col0, 2 + - 32 AS col1 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

skipif mysql # not compatible
query II rowsort label-3617
SELECT + 77 + - + CAST ( NULL AS INTEGER ) AS col0, 2 + - 32 AS col1 FROM tab2 AS cor0
----
NULL
-30
NULL
-30
NULL
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 79 * + col2 + + 15 col0 FROM tab0 AS cor0
----
3728
7836
805

query I rowsort
SELECT + col2 + + + 4 - + 12 FROM tab1 AS cor0
----
51
60
88

query III rowsort
SELECT * FROM tab2 WHERE - 48 BETWEEN - col2 AND - - col1
----
75
67
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT + MIN( ALL 85 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
85

skipif mysql # not compatible
query I rowsort label-3621
SELECT + MIN ( ALL 85 ) FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
85

query I rowsort
SELECT + 62 + 58 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 9a76417a0e660b9e47db42d33f8268c3

onlyif mysql # aggregate syntax: 
query I rowsort label-3623
SELECT ALL - SUM( - 15 ) + + 17 FROM tab1 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-3623
SELECT ALL - SUM ( - 15 ) + + 17 FROM tab1 AS cor0
----
62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 + - - col0 + col1 * 31 col0 FROM tab1 AS cor0
----
1500
192
437

onlyif mysql # aggregate syntax: 
query I rowsort label-3625
SELECT ALL - 8 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3625
SELECT ALL - 8 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - + - col2 col0 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT + + col0 + + col1 * - 0 AS col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT - + MIN( - + 16 ) + + COUNT( * ) FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - + MIN ( - + 16 ) + + COUNT ( * ) FROM tab0 AS cor0
----
19

query I rowsort
SELECT ALL - - col2 + - col2 * + col1 - ( 91 ) * col2 AS col0 FROM tab1 AS cor0
----
-5605
-9316
-9984

query I rowsort
SELECT - + ( + col1 ) + col1 - - col0 + + col2 * + - col2 + col2 + ( - + 76 ) * - ( - - col2 ) FROM tab2 AS cor0
----
1177
1288
1544

query I rowsort
SELECT - col2 + - 54 AS col2 FROM tab2 AS cor0
----
-112
-77
-94

query I rowsort
SELECT DISTINCT ( col0 ) - 96 AS col1 FROM tab1
----
-11
-45
-5

query II rowsort
SELECT ALL 89, + 54 AS col1 FROM tab0
----
89
54
89
54
89
54

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT DISTINCT - COUNT( + col0 ) * 91 * - 0 AS col0 FROM tab2 WHERE NOT 21 * + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3634
SELECT DISTINCT - COUNT ( + col0 ) * 91 * - 0 AS col0 FROM tab2 WHERE NOT 21 * + col1 IS NULL
----
0

query I rowsort
SELECT + col2 + - 70 AS col0 FROM tab0
----
-23
-60
29

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 35 + + 93 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3637
SELECT DISTINCT + 59 + - COUNT( * ) + + COUNT( * ) AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-3637
SELECT DISTINCT + 59 + - COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab0
----
59

query III rowsort
SELECT * FROM tab0 WHERE - col0 / - col2 + 84 + 80 = + col1
----

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE ( NULL ) > + col2 * col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3640
SELECT + ( col2 ) * 77 DIV col1 - + ( + ( - CAST( - + 13 AS SIGNED ) ) ) FROM tab2
----
21
27
53

skipif mysql # not compatible
query I rowsort label-3640
SELECT + ( col2 ) * 77 / col1 - + ( + ( - CAST ( - + 13 AS INTEGER ) ) ) FROM tab2
----
21
27
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 61 * + 20 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 10b09d519beb189922e2560ef12d31ca

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL IS NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3643
SELECT ALL + - COUNT( * ) * - 47 AS col0 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3643
SELECT ALL + - COUNT ( * ) * - 47 AS col0 FROM tab1 AS cor0
----
141

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT DISTINCT - 35 DIV col1 FROM tab0 AS cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-3644
SELECT DISTINCT - 35 / col1 FROM tab0 AS cor0
----
-1
-35
0

query I rowsort
SELECT + 18 * - + 47 AS col1 FROM tab0 AS cor0
----
-846
-846
-846

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 83 * + col0 * + 24 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab0, tab0 AS cor0 WHERE NOT + - 13 IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2 * - - col1
----

query I rowsort
SELECT 59 * 44 * - - col1 AS col2 FROM tab0
----
210276
2596
54516

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3651
SELECT - col2 DIV 66 AS col1 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3651
SELECT - col2 / 66 AS col1 FROM tab0
----
-1
0
0

query II rowsort
SELECT DISTINCT col1 * + - 37 * col2 AS col2, col0 FROM tab1
----
-10915
85
-118252
91
-49728
51

query I rowsort
SELECT ALL - ( - 22 ) FROM tab1
----
22
22
22

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3654
SELECT col1 AS col2, - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

skipif mysql # not compatible
query II rowsort label-3654
SELECT col1 AS col2, - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL col1 + + col1 FROM tab0 WHERE ( + col0 ) NOT IN ( col1 * + col1 )
----
162
2
42

onlyif mysql # DIV for integer division: 
query I rowsort label-3656
SELECT DISTINCT + col2 * - 69 + + col1 DIV - 86 AS col0 FROM tab1
----
-4071
-4692
-6624

skipif mysql # not compatible
query I rowsort label-3656
SELECT DISTINCT + col2 * - 69 + + col1 / - 86 AS col0 FROM tab1
----
-4071
-4692
-6624

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3657
SELECT 22 * CAST( - col0 * col1 AS SIGNED ) AS col0 FROM tab2
----
-108416
-110550
-51612

skipif mysql # not compatible
query I rowsort label-3657
SELECT 22 * CAST ( - col0 * col1 AS INTEGER ) AS col0 FROM tab2
----
-108416
-110550
-51612

onlyif mysql # aggregate syntax: 
query I rowsort label-3658
SELECT 33 * SUM( DISTINCT - 6 ) + - 58 AS col1 FROM tab1
----
-256

skipif mysql # not compatible
query I rowsort label-3658
SELECT 33 * SUM ( DISTINCT - 6 ) + - 58 AS col1 FROM tab1
----
-256

query I rowsort
SELECT ALL 64 AS col0 FROM tab0 WHERE NOT + col1 IS NULL
----
64
64
64

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT ( 90 ) >= - col0
----

query I rowsort
SELECT ALL ( - col2 ) * - col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT DISTINCT 6 * COUNT( * ) FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-3662
SELECT DISTINCT 6 * COUNT ( * ) FROM tab2
----
18

query III rowsort
SELECT * FROM tab1 WHERE + ( 88 ) > col1 + col2
----
85
5
59

query I rowsort
SELECT DISTINCT + col2 + + col2 * - col2 AS col0 FROM tab2 WHERE NOT NULL BETWEEN ( NULL ) AND col0 + + col1
----

query I rowsort
SELECT DISTINCT + ( 2 ) * - 82 AS col0 FROM tab0
----
-164

query I rowsort
SELECT ALL - 14 * 63 FROM tab1 WHERE NOT col1 - + col0 BETWEEN ( NULL ) AND ( - 54 )
----
-882
-882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( col2 ) * - 59 col0 FROM tab1
----
-3481
-4012
-5664

query I rowsort
SELECT ALL - 22 * 52 FROM tab2
----
-1144
-1144
-1144

onlyif mysql # aggregate syntax: 
query I rowsort label-3669
SELECT - ( COUNT( * ) ) + - 85 FROM tab0 WHERE NULL IN ( + col0 )
----
-85

skipif mysql # not compatible
query I rowsort label-3669
SELECT - ( COUNT ( * ) ) + - 85 FROM tab0 WHERE NULL IN ( + col0 )
----
-85

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 92 IN ( - 98 * + 81 + + 3 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT 52 / + CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( - col0 - - col2 ) <= - 31
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT 52 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( - col0 - - col2 ) <= - 31
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT COUNT( * ) FROM tab0 WHERE NULL < ( ( col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-3673
SELECT COUNT ( * ) FROM tab0 WHERE NULL < ( ( col1 ) )
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3674
SELECT - 65 DIV MIN( - col2 ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3674
SELECT - 65 / MIN ( - col2 ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3675
SELECT - col1 DIV col2 AS col0 FROM tab2 WHERE 28 + + col2 IS NOT NULL
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-3675
SELECT - col1 / col2 AS col0 FROM tab2 WHERE 28 + + col2 IS NOT NULL
----
-1
-1
-2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3676
SELECT + COUNT( * ) DIV + 51 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3676
SELECT + COUNT ( * ) / + 51 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3677
SELECT DISTINCT + MIN( ALL col0 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-3677
SELECT DISTINCT + MIN ( ALL col0 ) FROM tab1
----
51

query I rowsort
SELECT DISTINCT 95 + + col1 FROM tab0 WHERE ( col0 ) NOT BETWEEN - col2 + - col0 AND ( 37 )
----
116
96

query III rowsort
SELECT * FROM tab1 WHERE NOT 61 * + col2 + col0 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 32 AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL SUM( ALL - 79 ) FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-3681
SELECT ALL SUM ( ALL - 79 ) FROM tab2
----
-237

query I rowsort
SELECT 24 * 60 AS col1 FROM tab1
----
1440
1440
1440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3683
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) * 12 FROM tab2 WHERE ( - 97 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3683
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) * 12 FROM tab2 WHERE ( - 97 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3684
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3684
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) + + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - col1 * 66 AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 ) NOT IN ( col0 )
----
-1376
-5299
33

query I rowsort
SELECT ALL - col0 AS col2 FROM tab1 AS cor0 WHERE NULL <= 87
----

query I rowsort
SELECT - 44 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT - COUNT( ALL - col0 ) AS col0 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3688
SELECT - COUNT ( ALL - col0 ) AS col0 FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3689
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-3690
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE - 32 NOT BETWEEN ( NULL ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-3690
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab0 WHERE - 32 NOT BETWEEN ( NULL ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3691
SELECT + col0 / col2 AS col2 FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) - - col1 * - col1 >= col2 * + col0
----

skipif mysql # not compatible
query I rowsort label-3691
SELECT + col0 / col2 AS col2 FROM tab1 WHERE NOT CAST ( NULL AS REAL ) - - col1 * - col1 >= col2 * + col0
----

query I rowsort
SELECT + 74 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query I rowsort
SELECT ALL + - col1 * 26 FROM tab0 AS cor0
----
-2106
-26
-546

query I rowsort
SELECT + - 96 AS col1 FROM tab2 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3695
SELECT DISTINCT - MAX( DISTINCT - 36 ) col0 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3695
SELECT DISTINCT - MAX ( DISTINCT - 36 ) col0 FROM tab0 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-3696
SELECT + col0 DIV + ( - col1 * col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3696
SELECT + col0 / + ( - col1 * col2 ) AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 4 AS col1 FROM tab0 AS cor0 WHERE NOT ( + col2 ) IS NULL
----
4
4
4

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 66 ) NOT BETWEEN 18 AND col1
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3699
SELECT + col1 * CAST( ( - col0 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3699
SELECT + col1 * CAST ( ( - col0 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL 93 * - 26 FROM tab0
----
-2418
-2418
-2418

onlyif mysql # DIV for integer division: 
query I rowsort label-3701
SELECT + col2 DIV - - ( 36 ) + + col1 AS col2 FROM tab0
----
21
3
82

skipif mysql # not compatible
query I rowsort label-3701
SELECT + col2 / - - ( 36 ) + + col1 AS col2 FROM tab0
----
21
3
82

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + + col1 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3703
SELECT ALL 96 DIV - - 11 AS col1 FROM tab2
----
8
8
8

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL 96 / - - 11 AS col1 FROM tab2
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3704
SELECT DISTINCT - 38 * - COUNT( + 27 ) col1 FROM tab2
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3704
SELECT DISTINCT - 38 * - COUNT ( + 27 ) col1 FROM tab2
----
114

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3706
SELECT COUNT( * ) FROM tab1 WHERE ( NULL ) NOT IN ( 98 )
----
0

skipif mysql # not compatible
query I rowsort label-3706
SELECT COUNT ( * ) FROM tab1 WHERE ( NULL ) NOT IN ( 98 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3707
SELECT ALL - COUNT( * ) * ( MIN( + col2 ) ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-3707
SELECT ALL - COUNT ( * ) * ( MIN ( + col2 ) ) FROM tab1
----
-177

onlyif mysql # aggregate syntax: 
query I rowsort label-3708
SELECT ALL - COUNT( * ) + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3708
SELECT ALL - COUNT ( * ) + + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT - col2 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 34 * - + 66 FROM tab1 AS cor0
----
-2244
-2244
-2244

query I rowsort
SELECT ALL + 45 + - - col1 AS col2 FROM tab0 AS cor0
----
126
46
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3712
SELECT - CAST( NULL AS SIGNED ) FROM tab1 WHERE NULL < + + col2
----

skipif mysql # not compatible
query I rowsort label-3712
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 WHERE NULL < + + col2
----

query III rowsort
SELECT * FROM tab0 WHERE - - col1 < ( + 42 / col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT - 5 + + COUNT( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
4

skipif mysql # not compatible
query I rowsort label-3714
SELECT - 5 + + COUNT ( * ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
4

query III rowsort
SELECT * FROM tab0 WHERE - + 92 * col1 > col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3716
SELECT ALL + COUNT( * ) DIV - + COUNT( + - 26 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3716
SELECT ALL + COUNT ( * ) / - + COUNT ( + - 26 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT 53 - + COUNT( * ) AS col0 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-3717
SELECT 53 - + COUNT ( * ) AS col0 FROM tab0
----
50

query I rowsort
SELECT ALL - ( - col2 ) + + 46 FROM tab1 AS cor0
----
105
114
142

onlyif mysql # aggregate syntax: 
query I rowsort label-3719
SELECT + + COUNT( * ) - - - 64 AS col2 FROM tab1 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-3719
SELECT + + COUNT ( * ) - - - 64 AS col2 FROM tab1 AS cor0
----
-61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3721
SELECT + 80 * - 3 + - - COUNT( * ) * + 76 FROM tab2 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-3721
SELECT + 80 * - 3 + - - COUNT ( * ) * + 76 FROM tab2 AS cor0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + 49 + - col2 * 55 col2 FROM tab0 AS cor0
----
-2489
-491
-5297

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3723
SELECT DISTINCT - col2 + - CAST( 40 AS DECIMAL ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT - col2 + - CAST ( 40 AS REAL ) FROM tab2 cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3724
SELECT * FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3724
SELECT * FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3725
SELECT - CAST( NULL AS SIGNED ) * - + col1 + + - col0 + + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3725
SELECT - CAST ( NULL AS INTEGER ) * - + col1 + + - col0 + + 51 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= ( + col1 * - + 5 )
----

query I rowsort
SELECT ALL + - ( - 51 ) + + col0 + 5 FROM tab2 AS cor0
----
102
120
131

onlyif mysql # aggregate syntax: 
query I rowsort label-3728
SELECT DISTINCT + 37 * - SUM( col0 ) * MIN( DISTINCT 45 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3728
SELECT DISTINCT + 37 * - SUM ( col0 ) * MIN ( DISTINCT 45 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - col1 FROM tab2 WHERE + 77 <= + col2 * 14
----
-51
-67
-77

query I rowsort
SELECT - 29 FROM tab1 WHERE NULL BETWEEN col2 AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN ( - col1 ) AND - 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3732
SELECT DISTINCT - SUM( DISTINCT - 62 ) AS col1 FROM tab2
----
62

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT - SUM ( DISTINCT - 62 ) AS col1 FROM tab2
----
62

query I rowsort
SELECT DISTINCT 38 * col2 FROM tab1 WHERE NOT + + col0 NOT IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3734
SELECT ( col1 ) AS col1 FROM tab1 WHERE NOT + col1 BETWEEN - CAST( + col1 AS SIGNED ) AND - 27 DIV col1 + + col1
----
14
5

skipif mysql # not compatible
query I rowsort label-3734
SELECT ( col1 ) AS col1 FROM tab1 WHERE NOT + col1 BETWEEN - CAST ( + col1 AS INTEGER ) AND - 27 / col1 + + col1
----
14
5

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col0 + + 59 - - col2 NOT IN ( col0 + 36 * col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * - - col2 NOT BETWEEN ( + 85 / + 67 - - 69 ) AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3737
SELECT + col2 DIV ( + 77 ) col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT + col2 / ( + 77 ) col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3739
SELECT 97 * - - COUNT( * ) FROM tab2 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-3739
SELECT 97 * - - COUNT ( * ) FROM tab2 AS cor0
----
291

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3740
SELECT ALL + + CAST( + 19 AS SIGNED ) FROM tab1 AS cor0
----
19
19
19

skipif mysql # not compatible
query I rowsort label-3740
SELECT ALL + + CAST ( + 19 AS INTEGER ) FROM tab1 AS cor0
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * col2 > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - col0, + 87 / col0 * col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL 51 * + 61 AS col2 FROM tab2
----
3111
3111
3111

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 > - 76
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + + 86 * + - 48 AS col2 FROM tab0 AS cor0
----
-4143
-4215
-4225

query I rowsort
SELECT + 17 + - col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-42
-51
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT + - col0 + + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3748
SELECT + - col0 + + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3749
SELECT - COUNT( * ) + - MIN( - col0 ) * - 53 AS col2 FROM tab1 AS cor0
----
-4826

skipif mysql # not compatible
query I rowsort label-3749
SELECT - COUNT ( * ) + - MIN ( - col0 ) * - 53 AS col2 FROM tab1 AS cor0
----
-4826

query I rowsort
SELECT DISTINCT 49 * - 64 + + 43 AS col1 FROM tab2 AS cor0
----
-3093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT - + CAST( 19 AS SIGNED ) AS col2 FROM tab1 cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-3751
SELECT - + CAST ( 19 AS INTEGER ) AS col2 FROM tab1 cor0
----
-19
-19
-19

query III rowsort
SELECT * FROM tab0 WHERE + ( - col0 ) NOT BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL + col0 AS col0, 14 AS col2 FROM tab0
----
15
14
87
14
97
14

query II rowsort
SELECT - 10, + col0 FROM tab1
----
-10
51
-10
85
-10
91

query II rowsort
SELECT DISTINCT col1, 52 AS col2 FROM tab2 AS cor0
----
51
52
67
52
77
52

query I rowsort
SELECT + - 76 FROM tab0 AS cor0 WHERE 41 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3757
SELECT DISTINCT - COUNT( * ) + 37 AS col2 FROM tab0 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-3757
SELECT DISTINCT - COUNT ( * ) + 37 AS col2 FROM tab0 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3758
SELECT - + col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE col1 < col0
----
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3758
SELECT - + col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE col1 < col0
----
NULL
NULL

query I rowsort
SELECT + + 89 * 41 + - + col1 FROM tab0 AS cor0
----
3568
3628
3648

onlyif mysql # aggregate syntax: 
query I rowsort label-3760
SELECT DISTINCT - COUNT( * ) + COUNT( ALL + 22 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3760
SELECT DISTINCT - COUNT ( * ) + COUNT ( ALL + 22 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT ALL + + 83 AS col2 FROM tab2 cor0
----
83
83
83

query III rowsort
SELECT + col0 * + 21, col2, + + col1 - - + 62 AS col0 FROM tab1 AS cor0
----
9 values hashing to 471ce9f81369abbf89684ceac10f484e

query I rowsort
SELECT ALL - + col0 * + col2 * + ( + - col0 ) + col2 FROM tab2 AS cor0
----
163880
326308
48691

onlyif mysql # DIV for integer division: 
query I rowsort label-3765
SELECT DISTINCT col0 DIV - - 84 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT col0 / - - 84 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( - + col0 + - col0 * + col1 / 41 + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3767
SELECT DISTINCT + CAST( + MAX( - 79 ) AS SIGNED ) FROM tab1
----
-79

skipif mysql # not compatible
query I rowsort label-3767
SELECT DISTINCT + CAST ( + MAX ( - 79 ) AS INTEGER ) FROM tab1
----
-79

query III rowsort
SELECT * FROM tab2 WHERE NOT 0 * ( + + col2 ) * + - 42 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT SUM( DISTINCT + 89 ) FROM tab2
----
89

skipif mysql # not compatible
query I rowsort label-3769
SELECT SUM ( DISTINCT + 89 ) FROM tab2
----
89

query I rowsort
SELECT col0 * - col2 * + col1 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT ( - 29 ) FROM tab2
----
-29
-29
-29

query I rowsort
SELECT - col0 * - col0 FROM tab0 WHERE NOT col2 IS NULL
----
225
7569
9409

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT COUNT( * ) * 3 AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-3773
SELECT COUNT ( * ) * 3 AS col1 FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3774
SELECT ALL 7 AS col2, - MAX( + CAST( + - 15 AS SIGNED ) ) AS col2 FROM tab1 cor0
----
7
15

skipif mysql # not compatible
query II rowsort label-3774
SELECT ALL 7 AS col2, - MAX ( + CAST ( + - 15 AS INTEGER ) ) AS col2 FROM tab1 cor0
----
7
15

query I rowsort
SELECT + col1 + - 25 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT ALL - 44, COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----
-44
0

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL - 44, COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 < NULL
----
-44
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + + col0 * - col1
----

query I rowsort
SELECT - - 14 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query II rowsort
SELECT ALL 47 + - col1, + 34 * - col1 FROM tab1 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col2 + + 97, col0 AS col1 FROM tab1 AS cor0
----
156
85
165
91
193
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3781
SELECT ALL - CAST( + + 88 AS SIGNED ) FROM tab0 AS cor0
----
-88
-88
-88

skipif mysql # not compatible
query I rowsort label-3781
SELECT ALL - CAST ( + + 88 AS INTEGER ) FROM tab0 AS cor0
----
-88
-88
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT ALL 57 + + MAX( ALL col1 ) * 84 FROM tab0 AS cor0
----
6861

skipif mysql # not compatible
query I rowsort label-3782
SELECT ALL 57 + + MAX ( ALL col1 ) * 84 FROM tab0 AS cor0
----
6861

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3783
SELECT + + CAST( NULL AS SIGNED ) * + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3783
SELECT + + CAST ( NULL AS INTEGER ) * + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 + col0 - + col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3785
SELECT DISTINCT COUNT( * ) * + MIN( - + col0 ) AS col1 FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT COUNT ( * ) * + MIN ( - + col0 ) AS col1 FROM tab1
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-3786
SELECT COUNT( * ) + - ( - 59 ) AS col0 FROM tab0
----
62

skipif mysql # not compatible
query I rowsort label-3786
SELECT COUNT ( * ) + - ( - 59 ) AS col0 FROM tab0
----
62

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 24 BETWEEN + 59 * + col0 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 76 + - 2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-3789
SELECT 42 DIV - col0 + + 96 AS col2, - col0 AS col1 FROM tab2
----
96
-46
96
-64
96
-75

skipif mysql # not compatible
query II rowsort label-3789
SELECT 42 / - col0 + + 96 AS col2, - col0 AS col1 FROM tab2
----
96
-46
96
-64
96
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3790
SELECT ALL + ( col2 ) FROM tab0 WHERE NOT + - CAST( NULL AS SIGNED ) * - 18 > NULL
----

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL + ( col2 ) FROM tab0 WHERE NOT + - CAST ( NULL AS INTEGER ) * - 18 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT ALL + - ( - COUNT( * ) ) + - COUNT( * ) + - 16 AS col2 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-3791
SELECT ALL + - ( - COUNT ( * ) ) + - COUNT ( * ) + - 16 AS col2 FROM tab1 AS cor0
----
-16

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL >= - + col2 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3793
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE NOT + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3793
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE NOT + col1 IS NULL
----
-3

query I rowsort
SELECT - 39 + + - 26 * + 98 + - col2 + col1 AS col1 FROM tab1 cor0
----
-2608
-2641
-2669

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3795
SELECT CAST( col0 AS SIGNED ) - - - 71 AS col1 FROM tab2 AS cor0 WHERE col2 * - 7 = - ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-3795
SELECT CAST ( col0 AS INTEGER ) - - - 71 AS col1 FROM tab2 AS cor0 WHERE col2 * - 7 = - ( - col0 )
----

query I rowsort
SELECT - col1 + + + col2 AS col2 FROM tab0 cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-3797
SELECT + 47 * COUNT( * ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-3797
SELECT + 47 * COUNT ( * ) FROM tab2 AS cor0
----
141

query I rowsort
SELECT ALL - col1 * - col1 * + - col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query II rowsort
SELECT 20, - ( - - col2 ) AS col1 FROM tab2 AS cor0
----
20
-23
20
-40
20
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-3800
SELECT - col2 DIV + col0 + + - 50 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

skipif mysql # not compatible
query I rowsort label-3800
SELECT - col2 / + col0 + + - 50 AS col0 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT DISTINCT col1 * - + col1 * - col0 AS col1 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3802
SELECT ALL + 26 DIV 2, ( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
13
NULL
13
NULL
13
NULL

skipif mysql # not compatible
query II rowsort label-3802
SELECT ALL + 26 / 2, ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
13
NULL
13
NULL
13
NULL

query I rowsort
SELECT + col1 * + col0 + col1 AS col1 FROM tab2 AS cor0
----
2397
5005
5092

query I rowsort
SELECT + ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab2 WHERE NOT - 19 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3806
SELECT DISTINCT - + COUNT( * ) FROM tab0 WHERE col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3806
SELECT DISTINCT - + COUNT ( * ) FROM tab0 WHERE col0 IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3807
SELECT DISTINCT 7 * + SUM( col2 ) FROM tab2
----
847

skipif mysql # not compatible
query I rowsort label-3807
SELECT DISTINCT 7 * + SUM ( col2 ) FROM tab2
----
847

query I rowsort
SELECT + ( col2 ) * + col1 - - 66 - - col1 AS col0 FROM tab2
----
1290
3223
4019

query I rowsort
SELECT + col1 AS col2 FROM tab2 cor0 WHERE NOT 82 NOT IN ( + - col1, - col0 * + ( - col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 79 <> - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT DISTINCT + col2 DIV - col0 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3811
SELECT DISTINCT + col2 / - col0 AS col0 FROM tab1 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3812
SELECT - col0 + + col0 DIV 25 * - - col0 AS col0 FROM tab2 AS cor0
----
0
150
64

skipif mysql # not compatible
query I rowsort label-3812
SELECT - col0 + + col0 / 25 * - - col0 AS col0 FROM tab2 AS cor0
----
0
150
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3813
SELECT COUNT( * ) + + + 30 FROM tab0 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-3813
SELECT COUNT ( * ) + + + 30 FROM tab0 AS cor0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col0 FROM tab0 cor0 WHERE ( col2 * + 71 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 75 * + 95 + col2, col1, col1 + + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3816
SELECT ALL + MIN( ALL col0 ) * - COUNT( col2 ) + + MAX( ALL col0 ) + + COUNT( * ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3816
SELECT ALL + MIN ( ALL col0 ) * - COUNT ( col2 ) + + MAX ( ALL col0 ) + + COUNT ( * ) FROM tab2 AS cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3817
SELECT SUM( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3817
SELECT SUM ( DISTINCT col2 ) col1 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-3818
SELECT - MIN( - col2 ) FROM tab0 cor0 WHERE + col1 * - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3818
SELECT - MIN ( - col2 ) FROM tab0 cor0 WHERE + col1 * - col1 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col2 + + 31 - col2 + - col0 FROM tab2
----
-15
-33
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-3820
SELECT DISTINCT + - COUNT( * ) FROM tab1 WHERE NOT + 50 * - - col1 * - col0 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3820
SELECT DISTINCT + - COUNT ( * ) FROM tab1 WHERE NOT + 50 * - - col1 * - col0 NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3821
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) - + 67 * + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3821
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) - + 67 * + col1 IS NOT NULL
----

query I rowsort
SELECT + 79 * col1 AS col0 FROM tab0
----
1659
6399
79

query I rowsort
SELECT - 62 FROM tab2 cor0 WHERE 53 IS NOT NULL
----
-62
-62
-62

query II rowsort
SELECT ALL + col2 + + col1, + col1 FROM tab1 cor0
----
110
14
115
47
64
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3825
SELECT + MAX( + 34 ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3825
SELECT + MAX ( + 34 ) AS col2 FROM tab0
----
34

query I rowsort
SELECT - ( - - ( + col0 ) ) + - ( + + col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) = NULL
----

query I rowsort
SELECT - + col1 * - + col2 * col0 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + col1 * + col0 col1 FROM tab1 cor0
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3829
SELECT DISTINCT + + MAX( DISTINCT - 72 ) col1 FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3829
SELECT DISTINCT + + MAX ( DISTINCT - 72 ) col1 FROM tab2 AS cor0
----
-72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 53 ) IS NOT NULL
----

query I rowsort
SELECT - + ( + 28 ) AS col1 FROM tab2 AS cor0
----
-28
-28
-28

query I rowsort
SELECT - 39 AS col2 FROM tab0 cor0
----
-39
-39
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, + 51 FROM tab1
----
51
51
85
51
91
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3834
SELECT + COUNT( - 55 ) * - COUNT( * ) * + COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3834
SELECT + COUNT ( - 55 ) * - COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-27

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3835
SELECT DISTINCT CAST( NULL AS DECIMAL ) AS col2, + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
query II rowsort label-3835
SELECT DISTINCT CAST ( NULL AS REAL ) AS col2, + col2 AS col0 FROM tab0
----
NULL
10
NULL
47
NULL
99

query I rowsort
SELECT ALL - 87 * - + col0 FROM tab2
----
4002
5568
6525

query III rowsort
SELECT * FROM tab0 WHERE NOT 9 <> col0
----

query I rowsort
SELECT ALL col0 * 41 AS col1 FROM tab1
----
2091
3485
3731

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3839
SELECT DISTINCT col1 * - 73, + col2 * + col0 / col0 - CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
-1022
NULL
-3431
NULL
-365
NULL

skipif mysql # not compatible
query II rowsort label-3839
SELECT DISTINCT col1 * - 73, + col2 * + col0 / col0 - CAST ( NULL AS REAL ) AS col2 FROM tab1
----
-1022
NULL
-3431
NULL
-365
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL + CAST( + col1 AS SIGNED ) * + col1 * - col1 * + 82 col0 FROM tab1
----
-10250
-225008
-8513486

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3840
SELECT ALL + CAST ( + col1 AS INTEGER ) * + col1 * - col1 * + 82 col0 FROM tab1
----
-10250
-225008
-8513486

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT - - COUNT( * ) * 22 * - - COUNT( * ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT - - COUNT ( * ) * 22 * - - COUNT ( * ) FROM tab2 AS cor0
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3842
SELECT COUNT( * ) DIV + 61 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3842
SELECT COUNT ( * ) / + 61 AS col0 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE - - col2 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 > - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col1 ) AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3846
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + + - 21 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + + - 21 AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT DISTINCT - 14 + - + CAST( + 61 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - 14 + - + CAST ( + 61 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-75

query II rowsort
SELECT ALL + col0 * - col1 + 15 + + col2 + + - col1 + + col1 + + - 12 AS col1, + 8 + - col2 + + + 90 AS col2 FROM tab2 AS cor0
----
-2320
75
-4885
58
-4964
40

query II rowsort
SELECT DISTINCT 93 + col2 * - col0 AS col1, 90 FROM tab2 AS cor0
----
-2467
90
-4257
90
-965
90

query I rowsort
SELECT ALL 8 * + col1 FROM tab2
----
408
536
616

query II rowsort
SELECT DISTINCT - col2, + col0 AS col2 FROM tab1
----
-59
85
-68
91
-96
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + - 72
----

query I rowsort
SELECT col0 + + 60 + col1 FROM tab1
----
125
150
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3854
SELECT 0 * + 18 * + 90 * + COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3854
SELECT 0 * + 18 * + 90 * + COUNT ( * ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3855
SELECT - col1 FROM tab2 WHERE ( 27 + + - CAST( + + col2 AS SIGNED ) - - col2 NOT BETWEEN NULL AND col1 )
----

skipif mysql # not compatible
query I rowsort label-3855
SELECT - col1 FROM tab2 WHERE ( 27 + + - CAST ( + + col2 AS INTEGER ) - - col2 NOT BETWEEN NULL AND col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3856
SELECT DISTINCT 8 DIV + SUM( DISTINCT + + col0 ) AS col2, + COUNT( * ) AS col0 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-3856
SELECT DISTINCT 8 / + SUM ( DISTINCT + + col0 ) AS col2, + COUNT ( * ) AS col0 FROM tab2
----
0
3

query II rowsort
SELECT DISTINCT - - 1, + col0 AS col0 FROM tab0 AS cor0 WHERE - 91 + col1 + col2 * 39 IS NOT NULL
----
1
15
1
87
1
97

query III rowsort
SELECT * FROM tab0 WHERE NOT + 68 NOT BETWEEN 97 + col0 AND NULL
----

query I rowsort
SELECT - 27 * col2 AS col2 FROM tab2
----
-1080
-1566
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-3860
SELECT - ( col0 ) DIV + col2 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3860
SELECT - ( col0 ) / + col2 FROM tab1 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - 54 ) * - - 12 col2 FROM tab0 AS cor0
----
-648

query I rowsort
SELECT ALL - col1 * + - col2 + + 94 + - col2 + ( - 95 ) AS col1 FROM tab0 AS cor0
----
-1
199
3759

query I rowsort
SELECT DISTINCT + + 76 * col0 FROM tab2 AS cor0
----
3496
4864
5700

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3864
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 + - CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3864
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 + - CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT - - MAX( + col0 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - - MAX ( + col0 ) FROM tab2 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-3866
SELECT + 93 DIV + - 69 + - - col1 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-3866
SELECT + 93 / + - 69 + - - col1 FROM tab2 AS cor0
----
50
66
76

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3867
SELECT * FROM tab0 cor0 WHERE NOT ( NOT - col1 + CAST( NULL AS SIGNED ) - - 53 >= NULL )
----

skipif mysql # not compatible
query III rowsort label-3867
SELECT * FROM tab0 cor0 WHERE NOT ( NOT - col1 + CAST ( NULL AS INTEGER ) - - 53 >= NULL )
----

query I rowsort
SELECT DISTINCT 99 * + col1 FROM tab1
----
1386
4653
495

query III rowsort
SELECT * FROM tab1 WHERE NOT col0 IN ( + + 52 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - 40, col1 FROM tab2 AS cor0
----
-40
51
-40
67
-40
77

query I rowsort
SELECT DISTINCT + - 33 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-33

query I rowsort
SELECT ALL 71 + col1 AS col1 FROM tab1 AS cor0
----
118
76
85

query I rowsort
SELECT ALL + col0 + + col0 + + ( + 51 ) AS col2 FROM tab1 AS cor0
----
153
221
233

query I rowsort
SELECT + col2 * col0 * - col2 AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + - col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL + col1 - - + 63 FROM tab2 cor0
----
114
130
140

query II rowsort
SELECT - 42, 99 AS col0 FROM tab0 AS cor0
----
-42
99
-42
99
-42
99

query I rowsort
SELECT DISTINCT + + 7 * col1 + + col2 - - col0 * - col0 AS col2 FROM tab0 cor0
----
-7412
-9303
389

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 73 + - - col2 col0 FROM tab2 AS cor0
----
113
131
96

query I rowsort
SELECT DISTINCT 75 - 0 FROM tab1 AS cor0
----
75

query I rowsort
SELECT 31 * - col0 FROM tab2
----
-1426
-1984
-2325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3882
SELECT DISTINCT + CAST( - 38 AS SIGNED ) + col0 col0 FROM tab1
----
13
47
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3882
SELECT DISTINCT + CAST ( - 38 AS INTEGER ) + col0 col0 FROM tab1
----
13
47
53

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3883
SELECT DISTINCT + 94 / CAST( NULL AS SIGNED ), col2 * + col0 AS col0 FROM tab0
----
NULL
705
NULL
870
NULL
9603

skipif mysql # not compatible
query II rowsort label-3883
SELECT DISTINCT + 94 / CAST ( NULL AS INTEGER ), col2 * + col0 AS col0 FROM tab0
----
NULL
705
NULL
870
NULL
9603

query I rowsort
SELECT - col2 - - - col2 FROM tab1
----
-118
-136
-192

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + + col2 col0 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + col2 - + col1 + - + col1 FROM tab2
----
-114
-76
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT col1 - col0 * + col1 + - - col1 DIV 76 + + col1 + - - 87 + + col0 DIV col0 * + + col1 AS col0 FROM tab1
----
-323
-4049
-585

skipif mysql # not compatible
query I rowsort label-3887
SELECT col1 - col0 * + col1 + - - col1 / 76 + + col1 + - - 87 + + col0 / col0 * + + col1 AS col0 FROM tab1
----
-323
-4049
-585

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + 82, - col1 )
----

query I rowsort
SELECT col0 + + + col1 FROM tab1 cor0
----
138
65
90

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 76 IN ( + 23, col1, 14 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT ALL COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 <> - - col0 + + 87
----
0

skipif mysql # not compatible
query I rowsort label-3891
SELECT ALL COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + col0 <> - - col0 + + 87
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3892
SELECT + + 81, CAST( col0 AS SIGNED ) * + 32 AS col2 FROM tab0 AS cor0
----
81
2784
81
3104
81
480

skipif mysql # not compatible
query II rowsort label-3892
SELECT + + 81, CAST ( col0 AS INTEGER ) * + 32 AS col2 FROM tab0 AS cor0
----
81
2784
81
3104
81
480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col0 AS col1, col1 col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3894
SELECT ALL - MAX( DISTINCT - 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3894
SELECT ALL - MAX ( DISTINCT - 68 ) FROM tab0 AS cor0
----
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, 60 - + 17 AS col1 FROM tab0 AS cor0
----
-15
43
-87
43
-97
43

onlyif mysql # aggregate syntax: 
query II rowsort label-3896
SELECT ALL - + COUNT( * ), 14 col2 FROM tab1 AS cor0
----
-3
14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3896
SELECT ALL - + COUNT ( * ), 14 col2 FROM tab1 AS cor0
----
-3
14

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 BETWEEN + - col1 + 56 AND - col1 + - col2 * + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 93 col0 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT ALL col2 + + 54 FROM tab0
----
101
153
64

query III rowsort
SELECT * FROM tab0 WHERE NOT + 96 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 NOT IN ( - + ( - col1 ) / col0 * + col0 - - col0 * - col1 + 51, - ( 87 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT DISTINCT + COUNT( * ) * + 1 * 43 * + 32 FROM tab0 AS cor0
----
4128

skipif mysql # not compatible
query I rowsort label-3902
SELECT DISTINCT + COUNT ( * ) * + 1 * 43 * + 32 FROM tab0 AS cor0
----
4128

query I rowsort
SELECT - 52 * - col2 + - + col2 + + + col2 * + col1 FROM tab2 AS cor0
----
2346
5120
6844

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 1 + col0 * ( - col1 ), ( col1 ) col1 FROM tab1 AS cor0
----
-424
5
-4276
47
-713
14

query I rowsort
SELECT 56 * - - 61 FROM tab2 AS cor0
----
3416
3416
3416

query I rowsort
SELECT DISTINCT + + 21 + + col2 FROM tab2 cor0
----
44
61
79

query I rowsort
SELECT DISTINCT + 75 * col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * + + 44 * - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3909
SELECT ALL - CAST( + 10 AS SIGNED ) * - col0 FROM tab2
----
460
640
750

skipif mysql # not compatible
query I rowsort label-3909
SELECT ALL - CAST ( + 10 AS INTEGER ) * - col0 FROM tab2
----
460
640
750

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3910
SELECT * FROM tab2 WHERE + col1 IN ( - CAST( - col2 AS SIGNED ), col1, + col2 * - col2 * + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3910
SELECT * FROM tab2 WHERE + col1 IN ( - CAST ( - col2 AS INTEGER ), col1, + col2 * - col2 * + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 17 FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, + col0, - ( - col0 ) )
----

query I rowsort
SELECT 61 - - + col2 FROM tab1 AS cor0
----
120
129
157

onlyif mysql # aggregate syntax: 
query I rowsort label-3913
SELECT + COUNT( * ) + - 45 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-3913
SELECT + COUNT ( * ) + - 45 FROM tab2 AS cor0
----
-42

query I rowsort
SELECT ALL + + 14 + + 61 FROM tab2 AS cor0
----
75
75
75

query I rowsort
SELECT DISTINCT + + col1 * 6 - col0 FROM tab0 AS cor0
----
-91
39
471

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> - col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( col2 ) <= col2 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3918
SELECT DISTINCT - 76 - + CAST( - col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-55
-75
5

skipif mysql # not compatible
query I rowsort label-3918
SELECT DISTINCT - 76 - + CAST ( - col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-55
-75
5

query I rowsort
SELECT ALL col1 + + + col1 AS col0 FROM tab1 AS cor0
----
10
28
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * + col1 + + col2 NOT BETWEEN NULL AND + 5 * - 43
----
97
1
99

query I rowsort
SELECT ALL + + col0 - + + col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT 93 + 96 FROM tab2 AS cor0
----
189
189
189

query II rowsort
SELECT col1 + - 9, col2 FROM tab1
----
-4
59
38
68
5
96

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT DISTINCT + col1 DIV 68 * col1 AS col0 FROM tab2
----
0
77

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT + col1 / 68 * col1 AS col0 FROM tab2
----
0
77

query I rowsort
SELECT DISTINCT 48 * col0 FROM tab1
----
2448
4080
4368

query I rowsort
SELECT - - 11 * + col1 AS col2 FROM tab2 AS cor0
----
561
737
847

onlyif mysql # aggregate syntax: 
query I rowsort label-3927
SELECT DISTINCT + ( + + COUNT( * ) ) * + 92 AS col1 FROM tab1 AS cor0
----
276

skipif mysql # not compatible
query I rowsort label-3927
SELECT DISTINCT + ( + + COUNT ( * ) ) * + 92 AS col1 FROM tab1 AS cor0
----
276

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - col0 ) - 13 IS NULL
----

query I rowsort
SELECT - col0 AS col0 FROM tab1 WHERE NOT ( - 35 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + 68 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-3931
SELECT - COUNT( * ) + 45 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
36

skipif mysql # not compatible
query I rowsort label-3931
SELECT - COUNT ( * ) + 45 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
36

query I rowsort
SELECT ALL - 88 + + 51 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query I rowsort
SELECT DISTINCT ( + + col0 ) * - col1 * + - col0 AS col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT + 16 * - - 70 FROM tab2
----
1120
1120
1120

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3935
SELECT - CAST( + col2 AS SIGNED ) * + - col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-3935
SELECT - CAST ( + col2 AS INTEGER ) * + - col1 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3936
SELECT ALL 44 * + CAST( NULL AS DECIMAL ) * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL 44 * + CAST ( NULL AS REAL ) * + col1 * - col0 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT MIN( + + col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-3937
SELECT MIN ( + + col1 ) AS col1 FROM tab1 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT - ( - + ( + COUNT( * ) ) ) * - - COUNT( * ) + + - MIN( - - col1 ) AS col1 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3938
SELECT - ( - + ( + COUNT ( * ) ) ) * - - COUNT ( * ) + + - MIN ( - - col1 ) AS col1 FROM tab1 AS cor0
----
4

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT col2 < + col0 * + col2 + - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT DISTINCT CAST( NULL AS SIGNED ) / + col1 * 11 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3940
SELECT DISTINCT CAST ( NULL AS INTEGER ) / + col1 * 11 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3941
SELECT + + CAST( + 86 AS SIGNED ) / col2 FROM tab2 WHERE NOT - col2 / + - col2 + 51 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3941
SELECT + + CAST ( + 86 AS INTEGER ) / col2 FROM tab2 WHERE NOT - col2 / + - col2 + 51 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3942
SELECT ( - COUNT( * ) ) * + + 15 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-3942
SELECT ( - COUNT ( * ) ) * + + 15 FROM tab0
----
-45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 30 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3944
SELECT - ( SUM( DISTINCT - col0 ) ) AS col0 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3944
SELECT - ( SUM ( DISTINCT - col0 ) ) AS col0 FROM tab0
----
199

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59 AS col0, + col1 col2 FROM tab1
----
59
14
59
47
59
5

query I rowsort
SELECT ALL + + 80 + + 56 * - - col2 AS col0 FROM tab0 AS cor0
----
2712
5624
640

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT DISTINCT - + 49 + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT - + 49 + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT - 5 + - 2 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT ALL col0 - - 45 AS col0 FROM tab2
----
109
120
91

query I rowsort
SELECT 67 + + col0 AS col1 FROM tab1
----
118
152
158

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 93 / + 11 + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( + - col1 ) + - col1 * - col0 AS col0 FROM tab2 AS cor0
----
2295
4851
4958

query I rowsort
SELECT + col1 - 75 FROM tab0 AS cor0
----
-54
-74
6

query I rowsort
SELECT ALL + col1 + + + col1 + - col2 FROM tab1 AS cor0
----
-49
-68
26

query II rowsort
SELECT DISTINCT + + ( + 53 ) - - + col2 - - + col0 AS col0, + col2 FROM tab0 AS cor0
----
115
47
150
10
249
99

query I rowsort
SELECT + - col2 * col2 - + col1 AS col2 FROM tab1 cor0
----
-3486
-4671
-9230

query I rowsort
SELECT DISTINCT 11 + col0 + - col2 AS col1 FROM tab1 AS cor0
----
-34
34
37

query I rowsort
SELECT + col1 * + 50 * + - 48 FROM tab0 WHERE - col2 + + col2 * - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - - col0 col2 FROM tab2
----
2346
4928
5025

query III rowsort
SELECT * FROM tab2 WHERE NOT 42 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT + COUNT( * ) * 96 col2 FROM tab0
----
288

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3961
SELECT + COUNT ( * ) * 96 col2 FROM tab0
----
288

query I rowsort
SELECT DISTINCT + 22 * - 15 FROM tab0
----
-330

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab2 WHERE NOT + col0 IS NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col1 * - col0 * + - ( - col0 ) AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT DISTINCT + + ( COUNT( * ) ) * - COUNT( * ) col1 FROM tab0 cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3966
SELECT DISTINCT + + ( COUNT ( * ) ) * - COUNT ( * ) col1 FROM tab0 cor0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3967
SELECT + CAST( - MIN( ALL 32 ) AS SIGNED ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-3967
SELECT + CAST ( - MIN ( ALL 32 ) AS INTEGER ) AS col0 FROM tab2
----
-32

query I rowsort
SELECT ALL - - col2 * + col2 + + + 74 * + col0 FROM tab0 AS cor0
----
16979
3319
6538

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 55 AND - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT - col0 * + col1 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3971
SELECT DISTINCT col1 + CAST( NULL AS SIGNED ) AS col2, - col1 * + col0 * + col1 FROM tab2 AS cor0
----
NULL
-119646
NULL
-336675
NULL
-379456

skipif mysql # not compatible
query II rowsort label-3971
SELECT DISTINCT col1 + CAST ( NULL AS INTEGER ) AS col2, - col1 * + col0 * + col1 FROM tab2 AS cor0
----
NULL
-119646
NULL
-336675
NULL
-379456

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * col1 + - - col2 col2 FROM tab1 AS cor0
----
-366
-4209
-618

query II rowsort
SELECT DISTINCT - + 31 AS col1, + col0 FROM tab0 AS cor0
----
-31
15
-31
87
-31
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT - MAX( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-3974
SELECT - MAX ( ALL col0 ) AS col2 FROM tab2 AS cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( col2 ) col2 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3976
SELECT - CAST( NULL AS SIGNED ) AS col2, - COUNT( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-3976
SELECT - CAST ( NULL AS INTEGER ) AS col2, - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
NULL
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query II rowsort
SELECT ALL + ( + col0 ) AS col1, - 64 + - 60 FROM tab2
----
46
-124
64
-124
75
-124

query I rowsort
SELECT DISTINCT col0 FROM tab2 WHERE col0 BETWEEN NULL AND + + col0 * - 92
----

query I rowsort
SELECT + col1 + + + 40 AS col0 FROM tab1
----
45
54
87

query I rowsort
SELECT DISTINCT col0 * - + ( 3 ) * + - 78 FROM tab2
----
10764
14976
17550

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 BETWEEN + - col2 + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3983
SELECT DISTINCT COUNT( * ) + - SUM( ALL + col1 ) + + MIN( DISTINCT - 83 ) + - - ( 48 ) FROM tab0 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT COUNT ( * ) + - SUM ( ALL + col1 ) + + MIN ( DISTINCT - 83 ) + - - ( 48 ) FROM tab0 AS cor0
----
-135

query I rowsort
SELECT 96 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col2 FROM tab1, tab1 AS cor0 WHERE + 81 IS NOT NULL
----
-33

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 5 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3987
SELECT DISTINCT - 10 + - CAST( NULL AS SIGNED ) * col0 col1, col2, col2 FROM tab2 AS cor0
----
9 values hashing to 6b24d47661024ca816fc16219d387b81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3987
SELECT DISTINCT - 10 + - CAST ( NULL AS INTEGER ) * col0 col1, col2, col2 FROM tab2 AS cor0
----
9 values hashing to 6b24d47661024ca816fc16219d387b81

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 99 * - col2 BETWEEN + col2 AND 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3989
SELECT + SUM( ALL + col2 ) + - ( - 94 ) col1 FROM tab2 AS cor0
----
215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3989
SELECT + SUM ( ALL + col2 ) + - ( - 94 ) col1 FROM tab2 AS cor0
----
215

query I rowsort
SELECT DISTINCT ( col1 ) + + col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query II rowsort label-3991
SELECT - 2 DIV + col2 - - + col2 col2, - col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3991
SELECT - 2 / + col2 - - + col2 col2, - col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query I rowsort
SELECT - - ( - ( + - col1 ) ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT DISTINCT - ( - - 63 ) AS col1 FROM tab0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT ( MIN( col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3994
SELECT ( MIN ( col1 ) ) AS col0 FROM tab0
----
1

query I rowsort
SELECT col1 * - 15 AS col1 FROM tab2
----
-1005
-1155
-765

query I rowsort
SELECT + ( + 2 ) * + col0 FROM tab1
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col0 + - + ( + col0 ) col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT ALL - ( col2 ) * col1 AS col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-3999
SELECT ALL + MIN( 17 ) FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-3999
SELECT ALL + MIN ( 17 ) FROM tab0 AS cor0
----
17

query I rowsort
SELECT - - col1 + 73 FROM tab2 AS cor0
----
124
140
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4001
SELECT + MIN( DISTINCT - col0 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4001
SELECT + MIN ( DISTINCT - col0 ) FROM tab2 cor0
----
-75

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE + ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4003
SELECT + MAX( ALL - CAST( NULL AS SIGNED ) ) * + 2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4003
SELECT + MAX ( ALL - CAST ( NULL AS INTEGER ) ) * + 2 AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE + col1 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT DISTINCT + 55 * + MAX( col1 ) AS col0 FROM tab0
----
4455

skipif mysql # not compatible
query I rowsort label-4005
SELECT DISTINCT + 55 * + MAX ( col1 ) AS col0 FROM tab0
----
4455

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE NOT ( NOT NULL = col0 )
----

query II rowsort
SELECT DISTINCT + col1, + col1 * + 36 + + ( + + ( + col2 ) ) AS col0 FROM tab1
----
14
600
47
1760
5
239

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT - + SUM( ALL - col1 ) col1 FROM tab0 WHERE 94 - col1 > NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4008
SELECT - + SUM ( ALL - col1 ) col1 FROM tab0 WHERE 94 - col1 > NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT ALL + ( + + COUNT( * ) ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4009
SELECT ALL + ( + + COUNT ( * ) ) col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4010
SELECT + 47 * - + MIN( - col0 ) AS col1 FROM tab0
----
4559

skipif mysql # not compatible
query I rowsort label-4010
SELECT + 47 * - + MIN ( - col0 ) AS col1 FROM tab0
----
4559

query I rowsort
SELECT ALL 14 + + ( - + 65 ) AS col1 FROM tab0
----
-51
-51
-51

query I rowsort
SELECT ALL + - col2 + - col1 * col0 + - 82 FROM tab2 cor0
----
-2451
-5050
-5165

query I rowsort
SELECT DISTINCT + col1 + + 95 FROM tab0 AS cor0
----
116
176
96

query I rowsort
SELECT DISTINCT 12 + - ( col0 ) + + 42 * - 42 * - - col0 * col0 + 74 + col2 * - + 0 FROM tab1 AS cor0
----
-12744899
-14607689
-4588129

query I rowsort
SELECT ALL 10 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to a47194429f3e0358a3aebffd5f050113

query I rowsort
SELECT ( + 41 ) + - + col0 FROM tab2
----
-23
-34
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col0 IN ( + + col1, - col0 + - col0 * + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4018
SELECT ( + CAST( + 8 AS SIGNED ) ) * + + col1 AS col1 FROM tab0
----
168
648
8

skipif mysql # not compatible
query I rowsort label-4018
SELECT ( + CAST ( + 8 AS INTEGER ) ) * + + col1 AS col1 FROM tab0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4019
SELECT DISTINCT 83 + + - ( - COUNT( * ) ) FROM tab0 WHERE NOT ( 13 ) IS NULL
----
86

skipif mysql # not compatible
query I rowsort label-4019
SELECT DISTINCT 83 + + - ( - COUNT ( * ) ) FROM tab0 WHERE NOT ( 13 ) IS NULL
----
86

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT COUNT( * ) + - - 5 FROM tab2 cor0 WHERE ( NOT - col0 >= col1 )
----
8

skipif mysql # not compatible
query I rowsort label-4020
SELECT COUNT ( * ) + - - 5 FROM tab2 cor0 WHERE ( NOT - col0 >= col1 )
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4021
SELECT ALL - - CAST( NULL AS SIGNED ) / col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL - - CAST ( NULL AS INTEGER ) / col2 AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4022
SELECT ALL - + MAX( DISTINCT 89 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4022
SELECT ALL - + MAX ( DISTINCT 89 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4023
SELECT ALL - + col1 FROM tab1 WHERE + - col1 + 14 > + - CAST( NULL AS SIGNED ) * + col2 * - col2
----

skipif mysql # not compatible
query I rowsort label-4023
SELECT ALL - + col1 FROM tab1 WHERE + - col1 + 14 > + - CAST ( NULL AS INTEGER ) * + col2 * - col2
----

query I rowsort
SELECT ( - col1 ) * 69 AS col0 FROM tab0
----
-1449
-5589
-69

query I rowsort
SELECT DISTINCT ( + 76 ) AS col2 FROM tab2
----
76

query I rowsort
SELECT ALL + 67 AS col2 FROM tab1 WHERE + 67 IS NOT NULL
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4027
SELECT ( - - COUNT( * ) ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4027
SELECT ( - - COUNT ( * ) ) col1 FROM tab0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT DISTINCT col1 * col2 * 77 * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT DISTINCT col1 * col2 * 77 * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query II rowsort
SELECT DISTINCT + + 66, - 30 * + col0 FROM tab0 WHERE + 99 * + col1 - - col0 <> NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 ) BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4031
SELECT col1 DIV + col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4031
SELECT col1 / + col2 FROM tab0 AS cor0 WHERE NOT + col0 IS NULL
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4032
SELECT + ( + SUM( - 35 ) ) col0 FROM tab2 AS cor0
----
-105

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4032
SELECT + ( + SUM ( - 35 ) ) col0 FROM tab2 AS cor0
----
-105

query I rowsort
SELECT + 93 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 IN ( - - col2, 2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col2 col0 FROM tab2 AS cor0 WHERE ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4036
SELECT DISTINCT - COUNT( * ) + - ( - - 66 ) AS col2 FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-4036
SELECT DISTINCT - COUNT ( * ) + - ( - - 66 ) AS col2 FROM tab1 AS cor0
----
-69

query I rowsort
SELECT DISTINCT + 66 * col2 + - col1 FROM tab2 AS cor0
----
1467
2563
3761

query I rowsort
SELECT 85 + + col0 - col2 + col0 AS col1 FROM tab2 AS cor0
----
154
173
177

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4039
SELECT DISTINCT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4039
SELECT DISTINCT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 75 * + 47 AS col0, + col2 FROM tab1 AS cor0
----
3525
59
3525
68
3525
96

query I rowsort
SELECT DISTINCT col0 * col2 + 66 + col0 FROM tab2 cor0
----
1170
2690
4491

onlyif mysql # DIV for integer division: 
query I rowsort label-4042
SELECT ( - 98 ) DIV + 32 + 98 FROM tab2
----
95
95
95

skipif mysql # not compatible
query I rowsort label-4042
SELECT ( - 98 ) / + 32 + 98 FROM tab2
----
95
95
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4043
SELECT - col1 + CAST( NULL AS SIGNED ) * 29 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4043
SELECT - col1 + CAST ( NULL AS INTEGER ) * 29 * col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4044
SELECT ALL 37 DIV col0 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-4044
SELECT ALL 37 / col0 FROM tab0
----
0
0
2

query I rowsort
SELECT ALL - 20 * + + 77 AS col2 FROM tab0
----
-1540
-1540
-1540

query I rowsort
SELECT ALL + col2 + + 10 AS col2 FROM tab2
----
33
50
68

query I rowsort
SELECT DISTINCT + ( + col1 ) AS col1 FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4048
SELECT DISTINCT - COUNT( * ) col2, 63 col0 FROM tab1
----
-3
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4048
SELECT DISTINCT - COUNT ( * ) col2, 63 col0 FROM tab1
----
-3
63

query I rowsort
SELECT ALL 11 * - - 55 AS col0 FROM tab1
----
605
605
605

query I rowsort
SELECT DISTINCT - 22 - + col1 * - 67 FROM tab2
----
3395
4467
5137

query I rowsort
SELECT 96 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

onlyif mysql # aggregate syntax: 
query I rowsort label-4052
SELECT DISTINCT 73 * + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-4052
SELECT DISTINCT 73 * + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 67 + + 32 col1 FROM tab1 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT - col0 AS col0, col2 AS col1 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4055
SELECT - + CAST( NULL AS SIGNED ) * - + SUM( DISTINCT - col0 ) * - COUNT( * ) col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4055
SELECT - + CAST ( NULL AS INTEGER ) * - + SUM ( DISTINCT - col0 ) * - COUNT ( * ) col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4056
SELECT COUNT( * ) DIV 85 * + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4056
SELECT COUNT ( * ) / 85 * + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4057
SELECT - CAST( - col0 AS SIGNED ) DIV - + 82 * col2 * col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4057
SELECT - CAST ( - col0 AS INTEGER ) / - + 82 * col2 * col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4058
SELECT + + 29 col1, CAST( - col0 AS SIGNED ) FROM tab1 AS cor0
----
29
-51
29
-85
29
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4058
SELECT + + 29 col1, CAST ( - col0 AS INTEGER ) FROM tab1 AS cor0
----
29
-51
29
-85
29
-91

query I rowsort
SELECT + 29 * col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4060
SELECT - col0 + + 56 + + col2 * + CAST( ( + col0 ) AS SIGNED ) FROM tab0
----
746
839
9562

skipif mysql # not compatible
query I rowsort label-4060
SELECT - col0 + + 56 + + col2 * + CAST ( ( + col0 ) AS INTEGER ) FROM tab0
----
746
839
9562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT + col0 * + + CAST( - col1 AS SIGNED ) - - + col0 + + col2 + - + col1 FROM tab0 AS cor0
----
-1234
-1751
98

skipif mysql # not compatible
query I rowsort label-4061
SELECT + col0 * + + CAST ( - col1 AS INTEGER ) - - + col0 + + col2 + - + col1 FROM tab0 AS cor0
----
-1234
-1751
98

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT ALL - + 23 + + col0 DIV - - 21 + col0 FROM tab2 cor0
----
25
44
55

skipif mysql # not compatible
query I rowsort label-4062
SELECT ALL - + 23 + + col0 / - - 21 + col0 FROM tab2 cor0
----
25
44
55

query I rowsort
SELECT ALL - 48 + - col1 + - + 37 FROM tab2 AS cor0
----
-136
-152
-162

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND 56
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + 79 + - col0 BETWEEN + - col0 AND col0 * - + ( col2 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - 62 ) + + + col1 AS col2 FROM tab1 AS cor0
----
-15
-48
-57

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT ALL + 80 DIV col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + 80 / col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - 12 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-4068
SELECT - 12 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-36

query I rowsort
SELECT DISTINCT + 60 * + col0 FROM tab2
----
2760
3840
4500

query I rowsort
SELECT DISTINCT - col2 - col1 * - 32 AS col0 FROM tab2
----
1609
2086
2424

query I rowsort
SELECT + - col1 + - + col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT + + COUNT( - col1 ) + - - COUNT( - col2 ) col1 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4072
SELECT + + COUNT ( - col1 ) + - - COUNT ( - col2 ) col1 FROM tab2 AS cor0
----
6

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE + 8 <> - col1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4074
SELECT ALL + + 91 + - COUNT( col1 ) AS col1 FROM tab2 cor0
----
88

skipif mysql # not compatible
query I rowsort label-4074
SELECT ALL + + 91 + - COUNT ( col1 ) AS col1 FROM tab2 cor0
----
88

query I rowsort
SELECT ( 52 ) * + 98 FROM tab1, tab2 AS cor0
----
9 values hashing to 73bc98d2a2d4519a1579458e4f33c8e3

query I rowsort
SELECT ALL + 89 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL COUNT( * ) + - + COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL COUNT ( * ) + - + COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
0

query I rowsort
SELECT ALL - ( 29 ) FROM tab1 AS cor0
----
-29
-29
-29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 col2 FROM tab0 cor0
----
-83
-83
-83

query II rowsort
SELECT DISTINCT + - 35, col1 FROM tab0 cor0
----
-35
1
-35
21
-35
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4081
SELECT DISTINCT - - col0 col2, + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4081
SELECT DISTINCT - - col0 col2, + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4082
SELECT MIN( 7 ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-4082
SELECT MIN ( 7 ) FROM tab1 AS cor0
----
7

query I rowsort
SELECT + + col1 FROM tab1 WHERE NOT 95 + + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4084
SELECT 54 DIV col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4084
SELECT 54 / col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4085
SELECT ALL ( - MAX( DISTINCT col1 ) ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4085
SELECT ALL ( - MAX ( DISTINCT col1 ) ) AS col0 FROM tab1
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4086
SELECT DISTINCT COUNT( * ) DIV + + 10 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4086
SELECT DISTINCT COUNT ( * ) / + + 10 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4087
SELECT + MAX( DISTINCT 74 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-4087
SELECT + MAX ( DISTINCT 74 ) FROM tab1
----
74

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - + 60 AND col1
----

query II rowsort
SELECT ALL - ( - col0 ), 7 * col0 AS col2 FROM tab2
----
46
322
64
448
75
525

query II rowsort
SELECT ALL col0 AS col2, - 99 + - col0 AS col0 FROM tab2
----
46
-145
64
-163
75
-174

query I rowsort
SELECT DISTINCT - - 85 + - + 84 * - col0 + - 60 * - - 2 * + col0 FROM tab1 AS cor0
----
-1751
-2975
-3191

query I rowsort
SELECT - col2 FROM tab0 AS cor0 WHERE NOT col2 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4093
SELECT ALL + + 77 AS col2, col2 * - 56 * - col1 / + 85 * - col1 * + col0 / - ( CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 AS cor0
----
77
NULL
77
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-4093
SELECT ALL + + 77 AS col2, col2 * - 56 * - col1 / + 85 * - col1 * + col0 / - ( CAST ( NULL AS REAL ) ) AS col0 FROM tab1 AS cor0
----
77
NULL
77
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT - MAX( + 17 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4094
SELECT - MAX ( + 17 ) FROM tab2 AS cor0
----
-17

query I rowsort
SELECT - + 76 * + col1 + - 65 FROM tab1 AS cor0
----
-1129
-3637
-445

onlyif mysql # aggregate syntax: 
query II rowsort label-4096
SELECT DISTINCT + - COUNT( * ) col2, 64 * + COUNT( + 29 ) * SUM( - 78 ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
134784

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4096
SELECT DISTINCT + - COUNT ( * ) col2, 64 * + COUNT ( + 29 ) * SUM ( - 78 ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
134784

query I rowsort
SELECT DISTINCT ( - - 38 ) AS col1 FROM tab1
----
38

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 * col1 NOT BETWEEN + col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 21 + + + col2 col2 FROM tab0
----
-11
26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL - COUNT( * ) + - COUNT( ( + col1 ) ) + + + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL - COUNT ( * ) + - COUNT ( ( + col1 ) ) + + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT col1 + + 64 + - col0 FROM tab1 AS cor0
----
-16
20
27

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4102
SELECT + CAST( NULL AS SIGNED ) + + - MIN( col1 ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4102
SELECT + CAST ( NULL AS INTEGER ) + + - MIN ( col1 ) col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4103
SELECT DISTINCT - CAST( + - COUNT( * ) AS SIGNED ) + COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - CAST ( + - COUNT ( * ) AS INTEGER ) + COUNT ( * ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT + col1 * - col0 + - col0, + col1 * col2 AS col0 FROM tab1 AS cor0
----
-4368
3196
-510
295
-765
1344

query I rowsort
SELECT - col1 + - - 55 + + col2 FROM tab2 AS cor0
----
18
27
46

query III rowsort
SELECT * FROM tab2 WHERE - col2 * + col0 IS NULL
----

query II rowsort
SELECT ALL col0, + col1 + - + col2 FROM tab2
----
46
28
64
37
75
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 3 col0 FROM tab2, tab2 AS cor0
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query II rowsort
SELECT DISTINCT 2 AS col2, + col0 AS col1 FROM tab1
----
2
51
2
85
2
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 56 + 86 col2 FROM tab2 AS cor0
----
142
142
142

onlyif mysql # DIV for integer division: 
query I rowsort label-4111
SELECT + + col2 DIV - - 46 FROM tab1 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4111
SELECT + + col2 / - - 46 FROM tab1 AS cor0
----
1
1
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - 83 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 23 ) col1 FROM tab1 AS cor0
----
23
23
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4114
SELECT DISTINCT + + 17 * ( - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4114
SELECT DISTINCT + + 17 * ( - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-51

query II rowsort
SELECT ALL - col2 * - col0 * - + col1 * + col1 * - ( - ( 28 ) ) + col2, - col0 AS col2 FROM tab0 cor0
----
-10742750
-87
-129514093
-15
-268785
-97

query I rowsort
SELECT - col0 + ( + col2 ) FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4117
SELECT ALL - COUNT( DISTINCT col1 ) + SUM( + col0 ) * CAST( NULL AS DECIMAL ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4117
SELECT ALL - COUNT ( DISTINCT col1 ) + SUM ( + col0 ) * CAST ( NULL AS REAL ) col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT + MAX( ALL 69 ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-4118
SELECT + MAX ( ALL 69 ) AS col2 FROM tab1
----
69

query III rowsort
SELECT ALL * FROM tab1 WHERE 83 / col2 NOT IN ( - 45 * col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 54 + 1 * col1 FROM tab0 WHERE NOT - 24 * + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT + ( CAST( col1 AS SIGNED ) ) FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4121
SELECT DISTINCT + ( CAST ( col1 AS INTEGER ) ) FROM tab2
----
51
67
77

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 91 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( + 94 ) * + col2 - 31 FROM tab2 WHERE NOT NULL IN ( col0 )
----

query I rowsort
SELECT col2 - - ( + col1 + - col0 * - col0 ) FROM tab0
----
353
7600
9509

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 NOT IN ( col1 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4126
SELECT * FROM tab1 WHERE + col2 IN ( + CAST( NULL AS SIGNED ) * 54 )
----

skipif mysql # not compatible
query III rowsort label-4126
SELECT * FROM tab1 WHERE + col2 IN ( + CAST ( NULL AS INTEGER ) * 54 )
----

query I rowsort
SELECT 70 - col1 FROM tab2
----
-7
19
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 28 <> 81 + + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL COUNT( * ) - SUM( + col2 ) AS col2 FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL COUNT ( * ) - SUM ( + col2 ) AS col2 FROM tab1
----
-220

query I rowsort
SELECT DISTINCT + ( col1 ) + 80 AS col0 FROM tab1 WHERE 13 IS NOT NULL
----
127
85
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 < 48
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 73 + - col0 FROM tab0
----
-14
-24
58

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( col2 ) + 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col2 ) FROM tab0 WHERE NOT ( + col1 * col2 ) IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab2 WHERE + 6 = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 + col1 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * + 22 + + 82 col2 FROM tab1 AS cor0
----
1204
1952
2084

query I rowsort
SELECT DISTINCT col1 + - 64 AS col2 FROM tab1 AS cor0
----
-17
-50
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-4139
SELECT DISTINCT + COUNT( * ) + - MIN( - col1 ) FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4139
SELECT DISTINCT + COUNT ( * ) + - MIN ( - col1 ) FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT DISTINCT ( + 11 ) + - COUNT( * ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-4140
SELECT DISTINCT ( + 11 ) + - COUNT ( * ) FROM tab0 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4141
SELECT DISTINCT + col0 * - col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 0 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT + col0 * - col0 FROM tab2 AS cor0 WHERE ( NULL ) IN ( 0 * CAST ( NULL AS INTEGER ) )
----

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab2 WHERE ( NULL ) >= + 31
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4143
SELECT col1 DIV col2 + - col0 DIV col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4143
SELECT col1 / col2 + - col0 / col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4144
SELECT + col1 col0 FROM tab1 WHERE NULL BETWEEN ( + CAST( - col1 AS SIGNED ) ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4144
SELECT + col1 col0 FROM tab1 WHERE NULL BETWEEN ( + CAST ( - col1 AS INTEGER ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4145
SELECT ALL COUNT( * ) + + 57 FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-4145
SELECT ALL COUNT ( * ) + + 57 FROM tab1
----
60

query I rowsort
SELECT col1 FROM tab2 WHERE - col2 > + 32 * + 11 + - 55
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 >= + 5
----

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT NULL IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4149
SELECT DISTINCT - 3 + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4149
SELECT DISTINCT - 3 + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 + + col0 * - 90 AS col1 FROM tab0 AS cor0
----
-1431
-7851
-8731

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 BETWEEN 75 * - col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN 19 AND ( NULL )
----

query I rowsort
SELECT ALL - + 56 * + col1 + col2 AS col2 FROM tab2 AS cor0
----
-2833
-3694
-4272

query I rowsort
SELECT DISTINCT 91 + col1 FROM tab0 AS cor0 WHERE ( ( - 57 ) ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4155
SELECT * FROM tab1 cor0 WHERE CAST( + 4 AS SIGNED ) + + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4155
SELECT * FROM tab1 cor0 WHERE CAST ( + 4 AS INTEGER ) + + col1 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 51 + 15 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4157
SELECT + + CAST( + 55 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-4157
SELECT + + CAST ( + 55 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
55
55
55

query I rowsort
SELECT col0 FROM tab1 cor0 WHERE 85 NOT IN ( + 10 )
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4159
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * + COUNT( * ) - COUNT( * ) DIV + 92 col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4159
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * + COUNT ( * ) - COUNT ( * ) / + 92 col1 FROM tab2
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4160
SELECT + COUNT( * ) * - ( - COUNT( + col2 ) ) - + 74 AS col2 FROM tab1
----
-65

skipif mysql # not compatible
query I rowsort label-4160
SELECT + COUNT ( * ) * - ( - COUNT ( + col2 ) ) - + 74 AS col2 FROM tab1
----
-65

onlyif mysql # DIV for integer division: 
query I rowsort label-4161
SELECT ALL - col2 DIV - + col0 + 34 AS col1 FROM tab2
----
34
34
34

skipif mysql # not compatible
query I rowsort label-4161
SELECT ALL - col2 / - + col0 + 34 AS col1 FROM tab2
----
34
34
34

query I rowsort
SELECT ( + 12 ) - + col1 * - col1 AS col0 FROM tab1
----
208
2221
37

query I rowsort
SELECT - col1 - + + 33 AS col2 FROM tab0
----
-114
-34
-54

query I rowsort
SELECT 67 * + 56 - + col2 AS col1 FROM tab2
----
3694
3712
3729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - + 40 + 4 * 20 col2 FROM tab0
----
105
23
33

query I rowsort
SELECT 37 + + + col1 * col1 AS col1 FROM tab2
----
2638
4526
5966

query I rowsort
SELECT DISTINCT 75 * ( 68 ) AS col1 FROM tab1 WHERE NOT + 38 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 5 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 + + col2 * + 80 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4170
SELECT ALL 37 * + COUNT( * ) AS col0 FROM tab0 cor0
----
111

skipif mysql # not compatible
query I rowsort label-4170
SELECT ALL 37 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 73 col2 FROM tab2 AS cor0 WHERE NOT ( 9 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4172
SELECT ALL COUNT( * ) FROM tab2 cor0 WHERE NOT ( col2 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4172
SELECT ALL COUNT ( * ) FROM tab2 cor0 WHERE NOT ( col2 ) IS NULL
----
3

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE NOT ( 85 * 5 ) IS NULL
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4174
SELECT - 33 / - 86 * + CAST( NULL AS SIGNED ) * - COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4174
SELECT - 33 / - 86 * + CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4175
SELECT + 64 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-4175
SELECT + 64 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
55

onlyif mysql # aggregate syntax: 
query II rowsort label-4176
SELECT 67 AS col2, MAX( ALL + - ( - col2 ) ) FROM tab2
----
67
58

skipif mysql # not compatible
query II rowsort label-4176
SELECT 67 AS col2, MAX ( ALL + - ( - col2 ) ) FROM tab2
----
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL - CAST( NULL AS SIGNED ) * 39 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - CAST ( NULL AS INTEGER ) * 39 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * + - col0 FROM tab1 AS cor0
----
2601
7225
8281

query I rowsort
SELECT ( - + 91 ) FROM tab2 AS cor0
----
-91
-91
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col2 ) / + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4181
SELECT DISTINCT + MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4181
SELECT DISTINCT + MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT col1 * + CAST( + col2 AS SIGNED ) * col1 - col1 FROM tab1 AS cor0
----
1470
150165
18802

skipif mysql # not compatible
query I rowsort label-4182
SELECT col1 * + CAST ( + col2 AS INTEGER ) * col1 - col1 FROM tab1 AS cor0
----
1470
150165
18802

onlyif mysql # DIV for integer division: 
query I rowsort label-4183
SELECT ALL + - col2 + col1 - - col0 + col2 DIV col1 FROM tab2 AS cor0
----
101
74
84

skipif mysql # not compatible
query I rowsort label-4183
SELECT ALL + - col2 + col1 - - col0 + col2 / col1 FROM tab2 AS cor0
----
101
74
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * 65 * + col0 * - ( + col0 ) + col2 col0 FROM tab1 AS cor0
----
39918184
48982183
8622411

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT - COUNT( * ) * - 4 * COUNT( * ) AS col1 FROM tab1
----
36

skipif mysql # not compatible
query I rowsort label-4185
SELECT - COUNT ( * ) * - 4 * COUNT ( * ) AS col1 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT + 0 + + + COUNT( * ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4186
SELECT + 0 + + + COUNT ( * ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4187
SELECT ALL + CAST( NULL AS SIGNED ) / + 70 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4187
SELECT ALL + CAST ( NULL AS INTEGER ) / + 70 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE ( col0 ) IS NULL AND NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4189
SELECT DISTINCT 65 * + 97 - COUNT( * ) AS col2 FROM tab2 WHERE NOT ( - + col0 ) NOT BETWEEN ( col2 ) AND 27 * col1
----
6305

skipif mysql # not compatible
query I rowsort label-4189
SELECT DISTINCT 65 * + 97 - COUNT ( * ) AS col2 FROM tab2 WHERE NOT ( - + col0 ) NOT BETWEEN ( col2 ) AND 27 * col1
----
6305

query I rowsort
SELECT DISTINCT - ( col2 ) FROM tab0 WHERE + 79 IS NOT NULL
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + col2 * - 48 col1 FROM tab2 AS cor0
----
-1053
-1843
-2717

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 BETWEEN ( - - col2 * - - 40 * 27 + - 34 ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 cor0 WHERE NOT 23 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4194
SELECT DISTINCT COUNT( * ) * 50 col1 FROM tab1
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4194
SELECT DISTINCT COUNT ( * ) * 50 col1 FROM tab1
----
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 52 + - ( - + 20 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 906b63c9adb7d9ac7355cab71a25fc49

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT COUNT( * ) * - - 85 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
765

skipif mysql # not compatible
query I rowsort label-4196
SELECT COUNT ( * ) * - - 85 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4197
SELECT ( 43 ) - - - COUNT( * ) AS col0 FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-4197
SELECT ( 43 ) - - - COUNT ( * ) AS col0 FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT DISTINCT 6 + + - COUNT( ALL col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4198
SELECT DISTINCT 6 + + - COUNT ( ALL col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4199
SELECT + CAST( NULL AS SIGNED ) + ( + + 48 ) AS col2, - ( + 33 ) * col2 + col0 AS col1 FROM tab1 AS cor0
----
NULL
-1862
NULL
-2153
NULL
-3117

skipif mysql # not compatible
query II rowsort label-4199
SELECT + CAST ( NULL AS INTEGER ) + ( + + 48 ) AS col2, - ( + 33 ) * col2 + col0 AS col1 FROM tab1 AS cor0
----
NULL
-1862
NULL
-2153
NULL
-3117

onlyif mysql # aggregate syntax: 
query I rowsort label-4200
SELECT + COUNT( ALL + - col2 ) + COUNT( 9 ) AS col0 FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4200
SELECT + COUNT ( ALL + - col2 ) + COUNT ( 9 ) AS col0 FROM tab0 cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-4201
SELECT - COUNT( * ) + + 33 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-4201
SELECT - COUNT ( * ) + + 33 FROM tab0 AS cor0
----
30

query I rowsort
SELECT DISTINCT col2 + 54 FROM tab2 AS cor0
----
112
77
94

onlyif mysql # DIV for integer division: 
query II rowsort label-4203
SELECT DISTINCT + + 51, + col2 DIV + + col2 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
1

skipif mysql # not compatible
query II rowsort label-4203
SELECT DISTINCT + + 51, + col2 / + + col2 AS col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4204
SELECT ALL + CAST( NULL AS SIGNED ) - - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4204
SELECT ALL + CAST ( NULL AS INTEGER ) - - COUNT ( * ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * + + ( - + col2 ) NOT BETWEEN + 64 * + col2 AND + 63
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 53 + + + 97 col0 FROM tab1 AS cor0
----
150
150
150

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4207
SELECT * FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <= col2 + + col1
----

skipif mysql # not compatible
query III rowsort label-4207
SELECT * FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <= col2 + + col1
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4209
SELECT ALL col2 DIV - 74 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4209
SELECT ALL col2 / - 74 AS col2 FROM tab1
----
-1
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4210
SELECT DISTINCT - - col2 / + col1 + - col1 + 64 / col1 / CAST( col2 * + 29 + 27 * col0 AS DECIMAL ) AS col2 FROM tab1 WHERE 7 > NULL
----

skipif mysql # not compatible
query I rowsort label-4210
SELECT DISTINCT - - col2 / + col1 + - col1 + 64 / col1 / CAST ( col2 * + 29 + 27 * col0 AS REAL ) AS col2 FROM tab1 WHERE 7 > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - - ( + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 86 col0 FROM tab1
----
1204
4042
430

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4213
SELECT DISTINCT CAST( + - 22 AS SIGNED ) AS col2 FROM tab0
----
-22

skipif mysql # not compatible
query I rowsort label-4213
SELECT DISTINCT CAST ( + - 22 AS INTEGER ) AS col2 FROM tab0
----
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4214
SELECT + 30 * - - col1 + - ( - - col0 ) + CAST( NULL AS SIGNED ) / + col0 + 75 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4214
SELECT + 30 * - - col1 + - ( - - col0 ) + CAST ( NULL AS INTEGER ) / + col0 + 75 * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4215
SELECT DISTINCT SUM( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
156

query II rowsort
SELECT + col2 AS col0, + col0 AS col0 FROM tab1 AS cor0
----
59
85
68
91
96
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT DISTINCT COUNT( + col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4217
SELECT DISTINCT COUNT ( + col2 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 22 * ( col1 ) * + - col0 + + + ( + 52 ) + - 18 NOT BETWEEN - col2 * 3 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4219
SELECT * FROM tab0 WHERE NOT + + CAST( col1 AS SIGNED ) NOT IN ( - col0 * - col2 )
----

skipif mysql # not compatible
query III rowsort label-4219
SELECT * FROM tab0 WHERE NOT + + CAST ( col1 AS INTEGER ) NOT IN ( - col0 * - col2 )
----

query I rowsort
SELECT - - 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT + 76 + - col2 * + 20 FROM tab2
----
-1084
-384
-724

onlyif mysql # aggregate syntax: 
query I rowsort label-4222
SELECT ALL + 57 + - ( 7 ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-4222
SELECT ALL + 57 + - ( 7 ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-4223
SELECT + 79 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-4223
SELECT + 79 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 42 col0 FROM tab1 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4225
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( + CAST( + col0 AS SIGNED ) ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4225
SELECT * FROM tab1 AS cor0 WHERE ( NOT ( + CAST ( + col0 AS INTEGER ) ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4226
SELECT DISTINCT 82 * - SUM( 75 ) AS col0 FROM tab2
----
-18450

skipif mysql # not compatible
query I rowsort label-4226
SELECT DISTINCT 82 * - SUM ( 75 ) AS col0 FROM tab2
----
-18450

query I rowsort
SELECT + 75 - col1 FROM tab0 WHERE - col1 NOT BETWEEN ( - 38 / - - col2 ) AND col0
----
-6
54
74

onlyif mysql # DIV for integer division: 
query I rowsort label-4228
SELECT col2 DIV + 74 AS col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4228
SELECT col2 / + 74 AS col2 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE - col2 - - col0 + col1 + col1 * - ( col0 ) = + col1
----

query I rowsort
SELECT DISTINCT col0 * + ( 54 ) * - + col0 FROM tab0
----
-12150
-408726
-508086

onlyif mysql # DIV for integer division: 
query I rowsort label-4231
SELECT - 15 DIV + col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-4231
SELECT - 15 / + col1 FROM tab1
----
-1
-3
0

query I rowsort
SELECT DISTINCT col1 + + 73 AS col2 FROM tab2
----
124
140
150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 76 ) col1 FROM tab0
----
76
76
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE NULL <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col1, col0 AS col1 FROM tab1
----
-14
51
-47
91
-5
85

query I rowsort
SELECT ALL col1 + - 19 AS col2 FROM tab1
----
-14
-5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4237
SELECT - - MIN( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4237
SELECT - - MIN ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT 90 * + - 50 FROM tab0 cor0
----
-4500

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - ( + + 98 ) + + 84 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col2 * + col0 IN ( + 23 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4241
SELECT DISTINCT col0 DIV - - ( col0 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-4241
SELECT DISTINCT col0 / - - ( col0 ) AS col1 FROM tab2
----
1

query II rowsort
SELECT DISTINCT - col2 + - - col1, + 2 AS col0 FROM tab1 cor0
----
-21
2
-54
2
-82
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4243
SELECT + 32 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4243
SELECT + 32 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - 26 ) FROM tab2 AS cor0
----
-26

onlyif mysql # DIV for integer division: 
query I rowsort label-4245
SELECT + col1 DIV 47 * + + col0 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-4245
SELECT + col1 / 47 * + + col0 FROM tab0
----
0
0
15

query I rowsort
SELECT DISTINCT + 88 * - 92 AS col1 FROM tab1
----
-8096

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT ALL - COUNT( - 94 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4247
SELECT ALL - COUNT ( - 94 ) FROM tab2
----
-3

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT + - col2 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE NOT + - col2 = NULL
----

query II rowsort
SELECT - 82 AS col1, col0 * + + col1 AS col2 FROM tab1
----
-82
425
-82
4277
-82
714

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT DISTINCT - col0 DIV col1 + + col1 FROM tab1 AS cor0
----
-12
11
46

skipif mysql # not compatible
query I rowsort label-4251
SELECT DISTINCT - col0 / col1 + + col1 FROM tab1 AS cor0
----
-12
11
46

query I rowsort
SELECT ALL - 81 + - - col2 AS col0 FROM tab0 AS cor0
----
-34
-71
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 61 col2, col2 AS col1 FROM tab0 cor0
----
61
10
61
47
61
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4254
SELECT + COUNT( DISTINCT + col2 ) col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4254
SELECT + COUNT ( DISTINCT + col2 ) col2 FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4255
SELECT ALL + - 63 / - CAST( + 48 AS SIGNED ) * - CAST( NULL AS SIGNED ) - 12 + + col2 * - col1 * col0 * + col0 * col0 + 29 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + - 63 / - CAST ( + 48 AS INTEGER ) * - CAST ( NULL AS INTEGER ) - 12 + + col2 * - col1 * col0 * + col0 * col0 + 29 * col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 12 * 3 FROM tab1 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4257
SELECT - 8 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4257
SELECT - 8 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4258
SELECT DISTINCT + - MAX( - col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4258
SELECT DISTINCT + - MAX ( - col0 ) AS col2 FROM tab1 AS cor0
----
51

query I rowsort
SELECT DISTINCT 52 * - 96 FROM tab0 WHERE NOT ( ( NOT ( NOT ( NULL ) IS NOT NULL ) ) )
----
-4992

query II rowsort
SELECT DISTINCT 26 + col2, col2 + + col0 AS col0 FROM tab0
----
125
196
36
97
73
62

query I rowsort
SELECT DISTINCT col0 + 45 FROM tab0
----
132
142
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4262
SELECT col1 + - + col1 * + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4262
SELECT col1 + - + col1 * + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col0 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 - - col0 AS col2 FROM tab1 WHERE NOT col0 + + 98 + - col1 = - col1 * - col2 AND NOT NULL NOT IN ( 89 * - col2 * + 49 )
----

query I rowsort
SELECT - col2 + + + col2 AS col2 FROM tab0 WHERE - + 2 IS NOT NULL
----
0
0
0

query I rowsort
SELECT col2 * - 16 * - col1 AS col2 FROM tab0 cor0
----
1584
3360
60912

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4267
SELECT ALL ( - CAST( + 66 AS SIGNED ) ) FROM tab1 AS cor0
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL ( - CAST ( + 66 AS INTEGER ) ) FROM tab1 AS cor0
----
-66
-66
-66

query I rowsort
SELECT - col1 * + + 54 FROM tab1 AS cor0
----
-2538
-270
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT - - 54 * + - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
-162

skipif mysql # not compatible
query I rowsort label-4269
SELECT - - 54 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT ( NOT + col1 IS NOT NULL )
----
-162

query II rowsort
SELECT + col1 * + 10 * col1 * + - ( - + col0 ) + + col1 * - col0 + col0 AS col1, col1 FROM tab2 AS cor0
----
1194160
51
3361800
67
3789696
77

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NOT - ( ( + 54 ) ) = - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4272
SELECT ALL + COUNT( * ) * - + ( + COUNT( * ) ) AS col2 FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4272
SELECT ALL + COUNT ( * ) * - + ( + COUNT ( * ) ) AS col2 FROM tab0 cor0
----
-9

query I rowsort
SELECT DISTINCT 17 * - + 38 FROM tab2
----
-646

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 * col0 + + - 59 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE 53 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT + MIN( DISTINCT col1 ) col1 FROM tab2
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT + MIN ( DISTINCT col1 ) col1 FROM tab2
----
51

query I rowsort
SELECT DISTINCT + col0 * - 71 FROM tab1 AS cor0
----
-3621
-6035
-6461

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4278
SELECT DISTINCT + CAST( + 94 AS SIGNED ) * + col2 col1 FROM tab1 AS cor0
----
5546
6392
9024

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4278
SELECT DISTINCT + CAST ( + 94 AS INTEGER ) * + col2 col1 FROM tab1 AS cor0
----
5546
6392
9024

onlyif mysql # DIV for integer division: 
query I rowsort label-4279
SELECT ALL - col1 DIV - - col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4279
SELECT ALL - col1 / - - col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT DISTINCT 85 * + 64 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
5440

onlyif mysql # aggregate syntax: 
query I rowsort label-4281
SELECT DISTINCT COUNT( - 39 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT COUNT ( - 39 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL - ( + col0 ) + - col1 FROM tab0
----
-108
-96
-98

query I rowsort
SELECT ALL + 3 + - 9 * 71 + + col2 FROM tab2 AS cor0
----
-578
-596
-613

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT DISTINCT CAST( NULL AS SIGNED ) + - 3 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4284
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - 3 col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4285
SELECT ALL MAX( DISTINCT + ( col2 ) ) + - COUNT( * ) col2 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4285
SELECT ALL MAX ( DISTINCT + ( col2 ) ) + - COUNT ( * ) col2 FROM tab2 AS cor0
----
55

query II rowsort
SELECT DISTINCT + + col1 + + - col2 + + col1 AS col1, 62 AS col2 FROM tab1 AS cor0
----
-49
62
-68
62
26
62

query I rowsort
SELECT ALL - ( + col1 ) FROM tab1 AS cor0 WHERE - col0 <> - col1 - + + col0 + + - col0 * - - col2
----
-14
-47
-5

query I rowsort
SELECT - ( + col0 ) FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL IN ( + 68 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col2 FROM tab0 AS cor0 WHERE ( + 54 ) IS NOT NULL
----
15
15
87
87
97
97

query I rowsort
SELECT DISTINCT col1 + - 25 FROM tab2
----
26
42
52

query I rowsort
SELECT AVG ( - 3 ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL COUNT( * ) * + MAX( DISTINCT - 97 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT - 97 ) AS col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4294
SELECT ALL + 66 * + CAST( NULL AS SIGNED ) + ( + ( col2 ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4294
SELECT ALL + 66 * + CAST ( NULL AS INTEGER ) + ( + ( col2 ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT - col0 * - 67, + col0 FROM tab1
----
3417
51
5695
85
6097
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 / col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( 76 ) NOT IN ( col2, 55, - + col0 + col0, col0, - col1, - - col1 )
----

query I rowsort
SELECT ALL - ( col2 ) * 13 FROM tab2 cor0
----
-299
-520
-754

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - 45 BETWEEN - col0 AND col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4300
SELECT + col1 / - + CAST( NULL AS SIGNED ) + + 25 * + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4300
SELECT + col1 / - + CAST ( NULL AS INTEGER ) + + 25 * + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + ( + + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 93 AS col2 FROM tab0 WHERE NOT + col2 <> + + 26
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

skipif mysql # not compatible
query I rowsort label-4303
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT DISTINCT + - 73 * - - col2 FROM tab1 AS cor0
----
-4307
-4964
-7008

onlyif mysql # aggregate syntax: 
query I rowsort label-4305
SELECT DISTINCT - COUNT( ( + 41 ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4305
SELECT DISTINCT - COUNT ( ( + 41 ) ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4306
SELECT * FROM tab2 WHERE + 2 + + ( CAST( - col1 AS SIGNED ) ) * - + col0 * - 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4306
SELECT * FROM tab2 WHERE + 2 + + ( CAST ( - col1 AS INTEGER ) ) * - + col0 * - 25 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 AS col2 FROM tab0 AS cor0 WHERE 8 IS NOT NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4309
SELECT - SUM( + 17 ) + + 97 * - COUNT( 47 ) + + 67 FROM tab0 AS cor0
----
-275

skipif mysql # not compatible
query I rowsort label-4309
SELECT - SUM ( + 17 ) + + 97 * - COUNT ( 47 ) + + 67 FROM tab0 AS cor0
----
-275

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4310
SELECT + - CAST( NULL AS SIGNED ) + - COUNT( * ) * + - COUNT( * ) + + COUNT( + col2 ) + 15 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4310
SELECT + - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + - COUNT ( * ) + + COUNT ( + col2 ) + 15 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT - - ( - 45 ) + + COUNT( * ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4311
SELECT - - ( - 45 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4312
SELECT - + MIN( ALL 35 ) / + + 28 AS col0, 58 FROM tab1 AS cor0 WHERE - 46 IS NULL
----
NULL
58

skipif mysql # not compatible
query II rowsort label-4312
SELECT - + MIN ( ALL 35 ) / + + 28 AS col0, 58 FROM tab1 AS cor0 WHERE - 46 IS NULL
----
NULL
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4313
SELECT ALL - COUNT( * ) * 56 DIV COUNT( + col1 ) * + 39 + + 91 + - - 60 AS col0 FROM tab1 AS cor0
----
-2033

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - COUNT ( * ) * 56 / COUNT ( + col1 ) * + 39 + + 91 + - - 60 AS col0 FROM tab1 AS cor0
----
-2033

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4314
SELECT ALL - SUM( + CAST( - ( + - col2 ) AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - SUM ( + CAST ( - ( + - col2 ) AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + 18 - + 46 * ( col2 ) FROM tab2
----
-1040
-1822
-2650

query I rowsort
SELECT - col1 + - + col2 AS col0 FROM tab0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4317
SELECT ALL + MAX( ALL - + col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4317
SELECT ALL + MAX ( ALL - + col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - + col1 - - - 8 FROM tab2 AS cor0
----
-59
-75
-85

query I rowsort
SELECT DISTINCT + 43 + + 90 + - col1 + - - col1 + + + 76 FROM tab2 AS cor0
----
209

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 <= - + col2 - + - col2 + - - col0 / - 34 + - 44
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - MAX( ALL 43 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-4321
SELECT - MAX ( ALL 43 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT DISTINCT + - COUNT( * ) AS col1 FROM tab1 WHERE ( ( + 31 < NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-4322
SELECT DISTINCT + - COUNT ( * ) AS col1 FROM tab1 WHERE ( ( + 31 < NULL ) )
----
0

query I rowsort
SELECT - - 22 * col1 FROM tab1 AS cor0
----
1034
110
308

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT + ( + - COUNT( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4324
SELECT + ( + - COUNT ( - col0 ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4326
SELECT 7 DIV + + 5 + + - col1 FROM tab0 cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-4326
SELECT 7 / + + 5 + + - col1 FROM tab0 cor0
----
-20
-80
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4327
SELECT + CAST( 46 AS SIGNED ) DIV COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4327
SELECT + CAST ( 46 AS INTEGER ) / COUNT ( * ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col0 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4329
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 21 * + 15 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4329
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM tab0 AS cor0 WHERE NOT 21 * + 15 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4330
SELECT ALL + + CAST( 40 AS SIGNED ) AS col0, MIN( - + col0 ) FROM tab1 AS cor0
----
40
-91

skipif mysql # not compatible
query II rowsort label-4330
SELECT ALL + + CAST ( 40 AS INTEGER ) AS col0, MIN ( - + col0 ) FROM tab1 AS cor0
----
40
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT ALL + COUNT( * ) * + 6 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-4331
SELECT ALL + COUNT ( * ) * + 6 FROM tab0
----
18

query I rowsort
SELECT ALL - col2 * col1 FROM tab0 WHERE - + col1 NOT IN ( - col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + - + col1 < 56
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4334
SELECT MAX( DISTINCT - + ( + col0 ) ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4334
SELECT MAX ( DISTINCT - + ( + col0 ) ) FROM tab1
----
-51

query II rowsort
SELECT ALL col0 + - col0, col2 AS col0 FROM tab1
----
0
59
0
68
0
96

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 < - 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT ALL - COUNT( * ) * - 84 FROM tab1
----
252

skipif mysql # not compatible
query I rowsort label-4337
SELECT ALL - COUNT ( * ) * - 84 FROM tab1
----
252

query I rowsort
SELECT - 59 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - ( + + col0 ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4340
SELECT DISTINCT - col1 / - CAST( NULL AS SIGNED ) * - 65 AS col1 FROM tab0 AS cor0 WHERE ( + 7 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4340
SELECT DISTINCT - col1 / - CAST ( NULL AS INTEGER ) * - 65 AS col1 FROM tab0 AS cor0 WHERE ( + 7 ) IS NULL
----

query II rowsort
SELECT + - col2 AS col1, - col2 AS col2 FROM tab1 AS cor0
----
-59
-59
-68
-68
-96
-96

query I rowsort
SELECT ALL + col1 + + - ( + + col0 ) FROM tab2 AS cor0
----
-8
13
5

query I rowsort
SELECT 27 - - - 55 + + - 53 FROM tab2
----
-81
-81
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - ( ( 23 ) ) + + col0 * - 29 col2 FROM tab1
----
-1406
-2429
-2594

onlyif mysql # aggregate syntax: 
query I rowsort label-4345
SELECT 20 - + + 29 + + + SUM( ALL + + 5 ) + 17 * COUNT( * ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-4345
SELECT 20 - + + 29 + + + SUM ( ALL + + 5 ) + 17 * COUNT ( * ) FROM tab2
----
57

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - 6 AND NULL
----

query I rowsort
SELECT - col1 - - + 94 AS col0 FROM tab2
----
17
27
43

onlyif mysql # aggregate syntax: 
query I rowsort label-4348
SELECT + COUNT( ALL 25 ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-4348
SELECT + COUNT ( ALL 25 ) + + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4349
SELECT ALL CAST( NULL AS DECIMAL ) / - + 92 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL CAST ( NULL AS REAL ) / - + 92 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 9 + + 69 * 94 + + col0, + col2 * col0 col2 FROM tab2
----
6541
1058
6559
2560
6570
4350

query II rowsort
SELECT DISTINCT - ( col1 ) AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4352
SELECT * FROM tab1 WHERE NOT NULL IN ( 40 * CAST( col2 AS SIGNED ), - col1, - col2 * - - col2 * 7, + ( + - 95 ), col0 )
----

skipif mysql # not compatible
query III rowsort label-4352
SELECT * FROM tab1 WHERE NOT NULL IN ( 40 * CAST ( col2 AS INTEGER ), - col1, - col2 * - - col2 * 7, + ( + - 95 ), col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4353
SELECT DISTINCT - CAST( - + 72 AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

skipif mysql # not compatible
query I rowsort label-4353
SELECT DISTINCT - CAST ( - + 72 AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
72

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 67 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 98 ) FROM tab2 AS cor0
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4356
SELECT + CAST( + col2 AS SIGNED ) * + 93 FROM tab2 AS cor0
----
2139
3720
5394

skipif mysql # not compatible
query I rowsort label-4356
SELECT + CAST ( + col2 AS INTEGER ) * + 93 FROM tab2 AS cor0
----
2139
3720
5394

query I rowsort
SELECT - - 22 * col1 * col2 FROM tab0 cor0
----
2178
4620
83754

query I rowsort
SELECT - ( + - col0 ) * + - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

query I rowsort
SELECT ALL - - col1 * 24 * - col1 * - 66 AS col1 FROM tab0 AS cor0
----
10392624
1584
698544

onlyif mysql # aggregate syntax: 
query I rowsort label-4360
SELECT SUM( DISTINCT - 24 ) AS col2 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-4360
SELECT SUM ( DISTINCT - 24 ) AS col2 FROM tab2
----
-24

query I rowsort
SELECT DISTINCT col2 * - ( + + col0 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + - col1 + + 50 FROM tab0 WHERE - 41 * col2 * - - 68 IS NOT NULL
----
-31
29
49

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT DISTINCT SUM( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-4363
SELECT DISTINCT SUM ( DISTINCT col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

query I rowsort
SELECT + - 93 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

onlyif mysql # aggregate syntax: 
query I rowsort label-4365
SELECT ALL + - 75 * - COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
675

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + - 75 * - COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
675

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT ALL MIN( + 32 ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-4366
SELECT ALL MIN ( + 32 ) AS col0 FROM tab0
----
32

query I rowsort
SELECT + col2 + - + 1 AS col2 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4368
SELECT + - col2 + + col2 DIV + col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-4368
SELECT + - col2 + + col2 / + col2 FROM tab1 AS cor0
----
-58
-67
-95

query II rowsort
SELECT + 38 + + + col1 AS col2, col0 FROM tab1 AS cor0
----
43
85
52
51
85
91

query I rowsort
SELECT - + ( - col2 ) + - col0 AS col1 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT ALL + col1 * - + 57 FROM tab1
----
-2679
-285
-798

query I rowsort
SELECT ALL + 22 - + - 17 FROM tab1
----
39
39
39

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4373
SELECT - CAST( COUNT( * ) AS SIGNED ) col1 FROM tab2 WHERE + col1 * - + CAST( NULL AS SIGNED ) + - col1 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4373
SELECT - CAST ( COUNT ( * ) AS INTEGER ) col1 FROM tab2 WHERE + col1 * - + CAST ( NULL AS INTEGER ) + - col1 IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4374
SELECT DISTINCT + COUNT( * ) - - - 57 AS col1 FROM tab1
----
-54

skipif mysql # not compatible
query I rowsort label-4374
SELECT DISTINCT + COUNT ( * ) - - - 57 AS col1 FROM tab1
----
-54

query I rowsort
SELECT 10 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4376
SELECT 50 * COUNT( * ) AS col0 FROM tab2
----
150

skipif mysql # not compatible
query I rowsort label-4376
SELECT 50 * COUNT ( * ) AS col0 FROM tab2
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-4377
SELECT + + COUNT( DISTINCT 18 ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4377
SELECT + + COUNT ( DISTINCT 18 ) col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + + 54 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 IS NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL >= 21 )
----

query II rowsort
SELECT DISTINCT + 28 AS col1, + ( + + col2 ) FROM tab2 cor0
----
28
23
28
40
28
58

query I rowsort
SELECT col0 / + col0 AS col1 FROM tab2 cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4382
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 >= + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4382
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 >= + - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4383
SELECT ALL MAX( DISTINCT + - ( ( + ( + col2 ) ) ) ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4383
SELECT ALL MAX ( DISTINCT + - ( ( + ( + col2 ) ) ) ) AS col1 FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 65 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + 61 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4386
SELECT ALL - 50 DIV + col0 * - 23 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - 50 / + col0 * - 23 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 * + + col2 AS col1 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT + 44 AS col2 FROM tab1 cor0
----
44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 20 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col0 * ( + + 79 ) AS col2 FROM tab2 AS cor0
----
3634
5056
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT ALL MAX( ALL 20 ) + + 2 FROM tab0 cor0
----
22

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL MAX ( ALL 20 ) + + 2 FROM tab0 cor0
----
22

query II rowsort
SELECT DISTINCT col1 AS col0, col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + + col0 + + 84 FROM tab0 AS cor0
----
171
181
99

query I rowsort
SELECT ALL - col0 * - 22 + - col0 FROM tab2 AS cor0
----
1344
1575
966

onlyif mysql # DIV for integer division: 
query I rowsort label-4396
SELECT col2 DIV - 12 FROM tab1
----
-4
-5
-8

skipif mysql # not compatible
query I rowsort label-4396
SELECT col2 / - 12 FROM tab1
----
-4
-5
-8

query II rowsort
SELECT - 75, + col2 AS col1 FROM tab1
----
-75
59
-75
68
-75
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4398
SELECT + 18 * - CAST( + COUNT( * ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-4398
SELECT + 18 * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
-162

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 19 ) col2 FROM tab1
----
19
19
19

onlyif mysql # DIV for integer division: 
query I rowsort label-4400
SELECT DISTINCT 5 DIV - col0 + 87 * - col0 + - col1 FROM tab1 AS cor0
----
-4451
-7400
-7964

skipif mysql # not compatible
query I rowsort label-4400
SELECT DISTINCT 5 / - col0 + 87 * - col0 + - col1 FROM tab1 AS cor0
----
-4451
-7400
-7964

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4401
SELECT - CAST( 68 AS SIGNED ) * - + ( - - col0 ) + col1 FROM tab1
----
3482
5785
6235

skipif mysql # not compatible
query I rowsort label-4401
SELECT - CAST ( 68 AS INTEGER ) * - + ( - - col0 ) + col1 FROM tab1
----
3482
5785
6235

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT + COUNT( * ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4402
SELECT + COUNT ( * ) col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4403
SELECT ( - COUNT( * ) ) + COUNT( * ) * - CAST( NULL AS SIGNED ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4403
SELECT ( - COUNT ( * ) ) + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col0 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4404
SELECT - + COUNT( - 59 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4404
SELECT - + COUNT ( - 59 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4405
SELECT * FROM tab1 AS cor0 WHERE CAST( + + ( col2 ) AS SIGNED ) < - 4
----

skipif mysql # not compatible
query III rowsort label-4405
SELECT * FROM tab1 AS cor0 WHERE CAST ( + + ( col2 ) AS INTEGER ) < - 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4406
SELECT - COUNT( * ) * + 84 + + - COUNT( DISTINCT - 3 ) * + MIN( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 / 12 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT - COUNT ( * ) * + 84 + + - COUNT ( DISTINCT - 3 ) * + MIN ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0 WHERE col1 / 12 IS NULL
----
NULL

query II rowsort
SELECT - col1 AS col0, + col0 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 - - + col1 FROM tab1 AS cor0
----
110
115
64

query II rowsort
SELECT DISTINCT - ( + col1 ), ( 5 ) * - + 12 - - col2 AS col0 FROM tab2
----
-51
-37
-67
-2
-77
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-4410
SELECT - MIN( DISTINCT - + 75 ) AS col1 FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4410
SELECT - MIN ( DISTINCT - + 75 ) AS col1 FROM tab1
----
75

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND - - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4412
SELECT COUNT( * ) * - + 16 col1, 71 col1 FROM tab2
----
-48
71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4412
SELECT COUNT ( * ) * - + 16 col1, 71 col1 FROM tab2
----
-48
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT SUM( - col0 ) * - 75 FROM tab2
----
13875

skipif mysql # not compatible
query I rowsort label-4413
SELECT SUM ( - col0 ) * - 75 FROM tab2
----
13875

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col0 > + + col1 / + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - col1 / + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + col1 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4418
SELECT ALL COUNT( * ), + ( + COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-4418
SELECT ALL COUNT ( * ), + ( + COUNT ( * ) ) FROM tab0
----
3
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 + + 87 NOT BETWEEN NULL AND + + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + + - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4421
SELECT ALL - 1 + - - MIN( - 33 ) AS col1 FROM tab0
----
-34

skipif mysql # not compatible
query I rowsort label-4421
SELECT ALL - 1 + - - MIN ( - 33 ) AS col1 FROM tab0
----
-34

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

query II rowsort
SELECT 76 AS col1, - col1 + + col2 AS col2 FROM tab0 AS cor0
----
76
-11
76
-34
76
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4424
SELECT + COUNT( * ) * - - 5 + + + 79 + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-4424
SELECT + COUNT ( * ) * - - 5 + + + 79 + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4425
SELECT - + 83 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT - + 83 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

query I rowsort
SELECT - col0 * + 26 AS col2 FROM tab2 AS cor0
----
-1196
-1664
-1950

query I rowsort
SELECT - + col0 AS col2 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT 93 + - - col2 FROM tab0
----
103
140
192

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4429
SELECT 11 + + COUNT( * ) DIV + + 57 AS col0 FROM tab1
----
11

skipif mysql # not compatible
query I rowsort label-4429
SELECT 11 + + COUNT ( * ) / + + 57 AS col0 FROM tab1
----
11

onlyif mysql # DIV for integer division: 
query I rowsort label-4430
SELECT col2 * + + ( - 53 ) * - 74 * + col0 + - col0 - col2 DIV - 74 FROM tab2
----
10040256
17060625
4149430

skipif mysql # not compatible
query I rowsort label-4430
SELECT col2 * + + ( - 53 ) * - 74 * + col0 + - col0 - col2 / - 74 FROM tab2
----
10040256
17060625
4149430

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - MAX( DISTINCT col1 ) + - 80 AS col2 FROM tab1 AS cor0
----
-127

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - MAX ( DISTINCT col1 ) + - 80 AS col2 FROM tab1 AS cor0
----
-127

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 77 * - + 93 col0 FROM tab1 AS cor0
----
-7161
-7161
-7161

onlyif mysql # aggregate syntax: 
query I rowsort label-4433
SELECT COUNT( + 88 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4433
SELECT COUNT ( + 88 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4435
SELECT SUM( + + 27 ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4435
SELECT SUM ( + + 27 ) AS col1 FROM tab0 AS cor0
----
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 49 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-49

query I rowsort
SELECT ALL col1 * - - col2 + + + col0 FROM tab2 AS cor0 WHERE NOT - col0 * col2 = + 90 * + col0 AND ( ( 77 ) ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + + col0 + col1 col1 FROM tab0 AS cor0
----
118
143
197

query I rowsort
SELECT + + 78 + + - 78 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * - 70 + col0 AS col2 FROM tab0 AS cor0
----
-3275
-613
-6833

onlyif mysql # DIV for integer division: 
query I rowsort label-4441
SELECT ( + - col0 ) DIV + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-4441
SELECT ( + - col0 ) / + col1 AS col0 FROM tab1 cor0
----
-1
-17
-3

query I rowsort
SELECT ( + 97 ) AS col2 FROM tab0 AS cor0
----
97
97
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 78 <= 66
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4444
SELECT col1 DIV - ( - ( - 89 ) ) FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4444
SELECT col1 / - ( - ( - 89 ) ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4445
SELECT DISTINCT + COUNT( * ) col0, COUNT( * ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4445
SELECT DISTINCT + COUNT ( * ) col0, COUNT ( * ) AS col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4446
SELECT SUM( ALL + + 30 ) FROM tab0, tab2 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-4446
SELECT SUM ( ALL + + 30 ) FROM tab0, tab2 AS cor0
----
270

query II rowsort
SELECT DISTINCT + + col0, col2 * + col0 FROM tab2 cor0 WHERE NOT + col1 + + + col1 * - - 64 * - + 19 * - col1 * - col0 + - 92 / + col1 * + col1 IS NOT NULL
----

query I rowsort
SELECT ( - + 76 ) FROM tab2 AS cor0
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col2 * + + col1 col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4450
SELECT ALL - 24 - - 90 * + - ( + - COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT 89 IS NULL
----
246

skipif mysql # not compatible
query I rowsort label-4450
SELECT ALL - 24 - - 90 * + - ( + - COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT 89 IS NULL
----
246

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4452
SELECT + CAST( - + col1 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-4452
SELECT + CAST ( - + col1 AS INTEGER ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT col1 + + col2 + + - 32 + + 36 FROM tab2
----
121
129
78

onlyif mysql # DIV for integer division: 
query I rowsort label-4454
SELECT + - col1 + + - col0 + - col1 DIV - 84 * + + col1 FROM tab0 AS cor0
----
-108
-96
-98

skipif mysql # not compatible
query I rowsort label-4454
SELECT + - col1 + + - col0 + - col1 / - 84 * + + col1 FROM tab0 AS cor0
----
-108
-96
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4455
SELECT col2 + - CAST( NULL AS SIGNED ) + - ( + col2 ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4455
SELECT col2 + - CAST ( NULL AS INTEGER ) + - ( + col2 ) - + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT + ( - COUNT( DISTINCT + col2 ) ) + + - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-4456
SELECT + ( - COUNT ( DISTINCT + col2 ) ) + + - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 + - 67 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4457
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 + - 67 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 + - - col1 AS col1, + col1 * - col0 col1 FROM tab0 AS cor0
----
162
-1215
2
-97
42
-1827

query I rowsort
SELECT DISTINCT - 85 + + 45 FROM tab2 AS cor0
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + COUNT( * ) FROM tab2 WHERE NULL >= + col0 - + + 74
----
0

skipif mysql # not compatible
query I rowsort label-4460
SELECT + COUNT ( * ) FROM tab2 WHERE NULL >= + col0 - + + 74
----
0

query II rowsort
SELECT 78, - col2 AS col1 FROM tab0
----
78
-10
78
-47
78
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4462
SELECT + 84 DIV + 89 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4462
SELECT + 84 / + 89 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT + COUNT( * ) - - COUNT( * ) + + 86 AS col0 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-4463
SELECT + COUNT ( * ) - - COUNT ( * ) + + 86 AS col0 FROM tab1
----
92

query I rowsort
SELECT DISTINCT - 18 * 18 AS col0 FROM tab0
----
-324

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * - col0 - - + col0 AS col2, - 27 col1 FROM tab0
----
-690
-27
-783
-27
-9506
-27

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT - col0 IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - - 13 + + col1 FROM tab0 AS cor0
----
14
34
94

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> 94
----

query I rowsort
SELECT DISTINCT + ( + + col1 ) AS col0 FROM tab2 cor0
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 64 col2, 6 FROM tab1
----
64
6
64
6
64
6

query I rowsort
SELECT - ( - ( + 74 ) ) FROM tab2
----
74
74
74

query II rowsort
SELECT DISTINCT 77 AS col1, col0 + - - 30 FROM tab0
----
77
117
77
127
77
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4473
SELECT ALL - SUM( ALL + col1 ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-4473
SELECT ALL - SUM ( ALL + col1 ) AS col1 FROM tab2
----
-195

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( - + col1 ) + - - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ( + SUM( DISTINCT + ( - 16 ) ) ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-4475
SELECT ( + SUM ( DISTINCT + ( - 16 ) ) ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-4476
SELECT + MAX( ( - col2 ) ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4476
SELECT + MAX ( ( - col2 ) ) FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query II rowsort label-4477
SELECT DISTINCT COUNT( * ) AS col2, 14 FROM tab0
----
3
14

skipif mysql # not compatible
query II rowsort label-4477
SELECT DISTINCT COUNT ( * ) AS col2, 14 FROM tab0
----
3
14

query I rowsort
SELECT ALL + col0 * + col0 * col0 AS col0 FROM tab1
----
132651
614125
753571

query I rowsort
SELECT DISTINCT col0 * + 43 + col2 FROM tab2 AS cor0
----
2001
2792
3283

query I rowsort
SELECT DISTINCT 73 + - - col1 + col0 * col1 AS col1 FROM tab1 AS cor0
----
4397
503
801

query II rowsort
SELECT - + 12 AS col2, col1 AS col2 FROM tab0 AS cor0
----
-12
1
-12
21
-12
81

query I rowsort
SELECT - col2 * - - col0 + + 39 + + + col1 FROM tab0 AS cor0
----
-585
-810
-9563

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( col2 ) * + 3 col2 FROM tab2 AS cor0
----
-120
-174
-69

query I rowsort
SELECT ALL + 84 + - + col1 AS col0 FROM tab1
----
37
70
79

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT DISTINCT COUNT( * ) * + MIN( - - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4485
SELECT DISTINCT COUNT ( * ) * + MIN ( - - col1 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - col2 - + + 52 FROM tab0 WHERE NOT 67 IS NULL
----
-151
-62
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4487
SELECT + 39 * 58 + ( + - 43 ) - col0 DIV - col0 col1 FROM tab1
----
2220
2220
2220

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4487
SELECT + 39 * 58 + ( + - 43 ) - col0 / - col0 col1 FROM tab1
----
2220
2220
2220

onlyif mysql # DIV for integer division: 
query I rowsort label-4488
SELECT ALL col1 DIV - - col2 AS col0 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-4488
SELECT ALL col1 / - - col2 AS col0 FROM tab2
----
1
1
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4489
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col2 * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4489
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col2 * + col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4490
SELECT ALL + CAST( - + 50 AS SIGNED ) + - 32 AS col1 FROM tab2 AS cor0
----
-82
-82
-82

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + CAST ( - + 50 AS INTEGER ) + - 32 AS col1 FROM tab2 AS cor0
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4491
SELECT - + SUM( - col0 ) col1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4491
SELECT - + SUM ( - col0 ) col1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT DISTINCT - + col0 + 19 AS col2 FROM tab1 AS cor0
----
-32
-66
-72

query I rowsort
SELECT ALL col2 * + - col2 - 6 + - 81 AS col2 FROM tab1
----
-3568
-4711
-9303

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT col0 IS NULL
----
-1
-21
-81

query I rowsort
SELECT - col1 * 71 + + - 90 FROM tab1 AS cor0
----
-1084
-3427
-445

onlyif mysql # DIV for integer division: 
query I rowsort label-4496
SELECT + 50 * + col2 DIV col2 + - - col2 FROM tab0 AS cor0
----
149
60
97

skipif mysql # not compatible
query I rowsort label-4496
SELECT + 50 * + col2 / col2 + - - col2 FROM tab0 AS cor0
----
149
60
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( ( ( NOT - + 59 + col1 IS NULL ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 * + + 65 col2 FROM tab1 AS cor0
----
3835
3835
3835

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - col1 + + 69 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4500
SELECT DISTINCT - + ( - col1 ) * + col2, + CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1344
-51
295
-85
3196
-91

skipif mysql # not compatible
query II rowsort label-4500
SELECT DISTINCT - + ( - col1 ) * + col2, + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1344
-51
295
-85
3196
-91

query II rowsort
SELECT DISTINCT ( - + col2 ) AS col2, 31 FROM tab2
----
-23
31
-40
31
-58
31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = ( col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NULL < - + 36 ) OR col0 * + col1 - 94 + col0 + + col2 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT - ( + 76 ) * + COUNT( * ) FROM tab0 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - ( + 76 ) * + COUNT ( * ) FROM tab0 AS cor0
----
-228

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT 89 <> + + col0
----

query I rowsort
SELECT - AVG ( + + col0 ) FROM tab0 AS cor0 WHERE NOT NULL = ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4507
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - - CAST( + col0 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4507
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - - CAST ( + col0 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4508
SELECT + + COUNT( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4508
SELECT + + COUNT ( * ) AS col1 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4509
SELECT + + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-4509
SELECT + + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4510
SELECT ( + COUNT( * ) ) + + MAX( DISTINCT col2 ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-4510
SELECT ( + COUNT ( * ) ) + + MAX ( DISTINCT col2 ) FROM tab0
----
102

query I rowsort
SELECT + 56 AS col2 FROM tab2 cor0
----
56
56
56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + 17 ) col1 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + - 0 * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4513
SELECT + - 0 * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

query II rowsort
SELECT ALL + col2 + + - ( + col2 ) AS col0, - col2 FROM tab2 AS cor0
----
0
-23
0
-40
0
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-4516
SELECT + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-4516
SELECT + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NULL < NULL
----
0

query II rowsort
SELECT DISTINCT col1, + 44 FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4518
SELECT DISTINCT 36 + - + COUNT( ALL col0 ) col2 FROM tab1 AS cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4518
SELECT DISTINCT 36 + - + COUNT ( ALL col0 ) col2 FROM tab1 AS cor0
----
33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col2, + col1 + - col1, + 33 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4520
SELECT ALL - 32 * + 21 + - - SUM( - col2 ) FROM tab0 AS cor0
----
-828

skipif mysql # not compatible
query I rowsort label-4520
SELECT ALL - 32 * + 21 + - - SUM ( - col2 ) FROM tab0 AS cor0
----
-828

query II rowsort
SELECT ALL + col1 / + - 84 * + col1 + col0 + col0, + 81 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4522
SELECT DISTINCT 46 * + ( + COUNT( * ) ) + + 35 AS col2 FROM tab2
----
173

skipif mysql # not compatible
query I rowsort label-4522
SELECT DISTINCT 46 * + ( + COUNT ( * ) ) + + 35 AS col2 FROM tab2
----
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT ALL 58 - col2 - - CAST( + 96 AS SIGNED ) AS col0 FROM tab1
----
58
86
95

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL 58 - col2 - - CAST ( + 96 AS INTEGER ) AS col0 FROM tab1
----
58
86
95

query II rowsort
SELECT DISTINCT col2 AS col1, 65 + col0 FROM tab0
----
10
152
47
80
99
162

onlyif mysql # DIV for integer division: 
query II rowsort label-4525
SELECT ALL + ( + 91 ) DIV col2 DIV + - col1, col1 AS col0 FROM tab0
----
0
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-4525
SELECT ALL + ( + 91 ) / col2 / + - col1, col1 AS col0 FROM tab0
----
0
1
0
21
0
81

query II rowsort
SELECT + col0 * + col0 * + + col0 - 1 AS col0, - 90 FROM tab0
----
3374
-90
658502
-90
912672
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4527
SELECT - col1 * col0 - - + CAST( NULL AS SIGNED ) + + - 80 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4527
SELECT - col1 * col0 - - + CAST ( NULL AS INTEGER ) + + - 80 FROM tab1 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * + col2 * - col0 + - + col0 * + col1 FROM tab1
----
24650
286559
67830

query II rowsort
SELECT DISTINCT col0, 74 * col2 FROM tab2
----
46
1702
64
2960
75
4292

query I rowsort
SELECT DISTINCT + col1 + + 94 FROM tab2 cor0
----
145
161
171

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= + ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4532
SELECT COUNT( - 39 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4532
SELECT COUNT ( - 39 ) FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4533
SELECT ALL 63 * + col2, col1 AS col0 FROM tab2 WHERE CAST( NULL AS DECIMAL ) = NULL
----

skipif mysql # not compatible
query II rowsort label-4533
SELECT ALL 63 * + col2, col1 AS col0 FROM tab2 WHERE CAST ( NULL AS REAL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4534
SELECT DISTINCT COUNT( * ) * CAST( NULL AS DECIMAL ) * - 36 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4534
SELECT DISTINCT COUNT ( * ) * CAST ( NULL AS REAL ) * - 36 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT ( - 52 ) FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-4536
SELECT DISTINCT + - SUM( ALL - - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4536
SELECT DISTINCT + - SUM ( ALL - - col0 ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4538
SELECT - ( - col0 ), - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4538
SELECT - ( - col0 ), - ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4539
SELECT + col0 DIV - 18 FROM tab1 AS cor0
----
-2
-4
-5

skipif mysql # not compatible
query I rowsort label-4539
SELECT + col0 / - 18 FROM tab1 AS cor0
----
-2
-4
-5

query I rowsort
SELECT DISTINCT - 43 * col0 * - - 64 AS col0 FROM tab0 AS cor0
----
-239424
-266944
-41280

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= + 95
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4542
SELECT - 79 DIV - - ( ( - COUNT( * ) ) ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4542
SELECT - 79 / - - ( ( - COUNT ( * ) ) ) FROM tab1 AS cor0
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT DISTINCT - col1 DIV - - col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT - col1 / - - col0 FROM tab2
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4544
SELECT SUM( DISTINCT - + col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-4544
SELECT SUM ( DISTINCT - + col2 ) FROM tab1
----
-223

query II rowsort
SELECT DISTINCT - col2 AS col1, + col1 + + + 87 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query IIIIII rowsort
SELECT * FROM tab1, tab1 AS cor0 WHERE NULL <> NULL
----

query II rowsort
SELECT col0 AS col2, 43 * - col2 FROM tab1
----
51
-4128
85
-2537
91
-2924

query I rowsort
SELECT ALL + col0 + - col2 AS col0 FROM tab0 WHERE NOT ( col2 IS NULL )
----
-2
-32
77

query II rowsort
SELECT DISTINCT + col1 AS col0, - col2 AS col2 FROM tab2
----
51
-23
67
-58
77
-40

query I rowsort
SELECT - col1 AS col0 FROM tab0 WHERE NOT - col1 * - - 32 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4551
SELECT DISTINCT ( ( COUNT( * ) ) ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4551
SELECT DISTINCT ( ( COUNT ( * ) ) ) AS col0 FROM tab2
----
3

query I rowsort
SELECT - ( 44 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4553
SELECT ALL col0 * + col2 * - CAST( - + 89 AS SIGNED ) * - 20 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4553
SELECT ALL col0 * + col2 * - CAST ( - + 89 AS INTEGER ) * - 20 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 1 AS col2 FROM tab2 WHERE NOT + - 75 * + 9 IS NULL
----
-1
-1
-1

query I rowsort
SELECT col1 * - col1 + col1 AS col0 FROM tab1
----
-182
-20
-2162

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 88 < NULL
----

query I rowsort
SELECT ALL - 19 FROM tab1 WHERE NOT 33 + + col1 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab1 WHERE ( NULL ) < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 16 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN - col2 * ( col1 ) + + col2 AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4561
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + CAST( 9 AS SIGNED ) / + col0 AND - CAST( NULL AS SIGNED ) + - col1 * - col1
----

skipif mysql # not compatible
query III rowsort label-4561
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + CAST ( 9 AS INTEGER ) / + col0 AND - CAST ( NULL AS INTEGER ) + - col1 * - col1
----

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT col1 - col2 * col1 = NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 * + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + 99 FROM tab0 WHERE ( col0 * - 51 ) IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab2 WHERE NULL < NULL
----

query I rowsort
SELECT ALL - 85 + col0 * 92 FROM tab1
----
4607
7735
8287

query I rowsort
SELECT ( + 49 ) * + col0 AS col1 FROM tab2
----
2254
3136
3675

query I rowsort
SELECT 56 * ( col1 ) FROM tab2
----
2856
3752
4312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT 24 * CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4569
SELECT 24 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4570
SELECT DISTINCT SUM( DISTINCT - col1 ) * 81 FROM tab2
----
-15795

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT SUM ( DISTINCT - col1 ) * 81 FROM tab2
----
-15795

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( 82 )
----

query III rowsort
SELECT * FROM tab1 WHERE col2 + 79 IS NULL
----

query I rowsort
SELECT - 49 * + col0 FROM tab2
----
-2254
-3136
-3675

onlyif mysql # aggregate syntax: 
query I rowsort label-4574
SELECT ALL ( + ( COUNT( * ) ) ) FROM tab0 WHERE NOT + col1 >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-4574
SELECT ALL ( + ( COUNT ( * ) ) ) FROM tab0 WHERE NOT + col1 >= - col0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + 58 )
----

query I rowsort
SELECT ALL + col2 AS col0 FROM tab2 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4577
SELECT + ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4577
SELECT + ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4579
SELECT 0 DIV 56 + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4579
SELECT 0 / 56 + - COUNT ( * ) FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( + 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4581
SELECT ( COUNT( * ) ) - + 44 AS col2 FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4581
SELECT ( COUNT ( * ) ) - + 44 AS col2 FROM tab2 AS cor0
----
-41

query I rowsort
SELECT - 28 * col0 AS col0 FROM tab0 AS cor0
----
-2436
-2716
-420

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col0 / col1 ) BETWEEN col1 AND ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4584
SELECT ALL + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 cor0 WHERE NOT + col1 - - 68 / + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 cor0 WHERE NOT + col1 - - 68 / + col0 IS NOT NULL
----

query I rowsort
SELECT + 73 * ( 70 * col2 ) AS col2 FROM tab1 cor0
----
301490
347480
490560

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) IS NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4588
SELECT col1 DIV - col2 col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4588
SELECT col1 / - col2 col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT 8 + ( + 94 ) FROM tab2 AS cor0 WHERE NOT ( - 42 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + col2 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN ( 89 + ( col0 + + col2 ) ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4592
SELECT + MIN( ALL col2 ) * COUNT( * ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4592
SELECT + MIN ( ALL col2 ) * COUNT ( * ) FROM tab2
----
69

query I rowsort
SELECT + 46 * + col1 AS col2 FROM tab2
----
2346
3082
3542

query I rowsort
SELECT ALL - col2 * - 55 AS col2 FROM tab0 AS cor0
----
2585
5445
550

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT - MIN( ALL col1 ) AS col0 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4595
SELECT - MIN ( ALL col1 ) AS col0 FROM tab2 cor0
----
-51

query I rowsort
SELECT - - 35 * col0 AS col2 FROM tab0 AS cor0
----
3045
3395
525

query I rowsort
SELECT ALL - col2 * 34 FROM tab2 AS cor0
----
-1360
-1972
-782

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + 47 = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( - 67 * col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 * col0 )
----

query I rowsort
SELECT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 64 > ( 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4603
SELECT ALL - CAST( col2 AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

skipif mysql # not compatible
query I rowsort label-4603
SELECT ALL - CAST ( col2 AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4604
SELECT DISTINCT - col2 DIV 10 AS col2 FROM tab0 AS cor0
----
-1
-4
-9

skipif mysql # not compatible
query I rowsort label-4604
SELECT DISTINCT - col2 / 10 AS col2 FROM tab0 AS cor0
----
-1
-4
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-4605
SELECT + 94 * COUNT( * ) AS col1 FROM tab2 WHERE NOT - 68 IS NULL
----
282

skipif mysql # not compatible
query I rowsort label-4605
SELECT + 94 * COUNT ( * ) AS col1 FROM tab2 WHERE NOT - 68 IS NULL
----
282

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4606
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) / + col0 + col0 <= 19
----

skipif mysql # not compatible
query III rowsort label-4606
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS REAL ) / + col0 + col0 <= 19
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT SUM( DISTINCT - 32 ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-4607
SELECT SUM ( DISTINCT - 32 ) AS col0 FROM tab2
----
-32

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col2 + col2 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 * 87 col1 FROM tab1 WHERE NOT ( + col0 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4610
SELECT + col2 DIV 45 AS col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-4610
SELECT + col2 / 45 AS col0 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-4611
SELECT ALL COUNT( * ) * - MAX( col2 ) + 73 col1 FROM tab1 AS cor0
----
-215

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4611
SELECT ALL COUNT ( * ) * - MAX ( col2 ) + 73 col1 FROM tab1 AS cor0
----
-215

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 63 + col1 IN ( - col1 )
----

query I rowsort
SELECT - col2 * - 77 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4614
SELECT - col2 DIV col0 + + col2 DIV - 7 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-14
-8
-9

skipif mysql # not compatible
query I rowsort label-4614
SELECT - col2 / col0 + + col2 / - 7 AS col0 FROM tab1 AS cor0 WHERE - col1 IS NOT NULL
----
-14
-8
-9

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT 49 * + 63 AS col1 FROM tab2
----
3087
3087
3087

query I rowsort
SELECT 74 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2ccf8ef3f477e1a1a3e30c8b8154ff31

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - + col2 ) > ( - col0 + ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 44, 24 col1 FROM tab0 AS cor0
----
-44
24
-44
24
-44
24

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT DISTINCT + - COUNT( DISTINCT - + col0 ) * + 97 + COUNT( * ) FROM tab1 AS cor0
----
-288

skipif mysql # not compatible
query I rowsort label-4620
SELECT DISTINCT + - COUNT ( DISTINCT - + col0 ) * + 97 + COUNT ( * ) FROM tab1 AS cor0
----
-288

query I rowsort
SELECT - col0 * 1 - 14 AS col1 FROM tab2 AS cor0
----
-60
-78
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4622
SELECT ALL 92 DIV 3 + COUNT( DISTINCT 15 + col0 ) FROM tab2 AS cor0 WHERE col1 = + 8
----
30

skipif mysql # not compatible
query I rowsort label-4622
SELECT ALL 92 / 3 + COUNT ( DISTINCT 15 + col0 ) FROM tab2 AS cor0 WHERE col1 = + 8
----
30

query I rowsort
SELECT + 71 AS col2 FROM tab0 AS cor0 WHERE ( col0 ) IS NOT NULL
----
71
71
71

query I rowsort
SELECT DISTINCT + 33 + col2 FROM tab2 AS cor0
----
56
73
91

query I rowsort
SELECT ALL + 81 - + 13 AS col2 FROM tab2
----
68
68
68

query I rowsort
SELECT + 3 * + - 70 - + col0 FROM tab2
----
-256
-274
-285

query I rowsort
SELECT 13 - col0 + + 19 * + 41 + + col1 * col0 FROM tab1
----
1132
1455
4978

onlyif mysql # DIV for integer division: 
query I rowsort label-4628
SELECT ALL + col0 * 91 - - 37 DIV - col1 FROM tab0
----
1365
7916
8790

skipif mysql # not compatible
query I rowsort label-4628
SELECT ALL + col0 * 91 - - 37 / - col1 FROM tab0
----
1365
7916
8790

query I rowsort
SELECT 92 * + - col0 + - 16 AS col2 FROM tab2
----
-4248
-5904
-6916

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT CAST( NULL AS SIGNED ) * + - 87 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT CAST ( NULL AS INTEGER ) * + - 87 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT MIN( DISTINCT + - col1 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-4632
SELECT MIN ( DISTINCT + - col1 ) FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT + COUNT( + 39 ) FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT + COUNT ( + 39 ) FROM tab2 WHERE NOT NULL IN ( + col1 )
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 79 * 42 )
----

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT 1 / col0 + - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 20 NOT BETWEEN - 95 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4637
SELECT CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 WHERE NOT + + col1 BETWEEN - 51 AND + - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4637
SELECT CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 WHERE NOT + + col1 BETWEEN - 51 AND + - col0
----
NULL
NULL
NULL

query I rowsort
SELECT 90 AS col0 FROM tab1 WHERE NOT - col1 > ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT - SUM( - 71 ) + COUNT( * ) AS col1 FROM tab1 WHERE NOT - + 20 * ( - - col2 ) + + 57 + + col1 IS NULL
----
216

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT - SUM ( - 71 ) + COUNT ( * ) AS col1 FROM tab1 WHERE NOT - + 20 * ( - - col2 ) + + 57 + + col1 IS NULL
----
216

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN - col0 * col0 * col0 AND ( + col2 * + col1 )
----
46
64
75

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col2 + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 59 * col2 col1 FROM tab2 AS cor0
----
-1357
-2360
-3422

onlyif mysql # aggregate syntax: 
query II rowsort label-4643
SELECT + COUNT( * ) col0, 4 FROM tab0 AS cor0
----
3
4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4643
SELECT + COUNT ( * ) col0, 4 FROM tab0 AS cor0
----
3
4

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 98 - + - 95 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL MIN( + col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL MIN ( + col2 ) AS col2 FROM tab2 AS cor0
----
23

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 / - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4647
SELECT - CAST( - COUNT( DISTINCT + col0 ) AS SIGNED ) DIV - COUNT( * ) AS col0 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4647
SELECT - CAST ( - COUNT ( DISTINCT + col0 ) AS INTEGER ) / - COUNT ( * ) AS col0 FROM tab1 cor0
----
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL IN ( ( + col1 ), + 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT ( COUNT( - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT ( COUNT ( - col1 ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4650
SELECT CAST( - 78 AS SIGNED ) + + col1 FROM tab0
----
-57
-77
3

skipif mysql # not compatible
query I rowsort label-4650
SELECT CAST ( - 78 AS INTEGER ) + + col1 FROM tab0
----
-57
-77
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col2 + + 20 col0 FROM tab2
----
-51
43
-67
78
-77
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4652
SELECT DISTINCT CAST( NULL AS SIGNED ) * 59 + - col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4652
SELECT DISTINCT CAST ( NULL AS INTEGER ) * 59 + - col2 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE + ( + col1 ) <= - - 66 * + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - ( + 97 ) * 85 FROM tab0
----
-8245

query I rowsort
SELECT - col2 * 25 AS col1 FROM tab0 AS cor0 WHERE + col0 + - col1 + - col2 >= ( + 24 + - - col2 * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT CAST( NULL AS SIGNED ) - 95 AS col0 FROM tab1 AS cor0 WHERE ( CAST( + + col2 AS SIGNED ) ) NOT IN ( col0, - 46 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4656
SELECT CAST ( NULL AS INTEGER ) - 95 AS col0 FROM tab1 AS cor0 WHERE ( CAST ( + + col2 AS INTEGER ) ) NOT IN ( col0, - 46 )
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 AS col1, + col1 + - 51 + + + col2 + - 41 * + 85 AS col2 FROM tab0 cor0
----
10
-3505
47
-3408
99
-3436

query I rowsort
SELECT + 79 AS col0 FROM tab2 cor0
----
79
79
79

query I rowsort
SELECT ALL 14 + col0 FROM tab0 AS cor0
----
101
111
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 58 AS col0, - col0 col2 FROM tab0 AS cor0
----
58
-15
58
-87
58
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4661
SELECT 47 * - COUNT( * ) FROM tab1 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-4661
SELECT 47 * - COUNT ( * ) FROM tab1 AS cor0
----
-141

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 42 col2, col1 AS col1 FROM tab2 AS cor0
----
-42
51
-42
67
-42
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4663
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 95 NOT BETWEEN - - CAST( + + col2 AS SIGNED ) + - - col0 AND + col0
----

skipif mysql # not compatible
query III rowsort label-4663
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 95 NOT BETWEEN - - CAST ( + + col2 AS INTEGER ) + - - col0 AND + col0
----

query I rowsort
SELECT DISTINCT - 80 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-80

query I rowsort
SELECT DISTINCT + ( - ( + col0 ) ) * 41 FROM tab0
----
-3567
-3977
-615

query I rowsort
SELECT + col0 - - 10 FROM tab1
----
101
61
95

query I rowsort
SELECT + 98 FROM tab0 WHERE + + col0 <> - col1
----
98
98
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4668
SELECT ALL ( + 96 ) + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4668
SELECT ALL ( + 96 ) + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4669
SELECT * FROM tab0 WHERE + col0 NOT IN ( - CAST( + - col1 AS SIGNED ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4669
SELECT * FROM tab0 WHERE + col0 NOT IN ( - CAST ( + - col1 AS INTEGER ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT 64 + + + 38 + MAX( DISTINCT - - col0 ) + + + COUNT( * ) AS col0 FROM tab0 cor0
----
202

skipif mysql # not compatible
query I rowsort label-4670
SELECT 64 + + + 38 + MAX ( DISTINCT - - col0 ) + + + COUNT ( * ) AS col0 FROM tab0 cor0
----
202

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 19 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4672
SELECT ALL - + CAST( NULL AS SIGNED ) + + - col0 / - + 31 - col2 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4672
SELECT ALL - + CAST ( NULL AS INTEGER ) + + - col0 / - + 31 - col2 + - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col0 * + 95 - col1 + + col1 AS col0 FROM tab1 cor0
----
4845
8075
8645

query I rowsort
SELECT + col0 * col1 + - + 5 * col1 * col0 AS col1 FROM tab0 AS cor0
----
-388
-4860
-7308

query I rowsort
SELECT + - 15 AS col1 FROM tab2 cor0
----
-15
-15
-15

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( - 15 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 14 * - - col0 FROM tab2
----
1050
644
896

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE - - col0 <> - col1
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL - MAX( + 91 ) FROM tab0
----
-91

skipif mysql # not compatible
query I rowsort label-4679
SELECT ALL - MAX ( + 91 ) FROM tab0
----
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4680
SELECT * FROM tab0 WHERE NOT + + ( 44 ) NOT BETWEEN col0 AND - CAST( - + col1 AS SIGNED )
----
15
81
47

skipif mysql # not compatible
query III rowsort label-4680
SELECT * FROM tab0 WHERE NOT + + ( 44 ) NOT BETWEEN col0 AND - CAST ( - + col1 AS INTEGER )
----
15
81
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL IS NULL AND ( NOT ( NOT NULL IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4682
SELECT DISTINCT + MAX( ALL 40 ) * + + 14 AS col1 FROM tab1 AS cor0
----
560

skipif mysql # not compatible
query I rowsort label-4682
SELECT DISTINCT + MAX ( ALL 40 ) * + + 14 AS col1 FROM tab1 AS cor0
----
560

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT ALL - - COUNT( + col2 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4683
SELECT ALL - - COUNT ( + col2 ) FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT + ( - - 61 ) AS col0 FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4685
SELECT - 49, + MIN( ALL col1 ) * - + MIN( ALL + col2 ) AS col2 FROM tab0 cor0
----
-49
-10

skipif mysql # not compatible
query II rowsort label-4685
SELECT - 49, + MIN ( ALL col1 ) * - + MIN ( ALL + col2 ) AS col2 FROM tab0 cor0
----
-49
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT - CAST( NULL AS SIGNED ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT - CAST ( NULL AS INTEGER ) / col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4687
SELECT + + COUNT( * ) DIV + 69 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4687
SELECT + + COUNT ( * ) / + 69 FROM tab0 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 ) / - ( col0 ) + - 68 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 20 + - 10 + + col1 FROM tab1
----
-16
-25
17

query I rowsort
SELECT - col2 + 58 + + col2 * col1 FROM tab2 AS cor0
----
1208
3098
3886

query I rowsort
SELECT ALL + 80 * - - col1 + 78 AS col1 FROM tab2 AS cor0
----
4158
5438
6238

onlyif mysql # aggregate syntax: 
query I rowsort label-4692
SELECT - - COUNT( - - 37 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4692
SELECT - - COUNT ( - - 37 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT DISTINCT - 92 * + + ( 25 ) * + COUNT( * ) + + ( + + COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-6897

skipif mysql # not compatible
query I rowsort label-4693
SELECT DISTINCT - 92 * + + ( 25 ) * + COUNT ( * ) + + ( + + COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-6897

onlyif mysql # DIV for integer division: 
query I rowsort label-4694
SELECT 73 DIV + col2 FROM tab2
----
1
1
3

skipif mysql # not compatible
query I rowsort label-4694
SELECT 73 / + col2 FROM tab2
----
1
1
3

query I rowsort
SELECT + col2 FROM tab2 WHERE NULL <= + 7
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - col0 - - - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 * - - col1 AS col1 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4698
SELECT DISTINCT + col0 + - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4698
SELECT DISTINCT + col0 + - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT - COUNT( * ) * + 3 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4699
SELECT - COUNT ( * ) * + 3 FROM tab0
----
-9

query I rowsort
SELECT ALL - col0 * + col1 * + + ( + col2 ) FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4701
SELECT + 87 * - - CAST( + col0 AS SIGNED ) FROM tab1
----
4437
7395
7917

skipif mysql # not compatible
query I rowsort label-4701
SELECT + 87 * - - CAST ( + col0 AS INTEGER ) FROM tab1
----
4437
7395
7917

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4702
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - - col1 * + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4702
SELECT DISTINCT CAST ( NULL AS REAL ) / - - col1 * + col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4703
SELECT - col1 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4703
SELECT - col1 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4704
SELECT - col2 DIV - - 60 FROM tab2 AS cor0 WHERE ( + + ( col1 ) IS NOT NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT - col2 / - - 60 FROM tab2 AS cor0 WHERE ( + + ( col1 ) IS NOT NULL )
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4705
SELECT ALL 86 + COUNT( * ) FROM tab1 AS cor0
----
89

skipif mysql # not compatible
query I rowsort label-4705
SELECT ALL 86 + COUNT ( * ) FROM tab1 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query I rowsort label-4706
SELECT 60 + - col2 DIV + + col0 * + col2 AS col2 FROM tab2
----
60
60
60

skipif mysql # not compatible
query I rowsort label-4706
SELECT 60 + - col2 / + + col0 * + col2 AS col2 FROM tab2
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4707
SELECT DISTINCT ( - MIN( + col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-4707
SELECT DISTINCT ( - MIN ( + col2 ) ) AS col0 FROM tab1
----
-59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4708
SELECT DISTINCT + COUNT( DISTINCT - 3 ) DIV + COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4708
SELECT DISTINCT + COUNT ( DISTINCT - 3 ) / + COUNT ( * ) AS col1 FROM tab0
----
0

query I rowsort
SELECT col2 * + + ( col0 ) FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT + col2 - - 61 FROM tab1 AS cor0
----
120
129
157

query I rowsort
SELECT ALL + col0 + + 83 AS col2 FROM tab1 AS cor0
----
134
168
174

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + col0 IN ( 65 + - col2 * 24 / - ( 25 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4713
SELECT ALL + col0 * col1 DIV - col2 AS col2 FROM tab2 AS cor0
----
-102
-123
-86

skipif mysql # not compatible
query I rowsort label-4713
SELECT ALL + col0 * col1 / - col2 AS col2 FROM tab2 AS cor0
----
-102
-123
-86

query I rowsort
SELECT DISTINCT + 85 * col2 AS col2 FROM tab1
----
5015
5780
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT MAX( DISTINCT - - col2 ) AS col1 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4715
SELECT MAX ( DISTINCT - - col2 ) AS col1 FROM tab0
----
99

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT + 12 NOT IN ( + col0, 97, + col1 * + - col0 + + - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 63 * + 74 + - + 41 col1 FROM tab1, tab0 AS cor0
----
9 values hashing to 43324fe2c5b7b301ed226cc64136fada

onlyif mysql # aggregate syntax: 
query II rowsort label-4718
SELECT - MIN( 75 ) AS col1, - 15 AS col2 FROM tab0
----
-75
-15

skipif mysql # not compatible
query II rowsort label-4718
SELECT - MIN ( 75 ) AS col1, - 15 AS col2 FROM tab0
----
-75
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( ( 98 ) ) col0 FROM tab2 AS cor0
----
-98

query I rowsort
SELECT DISTINCT ( - - col1 ) + - + 40 FROM tab1 AS cor0
----
-26
-35
7

onlyif mysql # DIV for integer division: 
query I rowsort label-4721
SELECT ALL - 83 + - + col0 DIV - ( - + col0 ) FROM tab0 cor0
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-4721
SELECT ALL - 83 + - + col0 / - ( - + col0 ) FROM tab0 cor0
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-4722
SELECT DISTINCT 15 + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-4722
SELECT DISTINCT 15 + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
18

onlyif mysql # aggregate syntax: 
query I rowsort label-4723
SELECT + ( + MIN( DISTINCT + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4723
SELECT + ( + MIN ( DISTINCT + col0 ) ) AS col0 FROM tab2 AS cor0
----
46

query II rowsort
SELECT - + 33 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
-33
10
-33
47
-33
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4725
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( ( - + col0 ) AS SIGNED ) / + 20 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4725
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( ( - + col0 ) AS INTEGER ) / + 20 IS NOT NULL
----

query I rowsort
SELECT - col0 + 74 AS col2 FROM tab0 AS cor0
----
-13
-23
59

query II rowsort
SELECT + col2 + - 62 AS col0, col1 FROM tab1
----
-3
5
34
14
6
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4728
SELECT - col1 + + + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4728
SELECT - col1 + + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4729
SELECT ALL COUNT( * ) * SUM( DISTINCT col0 ) AS col0 FROM tab1
----
681

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL COUNT ( * ) * SUM ( DISTINCT col0 ) AS col0 FROM tab1
----
681

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 17 + col2 col2 FROM tab0
----
116
27
64

query I rowsort
SELECT + 34 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4732
SELECT - CAST( - 46 AS SIGNED ), col1 AS col2 FROM tab2
----
46
51
46
67
46
77

skipif mysql # not compatible
query II rowsort label-4732
SELECT - CAST ( - 46 AS INTEGER ), col1 AS col2 FROM tab2
----
46
51
46
67
46
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4733
SELECT - + SUM( ALL 78 ) AS col1 FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-4733
SELECT - + SUM ( ALL 78 ) AS col1 FROM tab2 AS cor0
----
-234

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 71, + 23 * + + col1 + - 11 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 38 * col0 > + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4736
SELECT ALL - SUM( - - col0 ) + + + COUNT( * ) FROM tab2 cor0
----
-182

skipif mysql # not compatible
query I rowsort label-4736
SELECT ALL - SUM ( - - col0 ) + + + COUNT ( * ) FROM tab2 cor0
----
-182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT DISTINCT + + COUNT( * ) DIV 91 - + COUNT( * ) col0 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-4737
SELECT DISTINCT + + COUNT ( * ) / 91 - + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4739
SELECT - 11 DIV col1 + + col1 + ( 65 ) * col1 FROM tab1 AS cor0
----
3102
328
924

skipif mysql # not compatible
query I rowsort label-4739
SELECT - 11 / col1 + + col1 + ( 65 ) * col1 FROM tab1 AS cor0
----
3102
328
924

query I rowsort
SELECT ALL col2 * + 59 FROM tab0 AS cor0
----
2773
5841
590

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 73 >= 57
----

query II rowsort
SELECT - col1 AS col2, + col1 FROM tab2 cor0
----
-51
51
-67
67
-77
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 4 * - + 52 col0 FROM tab1 AS cor0
----
-208
-208
-208

query I rowsort
SELECT DISTINCT - col0 * 22 FROM tab0 AS cor0
----
-1914
-2134
-330

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + + 70 + + 7 - - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4746
SELECT DISTINCT COUNT( * ) DIV - 73 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT DISTINCT COUNT ( * ) / - 73 AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT 28, + col1 AS col1 FROM tab0
----
28
1
28
21
28
81

query III rowsort
SELECT * FROM tab2 WHERE NOT 33 * col0 + - 64 / col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4749
SELECT ALL - ( MAX( - col0 ) ) AS col1 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4749
SELECT ALL - ( MAX ( - col0 ) ) AS col1 FROM tab2
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4750
SELECT - CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4750
SELECT - CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col1 AS col1, + col0 * + 86 AS col1 FROM tab1
----
-14
4386
-47
7826
-5
7310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4752
SELECT - + ( + + 69 ) * + CAST( + + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-4752
SELECT - + ( + + 69 ) * + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-207

query II rowsort
SELECT DISTINCT - col1 + + col1, col1 * 26 * + col0 * - + col1 AS col0 FROM tab0 AS cor0
----
0
-2522
0
-2558790
0
-997542

query I rowsort
SELECT 68 + - 14 FROM tab1
----
54
54
54

query I rowsort
SELECT ALL + col2 * - col1 + col2 AS col2 FROM tab2
----
-1150
-3040
-3828

query I rowsort
SELECT + 74 + col0 AS col2 FROM tab0
----
161
171
89

onlyif mysql # aggregate syntax: 
query I rowsort label-4757
SELECT + COUNT( + ( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4757
SELECT + COUNT ( + ( - - col0 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 71 * - col1 AS col1 FROM tab2 AS cor0
----
-3621
-4757
-5467

query I rowsort
SELECT ALL - col2 + col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-45
23
26

query I rowsort
SELECT + - col0 FROM tab0 AS cor0 WHERE NULL >= 44
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4761
SELECT ALL - COUNT( * ) + - CAST( ( + + 18 ) AS SIGNED ) - + COUNT( * ) FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4761
SELECT ALL - COUNT ( * ) + - CAST ( ( + + 18 ) AS INTEGER ) - + COUNT ( * ) FROM tab0 AS cor0
----
-24

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * col1 > + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - + + 84 * - col2 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 90 IS NULL
----

query I rowsort
SELECT ALL - 42 + 50 FROM tab1
----
8
8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4766
SELECT + 46 DIV SUM( ALL + + col0 ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4766
SELECT + 46 / SUM ( ALL + + col0 ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT COUNT( * ) * COUNT( * ) - - COUNT( * ) * - SUM( + col2 ) col2 FROM tab1
----
-660

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4767
SELECT COUNT ( * ) * COUNT ( * ) - - COUNT ( * ) * - SUM ( + col2 ) col2 FROM tab1
----
-660

onlyif mysql # aggregate syntax: 
query I rowsort label-4768
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 WHERE - + col2 * + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4768
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 WHERE - + col2 * + col0 IS NULL
----
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 WHERE NOT - col2 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4770
SELECT ALL - COUNT( - col1 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4770
SELECT ALL - COUNT ( - col1 ) FROM tab2
----
-3

query I rowsort
SELECT ALL - ( + 82 ) FROM tab1
----
-82
-82
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-4772
SELECT - 52 * + + COUNT( * ) + COUNT( * ) AS col1 FROM tab2
----
-153

skipif mysql # not compatible
query I rowsort label-4772
SELECT - 52 * + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2
----
-153

query I rowsort
SELECT DISTINCT + - 84 + - + 11 AS col0 FROM tab1 AS cor0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-4774
SELECT ALL 19 + SUM( + + 67 ) AS col0 FROM tab1 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-4774
SELECT ALL 19 + SUM ( + + 67 ) AS col0 FROM tab1 AS cor0
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4775
SELECT DISTINCT MAX( CAST( + col2 AS SIGNED ) ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT MAX ( CAST ( + col2 AS INTEGER ) ) AS col0 FROM tab0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4776
SELECT * FROM tab2 AS cor0 WHERE NOT 20 * + CAST( - col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-4776
SELECT * FROM tab2 AS cor0 WHERE NOT 20 * + CAST ( - col0 AS INTEGER ) > NULL
----

query I rowsort
SELECT ALL - col0 * + + 44 AS col1 FROM tab2 AS cor0
----
-2024
-2816
-3300

query I rowsort
SELECT + - col2 * - - 11 FROM tab1 AS cor0
----
-1056
-649
-748

query I rowsort
SELECT DISTINCT ( col1 ) * + + col1 * ( - - col1 ) AS col0 FROM tab1 AS cor0
----
103823
125
2744

onlyif mysql # aggregate syntax: 
query I rowsort label-4780
SELECT ALL + MIN( + col2 ) AS col2 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4780
SELECT ALL + MIN ( + col2 ) AS col2 FROM tab0
----
10

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 NOT IN ( + col0, + 18 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT ALL - COUNT( + 29 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4782
SELECT ALL - COUNT ( + 29 ) FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4783
SELECT DISTINCT + 2 * + - MAX( ALL 58 ) FROM tab0
----
-116

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT + 2 * + - MAX ( ALL 58 ) FROM tab0
----
-116

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 82 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4785
SELECT CAST( NULL AS DECIMAL ) * - col2 + + 66 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4785
SELECT CAST ( NULL AS REAL ) * - col2 + + 66 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4786
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 > + 86 + 86
----
3

skipif mysql # not compatible
query I rowsort label-4786
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 > + 86 + 86
----
3

query II rowsort
SELECT DISTINCT + col0 AS col0, - col0 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT DISTINCT - 43 + + 53 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
10

query II rowsort
SELECT DISTINCT col0 AS col1, + 42 FROM tab1
----
51
42
85
42
91
42

query I rowsort
SELECT DISTINCT + ( + 96 ) AS col0 FROM tab1 WHERE + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4791
SELECT DISTINCT - SUM( - CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT DISTINCT - SUM ( - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT - col1 FROM tab1 WHERE - - col0 BETWEEN ( col2 - + col2 + + col2 * + - 13 ) AND ( NULL )
----

query I rowsort
SELECT + 50 + + + ( + + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
114
125
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4794
SELECT DISTINCT + COUNT( * ) + + - 97 AS col0 FROM tab2 cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4794
SELECT DISTINCT + COUNT ( * ) + + - 97 AS col0 FROM tab2 cor0
----
-94

query I rowsort
SELECT - - ( - col2 ) + - - col2 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( - - col0 ) FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT 8 + 70 + + COUNT( * ) AS col1 FROM tab1 cor0
----
81

skipif mysql # not compatible
query I rowsort label-4797
SELECT 8 + 70 + + COUNT ( * ) AS col1 FROM tab1 cor0
----
81

query II rowsort
SELECT ALL + col2 AS col1, + 19 AS col0 FROM tab2 cor0
----
23
19
40
19
58
19

query II rowsort
SELECT DISTINCT 24 + - 2, + col1 FROM tab2
----
22
51
22
67
22
77

query I rowsort
SELECT ( + col0 ) + col0 + + col2 FROM tab2
----
115
168
208

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4801
SELECT ALL * FROM tab1 WHERE NOT + col1 + - CAST( NULL AS DECIMAL ) IN ( + - 63 )
----

skipif mysql # not compatible
query III rowsort label-4801
SELECT ALL * FROM tab1 WHERE NOT + col1 + - CAST ( NULL AS REAL ) IN ( + - 63 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 97 BETWEEN 52 * - col0 + + + col2 AND + col1 / - 3
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 8 AS col0 FROM tab0 WHERE NOT ( NULL ) < - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 14 * - - 58 col0 FROM tab2
----
812
812
812

query I rowsort
SELECT + col2 - - col1 + - col0 AS col0 FROM tab2 AS cor0
----
28
50
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4806
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + CAST( 93 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4806
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + CAST ( 93 AS INTEGER )
----

query II rowsort
SELECT DISTINCT - ( - + 74 ) AS col2, col2 AS col2 FROM tab1 AS cor0
----
74
59
74
68
74
96

onlyif mysql # aggregate syntax: 
query II rowsort label-4808
SELECT DISTINCT + COUNT( * ), 19 AS col0 FROM tab0
----
3
19

skipif mysql # not compatible
query II rowsort label-4808
SELECT DISTINCT + COUNT ( * ), 19 AS col0 FROM tab0
----
3
19

query II rowsort
SELECT DISTINCT - col0 AS col1, + 25 FROM tab0
----
-15
25
-87
25
-97
25

onlyif mysql # aggregate syntax: 
query I rowsort label-4810
SELECT - COUNT( * ) * - + COUNT( + 89 ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4810
SELECT - COUNT ( * ) * - + COUNT ( + 89 ) FROM tab0 AS cor0
----
9

query I rowsort
SELECT DISTINCT + col1 * - - col1 FROM tab1 AS cor0
----
196
2209
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 42 ) col0 FROM tab0 AS cor0
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-4813
SELECT MIN( col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4813
SELECT MIN ( col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + 91 + - col2 + + col2
----

query I rowsort
SELECT col2 * + col1 + + 87 AS col1 FROM tab0 AS cor0
----
186
297
3894

query II rowsort
SELECT + col2 * col2 * 55 - - ( + col1 ) + 30 AS col0, col2 AS col2 FROM tab1 cor0
----
191490
59
254397
68
506924
96

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > ( - 62 * + 36 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4818
SELECT ALL + SUM( - col0 ) AS col0 FROM tab2 cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4818
SELECT ALL + SUM ( - col0 ) AS col0 FROM tab2 cor0
----
-185

query I rowsort
SELECT DISTINCT - 52 * - + col0 AS col1 FROM tab1 AS cor0
----
2652
4420
4732

query I rowsort
SELECT ( col2 ) FROM tab0 WHERE NOT ( NOT NULL IS NULL )
----
10
47
99

query I rowsort
SELECT col2 * - 87 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT 62 * - + col1 FROM tab2 WHERE NOT + col1 NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 * + 32 * col2 * + - col0 col1 FROM tab2
----
1591232
3850240
6542400

onlyif mysql # aggregate syntax: 
query I rowsort label-4824
SELECT ALL - MAX( ALL - + col1 ) * - COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-4824
SELECT ALL - MAX ( ALL - + col1 ) * - COUNT ( * ) FROM tab1
----
-15

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE - ( col0 ) + + 68 / + col1 IS NULL
----

query I rowsort
SELECT DISTINCT - 91 * col0 + - col1 FROM tab1 AS cor0
----
-4655
-7740
-8328

onlyif mysql # DIV for integer division: 
query I rowsort label-4827
SELECT + + 48 + col0 + + col0 DIV col0 FROM tab2 AS cor0
----
113
124
95

skipif mysql # not compatible
query I rowsort label-4827
SELECT + + 48 + col0 + + col0 / col0 FROM tab2 AS cor0
----
113
124
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4828
SELECT * FROM tab1 WHERE 30 + + + 19 + - - ( - - col1 ) + CAST( + 56 AS SIGNED ) > + + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4828
SELECT * FROM tab1 WHERE 30 + + + 19 + - - ( - - col1 ) + CAST ( + 56 AS INTEGER ) > + + 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 47 * col1 AS col2 FROM tab0
----
3807
47
987

query III rowsort
SELECT * FROM tab2 WHERE - - col0 * + 75 * 74 + - col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4831
SELECT DISTINCT + ( - + col0 ) DIV col0 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4831
SELECT DISTINCT + ( - + col0 ) / col0 AS col1 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT DISTINCT - 1 * col1 + + col1 * - col2 FROM tab0 AS cor0
----
-100
-231
-3888

onlyif mysql # aggregate syntax: 
query I rowsort label-4833
SELECT - - SUM( DISTINCT + - 93 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-4833
SELECT - - SUM ( DISTINCT + - 93 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-279

onlyif mysql # DIV for integer division: 
query I rowsort label-4834
SELECT col2 DIV - + col1 FROM tab1 cor0
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-4834
SELECT col2 / - + col1 FROM tab1 cor0
----
-1
-11
-6

query II rowsort
SELECT + + 12 AS col0, 26 - - col1 FROM tab0 AS cor0
----
12
107
12
27
12
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4836
SELECT ALL - 8 + + ( - MAX( ALL - col1 ) ) FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4836
SELECT ALL - 8 + + ( - MAX ( ALL - col1 ) ) FROM tab2 AS cor0
----
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4837
SELECT ALL 16 AS col0 FROM tab1 AS cor0 WHERE CAST( - col2 AS SIGNED ) NOT BETWEEN + + 42 / + 52 AND - - col1
----
16
16
16

skipif mysql # not compatible
query I rowsort label-4837
SELECT ALL 16 AS col0 FROM tab1 AS cor0 WHERE CAST ( - col2 AS INTEGER ) NOT BETWEEN + + 42 / + 52 AND - - col1
----
16
16
16

query I rowsort
SELECT 95 - - col0 FROM tab0 AS cor0
----
110
182
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4839
SELECT ALL 47 - + 26 * - + CAST( NULL AS SIGNED ) - col0 * - - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4839
SELECT ALL 47 - + 26 * - + CAST ( NULL AS INTEGER ) - col0 * - - 6 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 47 + - col0 * - col0 + + col2 FROM tab1
----
2744
7331
8396

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4841
SELECT ALL - CAST( NULL AS SIGNED ) - - AVG ( ALL + col1 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4841
SELECT ALL - CAST ( NULL AS INTEGER ) - - AVG ( ALL + col1 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 8 * 36 AS col1 FROM tab2
----
-288
-288
-288

query I rowsort
SELECT col2 + col0 + col1 * + - ( col1 ) FROM tab1
----
-2050
-49
119

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL < - - 61 * + - 54
----

query I rowsort
SELECT DISTINCT 7 - col0 * - + col1 FROM tab1
----
4284
432
721

onlyif mysql # aggregate syntax: 
query I rowsort label-4846
SELECT - COUNT( + - 42 ) + 67 FROM tab1
----
64

skipif mysql # not compatible
query I rowsort label-4846
SELECT - COUNT ( + - 42 ) + 67 FROM tab1
----
64

query I rowsort
SELECT + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4848
SELECT + + 53 col1, - CAST( NULL AS SIGNED ) / + 61 AS col2 FROM tab2 AS cor0
----
53
NULL
53
NULL
53
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4848
SELECT + + 53 col1, - CAST ( NULL AS INTEGER ) / + 61 AS col2 FROM tab2 AS cor0
----
53
NULL
53
NULL
53
NULL

query I rowsort
SELECT - - 0 / col2 AS col2 FROM tab1 cor0 WHERE NOT ( NULL ) NOT BETWEEN - 95 * 75 AND + + ( + 14 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4850
SELECT DISTINCT COUNT( * ) AS col0, 63 AS col0 FROM tab1 AS cor0
----
3
63

skipif mysql # not compatible
query II rowsort label-4850
SELECT DISTINCT COUNT ( * ) AS col0, 63 AS col0 FROM tab1 AS cor0
----
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4851
SELECT ALL ( - ( - + COUNT( * ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4851
SELECT ALL ( - ( - + COUNT ( * ) ) ) FROM tab0
----
3

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4853
SELECT + + COUNT( * ) + - ( - 63 ) - + 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-4853
SELECT + + COUNT ( * ) + - ( - 63 ) - + 11 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4854
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4854
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4855
SELECT 27 DIV - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4855
SELECT 27 / - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
0
0

query I rowsort
SELECT - col0 * col0 * + col1 AS col2 FROM tab1 AS cor0
----
-36125
-36414
-389207

query I rowsort
SELECT + 34 * + ( - 98 ) - + 31 FROM tab1 cor0
----
-3363
-3363
-3363

onlyif mysql # aggregate syntax: 
query I rowsort label-4858
SELECT + + SUM( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4858
SELECT + + SUM ( DISTINCT - col1 ) AS col1 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT + col2 * ( + 11 ) AS col0 FROM tab1 AS cor0
----
1056
649
748

query II rowsort
SELECT col1 AS col0, + 98 AS col0 FROM tab1
----
14
98
47
98
5
98

query I rowsort
SELECT DISTINCT ( 10 ) AS col1 FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4862
SELECT + 6 + + ( - COUNT( * ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4862
SELECT + 6 + + ( - COUNT ( * ) ) AS col0 FROM tab1
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 > + + col1 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT ALL COUNT( * ) + COUNT( * ) FROM tab1 AS cor0 WHERE ( 50 * - + col1 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4864
SELECT ALL COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0 WHERE ( 50 * - + col1 ) IS NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) <= 55
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4866
SELECT - COUNT( + col1 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4866
SELECT - COUNT ( + col1 ) FROM tab2 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4867
SELECT DISTINCT - col1 + - col2 + - + 31 * + - CAST( NULL AS SIGNED ) + - - col1 * - col0 * col2 + + col1 col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4867
SELECT DISTINCT - col1 + - col2 + - + 31 * + - CAST ( NULL AS INTEGER ) + - - col1 * - col0 * col2 + + col1 col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( col0 ) * + 39 * - - 57 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4869
SELECT DISTINCT - 77 * - COUNT( DISTINCT + 4 ) AS col1 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-4869
SELECT DISTINCT - 77 * - COUNT ( DISTINCT + 4 ) AS col1 FROM tab0
----
77

query I rowsort
SELECT ALL + + col1 + - 99 AS col0 FROM tab1 AS cor0
----
-52
-85
-94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 + col1 - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + - col2 * - col1 col2 FROM tab0 AS cor0
----
198
220
3854

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 78 / - ( 1 ) + - col1 = - col1 * + ( - - col2 ) / col1 / + col0
----

query I rowsort
SELECT ALL - 86 - col2 FROM tab2 AS cor0
----
-109
-126
-144

onlyif mysql # aggregate syntax: 
query I rowsort label-4875
SELECT - COUNT( * ) * - + ( + 13 ) AS col1 FROM tab1 AS cor0 WHERE col1 * 70 = col2
----
0

skipif mysql # not compatible
query I rowsort label-4875
SELECT - COUNT ( * ) * - + ( + 13 ) AS col1 FROM tab1 AS cor0 WHERE col1 * 70 = col2
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 46 >= - col2
----
15
81
47
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4877
SELECT DISTINCT - COUNT( * ) - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4877
SELECT DISTINCT - COUNT ( * ) - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT ALL - col2 - - - col1 FROM tab0
----
-100
-128
-31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT - col2 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4880
SELECT + 74 * + AVG ( + - col0 ) AS col1 FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) + + col2 IN ( + col2 + - CAST( - col0 AS SIGNED ), - col1 + 94, - + 50 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4880
SELECT + 74 * + AVG ( + - col0 ) AS col1 FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) + + col2 IN ( + col2 + - CAST ( - col0 AS INTEGER ), - col1 + 94, - + 50 )
----
NULL

query I rowsort
SELECT + 51 * + - col1 FROM tab1
----
-2397
-255
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-4882
SELECT ALL - col1 DIV + 8 FROM tab1
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4882
SELECT ALL - col1 / + 8 FROM tab1
----
-1
-5
0

query II rowsort
SELECT ALL col2 AS col2, + 76 AS col1 FROM tab0
----
10
76
47
76
99
76

onlyif mysql # aggregate syntax: 
query I rowsort label-4884
SELECT + + SUM( DISTINCT + + 5 ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-4884
SELECT + + SUM ( DISTINCT + + 5 ) FROM tab0 AS cor0
----
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4885
SELECT - COUNT( * ) AS col0, 80 col0 FROM tab0 cor0
----
-3
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4885
SELECT - COUNT ( * ) AS col0, 80 col0 FROM tab0 cor0
----
-3
80

query I rowsort
SELECT col1 * - col0 * - col0 * 55 + col2 AS col2 FROM tab2 AS cor0
----
17346600
20728183
5935403

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab0 AS cor0 WHERE NULL <= - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 89 - - + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + ( + col2 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4890
SELECT MIN( + 49 ) + + - 20 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col2 - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-4890
SELECT MIN ( + 49 ) + + - 20 AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col2 - col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT ALL + - COUNT( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + - COUNT ( DISTINCT + - col2 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT col0 * ( + col1 ) AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4893
SELECT DISTINCT MAX( ALL - col0 ) AS col2, - COUNT( * ) DIV - 64 AS col0 FROM tab1
----
-51
0

skipif mysql # not compatible
query II rowsort label-4893
SELECT DISTINCT MAX ( ALL - col0 ) AS col2, - COUNT ( * ) / - 64 AS col0 FROM tab1
----
-51
0

query III rowsort
SELECT * FROM tab1 WHERE - 20 * - + col2 / - + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 76 * + col0 AS col2 FROM tab1
----
3876
6460
6916

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 63 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4897
SELECT col1 * + CAST( NULL AS SIGNED ) - + 93 + - ( - 43 ) - 56 * + 91 FROM tab0 AS cor0 WHERE col0 - + col1 IS NULL AND NOT NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-4897
SELECT col1 * + CAST ( NULL AS INTEGER ) - + 93 + - ( - 43 ) - 56 * + 91 FROM tab0 AS cor0 WHERE col0 - + col1 IS NULL AND NOT NULL <> NULL
----

query I rowsort
SELECT + 15 * - 36 + + - col2 * - ( - + col0 ) AS col2 FROM tab0 AS cor0
----
-10143
-1245
-1410

query I rowsort
SELECT ALL + + col2 * - ( 41 ) FROM tab0 cor0
----
-1927
-4059
-410

onlyif mysql # aggregate syntax: 
query II rowsort label-4900
SELECT ALL + COUNT( * ) + 48 AS col0, 42 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - - 19 AND + col0 * - col1 * - col2
----
48
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4900
SELECT ALL + COUNT ( * ) + 48 AS col0, 42 col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col2 * - - 19 AND + col0 * - col1 * - col2
----
48
42

query I rowsort
SELECT DISTINCT col0 - + - col1 AS col2 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4902
SELECT COUNT( * ) * - 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-450

skipif mysql # not compatible
query I rowsort label-4902
SELECT COUNT ( * ) * - 50 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-450

onlyif mysql # aggregate syntax: 
query I rowsort label-4903
SELECT ALL + 19 * + + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
171

skipif mysql # not compatible
query I rowsort label-4903
SELECT ALL + 19 * + + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
171

query I rowsort
SELECT DISTINCT - ( + - ( - col0 ) ) + - 8 FROM tab0 AS cor0
----
-105
-23
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 40 - col0 - col1 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 - + 17 col0 FROM tab0 cor0
----
-104
-114
-32

query I rowsort
SELECT - + col1 - + 45 FROM tab0 cor0
----
-126
-46
-66

query I rowsort
SELECT col2 * - - col2 FROM tab0 WHERE NOT - 30 + col0 - + 85 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4909
SELECT ALL COUNT( * ) DIV SUM( DISTINCT - col0 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL COUNT ( * ) / SUM ( DISTINCT - col0 ) FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4910
SELECT ALL + CAST( - AVG ( - col1 ) AS SIGNED ) * - - 57 FROM tab2 WHERE NULL IS NULL
----
3705

skipif mysql # not compatible
query I rowsort label-4910
SELECT ALL + CAST ( - AVG ( - col1 ) AS INTEGER ) * - - 57 FROM tab2 WHERE NULL IS NULL
----
3705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT 70 * + + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4911
SELECT 70 * + + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4912
SELECT DISTINCT - CAST( + 26 AS SIGNED ) AS col0, COUNT( * ) AS col1 FROM tab1
----
-26
3

skipif mysql # not compatible
query II rowsort label-4912
SELECT DISTINCT - CAST ( + 26 AS INTEGER ) AS col0, COUNT ( * ) AS col1 FROM tab1
----
-26
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL + 75 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST( 84 AS SIGNED ) <> NULL )
----

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL + 75 AS col2 FROM tab0 AS cor0 WHERE NOT ( + CAST ( 84 AS INTEGER ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4914
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-4914
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT + col0 * + 64 AS col1 FROM tab2 AS cor0
----
2944
4096
4800

query I rowsort
SELECT ALL col1 - + ( 82 ) FROM tab1 AS cor0 WHERE NOT + 2 * col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT + SUM( + - col1 ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4917
SELECT + SUM ( + - col1 ) FROM tab0 AS cor0
----
-103

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 0 = + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4919
SELECT - ( + - 28 ) * COUNT( * ) * + 93 + + ( - + MIN( + - 60 ) ) AS col1 FROM tab1 AS cor0
----
7872

skipif mysql # not compatible
query I rowsort label-4919
SELECT - ( + - 28 ) * COUNT ( * ) * + 93 + + ( - + MIN ( + - 60 ) ) AS col1 FROM tab1 AS cor0
----
7872

query I rowsort
SELECT + 79 + - col1 * 18 FROM tab0 AS cor0
----
-1379
-299
61

onlyif mysql # aggregate syntax: 
query II rowsort label-4921
SELECT ALL COUNT( * ) AS col0, + 81 AS col0 FROM tab1
----
3
81

skipif mysql # not compatible
query II rowsort label-4921
SELECT ALL COUNT ( * ) AS col0, + 81 AS col0 FROM tab1
----
3
81

query III rowsort
SELECT * FROM tab0 WHERE ( - 55 + + ( + - ( + col1 ) ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4923
SELECT 83 DIV col1 + - col1 FROM tab2
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-4923
SELECT 83 / col1 + - col1 FROM tab2
----
-50
-66
-76

query III rowsort
SELECT * FROM tab1 WHERE NULL >= ( - col1 )
----

query I rowsort
SELECT ALL - col1 * - col2 FROM tab1 WHERE 9 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4926
SELECT ALL ( COUNT( * ) ) + + COUNT( - col2 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL ( COUNT ( * ) ) + + COUNT ( - col2 ) AS col2 FROM tab0
----
6

onlyif mysql # DIV for integer division: 
query II rowsort label-4927
SELECT col1, + col1 DIV - col0 FROM tab2 AS cor0
----
51
-1
67
0
77
-1

skipif mysql # not compatible
query II rowsort label-4927
SELECT col1, + col1 / - col0 FROM tab2 AS cor0
----
51
-1
67
0
77
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-4928
SELECT ALL + - col1 DIV - col1 + - 56 FROM tab0 AS cor0
----
-55
-55
-55

skipif mysql # not compatible
query I rowsort label-4928
SELECT ALL + - col1 / - col1 + - 56 FROM tab0 AS cor0
----
-55
-55
-55

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 45 + - - col1 BETWEEN + col1 AND - col0 + + col2 * - col2 * - - 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT 55, 84 AS col0 FROM tab0 AS cor0
----
55
84
55
84
55
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4931
SELECT DISTINCT - col1 * - col1 + - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4931
SELECT DISTINCT - col1 * - col1 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - 76 + 24 + col1 + - - col2 - + 40 * - col2 FROM tab2 AS cor0
----
1665
2393
942

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 18
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4934
SELECT - ( + COUNT( + 56 ) ) + 35 AS col1 FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4934
SELECT - ( + COUNT ( + 56 ) ) + 35 AS col1 FROM tab0 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4935
SELECT col2 / + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4935
SELECT col2 / + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT NULL < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col0, - col2 FROM tab1
----
-14
-96
-47
-68
-5
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * 50 col1 FROM tab2
----
2300
3200
3750

query I rowsort
SELECT + col2 * + ( + - 15 ) + + - 83 FROM tab0 AS cor0
----
-1568
-233
-788

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col2 NOT BETWEEN 23 * - 54 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 + 60 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col2 NOT BETWEEN + col0 - + col0 AND - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - + ( + 38 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4944
SELECT 41 + - col1 * - + CAST( + 20 AS SIGNED ) col1 FROM tab1
----
141
321
981

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4944
SELECT 41 + - col1 * - + CAST ( + 20 AS INTEGER ) col1 FROM tab1
----
141
321
981

query I rowsort
SELECT col0 + + - 36 FROM tab2
----
10
28
39

query I rowsort
SELECT ALL + col1 AS col0 FROM tab1 WHERE - 61 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT 90 + + ( + ( - - 65 ) ) * + SUM( + col1 ) FROM tab0
----
6785

skipif mysql # not compatible
query I rowsort label-4947
SELECT 90 + + ( + ( - - 65 ) ) * + SUM ( + col1 ) FROM tab0
----
6785

query I rowsort
SELECT ALL col0 + ( + 73 ) AS col1 FROM tab0 AS cor0
----
160
170
88

query I rowsort
SELECT ALL + 78 + 8 AS col2 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT ALL - col0 + - col2 + - + col0 + + col1 + + 72 * + col1 AS col1 FROM tab2 cor0
----
3608
4683
5453

onlyif mysql # aggregate syntax: 
query I rowsort label-4951
SELECT + 43 * - ( + COUNT( * ) ) FROM tab2 cor0
----
-129

skipif mysql # not compatible
query I rowsort label-4951
SELECT + 43 * - ( + COUNT ( * ) ) FROM tab2 cor0
----
-129

query I rowsort
SELECT 61 FROM tab1 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL - 69 * + - col0 FROM tab1
----
3519
5865
6279

onlyif mysql # aggregate syntax: 
query II rowsort label-4954
SELECT + MIN( DISTINCT + ( col1 ) ) * + 41 * + COUNT( * ) col2, + COUNT( * ) FROM tab0
----
123
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4954
SELECT + MIN ( DISTINCT + ( col1 ) ) * + 41 * + COUNT ( * ) col2, + COUNT ( * ) FROM tab0
----
123
3

query I rowsort
SELECT DISTINCT + 87 AS col2 FROM tab0 WHERE NULL IS NULL
----
87

onlyif mysql # DIV for integer division: 
query I rowsort label-4956
SELECT col0 - - - 43 - + col2 DIV 20 col0 FROM tab2
----
19
2
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4956
SELECT col0 - - - 43 - + col2 / 20 col0 FROM tab2
----
19
2
30

query I rowsort
SELECT 79 - 55 AS col2 FROM tab1
----
24
24
24

query I rowsort
SELECT col0 + + 43 AS col0 FROM tab0
----
130
140
58

query I rowsort
SELECT - 30 + - 81 FROM tab1
----
-111
-111
-111

query I rowsort
SELECT - col2 + + - col0 * 74 + col2 FROM tab1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-4961
SELECT DISTINCT + SUM( 96 ) FROM tab2
----
288

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + SUM ( 96 ) FROM tab2
----
288

query I rowsort
SELECT 60 + - 84 * + 5 AS col2 FROM tab0 cor0
----
-360
-360
-360

query I rowsort
SELECT - + col1 * - 77 + - col0 FROM tab1 AS cor0
----
1027
300
3528

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - 39 col1 FROM tab2 cor0
----
12
28
38

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 48 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col1 AS col1, col2 + + col2 * ( + 63 ) * - 48 * + col0 AS col1 FROM tab0
----
-1
-29039373
-21
-2630870
-81
-2131873

query I rowsort
SELECT DISTINCT 48 - - col1 + - 70 AS col1 FROM tab2
----
29
45
55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 20 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col2, - 26 + + - col1 AS col2 FROM tab2 AS cor0
----
51
-77
67
-93
77
-103

query II rowsort
SELECT DISTINCT col0 AS col2, 30 FROM tab0 AS cor0
----
15
30
87
30
97
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4971
SELECT - 2 DIV COUNT( * ) DIV + COUNT( ALL + - col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4971
SELECT - 2 / COUNT ( * ) / + COUNT ( ALL + - col2 ) AS col2 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + - col2 <> + + 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 * - 2 FROM tab1
----
-10
-28
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 48 * 47 * + col2 col0 FROM tab1
----
133104
153408
216576

query I rowsort
SELECT ALL - 70 * col1 AS col1 FROM tab0 AS cor0
----
-1470
-5670
-70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 73 + + + col0 - + - col1 AND NULL
----

query I rowsort
SELECT ALL - + 29 + - col1 AS col2 FROM tab1 cor0
----
-34
-43
-76

query I rowsort
SELECT DISTINCT + col2 * + 89 FROM tab2 cor0
----
2047
3560
5162

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 91 * + - 97 / 15 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4980
SELECT ALL COUNT( * ) + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4980
SELECT ALL COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL col0, col1 FROM tab0 AS cor0 WHERE 4 IS NOT NULL
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4982
SELECT ALL - 47 * + 17 - - + col0 * + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4982
SELECT ALL - 47 * + 17 - - + col0 * + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + + ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT - col1 + 25 * - 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-4984
SELECT - col1 + 25 * - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4985
SELECT ALL col1 DIV - 16 FROM tab2
----
-3
-4
-4

skipif mysql # not compatible
query I rowsort label-4985
SELECT ALL col1 / - 16 FROM tab2
----
-3
-4
-4

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + col0 * + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4987
SELECT ALL + 45 DIV - MIN( - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + 45 / - MIN ( - col1 ) FROM tab0 AS cor0
----
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 65 IS NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

query II rowsort
SELECT DISTINCT + 36 * - ( - col2 ) AS col1, + col0 FROM tab0
----
1692
15
3564
97
360
87

onlyif mysql # aggregate syntax: 
query I rowsort label-4990
SELECT DISTINCT + + COUNT( * ) + COUNT( + + 14 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

skipif mysql # not compatible
query I rowsort label-4990
SELECT DISTINCT + + COUNT ( * ) + COUNT ( + + 14 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4991
SELECT + col0, col2 FROM tab2 AS cor0 WHERE NOT + col1 + + + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4991
SELECT + col0, col2 FROM tab2 AS cor0 WHERE NOT + col1 + + + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4992
SELECT ALL - - COUNT( + + col1 ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4992
SELECT ALL - - COUNT ( + + col1 ) col0 FROM tab2 AS cor0
----
3

query II rowsort
SELECT + 95 AS col0, + col2 FROM tab1 AS cor0
----
95
59
95
68
95
96

query I rowsort
SELECT - 22 * - col2 AS col2 FROM tab2 AS cor0
----
1276
506
880

query II rowsort
SELECT + 15 AS col1, 27 AS col1 FROM tab2 AS cor0
----
15
27
15
27
15
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - + 60
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4997
SELECT col1 DIV + - 87 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4997
SELECT col1 / + - 87 FROM tab0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 * + - col2 AS col0 FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT ALL col2, 71 + + - col2 AS col2 FROM tab0
----
10
61
47
24
99
-28

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5000
SELECT * FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5000
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col2 )
----

query I rowsort
SELECT + col1 * 52 AS col2 FROM tab0 AS cor0
----
1092
4212
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + col1 ) col1, col0 + - 71 AS col1 FROM tab1 AS cor0
----
-14
-20
-47
20
-5
14

query I rowsort
SELECT ALL - 63 + + 35 + col1 FROM tab2 AS cor0
----
23
39
49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 <> - + col2 * - col2 + - col1 / 61
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col0 * + + col2 * - + col2 + + - 49 AS col2 FROM tab2 AS cor0
----
102351
24285
252251

onlyif mysql # aggregate syntax: 
query I rowsort label-5007
SELECT ALL + 9 - - COUNT( ALL - 77 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5007
SELECT ALL + 9 - - COUNT ( ALL - 77 ) FROM tab0 AS cor0
----
12

query I rowsort
SELECT ALL ( - col0 ) * - col2 * + - col2 + + col1 * col2 AS col2 FROM tab1 AS cor0
----
-295590
-417588
-468672

onlyif mysql # aggregate syntax: 
query I rowsort label-5009
SELECT DISTINCT + COUNT( ALL + - 48 ) FROM tab2 AS cor0 WHERE NOT + col2 + ( ( + ( col0 ) ) ) - - col0 * + + col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + COUNT ( ALL + - 48 ) FROM tab2 AS cor0 WHERE NOT + col2 + ( ( + ( col0 ) ) ) - - col0 * + + col0 IS NULL
----
3

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NULL = col2
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5011
SELECT CAST( NULL AS DECIMAL ) - - SUM( ALL 55 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5011
SELECT CAST ( NULL AS REAL ) - - SUM ( ALL 55 ) AS col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5012
SELECT DISTINCT - 27, COUNT( * ) + 28 AS col2 FROM tab0
----
-27
31

skipif mysql # not compatible
query II rowsort label-5012
SELECT DISTINCT - 27, COUNT ( * ) + 28 AS col2 FROM tab0
----
-27
31

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5013
SELECT ALL * FROM tab0 WHERE ( NOT 96 * + col1 * + CAST( col1 AS DECIMAL ) IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-5013
SELECT ALL * FROM tab0 WHERE ( NOT 96 * + col1 * + CAST ( col1 AS REAL ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5014
SELECT + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5014
SELECT + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT DISTINCT + COUNT( * ) + + 38 FROM tab2 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-5015
SELECT DISTINCT + COUNT ( * ) + + 38 FROM tab2 AS cor0
----
41

query I rowsort
SELECT ALL + - 27 * - col1 FROM tab1 AS cor0
----
1269
135
378

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 AS col0 FROM tab0 AS cor0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5018
SELECT + + col2 * - col1 FROM tab2 AS cor0 WHERE NOT 70 * - CAST( NULL AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-5018
SELECT + + col2 * - col1 FROM tab2 AS cor0 WHERE NOT 70 * - CAST ( NULL AS INTEGER ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT ALL - 36 * - - COUNT( * ) FROM tab1 cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5019
SELECT ALL - 36 * - - COUNT ( * ) FROM tab1 cor0
----
-108

query I rowsort
SELECT ALL + + ( - + col0 ) * + col0 * - col0 FROM tab2 AS cor0
----
262144
421875
97336

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5021
SELECT * FROM tab1 WHERE NOT col0 * - col0 + + CAST( NULL AS SIGNED ) < 24
----

skipif mysql # not compatible
query III rowsort label-5021
SELECT * FROM tab1 WHERE NOT col0 * - col0 + + CAST ( NULL AS INTEGER ) < 24
----

query I rowsort
SELECT ALL col0 * col1 - - col2 FROM tab2
----
2369
4968
5083

query I rowsort
SELECT col0 + + col2 * - col0 FROM tab2
----
-1012
-2496
-4275

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 + col1 * col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5025
SELECT ALL + CAST( NULL AS SIGNED ) + ( COUNT( * ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT ALL + CAST ( NULL AS INTEGER ) + ( COUNT ( * ) ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - 59 * col2 )
----

query I rowsort
SELECT DISTINCT col1 * - col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + - ( col2 ) col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL - ( ( MIN( ALL col1 ) ) ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL - ( ( MIN ( ALL col1 ) ) ) FROM tab2
----
-51

query I rowsort
SELECT ALL 35 * - col0 + + col1 AS col1 FROM tab1
----
-1771
-2970
-3138

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT ALL MIN( DISTINCT 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-5031
SELECT ALL MIN ( DISTINCT 67 ) FROM tab0
----
67

query III rowsort
SELECT * FROM tab0 WHERE ( col0 * - 38 ) IS NULL
----

query I rowsort
SELECT 18 FROM tab1 WHERE ( - col1 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( - 97 ) IS NULL
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NULL ) = - col0
----

query I rowsort
SELECT + 48 * col0 + 23 * col0 FROM tab2
----
3266
4544
5325

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 45 * ( 95 * col1 ) ) >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 12 + col0 ) BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5039
SELECT COUNT( * ) + 88 * 43 AS col0 FROM tab1 WHERE NULL <= col1 / 96
----
3784

skipif mysql # not compatible
query I rowsort label-5039
SELECT COUNT ( * ) + 88 * 43 AS col0 FROM tab1 WHERE NULL <= col1 / 96
----
3784

query I rowsort
SELECT DISTINCT + ( - col2 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN - 37 AND - col0
----

query I rowsort
SELECT ALL + ( col0 ) - + 0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5042
SELECT - 26 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5042
SELECT - 26 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5043
SELECT - 60 * + CAST( + 71 AS SIGNED ) AS col1 FROM tab1
----
-4260
-4260
-4260

skipif mysql # not compatible
query I rowsort label-5043
SELECT - 60 * + CAST ( + 71 AS INTEGER ) AS col1 FROM tab1
----
-4260
-4260
-4260

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5044
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5044
SELECT * FROM tab1 WHERE NOT - col0 NOT IN ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5045
SELECT ALL col1 - 34 DIV - 61 AS col2 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5045
SELECT ALL col1 - 34 / - 61 AS col2 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5046
SELECT ALL CAST( 98 AS SIGNED ) FROM tab1 WHERE - 18 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5046
SELECT ALL CAST ( 98 AS INTEGER ) FROM tab1 WHERE - 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5047
SELECT * FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND - col0 + + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + 76
----

skipif mysql # not compatible
query III rowsort label-5047
SELECT * FROM tab0 WHERE ( + col1 ) BETWEEN NULL AND - col0 + + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + 76
----

query I rowsort
SELECT ALL + col2 * + 47 + - col2 * ( + col0 ) FROM tab1 AS cor0
----
-2242
-2992
-384

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + COUNT( * ) * - 25 AS col1 FROM tab1 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5049
SELECT + COUNT ( * ) * - 25 AS col1 FROM tab1 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col0 - + 99 FROM tab1 AS cor0
----
-14
-48
-8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - col1 ) IN ( - ( col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 46 * col0 + 40 col0 FROM tab0 AS cor0
----
4042
4502
730

query I rowsort
SELECT + col0 + ( - 71 ) AS col2 FROM tab1 AS cor0
----
-20
14
20

query I rowsort
SELECT col1 + + 18 AS col2 FROM tab0 cor0
----
19
39
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = - col2 + 75 * - 4
----

query I rowsort
SELECT - + col0 + + ( col0 ) AS col2 FROM tab2 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5057
SELECT ALL * FROM tab0 WHERE + 34 + - col1 > ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5057
SELECT ALL * FROM tab0 WHERE + 34 + - col1 > ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5058
SELECT DISTINCT + COUNT( * ) - - - CAST( NULL AS SIGNED ) + - COUNT( * ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5058
SELECT DISTINCT + COUNT ( * ) - - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5059
SELECT DISTINCT COUNT( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5059
SELECT DISTINCT COUNT ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col0 * - 34 ) BETWEEN NULL AND ( col2 )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( + col2 + 44 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 69 >= ( + col2 )
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT DISTINCT MIN( ALL 64 ) AS col2 FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-5063
SELECT DISTINCT MIN ( ALL 64 ) AS col2 FROM tab2
----
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 - col0 col0 FROM tab0
----
-20
-30
52

query I rowsort
SELECT ALL + col1 * + col1 * col2 AS col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT ALL col1 * 96 FROM tab1 AS cor0
----
1344
4512
480

query I rowsort
SELECT DISTINCT - col1 * 58 + 46 AS col2 FROM tab2 AS cor0
----
-2912
-3840
-4420

onlyif mysql # aggregate syntax: 
query I rowsort label-5068
SELECT + 25 * - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-5068
SELECT + 25 * - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5069
SELECT DISTINCT - - SUM( 93 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
837

skipif mysql # not compatible
query I rowsort label-5069
SELECT DISTINCT - - SUM ( 93 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
837

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5070
SELECT DISTINCT - COUNT( * ) DIV - COUNT( ALL + col0 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5070
SELECT DISTINCT - COUNT ( * ) / - COUNT ( ALL + col0 ) AS col2 FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5071
SELECT ALL + COUNT( ALL 22 ) * + + SUM( ALL CAST( NULL AS SIGNED ) ) * MIN( col2 - col1 ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5071
SELECT ALL + COUNT ( ALL 22 ) * + + SUM ( ALL CAST ( NULL AS INTEGER ) ) * MIN ( col2 - col1 ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5072
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( + col0 AS SIGNED ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5072
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) * + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5073
SELECT COUNT( * ), - 94 AS col1 FROM tab0 AS cor0
----
3
-94

skipif mysql # not compatible
query II rowsort label-5073
SELECT COUNT ( * ), - 94 AS col1 FROM tab0 AS cor0
----
3
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT + MAX( ALL - 27 ) col2 FROM tab1 AS cor0
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5074
SELECT + MAX ( ALL - 27 ) col2 FROM tab1 AS cor0
----
-27

query II rowsort
SELECT col1, + 32 FROM tab1 AS cor0
----
14
32
47
32
5
32

onlyif mysql # DIV for integer division: 
query I rowsort label-5076
SELECT DISTINCT - - col0 DIV + col1 AS col0 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-5076
SELECT DISTINCT - - col0 / + col1 AS col0 FROM tab0 AS cor0
----
0
4
97

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + ( 43 ) )
----

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 - 57 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
51
85
91

query I rowsort
SELECT 47 * - col1 AS col1 FROM tab1 WHERE NOT - 74 + - 46 NOT IN ( 12 * 75 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT SUM( DISTINCT col1 ) AS col0 FROM tab0 WHERE NOT 20 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-5081
SELECT SUM ( DISTINCT col1 ) AS col0 FROM tab0 WHERE NOT 20 IS NULL
----
103

onlyif mysql # DIV for integer division: 
query I rowsort label-5082
SELECT ALL 51 DIV + col1 AS col2 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5082
SELECT ALL 51 / + col1 AS col2 FROM tab2
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5083
SELECT - 90 DIV - - col1 col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5083
SELECT - 90 / - - col1 col0 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE 12 + + 89 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + + ( + - col2 ) ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + col2 * 76 AS col2 FROM tab0
----
3572
7524
760

query III rowsort
SELECT * FROM tab0 WHERE + - col1 BETWEEN ( NULL ) AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5088
SELECT ALL - 38 + + CAST( - - col1 AS SIGNED ) + - 23 * col1 FROM tab1
----
-1072
-148
-346

skipif mysql # not compatible
query I rowsort label-5088
SELECT ALL - 38 + + CAST ( - - col1 AS INTEGER ) + - 23 * col1 FROM tab1
----
-1072
-148
-346

onlyif mysql # aggregate syntax: 
query II rowsort label-5089
SELECT DISTINCT MIN( ALL + + 85 ) AS col2, 82 * 81 + - COUNT( * ) FROM tab2
----
85
6639

skipif mysql # not compatible
query II rowsort label-5089
SELECT DISTINCT MIN ( ALL + + 85 ) AS col2, 82 * 81 + - COUNT ( * ) FROM tab2
----
85
6639

query I rowsort
SELECT ALL - col1 + + 86 FROM tab2 AS cor0
----
19
35
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5091
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 49 NOT IN ( ( 46 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5091
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 49 NOT IN ( ( 46 ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5092
SELECT + ( col2 ) * + - col2 + - CAST( NULL AS SIGNED ) - - 51 * 29 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5092
SELECT + ( col2 ) * + - col2 + - CAST ( NULL AS INTEGER ) - - 51 * 29 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 3 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + col2 * - 50 col2 FROM tab2
----
-1099
-1923
-2833

query I rowsort
SELECT ALL + 58 * col2 + + - col0 AS col1 FROM tab2 cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( - col1 ) AND ( NULL )
----

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NULL <= ( + 73 ) + - col0
----

query I rowsort
SELECT DISTINCT - - col1 + + + col0 + + - 8 * + col1 FROM tab0 AS cor0
----
-552
-60
90

onlyif mysql # DIV for integer division: 
query I rowsort label-5099
SELECT ALL + + 58 DIV + + col1 - - ( + col1 ) AS col1 FROM tab2 cor0
----
52
67
77

skipif mysql # not compatible
query I rowsort label-5099
SELECT ALL + + 58 / + + col1 - - ( + col1 ) AS col1 FROM tab2 cor0
----
52
67
77

query I rowsort
SELECT DISTINCT 34 + - col2 + 29 FROM tab0 AS cor0
----
-36
16
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5101
SELECT ALL CAST( NULL AS SIGNED ) + - - CAST( - + ( col0 ) AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT ALL CAST ( NULL AS INTEGER ) + - - CAST ( - + ( col0 ) AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 60 + col1 AS col0 FROM tab1 WHERE + col1 + col0 <= NULL
----

query I rowsort
SELECT DISTINCT 42 - - 13 FROM tab1
----
55

query I rowsort
SELECT - + col2 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5105
SELECT CAST( - + COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5105
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5106
SELECT ALL + ( CAST( + col1 AS SIGNED ) ) FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5106
SELECT ALL + ( CAST ( + col1 AS INTEGER ) ) FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT 41 * + - col0 FROM tab0
----
-3567
-3977
-615

onlyif mysql # aggregate syntax: 
query I rowsort label-5108
SELECT ALL + - SUM( - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-5108
SELECT ALL + - SUM ( - + col2 ) FROM tab0 AS cor0
----
156

query I rowsort
SELECT - 52 AS col0 FROM tab1 cor0 WHERE NOT ( - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT ALL - MIN( 11 ) - 11 + 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-15

skipif mysql # not compatible
query I rowsort label-5110
SELECT ALL - MIN ( 11 ) - 11 + 7 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5111
SELECT ALL CAST( - COUNT( * ) AS SIGNED ) AS col1, + 54 AS col1 FROM tab0
----
-3
54

skipif mysql # not compatible
query II rowsort label-5111
SELECT ALL CAST ( - COUNT ( * ) AS INTEGER ) AS col1, + 54 AS col1 FROM tab0
----
-3
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5112
SELECT DISTINCT COUNT( ALL 58 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5112
SELECT DISTINCT COUNT ( ALL 58 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT - col2 * - 33 FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN ( - ( + col0 ) ) AND ( col0 * - + col0 * col0 / + 12 + 3 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5114
SELECT ALL + - COUNT( * ) * 81 AS col0 FROM tab1 cor0
----
-243

skipif mysql # not compatible
query I rowsort label-5114
SELECT ALL + - COUNT ( * ) * 81 AS col0 FROM tab1 cor0
----
-243

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5115
SELECT ALL - MAX( ALL 70 ) DIV - + COUNT( - ( 51 ) ) AS col0, 76 AS col0 FROM tab0 AS cor0
----
23
76

skipif mysql # not compatible
query II rowsort label-5115
SELECT ALL - MAX ( ALL 70 ) / - + COUNT ( - ( 51 ) ) AS col0, 76 AS col0 FROM tab0 AS cor0
----
23
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5116
SELECT DISTINCT - COUNT( * ) + MIN( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-5116
SELECT DISTINCT - COUNT ( * ) + MIN ( ALL + + col0 ) AS col1 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5117
SELECT + + MAX( DISTINCT 3 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5117
SELECT + + MAX ( DISTINCT 3 ) col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + + col2 ) + 99 FROM tab2
----
122
139
157

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + 36 + - + col2 + ( col1 ) col0 FROM tab1
----
106
5
67

query I rowsort
SELECT col0 + - 13 AS col0 FROM tab2
----
33
51
62

query I rowsort
SELECT + col2 + + 47 AS col0 FROM tab0
----
146
57
94

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5123
SELECT ALL + 18 AS col2, - 31 + col1 * col0 / - 72 + + + CAST( NULL AS SIGNED ) / - - col0 AS col0 FROM tab2
----
18
NULL
18
NULL
18
NULL

skipif mysql # not compatible
query II rowsort label-5123
SELECT ALL + 18 AS col2, - 31 + col1 * col0 / - 72 + + + CAST ( NULL AS INTEGER ) / - - col0 AS col0 FROM tab2
----
18
NULL
18
NULL
18
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( - + 87 / + + col0 * - + col1 - + ( col2 ) * 81 - col0 ) <= col0 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5125
SELECT DISTINCT + ( col2 ) + + 97 + - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5125
SELECT DISTINCT + ( col2 ) + + 97 + - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5126
SELECT SUM( - 85 ) + + MAX( - 47 ) AS col2 FROM tab2
----
-302

skipif mysql # not compatible
query I rowsort label-5126
SELECT SUM ( - 85 ) + + MAX ( - 47 ) AS col2 FROM tab2
----
-302

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5127
SELECT DISTINCT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE col0 IS NULL
----

skipif mysql # not compatible
query I rowsort label-5127
SELECT DISTINCT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5128
SELECT + 67 AS col0, COUNT( * ) AS col1 FROM tab0 AS cor0
----
67
3

skipif mysql # not compatible
query II rowsort label-5128
SELECT + 67 AS col0, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
67
3

query I rowsort
SELECT - col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT col2 * + col2 + ( 23 ) + + + col2 FROM tab0 cor0
----
133
2279
9923

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) <> ( + col2 + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5132
SELECT ALL - - 94, MIN( - col2 ) AS col1 FROM tab1 AS cor0
----
94
-96

skipif mysql # not compatible
query II rowsort label-5132
SELECT ALL - - 94, MIN ( - col2 ) AS col1 FROM tab1 AS cor0
----
94
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-5133
SELECT + 31 DIV - 76 FROM tab0 WHERE ( NOT - col1 * - 57 + + col2 DIV 34 + 65 IS NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5133
SELECT + 31 / - 76 FROM tab0 WHERE ( NOT - col1 * - 57 + + col2 / 34 + 65 IS NULL )
----
0
0
0

query I rowsort
SELECT + 39 + + col0 AS col1 FROM tab0
----
126
136
54

query I rowsort
SELECT + - 1 + - col1 + col1 AS col2 FROM tab1 AS cor0
----
-1
-1
-1

query I rowsort
SELECT DISTINCT + ( 89 ) AS col0 FROM tab0 AS cor0
----
89

onlyif mysql # DIV for integer division: 
query II rowsort label-5137
SELECT DISTINCT - col1 + + col0 * col2 + - - col2 AS col2, - 13 + col1 * col0 DIV + col0 col2 FROM tab2 AS cor0
----
1030
38
2523
64
4341
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5137
SELECT DISTINCT - col1 + + col0 * col2 + - - col2 AS col2, - 13 + col1 * col0 / + col0 col2 FROM tab2 AS cor0
----
1030
38
2523
64
4341
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5138
SELECT DISTINCT + COUNT( + - col1 ) + + + ( 96 ) * + MIN( DISTINCT - 48 ) col1 FROM tab0 AS cor0 WHERE NOT NULL > ( + col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5138
SELECT DISTINCT + COUNT ( + - col1 ) + + + ( 96 ) * + MIN ( DISTINCT - 48 ) col1 FROM tab0 AS cor0 WHERE NOT NULL > ( + col2 )
----
NULL

query I rowsort
SELECT - ( - col0 ) + - ( 71 ) FROM tab0 AS cor0
----
-56
16
26

query I rowsort
SELECT ALL - 97 + + + col0 * col2 FROM tab2 AS cor0
----
2463
4253
961

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5141
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5141
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT - 90 * - - col0 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5142
SELECT - 90 * - - col0 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5143
SELECT + - 92 DIV col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT + - 92 / col2 AS col0 FROM tab1 AS cor0
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5144
SELECT 77 - - + MAX( 87 ) col1 FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
164

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5144
SELECT 77 - - + MAX ( 87 ) col1 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5145
SELECT + - CAST( - + col1 AS SIGNED ) * + - col0 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5145
SELECT + - CAST ( - + col1 AS INTEGER ) * + - col0 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5146
SELECT - MIN( + + col2 ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-5146
SELECT - MIN ( + + col2 ) FROM tab1
----
-59

query I rowsort
SELECT ALL + ( - + col1 ) - col0 / + + col2 AS col0 FROM tab1 WHERE ( - col2 ) = ( NULL )
----

query I rowsort
SELECT + ( - col1 ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 95 * 61 * + col0 AS col2 FROM tab2
----
266570
370880
434625

query I rowsort
SELECT ALL 20 * + + 95 AS col0 FROM tab2
----
1900
1900
1900

onlyif mysql # DIV for integer division: 
query II rowsort label-5151
SELECT ALL - 89 AS col0, col1 + + col1 DIV 20 * + ( + + col0 ) FROM tab1
----
-89
14
-89
229
-89
5

skipif mysql # not compatible
query II rowsort label-5151
SELECT ALL - 89 AS col0, col1 + + col1 / 20 * + ( + + col0 ) FROM tab1
----
-89
14
-89
229
-89
5

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( - col0 ) AND NOT - 51 BETWEEN - 30 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL MAX( 16 ) AS col0 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL MAX ( 16 ) AS col0 FROM tab1
----
16

query I rowsort
SELECT + ( + 21 ) FROM tab0 cor0
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + + col1 IS NOT NULL
----
0

query I rowsort
SELECT + col0 * + + 71 * ( - - col2 ) + - + col0 + + col1 FROM tab1 AS cor0 WHERE NOT - 18 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 BETWEEN - col1 AND col1 + - col2 - - - col2 * 19 * col0 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5157
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE NOT ( NOT + col1 BETWEEN - col1 AND col1 + - col2 - - - col2 * 19 * col0 )
----
0

query I rowsort
SELECT DISTINCT + col1 - 92 * 2 AS col0 FROM tab2 AS cor0 WHERE NOT ( - 52 * + - col0 ) IS NULL
----
-107
-117
-133

onlyif mysql # DIV for integer division: 
query I rowsort label-5159
SELECT - col0 DIV col2 * col1 AS col1 FROM tab1 AS cor0
----
-47
-5
0

skipif mysql # not compatible
query I rowsort label-5159
SELECT - col0 / col2 * col1 AS col1 FROM tab1 AS cor0
----
-47
-5
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5160
SELECT ALL - ( - - CAST( + + 46 AS SIGNED ) ) FROM tab0
----
-46
-46
-46

skipif mysql # not compatible
query I rowsort label-5160
SELECT ALL - ( - - CAST ( + + 46 AS INTEGER ) ) FROM tab0
----
-46
-46
-46

query I rowsort
SELECT DISTINCT - 57 + + 15 FROM tab2 WHERE NULL = col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 + col0 col0 FROM tab0
----
164
174
92

query I rowsort
SELECT DISTINCT - ( col0 ) + + col0 - + col1 FROM tab2
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5164
SELECT + col1 * col0 DIV col2 + - col2 AS col0 FROM tab1 AS cor0
----
-52
-6
-89

skipif mysql # not compatible
query I rowsort label-5164
SELECT + col1 * col0 / col2 + - col2 AS col0 FROM tab1 AS cor0
----
-52
-6
-89

query II rowsort
SELECT - col0, + 32 AS col1 FROM tab0 AS cor0
----
-15
32
-87
32
-97
32

query I rowsort
SELECT DISTINCT ( - 86 ) FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-86

query II rowsort
SELECT ALL - + 21, col2 FROM tab0 AS cor0
----
-21
10
-21
47
-21
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT + - COUNT( col1 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5168
SELECT + - COUNT ( col1 ) FROM tab1 cor0
----
-3

query II rowsort
SELECT col2 * + col1, - col2 + - 93 AS col0 FROM tab1
----
1344
-189
295
-152
3196
-161

query I rowsort
SELECT DISTINCT + 61 + - - 44 AS col0 FROM tab1
----
105

query I rowsort
SELECT DISTINCT - ( + col0 ) + col2 FROM tab0
----
-77
2
32

query III rowsort
SELECT * FROM tab2 WHERE - col0 + - + col1 + - col1 * 19 BETWEEN NULL AND - col0 / - + 70 + col0 / - col0
----

query I rowsort
SELECT - + 23 * + 33 * col2 + + 93 + - - col0 FROM tab1 AS cor0
----
-44603
-51428
-72720

query I rowsort
SELECT ALL - + col0 - - + col1 AS col2 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5175
SELECT COUNT( * ) * + + MIN( ALL + ( + - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5175
SELECT COUNT ( * ) * + + MIN ( ALL + ( + - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) = + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 * 80 = NULL
----

query I rowsort
SELECT - col1 * 60 * col1 AS col0 FROM tab0 AS cor0
----
-26460
-393660
-60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 23, ( - 77 ) * - - ( + + col2 ) col2 FROM tab0 AS cor0
----
-23
-3619
-23
-7623
-23
-770

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 65 >= + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 ) <> col2 - 45
----

query I rowsort
SELECT 83 * - 62 FROM tab2
----
-5146
-5146
-5146

onlyif mysql # DIV for integer division: 
query I rowsort label-5183
SELECT DISTINCT - ( 87 ) DIV + - col0 - - 58 + col0 FROM tab1
----
110
144
149

skipif mysql # not compatible
query I rowsort label-5183
SELECT DISTINCT - ( 87 ) / + - col0 - - 58 + col0 FROM tab1
----
110
144
149

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 4 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5185
SELECT SUM( col2 ) AS col0, + COUNT( ALL + col1 ) * + + 71 FROM tab2
----
121
213

skipif mysql # not compatible
query II rowsort label-5185
SELECT SUM ( col2 ) AS col0, + COUNT ( ALL + col1 ) * + + 71 FROM tab2
----
121
213

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( - 37 ) * + - col2 + + col2 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 69 NOT BETWEEN - 43 AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5188
SELECT ( + 66 ) DIV - SUM( - + col0 ) * COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5188
SELECT ( + 66 ) / - SUM ( - + col0 ) * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 36 * + - col2 AS col0 FROM tab1
----
2124
2448
3456

onlyif mysql # aggregate syntax: 
query I rowsort label-5190
SELECT + 39 * COUNT( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
351

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5190
SELECT + 39 * COUNT ( * ) col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
351

onlyif mysql # aggregate syntax: 
query I rowsort label-5191
SELECT ALL MAX( ALL 61 ) FROM tab0
----
61

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL MAX ( ALL 61 ) FROM tab0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5192
SELECT ALL - COUNT( * ) + - + 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-32

skipif mysql # not compatible
query I rowsort label-5192
SELECT ALL - COUNT ( * ) + - + 23 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-32

query I rowsort
SELECT DISTINCT - + 65 + + + col0 + + - col1 AS col0 FROM tab1 AS cor0
----
-21
-28
15

query I rowsort
SELECT DISTINCT - + 58 * col1 * col1 + - + col1 AS col0 FROM tab2 AS cor0
----
-150909
-260429
-343959

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 91 NOT IN ( - 47 + 74 * + 33 / col1 / + 35 - - - col1 * - col2 )
----

query I rowsort
SELECT DISTINCT - 12 + - 67 FROM tab2 AS cor0
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5197
SELECT ALL - COUNT( * ) * - 59 + 50 + + 42 FROM tab1 AS cor0
----
269

skipif mysql # not compatible
query I rowsort label-5197
SELECT ALL - COUNT ( * ) * - 59 + 50 + + 42 FROM tab1 AS cor0
----
269

query I rowsort
SELECT ALL col1 * col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5199
SELECT DISTINCT - MIN( DISTINCT - - 44 ) * - COUNT( * ) + 40 AS col1 FROM tab1 AS cor0
----
172

skipif mysql # not compatible
query I rowsort label-5199
SELECT DISTINCT - MIN ( DISTINCT - - 44 ) * - COUNT ( * ) + 40 AS col1 FROM tab1 AS cor0
----
172

query I rowsort
SELECT col0 * + col2 + - col1 FROM tab2 AS cor0
----
1007
2483
4283

onlyif mysql # aggregate syntax: 
query I rowsort label-5201
SELECT + + 42 + - 33 + + ( - + COUNT( * ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5201
SELECT + + 42 + - 33 + + ( - + COUNT ( * ) ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT + 76 + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-5202
SELECT + 76 + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-5203
SELECT + + col2 + + 85 DIV - ( + col1 ) FROM tab1 cor0
----
42
67
90

skipif mysql # not compatible
query I rowsort label-5203
SELECT + + col2 + + 85 / - ( + col1 ) FROM tab1 cor0
----
42
67
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 28 * + + col1 col2 FROM tab2
----
1428
1876
2156

query I rowsort
SELECT - col2 + + 58 * col2 FROM tab1
----
3363
3876
5472

query I rowsort
SELECT ALL col1 * + - 86 * + - col1 FROM tab2
----
223686
386054
509894

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5207
SELECT DISTINCT + COUNT( * ) DIV 90 * - 26 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + COUNT ( * ) / 90 * - 26 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 7 + - - 18 FROM tab2
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-5209
SELECT 38 * + - 88 * COUNT( * ) * - SUM( + - col1 ) FROM tab1
----
-662112

skipif mysql # not compatible
query I rowsort label-5209
SELECT 38 * + - 88 * COUNT ( * ) * - SUM ( + - col1 ) FROM tab1
----
-662112

onlyif mysql # aggregate syntax: 
query I rowsort label-5210
SELECT ALL + MIN( DISTINCT - 66 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-66

skipif mysql # not compatible
query I rowsort label-5210
SELECT ALL + MIN ( DISTINCT - 66 ) AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-66

query I rowsort
SELECT ALL col2 AS col0 FROM tab0 AS cor0 WHERE + 3 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5212
SELECT DISTINCT + + col0 + + col1 DIV + col0 FROM tab0 AS cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-5212
SELECT DISTINCT + + col0 + + col1 / + col0 FROM tab0 AS cor0
----
20
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - - col1 col1 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5214
SELECT DISTINCT CAST( NULL AS SIGNED ) - - 55 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5214
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - 55 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 + + col2 col2 FROM tab2
----
30
47
65

query II rowsort
SELECT ALL 12 - - col2, - 19 AS col2 FROM tab2
----
35
-19
52
-19
70
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 66 * - col2 AS col1, col2 col0 FROM tab1 AS cor0
----
-3894
59
-4488
68
-6336
96

query I rowsort
SELECT DISTINCT + 15 + - col1 FROM tab0 AS cor0 WHERE - col0 BETWEEN - - ( + 50 ) AND - col0
----

query I rowsort
SELECT ( + 95 ) * + col1 FROM tab2 AS cor0
----
4845
6365
7315

query I rowsort
SELECT - col0 * + + 63 * - - ( + col0 ) * - - 68 AS col1 FROM tab1 AS cor0
----
-11142684
-30951900
-35475804

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + 16 IN ( - + 7 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < + + col2 + + + col0 * + + col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5223
SELECT + SUM( ALL - col1 ) DIV COUNT( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-5223
SELECT + SUM ( ALL - col1 ) / COUNT ( DISTINCT col0 ) AS col2 FROM tab1 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-5224
SELECT DISTINCT col0 DIV - ( + 23 ) AS col2 FROM tab2 AS cor0
----
-2
-3

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT col0 / - ( + 23 ) AS col2 FROM tab2 AS cor0
----
-2
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 IS NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL CAST( NULL AS SIGNED ) + + col2 col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5227
SELECT ALL CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - 26 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5229
SELECT + COUNT( * ), 85 AS col2 FROM tab2
----
3
85

skipif mysql # not compatible
query II rowsort label-5229
SELECT + COUNT ( * ), 85 AS col2 FROM tab2
----
3
85

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5230
SELECT DISTINCT + CAST( NULL AS DECIMAL ), col1 * - - col2 + + 78 AS col0 FROM tab1
----
NULL
1422
NULL
3274
NULL
373

skipif mysql # not compatible
query II rowsort label-5230
SELECT DISTINCT + CAST ( NULL AS REAL ), col1 * - - col2 + + 78 AS col0 FROM tab1
----
NULL
1422
NULL
3274
NULL
373

query II rowsort
SELECT DISTINCT 52, 52 FROM tab1 AS cor0
----
52
52

onlyif mysql # DIV for integer division: 
query II rowsort label-5232
SELECT col0 AS col0, col2 DIV + - col1 AS col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-5232
SELECT col0 AS col0, col2 / + - col1 AS col0 FROM tab2 AS cor0
----
46
0
64
0
75
0

query II rowsort
SELECT DISTINCT - 28 AS col1, + col1 + col2 FROM tab2 AS cor0
----
-28
117
-28
125
-28
74

query I rowsort
SELECT ALL + - col1 * - + 1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT - col2 * + + col2 + + 13 * - col2 FROM tab0
----
-11088
-230
-2820

query II rowsort
SELECT DISTINCT - col0 + + col1 AS col1, col0 FROM tab1 AS cor0
----
-37
51
-44
91
-80
85

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col2 / + col0 - - + 61 - + col1 < NULL
----

query II rowsort
SELECT - ( + 52 ) AS col1, - 23 FROM tab0 AS cor0
----
-52
-23
-52
-23
-52
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col1 * + col0 col1, - 76 AS col0 FROM tab0 AS cor0 WHERE - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5240
SELECT - - 88 col1 FROM tab0 AS cor0 WHERE 22 + + CAST( NULL AS SIGNED ) < col1 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5240
SELECT - - 88 col1 FROM tab0 AS cor0 WHERE 22 + + CAST ( NULL AS INTEGER ) < col1 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 75 * - ( - + col1 ) - + col2 AS col2 FROM tab1 cor0
----
316
3457
954

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5242
SELECT ALL + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - - col1 + + CAST( NULL AS DECIMAL ) + - 82 > 9 )
----
0

skipif mysql # not compatible
query I rowsort label-5242
SELECT ALL + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NOT - - col1 + + CAST ( NULL AS REAL ) + - 82 > 9 )
----
0

query I rowsort
SELECT DISTINCT + 24 * + 59 * - + col1 + + 63 + + col2 FROM tab0 WHERE NULL <= - ( + 28 )
----

query I rowsort
SELECT col2 - - col2 + ( col0 ) AS col1 FROM tab0
----
107
109
295

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 / + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5246
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5247
SELECT ALL + 66 + 20 * CAST( 67 AS SIGNED ) col0 FROM tab0
----
1406
1406
1406

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5247
SELECT ALL + 66 + 20 * CAST ( 67 AS INTEGER ) col0 FROM tab0
----
1406
1406
1406

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT DISTINCT + 17 + - COUNT( ALL - 58 ) * - 53 AS col0 FROM tab2
----
176

skipif mysql # not compatible
query I rowsort label-5248
SELECT DISTINCT + 17 + - COUNT ( ALL - 58 ) * - 53 AS col0 FROM tab2
----
176

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5249
SELECT * FROM tab1 AS cor0 WHERE 38 + col2 <> + CAST( NULL AS SIGNED ) * - + 40 / + col0
----

skipif mysql # not compatible
query III rowsort label-5249
SELECT * FROM tab1 AS cor0 WHERE 38 + col2 <> + CAST ( NULL AS INTEGER ) * - + 40 / + col0
----

query I rowsort
SELECT DISTINCT + + col1 * - - col1 - - col2 FROM tab2 AS cor0
----
2624
4547
5969

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col1 * + col0 col0 FROM tab2 AS cor0
----
119646
336675
379456

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5252
SELECT ALL - MAX( - 79 ) DIV + ( + COUNT( * ) ) FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-5252
SELECT ALL - MAX ( - 79 ) / + ( + COUNT ( * ) ) FROM tab1 AS cor0
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5253
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - CAST( NULL AS SIGNED ) AND col1
----

skipif mysql # not compatible
query III rowsort label-5253
SELECT * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND col1
----

query I rowsort
SELECT ALL + col2 * + + col1 + - col1 + + col0 FROM tab0 cor0
----
195
276
3741

query II rowsort
SELECT ( col2 ), 57 * + col0 FROM tab0
----
10
4959
47
855
99
5529

onlyif mysql # aggregate syntax: 
query I rowsort label-5256
SELECT - ( ( - ( - COUNT( * ) ) ) ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5256
SELECT - ( ( - ( - COUNT ( * ) ) ) ) FROM tab2
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / col2 + - col0 + - col0 IS NOT NULL
----

query II rowsort
SELECT ( + + 47 ), - col0 AS col1 FROM tab2
----
47
-46
47
-64
47
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL = col0 + - - 18 - - 47
----

query II rowsort
SELECT DISTINCT 95 * col2, ( - 73 ) * - col1 AS col2 FROM tab0
----
4465
5913
9405
73
950
1533

onlyif mysql # DIV for integer division: 
query I rowsort label-5261
SELECT DISTINCT 6 DIV col1 + + 25 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5261
SELECT DISTINCT 6 / col1 + + 25 FROM tab2 AS cor0
----
25

onlyif mysql # DIV for integer division: 
query II rowsort label-5262
SELECT DISTINCT + 67 DIV + - col1 AS col2, col0 FROM tab2 AS cor0
----
-1
46
-1
75
0
64

skipif mysql # not compatible
query II rowsort label-5262
SELECT DISTINCT + 67 / + - col1 AS col2, col0 FROM tab2 AS cor0
----
-1
46
-1
75
0
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5263
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5263
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5264
SELECT - - CAST( NULL AS DECIMAL ) / MAX( DISTINCT + col2 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5264
SELECT - - CAST ( NULL AS REAL ) / MAX ( DISTINCT + col2 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5265
SELECT ALL + COUNT( 63 ) DIV + + 17 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5265
SELECT ALL + COUNT ( 63 ) / + + 17 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - 97 + + 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c12e8bdd687c9040a5600dab3b6adf5b

onlyif mysql # aggregate syntax: 
query II rowsort label-5267
SELECT DISTINCT 71 AS col1, + 14 + - COUNT( * ) FROM tab1
----
71
11

skipif mysql # not compatible
query II rowsort label-5267
SELECT DISTINCT 71 AS col1, + 14 + - COUNT ( * ) FROM tab1
----
71
11

query I rowsort
SELECT + 47 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query I rowsort
SELECT + 42 + + col2 * + col1 AS col1 FROM tab2 AS cor0
----
1215
3122
3928

query I rowsort
SELECT - 47 + + + col0 * col1 FROM tab2 AS cor0
----
2299
4881
4978

query I rowsort
SELECT DISTINCT - + 71 + 95 * 51 AS col0 FROM tab1 AS cor0
----
4774

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IS NOT NULL AND NOT 83 NOT BETWEEN - col0 + + + 60 AND NULL
----

query II rowsort
SELECT - col2 + ( col2 ), ( + 73 ) AS col2 FROM tab2 AS cor0
----
0
73
0
73
0
73

onlyif mysql # aggregate syntax: 
query II rowsort label-5274
SELECT DISTINCT - COUNT( * ) * + 25 + + + 23 * - 27, - 73 col0 FROM tab1 AS cor0
----
-696
-73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5274
SELECT DISTINCT - COUNT ( * ) * + 25 + + + 23 * - 27, - 73 col0 FROM tab1 AS cor0
----
-696
-73

onlyif mysql # DIV for integer division: 
query I rowsort label-5275
SELECT DISTINCT col2 + - 0 DIV + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-5275
SELECT DISTINCT col2 + - 0 / + col2 AS col0 FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT - COUNT( * ) + - 48 + + COUNT( * ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-5276
SELECT - COUNT ( * ) + - 48 + + COUNT ( * ) FROM tab2
----
-48

query I rowsort
SELECT DISTINCT + 14 AS col1 FROM tab2 WHERE NOT ( NOT ( NULL ) IS NULL )
----
14

query I rowsort
SELECT + + col0 AS col2 FROM tab0 WHERE ( ( NULL ) < NULL )
----

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab2 AS cor0 WHERE - col2 * - col0 NOT BETWEEN NULL AND - col1 + col0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5280
SELECT + col0 * - - col0 - - ( 83 ) DIV + 8 FROM tab2 AS cor0
----
2126
4106
5635

skipif mysql # not compatible
query I rowsort label-5280
SELECT + col0 * - - col0 - - ( 83 ) / + 8 FROM tab2 AS cor0
----
2126
4106
5635

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5281
SELECT - + COUNT( ALL + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5281
SELECT - + COUNT ( ALL + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + + 91 <= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = col1 / - col1 + + col2 + + col2 * + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5284
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5284
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT - + col1 ) AS col2 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 34 * col2 * + col1, col2 - + col1 + ( - 28 ) - - col1 col1 FROM tab2 AS cor0
----
-104720
12
-132124
30
-39882
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 40 * col0 col0 FROM tab0 AS cor0
----
-3480
-3880
-600

query I rowsort
SELECT - ( + + ( col2 ) ) * + col1 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT - - col2 * + - col1 AS col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-5289
SELECT DISTINCT COUNT( - col1 ) AS col1 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5289
SELECT DISTINCT COUNT ( - col1 ) AS col1 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5290
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + 66 + - + col0 FROM tab0
----
NULL
-21
NULL
-31
NULL
51

skipif mysql # not compatible
query II rowsort label-5290
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + 66 + - + col0 FROM tab0
----
NULL
-21
NULL
-31
NULL
51

query II rowsort
SELECT DISTINCT + col0, 63 FROM tab0
----
15
63
87
63
97
63

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL > - col1 + - - col1 * col1 / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5293
SELECT 16 FROM tab0 WHERE NOT 78 = CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5293
SELECT 16 FROM tab0 WHERE NOT 78 = CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + 23 + + col0 AS col0 FROM tab1
----
108
114
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5295
SELECT MIN( - col1 ) col1 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5295
SELECT MIN ( - col1 ) col1 FROM tab0
----
-81

query I rowsort
SELECT ALL - 4 * + 40 FROM tab0
----
-160
-160
-160

query I rowsort
SELECT ALL ( - - 49 ) AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

query I rowsort
SELECT - 17 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col0 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 13 + col2 / + col1 * - col0 + - col1 + - 66 AS col1, + col2 FROM tab2 WHERE NULL NOT BETWEEN col1 AND - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5301
SELECT + + CAST( + + col2 AS SIGNED ) * + + col1 + + col2 - 37 DIV col2 + + - CAST( 88 AS SIGNED ) * - col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1097
7990
8910

skipif mysql # not compatible
query I rowsort label-5301
SELECT + + CAST ( + + col2 AS INTEGER ) * + + col1 + + col2 - 37 / col2 + + - CAST ( 88 AS INTEGER ) * - col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1097
7990
8910

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL > NULL AND ( NULL ) = ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5303
SELECT 95 + + + SUM( ALL + 42 ) FROM tab2
----
221

skipif mysql # not compatible
query I rowsort label-5303
SELECT 95 + + + SUM ( ALL + 42 ) FROM tab2
----
221

query I rowsort
SELECT ALL col2 - col0 - - + col0 * - + 66 AS col1 FROM tab2
----
-3059
-4248
-4967

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT ALL + COUNT( * ) - + + CAST( + 71 AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
-210

skipif mysql # not compatible
query I rowsort label-5305
SELECT ALL + COUNT ( * ) - + + CAST ( + 71 AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
-210

query I rowsort
SELECT + ( - col1 ) + 21 FROM tab0
----
-60
0
20

query I rowsort
SELECT + col1 + ( col1 ) AS col2 FROM tab2
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5308
SELECT + CAST( - CAST( NULL AS DECIMAL ) AS DECIMAL ) / - 12 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5308
SELECT + CAST ( - CAST ( NULL AS REAL ) AS REAL ) / - 12 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 BETWEEN - + col2 AND col1 + - ( col0 ) + - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5310
SELECT DISTINCT 57 DIV - 51 AS col0 FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5310
SELECT DISTINCT 57 / - 51 AS col0 FROM tab2
----
-1

query II rowsort
SELECT ALL - col1, col1 * col0 AS col0 FROM tab1 AS cor0
----
-14
714
-47
4277
-5
425

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL COUNT( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL COUNT ( * ) FROM tab0 cor0 WHERE NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col1 FROM tab0 cor0
----
58

query I rowsort
SELECT ALL + ( + 91 ) FROM tab2 cor0
----
91
91
91

query II rowsort
SELECT col1, col2 AS col0 FROM tab1 cor0
----
14
96
47
68
5
59

query III rowsort
SELECT * FROM tab1 WHERE NULL IS NULL OR - col0 * + 42 BETWEEN ( NULL ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 * + 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT ALL + COUNT( * ) * + 98 AS col2 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-5318
SELECT ALL + COUNT ( * ) * + 98 AS col2 FROM tab0 AS cor0
----
294

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE + col2 <= + - ( - + col0 ) - - col0 + + ( + - 85 )
----
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5320
SELECT - 92 * col0 + + 76 - + 29 DIV + 46 AS col2 FROM tab2 AS cor0
----
-4156
-5812
-6824

skipif mysql # not compatible
query I rowsort label-5320
SELECT - 92 * col0 + + 76 - + 29 / + 46 AS col2 FROM tab2 AS cor0
----
-4156
-5812
-6824

query I rowsort
SELECT ALL + col2 AS col0 FROM tab1 AS cor0 WHERE + col1 + - + col1 - col1 * - ( - col1 ) + + 11 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - 71 + - col1 - - - col1 + - col1 * CAST( - - 22 AS SIGNED ) / - + 95 + - col0 IS NULL
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-5322
SELECT ALL - col1 FROM tab0 AS cor0 WHERE NOT - 71 + - col1 - - - col1 + - col1 * CAST ( - - 22 AS INTEGER ) / - + 95 + - col0 IS NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5323
SELECT + CAST( NULL AS SIGNED ) * - col0 + - + 45 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5323
SELECT + CAST ( NULL AS INTEGER ) * - col0 + - + 45 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT + + MAX( - 21 ) AS col0 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5324
SELECT + + MAX ( - 21 ) AS col0 FROM tab1 AS cor0
----
-21

query I rowsort
SELECT DISTINCT + - 5 AS col0 FROM tab0 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT - - 3 * + COUNT( * ) + + 28 col2 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5326
SELECT - - 3 * + COUNT ( * ) + + 28 col2 FROM tab0 AS cor0
----
37

query I rowsort
SELECT 86 + + col2 AS col0 FROM tab2
----
109
126
144

query I rowsort
SELECT + col1 + + + 20 + ( col1 ) FROM tab2
----
122
154
174

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT COUNT( * ) + + 41 AS col2 FROM tab0
----
44

skipif mysql # not compatible
query I rowsort label-5329
SELECT COUNT ( * ) + + 41 AS col2 FROM tab0
----
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 19 col2 FROM tab0
----
-9
28
80

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT NULL BETWEEN NULL AND - col1 )
----

query I rowsort
SELECT col1 + - + col1 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT 34 + + 44 FROM tab0
----
78
78
78

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT - col2 + - col2 DIV - ( - col1 ) FROM tab1 WHERE - - col1 IS NOT NULL
----
-102
-69
-70

skipif mysql # not compatible
query I rowsort label-5334
SELECT - col2 + - col2 / - ( - col1 ) FROM tab1 WHERE - - col1 IS NOT NULL
----
-102
-69
-70

query I rowsort
SELECT DISTINCT 30 + + 27 + col1 * - - col2 AS col2 FROM tab2
----
1230
3137
3943

query I rowsort
SELECT - 49 + + + col0 FROM tab2
----
-3
15
26

query III rowsort
SELECT * FROM tab2 WHERE 85 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - + col2 * + + ( + 72 ) + + col0 col1 FROM tab0 AS cor0
----
-3384
-7128
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-5339
SELECT DISTINCT + col0 * col2 + + 48 DIV - 33 + col2 * + col2 * 41 AS col1 FROM tab0 AS cor0
----
411443
4969
91273

skipif mysql # not compatible
query I rowsort label-5339
SELECT DISTINCT + col0 * col2 + + 48 / - 33 + col2 * + col2 * 41 AS col1 FROM tab0 AS cor0
----
411443
4969
91273

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT DISTINCT - ( - SUM( DISTINCT col2 ) ) - + + 84 FROM tab1 AS cor0
----
139

skipif mysql # not compatible
query I rowsort label-5340
SELECT DISTINCT - ( - SUM ( DISTINCT col2 ) ) - + + 84 FROM tab1 AS cor0
----
139

query I rowsort
SELECT ALL + col1 + - col1 * + col1 FROM tab2 AS cor0
----
-2550
-4422
-5852

query I rowsort
SELECT + col1 + + - col0 FROM tab0 WHERE NOT 18 / + col2 IS NOT NULL
----

query I rowsort
SELECT ALL - 43 * + ( 61 ) AS col2 FROM tab2
----
-2623
-2623
-2623

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT DISTINCT - + COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5344
SELECT DISTINCT - + COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT ALL + col1 DIV col1 * - 18 FROM tab1 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-5345
SELECT ALL + col1 / col1 * - 18 FROM tab1 AS cor0
----
-18
-18
-18

query I rowsort
SELECT ( + 2 ) AS col1 FROM tab1
----
2
2
2

query I rowsort
SELECT - - ( + - 9 ) AS col0 FROM tab1 AS cor0
----
-9
-9
-9

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT + col2 IS NULL
----
46
64
75

query II rowsort
SELECT DISTINCT - + 87 AS col1, col2 AS col2 FROM tab2 AS cor0
----
-87
23
-87
40
-87
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5350
SELECT + COUNT( * ), - CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5350
SELECT + COUNT ( * ), - CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5351
SELECT ALL - col0 + CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5351
SELECT ALL - col0 + CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - + col1 + - + col1 - col0 AS col2, 53 FROM tab2 AS cor0
----
-148
53
-209
53
-218
53

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 43 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-5354
SELECT DISTINCT + - col1 AS col2, col2 col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 * col2 + - CAST( NULL AS DECIMAL ) * - CAST( col0 AS SIGNED ) + + + 85 * + - col2 AND + + col1
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5354
SELECT DISTINCT + - col1 AS col2, col2 col0 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN - col1 * col2 + - CAST ( NULL AS REAL ) * - CAST ( col0 AS INTEGER ) + + + 85 * + - col2 AND + + col1
----

query I rowsort
SELECT ALL AVG ( ALL - - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT col1 * + - col0 * - 91 * - 45 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 >= 95
----
15
81
47
87
21
10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 13 / - col2 BETWEEN NULL AND - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5358
SELECT ALL MIN( - - col2 ) col0 FROM tab2
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5358
SELECT ALL MIN ( - - col2 ) col0 FROM tab2
----
23

query I rowsort
SELECT ALL - col1 * 88 + + - 14 FROM tab0
----
-102
-1862
-7142

query I rowsort
SELECT - col1 * + + 50 * ( 23 ) + col0 FROM tab0 AS cor0
----
-1053
-24063
-93135

query I rowsort
SELECT DISTINCT + 80 * 8 + col0 AS col1 FROM tab0 AS cor0
----
655
727
737

query I rowsort
SELECT - + col1 + - - col1 AS col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL NOT IN ( + col1 / - - col2, + col2, + col1, - 77 - + + col1 * col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5364
SELECT ALL - - col0 DIV + col1 AS col2 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL - - col0 / + col1 AS col2 FROM tab2 cor0
----
0
0
1

query I rowsort
SELECT DISTINCT + + 9 * + col2 * + 22 * 65 FROM tab0 cor0
----
1274130
128700
604890

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( col1, col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5367
SELECT ALL 45 DIV ( COUNT( * ) ) col1 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5367
SELECT ALL 45 / ( COUNT ( * ) ) col1 FROM tab2 AS cor0
----
15

query I rowsort
SELECT ALL - col0 * - 10 * + col0 FROM tab2
----
21160
40960
56250

query I rowsort
SELECT - 64 * - + col1 FROM tab0
----
1344
5184
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 3 AS col2, col2 col0 FROM tab0
----
3
10
3
47
3
99

query II rowsort
SELECT + col1 AS col2, + ( 1 ) AS col0 FROM tab1
----
14
1
47
1
5
1

query I rowsort
SELECT ALL + 75 AS col1 FROM tab0 WHERE + col1 IS NOT NULL
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5373
SELECT DISTINCT + 91 * - + COUNT( * ) + - COUNT( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
-276

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT + 91 * - + COUNT ( * ) + - COUNT ( DISTINCT col1 ) AS col0 FROM tab1 cor0
----
-276

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5374
SELECT DISTINCT CAST( col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5374
SELECT DISTINCT CAST ( col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5375
SELECT ALL + + MAX( 25 ) * + 89 AS col2 FROM tab1 AS cor0
----
2225

skipif mysql # not compatible
query I rowsort label-5375
SELECT ALL + + MAX ( 25 ) * + 89 AS col2 FROM tab1 AS cor0
----
2225

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 + + + 60 / col2 >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5377
SELECT ALL COUNT( * ) FROM tab2 AS cor0 WHERE - 84 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5377
SELECT ALL COUNT ( * ) FROM tab2 AS cor0 WHERE - 84 IS NULL
----
0

query I rowsort
SELECT ALL col2 + + ( - col2 ) * + - 8 AS col0 FROM tab1 cor0
----
531
612
864

onlyif mysql # aggregate syntax: 
query II rowsort label-5379
SELECT COUNT( 53 ), - MAX( + - ( - 73 ) ) AS col0 FROM tab1 AS cor0
----
3
-73

skipif mysql # not compatible
query II rowsort label-5379
SELECT COUNT ( 53 ), - MAX ( + - ( - 73 ) ) AS col0 FROM tab1 AS cor0
----
3
-73

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( col1 ) NOT BETWEEN - 9 - - + col1 + col0 / - col0 AND col0 + col1
----

query II rowsort
SELECT 77 + - col1 + col2, 96 AS col0 FROM tab2 AS cor0
----
40
96
49
96
68
96

query I rowsort
SELECT 19 AS col1 FROM tab2 AS cor0 WHERE + col2 = - 76
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5383
SELECT + COUNT( * ) * - COUNT( * ) + + + CAST( - 22 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-5383
SELECT + COUNT ( * ) * - COUNT ( * ) + + + CAST ( - 22 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-31

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT + - 75 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT + - 75 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5385
SELECT DISTINCT - 34 DIV - 50 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5385
SELECT DISTINCT - 34 / - 50 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col1 + - col0 * - - 43 AS col1 FROM tab2
----
-1927
-2675
-3158

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1, 44 col0 FROM tab2
----
51
44
67
44
77
44

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT DISTINCT + MIN( DISTINCT + 96 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5388
SELECT DISTINCT + MIN ( DISTINCT + 96 ) AS col1 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + ( + col0 ) + - 54 AS col0 FROM tab1 AS cor0
----
-3
31
37

query I rowsort
SELECT ALL col0 + - + col0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - col0 + - - 44 + - + 70 * col0 FROM tab0 AS cor0
----
-1021
-6133
-6843

onlyif mysql # DIV for integer division: 
query I rowsort label-5392
SELECT ALL - ( - - col0 ) - - - col1 + - 68 DIV col2 FROM tab1
----
-139
-65
-91

skipif mysql # not compatible
query I rowsort label-5392
SELECT ALL - ( - - col0 ) - - - col1 + - 68 / col2 FROM tab1
----
-139
-65
-91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5393
SELECT + COUNT( * ) * + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5393
SELECT + COUNT ( * ) * + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5394
SELECT DISTINCT 52 * SUM( ALL ( col0 ) ) * - + COUNT( * ) AS col2, + SUM( 33 ) FROM tab0 AS cor0
----
-31044
99

skipif mysql # not compatible
query II rowsort label-5394
SELECT DISTINCT 52 * SUM ( ALL ( col0 ) ) * - + COUNT ( * ) AS col2, + SUM ( 33 ) FROM tab0 AS cor0
----
-31044
99

query I rowsort
SELECT col2 * + 85 FROM tab1 AS cor0
----
5015
5780
8160

query I rowsort
SELECT + + 58 AS col1 FROM tab0 AS cor0
----
58
58
58

query I rowsort
SELECT - - col0 * 13 * 20 AS col2 FROM tab1 AS cor0
----
13260
22100
23660

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, - ( - col1 ), col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5399
SELECT 69 DIV col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5399
SELECT 69 / col0 AS col0 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5400
SELECT ALL + + 54 + COUNT( * ) FROM tab0 WHERE col1 IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-5400
SELECT ALL + + 54 + COUNT ( * ) FROM tab0 WHERE col1 IS NULL
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL COUNT( ALL + col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL COUNT ( ALL + col2 ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT DISTINCT MAX( ALL - 80 ) AS col1 FROM tab1
----
-80

skipif mysql # not compatible
query I rowsort label-5402
SELECT DISTINCT MAX ( ALL - 80 ) AS col1 FROM tab1
----
-80

query I rowsort
SELECT + col1 * + ( - ( 41 ) ) FROM tab0
----
-3321
-41
-861

query I rowsort
SELECT DISTINCT - + 17 + - col0 AS col2 FROM tab0 WHERE col1 / - 29 + + - col0 IS NULL
----

query I rowsort
SELECT + col1 * + ( - - 82 ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + + col2 / + ( + col1 ) * - + 24 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5406
SELECT DISTINCT + COUNT( DISTINCT + 53 ) * - 30 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5406
SELECT DISTINCT + COUNT ( DISTINCT + 53 ) * - 30 FROM tab0 AS cor0
----
-30

onlyif mysql # DIV for integer division: 
query I rowsort label-5407
SELECT ALL - col1 DIV + - col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
query I rowsort label-5407
SELECT ALL - col1 / + - col2 FROM tab2
----
1
1
2

query I rowsort
SELECT DISTINCT ( 66 ) AS col1 FROM tab2
----
66

query I rowsort
SELECT ALL + + col2 + - + col0 FROM tab0 AS cor0
----
-77
2
32

query I rowsort
SELECT ALL - - 82 + - col1 FROM tab0 AS cor0
----
1
61
81

query II rowsort
SELECT ALL + col0, - 0 AS col2 FROM tab1 AS cor0
----
51
0
85
0
91
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5412
SELECT DISTINCT col2 + - - col1 DIV + 43 FROM tab1 AS cor0
----
59
69
96

skipif mysql # not compatible
query I rowsort label-5412
SELECT DISTINCT col2 + - - col1 / + 43 FROM tab1 AS cor0
----
59
69
96

query I rowsort
SELECT + col2 AS col0 FROM tab2 AS cor0 WHERE 87 + - + 68 BETWEEN NULL AND ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5414
SELECT ALL + + MIN( col0 ) FROM tab0 cor0
----
15

skipif mysql # not compatible
query I rowsort label-5414
SELECT ALL + + MIN ( col0 ) FROM tab0 cor0
----
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5415
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - ( - CAST( + + 13 AS SIGNED ) ) + - col0 * + ( - col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5415
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - ( - CAST ( + + 13 AS INTEGER ) ) + - col0 * + ( - col1 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 72 * col1, - 87 col2 FROM tab1
----
1008
-87
3384
-87
360
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5417
SELECT + MIN( ALL + 7 ) + + ( ( + CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5417
SELECT + MIN ( ALL + 7 ) + + ( ( + CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 BETWEEN col0 AND + ( - 40 ) / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + col0 ) + - 31 FROM tab1
----
20
54
60

query I rowsort
SELECT 3 + + col2 FROM tab2
----
26
43
61

query I rowsort
SELECT DISTINCT + - ( + 91 ) + - - col0 AS col1 FROM tab0 AS cor0
----
-4
-76
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5422
SELECT - 8 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT IN ( 18, 79 - 54, CAST( NULL AS SIGNED ), + - ( + 82 ) )
----

skipif mysql # not compatible
query I rowsort label-5422
SELECT - 8 FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NULL NOT IN ( 18, 79 - 54, CAST ( NULL AS INTEGER ), + - ( + 82 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5423
SELECT MAX( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-5423
SELECT MAX ( DISTINCT - col0 ) AS col1 FROM tab1
----
-51

query I rowsort
SELECT ALL col2 * - 94 * + - col1 AS col1 FROM tab1 AS cor0
----
126336
27730
300424

query II rowsort
SELECT ALL + 76 * + col2 * + 22 AS col0, - col0 * - col0 FROM tab1 cor0
----
113696
8281
160512
2601
98648
7225

query I rowsort
SELECT DISTINCT + col1 * col0 + - + col2 AS col2 FROM tab1 AS cor0
----
366
4209
618

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5427
SELECT ALL - col0 AS col1, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-5427
SELECT ALL - col0 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
-15
NULL
-87
NULL
-97
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5428
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) * 32 col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5428
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) * 32 col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT DISTINCT - COUNT( * ) * - MIN( col2 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-5429
SELECT DISTINCT - COUNT ( * ) * - MIN ( col2 ) AS col0 FROM tab1
----
177

query I rowsort
SELECT 25 * - 19 AS col1 FROM tab2 WHERE NOT 37 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT - + 56 * SUM( - col0 ) FROM tab2 AS cor0
----
10360

skipif mysql # not compatible
query I rowsort label-5431
SELECT - + 56 * SUM ( - col0 ) FROM tab2 AS cor0
----
10360

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5432
SELECT ALL - CAST( + 16 AS SIGNED ) * + ( 74 ) * COUNT( * ) FROM tab0 cor0
----
-3552

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL - CAST ( + 16 AS INTEGER ) * + ( 74 ) * COUNT ( * ) FROM tab0 cor0
----
-3552

query I rowsort
SELECT ALL - - 14 * col0 AS col0 FROM tab2 AS cor0
----
1050
644
896

query I rowsort
SELECT + - 29 * - col1 AS col1 FROM tab2 WHERE NOT - col1 + - 74 NOT BETWEEN - - col1 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5435
SELECT ALL - MIN( ALL - col1 ) + - CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL - MIN ( ALL - col1 ) + - CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5436
SELECT ALL COUNT( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5436
SELECT ALL COUNT ( * ) AS col0 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT ALL - col1 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 > col1 / + - 78 + col1
----
97
1
99

query I rowsort
SELECT DISTINCT 60 * - - col1 + 41 * + 61 FROM tab0 AS cor0
----
2561
3761
7361

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 col1 FROM tab1 AS cor0
----
41
41
41

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 35 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5442
SELECT + ( - - 74 ) DIV + - col0 + - - col0 AS col2 FROM tab1 AS cor0
----
50
85
91

skipif mysql # not compatible
query I rowsort label-5442
SELECT + ( - - 74 ) / + - col0 + - - col0 AS col2 FROM tab1 AS cor0
----
50
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5443
SELECT DISTINCT COUNT( * ) * - + MAX( - - col2 ) col1 FROM tab0
----
-297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5443
SELECT DISTINCT COUNT ( * ) * - + MAX ( - - col2 ) col1 FROM tab0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5444
SELECT 79 * + COUNT( * ) + - - COUNT( * ) + + COUNT( * ) + COUNT( * ) col1 FROM tab2
----
246

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5444
SELECT 79 * + COUNT ( * ) + - - COUNT ( * ) + + COUNT ( * ) + COUNT ( * ) col1 FROM tab2
----
246

onlyif mysql # DIV for integer division: 
query I rowsort label-5445
SELECT ALL col1 DIV + + col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL col1 / + + col1 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5446
SELECT ALL + 43 * + ( - MIN( col0 ) ) col0 FROM tab2 WHERE NOT - - ( col1 ) * + - col2 + 68 - + + CAST( col0 AS SIGNED ) * col2 < - CAST( NULL AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5446
SELECT ALL + 43 * + ( - MIN ( col0 ) ) col0 FROM tab2 WHERE NOT - - ( col1 ) * + - col2 + 68 - + + CAST ( col0 AS INTEGER ) * col2 < - CAST ( NULL AS INTEGER )
----
NULL

query I rowsort
SELECT - 30 * + col1 AS col0 FROM tab1
----
-1410
-150
-420

query III rowsort
SELECT * FROM tab1 WHERE NULL = + col2 * 45 + col0 * + 83
----

query I rowsort
SELECT DISTINCT col1 * + ( - 5 ) AS col1 FROM tab1
----
-235
-25
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-5450
SELECT ALL 2 * - COUNT( * ) AS col0 FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-5450
SELECT ALL 2 * - COUNT ( * ) AS col0 FROM tab1
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 * 36 / ( 59 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + + col2 * + col2 + - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5453
SELECT ALL 29 DIV - - ( col1 ) FROM tab0
----
0
1
29

skipif mysql # not compatible
query I rowsort label-5453
SELECT ALL 29 / - - ( col1 ) FROM tab0
----
0
1
29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + - 44 * col1 col0 FROM tab1 cor0
----
-2115
-225
-630

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5455
SELECT col0 - - + CAST( col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-5455
SELECT col0 - - + CAST ( col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5456
SELECT ALL - 59 * - COUNT( * ) + + ( - + 37 ) FROM tab1 AS cor0
----
140

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL - 59 * - COUNT ( * ) + + ( - + 37 ) FROM tab1 AS cor0
----
140

query I rowsort
SELECT - col0 * col0 * - col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5458
SELECT - - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 * - col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5458
SELECT - - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 * - col2 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * + + col0 AS col2, col1 * + 57 col0 FROM tab0 AS cor0
----
225
4617
7569
1197
9409
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT + - ( + MIN( ALL col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5460
SELECT + - ( + MIN ( ALL col0 ) ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-5461
SELECT - 60 DIV - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
2
60

skipif mysql # not compatible
query I rowsort label-5461
SELECT - 60 / - col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
2
60

query I rowsort
SELECT ( - - 5 ) * 10 FROM tab1 AS cor0
----
50
50
50

query I rowsort
SELECT ALL - AVG ( DISTINCT col1 ) FROM tab0 AS cor0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5464
SELECT - COUNT( * ) DIV + + 14 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5464
SELECT - COUNT ( * ) / + + 14 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5465
SELECT ALL CAST( - + 67 AS SIGNED ) FROM tab1
----
-67
-67
-67

skipif mysql # not compatible
query I rowsort label-5465
SELECT ALL CAST ( - + 67 AS INTEGER ) FROM tab1
----
-67
-67
-67

query I rowsort
SELECT - + col0 FROM tab1 WHERE NOT - + col1 IS NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5467
SELECT + 66 DIV + col0 FROM tab2 WHERE + col1 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5467
SELECT + 66 / + col0 FROM tab2 WHERE + col1 IS NOT NULL
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + col2 col2 FROM tab0 WHERE NULL IS NULL
----
198
20
94

query III rowsort
SELECT ALL * FROM tab2 WHERE 3 IS NULL
----

query I rowsort
SELECT col2 + + col0 * + 8 AS col2 FROM tab1
----
504
739
796

query I rowsort
SELECT ALL - 43 * col0 FROM tab1
----
-2193
-3655
-3913

query I rowsort
SELECT ( 20 ) * col2 AS col1 FROM tab0
----
1980
200
940

onlyif mysql # DIV for integer division: 
query I rowsort label-5473
SELECT 99 + col1 DIV + col0 FROM tab0
----
104
99
99

skipif mysql # not compatible
query I rowsort label-5473
SELECT 99 + col1 / + col0 FROM tab0
----
104
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 7 + + col2 * col1 col0 FROM tab1
----
1351
302
3203

query I rowsort
SELECT DISTINCT col0 * - 32 AS col0 FROM tab2
----
-1472
-2048
-2400

query I rowsort
SELECT ALL col2 * 3 FROM tab1
----
177
204
288

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 83 * + 57 ) IN ( + 57 * - ( + col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + 81 ) >= ( - 44 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT DISTINCT + COUNT( DISTINCT col1 ) * - 37 col0 FROM tab1
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5479
SELECT DISTINCT + COUNT ( DISTINCT col1 ) * - 37 col0 FROM tab1
----
-111

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - col1 NOT BETWEEN ( 23 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 72 + - 25 NOT BETWEEN ( + col0 + - ( col0 ) ) AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 BETWEEN - 61 + - ( col2 - - 68 ) AND NULL
----

query I rowsort
SELECT DISTINCT 33 - col1 FROM tab0
----
-48
12
32

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT + COUNT( * ) + + MIN( - col1 ) FROM tab2
----
-74

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT + COUNT ( * ) + + MIN ( - col1 ) FROM tab2
----
-74

query I rowsort
SELECT col1 - + col1 * - col1 FROM tab0
----
2
462
6642

onlyif mysql # DIV for integer division: 
query I rowsort label-5486
SELECT DISTINCT col2 DIV + col0 + - 18 AS col2 FROM tab1
----
-17
-18

skipif mysql # not compatible
query I rowsort label-5486
SELECT DISTINCT col2 / + col0 + - 18 AS col2 FROM tab1
----
-17
-18

query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5488
SELECT col1 * 41 FROM tab0 WHERE 15 + - col0 IN ( CAST( + 80 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-5488
SELECT col1 * 41 FROM tab0 WHERE 15 + - col0 IN ( CAST ( + 80 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 47 * col0 + - col2 NOT IN ( 37 )
----

query I rowsort
SELECT + col0 * - 57 AS col2 FROM tab0
----
-4959
-5529
-855

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( + col2 / 3 ) <= col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <> ( col1 / - 20 )
----

query I rowsort
SELECT + 92 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 = + col0 * + col0 + 75
----
92
92
92

query I rowsort
SELECT 31 * - col1 AS col1 FROM tab2 AS cor0
----
-1581
-2077
-2387

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 64 + 6 = ( + 43 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5496
SELECT ALL CAST( NULL AS SIGNED ) * + 61 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT ALL CAST ( NULL AS INTEGER ) * + 61 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5497
SELECT COUNT( 10 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5497
SELECT COUNT ( 10 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> col2 * - ( - 23 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - SUM( 37 ) AS col1 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-5499
SELECT - SUM ( 37 ) AS col1 FROM tab0
----
-111

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * 0 col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT DISTINCT - COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT col2 IN ( 94 + col1 )
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5501
SELECT DISTINCT - COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT col2 IN ( 94 + col1 )
----
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 95 ) * col0 <> ( col2 )
----

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 26 ) >= NULL
----

query I rowsort
SELECT - col2 FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN - col0 + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 5 AS col0 FROM tab2 cor0
----
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT 15 * col0 + + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 >= - col0 + - ( 89 ) / + col0
----

skipif mysql # not compatible
query I rowsort label-5506
SELECT 15 * col0 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - col1 >= - col0 + - ( 89 ) / + col0
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 2 * - 55 < ( NULL )
----

query I rowsort
SELECT col2 + + 55 FROM tab0 WHERE NOT NULL IS NOT NULL
----
102
154
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - col1 + + col2 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5510
SELECT * FROM tab1 WHERE + 40 * 13 - + CAST( NULL AS SIGNED ) * + col0 <= + 14 OR ( - col1 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5510
SELECT * FROM tab1 WHERE + 40 * 13 - + CAST ( NULL AS INTEGER ) * + col0 <= + 14 OR ( - col1 ) IS NULL
----

query I rowsort
SELECT col0 + - 17 AS col1 FROM tab2
----
29
47
58

query I rowsort
SELECT DISTINCT col0 + + 68 * col2 FROM tab0
----
3211
6829
767

onlyif mysql # aggregate syntax: 
query I rowsort label-5513
SELECT DISTINCT MIN( DISTINCT col2 ) - + SUM( ALL col0 ) FROM tab0 WHERE col1 <> ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT MIN ( DISTINCT col2 ) - + SUM ( ALL col0 ) FROM tab0 WHERE col1 <> ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5514
SELECT DISTINCT - ( + COUNT( * ) ) + - MAX( 27 + - col0 ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5514
SELECT DISTINCT - ( + COUNT ( * ) ) + - MAX ( 27 + - col0 ) FROM tab0
----
-15

query I rowsort
SELECT 67 + col1 AS col1 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) = 90
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col2 + 6 AND + col1 * col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5518
SELECT * FROM tab1 AS cor0 WHERE CAST( 70 AS SIGNED ) >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5518
SELECT * FROM tab1 AS cor0 WHERE CAST ( 70 AS INTEGER ) >= - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col0 ) BETWEEN ( col1 + 53 ) AND + col1 - 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5520
SELECT ALL - - COUNT( * ) + - 64 + COUNT( * ) col2 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5520
SELECT ALL - - COUNT ( * ) + - 64 + COUNT ( * ) col2 FROM tab0 AS cor0
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5521
SELECT - 33 * - COUNT( col2 * col2 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 * - 6 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5521
SELECT - 33 * - COUNT ( col2 * col2 ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 * - 6 AND NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col0 - - col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5523
SELECT ALL MIN( ALL - ( - 8 ) ) * 38 + - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
295

skipif mysql # not compatible
query I rowsort label-5523
SELECT ALL MIN ( ALL - ( - 8 ) ) * 38 + - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
295

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT ALL + CAST( + col0 AS SIGNED ) * 88 + col2 FROM tab0
----
1367
7666
8635

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + CAST ( + col0 AS INTEGER ) * 88 + col2 FROM tab0
----
1367
7666
8635

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT + SUM( DISTINCT 10 ) + ( + ( + COUNT( col2 ) ) ) * + COUNT( * ) col2 FROM tab0 WHERE ( NOT ( + 89 ) IS NULL )
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5525
SELECT + SUM ( DISTINCT 10 ) + ( + ( + COUNT ( col2 ) ) ) * + COUNT ( * ) col2 FROM tab0 WHERE ( NOT ( + 89 ) IS NULL )
----
19

query I rowsort
SELECT ALL - - col2 + - 17 + 67 AS col0 FROM tab0 cor0
----
149
60
97

query I rowsort
SELECT + - col2 * + col2 * + col1 + + 14 FROM tab0 AS cor0
----
-178915
-2086
-9787

query I rowsort
SELECT ALL + col0 FROM tab2 AS cor0 WHERE col1 NOT IN ( - col1 )
----
46
64
75

query I rowsort
SELECT ALL + 94 + col0 AS col2 FROM tab1 AS cor0
----
145
179
185

onlyif mysql # DIV for integer division: 
query I rowsort label-5530
SELECT ALL 15 DIV - col2 * - - col1 - - col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5530
SELECT ALL 15 / - col2 * - - col1 - - col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + col0 + - - col1 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + ( + + col1 ) + + ( col1 ) AS col1 FROM tab1 cor0
----
10
28
94

query I rowsort
SELECT DISTINCT + 55 - col0 AS col1 FROM tab0 AS cor0
----
-32
-42
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5534
SELECT ALL + COUNT( * ) / - MAX( DISTINCT + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL + COUNT ( * ) / - MAX ( DISTINCT + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT 47, - col1 AS col2 FROM tab2 cor0
----
47
-51
47
-67
47
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5536
SELECT ALL + col0 - + CAST( ( - 44 ) AS SIGNED ) + 2 FROM tab2
----
110
121
92

skipif mysql # not compatible
query I rowsort label-5536
SELECT ALL + col0 - + CAST ( ( - 44 ) AS INTEGER ) + 2 FROM tab2
----
110
121
92

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col2 ) NOT IN ( 91 / - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * 24 AS col0 FROM tab1 WHERE NOT ( - col1 ) NOT BETWEEN ( - col2 ) AND ( - ( col1 ) * + 15 + col1 )
----

query I rowsort
SELECT ALL - ( - 90 ) + + col0 AS col2 FROM tab2
----
136
154
165

onlyif mysql # aggregate syntax: 
query I rowsort label-5540
SELECT COUNT( + + col0 ) * + 76 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5540
SELECT COUNT ( + + col0 ) * + 76 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

query I rowsort
SELECT + col1 * + ( - - col0 ) * - col1 FROM tab1 AS cor0
----
-201019
-2125
-9996

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= ( col0 * col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NOT NULL NOT IN ( + col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5545
SELECT * FROM tab0 WHERE NOT - - col2 NOT IN ( - CAST( NULL AS SIGNED ) + col2 * 89 )
----

skipif mysql # not compatible
query III rowsort label-5545
SELECT * FROM tab0 WHERE NOT - - col2 NOT IN ( - CAST ( NULL AS INTEGER ) + col2 * 89 )
----

query I rowsort
SELECT - 31 FROM tab1 AS cor0 JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

query I rowsort
SELECT - 54 * col1 AS col0 FROM tab0 AS cor0
----
-1134
-4374
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-5548
SELECT ALL col2 DIV col2 + 19 + - + col1 + + 66 * col1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
13267227
140265
659742

skipif mysql # not compatible
query I rowsort label-5548
SELECT ALL col2 / col2 + 19 + - + col1 + + 66 * col1 * col1 * col0 AS col1 FROM tab1 AS cor0
----
13267227
140265
659742

query II rowsort
SELECT ALL + - col2, - col0 AS col1 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) = - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 49 ) NOT BETWEEN - + 98 - + + col0 + 42 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5552
SELECT ALL - - 33 DIV col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5552
SELECT ALL - - 33 / col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5553
SELECT ( + col2 ) DIV - - 84 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5553
SELECT ( + col2 ) / - - 84 FROM tab0
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5554
SELECT - col1 FROM tab0 WHERE ( NOT ( NULL NOT BETWEEN NULL AND CAST( 30 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-5554
SELECT - col1 FROM tab0 WHERE ( NOT ( NULL NOT BETWEEN NULL AND CAST ( 30 AS INTEGER ) ) )
----

query II rowsort
SELECT DISTINCT col2, 40 FROM tab1
----
59
40
68
40
96
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5556
SELECT - 24 / col2 FROM tab0 WHERE + CAST( col1 AS SIGNED ) < ( - 62 )
----

skipif mysql # not compatible
query I rowsort label-5556
SELECT - 24 / col2 FROM tab0 WHERE + CAST ( col1 AS INTEGER ) < ( - 62 )
----

query I rowsort
SELECT ALL - + 25 + - 78 FROM tab2 AS cor0
----
-103
-103
-103

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = ( col0 )
----

query I rowsort
SELECT - - ( - - 62 ) - + - col1 AS col2 FROM tab0 AS cor0 WHERE ( - col2 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 81 <= col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT DISTINCT - ( COUNT( ALL - col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5561
SELECT DISTINCT - ( COUNT ( ALL - col1 ) ) FROM tab1
----
-3

query I rowsort
SELECT col2 * - 80 AS col0 FROM tab2
----
-1840
-3200
-4640

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5563
SELECT * FROM tab0 AS cor0 WHERE ( + CAST( - 5 AS SIGNED ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5563
SELECT * FROM tab0 AS cor0 WHERE ( + CAST ( - 5 AS INTEGER ) IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT ALL + COUNT( * ) + + - 85 FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5564
SELECT ALL + COUNT ( * ) + + - 85 FROM tab0 cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT ( NOT + col0 * col2 >= NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT DISTINCT MAX( - 31 ) + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-28

skipif mysql # not compatible
query I rowsort label-5566
SELECT DISTINCT MAX ( - 31 ) + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 2 + + - 2 - + ( + 80 ) * + + col0 IS NULL
----

query I rowsort
SELECT ALL - - col2 - col0 - 31 AS col1 FROM tab1 AS cor0
----
-54
-57
14

query I rowsort
SELECT + col2 - - - col2 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5570
SELECT DISTINCT + + col2 - col2 * - ( - col1 ) * - ( - - col1 ) + - col0 DIV + 81 AS col0 FROM tab1 AS cor0
----
150279
1533
18912

skipif mysql # not compatible
query I rowsort label-5570
SELECT DISTINCT + + col2 - col2 * - ( - col1 ) * - ( - - col1 ) + - col0 / + 81 AS col0 FROM tab1 AS cor0
----
150279
1533
18912

query I rowsort
SELECT ALL - col2 * - col1 * - - col1 * - col1 + + + col1 FROM tab1 AS cor0
----
-263410
-7059917
-7370

query II rowsort
SELECT ALL - 64 - - - 61, ( - - col1 ) * + col1 AS col1 FROM tab0 AS cor0
----
-125
1
-125
441
-125
6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5573
SELECT ALL - col2 FROM tab0 WHERE + CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-5573
SELECT ALL - col2 FROM tab0 WHERE + CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col0 > 94 * 72
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5575
SELECT + col2, col1 * + CAST( + 38 AS SIGNED ) FROM tab0
----
10
798
47
3078
99
38

skipif mysql # not compatible
query II rowsort label-5575
SELECT + col2, col1 * + CAST ( + 38 AS INTEGER ) FROM tab0
----
10
798
47
3078
99
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5576
SELECT ALL - CAST( + col1 AS SIGNED ) * - 67 AS col1 FROM tab0
----
1407
5427
67

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL - CAST ( + col1 AS INTEGER ) * - 67 AS col1 FROM tab0
----
1407
5427
67

query II rowsort
SELECT - 31, 6 AS col2 FROM tab2
----
-31
6
-31
6
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5578
SELECT DISTINCT col0 AS col2, - 49 * - CAST( 29 AS SIGNED ) FROM tab2
----
46
1421
64
1421
75
1421

skipif mysql # not compatible
query II rowsort label-5578
SELECT DISTINCT col0 AS col2, - 49 * - CAST ( 29 AS INTEGER ) FROM tab2
----
46
1421
64
1421
75
1421

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5579
SELECT - CAST( NULL AS SIGNED ) / 30 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT - CAST ( NULL AS INTEGER ) / 30 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 / col0 * + 30 * + col1 * + 42 / + col1 - - 81 * 45 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5581
SELECT DISTINCT - + CAST( col1 AS SIGNED ) FROM tab2 cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5581
SELECT DISTINCT - + CAST ( col1 AS INTEGER ) FROM tab2 cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5582
SELECT ALL col0 DIV + col2 AS col0 FROM tab0 cor0
----
0
0
8

skipif mysql # not compatible
query I rowsort label-5582
SELECT ALL col0 / + col2 AS col0 FROM tab0 cor0
----
0
0
8

query I rowsort
SELECT + ( + 61 ) AS col2 FROM tab0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT DISTINCT - COUNT( ALL 10 ) + + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-5584
SELECT DISTINCT - COUNT ( ALL 10 ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query I rowsort
SELECT ALL + 33 + 15 + - col0 + + + col2 * - col0 * - - 34 FROM tab0 AS cor0
----
-23937
-29619
-326551

onlyif mysql # aggregate syntax: 
query I rowsort label-5586
SELECT DISTINCT - COUNT( * ) + 61 AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5586
SELECT DISTINCT - COUNT ( * ) + 61 AS col1 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + 66 + + 12 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab1 AS cor0 WHERE NOT col1 IN ( col2 )
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 38 col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 11 col0 FROM tab0 AS cor0
----
-11

query I rowsort
SELECT - ( + ( - - col0 ) ) + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 / - + col1 IS NULL ) OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 59 + + + col2 FROM tab1
----
118
127
155

query I rowsort
SELECT DISTINCT ( + 56 ) FROM tab2
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5595
SELECT DISTINCT * FROM tab2 WHERE NOT ( 2 * + col0 + + col1 + - 86 ) IN ( 56, CAST( - 46 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5595
SELECT DISTINCT * FROM tab2 WHERE NOT ( 2 * + col0 + + col1 + - 86 ) IN ( 56, CAST ( - 46 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + 69 col1 FROM tab0
----
140
140
140

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + col2 <= - 62 * - col0 + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 38 * - ( - + col1 ) FROM tab1
----
-1786
-190
-532

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE - col1 NOT BETWEEN - col2 AND col0
----
51
67
77

query I rowsort
SELECT DISTINCT + col2 + 69 - + 30 * - 3 FROM tab2
----
182
199
217

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5602
SELECT ALL + COUNT( * ) * + 39 FROM tab2
----
117

skipif mysql # not compatible
query I rowsort label-5602
SELECT ALL + COUNT ( * ) * + 39 FROM tab2
----
117

query I rowsort
SELECT - + 69 * - col0 AS col0 FROM tab1 AS cor0
----
3519
5865
6279

query I rowsort
SELECT col0 * - col0 * - + col1 + - + 80 * + col2 + - 71 FROM tab0 AS cor0 WHERE - ( + 71 ) + + - col2 - + + col0 + col0 IS NOT NULL
----
1418
14394
158078

query I rowsort
SELECT ALL - - col1 + col0 + + col0 FROM tab2 AS cor0
----
143
205
217

query I rowsort
SELECT DISTINCT col1 * + 36 AS col0 FROM tab0
----
2916
36
756

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 49 NOT IN ( - + 55 * - 5 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5608
SELECT DISTINCT - MAX( ( - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5608
SELECT DISTINCT - MAX ( ( - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5609
SELECT DISTINCT AVG ( - + ( 15 ) ) / + CAST( + + COUNT( * ) AS SIGNED ) FROM tab2 WHERE NOT + - 20 + col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5609
SELECT DISTINCT AVG ( - + ( 15 ) ) / + CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab2 WHERE NOT + - 20 + col2 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IN ( - - col1 * + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT DISTINCT - + ( - + COUNT( * ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5611
SELECT DISTINCT - + ( - + COUNT ( * ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 55 + + 96 AS col1 FROM tab1 AS cor0
----
41

query I rowsort
SELECT ALL - 5 + 67 + - 84 FROM tab1 AS cor0
----
-22
-22
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5614
SELECT DISTINCT - CAST( + + col0 AS SIGNED ) FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5614
SELECT DISTINCT - CAST ( + + col0 AS INTEGER ) FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT - 13 * - col2 * col0 + + + ( 27 ) AS col0 FROM tab0 AS cor0 WHERE NOT + col2 * col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE + col1 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col1 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5618
SELECT DISTINCT 7 + 24 - COUNT( * ), - 24 AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
31
-24

skipif mysql # not compatible
query II rowsort label-5618
SELECT DISTINCT 7 + 24 - COUNT ( * ), - 24 AS col1 FROM tab2 WHERE NOT NULL <= NULL
----
31
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5619
SELECT 30 - ( AVG ( CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5619
SELECT 30 - ( AVG ( CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 WHERE NOT NULL <> NULL
----
NULL

query I rowsort
SELECT - 61 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT - 67 * + - col0 AS col2 FROM tab0 AS cor0
----
1005
5829
6499

onlyif mysql # aggregate syntax: 
query I rowsort label-5622
SELECT ALL COUNT( * ) * - COUNT( DISTINCT + + 6 ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5622
SELECT ALL COUNT ( * ) * - COUNT ( DISTINCT + + 6 ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - col2 col2, col1 FROM tab1 AS cor0
----
4896
14
5015
5
6188
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 9 * 16 col2 FROM tab2 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query I rowsort label-5625
SELECT + - MIN( + 29 ) FROM tab1 cor0
----
-29

skipif mysql # not compatible
query I rowsort label-5625
SELECT + - MIN ( + 29 ) FROM tab1 cor0
----
-29

query I rowsort
SELECT DISTINCT - col1 + + 54 * - col1 AS col2 FROM tab0 AS cor0
----
-1155
-4455
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - ( - col1 ) * col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2 AS col0, + 31 * col1 AS col1 FROM tab1 AS cor0
----
59
155
68
1457
96
434

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5629
SELECT + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5629
SELECT + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab2
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5630
SELECT + ( - - 87 ), + 96 * 36 + - col1 + - col1 / - + CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab0 WHERE col2 * - 14 + + + col2 + - col0 >= - 83
----

skipif mysql # not compatible
query II rowsort label-5630
SELECT + ( - - 87 ), + 96 * 36 + - col1 + - col1 / - + CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab0 WHERE col2 * - 14 + + + col2 + - col0 >= - 83
----

query I rowsort
SELECT DISTINCT - col0 * - + ( - 95 ) * col0 - - - col1 AS col0 FROM tab1
----
-247109
-686380
-786742

query I rowsort
SELECT + col1 + 83 + col2 FROM tab0
----
114
183
211

query I rowsort
SELECT 76 + + col0 * - ( + col0 ) * + col0 AS col0 FROM tab0
----
-3299
-658427
-912597

onlyif mysql # aggregate syntax: 
query I rowsort label-5634
SELECT ALL - SUM( DISTINCT 23 ) + + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-26

skipif mysql # not compatible
query I rowsort label-5634
SELECT ALL - SUM ( DISTINCT 23 ) + + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-26

query I rowsort
SELECT + + 86 + + + col2 AS col1 FROM tab0 AS cor0
----
133
185
96

query I rowsort
SELECT + 81 * - + col2 - - 12 + - 22 * col1 AS col1 FROM tab1 cor0
----
-4877
-6530
-8072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5637
SELECT ALL + col2 - - + CAST( - col2 AS SIGNED ) + - col0 FROM tab0 AS cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-5637
SELECT ALL + col2 - - + CAST ( - col2 AS INTEGER ) + - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-5638
SELECT ALL - COUNT( * ) - - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL - COUNT ( * ) - - COUNT ( * ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 29 - - 49 col2 FROM tab1
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5640
SELECT - 27 * + 14 * COUNT( * ) FROM tab1
----
-1134

skipif mysql # not compatible
query I rowsort label-5640
SELECT - 27 * + 14 * COUNT ( * ) FROM tab1
----
-1134

onlyif mysql # aggregate syntax: 
query I rowsort label-5641
SELECT 90 + - COUNT( * ) FROM tab1, tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-5641
SELECT 90 + - COUNT ( * ) FROM tab1, tab1 AS cor0
----
81

query I rowsort
SELECT 63 - - col1 FROM tab0
----
144
64
84

query I rowsort
SELECT + 17 AS col2 FROM tab2 AS cor0 WHERE NOT 79 IS NULL
----
17
17
17

onlyif mysql # DIV for integer division: 
query I rowsort label-5644
SELECT ALL + - 32 DIV col0 col1 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5644
SELECT ALL + - 32 / col0 col1 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5645
SELECT DISTINCT + col2 * - col1 - ( + 15 ) + + col1 * - - 23 + col1 * + col2 * - 0 FROM tab2 AS cor0 WHERE + CAST( - col2 AS SIGNED ) IS NOT NULL
----
-1324
-15
-2360

skipif mysql # not compatible
query I rowsort label-5645
SELECT DISTINCT + col2 * - col1 - ( + 15 ) + + col1 * - - 23 + col1 * + col2 * - 0 FROM tab2 AS cor0 WHERE + CAST ( - col2 AS INTEGER ) IS NOT NULL
----
-1324
-15
-2360

query I rowsort
SELECT DISTINCT - ( - col0 ) * - col0 * - 51 FROM tab2 AS cor0
----
107916
208896
286875

query I rowsort
SELECT DISTINCT 18 FROM tab2 cor0
----
18

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT MIN( - 86 ) FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-5649
SELECT MIN ( - 86 ) FROM tab2
----
-86

query II rowsort
SELECT DISTINCT 1 AS col2, + col2 AS col1 FROM tab2
----
1
23
1
40
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT MAX( ALL 26 ) FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-5651
SELECT MAX ( ALL 26 ) FROM tab2
----
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5652
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - + ( + + 92 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5652
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - + ( + + 92 ) FROM tab1
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 * - col1 + col0 <> - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + + 67 ) AS col0 FROM tab2
----
67
67
67

query I rowsort
SELECT - - ( - - ( + col1 ) ) + - col0 - 80 * + + col1 - - col0 AS col1 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - MIN( DISTINCT + - 23 ) col1 FROM tab0 AS cor0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5656
SELECT - MIN ( DISTINCT + - 23 ) col1 FROM tab0 AS cor0
----
23

query I rowsort
SELECT DISTINCT - 83 AS col0 FROM tab1 cor0
----
-83

onlyif mysql # aggregate syntax: 
query II rowsort label-5658
SELECT ALL - COUNT( * ) AS col0, COUNT( * ) AS col0 FROM tab2 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-5658
SELECT ALL - COUNT ( * ) AS col0, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5659
SELECT - + COUNT( - + 81 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5659
SELECT - + COUNT ( - + 81 ) FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ( col0 ) * + + ( + col0 ) * col2 FROM tab2 AS cor0
----
163840
326250
48668

query I rowsort
SELECT + col1 + 91 FROM tab0 AS cor0
----
112
172
92

query I rowsort
SELECT - ( col1 ) * + - 87 + col2 + col0 * 85 FROM tab2 AS cor0
----
12179
12262
8370

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5663
SELECT + + col0 + + col0 + - 27 - - + col2 + - ( + 85 ) + + - ( + col2 ) * - - 66 / - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT + + col0 + + col0 + - 27 - - + col2 + - ( + 85 ) + + - ( + col2 ) * - - 66 / - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5664
SELECT DISTINCT - 39 * - - col0 FROM tab1 AS cor0 WHERE 83 * - CAST( NULL AS SIGNED ) >= - - col0
----

skipif mysql # not compatible
query I rowsort label-5664
SELECT DISTINCT - 39 * - - col0 FROM tab1 AS cor0 WHERE 83 * - CAST ( NULL AS INTEGER ) >= - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5665
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN 59 AND col1 * + CAST( NULL AS DECIMAL ) + col0 + + - ( + col0 )
----

skipif mysql # not compatible
query III rowsort label-5665
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN 59 AND col1 * + CAST ( NULL AS REAL ) + col0 + + - ( + col0 )
----

query I rowsort
SELECT DISTINCT + - col0 + ( col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5667
SELECT + col2 + - 65 + + ( + col1 ) - + col2 * + CAST( NULL AS DECIMAL ) / + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5667
SELECT + col2 + - 65 + + ( + col1 ) - + col2 * + CAST ( NULL AS REAL ) / + 46 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + col0 * 80 AS col2 FROM tab1 AS cor0
----
-4080
-6800
-7280

query I rowsort
SELECT - 46 * col0 AS col1 FROM tab2
----
-2116
-2944
-3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 60 ) * + col2 + - + col0 col0 FROM tab0
----
-2835
-6037
-687

query I rowsort
SELECT DISTINCT col0 + + col2 + - - 69 FROM tab2
----
138
173
202

onlyif mysql # aggregate syntax: 
query I rowsort label-5672
SELECT COUNT( * ) * + 65 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5672
SELECT COUNT ( * ) * + 65 FROM tab2
----
195

query III rowsort
SELECT * FROM tab1 cor0 WHERE 65 NOT BETWEEN - col1 * - col0 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 64 * - + col1 * - - 42 + col0 + - col1 + - - 0 + - col1 + + 0 / col0 * + - col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND - + col1 * - 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5675
SELECT * FROM tab2 WHERE - col1 * - 35 - + col2 + - col2 - - - CAST( NULL AS SIGNED ) + + + col2 * - - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5675
SELECT * FROM tab2 WHERE - col1 * - 35 - + col2 + - col2 - - - CAST ( NULL AS INTEGER ) + + + col2 * - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5676
SELECT DISTINCT + SUM( + 40 ) * 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
23040

skipif mysql # not compatible
query I rowsort label-5676
SELECT DISTINCT + SUM ( + 40 ) * 64 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
23040

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT + - COUNT( * ) AS col1 FROM tab0 WHERE NOT + 90 / - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-5677
SELECT + - COUNT ( * ) AS col1 FROM tab0 WHERE NOT + 90 / - col1 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN ( NULL ) AND NULL )
----

query I rowsort
SELECT - - col0 * + - col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - 87 FROM tab2 AS cor0 WHERE NOT 56 = + col1
----
-87
-87
-87

onlyif mysql # DIV for integer division: 
query I rowsort label-5681
SELECT + - col2 DIV - + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5681
SELECT + - col2 / - + col0 + - col2 AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5682
SELECT + COUNT( * ) * MAX( - + ( 2 ) ) * + - 30 FROM tab0 AS cor0
----
180

skipif mysql # not compatible
query I rowsort label-5682
SELECT + COUNT ( * ) * MAX ( - + ( 2 ) ) * + - 30 FROM tab0 AS cor0
----
180

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT + 76 * - 44 * - COUNT( * ) FROM tab1 AS cor0
----
10032

skipif mysql # not compatible
query I rowsort label-5683
SELECT + 76 * - 44 * - COUNT ( * ) FROM tab1 AS cor0
----
10032

query I rowsort
SELECT ALL - col2 + - 3 * + ( + 25 ) + + col1 + + - col2 FROM tab1 WHERE - col1 - 47 + - col2 * - 95 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5685
SELECT ALL 36 DIV col1 FROM tab1
----
0
2
7

skipif mysql # not compatible
query I rowsort label-5685
SELECT ALL 36 / col1 FROM tab1
----
0
2
7

query I rowsort
SELECT DISTINCT 0 AS col2 FROM tab0 WHERE ( - 89 ) NOT IN ( 95 + - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT DISTINCT col0 DIV 50 AS col1 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-5687
SELECT DISTINCT col0 / 50 AS col1 FROM tab0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5688
SELECT DISTINCT + MAX( DISTINCT + 86 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-5688
SELECT DISTINCT + MAX ( DISTINCT + 86 ) FROM tab0 AS cor0
----
86

query II rowsort
SELECT + col0, + 39 AS col1 FROM tab2 AS cor0
----
46
39
64
39
75
39

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col0 - col0 * + - col0 AND + col1
----

query I rowsort
SELECT + col0 * + col0 * + 77 AS col1 FROM tab0 AS cor0
----
17325
582813
724493

query II rowsort
SELECT ALL col1 AS col2, 39 * - col2 AS col1 FROM tab0
----
1
-3861
21
-390
81
-1833

onlyif mysql # DIV for integer division: 
query I rowsort label-5693
SELECT col1 DIV + 53 + + 2 FROM tab2 AS cor0
----
2
3
3

skipif mysql # not compatible
query I rowsort label-5693
SELECT col1 / + 53 + + 2 FROM tab2 AS cor0
----
2
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE col2 - + + 85 + - col2 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5694
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE col2 - + + 85 + - col2 < NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5695
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( col1 AS SIGNED ) * - col2 * - col2 BETWEEN 56 / - 71 AND + col0
----

skipif mysql # not compatible
query III rowsort label-5695
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( col1 AS INTEGER ) * - col2 * - col2 BETWEEN 56 / - 71 AND + col0
----

query I rowsort
SELECT ALL col0 * + col2 + col2 - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT DISTINCT + + col0 + - ( 93 ) FROM tab2 AS cor0
----
-18
-29
-47

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL < 29
----

query II rowsort
SELECT DISTINCT + col2 - - + 38 AS col0, - col1 AS col2 FROM tab1 AS cor0
----
106
-47
134
-14
97
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( - - col1 ) AND 7 * + - 42 - 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5701
SELECT + 92 * - 71 - + COUNT( * ) AS col1 FROM tab0
----
-6535

skipif mysql # not compatible
query I rowsort label-5701
SELECT + 92 * - 71 - + COUNT ( * ) AS col1 FROM tab0
----
-6535

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5702
SELECT DISTINCT CAST( + ( col0 ) AS SIGNED ) FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5702
SELECT DISTINCT CAST ( + ( col0 ) AS INTEGER ) FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5703
SELECT + COUNT( * ) DIV - COUNT( * ) + - COUNT( DISTINCT 78 ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-5703
SELECT + COUNT ( * ) / - COUNT ( * ) + - COUNT ( DISTINCT 78 ) AS col2 FROM tab1
----
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5704
SELECT CAST( NULL AS SIGNED ) + 2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5704
SELECT CAST ( NULL AS INTEGER ) + 2 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5705
SELECT DISTINCT + col1 * col0 + - - CAST( + 25 AS SIGNED ) - - col2 + + 19 col1 FROM tab1 AS cor0
----
4389
528
854

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5705
SELECT DISTINCT + col1 * col0 + - - CAST ( + 25 AS INTEGER ) - - col2 + + 19 col1 FROM tab1 AS cor0
----
4389
528
854

onlyif mysql # aggregate syntax: 
query I rowsort label-5706
SELECT ( - - COUNT( * ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5706
SELECT ( - - COUNT ( * ) ) FROM tab0 WHERE NOT NULL NOT BETWEEN - - col0 AND NULL
----
0

query I rowsort
SELECT DISTINCT + 83 * + + col2 FROM tab2 AS cor0
----
1909
3320
4814

query II rowsort
SELECT DISTINCT + 84, 34 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5709
SELECT ALL + - 83 DIV COUNT( * ) FROM tab1 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5709
SELECT ALL + - 83 / COUNT ( * ) FROM tab1 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-5710
SELECT ALL + SUM( - - col2 ) AS col1 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-5710
SELECT ALL + SUM ( - - col2 ) AS col1 FROM tab1 cor0
----
223

query I rowsort
SELECT 70 * - col1 + + col2 + 52 FROM tab2 AS cor0
----
-3495
-4580
-5298

query II rowsort
SELECT + col0 AS col0, - col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
-23
64
-40
75
-58

query I rowsort
SELECT - ( 21 ) FROM tab1, tab1 cor0 WHERE NOT 34 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5714
SELECT + CAST( col2 AS SIGNED ), col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----

skipif mysql # not compatible
query II rowsort label-5714
SELECT + CAST ( col2 AS INTEGER ), col0 FROM tab1 AS cor0 WHERE NOT NULL <> - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5715
SELECT DISTINCT col0 DIV - 49 FROM tab2 cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-5715
SELECT DISTINCT col0 / - 49 FROM tab2 cor0
----
-1
0

query I rowsort
SELECT DISTINCT - - col1 + + ( - - 67 ) + + - col0 * col1 AS col1 FROM tab2 AS cor0
----
-2228
-4784
-4891

onlyif mysql # aggregate syntax: 
query II rowsort label-5717
SELECT DISTINCT - - COUNT( + + col1 ), 35 AS col0 FROM tab1 AS cor0
----
3
35

skipif mysql # not compatible
query II rowsort label-5717
SELECT DISTINCT - - COUNT ( + + col1 ), 35 AS col0 FROM tab1 AS cor0
----
3
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * col1 - + col2 col2 FROM tab0 AS cor0
----
0
200
3760

query II rowsort
SELECT - + col0 * 31 * + + ( - 42 ) AS col2, col2 AS col1 FROM tab1 AS cor0
----
110670
59
118482
68
66402
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT + SUM( + - col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5720
SELECT + SUM ( + - col2 ) FROM tab0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-5721
SELECT ALL 42 AS col1, COUNT( * ) AS col0 FROM tab0
----
42
3

skipif mysql # not compatible
query II rowsort label-5721
SELECT ALL 42 AS col1, COUNT ( * ) AS col0 FROM tab0
----
42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5722
SELECT - COUNT( * ) * + 84 * - COUNT( * ) * - 45 AS col0 FROM tab2
----
-34020

skipif mysql # not compatible
query I rowsort label-5722
SELECT - COUNT ( * ) * + 84 * - COUNT ( * ) * - 45 AS col0 FROM tab2
----
-34020

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5723
SELECT ALL + CAST( - 25 AS SIGNED ) + + + 28 FROM tab2 cor0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-5723
SELECT ALL + CAST ( - 25 AS INTEGER ) + + + 28 FROM tab2 cor0
----
3
3
3

query I rowsort
SELECT DISTINCT col2 + 4 FROM tab1 AS cor0
----
100
63
72

query I rowsort
SELECT DISTINCT + - 98 + 12 * + 36 * col0 * col2 FROM tab0 AS cor0
----
304462
375742
4148398

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5726
SELECT 95 + - + ( - 48 ) + CAST( NULL AS DECIMAL ) + - + 67 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5726
SELECT 95 + - + ( - 48 ) + CAST ( NULL AS REAL ) + - + 67 * col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5727
SELECT ALL col0 DIV - + col1 - - 16 FROM tab1 AS cor0
----
-1
13
15

skipif mysql # not compatible
query I rowsort label-5727
SELECT ALL col0 / - + col1 - - 16 FROM tab1 AS cor0
----
-1
13
15

query I rowsort
SELECT col2 * + ( - + 88 ) FROM tab0
----
-4136
-8712
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT + - COUNT( ALL - + col1 ) AS col2 FROM tab0 WHERE + 39 > + col0 * - + col0 / + + col1 + + - col2
----
-3

skipif mysql # not compatible
query I rowsort label-5729
SELECT + - COUNT ( ALL - + col1 ) AS col2 FROM tab0 WHERE + 39 > + col0 * - + col0 / + + col1 + + - col2
----
-3

query I rowsort
SELECT col2 - - + col2 + + col1 * + 61 AS col0 FROM tab2
----
3157
4203
4777

onlyif mysql # aggregate syntax: 
query I rowsort label-5731
SELECT + + 18 * + + 34 - COUNT( * ) AS col1 FROM tab0 AS cor0
----
609

skipif mysql # not compatible
query I rowsort label-5731
SELECT + + 18 * + + 34 - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
609

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 45 BETWEEN NULL AND + col1
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5733
SELECT - + COUNT( * ) DIV + - ( COUNT( * ) ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5733
SELECT - + COUNT ( * ) / + - ( COUNT ( * ) ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5734
SELECT - - COUNT( * ) AS col2, 70 FROM tab1 AS cor0
----
3
70

skipif mysql # not compatible
query II rowsort label-5734
SELECT - - COUNT ( * ) AS col2, 70 FROM tab1 AS cor0
----
3
70

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5735
SELECT + COUNT( * ), CAST( 52 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
52

skipif mysql # not compatible
query II rowsort label-5735
SELECT + COUNT ( * ), CAST ( 52 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
52

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + col1 BETWEEN NULL AND 71 * - 91 + + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-5737
SELECT - ( COUNT( * ) ) AS col1, COUNT( * ) FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-5737
SELECT - ( COUNT ( * ) ) AS col1, COUNT ( * ) FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5738
SELECT DISTINCT + COUNT( * ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-99

skipif mysql # not compatible
query I rowsort label-5738
SELECT DISTINCT + COUNT ( * ) * - 11 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-99

query I rowsort
SELECT ALL col1 * 33 * - col1 + - 77 FROM tab1 AS cor0
----
-6545
-72974
-902

onlyif mysql # aggregate syntax: 
query I rowsort label-5740
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5740
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query II rowsort label-5741
SELECT ALL - - col0 DIV + col2 col1, + col2 AS col1 FROM tab0 AS cor0
----
0
47
0
99
8
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5741
SELECT ALL - - col0 / + col2 col1, + col2 AS col1 FROM tab0 AS cor0
----
0
47
0
99
8
10

query I rowsort
SELECT ALL + + ( col2 ) * - col2 FROM tab1 AS cor0
----
-3481
-4624
-9216

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + - col1 IS NULL OR NOT NULL IN ( - 87 + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5744
SELECT + MAX( - col0 ) AS col2, + 41 FROM tab1 AS cor0
----
-51
41

skipif mysql # not compatible
query II rowsort label-5744
SELECT + MAX ( - col0 ) AS col2, + 41 FROM tab1 AS cor0
----
-51
41

onlyif mysql # DIV for integer division: 
query II rowsort label-5745
SELECT col1 * col0 DIV + + col2 + - 73 * col1 AS col1, + col0 FROM tab0 AS cor0
----
-1351
87
-5888
15
-73
97

skipif mysql # not compatible
query II rowsort label-5745
SELECT col1 * col0 / + + col2 + - 73 * col1 AS col1, + col0 FROM tab0 AS cor0
----
-1351
87
-5888
15
-73
97

query I rowsort
SELECT 11 * - + ( col0 ) + + + 32 AS col2 FROM tab1 AS cor0
----
-529
-903
-969

query II rowsort
SELECT - + ( + - col2 ) AS col1, + 89 FROM tab0 cor0
----
10
89
47
89
99
89

query I rowsort
SELECT ALL + 52 * + - col0 FROM tab2 AS cor0
----
-2392
-3328
-3900

query I rowsort
SELECT DISTINCT - ( - + 47 ) FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5750
SELECT DISTINCT + 48 + - COUNT( * ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + 48 + - COUNT ( * ) FROM tab0
----
45

query II rowsort
SELECT col1, - col2 AS col2 FROM tab1
----
14
-96
47
-68
5
-59

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE - col2 + col0 + 24 * - + col0 + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5753
SELECT CAST( - - col0 AS SIGNED ) AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5753
SELECT CAST ( - - col0 AS INTEGER ) AS col1 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab1 cor0 WHERE NULL IS NULL
----
59
68
96

query I rowsort
SELECT col1 + - - 67 AS col2 FROM tab0 AS cor0
----
148
68
88

query I rowsort
SELECT - + col2 + - col1 + col0 FROM tab1 cor0
----
-24
-59
21

query I rowsort
SELECT - + col2 + - col0 + - + col2 + + col1 FROM tab0 cor0
----
-28
-294
-86

query I rowsort
SELECT - 3 * + + col0 * + col0 * 57 FROM tab0
----
-1294299
-1608939
-38475

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5759
SELECT CAST( 66 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-5759
SELECT CAST ( 66 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
66
66
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 55 - + 4 col0 FROM tab1 AS cor0
----
51
51
51

query II rowsort
SELECT ALL + col2 + col1 AS col1, ( + col2 ) FROM tab0 AS cor0
----
100
99
128
47
31
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5762
SELECT - col1 + + 57, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-10
NULL
-20
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-5762
SELECT - col1 + + 57, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-10
NULL
-20
NULL
6
NULL

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE - col2 <> + + 60 / - col0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5764
SELECT - 34 + 41 + + - COUNT( DISTINCT - - col2 ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-5764
SELECT - 34 + 41 + + - COUNT ( DISTINCT - - col2 ) FROM tab0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-5765
SELECT COUNT( * ) + + - 56 AS col2 FROM tab1
----
-53

skipif mysql # not compatible
query I rowsort label-5765
SELECT COUNT ( * ) + + - 56 AS col2 FROM tab1
----
-53

onlyif mysql # DIV for integer division: 
query II rowsort label-5766
SELECT - col1 + - 43 DIV + + col1 AS col2, + col1 * - 28 FROM tab2
----
-51
-1428
-67
-1876
-77
-2156

skipif mysql # not compatible
query II rowsort label-5766
SELECT - col1 + - 43 / + + col1 AS col2, + col1 * - 28 FROM tab2
----
-51
-1428
-67
-1876
-77
-2156

query I rowsort
SELECT ALL ( - - col2 ) AS col2 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL - 59 AS col0 FROM tab1 WHERE NOT + + col1 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - col2 + col1, + col1 * col0 )
----

query I rowsort
SELECT ALL col2 * + 3 AS col0 FROM tab0 AS cor0
----
141
297
30

query I rowsort
SELECT DISTINCT - + ( - col1 ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE NOT - 68 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5773
SELECT DISTINCT + MIN( ALL + 9 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5773
SELECT DISTINCT + MIN ( ALL + 9 ) FROM tab2
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5774
SELECT DISTINCT - CAST( + - COUNT( ALL + 90 ) AS SIGNED ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5774
SELECT DISTINCT - CAST ( + - COUNT ( ALL + 90 ) AS INTEGER ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col0, + 35 AS col0 FROM tab2 AS cor0
----
46
35
64
35
75
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 AS col0, col2 col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - - col1
----

query II rowsort
SELECT DISTINCT - 64 AS col0, - ( + col1 ) FROM tab2 cor0
----
-64
-51
-64
-67
-64
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-5779
SELECT + + 65 + ( col1 ) DIV - ( col0 ) + + col2 FROM tab2 AS cor0
----
104
123
87

skipif mysql # not compatible
query I rowsort label-5779
SELECT + + 65 + ( col1 ) / - ( col0 ) + + col2 FROM tab2 AS cor0
----
104
123
87

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5780
SELECT ALL + - col1 + + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 WHERE + col1 < NULL
----

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + - col1 + + CAST ( NULL AS REAL ) AS col0 FROM tab0 WHERE + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT ALL - MAX( DISTINCT + col0 ) * + COUNT( * ) FROM tab1
----
-273

skipif mysql # not compatible
query I rowsort label-5781
SELECT ALL - MAX ( DISTINCT + col0 ) * + COUNT ( * ) FROM tab1
----
-273

query III rowsort
SELECT ALL * FROM tab2 WHERE + - col1 * - + col2 NOT IN ( col2, 41 * - col1 + - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL - COUNT( * ) + - MIN( DISTINCT - 65 ) FROM tab2 WHERE NOT ( - col1 + + 62 ) <= - col1 + + - col0
----
62

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL - COUNT ( * ) + - MIN ( DISTINCT - 65 ) FROM tab2 WHERE NOT ( - col1 + + 62 ) <= - col1 + + - col0
----
62

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5784
SELECT DISTINCT - col0 * - - col0, CAST( NULL AS DECIMAL ) AS col2 FROM tab1
----
-2601
NULL
-7225
NULL
-8281
NULL

skipif mysql # not compatible
query II rowsort label-5784
SELECT DISTINCT - col0 * - - col0, CAST ( NULL AS REAL ) AS col2 FROM tab1
----
-2601
NULL
-7225
NULL
-8281
NULL

query I rowsort
SELECT DISTINCT + 91 * - + 57 AS col0 FROM tab2
----
-5187

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5786
SELECT ALL + col1 / - 91 * - ( - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5786
SELECT ALL + col1 / - 91 * - ( - CAST ( NULL AS REAL ) ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * col1 - - col0 FROM tab1
----
1395
3287
380

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 82 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + ( + + ( + + col1 ) ) ) FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + + 88 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
88

query I rowsort
SELECT - 71 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 col2, col1 AS col0 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col0 * col1 + - + col2 + - col2 - - - col0 FROM tab2 AS cor0
----
2254
4784
4834

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND - col2 + - 14 + col1 - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5796
SELECT DISTINCT ( - 59 ) DIV + col0 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT ( - 59 ) / + col0 FROM tab2
----
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab1 WHERE NOT + - col1 IS NOT NULL
----

query I rowsort
SELECT - 99 * + + col1 FROM tab2
----
-5049
-6633
-7623

onlyif mysql # aggregate syntax: 
query I rowsort label-5799
SELECT DISTINCT - + SUM( col1 ) FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5799
SELECT DISTINCT - + SUM ( col1 ) FROM tab2 AS cor0
----
-195

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 * - col0 NOT IN ( + 66, 32 )
----

query I rowsort
SELECT - - AVG ( ALL col1 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < col1 - col1
----
NULL

query II rowsort
SELECT ALL - col1, col1 FROM tab0
----
-1
1
-21
21
-81
81

query II rowsort
SELECT DISTINCT col1 * - ( - col2 ), col2 FROM tab2
----
1173
23
3080
40
3886
58

query I rowsort
SELECT DISTINCT + col0 + 68 AS col1 FROM tab1
----
119
153
159

query I rowsort
SELECT ALL + 16 * - + col2 + + col1 FROM tab0 AS cor0
----
-139
-1583
-671

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5806
SELECT + - ( - + CAST( + - col2 AS SIGNED ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5806
SELECT + - ( - + CAST ( + - col2 AS INTEGER ) ) FROM tab2 AS cor0
----
-23
-40
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - AVG ( - col1 ) col0 FROM tab2 AS cor0 WHERE NOT + col0 * col1 + 60 * - + col2 IS NOT NULL
----
NULL

query I rowsort
SELECT - - ( - 11 ) AS col1 FROM tab1 AS cor0
----
-11
-11
-11

query I rowsort
SELECT ALL - col1 + + 65 FROM tab0 AS cor0
----
-16
44
64

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 / - 19 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( - col0 ) <= + 74
----

query II rowsort
SELECT col2 * - 83 AS col2, 52 AS col1 FROM tab1 WHERE ( - 11 IS NULL )
----

query II rowsort
SELECT 77 AS col2, col2 * + 88 + + col2 FROM tab1
----
77
5251
77
6052
77
8544

query I rowsort
SELECT + 74 AS col0 FROM tab0 WHERE ( NULL ) BETWEEN + col2 AND 16 + + ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5815
SELECT ALL ( + COUNT( * ) ) * + - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5815
SELECT ALL ( + COUNT ( * ) ) * + - COUNT ( * ) col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5816
SELECT DISTINCT 37 * + MIN( ALL - - col2 ) FROM tab0
----
370

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT 37 * + MIN ( ALL - - col2 ) FROM tab0
----
370

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5817
SELECT ALL CAST( NULL AS DECIMAL ) AS col2, - 7 - + - 56 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-5817
SELECT ALL CAST ( NULL AS REAL ) AS col2, - 7 - + - 56 + - CAST ( NULL AS REAL ) AS col1 FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 62 - + + 7 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL col0 * + ( + - col1 ) + - - 82 FROM tab1 AS cor0
----
-343
-4195
-632

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5820
SELECT DISTINCT + 97 FROM tab0 cor0 WHERE col0 * + - CAST( NULL AS SIGNED ) + 13 <> NULL
----

skipif mysql # not compatible
query I rowsort label-5820
SELECT DISTINCT + 97 FROM tab0 cor0 WHERE col0 * + - CAST ( NULL AS INTEGER ) + 13 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5821
SELECT ALL col2 DIV col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5821
SELECT ALL col2 / col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
0
1
3

query I rowsort
SELECT DISTINCT - col2 * - 83 + + - col2 FROM tab2 AS cor0
----
1886
3280
4756

query I rowsort
SELECT DISTINCT + col2 - + col1 + - - col0 + + col1 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab1 WHERE col1 + - 70 IS NULL
----

query I rowsort
SELECT 45 * - 41 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1845
-1845
-1845

query I rowsort
SELECT + 97 * + - col1 - 78 + + - ( - col0 ) FROM tab1
----
-1385
-4546
-478

query II rowsort
SELECT - col0 - - + col1 AS col1, - col0 AS col2 FROM tab0 AS cor0
----
-66
-87
-96
-97
66
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5828
SELECT ALL - 74 * - col2 + + - col2 + col0 DIV col0 col0 FROM tab0 AS cor0
----
3432
7228
731

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5828
SELECT ALL - 74 * - col2 + + - col2 + col0 / col0 col0 FROM tab0 AS cor0
----
3432
7228
731

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5829
SELECT * FROM tab1 cor0 WHERE NOT + col1 - - col2 = - CAST( NULL AS DECIMAL ) / + - col0 + col0 / - - 94
----

skipif mysql # not compatible
query III rowsort label-5829
SELECT * FROM tab1 cor0 WHERE NOT + col1 - - col2 = - CAST ( NULL AS REAL ) / + - col0 + col0 / - - 94
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5830
SELECT ALL - col1 * CAST( - 89 AS SIGNED ) AS col0 FROM tab1
----
1246
4183
445

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL - col1 * CAST ( - 89 AS INTEGER ) AS col0 FROM tab1
----
1246
4183
445

onlyif mysql # DIV for integer division: 
query I rowsort label-5831
SELECT DISTINCT col0 DIV 34 AS col1 FROM tab1
----
1
2

skipif mysql # not compatible
query I rowsort label-5831
SELECT DISTINCT col0 / 34 AS col1 FROM tab1
----
1
2

query II rowsort
SELECT 38, col2 AS col1 FROM tab1
----
38
59
38
68
38
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5833
SELECT DISTINCT - 58 DIV - col1 AS col1 FROM tab0
----
0
2
58

skipif mysql # not compatible
query I rowsort label-5833
SELECT DISTINCT - 58 / - col1 AS col1 FROM tab0
----
0
2
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5834
SELECT ALL CAST( NULL AS SIGNED ) / - col2 * - + col0 * - + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5834
SELECT ALL CAST ( NULL AS INTEGER ) / - col2 * - + col0 * - + col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5835
SELECT DISTINCT - COUNT( * ) * + 38 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-5835
SELECT DISTINCT - COUNT ( * ) * + 38 FROM tab1
----
-114

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5836
SELECT ALL + col1, + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-5836
SELECT ALL + col1, + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 / + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col2 AS col0, + col1 * - + 39 FROM tab1 AS cor0
----
59
-195
68
-1833
96
-546

query II rowsort
SELECT ALL + + col2 AS col0, 60 AS col2 FROM tab0 cor0
----
10
60
47
60
99
60

query I rowsort
SELECT + + col0 * - + col1 AS col2 FROM tab0 WHERE NOT ( col2 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + 98 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT DISTINCT SUM( - + 56 ) FROM tab0
----
-168

skipif mysql # not compatible
query I rowsort label-5842
SELECT DISTINCT SUM ( - + 56 ) FROM tab0
----
-168

query I rowsort
SELECT ALL - - col0 * - + 2 AS col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 - + col0 FROM tab2 AS cor0 WHERE ( 8 ) IS NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) >= - + ( col2 ) / + + 63 * - col2 * ( + col2 ) / - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5846
SELECT ALL - COUNT( * ) * 47 * - COUNT( * ) * COUNT( * ) + - - MIN( ALL - 11 ) FROM tab2 AS cor0
----
1258

skipif mysql # not compatible
query I rowsort label-5846
SELECT ALL - COUNT ( * ) * 47 * - COUNT ( * ) * COUNT ( * ) + - - MIN ( ALL - 11 ) FROM tab2 AS cor0
----
1258

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5847
SELECT ALL + COUNT( + col2 ) / - + CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5847
SELECT ALL + COUNT ( + col2 ) / - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + 18 / 98 * - col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5849
SELECT - CAST( NULL AS SIGNED ) + + - col0 + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5849
SELECT - CAST ( NULL AS INTEGER ) + + - col0 + col1 AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5850
SELECT ALL col1 + + - 49 DIV + col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL col1 + + - 49 / + col0 FROM tab1
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( col1, + ( col1 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND + col0
----

query I rowsort
SELECT 79 - + - col0 FROM tab2 AS cor0
----
125
143
154

query I rowsort
SELECT + ( - + col1 ) - + col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5855
SELECT - SUM( + col1 ) - ( 82 ) FROM tab1 cor0
----
-148

skipif mysql # not compatible
query I rowsort label-5855
SELECT - SUM ( + col1 ) - ( 82 ) FROM tab1 cor0
----
-148

query I rowsort
SELECT DISTINCT - 80 FROM tab0 AS cor0 WHERE ( + 83 + - col2 <> + + 67 + + + 26 )
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-5857
SELECT - MAX( ALL col0 ) - + + 39 AS col1 FROM tab2 AS cor0
----
-114

skipif mysql # not compatible
query I rowsort label-5857
SELECT - MAX ( ALL col0 ) - + + 39 AS col1 FROM tab2 AS cor0
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col2 ) * col1 + col2 * + - col1 col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT ALL + COUNT( * ) + + 19 FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-5859
SELECT ALL + COUNT ( * ) + + 19 FROM tab1
----
22

query I rowsort
SELECT - - 75 * - col0 FROM tab2 cor0
----
-3450
-4800
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 21 col1, + col2 AS col0 FROM tab0 AS cor0
----
21
10
21
47
21
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5862
SELECT ALL + - 94 DIV - + col1 FROM tab1 AS cor0
----
18
2
6

skipif mysql # not compatible
query I rowsort label-5862
SELECT ALL + - 94 / - + col1 FROM tab1 AS cor0
----
18
2
6

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5863
SELECT - - col0 DIV - + CAST( - 16 AS SIGNED ) FROM tab2 AS cor0
----
2
4
4

skipif mysql # not compatible
query I rowsort label-5863
SELECT - - col0 / - + CAST ( - 16 AS INTEGER ) FROM tab2 AS cor0
----
2
4
4

query I rowsort
SELECT 35 * - 37 AS col0 FROM tab2 AS cor0
----
-1295
-1295
-1295

query I rowsort
SELECT DISTINCT + 2 * - 31 AS col1 FROM tab1 AS cor0
----
-62

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + 47 = + col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL BETWEEN ( NULL ) AND 61 )
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT 17 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5870
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) / + 7 FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5870
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) / + 7 FROM tab0, tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + col0 >= - col1 * - col2 - - 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col2 + col1 BETWEEN + - col0 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 col0 FROM tab2
----
-57
-57
-57

query I rowsort
SELECT + ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT - col1 * + ( 61 ) AS col1 FROM tab2 AS cor0 WHERE ( NULL IS NOT NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5876
SELECT DISTINCT - - MIN( DISTINCT + 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-5876
SELECT DISTINCT - - MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 7 * 21 + + - ( - col1 ) FROM tab1 AS cor0
----
152
161
194

onlyif mysql # aggregate syntax: 
query II rowsort label-5878
SELECT ALL + + 10 + ( COUNT( * ) ) AS col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
13
-3

skipif mysql # not compatible
query II rowsort label-5878
SELECT ALL + + 10 + ( COUNT ( * ) ) AS col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
13
-3

query I rowsort
SELECT - col0 * - + col1 AS col1 FROM tab0 AS cor0
----
1215
1827
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col0 NOT BETWEEN NULL AND + - col0 + 69
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5882
SELECT 64 DIV col1 - + col1 FROM tab1
----
-10
-46
7

skipif mysql # not compatible
query I rowsort label-5882
SELECT 64 / col1 - + col1 FROM tab1
----
-10
-46
7

query II rowsort
SELECT ALL ( - col1 ) - + - col2 - 17 AS col2, col0 + - 59 + col0 + + + 42 FROM tab1
----
37
153
4
165
65
85

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 58 NOT BETWEEN - col0 AND 93 * - col0 * - + col1 + - 71 * + 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5885
SELECT col0 * CAST( NULL AS SIGNED ) + + ( + 63 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5885
SELECT col0 * CAST ( NULL AS INTEGER ) + + ( + 63 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5886
SELECT + ( col1 ) DIV - - col0 + - + col2 AS col2 FROM tab0
----
-10
-42
-99

skipif mysql # not compatible
query I rowsort label-5886
SELECT + ( col1 ) / - - col0 + - + col2 AS col2 FROM tab0
----
-10
-42
-99

query I rowsort
SELECT - ( 87 ) * - + 29 / - - col0 AS col0 FROM tab2 WHERE col2 + - + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5888
SELECT 10 + + col0 - + + col2 DIV + ( + ( + col0 ) ) * - ( col2 ) + - 14 * + + 75 FROM tab2
----
-965
-976
-994

skipif mysql # not compatible
query I rowsort label-5888
SELECT 10 + + col0 - + + col2 / + ( + ( + col0 ) ) * - ( col2 ) + - 14 * + + 75 FROM tab2
----
-965
-976
-994

onlyif mysql # aggregate syntax: 
query I rowsort label-5889
SELECT ALL + SUM( col2 ) * + 16 FROM tab2
----
1936

skipif mysql # not compatible
query I rowsort label-5889
SELECT ALL + SUM ( col2 ) * + 16 FROM tab2
----
1936

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5890
SELECT - COUNT( * ) DIV + 54 + + COUNT( * ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5890
SELECT - COUNT ( * ) / + 54 + + COUNT ( * ) AS col0 FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5891
SELECT 51 + 74 + col0 + + + ( - 33 ) + - col1 DIV - col0, 48 AS col0 FROM tab2
----
139
48
157
48
167
48

skipif mysql # not compatible
query II rowsort label-5891
SELECT 51 + 74 + col0 + + + ( - 33 ) + - col1 / - col0, 48 AS col0 FROM tab2
----
139
48
157
48
167
48

query I rowsort
SELECT + col0 + col0 + - + col0 FROM tab2 cor0
----
46
64
75

query II rowsort
SELECT col1, 60 FROM tab2 AS cor0 WHERE + col2 <> + col1
----
51
60
67
60
77
60

query I rowsort
SELECT col2 + + - col2 + - col1 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5895
SELECT ALL COUNT( * ) + + MIN( - + 56 ) col0 FROM tab1 AS cor0
----
-53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5895
SELECT ALL COUNT ( * ) + + MIN ( - + 56 ) col0 FROM tab1 AS cor0
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-5896
SELECT ALL + - COUNT( * ) + + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-5896
SELECT ALL + - COUNT ( * ) + + COUNT ( * ) FROM tab1 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 73 NOT IN ( col2 + ( + + 44 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5898
SELECT - COUNT( DISTINCT - 90 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5898
SELECT - COUNT ( DISTINCT - 90 ) FROM tab1
----
-1

query I rowsort
SELECT ALL + 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query II rowsort
SELECT ALL + ( - ( - col2 ) ) * - 51 + + col2, col2 FROM tab2 WHERE + col1 IS NOT NULL
----
-1150
23
-2000
40
-2900
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5901
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5901
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT 67 * - + col0 AS col1 FROM tab1 WHERE NOT ( NOT ( NULL ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5903
SELECT DISTINCT + ( - - COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5903
SELECT DISTINCT + ( - - COUNT ( * ) ) col0 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( + + 30 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + col2 ) * + col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL 6 AS col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
6
6
6

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 7 ) * + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5908
SELECT ALL 38 AS col1, MAX( ALL col2 ) AS col0 FROM tab0 cor0
----
38
99

skipif mysql # not compatible
query II rowsort label-5908
SELECT ALL 38 AS col1, MAX ( ALL col2 ) AS col0 FROM tab0 cor0
----
38
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 85 col0 FROM tab0 AS cor0
----
1
85
21
85
81
85

query I rowsort
SELECT - 16 - col1 FROM tab2 AS cor0 WHERE NOT 73 IS NULL
----
-67
-83
-93

query I rowsort
SELECT DISTINCT - - 73 * - 25 * - 54 FROM tab0 cor0
----
98550

query II rowsort
SELECT 23 AS col1, 51 FROM tab2
----
23
51
23
51
23
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5913
SELECT ALL + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * - + ( 2 ) * + - col1 + - ( + col2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5913
SELECT ALL + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT - col0 * - col1 * - + ( 2 ) * + - col1 + - ( + col2 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5914
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 + CAST( col2 AS SIGNED ), col0, + 7 )
----

skipif mysql # not compatible
query III rowsort label-5914
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - col0 + CAST ( col2 AS INTEGER ), col0, + 7 )
----

query II rowsort
SELECT ALL 61 AS col0, - col1 + - 91 FROM tab0 AS cor0
----
61
-112
61
-172
61
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-5916
SELECT + + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5916
SELECT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
3

query I rowsort
SELECT ALL - col2 + + col0 - + col2 FROM tab1 cor0
----
-141
-33
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-5918
SELECT DISTINCT + COUNT( * ) + 75 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5918
SELECT DISTINCT + COUNT ( * ) + 75 FROM tab0 AS cor0
----
78

query II rowsort
SELECT ALL + - col0 AS col2, col0 AS col2 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 + + col2, col1 + + col1 col1 FROM tab0 AS cor0
----
196
2
62
162
97
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5921
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 77 NOT IN ( col1 + - 44, col1 * + col2 / - + col1, + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5921
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 77 NOT IN ( col1 + - 44, col1 * + col2 / - + col1, + col1 )
----
0

query II rowsort
SELECT - ( 47 ), 47 AS col1 FROM tab2 cor0
----
-47
47
-47
47
-47
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1, col2 col2 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT DISTINCT - 74 * - col0 AS col2 FROM tab2
----
3404
4736
5550

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT COUNT( * ) * + - 10 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-5925
SELECT COUNT ( * ) * + - 10 FROM tab2
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - ( + + 71 ) col0 FROM tab2 AS cor0
----
-71
-71
-71

query I rowsort
SELECT DISTINCT + + col1 FROM tab1 AS cor0 WHERE - 35 + col1 + - col2 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5928
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 54 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5928
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 54 AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 / - 48 BETWEEN col0 + 73 AND NULL
----

query I rowsort
SELECT + 16 - 95 * + ( + col2 ) AS col1 FROM tab2
----
-2169
-3784
-5494

query I rowsort
SELECT + col0 * col0 + - col1 FROM tab0
----
144
7548
9408

query I rowsort
SELECT + col0 AS col2 FROM tab2 WHERE col0 + col0 * 47 IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col1 ) IN ( - col1 + + 62 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL ( 89 ) FROM tab0
----
89
89
89

query I rowsort
SELECT - 19 + + col1 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 * ( 18 ) + - 63 NOT IN ( - ( col2 ) * col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT + 74 * - 87 + MIN( - 33 + - col2 ) FROM tab2
----
-6529

skipif mysql # not compatible
query I rowsort label-5939
SELECT + 74 * - 87 + MIN ( - 33 + - col2 ) FROM tab2
----
-6529

query I rowsort
SELECT ALL col1 + + col1 * ( + col2 ) AS col2 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT ALL col1 * 77 + + col1 FROM tab0
----
1638
6318
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT 32 + COUNT( * ) AS col1 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-5942
SELECT 32 + COUNT ( * ) AS col1 FROM tab0
----
35

query I rowsort
SELECT DISTINCT 87 * 13 + col1 AS col1 FROM tab2
----
1182
1198
1208

query I rowsort
SELECT ALL 10 + 58 AS col1 FROM tab2
----
68
68
68

query I rowsort
SELECT ALL + 5 FROM tab1 WHERE ( + col1 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5946
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT col2 < col2
----
3

skipif mysql # not compatible
query I rowsort label-5946
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT col2 < col2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5947
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 / + 14 + col0 NOT BETWEEN ( + col1 * col1 ) AND + 30 * 47 - col1 / CAST( + col0 AS SIGNED )
----
85
5
59

skipif mysql # not compatible
query III rowsort label-5947
SELECT DISTINCT * FROM tab1 WHERE NOT + 93 / + 14 + col0 NOT BETWEEN ( + col1 * col1 ) AND + 30 * 47 - col1 / CAST ( + col0 AS INTEGER )
----
85
5
59

query III rowsort
SELECT * FROM tab2 WHERE col0 + - col1 / col0 BETWEEN 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5949
SELECT ALL COUNT( + col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5949
SELECT ALL COUNT ( + col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ALL 78 * - 60 FROM tab1
----
-4680
-4680
-4680

query I rowsort
SELECT col2 * - col1 FROM tab0 WHERE NOT col1 NOT IN ( - col1 / - col0 )
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 cor0 WHERE NOT 85 NOT BETWEEN NULL AND ( ( col1 ) )
----

query I rowsort
SELECT ALL - 59 FROM tab1 AS cor0 WHERE NOT - 45 IS NULL
----
-59
-59
-59

query I rowsort
SELECT col2 * 18 + col0 FROM tab1 AS cor0
----
1147
1315
1779

query I rowsort
SELECT DISTINCT 85 * + 1 FROM tab2 cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5956
SELECT DISTINCT - COUNT( * ) * 70 FROM tab0 AS cor0 CROSS JOIN tab1
----
-630

skipif mysql # not compatible
query I rowsort label-5956
SELECT DISTINCT - COUNT ( * ) * 70 FROM tab0 AS cor0 CROSS JOIN tab1
----
-630

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 11 = col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query I rowsort
SELECT ALL + - col1 + col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 + 41 FROM tab1 AS cor0
----
126
132
92

query I rowsort
SELECT DISTINCT - col0 * 93 AS col0 FROM tab2 AS cor0
----
-4278
-5952
-6975

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE 49 NOT BETWEEN 0 AND col0
----
1

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE 49 NOT BETWEEN 0 AND col0
----
1

query I rowsort
SELECT DISTINCT + col0 - ( + 64 ) AS col0 FROM tab0 AS cor0
----
-49
23
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5964
SELECT DISTINCT col2 + - col2 * CAST( col2 * 52 AS SIGNED ) FROM tab2 AS cor0
----
-174870
-27485
-83160

skipif mysql # not compatible
query I rowsort label-5964
SELECT DISTINCT col2 + - col2 * CAST ( col2 * 52 AS INTEGER ) FROM tab2 AS cor0
----
-174870
-27485
-83160

query I rowsort
SELECT + col2 + col2 * - col0 AS col1 FROM tab1 AS cor0 WHERE 47 + col2 <> NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE + 96 + 31 NOT BETWEEN - col2 + - 54 AND ( col2 )
----
46
64
75

query I rowsort
SELECT DISTINCT + col2 / - col1 + - 50 FROM tab1 AS cor0 WHERE NOT 25 / - 93 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 25 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE ( col1 / + col0 ) BETWEEN ( + 14 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5970
SELECT ALL 31 - COUNT( ALL - col0 ) AS col0 FROM tab1
----
28

skipif mysql # not compatible
query I rowsort label-5970
SELECT ALL 31 - COUNT ( ALL - col0 ) AS col0 FROM tab1
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-5971
SELECT + 70 + 5 + - MAX( - col0 + + col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5971
SELECT + 70 + 5 + - MAX ( - col0 + + col1 ) FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( - col0 - col0 )
----

query I rowsort
SELECT ALL + ( col0 ) * col1 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5974
SELECT - 50 + - COUNT( * ) * + COUNT( * ) AS col1 FROM tab2
----
-59

skipif mysql # not compatible
query I rowsort label-5974
SELECT - 50 + - COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2
----
-59

query I rowsort
SELECT 3 + col0 + - col2 * col0 FROM tab0
----
-687
-780
-9503

query I rowsort
SELECT ALL ( - col0 ) - - 0 FROM tab2
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT DISTINCT 51 DIV - ( - col1 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-5977
SELECT DISTINCT 51 / - ( - col1 ) FROM tab2
----
0
1

query I rowsort
SELECT col0 * col2 + + col1 * - 32 AS col0 FROM tab0
----
-1887
198
9571

onlyif mysql # DIV for integer division: 
query I rowsort label-5979
SELECT ALL - col0 DIV - col2 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-5979
SELECT ALL - col0 / - col2 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT 74 + + - col1 * 90 FROM tab1
----
-1186
-376
-4156

onlyif mysql # DIV for integer division: 
query I rowsort label-5981
SELECT DISTINCT + col0 DIV + 52 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5981
SELECT DISTINCT + col0 / + 52 AS col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5982
SELECT + ( - col2 ) - 48 DIV - col0 FROM tab1 WHERE NOT ( + col1 DIV 93 + + 58 ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5982
SELECT + ( - col2 ) - 48 / - col0 FROM tab1 WHERE NOT ( + col1 / 93 + + 58 ) IS NULL
----
-59
-68
-96

query I rowsort
SELECT 84 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - 49 AS col2, 60 FROM tab2 cor0
----
-49
60

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL < + col0
----

query I rowsort
SELECT DISTINCT + + 80 * - col0 * + + col0 + + 14 FROM tab1 AS cor0
----
-208066
-577986
-662466

onlyif mysql # aggregate syntax: 
query I rowsort label-5988
SELECT 63 + + MIN( DISTINCT - + ( col2 ) ) AS col1 FROM tab2 cor0
----
5

skipif mysql # not compatible
query I rowsort label-5988
SELECT 63 + + MIN ( DISTINCT - + ( col2 ) ) AS col1 FROM tab2 cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col1 + + 9 - - - col1 + col2 * - 16 FROM tab0 cor0
----
-151
-1575
-743

query I rowsort
SELECT 3 FROM tab1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT - 97 FROM tab0 WHERE NOT + col1 <= col0 AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5993
SELECT col0 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) >= ( - col0 ) AND NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5993
SELECT col0 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) >= ( - col0 ) AND NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col2 + - col1 * - - ( 17 ) - col1 col0 FROM tab2
----
-1081
-1269
-844

query I rowsort
SELECT ( col0 ) + - - col2 FROM tab0
----
196
62
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5996
SELECT - COUNT( * ) DIV - 93 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5996
SELECT - COUNT ( * ) / - 93 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5997
SELECT * FROM tab0 WHERE + col0 * + 48 NOT BETWEEN CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) * col0 AND NULL AND ( 90 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5997
SELECT * FROM tab0 WHERE + col0 * + 48 NOT BETWEEN CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) * col0 AND NULL AND ( 90 ) IS NOT NULL
----

query I rowsort
SELECT ALL + AVG ( + col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT + 21 * - col2 AS col1, col0 FROM tab0
----
-2079
97
-210
87
-987
15

query I rowsort
SELECT DISTINCT 51 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + col1 col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6002
SELECT ALL - + SUM( col0 ) AS col0, + SUM( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-185
121

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL - + SUM ( col0 ) AS col0, + SUM ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
-185
121

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE + col0 * + + ( - 28 ) * 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6004
SELECT DISTINCT + - 81 + CAST( NULL AS SIGNED ) + - col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6004
SELECT DISTINCT + - 81 + CAST ( NULL AS INTEGER ) + - col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 * - 49 + - 48 + - col2 + col1 FROM tab2 AS cor0
----
-1147
-1971
-2881

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT ALL SUM( ALL - - ( + - col2 ) ) * + + COUNT( * ) * - 99 + - 82 FROM tab1 AS cor0
----
66149

skipif mysql # not compatible
query I rowsort label-6006
SELECT ALL SUM ( ALL - - ( + - col2 ) ) * + + COUNT ( * ) * - 99 + - 82 FROM tab1 AS cor0
----
66149

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT NULL NOT IN ( - col1 )
----

query I rowsort
SELECT col0 + 37 + - 7 - col2 * - + 54 * col0 AS col2 FROM tab0
----
38115
47097
518689

onlyif mysql # aggregate syntax: 
query I rowsort label-6009
SELECT 78 + COUNT( * ) FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-6009
SELECT 78 + COUNT ( * ) FROM tab1
----
81

query I rowsort
SELECT - 53 + - col2 AS col2 FROM tab1 AS cor0
----
-112
-121
-149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 57 + + col2 + - - col0 col0 FROM tab0 AS cor0
----
119
154
253

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + ( - col0 ) = - col1 * + 79 - + col1 / + 32
----

query I rowsort
SELECT DISTINCT - 17 + - 95 + - + 43 * - + 29 FROM tab1 AS cor0
----
1135

onlyif mysql # aggregate syntax: 
query I rowsort label-6014
SELECT ALL - + COUNT( * ) - - 83 FROM tab0 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-6014
SELECT ALL - + COUNT ( * ) - - 83 FROM tab0 AS cor0
----
80

query I rowsort
SELECT - + col2 FROM tab1 WHERE - + col0 NOT IN ( + col0, + 5 )
----
-59
-68
-96

query I rowsort
SELECT DISTINCT - ( - col1 ) - - - 1 FROM tab2
----
50
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-6017
SELECT COUNT( * ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6017
SELECT COUNT ( * ) FROM tab0 WHERE ( col0 ) IS NOT NULL
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6018
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN - col0 AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6018
SELECT ALL * FROM tab0 WHERE NOT col1 NOT BETWEEN - col0 AND - CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6019
SELECT + col2 - + - 33 DIV col0 AS col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6019
SELECT + col2 - + - 33 / col0 AS col0 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6020
SELECT ALL + SUM( 96 ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6020
SELECT ALL + SUM ( 96 ) AS col0 FROM tab1 AS cor0
----
288

onlyif mysql # DIV for integer division: 
query I rowsort label-6021
SELECT + col1 DIV - - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6021
SELECT + col1 / - - col2 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL - - col1 * + col0, 52 AS col1 FROM tab2 AS cor0
----
2346
52
4928
52
5025
52

query I rowsort
SELECT col0 * + 77 * - 9 FROM tab1 AS cor0
----
-35343
-58905
-63063

query I rowsort
SELECT DISTINCT + - col1 * + + col2 FROM tab1 cor0
----
-1344
-295
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab1 WHERE NOT NULL = + col1 - + col2 AND + col1 * + - 57 * - + col1 + + col0 NOT BETWEEN ( col2 + + col1 * - col2 ) AND NULL
----

query I rowsort
SELECT ALL col1 * + 51 * + col1 FROM tab2
----
132651
228939
302379

query I rowsort
SELECT + col2 AS col1 FROM tab0 cor0 WHERE NOT 89 < + col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT ( SUM( 49 ) ) FROM tab1 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-6028
SELECT ( SUM ( 49 ) ) FROM tab1 AS cor0
----
147

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + - ( + 0 ) * + 73 * - - 85 - col0 * col2 ) >= 50 )
----

query II rowsort
SELECT DISTINCT col1 * - col2 AS col2, - col1 FROM tab2 AS cor0
----
-1173
-51
-3080
-77
-3886
-67

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - ( + col1 ) ) NOT BETWEEN - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT DISTINCT - COUNT( + 77 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT - COUNT ( + 77 ) FROM tab0
----
-3

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE col1 + - 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6034
SELECT ALL 52 + - COUNT( * ) + - + 65 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-6034
SELECT ALL 52 + - COUNT ( * ) + - + 65 FROM tab1
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6035
SELECT - CAST( NULL AS SIGNED ) AS col1, + 58 FROM tab0
----
NULL
58
NULL
58
NULL
58

skipif mysql # not compatible
query II rowsort label-6035
SELECT - CAST ( NULL AS INTEGER ) AS col1, + 58 FROM tab0
----
NULL
58
NULL
58
NULL
58

query I rowsort
SELECT col0 + + col1 + + 22 * + + col0 + - - col1 FROM tab1
----
1201
1965
2187

onlyif mysql # aggregate syntax: 
query I rowsort label-6037
SELECT DISTINCT + COUNT( ALL col0 ) + + 15 FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6037
SELECT DISTINCT + COUNT ( ALL col0 ) + + 15 FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-6038
SELECT + + col1 + + - col1 DIV + - col2 AS col2 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-6038
SELECT + + col1 + + - col1 / + - col2 AS col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT ALL 74 + - col1 DIV + col2 + + + col0 AS col2 FROM tab2 AS cor0
----
118
137
148

skipif mysql # not compatible
query I rowsort label-6039
SELECT ALL 74 + - col1 / + col2 + + + col0 AS col2 FROM tab2 AS cor0
----
118
137
148

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6040
SELECT DISTINCT + + 5 + - + col2 * + ( CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6040
SELECT DISTINCT + + 5 + - + col2 * + ( CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col0 + - col0 - - col1 + col1 * 94 * 56 FROM tab0 AS cor0
----
110565
426465
5265

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT - 37 * COUNT( * ) FROM tab1
----
-111

skipif mysql # not compatible
query I rowsort label-6042
SELECT - 37 * COUNT ( * ) FROM tab1
----
-111

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 71 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6044
SELECT + 90 DIV col1 * + col0 AS col1 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6044
SELECT + 90 / col1 * + col0 AS col1 FROM tab2
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - + col1 ) col2 FROM tab1 AS cor0
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6046
SELECT - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6047
SELECT ALL col1 + 70 DIV - - col0 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL col1 + 70 / - - col0 FROM tab1 AS cor0
----
15
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( col0, + col2 )
----

query I rowsort
SELECT + col0 - + 64 AS col1 FROM tab1 AS cor0
----
-13
21
27

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 NOT IN ( - col0, ( - 1 ), - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 6 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + 25 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6053
SELECT - - 35 - - col1 * ( CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
2381
4963
5060

skipif mysql # not compatible
query I rowsort label-6053
SELECT - - 35 - - col1 * ( CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
2381
4963
5060

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 76 IS NULL
----

query I rowsort
SELECT + col1 + + + 65 + + col2 AS col1 FROM tab1 AS cor0
----
129
175
180

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT DISTINCT 10 * + - COUNT( * ) AS col1 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-6056
SELECT DISTINCT 10 * + - COUNT ( * ) AS col1 FROM tab1
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6057
SELECT - - 60 * + col2 * - col1 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-12600
-228420
-5940

skipif mysql # not compatible
query I rowsort label-6057
SELECT - - 60 * + col2 * - col1 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-12600
-228420
-5940

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT - SUM( ALL col2 ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-6058
SELECT - SUM ( ALL col2 ) FROM tab1
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6059
SELECT DISTINCT * FROM tab1 WHERE NOT - 20 BETWEEN NULL AND - col2 + + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6059
SELECT DISTINCT * FROM tab1 WHERE NOT - 20 BETWEEN NULL AND - col2 + + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col0 * + - 14 FROM tab2
----
1050
644
896

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6061
SELECT - CAST( - + ( + 56 ) AS SIGNED ) FROM tab0
----
56
56
56

skipif mysql # not compatible
query I rowsort label-6061
SELECT - CAST ( - + ( + 56 ) AS INTEGER ) FROM tab0
----
56
56
56

query I rowsort
SELECT col2 * + ( + - 11 ) - - col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 + + col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 * - col1 ) = NULL
----

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6065
SELECT SUM( + 62 ) / - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6065
SELECT SUM ( + 62 ) / - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL + - COUNT( col0 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + - COUNT ( col0 ) FROM tab1 AS cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6067
SELECT - - COUNT( * ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6067
SELECT - - COUNT ( * ) * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + 42 * + col1 AS col0 FROM tab2 AS cor0
----
2142
2814
3234

onlyif mysql # aggregate syntax: 
query I rowsort label-6069
SELECT + COUNT( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6069
SELECT + COUNT ( * ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6070
SELECT - CAST( + col2 AS SIGNED ) AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6070
SELECT - CAST ( + col2 AS INTEGER ) AS col1 FROM tab1
----
-59
-68
-96

query I rowsort
SELECT DISTINCT col0 + + 67 AS col0 FROM tab1
----
118
152
158

query I rowsort
SELECT ALL 13 + col1 FROM tab0 AS cor0
----
14
34
94

onlyif mysql # aggregate syntax: 
query I rowsort label-6073
SELECT ALL 17 * COUNT( * ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-6073
SELECT ALL 17 * COUNT ( * ) AS col2 FROM tab2 AS cor0
----
51

query I rowsort
SELECT DISTINCT + ( + + col0 ) FROM tab1 AS cor0 WHERE NOT - 23 * + 95 IS NOT NULL
----

query I rowsort
SELECT - col1 + + + ( + + col2 ) AS col2 FROM tab0 AS cor0
----
-11
-34
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6076
SELECT COUNT( * ) * + 42 + + 43 FROM tab2
----
169

skipif mysql # not compatible
query I rowsort label-6076
SELECT COUNT ( * ) * + 42 + + 43 FROM tab2
----
169

onlyif mysql # DIV for integer division: 
query I rowsort label-6077
SELECT col0 * 29 DIV col1 * + 8 + - - col1 * + 94 - + ( - + 1 ) AS col2 FROM tab2
----
5003
6555
7431

skipif mysql # not compatible
query I rowsort label-6077
SELECT col0 * 29 / col1 * + 8 + - - col1 * + 94 - + ( - + 1 ) AS col2 FROM tab2
----
5003
6555
7431

query I rowsort
SELECT - 16 + + col2 + + - col0 * 47 + + col0 * - - col0 * - - 67 + 84 + - 77 FROM tab0
----
14408
503035
625934

onlyif mysql # aggregate syntax: 
query II rowsort label-6079
SELECT DISTINCT + 71 + - - COUNT( * ), + COUNT( * ) AS col1 FROM tab2 WHERE col0 + - + col1 * + + col0 < NULL
----
71
0

skipif mysql # not compatible
query II rowsort label-6079
SELECT DISTINCT + 71 + - - COUNT ( * ), + COUNT ( * ) AS col1 FROM tab2 WHERE col0 + - + col1 * + + col0 < NULL
----
71
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6080
SELECT DISTINCT 11 AS col2, COUNT( * ) FROM tab2 WHERE ( ( 35 * + ( 38 ) ) IS NOT NULL )
----
11
3

skipif mysql # not compatible
query II rowsort label-6080
SELECT DISTINCT 11 AS col2, COUNT ( * ) FROM tab2 WHERE ( ( 35 * + ( 38 ) ) IS NOT NULL )
----
11
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6081
SELECT ALL - col2 * CAST( - col1 AS SIGNED ) * + col2 FROM tab2
----
123200
225388
26979

skipif mysql # not compatible
query I rowsort label-6081
SELECT ALL - col2 * CAST ( - col1 AS INTEGER ) * + col2 FROM tab2
----
123200
225388
26979

query I rowsort
SELECT ALL 62 * + - col0 * - col2 AS col0 FROM tab2
----
158720
269700
65596

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + ( - col1 ) * + col0 * col2 + - 82 + 33 + + 80 + + col1 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6084
SELECT * FROM tab0 WHERE ( NOT 16 * + 40 IN ( + - CAST( NULL AS SIGNED ) + + col0 * + 54 + + ( - col0 ) ) )
----

skipif mysql # not compatible
query III rowsort label-6084
SELECT * FROM tab0 WHERE ( NOT 16 * + 40 IN ( + - CAST ( NULL AS INTEGER ) + + col0 * + 54 + + ( - col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + ( SUM( 99 ) ) AS col0 FROM tab1 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-6085
SELECT + ( SUM ( 99 ) ) AS col0 FROM tab1 AS cor0
----
297

query I rowsort
SELECT + 98 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6087
SELECT + col1 * - 1 * + - ( col2 ) / col0 + 0 + - 45 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6087
SELECT + col1 * - 1 * + - ( col2 ) / col0 + 0 + - 45 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6088
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - col2 + - + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6088
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - col2 + - + col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + 94 * col2 AS col1 FROM tab2 AS cor0
----
2162
3760
5452

query II rowsort
SELECT 60 AS col2, + col1 - + + 52 FROM tab0 AS cor0
----
60
-31
60
-51
60
29

query I rowsort
SELECT + ( + 53 ) FROM tab1 AS cor0
----
53
53
53

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - 54 ) NOT BETWEEN col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 56 col0 FROM tab0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - col1 ) * - col1 < NULL
----

query I rowsort
SELECT + + 24 FROM tab1 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6097
SELECT - CAST( ( ( + MAX( ALL col0 ) ) ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-6097
SELECT - CAST ( ( ( + MAX ( ALL col0 ) ) ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + col1 * + - col2 AS col0 FROM tab1
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col2 + - + col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6100
SELECT DISTINCT - - COUNT( * ) + MAX( ALL + + 87 ) FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6100
SELECT DISTINCT - - COUNT ( * ) + MAX ( ALL + + 87 ) FROM tab0 AS cor0
----
90

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col0 + - col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT - col1 + + - col0 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6103
SELECT COUNT( * ) + + - MAX( + - col0 ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-6103
SELECT COUNT ( * ) + + - MAX ( + - col0 ) FROM tab1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT COUNT( col2 ) + COUNT( * ) + - SUM( DISTINCT + col2 ) FROM tab2
----
-115

skipif mysql # not compatible
query I rowsort label-6104
SELECT COUNT ( col2 ) + COUNT ( * ) + - SUM ( DISTINCT + col2 ) FROM tab2
----
-115

query I rowsort
SELECT DISTINCT - 15 * col0 AS col2 FROM tab1
----
-1275
-1365
-765

query I rowsort
SELECT ALL - 76 + - 88 * col1 FROM tab0
----
-164
-1924
-7204

onlyif mysql # aggregate syntax: 
query I rowsort label-6107
SELECT COUNT( col1 ) + - COUNT( 28 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6107
SELECT COUNT ( col1 ) + - COUNT ( 28 ) col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - col0 - col0 * - col2, col1, - ( + 79 ) )
----

query II rowsort
SELECT ALL - + col0 AS col2, - col1 AS col1 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

query III rowsort
SELECT * FROM tab1 WHERE NULL <= + 61
----

query I rowsort
SELECT ALL + col1 + col1 - + col1 * - col0 AS col1 FROM tab1
----
435
4371
742

query I rowsort
SELECT - 82 * - 18 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b0d7c64780d3486ee6f1de59b9c2f7d7

onlyif mysql # DIV for integer division: 
query I rowsort label-6113
SELECT ALL col0 DIV + + col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-6113
SELECT ALL col0 / + + col1 FROM tab1
----
1
17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 70 col1 FROM tab0 AS cor0
----
-70
-70
-70

query I rowsort
SELECT col1 * + - 83 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( col2 * + col1 IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col2 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6118
SELECT CAST( + MAX( - + col0 ) AS SIGNED ) AS col2 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-6118
SELECT CAST ( + MAX ( - + col0 ) AS INTEGER ) AS col2 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-6119
SELECT ALL + 71 * + - COUNT( * ) col1 FROM tab2
----
-213

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6119
SELECT ALL + 71 * + - COUNT ( * ) col1 FROM tab2
----
-213

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <= + col0
----
85
5
59
91
47
68

query I rowsort
SELECT col1 + + col1 * - 4 AS col1 FROM tab0 cor0
----
-243
-3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-6122
SELECT ALL + - SUM( + col0 ) * + COUNT( * ) + + COUNT( * ) * + 33 FROM tab1 cor0
----
-582

skipif mysql # not compatible
query I rowsort label-6122
SELECT ALL + - SUM ( + col0 ) * + COUNT ( * ) + + COUNT ( * ) * + 33 FROM tab1 cor0
----
-582

query II rowsort
SELECT + col1 + - 73, + col2 + col1 AS col2 FROM tab0 AS cor0
----
-52
31
-72
100
8
128

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT + - 23 + SUM( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-6124
SELECT + - 23 + SUM ( DISTINCT - col1 ) AS col0 FROM tab0 AS cor0
----
-126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6125
SELECT - 75 FROM tab1 WHERE NULL NOT BETWEEN + CAST( NULL AS SIGNED ) + + - col0 AND NULL
----

skipif mysql # not compatible
query I rowsort label-6125
SELECT - 75 FROM tab1 WHERE NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) + + - col0 AND NULL
----

query I rowsort
SELECT ALL - ( col1 ) * - + col1 * + + 17 FROM tab0
----
111537
17
7497

onlyif mysql # aggregate syntax: 
query I rowsort label-6127
SELECT - 69 * + MIN( ALL + 55 ) FROM tab2
----
-3795

skipif mysql # not compatible
query I rowsort label-6127
SELECT - 69 * + MIN ( ALL + 55 ) FROM tab2
----
-3795

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE NOT - col2 + + 61 + + + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6129
SELECT - COUNT( - col2 ) * + 64, 12 col1 FROM tab2
----
-192
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6129
SELECT - COUNT ( - col2 ) * + 64, 12 col1 FROM tab2
----
-192
12

query I rowsort
SELECT ALL 23 * - + col2 AS col2 FROM tab2
----
-1334
-529
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6131
SELECT ALL + 16 * - col0 + 65 + + ( + - 22 ) + - col2 * - CAST( NULL AS SIGNED ) * + ( + 12 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6131
SELECT ALL + 16 * - col0 + 65 + + ( + - 22 ) + - col2 * - CAST ( NULL AS INTEGER ) * + ( + 12 ) AS col2 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE + - ( + col2 ) * col1 * - col2 + + 79 + - 53 + - ( col2 ) + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6133
SELECT DISTINCT 41 DIV + - 45 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT 41 / + - 45 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 + + + col1 + col1 + - + col0 - + ( - ( - col0 ) ) * - col2 FROM tab1
----
4924
5025
6282

onlyif mysql # aggregate syntax: 
query I rowsort label-6135
SELECT ALL + 33 + - 98 + COUNT( * ) col2 FROM tab0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6135
SELECT ALL + 33 + - 98 + COUNT ( * ) col2 FROM tab0
----
-62

query I rowsort
SELECT DISTINCT col1 - - 4 AS col2 FROM tab1 AS cor0
----
18
51
9

query II rowsort
SELECT + col1 + - col0 * + + col0 AS col2, + 20 FROM tab2 AS cor0
----
-2065
20
-4019
20
-5558
20

query I rowsort
SELECT - 31 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 + - - col1 / - 83 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6140
SELECT ALL - COUNT( * ) * - - 65 + + 79 AS col1 FROM tab2 AS cor0
----
-116

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL - COUNT ( * ) * - - 65 + + 79 AS col1 FROM tab2 AS cor0
----
-116

query I rowsort
SELECT col1 * - col0 + 83 FROM tab1 AS cor0
----
-342
-4194
-631

query I rowsort
SELECT ALL + - col2 * ( + - 61 ) AS col0 FROM tab1 AS cor0
----
3599
4148
5856

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 25 * + ( + - 35 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 25 * + ( + - 35 ) AS col2 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 83 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab2 WHERE NOT + - col1 <= - col1 * col1
----
23
40
58

query III rowsort
SELECT ALL * FROM tab0 WHERE - col2 * 71 - + col1 NOT BETWEEN - ( + 20 ) + + + 6 * col2 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6147
SELECT CAST( NULL AS SIGNED ) * - 65 + + COUNT( * ) col2 FROM tab1 WHERE NOT col1 NOT IN ( - 57, col2 * - col0 * - - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6147
SELECT CAST ( NULL AS INTEGER ) * - 65 + + COUNT ( * ) col2 FROM tab1 WHERE NOT col1 NOT IN ( - 57, col2 * - col0 * - - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6148
SELECT - MAX( DISTINCT 2 ), COUNT( * ) AS col2 FROM tab2
----
-2
3

skipif mysql # not compatible
query II rowsort label-6148
SELECT - MAX ( DISTINCT 2 ), COUNT ( * ) AS col2 FROM tab2
----
-2
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 + col0 col2 FROM tab0 WHERE NOT ( NULL ) < col0 * + col0
----

query I rowsort
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
23
40
58

query I rowsort
SELECT + ( + + 1 ) AS col0 FROM tab2
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + + col1 + + col0 AS col0, + col2 * + 40 AS col1, 34 * - + col2 * col1 + - col1 col2 FROM tab2 WHERE NULL IS NULL
----
9 values hashing to 1252c3ebafe0527fb85896b0019b62dc

query I rowsort
SELECT DISTINCT - - 80 + - + 55 - - - col0 * col0 + col0 + + 92 * col0 AS col2 FROM tab0 AS cor0
----
-363
1195
547

query I rowsort
SELECT ALL + col2 + 12 - col0 * + 77 AS col2 FROM tab0 AS cor0
----
-1096
-6677
-7358

query II rowsort
SELECT 33 AS col0, - col0 * + col1 AS col1 FROM tab0 AS cor0
----
33
-1215
33
-1827
33
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT - 49 + + COUNT( - + 64 ) AS col2 FROM tab0 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT - 49 + + COUNT ( - + 64 ) AS col2 FROM tab0 AS cor0
----
-46

query I rowsort
SELECT ALL + - col1 + + + col2 * - + 98 FROM tab1 AS cor0
----
-5787
-6711
-9422

onlyif mysql # aggregate syntax: 
query I rowsort label-6158
SELECT DISTINCT - 95 - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-98

skipif mysql # not compatible
query I rowsort label-6158
SELECT DISTINCT - 95 - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6159
SELECT + + CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0 WHERE - col1 NOT BETWEEN + + ( - - 55 ) AND NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6159
SELECT + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0 WHERE - col1 NOT BETWEEN + + ( - - 55 ) AND NULL
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + + 43 col2 FROM tab1 AS cor0
----
16
25
53

onlyif mysql # aggregate syntax: 
query I rowsort label-6161
SELECT + - COUNT( * ) - 50 FROM tab0 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-6161
SELECT + - COUNT ( * ) - 50 FROM tab0 AS cor0
----
-53

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6163
SELECT + MIN( ALL - - col0 ) FROM tab0 WHERE + col1 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-6163
SELECT + MIN ( ALL - - col0 ) FROM tab0 WHERE + col1 IS NOT NULL
----
15

query III rowsort
SELECT * FROM tab2 WHERE + 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 19 * col2 + + 43 FROM tab0
----
1924
233
936

query I rowsort
SELECT - col0 AS col2 FROM tab1 WHERE ( col1 IS NOT NULL )
----
-51
-85
-91

query I rowsort
SELECT col1 * - col1 + 49 * col2 FROM tab2
----
-1474
-1647
-3969

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + + 65 IS NOT NULL
----

query I rowsort
SELECT ( + 55 ) FROM tab0 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6170
SELECT + MIN( ALL + + 71 ) AS col1 FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-6170
SELECT + MIN ( ALL + + 71 ) AS col1 FROM tab2 AS cor0
----
71

query I rowsort
SELECT DISTINCT col2 * - 10 AS col1 FROM tab0
----
-100
-470
-990

query I rowsort
SELECT ( - 78 ) AS col0 FROM tab0
----
-78
-78
-78

query II rowsort
SELECT 72, 57 FROM tab1 WHERE NOT ( col1 ) * + ( - col0 ) + col2 * col1 * - 83 + 21 + - + col1 + + 61 IS NOT NULL
----

query I rowsort
SELECT - col1 * 71 FROM tab0
----
-1491
-5751
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-6175
SELECT ALL + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + + 65 ) * col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6175
SELECT ALL + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT ( + + 65 ) * col0 IS NULL
----
3

query II rowsort
SELECT ALL col1 AS col0, 33 AS col0 FROM tab2 AS cor0
----
51
33
67
33
77
33

query I rowsort
SELECT ALL + - ( - + col2 ) * - + col2 FROM tab1 cor0
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-6178
SELECT + - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) > - 90
----
0

skipif mysql # not compatible
query I rowsort label-6178
SELECT + - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT ( NULL ) > - 90
----
0

query I rowsort
SELECT DISTINCT + 21 * col2 FROM tab1 cor0
----
1239
1428
2016

query I rowsort
SELECT ALL + col2 AS col0 FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2, 92 + + - col1 - - 85, + - col1 * col2, + col0 + + ( - + 33 ) + + + 79 - - ( + col0 ) + + - col2 * + col0 )
----

query I rowsort
SELECT DISTINCT - 82 * col2 AS col0 FROM tab0 AS cor0
----
-3854
-8118
-820

onlyif mysql # DIV for integer division: 
query II rowsort label-6182
SELECT + col2 DIV - col2 AS col1, col1 FROM tab0
----
-1
1
-1
21
-1
81

skipif mysql # not compatible
query II rowsort label-6182
SELECT + col2 / - col2 AS col1, col1 FROM tab0
----
-1
1
-1
21
-1
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6183
SELECT ALL - AVG ( + CAST( NULL AS SIGNED ) ) / + 81 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6183
SELECT ALL - AVG ( + CAST ( NULL AS INTEGER ) ) / + 81 AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT ALL - CAST( 81 AS SIGNED ) AS col0 FROM tab0
----
-81
-81
-81

skipif mysql # not compatible
query I rowsort label-6184
SELECT ALL - CAST ( 81 AS INTEGER ) AS col0 FROM tab0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6185
SELECT + CAST( NULL AS SIGNED ) AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-6185
SELECT + CAST ( NULL AS INTEGER ) AS col1, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6186
SELECT + SUM( + ( - 15 ) ) FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-6186
SELECT + SUM ( + ( - 15 ) ) FROM tab0
----
-45

query II rowsort
SELECT DISTINCT - col0 AS col2, 88 FROM tab2
----
-46
88
-64
88
-75
88

query II rowsort
SELECT ALL col2 AS col0, - 40 AS col1 FROM tab1
----
59
-40
68
-40
96
-40

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + - col1 ) * - col0 = - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6190
SELECT MIN( + 56 ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-6190
SELECT MIN ( + 56 ) FROM tab2 AS cor0
----
56

query I rowsort
SELECT ALL + 23 + col1 + + 21 AS col1 FROM tab1 cor0 WHERE - 65 IS NOT NULL
----
49
58
91

query I rowsort
SELECT + 28 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

onlyif mysql # aggregate syntax: 
query I rowsort label-6193
SELECT ALL + + COUNT( * ) * - 59 + - COUNT( * ) AS col1 FROM tab1 cor0
----
-180

skipif mysql # not compatible
query I rowsort label-6193
SELECT ALL + + COUNT ( * ) * - 59 + - COUNT ( * ) AS col1 FROM tab1 cor0
----
-180

onlyif mysql # aggregate syntax: 
query I rowsort label-6194
SELECT DISTINCT + + 62 - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6194
SELECT DISTINCT + + 62 - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6195
SELECT DISTINCT CAST( + - col0 AS SIGNED ) * + + ( + - 26 ) + CAST( - + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
2175
2425
375

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) * + + ( + - 26 ) + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
2175
2425
375

query I rowsort
SELECT + col0 + 51 AS col0 FROM tab2 AS cor0
----
115
126
97

onlyif mysql # aggregate syntax: 
query II rowsort label-6197
SELECT - + ( + 1 ) col0, SUM( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6197
SELECT - + ( + 1 ) col0, SUM ( + col1 ) AS col2 FROM tab2 AS cor0
----
-1
195

query I rowsort
SELECT DISTINCT + ( - col0 ) * + + col1 + col2 + + 75 FROM tab2 AS cor0
----
-2248
-4813
-4892

query II rowsort
SELECT ALL + 69 + - 16 + + - col1 AS col1, col2 FROM tab2 AS cor0
----
-14
58
-24
40
2
23

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6200
SELECT DISTINCT - + 81 - - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT DISTINCT - + 81 - - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1 FROM tab1 cor0
----
NULL

query II rowsort
SELECT ALL + col0 AS col1, - col1 AS col1 FROM tab0
----
15
-81
87
-21
97
-1

query II rowsort
SELECT + 92 AS col1, + 13 * col1 AS col1 FROM tab1
----
92
182
92
611
92
65

query II rowsort
SELECT ( - - 81 ) - + - col0, ( col2 ) AS col2 FROM tab1
----
132
96
166
59
172
68

query II rowsort
SELECT - + col0, col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

onlyif mysql # DIV for integer division: 
query I rowsort label-6205
SELECT + - 49 DIV + col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6205
SELECT + - 49 / + col2 FROM tab2 AS cor0
----
-1
-2
0

query I rowsort
SELECT DISTINCT + - 77 * - 73 * - ( 14 ) + + col2 FROM tab1 AS cor0
----
-78598
-78626
-78635

query I rowsort
SELECT 33 - - AVG ( ALL + - col2 ) FROM tab1 AS cor0 WHERE NOT ( col2 ) NOT IN ( + col1, - col1 )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 16 / 95 - + ( col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 36 * - - col1 FROM tab2
----
1836
2412
2772

query I rowsort
SELECT - 85 * - col2 AS col0 FROM tab2 AS cor0
----
1955
3400
4930

query I rowsort
SELECT DISTINCT - + 21 * + 86 + - 12 AS col2 FROM tab0 AS cor0
----
-1818

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6212
SELECT + CAST( NULL AS SIGNED ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6212
SELECT + CAST ( NULL AS INTEGER ) * - + col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6213
SELECT - col1 * 84 AS col1, CAST( NULL AS SIGNED ) FROM tab1 cor0
----
-1176
NULL
-3948
NULL
-420
NULL

skipif mysql # not compatible
query II rowsort label-6213
SELECT - col1 * 84 AS col1, CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
-1176
NULL
-3948
NULL
-420
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6214
SELECT DISTINCT 5 DIV + CAST( + col1 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6214
SELECT DISTINCT 5 / + CAST ( + col1 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6215
SELECT + - ( - COUNT( * ) ) * - 86 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-6215
SELECT + - ( - COUNT ( * ) ) * - 86 FROM tab2 AS cor0
----
-258

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL IN ( col2 * - col0, col0 ) )
----

query I rowsort
SELECT ALL - 37 + + + col2 FROM tab2
----
-14
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT ALL + - MIN( + col1 ) AS col0 FROM tab0 WHERE NOT - col2 * - col1 * 89 / col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6218
SELECT ALL + - MIN ( + col1 ) AS col0 FROM tab0 WHERE NOT - col2 * - col1 * 89 / col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT DISTINCT 34 * - MAX( col1 ) AS col1 FROM tab0
----
-2754

skipif mysql # not compatible
query I rowsort label-6219
SELECT DISTINCT 34 * - MAX ( col1 ) AS col1 FROM tab0
----
-2754

query I rowsort
SELECT DISTINCT + col0 + + 76 FROM tab2
----
122
140
151

query I rowsort
SELECT ALL col1 + + + col1 AS col2 FROM tab2
----
102
134
154

query I rowsort
SELECT - 61 + - - col1 AS col0 FROM tab0 AS cor0
----
-40
-60
20

onlyif mysql # aggregate syntax: 
query I rowsort label-6223
SELECT ALL + 55 + + + COUNT( * ) FROM tab0 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6223
SELECT ALL + 55 + + + COUNT ( * ) FROM tab0 AS cor0
----
58

query I rowsort
SELECT + col1 + - col2 + - col0 * + - 69 AS col1 FROM tab2 cor0
----
3202
4453
5184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6225
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, + COUNT( * ) * + ( COUNT( * ) ) AS col0 FROM tab1 cor0
----
NULL
9

skipif mysql # not compatible
query II rowsort label-6225
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, + COUNT ( * ) * + ( COUNT ( * ) ) AS col0 FROM tab1 cor0
----
NULL
9

query I rowsort
SELECT ALL + 31 + + 3 FROM tab1 AS cor0
----
34
34
34

query III rowsort
SELECT * FROM tab2 WHERE - + col0 * + + col2 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE ( ( NOT ( NULL ) IS NULL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6229
SELECT - 81 DIV + - COUNT( * ) FROM tab2 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-6229
SELECT - 81 / + - COUNT ( * ) FROM tab2 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6230
SELECT - col1 - - col1 * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6230
SELECT - col1 - - col1 * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6231
SELECT ALL - + SUM( ALL - 85 ) AS col2 FROM tab2 cor0
----
255

skipif mysql # not compatible
query I rowsort label-6231
SELECT ALL - + SUM ( ALL - 85 ) AS col2 FROM tab2 cor0
----
255

query I rowsort
SELECT ALL - col2 + + 77 FROM tab1 AS cor0
----
-19
18
9

query I rowsort
SELECT DISTINCT + + 87 + col0 + col0 - + 89 FROM tab2 AS cor0
----
126
148
90

query I rowsort
SELECT - - col2 AS col1 FROM tab1 cor0 WHERE + col1 - + col1 / + col2 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6235
SELECT col1 / - - 61 + CAST( NULL AS DECIMAL ) col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6235
SELECT col1 / - - 61 + CAST ( NULL AS REAL ) col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6236
SELECT MIN( - 41 ) + + - ( + 84 ) - 54 AS col2 FROM tab1
----
-179

skipif mysql # not compatible
query I rowsort label-6236
SELECT MIN ( - 41 ) + + - ( + 84 ) - 54 AS col2 FROM tab1
----
-179

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col2 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN ( - 90 ) AND + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6239
SELECT COUNT( * ) * - 59 AS col1 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-6239
SELECT COUNT ( * ) * - 59 AS col1 FROM tab2
----
-177

onlyif mysql # DIV for integer division: 
query I rowsort label-6240
SELECT + 78 DIV + col2 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6240
SELECT + 78 / + col2 FROM tab1
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6241
SELECT COUNT( * ) * - + 55 col2 FROM tab0
----
-165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6241
SELECT COUNT ( * ) * - + 55 col2 FROM tab0
----
-165

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 * + col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 86 col0 FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT MIN( ALL - 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-6245
SELECT MIN ( ALL - 51 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

query II rowsort
SELECT ALL - col2 AS col0, + col1 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6247
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) NOT BETWEEN - - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6247
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT BETWEEN - - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6248
SELECT ALL + MAX( + - col1 ) AS col2 FROM tab2 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6248
SELECT ALL + MAX ( + - col1 ) AS col2 FROM tab2 cor0
----
-51

query I rowsort
SELECT + - col1 + - 24 AS col2 FROM tab2 AS cor0
----
-101
-75
-91

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - - col0 AND 10 * + 34 + ( col1 ) * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 44 * + col2 col0 FROM tab1 AS cor0
----
2596
2992
4224

query I rowsort
SELECT - 17 + 70 AS col2 FROM tab0
----
53
53
53

onlyif mysql # aggregate syntax: 
query II rowsort label-6253
SELECT DISTINCT + MAX( ALL - col1 ) col2, + COUNT( * ) FROM tab1
----
-5
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6253
SELECT DISTINCT + MAX ( ALL - col1 ) col2, + COUNT ( * ) FROM tab1
----
-5
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6254
SELECT DISTINCT + - COUNT( ALL + 48 ) AS col0 FROM tab0 WHERE NOT - - col0 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-6254
SELECT DISTINCT + - COUNT ( ALL + 48 ) AS col0 FROM tab0 WHERE NOT - - col0 <> NULL
----
0

query I rowsort
SELECT DISTINCT + ( + - 74 ) * col0 AS col0 FROM tab1 WHERE NOT 16 - - + col2 + + col1 * 56 < col1 - col1
----
-3774
-6290
-6734

onlyif mysql # aggregate syntax: 
query I rowsort label-6256
SELECT ALL - COUNT( * ) * - 79 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-6256
SELECT ALL - COUNT ( * ) * - 79 FROM tab2
----
237

query I rowsort
SELECT + 50 * - ( col1 ) FROM tab1
----
-2350
-250
-700

query I rowsort
SELECT + 0 AS col2 FROM tab0 WHERE - 22 IS NOT NULL
----
0
0
0

query I rowsort
SELECT 64 * col0 - - + col1 AS col2 FROM tab1 AS cor0
----
3278
5445
5871

onlyif mysql # aggregate syntax: 
query I rowsort label-6260
SELECT + COUNT( + 48 ) + + - MAX( ALL + col0 ) AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-6260
SELECT + COUNT ( + 48 ) + + - MAX ( ALL + col0 ) AS col1 FROM tab0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-6261
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) FROM tab1 WHERE + col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6261
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE + col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6262
SELECT ALL + MIN( DISTINCT col0 ) * 30 col0 FROM tab0
----
450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6262
SELECT ALL + MIN ( DISTINCT col0 ) * 30 col0 FROM tab0
----
450

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT col1 DIV + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6263
SELECT col1 / + - col2 AS col2 FROM tab0 AS cor0
----
-1
-2
0

query I rowsort
SELECT - ( - - 80 ) FROM tab2 AS cor0
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6265
SELECT DISTINCT - + 15 + + - MIN( - - ( + 9 ) ) FROM tab2 cor0
----
-24

skipif mysql # not compatible
query I rowsort label-6265
SELECT DISTINCT - + 15 + + - MIN ( - - ( + 9 ) ) FROM tab2 cor0
----
-24

query I rowsort
SELECT - - ( - ( + - col2 ) ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT DISTINCT 43 - ( + COUNT( * ) ) FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-6267
SELECT DISTINCT 43 - ( + COUNT ( * ) ) FROM tab1 AS cor0
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6268
SELECT ALL + 0 * - ( + ( + COUNT( * ) ) ) * - + 21 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6268
SELECT ALL + 0 * - ( + ( + COUNT ( * ) ) ) * - + 21 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6269
SELECT ALL * FROM tab2 AS cor0 WHERE + 99 NOT BETWEEN 65 AND + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6269
SELECT ALL * FROM tab2 AS cor0 WHERE + 99 NOT BETWEEN 65 AND + CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col0, col1 + - ( - 67 ) AS col0 FROM tab2
----
46
118
64
144
75
134

onlyif mysql # aggregate syntax: 
query I rowsort label-6271
SELECT DISTINCT MAX( ALL + ( - col2 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6271
SELECT DISTINCT MAX ( ALL + ( - col2 ) ) AS col0 FROM tab1
----
-59

query I rowsort
SELECT 37 * - 24 AS col1 FROM tab0
----
-888
-888
-888

query II rowsort
SELECT DISTINCT + + 4 AS col1, col1 FROM tab1 AS cor0
----
4
14
4
47
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-6274
SELECT + COUNT( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6274
SELECT + COUNT ( DISTINCT - - col1 ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - col2
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( NOT NULL <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6277
SELECT DISTINCT ( - MIN( DISTINCT + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT ( - MIN ( DISTINCT + + col1 ) ) AS col1 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT - + ( col2 ) AS col0, - 90 AS col0 FROM tab2 AS cor0
----
-23
-90
-40
-90
-58
-90

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + - 82 ) * + ( col0 ) AS col0 FROM tab2 cor0
----
3772
5248
6150

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 13 NOT BETWEEN - + 40 AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6282
SELECT DISTINCT - COUNT( * ) * + 80 AS col1 FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-6282
SELECT DISTINCT - COUNT ( * ) * + 80 AS col1 FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-6283
SELECT DISTINCT + SUM( DISTINCT + 7 ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6283
SELECT DISTINCT + SUM ( DISTINCT + 7 ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 29 * - + col2 AS col1 FROM tab0
----
-1363
-2871
-290

query I rowsort
SELECT + 95 + + - col2 AS col1 FROM tab1
----
-1
27
36

query III rowsort
SELECT * FROM tab1 WHERE 99 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 43 + + col0 FROM tab1 cor0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL - + 26 + + - 2 AS col1 FROM tab2 cor0
----
-28
-28
-28

query I rowsort
SELECT - - 55 + - - col1 AS col0 FROM tab1 cor0
----
102
60
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6290
SELECT DISTINCT 85 - + - COUNT( + 4 ) AS col0 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-6290
SELECT DISTINCT 85 - + - COUNT ( + 4 ) AS col0 FROM tab1 AS cor0
----
88

query II rowsort
SELECT col2 * 73 * + col0 * - ( col2 ), - col2 AS col2 FROM tab2
----
-1776382
-23
-18417900
-58
-7475200
-40

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) > - 0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6293
SELECT col1 * - 39 - + 7 DIV - 34 * - col1 FROM tab1 AS cor0
----
-1833
-195
-546

skipif mysql # not compatible
query I rowsort label-6293
SELECT col1 * - 39 - + 7 / - 34 * - col1 FROM tab1 AS cor0
----
-1833
-195
-546

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > col2 * - - col0 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6295
SELECT DISTINCT 17 * - MIN( - + col2 ) col2 FROM tab1 AS cor0
----
1632

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6295
SELECT DISTINCT 17 * - MIN ( - + col2 ) col2 FROM tab1 AS cor0
----
1632

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 91 + + col2 BETWEEN + 66 AND NULL
----

query I rowsort
SELECT - - col2 FROM tab2 WHERE NOT - - col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6298
SELECT SUM( 20 ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-6298
SELECT SUM ( 20 ) AS col2 FROM tab2
----
60

query II rowsort
SELECT + + col0, col2 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col2 + - col2 + col0 - + + col0 FROM tab2 WHERE NULL >= + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT DISTINCT + col0 DIV + 49 FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-6301
SELECT DISTINCT + col0 / + 49 FROM tab2
----
0
1

query II rowsort
SELECT DISTINCT - col1 AS col0, + col1 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6303
SELECT ALL - COUNT( * ), + 91 AS col2 FROM tab0 cor0
----
-3
91

skipif mysql # not compatible
query II rowsort label-6303
SELECT ALL - COUNT ( * ), + 91 AS col2 FROM tab0 cor0
----
-3
91

query I rowsort
SELECT ALL 55 AS col2 FROM tab0 cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-6305
SELECT + COUNT( ALL + - col0 ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6305
SELECT + COUNT ( ALL + - col0 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

query I rowsort
SELECT 22 AS col2 FROM tab2 cor0
----
22
22
22

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT col1 + + col2 + 73 - col2 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6308
SELECT 87 DIV - col2 AS col0 FROM tab2
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-6308
SELECT 87 / - col2 AS col0 FROM tab2
----
-1
-2
-3

query II rowsort
SELECT DISTINCT col0, col0 * + col2 FROM tab1
----
51
4896
85
5015
91
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT DISTINCT COUNT( + 78 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6310
SELECT DISTINCT COUNT ( + 78 ) AS col0 FROM tab2
----
3

query II rowsort
SELECT + col1, - 88 * col1 FROM tab1
----
14
-1232
47
-4136
5
-440

query I rowsort
SELECT 82 + + + 81 + - col1 AS col0 FROM tab2 AS cor0
----
112
86
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 75 <= - 34
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 14 * - - col2 + col0 - col0 * - - col2 - + ( - 91 ) * + col1 FROM tab2 cor0
----
2634
3951
5071

query II rowsort
SELECT DISTINCT - col0 AS col2, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) <> - 38
----

query I rowsort
SELECT + col1 + 22 + - + 89 FROM tab0 AS cor0
----
-46
-66
14

query I rowsort
SELECT ALL - - col2 + 79 + - col2 FROM tab1 AS cor0
----
79
79
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0, + col0 col1 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6320
SELECT COUNT( ALL - 78 ) * + + MIN( + 98 ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-6320
SELECT COUNT ( ALL - 78 ) * + + MIN ( + 98 ) FROM tab1
----
294

query III rowsort
SELECT * FROM tab2 WHERE col0 + + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6322
SELECT DISTINCT + col1 + - col0 - - 94 + + col0 + + 91 DIV - - col2 FROM tab0 AS cor0
----
124
176
95

skipif mysql # not compatible
query I rowsort label-6322
SELECT DISTINCT + col1 + - col0 - - 94 + + col0 + + 91 / - - col2 FROM tab0 AS cor0
----
124
176
95

query I rowsort
SELECT + - 20 + + + col0 * - col2 FROM tab0 AS cor0
----
-725
-890
-9623

query II rowsort
SELECT ALL - - 20 * + + col2 + + col0, - col0 AS col0 FROM tab2 AS cor0
----
1235
-75
506
-46
864
-64

query I rowsort
SELECT + 68 + col0 AS col2 FROM tab0 AS cor0
----
155
165
83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col0 + + ( - col0 ) / + - col0 AS col1, ( col0 ) col1 FROM tab0 WHERE - - 11 * - - 29 IS NULL
----

query I rowsort
SELECT - col0 + 62 AS col0 FROM tab2
----
-13
-2
16

onlyif mysql # aggregate syntax: 
query II rowsort label-6328
SELECT ALL COUNT( * ) AS col0, - 76 FROM tab0
----
3
-76

skipif mysql # not compatible
query II rowsort label-6328
SELECT ALL COUNT ( * ) AS col0, - 76 FROM tab0
----
3
-76

query I rowsort
SELECT + col1 AS col2 FROM tab1 WHERE 49 * - + 97 * - + col0 * 27 * + - col1 + 79 + + 96 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 * - + 51 FROM tab0 AS cor0
----
-2397
-5049
-510

query I rowsort
SELECT DISTINCT ( + 27 ) AS col1 FROM tab0 AS cor0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6332
SELECT - + 10 AS col1, CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
-10
51
-10
67
-10
77

skipif mysql # not compatible
query II rowsort label-6332
SELECT - + 10 AS col1, CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
-10
51
-10
67
-10
77

query I rowsort
SELECT ALL 35 AS col0 FROM tab2 AS cor0
----
35
35
35

query II rowsort
SELECT + 50, - col1 AS col2 FROM tab1 cor0
----
50
-14
50
-47
50
-5

query I rowsort
SELECT DISTINCT + 14 * col0 * - + 96 FROM tab1 AS cor0
----
-114240
-122304
-68544

query II rowsort
SELECT ALL + col1 AS col0, 75 AS col1 FROM tab2 AS cor0
----
51
75
67
75
77
75

query I rowsort
SELECT - 4 * + col1 AS col1 FROM tab2 AS cor0
----
-204
-268
-308

query I rowsort
SELECT DISTINCT + 75 * col0 AS col1 FROM tab0 AS cor0
----
1125
6525
7275

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - + 27 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6340
SELECT - - COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6340
SELECT - - COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6341
SELECT ALL SUM( ALL - col0 ), - COUNT( * ) col0 FROM tab1
----
-227
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6341
SELECT ALL SUM ( ALL - col0 ), - COUNT ( * ) col0 FROM tab1
----
-227
-3

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 WHERE NULL IS NULL
----
6

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab0 WHERE + col2 * - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col1 AS col0 FROM tab2 WHERE - ( col2 ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT - 15 * col0 FROM tab0
----
-1305
-1455
-225

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6347
SELECT + 93 * - CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-6347
SELECT + 93 * - CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE NOT NULL = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6348
SELECT + + 84 DIV 87 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6348
SELECT + + 84 / 87 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL col2 * + col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6350
SELECT DISTINCT + MIN( + + 61 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT + MIN ( + + 61 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 + - - 81 AS col2, col2 col0 FROM tab0 AS cor0
----
-18
99
34
47
71
10

query I rowsort
SELECT + col0 + - + col1 FROM tab2 AS cor0
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-6353
SELECT - 30 + SUM( DISTINCT + col2 ) FROM tab1 AS cor0
----
193

skipif mysql # not compatible
query I rowsort label-6353
SELECT - 30 + SUM ( DISTINCT + col2 ) FROM tab1 AS cor0
----
193

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6354
SELECT + - COUNT( * ) AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6354
SELECT + - COUNT ( * ) AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) * + 99 + + col1 col2 FROM tab2 WHERE NULL >= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT - 14 * + COUNT( * ) FROM tab1 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-6356
SELECT - 14 * + COUNT ( * ) FROM tab1 AS cor0
----
-42

query I rowsort
SELECT - - 60 * + - 53 AS col1 FROM tab0 AS cor0
----
-3180
-3180
-3180

onlyif mysql # aggregate syntax: 
query I rowsort label-6358
SELECT ALL COUNT( ALL + col0 ) + COUNT( * ) * 99 FROM tab1 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-6358
SELECT ALL COUNT ( ALL + col0 ) + COUNT ( * ) * 99 FROM tab1 AS cor0
----
300

query I rowsort
SELECT ALL - 21 + + col2 + + col1 - - + col0 * 14 * - col1 FROM tab1 AS cor0
----
-5907
-59784
-9907

onlyif mysql # DIV for integer division: 
query II rowsort label-6360
SELECT ALL - 39 AS col1, + col1 DIV + 25 FROM tab0 AS cor0
----
-39
0
-39
0
-39
3

skipif mysql # not compatible
query II rowsort label-6360
SELECT ALL - 39 AS col1, + col1 / + 25 FROM tab0 AS cor0
----
-39
0
-39
0
-39
3

query I rowsort
SELECT ALL - ( - - 70 ) * col0 + 47 FROM tab2 AS cor0
----
-3173
-4433
-5203

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - COUNT( DISTINCT - 10 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - COUNT ( DISTINCT - 10 ) FROM tab0
----
-1

query I rowsort
SELECT + - col0 + - + col0 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - ( + col0 ) + - + ( + col0 ) FROM tab0
----
-174
-194
-30

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 IS NULL AND + 92 + 78 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6366
SELECT col2 + - - ( - + col2 ) + + 18 + + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6366
SELECT col2 + - - ( - + col2 ) + + 18 + + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * col2 + + - col1 + + col1 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6368
SELECT - COUNT( * ) + - 83 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6368
SELECT - COUNT ( * ) + - 83 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 43 * col0 col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT + col2 + + 59 AS col0 FROM tab1 AS cor0
----
118
127
155

onlyif mysql # aggregate syntax: 
query I rowsort label-6371
SELECT DISTINCT + COUNT( * ) + 96 * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
291

skipif mysql # not compatible
query I rowsort label-6371
SELECT DISTINCT + COUNT ( * ) + 96 * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
291

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 * 49 <= + 88
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN 62 / + col2 * 6 AND NULL
----

query I rowsort
SELECT - 47 AS col1 FROM tab1 cor0
----
-47
-47
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6375
SELECT - + 38 / ( + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6375
SELECT - + 38 / ( + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6376
SELECT + MAX( + + 66 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6376
SELECT + MAX ( + + 66 ) FROM tab1
----
66

query II rowsort
SELECT DISTINCT - col0, + col0 AS col1 FROM tab0
----
-15
15
-87
87
-97
97

query II rowsort
SELECT - 57 AS col2, + ( + col1 ) FROM tab0
----
-57
1
-57
21
-57
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 68, + 62 col2 FROM tab2
----
68
62

query I rowsort
SELECT DISTINCT 39 * - 69 AS col2 FROM tab1
----
-2691

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6381
SELECT CAST( - ( - col0 ) AS SIGNED ) * - + CAST( NULL AS SIGNED ) / + col2 + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6381
SELECT CAST ( - ( - col0 ) AS INTEGER ) * - + CAST ( NULL AS INTEGER ) / + col2 + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6382
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6382
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT 29 FROM tab1, tab0 cor0
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT DISTINCT - 82 * col1 - - col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND - + 84
----
-4159
-5436
-6274

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6385
SELECT ALL + 69 - - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6385
SELECT ALL + 69 - - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 3 * + col0 FROM tab0
----
-261
-291
-45

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT DISTINCT + 92 + - ( ( - MIN( DISTINCT col0 ) ) ) FROM tab1
----
143

skipif mysql # not compatible
query I rowsort label-6388
SELECT DISTINCT + 92 + - ( ( - MIN ( DISTINCT col0 ) ) ) FROM tab1
----
143

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE ( 97 * col1 ) > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 BETWEEN ( 59 * - 42 - - col0 ) AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> ( col1 * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6392
SELECT ALL - ( COUNT( * ) ) - - 35 col0 FROM tab0
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6392
SELECT ALL - ( COUNT ( * ) ) - - 35 col0 FROM tab0
----
32

onlyif mysql # aggregate syntax: 
query I rowsort label-6393
SELECT - 38 * + COUNT( * ) AS col1 FROM tab0
----
-114

skipif mysql # not compatible
query I rowsort label-6393
SELECT - 38 * + COUNT ( * ) AS col1 FROM tab0
----
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-6394
SELECT COUNT( * ) * + 9 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-6394
SELECT COUNT ( * ) * + 9 FROM tab1
----
27

onlyif mysql # DIV for integer division: 
query I rowsort label-6395
SELECT ALL 17 DIV + 95 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6395
SELECT ALL 17 / + 95 FROM tab1
----
0
0
0

query I rowsort
SELECT - 28 + - col0 FROM tab0
----
-115
-125
-43

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( col0 - col2 )
----

query I rowsort
SELECT ALL + 74 + - 64 AS col0 FROM tab1 WHERE NOT + col0 = ( + col2 )
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6399
SELECT - COUNT( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 WHERE - col1 / - col1 IN ( - 42 )
----
0

skipif mysql # not compatible
query I rowsort label-6399
SELECT - COUNT ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 WHERE - col1 / - col1 IN ( - 42 )
----
0

query I rowsort
SELECT + 5 FROM tab2 WHERE NOT ( NULL ) IN ( + col2 )
----

query I rowsort
SELECT ( - ( - 28 ) ) AS col1 FROM tab1
----
28
28
28

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6402
SELECT ALL + COUNT( * ) DIV - 45 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6402
SELECT ALL + COUNT ( * ) / - 45 AS col1 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col0 ) IN ( 5 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 44 * + col2 - 86 FROM tab2
----
1674
2466
926

onlyif mysql # DIV for integer division: 
query I rowsort label-6405
SELECT 79 DIV 75 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6405
SELECT 79 / 75 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6406
SELECT 23 / MAX( - ( - col0 ) * + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6406
SELECT 23 / MAX ( - ( - col0 ) * + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 - col0 FROM tab1 AS cor0 WHERE - 56 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6408
SELECT ALL + COUNT( * ) + + CAST( 43 AS SIGNED ) * COUNT( col0 - col1 ) FROM tab2 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-6408
SELECT ALL + COUNT ( * ) + + CAST ( 43 AS INTEGER ) * COUNT ( col0 - col1 ) FROM tab2 AS cor0
----
132

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6409
SELECT + CAST( 19 AS SIGNED ) + 23 col2 FROM tab2 cor0
----
42
42
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6409
SELECT + CAST ( 19 AS INTEGER ) + 23 col2 FROM tab2 cor0
----
42
42
42

query I rowsort
SELECT + ( - 61 ) AS col2 FROM tab0 AS cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6411
SELECT * FROM tab0 AS cor0 WHERE NOT 13 IN ( - CAST( + 42 AS SIGNED ) / - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6411
SELECT * FROM tab0 AS cor0 WHERE NOT 13 IN ( - CAST ( + 42 AS INTEGER ) / - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0
----
9

query I rowsort
SELECT + 59 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ( - 96 ) * ( col0 ) FROM tab0 AS cor0
----
-1440
-8352
-9312

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6415
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6415
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 45 FROM tab0 AS cor0 WHERE NOT col1 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT SUM( + col2 ) col2 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6417
SELECT SUM ( + col2 ) col2 FROM tab1
----
223

onlyif mysql # DIV for integer division: 
query I rowsort label-6418
SELECT ALL + col2 DIV 34 FROM tab1 WHERE NOT + col1 - 18 * + 49 IS NULL
----
1
2
2

skipif mysql # not compatible
query I rowsort label-6418
SELECT ALL + col2 / 34 FROM tab1 WHERE NOT + col1 - 18 * + 49 IS NULL
----
1
2
2

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 87 ) > ( NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 39 NOT IN ( 48 + + 82 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6421
SELECT DISTINCT 4 * - CAST( COUNT( DISTINCT col1 ) AS SIGNED ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6421
SELECT DISTINCT 4 * - CAST ( COUNT ( DISTINCT col1 ) AS INTEGER ) FROM tab0
----
-12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 / col1 col1 FROM tab1 WHERE NOT NULL <= ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT ALL 43 * CAST( NULL AS SIGNED ) FROM tab2 WHERE ( NULL ) = - 55 * - 88
----

skipif mysql # not compatible
query I rowsort label-6423
SELECT ALL 43 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE ( NULL ) = - 55 * - 88
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6424
SELECT ALL + 6 + - - MIN( ALL col0 ) + COUNT( * ) FROM tab1
----
60

skipif mysql # not compatible
query I rowsort label-6424
SELECT ALL + 6 + - - MIN ( ALL col0 ) + COUNT ( * ) FROM tab1
----
60

query I rowsort
SELECT ALL + ( + col0 ) * 99 FROM tab2
----
4554
6336
7425

onlyif mysql # aggregate syntax: 
query I rowsort label-6426
SELECT ALL + 15 + + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6426
SELECT ALL + 15 + + COUNT ( * ) FROM tab0 AS cor0
----
18

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 * - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 32 NOT BETWEEN col1 / - col2 AND NULL
----

query I rowsort
SELECT - col0 + col0 + + col1 AS col1 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT DISTINCT + + 30 * - col0 + 66 AS col0 FROM tab0 AS cor0
----
-2544
-2844
-384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - col0 ) * + 90 col0 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # aggregate syntax: 
query I rowsort label-6432
SELECT - COUNT( DISTINCT + col0 ) AS col0 FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6432
SELECT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab0 WHERE ( NOT - col1 IS NOT NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6433
SELECT ALL 70 * SUM( DISTINCT + col0 ) col0 FROM tab2
----
12950

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6433
SELECT ALL 70 * SUM ( DISTINCT + col0 ) col0 FROM tab2
----
12950

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( col0 = ( NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6435
SELECT ALL - COUNT( * ) * - - 51 AS col1 FROM tab0
----
-153

skipif mysql # not compatible
query I rowsort label-6435
SELECT ALL - COUNT ( * ) * - - 51 AS col1 FROM tab0
----
-153

query I rowsort
SELECT DISTINCT - col2 + + - col2 AS col2 FROM tab2
----
-116
-46
-80

query I rowsort
SELECT DISTINCT - ( + 93 ) * 53 AS col0 FROM tab2
----
-4929

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 * - col0 + - col2 < ( ( col1 ) ) * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6439
SELECT ALL - + col1 * col0 DIV - col1 + 60 AS col2 FROM tab1 AS cor0
----
111
145
151

skipif mysql # not compatible
query I rowsort label-6439
SELECT ALL - + col1 * col0 / - col1 + 60 AS col2 FROM tab1 AS cor0
----
111
145
151

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 + + 44 * 9 col1 FROM tab1 AS cor0
----
305
311
345

onlyif mysql # aggregate syntax: 
query I rowsort label-6441
SELECT DISTINCT - + COUNT( * ) + SUM( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-6441
SELECT DISTINCT - + COUNT ( * ) + SUM ( ALL + col0 ) AS col1 FROM tab0 AS cor0
----
196

query I rowsort
SELECT + col2 - - - col2 AS col1 FROM tab0 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6443
SELECT + CAST( + col0 AS SIGNED ) - + + CAST( col0 AS SIGNED ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6443
SELECT + CAST ( + col0 AS INTEGER ) - + + CAST ( col0 AS INTEGER ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT + COUNT( * ) - COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6444
SELECT + COUNT ( * ) - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6445
SELECT ALL col2 + + - 68 DIV + col2 FROM tab2 AS cor0
----
21
39
57

skipif mysql # not compatible
query I rowsort label-6445
SELECT ALL col2 + + - 68 / + col2 FROM tab2 AS cor0
----
21
39
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6446
SELECT ALL + MIN( col0 ) FROM tab1 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6446
SELECT ALL + MIN ( col0 ) FROM tab1 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= - col0 * - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 76 * col1 - + + col0 AS col0 FROM tab0
----
-1683
-173
-6171

onlyif mysql # DIV for integer division: 
query I rowsort label-6449
SELECT ALL 95 DIV - 57 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6449
SELECT ALL 95 / - 57 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT DISTINCT col0 / col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 29 ) AND ( + col2 * + 23 )
----

query I rowsort
SELECT + 90 * - col2 * - - 2 + - 22 FROM tab1
----
-10642
-12262
-17302

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6452
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) * - 74 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6452
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) * - 74 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT + col1 * + - 35 AS col2 FROM tab2
----
-1785
-2345
-2695

query I rowsort
SELECT ALL + col0 * - ( + col0 ) FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6455
SELECT DISTINCT COUNT( * ) + + MAX( 87 - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE CAST( - + col2 AS SIGNED ) BETWEEN ( col1 / + col1 ) AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT COUNT ( * ) + + MAX ( 87 - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE CAST ( - + col2 AS INTEGER ) BETWEEN ( col1 / + col1 ) AND + col2
----
NULL

query I rowsort
SELECT col1 * - 74 * + + col0 AS col0 FROM tab2 AS cor0
----
-173604
-364672
-371850

onlyif mysql # aggregate syntax: 
query I rowsort label-6457
SELECT DISTINCT 14 * COUNT( ALL 6 ) FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-6457
SELECT DISTINCT 14 * COUNT ( ALL 6 ) FROM tab1
----
42

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT + col2 + 68 + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT DISTINCT - SUM( DISTINCT 38 ) FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-6459
SELECT DISTINCT - SUM ( DISTINCT 38 ) FROM tab2
----
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6460
SELECT + ( + + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6460
SELECT + ( + + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + + ( 39 ) FROM tab0 AS cor0
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-6462
SELECT DISTINCT + MAX( DISTINCT 88 ) AS col1 FROM tab0 cor0
----
88

skipif mysql # not compatible
query I rowsort label-6462
SELECT DISTINCT + MAX ( DISTINCT 88 ) AS col1 FROM tab0 cor0
----
88

query I rowsort
SELECT DISTINCT + + 37 FROM tab1 cor0
----
37

onlyif mysql # aggregate syntax: 
query III rowsort label-6464
SELECT ALL 4 AS col1, MAX( + 89 ), + 66 + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
4
89
69

skipif mysql # not compatible
query III rowsort label-6464
SELECT ALL 4 AS col1, MAX ( + 89 ), + 66 + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
4
89
69

onlyif mysql # aggregate syntax: 
query I rowsort label-6465
SELECT ALL + + MIN( DISTINCT + + 8 ) col2 FROM tab0 cor0
----
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6465
SELECT ALL + + MIN ( DISTINCT + + 8 ) col2 FROM tab0 cor0
----
8

query II rowsort
SELECT DISTINCT 73 AS col0, + 24 AS col0 FROM tab0
----
73
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) col2 FROM tab2 WHERE NOT - ( + col1 ) * + ( - 57 ) * col1 - col0 IS NOT NULL
----

query I rowsort
SELECT - 46 + col0 AS col2 FROM tab1
----
39
45
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6469
SELECT + ( + col2 ) AS col1, CAST( NULL AS SIGNED ) - + col2 + - col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-6469
SELECT + ( + col2 ) AS col1, CAST ( NULL AS INTEGER ) - + col2 + - col0 FROM tab2
----
23
NULL
40
NULL
58
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6470
SELECT - COUNT( * ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6470
SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT 1 * 70 FROM tab1
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6472
SELECT + col2 AS col2, CAST( NULL AS SIGNED ) * - + 12 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6472
SELECT + col2 AS col2, CAST ( NULL AS INTEGER ) * - + 12 AS col0 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + col2 + col0 * - - 6 AS col2 FROM tab2 WHERE NULL IS NULL
----
299
424
508

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE + 23 * - 44 + + ( - 32 ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT ALL + col2 + + col1 + + col0 AS col2 FROM tab1 cor0
----
149
161
206

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6476
SELECT DISTINCT - 20 + + col1 + + col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col0 ) AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-6476
SELECT DISTINCT - 20 + + col1 + + col2 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( col0 ) AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6477
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + 3 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6477
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col1 + + 3 IS NOT NULL
----
0

query I rowsort
SELECT ALL 63 + col2 AS col2 FROM tab2 cor0
----
103
121
86

query I rowsort
SELECT - col0 + - 44 - - + col0 * + 32 * - + col1 FROM tab2 AS cor0
----
-157804
-160919
-75162

query I rowsort
SELECT - 79 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6481
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + col0 / + col2 ) AND - col0 * - col1 AND CAST( + col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6481
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( + col0 / + col2 ) AND - col0 * - col1 AND CAST ( + col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT DISTINCT - ( - col1 ) * + 52 AS col1 FROM tab2
----
2652
3484
4004

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6483
SELECT CAST( NULL AS SIGNED ) + - - col0 + + + 92 * + 8 + ( 39 + col0 ) FROM tab0 WHERE + + col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6483
SELECT CAST ( NULL AS INTEGER ) + - - col0 + + + 92 * + 8 + ( 39 + col0 ) FROM tab0 WHERE + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 col0 FROM tab2 AS cor0 WHERE col0 < 50
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + + 83 * - col1 NOT BETWEEN NULL AND + - ( 23 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT ALL + CAST( NULL AS SIGNED ) + MIN( DISTINCT - 68 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT ALL + CAST ( NULL AS INTEGER ) + MIN ( DISTINCT - 68 ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6487
SELECT DISTINCT MAX( DISTINCT 54 ) + - + COUNT( * ) * + 46 FROM tab2 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-6487
SELECT DISTINCT MAX ( DISTINCT 54 ) + - + COUNT ( * ) * + 46 FROM tab2 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6488
SELECT + COUNT( ALL + 25 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6488
SELECT + COUNT ( ALL + 25 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col1 * - ( - col2 ) - - - col0 FROM tab2 AS cor0
----
-1219
-3144
-3961

query I rowsort
SELECT ALL + col2 - - 42 AS col0 FROM tab2 AS cor0
----
100
65
82

query I rowsort
SELECT DISTINCT col1 * - col2 - - - ( - + col0 ) FROM tab1
----
-1293
-210
-3105

onlyif mysql # DIV for integer division: 
query I rowsort label-6492
SELECT DISTINCT + col0 DIV + + col0 AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-6492
SELECT DISTINCT + col0 / + + col0 AS col1 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6493
SELECT ALL 92 DIV - col1 AS col2 FROM tab0
----
-1
-4
-92

skipif mysql # not compatible
query I rowsort label-6493
SELECT ALL 92 / - col1 AS col2 FROM tab0
----
-1
-4
-92

query II rowsort
SELECT - col1 AS col1, 78 FROM tab1
----
-14
78
-47
78
-5
78

onlyif mysql # aggregate syntax: 
query I rowsort label-6495
SELECT DISTINCT COUNT( ALL + 97 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6495
SELECT DISTINCT COUNT ( ALL + 97 ) AS col0 FROM tab1
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col1 + col0 + + - 87 > 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - ( + 87 ) AS col0 FROM tab0 AS cor0
----
87

query I rowsort
SELECT ALL + - 71 * + 56 FROM tab0 AS cor0
----
-3976
-3976
-3976

query I rowsort
SELECT ALL + ( - + 24 ) AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query I rowsort
SELECT + - col2 * + col2 * 29 FROM tab0 AS cor0
----
-284229
-2900
-64061

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 59 * col2 + - col1 NOT IN ( - 84 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + col2 - + col0 >= ( NULL )
----

query I rowsort
SELECT - - col2 * - - col0 FROM tab1 AS cor0
----
4896
5015
6188

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 92 + + + col1 = - 85
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT - MIN( DISTINCT ( - 90 ) ) AS col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-6505
SELECT - MIN ( DISTINCT ( - 90 ) ) AS col0 FROM tab0 AS cor0
----
90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + col1 + - col0 AND NULL
----

query I rowsort
SELECT col2 AS col1 FROM tab0 cor0 WHERE NOT col2 / col0 + 55 NOT BETWEEN + + col2 * + col0 + - ( - col2 ) * + col0 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6508
SELECT * FROM tab1 WHERE - col0 + 47 + col0 + - + CAST( + col2 AS SIGNED ) / + col0 * + + CAST( + 4 AS SIGNED ) * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6508
SELECT * FROM tab1 WHERE - col0 + 47 + col0 + - + CAST ( + col2 AS INTEGER ) / + col0 * + + CAST ( + 4 AS INTEGER ) * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - 79 col1 FROM tab0
----
-166
-176
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 62 col2, 90 AS col2 FROM tab1
----
62
90

query I rowsort
SELECT 55 * + ( col0 ) * col1 + - 7 AS col0 FROM tab2
----
129023
271033
276368

query I rowsort
SELECT DISTINCT + col1 + - 40 AS col1 FROM tab0
----
-19
-39
41

query I rowsort
SELECT - 13 * + - col2 + - - 94 + - 57 FROM tab0
----
1324
167
648

query I rowsort
SELECT + - 11 + - - col1 * - - col0 FROM tab0 AS cor0
----
1204
1816
86

onlyif mysql # aggregate syntax: 
query II rowsort label-6515
SELECT DISTINCT - 92 col0, - COUNT( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-92
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6515
SELECT DISTINCT - 92 col0, - COUNT ( * ) FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
-92
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 62 * + col2 * + - col0 + - 63 col2 FROM tab1 AS cor0
----
303489
310867
383593

query I rowsort
SELECT - + col1 + - 86 FROM tab1 AS cor0
----
-100
-133
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6518
SELECT ALL + COUNT( * ) * - - COUNT( * ) + - 11 AS col2 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6518
SELECT ALL + COUNT ( * ) * - - COUNT ( * ) + - 11 AS col2 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 68 > NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6521
SELECT DISTINCT - COUNT( ALL col2 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6521
SELECT DISTINCT - COUNT ( ALL col2 ) AS col0 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT DISTINCT - + COUNT( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6522
SELECT DISTINCT - + COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6523
SELECT CAST( NULL AS SIGNED ) - + MIN( ALL - - 71 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6523
SELECT CAST ( NULL AS INTEGER ) - + MIN ( ALL - - 71 ) FROM tab2
----
NULL

query I rowsort
SELECT ALL 17 + - - 48 AS col2 FROM tab0 AS cor0
----
65
65
65

query I rowsort
SELECT - col2 - - 19 FROM tab0 AS cor0
----
-28
-80
9

query I rowsort
SELECT 92 * + 98 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( col1 / - col0 * + 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6527
SELECT MAX( ALL - col2 ) + + MAX( ALL + + 28 ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6527
SELECT MAX ( ALL - col2 ) + + MAX ( ALL + + 28 ) FROM tab0 AS cor0
----
18

query I rowsort
SELECT ALL 11 * - col2 FROM tab1 AS cor0
----
-1056
-649
-748

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 57 + col1 + + 28 / - col2
----

query I rowsort
SELECT ALL + 49 * - col1 - col1 FROM tab0 AS cor0
----
-1050
-4050
-50

query I rowsort
SELECT 91 * + - 48 * + + 87 FROM tab1
----
-380016
-380016
-380016

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 36 IS NOT NULL
----

query I rowsort
SELECT 40 * col1 AS col2 FROM tab2
----
2040
2680
3080

query I rowsort
SELECT ALL + - 30 + + col2 FROM tab0 WHERE NULL NOT BETWEEN - 61 AND NULL
----

query I rowsort
SELECT + - col0 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + - + col1 = NULL
----

query I rowsort
SELECT DISTINCT 2 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col1 / - - 81 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6539
SELECT ALL + SUM( DISTINCT - - 48 ) AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6539
SELECT ALL + SUM ( DISTINCT - - 48 ) AS col1 FROM tab0 AS cor0
----
48

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col2 * col1, col2, - col0 * 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6541
SELECT ALL - MIN( + 13 ) AS col2 FROM tab0
----
-13

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - MIN ( + 13 ) AS col2 FROM tab0
----
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-6542
SELECT DISTINCT ( - MAX( - col2 ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-6542
SELECT DISTINCT ( - MAX ( - col2 ) ) FROM tab2
----
23

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 34 IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6544
SELECT * FROM tab2 AS cor0 WHERE NOT ( 83 ) * + col0 BETWEEN - col1 / col1 + - + 28 AND + col1 * - 13 + + + CAST( + ( + col2 ) AS SIGNED )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6544
SELECT * FROM tab2 AS cor0 WHERE NOT ( 83 ) * + col0 BETWEEN - col1 / col1 + - + 28 AND + col1 * - 13 + + + CAST ( + ( + col2 ) AS INTEGER )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6545
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 11 ) * + - 97 >= - 18 * - 48 * + col2 * - CAST( + - 52 AS SIGNED ) - + - 27 * + col1 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6545
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + 11 ) * + - 97 >= - 18 * - 48 * + col2 * - CAST ( + - 52 AS INTEGER ) - + - 27 * + col1 * + - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6546
SELECT ALL + - MIN( + 96 ) + - + 9 FROM tab1 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-6546
SELECT ALL + - MIN ( + 96 ) + - + 9 FROM tab1 AS cor0
----
-105

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT DISTINCT + MIN( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-6547
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 75 + + col0 col0 FROM tab0 AS cor0
----
162
172
90

query I rowsort
SELECT ( - col1 ) * col2 + + 99 FROM tab2
----
-1074
-2981
-3787

onlyif mysql # aggregate syntax: 
query I rowsort label-6550
SELECT - COUNT( * ) * + 91 AS col1 FROM tab2
----
-273

skipif mysql # not compatible
query I rowsort label-6550
SELECT - COUNT ( * ) * + 91 AS col1 FROM tab2
----
-273

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT ALL + CAST( - col0 AS SIGNED ) + - 18 FROM tab0
----
-105
-115
-33

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + CAST ( - col0 AS INTEGER ) + - 18 FROM tab0
----
-105
-115
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-6552
SELECT - COUNT( * ) * - 85 FROM tab1
----
255

skipif mysql # not compatible
query I rowsort label-6552
SELECT - COUNT ( * ) * - 85 FROM tab1
----
255

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6553
SELECT - SUM( DISTINCT 48 ) * + 91 FROM tab0 WHERE col1 * + col2 / + 31 + - col0 > - CAST( col2 AS SIGNED )
----
-4368

skipif mysql # not compatible
query I rowsort label-6553
SELECT - SUM ( DISTINCT 48 ) * + 91 FROM tab0 WHERE col1 * + col2 / + 31 + - col0 > - CAST ( col2 AS INTEGER )
----
-4368

query I rowsort
SELECT ALL col2 + col0 * - - col2 + + + col1 FROM tab1 AS cor0
----
5006
5079
6303

query I rowsort
SELECT DISTINCT - col0 + + 6 * - col2 FROM tab0 cor0
----
-147
-297
-691

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col1 + + 31 * + col0 col0 FROM tab1 AS cor0
----
1595
2640
2868

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - col2 ) + + col1 col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL - 81 - - 24 AS col1 FROM tab0 AS cor0
----
-57
-57
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-6559
SELECT - COUNT( * ) * - + SUM( col2 ) + - COUNT( * ) FROM tab0 AS cor0
----
465

skipif mysql # not compatible
query I rowsort label-6559
SELECT - COUNT ( * ) * - + SUM ( col2 ) + - COUNT ( * ) FROM tab0 AS cor0
----
465

query I rowsort
SELECT + - col0 + - - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + + 86 + - 24 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6562
SELECT + MAX( DISTINCT CAST( NULL AS DECIMAL ) ) * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6562
SELECT + MAX ( DISTINCT CAST ( NULL AS REAL ) ) * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6563
SELECT col0 DIV - + 78 * - - 70 AS col0, 38 FROM tab2 AS cor0
----
0
38
0
38
0
38

skipif mysql # not compatible
query II rowsort label-6563
SELECT col0 / - + 78 * - - 70 AS col0, 38 FROM tab2 AS cor0
----
0
38
0
38
0
38

onlyif mysql # aggregate syntax: 
query I rowsort label-6564
SELECT DISTINCT MAX( DISTINCT + 61 ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-6564
SELECT DISTINCT MAX ( DISTINCT + 61 ) FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-6565
SELECT - COUNT( ALL + 35 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6565
SELECT - COUNT ( ALL + 35 ) FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6566
SELECT ALL - COUNT( CAST( NULL AS SIGNED ) ) col0, MAX( ALL + col1 ) FROM tab1
----
0
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6566
SELECT ALL - COUNT ( CAST ( NULL AS INTEGER ) ) col0, MAX ( ALL + col1 ) FROM tab1
----
0
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6567
SELECT DISTINCT + col1 col1, CAST( - + col1 AS SIGNED ) * + col1 + col0 FROM tab2
----
51
-2555
67
-4414
77
-5865

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6567
SELECT DISTINCT + col1 col1, CAST ( - + col1 AS INTEGER ) * + col1 + col0 FROM tab2
----
51
-2555
67
-4414
77
-5865

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT - ( + SUM( DISTINCT - col0 ) ) col1 FROM tab1
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6568
SELECT - ( + SUM ( DISTINCT - col0 ) ) col1 FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - col1 ) <> NULL
----

query I rowsort
SELECT ALL ( - + col1 ) * - col2 FROM tab0
----
210
3807
99

query I rowsort
SELECT ALL + col2 * 5 - - col2 FROM tab1 AS cor0
----
354
408
576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6572
SELECT - MIN( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6572
SELECT - MIN ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6573
SELECT - - 22 DIV + 24, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-6573
SELECT - - 22 / + 24, col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 + + col2 + - + col2 + + 71 * - + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - col1 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6576
SELECT ALL - COUNT( * ) * COUNT( * ) * - 14 FROM tab1 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-6576
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - 14 FROM tab1 AS cor0
----
126

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6577
SELECT ALL CAST( + - col2 AS SIGNED ) + + 16 + - + col2 * - col0, col2 * - 63 + - + col2 AS col1 FROM tab2 AS cor0
----
1051
-1472
2536
-2560
4308
-3712

skipif mysql # not compatible
query II rowsort label-6577
SELECT ALL CAST ( + - col2 AS INTEGER ) + + 16 + - + col2 * - col0, col2 * - 63 + - + col2 AS col1 FROM tab2 AS cor0
----
1051
-1472
2536
-2560
4308
-3712

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 BETWEEN - + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6579
SELECT ALL + COUNT( * ) * COUNT( * ) + - + 17 col0 FROM tab0 AS cor0 WHERE NOT col0 + ( - col0 ) + + col0 * + col1 * + - 89 IS NULL
----
-8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6579
SELECT ALL + COUNT ( * ) * COUNT ( * ) + - + 17 col0 FROM tab0 AS cor0 WHERE NOT col0 + ( - col0 ) + + col0 * + col1 * + - 89 IS NULL
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6580
SELECT ALL - SUM( - 57 ) + + MIN( DISTINCT col1 ) FROM tab1 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-6580
SELECT ALL - SUM ( - 57 ) + + MIN ( DISTINCT col1 ) FROM tab1 AS cor0
----
176

query II rowsort
SELECT DISTINCT + col0 AS col0, col0 FROM tab0
----
15
15
87
87
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6582
SELECT ALL + col1 * + ( CAST( col2 AS SIGNED ) ) AS col1 FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-6582
SELECT ALL + col1 * + ( CAST ( col2 AS INTEGER ) ) AS col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 2 * + 84 col0 FROM tab0
----
168

query II rowsort
SELECT ALL + 15 AS col2, - col1 + col1 AS col0 FROM tab0
----
15
0
15
0
15
0

query I rowsort
SELECT ALL + col2 * 56 * ( col0 ) * + - col1 AS col2 FROM tab1 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6586
SELECT DISTINCT + 51 + COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
54

skipif mysql # not compatible
query I rowsort label-6586
SELECT DISTINCT + 51 + COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
54

query I rowsort
SELECT - 22 - col2 * - ( - 82 ) FROM tab0
----
-3876
-8140
-842

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 64 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT DISTINCT 64 * + COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + 54 + - col2 * - - col0 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6589
SELECT DISTINCT 64 * + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( NOT + 54 + - col2 * - - col0 IS NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6590
SELECT 15 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6590
SELECT 15 / - col0 FROM tab1 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 16 col1 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-6592
SELECT ALL COUNT( * ) * COUNT( * ) col1 FROM tab2
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6592
SELECT ALL COUNT ( * ) * COUNT ( * ) col1 FROM tab2
----
9

query II rowsort
SELECT col0 AS col1, - col1 + ( + - col2 ) * + - col0 AS col0 FROM tab0
----
15
624
87
849
97
9602

query I rowsort
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE NOT - ( 46 ) / - + 50 - - + col2 - + + 9 IS NOT NULL
----

query I rowsort
SELECT ALL + 96 * + - col2 AS col1 FROM tab2
----
-2208
-3840
-5568

query II rowsort
SELECT col2, + ( - - col2 ) AS col1 FROM tab2
----
23
23
40
40
58
58

query III rowsort
SELECT ( + + col2 ) AS col1, + 70 + - - 78 AS col0, - + ( - col0 ) AS col2 FROM tab1
----
9 values hashing to 6c2c54a7f7372ca7718547a800dac58f

query I rowsort
SELECT DISTINCT + 49 + - 77 FROM tab2 AS cor0
----
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6599
SELECT DISTINCT col0 + CAST( + 40 AS SIGNED ) AS col2 FROM tab1 cor0
----
125
131
91

skipif mysql # not compatible
query I rowsort label-6599
SELECT DISTINCT col0 + CAST ( + 40 AS INTEGER ) AS col2 FROM tab1 cor0
----
125
131
91

query I rowsort
SELECT - col2 + + + ( + 47 ) AS col0 FROM tab1 AS cor0
----
-12
-21
-49

onlyif mysql # aggregate syntax: 
query II rowsort label-6601
SELECT - 27 AS col2, COUNT( * ) * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-27
-9

skipif mysql # not compatible
query II rowsort label-6601
SELECT - 27 AS col2, COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-27
-9

query I rowsort
SELECT ALL + - 2 * + col2 + + - col1 - - - 11 FROM tab0 AS cor0
----
-186
-210
-52

query III rowsort
SELECT * FROM tab2 WHERE + 32 > - + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6604
SELECT DISTINCT + 73 DIV SUM( ALL - 59 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6604
SELECT DISTINCT + 73 / SUM ( ALL - 59 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT DISTINCT COUNT( ALL - - 35 ) AS col0 FROM tab1 WHERE NOT col2 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6605
SELECT DISTINCT COUNT ( ALL - - 35 ) AS col0 FROM tab1 WHERE NOT col2 = ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6606
SELECT DISTINCT 33 DIV - col2 AS col2 FROM tab2
----
-1
0

skipif mysql # not compatible
query I rowsort label-6606
SELECT DISTINCT 33 / - col2 AS col2 FROM tab2
----
-1
0

query III rowsort
SELECT * FROM tab1 WHERE col0 - - - ( + + col0 ) + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6608
SELECT ALL - COUNT( DISTINCT + + 63 ) DIV - + MIN( ALL + - col2 ) * + + COUNT( * ), 90 * 49 AS col1 FROM tab1
----
0
4410

skipif mysql # not compatible
query II rowsort label-6608
SELECT ALL - COUNT ( DISTINCT + + 63 ) / - + MIN ( ALL + - col2 ) * + + COUNT ( * ), 90 * 49 AS col1 FROM tab1
----
0
4410

onlyif mysql # DIV for integer division: 
query I rowsort label-6609
SELECT - ( + col1 ) DIV - 45 - - col1 FROM tab1
----
14
48
5

skipif mysql # not compatible
query I rowsort label-6609
SELECT - ( + col1 ) / - 45 - - col1 FROM tab1
----
14
48
5

query I rowsort
SELECT ALL - ( + ( + - 11 ) ) FROM tab1
----
11
11
11

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6611
SELECT + SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6611
SELECT + SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT - + col1 * + 94 AS col0 FROM tab2 AS cor0
----
-4794
-6298
-7238

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE NOT col1 IS NULL
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-6614
SELECT - col1 DIV + col2 + + + col0 + + + 3 col1 FROM tab2 AS cor0
----
47
66
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6614
SELECT - col1 / + col2 + + + col0 + + + 3 col1 FROM tab2 AS cor0
----
47
66
77

query I rowsort
SELECT ALL + - 48 * 19 FROM tab2 AS cor0
----
-912
-912
-912

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6616
SELECT + - col2 * col0 DIV - col2 + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-6616
SELECT + - col2 * col0 / - col2 + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col2 col1 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6618
SELECT - COUNT( * ) DIV + - 7 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6618
SELECT - COUNT ( * ) / + - 7 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) <> - + col0 * col0 + - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6620
SELECT ALL + COUNT( * ) DIV + 70 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6620
SELECT ALL + COUNT ( * ) / + 70 FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + ( - - 38 ) FROM tab0 AS cor0
----
38
38
38

query I rowsort
SELECT - ( - col1 ) FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 4
----

query I rowsort
SELECT ALL + ( - 64 ) FROM tab0
----
-64
-64
-64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6624
SELECT - 87, + CAST( - + col1 AS SIGNED ) AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-6624
SELECT - 87, + CAST ( - + col1 AS INTEGER ) AS col2 FROM tab0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * - + 35 AS col1 FROM tab1
----
-1645
-175
-490

query I rowsort
SELECT DISTINCT + col1 + + 80 FROM tab2
----
131
147
157

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT + MIN( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-6627
SELECT + MIN ( DISTINCT - col0 ) AS col1 FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6628
SELECT + 72 - - + CAST( + 73 AS SIGNED ) AS col2, + col0 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query II rowsort label-6628
SELECT + 72 - - + CAST ( + 73 AS INTEGER ) AS col2, + col0 / + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6629
SELECT + COUNT( * ) + - + 18 AS col1 FROM tab0 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6629
SELECT + COUNT ( * ) + - + 18 AS col1 FROM tab0 cor0
----
-15

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 = + + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT DISTINCT + MIN( DISTINCT 35 ) AS col2 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-6631
SELECT DISTINCT + MIN ( DISTINCT 35 ) AS col2 FROM tab0 AS cor0
----
35

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( + + 36 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6633
SELECT DISTINCT - col2 AS col2, + col1 + - 15 * col0 DIV + 42 AS col2 FROM tab2
----
-23
35
-40
55
-58
41

skipif mysql # not compatible
query II rowsort label-6633
SELECT DISTINCT - col2 AS col2, + col1 + - 15 * col0 / + 42 AS col2 FROM tab2
----
-23
35
-40
55
-58
41

query II rowsort
SELECT ALL col2 AS col2, - col1 + col2 AS col2 FROM tab1
----
59
54
68
21
96
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6635
SELECT ALL + - col2 * 67 * CAST( NULL AS SIGNED ) + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6635
SELECT ALL + - col2 * 67 * CAST ( NULL AS INTEGER ) + col2 col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col2 * + col0 - - 1 AS col1, col0 AS col2 FROM tab1 AS cor0
----
4897
51
5016
85
6189
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6637
SELECT - COUNT( * ) * + 6 AS col2, CAST( NULL AS SIGNED ) * - COUNT( DISTINCT col1 ) * + COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + + col2 * - col1 )
----
0
NULL

skipif mysql # not compatible
query II rowsort label-6637
SELECT - COUNT ( * ) * + 6 AS col2, CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT col1 ) * + COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( + + col2 * - col1 )
----
0
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 52 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 49 + - - col1 FROM tab0 AS cor0
----
130
50
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 13 - + + col0 col1 FROM tab2
----
-59
-77
-88

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col2 + - col0 / 87 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6642
SELECT 44 + COUNT( * ) AS col1 FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-6642
SELECT 44 + COUNT ( * ) AS col1 FROM tab0
----
47

onlyif mysql # aggregate syntax: 
query II rowsort label-6643
SELECT - 59 * + COUNT( * ) + - - COUNT( * ) + 95 AS col0, + MAX( ( - col0 ) ) AS col1 FROM tab0
----
-79
-15

skipif mysql # not compatible
query II rowsort label-6643
SELECT - 59 * + COUNT ( * ) + - - COUNT ( * ) + 95 AS col0, + MAX ( ( - col0 ) ) AS col1 FROM tab0
----
-79
-15

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 + col1 NOT BETWEEN - - 52 AND - col2
----

query I rowsort
SELECT 98 * + - 72 - - + col0 FROM tab2 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6646
SELECT ALL + CAST( - MIN( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-6646
SELECT ALL + CAST ( - MIN ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT ALL col1 DIV col1 + 41 AS col0 FROM tab1
----
42
42
42

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL col1 / col1 + 41 AS col0 FROM tab1
----
42
42
42

query I rowsort
SELECT DISTINCT + col0 + - + 73 FROM tab0 AS cor0
----
-58
14
24

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT ALL + ( - col2 ) * + 70 FROM tab0 AS cor0
----
-3290
-6930
-700

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6651
SELECT DISTINCT ( - CAST( - + 19 AS SIGNED ) ), ( - 20 ) * - CAST( NULL AS SIGNED ) col2 FROM tab1
----
19
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6651
SELECT DISTINCT ( - CAST ( - + 19 AS INTEGER ) ), ( - 20 ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
19
NULL

query I rowsort
SELECT - col0 AS col2 FROM tab0 WHERE NOT - - 81 + - col1 IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + 63 * - col1 FROM tab0 cor0
----
-1323
-5103
-63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6654
SELECT ALL - CAST( NULL AS SIGNED ) * - + COUNT( * ) + - COUNT( * ) / + 52 AS col1 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6654
SELECT ALL - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) + - COUNT ( * ) / + 52 AS col1 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 68 * col0 FROM tab2
----
3128
4352
5100

query I rowsort
SELECT ALL ( + - ( + col2 ) ) AS col2 FROM tab0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT col0 * - 26 FROM tab1
----
-1326
-2210
-2366

onlyif mysql # DIV for integer division: 
query II rowsort label-6658
SELECT ALL + col0 DIV + col2 AS col2, + 41 FROM tab2 WHERE NULL IS NULL
----
1
41
1
41
2
41

skipif mysql # not compatible
query II rowsort label-6658
SELECT ALL + col0 / + col2 AS col2, + 41 FROM tab2 WHERE NULL IS NULL
----
1
41
1
41
2
41

query II rowsort
SELECT + 63 AS col1, 10 + + - col2 + + 3 + - - col1 FROM tab1
----
63
-41
63
-69
63
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT - SUM( DISTINCT + 48 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6660
SELECT - SUM ( DISTINCT + 48 ) FROM tab2
----
-48

query I rowsort
SELECT DISTINCT + 92 FROM tab0 AS cor0 WHERE NULL IS NULL
----
92

query II rowsort
SELECT - + col1 AS col2, col1 * - col1 FROM tab0 AS cor0
----
-1
-1
-21
-441
-81
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6663
SELECT ( - ( + CAST( + - col1 AS SIGNED ) ) ) + - 13 + + 13 * col0 AS col0 FROM tab2 WHERE - + 71 = col2
----

skipif mysql # not compatible
query I rowsort label-6663
SELECT ( - ( + CAST ( + - col1 AS INTEGER ) ) ) + - 13 + + 13 * col0 AS col0 FROM tab2 WHERE - + 71 = col2
----

query I rowsort
SELECT ALL 7 + + - col0 AS col1 FROM tab2
----
-39
-57
-68

query I rowsort
SELECT ALL col0 FROM tab2 WHERE NOT - - col0 - - - 19 >= - + ( + 96 ) + col2
----

query I rowsort
SELECT ALL - 9 + col1 - - + col2 FROM tab1 AS cor0
----
101
106
55

query I rowsort
SELECT ALL - col2 + - + 26 AS col0 FROM tab0 AS cor0
----
-125
-36
-73

query I rowsort
SELECT DISTINCT + - 34 + + col2 + + - col1 FROM tab0 AS cor0
----
-45
-68
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6669
SELECT DISTINCT - - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6669
SELECT DISTINCT - - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query II rowsort label-6670
SELECT DISTINCT MIN( - + col2 ) + - - 1 AS col2, + COUNT( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-6670
SELECT DISTINCT MIN ( - + col2 ) + - - 1 AS col2, + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6671
SELECT DISTINCT col0 + CAST( NULL AS SIGNED ) * col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6671
SELECT DISTINCT col0 + CAST ( NULL AS INTEGER ) * col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL + col1 * + + col1 + - 37 FROM tab1 AS cor0 WHERE 94 > + 21 * + col2 * 73 + - 3
----

query I rowsort
SELECT + - ( + - ( + + 71 ) ) AS col1 FROM tab1 AS cor0
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-6674
SELECT ALL - 43 * + SUM( - col0 ) + + ( + 35 ) - - 84 AS col2 FROM tab0 AS cor0
----
8676

skipif mysql # not compatible
query I rowsort label-6674
SELECT ALL - 43 * + SUM ( - col0 ) + + ( + 35 ) - - 84 AS col2 FROM tab0 AS cor0
----
8676

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6675
SELECT CAST( NULL AS SIGNED ) - col0 * - - col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-6675
SELECT CAST ( NULL AS INTEGER ) - col0 * - - col1, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query I rowsort
SELECT 54 - + col2 AS col1 FROM tab2
----
-4
14
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab1 WHERE NOT NULL > - col0
----

query I rowsort
SELECT col1 - - + col1 AS col0 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-6679
SELECT DISTINCT 26 - COUNT( * ) AS col0 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-6679
SELECT DISTINCT 26 - COUNT ( * ) AS col0 FROM tab1
----
23

query I rowsort
SELECT ALL col1 - + - 16 AS col1 FROM tab1
----
21
30
63

query II rowsort
SELECT ALL col1 AS col0, - ( - col2 ) AS col0 FROM tab0
----
1
99
21
10
81
47

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> + - col2 + - - col0
----

query I rowsort
SELECT ALL 35 * - + col1 AS col2 FROM tab1 AS cor0
----
-1645
-175
-490

query I rowsort
SELECT DISTINCT - 41 * - 40 AS col1 FROM tab1 AS cor0
----
1640

query II rowsort
SELECT - 24 AS col1, col1 AS col2 FROM tab2 AS cor0
----
-24
51
-24
67
-24
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 68 * col1 * + col1 col1 FROM tab2 AS cor0
----
-176868
-305252
-403172

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 41 col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6688
SELECT ALL CAST( NULL AS SIGNED ) * + 66 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6688
SELECT ALL CAST ( NULL AS INTEGER ) * + 66 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 96 * - - col2 * + 63 FROM tab0 AS cor0
----
-284256
-598752
-60480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6690
SELECT DISTINCT - ( + 2 ) * - 75 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6690
SELECT DISTINCT - ( + 2 ) * - 75 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6691
SELECT - CAST( + - COUNT( ALL 52 ) AS SIGNED ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6691
SELECT - CAST ( + - COUNT ( ALL 52 ) AS INTEGER ) FROM tab1 cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 25 / 26 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6693
SELECT ALL + ( + MAX( - 90 ) ) DIV - + CAST( - 37 AS SIGNED ) FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6693
SELECT ALL + ( + MAX ( - 90 ) ) / - + CAST ( - 37 AS INTEGER ) FROM tab1 AS cor0
----
-2

query I rowsort
SELECT + 46 * col1 + + 69 FROM tab1 AS cor0
----
2231
299
713

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6695
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6695
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) IS NOT NULL ) )
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 22 col2 FROM tab1 WHERE NOT + 72 > NULL
----

query I rowsort
SELECT - ( - 16 ) FROM tab2
----
16
16
16

onlyif mysql # DIV for integer division: 
query I rowsort label-6698
SELECT ALL 26 * - col1 DIV - col1 FROM tab0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-6698
SELECT ALL 26 * - col1 / - col1 FROM tab0
----
26
26
26

query I rowsort
SELECT DISTINCT 44 * + 10 AS col2 FROM tab2
----
440

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT - 18 FROM tab2 WHERE NULL BETWEEN + col1 * + - CAST( NULL AS SIGNED ) * col1 + - col1 / col0 AND - - col2 + + col2
----

skipif mysql # not compatible
query I rowsort label-6700
SELECT - 18 FROM tab2 WHERE NULL BETWEEN + col1 * + - CAST ( NULL AS INTEGER ) * col1 + - col1 / col0 AND - - col2 + + col2
----

query I rowsort
SELECT - 32 + - 61 FROM tab2
----
-93
-93
-93

query II rowsort
SELECT col0 + + col2, + 94 + - 87 AS col1 FROM tab2
----
104
7
133
7
69
7

onlyif mysql # DIV for integer division: 
query I rowsort label-6703
SELECT DISTINCT 94 * 78 DIV + - 18 + + 74 * - - 20 FROM tab0 AS cor0
----
1073

skipif mysql # not compatible
query I rowsort label-6703
SELECT DISTINCT 94 * 78 / + - 18 + + 74 * - - 20 FROM tab0 AS cor0
----
1073

onlyif mysql # DIV for integer division: 
query I rowsort label-6704
SELECT - + col0 * - - 41 + 53 DIV - - col1 AS col0 FROM tab1 AS cor0
----
-2088
-3475
-3730

skipif mysql # not compatible
query I rowsort label-6704
SELECT - + col0 * - - 41 + 53 / - - col1 AS col0 FROM tab1 AS cor0
----
-2088
-3475
-3730

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6705
SELECT ALL * FROM tab1 AS cor0 WHERE - 57 - - CAST( NULL AS SIGNED ) NOT BETWEEN + col2 - col2 AND col2 + + col1 + col0
----

skipif mysql # not compatible
query III rowsort label-6705
SELECT ALL * FROM tab1 AS cor0 WHERE - 57 - - CAST ( NULL AS INTEGER ) NOT BETWEEN + col2 - col2 AND col2 + + col1 + col0
----

query I rowsort
SELECT ALL col1 / - + col1 + + col0 - 4 - - col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6707
SELECT DISTINCT 76 DIV col2 + + 41 + - + col1 FROM tab2
----
-25
-35
-7

skipif mysql # not compatible
query I rowsort label-6707
SELECT DISTINCT 76 / col2 + + 41 + - + col1 FROM tab2
----
-25
-35
-7

query I rowsort
SELECT DISTINCT col0 + col1 + + + col2 FROM tab1 AS cor0
----
149
161
206

query I rowsort
SELECT - col2 - + - col2 + col2 + + - 18 * col1 AS col1 FROM tab2 AS cor0
----
-1148
-1346
-895

query I rowsort
SELECT ALL + - col0 + 37 AS col1 FROM tab2 AS cor0
----
-27
-38
-9

query I rowsort
SELECT ALL + 80 - + ( - col1 ) - col1 FROM tab1 AS cor0
----
80
80
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 91, + 89 / - 96 * col1 col1 FROM tab1 WHERE + 76 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6713
SELECT ALL 63 - - col1 col2, col2 + + - col1 + - col2 DIV + - col1 + 72 AS col2 FROM tab1
----
110
94
68
137
77
160

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6713
SELECT ALL 63 - - col1 col2, col2 + + - col1 + - col2 / + - col1 + 72 AS col2 FROM tab1
----
110
94
68
137
77
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6714
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-6714
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6715
SELECT ALL - COUNT( * ) - + - MIN( col2 ) AS col2 FROM tab0 WHERE ( + col0 ) BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL - COUNT ( * ) - + - MIN ( col2 ) AS col2 FROM tab0 WHERE ( + col0 ) BETWEEN ( NULL ) AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6716
SELECT - COUNT( * ) * 83 AS col1 FROM tab1
----
-249

skipif mysql # not compatible
query I rowsort label-6716
SELECT - COUNT ( * ) * 83 AS col1 FROM tab1
----
-249

query I rowsort
SELECT ALL - 98 * - 62 AS col1 FROM tab0 WHERE NULL = 21 / + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6718
SELECT DISTINCT + COUNT( ALL col0 ) AS col1, + ( + CAST( + - AVG ( DISTINCT - col1 ) AS SIGNED ) ) * + COUNT( * ) * + 43 * - 14 AS col1 FROM tab2
----
3
-117390

skipif mysql # not compatible
query II rowsort label-6718
SELECT DISTINCT + COUNT ( ALL col0 ) AS col1, + ( + CAST ( + - AVG ( DISTINCT - col1 ) AS INTEGER ) ) * + COUNT ( * ) * + 43 * - 14 AS col1 FROM tab2
----
3
-117390

query I rowsort
SELECT DISTINCT + col2 * ( col1 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT - 50 * col0 FROM tab2
----
-2300
-3200
-3750

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT DISTINCT - SUM( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-6721
SELECT DISTINCT - SUM ( ALL col0 ) AS col1 FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT + SUM( 40 ) AS col2 FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT + SUM ( 40 ) AS col2 FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-6723
SELECT ALL COUNT( * ) * - 79 col2 FROM tab2
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6723
SELECT ALL COUNT ( * ) * - 79 col2 FROM tab2
----
-237

onlyif mysql # aggregate syntax: 
query I rowsort label-6724
SELECT ALL + 99 + - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL + 99 + - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
102

query I rowsort
SELECT ALL + col0 + - + col0 + col0 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-6726
SELECT ALL + COUNT( ALL + + col2 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL + COUNT ( ALL + + col2 ) FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 60 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-6728
SELECT + + 67 DIV + + col1 + + + col0 col0 FROM tab2 AS cor0
----
47
64
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6728
SELECT + + 67 / + + col1 + + + col0 col0 FROM tab2 AS cor0
----
47
64
76

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 30 + + col0 * + - 81 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6730
SELECT ALL - - CAST( + 75 AS SIGNED ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / + col1 + - - col0 + col1 * 10 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6730
SELECT ALL - - CAST ( + 75 AS INTEGER ) AS col1 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / + col1 + - - col0 + col1 * 10 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6731
SELECT CAST( NULL AS SIGNED ) / - - col2 + col2 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6731
SELECT CAST ( NULL AS INTEGER ) / - - col2 + col2 * - col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6732
SELECT DISTINCT CAST( + - MIN( + + col2 ) AS SIGNED ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-6732
SELECT DISTINCT CAST ( + - MIN ( + + col2 ) AS INTEGER ) AS col0 FROM tab0
----
-10

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6733
SELECT col0 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT col0 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - 85 >= - 2
----

query I rowsort
SELECT ALL + col2 * 90 FROM tab2
----
2070
3600
5220

query I rowsort
SELECT ALL - col1 + - 38 AS col2 FROM tab0
----
-119
-39
-59

query II rowsort
SELECT - 9 AS col2, col2 + + - col0 FROM tab2
----
-9
-17
-9
-23
-9
-24

query I rowsort
SELECT ALL col2 + + 35 * - col1 AS col0 FROM tab2 AS cor0
----
-1762
-2287
-2655

query III rowsort
SELECT * FROM tab2 cor0 WHERE 75 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6740
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6740
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE + col1 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NULL < + col0 + 67
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6742
SELECT DISTINCT - COUNT( * ) * + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6742
SELECT DISTINCT - COUNT ( * ) * + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 IN ( - col2 * - + col1 * - 95 + - col1 - col1, + 23 - + - col1 + + 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 37 FROM tab0 AS cor0 WHERE ( NOT col1 < col2 )
----
-37
-37

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 90 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 36 ), + 57 col1 FROM tab1 AS cor0
----
36
57
36
57
36
57

onlyif mysql # aggregate syntax: 
query I rowsort label-6747
SELECT SUM( + + 59 ) AS col0 FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-6747
SELECT SUM ( + + 59 ) AS col0 FROM tab1
----
177

onlyif mysql # aggregate syntax: 
query I rowsort label-6748
SELECT ALL COUNT( ALL + 75 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6748
SELECT ALL COUNT ( ALL + 75 ) AS col2 FROM tab2
----
3

query II rowsort
SELECT ALL col0, - col1 * - - 37 AS col0 FROM tab0
----
15
-2997
87
-777
97
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-6750
SELECT ( + + ( + COUNT( * ) ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6750
SELECT ( + + ( + COUNT ( * ) ) ) FROM tab2
----
3

query I rowsort
SELECT + 11 * + + col2 + - col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( 43 ) FROM tab2
----
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-6753
SELECT ALL - SUM( ALL - col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6753
SELECT ALL - SUM ( ALL - col1 ) FROM tab1 AS cor0
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6754
SELECT + - col0 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT + - col0 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6756
SELECT col2 DIV - 16 FROM tab0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-6756
SELECT col2 / - 16 FROM tab0
----
-2
-6
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / + 82 IS NULL
----

query I rowsort
SELECT DISTINCT + - 38 + + col1 + - col2 FROM tab2 AS cor0
----
-1
-10
-29

query I rowsort
SELECT + - col2 * 71 * - col1 + + 45 FROM tab2 AS cor0
----
218725
275951
83328

onlyif mysql # aggregate syntax: 
query I rowsort label-6760
SELECT ALL + COUNT( * ) * - - 68 AS col1 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-6760
SELECT ALL + COUNT ( * ) * - - 68 AS col1 FROM tab1
----
204

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6761
SELECT ALL CAST( NULL AS SIGNED ) * + + col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6761
SELECT ALL CAST ( NULL AS INTEGER ) * + + col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 8 * 13 * 96 FROM tab0
----
9984

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 39 <= - - 40 AND - col2 * 31 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6764
SELECT DISTINCT - 62 AS col0, ( 15 ) - - ( + + COUNT( * ) ) FROM tab1 WHERE - 95 NOT IN ( + + col0 )
----
-62
18

skipif mysql # not compatible
query II rowsort label-6764
SELECT DISTINCT - 62 AS col0, ( 15 ) - - ( + + COUNT ( * ) ) FROM tab1 WHERE - 95 NOT IN ( + + col0 )
----
-62
18

query I rowsort
SELECT ALL + 95 - - col2 + - col2 FROM tab2
----
95
95
95

query I rowsort
SELECT - col1 FROM tab0 WHERE + + col1 * - - col2 * + 11 + + col0 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col0 - + + 34 * + + 39 AS col0 FROM tab1
----
-1235
-1241
-1275

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6768
SELECT + - col2 + 44 AS col0 FROM tab1 WHERE + CAST( - col1 AS DECIMAL ) + + 92 + - - col1 + + ( 2 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-6768
SELECT + - col2 + 44 AS col0 FROM tab1 WHERE + CAST ( - col1 AS REAL ) + + 92 + - - col1 + + ( 2 ) IS NULL
----

query II rowsort
SELECT - col0 AS col2, col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query I rowsort
SELECT DISTINCT + ( 95 ) AS col1 FROM tab1 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6771
SELECT ALL - 64 * - SUM( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
6592

skipif mysql # not compatible
query I rowsort label-6771
SELECT ALL - 64 * - SUM ( DISTINCT + col1 ) AS col0 FROM tab0 AS cor0
----
6592

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * col2 * + 49 * + + 3 >= NULL
----

query I rowsort
SELECT 65 FROM tab1 AS cor0 WHERE NOT ( NULL ) > + col0 + col2
----

query I rowsort
SELECT DISTINCT + col0 * - col1 + col1 FROM tab2 cor0
----
-2295
-4851
-4958

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6775
SELECT ALL MAX( ALL - col2 ) DIV + - COUNT( DISTINCT - col0 ) + 63 FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6775
SELECT ALL MAX ( ALL - col2 ) / + - COUNT ( DISTINCT - col0 ) + 63 FROM tab1 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-6776
SELECT DISTINCT + COUNT( col0 ) AS col0 FROM tab1 AS cor0 WHERE - 9 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6776
SELECT DISTINCT + COUNT ( col0 ) AS col0 FROM tab1 AS cor0 WHERE - 9 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 22 + + ( + col2 ) + + - col1 + - - col0 * - col0 BETWEEN col0 AND 7 * - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6778
SELECT ( - - col2 ) AS col0, - CAST( NULL AS DECIMAL ) * - + col2 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6778
SELECT ( - - col2 ) AS col0, - CAST ( NULL AS REAL ) * - + col2 AS col0 FROM tab1
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT MIN( col2 ) AS col2 FROM tab1 WHERE NOT + col0 - col2 BETWEEN NULL AND col2 * + 19
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT MIN ( col2 ) AS col2 FROM tab1 WHERE NOT + col0 - col2 BETWEEN NULL AND col2 * + 19
----
NULL

query I rowsort
SELECT ALL + 72 * + + col0 AS col1 FROM tab2
----
3312
4608
5400

query II rowsort
SELECT col1 * col2 AS col1, col2 AS col0 FROM tab1
----
1344
96
295
59
3196
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT SUM( DISTINCT - - 64 ) FROM tab2
----
64

skipif mysql # not compatible
query I rowsort label-6782
SELECT SUM ( DISTINCT - - 64 ) FROM tab2
----
64

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( 0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6784
SELECT DISTINCT 65 * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL > col2 + + ( + - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-6784
SELECT DISTINCT 65 * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL > col2 + + ( + - col2 )
----
0

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT - 67 IS NULL
----
46
64
75

query I rowsort
SELECT ALL + ( - - col0 ) + - col2 + - + 25 FROM tab2
----
-1
-2
-8

query I rowsort
SELECT DISTINCT + col2 + 97 FROM tab0 AS cor0
----
107
144
196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 + 95 col1 FROM tab2 AS cor0
----
118
118
118

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT DISTINCT + 50 + MIN( + col0 ) col0 FROM tab2 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6789
SELECT DISTINCT + 50 + MIN ( + col0 ) col0 FROM tab2 AS cor0
----
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + + - col2 col2 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT ALL - col2 * + - 24 + col0, 32 AS col0 FROM tab1 cor0 WHERE col0 * col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6792
SELECT MIN( 67 ) FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-6792
SELECT MIN ( 67 ) FROM tab2 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE NOT - 40 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6793
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - 40 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6794
SELECT - COUNT( * ) * + MAX( col1 ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-6794
SELECT - COUNT ( * ) * + MAX ( col1 ) FROM tab1
----
-141

query I rowsort
SELECT + 81 * + ( + col2 ) AS col1 FROM tab2
----
1863
3240
4698

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6796
SELECT ALL + CAST( + 55 AS SIGNED ), - COUNT( * ) AS col1 FROM tab2
----
55
-3

skipif mysql # not compatible
query II rowsort label-6796
SELECT ALL + CAST ( + 55 AS INTEGER ), - COUNT ( * ) AS col1 FROM tab2
----
55
-3

query I rowsort
SELECT ALL ( - + col0 ) AS col2 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-6798
SELECT DISTINCT MAX( ALL + col0 ), - ( + + 65 ) * + 23 AS col2 FROM tab1
----
91
-1495

skipif mysql # not compatible
query II rowsort label-6798
SELECT DISTINCT MAX ( ALL + col0 ), - ( + + 65 ) * + 23 AS col2 FROM tab1
----
91
-1495

onlyif mysql # aggregate syntax: 
query I rowsort label-6799
SELECT - - COUNT( * ) AS col1 FROM tab0 WHERE - - 5 + + - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6799
SELECT - - COUNT ( * ) AS col1 FROM tab0 WHERE - - 5 + + - col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6800
SELECT ALL - COUNT( * ) * + 45 AS col1 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-6800
SELECT ALL - COUNT ( * ) * + 45 AS col1 FROM tab0
----
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6801
SELECT ( - CAST( NULL AS SIGNED ) ) / - 55 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6801
SELECT ( - CAST ( NULL AS INTEGER ) ) / - 55 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 / + 78 * - 77 AS col1 FROM tab2 WHERE NOT - col1 NOT BETWEEN + col1 AND + col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 * + col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6804
SELECT COUNT( * ) - COUNT( * ), + 35 AS col1 FROM tab1 cor0
----
0
35

skipif mysql # not compatible
query II rowsort label-6804
SELECT COUNT ( * ) - COUNT ( * ), + 35 AS col1 FROM tab1 cor0
----
0
35

query I rowsort
SELECT + col2 - + 74 AS col1 FROM tab1 AS cor0
----
-15
-6
22

query I rowsort
SELECT - - col2 + + 22 AS col0 FROM tab1 AS cor0
----
118
81
90

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT COUNT( DISTINCT - col0 ) + + + ( - MAX( - col0 ) ) AS col0 FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-6807
SELECT COUNT ( DISTINCT - col0 ) + + + ( - MAX ( - col0 ) ) AS col0 FROM tab2 AS cor0
----
49

query I rowsort
SELECT - + ( - - 90 ) * - 86 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
9 values hashing to a7c303cdda50aac47cf3693b0d1548b4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6809
SELECT - col0 * CAST( 79 AS SIGNED ) + - - col1 FROM tab2
----
-3583
-4979
-5858

skipif mysql # not compatible
query I rowsort label-6809
SELECT - col0 * CAST ( 79 AS INTEGER ) + - - col1 FROM tab2
----
-3583
-4979
-5858

query I rowsort
SELECT DISTINCT - - 48 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
48

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col0 > + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6812
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * - 4 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6812
SELECT DISTINCT + CAST ( NULL AS REAL ) * - 4 * + col0 + + col0 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6813
SELECT COUNT( * ) * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6813
SELECT COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT ALL col0 * + - 99 FROM tab1 AS cor0
----
-5049
-8415
-9009

query I rowsort
SELECT DISTINCT + 37 * - + col0 AS col0 FROM tab1 AS cor0
----
-1887
-3145
-3367

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 94 + 69 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6817
SELECT ALL + col0 * - - col2 + + col1, - col1 * 36 * - + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
786
-43740
891
-65772
9604
-3492

skipif mysql # not compatible
query II rowsort label-6817
SELECT ALL + col0 * - - col2 + + col1, - col1 * 36 * - + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
786
-43740
891
-65772
9604
-3492

onlyif mysql # DIV for integer division: 
query I rowsort label-6818
SELECT col1 DIV 22 + col2 * + 15 * 94 * 58 + + 84 * - 10 * + col2 FROM tab0 AS cor0
----
3804183
8013060
809400

skipif mysql # not compatible
query I rowsort label-6818
SELECT col1 / 22 + col2 * + 15 * 94 * 58 + + 84 * - 10 * + col2 FROM tab0 AS cor0
----
3804183
8013060
809400

onlyif mysql # DIV for integer division: 
query I rowsort label-6819
SELECT ALL - col2 DIV + 62 col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6819
SELECT ALL - col2 / + 62 col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6820
SELECT ALL - ( - 79 ) * - COUNT( * ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-6820
SELECT ALL - ( - 79 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-237

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( + 42 ) * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6822
SELECT DISTINCT - - SUM( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-6822
SELECT DISTINCT - - SUM ( ALL - + col2 ) AS col1 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT DISTINCT - 45 FROM tab0 WHERE - col1 + - + 20 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 15 + - - col2 + - + 93 + ( col2 ) * ( 89 ) col1 FROM tab2 WHERE - 64 * + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6825
SELECT COUNT( * ) * - ( SUM( - CAST( + + col1 AS SIGNED ) ) ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-6825
SELECT COUNT ( * ) * - ( SUM ( - CAST ( + + col1 AS INTEGER ) ) ) FROM tab1
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-6826
SELECT ALL + COUNT( DISTINCT ( + + col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6826
SELECT ALL + COUNT ( DISTINCT ( + + col2 ) ) FROM tab1
----
3

query II rowsort
SELECT DISTINCT - col0 * - 31 AS col0, - col0 FROM tab1
----
1581
-51
2635
-85
2821
-91

query I rowsort
SELECT ALL - + col2 + - - col0 AS col1 FROM tab0 AS cor0
----
-2
-32
77

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 - - - col1 AND + col1
----

query I rowsort
SELECT - col2 + + + col0 + + - col2 AS col1 FROM tab1 AS cor0
----
-141
-33
-45

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 * - ( - - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6832
SELECT DISTINCT - ( col2 ) + - + col2 * col2 DIV 10, 88 AS col2 FROM tab2 AS cor0
----
-200
88
-394
88
-75
88

skipif mysql # not compatible
query II rowsort label-6832
SELECT DISTINCT - ( col2 ) + - + col2 * col2 / 10, 88 AS col2 FROM tab2 AS cor0
----
-200
88
-394
88
-75
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT ALL + - COUNT( * ) * COUNT( * ) + - + 21 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6833
SELECT ALL + - COUNT ( * ) * COUNT ( * ) + - + 21 FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-6834
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) - + + COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6834
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) - + + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 + + + 36 AS col1 FROM tab0 AS cor0
----
-11
-63
26

query I rowsort
SELECT col2 + 45 * - col0 - 7 AS col2 FROM tab0 AS cor0
----
-3912
-4273
-635

query I rowsort
SELECT + 36 + + + 77 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
113
113
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6838
SELECT DISTINCT - ( + COUNT( + - col0 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6838
SELECT DISTINCT - ( + COUNT ( + - col0 ) ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6839
SELECT DISTINCT col0 - + CAST( + col1 AS SIGNED ) * - - col1 AS col2 FROM tab0
----
-354
-6546
96

skipif mysql # not compatible
query I rowsort label-6839
SELECT DISTINCT col0 - + CAST ( + col1 AS INTEGER ) * - - col1 AS col2 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT + col2 + - + col0 + - + col0 + + 38 * col2 FROM tab0
----
1803
216
3667

onlyif mysql # aggregate syntax: 
query I rowsort label-6841
SELECT ALL - MIN( DISTINCT col1 ) + COUNT( * ) + + MAX( + 39 ) FROM tab0
----
41

skipif mysql # not compatible
query I rowsort label-6841
SELECT ALL - MIN ( DISTINCT col1 ) + COUNT ( * ) + + MAX ( + 39 ) FROM tab0
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6842
SELECT + + MIN( + + 30 ) * - COUNT( * ) col2 FROM tab1 AS cor0
----
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6842
SELECT + + MIN ( + + 30 ) * - COUNT ( * ) col2 FROM tab1 AS cor0
----
-90

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT + - 6 * + - col0 * + 11 - - - col0 AS col1 FROM tab1 AS cor0
----
3315
5525
5915

query I rowsort
SELECT ALL 76 + col0 FROM tab1 WHERE 29 * col0 < ( + 80 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + col0 col1 FROM tab1
----
37
44
80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 54 ) col0 FROM tab1 WHERE NULL IS NULL
----
54
54
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6848
SELECT DISTINCT - SUM( DISTINCT 16 ) FROM tab0
----
-16

skipif mysql # not compatible
query I rowsort label-6848
SELECT DISTINCT - SUM ( DISTINCT 16 ) FROM tab0
----
-16

query III rowsort
SELECT ALL * FROM tab1 WHERE + 39 * + 50 IS NULL
----

query I rowsort
SELECT 36 AS col2 FROM tab0 WHERE col2 * + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6851
SELECT ALL - COUNT( * ) - COUNT( ALL col1 ) AS col0 FROM tab0 WHERE col1 NOT BETWEEN ( col0 ) AND ( NULL )
----
-4

skipif mysql # not compatible
query I rowsort label-6851
SELECT ALL - COUNT ( * ) - COUNT ( ALL col1 ) AS col0 FROM tab0 WHERE col1 NOT BETWEEN ( col0 ) AND ( NULL )
----
-4

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6852
SELECT - ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6852
SELECT - ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 / + col2 + - 52 AND ( 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ( MAX( ALL + col1 ) ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-6854
SELECT ( MAX ( ALL + col1 ) ) AS col1 FROM tab1
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6855
SELECT DISTINCT * FROM tab1 WHERE ( ( + 21 ) * col1 ) NOT IN ( + CAST( + ( - 62 ) AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6855
SELECT DISTINCT * FROM tab1 WHERE ( ( + 21 ) * col1 ) NOT IN ( + CAST ( + ( - 62 ) AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT DISTINCT + MAX( DISTINCT - 86 ) FROM tab1
----
-86

skipif mysql # not compatible
query I rowsort label-6856
SELECT DISTINCT + MAX ( DISTINCT - 86 ) FROM tab1
----
-86

query I rowsort
SELECT + col2 * + col2 + col1 * - col2 FROM tab0
----
-110
-1598
9702

query I rowsort
SELECT + col1 - - ( - col1 + col0 ) * - 39 AS col0 FROM tab1 WHERE NOT - col1 + + col1 * + col2 IS NULL
----
-1429
-1669
-3115

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6860
SELECT DISTINCT SUM( 56 ) FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-6860
SELECT DISTINCT SUM ( 56 ) FROM tab0
----
168

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT + col2 IN ( - 68 + - col2 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6862
SELECT DISTINCT MAX( DISTINCT + 77 ) col2 FROM tab0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6862
SELECT DISTINCT MAX ( DISTINCT + 77 ) col2 FROM tab0
----
77

query I rowsort
SELECT ALL - col1 * - col0 FROM tab2 WHERE ( + 77 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 59 + - 34 * - col0 FROM tab2
----
1505
2117
2491

query I rowsort
SELECT DISTINCT ( 77 ) - col0 FROM tab1
----
-14
-8
26

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 32 <> ( 53 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + + col1 * col2 AS col1 FROM tab0
----
189
3726
98

query I rowsort
SELECT col2 FROM tab1 WHERE + col2 BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6869
SELECT - COUNT( * ) * - 47 FROM tab0 WHERE NULL < ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-6869
SELECT - COUNT ( * ) * - 47 FROM tab0 WHERE NULL < ( col0 )
----
0

query I rowsort
SELECT 49 - + col0 FROM tab1 WHERE NULL >= ( 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT DISTINCT + 64 + COUNT( * ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-6871
SELECT DISTINCT + 64 + COUNT ( * ) FROM tab1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6872
SELECT DISTINCT CAST( col1 AS SIGNED ) + + ( + col2 ) FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-6872
SELECT DISTINCT CAST ( col1 AS INTEGER ) + + ( + col2 ) FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-6873
SELECT ALL ( + MAX( - col2 ) ) col2 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6873
SELECT ALL ( + MAX ( - col2 ) ) col2 FROM tab1
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-6874
SELECT col0 - col1 DIV + col0 FROM tab0
----
10
87
97

skipif mysql # not compatible
query I rowsort label-6874
SELECT col0 - col1 / + col0 FROM tab0
----
10
87
97

query I rowsort
SELECT ALL + ( + 28 ) + col2 FROM tab1 AS cor0
----
124
87
96

query I rowsort
SELECT DISTINCT 50 + + ( + col1 + - col2 ) AS col0 FROM tab0 cor0
----
-48
61
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6877
SELECT DISTINCT col1 DIV - 77 + + col2 AS col2 FROM tab2 AS cor0
----
23
39
58

skipif mysql # not compatible
query I rowsort label-6877
SELECT DISTINCT col1 / - 77 + + col2 AS col2 FROM tab2 AS cor0
----
23
39
58

query I rowsort
SELECT DISTINCT col1 + - 13 * 74 FROM tab1
----
-915
-948
-957

query III rowsort
SELECT * FROM tab1 WHERE 3 NOT BETWEEN col0 / + col0 AND + col2 * col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col1 + + col1 AND ( col1 * 38 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6881
SELECT col0 FROM tab1 AS cor0 WHERE ( + col2 / col0 ) BETWEEN ( + CAST( col1 AS SIGNED ) ) AND ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6881
SELECT col0 FROM tab1 AS cor0 WHERE ( + col2 / col0 ) BETWEEN ( + CAST ( col1 AS INTEGER ) ) AND ( NULL )
----

query I rowsort
SELECT DISTINCT + 0 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6883
SELECT + ( COUNT( * ) ) + COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-6883
SELECT + ( COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

query I rowsort
SELECT 3 * 85 AS col1 FROM tab1 AS cor0
----
255
255
255

query I rowsort
SELECT DISTINCT + + 25 + 31 AS col1 FROM tab0 AS cor0
----
56

query I rowsort
SELECT col1 * 51 FROM tab0 AS cor0
----
1071
4131
51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 <> + 30
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + ( col0 ) col2 FROM tab0 AS cor0 WHERE 94 / 30 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6889
SELECT ALL COUNT( DISTINCT - 78 ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6889
SELECT ALL COUNT ( DISTINCT - 78 ) AS col1 FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6890
SELECT ALL + MAX( col2 ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-6890
SELECT ALL + MAX ( col2 ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
288

query I rowsort
SELECT DISTINCT + ( col2 ) - col2 FROM tab1
----
0

query I rowsort
SELECT - ( - 7 ) AS col1 FROM tab0
----
7
7
7

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) <> - col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6894
SELECT + 7 / + col1 AS col1 FROM tab2 WHERE - CAST( + col2 AS DECIMAL ) < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-6894
SELECT + 7 / + col1 AS col1 FROM tab2 WHERE - CAST ( + col2 AS REAL ) < ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) BETWEEN + col2 AND ( - 1 )
----

query I rowsort
SELECT + col2 - ( col0 ) FROM tab1
----
-23
-26
45

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE NOT - col1 NOT BETWEEN ( NULL ) AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 col0 FROM tab0 cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( 5 - - col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col1 * col2 ) NOT BETWEEN 0 AND ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 FROM tab2 WHERE NOT + 60 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 63 ) col2 FROM tab1
----
63
63
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 0 col1, col1 * 70 AS col0 FROM tab2
----
0
3570
0
4690
0
5390

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6904
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 71 NOT IN ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query IIIIII rowsort label-6904
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE + 71 NOT IN ( CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT + 48 * + 22 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3b91570e399002b1dc8947112d023f04

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6906
SELECT DISTINCT + col1 AS col0, - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6906
SELECT DISTINCT + col1 AS col0, - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6907
SELECT - 52 * 11 DIV + - col2 FROM tab2 cor0
----
14
24
9

skipif mysql # not compatible
query I rowsort label-6907
SELECT - 52 * 11 / + - col2 FROM tab2 cor0
----
14
24
9

onlyif mysql # aggregate syntax: 
query II rowsort label-6908
SELECT DISTINCT - COUNT( * ), COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-6908
SELECT DISTINCT - COUNT ( * ), COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3
3

query I rowsort
SELECT col1 / + col0 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + col2 AS col2, - ( - 77 ) * col1 AS col1 FROM tab1 AS cor0
----
59
385
68
3619
96
1078

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6911
SELECT - COUNT( * ) DIV - - 37 col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6911
SELECT - COUNT ( * ) / - - 37 col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6912
SELECT - 49 * 75 DIV + + col2 FROM tab0 AS cor0
----
-367
-37
-78

skipif mysql # not compatible
query I rowsort label-6912
SELECT - 49 * 75 / + + col2 FROM tab0 AS cor0
----
-367
-37
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6913
SELECT 29 - 23 * - 26 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) - 93 ) > ( col2 )
----

skipif mysql # not compatible
query I rowsort label-6913
SELECT 29 - 23 * - 26 AS col0 FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) - 93 ) > ( col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * - 84 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - 37 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 14 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - 54 NOT IN ( + col0 * 99 + 19 * + col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 26 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6919
SELECT DISTINCT col0 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6919
SELECT DISTINCT col0 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col2 * + 86 + 90 + col2 + col0 * - 50 FROM tab0
----
-3390
3429
3853

query I rowsort
SELECT DISTINCT + col1 + + - col1 + + col0 * - 14 AS col1 FROM tab0
----
-1218
-1358
-210

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6922
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 - - + CAST( + - 77 AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-6922
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 - - + CAST ( + - 77 AS INTEGER ) ) <= NULL
----

query I rowsort
SELECT + - col1 + + + 97 * + col1 AS col2 FROM tab0 AS cor0
----
2016
7776
96

query I rowsort
SELECT ALL + col2 + - 25 AS col1 FROM tab2 AS cor0
----
-2
15
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6925
SELECT + + CAST( NULL AS SIGNED ) * + col0 + + 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6925
SELECT + + CAST ( NULL AS INTEGER ) * + col0 + + 61 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 30 + col0 * - + col2 ) = ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 91 * + 77 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6928
SELECT + - COUNT( * ) + - + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-6928
SELECT + - COUNT ( * ) + - + COUNT ( * ) FROM tab1 AS cor0
----
-6

query III rowsort
SELECT * FROM tab0 WHERE ( 63 + - - col1 ) NOT BETWEEN NULL AND + 28 * 12 + + 20
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6930
SELECT MIN( ALL 81 ) - 84 col0 FROM tab2 WHERE + col2 BETWEEN ( col1 * + ( - 64 ) ) AND + col0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6930
SELECT MIN ( ALL 81 ) - 84 col0 FROM tab2 WHERE + col2 BETWEEN ( col1 * + ( - 64 ) ) AND + col0
----
-3

query I rowsort
SELECT - 47 * - 97 FROM tab2 AS cor0
----
4559
4559
4559

query I rowsort
SELECT - 18 - + 32 * + + col0 FROM tab2 AS cor0
----
-1490
-2066
-2418

onlyif mysql # DIV for integer division: 
query I rowsort label-6933
SELECT ALL col2 + - 87 DIV + col0 + col0 * 98 - + col0 * + col2 AS col1 FROM tab0 AS cor0
----
2
7665
807

skipif mysql # not compatible
query I rowsort label-6933
SELECT ALL col2 + - 87 / + col0 + col0 * 98 - + col0 * + col2 AS col1 FROM tab0 AS cor0
----
2
7665
807

query I rowsort
SELECT 7 - col2 * + col0 + - - col2 FROM tab1 AS cor0
----
-4793
-4949
-6113

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 3 = 69 * col2
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL AND NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 56 - - col1 FROM tab0 cor0
----
-35
-55
25

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6939
SELECT DISTINCT col0 - + CAST( NULL AS DECIMAL ) - + col2 + + 47 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6939
SELECT DISTINCT col0 - + CAST ( NULL AS REAL ) - + col2 + + 47 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6940
SELECT DISTINCT col2 DIV + col1 * + col0 * - col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6940
SELECT DISTINCT col2 / + col1 * + col0 * - col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT - 36 - col1 * - col2 FROM tab2
----
1137
3044
3850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6942
SELECT DISTINCT + ( + - CAST( NULL AS SIGNED ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6942
SELECT DISTINCT + ( + - CAST ( NULL AS INTEGER ) ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 <= ( NULL )
----

query I rowsort
SELECT + 38 AS col1 FROM tab0 WHERE ( - - 12 ) IN ( 59 * - + ( col1 ) * 27 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + ( + - col2 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6946
SELECT col2 + CAST( 59 AS SIGNED ) * + 68 * - col1 FROM tab2
----
-204589
-268746
-308884

skipif mysql # not compatible
query I rowsort label-6946
SELECT col2 + CAST ( 59 AS INTEGER ) * + 68 * - col1 FROM tab2
----
-204589
-268746
-308884

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL BETWEEN ( - + col0 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, - ( - col2 ) col1 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT ALL 51 * + 97 AS col2 FROM tab0
----
4947
4947
4947

query II rowsort
SELECT DISTINCT + 75, - col0 AS col0 FROM tab2
----
75
-46
75
-64
75
-75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6951
SELECT - MIN( - col0 ) - - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6951
SELECT - MIN ( - col0 ) - - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 WHERE NOT ( NOT NULL IS NOT NULL )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6952
SELECT 49 DIV - - MAX( ALL + + col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6952
SELECT 49 / - - MAX ( ALL + + col0 ) AS col0 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 67 * col1 col2 FROM tab1
----
3149
335
938

onlyif mysql # DIV for integer division: 
query I rowsort label-6954
SELECT - col0 DIV 97 * + + 23 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6954
SELECT - col0 / 97 * + + 23 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT DISTINCT - + ( COUNT( * ) ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6955
SELECT DISTINCT - + ( COUNT ( * ) ) FROM tab1 cor0
----
-3

query II rowsort
SELECT DISTINCT 37, - col1 FROM tab2 WHERE + 34 / - + 80 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - 66 ) AS col1 FROM tab1
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6958
SELECT DISTINCT col2 * 89 AS col0, 96 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
4183
NULL
8811
NULL
890
NULL

skipif mysql # not compatible
query II rowsort label-6958
SELECT DISTINCT col2 * 89 AS col0, 96 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
4183
NULL
8811
NULL
890
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > + col2 / - col1 * + 59
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 97 * + - col2 NOT IN ( + col2, - col1 * - 48 * col0 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6961
SELECT + COUNT( * ) * 50 + - + 69 FROM tab2 cor0
----
81

skipif mysql # not compatible
query I rowsort label-6961
SELECT + COUNT ( * ) * 50 + - + 69 FROM tab2 cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-6962
SELECT + 91 DIV - - col0 AS col1 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-6962
SELECT + 91 / - - col0 AS col1 FROM tab0
----
0
1
6

query I rowsort
SELECT ALL - 3 * col0 * col0 FROM tab1
----
-21675
-24843
-7803

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6964
SELECT ALL ( + ( + - 40 ) ) * - 95 * + 83 * + + CAST( + - ( - + col0 ) AS SIGNED ) AS col2 FROM tab1
----
16085400
26809000
28701400

skipif mysql # not compatible
query I rowsort label-6964
SELECT ALL ( + ( + - 40 ) ) * - 95 * + 83 * + + CAST ( + - ( - + col0 ) AS INTEGER ) AS col2 FROM tab1
----
16085400
26809000
28701400

query I rowsort
SELECT - 23 * + col2 AS col1 FROM tab2
----
-1334
-529
-920

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6966
SELECT + CAST( - + 30 AS SIGNED ) AS col2 FROM tab2
----
-30
-30
-30

skipif mysql # not compatible
query I rowsort label-6966
SELECT + CAST ( - + 30 AS INTEGER ) AS col2 FROM tab2
----
-30
-30
-30

onlyif mysql # DIV for integer division: 
query II rowsort label-6967
SELECT DISTINCT - col0 DIV 10 + - - 35 AS col0, ( - col2 ) FROM tab0 AS cor0
----
26
-99
27
-10
34
-47

skipif mysql # not compatible
query II rowsort label-6967
SELECT DISTINCT - col0 / 10 + - - 35 AS col0, ( - col2 ) FROM tab0 AS cor0
----
26
-99
27
-10
34
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-6968
SELECT ALL + col1 DIV col0 * + ( - + 61 ) + - col1 AS col0 FROM tab2 AS cor0
----
-112
-138
-67

skipif mysql # not compatible
query I rowsort label-6968
SELECT ALL + col1 / col0 * + ( - + 61 ) + - col1 AS col0 FROM tab2 AS cor0
----
-112
-138
-67

query II rowsort
SELECT DISTINCT + - col0 * ( + col1 ), + col2 FROM tab2 AS cor0
----
-2346
23
-4928
40
-5025
58

query I rowsort
SELECT - 56 * col1 FROM tab1 AS cor0
----
-2632
-280
-784

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT 10 + + COUNT( * ) FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-6971
SELECT 10 + + COUNT ( * ) FROM tab0 AS cor0
----
13

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6972
SELECT CAST( NULL AS SIGNED ) + + col0 * col1 / col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6972
SELECT CAST ( NULL AS INTEGER ) + + col0 * col1 / col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6973
SELECT ALL 11 DIV + 39 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT ALL 11 / + 39 FROM tab0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 62 + + col1, col1 col2 FROM tab1 AS cor0
----
-15
47
-48
14
-57
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6976
SELECT - - 56 * - CAST( - + SUM( DISTINCT col1 ) AS SIGNED ) FROM tab2 AS cor0
----
10920

skipif mysql # not compatible
query I rowsort label-6976
SELECT - - 56 * - CAST ( - + SUM ( DISTINCT col1 ) AS INTEGER ) FROM tab2 AS cor0
----
10920

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT ALL MIN( ALL - - col1 ) + - + 21 FROM tab1 cor0
----
-16

skipif mysql # not compatible
query I rowsort label-6977
SELECT ALL MIN ( ALL - - col1 ) + - + 21 FROM tab1 cor0
----
-16

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6978
SELECT - MIN( ALL + col2 ) DIV 49 - COUNT( * ) AS col1 FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6978
SELECT - MIN ( ALL + col2 ) / 49 - COUNT ( * ) AS col1 FROM tab2 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6980
SELECT + - ( - col1 ) - 54 + col1 DIV - col0 + + col2 AS col0 FROM tab2 AS cor0
----
19
62
71

skipif mysql # not compatible
query I rowsort label-6980
SELECT + - ( - col1 ) - 54 + col1 / - col0 + + col2 AS col0 FROM tab2 AS cor0
----
19
62
71

query I rowsort
SELECT ALL col0 - - - col2 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT ALL - 76 * - MAX( - ( + col1 ) ) FROM tab1
----
-380

skipif mysql # not compatible
query I rowsort label-6982
SELECT ALL - 76 * - MAX ( - ( + col1 ) ) FROM tab1
----
-380

query I rowsort
SELECT ALL col0 * + col1 * + col2 * - col0 FROM tab2
----
-12615680
-21858750
-2482068

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT - 14 IS NOT NULL
----

query I rowsort
SELECT + - col1 AS col2 FROM tab2 WHERE NOT + + col2 IS NOT NULL
----

query I rowsort
SELECT 81 - 2 FROM tab2 AS cor0 WHERE NOT ( ( + col2 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6987
SELECT col2 DIV + - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-6987
SELECT col2 / + - col0 AS col2 FROM tab0 AS cor0
----
-1
-3
0

query I rowsort
SELECT DISTINCT - + col0 * ( col0 ) * - col0 AS col0 FROM tab1 AS cor0
----
132651
614125
753571

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6989
SELECT + 55 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6989
SELECT + 55 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6990
SELECT DISTINCT - 26 DIV - col2 + + - col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6990
SELECT DISTINCT - 26 / - col2 + + - col2 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + SUM( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6991
SELECT + SUM ( ALL + + col1 ) AS col2 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - ( + - col1 ) * col2 AS col2 FROM tab1 AS cor0 WHERE col2 - + - col0 * - col1 - col2 NOT BETWEEN - - 69 AND - col2
----
1344
295
3196

query II rowsort
SELECT ALL + + 21 AS col0, - 86 AS col2 FROM tab0 AS cor0
----
21
-86
21
-86
21
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-6994
SELECT DISTINCT - - SUM( + 7 ) FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-6994
SELECT DISTINCT - - SUM ( + 7 ) FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT + ( - 25 ) * MIN( - + 13 ) FROM tab2 AS cor0 WHERE NOT ( 79 + + 56 ) NOT IN ( col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-6995
SELECT + ( - 25 ) * MIN ( - + 13 ) FROM tab2 AS cor0 WHERE NOT ( 79 + + 56 ) NOT IN ( col0 )
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6996
SELECT ALL - 90 AS col2, - 4 - - - 22 - col1 DIV - + col2 * 73 FROM tab1 AS cor0
----
-90
-26
-90
-26
-90
-26

skipif mysql # not compatible
query II rowsort label-6996
SELECT ALL - 90 AS col2, - 4 - - - 22 - col1 / - + col2 * 73 FROM tab1 AS cor0
----
-90
-26
-90
-26
-90
-26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6997
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT - CAST( - col2 AS SIGNED ) IN ( - col0 + - 95, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6997
SELECT DISTINCT col1 FROM tab1 cor0 WHERE NOT - CAST ( - col2 AS INTEGER ) IN ( - col0 + - 95, CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT + col2, col0 + + + col1 FROM tab1 AS cor0
----
59
90
68
138
96
65

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col1, + col2 + + col2 FROM tab0 AS cor0
----
10
20
47
94
99
198

onlyif mysql # aggregate syntax: 
query I rowsort label-7001
SELECT ALL ( - + COUNT( * ) ) AS col0 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7001
SELECT ALL ( - + COUNT ( * ) ) AS col0 FROM tab1 cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7002
SELECT 2 + COUNT( * ) + + COUNT( * ), + 54 + - COUNT( * ) AS col2 FROM tab2
----
8
51

skipif mysql # not compatible
query II rowsort label-7002
SELECT 2 + COUNT ( * ) + + COUNT ( * ), + 54 + - COUNT ( * ) AS col2 FROM tab2
----
8
51

query I rowsort
SELECT DISTINCT col0 * + + col0 + - - 89 + col2 FROM tab0
----
361
7668
9597

query I rowsort
SELECT DISTINCT col1 + - ( + 71 ) AS col1 FROM tab2
----
-20
-4
6

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL <= - 32 * - 64
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7006
SELECT DISTINCT 30 FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-7006
SELECT DISTINCT 30 FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 >= + ( + + 25 ) - - - col0 + - col2 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col0 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 63 + 71 + + col0 <> ( NULL )
----

query I rowsort
SELECT + ( - col1 ) * + 71 - + col1 AS col2 FROM tab0
----
-1512
-5832
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-7011
SELECT - + COUNT( ALL + + 42 ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7011
SELECT - + COUNT ( ALL + + 42 ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL < ( - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 * - col2 - + col2 - + - col1 + - col1 col2 FROM tab1 AS cor0
----
-25134
-290904
-68640

onlyif mysql # DIV for integer division: 
query I rowsort label-7014
SELECT DISTINCT + + col0 DIV + + col2 col2 FROM tab0 AS cor0
----
0
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7014
SELECT DISTINCT + + col0 / + + col2 col2 FROM tab0 AS cor0
----
0
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7015
SELECT DISTINCT 74 * - - col1 + 17 DIV - 37 FROM tab1 AS cor0
----
1036
3478
370

skipif mysql # not compatible
query I rowsort label-7015
SELECT DISTINCT 74 * - - col1 + 17 / - 37 FROM tab1 AS cor0
----
1036
3478
370

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7016
SELECT DISTINCT CAST( NULL AS SIGNED ) * + MAX( ALL - 43 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + MAX ( ALL - 43 ) FROM tab2
----
NULL

query I rowsort
SELECT col1 * - 95 * col2 AS col0 FROM tab0
----
-19950
-361665
-9405

onlyif mysql # aggregate syntax: 
query I rowsort label-7018
SELECT DISTINCT + ( - MAX( DISTINCT + col2 ) ) AS col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7018
SELECT DISTINCT + ( - MAX ( DISTINCT + col2 ) ) AS col0 FROM tab2 WHERE NOT + - col0 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT - + SUM( ALL + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7019
SELECT - + SUM ( ALL + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-7020
SELECT ALL - 56 * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7020
SELECT ALL - 56 * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-168

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 73 ) col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query I rowsort
SELECT ALL + + 51 + col2 * + col1 FROM tab2 AS cor0
----
1224
3131
3937

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7023
SELECT - col2 + 5 FROM tab0 AS cor0 WHERE 54 NOT BETWEEN - CAST( + col1 AS SIGNED ) AND - col0 / - + col1
----
-42
-5

skipif mysql # not compatible
query I rowsort label-7023
SELECT - col2 + 5 FROM tab0 AS cor0 WHERE 54 NOT BETWEEN - CAST ( + col1 AS INTEGER ) AND - col0 / - + col1
----
-42
-5

query I rowsort
SELECT DISTINCT - + 55 + col0 AS col0 FROM tab1 AS cor0
----
-4
30
36

query I rowsort
SELECT + + col1 * col2 FROM tab0 cor0 WHERE - col1 > + 43 + + 81 * - col2
----
210
3807
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - - col1 * col1 * + col0 col2 FROM tab0 AS cor0
----
194
38454
98430

query I rowsort
SELECT ( 20 ) * 75 FROM tab1 AS cor0
----
1500
1500
1500

query I rowsort
SELECT DISTINCT + col1 * + 68 FROM tab0
----
1428
5508
68

query II rowsort
SELECT DISTINCT - 89, 39 AS col1 FROM tab0
----
-89
39

onlyif mysql # aggregate syntax: 
query I rowsort label-7030
SELECT MIN( 76 ) AS col2 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-7030
SELECT MIN ( 76 ) AS col2 FROM tab0
----
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 8 AS col2, col0 col2 FROM tab0
----
8
15
8
87
8
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7032
SELECT ALL - 30, + COUNT( * ) + COUNT( ALL + - 70 ) * + + 90 AS col0 FROM tab2
----
-30
273

skipif mysql # not compatible
query II rowsort label-7032
SELECT ALL - 30, + COUNT ( * ) + COUNT ( ALL + - 70 ) * + + 90 AS col0 FROM tab2
----
-30
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7033
SELECT ALL - COUNT( * ) + 5 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-7033
SELECT ALL - COUNT ( * ) + 5 FROM tab1
----
2

query III rowsort
SELECT * FROM tab2 WHERE + 29 NOT IN ( + 36, - 32 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 - col0 + - col1 AS col2 FROM tab1 AS cor0
----
-31
-70
31

query I rowsort
SELECT + col0 * - col0 + + col1 FROM tab0 AS cor0
----
-144
-7548
-9408

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7037
SELECT - + ( + 59 ) FROM tab2 WHERE ( + - col1 ) + + col2 * - col1 / - + col0 / + - CAST( NULL AS DECIMAL ) NOT IN ( col1 - + 98, 53 + col0 )
----

skipif mysql # not compatible
query I rowsort label-7037
SELECT - + ( + 59 ) FROM tab2 WHERE ( + - col1 ) + + col2 * - col1 / - + col0 / + - CAST ( NULL AS REAL ) NOT IN ( col1 - + 98, 53 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7038
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE ( - - 43 + - ( 26 ) ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-7038
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE ( - - 43 + - ( 26 ) ) < NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 <> - ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7040
SELECT col2 * 16 DIV col2 DIV col2 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7040
SELECT col2 * 16 / col2 / col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL ( col2 ), - 85 FROM tab0 AS cor0
----
10
-85
47
-85
99
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT ( - - COUNT( * ) ) * 46 FROM tab2 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-7042
SELECT ( - - COUNT ( * ) ) * 46 FROM tab2 AS cor0
----
138

query I rowsort
SELECT + 71 * - - 16 AS col2 FROM tab1 AS cor0
----
1136
1136
1136

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 70 - + + 24 NOT BETWEEN NULL AND - + col1 + - 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 17 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-17
-17
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7046
SELECT ALL CAST( + 10 AS SIGNED ) FROM tab0 AS cor0
----
10
10
10

skipif mysql # not compatible
query I rowsort label-7046
SELECT ALL CAST ( + 10 AS INTEGER ) FROM tab0 AS cor0
----
10
10
10

onlyif mysql # aggregate syntax: 
query II rowsort label-7047
SELECT ALL + MIN( DISTINCT + col1 ), - MAX( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
5
51

skipif mysql # not compatible
query II rowsort label-7047
SELECT ALL + MIN ( DISTINCT + col1 ), - MAX ( - ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
5
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 50 col1 FROM tab1 AS cor0
----
-50
-50
-50

onlyif mysql # DIV for integer division: 
query I rowsort label-7049
SELECT - col0 DIV - + 67 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7049
SELECT - col0 / - + 67 FROM tab0 AS cor0
----
0
1
1

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 <= col1
----
97
1
99

query I rowsort
SELECT + - col0 FROM tab2 WHERE NOT col0 + + col2 <> + col1
----

query II rowsort
SELECT DISTINCT + 44, col2 FROM tab1
----
44
59
44
68
44
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT DISTINCT - SUM( ALL col0 ) FROM tab0 WHERE + 27 IS NOT NULL
----
-199

skipif mysql # not compatible
query I rowsort label-7053
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab0 WHERE + 27 IS NOT NULL
----
-199

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7054
SELECT DISTINCT CAST( - ( - COUNT( * ) ) AS SIGNED ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7054
SELECT DISTINCT CAST ( - ( - COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL - 58 * + 19 AS col0 FROM tab2 AS cor0
----
-1102
-1102
-1102

query I rowsort
SELECT - col1 * + - 83 FROM tab0 cor0
----
1743
6723
83

query II rowsort
SELECT ALL - - col2, - col2 AS col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-7058
SELECT - SUM( - col1 ) + + + MAX( + + 82 ) FROM tab0 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-7058
SELECT - SUM ( - col1 ) + + + MAX ( + + 82 ) FROM tab0 AS cor0
----
185

query II rowsort
SELECT DISTINCT - + col0 AS col2, - col1 AS col0 FROM tab2 AS cor0
----
-46
-51
-64
-77
-75
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT DISTINCT + COUNT( * ) * - + 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-765

skipif mysql # not compatible
query I rowsort label-7060
SELECT DISTINCT + COUNT ( * ) * - + 85 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-765

query II rowsort
SELECT col1, + col2 FROM tab2 WHERE NOT ( - col2 ) <> - 6 + col0 * 62 * 59
----

query I rowsort
SELECT DISTINCT col0 * col2 * - - col0 AS col0 FROM tab2
----
163840
326250
48668

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 + - col2 > col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7064
SELECT ALL - SUM( + + col2 ) + MIN( + col1 ) AS col0 FROM tab0 AS cor0
----
-155

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL - SUM ( + + col2 ) + MIN ( + col1 ) AS col0 FROM tab0 AS cor0
----
-155

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7065
SELECT * FROM tab1 AS cor0 WHERE ( - + 53 + + col0 > - - CAST( + - 60 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7065
SELECT * FROM tab1 AS cor0 WHERE ( - + 53 + + col0 > - - CAST ( + - 60 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 / - 88 BETWEEN + + col1 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7067
SELECT ALL COUNT( DISTINCT - 27 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7067
SELECT ALL COUNT ( DISTINCT - 27 ) AS col1 FROM tab1
----
1

query I rowsort
SELECT ( 44 ) + col2 FROM tab2
----
102
67
84

query I rowsort
SELECT ALL + 29 * 13 FROM tab0
----
377
377
377

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7070
SELECT + col2 + - - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7070
SELECT + col2 + - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * - col0 * + col0 + + ( + col2 ) FROM tab0
----
-3328
-658493
-912574

query I rowsort
SELECT ALL 79 + + col2 + + col0 FROM tab0 AS cor0
----
141
176
275

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 13 <> NULL
----

query I rowsort
SELECT - col0 - + + col1 + + - col0 AS col2 FROM tab0
----
-111
-195
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7075
SELECT - 69 - + COUNT( * ) * - + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
30

skipif mysql # not compatible
query I rowsort label-7075
SELECT - 69 - + COUNT ( * ) * - + 11 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
30

query I rowsort
SELECT 95 * - + col0 + - + col0 AS col1 FROM tab1 AS cor0
----
-4896
-8160
-8736

query I rowsort
SELECT DISTINCT + ( - 33 ) FROM tab2 AS cor0
----
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-7078
SELECT SUM( DISTINCT + 94 ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-7078
SELECT SUM ( DISTINCT + 94 ) FROM tab2
----
94

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE col2 - col1 * - 16 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 98 col1 FROM tab2
----
98
98
98

query I rowsort
SELECT ( - col1 ) FROM tab2 WHERE NOT NULL < - + 61 + + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7082
SELECT COUNT( DISTINCT - + 32 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7082
SELECT COUNT ( DISTINCT - + 32 ) AS col0 FROM tab1
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab0 WHERE NOT NULL IN ( 7 * + 96 )
----

query II rowsort
SELECT ALL - col0 * - - 31 - col1, - col2 FROM tab0 AS cor0 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT DISTINCT + COUNT( col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7085
SELECT DISTINCT + COUNT ( col2 ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 86 * + + col0 AS col1 FROM tab1
----
-4386
-7310
-7826

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 71 + + col2 + - + col2 col0 FROM tab1
----
71
71
71

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( + col0, + 54 + + col0 + col0 - - col1 )
----

query I rowsort
SELECT ALL + - col1 + + + col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= - 70
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 + + col0 * + col2 * + - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 61 - - col1 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7093
SELECT DISTINCT + CAST( - 4 AS SIGNED ) * - col1 * + col1 AS col0 FROM tab0 AS cor0
----
1764
26244
4

skipif mysql # not compatible
query I rowsort label-7093
SELECT DISTINCT + CAST ( - 4 AS INTEGER ) * - col1 * + col1 AS col0 FROM tab0 AS cor0
----
1764
26244
4

query II rowsort
SELECT - col0 * + col2 AS col2, - 96 AS col1 FROM tab1
----
-4896
-96
-5015
-96
-6188
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7095
SELECT DISTINCT * FROM tab0 WHERE NOT - 73 BETWEEN - 14 AND - - CAST( - col2 AS DECIMAL ) / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7095
SELECT DISTINCT * FROM tab0 WHERE NOT - 73 BETWEEN - 14 AND - - CAST ( - col2 AS REAL ) / + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( 45 ) - col1 FROM tab0
----
-36
24
44

query I rowsort
SELECT - col1 - + 65 AS col0 FROM tab2
----
-116
-132
-142

query I rowsort
SELECT + ( - - col2 ) * + 87 + - col2 AS col2 FROM tab0 AS cor0
----
4042
8514
860

query I rowsort
SELECT - - 61 FROM tab0 cor0
----
61
61
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7100
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7100
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7101
SELECT ALL + + COUNT( 75 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7101
SELECT ALL + + COUNT ( 75 ) FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7102
SELECT DISTINCT - + col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 = + - col1 + 50 + + + CAST( col0 AS DECIMAL )
----
705
870
9603

skipif mysql # not compatible
query I rowsort label-7102
SELECT DISTINCT - + col0 * - col2 AS col1 FROM tab0 AS cor0 WHERE NOT + col0 = + - col1 + 50 + + + CAST ( col0 AS REAL )
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-7103
SELECT DISTINCT col0 DIV col0 * 14 AS col2 FROM tab1 cor0
----
14

skipif mysql # not compatible
query I rowsort label-7103
SELECT DISTINCT col0 / col0 * 14 AS col2 FROM tab1 cor0
----
14

query I rowsort
SELECT 67 * + col1 AS col1 FROM tab1 AS cor0
----
3149
335
938

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - 92 = - 20 * - + ( - 25 ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7106
SELECT + ( - COUNT( DISTINCT + col2 ) ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7106
SELECT + ( - COUNT ( DISTINCT + col2 ) ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-7107
SELECT + + COUNT( * ) AS col1, + 50 - + 82 AS col2 FROM tab0 AS cor0
----
3
-32

skipif mysql # not compatible
query II rowsort label-7107
SELECT + + COUNT ( * ) AS col1, + 50 - + 82 AS col2 FROM tab0 AS cor0
----
3
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-7108
SELECT - MAX( DISTINCT col2 ) * - 90 AS col1 FROM tab1 AS cor0
----
8640

skipif mysql # not compatible
query I rowsort label-7108
SELECT - MAX ( DISTINCT col2 ) * - 90 AS col1 FROM tab1 AS cor0
----
8640

onlyif mysql # aggregate syntax: 
query I rowsort label-7109
SELECT - SUM( ALL + ( - col0 ) ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7109
SELECT - SUM ( ALL + ( - col0 ) ) FROM tab1 cor0
----
227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 * 88 BETWEEN + + col1 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7111
SELECT MIN( DISTINCT - 71 ) AS col2 FROM tab0 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7111
SELECT MIN ( DISTINCT - 71 ) AS col2 FROM tab0 cor0
----
-71

query I rowsort
SELECT ALL - + ( - - 66 ) AS col2 FROM tab0 AS cor0
----
-66
-66
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col0 FROM tab0 AS cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7114
SELECT SUM( + 95 ) FROM tab1 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-7114
SELECT SUM ( + 95 ) FROM tab1 AS cor0
----
285

query II rowsort
SELECT ALL + 96 AS col0, 33 FROM tab2
----
96
33
96
33
96
33

query I rowsort
SELECT + 15 AS col1 FROM tab1 WHERE NOT - - col1 + + col2 + col0 >= col1 - + col2
----

query II rowsort
SELECT ALL - col2 AS col1, + 81 FROM tab1
----
-59
81
-68
81
-96
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7118
SELECT ALL COUNT( * ) * + - SUM( + col0 ) FROM tab1 WHERE CAST( NULL AS SIGNED ) BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7118
SELECT ALL COUNT ( * ) * + - SUM ( + col0 ) FROM tab1 WHERE CAST ( NULL AS INTEGER ) BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT col0 + col2 - + 10 FROM tab0 WHERE NOT NULL IS NOT NULL
----
186
52
87

query I rowsort
SELECT ALL + 74 + col0 - + 47 - 17 * + ( + 35 ) AS col0 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT ALL + - col1 FROM tab1 AS cor0 WHERE NOT 50 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 20 * + 30 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7123
SELECT DISTINCT - 0 - - 87 * CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7123
SELECT DISTINCT - 0 - - 87 * CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + + 20 - - col2 AS col1 FROM tab0 cor0
----
119
30
67

query I rowsort
SELECT ALL - 81 + + col2 + + col0 * col1 AS col1 FROM tab1 AS cor0
----
403
4264
729

query I rowsort
SELECT ALL col2 * 88 - - - 65 FROM tab0 cor0
----
4071
815
8647

query I rowsort
SELECT ALL - col2 * + - col1 * - + col0 AS col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # DIV for integer division: 
query I rowsort label-7128
SELECT ALL - col1 + 76 DIV col0 AS col2 FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-7128
SELECT ALL - col1 + 76 / col0 AS col2 FROM tab0 AS cor0
----
-1
-21
-76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - col0 - col1 * + - col1 / + col1 AND NULL
----

query I rowsort
SELECT DISTINCT + 51 * col1 - col2 FROM tab2 cor0
----
2578
3359
3887

onlyif mysql # DIV for integer division: 
query I rowsort label-7131
SELECT ALL - 2 - + col1 + col0 DIV - 93 AS col2 FROM tab1
----
-16
-49
-7

skipif mysql # not compatible
query I rowsort label-7131
SELECT ALL - 2 - + col1 + col0 / - 93 AS col2 FROM tab1
----
-16
-49
-7

query I rowsort
SELECT + 53 * - col0 * col0 * + 41 FROM tab2
----
-12223125
-4598068
-8900608

onlyif mysql # aggregate syntax: 
query I rowsort label-7133
SELECT ALL - MAX( DISTINCT - 91 ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-7133
SELECT ALL - MAX ( DISTINCT - 91 ) FROM tab1
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-7134
SELECT + col1 DIV 33 FROM tab2
----
1
2
2

skipif mysql # not compatible
query I rowsort label-7134
SELECT + col1 / 33 FROM tab2
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7135
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 93 / - col2 NOT IN ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7135
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 93 / - col2 NOT IN ( + + CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query II rowsort
SELECT 86 + + col2 AS col2, col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
109
23
126
40
144
58

query I rowsort
SELECT DISTINCT - + 4 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-4

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + + col2 AND col2 * 26
----

query I rowsort
SELECT ALL ( 17 ) FROM tab0
----
17
17
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7141
SELECT DISTINCT + COUNT( + + col2 ) * + 39 col0 FROM tab1
----
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7141
SELECT DISTINCT + COUNT ( + + col2 ) * + 39 col0 FROM tab1
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-7142
SELECT DISTINCT MAX( col0 ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-7142
SELECT DISTINCT MAX ( col0 ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
273

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 25 + + 33 - + 5 + col0 * col0 * + - col2 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( col1 ) FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + col0 * 44 * + - col2 AS col1 FROM tab1 AS cor0
----
-215424
-220660
-272272

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7146
SELECT - ( + CAST( + col0 AS SIGNED ) ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7146
SELECT - ( + CAST ( + col0 AS INTEGER ) ) FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 57 * + 32 IS NOT NULL
----

query I rowsort
SELECT ALL - col0 * + - col2 + - col2 AS col1 FROM tab0
----
658
860
9504

onlyif mysql # aggregate syntax: 
query I rowsort label-7149
SELECT + COUNT( ALL - 29 ) AS col1 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7149
SELECT + COUNT ( ALL - 29 ) AS col1 FROM tab0, tab1 AS cor0
----
9

query II rowsort
SELECT DISTINCT col1 * + 95 + ( + ( - 49 ) ), + col1 FROM tab0
----
1946
21
46
1
7646
81

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 cor1 WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query II rowsort
SELECT ALL 44 * - col0, col0 FROM tab1
----
-2244
51
-3740
85
-4004
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 12 + - col0 col0 FROM tab2
----
-34
-52
-63

query I rowsort
SELECT + - ( col2 ) * + col2 FROM tab2 AS cor0 WHERE + col2 = + - 1
----

query I rowsort
SELECT ALL - - col0 + - 37 FROM tab0 AS cor0
----
-22
50
60

query I rowsort
SELECT ALL - ( col1 ) + + col2 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT DISTINCT col0 + + col2 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

query II rowsort
SELECT - col0, col1 + 69 AS col1 FROM tab1 AS cor0
----
-51
83
-85
74
-91
116

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 * + + col1 IN ( col1, - col2, - + col1 )
----

query I rowsort
SELECT DISTINCT - col2 - - 73 AS col1 FROM tab0 AS cor0
----
-26
26
63

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 17 + 95 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7162
SELECT + ( - col1 ) DIV 24 * 27 - - col1 * - col0 FROM tab0
----
-1296
-1827
-97

skipif mysql # not compatible
query I rowsort label-7162
SELECT + ( - col1 ) / 24 * 27 - - col1 * - col0 FROM tab0
----
-1296
-1827
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7163
SELECT DISTINCT * FROM tab2 WHERE + CAST( - col2 AS DECIMAL ) * - col1 * - ( 53 ) + ( col2 ) > + - col2
----

skipif mysql # not compatible
query III rowsort label-7163
SELECT DISTINCT * FROM tab2 WHERE + CAST ( - col2 AS REAL ) * - col1 * - ( 53 ) + ( col2 ) > + - col2
----

query I rowsort
SELECT + + col0 FROM tab1 WHERE NOT + + 46 IS NULL
----
51
85
91

query I rowsort
SELECT + col0 FROM tab2 WHERE NOT - col0 + + col1 < col1
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7167
SELECT DISTINCT SUM( DISTINCT + col1 ) * + COUNT( * ) FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-7167
SELECT DISTINCT SUM ( DISTINCT + col1 ) * + COUNT ( * ) FROM tab2 AS cor0
----
585

query III rowsort
SELECT ALL * FROM tab1 WHERE + 14 + - 88 BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + + 58 * - + col2 FROM tab1 AS cor0
----
-3422
-3944
-5568

query I rowsort
SELECT + col2 * + - col0 AS col0 FROM tab1 AS cor0
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-7171
SELECT 40 DIV + - 32 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7171
SELECT 40 / + - 32 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7172
SELECT DISTINCT + MAX( - ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7172
SELECT DISTINCT + MAX ( - ( + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7173
SELECT + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7173
SELECT + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - - col0 * - 69 + ( - ( col2 ) ) FROM tab2 AS cor0
----
-3197
-4456
-5233

query I rowsort
SELECT + 47 * - - 92 AS col2 FROM tab0 cor0
----
4324
4324
4324

query II rowsort
SELECT - - col1, + col1 * col1 * - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-4410
81
-308367

query I rowsort
SELECT + col2 + + 51 FROM tab0
----
150
61
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7178
SELECT - SUM( ALL 0 ) + - MAX( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7178
SELECT - SUM ( ALL 0 ) + - MAX ( ALL - + col2 ) AS col2 FROM tab0 AS cor0
----
10

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col1 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7180
SELECT DISTINCT - + 25 + - + COUNT( * ) + 95 FROM tab2 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-7180
SELECT DISTINCT - + 25 + - + COUNT ( * ) + 95 FROM tab2 AS cor0
----
67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col2, + col1, + + ( - - 80 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7182
SELECT DISTINCT + SUM( ALL + 15 ) AS col2 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-7182
SELECT DISTINCT + SUM ( ALL + 15 ) AS col2 FROM tab0 AS cor0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) <> + 77
----

query I rowsort
SELECT ALL 12 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query II rowsort
SELECT DISTINCT + 72, col1 AS col1 FROM tab2
----
72
51
72
67
72
77

query I rowsort
SELECT - + 25 + - 37 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-7187
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 - + col2 * - - col2 + 9 col1 FROM tab2
----
-1553
-3317
-482

onlyif mysql # aggregate syntax: 
query I rowsort label-7189
SELECT + COUNT( * ) - - 63 AS col0 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7189
SELECT + COUNT ( * ) - - 63 AS col0 FROM tab2 AS cor0
----
66

query I rowsort
SELECT - + 45 - col0 FROM tab0 AS cor0
----
-132
-142
-60

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7191
SELECT ALL * FROM tab1 cor0 WHERE 84 BETWEEN ( - + 26 ) AND NULL AND NOT CAST( + 21 AS SIGNED ) < + - 92 + - 81
----

skipif mysql # not compatible
query III rowsort label-7191
SELECT ALL * FROM tab1 cor0 WHERE 84 BETWEEN ( - + 26 ) AND NULL AND NOT CAST ( + 21 AS INTEGER ) < + - 92 + - 81
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7192
SELECT DISTINCT - col2 DIV - 11 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
4904
5020
6194

skipif mysql # not compatible
query I rowsort label-7192
SELECT DISTINCT - col2 / - 11 + col2 * + col0 AS col1 FROM tab1 AS cor0
----
4904
5020
6194

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT DISTINCT + COUNT( ALL - 10 ) - - 70 - + + COUNT( * ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7193
SELECT DISTINCT + COUNT ( ALL - 10 ) - - 70 - + + COUNT ( * ) FROM tab2 AS cor0
----
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + - col1 + + col0 / + col0 IS NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * + - 99 FROM tab1
----
5049
8415
9009

onlyif mysql # aggregate syntax: 
query I rowsort label-7197
SELECT - SUM( ALL + 48 ) AS col0 FROM tab1
----
-144

skipif mysql # not compatible
query I rowsort label-7197
SELECT - SUM ( ALL + 48 ) AS col0 FROM tab1
----
-144

onlyif mysql # DIV for integer division: 
query I rowsort label-7198
SELECT ALL + ( + - col1 ) DIV - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
5

skipif mysql # not compatible
query I rowsort label-7198
SELECT ALL + ( + - col1 ) / - col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
0
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - - col0 * - col2 + + col2 * + col2 + + - col0 - - + col0 * + col1
----
0

skipif mysql # not compatible
query I rowsort label-7199
SELECT - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - - col0 * - col2 + + col2 * + col2 + + - col0 - - + col0 * + col1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 4 col2 FROM tab0 AS cor0
----
-4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 col2, col2 AS col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7202
SELECT DISTINCT + + 70 DIV 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

skipif mysql # not compatible
query I rowsort label-7202
SELECT DISTINCT + + 70 / 31 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - ( - COUNT( col0 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7203
SELECT - ( - COUNT ( col0 ) ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - + 23 + col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 * + col2 * + + 6 * - col2 + - col1 * - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 + - - 58 FROM tab0 AS cor0
----
145
155
73

query I rowsort
SELECT DISTINCT - 28 + - + 35 + - 56 AS col1 FROM tab2 AS cor0
----
-119

query I rowsort
SELECT 95 + + col2 * - col0 AS col0 FROM tab0 AS cor0
----
-610
-775
-9508

query I rowsort
SELECT col0 + col2 * - col0 * + col0 * + col2 FROM tab2 AS cor0
----
-1119318
-18922425
-6553536

onlyif mysql # aggregate syntax: 
query I rowsort label-7210
SELECT + 14 + - COUNT( DISTINCT - - col2 ) - + 7 FROM tab2 AS cor0 WHERE 56 IS NOT NULL
----
4

skipif mysql # not compatible
query I rowsort label-7210
SELECT + 14 + - COUNT ( DISTINCT - - col2 ) - + 7 FROM tab2 AS cor0 WHERE 56 IS NOT NULL
----
4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7211
SELECT CAST( NULL AS SIGNED ) * + - 30 AS col0, 41 FROM tab0 AS cor0
----
NULL
41
NULL
41
NULL
41

skipif mysql # not compatible
query II rowsort label-7211
SELECT CAST ( NULL AS INTEGER ) * + - 30 AS col0, 41 FROM tab0 AS cor0
----
NULL
41
NULL
41
NULL
41

onlyif mysql # DIV for integer division: 
query I rowsort label-7212
SELECT + col0 DIV + - col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7212
SELECT + col0 / + - col0 AS col0 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7213
SELECT + 51 * - - SUM( - 14 ) AS col1 FROM tab0
----
-2142

skipif mysql # not compatible
query I rowsort label-7213
SELECT + 51 * - - SUM ( - 14 ) AS col1 FROM tab0
----
-2142

query I rowsort
SELECT 6 * + col2 FROM tab1
----
354
408
576

query III rowsort
SELECT * FROM tab1 WHERE col2 < - 3
----

query I rowsort
SELECT ( + ( - col2 ) ) * col2 * + 39 FROM tab1
----
-135759
-180336
-359424

query III rowsort
SELECT ALL * FROM tab2 WHERE + 33 IS NULL
----

query I rowsort
SELECT ALL col1 + + + 57 FROM tab2
----
108
124
134

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL <= col1 * + - col0
----

query I rowsort
SELECT + 85 + - + col1 AS col0 FROM tab0
----
4
64
84

query II rowsort
SELECT col2 AS col2, col1 * + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7222
SELECT ALL MAX( + 19 ) AS col2 FROM tab1 cor0
----
19

skipif mysql # not compatible
query I rowsort label-7222
SELECT ALL MAX ( + 19 ) AS col2 FROM tab1 cor0
----
19

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IS NOT NULL OR NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7224
SELECT - SUM( DISTINCT - - 20 ) * + 82 FROM tab2 AS cor0
----
-1640

skipif mysql # not compatible
query I rowsort label-7224
SELECT - SUM ( DISTINCT - - 20 ) * + 82 FROM tab2 AS cor0
----
-1640

onlyif mysql # aggregate syntax: 
query I rowsort label-7225
SELECT MAX( 78 ) AS col2 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-7225
SELECT MAX ( 78 ) AS col2 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-7226
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab2 WHERE + + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab2 WHERE + + col0 IS NOT NULL
----
-3

query I rowsort
SELECT 96 * - 19 FROM tab0 AS cor0
----
-1824
-1824
-1824

query II rowsort
SELECT ALL - col2 AS col2, + col0 AS col1 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT + col0 + 22 = NULL
----

query II rowsort
SELECT DISTINCT + - col1 AS col0, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 = NULL
----

query I rowsort
SELECT - col0 * 26 FROM tab1 AS cor0 WHERE + 88 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7233
SELECT - - COUNT( 75 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7233
SELECT - - COUNT ( 75 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT - + 34, - 48 AS col2 FROM tab0 AS cor0
----
-34
-48
-34
-48
-34
-48

query I rowsort
SELECT col2 * + 92 + - col2 + + col2 * - + col1 + + col1 + 61 + - - 97 AS col2 FROM tab2 AS cor0
----
1129
1617
795

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 45 + col2 + 24 >= - col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + col0 FROM tab1 cor0 WHERE + col0 <= - 83 AND - 82 / - col0 BETWEEN col2 * + - 3 AND + - ( - 94 ) + 77 + - col1 * - + 23 + - + 88
----

query I rowsort
SELECT ALL col0 * 93 + + 10 FROM tab1 cor0
----
4753
7915
8473

query III rowsort
SELECT * FROM tab2 WHERE ( NOT - col2 - - + ( - + 52 ) IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col0 + + - col0 + - col0 AS col0 FROM tab1
----
-153
-255
-273

query III rowsort
SELECT * FROM tab0 WHERE - col0 + + ( + + ( + col0 ) ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7242
SELECT + 95 + + - ( COUNT( * ) ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-7242
SELECT + 95 + + - ( COUNT ( * ) ) FROM tab2
----
92

query I rowsort
SELECT + + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7244
SELECT DISTINCT - 45 DIV col1 + - ( + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-7244
SELECT DISTINCT - 45 / col1 + - ( + col0 ) FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7245
SELECT ALL + COUNT( * ) + + - MAX( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
13

skipif mysql # not compatible
query I rowsort label-7245
SELECT ALL + COUNT ( * ) + + - MAX ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7246
SELECT ALL COUNT( * ) DIV + 57 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7246
SELECT ALL COUNT ( * ) / + 57 FROM tab1
----
0

query I rowsort
SELECT DISTINCT ( 45 ) AS col2 FROM tab1 AS cor0
----
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( + + col0, 40 )
----
46
51
23
75
67
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 9 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 69 * - + 20 / + col2 = col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-7251
SELECT DISTINCT 35 DIV + + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7251
SELECT DISTINCT 35 / + + col0 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 + + + 54 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7253
SELECT - - 12 * + - ( - ( SUM( ALL col2 ) ) ) FROM tab0 AS cor0
----
1872

skipif mysql # not compatible
query I rowsort label-7253
SELECT - - 12 * + - ( - ( SUM ( ALL col2 ) ) ) FROM tab0 AS cor0
----
1872

query II rowsort
SELECT 87, 4 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT - ( + ( - 94 ) ) AS col2 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT 68 + 41 AS col1 FROM tab1
----
109
109
109

query I rowsort
SELECT ALL - col1 * + col1 * - col1 FROM tab2
----
132651
300763
456533

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7258
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST( + ( col2 ) AS SIGNED ) * + + 95 + - - col2 + 44 * - col0 / - col1 >= NULL
----

skipif mysql # not compatible
query III rowsort label-7258
SELECT ALL * FROM tab2 AS cor0 WHERE - CAST ( + ( col2 ) AS INTEGER ) * + + 95 + - - col2 + 44 * - col0 / - col1 >= NULL
----

query I rowsort
SELECT DISTINCT - + 93 + + + col2 FROM tab1 AS cor0
----
-25
-34
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7260
SELECT DISTINCT - + 96 + + COUNT( * ) * 67 AS col2 FROM tab1 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-7260
SELECT DISTINCT - + 96 + + COUNT ( * ) * 67 AS col2 FROM tab1 AS cor0
----
105

query II rowsort
SELECT - + 4 * + - col1 - col0, col1 FROM tab0 AS cor0
----
-3
21
-93
1
309
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 81 + - col0 col2 FROM tab0 AS cor0
----
-16
-6
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * 46 IS NOT NULL
----

query I rowsort
SELECT ALL - ( - - 37 ) + + col2 AS col2 FROM tab0 AS cor0
----
-27
10
62

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT ( + SUM( col1 ) ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-7266
SELECT ( + SUM ( col1 ) ) FROM tab1
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 54 col0, 93 + col1 FROM tab2
----
-54
144
-54
160
-54
170

query I rowsort
SELECT DISTINCT + + 2 * - col0 FROM tab1 WHERE NOT 62 IS NULL
----
-102
-170
-182

onlyif mysql # aggregate syntax: 
query II rowsort label-7269
SELECT DISTINCT 42, 84 + + MIN( ALL - ( 30 ) ) AS col1 FROM tab2 WHERE NOT col1 * - - col0 - - + 56 IS NULL
----
42
54

skipif mysql # not compatible
query II rowsort label-7269
SELECT DISTINCT 42, 84 + + MIN ( ALL - ( 30 ) ) AS col1 FROM tab2 WHERE NOT col1 * - - col0 - - + 56 IS NULL
----
42
54

onlyif mysql # aggregate syntax: 
query I rowsort label-7270
SELECT + ( COUNT( ALL col1 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7270
SELECT + ( COUNT ( ALL col1 ) ) FROM tab0
----
3

query I rowsort
SELECT - ( + col0 ) - col2 FROM tab1
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - col1 + 62 AS col1 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT ALL col0 - + col1 FROM tab2 cor0
----
-13
-5
8

query II rowsort
SELECT 51 + + + col1, col2 + + col2 AS col2 FROM tab0
----
132
94
52
198
72
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7275
SELECT - CAST( - col0 AS SIGNED ) + col1 FROM tab1
----
138
65
90

skipif mysql # not compatible
query I rowsort label-7275
SELECT - CAST ( - col0 AS INTEGER ) + col1 FROM tab1
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT MAX( DISTINCT + + 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT MAX ( DISTINCT + + 36 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
36

query I rowsort
SELECT DISTINCT - 99 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-99

query I rowsort
SELECT DISTINCT 92 * - col0 AS col1 FROM tab1 AS cor0
----
-4692
-7820
-8372

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * 42 * col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7280
SELECT - 76 * 46 * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
10488

skipif mysql # not compatible
query I rowsort label-7280
SELECT - 76 * 46 * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
10488

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 col2 FROM tab1 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-7282
SELECT DISTINCT - COUNT( * ) * 1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7282
SELECT DISTINCT - COUNT ( * ) * 1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT - CAST( 47 AS SIGNED ) FROM tab0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-7283
SELECT - CAST ( 47 AS INTEGER ) FROM tab0
----
-47
-47
-47

onlyif mysql # DIV for integer division: 
query I rowsort label-7284
SELECT DISTINCT - 4 DIV - col2 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7284
SELECT DISTINCT - 4 / - col2 AS col0 FROM tab0
----
0

query I rowsort
SELECT - ( - 93 ) AS col2 FROM tab2
----
93
93
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7286
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7286
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7287
SELECT DISTINCT MIN( ALL 57 ) FROM tab1
----
57

skipif mysql # not compatible
query I rowsort label-7287
SELECT DISTINCT MIN ( ALL 57 ) FROM tab1
----
57

query I rowsort
SELECT ALL - 45 + + + 74 FROM tab0 cor0
----
29
29
29

onlyif mysql # aggregate syntax: 
query I rowsort label-7289
SELECT + ( 23 ) + 99 + SUM( + + col0 ) FROM tab2 AS cor0
----
307

skipif mysql # not compatible
query I rowsort label-7289
SELECT + ( 23 ) + 99 + SUM ( + + col0 ) FROM tab2 AS cor0
----
307

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 61 + + col1 + + col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7291
SELECT CAST( + col1 AS SIGNED ) + - col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7291
SELECT CAST ( + col1 AS INTEGER ) + - col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - ( ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL 8 + 67 * ( col1 ) AS col2 FROM tab2
----
3425
4497
5167

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 14 + col1 col0 FROM tab1
----
19
28
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7296
SELECT + col1 DIV + col0 + 43 * - col0 AS col1 FROM tab1
----
-2193
-3655
-3913

skipif mysql # not compatible
query I rowsort label-7296
SELECT + col1 / + col0 + 43 * - col0 AS col1 FROM tab1
----
-2193
-3655
-3913

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7297
SELECT ALL * FROM tab1 WHERE NOT CAST( col0 AS SIGNED ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7297
SELECT ALL * FROM tab1 WHERE NOT CAST ( col0 AS INTEGER ) NOT IN ( col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query III rowsort label-7298
SELECT ALL * FROM tab0 WHERE NOT ( - col0 DIV + 60 ) NOT IN ( - col1 )
----
97
1
99

skipif mysql # not compatible
query III rowsort label-7298
SELECT ALL * FROM tab0 WHERE NOT ( - col0 / + 60 ) NOT IN ( - col1 )
----
97
1
99

query I rowsort
SELECT 88 + col1 * - ( ( - 12 ) ) FROM tab2
----
1012
700
892

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + col0 NOT IN ( 5 )
----

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT NULL <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 >= ( - 68 + 8 )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 WHERE NOT ( + col2 ) <> 44 * col2
----

query I rowsort
SELECT DISTINCT ( col2 ) + + col2 AS col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7305
SELECT + 77 + ( - col2 ) DIV 12 FROM tab1
----
69
72
73

skipif mysql # not compatible
query I rowsort label-7305
SELECT + 77 + ( - col2 ) / 12 FROM tab1
----
69
72
73

query I rowsort
SELECT ALL - 99 * + 23 AS col0 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT ( - col0 + - 79 ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 27 col0 FROM tab0 WHERE NOT NULL NOT IN ( + 90 / + col0 )
----

query I rowsort
SELECT 62 - - 78 AS col1 FROM tab0 WHERE ( + 80 ) - 6 * + col2 NOT IN ( - 90 )
----
140
140
140

query I rowsort
SELECT - col1 * col1 - 7 * + col0 FROM tab1
----
-2846
-553
-620

query I rowsort
SELECT 11 - col1 AS col1 FROM tab0
----
-10
-70
10

query I rowsort
SELECT ALL 49 * col2 + 85 * 43 AS col1 FROM tab2
----
4782
5615
6497

query I rowsort
SELECT 17 * - col0 AS col2 FROM tab2
----
-1088
-1275
-782

query I rowsort
SELECT col2 * 83 AS col2 FROM tab0
----
3901
8217
830

query I rowsort
SELECT ALL + 82 * - col1 AS col2 FROM tab2 WHERE 29 * col1 IS NOT NULL
----
-4182
-5494
-6314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7316
SELECT col0 * - CAST( - col0 AS SIGNED ) FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-7316
SELECT col0 * - CAST ( - col0 AS INTEGER ) FROM tab0
----
225
7569
9409

query I rowsort
SELECT ALL + 79 + 3 * - col1 FROM tab1 WHERE NULL = NULL
----

query I rowsort
SELECT DISTINCT + 52 + - 53 AS col1 FROM tab0
----
-1

query I rowsort
SELECT ALL + col1 FROM tab0 WHERE NULL BETWEEN ( col1 * - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7320
SELECT ALL + COUNT( + col1 ) + - ( 0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + COUNT ( + col1 ) + - ( 0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT 1 FROM tab0 WHERE ( ( col2 ) ) + - col1 * col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 70 + 12 col1 FROM tab0
----
82
82
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7323
SELECT ALL - CAST( NULL AS SIGNED ) / - 88 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7323
SELECT ALL - CAST ( NULL AS INTEGER ) / - 88 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT ALL - MIN( DISTINCT 59 ) col0 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7324
SELECT ALL - MIN ( DISTINCT 59 ) col0 FROM tab1
----
-59

query I rowsort
SELECT ALL - ( - 19 ) FROM tab1
----
19
19
19

query I rowsort
SELECT ALL 39 * col1 AS col2 FROM tab0
----
3159
39
819

onlyif mysql # aggregate syntax: 
query I rowsort label-7327
SELECT MAX( 29 ) + COUNT( * ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7327
SELECT MAX ( 29 ) + COUNT ( * ) FROM tab0 WHERE NOT col2 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 > - 6 + + 27 * col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7329
SELECT ( col0 ) DIV 18 AS col1 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-7329
SELECT ( col0 ) / 18 AS col1 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT DISTINCT + col2 + - 4 * col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 9 / col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 89 * 35 FROM tab2 cor0
----
3115

query I rowsort
SELECT 58 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to ef6e63aeed2581a168f07646d258f666

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 50 col1 FROM tab1
----
-2550
-4250
-4550

query I rowsort
SELECT col1 FROM tab2 WHERE NOT - col2 IN ( - 31 * col2 )
----
51
67
77

query I rowsort
SELECT DISTINCT 31 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7337
SELECT ALL + 32 DIV + 22 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7337
SELECT ALL + 32 / + 22 AS col2 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( + 86 - 31 )
----

query I rowsort
SELECT ALL 52 FROM tab0 AS cor0 WHERE NOT NULL = ( - col1 * 87 )
----

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE NOT ( 86 ) IN ( 57 )
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7341
SELECT CAST( NULL AS SIGNED ) * CAST( + COUNT( * ) * + 93 AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7341
SELECT CAST ( NULL AS INTEGER ) * CAST ( + COUNT ( * ) * + 93 AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7342
SELECT * FROM tab1 WHERE NOT ( - col0 * CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-7342
SELECT * FROM tab1 WHERE NOT ( - col0 * CAST ( NULL AS INTEGER ) ) IS NULL
----

query I rowsort
SELECT ALL 41 * - - 36 AS col1 FROM tab1
----
1476
1476
1476

query I rowsort
SELECT ALL + col1 * + 69 * 43 + + col1 FROM tab2
----
151368
198856
228536

query I rowsort
SELECT ALL 13 + 27 FROM tab0 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7346
SELECT + COUNT( ( col2 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7346
SELECT + COUNT ( ( col2 ) ) FROM tab0
----
3

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col0 FROM tab0 WHERE NOT col0 <= ( + col0 )
----

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 85 * 88 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7350
SELECT DISTINCT + CAST( col2 AS SIGNED ) + ( col2 ) * col0 FROM tab2 AS cor0
----
1081
2600
4408

skipif mysql # not compatible
query I rowsort label-7350
SELECT DISTINCT + CAST ( col2 AS INTEGER ) + ( col2 ) * col0 FROM tab2 AS cor0
----
1081
2600
4408

onlyif mysql # aggregate syntax: 
query I rowsort label-7351
SELECT + COUNT( ALL 92 ) FROM tab2 AS cor0 WHERE ( 41 + ( 66 ) / 67 ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7351
SELECT + COUNT ( ALL 92 ) FROM tab2 AS cor0 WHERE ( 41 + ( 66 ) / 67 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col0 * - ( + + 82 ) AS col0 FROM tab2
----
-3772
-5248
-6150

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 cor0 WHERE ( ( 99 ) ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7354
SELECT DISTINCT - - COUNT( * ) DIV COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7354
SELECT DISTINCT - - COUNT ( * ) / COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 31 IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7356
SELECT ALL - 58 + - + COUNT( ALL + col0 ) FROM tab2 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-7356
SELECT ALL - 58 + - + COUNT ( ALL + col0 ) FROM tab2 AS cor0
----
-61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7357
SELECT COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col0 ) * col0 - - col2 AND ( + CAST( col1 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-7357
SELECT COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN ( + col0 ) * col0 - - col2 AND ( + CAST ( col1 AS INTEGER ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7358
SELECT ALL - 4 - - - col0 + + col1 + - col1 DIV + col2 AS col0 FROM tab0 AS cor0
----
-100
-72
61

skipif mysql # not compatible
query I rowsort label-7358
SELECT ALL - 4 - - - col0 + + col1 + - col1 / + col2 AS col0 FROM tab0 AS cor0
----
-100
-72
61

query I rowsort
SELECT DISTINCT - + col0 - + col0 + + - col0 FROM tab2 AS cor0
----
-138
-192
-225

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + + ( 8 ) * col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 60 - - + col1 AS col1 FROM tab1
----
-13
-46
-55

query I rowsort
SELECT DISTINCT + col0 - col2 * ( - ( - 26 ) ) FROM tab0
----
-1207
-173
-2477

query I rowsort
SELECT col2 - ( - 56 ) FROM tab0
----
103
155
66

onlyif mysql # aggregate syntax: 
query II rowsort label-7364
SELECT DISTINCT MIN( ALL - + col0 ) col1, + 83 FROM tab1
----
-91
83

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7364
SELECT DISTINCT MIN ( ALL - + col0 ) col1, + 83 FROM tab1
----
-91
83

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT ALL - + ( + + COUNT( * ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7365
SELECT ALL - + ( + + COUNT ( * ) ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7366
SELECT - - ( - 24 ) * MAX( DISTINCT + col0 ) FROM tab2 AS cor0
----
-1800

skipif mysql # not compatible
query I rowsort label-7366
SELECT - - ( - 24 ) * MAX ( DISTINCT + col0 ) FROM tab2 AS cor0
----
-1800

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7367
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - CAST( - + 66 AS SIGNED ) IN ( - col0 * 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7367
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 / - CAST ( - + 66 AS INTEGER ) IN ( - col0 * 95 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 40 AS col0 FROM tab2 AS cor0
----
40
40
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7369
SELECT + - COUNT( * ) - + CAST( + 84 AS SIGNED ) * - 69 FROM tab0 AS cor0 WHERE NOT col2 / col0 IS NULL
----
5793

skipif mysql # not compatible
query I rowsort label-7369
SELECT + - COUNT ( * ) - + CAST ( + 84 AS INTEGER ) * - 69 FROM tab0 AS cor0 WHERE NOT col2 / col0 IS NULL
----
5793

query I rowsort
SELECT DISTINCT - - 68 AS col0 FROM tab2 AS cor0
----
68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT DISTINCT - 34 * + CAST( NULL AS SIGNED ) + - + 38 + - 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7371
SELECT DISTINCT - 34 * + CAST ( NULL AS INTEGER ) + - + 38 + - 43 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT - 86 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-86
-86
-86

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7374
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7374
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( + col1 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + - col0 ) col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-7376
SELECT - SUM( DISTINCT + col2 ) * + ( - 92 ) AS col1 FROM tab2 AS cor0
----
11132

skipif mysql # not compatible
query I rowsort label-7376
SELECT - SUM ( DISTINCT + col2 ) * + ( - 92 ) AS col1 FROM tab2 AS cor0
----
11132

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7377
SELECT ALL + col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-7377
SELECT ALL + col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT - 16 * + - col2 + 89 AS col1 FROM tab2 AS cor0
----
1017
457
729

query I rowsort
SELECT + - 77 FROM tab0 cor0
----
-77
-77
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7380
SELECT ALL 5 * + - COUNT( DISTINCT + + col1 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-7380
SELECT ALL 5 * + - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT ALL SUM( DISTINCT + col0 ) FROM tab2 WHERE NULL IS NULL
----
185

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL SUM ( DISTINCT + col0 ) FROM tab2 WHERE NULL IS NULL
----
185

query I rowsort
SELECT 27 * + 24 * - col2 AS col0 FROM tab2
----
-14904
-25920
-37584

query I rowsort
SELECT ALL + col2 * + + col1 * col2 AS col0 FROM tab2
----
123200
225388
26979

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL >= + 76 * 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7385
SELECT DISTINCT * FROM tab1 WHERE ( 31 ) IN ( CAST( - CAST( - col0 AS SIGNED ) AS SIGNED ) * - col2 )
----

skipif mysql # not compatible
query III rowsort label-7385
SELECT DISTINCT * FROM tab1 WHERE ( 31 ) IN ( CAST ( - CAST ( - col0 AS INTEGER ) AS INTEGER ) * - col2 )
----

query II rowsort
SELECT ALL + 1 AS col2, ( col0 ) AS col2 FROM tab1
----
1
51
1
85
1
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7387
SELECT - + CAST( NULL AS SIGNED ) / + col1 col0 FROM tab0 WHERE NOT ( + col1 <= + col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7387
SELECT - + CAST ( NULL AS INTEGER ) / + col1 col0 FROM tab0 WHERE NOT ( + col1 <= + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7388
SELECT ( - + COUNT( * ) ) + SUM( - 48 ), + 79 AS col2 FROM tab2
----
-147
79

skipif mysql # not compatible
query II rowsort label-7388
SELECT ( - + COUNT ( * ) ) + SUM ( - 48 ), + 79 AS col2 FROM tab2
----
-147
79

query I rowsort
SELECT DISTINCT + - col1 + - 62 AS col1 FROM tab2 AS cor0
----
-113
-129
-139

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 + col1 col0 FROM tab0 AS cor0
----
-57
-77
3

query I rowsort
SELECT - - col2 * col1 + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-7392
SELECT - 12 DIV 76 DIV 99 + + ( - col1 ) + - col1 AS col2 FROM tab2 cor0
----
-102
-134
-154

skipif mysql # not compatible
query I rowsort label-7392
SELECT - 12 / 76 / 99 + + ( - col1 ) + - col1 AS col2 FROM tab2 cor0
----
-102
-134
-154

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( + col0 + + + ( + col1 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7394
SELECT ALL - 22 DIV + - 91 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7394
SELECT ALL - 22 / + - 91 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - 72 * + + col2 - col2 FROM tab0
----
-3431
-7227
-730

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7396
SELECT + - col0 - - - col0 + + ( + - col0 ) + - CAST( NULL AS SIGNED ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-7396
SELECT + - col0 - - - col0 + + ( + - col0 ) + - CAST ( NULL AS INTEGER ), col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT DISTINCT col1 + + ( - col2 ) AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT - col1 - 69 - 32 AS col2 FROM tab1 cor0
----
-106
-115
-148

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col0 NOT IN ( + - 27 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7400
SELECT DISTINCT 4 - CAST( - ( + MIN( ALL + - col0 ) ) AS SIGNED ) FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7400
SELECT DISTINCT 4 - CAST ( - ( + MIN ( ALL + - col0 ) ) AS INTEGER ) FROM tab1 AS cor0
----
-87

query II rowsort
SELECT DISTINCT col1 + col0, col2 AS col1 FROM tab1 cor0
----
138
68
65
96
90
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7402
SELECT DISTINCT - MIN( - 29 ) - + - COUNT( * ) FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-7402
SELECT DISTINCT - MIN ( - 29 ) - + - COUNT ( * ) FROM tab2
----
32

query I rowsort
SELECT ALL 43 - col0 FROM tab1
----
-42
-48
-8

query II rowsort
SELECT + + col0, col0 FROM tab2 WHERE NOT - col0 * + + 8 * - col2 IS NULL
----
46
46
64
64
75
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 + col0 NOT BETWEEN ( + col1 ) + 71 AND - col0 + col0
----

query I rowsort
SELECT DISTINCT + col0 * - + col1 + - 44 + 93 * + - 53 AS col1 FROM tab2 AS cor0 WHERE - 11 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7407
SELECT DISTINCT + MAX( DISTINCT - 71 ) AS col1 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-7407
SELECT DISTINCT + MAX ( DISTINCT - 71 ) AS col1 FROM tab0 AS cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-7408
SELECT ALL - 3 * - - MAX( - 59 ) AS col0 FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7408
SELECT ALL - 3 * - - MAX ( - 59 ) AS col0 FROM tab1 AS cor0
----
177

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7409
SELECT ALL - + ( + MIN( + col2 ) ) DIV 68 * - COUNT( * ) * COUNT( * ) + - - MIN( + - 82 ) AS col1 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-7409
SELECT ALL - + ( + MIN ( + col2 ) ) / 68 * - COUNT ( * ) * COUNT ( * ) + - - MIN ( + - 82 ) AS col1 FROM tab2 AS cor0
----
-82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 56 <= 40 + - - 36
----

query I rowsort
SELECT ALL ( + col2 ) * col0 FROM tab1 cor0
----
4896
5015
6188

query I rowsort
SELECT 55 * - ( + col2 ) AS col1 FROM tab0
----
-2585
-5445
-550

onlyif mysql # DIV for integer division: 
query I rowsort label-7413
SELECT 96 DIV - col0 FROM tab0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-7413
SELECT 96 / - col0 FROM tab0
----
-1
-6
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7414
SELECT - CAST( - 87 AS SIGNED ) FROM tab2
----
87
87
87

skipif mysql # not compatible
query I rowsort label-7414
SELECT - CAST ( - 87 AS INTEGER ) FROM tab2
----
87
87
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 1 col2, 96 FROM tab0
----
1
96
1
96
1
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7416
SELECT DISTINCT - 60 * - + COUNT( * ) * + 72 AS col2 FROM tab2
----
12960

skipif mysql # not compatible
query I rowsort label-7416
SELECT DISTINCT - 60 * - + COUNT ( * ) * + 72 AS col2 FROM tab2
----
12960

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7417
SELECT ALL + CAST( - 49 AS SIGNED ) + - + 37 AS col0, CAST( NULL AS DECIMAL ) FROM tab1
----
-86
NULL
-86
NULL
-86
NULL

skipif mysql # not compatible
query II rowsort label-7417
SELECT ALL + CAST ( - 49 AS INTEGER ) + - + 37 AS col0, CAST ( NULL AS REAL ) FROM tab1
----
-86
NULL
-86
NULL
-86
NULL

query I rowsort
SELECT DISTINCT - 41 * - - col1 + - - 15 + 93 * - - 13 + + ( - + col2 ) + ( - col1 ) FROM tab1
----
-818
540
955

query I rowsort
SELECT DISTINCT 3 * + col1 + col2 AS col1 FROM tab1
----
138
209
74

query I rowsort
SELECT - col2 FROM tab0 cor0 WHERE + ( 29 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) < + col2 + + + col1 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7422
SELECT + COUNT( * ) + 8 + + COUNT( * ) FROM tab2 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-7422
SELECT + COUNT ( * ) + 8 + + COUNT ( * ) FROM tab2 AS cor0
----
14

query I rowsort
SELECT + col2 + 52 AS col1 FROM tab2 AS cor0
----
110
75
92

query I rowsort
SELECT DISTINCT - col1 * - ( col0 ) AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT ( + 95 ) FROM tab0 WHERE NULL IS NULL
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT ALL - - COUNT( * ) * MIN( - - col0 ) FROM tab2 cor0
----
138

skipif mysql # not compatible
query I rowsort label-7426
SELECT ALL - - COUNT ( * ) * MIN ( - - col0 ) FROM tab2 cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col2 FROM tab1 AS cor0 WHERE col2 IN ( - col0 )
----

query I rowsort
SELECT DISTINCT - - 7 * + - col1 - - col2 + - col0 FROM tab1 cor0
----
-352
-53
-61

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL AND NOT + 35 + + 12 < + 12 * 75
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7430
SELECT ALL - - ( + + col1 ) - + CAST( NULL AS DECIMAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7430
SELECT ALL - - ( + + col1 ) - + CAST ( NULL AS REAL ) col2 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT - col1 - - CAST( + + col0 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-7431
SELECT - col1 - - CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-66
66
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7432
SELECT DISTINCT - COUNT( * ) * 21 AS col0 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-7432
SELECT DISTINCT - COUNT ( * ) * 21 AS col0 FROM tab0
----
-63

query II rowsort
SELECT ( - 0 ) AS col0, - col0 FROM tab1
----
0
-51
0
-85
0
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT ALL 7 * + COUNT( * ) AS col2 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7434
SELECT ALL 7 * + COUNT ( * ) AS col2 FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-7435
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( NULL <> ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-7435
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( NULL <> ( NULL ) )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 96 * + - 43 col0 FROM tab2 WHERE NOT ( - col2 IN ( 15, 53 + col1 - + col2 + col1 / - 28 ) )
----
-4128
-4128
-4128

query I rowsort
SELECT - 99 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7438
SELECT + 23 DIV - 95 + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-7438
SELECT + 23 / - 95 + + col0 AS col2 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7439
SELECT DISTINCT - 46 DIV col2 FROM tab2 AS cor0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-7439
SELECT DISTINCT - 46 / col2 FROM tab2 AS cor0
----
-1
-2
0

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) > NULL
----

query II rowsort
SELECT + col0 AS col1, - 79 FROM tab1
----
51
-79
85
-79
91
-79

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 45 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 71 * 82 col1 FROM tab0 AS cor0
----
5822
5822
5822

query II rowsort
SELECT 75 AS col1, 6 FROM tab2 AS cor0
----
75
6
75
6
75
6

query II rowsort
SELECT ALL + + col1 AS col0, + 64 AS col0 FROM tab1 AS cor0
----
14
64
47
64
5
64

query I rowsort
SELECT - + col2 * - - col1 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-7447
SELECT - col0 DIV + + col0 + - + col0 DIV + - col1 col1 FROM tab0 AS cor0
----
-1
3
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7447
SELECT - col0 / + + col0 + - + col0 / + - col1 col1 FROM tab0 AS cor0
----
-1
3
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7448
SELECT + COUNT( + 50 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7448
SELECT + COUNT ( + 50 ) AS col2 FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - col2 * col1 col2 FROM tab1 cor0
----
-59
-295
-68
-3196
-96
-1344

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
51
67
77

query II rowsort
SELECT DISTINCT + - col2, col0 * - col0 AS col0 FROM tab0 AS cor0
----
-10
-7569
-47
-225
-99
-9409

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN col0 + 83 + + col1 * + 58 / col0 AND + col1
----

query I rowsort
SELECT ALL + ( - 14 ) FROM tab2
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7454
SELECT * FROM tab1 WHERE CAST( 35 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7454
SELECT * FROM tab1 WHERE CAST ( 35 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT - MIN( ALL - 40 ) AS col0 FROM tab1 WHERE - 63 + col1 IS NOT NULL
----
40

skipif mysql # not compatible
query I rowsort label-7455
SELECT - MIN ( ALL - 40 ) AS col0 FROM tab1 WHERE - 63 + col1 IS NOT NULL
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-7456
SELECT + 34 + + + 33 + + COUNT( * ) AS col1 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-7456
SELECT + 34 + + + 33 + + COUNT ( * ) AS col1 FROM tab2 cor0
----
70

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - - + col1 col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - - col0 AS col0 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT DISTINCT + 33 * - - col1 FROM tab1 AS cor0
----
1551
165
462

onlyif mysql # aggregate syntax: 
query I rowsort label-7461
SELECT - MIN( ALL - 68 ) AS col0 FROM tab1 WHERE + col1 + - col0 * - - col2 IS NOT NULL
----
68

skipif mysql # not compatible
query I rowsort label-7461
SELECT - MIN ( ALL - 68 ) AS col0 FROM tab1 WHERE + col1 + - col0 * - - col2 IS NOT NULL
----
68

query I rowsort
SELECT - 26 AS col0 FROM tab0 AS cor0 WHERE col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7463
SELECT 9 + + 30 + + COUNT( - col2 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-7463
SELECT 9 + + 30 + + COUNT ( - col2 ) FROM tab1 AS cor0
----
42

query I rowsort
SELECT col1 * - 69 FROM tab0 AS cor0 WHERE NOT + 86 BETWEEN - - 47 / col1 + + + col2 AND - 77
----
-1449
-5589
-69

query I rowsort
SELECT 62 + 82 * - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( - col1 * - - col2 / + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7466
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - col0 BETWEEN - CAST( NULL AS SIGNED ) * - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7466
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * - col0 BETWEEN - CAST ( NULL AS INTEGER ) * - col0 AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 69 * 74 - 84 col1 FROM tab0 AS cor0
----
-5190
-5190
-5190

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7468
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * col0 * - col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7468
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * col0 * - col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col1 * 95 AS col0 FROM tab0
----
1995
7695
95

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT ( + + ( + - 41 ) ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7471
SELECT ALL + col0 DIV 78 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7471
SELECT ALL + col0 / 78 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7472
SELECT ALL CAST( + 73 AS SIGNED ) AS col2, 90 * col0 AS col2 FROM tab0
----
73
1350
73
7830
73
8730

skipif mysql # not compatible
query II rowsort label-7472
SELECT ALL CAST ( + 73 AS INTEGER ) AS col2, 90 * col0 AS col2 FROM tab0
----
73
1350
73
7830
73
8730

query I rowsort
SELECT ALL ( - col0 ) FROM tab0 WHERE NULL IS NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7474
SELECT DISTINCT - 7 AS col0, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
-7
NULL

skipif mysql # not compatible
query II rowsort label-7474
SELECT DISTINCT - 7 AS col0, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
-7
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7475
SELECT DISTINCT - 37 * SUM( col0 ) AS col2 FROM tab0 AS cor0
----
-7363

skipif mysql # not compatible
query I rowsort label-7475
SELECT DISTINCT - 37 * SUM ( col0 ) AS col2 FROM tab0 AS cor0
----
-7363

query I rowsort
SELECT - col0 AS col0 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 + 78 AND + + col1 * - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7477
SELECT DISTINCT - + MIN( col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7477
SELECT DISTINCT - + MIN ( col2 ) FROM tab1 AS cor0
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7478
SELECT - MIN( ALL - col2 ) AS col1 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-7478
SELECT - MIN ( ALL - col2 ) AS col1 FROM tab2
----
58

query I rowsort
SELECT ALL 11 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f4d199584b44732f1a897e6691b4ea00

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT - 49 * - col0 + + 51 FROM tab2
----
2305
3187
3726

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7482
SELECT COUNT( * ) + - COUNT( * ) + + + CAST( NULL AS SIGNED ) AS col1, 77 AS col0 FROM tab0
----
NULL
77

skipif mysql # not compatible
query II rowsort label-7482
SELECT COUNT ( * ) + - COUNT ( * ) + + + CAST ( NULL AS INTEGER ) AS col1, 77 AS col0 FROM tab0
----
NULL
77

query I rowsort
SELECT ALL - col0 + + col1 * - + col1 AS col1 FROM tab1
----
-110
-2300
-247

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL + MIN( 17 ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + MIN ( 17 ) AS col0 FROM tab2
----
17

query II rowsort
SELECT col1 + + col1 AS col0, 30 AS col0 FROM tab0 AS cor0
----
162
30
2
30
42
30

query I rowsort
SELECT DISTINCT AVG ( col1 ) AS col0 FROM tab0 AS cor0 WHERE - 68 IS NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( 76 ) NOT IN ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col2 * col2, ( - 10 ) AS col1 FROM tab0 AS cor0
----
100
-10
2209
-10
9801
-10

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( - col1 * + - 55, - 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7490
SELECT - - COUNT( - col1 ) * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7490
SELECT - - COUNT ( - col1 ) * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7491
SELECT ALL + 25 DIV + - CAST( + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-7491
SELECT ALL + 25 / + - CAST ( + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-8

query I rowsort
SELECT - + ( col1 ) FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT - col0 * - 76 AS col0 FROM tab0
----
1140
6612
7372

query II rowsort
SELECT + col1 AS col0, + col2 * col0 AS col2 FROM tab2
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7495
SELECT - col1 * + CAST( + 7 AS SIGNED ) * col2 + + - col0 + + + 26 + - - col1 AS col2 FROM tab1
----
-2119
-22390
-9419

skipif mysql # not compatible
query I rowsort label-7495
SELECT - col1 * + CAST ( + 7 AS INTEGER ) * col2 + + - col0 + + + 26 + - - col1 AS col2 FROM tab1
----
-2119
-22390
-9419

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7496
SELECT DISTINCT MAX( + CAST( col1 AS SIGNED ) ) col2 FROM tab1
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7496
SELECT DISTINCT MAX ( + CAST ( col1 AS INTEGER ) ) col2 FROM tab1
----
47

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = ( - 63 * + col2 )
----

query I rowsort
SELECT ALL + col0 + 53 FROM tab2 AS cor0
----
117
128
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7499
SELECT DISTINCT + col1 + + CAST( - col0 AS SIGNED ) * col0 FROM tab1 AS cor0
----
-2587
-7220
-8234

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT + col1 + + CAST ( - col0 AS INTEGER ) * col0 FROM tab1 AS cor0
----
-2587
-7220
-8234

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT - 97 + + COUNT( * ) FROM tab2 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-7500
SELECT - 97 + + COUNT ( * ) FROM tab2 AS cor0
----
-94

query I rowsort
SELECT 47 + - col0 AS col2 FROM tab0 AS cor0
----
-40
-50
32

query I rowsort
SELECT col1 * + 15 + col0 * - + 54 * - 90 * 67 + 58 + 49 FROM tab2
----
14979392
20840942
24422612

query I rowsort
SELECT 80 * - col0 FROM tab0
----
-1200
-6960
-7760

onlyif mysql # aggregate syntax: 
query I rowsort label-7504
SELECT - 33 * COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-297

skipif mysql # not compatible
query I rowsort label-7504
SELECT - 33 * COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-7505
SELECT + COUNT( * ) * 56 * - COUNT( * ) * + - 86 FROM tab0 cor0
----
43344

skipif mysql # not compatible
query I rowsort label-7505
SELECT + COUNT ( * ) * 56 * - COUNT ( * ) * + - 86 FROM tab0 cor0
----
43344

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7506
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST( + - col0 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7506
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + CAST ( + - col0 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7507
SELECT col2 DIV + CAST( CAST( + - col0 AS SIGNED ) AS SIGNED ) AS col2, - 85 AS col1 FROM tab2 AS cor0
----
0
-85
0
-85
0
-85

skipif mysql # not compatible
query II rowsort label-7507
SELECT col2 / + CAST ( CAST ( + - col0 AS INTEGER ) AS INTEGER ) AS col2, - 85 AS col1 FROM tab2 AS cor0
----
0
-85
0
-85
0
-85

query I rowsort
SELECT + ( - - 68 ) * - 52 FROM tab0 AS cor0
----
-3536
-3536
-3536

query I rowsort
SELECT - + ( - 45 ) * + col1 AS col1 FROM tab2 AS cor0
----
2295
3015
3465

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7510
SELECT + - CAST( NULL AS DECIMAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7510
SELECT + - CAST ( NULL AS REAL ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN 2 AND - - 12
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7512
SELECT - CAST( - - AVG ( - col1 ) AS SIGNED ) FROM tab1
----
22

skipif mysql # not compatible
query I rowsort label-7512
SELECT - CAST ( - - AVG ( - col1 ) AS INTEGER ) FROM tab1
----
22

query I rowsort
SELECT DISTINCT col0 * + + 58 FROM tab1
----
2958
4930
5278

query I rowsort
SELECT ALL + + col0 - + 97 FROM tab0 WHERE NOT - 89 / col2 + - 1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7515
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + 82 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7515
SELECT DISTINCT + CAST ( NULL AS REAL ) * + 82 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT col1 * + 99 FROM tab2
----
5049
6633
7623

onlyif mysql # aggregate syntax: 
query II rowsort label-7517
SELECT COUNT( * ) AS col2, - 75 FROM tab2 cor0
----
3
-75

skipif mysql # not compatible
query II rowsort label-7517
SELECT COUNT ( * ) AS col2, - 75 FROM tab2 cor0
----
3
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 21 + 51 col0 FROM tab1 cor0
----
72
72
72

query I rowsort
SELECT 91 + col1 FROM tab0 AS cor0
----
112
172
92

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7520
SELECT DISTINCT - CAST( + 82 AS SIGNED ) DIV + - col2 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-7520
SELECT DISTINCT - CAST ( + 82 AS INTEGER ) / + - col2 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # DIV for integer division: 
query II rowsort label-7521
SELECT - 64 DIV + + col1 + + 92, + col0 col0 FROM tab0 AS cor0
----
28
97
89
87
92
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7521
SELECT - 64 / + + col1 + + 92, + col0 col0 FROM tab0 AS cor0
----
28
97
89
87
92
15

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL = + 95
----

query II rowsort
SELECT DISTINCT + col2, + 50 AS col0 FROM tab1 AS cor0
----
59
50
68
50
96
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 63 col2, - 20 - + + col0 + - + col2 FROM tab1 AS cor0
----
63
-164
63
-167
63
-179

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7525
SELECT ALL + - 31 - + 62 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND CAST( NULL AS SIGNED ) * + 84 + - col2
----

skipif mysql # not compatible
query I rowsort label-7525
SELECT ALL + - 31 - + 62 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND CAST ( NULL AS INTEGER ) * + 84 + - col2
----

query I rowsort
SELECT 13 * - col1 + - ( - col0 ) AS col2 FROM tab0 AS cor0
----
-1038
-186
84

query I rowsort
SELECT - - 82 + - col0 AS col0 FROM tab0 cor0
----
-15
-5
67

onlyif mysql # DIV for integer division: 
query I rowsort label-7528
SELECT + 58 * - col0 + col0 + - + 90 DIV 38 AS col2 FROM tab2 AS cor0
----
-2624
-3650
-4277

skipif mysql # not compatible
query I rowsort label-7528
SELECT + 58 * - col0 + col0 + - + 90 / 38 AS col2 FROM tab2 AS cor0
----
-2624
-3650
-4277

onlyif mysql # aggregate syntax: 
query I rowsort label-7529
SELECT + COUNT( DISTINCT - + col1 ) + + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE 8 IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-7529
SELECT + COUNT ( DISTINCT - + col1 ) + + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE 8 IS NOT NULL
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7530
SELECT ALL - col2 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7530
SELECT ALL - col2 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7531
SELECT DISTINCT - col1 * col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7531
SELECT DISTINCT - col1 * col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + - 28 + - ( + + 12 ) FROM tab1 AS cor0
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7533
SELECT ALL + col1 - + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7533
SELECT ALL + col1 - + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7534
SELECT DISTINCT MIN( DISTINCT - ( + + 23 ) ) AS col0 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-7534
SELECT DISTINCT MIN ( DISTINCT - ( + + 23 ) ) AS col0 FROM tab2
----
-23

query I rowsort
SELECT 34 * - col0 + - col0 AS col0 FROM tab1
----
-1785
-2975
-3185

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7536
SELECT * FROM tab0 WHERE 48 <> + + CAST( col2 AS DECIMAL ) * + col1 + + col2 + - 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7536
SELECT * FROM tab0 WHERE 48 <> + + CAST ( col2 AS REAL ) * + col1 + + col2 + - 40
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col0, - col2 col0 FROM tab0 WHERE NOT + - col2 - col1 < + col2
----

query I rowsort
SELECT DISTINCT col0 + + col2 - + 68 FROM tab1
----
76
79
91

query II rowsort
SELECT col2 AS col1, - 42 + col2 FROM tab1 WHERE + col0 < 15
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7540
SELECT DISTINCT + - col1 / - CAST( NULL AS SIGNED ) / + ( + - col2 ) + col2 * + + col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7540
SELECT DISTINCT + - col1 / - CAST ( NULL AS INTEGER ) / + ( + - col2 ) + col2 * + + col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + 69 * - col0 FROM tab2
----
-3174
-4416
-5175

query III rowsort
SELECT * FROM tab1 WHERE NOT + 44 - - 40 + - 28 / + col1 >= + 98
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7543
SELECT MAX( - 84 ) FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-7543
SELECT MAX ( - 84 ) FROM tab1 AS cor0
----
-84

query I rowsort
SELECT + + 92 AS col1 FROM tab2 cor0 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 11 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 81 ) AS col2 FROM tab0
----
-81
-81
-81

query I rowsort
SELECT DISTINCT + 74 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7548
SELECT col2 DIV 33 AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-7548
SELECT col2 / 33 AS col2 FROM tab0
----
0
1
3

query II rowsort
SELECT ( - 67 ), col2 FROM tab1
----
-67
59
-67
68
-67
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7550
SELECT ALL CAST( ( - col2 ) AS SIGNED ) AS col2 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-7550
SELECT ALL CAST ( ( - col2 ) AS INTEGER ) AS col2 FROM tab1
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7551
SELECT ALL - 70 / CAST( - - AVG ( + 6 ) AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL - 70 / CAST ( - - AVG ( + 6 ) AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( - col2 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT DISTINCT - ( - ( - COUNT( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7552
SELECT DISTINCT - ( - ( - COUNT ( * ) ) ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7553
SELECT - col1 + - CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-7553
SELECT - col1 + - CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
-10
-28
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7554
SELECT + ( + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) - + + COUNT( * ) * + 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT + ( + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) - + + COUNT ( * ) * + 62 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, 27 col1 FROM tab1 WHERE + + col2 > - - 6
----
51
27
85
27
91
27

query I rowsort
SELECT col0 * + + 2 + 86 AS col2 FROM tab2
----
178
214
236

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 + col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7558
SELECT DISTINCT col0 * - CAST( + ( + ( + col2 ) ) AS SIGNED ) + - col1 + - col1 * col0 + + 82 AS col1 FROM tab0 cor0
----
-1919
-2636
-9619

skipif mysql # not compatible
query I rowsort label-7558
SELECT DISTINCT col0 * - CAST ( + ( + ( + col2 ) ) AS INTEGER ) + - col1 + - col1 * col0 + + 82 AS col1 FROM tab0 cor0
----
-1919
-2636
-9619

query II rowsort
SELECT + col0, - 25 AS col2 FROM tab0 AS cor0
----
15
-25
87
-25
97
-25

query I rowsort
SELECT ALL col1 - 48 AS col0 FROM tab1 AS cor0
----
-1
-34
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7561
SELECT SUM( 86 ) * + COUNT( * ) * - + 48 AS col2 FROM tab1 cor0
----
-37152

skipif mysql # not compatible
query I rowsort label-7561
SELECT SUM ( 86 ) * + COUNT ( * ) * - + 48 AS col2 FROM tab1 cor0
----
-37152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7562
SELECT ALL + CAST( NULL AS SIGNED ) + - 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7562
SELECT ALL + CAST ( NULL AS INTEGER ) + - 55 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7563
SELECT ALL + - MIN( + - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-7563
SELECT ALL + - MIN ( + - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7564
SELECT DISTINCT col1 * + 3 - - ( + - 52 ) DIV 13 + col0 FROM tab1 AS cor0
----
228
89
96

skipif mysql # not compatible
query I rowsort label-7564
SELECT DISTINCT col1 * + 3 - - ( + - 52 ) / 13 + col0 FROM tab1 AS cor0
----
228
89
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7565
SELECT ALL COUNT( * ) - + 56 DIV ( - + COUNT( * ) ) AS col0 FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL COUNT ( * ) - + 56 / ( - + COUNT ( * ) ) AS col0 FROM tab0
----
21

query I rowsort
SELECT col2 * + 30 FROM tab0
----
1410
2970
300

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT COUNT( * ) - + ( - 5 ) + COUNT( * ) AS col1 FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-7567
SELECT COUNT ( * ) - + ( - 5 ) + COUNT ( * ) AS col1 FROM tab0
----
11

query I rowsort
SELECT ALL + 88 * col2 FROM tab1
----
5192
5984
8448

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7569
SELECT * FROM tab2 WHERE + 78 BETWEEN - 62 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7569
SELECT * FROM tab2 WHERE + 78 BETWEEN - 62 AND CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 - 41 AS col1 FROM tab0
----
-26
46
56

query II rowsort
SELECT ALL col0 * - col2 AS col2, - ( - col1 ) AS col1 FROM tab1
----
-4896
14
-5015
5
-6188
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7572
SELECT DISTINCT COUNT( * ) * MIN( ALL + 45 ) * 83 * - 55 FROM tab2 AS cor0
----
-616275

skipif mysql # not compatible
query I rowsort label-7572
SELECT DISTINCT COUNT ( * ) * MIN ( ALL + 45 ) * 83 * - 55 FROM tab2 AS cor0
----
-616275

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7573
SELECT * FROM tab0 AS cor0 WHERE NOT 41 * + 52 * CAST( - col0 AS SIGNED ) < - 50
----

skipif mysql # not compatible
query III rowsort label-7573
SELECT * FROM tab0 AS cor0 WHERE NOT 41 * + 52 * CAST ( - col0 AS INTEGER ) < - 50
----

query I rowsort
SELECT DISTINCT col0 + - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
37
44
80

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7575
SELECT CAST( NULL AS DECIMAL ) * - 16, 93 AS col2 FROM tab2
----
NULL
93
NULL
93
NULL
93

skipif mysql # not compatible
query II rowsort label-7575
SELECT CAST ( NULL AS REAL ) * - 16, 93 AS col2 FROM tab2
----
NULL
93
NULL
93
NULL
93

query I rowsort
SELECT ALL - - 93 AS col2 FROM tab2 AS cor0
----
93
93
93

query I rowsort
SELECT - 78 * - 10 FROM tab1 AS cor0
----
780
780
780

query II rowsort
SELECT DISTINCT col1 AS col1, + col0 * - col2 + + col1 - - col0 AS col2 FROM tab0
----
1
-9505
21
-762
81
-609

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7579
SELECT 38 * + COUNT( * ) / CAST( NULL AS SIGNED ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7579
SELECT 38 * + COUNT ( * ) / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7580
SELECT ALL COUNT( * ), - CAST( NULL AS SIGNED ) * - 66 col0 FROM tab1
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7580
SELECT ALL COUNT ( * ), - CAST ( NULL AS INTEGER ) * - 66 col0 FROM tab1
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7581
SELECT MIN( ALL - - 36 ) * - - COUNT( * ) + - 74 * + - 69 FROM tab0 cor0
----
5214

skipif mysql # not compatible
query I rowsort label-7581
SELECT MIN ( ALL - - 36 ) * - - COUNT ( * ) + - 74 * + - 69 FROM tab0 cor0
----
5214

query I rowsort
SELECT - col2 * - + 36 * - col0 * - - col0 FROM tab1 AS cor0
----
-15345900
-20271888
-8989056

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( ( NOT NULL NOT BETWEEN - col2 AND 99 ) )
----

query II rowsort
SELECT + col0 * - - col0, col2 AS col0 FROM tab2
----
2116
23
4096
40
5625
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7585
SELECT ALL - MAX( DISTINCT - + col1 ) * - 44 AS col2 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-7585
SELECT ALL - MAX ( DISTINCT - + col1 ) * - 44 AS col2 FROM tab0
----
-44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col2 BETWEEN col0 AND NULL
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + 8 IS NULL
----

query I rowsort
SELECT + col2 - - - col1 AS col1 FROM tab1 cor0
----
21
54
82

query I rowsort
SELECT DISTINCT + 93 + - + col0 AS col2 FROM tab1 AS cor0
----
2
42
8

query I rowsort
SELECT ALL col0 * 73 - - col2 - 70 + - 15 * - col0 AS col1 FROM tab2 AS cor0
----
4001
5602
6588

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7591
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + + col0 >= + CAST( NULL AS SIGNED ) * + - 31 AND NOT ( NULL ) NOT IN ( - 39 )
----

skipif mysql # not compatible
query III rowsort label-7591
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 + + + col0 >= + CAST ( NULL AS INTEGER ) * + - 31 AND NOT ( NULL ) NOT IN ( - 39 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT col2 + - col1 + + - col2 + + col1 DIV + col0 FROM tab0 AS cor0
----
-1
-21
-76

skipif mysql # not compatible
query I rowsort label-7592
SELECT col2 + - col1 + + - col2 + + col1 / + col0 FROM tab0 AS cor0
----
-1
-21
-76

query I rowsort
SELECT DISTINCT - 80 * 97 * - - col1 AS col0 FROM tab1 AS cor0
----
-108640
-364720
-38800

query I rowsort
SELECT DISTINCT + 71 * col0 AS col1 FROM tab0
----
1065
6177
6887

query III rowsort
SELECT * FROM tab0 WHERE + - col0 * - col1 IS NULL
----

query I rowsort
SELECT 9 + + - col1 FROM tab0
----
-12
-72
8

query I rowsort
SELECT DISTINCT - - col0 * + col2 * + 10 FROM tab0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - 41 * + col1 col2 FROM tab1
----
-12095
-131036
-55104

query I rowsort
SELECT col2 * + 57 AS col0 FROM tab0
----
2679
5643
570

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 * + ( + 60 ) AS col1, col2 AS col1 FROM tab1
----
2820
68
300
59
840
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - - col2 ) col1 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT ALL col1 * col2 * - col1 AS col0 FROM tab0 cor0
----
-308367
-4410
-99

query I rowsort
SELECT ALL - 69 AS col1 FROM tab0 WHERE 82 + + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + ( - 32 ) FROM tab0
----
-32
-32
-32

query II rowsort
SELECT ALL - 67 AS col1, - ( - col1 ) FROM tab2 cor0
----
-67
51
-67
67
-67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT DISTINCT - 75 * - - COUNT( * ) FROM tab1 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-7607
SELECT DISTINCT - 75 * - - COUNT ( * ) FROM tab1 AS cor0
----
-225

query I rowsort
SELECT ALL - + 2 AS col2 FROM tab1 AS cor0 WHERE NOT + 94 NOT IN ( - col0 * - 14, 50 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7609
SELECT ALL COUNT( * ) * COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-7609
SELECT ALL COUNT ( * ) * COUNT ( * ) FROM tab2 cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( + col2 ) IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT 36, 39 - - 59 * 38 AS col1 FROM tab0 AS cor0
----
36
2281
36
2281
36
2281

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 1 < NULL
----

query II rowsort
SELECT + ( + - col2 ) AS col1, + 75 FROM tab2
----
-23
75
-40
75
-58
75

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 - 18 + - col0 AS col2 FROM tab0
----
-105
-115
-33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7616
SELECT DISTINCT - col2 * col2 + 12 + col1 - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7616
SELECT DISTINCT - col2 * col2 + 12 + col1 - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7617
SELECT + 81 * COUNT( * ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-7617
SELECT + 81 * COUNT ( * ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
246

query I rowsort
SELECT DISTINCT - - col2 * - col1 + - 69 AS col2 FROM tab1 AS cor0
----
-1413
-3265
-364

query I rowsort
SELECT 76 + - col1 AS col0 FROM tab0
----
-5
55
75

query I rowsort
SELECT 74 * 72 + - col1 AS col2 FROM tab0
----
5247
5307
5327

query I rowsort
SELECT - col0 * - col0 + - col1 + col0 AS col2 FROM tab1
----
2638
7305
8325

query I rowsort
SELECT ALL + ( - - 89 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

query I rowsort
SELECT ALL - + col1 + - + col2 AS col1 FROM tab0 AS cor0
----
-100
-128
-31

query I rowsort
SELECT ALL - col1 - 11 FROM tab1 AS cor0
----
-16
-25
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-7625
SELECT DISTINCT + COUNT( * ) + - 89 col0 FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7625
SELECT DISTINCT + COUNT ( * ) + - 89 col0 FROM tab1 AS cor0
----
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7626
SELECT ALL - + 98 * - ( + 61 ) / CAST( NULL AS SIGNED ) + + col0 - + 98 + - col0 + - + col2 * col0 * + - col2 * 15 * col0 - ( - col2 ) col2, + 62 * - 36 AS col2, col2 FROM tab0 AS cor0
----
9 values hashing to 4f3211e31d459f18a4248b4e71d761ad

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7626
SELECT ALL - + 98 * - ( + 61 ) / CAST ( NULL AS INTEGER ) + + col0 - + 98 + - col0 + - + col2 * col0 * + - col2 * 15 * col0 - ( - col2 ) col2, + 62 * - 36 AS col2, col2 FROM tab0 AS cor0
----
9 values hashing to 4f3211e31d459f18a4248b4e71d761ad

onlyif mysql # aggregate syntax: 
query I rowsort label-7627
SELECT + - MAX( + + col0 ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-7627
SELECT + - MAX ( + + col0 ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT - col1 - + 65 FROM tab0 AS cor0
----
-146
-66
-86

query I rowsort
SELECT ALL + col1 - - + ( - col2 ) + 57 + + - col0 - col2 AS col1 FROM tab2
----
-10
-67
16

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT col0 - - col2 + - ( + - col2 ) DIV + + col0 AS col1 FROM tab0
----
197
65
97

skipif mysql # not compatible
query I rowsort label-7630
SELECT col0 - - col2 + - ( + - col2 ) / + + col0 AS col1 FROM tab0
----
197
65
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7631
SELECT 31 * 11 - + COUNT( * ) AS col2 FROM tab1
----
338

skipif mysql # not compatible
query I rowsort label-7631
SELECT 31 * 11 - + COUNT ( * ) AS col2 FROM tab1
----
338

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < + 17
----

query I rowsort
SELECT + 3 * + col0 FROM tab2
----
138
192
225

query III rowsort
SELECT ALL * FROM tab0 WHERE - + 40 <> NULL
----

query I rowsort
SELECT DISTINCT + 30 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
30

onlyif mysql # aggregate syntax: 
query II rowsort label-7636
SELECT DISTINCT - COUNT( * ) AS col2, + COUNT( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-7636
SELECT DISTINCT - COUNT ( * ) AS col2, + COUNT ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
-3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7637
SELECT - CAST( COUNT( * ) AS SIGNED ) * 35 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-7637
SELECT - CAST ( COUNT ( * ) AS INTEGER ) * 35 FROM tab0 AS cor0
----
-105

query I rowsort
SELECT 20 * - col1 AS col0 FROM tab2 AS cor0
----
-1020
-1340
-1540

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT DISTINCT + COUNT( * ) DIV + COUNT( col1 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT + COUNT ( * ) / + COUNT ( col1 ) FROM tab2 AS cor0
----
1

query I rowsort
SELECT + - col0 * + 14 FROM tab1 AS cor0
----
-1190
-1274
-714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7641
SELECT ALL + CAST( NULL AS SIGNED ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT ALL + CAST ( NULL AS INTEGER ) / col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7642
SELECT + 74 * CAST( NULL AS SIGNED ) * - col1 * + col0 / - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7642
SELECT + 74 * CAST ( NULL AS INTEGER ) * - col1 * + col0 / - col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 col0 FROM tab0
----
-51

query I rowsort
SELECT DISTINCT col1 + + col0 * + + col1 AS col0 FROM tab1
----
430
4324
728

query I rowsort
SELECT DISTINCT - col0 + 22 * + - 36 FROM tab1 AS cor0
----
-843
-877
-883

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT + 83 AS col1 FROM tab1 cor0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7646
SELECT + 83 AS col1 FROM tab1 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 AS cor0 CROSS JOIN tab0 AS cor1 ) WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7648
SELECT - COUNT( * ) * + 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-855

skipif mysql # not compatible
query I rowsort label-7648
SELECT - COUNT ( * ) * + 95 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-855

query I rowsort
SELECT - - 28 + 34 AS col0 FROM tab2 AS cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7650
SELECT - 20 + SUM( + 14 ) col2 FROM tab0 AS cor0
----
22

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7650
SELECT - 20 + SUM ( + 14 ) col2 FROM tab0 AS cor0
----
22

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT NULL < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7652
SELECT + COUNT( * ) + + SUM( + - col0 ) AS col1 FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-7652
SELECT + COUNT ( * ) + + SUM ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7653
SELECT col0 + + CAST( NULL AS SIGNED ) * + 16 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7653
SELECT col0 + + CAST ( NULL AS INTEGER ) * + 16 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + 70 + - col0 - - - col0 col2 FROM tab0 AS cor0
----
-125
-125
-41

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7655
SELECT ALL * FROM tab1 AS cor0 WHERE CAST( col0 AS SIGNED ) / 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7655
SELECT ALL * FROM tab1 AS cor0 WHERE CAST ( col0 AS INTEGER ) / 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7656
SELECT ALL col2, CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
10
10
47
47
99
99

skipif mysql # not compatible
query II rowsort label-7656
SELECT ALL col2, CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 51 * - + col1 col1 FROM tab0
----
-1071
-4131
-51

onlyif mysql # DIV for integer division: 
query II rowsort label-7658
SELECT + col2 * + col2 * 35 AS col2, - col1 DIV col2 FROM tab0
----
343035
0
3500
-2
77315
-1

skipif mysql # not compatible
query II rowsort label-7658
SELECT + col2 * + col2 * 35 AS col2, - col1 / col2 FROM tab0
----
343035
0
3500
-2
77315
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 col1, col0 + - + 69 FROM tab1
----
59
16
68
22
96
-18

query I rowsort
SELECT + col1 * + ( + col0 ) * - col0 AS col0 FROM tab0 AS cor0
----
-158949
-18225
-9409

query I rowsort
SELECT ALL + 35 * - col1 AS col1 FROM tab1 cor0
----
-1645
-175
-490

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT - COUNT( * ) + 13 AS col1 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-7662
SELECT - COUNT ( * ) + 13 AS col1 FROM tab0 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query II rowsort label-7663
SELECT + 20 + col2 AS col0, col2 DIV col1 FROM tab2 AS cor0
----
43
0
60
0
78
0

skipif mysql # not compatible
query II rowsort label-7663
SELECT + 20 + col2 AS col0, col2 / col1 FROM tab2 AS cor0
----
43
0
60
0
78
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + + col2 + + - 25 * - - col0 AS col0 FROM tab1 AS cor0 WHERE 66 IN ( col2, + col0, - col1 * + - 87, + - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( - 48 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 21 * col2 * + col0 AS col0 FROM tab2 AS cor0
----
22218
53760
91350

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7668
SELECT ALL + - col0, 18 * + 40 * - col1 - + 49 + - - CAST( col0 AS DECIMAL ) + - col0 / - + ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + + CAST( 90 AS SIGNED ) < NULL
----

skipif mysql # not compatible
query II rowsort label-7668
SELECT ALL + - col0, 18 * + 40 * - col1 - + 49 + - - CAST ( col0 AS REAL ) + - col0 / - + ( - col1 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 + + CAST ( 90 AS INTEGER ) < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7669
SELECT 89 * - col2 DIV - - col2 col0 FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7669
SELECT 89 * - col2 / - - col2 col0 FROM tab1
----
-89
-89
-89

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7670
SELECT DISTINCT + 49 * - MAX( - CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7670
SELECT DISTINCT + 49 * - MAX ( - CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

query I rowsort
SELECT - ( + ( - ( + + col2 ) ) ) FROM tab1
----
59
68
96

query I rowsort
SELECT + + col1 * col2 AS col0 FROM tab1 WHERE - 15 >= 13 + + col0
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( + col1 * + 80 - - - 68 )
----

query I rowsort
SELECT DISTINCT + col1 + + - ( 76 ) - - col0 AS col1 FROM tab2
----
21
65
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7675
SELECT CAST( NULL AS SIGNED ) / - + COUNT( * ) col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7675
SELECT CAST ( NULL AS INTEGER ) / - + COUNT ( * ) col2 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 70 + + - col2 + col0 col2, col0 FROM tab0 AS cor0
----
147
87
38
15
68
97

onlyif mysql # DIV for integer division: 
query I rowsort label-7677
SELECT ALL 33 + - col1 + + col1 DIV + col0 + - - col2 + + - col2 FROM tab2 AS cor0
----
-17
-34
-43

skipif mysql # not compatible
query I rowsort label-7677
SELECT ALL 33 + - col1 + + col1 / + col0 + - - col2 + + - col2 FROM tab2 AS cor0
----
-17
-34
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-7678
SELECT COUNT( * ) * + 63 + - + 59 FROM tab1
----
130

skipif mysql # not compatible
query I rowsort label-7678
SELECT COUNT ( * ) * + 63 + - + 59 FROM tab1
----
130

query II rowsort
SELECT ALL + col0 AS col1, - 70 FROM tab0
----
15
-70
87
-70
97
-70

query I rowsort
SELECT col1 + - - 50 FROM tab1
----
55
64
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7681
SELECT ALL + MIN( 1 ) FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-7681
SELECT ALL + MIN ( 1 ) FROM tab2 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7682
SELECT ALL - - COUNT( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7682
SELECT ALL - - COUNT ( DISTINCT + col0 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7683
SELECT DISTINCT col0, CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab1 cor0
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-7683
SELECT DISTINCT col0, CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab1 cor0
----
51
96
85
59
91
68

query II rowsort
SELECT + col1, + col1 * col0 FROM tab1 AS cor0
----
14
714
47
4277
5
425

query II rowsort
SELECT - + col1, col2 + - + 32 AS col0 FROM tab1 AS cor0
----
-14
64
-47
36
-5
27

query II rowsort
SELECT ALL - col1 AS col1, - col1 * + col1 * + col1 AS col0 FROM tab2 AS cor0
----
-51
-132651
-67
-300763
-77
-456533

query I rowsort
SELECT - ( + - 95 ) FROM tab1 AS cor0
----
95
95
95

query I rowsort
SELECT - 87 * + + col2 AS col0 FROM tab2 AS cor0
----
-2001
-3480
-5046

query I rowsort
SELECT - 32 FROM tab1 AS cor0 WHERE NOT 92 * - 5 * - + col0 <> - - col1 + - col0 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7690
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NULL < - 70
----
0

skipif mysql # not compatible
query I rowsort label-7690
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NULL < - 70
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7691
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab1 WHERE NOT ( NULL IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7692
SELECT - CAST( + col2 AS SIGNED ) * - + col2 col2, + 93 DIV + - 30 AS col1 FROM tab0 AS cor0
----
100
-3
2209
-3
9801
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7692
SELECT - CAST ( + col2 AS INTEGER ) * - + col2 col2, + 93 / + - 30 AS col1 FROM tab0 AS cor0
----
100
-3
2209
-3
9801
-3

query I rowsort
SELECT ALL 7 AS col0 FROM tab1 cor0
----
7
7
7

onlyif mysql # aggregate syntax: 
query I rowsort label-7694
SELECT ALL - COUNT( ALL - 59 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7694
SELECT ALL - COUNT ( ALL - 59 ) FROM tab2 AS cor0
----
-3

query II rowsort
SELECT - ( + col0 ) AS col2, col0 * col0 AS col1 FROM tab2 WHERE NOT - 14 * + - col2 > - + col1 / + + col0
----

query I rowsort
SELECT - col1 * - - col1 AS col2 FROM tab2 WHERE NOT - 87 = NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 22 IN ( 49 * + + 37 * - - col1 / + - 39 + - col1 + + + col1, + col1 )
----

query I rowsort
SELECT - col1 * ( - + col2 ) FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT ALL + col2 * + 4 + - col0 AS col0 FROM tab1 AS cor0
----
151
181
333

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + col1 * - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7701
SELECT COUNT( * ) * 36 FROM tab1 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-7701
SELECT COUNT ( * ) * 36 FROM tab1 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL COUNT( * ) * - - COUNT( * ) col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7702
SELECT ALL COUNT ( * ) * - - COUNT ( * ) col2 FROM tab1 AS cor0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7703
SELECT - col0 * - ( - + ( - CAST( col0 AS SIGNED ) ) ) AS col1 FROM tab0 AS cor0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-7703
SELECT - col0 * - ( - + ( - CAST ( col0 AS INTEGER ) ) ) AS col1 FROM tab0 AS cor0
----
225
7569
9409

query I rowsort
SELECT DISTINCT + 52 * + 29 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + col1 + - 92 AS col1 FROM tab1 AS cor0
----
-45
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT + + 89 * + COUNT( * ) + + ( + + 85 ) FROM tab1 AS cor0
----
352

skipif mysql # not compatible
query I rowsort label-7706
SELECT + + 89 * + COUNT ( * ) + + ( + + 85 ) FROM tab1 AS cor0
----
352

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 + + + 26 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7709
SELECT DISTINCT 20 * + + col2 * - col1 * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7709
SELECT DISTINCT 20 * + + col2 * - col1 * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 + - 4 col0 FROM tab0
----
2205
96
9797

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7711
SELECT CAST( NULL AS SIGNED ) + + 47 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7711
SELECT CAST ( NULL AS INTEGER ) + + 47 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + - col0 ) * + col2 * - col2 AS col0 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT DISTINCT ( + 72 ) + - ( - col1 ) + col0 AS col0 FROM tab0
----
168
170
180

onlyif mysql # DIV for integer division: 
query I rowsort label-7714
SELECT col0 DIV 78 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7714
SELECT col0 / 78 / + col0 AS col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7715
SELECT DISTINCT 52 + + col2 + col2 + - 54 * col1 DIV 90 FROM tab1 AS cor0
----
160
167
236

skipif mysql # not compatible
query I rowsort label-7715
SELECT DISTINCT 52 + + col2 + col2 + - 54 * col1 / 90 FROM tab1 AS cor0
----
160
167
236

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 99 + - 60 - + col2 / - 77 AND NULL
----

query I rowsort
SELECT DISTINCT - - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 86 col2 FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT col0 * + col0 - col0 + 82 FROM tab2 AS cor0 WHERE NULL NOT IN ( 12 / 28, - col0 * - col1, - 24 / col2 )
----

query II rowsort
SELECT ALL - + col1, + ( - 98 ) * + col2 AS col0 FROM tab2 AS cor0
----
-51
-2254
-67
-5684
-77
-3920

onlyif mysql # DIV for integer division: 
query I rowsort label-7721
SELECT - col0 DIV + - col2 - - col0 + + col0 FROM tab2 AS cor0
----
129
151
94

skipif mysql # not compatible
query I rowsort label-7721
SELECT - col0 / + - col2 - - col0 + + col0 FROM tab2 AS cor0
----
129
151
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7722
SELECT DISTINCT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7722
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7723
SELECT DISTINCT MIN( ( col0 ) ) AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-7723
SELECT DISTINCT MIN ( ( col0 ) ) AS col0 FROM tab0
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + 90 ) * 49 col1 FROM tab0
----
4410
4410
4410

query I rowsort
SELECT DISTINCT - - 70 AS col2 FROM tab2 AS cor0 WHERE NOT col1 + + + col1 <= col0 + - col1 + 15
----
70

query II rowsort
SELECT - 10 AS col0, ( - col0 ) FROM tab0 AS cor0
----
-10
-15
-10
-87
-10
-97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7727
SELECT + CAST( 82 AS SIGNED ) + - - 16 DIV COUNT( * ) col1 FROM tab2
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7727
SELECT + CAST ( 82 AS INTEGER ) + - - 16 / COUNT ( * ) col1 FROM tab2
----
87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL BETWEEN NULL AND - + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7729
SELECT DISTINCT + - 49 + + COUNT( DISTINCT 41 ) FROM tab2 cor0
----
-48

skipif mysql # not compatible
query I rowsort label-7729
SELECT DISTINCT + - 49 + + COUNT ( DISTINCT 41 ) FROM tab2 cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7730
SELECT ALL - CAST( NULL AS SIGNED ) + - - 77 col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7730
SELECT ALL - CAST ( NULL AS INTEGER ) + - - 77 col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7731
SELECT DISTINCT col2 + - ( + col0 ) * col2 DIV col2 FROM tab2 AS cor0
----
-17
-23
-24

skipif mysql # not compatible
query I rowsort label-7731
SELECT DISTINCT col2 + - ( + col0 ) * col2 / col2 FROM tab2 AS cor0
----
-17
-23
-24

query I rowsort
SELECT 97 * + col1 * - + col1 AS col2 FROM tab1 cor0
----
-19012
-214273
-2425

query I rowsort
SELECT ALL 43 + col2 AS col0 FROM tab0 AS cor0
----
142
53
90

onlyif mysql # DIV for integer division: 
query II rowsort label-7734
SELECT ( - col0 ) AS col1, + col1 DIV + 32 FROM tab2 AS cor0
----
-46
1
-64
2
-75
2

skipif mysql # not compatible
query II rowsort label-7734
SELECT ( - col0 ) AS col1, + col1 / + 32 FROM tab2 AS cor0
----
-46
1
-64
2
-75
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7735
SELECT ALL + ( col0 ) * CAST( - 32 AS SIGNED ) AS col1, - col1 * - - 93 AS col1 FROM tab1
----
-1632
-1302
-2720
-465
-2912
-4371

skipif mysql # not compatible
query II rowsort label-7735
SELECT ALL + ( col0 ) * CAST ( - 32 AS INTEGER ) AS col1, - col1 * - - 93 AS col1 FROM tab1
----
-1632
-1302
-2720
-465
-2912
-4371

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7736
SELECT - col2 + - col2 + + - CAST( - - col2 AS SIGNED ) FROM tab2 WHERE - col2 - - + 31 IS NOT NULL
----
-120
-174
-69

skipif mysql # not compatible
query I rowsort label-7736
SELECT - col2 + - col2 + + - CAST ( - - col2 AS INTEGER ) FROM tab2 WHERE - col2 - - + 31 IS NOT NULL
----
-120
-174
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7737
SELECT DISTINCT - ( + - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT - 30 NOT IN ( col1 - - + col1, + col2 + 85 - - - col2 * - col0 - + 23, - col0 )
----

skipif mysql # not compatible
query I rowsort label-7737
SELECT DISTINCT - ( + - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT - 30 NOT IN ( col1 - - + col1, + col2 + 85 - - - col2 * - col0 - + 23, - col0 )
----

query IIIIII rowsort
SELECT ALL * FROM tab1, tab1 AS cor0 WHERE - 38 = NULL
----

query I rowsort
SELECT + 10 - + - col0 - + + ( - 83 ) AS col1 FROM tab2
----
139
157
168

query I rowsort
SELECT + - 17 + - col0 * - - col0 + - 33 + - 99 FROM tab0 cor0
----
-374
-7718
-9558

onlyif mysql # aggregate syntax: 
query I rowsort label-7741
SELECT + - 3 + + - COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7741
SELECT + - 3 + + - COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL ( 0 ) * - 2 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7743
SELECT + SUM( - 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-7743
SELECT + SUM ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT 68 + MAX( col2 ) * - 27 AS col0 FROM tab0
----
-2605

skipif mysql # not compatible
query I rowsort label-7745
SELECT 68 + MAX ( col2 ) * - 27 AS col0 FROM tab0
----
-2605

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + ( + 8 ) + - col2 IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 24 col2 FROM tab1 WHERE NOT NULL NOT IN ( col2 + - col1 / + 39 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN col2 AND NULL
----

query I rowsort
SELECT ALL - 51 * - col0 - 81 FROM tab2
----
2265
3183
3744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - + ( + 50 ) col0 FROM tab2
----
-114
-125
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + + 27 col0 FROM tab0
----
-60
-70
12

query I rowsort
SELECT ALL - col0 / - 24 AS col2 FROM tab1 WHERE + col0 * col0 + + col2 / + col2 IS NULL
----

query I rowsort
SELECT DISTINCT 33 + 13 FROM tab0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7754
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - CAST( + col1 AS SIGNED ) * 40 ) AND col2 * 0 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7754
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( - CAST ( + col1 AS INTEGER ) * 40 ) AND col2 * 0 + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + col2 * 56 + - col2 * - 73 FROM tab1
----
12384
7611
8772

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7756
SELECT - 90 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( - 59 + - 36 * ( - 22 ) ) AND CAST( 97 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7756
SELECT - 90 FROM tab1 WHERE ( NULL ) NOT BETWEEN ( - 59 + - 36 * ( - 22 ) ) AND CAST ( 97 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7757
SELECT - CAST( NULL AS DECIMAL ) - 76 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7757
SELECT - CAST ( NULL AS REAL ) - 76 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - 36 + col0 AS col0 FROM tab1
----
15
49
55

query III rowsort
SELECT * FROM tab0 WHERE 9 + - col2 NOT IN ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col1 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7761
SELECT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND + CAST( - col0 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7761
SELECT * FROM tab0 WHERE col2 NOT BETWEEN NULL AND + CAST ( - col0 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7762
SELECT CAST( + col0 AS SIGNED ) * + 72 AS col0 FROM tab2
----
3312
4608
5400

skipif mysql # not compatible
query I rowsort label-7762
SELECT CAST ( + col0 AS INTEGER ) * + 72 AS col0 FROM tab2
----
3312
4608
5400

onlyif mysql # aggregate syntax: 
query I rowsort label-7763
SELECT ALL - COUNT( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7763
SELECT ALL - COUNT ( - ( col0 ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 + - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7765
SELECT DISTINCT COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

skipif mysql # not compatible
query I rowsort label-7765
SELECT DISTINCT COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT 38 * COUNT( DISTINCT col1 * + col2 ) FROM tab0
----
114

skipif mysql # not compatible
query I rowsort label-7766
SELECT 38 * COUNT ( DISTINCT col1 * + col2 ) FROM tab0
----
114

onlyif mysql # aggregate syntax: 
query I rowsort label-7767
SELECT ALL - SUM( + col0 ) * COUNT( * ) + + MAX( 85 ) AS col0 FROM tab0
----
-512

skipif mysql # not compatible
query I rowsort label-7767
SELECT ALL - SUM ( + col0 ) * COUNT ( * ) + + MAX ( 85 ) AS col0 FROM tab0
----
-512

query I rowsort
SELECT ALL 53 + + col1 * + 23 FROM tab1 cor0
----
1134
168
375

onlyif mysql # DIV for integer division: 
query I rowsort label-7769
SELECT DISTINCT col0 + - col2 DIV + 78 FROM tab0 AS cor0
----
15
87
96

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT col0 + - col2 / + 78 FROM tab0 AS cor0
----
15
87
96

query I rowsort
SELECT 2 + col2 FROM tab2 AS cor0
----
25
42
60

query I rowsort
SELECT DISTINCT - + 31 + 31 * + 93 AS col2 FROM tab0 AS cor0
----
2852

query I rowsort
SELECT ( + ( + col2 ) ) + + ( col1 ) FROM tab0 AS cor0
----
100
128
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col2 / col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7774
SELECT - 34 + - COUNT( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-7774
SELECT - 34 + - COUNT ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7775
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) * + col2 - CAST( col0 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7775
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) * + col2 - CAST ( col0 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ( - col1 ) + - 12 FROM tab2 AS cor0
----
-63
-79
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7777
SELECT 53 + + CAST( + COUNT( * ) AS SIGNED ) * + 24 FROM tab0 AS cor0
----
125

skipif mysql # not compatible
query I rowsort label-7777
SELECT 53 + + CAST ( + COUNT ( * ) AS INTEGER ) * + 24 FROM tab0 AS cor0
----
125

onlyif mysql # aggregate syntax: 
query I rowsort label-7778
SELECT DISTINCT + - 49 - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-7778
SELECT DISTINCT + - 49 - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-52

query I rowsort
SELECT + 99 * 84 AS col1 FROM tab1 cor0 WHERE col1 + col0 BETWEEN + col0 AND ( col0 * + col2 )
----
8316
8316
8316

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IS NULL OR NOT - col0 * + 40 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 99 > - col1
----

query I rowsort
SELECT 32 * - 98 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
-3136
-3136
-3136

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT + 93 DIV + 29 AS col1 FROM tab0
----
3
3
3

skipif mysql # not compatible
query I rowsort label-7783
SELECT + 93 / + 29 AS col1 FROM tab0
----
3
3
3

query I rowsort
SELECT 79 FROM tab2 WHERE NULL < - 35
----

query I rowsort
SELECT ALL - ( col2 ) FROM tab0 WHERE NOT 15 NOT BETWEEN col0 + - 39 AND ( - 72 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + 95 / col2 col2 FROM tab2 WHERE NOT - 84 NOT BETWEEN ( NULL ) AND ( 40 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7787
SELECT + SUM( + col0 ) DIV - MAX( col2 - - col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7787
SELECT + SUM ( + col0 ) / - MAX ( col2 - - col0 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7788
SELECT ALL col1 col2 FROM tab2 WHERE NOT NULL < ( CAST( NULL AS SIGNED ) + + 86 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7788
SELECT ALL col1 col2 FROM tab2 WHERE NOT NULL < ( CAST ( NULL AS INTEGER ) + + 86 )
----

query I rowsort
SELECT + col0 * 29 FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT ALL 85 * col1 FROM tab0 AS cor0
----
1785
6885
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7791
SELECT - col2 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( 2 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7791
SELECT - col2 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( 2 ) IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - 76 / - 7 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( 69 ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-7794
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 43 <= CAST( - ( - ( 67 ) ) AS SIGNED )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

skipif mysql # not compatible
query IIIIII rowsort label-7794
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 43 <= CAST ( - ( - ( 67 ) ) AS INTEGER )
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-7795
SELECT ALL 60 * + MIN( ALL + ( 57 ) ) AS col0 FROM tab1
----
3420

skipif mysql # not compatible
query I rowsort label-7795
SELECT ALL 60 * + MIN ( ALL + ( 57 ) ) AS col0 FROM tab1
----
3420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7796
SELECT COUNT( DISTINCT CAST( + col1 AS SIGNED ) ) AS col0 FROM tab2 WHERE NOT ( 66 / - 64 ) <= 95
----
0

skipif mysql # not compatible
query I rowsort label-7796
SELECT COUNT ( DISTINCT CAST ( + col1 AS INTEGER ) ) AS col0 FROM tab2 WHERE NOT ( 66 / - 64 ) <= 95
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7797
SELECT + col1 DIV - + CAST( - col0 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7797
SELECT + col1 / - + CAST ( - col0 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 25 * + 18 AS col0 FROM tab2 AS cor0
----
450
450
450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7799
SELECT DISTINCT ( COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT ( CAST( - + 66 AS SIGNED ) + - col2 * - col0 ) NOT BETWEEN NULL AND 55
----
0

skipif mysql # not compatible
query I rowsort label-7799
SELECT DISTINCT ( COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT ( CAST ( - + 66 AS INTEGER ) + - col2 * - col0 ) NOT BETWEEN NULL AND 55
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7800
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE 39 - + + col0 + + CAST( - 97 AS SIGNED ) > col1 - col1
----
0

skipif mysql # not compatible
query I rowsort label-7800
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE 39 - + + col0 + + CAST ( - 97 AS INTEGER ) > col1 - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col2 + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7802
SELECT - ( col0 ) DIV + col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7802
SELECT - ( col0 ) / + col0 col2 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col2 + ( col0 + col2 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7804
SELECT ALL + 13 * 1 DIV MAX( col0 ) * COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7804
SELECT ALL + 13 * 1 / MAX ( col0 ) * COUNT ( * ) col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7805
SELECT MIN( + 77 ) FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-7805
SELECT MIN ( + 77 ) FROM tab2
----
77

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( + 48 ) IN ( + col0 + 10 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + 35 NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - 36 NOT IN ( - 75 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7809
SELECT MAX( DISTINCT - col2 ) AS col1, - CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-23
-3

skipif mysql # not compatible
query II rowsort label-7809
SELECT MAX ( DISTINCT - col2 ) AS col1, - CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-23
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - MIN( - col2 ) * + ( COUNT( * ) ) FROM tab1
----
288

skipif mysql # not compatible
query I rowsort label-7810
SELECT - MIN ( - col2 ) * + ( COUNT ( * ) ) FROM tab1
----
288

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7811
SELECT MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7811
SELECT MAX ( DISTINCT - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( + - col0 * - - col2 * + 86 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 = col0 / - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 4 + 63 FROM tab0 cor0
----
67
67
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( col1 ) * + col1 col0 FROM tab0 cor0 WHERE ( NULL ) IN ( - + col0 + 42 )
----

query I rowsort
SELECT DISTINCT - 96 + - col2 AS col0 FROM tab2 AS cor0
----
-119
-136
-154

query I rowsort
SELECT ALL + ( - 16 ) * - col1 - - + col0 - - 46 + + col2 * 1 AS col2 FROM tab2 AS cor0
----
1251
1382
931

onlyif mysql # aggregate syntax: 
query I rowsort label-7818
SELECT ALL ( + + ( MIN( - col0 ) ) ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-97

skipif mysql # not compatible
query I rowsort label-7818
SELECT ALL ( + + ( MIN ( - col0 ) ) ) FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-97

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE ( col0 - col0 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - col0, 27 col2 FROM tab2 AS cor0 WHERE col0 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7821
SELECT - 6 DIV MAX( ALL col2 * col2 ) + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE 45 + - col0 + + - col0 IS NOT NULL
----
-9

skipif mysql # not compatible
query I rowsort label-7821
SELECT - 6 / MAX ( ALL col2 * col2 ) + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE 45 + - col0 + + - col0 IS NOT NULL
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 + - + 17 * col2 col1, + 40 AS col2 FROM tab2 AS cor0
----
-368
40
-640
40
-928
40

query I rowsort
SELECT - - 63 FROM tab0 cor0
----
63
63
63

onlyif mysql # aggregate syntax: 
query I rowsort label-7824
SELECT ALL + + MIN( + 26 ) - - COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-7824
SELECT ALL + + MIN ( + 26 ) - - COUNT ( * ) FROM tab1 AS cor0
----
29

query I rowsort
SELECT DISTINCT + 85 - + 10 FROM tab1
----
75

query I rowsort
SELECT 44 / + + 11 - + + col0 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT 5 = NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7828
SELECT + MAX( + 27 ) - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7828
SELECT + MAX ( + 27 ) - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7829
SELECT DISTINCT - COUNT( ALL 55 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT - COUNT ( ALL 55 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 65 AS col2 FROM tab1 WHERE NOT + 3 = ( NULL )
----

query I rowsort
SELECT col1 + ( col0 ) AS col0 FROM tab2 WHERE NOT NULL IN ( - ( + 67 ) * col0 - + + col0 + - 25 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT DISTINCT MAX( DISTINCT + + 35 ) FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7832
SELECT DISTINCT MAX ( DISTINCT + + 35 ) FROM tab1 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + col0 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT + ( - + 99 ) IS NULL
----
1
21
81

query I rowsort
SELECT 74 FROM tab0 AS cor0 WHERE NOT ( NOT - - 8 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT 5 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7837
SELECT 5 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-7838
SELECT ALL COUNT( * ) FROM tab1 cor0 WHERE NOT 90 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL COUNT ( * ) FROM tab1 cor0 WHERE NOT 90 IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7839
SELECT DISTINCT + + 54 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND - CAST( - col1 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT + + 54 AS col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 AND - CAST ( - col1 AS INTEGER ) * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7840
SELECT + - ( - 97 ) DIV - 90 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7840
SELECT + - ( - 97 ) / - 90 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-7841
SELECT - col1 DIV - col2 col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7841
SELECT - col1 / - col2 col2 FROM tab0
----
0
1
2

query II rowsort
SELECT DISTINCT col0 + 46 + + + col0 AS col1, col1 AS col0 FROM tab1
----
148
14
216
5
228
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7843
SELECT ALL * FROM tab1 WHERE ( - + col0 ) IN ( - CAST( NULL AS SIGNED ) + + - 97 - col0 - + col0 * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7843
SELECT ALL * FROM tab1 WHERE ( - + col0 ) IN ( - CAST ( NULL AS INTEGER ) + + - 97 - col0 - + col0 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7844
SELECT DISTINCT + ( - + 20 ) * + COUNT( * ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-7844
SELECT DISTINCT + ( - + 20 ) * + COUNT ( * ) FROM tab1
----
-60

query I rowsort
SELECT ALL - 57 * 16 * 83 FROM tab0
----
-75696
-75696
-75696

query I rowsort
SELECT 58 + - 59 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

query I rowsort
SELECT - col0 + - - 40 AS col0 FROM tab2 AS cor0
----
-24
-35
-6

query I rowsort
SELECT col1 + + + 10 AS col2 FROM tab0 AS cor0
----
11
31
91

query I rowsort
SELECT DISTINCT 20 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
20

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT 30 + - col2 FROM tab2 AS cor0 WHERE - col0 IN ( + col1, - 36 * + col0 )
----

query I rowsort
SELECT ALL - 59 - + + col2 + - - col0 FROM tab1 AS cor0
----
-104
-33
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 + + col2 col1 FROM tab0 AS cor0 WHERE - ( - - col0 ) IS NOT NULL
----
198
20
94

query I rowsort
SELECT col1 * - col1 + + 16 * - - col0 * - col0 + + col2 FROM tab2 AS cor0
----
-36434
-71425
-94431

query I rowsort
SELECT DISTINCT + + col2 - - - col2 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7856
SELECT - + MIN( + 54 ) + - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7856
SELECT - + MIN ( + 54 ) + - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 16 - - col0 >= 23
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7858
SELECT ALL - + CAST( col1 AS SIGNED ) * + 84 * - col0 + - col0 FROM tab1 WHERE NOT + - col1 * + - col2 IS NULL
----
35615
359177
59925

skipif mysql # not compatible
query I rowsort label-7858
SELECT ALL - + CAST ( col1 AS INTEGER ) * + 84 * - col0 + - col0 FROM tab1 WHERE NOT + - col1 * + - col2 IS NULL
----
35615
359177
59925

onlyif mysql # DIV for integer division: 
query I rowsort label-7859
SELECT DISTINCT col1 - - + col1 * col0 DIV - 26 AS col0 FROM tab1
----
-11
-117
-13

skipif mysql # not compatible
query I rowsort label-7859
SELECT DISTINCT col1 - - + col1 * col0 / - 26 AS col0 FROM tab1
----
-11
-117
-13

query I rowsort
SELECT + + col1 AS col1 FROM tab2 WHERE NOT ( - + col2 ) = - col0
----
51
67
77

query I rowsort
SELECT ALL ( - - col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7862
SELECT ALL + + col0 DIV + 89 + + ( + col1 ) + + col1 FROM tab2 WHERE NOT - col0 IS NULL
----
102
134
154

skipif mysql # not compatible
query I rowsort label-7862
SELECT ALL + + col0 / + 89 + + ( + col1 ) + + col1 FROM tab2 WHERE NOT - col0 IS NULL
----
102
134
154

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7863
SELECT * FROM tab0 WHERE NOT + col1 * col0 IS NULL AND NOT 47 + + - col0 - + - CAST( col0 AS DECIMAL ) + - col0 / 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7863
SELECT * FROM tab0 WHERE NOT + col1 * col0 IS NULL AND NOT 47 + + - col0 - + - CAST ( col0 AS REAL ) + - col0 / 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 39 / - + col1 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7865
SELECT ALL + CAST( - col1 AS SIGNED ) col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7865
SELECT ALL + CAST ( - col1 AS INTEGER ) col1 FROM tab2 AS cor0
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 + + ( + + col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-7867
SELECT + MIN( - 99 ) AS col2, + COUNT( * ) * COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-99
81

skipif mysql # not compatible
query II rowsort label-7867
SELECT + MIN ( - 99 ) AS col2, + COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-99
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7868
SELECT CAST( NULL AS SIGNED ) + + col0 * + 70 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7868
SELECT CAST ( NULL AS INTEGER ) + + col0 * + 70 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT - + 75 + + col1 FROM tab0 AS cor0
----
-54
-74
6

query I rowsort
SELECT 49 * - col1 * - col0 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 * - 41 * - - 34 * + col2 IS NOT NULL
----

query I rowsort
SELECT - - col0 + - col0 + + + col0 * 83 FROM tab0 AS cor0
----
1245
7221
8051

query II rowsort
SELECT DISTINCT + + 68, col2 AS col2 FROM tab0 cor0
----
68
10
68
47
68
99

onlyif mysql # DIV for integer division: 
query I rowsort label-7873
SELECT - 53 DIV + 60 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7873
SELECT - 53 / + 60 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7874
SELECT DISTINCT ( COUNT( ALL - 61 ) ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7874
SELECT DISTINCT ( COUNT ( ALL - 61 ) ) col0 FROM tab1
----
3

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + + col2, 45 )
----

query II rowsort
SELECT - col0 * 96 AS col0, col1 * col0 AS col1 FROM tab2
----
-4416
2346
-6144
4928
-7200
5025

query I rowsort
SELECT ALL ( + + col0 ) + 5 FROM tab1
----
56
90
96

query I rowsort
SELECT ALL + - col2 + + + col0 * + - 33 FROM tab2 AS cor0
----
-1541
-2152
-2533

query I rowsort
SELECT ALL + - 95 + - col0 FROM tab0 cor0
----
-110
-182
-192

query I rowsort
SELECT ALL + 83 AS col2 FROM tab0 cor0
----
83
83
83

query I rowsort
SELECT 32 * col2 + - 47 FROM tab1 AS cor0
----
1841
2129
3025

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 66 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 36 + col2 * 90 FROM tab2 AS cor0
----
2034
3564
5184

query I rowsort
SELECT DISTINCT col0 + - - 15 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7885
SELECT DISTINCT - COUNT( DISTINCT - 4 ) - - 26 DIV - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-7885
SELECT DISTINCT - COUNT ( DISTINCT - 4 ) - - 26 / - COUNT ( * ) AS col1 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-7886
SELECT ALL + COUNT( * ) - - 42 AS col0 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-7886
SELECT ALL + COUNT ( * ) - - 42 AS col0 FROM tab2
----
45

query I rowsort
SELECT ALL + 39 + col0 FROM tab0
----
126
136
54

query I rowsort
SELECT ALL - + col0 FROM tab0 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT ALL + col0 + + + 73 AS col2 FROM tab0 AS cor0
----
160
170
88

query I rowsort
SELECT - col1 + + - col1 AS col0 FROM tab1 AS cor0 WHERE ( NOT NULL IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7891
SELECT DISTINCT COUNT( * ) AS col2, 17 DIV 91 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-7891
SELECT DISTINCT COUNT ( * ) AS col2, 17 / 91 AS col2 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0
0

query I rowsort
SELECT col0 - + 28 FROM tab2 AS cor0
----
18
36
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7893
SELECT + SUM( col2 ) AS col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-7893
SELECT + SUM ( col2 ) AS col2 FROM tab0 cor0
----
156

query I rowsort
SELECT DISTINCT ( - - col0 ) * - - col0 AS col0 FROM tab0 AS cor0
----
225
7569
9409

query II rowsort
SELECT 94 AS col2, - 39 FROM tab2 AS cor0
----
94
-39
94
-39
94
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-7896
SELECT ALL + COUNT( * ) * + COUNT( ALL 70 ) FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-7896
SELECT ALL + COUNT ( * ) * + COUNT ( ALL 70 ) FROM tab1
----
9

query I rowsort
SELECT DISTINCT + 90 * - col0 FROM tab0
----
-1350
-7830
-8730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7898
SELECT DISTINCT + col1 / - ( - CAST( NULL AS SIGNED ) ) / + + 79 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT + col1 / - ( - CAST ( NULL AS INTEGER ) ) / + + 79 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 53 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7901
SELECT ALL - - COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-7901
SELECT ALL - - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7902
SELECT - ( - 96 ) * + COUNT( - 50 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
864

skipif mysql # not compatible
query I rowsort label-7902
SELECT - ( - 96 ) * + COUNT ( - 50 ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
864

onlyif mysql # aggregate syntax: 
query I rowsort label-7903
SELECT ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7903
SELECT ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT 94 AS col1 FROM tab1 cor0
----
94
94
94

onlyif mysql # aggregate syntax: 
query I rowsort label-7905
SELECT + 70 * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-7905
SELECT + 70 * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
210

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT + MIN( + - col1 ) AS col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-7906
SELECT + MIN ( + - col1 ) AS col2 FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-7907
SELECT - COUNT( ( - - 63 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7907
SELECT - COUNT ( ( - - 63 ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-7908
SELECT DISTINCT + ( + 70 ) + + 17 DIV 69 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-7908
SELECT DISTINCT + ( + 70 ) + + 17 / 69 FROM tab1 AS cor0
----
70

query III rowsort
SELECT ALL * FROM tab2 WHERE - + 67 BETWEEN + + col2 * - + col0 + ( + col0 ) AND 12
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( 86 ) FROM tab2 WHERE + col2 + col0 = NULL
----

query III rowsort
SELECT * FROM tab0 WHERE col0 + 74 + - - col1 IS NULL
----

query I rowsort
SELECT 82 + - + col1 * - 27 + - + 64 AS col1 FROM tab1
----
1287
153
396

query I rowsort
SELECT ALL - col0 + + 78 + - ( - col0 ) * - 49 FROM tab0 AS cor0
----
-4272
-4772
-672

query I rowsort
SELECT DISTINCT - col0 + + 67 AS col2 FROM tab2 AS cor0
----
-8
21
3

query I rowsort
SELECT ALL + col0 * + col1 + - ( - col2 ) + 13 AS col2 FROM tab1 AS cor0
----
4358
497
823

onlyif mysql # aggregate syntax: 
query I rowsort label-7916
SELECT DISTINCT - COUNT( ALL + ( - ( - - col1 ) ) ) - COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-7916
SELECT DISTINCT - COUNT ( ALL + ( - ( - - col1 ) ) ) - COUNT ( * ) FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-7917
SELECT col0 DIV col0 * col2 + - col0 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-7917
SELECT col0 / col0 * col2 + - col0 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-7918
SELECT DISTINCT - COUNT( * ) + - SUM( - col1 ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-7918
SELECT DISTINCT - COUNT ( * ) + - SUM ( - col1 ) AS col1 FROM tab1 AS cor0
----
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 15 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT - 64 * + - SUM( + 72 ) + + + 46 FROM tab2 AS cor0
----
13870

skipif mysql # not compatible
query I rowsort label-7920
SELECT - 64 * + - SUM ( + 72 ) + + + 46 FROM tab2 AS cor0
----
13870

query I rowsort
SELECT ALL + - col2 * ( + + col0 ) AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT + + 94 * col2 * - col2 FROM tab2 AS cor0
----
-150400
-316216
-49726

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 8 col0 FROM tab2 cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - - 96 col1 FROM tab1
----
-5664
-6528
-9216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7925
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) AND + - CAST( NULL AS SIGNED ) * + col2 + + col2 + + col0 * + col0 - + col1
----

skipif mysql # not compatible
query III rowsort label-7925
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) AND + - CAST ( NULL AS INTEGER ) * + col2 + + col2 + + col0 * + col0 - + col1
----

query I rowsort
SELECT DISTINCT 8 * ( 58 ) AS col0 FROM tab0
----
464

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * ( + col0 ) + col1 + + - ( 55 ) col2 FROM tab2
----
2342
4950
5037

onlyif mysql # aggregate syntax: 
query I rowsort label-7928
SELECT + - COUNT( * ) * 72 + - ( - COUNT( * ) ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-7928
SELECT + - COUNT ( * ) * 72 + - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-213

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT DISTINCT - MIN( - col2 ) + - COUNT( * ) col0 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7929
SELECT DISTINCT - MIN ( - col2 ) + - COUNT ( * ) col0 FROM tab1 AS cor0
----
93

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT + col1 <> NULL )
----

query I rowsort
SELECT DISTINCT + + col1 + - col2 - col2 AS col0 FROM tab0 AS cor0
----
-13
-197
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) >= col0
----

query I rowsort
SELECT ALL + col0 + - - col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT - - col1 * + 97 * 51 FROM tab1 AS cor0 WHERE + 65 BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT + + 60 + col2 + - 12 FROM tab1 cor0
----
107
116
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - - col1 AND NULL
----

query I rowsort
SELECT - ( col0 ) * + col0 AS col0 FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE - 3 / - - 34 * col1 + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7939
SELECT col0 DIV col1 DIV + - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7939
SELECT col0 / col1 / + - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT ( - 32 ) AS col2 FROM tab2
----
-32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 73 + col2 * ( - 88 ) * ( - 83 ) + + + 6 * - 82, 67 col2 FROM tab1
----
430517
67
496253
67
700765
67

query I rowsort
SELECT ALL 15 FROM tab1 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7943
SELECT - col1 * col0 DIV + - 86 - col2 AS col0 FROM tab2
----
0
17
4

skipif mysql # not compatible
query I rowsort label-7943
SELECT - col1 * col0 / + - 86 - col2 AS col0 FROM tab2
----
0
17
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7944
SELECT DISTINCT + COUNT( * ) + 53 FROM tab0 WHERE 65 + + 95 * - + col1 IS NULL
----
53

skipif mysql # not compatible
query I rowsort label-7944
SELECT DISTINCT + COUNT ( * ) + 53 FROM tab0 WHERE 65 + + 95 * - + col1 IS NULL
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL - COUNT( * ) + + COUNT( * ) * - - 32 AS col2 FROM tab2
----
93

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - COUNT ( * ) + + COUNT ( * ) * - - 32 AS col2 FROM tab2
----
93

query I rowsort
SELECT ALL - - 52 + + + col0 AS col2 FROM tab1 AS cor0
----
103
137
143

query I rowsort
SELECT + + col1 + + col2 + - col1 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT - col2 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - col1 + 45 AS col1 FROM tab0 AS cor0
----
-36
24
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7950
SELECT ALL CAST( NULL AS SIGNED ) * + - col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7950
SELECT ALL CAST ( NULL AS INTEGER ) * + - col0 - - col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - 57 AS col0, col0 AS col1 FROM tab2
----
-57
46
-57
64
-57
75

query II rowsort
SELECT DISTINCT + col2 AS col2, col0 * - col0 FROM tab2
----
23
-2116
40
-4096
58
-5625

query I rowsort
SELECT ALL col1 * - ( + col0 ) AS col2 FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT 38 FROM tab2 AS cor0 WHERE NOT + col0 = ( - col1 )
----
38
38
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7955
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 < + CAST( NULL AS SIGNED ) + + ( + 41 ) + + + 82
----
0

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 < + CAST ( NULL AS INTEGER ) + + ( + 41 ) + + + 82
----
0

query I rowsort
SELECT - 29 * + col2 * + col0 + + 76 AS col2 FROM tab1 AS cor0
----
-141908
-145359
-179376

query I rowsort
SELECT DISTINCT + + ( - - col0 ) * + col1 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-7958
SELECT COUNT( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7958
SELECT COUNT ( ALL + col1 ) AS col2 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 13 * ( col1 ) FROM tab1 AS cor0
----
182
611
65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7960
SELECT - + 14 AS col0, - CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-14
-3

skipif mysql # not compatible
query II rowsort label-7960
SELECT - + 14 AS col0, - CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-14
-3

query II rowsort
SELECT ALL + - 20 * + + col1, + col1 FROM tab0 AS cor0
----
-1620
81
-20
1
-420
21

onlyif mysql # aggregate syntax: 
query II rowsort label-7962
SELECT ALL 30 AS col0, + COUNT( * ) + - 4 FROM tab2 AS cor0
----
30
-1

skipif mysql # not compatible
query II rowsort label-7962
SELECT ALL 30 AS col0, + COUNT ( * ) + - 4 FROM tab2 AS cor0
----
30
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-7963
SELECT - 65 AS col2, + MAX( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
-65
58

skipif mysql # not compatible
query II rowsort label-7963
SELECT - 65 AS col2, + MAX ( ALL + + col2 ) AS col1 FROM tab2 AS cor0
----
-65
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7964
SELECT DISTINCT CAST( NULL AS SIGNED ) * - 71 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - 71 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN - col1 + - 30 AND - 98 / - col1
----

query I rowsort
SELECT - + col0 + - + ( + ( + + col0 ) ) * - col2 + + col2 * + col1 AS col2 FROM tab2 WHERE NOT + col0 > 57 * - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7967
SELECT DISTINCT CAST( NULL AS SIGNED ) * AVG ( DISTINCT - col1 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7967
SELECT DISTINCT CAST ( NULL AS INTEGER ) * AVG ( DISTINCT - col1 ) FROM tab2
----
NULL

query I rowsort
SELECT - + col1 * + - col1 + - - col2 + + 88 FROM tab1 AS cor0
----
172
2365
380

onlyif mysql # DIV for integer division: 
query I rowsort label-7969
SELECT DISTINCT - col2 DIV + 89 FROM tab0 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-7969
SELECT DISTINCT - col2 / + 89 FROM tab0 AS cor0
----
-1
0

query II rowsort
SELECT ALL + ( - col0 ) - col1, 11 FROM tab0 AS cor0 WHERE NOT - 89 IS NOT NULL
----

query I rowsort
SELECT 73 * + - col1 FROM tab2
----
-3723
-4891
-5621

query I rowsort
SELECT DISTINCT 23 + - - col1 * - 69 * - 36 + + - ( - - col0 ) + - col2 FROM tab1
----
116612
12299
34652

query I rowsort
SELECT ALL - 99 + 24 AS col1 FROM tab2 cor0
----
-75
-75
-75

query II rowsort
SELECT + col1 AS col1, - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query I rowsort
SELECT + ( ( - 99 ) ) * col0 AS col1 FROM tab1 AS cor0
----
-5049
-8415
-9009

query I rowsort
SELECT ALL - 59 + + col0 * - + 54 FROM tab1 AS cor0
----
-2813
-4649
-4973

onlyif mysql # aggregate syntax: 
query I rowsort label-7977
SELECT + - COUNT( * ) * - ( + ( 95 ) ) + + - 30 AS col2 FROM tab2 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-7977
SELECT + - COUNT ( * ) * - ( + ( 95 ) ) + + - 30 AS col2 FROM tab2 AS cor0
----
255

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7978
SELECT COUNT( * ) + - + 12 - + 74 DIV + 3 col1, - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-33
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7978
SELECT COUNT ( * ) + - + 12 - + 74 / + 3 col1, - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-33
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7979
SELECT ALL + 81 + - - MAX( + col1 ) FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-7979
SELECT ALL + 81 + - - MAX ( + col1 ) FROM tab2 AS cor0
----
158

query III rowsort
SELECT * FROM tab2 WHERE NULL <> col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7981
SELECT DISTINCT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, col2 * - col0 col2 FROM tab2
----
NULL
-1058
NULL
-2560
NULL
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7981
SELECT DISTINCT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, col2 * - col0 col2 FROM tab2
----
NULL
-1058
NULL
-2560
NULL
-4350

query I rowsort
SELECT DISTINCT col0 + col2 + - col2 AS col0 FROM tab1
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 31 col1 FROM tab2
----
31
31
31

query II rowsort
SELECT + 61 * col2, - col0 AS col0 FROM tab0
----
2867
-15
6039
-97
610
-87

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - col0 + - col2 * + 99 IN ( - col2 / - col1 - + col1 )
----

query II rowsort
SELECT - col2 * + + col2 * - - 28 * + col1, - col1 AS col2 FROM tab1 AS cor0
----
-3612672
-14
-487340
-5
-6085184
-47

query I rowsort
SELECT DISTINCT - + col0 - - - col2 FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT + col1 + - + 96 FROM tab1 AS cor0 WHERE + col0 IS NULL
----

query I rowsort
SELECT 61 - + 86 AS col1 FROM tab0 AS cor0
----
-25
-25
-25

query II rowsort
SELECT - 26, 30 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 56 + + + col2 FROM tab1 AS cor0
----
115
124
152

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col2 NOT IN ( + col1, - col2 * + col0, + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7993
SELECT col1 DIV 43 AS col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7993
SELECT col1 / 43 AS col2 FROM tab2
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7994
SELECT + col1 * + - CAST( NULL AS SIGNED ) + - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7994
SELECT + col1 * + - CAST ( NULL AS INTEGER ) + - - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 * - 87 * + col2 FROM tab2 AS cor0
----
-222720
-378450
-92046

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 25 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7997
SELECT ALL + COUNT( ALL + col2 ) + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

skipif mysql # not compatible
query I rowsort label-7997
SELECT ALL + COUNT ( ALL + col2 ) + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
6

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL 33, - col2 AS col2 FROM tab2
----
33
-23
33
-40
33
-58

query II rowsort
SELECT col2, - col0 * - - col0 * + 23 FROM tab1
----
59
-166175
68
-190463
96
-59823

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8001
SELECT ALL COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8001
SELECT ALL COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * + col0 + + col0 - ( + 83 ) BETWEEN NULL AND 26 * - 82 * + + 78 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, 18 col0 FROM tab1
----
59
18
68
18
96
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 90 col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - + col2 + - 91 FROM tab2 cor0
----
-114
-131
-149

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8006
SELECT ALL + CAST( - AVG ( DISTINCT - 42 ) AS SIGNED ) FROM tab1 cor0
----
42

skipif mysql # not compatible
query I rowsort label-8006
SELECT ALL + CAST ( - AVG ( DISTINCT - 42 ) AS INTEGER ) FROM tab1 cor0
----
42

query I rowsort
SELECT 83 + - + col1 * - col1 - - ( - 17 ) - - - col0 FROM tab1
----
211
2184
6

query I rowsort
SELECT DISTINCT - + col0 + - - col0 FROM tab2 WHERE col1 IS NOT NULL
----
0

query I rowsort
SELECT - 32 + - - col2 FROM tab1
----
27
36
64

query II rowsort
SELECT col1 * col1 + 84, - col0 AS col1 FROM tab2
----
2685
-46
4573
-75
6013
-64

query I rowsort
SELECT DISTINCT + col2 * + - col2 * + col2 + + + col0 * + + ( - - col1 ) FROM tab2 AS cor0
----
-190087
-59072
-9821

query I rowsort
SELECT DISTINCT + + col1 + + + col2 AS col0 FROM tab1 cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 15 col1 FROM tab1 AS cor0
----
-210
-705
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8014
SELECT DISTINCT + 79 - + 74 + - 64 * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-8014
SELECT DISTINCT + 79 - + 74 + - 64 * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-187

onlyif mysql # DIV for integer division: 
query I rowsort label-8015
SELECT + 48 * + - col2 - - 10 + + col0 DIV + + 73 + - + col2 + 27 * - 50 * - 90 FROM tab2
----
118669
119550
120383

skipif mysql # not compatible
query I rowsort label-8015
SELECT + 48 * + - col2 - - 10 + + col0 / + + 73 + - + col2 + 27 * - 50 * - 90 FROM tab2
----
118669
119550
120383

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8016
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( + ( CAST( - 5 AS SIGNED ) ), 8 * + col2 * + col0, + + col1 ) AND NULL BETWEEN col2 + - 24 AND + 65 + - col1
----

skipif mysql # not compatible
query III rowsort label-8016
SELECT ALL * FROM tab1 WHERE ( NULL ) IN ( + ( CAST ( - 5 AS INTEGER ) ), 8 * + col2 * + col0, + + col1 ) AND NULL BETWEEN col2 + - 24 AND + 65 + - col1
----

query III rowsort
SELECT * FROM tab0 WHERE NULL = + ( 63 )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND + - col2
----

query II rowsort
SELECT ALL - 77, 51 + + col1 AS col2 FROM tab0
----
-77
132
-77
52
-77
72

query I rowsort
SELECT - col1 + - - col0 + + col1 - - 49 * + - 13 AS col2 FROM tab2
----
-562
-573
-591

query I rowsort
SELECT ALL - col1 + - + 20 FROM tab1
----
-25
-34
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 88 col1, col2 AS col2 FROM tab2 AS cor0
----
88
23
88
40
88
58

query II rowsort
SELECT col0, col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query I rowsort
SELECT + + 88 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 * ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col0 * - - col2 AS col1, col0 + - + ( - 64 ) FROM tab2 AS cor0
----
1058
110
2560
128
4350
139

onlyif mysql # aggregate syntax: 
query I rowsort label-8027
SELECT - MAX( ALL + col0 ) AS col0 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8027
SELECT - MAX ( ALL + col0 ) AS col0 FROM tab0 cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT + 78 * + - 79 + COUNT( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-6159

skipif mysql # not compatible
query I rowsort label-8028
SELECT + 78 * + - 79 + COUNT ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-6159

query II rowsort
SELECT - ( + col0 ), - col2 AS col2 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT + + COUNT( ALL - col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8030
SELECT + + COUNT ( ALL - col2 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= - 72
----

query II rowsort
SELECT - col2, - 28 AS col1 FROM tab1
----
-59
-28
-68
-28
-96
-28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8033
SELECT - + col2 - - - col0 + CAST( NULL AS SIGNED ) * + 91 FROM tab2 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8033
SELECT - + col2 - - - col0 + CAST ( NULL AS INTEGER ) * + 91 FROM tab2 WHERE NOT - col0 IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 80 FROM tab2
----
-4080
-5360
-6160

onlyif mysql # aggregate syntax: 
query I rowsort label-8035
SELECT ALL - COUNT( * ) + + + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8035
SELECT ALL - COUNT ( * ) + + + COUNT ( * ) FROM tab1
----
0

query I rowsort
SELECT ALL - ( + - col2 ) * - col2 FROM tab0 AS cor0
----
-100
-2209
-9801

onlyif mysql # aggregate syntax: 
query I rowsort label-8037
SELECT COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
query I rowsort label-8037
SELECT COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT ALL + COUNT( * ) + COUNT( * ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8038
SELECT ALL + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1
----
6

query I rowsort
SELECT - col2 + 68 FROM tab2 cor0
----
10
28
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8040
SELECT ALL + col2 + + CAST( col2 AS SIGNED ) col0 FROM tab1 AS cor0
----
118
136
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8040
SELECT ALL + col2 + + CAST ( col2 AS INTEGER ) col0 FROM tab1 AS cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-8041
SELECT ALL COUNT( DISTINCT - - 25 ) * 41 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND + col1 * - 83
----
0

skipif mysql # not compatible
query I rowsort label-8041
SELECT ALL COUNT ( DISTINCT - - 25 ) * 41 AS col0 FROM tab1 AS cor0 WHERE + col1 BETWEEN ( NULL ) AND + col1 * - 83
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8042
SELECT + + col0 * + - col0 + + - col2 + - + col2 * + - CAST( NULL AS SIGNED ) + - col2 + - - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8042
SELECT + + col0 * + - col0 + + - col2 + - + col2 * + - CAST ( NULL AS INTEGER ) + - col2 + - - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - ( - - 44 ) + col1 FROM tab0 AS cor0
----
-23
-43
37

onlyif mysql # DIV for integer division: 
query I rowsort label-8044
SELECT - 74 DIV - + col0 + + - 30 * ( - 52 ) * + - col2 AS col0 FROM tab1 AS cor0
----
-106080
-149759
-92040

skipif mysql # not compatible
query I rowsort label-8044
SELECT - 74 / - + col0 + + - 30 * ( - 52 ) * + - col2 AS col0 FROM tab1 AS cor0
----
-106080
-149759
-92040

query I rowsort
SELECT + 45 + col2 + col2 AS col1 FROM tab0 AS cor0
----
139
243
65

query I rowsort
SELECT - col0 * - + 97 AS col1 FROM tab2
----
4462
6208
7275

query II rowsort
SELECT col0 * 0, - col0 AS col1 FROM tab0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT DISTINCT - 90 * + col0 AS col1 FROM tab1
----
-4590
-7650
-8190

onlyif mysql # aggregate syntax: 
query I rowsort label-8049
SELECT ALL - 95 * - MIN( col2 ) * 93 * 71 + 13 FROM tab0 cor0 WHERE col1 * - + col2 * col1 * + - 9 IS NOT NULL
----
6272863

skipif mysql # not compatible
query I rowsort label-8049
SELECT ALL - 95 * - MIN ( col2 ) * 93 * 71 + 13 FROM tab0 cor0 WHERE col1 * - + col2 * col1 * + - 9 IS NOT NULL
----
6272863

onlyif mysql # aggregate syntax: 
query I rowsort label-8050
SELECT SUM( ALL - - 68 ) AS col0 FROM tab0 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-8050
SELECT SUM ( ALL - - 68 ) AS col0 FROM tab0 AS cor0
----
204

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + 43 ) BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8052
SELECT ALL 62 col0, - COUNT( * ) + + MIN( 52 ) FROM tab2
----
62
49

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8052
SELECT ALL 62 col0, - COUNT ( * ) + + MIN ( 52 ) FROM tab2
----
62
49

query II rowsort
SELECT DISTINCT col1 AS col2, + 67 AS col1 FROM tab0 AS cor0
----
1
67
21
67
81
67

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8054
SELECT ALL - + col2 AS col0, - ( - 25 ) + col2 + + CAST( - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-8054
SELECT ALL - + col2 AS col0, - ( - 25 ) + col2 + + CAST ( - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-59
NULL
-68
NULL
-96
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8055
SELECT DISTINCT - 77 / CAST( NULL AS DECIMAL ) + + + col1 / - + 58 * - col0 * + 50 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8055
SELECT DISTINCT - 77 / CAST ( NULL AS REAL ) + + + col1 / - + 58 * - col0 * + 50 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 80 = - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + - ( col2 ) ) AS col1 FROM tab1
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 - - 56 * 55 IS NULL
----

query I rowsort
SELECT ALL - col0 + col1 * ( + - 7 ) * - col1 AS col0 FROM tab0
----
-90
3000
45912

onlyif mysql # aggregate syntax: 
query I rowsort label-8061
SELECT + ( - MAX( ALL + col2 ) ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8061
SELECT + ( - MAX ( ALL + col2 ) ) AS col0 FROM tab0
----
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + ( + col1 ) ) col0 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT col0 + - ( - + col1 ) FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT ALL 41 + + - COUNT( * ) + 47 AS col2 FROM tab2
----
85

skipif mysql # not compatible
query I rowsort label-8064
SELECT ALL 41 + + - COUNT ( * ) + 47 AS col2 FROM tab2
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8065
SELECT DISTINCT - COUNT( * ) + 96 + - - 65 FROM tab2
----
158

skipif mysql # not compatible
query I rowsort label-8065
SELECT DISTINCT - COUNT ( * ) + 96 + - - 65 FROM tab2
----
158

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT ALL + SUM( ALL - ( + + col2 ) ) FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-8066
SELECT ALL + SUM ( ALL - ( + + col2 ) ) FROM tab1 AS cor0
----
-223

onlyif mysql # aggregate syntax: 
query II rowsort label-8067
SELECT 1 + - COUNT( * ) - - 40 AS col2, - 31 FROM tab1
----
38
-31

skipif mysql # not compatible
query II rowsort label-8067
SELECT 1 + - COUNT ( * ) - - 40 AS col2, - 31 FROM tab1
----
38
-31

query III rowsort
SELECT * FROM tab0 WHERE 17 * + col2 + - 36 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8069
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8069
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + ( 94 ) * + col0 / + ( - - col0 ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 4 NOT BETWEEN + col2 * + col2 * - col0 AND NULL
----

query I rowsort
SELECT DISTINCT 42 - + col1 AS col0 FROM tab0 cor0
----
-39
21
41

query I rowsort
SELECT ALL + - col2 * + 66 + - + col2 AS col1 FROM tab0 cor0
----
-3149
-6633
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 25 - - 27 col0 FROM tab2 AS cor0
----
52
52
52

query II rowsort
SELECT - 19 - 55 + - + col0 AS col0, 3 AS col2 FROM tab1 AS cor0
----
-125
3
-159
3
-165
3

query I rowsort
SELECT ( + col0 ) - - col1 FROM tab1
----
138
65
90

query I rowsort
SELECT col1 * - + col2 * + col1 AS col1 FROM tab1
----
-1475
-150212
-18816

query I rowsort
SELECT ALL 2 - + col2 + col2 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
2
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8079
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) * + col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8079
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) * + col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col0 * + + col2 + - - col1 FROM tab0 cor0
----
-624
-849
-9602

onlyif mysql # aggregate syntax: 
query I rowsort label-8081
SELECT MIN( DISTINCT 7 ) FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-8081
SELECT MIN ( DISTINCT 7 ) FROM tab0 cor0
----
7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - 0 + - col1 AND + + col1 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8083
SELECT ALL + 60 * - - COUNT( * ) * - + COUNT( * ) FROM tab0 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-8083
SELECT ALL + 60 * - - COUNT ( * ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-540

onlyif mysql # DIV for integer division: 
query I rowsort label-8084
SELECT + col2 DIV + - ( col2 ) AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8084
SELECT + col2 / + - ( col2 ) AS col1 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 6 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <= + - 19 * + + col2 + col2
----

query I rowsort
SELECT 20 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <> 18 / - col0
----

query II rowsort
SELECT ALL + col1 * + col0 AS col0, + col1 FROM tab0 cor0
----
1215
81
1827
21
97
1

query I rowsort
SELECT - ( col2 ) * 31 * + + 81 FROM tab2 AS cor0
----
-100440
-145638
-57753

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8090
SELECT ALL CAST( NULL AS DECIMAL ) + + + 81 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8090
SELECT ALL CAST ( NULL AS REAL ) + + + 81 * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8091
SELECT - MAX( + col0 ) * + 73 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-7084

skipif mysql # not compatible
query I rowsort label-8091
SELECT - MAX ( + col0 ) * + 73 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-7084

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT - 19 * - - MIN( ( + col0 ) ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-8092
SELECT - 19 * - - MIN ( ( + col0 ) ) FROM tab0 AS cor0
----
-285

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT col1 > col2 )
----

query I rowsort
SELECT + - 47 + - 13 AS col0 FROM tab2 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query II rowsort label-8095
SELECT DISTINCT + COUNT( * ) col1, 93 FROM tab1
----
3
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8095
SELECT DISTINCT + COUNT ( * ) col1, 93 FROM tab1
----
3
93

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL = - col0 * - + 71
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 16 > + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - ( + + 74 ) col2 FROM tab1
----
-27
-60
-69

query III rowsort
SELECT * FROM tab0 WHERE - col2 < NULL
----

query II rowsort
SELECT col1 AS col0, col1 AS col2 FROM tab0 AS cor0
----
1
1
21
21
81
81

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 20 + + col2 + - col2 - - col1 * col2 BETWEEN - col0 * 68 + - col0 + - col1 * col2 * + 68 * col2 + - + 10 AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8102
SELECT DISTINCT - col1 + col0 + + 45 DIV - 10 + + - col0 * 1 - - col1 + + + col1 FROM tab0 AS cor0
----
-3
17
77

skipif mysql # not compatible
query I rowsort label-8102
SELECT DISTINCT - col1 + col0 + + 45 / - 10 + + - col0 * 1 - - col1 + + + col1 FROM tab0 AS cor0
----
-3
17
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8103
SELECT ALL ( + - MAX( col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL ( + - MAX ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 + 16 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 47 - col1 + + col0 FROM tab2 AS cor0
----
-39
-52
-60

query I rowsort
SELECT ALL - 68 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

query I rowsort
SELECT ALL + 59 * - + 42 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3c5e5916f274184b47f8491ddc1c1f6d

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT DISTINCT MIN( - - col0 ) col1 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8108
SELECT DISTINCT MIN ( - - col0 ) col1 FROM tab1
----
51

query I rowsort
SELECT DISTINCT 94 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
94

query II rowsort
SELECT ALL - col0 * - col0 * + col2 + col1 AS col0, - 44 + - 1 FROM tab1
----
249710
-45
426280
-45
563155
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8111
SELECT DISTINCT + COUNT( * ) + MAX( DISTINCT - + col0 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8111
SELECT DISTINCT + COUNT ( * ) + MAX ( DISTINCT - + col0 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-15

query II rowsort
SELECT - - 66 + - - col0, 53 + + col2 AS col2 FROM tab1 cor0
----
117
149
151
112
157
121

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 + - - col2 * - + col1 BETWEEN NULL AND - col1
----

query I rowsort
SELECT col2 + - 69 FROM tab0 cor0
----
-22
-59
30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8115
SELECT DISTINCT 78 DIV COUNT( * ) AS col1, SUM( + col1 ) * - 64 AS col2 FROM tab0 AS cor0 WHERE NOT + 22 IS NULL
----
26
-6592

skipif mysql # not compatible
query II rowsort label-8115
SELECT DISTINCT 78 / COUNT ( * ) AS col1, SUM ( + col1 ) * - 64 AS col2 FROM tab0 AS cor0 WHERE NOT + 22 IS NULL
----
26
-6592

query I rowsort
SELECT DISTINCT + col2 - - 33 AS col2 FROM tab2 cor0 WHERE 60 * col1 IS NOT NULL
----
56
73
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 + + col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 32 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 67 * col1 AS col2 FROM tab1
----
3149
335
938

query I rowsort
SELECT + ( col0 ) * 82 * + + 78 FROM tab2
----
294216
409344
479700

onlyif mysql # aggregate syntax: 
query I rowsort label-8121
SELECT DISTINCT + SUM( + 22 ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-8121
SELECT DISTINCT + SUM ( + 22 ) FROM tab1
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-8122
SELECT DISTINCT - COUNT( * ) * - SUM( DISTINCT + col0 ) FROM tab2
----
555

skipif mysql # not compatible
query I rowsort label-8122
SELECT DISTINCT - COUNT ( * ) * - SUM ( DISTINCT + col0 ) FROM tab2
----
555

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT - COUNT( * ) * - 43 AS col0 FROM tab0
----
129

skipif mysql # not compatible
query I rowsort label-8123
SELECT - COUNT ( * ) * - 43 AS col0 FROM tab0
----
129

query I rowsort
SELECT ALL 77 * + 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + ( + 25 ) FROM tab1 AS cor0
----
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8126
SELECT + MAX( DISTINCT + 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-8126
SELECT + MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE - col0 + - ( + 25 ) >= + + col0 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-8127
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE - col0 + - ( + 25 ) >= + + col0 + + col0
----
0

query II rowsort
SELECT - 22, + col2 FROM tab2
----
-22
23
-22
40
-22
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8129
SELECT DISTINCT + - 73 DIV - - COUNT( * ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-8129
SELECT DISTINCT + - 73 / - - COUNT ( * ) FROM tab2 AS cor0
----
-24

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8131
SELECT ALL + 67 * CAST( + col2 AS SIGNED ) + + col1 + - - col1 AS col0 FROM tab2 AS cor0
----
1643
2834
4020

skipif mysql # not compatible
query I rowsort label-8131
SELECT ALL + 67 * CAST ( + col2 AS INTEGER ) + + col1 + - - col1 AS col0 FROM tab2 AS cor0
----
1643
2834
4020

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8132
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + CAST( - col1 AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8132
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + ( + CAST ( - col1 AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 83 col1 FROM tab0 cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8134
SELECT + col1 * - - 74 AS col1, - CAST( NULL AS SIGNED ) + - + col0 AS col1 FROM tab0 AS cor0
----
1554
NULL
5994
NULL
74
NULL

skipif mysql # not compatible
query II rowsort label-8134
SELECT + col1 * - - 74 AS col1, - CAST ( NULL AS INTEGER ) + - + col0 AS col1 FROM tab0 AS cor0
----
1554
NULL
5994
NULL
74
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT ALL COUNT( ALL col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8135
SELECT ALL COUNT ( ALL col2 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL 85 FROM tab2 WHERE NOT ( ( NOT 70 * 23 NOT IN ( 80 ) ) )
----
85
85
85

query III rowsort
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN + col1 AND + - 74
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT col0 < - - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8139
SELECT + 63 - - COUNT( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
72

skipif mysql # not compatible
query I rowsort label-8139
SELECT + 63 - - COUNT ( * ) AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
72

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8140
SELECT ALL + + CAST( NULL AS SIGNED ) col2, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8140
SELECT ALL + + CAST ( NULL AS INTEGER ) col2, - col0 FROM tab1 AS cor0
----
NULL
-51
NULL
-85
NULL
-91

query II rowsort
SELECT ALL col2 AS col1, col2 FROM tab0 AS cor0
----
10
10
47
47
99
99

query I rowsort
SELECT DISTINCT + 51 - col2 AS col0 FROM tab2 AS cor0 WHERE 41 BETWEEN + col0 AND ( - - 39 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8143
SELECT + COUNT( + col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8143
SELECT + COUNT ( + col2 ) AS col0 FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) <= NULL ) )
----

query II rowsort
SELECT DISTINCT 13 AS col0, - col0 FROM tab2 AS cor0
----
13
-46
13
-64
13
-75

query II rowsort
SELECT - 55 AS col0, 11 FROM tab0 AS cor0
----
-55
11
-55
11
-55
11

query I rowsort
SELECT ALL 30 AS col0 FROM tab1 AS cor0 WHERE - col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8148
SELECT DISTINCT ( + 17 ), + COUNT( * ) AS col1 FROM tab2
----
17
3

skipif mysql # not compatible
query II rowsort label-8148
SELECT DISTINCT ( + 17 ), + COUNT ( * ) AS col1 FROM tab2
----
17
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + 89 + + 71 NOT BETWEEN NULL AND + col2 * col2 * + 33 - + 95 * - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8150
SELECT - SUM( ALL + 15 ) FROM tab2 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8150
SELECT - SUM ( ALL + 15 ) FROM tab2 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-8151
SELECT DISTINCT + COUNT( col1 ) * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8151
SELECT DISTINCT + COUNT ( col1 ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

query I rowsort
SELECT + - ( - + 90 ) FROM tab0 AS cor0
----
90
90
90

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8153
SELECT DISTINCT - + ( - - col2 ) * - + CAST( - col0 AS SIGNED ), col1 AS col0 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

skipif mysql # not compatible
query II rowsort label-8153
SELECT DISTINCT - + ( - - col2 ) * - + CAST ( - col0 AS INTEGER ), col1 AS col0 FROM tab2 AS cor0
----
-1058
51
-2560
77
-4350
67

query I rowsort
SELECT 96 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 54 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 4 col1, - col0 AS col0 FROM tab0
----
-4
-15
-4
-87
-4
-97

query I rowsort
SELECT ALL + ( + + col1 ) + 61 AS col1 FROM tab1
----
108
66
75

query II rowsort
SELECT - col0 * + col0 - 9, col2 FROM tab1 AS cor0
----
-2610
96
-7234
59
-8290
68

query I rowsort
SELECT DISTINCT col2 + - col1 * - - 76 AS col0 FROM tab0 AS cor0
----
-1586
-6109
23

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8160
SELECT ALL - CAST( NULL AS DECIMAL ) * - COUNT( * ) / - MIN( ALL - col1 ) * SUM( + col1 ) + + + 49 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8160
SELECT ALL - CAST ( NULL AS REAL ) * - COUNT ( * ) / - MIN ( ALL - col1 ) * SUM ( + col1 ) + + + 49 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8161
SELECT + 61 * - 51 * SUM( ALL + 1 ) FROM tab2 cor0
----
-9333

skipif mysql # not compatible
query I rowsort label-8161
SELECT + 61 * - 51 * SUM ( ALL + 1 ) FROM tab2 cor0
----
-9333

query I rowsort
SELECT DISTINCT + + 2 + + - 40 AS col2 FROM tab0 AS cor0
----
-38

query I rowsort
SELECT ALL - col1 + - - col2 FROM tab0 AS cor0
----
-11
-34
98

query II rowsort
SELECT + + 1 + - 92 * - - 55 AS col1, col0 AS col0 FROM tab0 AS cor0
----
-5059
15
-5059
87
-5059
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 29 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8166
SELECT ALL - CAST( + SUM( - 30 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8166
SELECT ALL - CAST ( + SUM ( - 30 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL CAST( NULL AS SIGNED ) * - 0 * + ( + - 77 ) col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8167
SELECT ALL CAST ( NULL AS INTEGER ) * - 0 * + ( + - 77 ) col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE 64 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8169
SELECT + COUNT( * ), 80 + - 91 col0 FROM tab2
----
3
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8169
SELECT + COUNT ( * ), 80 + - 91 col0 FROM tab2
----
3
-11

query I rowsort
SELECT DISTINCT + 45 * 44 + + col2 AS col2 FROM tab2
----
2003
2020
2038

query I rowsort
SELECT DISTINCT - 10 + + 95 * - - col0 FROM tab1 AS cor0
----
4835
8065
8635

query I rowsort
SELECT DISTINCT - col2 * + col2 * 79 AS col2 FROM tab2 AS cor0
----
-126400
-265756
-41791

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8174
SELECT DISTINCT + COUNT( * ) + 65 * 21 + ( - 72 ) FROM tab0 AS cor0
----
1296

skipif mysql # not compatible
query I rowsort label-8174
SELECT DISTINCT + COUNT ( * ) + 65 * 21 + ( - 72 ) FROM tab0 AS cor0
----
1296

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE NOT + col0 + - col2 IS NOT NULL
----

query I rowsort
SELECT + col0 - 12 * col2 FROM tab2 AS cor0
----
-230
-416
-621

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8177
SELECT ALL + col0 * CAST( NULL AS SIGNED ) - - - ( - 40 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8177
SELECT ALL + col0 * CAST ( NULL AS INTEGER ) - - - ( - 40 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - ( col1 ) - - 82 + ( col0 ) FROM tab1 AS cor0
----
119
126
162

query I rowsort
SELECT 85 * 84 * + col0 FROM tab2
----
328440
456960
535500

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8180
SELECT - + ( + + MAX( col1 ) ) DIV ( 4 ) * 3 * - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-180

skipif mysql # not compatible
query I rowsort label-8180
SELECT - + ( + + MAX ( col1 ) ) / ( 4 ) * 3 * - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col2 ) * + col2 - + 94 + - col0 col0, - col1 AS col1 FROM tab0 AS cor0
----
-2318
-81
-281
-21
-9992
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-8182
SELECT DISTINCT + col1 DIV ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8182
SELECT DISTINCT + col1 / ( - col1 ) AS col2 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 col0 FROM tab1 WHERE ( - col1 ) / col1 + - - col1 IS NOT NULL
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8184
SELECT COUNT( DISTINCT - - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8184
SELECT COUNT ( DISTINCT - - col2 ) AS col0 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8185
SELECT - 67 DIV col0 + - 66 AS col2 FROM tab0 WHERE NOT - col2 + + col0 IS NULL
----
-66
-66
-70

skipif mysql # not compatible
query I rowsort label-8185
SELECT - 67 / col0 + - 66 AS col2 FROM tab0 WHERE NOT - col2 + + col0 IS NULL
----
-66
-66
-70

query I rowsort
SELECT DISTINCT col0 * 55 FROM tab2
----
2530
3520
4125

onlyif mysql # aggregate syntax: 
query II rowsort label-8187
SELECT COUNT( * ) AS col2, ( + 13 ) AS col2 FROM tab0
----
3
13

skipif mysql # not compatible
query II rowsort label-8187
SELECT COUNT ( * ) AS col2, ( + 13 ) AS col2 FROM tab0
----
3
13

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8188
SELECT DISTINCT - COUNT( * ) DIV - + 67 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8188
SELECT DISTINCT - COUNT ( * ) / - + 67 FROM tab0
----
0

query II rowsort
SELECT ALL col2 AS col0, + col2 AS col2 FROM tab2
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT col0 * - col0 + + + ( col2 ) + - col1 AS col0 FROM tab0 AS cor0
----
-259
-7580
-9311

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = + col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col1 ) >= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 = 18 + - 72
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT COUNT( * ) * - SUM( + 24 ) AS col1 FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-8194
SELECT COUNT ( * ) * - SUM ( + 24 ) AS col1 FROM tab2
----
-216

onlyif mysql # DIV for integer division: 
query I rowsort label-8195
SELECT col2 DIV 97 + 22 FROM tab0
----
22
22
23

skipif mysql # not compatible
query I rowsort label-8195
SELECT col2 / 97 + 22 FROM tab0
----
22
22
23

onlyif mysql # aggregate syntax: 
query I rowsort label-8196
SELECT SUM( 16 ) * - COUNT( * ) FROM tab2
----
-144

skipif mysql # not compatible
query I rowsort label-8196
SELECT SUM ( 16 ) * - COUNT ( * ) FROM tab2
----
-144

query I rowsort
SELECT - col0 + + ( 41 ) FROM tab1
----
-10
-44
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 15 col0 FROM tab1 WHERE + 2 BETWEEN NULL AND + col2 + 33
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8199
SELECT col0 DIV - col2 + + 59 FROM tab0
----
51
59
59

skipif mysql # not compatible
query I rowsort label-8199
SELECT col0 / - col2 + + 59 FROM tab0
----
51
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT DISTINCT + COUNT( * ) * COUNT( 67 ) col0 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8200
SELECT DISTINCT + COUNT ( * ) * COUNT ( 67 ) col0 FROM tab0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NULL = 91
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= - col0
----

query I rowsort
SELECT + 2 * + 17 AS col0 FROM tab1
----
34
34
34

query III rowsort
SELECT ALL * FROM tab2 WHERE + ( ( + col2 ) ) / col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8205
SELECT + 41 - + COUNT( * ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-8205
SELECT + 41 - + COUNT ( * ) FROM tab2
----
38

query I rowsort
SELECT ALL 30 * 18 FROM tab1
----
540
540
540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8207
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8207
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 col2 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE ( + ( - col1 ) ) BETWEEN ( + col1 ) AND ( col0 * - 89 + col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( col2 ) NOT IN ( 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 85 ) IS NOT NULL
----

query I rowsort
SELECT col0 + + ( - col0 + col1 ) AS col0 FROM tab0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8212
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 * - CAST( NULL AS SIGNED ) ) < - 74
----

skipif mysql # not compatible
query III rowsort label-8212
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col1 * - CAST ( NULL AS INTEGER ) ) < - 74
----

query III rowsort
SELECT * FROM tab1 WHERE 47 * col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8214
SELECT DISTINCT - ( - 70 ) * 1 AS col2 FROM tab0 WHERE NOT ( CAST( NULL AS SIGNED ) / 29 ) IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-8214
SELECT DISTINCT - ( - 70 ) * 1 AS col2 FROM tab0 WHERE NOT ( CAST ( NULL AS INTEGER ) / 29 ) IS NOT NULL
----
70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8215
SELECT - 0 DIV - MAX( col1 * 55 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT - 0 / - MAX ( col1 * 55 ) FROM tab1
----
0

query I rowsort
SELECT 27 * + col1 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8217
SELECT - 34 DIV - 21 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8217
SELECT - 34 / - 21 AS col0 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8218
SELECT 62 DIV COUNT( * ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-8218
SELECT 62 / COUNT ( * ) FROM tab2
----
20

onlyif mysql # DIV for integer division: 
query I rowsort label-8219
SELECT - col2 DIV - 20 FROM tab0
----
0
2
4

skipif mysql # not compatible
query I rowsort label-8219
SELECT - col2 / - 20 FROM tab0
----
0
2
4

onlyif mysql # DIV for integer division: 
query I rowsort label-8220
SELECT DISTINCT 81 DIV 1 + 50 FROM tab2
----
131

skipif mysql # not compatible
query I rowsort label-8220
SELECT DISTINCT 81 / 1 + 50 FROM tab2
----
131

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT DISTINCT + ( + COUNT( * ) ) AS col0 FROM tab1 WHERE - 21 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8221
SELECT DISTINCT + ( + COUNT ( * ) ) AS col0 FROM tab1 WHERE - 21 <= NULL
----
0

query I rowsort
SELECT + ( + 75 ) * - col0 FROM tab2
----
-3450
-4800
-5625

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 IN ( - col0 * - 78 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8224
SELECT ALL + ( COUNT( * ) ) - + MAX( + col2 + 73 * - col1 ) AS col1 FROM tab1 AS cor0
----
309

skipif mysql # not compatible
query I rowsort label-8224
SELECT ALL + ( COUNT ( * ) ) - + MAX ( + col2 + 73 * - col1 ) AS col1 FROM tab1 AS cor0
----
309

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT + 88 AS col2 FROM tab0 AS cor0 WHERE ( CAST( NULL AS SIGNED ) + col1 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-8225
SELECT + 88 AS col2 FROM tab0 AS cor0 WHERE ( CAST ( NULL AS INTEGER ) + col1 ) > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8226
SELECT DISTINCT + 10 - CAST( NULL AS SIGNED ) * col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8226
SELECT DISTINCT + 10 - CAST ( NULL AS INTEGER ) * col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 40 * + col1 FROM tab2 AS cor0
----
2040
2680
3080

query I rowsort
SELECT DISTINCT - ( 81 ) * 32 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 )
----
-2592

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 63 > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8230
SELECT - - 20 DIV COUNT( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8230
SELECT - - 20 / COUNT ( DISTINCT col2 ) col2 FROM tab0 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8231
SELECT - CAST( NULL AS SIGNED ) / ( - col0 ) FROM tab2 AS cor0 WHERE NOT 20 + + col0 BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8231
SELECT - CAST ( NULL AS INTEGER ) / ( - col0 ) FROM tab2 AS cor0 WHERE NOT 20 + + col0 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) NOT BETWEEN 81 - ( - 37 ) AND - 93
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8233
SELECT - + col1 DIV col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8233
SELECT - + col1 / col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8234
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL > col2
----
0

skipif mysql # not compatible
query I rowsort label-8234
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL > col2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT ALL + + ( - ( + ( 55 ) ) ) DIV 36 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8235
SELECT ALL + + ( - ( + ( 55 ) ) ) / 36 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + col2 + col0 NOT IN ( + 99 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE NOT NULL >= - col0 + col0
----

query I rowsort
SELECT ALL ( + 90 ) FROM tab0 AS cor0
----
90
90
90

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE col1 <> + ( - 0 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8240
SELECT - 25 * + MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8240
SELECT - 25 * + MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT DISTINCT MIN( DISTINCT 94 ) * - 93 AS col0 FROM tab2 WHERE ( NULL ) IN ( ( col2 ) * 19 + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8241
SELECT DISTINCT MIN ( DISTINCT 94 ) * - 93 AS col0 FROM tab2 WHERE ( NULL ) IN ( ( col2 ) * 19 + - col2 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8242
SELECT * FROM tab0 WHERE NOT - CAST( + col2 AS SIGNED ) - + col1 * - col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8242
SELECT * FROM tab0 WHERE NOT - CAST ( + col2 AS INTEGER ) - + col1 * - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8243
SELECT ALL - COUNT( * ) + + - 60 AS col2 FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-8243
SELECT ALL - COUNT ( * ) + + - 60 AS col2 FROM tab0
----
-63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN col0 AND + col1 * col2
----
85
5
59
91
47
68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > - col2 * + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8246
SELECT - - MIN( + - col0 ) AS col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8246
SELECT - - MIN ( + - col0 ) AS col2 FROM tab0 cor0
----
-97

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 IN ( 58 * + 4 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 96 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT 9 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT - 45 + + col1 AS col2 FROM tab2 AS cor0 WHERE + col2 <= col2
----
22
32
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT DISTINCT 22 + SUM( - + col1 ) + + MIN( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-178

skipif mysql # not compatible
query I rowsort label-8251
SELECT DISTINCT 22 + SUM ( - + col1 ) + + MIN ( ALL - col0 ) AS col2 FROM tab0 AS cor0
----
-178

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN col1 + - - 35 / + col1 AND - 79
----

query I rowsort
SELECT ALL + 16 + - + col1 AS col2 FROM tab2 AS cor0
----
-35
-51
-61

query I rowsort
SELECT - - 76 + + col1 FROM tab2 AS cor0
----
127
143
153

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 IN ( - + col1 + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN - ( - 35 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 NOT IN ( - - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 + + + ( - + col2 ) FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT DISTINCT - col0 AS col0, 91 FROM tab2 AS cor0
----
-46
91
-64
91
-75
91

query I rowsort
SELECT col2 FROM tab0 WHERE ( col2 ) IN ( 39 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col2 * col1 / + ( col1 * col2 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + - 26 / - 38 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + col0 * col0 AS col0 FROM tab2 WHERE NOT - + col1 IS NULL
----
2070
4032
5550

query I rowsort
SELECT + col2 * ( + 93 ) AS col0 FROM tab0
----
4371
9207
930

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT ALL - MIN( - col1 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-8265
SELECT ALL - MIN ( - col1 ) AS col1 FROM tab2
----
77

query I rowsort
SELECT DISTINCT - - col0 + - 65 * - 76 + + + col2 AS col1 FROM tab1 AS cor0
----
5084
5087
5099

query I rowsort
SELECT - 71 - + col2 FROM tab0 AS cor0
----
-118
-170
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT MAX( ALL + col2 ) - - 72 FROM tab2 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-8268
SELECT MAX ( ALL + col2 ) - - 72 FROM tab2 AS cor0
----
130

query I rowsort
SELECT - - col0 * - - col0 * - col1 + + col1 + col2 AS col2 FROM tab1 AS cor0
----
-36061
-36304
-389092

query I rowsort
SELECT ALL + 53 * - 41 * - + col0 FROM tab1 cor0
----
110823
184705
197743

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8271
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST( + ( - col0 ) AS SIGNED ) BETWEEN + col1 + col1 * + 51 AND col1
----

skipif mysql # not compatible
query III rowsort label-8271
SELECT DISTINCT * FROM tab1 AS cor0 WHERE CAST ( + ( - col0 ) AS INTEGER ) BETWEEN + col1 + col1 * + 51 AND col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8272
SELECT ALL + 99 * + CAST( NULL AS SIGNED ) / + col1 AS col1, 32 * 42 AS col2 FROM tab0
----
NULL
1344
NULL
1344
NULL
1344

skipif mysql # not compatible
query II rowsort label-8272
SELECT ALL + 99 * + CAST ( NULL AS INTEGER ) / + col1 AS col1, 32 * 42 AS col2 FROM tab0
----
NULL
1344
NULL
1344
NULL
1344

query I rowsort
SELECT ALL col2 + + col2 AS col0 FROM tab1 AS cor0 WHERE NOT 40 IS NULL
----
118
136
192

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( + col0, 9 * - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8275
SELECT DISTINCT col2 DIV + col0 AS col1 FROM tab0 cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-8275
SELECT DISTINCT col2 / + col0 AS col1 FROM tab0 cor0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8276
SELECT ALL + + col1, col2 * - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-8276
SELECT ALL + + col1, col2 * - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8277
SELECT DISTINCT MIN( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8277
SELECT DISTINCT MIN ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NULL < NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8278
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST( - + col2 AS SIGNED ) ) BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query III rowsort label-8278
SELECT * FROM tab0 AS cor0 WHERE NOT ( + CAST ( - + col2 AS INTEGER ) ) BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8279
SELECT COUNT( ALL col1 ) * + COUNT( * ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8279
SELECT COUNT ( ALL col1 ) * + COUNT ( * ) col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8280
SELECT DISTINCT AVG ( ALL + CAST( NULL AS DECIMAL ) ) col1 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8280
SELECT DISTINCT AVG ( ALL + CAST ( NULL AS REAL ) ) col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 79 col1, - 4 AS col1 FROM tab0
----
-79
-4
-79
-4
-79
-4

query II rowsort
SELECT + col1, 20 FROM tab1
----
14
20
47
20
5
20

onlyif mysql # aggregate syntax: 
query I rowsort label-8283
SELECT + COUNT( + ( col2 ) ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8283
SELECT + COUNT ( + ( col2 ) ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8284
SELECT ALL - + col0 DIV - 57 AS col0 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8284
SELECT ALL - + col0 / - 57 AS col0 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8285
SELECT COUNT( * ) + - 9 * COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + col1 * + col2 * col0 + + col2 + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8285
SELECT COUNT ( * ) + - 9 * COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + + col1 * + col2 * col0 + + col2 + + col0 )
----
0

query I rowsort
SELECT DISTINCT - 98 FROM tab1 WHERE - col2 NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE col0 >= + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + col1 ) * + 10 + - col1 FROM tab2 AS cor0
----
459
603
693

query I rowsort
SELECT ALL - col2 * + col1 FROM tab1 AS cor0 WHERE ( + 52 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 / col1 FROM tab2 AS cor0 WHERE ( + 35 * + 77 = NULL )
----

query I rowsort
SELECT DISTINCT - 90 + - ( - 63 ) AS col1 FROM tab0 cor0
----
-27

query I rowsort
SELECT DISTINCT - - col0 - col2 + + col2 + - col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 49 AS col1 FROM tab1 AS cor0 WHERE + 1 IS NOT NULL
----
-49
-49
-49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8294
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 32 * + - ( + 91 ) * - ( - + 77 ) < + + CAST( col0 AS SIGNED ) + - 96
----

skipif mysql # not compatible
query III rowsort label-8294
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 32 * + - ( + 91 ) * - ( - + 77 ) < + + CAST ( col0 AS INTEGER ) + - 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col2 FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 52 AS col1, + 74 * + + 68 FROM tab0
----
-52
5032

onlyif mysql # DIV for integer division: 
query I rowsort label-8297
SELECT ( col1 ) * + 59 - col2 DIV + col0 FROM tab2
----
3009
3953
4543

skipif mysql # not compatible
query I rowsort label-8297
SELECT ( col1 ) * + 59 - col2 / + col0 FROM tab2
----
3009
3953
4543

query I rowsort
SELECT DISTINCT + + col2 - - 98 FROM tab0 WHERE col0 + - - col1 <= + 23
----

query I rowsort
SELECT DISTINCT + 75 - - col0 FROM tab0
----
162
172
90

query II rowsort
SELECT + col1 * 2 + col1 AS col1, col0 FROM tab0
----
243
15
3
97
63
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT 11 + + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-8301
SELECT 11 + + COUNT ( * ) FROM tab2
----
14

query III rowsort
SELECT * FROM tab1 WHERE - + col1 * - 72 / 53 + + - col1 BETWEEN - - 27 AND NULL
----

query I rowsort
SELECT ALL col1 * 68 FROM tab0
----
1428
5508
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8304
SELECT ALL + COUNT( ( + - CAST( - col2 AS SIGNED ) ) ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + COUNT ( ( + - CAST ( - col2 AS INTEGER ) ) ) AS col2 FROM tab0
----
3

query I rowsort
SELECT ALL + col1 * col2 * + - col2 AS col1 FROM tab2
----
-123200
-225388
-26979

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8306
SELECT ALL + CAST( + - col2 AS SIGNED ) AS col2 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8306
SELECT ALL + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - ( - ( + col2 ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - ( - ( + col2 ) ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + 21 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * 90 * + col2 - + ( - col0 ) AS col0 FROM tab1 AS cor0
----
-440589
-451265
-556829

query I rowsort
SELECT DISTINCT + 32 FROM tab0 AS cor0 WHERE NULL >= 24 * + 81 + + 20 / - 60
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 99 * - 36 col0 FROM tab2 AS cor0
----
-3564

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 49 col2 FROM tab1 AS cor0
----
-49
-49
-49

query I rowsort
SELECT 86 * - ( col2 ) AS col1 FROM tab1 cor0
----
-5074
-5848
-8256

onlyif mysql # aggregate syntax: 
query I rowsort label-8314
SELECT - - MIN( ALL col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8314
SELECT - - MIN ( ALL col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - col1 FROM tab0 cor0 WHERE NOT + col1 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8316
SELECT ALL + + 53 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-8316
SELECT ALL + + 53 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
159

query I rowsort
SELECT + + 55 AS col0 FROM tab0 AS cor0
----
55
55
55

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + + 53 ) IN ( + col1 / + - col1 * + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 32 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8320
SELECT ALL CAST( + AVG ( + 3 ) AS SIGNED ), + SUM( - col0 ) * + 39 AS col1 FROM tab2
----
3
-7215

skipif mysql # not compatible
query II rowsort label-8320
SELECT ALL CAST ( + AVG ( + 3 ) AS INTEGER ), + SUM ( - col0 ) * + 39 AS col1 FROM tab2
----
3
-7215

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 > - 6
----
51
14
96
91
47
68

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 > ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8323
SELECT ALL ( - COUNT( * ) ) * COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8323
SELECT ALL ( - COUNT ( * ) ) * COUNT ( * ) AS col2 FROM tab0
----
-9

query I rowsort
SELECT ALL - col1 + 51 FROM tab0
----
-30
30
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8325
SELECT - - SUM( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 WHERE - - col2 - - col1 > + 23
----
NULL

skipif mysql # not compatible
query I rowsort label-8325
SELECT - - SUM ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 WHERE - - col2 - - col1 > + 23
----
NULL

query I rowsort
SELECT ALL - 15 * - - 0 * + col1 AS col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8327
SELECT ALL + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE ( col1 ) NOT IN ( + ( + 29 ), 45 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE ( col1 ) NOT IN ( + ( + 29 ), 45 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 + - 29 AS col2 FROM tab0 AS cor0
----
-19
18
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL + 2 + + COUNT( * ) FROM tab0 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + 2 + + COUNT ( * ) FROM tab0 AS cor0
----
5

query III rowsort
SELECT * FROM tab2 WHERE 71 * + col0 + - 29 = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT ALL + CAST( NULL AS SIGNED ) * + 19 * - + MIN( - col0 ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8331
SELECT ALL + CAST ( NULL AS INTEGER ) * + 19 * - + MIN ( - col0 ) col2 FROM tab1
----
NULL

query I rowsort
SELECT + - 5 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

query I rowsort
SELECT ALL col1 * - 79 FROM tab1
----
-1106
-3713
-395

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8334
SELECT col0 - + col2 + CAST( + + col0 AS SIGNED ) AS col2 FROM tab2
----
69
88
92

skipif mysql # not compatible
query I rowsort label-8334
SELECT col0 - + col2 + CAST ( + + col0 AS INTEGER ) AS col2 FROM tab2
----
69
88
92

query I rowsort
SELECT - 93 - + col0 FROM tab0
----
-108
-180
-190

query I rowsort
SELECT + 59 + + col1 AS col1 FROM tab1
----
106
64
73

onlyif mysql # DIV for integer division: 
query I rowsort label-8337
SELECT - 64 DIV + 28 + - - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

skipif mysql # not compatible
query I rowsort label-8337
SELECT - 64 / + 28 + - - 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT + col2 + + + ( + + 39 ) FROM tab1 AS cor0
----
107
135
98

query I rowsort
SELECT - + 42 + + col0 * + col1 FROM tab2 AS cor0
----
2304
4886
4983

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - col0
----

query I rowsort
SELECT ALL + col0 + - 95 FROM tab1 AS cor0
----
-10
-4
-44

query I rowsort
SELECT ALL - - col1 * 23 - - col2 FROM tab2 AS cor0
----
1196
1599
1811

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8343
SELECT col2 DIV CAST( col2 AS SIGNED ) * + col0 + + col2 + + - 12, + col1 * col1 AS col2 FROM tab2 AS cor0
----
121
4489
57
2601
92
5929

skipif mysql # not compatible
query II rowsort label-8343
SELECT col2 / CAST ( col2 AS INTEGER ) * + col0 + + col2 + + - 12, + col1 * col1 AS col2 FROM tab2 AS cor0
----
121
4489
57
2601
92
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT DISTINCT + ( COUNT( + 21 ) ) - + - 12 * + - 73 AS col2 FROM tab2 AS cor0
----
-873

skipif mysql # not compatible
query I rowsort label-8344
SELECT DISTINCT + ( COUNT ( + 21 ) ) - + - 12 * + - 73 AS col2 FROM tab2 AS cor0
----
-873

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8345
SELECT DISTINCT - col1 * - + CAST( NULL AS SIGNED ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8345
SELECT DISTINCT - col1 * - + CAST ( NULL AS INTEGER ) - - col0 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 39 + - 65 FROM tab1, tab0 AS cor0
----
9 values hashing to 47d0574274146de273829785364ada39

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col1 < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT ALL ( MIN( - 3 ) ) * + 29 FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-8348
SELECT ALL ( MIN ( - 3 ) ) * + 29 FROM tab2
----
-87

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT 93 IS NULL )
----

query I rowsort
SELECT + col2 * + + 3 AS col1 FROM tab0 AS cor0
----
141
297
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8351
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN 58 AND ( - - CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-8351
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 BETWEEN 58 AND ( - - CAST ( NULL AS INTEGER ) * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT ALL + COUNT( ALL + col0 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8352
SELECT ALL + COUNT ( ALL + col0 ) col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 FROM tab0 WHERE + col0 IN ( + - 21, + 43 + - col2 * - - col1, 76 )
----

query II rowsort
SELECT ALL - 57, + ( + col1 ) FROM tab0
----
-57
1
-57
21
-57
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8355
SELECT COUNT( * ) + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8355
SELECT COUNT ( * ) + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT - col2 + - - 30 FROM tab1 AS cor0
----
-29
-38
-66

query I rowsort
SELECT DISTINCT - col0 * - 85 + ( - 78 ) AS col2 FROM tab1 cor0
----
4257
7147
7657

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 63 + + col0 col1 FROM tab1 AS cor0
----
114
148
154

onlyif mysql # aggregate syntax: 
query I rowsort label-8359
SELECT ALL - MIN( - 28 ) AS col2 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8359
SELECT ALL - MIN ( - 28 ) AS col2 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8360
SELECT DISTINCT + SUM( DISTINCT - col2 ) * - MIN( ALL - + col1 ) + + SUM( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 * + + 22 * col1 IS NOT NULL )
----
-10258

skipif mysql # not compatible
query I rowsort label-8360
SELECT DISTINCT + SUM ( DISTINCT - col2 ) * - MIN ( ALL - + col1 ) + + SUM ( DISTINCT col2 ) FROM tab1 AS cor0 WHERE NOT ( NOT + col1 * + + 22 * col1 IS NOT NULL )
----
-10258

query I rowsort
SELECT ALL + 41 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8362
SELECT AVG ( DISTINCT col0 ) + + MAX( ALL - - col1 ) FROM tab2 WHERE NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8362
SELECT AVG ( DISTINCT col0 ) + + MAX ( ALL - - col1 ) FROM tab2 WHERE NULL < NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2 * - col2 AS col0, + 14 * col2 FROM tab2
----
-1600
560
-3364
812
-529
322

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8364
SELECT CAST( col1 AS SIGNED ) AS col0, - col2 col1 FROM tab2
----
51
-23
67
-58
77
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8364
SELECT CAST ( col1 AS INTEGER ) AS col0, - col2 col1 FROM tab2
----
51
-23
67
-58
77
-40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8365
SELECT DISTINCT - 84 + - + col2 + - CAST( 43 AS SIGNED ) + 85 AS col1, - ( col1 ) FROM tab2 AS cor0
----
-100
-67
-65
-51
-82
-77

skipif mysql # not compatible
query II rowsort label-8365
SELECT DISTINCT - 84 + - + col2 + - CAST ( 43 AS INTEGER ) + 85 AS col1, - ( col1 ) FROM tab2 AS cor0
----
-100
-67
-65
-51
-82
-77

query I rowsort
SELECT - + col2 + + - col0 + col1 * - + col0 FROM tab0 AS cor0
----
-1277
-1924
-293

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8367
SELECT - + COUNT( * ) + - COUNT( col2 ) - + - 81 * + MIN( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE + CAST( + col2 AS SIGNED ) <= + - col1 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-8367
SELECT - + COUNT ( * ) + - COUNT ( col2 ) - + - 81 * + MIN ( ALL col2 ) AS col2 FROM tab0 AS cor0 WHERE + CAST ( + col2 AS INTEGER ) <= + - col1 + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT ALL + + 79 - - COUNT( * ) AS col1 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8368
SELECT ALL + + 79 - - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8369
SELECT + - col0 * + col2 * + col0 * + col1 - - col1 DIV col1 + - col2 + + 43 FROM tab1 AS cor0
----
-2131390
-26466100
-3495796

skipif mysql # not compatible
query I rowsort label-8369
SELECT + - col0 * + col2 * + col0 * + col1 - - col1 / col1 + - col2 + + 43 FROM tab1 AS cor0
----
-2131390
-26466100
-3495796

query I rowsort
SELECT ALL col1 * - col2 - - + col0 * 72 AS col0 FROM tab2 AS cor0
----
1514
1528
2139

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT ALL + COUNT( * ) - + + COUNT( * ) AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8371
SELECT ALL + COUNT ( * ) - + + COUNT ( * ) AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8372
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT + + 86 IS NOT NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT + + 86 IS NOT NULL )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8373
SELECT ALL + COUNT( + CAST( NULL AS SIGNED ) ) + + 11 + - - 44 FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-8373
SELECT ALL + COUNT ( + CAST ( NULL AS INTEGER ) ) + + 11 + - - 44 FROM tab2
----
55

query III rowsort
SELECT * FROM tab0 WHERE ( - 24 <> + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT + 87 IS NOT NULL )
----

query I rowsort
SELECT ALL + 36 - col1 + - + 98 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( - col0 ) * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8378
SELECT DISTINCT + COUNT( * ) + 94 AS col0 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8378
SELECT DISTINCT + COUNT ( * ) + 94 AS col0 FROM tab2 AS cor0
----
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) > 20
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN 75 / - 71 + 80 + - + col1 / + 87 AND col0 * + + 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8381
SELECT DISTINCT ( + SUM( DISTINCT + 48 ) ) AS col2 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-8381
SELECT DISTINCT ( + SUM ( DISTINCT + 48 ) ) AS col2 FROM tab2
----
48

query II rowsort
SELECT 97, col0 AS col2 FROM tab0
----
97
15
97
87
97
97

query II rowsort
SELECT 72, + col1 AS col0 FROM tab2
----
72
51
72
67
72
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col2 + 75 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * col0 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col2, col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-8387
SELECT ALL col2 DIV - 38 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL col2 / - 38 FROM tab1
----
-1
-1
-2

query II rowsort
SELECT DISTINCT - - col2 AS col0, col1 AS col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 38 * + col1 * col0 col1, col2 AS col1 FROM tab2 cor0 WHERE NOT + col0 * 47 / col2 * col2 * - - 47 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8390
SELECT + + 86 * - + COUNT( * ), + 92 AS col2 FROM tab0 AS cor0
----
-258
92

skipif mysql # not compatible
query II rowsort label-8390
SELECT + + 86 * - + COUNT ( * ), + 92 AS col2 FROM tab0 AS cor0
----
-258
92

query I rowsort
SELECT - + 16 * + + 3 * + col1 FROM tab1 AS cor0
----
-2256
-240
-672

query I rowsort
SELECT ALL 65 * + col2 - - + col1 AS col1 FROM tab2 AS cor0
----
1546
2677
3837

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT ( 69 ) IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 83 * + + col1 + ( - 95 ) AS col0 FROM tab2 AS cor0
----
4138
5466
6296

query I rowsort
SELECT + + col1 AS col0 FROM tab0 AS cor0 WHERE NOT - col0 + - + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - ( + 88 ), - 15 col1 FROM tab2 AS cor0
----
-88
-15
-88
-15
-88
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-8397
SELECT + col2 + - col2 DIV + col0 AS col1 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8397
SELECT + col2 + - col2 / + col0 AS col1 FROM tab2 cor0
----
23
40
58

query II rowsort
SELECT + 20 + - 32 AS col2, 51 FROM tab2 AS cor0
----
-12
51
-12
51
-12
51

query I rowsort
SELECT col1 + - col0 + + - 17 FROM tab0 AS cor0
----
-113
-83
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8400
SELECT ALL + MAX( CAST( + + 4 AS SIGNED ) ), COUNT( * ) + + 8 AS col0 FROM tab2
----
4
11

skipif mysql # not compatible
query II rowsort label-8400
SELECT ALL + MAX ( CAST ( + + 4 AS INTEGER ) ), COUNT ( * ) + + 8 AS col0 FROM tab2
----
4
11

query I rowsort
SELECT 37 + col1 FROM tab2 WHERE - 3 IS NOT NULL
----
104
114
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8402
SELECT - SUM( DISTINCT - - 56 ) col1 FROM tab2
----
-56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8402
SELECT - SUM ( DISTINCT - - 56 ) col1 FROM tab2
----
-56

query II rowsort
SELECT ALL 21, + col2 AS col2 FROM tab1
----
21
59
21
68
21
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8404
SELECT COUNT( * ) col2 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8404
SELECT COUNT ( * ) col2 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT - MIN( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT - MIN ( DISTINCT - col0 ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8406
SELECT + - ( - - SUM( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-8406
SELECT + - ( - - SUM ( DISTINCT col1 ) ) FROM tab1 AS cor0
----
-66

query II rowsort
SELECT + 12 AS col1, 59 * - - 43 FROM tab2 AS cor0
----
12
2537
12
2537
12
2537

query I rowsort
SELECT DISTINCT - - ( + - col2 ) * + + ( - 22 ) + + col1 FROM tab2 AS cor0 WHERE + 10 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT - 3 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

onlyif mysql # aggregate syntax: 
query I rowsort label-8411
SELECT ALL + COUNT( * ) * + 46 + + COUNT( * ) - - + SUM( col1 ) + + COUNT( * ) col0 FROM tab0 AS cor0
----
247

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8411
SELECT ALL + COUNT ( * ) * + 46 + + COUNT ( * ) - - + SUM ( col1 ) + + COUNT ( * ) col0 FROM tab0 AS cor0
----
247

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 / + col0 <> NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col2 BETWEEN - - col2 AND col2
----

query II rowsort
SELECT ALL - + col1 * 62 AS col2, 12 AS col2 FROM tab0 AS cor0
----
-1302
12
-5022
12
-62
12

query II rowsort
SELECT DISTINCT col1 AS col2, 17 AS col2 FROM tab2 AS cor0 WHERE ( NOT 65 IS NULL )
----
51
17
67
17
77
17

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - col2 + 82 < - + 54 + + 53 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 >= - ( 68 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL < + 50
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8419
SELECT DISTINCT CAST( NULL AS SIGNED ) * - COUNT( * ) col2 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8419
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - COUNT ( * ) col2 FROM tab0
----
NULL

query I rowsort
SELECT - col0 + + col0 FROM tab0 WHERE NOT + 63 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8421
SELECT DISTINCT - col1 * + ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8421
SELECT DISTINCT - col1 * + ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-8422
SELECT ALL col1 AS col1, ( - col1 ) DIV 96 FROM tab1
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-8422
SELECT ALL col1 AS col1, ( - col1 ) / 96 FROM tab1
----
14
0
47
0
5
0

query I rowsort
SELECT + - 20 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-20
-20
-20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - - col2 col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query II rowsort label-8425
SELECT + - 54, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-54
3

skipif mysql # not compatible
query II rowsort label-8425
SELECT + - 54, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-54
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8426
SELECT DISTINCT + - 21 * + COUNT( * ) FROM tab0 cor0
----
-63

skipif mysql # not compatible
query I rowsort label-8426
SELECT DISTINCT + - 21 * + COUNT ( * ) FROM tab0 cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT - COUNT( * ) + - - COUNT( DISTINCT col2 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8427
SELECT - COUNT ( * ) + - - COUNT ( DISTINCT col2 ) AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( 24 * - col1 + + - 59 + + col2, col1 )
----

query II rowsort
SELECT col0 + col1, 58 + col0 + + col0 + - col2 AS col2 FROM tab2
----
141
146
142
150
97
127

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8430
SELECT 49 + - + COUNT( * ) * - COUNT( * ) + - COUNT( * ) + + + COUNT( * ) * - CAST( 62 AS SIGNED ) * 71 AS col2 FROM tab0
----
-13151

skipif mysql # not compatible
query I rowsort label-8430
SELECT 49 + - + COUNT ( * ) * - COUNT ( * ) + - COUNT ( * ) + + + COUNT ( * ) * - CAST ( 62 AS INTEGER ) * 71 AS col2 FROM tab0
----
-13151

onlyif mysql # aggregate syntax: 
query II rowsort label-8431
SELECT ALL 42 AS col0, SUM( + + col2 ) AS col2 FROM tab0 AS cor0
----
42
156

skipif mysql # not compatible
query II rowsort label-8431
SELECT ALL 42 AS col0, SUM ( + + col2 ) AS col2 FROM tab0 AS cor0
----
42
156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT - + CAST( 63 AS SIGNED ) FROM tab1 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-8432
SELECT - + CAST ( 63 AS INTEGER ) FROM tab1 AS cor0
----
-63
-63
-63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 + + 6 col0 FROM tab2 cor0
----
14
14
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8434
SELECT + SUM( ALL + - col2 ) DIV - + COUNT( * ) FROM tab1 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-8434
SELECT + SUM ( ALL + - col2 ) / - + COUNT ( * ) FROM tab1 AS cor0
----
74

query I rowsort
SELECT ALL 10 FROM tab0 AS cor0 WHERE NOT col0 > + - 65
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8436
SELECT DISTINCT col0 DIV - + 21, col0 AS col0 FROM tab0
----
-4
87
-4
97
0
15

skipif mysql # not compatible
query II rowsort label-8436
SELECT DISTINCT col0 / - + 21, col0 AS col0 FROM tab0
----
-4
87
-4
97
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT 94 * MIN( ALL col1 ) col1 FROM tab0
----
94

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8437
SELECT 94 * MIN ( ALL col1 ) col1 FROM tab0
----
94

query II rowsort
SELECT ALL - 98 + + 23, + col1 AS col1 FROM tab1
----
-75
14
-75
47
-75
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8439
SELECT * FROM tab0 WHERE NOT 37 BETWEEN - - ( - ( + CAST( NULL AS SIGNED ) ) ) + - 20 AND - - col0 AND NOT - 16 <> + col2
----

skipif mysql # not compatible
query III rowsort label-8439
SELECT * FROM tab0 WHERE NOT 37 BETWEEN - - ( - ( + CAST ( NULL AS INTEGER ) ) ) + - 20 AND - - col0 AND NOT - 16 <> + col2
----

query I rowsort
SELECT ALL + 71 + + col1 FROM tab2
----
122
138
148

onlyif mysql # aggregate syntax: 
query I rowsort label-8441
SELECT DISTINCT ( + 78 ) + - - COUNT( * ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-8441
SELECT DISTINCT ( + 78 ) + - - COUNT ( * ) FROM tab0 cor0
----
81

query I rowsort
SELECT 90 + - col0 FROM tab1 AS cor0
----
-1
39
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8443
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + 35 BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8443
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + 35 BETWEEN + col2 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8444
SELECT DISTINCT + - col2 - + 12 * - col0 * - 54 * col1 - - 17 DIV + col0 + + 16 * + + col0 AS col1 FROM tab1 cor0
----
-274099
-2770108
-461952

skipif mysql # not compatible
query I rowsort label-8444
SELECT DISTINCT + - col2 - + 12 * - col0 * - 54 * col1 - - 17 / + col0 + + 16 * + + col0 AS col1 FROM tab1 cor0
----
-274099
-2770108
-461952

onlyif mysql # aggregate syntax: 
query II rowsort label-8445
SELECT - COUNT( * ) AS col0, - 88 FROM tab0
----
-3
-88

skipif mysql # not compatible
query II rowsort label-8445
SELECT - COUNT ( * ) AS col0, - 88 FROM tab0
----
-3
-88

query II rowsort
SELECT DISTINCT col0 AS col2, ( - - col2 ) + - col0 AS col2 FROM tab1
----
51
45
85
-26
91
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT + MAX( DISTINCT - col2 ) * - + ( - - 36 ) AS col2 FROM tab0 AS cor0
----
360

skipif mysql # not compatible
query I rowsort label-8447
SELECT + MAX ( DISTINCT - col2 ) * - + ( - - 36 ) AS col2 FROM tab0 AS cor0
----
360

onlyif mysql # aggregate syntax: 
query I rowsort label-8448
SELECT DISTINCT - + 77 * ( MIN( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-4543

skipif mysql # not compatible
query I rowsort label-8448
SELECT DISTINCT - + 77 * ( MIN ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
-4543

query I rowsort
SELECT DISTINCT - + col2 * - + col1 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8450
SELECT - + 37 * - - CAST( NULL AS SIGNED ) + SUM( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8450
SELECT - + 37 * - - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8451
SELECT ALL + col2 DIV - col0 + - + col1 FROM tab0 AS cor0
----
-2
-21
-84

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL + col2 / - col0 + - + col1 FROM tab0 AS cor0
----
-2
-21
-84

query II rowsort
SELECT DISTINCT col1, - col1 + - 24 FROM tab2 AS cor0
----
51
-75
67
-91
77
-101

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8453
SELECT ALL MAX( DISTINCT + col1 ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8453
SELECT ALL MAX ( DISTINCT + col1 ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT + 63 + + col2 + - 40 FROM tab0 WHERE NOT + + col0 IS NULL
----
122
33
70

query I rowsort
SELECT ALL 15 * + col0 * - - col1 FROM tab2
----
35190
73920
75375

query I rowsort
SELECT ALL + 31 + + ( 30 ) + col0 * + + 46 FROM tab0 AS cor0
----
4063
4523
751

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8457
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col1 * + 87 + + CAST( col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT + col2 FROM tab2 AS cor0 WHERE NOT col1 * + 87 + + CAST ( col1 AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN col0 AND + col0
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE NULL = + ( col2 )
----

query I rowsort
SELECT - - col0 + + 21 AS col0 FROM tab0 AS cor0
----
108
118
36

query I rowsort
SELECT DISTINCT + + col1 * col1 + ( col2 ) FROM tab1 AS cor0
----
2277
292
84

query I rowsort
SELECT DISTINCT - 82 + 42 * - col0 AS col1 FROM tab0 AS cor0
----
-3736
-4156
-712

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - + 27 * + - 80 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 57 * + 41 * - - 90 + - - 98 + + - col2 AS col0 FROM tab0 AS cor0
----
-210242
-210279
-210331

onlyif mysql # aggregate syntax: 
query I rowsort label-8465
SELECT + + 13 + - + COUNT( * ) FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8465
SELECT + + 13 + - + COUNT ( * ) FROM tab2 AS cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + + ( + col2 ) NOT BETWEEN + col1 AND 24
----

query I rowsort
SELECT - ( col0 ) + - 64 - - + 61 AS col1 FROM tab0 AS cor0
----
-100
-18
-90

query I rowsort
SELECT ALL 85 + col2 FROM tab2 AS cor0
----
108
125
143

onlyif mysql # aggregate syntax: 
query I rowsort label-8469
SELECT COUNT( * ) + - 54 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-8469
SELECT COUNT ( * ) + - 54 FROM tab1 AS cor0
----
-51

query I rowsort
SELECT DISTINCT + + 40 FROM tab1 AS cor0 WHERE NOT col0 * col2 + + - 17 / + col0 + - col0 * - + col0 * 15 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 + - col1 + + col0 col2 FROM tab1
----
105
62
69

query II rowsort
SELECT DISTINCT 2, 15 AS col0 FROM tab0
----
2
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8473
SELECT ALL 34 - COUNT( - col2 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL 34 - COUNT ( - col2 ) FROM tab0
----
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 92 col2 FROM tab0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-8475
SELECT 25 * + COUNT( * ) AS col0 FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-8475
SELECT 25 * + COUNT ( * ) AS col0 FROM tab0
----
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8476
SELECT DISTINCT + col1 + CAST( NULL AS SIGNED ) + + ( - col0 ) * 62 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8476
SELECT DISTINCT + col1 + CAST ( NULL AS INTEGER ) + + ( - col0 ) * 62 AS col2 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + 44 * - + col0 FROM tab1
----
59
-3740
68
-4004
96
-2244

query I rowsort
SELECT DISTINCT - 75 * - 81 FROM tab1
----
6075

query I rowsort
SELECT + - 8 - + col2 FROM tab1 AS cor0
----
-104
-67
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8480
SELECT - 93 * - ( col0 ) * + col2 + + col1 + + + CAST( NULL AS SIGNED ) - col1 + + col2 + - ( - col0 ) * - 82 * - col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8480
SELECT - 93 * - ( col0 ) * + col2 + + col1 + + + CAST ( NULL AS INTEGER ) - col1 + + col2 + - ( - col0 ) * - 82 * - col2 * + col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * - - col2 + + 91 - - col2 + col0 - + - 2 AS col1 FROM tab2 cor0
----
-1011
-2883
-3660

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT - col0 * + col2 * - + ( - col0 ) * + CAST( - col0 AS SIGNED ) AS col0 FROM tab1
----
12734496
36233375
51242828

skipif mysql # not compatible
query I rowsort label-8482
SELECT - col0 * + col2 * - + ( - col0 ) * + CAST ( - col0 AS INTEGER ) AS col0 FROM tab1
----
12734496
36233375
51242828

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( + 74 ) NOT IN ( - col2, 83 * col2, col1, + - col0 )
----

query I rowsort
SELECT ALL + col1 * - 76 AS col2 FROM tab0
----
-1596
-6156
-76

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 63 + - ( + - 53 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8486
SELECT COUNT( * ) * 66 + + 1 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-8486
SELECT COUNT ( * ) * 66 + + 1 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL 92 * + col0 * - + col0 AS col2 FROM tab0 AS cor0
----
-20700
-696348
-865628

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 67 * - - 37 col1 FROM tab0 AS cor0
----
2479
2479
2479

onlyif mysql # DIV for integer division: 
query I rowsort label-8489
SELECT col2 DIV col2 FROM tab0 AS cor0 WHERE NOT + 77 IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8489
SELECT col2 / col2 FROM tab0 AS cor0 WHERE NOT + 77 IS NULL
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-8490
SELECT DISTINCT - + COUNT( * ), 66 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) + + + 61 NOT IN ( col1, - 40 )
----
0
66

skipif mysql # not compatible
query II rowsort label-8490
SELECT DISTINCT - + COUNT ( * ), 66 AS col2 FROM tab1 AS cor0 WHERE NOT ( - col1 ) + + + 61 NOT IN ( col1, - 40 )
----
0
66

query II rowsort
SELECT DISTINCT ( + col0 ), 74 FROM tab0 cor0
----
15
74
87
74
97
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8492
SELECT CAST( 14 AS SIGNED ) FROM tab0 AS cor0
----
14
14
14

skipif mysql # not compatible
query I rowsort label-8492
SELECT CAST ( 14 AS INTEGER ) FROM tab0 AS cor0
----
14
14
14

onlyif mysql # aggregate syntax: 
query II rowsort label-8493
SELECT DISTINCT 87 AS col2, COUNT( * ) AS col1 FROM tab0
----
87
3

skipif mysql # not compatible
query II rowsort label-8493
SELECT DISTINCT 87 AS col2, COUNT ( * ) AS col1 FROM tab0
----
87
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8494
SELECT ALL SUM( + col1 ) AS col1 FROM tab1 WHERE + 35 <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8494
SELECT ALL SUM ( + col1 ) AS col1 FROM tab1 WHERE + 35 <= ( NULL )
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col0, col0 + + col0 * col1 col2 FROM tab2
----
51
2392
67
5100
77
4992

query I rowsort
SELECT DISTINCT 70 * - - 45 AS col2 FROM tab1
----
3150

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT ALL + COUNT( * ) * - 85 + ( - 80 ) FROM tab0
----
-335

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + COUNT ( * ) * - 85 + ( - 80 ) FROM tab0
----
-335

query I rowsort
SELECT ALL col0 * + + ( col0 ) FROM tab1
----
2601
7225
8281

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 * - + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8500
SELECT DISTINCT COUNT( * ) * ( + 59 ) AS col2, 66 AS col2 FROM tab1
----
177
66

skipif mysql # not compatible
query II rowsort label-8500
SELECT DISTINCT COUNT ( * ) * ( + 59 ) AS col2, 66 AS col2 FROM tab1
----
177
66

query I rowsort
SELECT DISTINCT col0 * - - 83 * - - col0 + + col1 + + - col2 FROM tab2
----
175656
340005
466884

query II rowsort
SELECT col1 AS col0, + 31 AS col2 FROM tab0
----
1
31
21
31
81
31

query II rowsort
SELECT ALL + col0 + ( + col1 ) + 43 AS col1, - col2 FROM tab2
----
140
-23
184
-40
185
-58

query I rowsort
SELECT + + col0 * - + col2 * + col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 62 * - 9 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8506
SELECT DISTINCT - - SUM( ALL + col1 ) FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT - - SUM ( ALL + col1 ) FROM tab2 cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-8507
SELECT ALL - + ( - COUNT( * ) ) + 42 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8507
SELECT ALL - + ( - COUNT ( * ) ) + 42 FROM tab0 AS cor0
----
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, - col0 col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
59
-85
68
-91
96
-51

query I rowsort
SELECT ALL - + col0 + 85 FROM tab1 cor0
----
-6
0
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT DISTINCT - COUNT( * ) + - COUNT( - col0 ) FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-8510
SELECT DISTINCT - COUNT ( * ) + - COUNT ( - col0 ) FROM tab0 AS cor0
----
-6

query I rowsort
SELECT DISTINCT 24 * 63 AS col2 FROM tab2 AS cor0
----
1512

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 50 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 - + col2 + + col2 + col1 + - 84 * 18 + + 79 AS col0 FROM tab2
----
-1291
-1292
-1336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 - - - 11 col1 FROM tab1
----
-102
-62
-96

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + 50 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8516
SELECT ALL ( col1 ) / - - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8516
SELECT ALL ( col1 ) / - - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8517
SELECT DISTINCT - MIN( ALL - col2 ) + - COUNT( col2 ) FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-8517
SELECT DISTINCT - MIN ( ALL - col2 ) + - COUNT ( col2 ) FROM tab1
----
93

query I rowsort
SELECT col2 * - ( + ( + - col2 ) ) FROM tab2
----
1600
3364
529

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * col1 < NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col0 * + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 21 * + - col0 * col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8522
SELECT + COUNT( ALL - 16 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8522
SELECT + COUNT ( ALL - 16 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-8523
SELECT + 81 DIV col0 DIV + col0 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8523
SELECT + 81 / col0 / + col0 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - col2 / + col2 FROM tab0 WHERE + col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 98 + - 37, col2 col0 FROM tab0
----
61
10
61
47
61
99

query I rowsort
SELECT col0 * - col2 - - col2 * + col2 FROM tab1 AS cor0
----
-1534
-1564
4320

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 92 BETWEEN + col1 AND - - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8528
SELECT DISTINCT - - MIN( + + col2 ) DIV + ( + 51 ) + + - COUNT( * ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8528
SELECT DISTINCT - - MIN ( + + col2 ) / + ( + 51 ) + + - COUNT ( * ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL - ( - - ( 65 ) ) + + + col2 FROM tab1 AS cor0
----
-6
3
31

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8530
SELECT + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8530
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8531
SELECT DISTINCT + ( + - MAX( ALL - 35 ) ) AS col0 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-8531
SELECT DISTINCT + ( + - MAX ( ALL - 35 ) ) AS col0 FROM tab1
----
35

query I rowsort
SELECT DISTINCT ( - - col1 ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query I rowsort
SELECT - + ( - ( - 0 ) ) + - - col2 + + + col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT col2 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-8535
SELECT + 31 DIV - col2 + + col2 + 17 DIV - - col1 col1 FROM tab1 AS cor0
----
62
68
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8535
SELECT + 31 / - col2 + + col2 + 17 / - - col1 col1 FROM tab1 AS cor0
----
62
68
97

query I rowsort
SELECT ALL + col1 + - - 41 AS col1 FROM tab0 AS cor0
----
122
42
62

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8537
SELECT * FROM tab1 cor0 WHERE ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8537
SELECT * FROM tab1 cor0 WHERE ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT + 61 + ( COUNT( * ) ) - 85 AS col2 FROM tab1 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-8538
SELECT + 61 + ( COUNT ( * ) ) - 85 AS col2 FROM tab1 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-8539
SELECT + col1 DIV 28 + + + col2 + + - col1 DIV + col1 AS col2 FROM tab1 AS cor0
----
58
68
95

skipif mysql # not compatible
query I rowsort label-8539
SELECT + col1 / 28 + + + col2 + + - col1 / + col1 AS col2 FROM tab1 AS cor0
----
58
68
95

query I rowsort
SELECT DISTINCT - 44 - + + col2 FROM tab2 AS cor0
----
-102
-67
-84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 * + 28 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8542
SELECT col1 + ( - + col0 ) AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-66
NULL
-96
NULL
66
NULL

skipif mysql # not compatible
query II rowsort label-8542
SELECT col1 + ( - + col0 ) AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-66
NULL
-96
NULL
66
NULL

query II rowsort
SELECT DISTINCT - - col1, 70 + + - ( + 44 ) AS col0 FROM tab0 WHERE - col2 IS NOT NULL
----
1
26
21
26
81
26

query I rowsort
SELECT - col2 * - 81 * - - col0 FROM tab0
----
57105
70470
777843

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8545
SELECT ALL + CAST( NULL AS SIGNED ) - 18 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8545
SELECT ALL + CAST ( NULL AS INTEGER ) - 18 + + col0 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 44 ) col2 FROM tab2
----
44
44
44

onlyif mysql # DIV for integer division: 
query II rowsort label-8547
SELECT col0 DIV 98 AS col0, + col2 * - 57 FROM tab0
----
0
-2679
0
-5643
0
-570

skipif mysql # not compatible
query II rowsort label-8547
SELECT col0 / 98 AS col0, + col2 * - 57 FROM tab0
----
0
-2679
0
-5643
0
-570

query I rowsort
SELECT 88 FROM tab0 WHERE NOT ( - ( + + col1 ) ) + + 48 IN ( - ( 75 ), + col1, - col1, + 80 )
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8549
SELECT + SUM( col1 ) * 49 FROM tab1
----
3234

skipif mysql # not compatible
query I rowsort label-8549
SELECT + SUM ( col1 ) * 49 FROM tab1
----
3234

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT col0 DIV - 88 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8550
SELECT col0 / - 88 FROM tab1
----
-1
0
0

query I rowsort
SELECT DISTINCT - - col0 * + col2 + + col2 FROM tab2 cor0
----
1081
2600
4408

query II rowsort
SELECT DISTINCT col0 * col1, 24 - - - 10 AS col2 FROM tab2 AS cor0
----
2346
14
4928
14
5025
14

query I rowsort
SELECT - 52 * + + ( ( - col2 ) ) * + col1 FROM tab2 cor0
----
160160
202072
60996

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8554
SELECT DISTINCT + 19 * - ( CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + 19 * - ( CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8555
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + - col0 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8555
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + - col0 AS col0 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 > - col0 - - 82
----

query I rowsort
SELECT DISTINCT 65 AS col0 FROM tab0 cor0
----
65

query I rowsort
SELECT DISTINCT col1 * + 24 FROM tab2 AS cor0
----
1224
1608
1848

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 19 NOT IN ( + ( col0 ) * col0, + ( 61 ), + - col2, - col0, - col1, - col0 + + + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8560
SELECT + CAST( + CAST( - - 26 AS SIGNED ) AS SIGNED ) AS col0 FROM tab0
----
26
26
26

skipif mysql # not compatible
query I rowsort label-8560
SELECT + CAST ( + CAST ( - - 26 AS INTEGER ) AS INTEGER ) AS col0 FROM tab0
----
26
26
26

query I rowsort
SELECT ALL + 32 + col2 FROM tab2
----
55
72
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 7, 82 col0 FROM tab1 AS cor0
----
-7
82
-7
82
-7
82

query I rowsort
SELECT ALL ( + 10 ) + + - col0 FROM tab0 AS cor0
----
-5
-77
-87

query I rowsort
SELECT col0 * - col0 * - col0 FROM tab1
----
132651
614125
753571

query I rowsort
SELECT ALL - col2 * + 3 AS col1 FROM tab2 AS cor0 WHERE NOT - col1 IS NULL
----
-120
-174
-69

query I rowsort
SELECT ALL col1 + + col2 + - 84 AS col2 FROM tab1 AS cor0
----
-20
26
31

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT IN ( - col2, 21, + - col2, ( 27 ) - 39 * + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT - SUM( ALL col0 ) - - + COUNT( * ) FROM tab2 AS cor0
----
-182

skipif mysql # not compatible
query I rowsort label-8568
SELECT - SUM ( ALL col0 ) - - + COUNT ( * ) FROM tab2 AS cor0
----
-182

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8569
SELECT - - ( ( - 97 ) ) - CAST( + - ( MIN( 4 ) ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-8569
SELECT - - ( ( - 97 ) ) - CAST ( + - ( MIN ( 4 ) ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-93

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8570
SELECT DISTINCT + SUM( + col2 ) - 21 DIV + 40 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8570
SELECT DISTINCT + SUM ( + col2 ) - 21 / + 40 FROM tab2 AS cor0
----
121

onlyif mysql # DIV for integer division: 
query I rowsort label-8571
SELECT + col0 - col1 DIV col2 + + col1 AS col0 FROM tab2 AS cor0
----
140
141
95

skipif mysql # not compatible
query I rowsort label-8571
SELECT + col0 - col1 / col2 + + col1 AS col0 FROM tab2 AS cor0
----
140
141
95

query I rowsort
SELECT + 90 - col1 AS col1 FROM tab2 cor0
----
13
23
39

query II rowsort
SELECT ALL col2, - ( col1 ) FROM tab1
----
59
-5
68
-47
96
-14

query I rowsort
SELECT DISTINCT - col1 * - - 35 AS col2 FROM tab1
----
-1645
-175
-490

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8575
SELECT ALL CAST( NULL AS SIGNED ) * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT ALL CAST ( NULL AS INTEGER ) * + + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT + MAX( ALL - col1 ) AS col0 FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-8576
SELECT + MAX ( ALL - col1 ) AS col0 FROM tab1
----
-5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 66 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8578
SELECT + 2 * - CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
-162
-2
-42

skipif mysql # not compatible
query I rowsort label-8578
SELECT + 2 * - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
-162
-2
-42

query II rowsort
SELECT DISTINCT 96 AS col2, 78 FROM tab1
----
96
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 50 * - 16 * - - 80 col2, - col2 AS col1 FROM tab1
----
64000
-59
64000
-68
64000
-96

query II rowsort
SELECT ALL 52 AS col1, - col2 AS col0 FROM tab2
----
52
-23
52
-40
52
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8582
SELECT - MIN( ALL 10 ) FROM tab1 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-8582
SELECT - MIN ( ALL 10 ) FROM tab1 AS cor0
----
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8583
SELECT - - MAX( DISTINCT + 7 ) * CAST( NULL AS SIGNED ) * 64 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8583
SELECT - - MAX ( DISTINCT + 7 ) * CAST ( NULL AS INTEGER ) * 64 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8584
SELECT MIN( + ( ( - 71 ) ) ) AS col2 FROM tab0 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-8584
SELECT MIN ( + ( ( - 71 ) ) ) AS col2 FROM tab0 AS cor0
----
-71

query I rowsort
SELECT + ( + 32 ) AS col2 FROM tab1 AS cor0
----
32
32
32

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + 42 NOT BETWEEN NULL AND - + 33 * + 19 * - col1 + 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL 24 + + ( + + COUNT( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL 24 + + ( + + COUNT ( * ) ) AS col0 FROM tab1, tab1 AS cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8588
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE + ( + col0 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE + ( + col0 ) IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8589
SELECT DISTINCT COUNT( - 22 ) FROM tab1 AS cor0 WHERE - 91 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8589
SELECT DISTINCT COUNT ( - 22 ) FROM tab1 AS cor0 WHERE - 91 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 97 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT - ( - + MAX( DISTINCT + ( + + 70 ) ) ) AS col2 FROM tab1 cor0
----
70

skipif mysql # not compatible
query I rowsort label-8591
SELECT - ( - + MAX ( DISTINCT + ( + + 70 ) ) ) AS col2 FROM tab1 cor0
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8592
SELECT ALL COUNT( - - ( + 72 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8592
SELECT ALL COUNT ( - - ( + 72 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + ( + - 15 ) * - 42 - - + col1 + - col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1, + col2, + col0 - + 63, - + 61 + col0 )
----

query I rowsort
SELECT + 74 + + col1 * - - col1 FROM tab2
----
2675
4563
6003

query I rowsort
SELECT + col0 + - col2 + + - 16 AS col1 FROM tab1
----
-61
10
7

query I rowsort
SELECT ALL + col0 - 80 FROM tab0 AS cor0
----
-65
17
7

query II rowsort
SELECT + col2 AS col1, col2 * - - col0 * + + 80 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
10
69600
47
56400
99
768240

query I rowsort
SELECT DISTINCT - - 96 - + col2 FROM tab2 AS cor0
----
38
56
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT SUM( DISTINCT - - col1 ) + + - MAX( + + col1 ) AS col0 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-8599
SELECT SUM ( DISTINCT - - col1 ) + + - MAX ( + + col1 ) AS col0 FROM tab1
----
19

query I rowsort
SELECT ALL + col0 + - - 44 FROM tab0
----
131
141
59

query I rowsort
SELECT DISTINCT - - col2 + + - col2 * col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query I rowsort
SELECT + col2 + 91 AS col2 FROM tab2 AS cor0
----
114
131
149

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8603
SELECT DISTINCT MAX( ALL - - ( - + col0 ) ) + - - CAST( + + 91 AS SIGNED ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-8603
SELECT DISTINCT MAX ( ALL - - ( - + col0 ) ) + - - CAST ( + + 91 AS INTEGER ) FROM tab2 AS cor0
----
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - ( + + col1 ) < NULL
----

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8606
SELECT ( + + col0 ), + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 4 IN ( 35 * CAST( + col2 AS SIGNED ), - col1, - col2 / - 7, + col2 )
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-8606
SELECT ( + + col0 ), + col2 AS col2 FROM tab2 AS cor0 WHERE NOT 4 IN ( 35 * CAST ( + col2 AS INTEGER ), - col1, - col2 / - 7, + col2 )
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( NULL ) < NULL )
----

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE - + 19 * + col1 >= + col1 * - col1 - + - ( - col1 ) - - col1 + + + col0 * - + col0 * + ( + 20 )
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8609
SELECT ALL 48 * CAST( NULL AS DECIMAL ) * 45 * + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL 48 * CAST ( NULL AS REAL ) * 45 * + col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-8610
SELECT ALL + COUNT( ALL + + col2 ), + COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-8610
SELECT ALL + COUNT ( ALL + + col2 ), + COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT COUNT( DISTINCT - col0 ) * + 66 AS col2 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-8611
SELECT COUNT ( DISTINCT - col0 ) * + 66 AS col2 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query II rowsort label-8612
SELECT DISTINCT + SUM( DISTINCT - col0 ) col1, + 78 FROM tab0
----
-199
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8612
SELECT DISTINCT + SUM ( DISTINCT - col0 ) col1, + 78 FROM tab0
----
-199
78

query I rowsort
SELECT DISTINCT - - 59 FROM tab2 WHERE NOT 20 IS NULL
----
59

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col0 ) AND - 78 + - - 24 + 6 * col1
----

query II rowsort
SELECT col1 * + + col1 AS col1, col1 FROM tab2 AS cor0
----
2601
51
4489
67
5929
77

query I rowsort
SELECT ALL - 24 * + 8 AS col2 FROM tab0 AS cor0
----
-192
-192
-192

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - ( 28 ) FROM tab0 AS cor0
----
-1316
-2772
-280

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT SUM( + + col0 ) col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8619
SELECT SUM ( + + col0 ) col1 FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-8620
SELECT DISTINCT + ( - MAX( + 3 ) ) * ( 34 ) + - COUNT( * ) AS col1 FROM tab0 cor0
----
-105

skipif mysql # not compatible
query I rowsort label-8620
SELECT DISTINCT + ( - MAX ( + 3 ) ) * ( 34 ) + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-105

query I rowsort
SELECT DISTINCT + 16 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
16

query I rowsort
SELECT + ( col1 ) + - - col0 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL + 15 + + + 20 FROM tab2 AS cor0
----
35
35
35

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8624
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + CAST( NULL AS SIGNED ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8624
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NOT + CAST ( NULL AS INTEGER ) IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8625
SELECT DISTINCT col0 DIV - 24 col1 FROM tab1 cor0
----
-2
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8625
SELECT DISTINCT col0 / - 24 col1 FROM tab1 cor0
----
-2
-3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8627
SELECT col0, + CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-8627
SELECT col0, + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL + + COUNT( * ) + + COUNT( * ) AS col2 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + + COUNT ( * ) + + COUNT ( * ) AS col2 FROM tab2 cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8629
SELECT DISTINCT - ( + col2 ) + - CAST( + col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
-110
-115
-64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8629
SELECT DISTINCT - ( + col2 ) + - CAST ( + col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT - + 2 * col2 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN + col2 AND ( 33 ) * 44 + + - col1
----

query II rowsort
SELECT ALL + col2 AS col1, - col1 * + col2 * col1 * + - ( + ( + - 62 ) ) FROM tab2 AS cor0
----
23
-3709026
40
-14703920
58
-16142444

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * col2 <= + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + - ( + - col1 ) col0 FROM tab0
----
1
441
6561

query I rowsort
SELECT + 59 * - + 45 AS col0 FROM tab2
----
-2655
-2655
-2655

query I rowsort
SELECT ALL + col2 + - + 37 AS col0 FROM tab2
----
-14
21
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8637
SELECT - CAST( + 84 AS SIGNED ) FROM tab1
----
-84
-84
-84

skipif mysql # not compatible
query I rowsort label-8637
SELECT - CAST ( + 84 AS INTEGER ) FROM tab1
----
-84
-84
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-8638
SELECT 77 + + SUM( ALL - col0 ) AS col1 FROM tab2
----
-108

skipif mysql # not compatible
query I rowsort label-8638
SELECT 77 + + SUM ( ALL - col0 ) AS col1 FROM tab2
----
-108

query II rowsort
SELECT DISTINCT col1 + 12, + col0 FROM tab2 AS cor0
----
63
46
79
75
89
64

onlyif mysql # aggregate syntax: 
query I rowsort label-8640
SELECT 53 * - 63 + + SUM( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-3495

skipif mysql # not compatible
query I rowsort label-8640
SELECT 53 * - 63 + + SUM ( ALL - col2 ) AS col0 FROM tab0 AS cor0
----
-3495

query II rowsort
SELECT ALL + col0 AS col0, - col1 AS col0 FROM tab0
----
15
-81
87
-21
97
-1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8642
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - + CAST( - col1 AS SIGNED ) IS NOT NULL ) )
----

skipif mysql # not compatible
query III rowsort label-8642
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( - + CAST ( - col1 AS INTEGER ) IS NOT NULL ) )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * + 30 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8644
SELECT 60 AS col2, - CAST( col0 AS SIGNED ) DIV - CAST( + 10 AS SIGNED ) FROM tab2 cor0
----
60
4
60
6
60
7

skipif mysql # not compatible
query II rowsort label-8644
SELECT 60 AS col2, - CAST ( col0 AS INTEGER ) / - CAST ( + 10 AS INTEGER ) FROM tab2 cor0
----
60
4
60
6
60
7

query I rowsort
SELECT + ( + + 5 ) AS col1 FROM tab2 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8646
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8647
SELECT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-8647
SELECT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2
----
-9

query II rowsort
SELECT DISTINCT + 43 AS col1, 21 + + col2 AS col0 FROM tab0
----
43
120
43
31
43
68

query III rowsort
SELECT * FROM tab1 WHERE NOT + + 22 < + ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL - col2 AS col2, - col1 * + + 3 * + + col1 FROM tab1
----
-59
-75
-68
-6627
-96
-588

query II rowsort
SELECT ALL col0 AS col0, + 16 AS col2 FROM tab0
----
15
16
87
16
97
16

query I rowsort
SELECT DISTINCT + col2 * - - ( - - col0 ) + 74 FROM tab2 cor0
----
1132
2634
4424

query I rowsort
SELECT 69 * col1 + col1 AS col1 FROM tab0 cor0
----
1470
5670
70

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 38 col2 FROM tab0 AS cor0 WHERE 57 + - + 99 + - col1 IN ( - - col0 * col1, + ( + col2 ), + col2 + - col1 - - col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8655
SELECT ALL + COUNT( * ) DIV - 91 * - + COUNT( * ) + 58 col2 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8655
SELECT ALL + COUNT ( * ) / - 91 * - + COUNT ( * ) + 58 col2 FROM tab1 AS cor0
----
58

query I rowsort
SELECT + 61 + - col2 * - 44 AS col0 FROM tab0 AS cor0
----
2129
4417
501

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8657
SELECT CAST( NULL AS SIGNED ) + 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8657
SELECT CAST ( NULL AS INTEGER ) + 6 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8658
SELECT DISTINCT - 14 * - CAST( NULL AS SIGNED ) * - ( + col1 ) + - 47 + 45 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8658
SELECT DISTINCT - 14 * - CAST ( NULL AS INTEGER ) * - ( + col1 ) + - 47 + 45 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col2 * 0 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT - col2 + - + 55 FROM tab0 AS cor0
----
-102
-154
-65

query II rowsort
SELECT ALL col1 * - + col2 AS col1, 41 AS col1 FROM tab2 AS cor0
----
-1173
41
-3080
41
-3886
41

onlyif mysql # DIV for integer division: 
query I rowsort label-8662
SELECT col1 DIV + col2 + col1 AS col0 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-8662
SELECT col1 / + col2 + col1 AS col0 FROM tab2
----
53
68
78

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-8663
SELECT DISTINCT 12 DIV + - 99 + - CAST( + col0 AS SIGNED ) * - - CAST( NULL AS SIGNED ) AS col2, - ( - + col1 ) DIV - + col1 AS col2 FROM tab0 WHERE NOT ( + col2 = 86 * + + col1 )
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-8663
SELECT DISTINCT 12 / + - 99 + - CAST ( + col0 AS INTEGER ) * - - CAST ( NULL AS INTEGER ) AS col2, - ( - + col1 ) / - + col1 AS col2 FROM tab0 WHERE NOT ( + col2 = 86 * + + col1 )
----
NULL
-1

query I rowsort
SELECT ALL 22 * + 94 * - 37 FROM tab0
----
-76516
-76516
-76516

query I rowsort
SELECT DISTINCT + col0 + col1 * + col0 + 21 FROM tab1
----
4389
531
786

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 19 * - - 77 * ( col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + col0 - - + col1 col0, 23 AS col1 FROM tab0 AS cor0
----
306
23
7590
23
9410
23

query I rowsort
SELECT ALL + ( + 34 ) - + col0 FROM tab1 AS cor0
----
-17
-51
-57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8669
SELECT DISTINCT 24 DIV COUNT( * ) AS col0 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-8669
SELECT DISTINCT 24 / COUNT ( * ) AS col0 FROM tab1
----
8

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 * col0 ) NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col1 * col2 ) BETWEEN ( - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8672
SELECT COUNT( * ) + 93 AS col1 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-8672
SELECT COUNT ( * ) + 93 AS col1 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8673
SELECT DISTINCT MIN( - 90 ) AS col0 FROM tab2
----
-90

skipif mysql # not compatible
query I rowsort label-8673
SELECT DISTINCT MIN ( - 90 ) AS col0 FROM tab2
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT - 65 + + COUNT( * ) AS col1 FROM tab0 WHERE NOT + ( - col2 ) * col1 + col1 IS NOT NULL
----
-65

skipif mysql # not compatible
query I rowsort label-8674
SELECT - 65 + + COUNT ( * ) AS col1 FROM tab0 WHERE NOT + ( - col2 ) * col1 + col1 IS NOT NULL
----
-65

query I rowsort
SELECT col0 * + 42 - - 46 FROM tab1
----
2188
3616
3868

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN - 50 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8677
SELECT + ( CAST( NULL AS SIGNED ) ) + col2 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8677
SELECT + ( CAST ( NULL AS INTEGER ) ) + col2 AS col1 FROM tab0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col1 + col2 NOT IN ( col1 * col1 + col0 * - 69 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + - 4 IN ( + ( + 14 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8681
SELECT ALL CAST( 47 AS SIGNED ) - - 55 AS col2 FROM tab0
----
102
102
102

skipif mysql # not compatible
query I rowsort label-8681
SELECT ALL CAST ( 47 AS INTEGER ) - - 55 AS col2 FROM tab0
----
102
102
102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8682
SELECT MIN( ALL ( + col0 ) ) DIV - COUNT( * ) - COUNT( * ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-8682
SELECT MIN ( ALL ( + col0 ) ) / - COUNT ( * ) - COUNT ( * ) FROM tab1
----
-20

query III rowsort
SELECT * FROM tab2 WHERE - col1 / 4 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 + - col2 col1 FROM tab1
----
-155
-164
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-8685
SELECT ALL + SUM( 54 ) FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-8685
SELECT ALL + SUM ( 54 ) FROM tab0
----
162

query I rowsort
SELECT DISTINCT 2 FROM tab0 WHERE - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col1 ) <= col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 1 IN ( + 21 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT - COUNT( * ) + 19 AS col2 FROM tab2
----
16

skipif mysql # not compatible
query I rowsort label-8690
SELECT - COUNT ( * ) + 19 AS col2 FROM tab2
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-8691
SELECT 91 + - COUNT( * ) FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-8691
SELECT 91 + - COUNT ( * ) FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-8692
SELECT + COUNT( col0 ) + COUNT( + col2 ) AS col1 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-8692
SELECT + COUNT ( col0 ) + COUNT ( + col2 ) AS col1 FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8693
SELECT DISTINCT 24 + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
27

skipif mysql # not compatible
query I rowsort label-8693
SELECT DISTINCT 24 + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
27

query I rowsort
SELECT DISTINCT col2 + + col1 * - col1 AS col2 FROM tab0 AS cor0
----
-431
-6514
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + ( 46 ) ) - 7 col0 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + ( col2 ) * col0 IS NOT NULL
----

query I rowsort
SELECT ALL + + 59 * + col2 FROM tab1 AS cor0
----
3481
4012
5664

query I rowsort
SELECT + col1 * 91 FROM tab2 AS cor0
----
4641
6097
7007

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + 2 = NULL
----

query I rowsort
SELECT - ( col1 ) * + 14 FROM tab1 cor0
----
-196
-658
-70

query I rowsort
SELECT ( - col1 ) FROM tab0 cor0 WHERE ( 13 ) < col0 + col2 * col0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + col2 * - 95 FROM tab0
----
-4465
-9405
-950

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT COUNT( * ) - 30 FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-8703
SELECT COUNT ( * ) - 30 FROM tab0
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8704
SELECT DISTINCT 32 - + 40 + AVG ( CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8704
SELECT DISTINCT 32 - + 40 + AVG ( CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + 39 AND ( + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col2 AND ( - col2 )
----

query I rowsort
SELECT col2 * - col0 - col2 * - col2 AS col1 FROM tab1
----
-1534
-1564
4320

query I rowsort
SELECT + 34 AS col2 FROM tab2 WHERE ( - 35 ) IS NULL
----

query I rowsort
SELECT - col0 AS col1 FROM tab1 WHERE 54 * + col2 NOT BETWEEN col1 + col0 AND NULL
----

query I rowsort
SELECT 36 + - 7 AS col2 FROM tab0
----
29
29
29

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 - + col0 IS NULL OR NOT + col1 + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN ( - col2 ) AND - 92
----

query I rowsort
SELECT DISTINCT col1 * 72 FROM tab1
----
1008
3384
360

query I rowsort
SELECT DISTINCT 31 + - + col2 + col1 * 1 AS col1 FROM tab0
----
-67
42
65

query I rowsort
SELECT ALL - ( 1 ) AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL - + col1 + - 99 AS col2 FROM tab2 AS cor0
----
-150
-166
-176

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8717
SELECT ALL + - col1 / - + col0 - - 58 * CAST( NULL AS SIGNED ) 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-8717
SELECT ALL + - col1 / - + col0 - - 58 * CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8718
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 68 + - col1 BETWEEN NULL AND ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-8718
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT 68 + - col1 BETWEEN NULL AND ( col1 )
----
0

query I rowsort
SELECT DISTINCT + - col0 * + + col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-8720
SELECT ALL - col0 * 13 DIV + col0 FROM tab2 AS cor0
----
-13
-13
-13

skipif mysql # not compatible
query I rowsort label-8720
SELECT ALL - col0 * 13 / + col0 FROM tab2 AS cor0
----
-13
-13
-13

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN NULL AND col0 / 88
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * col1 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 30 col1 FROM tab1, tab1 AS cor0
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query II rowsort
SELECT ALL 29 AS col1, + col1 AS col1 FROM tab0
----
29
1
29
21
29
81

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT NULL < 90
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col0 ) <> - col0
----

query II rowsort
SELECT ALL + 22 AS col1, 57 FROM tab0 AS cor0
----
22
57
22
57
22
57

query I rowsort
SELECT ALL + col0 * - 67 AS col1 FROM tab2 AS cor0
----
-3082
-4288
-5025

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT NULL < col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8730
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT + col0 * + col2 / col1 <> - col0 * col1 - col2
----

skipif mysql # not compatible
query I rowsort label-8730
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT + col0 * + col2 / col1 <> - col0 * col1 - col2
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 23 NOT IN ( - col2 + + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 > ( - + 68 )
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-8733
SELECT 16 * - ( + COUNT( * ) ) - - ( + 98 ) FROM tab0 cor0
----
50

skipif mysql # not compatible
query I rowsort label-8733
SELECT 16 * - ( + COUNT ( * ) ) - - ( + 98 ) FROM tab0 cor0
----
50

query I rowsort
SELECT DISTINCT - col1 * - 99 + - 7 AS col1 FROM tab0 AS cor0
----
2072
8012
92

query III rowsort
SELECT ALL * FROM tab1 WHERE + 13 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8736
SELECT DISTINCT 50 DIV 59 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8736
SELECT DISTINCT 50 / 59 FROM tab2
----
0

query III rowsort
SELECT * FROM tab0 WHERE NOT - 48 NOT BETWEEN NULL AND + + col1 + - 66
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 - + + 6 * + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col0 ) NOT IN ( - col0 + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 10 * + + col0 + 93 col0 FROM tab1
----
1003
603
943

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8741
SELECT ALL - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8741
SELECT ALL - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col2 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - + ( ( - + 6 ) ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT ALL MIN( ALL - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-8743
SELECT ALL MIN ( ALL - - col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT ALL ( - - 97 ) * - 3 + - CAST( NULL AS SIGNED ) / col2 + 74 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL ( - - 97 ) * - 3 + - CAST ( NULL AS INTEGER ) / col2 + 74 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8745
SELECT DISTINCT 25 * - MIN( ALL - CAST( NULL AS DECIMAL ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8745
SELECT DISTINCT 25 * - MIN ( ALL - CAST ( NULL AS REAL ) ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT - col0 * - col0 - ( + 26 ) FROM tab0
----
199
7543
9383

query I rowsort
SELECT + col1 + 94 AS col0 FROM tab1 AS cor0
----
108
141
99

query I rowsort
SELECT ALL 93 - + + col2 * col0 FROM tab1 AS cor0
----
-4803
-4922
-6095

query I rowsort
SELECT 79 + + + ( - + col1 ) FROM tab1 AS cor0
----
32
65
74

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8750
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST( col1 AS SIGNED ) IS NULL AND NOT ( 7 ) NOT BETWEEN - col0 AND - col2
----

skipif mysql # not compatible
query III rowsort label-8750
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + CAST ( col1 AS INTEGER ) IS NULL AND NOT ( 7 ) NOT BETWEEN - col0 AND - col2
----

query I rowsort
SELECT ALL - 19 + + col0 - col2 * - col2 AS col1 FROM tab1 AS cor0
----
3547
4696
9248

query I rowsort
SELECT - 3 + col1 * - + 6 - - - ( - col0 ) FROM tab1 AS cor0
----
-194
-36
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8753
SELECT + CAST( NULL AS SIGNED ) + - + col2 / - col1 * - 92 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8753
SELECT + CAST ( NULL AS INTEGER ) + - + col2 / - col1 * - 92 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 31 + + - 47 FROM tab1 AS cor0
----
-16
-16
-16

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE NOT - col2 IN ( - - 76 * - col0 )
----
14
47
5

query II rowsort
SELECT + ( + 39 ) AS col0, + col2 AS col2 FROM tab2
----
39
23
39
40
39
58

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( 45 * + ( + - col1 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - - col2 * + col1 ) <> - 30 * - col0 * 61
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + 42 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL - + 37 * - - ( - 19 ) FROM tab1 AS cor0
----
703
703
703

query I rowsort
SELECT ALL + 16 * - col1 * + col0 FROM tab2 AS cor0
----
-37536
-78848
-80400

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8762
SELECT DISTINCT - + COUNT( * ) DIV 1 col2, - 24 AS col0 FROM tab0 AS cor0
----
-3
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8762
SELECT DISTINCT - + COUNT ( * ) / 1 col2, - 24 AS col0 FROM tab0 AS cor0
----
-3
-24

query I rowsort
SELECT + 87 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8764
SELECT ALL - 62 DIV + 5, + col0 DIV 51 AS col1 FROM tab2
----
-12
0
-12
1
-12
1

skipif mysql # not compatible
query II rowsort label-8764
SELECT ALL - 62 / + 5, + col0 / 51 AS col1 FROM tab2
----
-12
0
-12
1
-12
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8765
SELECT * FROM tab2 cor0 WHERE NOT ( ( CAST( NULL AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8765
SELECT * FROM tab2 cor0 WHERE NOT ( ( CAST ( NULL AS INTEGER ) ) IS NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8766
SELECT MAX( ( - 94 ) ) DIV 59 AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8766
SELECT MAX ( ( - 94 ) ) / 59 AS col2 FROM tab0 AS cor0
----
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8767
SELECT - COUNT( col2 ) DIV - 63 AS col2 FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8767
SELECT - COUNT ( col2 ) / - 63 AS col2 FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8768
SELECT DISTINCT col0 DIV - + col1 + - 3 + + - ( - col0 ) FROM tab0 AS cor0
----
-3
12
80

skipif mysql # not compatible
query I rowsort label-8768
SELECT DISTINCT col0 / - + col1 + - 3 + + - ( - col0 ) FROM tab0 AS cor0
----
-3
12
80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 78 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - col0 NOT BETWEEN + 38 AND - col1 * - 86
----
51
14
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8771
SELECT - COUNT( * ) DIV - + 63 * + COUNT( * ) * COUNT( * ) + - + 64 FROM tab1 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8771
SELECT - COUNT ( * ) / - + 63 * + COUNT ( * ) * COUNT ( * ) + - + 64 FROM tab1 cor0
----
-64

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT ALL - 66 DIV + COUNT( * ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-8772
SELECT ALL - 66 / + COUNT ( * ) AS col0 FROM tab1
----
-22

query II rowsort
SELECT ALL + col2, - 83 FROM tab0
----
10
-83
47
-83
99
-83

query I rowsort
SELECT + - col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query II rowsort
SELECT + 98 AS col2, - col1 FROM tab2
----
98
-51
98
-67
98
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT + + COUNT( * ) AS col2 FROM tab2 WHERE NOT - col2 + + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-8776
SELECT + + COUNT ( * ) AS col2 FROM tab2 WHERE NOT - col2 + + col2 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-8777
SELECT 84 AS col1, COUNT( * ) * SUM( DISTINCT - col1 ) FROM tab0
----
84
-309

skipif mysql # not compatible
query II rowsort label-8777
SELECT 84 AS col1, COUNT ( * ) * SUM ( DISTINCT - col1 ) FROM tab0
----
84
-309

query II rowsort
SELECT ALL - col1, - 20 AS col1 FROM tab1
----
-14
-20
-47
-20
-5
-20

query II rowsort
SELECT col2 AS col1, ( + col1 ) AS col1 FROM tab0
----
10
21
47
81
99
1

query I rowsort
SELECT - col1 * + + col1 AS col1 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT DISTINCT 33 + - - 47 * + ( - - 37 ) AS col0, - col0 AS col0 FROM tab0
----
1772
-15
1772
-87
1772
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8782
SELECT ALL COUNT( * ) + - - 20 FROM tab2 cor0
----
23

skipif mysql # not compatible
query I rowsort label-8782
SELECT ALL COUNT ( * ) + - - 20 FROM tab2 cor0
----
23

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col0 - - + col2 AND + + 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8784
SELECT DISTINCT MAX( 1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-8784
SELECT DISTINCT MAX ( 1 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-8785
SELECT DISTINCT - col0 * - col2 DIV + - col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-8785
SELECT DISTINCT - col0 * - col2 / + - col2 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT DISTINCT ( 29 ) AS col2 FROM tab0
----
29

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 38 * - ( + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + - col2 + + 8, col2 FROM tab0 AS cor0
----
-2
10
-39
47
-91
99

query I rowsort
SELECT DISTINCT + ( - ( + col1 ) ) - - - ( - col0 ) FROM tab2 cor0
----
-13
-5
8

query I rowsort
SELECT + 85 - col2 FROM tab0 cor0
----
-14
38
75

query I rowsort
SELECT + + col0 AS col1 FROM tab1 AS cor0 WHERE ( + col0 ) + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < - 19 * col1
----

query II rowsort
SELECT + col2 AS col0, - 97 + + - col2 + col2 FROM tab1
----
59
-97
68
-97
96
-97

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 IN ( col1 - + col2 * 44, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( ( + + col1 + + 69 * + 75 + + 2 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8796
SELECT DISTINCT - 69 * + COUNT( * ) FROM tab0 cor0
----
-207

skipif mysql # not compatible
query I rowsort label-8796
SELECT DISTINCT - 69 * + COUNT ( * ) FROM tab0 cor0
----
-207

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT + + SUM( + + 52 ) FROM tab2 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-8797
SELECT + + SUM ( + + 52 ) FROM tab2 AS cor0
----
156

query I rowsort
SELECT ( 98 ) * col2 * - 80 AS col2 FROM tab2
----
-180320
-313600
-454720

query I rowsort
SELECT col1 + - + 6 * - - col0 FROM tab0 WHERE NOT - col2 BETWEEN col2 AND + 5
----
-501
-581
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-8800
SELECT ALL - + col1 DIV + col1 + 3 * col1 FROM tab2 AS cor0
----
152
200
230

skipif mysql # not compatible
query I rowsort label-8800
SELECT ALL - + col1 / + col1 + 3 * col1 FROM tab2 AS cor0
----
152
200
230

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 90 * + 80 NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8802
SELECT DISTINCT + + col0 / - + 54 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8802
SELECT DISTINCT + + col0 / - + 54 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8803
SELECT ALL MAX( DISTINCT - col1 ) DIV + 39 col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8803
SELECT ALL MAX ( DISTINCT - col1 ) / + 39 col0 FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 39 / ( - 78 ) * - col0 + col2 * + 12 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT ALL 66 * - ( COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-8805
SELECT ALL 66 * - ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
-198

query I rowsort
SELECT ALL - col1 * + 54 * + col0 AS col0 FROM tab1 AS cor0
----
-22950
-230958
-38556

query I rowsort
SELECT - 46 * ( - - col1 ) AS col1 FROM tab1 cor0
----
-2162
-230
-644

query II rowsort
SELECT + col2, 36 - - - 94 FROM tab1 AS cor0
----
59
-58
68
-58
96
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT + + MIN( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-8809
SELECT + + MIN ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
-47

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT 27 IS NOT NULL
----

query I rowsort
SELECT + ( - - col2 ) + + 35 FROM tab2
----
58
75
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8812
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE 37 >= col1 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT + col2 AS col0 FROM tab1 WHERE 37 >= col1 + - - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL + 17 * - ( - 54 ) FROM tab1
----
918
918
918

query I rowsort
SELECT ALL col1 * + + col2 * col1 AS col0 FROM tab0
----
308367
4410
99

query I rowsort
SELECT DISTINCT 97 + + col1 FROM tab2
----
148
164
174

query II rowsort
SELECT DISTINCT + col2 + col2, col1 + col1 AS col2 FROM tab2
----
116
134
46
102
80
154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + + 56 col0 FROM tab2 AS cor0
----
-2
16
33

query II rowsort
SELECT ALL ( - col0 ), + ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE - col2 NOT BETWEEN + - 76 + - ( - - 35 ) AND + 69
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8819
SELECT ALL + COUNT( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8819
SELECT ALL + COUNT ( * ) AS col1 FROM ( tab0 cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT - 58 + + - col2 FROM tab1 cor0
----
-117
-126
-154

query I rowsort
SELECT ALL + 80 + + + 40 FROM tab1 AS cor0
----
120
120
120

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8822
SELECT DISTINCT - - 73 + + - CAST( NULL AS DECIMAL ) + col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8822
SELECT DISTINCT - - 73 + + - CAST ( NULL AS REAL ) + col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 - + - col2 * - col0 * - - ( - 70 ) * col0 AS col0 FROM tab0 AS cor0
----
5298321
65204371
740331

query I rowsort
SELECT + - col2 / col0 AS col2 FROM tab2 cor0 WHERE + 87 * - col2 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( ( NOT + col0 IS NULL ) )
----

query I rowsort
SELECT + + 26 * col1 AS col1 FROM tab2 AS cor0
----
1326
1742
2002

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 45 * + col1 + + col1 IS NULL
----

query II rowsort
SELECT ALL + + col2, col1 FROM tab1 AS cor0
----
59
5
68
47
96
14

onlyif mysql # DIV for integer division: 
query II rowsort label-8829
SELECT DISTINCT + ( - col2 ) DIV + + col0 - - col2, + col0 FROM tab2
----
23
46
40
64
58
75

skipif mysql # not compatible
query II rowsort label-8829
SELECT DISTINCT + ( - col2 ) / + + col0 - - col2, + col0 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 / - + col0 * - 15 + - - 13 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 * - 72 col2, 26 FROM tab2 AS cor0
----
1656
26
2880
26
4176
26

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + ( - - col1 ) ) IS NULL
----

query II rowsort
SELECT ALL + col2, - col0 AS col1 FROM tab1
----
59
-85
68
-91
96
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-8834
SELECT DISTINCT COUNT( * ) AS col1, + 15 FROM tab0
----
3
15

skipif mysql # not compatible
query II rowsort label-8834
SELECT DISTINCT COUNT ( * ) AS col1, + 15 FROM tab0
----
3
15

query I rowsort
SELECT + - ( - col2 ) AS col0 FROM tab0 cor0
----
10
47
99

query I rowsort
SELECT DISTINCT - col1 * - 2 + - + col0 + 57 AS col1 FROM tab1 AS cor0
----
-18
34
60

onlyif mysql # aggregate syntax: 
query I rowsort label-8837
SELECT ALL - - 33 + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8837
SELECT ALL - - 33 + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8838
SELECT DISTINCT - MAX( ALL - + 79 ) col2 FROM tab2 cor0
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8838
SELECT DISTINCT - MAX ( ALL - + 79 ) col2 FROM tab2 cor0
----
79

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8839
SELECT + + ( 65 ) DIV COUNT( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8839
SELECT + + ( 65 ) / COUNT ( ALL + col0 ) AS col2 FROM tab1 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-8840
SELECT COUNT( ALL + - 7 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8840
SELECT COUNT ( ALL + - 7 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 16 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL 20 * col0 AS col1 FROM tab2
----
1280
1500
920

onlyif mysql # aggregate syntax: 
query I rowsort label-8843
SELECT 12 * - COUNT( * ) AS col0 FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-8843
SELECT 12 * - COUNT ( * ) AS col0 FROM tab1
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8844
SELECT DISTINCT - MIN( + col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1

skipif mysql # not compatible
query I rowsort label-8844
SELECT DISTINCT - MIN ( + col1 ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1

query III rowsort
SELECT * FROM tab2 WHERE + col0 * + - col0 < 28 + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 19 * col1 * + - col1 AS col1 FROM tab2
----
-112651
-49419
-85291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8847
SELECT DISTINCT SUM( ALL - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8847
SELECT DISTINCT SUM ( ALL - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8848
SELECT ( - + 56 ) * CAST( 67 AS SIGNED ) FROM tab0
----
-3752
-3752
-3752

skipif mysql # not compatible
query I rowsort label-8848
SELECT ( - + 56 ) * CAST ( 67 AS INTEGER ) FROM tab0
----
-3752
-3752
-3752

query I rowsort
SELECT ALL col2 * - 45 + - 79 + col1 * col0 AS col0 FROM tab0
----
-4437
-979
1298

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8850
SELECT 60 * 77 DIV - COUNT( * ) FROM tab2
----
-1540

skipif mysql # not compatible
query I rowsort label-8850
SELECT 60 * 77 / - COUNT ( * ) FROM tab2
----
-1540

query I rowsort
SELECT DISTINCT col1 + ( - col0 ) AS col1 FROM tab2
----
-8
13
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8852
SELECT 68 + + COUNT( * ) FROM tab1
----
71

skipif mysql # not compatible
query I rowsort label-8852
SELECT 68 + + COUNT ( * ) FROM tab1
----
71

query I rowsort
SELECT DISTINCT 4 + col1 + - 33 AS col1 FROM tab2 AS cor0
----
22
38
48

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 79 > - 3
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8855
SELECT - COUNT( * ) DIV - 6 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT - COUNT ( * ) / - 6 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8856
SELECT * FROM tab0 AS cor0 WHERE + CAST( - col0 AS SIGNED ) IN ( - + 56, 1 * - 85 / - 31 )
----

skipif mysql # not compatible
query III rowsort label-8856
SELECT * FROM tab0 AS cor0 WHERE + CAST ( - col0 AS INTEGER ) IN ( - + 56, 1 * - 85 / - 31 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8857
SELECT DISTINCT col2 * + col1 col2 FROM tab1 AS cor0 WHERE col1 <> + CAST( ( - - col0 ) AS SIGNED ) / col0 + + col0 * + col0
----
1344
295
3196

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8857
SELECT DISTINCT col2 * + col1 col2 FROM tab1 AS cor0 WHERE col1 <> + CAST ( ( - - col0 ) AS INTEGER ) / col0 + + col0 * + col0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 36 col1 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT - - 7 AS col1 FROM tab1 cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8860
SELECT + CAST( + col1 AS SIGNED ), - col1 + + 68 col2 FROM tab0 AS cor0
----
1
67
21
47
81
-13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8860
SELECT + CAST ( + col1 AS INTEGER ), - col1 + + 68 col2 FROM tab0 AS cor0
----
1
67
21
47
81
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-8861
SELECT ALL + MIN( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8861
SELECT ALL + MIN ( - - col1 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8862
SELECT - - ( COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8862
SELECT - - ( COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-8863
SELECT ALL 25 DIV - col2 * 28 AS col1, col2 + + - col2 FROM tab1
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-8863
SELECT ALL 25 / - col2 * 28 AS col1, col2 + + - col2 FROM tab1
----
0
0
0
0
0
0

query I rowsort
SELECT ALL + 5 AS col1 FROM tab0 WHERE NOT ( NOT - col0 >= NULL )
----

query II rowsort
SELECT col2, 11 * 53 FROM tab0
----
10
583
47
583
99
583

query III rowsort
SELECT ALL * FROM tab2 WHERE + 27 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 57 * - + col0 AS col0 FROM tab0 AS cor0
----
-4959
-5529
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-8868
SELECT DISTINCT MAX( ALL - 81 ) AS col1 FROM tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-8868
SELECT DISTINCT MAX ( ALL - 81 ) AS col1 FROM tab1 AS cor0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-8869
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE + col0 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8870
SELECT - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8870
SELECT - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL - + ( 5 ) AS col1 FROM tab0 AS cor0
----
-5
-5
-5

query I rowsort
SELECT col2 + col2 + - + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8873
SELECT + col1 + + - CAST( + 25 AS SIGNED ) + + - col0 * - 9 AS col2 FROM tab2 AS cor0
----
440
628
717

skipif mysql # not compatible
query I rowsort label-8873
SELECT + col1 + + - CAST ( + 25 AS INTEGER ) + + - col0 * - 9 AS col2 FROM tab2 AS cor0
----
440
628
717

onlyif mysql # aggregate syntax: 
query I rowsort label-8874
SELECT COUNT( * ) + SUM( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-224

skipif mysql # not compatible
query I rowsort label-8874
SELECT COUNT ( * ) + SUM ( DISTINCT - col0 ) AS col2 FROM tab1 AS cor0
----
-224

query I rowsort
SELECT ( col1 ) + + col1 * - + 32 FROM tab0
----
-2511
-31
-651

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - col1 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + 16 + 85 FROM tab1 AS cor0
----
101
101
101

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8879
SELECT DISTINCT - col0 * + CAST( NULL AS DECIMAL ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8879
SELECT DISTINCT - col0 * + CAST ( NULL AS REAL ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT 84 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

query I rowsort
SELECT col2 * 93 FROM tab1 cor0
----
5487
6324
8928

onlyif mysql # aggregate syntax: 
query I rowsort label-8882
SELECT ALL + 76 * + MIN( - - col2 ) FROM tab0 AS cor0
----
760

skipif mysql # not compatible
query I rowsort label-8882
SELECT ALL + 76 * + MIN ( - - col2 ) FROM tab0 AS cor0
----
760

onlyif mysql # DIV for integer division: 
query I rowsort label-8883
SELECT + col0 DIV 76 AS col1 FROM tab0 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8883
SELECT + col0 / 76 AS col1 FROM tab0 AS cor0
----
0
1
1

query I rowsort
SELECT ALL + 52 * - - col1 FROM tab1 AS cor0
----
2444
260
728

query I rowsort
SELECT 66 FROM tab1 AS cor0 WHERE NOT + col0 * + + 36 - + + col2 <> 68 / - col1 + - col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8886
SELECT - - SUM( DISTINCT - 29 ) AS col2, - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-29
-3

skipif mysql # not compatible
query II rowsort label-8886
SELECT - - SUM ( DISTINCT - 29 ) AS col2, - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-29
-3

query I rowsort
SELECT DISTINCT + col2 * - col1 * - + col1 * - - 74 AS col0 FROM tab0
----
22819158
326340
7326

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT ALL 22 DIV + - col2 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8888
SELECT ALL 22 / + - col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8889
SELECT ALL SUM( DISTINCT + 61 ) AS col0 FROM tab1
----
61

skipif mysql # not compatible
query I rowsort label-8889
SELECT ALL SUM ( DISTINCT + 61 ) AS col0 FROM tab1
----
61

query I rowsort
SELECT col0 * - col2 * ( col1 ) AS col1 FROM tab0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-8891
SELECT SUM( - col2 ) * - MAX( - col1 ) AS col1 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-8891
SELECT SUM ( - col2 ) * - MAX ( - col1 ) AS col1 FROM tab0
----
-156

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8892
SELECT - - col2 * - - col0 * - CAST( 55 AS SIGNED ) * CAST( + col0 AS SIGNED ) FROM tab2 AS cor0
----
-17943750
-2676740
-9011200

skipif mysql # not compatible
query I rowsort label-8892
SELECT - - col2 * - - col0 * - CAST ( 55 AS INTEGER ) * CAST ( + col0 AS INTEGER ) FROM tab2 AS cor0
----
-17943750
-2676740
-9011200

onlyif mysql # DIV for integer division: 
query II rowsort label-8893
SELECT DISTINCT 55 DIV col0 * + - 29, - col0 col0 FROM tab0 AS cor0
----
-87
-15
0
-87
0
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8893
SELECT DISTINCT 55 / col0 * + - 29, - col0 col0 FROM tab0 AS cor0
----
-87
-15
0
-87
0
-97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > col1 + + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT + + COUNT( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-8895
SELECT + + COUNT ( * ) FROM ( tab1 cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 58 col0 FROM tab2 cor0
----
58
58
58

query I rowsort
SELECT DISTINCT 94 AS col2 FROM tab1 cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8898
SELECT - ( CAST( NULL AS SIGNED ) ) FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8898
SELECT - ( CAST ( NULL AS INTEGER ) ) FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8899
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 * ( + - 83 ) * + CAST( NULL AS SIGNED ) + + col0 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8899
SELECT - col0 AS col2 FROM tab1 AS cor0 WHERE + col0 * ( + - 83 ) * + CAST ( NULL AS INTEGER ) + + col0 IS NULL
----
-51
-85
-91

query IIIIII rowsort
SELECT ALL * FROM tab1, tab2 AS cor0 WHERE NULL > - 46
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8901
SELECT - ( + col0 ) * col1 DIV + - col0 col1, + col0 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8901
SELECT - ( + col0 ) * col1 / + - col0 col1, + col0 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT + col0 * + 7 - - col2 FROM tab2
----
345
488
583

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8903
SELECT DISTINCT + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-8903
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 + + + 13 * - - col1 AS col2 FROM tab0
----
-84
1038
186

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 * + - ( - 73 ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8906
SELECT SUM( + - col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-8906
SELECT SUM ( + - col2 ) FROM tab2 AS cor0
----
-121

query I rowsort
SELECT ALL - + 74 / col0 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 * col1 NOT IN ( 42, - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 28 + + col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT - 21 = - + 40 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 38 * 59 col0 FROM tab2 cor0
----
2242
2242
2242

query I rowsort
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( + 90 * - - ( + col0 ) ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - col2 AS col1, - 36 AS col0 FROM tab0
----
-10
-36
-47
-36
-99
-36

query II rowsort
SELECT col0, + col2 * col0 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-8916
SELECT ALL + col2 DIV 18 FROM tab1
----
3
3
5

skipif mysql # not compatible
query I rowsort label-8916
SELECT ALL + col2 / 18 FROM tab1
----
3
3
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 15, col0 col2 FROM tab2
----
15
46
15
64
15
75

onlyif mysql # aggregate syntax: 
query II rowsort label-8918
SELECT DISTINCT - COUNT( * ) AS col1, - 25 FROM tab1
----
-3
-25

skipif mysql # not compatible
query II rowsort label-8918
SELECT DISTINCT - COUNT ( * ) AS col1, - 25 FROM tab1
----
-3
-25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8919
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) DIV - + 83 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) / - + 83 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8920
SELECT + MIN( - + 57 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8920
SELECT + MIN ( - + 57 ) FROM tab2 AS cor0
----
-57

query I rowsort
SELECT ALL + 46 * + + 37 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3eb050d95b9140473c3d08878fa7ae27

query II rowsort
SELECT col0 + + col2, - 71 AS col1 FROM tab2 AS cor0
----
104
-71
133
-71
69
-71

query I rowsort
SELECT - 80 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL OR NOT - 90 - - - col2 * + 16 IS NULL
----
-80
-80
-80

query I rowsort
SELECT ALL col2 + + col1 - col2 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - - col1 + 77 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
124
82
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT + + 45 + COUNT( * ) AS col1 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-8926
SELECT + + 45 + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
48

query I rowsort
SELECT + + col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8928
SELECT COUNT( * ) + ( CAST( NULL AS SIGNED ) ) * + MAX( DISTINCT + col2 ) col2, COUNT( * ) col1 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8928
SELECT COUNT ( * ) + ( CAST ( NULL AS INTEGER ) ) * + MAX ( DISTINCT + col2 ) col2, COUNT ( * ) col1 FROM tab2 AS cor0
----
NULL
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8929
SELECT ALL + COUNT( * ) + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8929
SELECT ALL + COUNT ( * ) + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + col2 + + col0 - + col0 + col2 * + col2 FROM tab2 AS cor0
----
1640
3422
552

onlyif mysql # DIV for integer division: 
query I rowsort label-8931
SELECT DISTINCT col0 - + col0 * col0 DIV + col1 AS col0 FROM tab1
----
-134
-1360
-85

skipif mysql # not compatible
query I rowsort label-8931
SELECT DISTINCT col0 - + col0 * col0 / + col1 AS col0 FROM tab1
----
-134
-1360
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT ALL 34 * 28 * + - MIN( ALL col1 ) - - 38 AS col2 FROM tab0
----
-914

skipif mysql # not compatible
query I rowsort label-8932
SELECT ALL 34 * 28 * + - MIN ( ALL col1 ) - - 38 AS col2 FROM tab0
----
-914

onlyif mysql # aggregate syntax: 
query I rowsort label-8933
SELECT DISTINCT + SUM( - - col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT + SUM ( - - col0 ) FROM tab2
----
185

query I rowsort
SELECT - col2 * - + 99 FROM tab0
----
4653
9801
990

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - col1 - col1 > ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col2 <> + col2 / - 38
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8937
SELECT DISTINCT + COUNT( * ) AS col2, + CAST( - COUNT( * ) AS SIGNED ) AS col0 FROM tab0
----
3
-3

skipif mysql # not compatible
query II rowsort label-8937
SELECT DISTINCT + COUNT ( * ) AS col2, + CAST ( - COUNT ( * ) AS INTEGER ) AS col0 FROM tab0
----
3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 96 + - 66 + col2 * - + col1 * - 21 * col2 col0, - col1 AS col0 FROM tab0
----
205851
-1
3757539
-81
44130
-21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col0 * 82 IS NULL
----

query I rowsort
SELECT ALL - - col1 + + - 80 AS col2 FROM tab2 AS cor0
----
-13
-29
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8941
SELECT + ( 8 ) - - - CAST( + col2 AS SIGNED ) + - col1 + - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-120
-182
-288

skipif mysql # not compatible
query I rowsort label-8941
SELECT + ( 8 ) - - - CAST ( + col2 AS INTEGER ) + - col1 + - col0 + - col2 AS col2 FROM tab0 AS cor0
----
-120
-182
-288

query I rowsort
SELECT ALL - 61 * - - ( col0 ) FROM tab0 AS cor0
----
-5307
-5917
-915

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8944
SELECT DISTINCT + COUNT( * ) * + CAST( NULL AS SIGNED ), ( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8944
SELECT DISTINCT + COUNT ( * ) * + CAST ( NULL AS INTEGER ), ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL
NULL

query I rowsort
SELECT - - 64 * 63 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7a0e0539b6c778dc1428b967d1e327c8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8946
SELECT DISTINCT - CAST( - col2 AS SIGNED ), col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

skipif mysql # not compatible
query II rowsort label-8946
SELECT DISTINCT - CAST ( - col2 AS INTEGER ), col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

query I rowsort
SELECT + 39 * + ( + 9 ) + + 79 + + col2 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8948
SELECT ALL + col0 col1 FROM tab0 AS cor0 WHERE CAST( + 8 AS SIGNED ) + - col2 + + col1 * 5 * col1 + - col1 + + CAST( NULL AS SIGNED ) * col0 IS NULL
----
15
87
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8948
SELECT ALL + col0 col1 FROM tab0 AS cor0 WHERE CAST ( + 8 AS INTEGER ) + - col2 + + col1 * 5 * col1 + - col1 + + CAST ( NULL AS INTEGER ) * col0 IS NULL
----
15
87
97

query I rowsort
SELECT DISTINCT + - 54 AS col1 FROM tab1 cor0
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-8950
SELECT ALL COUNT( ALL 2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8950
SELECT ALL COUNT ( ALL 2 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL - col0 AS col2 FROM tab2 AS cor0 WHERE 46 = + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8952
SELECT DISTINCT 4 * - - COUNT( * ) AS col0 FROM tab2, tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-8952
SELECT DISTINCT 4 * - - COUNT ( * ) AS col0 FROM tab2, tab2 AS cor0
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-8953
SELECT ALL + COUNT( * ) + 45 FROM tab1
----
48

skipif mysql # not compatible
query I rowsort label-8953
SELECT ALL + COUNT ( * ) + 45 FROM tab1
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-8954
SELECT DISTINCT + - COUNT( * ) + + 34 AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-8954
SELECT DISTINCT + - COUNT ( * ) + + 34 AS col0 FROM tab1 AS cor0
----
31

query II rowsort
SELECT ALL 62, col1 AS col1 FROM tab1 AS cor0
----
62
14
62
47
62
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col2 * + col0 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8957
SELECT CAST( NULL AS SIGNED ) + + ( - ( - + col0 ) ) AS col0, - 47 FROM tab2
----
NULL
-47
NULL
-47
NULL
-47

skipif mysql # not compatible
query II rowsort label-8957
SELECT CAST ( NULL AS INTEGER ) + + ( - ( - + col0 ) ) AS col0, - 47 FROM tab2
----
NULL
-47
NULL
-47
NULL
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8958
SELECT + 14 / col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8958
SELECT + 14 / col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 7 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT 55 + - col2 * 35 * - - col2 AS col2 FROM tab0 AS cor0
----
-342980
-3445
-77260

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT DISTINCT 75 * - ( - COUNT( * ) ) + - 9 + COUNT( * ) AS col1 FROM tab1 cor0
----
219

skipif mysql # not compatible
query I rowsort label-8961
SELECT DISTINCT 75 * - ( - COUNT ( * ) ) + - 9 + COUNT ( * ) AS col1 FROM tab1 cor0
----
219

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8962
SELECT DISTINCT + CAST( + col0 AS SIGNED ) * - col2 col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8962
SELECT DISTINCT + CAST ( + col0 AS INTEGER ) * - col2 col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + 74 ) - + - col1 NOT BETWEEN + col2 / 32 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8964
SELECT + + COUNT( * ) - - SUM( ALL - + 0 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8964
SELECT + + COUNT ( * ) - - SUM ( ALL - + 0 ) AS col1 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE - + 3 <= + + 39 * 46 + 41
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT - 20 + + COUNT( * ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-8966
SELECT - 20 + + COUNT ( * ) AS col2 FROM tab1
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8967
SELECT COUNT( * ) + 75 FROM tab0
----
78

skipif mysql # not compatible
query I rowsort label-8967
SELECT COUNT ( * ) + 75 FROM tab0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT ALL MIN( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8968
SELECT ALL MIN ( DISTINCT col2 ) AS col2 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8969
SELECT + + ( - ( + + MAX( ALL - col2 ) ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8969
SELECT + + ( - ( + + MAX ( ALL - col2 ) ) ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8970
SELECT - ( - - CAST( + COUNT( col0 ) AS SIGNED ) ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-8970
SELECT - ( - - CAST ( + COUNT ( col0 ) AS INTEGER ) ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT DISTINCT - 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 45 IS NOT NULL
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8972
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - 81 )
----

skipif mysql # not compatible
query III rowsort label-8972
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - 81 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT DISTINCT + SUM( ALL + 53 ) * + ( + 67 ) FROM tab1 cor0 WHERE NOT col0 + - 95 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8973
SELECT DISTINCT + SUM ( ALL + 53 ) * + ( + 67 ) FROM tab1 cor0 WHERE NOT col0 + - 95 <= NULL
----
NULL

query II rowsort
SELECT DISTINCT - col1 AS col0, col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8975
SELECT - COUNT( * ) / - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8975
SELECT - COUNT ( * ) / - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 47 * col0 * + - col1 * + col1 FROM tab1 AS cor0
----
469812
9447893
99875

query II rowsort
SELECT + - col1 AS col0, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8978
SELECT ALL col2 * ( + ( + - 27 ) ) DIV - 80 col2 FROM tab0 AS cor0
----
15
3
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8978
SELECT ALL col2 * ( + ( + - 27 ) ) / - 80 col2 FROM tab0 AS cor0
----
15
3
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8979
SELECT - COUNT( * ) + ( + - 81 ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-8979
SELECT - COUNT ( * ) + ( + - 81 ) FROM tab1
----
-84

onlyif mysql # DIV for integer division: 
query II rowsort label-8980
SELECT ALL - ( col0 ) AS col2, ( - + ( col1 ) ) * - ( + 0 ) DIV 42 * + col0 + + - 80 FROM tab2
----
-46
-80
-64
-80
-75
-80

skipif mysql # not compatible
query II rowsort label-8980
SELECT ALL - ( col0 ) AS col2, ( - + ( col1 ) ) * - ( + 0 ) / 42 * + col0 + + - 80 FROM tab2
----
-46
-80
-64
-80
-75
-80

query I rowsort
SELECT ALL - col1 * + + ( - col2 ) FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT DISTINCT SUM( - col1 ) * + COUNT( * ) + + ( - SUM( - col1 ) ) AS col0 FROM tab0
----
-206

skipif mysql # not compatible
query I rowsort label-8982
SELECT DISTINCT SUM ( - col1 ) * + COUNT ( * ) + + ( - SUM ( - col1 ) ) AS col0 FROM tab0
----
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-8983
SELECT ALL COUNT( * ) + 51 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8983
SELECT ALL COUNT ( * ) + 51 FROM tab2 AS cor0
----
54

query I rowsort
SELECT ALL 44 + - col2 FROM tab2
----
-14
21
4

query I rowsort
SELECT ALL - col0 + + col2 + 40 AS col0 FROM tab1 AS cor0
----
14
17
85

query I rowsort
SELECT DISTINCT col0 + - + 92 AS col1 FROM tab0 AS cor0
----
-5
-77
5

query I rowsort
SELECT - col1 + + - col2 AS col0 FROM tab1 AS cor0
----
-110
-115
-64

query I rowsort
SELECT col2 * + 97 * + + 8 + col2 + 32 FROM tab2 AS cor0
----
17903
31112
45098

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8989
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED ) * - + col1 * + 90
----

skipif mysql # not compatible
query III rowsort label-8989
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER ) * - + col1 * + 90
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 BETWEEN NULL AND + - 91
----

query I rowsort
SELECT ALL + col0 * + col2 - + - col1 AS col0 FROM tab2
----
1109
2637
4417

query I rowsort
SELECT DISTINCT col1 * + - 93 AS col2 FROM tab1
----
-1302
-4371
-465

query I rowsort
SELECT - 26 + 74 * - ( col0 ) * - + col1 / + + 90 AS col1 FROM tab2 WHERE NOT col0 * - ( - col0 ) + + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8994
SELECT DISTINCT - col1, CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-8994
SELECT DISTINCT - col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8995
SELECT ALL 27 AS col0, + 35 * + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
27
NULL
27
NULL
27
NULL

skipif mysql # not compatible
query II rowsort label-8995
SELECT ALL 27 AS col0, + 35 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
27
NULL
27
NULL
27
NULL

query II rowsort
SELECT + + col2 AS col2, 28 * + - col1 AS col1 FROM tab0 AS cor0
----
10
-588
47
-2268
99
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col1 + + 34 + 39 - - 42 * + 64 ) < ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-8997
SELECT - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col1 + + 34 + 39 - - 42 * + 64 ) < ( NULL )
----
0

query I rowsort
SELECT ALL col2 * - col1 + + + 73 FROM tab2 AS cor0
----
-1100
-3007
-3813

onlyif mysql # aggregate syntax: 
query I rowsort label-8999
SELECT ALL + - COUNT( DISTINCT col2 ) FROM tab0 WHERE + - col0 BETWEEN - 16 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8999
SELECT ALL + - COUNT ( DISTINCT col2 ) FROM tab0 WHERE + - col0 BETWEEN - 16 AND NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9000
SELECT - - 17 * COUNT( - CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9000
SELECT - - 17 * COUNT ( - CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query II rowsort label-9001
SELECT ALL + 62 + + 75 AS col1, 62 + - - ( - MAX( col1 ) ) AS col1 FROM tab1 AS cor0
----
137
15

skipif mysql # not compatible
query II rowsort label-9001
SELECT ALL + 62 + + 75 AS col1, 62 + - - ( - MAX ( col1 ) ) AS col1 FROM tab1 AS cor0
----
137
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND col2 * 31
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9003
SELECT + 4 AS col0, - ( COUNT( * ) ) * - 84 * + - COUNT( ALL + 30 ) AS col0 FROM tab0
----
4
-756

skipif mysql # not compatible
query II rowsort label-9003
SELECT + 4 AS col0, - ( COUNT ( * ) ) * - 84 * + - COUNT ( ALL + 30 ) AS col0 FROM tab0
----
4
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT + MAX( + 42 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-9004
SELECT + MAX ( + 42 ) FROM tab2
----
42

query II rowsort
SELECT - col2 AS col2, - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT ALL COUNT( * ) * - 17 * - COUNT( * ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-9006
SELECT ALL COUNT ( * ) * - 17 * - COUNT ( * ) FROM tab0
----
153

query I rowsort
SELECT ALL - col0 * - 27 + col2 AS col0 FROM tab0
----
2359
2718
452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9008
SELECT 42 * - col1 + - 26 AS col0 FROM tab0 cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) + 88 IS NULL
----
-3428
-68
-908

skipif mysql # not compatible
query I rowsort label-9008
SELECT 42 * - col1 + - 26 AS col0 FROM tab0 cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) + 88 IS NULL
----
-3428
-68
-908

query I rowsort
SELECT DISTINCT + 17 + + col1 AS col1 FROM tab0 AS cor0
----
18
38
98

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9010
SELECT ALL - + 54 * - col2 + - 37, + CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1205
NULL
2123
NULL
3095
NULL

skipif mysql # not compatible
query II rowsort label-9010
SELECT ALL - + 54 * - col2 + - 37, + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1205
NULL
2123
NULL
3095
NULL

query I rowsort
SELECT ALL - - col0 + - col2 + - ( + col2 ) * + ( + col1 ) AS col0 FROM tab2 cor0
----
-1150
-3056
-3869

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9012
SELECT DISTINCT + CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9012
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT - 42 + - col1 AS col0 FROM tab1
----
-47
-56
-89

query I rowsort
SELECT ALL - col0 * 42 - - - col2 FROM tab0
----
-3664
-4173
-677

query I rowsort
SELECT col2 + 9 * - 29 AS col0 FROM tab0
----
-162
-214
-251

query I rowsort
SELECT col1 * - 12 * + col1 FROM tab1
----
-2352
-26508
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-9017
SELECT ALL - col0 + - 36 DIV col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9017
SELECT ALL - col0 + - 36 / col0 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > - 35
----

query I rowsort
SELECT DISTINCT + col0 + - + 7 AS col0 FROM tab1 AS cor0
----
44
78
84

query I rowsort
SELECT DISTINCT 10 - - col1 FROM tab2 AS cor0
----
61
77
87

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9021
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) * col0 - + 16 + + col1 > NULL
----

skipif mysql # not compatible
query III rowsort label-9021
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) * col0 - + 16 + + col1 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9022
SELECT DISTINCT + 28 DIV + CAST( - col1 AS SIGNED ) + col0 FROM tab0 AS cor0
----
15
69
86

skipif mysql # not compatible
query I rowsort label-9022
SELECT DISTINCT + 28 / + CAST ( - col1 AS INTEGER ) + col0 FROM tab0 AS cor0
----
15
69
86

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col0 AS col2 FROM tab2 AS cor0
----
197120
291450
53958

query I rowsort
SELECT DISTINCT 27 * - - col2 * - 96 * + - col2 FROM tab0
----
25404192
259200
5725728

onlyif mysql # aggregate syntax: 
query I rowsort label-9025
SELECT DISTINCT + SUM( ALL + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-9025
SELECT DISTINCT + SUM ( ALL + col0 ) FROM tab2
----
185

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT + 7 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9027
SELECT ALL + col1, col2 - + + CAST( NULL AS SIGNED ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-9027
SELECT ALL + col1, col2 - + + CAST ( NULL AS INTEGER ) FROM tab2 cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9028
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + + - col1 / + col2 AND - - CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9028
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col0 + + - col1 / + col2 AND - - CAST ( - col2 AS INTEGER )
----

query II rowsort
SELECT DISTINCT col2, - col0 + + - col1 FROM tab0
----
10
-108
47
-96
99
-98

query I rowsort
SELECT ALL + 39 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

onlyif mysql # DIV for integer division: 
query II rowsort label-9031
SELECT + col0 col2, + col2 + + - col2 + col2 DIV col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9031
SELECT + col0 col2, + col2 + + - col2 + col2 / col2 FROM tab0 AS cor0
----
15
1
87
1
97
1

query I rowsort
SELECT DISTINCT 44 - col2 AS col1 FROM tab1 AS cor0 WHERE ( - col0 + col0 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT ALL - + 82 * col0 * - 20 + - 68 - - + col1 DIV ( - col2 ) * - - col1 AS col1 FROM tab0 AS cor0
----
142570
159012
24451

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL - + 82 * col0 * - 20 + - 68 - - + col1 / ( - col2 ) * - - col1 AS col1 FROM tab0 AS cor0
----
142570
159012
24451

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9034
SELECT - col0 * + col2 + 16 + - + col1 * + 39 * - CAST( NULL AS DECIMAL ) * 78 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9034
SELECT - col0 * + col2 + 16 + - + col1 * + 39 * - CAST ( NULL AS REAL ) * 78 * col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 68 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT ALL + - COUNT( * ) * - COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9036
SELECT ALL + - COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9037
SELECT DISTINCT 77 DIV COUNT( * ) + COUNT( * ) FROM tab1 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-9037
SELECT DISTINCT 77 / COUNT ( * ) + COUNT ( * ) FROM tab1 AS cor0
----
28

query I rowsort
SELECT ALL + 71 * + col2 FROM tab1 AS cor0
----
4189
4828
6816

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT + + 21 + + COUNT( DISTINCT + - col2 ) AS col0 FROM tab2 cor0
----
24

skipif mysql # not compatible
query I rowsort label-9039
SELECT + + 21 + + COUNT ( DISTINCT + - col2 ) AS col0 FROM tab2 cor0
----
24

query I rowsort
SELECT - 57 + + col1 AS col0 FROM tab1 AS cor0
----
-10
-43
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-9041
SELECT COUNT( - + 72 ) + - + 34 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-9041
SELECT COUNT ( - + 72 ) + - + 34 FROM tab2
----
-31

query I rowsort
SELECT 23 + + 60 FROM tab1
----
83
83
83

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col0 + + col1 IS NULL
----

query I rowsort
SELECT ALL + 31 - col0 * + + col1 AS col1 FROM tab0 AS cor0
----
-1184
-1796
-66

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 24 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + 25 col0 FROM tab1 AS cor0
----
30
39
72

onlyif mysql # DIV for integer division: 
query II rowsort label-9047
SELECT - ( + + col1 ) DIV col1 * + - col1 + - col0 * - + col1 AS col0, - ( - col1 ) + col1 FROM tab1 AS cor0
----
430
10
4324
94
728
28

skipif mysql # not compatible
query II rowsort label-9047
SELECT - ( + + col1 ) / col1 * + - col1 + - col0 * - + col1 AS col0, - ( - col1 ) + col1 FROM tab1 AS cor0
----
430
10
4324
94
728
28

query I rowsort
SELECT DISTINCT - col0 * + - col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND - 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9050
SELECT MIN( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9050
SELECT MIN ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE NOT NULL IN ( col1, col0, - - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9052
SELECT MIN( DISTINCT - 97 ) DIV + MAX( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9052
SELECT MIN ( DISTINCT - 97 ) / + MAX ( ALL + - col1 ) AS col0 FROM tab0 AS cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT ALL COUNT( * ) * - + 2 AS col0 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9053
SELECT ALL COUNT ( * ) * - + 2 AS col0 FROM tab0 AS cor0
----
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE 41 * col2 + - + col2 = - - 34
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 17 col1 FROM tab0
----
-1479
-1649
-255

query I rowsort
SELECT DISTINCT + ( - + col1 ) - - col2 AS col0 FROM tab2 WHERE NOT - + 31 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab2 WHERE + 91 * + 78 + - 67 * - col2 NOT BETWEEN - + 75 AND NULL
----

query I rowsort
SELECT + + AVG ( - ( col1 ) ) FROM tab0 WHERE NOT NULL <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9059
SELECT 62 DIV col0 AS col0, + col1 FROM tab1
----
0
47
0
5
1
14

skipif mysql # not compatible
query II rowsort label-9059
SELECT 62 / col0 AS col0, + col1 FROM tab1
----
0
47
0
5
1
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL COUNT( * ) * + MAX( ALL - col0 ) FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-9060
SELECT ALL COUNT ( * ) * + MAX ( ALL - col0 ) FROM tab1
----
-153

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * + 4 IS NOT NULL
----

query I rowsort
SELECT + col0 * - + 53 + - col0 AS col2 FROM tab1 AS cor0
----
-2754
-4590
-4914

query I rowsort
SELECT + col0 * 69 + ( - + col2 ) + - col2 * col0 FROM tab2
----
1816
2093
767

query I rowsort
SELECT - 29 + - 47 AS col1 FROM tab0
----
-76
-76
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - + 8 * - col2 - - col1 col1 FROM tab2
----
258
437
589

query I rowsort
SELECT ALL - col1 + 79 * - + col1 + + + col1 AS col1 FROM tab2 AS cor0
----
-4029
-5293
-6083

query I rowsort
SELECT ALL - - ( 73 ) * col0 FROM tab0 cor0
----
1095
6351
7081

query II rowsort
SELECT ALL - 61, col0 * - col2 AS col2 FROM tab2 AS cor0
----
-61
-1058
-61
-2560
-61
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9069
SELECT COUNT( ALL + - ( + col1 ) ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9069
SELECT COUNT ( ALL + - ( + col1 ) ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT - ( - + 5 ) AS col1 FROM tab0
----
5

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-9071
SELECT - COUNT( * ), ( CAST( NULL AS DECIMAL ) ) * 68 col2 FROM tab2
----
-3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9071
SELECT - COUNT ( * ), ( CAST ( NULL AS REAL ) ) * 68 col2 FROM tab2
----
-3
NULL

query I rowsort
SELECT + 95 - + col2 AS col1 FROM tab0
----
-4
48
85

query I rowsort
SELECT ALL + col1 * + col0 * - col2 AS col0 FROM tab1
----
-25075
-290836
-68544

query I rowsort
SELECT DISTINCT col0 + + - 44 + - 54 AS col2 FROM tab0
----
-1
-11
-83

query I rowsort
SELECT DISTINCT - ( col2 ) + + 22 AS col1 FROM tab0
----
-25
-77
12

query I rowsort
SELECT ALL - + col2 - - - col2 AS col2 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT + 44 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9078
SELECT - + ( - 94 ) DIV ( + COUNT( * ) ) AS col0 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9078
SELECT - + ( - 94 ) / ( + COUNT ( * ) ) AS col0 FROM tab1 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT - SUM( + 79 ) AS col1 FROM tab1
----
-237

skipif mysql # not compatible
query I rowsort label-9079
SELECT - SUM ( + 79 ) AS col1 FROM tab1
----
-237

query II rowsort
SELECT - col0, 36 AS col0 FROM tab0
----
-15
36
-87
36
-97
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT COUNT( DISTINCT - + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9081
SELECT COUNT ( DISTINCT - + col1 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT + + 6 * + col1 + + col1 - - col0 AS col2 FROM tab2 AS cor0
----
403
544
603

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 - col2 IS NOT NULL
----

query I rowsort
SELECT + col2 + col1 * + col0 AS col1 FROM tab1 WHERE - col2 * col1 < - 13 * + col1
----
4345
484
810

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 >= ( - col0 + col2 )
----

query I rowsort
SELECT DISTINCT 80 * col1 AS col1 FROM tab1
----
1120
3760
400

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9087
SELECT 33 + 70 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9087
SELECT 33 + 70 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * 55 AS col1 FROM tab1
----
2805
4675
5005

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9089
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST( NULL AS SIGNED ) * - 88 ) NOT IN ( + col1 + col2 )
----

skipif mysql # not compatible
query III rowsort label-9089
SELECT DISTINCT * FROM tab1 WHERE NOT ( CAST ( NULL AS INTEGER ) * - 88 ) NOT IN ( + col1 + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9090
SELECT - CAST( NULL AS SIGNED ) * + col2 + 80 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9090
SELECT - CAST ( NULL AS INTEGER ) * + col2 + 80 * - col1 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 9 FROM tab1 WHERE NOT NULL IN ( ( - col0 ) )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 > ( NULL )
----

query I rowsort
SELECT DISTINCT col2 - 29 AS col1 FROM tab0
----
-19
18
70

query I rowsort
SELECT 94 * col1 AS col0 FROM tab0
----
1974
7614
94

query I rowsort
SELECT DISTINCT col0 * - 16 FROM tab0
----
-1392
-1552
-240

query I rowsort
SELECT + col1 + - col1 * 97 AS col2 FROM tab1
----
-1344
-4512
-480

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( 0 ) AND ( - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 0 - col0 col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT ALL col0 + 45 FROM tab1 WHERE 32 - - col2 BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + 1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9101
SELECT ALL - SUM( ALL col1 ) AS col2 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-9101
SELECT ALL - SUM ( ALL col1 ) AS col2 FROM tab0
----
-103

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT - col0 * col1 FROM tab2 WHERE ( + CAST( NULL AS SIGNED ) ) NOT IN ( col1 )
----

skipif mysql # not compatible
query I rowsort label-9102
SELECT - col0 * col1 FROM tab2 WHERE ( + CAST ( NULL AS INTEGER ) ) NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9103
SELECT ( CAST( col2 AS SIGNED ) ) * col0 + col0 FROM tab1
----
4947
5100
6279

skipif mysql # not compatible
query I rowsort label-9103
SELECT ( CAST ( col2 AS INTEGER ) ) * col0 + col0 FROM tab1
----
4947
5100
6279

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 * - ( - 95 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 29 * ( 4 ) AS col2 FROM tab1
----
116
116
116

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9106
SELECT + SUM( ALL - CAST( NULL AS DECIMAL ) ) * - 15 col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9106
SELECT + SUM ( ALL - CAST ( NULL AS REAL ) ) * - 15 col1 FROM tab0
----
NULL

query I rowsort
SELECT + col2 * 6 AS col1 FROM tab2 WHERE ( + col1 * + col1 ) IS NOT NULL
----
138
240
348

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 / col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 98 AS col1 FROM tab2
----
2254
3920
5684

query I rowsort
SELECT ALL - 72 / 28 FROM tab1 WHERE NOT NULL NOT IN ( col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9111
SELECT ( - 54 ) * 97 - COUNT( * ) col1 FROM tab2
----
-5241

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9111
SELECT ( - 54 ) * 97 - COUNT ( * ) col1 FROM tab2
----
-5241

query I rowsort
SELECT DISTINCT - ( - col2 ) * 30 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
1410
2970
300

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT 20 - MIN( col1 ) FROM tab2 cor0
----
-31

skipif mysql # not compatible
query I rowsort label-9113
SELECT 20 - MIN ( col1 ) FROM tab2 cor0
----
-31

query I rowsort
SELECT - col0 * - col0 - 12 * col2 FROM tab1 AS cor0
----
1449
6517
7465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9115
SELECT DISTINCT - CAST( + col0 AS SIGNED ) - + 54 FROM tab1 AS cor0
----
-105
-139
-145

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) - + 54 FROM tab1 AS cor0
----
-105
-139
-145

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NOT NULL NOT BETWEEN ( + 95 ) AND + col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 74 > NULL
----

query I rowsort
SELECT ALL ( + 74 ) FROM tab0
----
74
74
74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9119
SELECT + ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-9119
SELECT + ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT col1 - + col2 * 74 AS col0 FROM tab0 WHERE NOT + 35 BETWEEN NULL AND - col2
----
-3397
-719
-7325

onlyif mysql # DIV for integer division: 
query I rowsort label-9121
SELECT + 78 DIV - 43 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9121
SELECT + 78 / - 43 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL + 81 + 30 * - col2 FROM tab2 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT col2 * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT + col2 * col2 IN ( + 41 )
----
4896
5015
6188

query I rowsort
SELECT ALL - col2 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( + 83 )
----

query I rowsort
SELECT - + 91 FROM tab0 cor0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT ALL - SUM( DISTINCT - 45 ) FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9126
SELECT ALL - SUM ( DISTINCT - 45 ) FROM tab0 AS cor0
----
45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9127
SELECT - + COUNT( * ) DIV 56 col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9127
SELECT - + COUNT ( * ) / 56 col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9128
SELECT ALL * FROM tab2 AS cor0 WHERE ( 77 ) BETWEEN NULL AND 4 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9128
SELECT ALL * FROM tab2 AS cor0 WHERE ( 77 ) BETWEEN NULL AND 4 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT col0 + - 76 FROM tab2 cor0 WHERE NOT + col1 <= ( NULL )
----

query I rowsort
SELECT col2 / - col1 AS col1 FROM tab0 cor0 WHERE NOT ( + 17 ) BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL 83 * 50 + + col1 FROM tab1 WHERE 13 + col2 * - col1 BETWEEN + 56 - + col1 AND 18 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL 83 * 50 + + col1 FROM tab1 WHERE 13 + col2 * - col1 BETWEEN + 56 - + col1 AND 18 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9132
SELECT + col1 DIV + + col2 col0 FROM tab0
----
0
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9132
SELECT + col1 / + + col2 col0 FROM tab0
----
0
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9133
SELECT SUM( ALL col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9133
SELECT SUM ( ALL col2 ) AS col0 FROM tab0
----
156

query I rowsort
SELECT DISTINCT - 18 + + col2 AS col0 FROM tab1 WHERE ( - 0 ) IS NOT NULL OR NOT NULL IS NOT NULL
----
41
50
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9135
SELECT ALL CAST( NULL AS SIGNED ) + - + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9135
SELECT ALL CAST ( NULL AS INTEGER ) + - + col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 85 * + col0 * + 79 FROM tab0
----
100725
584205
651355

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9137
SELECT ALL - CAST( 98 AS SIGNED ) * - 20 FROM tab1
----
1960
1960
1960

skipif mysql # not compatible
query I rowsort label-9137
SELECT ALL - CAST ( 98 AS INTEGER ) * - 20 FROM tab1
----
1960
1960
1960

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( col1 ) IN ( 57 + ( + col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT DISTINCT + + SUM( + + 27 ) AS col0 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9139
SELECT DISTINCT + + SUM ( + + 27 ) AS col0 FROM tab1 AS cor0
----
81

query I rowsort
SELECT 32 + + - col0 AS col2 FROM tab2 AS cor0
----
-14
-32
-43

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < - col2 AND ( NULL ) NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN col1 AND ( NULL )
----
15
81
47

query I rowsort
SELECT ALL col0 AS col0 FROM tab2 WHERE NOT ( + + ( - 48 ) ) IS NULL
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE - 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT DISTINCT COUNT( * ) + 40 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-9145
SELECT DISTINCT COUNT ( * ) + 40 FROM tab1
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9146
SELECT + MAX( DISTINCT col1 ) col0 FROM tab0 WHERE ( NOT NULL NOT IN ( - 58 ) )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9146
SELECT + MAX ( DISTINCT col1 ) col0 FROM tab0 WHERE ( NOT NULL NOT IN ( - 58 ) )
----
NULL

query I rowsort
SELECT ALL + col2 + - 99 AS col0 FROM tab1 AS cor0
----
-3
-31
-40

query III rowsort
SELECT * FROM tab1 cor0 WHERE 12 IS NULL
----

query I rowsort
SELECT ALL + - col2 * + col2 + + col1 AS col0 FROM tab1 AS cor0
----
-3476
-4577
-9202

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 + + 84 = col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9151
SELECT DISTINCT - - CAST( NULL AS SIGNED ) + + MIN( col2 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9151
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) + + MIN ( col2 ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( + col1 ) * col1 AND ( col1 * col0 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 <> ( - - ( col1 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9154
SELECT ALL - col0 DIV col0 + col0 + col2 * col0 FROM tab2 AS cor0
----
1103
2623
4424

skipif mysql # not compatible
query I rowsort label-9154
SELECT ALL - col0 / col0 + col0 + col2 * col0 FROM tab2 AS cor0
----
1103
2623
4424

onlyif mysql # DIV for integer division: 
query I rowsort label-9155
SELECT DISTINCT - col2 - + 5 + + col2 DIV + col2 AS col1 FROM tab1 AS cor0
----
-100
-63
-72

skipif mysql # not compatible
query I rowsort label-9155
SELECT DISTINCT - col2 - + 5 + + col2 / + col2 AS col1 FROM tab1 AS cor0
----
-100
-63
-72

query I rowsort
SELECT + ( - col2 ) - + col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9157
SELECT 82 + - COUNT( * ) * - COUNT( * ) FROM tab2 WHERE - - col2 / - 78 * col0 = 90
----
82

skipif mysql # not compatible
query I rowsort label-9157
SELECT 82 + - COUNT ( * ) * - COUNT ( * ) FROM tab2 WHERE - - col2 / - 78 * col0 = 90
----
82

query I rowsort
SELECT 50 AS col0 FROM tab1 WHERE NULL BETWEEN ( - + col1 ) AND ( 54 + 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9159
SELECT 84 + - + COUNT( * ) AS col0 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-9159
SELECT 84 + - + COUNT ( * ) AS col0 FROM tab1
----
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9160
SELECT ALL - 58 DIV + CAST( - + col0 AS SIGNED ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9160
SELECT ALL - 58 / + CAST ( - + col0 AS INTEGER ) FROM tab1
----
0
0
1

query I rowsort
SELECT - col0 * + 40 + col2 AS col0 FROM tab0
----
-3470
-3781
-553

query I rowsort
SELECT col1 + - 79 AS col2 FROM tab1
----
-32
-65
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9164
SELECT + col0 DIV + + 47 AS col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9164
SELECT + col0 / + + 47 AS col0 FROM tab1 AS cor0
----
1
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( NOT - col1 + col2 IN ( - col1 * col2 + ( + col1 + 39 ) ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT + col1 NOT BETWEEN + col2 / col2 * col0 - + col0 AND col1 * + col1
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 col2, col0 AS col0 FROM tab1
----
51
51
85
85
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9168
SELECT ALL - - MAX( ALL + col1 ) FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-9168
SELECT ALL - - MAX ( ALL + col1 ) FROM tab2 cor0
----
77

query II rowsort
SELECT - - 44, + 94 AS col2 FROM tab0 AS cor0
----
44
94
44
94
44
94

query I rowsort
SELECT DISTINCT - + ( + + 17 ) AS col0 FROM tab1 AS cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9171
SELECT ALL - - COUNT( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9171
SELECT ALL - - COUNT ( DISTINCT + - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab0 AS cor0 WHERE col2 - - - ( - + 69 ) + - + col1 * 14 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9173
SELECT - col0 DIV 65 FROM tab1 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9173
SELECT - col0 / 65 FROM tab1 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9174
SELECT - + 11 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= 27 * col2 * CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-9174
SELECT - + 11 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= 27 * col2 * CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL + col0 * + col0 * ( + - 97 ) * col2 + - 6 + 95 * + col1 AS col1 FROM tab0 AS cor0
----
-1018086
-7339941
-90354538

query I rowsort
SELECT 73 + - col2 * 77 FROM tab0 AS cor0 WHERE NOT NULL IN ( - 84 )
----

query I rowsort
SELECT ALL col1 AS col0 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ( + 44 ) AS col1 FROM tab1 WHERE NOT NULL < + ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9179
SELECT + SUM( + 92 ) + + 33 AS col2 FROM tab0 WHERE NOT + - 54 BETWEEN NULL AND - CAST( NULL AS DECIMAL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9179
SELECT + SUM ( + 92 ) + + 33 AS col2 FROM tab0 WHERE NOT + - 54 BETWEEN NULL AND - CAST ( NULL AS REAL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 45 * col1 > + + 76 * - - col1 * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT - col1 + - - 11 * - CAST( - + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9181
SELECT - col1 + - - 11 * - CAST ( - + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 1 AS col2 FROM tab0, tab1 AS cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # DIV for integer division: 
query II rowsort label-9183
SELECT DISTINCT col2 AS col0, 29 DIV - - col0 FROM tab0
----
10
0
47
1
99
0

skipif mysql # not compatible
query II rowsort label-9183
SELECT DISTINCT col2 AS col0, 29 / - - col0 FROM tab0
----
10
0
47
1
99
0

query I rowsort
SELECT DISTINCT - 58 AS col2 FROM tab2, tab1 cor0
----
-58

query I rowsort
SELECT ALL col0 * + + col1 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT DISTINCT + + col1 * 30 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + col2, + 20 FROM tab2
----
23
20
40
20
58
20

query I rowsort
SELECT 54 * + - col0 AS col0 FROM tab0
----
-4698
-5238
-810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 7 col0, + col2 col2 FROM tab1 AS cor0
----
7
59
7
68
7
96

query II rowsort
SELECT - ( col2 ), col2 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT col0 * - ( - - 15 ) + + ( - + col2 ) + - col1 FROM tab2 AS cor0
----
-1077
-1250
-764

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NOT NULL AND NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + col0 + - 54 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col2 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
23
40
58

query I rowsort
SELECT + ( + col2 ) + - - col0 * + col1 AS col2 FROM tab2 AS cor0
----
2369
4968
5083

query I rowsort
SELECT DISTINCT col1 + - - col2 FROM tab1 AS cor0
----
110
115
64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 74 + - + 79 col2 FROM tab0 AS cor0
----
-153
-153
-153

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9198
SELECT ALL - col2 - 62 + + - CAST( - + col0 AS SIGNED ) + + - 8 * - 68 col0 FROM tab2 AS cor0
----
499
505
506

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9198
SELECT ALL - col2 - 62 + + - CAST ( - + col0 AS INTEGER ) + + - 8 * - 68 col0 FROM tab2 AS cor0
----
499
505
506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9199
SELECT DISTINCT SUM( + + col1 ) * + CAST( NULL AS SIGNED ) * + SUM( + 92 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9199
SELECT DISTINCT SUM ( + + col1 ) * + CAST ( NULL AS INTEGER ) * + SUM ( + 92 ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 NOT BETWEEN NULL AND - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + - 10 ) col1 FROM tab0
----
-10
-10
-10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9202
SELECT DISTINCT - CAST( col0 AS SIGNED ) - col2 AS col0 FROM tab1
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-9202
SELECT DISTINCT - CAST ( col0 AS INTEGER ) - col2 AS col0 FROM tab1
----
-144
-147
-159

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL COUNT( * ) * + MIN( - col0 ) FROM tab0
----
-291

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL COUNT ( * ) * + MIN ( - col0 ) FROM tab0
----
-291

query I rowsort
SELECT - + col2 * + 51 FROM tab0 WHERE + - col2 IS NOT NULL
----
-2397
-5049
-510

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT MIN( ALL + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT MIN ( ALL + col1 ) FROM tab0
----
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL >= 2
----

query I rowsort
SELECT ALL + 90 AS col2 FROM tab1, tab1 AS cor0
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT DISTINCT 19 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-9209
SELECT ( - + COUNT( * ) ) AS col2 FROM tab0, tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9209
SELECT ( - + COUNT ( * ) ) AS col2 FROM tab0, tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9210
SELECT ALL - 13 * + 15 DIV - COUNT( * ) AS col2 FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-9210
SELECT ALL - 13 * + 15 / - COUNT ( * ) AS col2 FROM tab2
----
65

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 64 * + col2 col1 FROM tab2
----
197120
248704
75072

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT ALL + - COUNT( DISTINCT - + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9212
SELECT ALL + - COUNT ( DISTINCT - + ( - col2 ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9213
SELECT DISTINCT COUNT( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9213
SELECT DISTINCT COUNT ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 <= col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * - col1 + + col0 IS NOT NULL
----

query II rowsort
SELECT + col0 AS col2, 16 * - ( col1 ) AS col2 FROM tab2
----
46
-816
64
-1232
75
-1072

onlyif mysql # aggregate syntax: 
query I rowsort label-9217
SELECT ALL - MIN( ALL - 31 ) FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-9217
SELECT ALL - MIN ( ALL - 31 ) FROM tab0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9218
SELECT + MIN( col2 ) DIV + - 78 - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9218
SELECT + MIN ( col2 ) / + - 78 - COUNT ( * ) FROM tab0
----
-3

query I rowsort
SELECT ALL + 90 + - + 5 + + 65 AS col2 FROM tab0
----
150
150
150

onlyif mysql # DIV for integer division: 
query I rowsort label-9220
SELECT DISTINCT - - col0 DIV - 38 + col0 FROM tab2 cor0
----
45
63
74

skipif mysql # not compatible
query I rowsort label-9220
SELECT DISTINCT - - col0 / - 38 + col0 FROM tab2 cor0
----
45
63
74

query I rowsort
SELECT ALL + ( + col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( - 70 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9222
SELECT DISTINCT - ( + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9222
SELECT DISTINCT - ( + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-9

query II rowsort
SELECT ALL + 5 AS col1, col2 FROM tab1
----
5
59
5
68
5
96

onlyif mysql # DIV for integer division: 
query I rowsort label-9224
SELECT DISTINCT - col2 + - col2 * + - col0 - + col2 DIV + 47 FROM tab0 AS cor0
----
657
860
9502

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT - col2 + - col2 * + - col0 - + col2 / + 47 FROM tab0 AS cor0
----
657
860
9502

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 89 * - col1 + + col0 + + - col0 + + col2 col0 FROM tab2 cor0
----
4562
6021
6893

query I rowsort
SELECT ALL + 51 - - col1 AS col0 FROM tab0 AS cor0
----
132
52
72

query I rowsort
SELECT col2 + + 57 * - 50 AS col2 FROM tab1 AS cor0
----
-2754
-2782
-2791

query I rowsort
SELECT 70 * + + 67 + + + col0 * col0 FROM tab1
----
11915
12971
7291

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT COUNT( - col2 ) * - + 52 AS col1 FROM tab1
----
-156

skipif mysql # not compatible
query I rowsort label-9229
SELECT COUNT ( - col2 ) * - + 52 AS col1 FROM tab1
----
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9230
SELECT ALL + COUNT( * ) FROM tab0 WHERE NOT - 8 IN ( col2 )
----
3

skipif mysql # not compatible
query I rowsort label-9230
SELECT ALL + COUNT ( * ) FROM tab0 WHERE NOT - 8 IN ( col2 )
----
3

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL >= ( NULL )
----

query I rowsort
SELECT - + col1 * + col2 * - 20 * - col1 + - + 60 AS col2 FROM tab1 AS cor0
----
-29560
-3004300
-376380

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9233
SELECT DISTINCT + CAST( 51 AS SIGNED ) * COUNT( * ) FROM tab0 cor0
----
153

skipif mysql # not compatible
query I rowsort label-9233
SELECT DISTINCT + CAST ( 51 AS INTEGER ) * COUNT ( * ) FROM tab0 cor0
----
153

query I rowsort
SELECT DISTINCT - + col2 * + col1 FROM tab2 cor0 WHERE ( NULL ) IS NULL
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9235
SELECT DISTINCT SUM( ALL + - col2 ) FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-9235
SELECT DISTINCT SUM ( ALL + - col2 ) FROM tab2
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 55 col0 FROM tab2
----
55

query II rowsort
SELECT + 34 AS col0, 9 - + + col0 AS col2 FROM tab2 AS cor0
----
34
-37
34
-55
34
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT DISTINCT COUNT( * ) * 56 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-9238
SELECT DISTINCT COUNT ( * ) * 56 FROM tab1 AS cor0
----
168

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9239
SELECT ALL + 92, - COUNT( col1 ) * - - COUNT( * ) / - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
92
NULL

skipif mysql # not compatible
query II rowsort label-9239
SELECT ALL + 92, - COUNT ( col1 ) * - - COUNT ( * ) / - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
92
NULL

query I rowsort
SELECT DISTINCT - 46 * + - 25 FROM tab1 AS cor0
----
1150

query I rowsort
SELECT - 51 + + - 53 FROM tab2 AS cor0
----
-104
-104
-104

query I rowsort
SELECT + col2 * 53 + - + col0 * - col2 AS col2 FROM tab0 AS cor0
----
1400
14850
3196

query I rowsort
SELECT - + col0 * col1 + + col0 AS col0 FROM tab1 AS cor0
----
-340
-4186
-663

query I rowsort
SELECT + + col1 AS col2 FROM tab0 WHERE NULL IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab1 WHERE 68 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9246
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 WHERE - col2 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT ( + + 26 ) + col1 + col1 + + 94 * + col1 * + + 11 * - + col1 FROM tab2
----
-2689306
-4641466
-6130406

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9248
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN - col0 * + CAST( col0 AS SIGNED ) AND - col0
----
75
67
58

skipif mysql # not compatible
query III rowsort label-9248
SELECT * FROM tab2 WHERE - col1 NOT BETWEEN - col0 * + CAST ( col0 AS INTEGER ) AND - col0
----
75
67
58

query I rowsort
SELECT ALL - 80 + col2 + - + col2 AS col0 FROM tab1
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT - 21 * + + COUNT( * ) FROM tab0
----
-63

skipif mysql # not compatible
query I rowsort label-9250
SELECT - 21 * + + COUNT ( * ) FROM tab0
----
-63

query II rowsort
SELECT DISTINCT - + 85 + - col1 AS col0, 96 AS col0 FROM tab2 AS cor0
----
-136
96
-152
96
-162
96

query I rowsort
SELECT col2 * + ( - - col0 ) AS col2 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - - col1 - + - col1 FROM tab0 AS cor0
----
162
2
42

query I rowsort
SELECT DISTINCT + col0 - + - col1 AS col1 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE + 74 NOT BETWEEN - + col1 AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-9255
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE + 74 NOT BETWEEN - + col1 AND - col1
----
3

query I rowsort
SELECT DISTINCT - 42 + + + 21 FROM tab1 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query II rowsort label-9257
SELECT DISTINCT + 88 DIV - + col2 - 69 AS col1, - col1 * + 79 col0 FROM tab0 AS cor0
----
-69
-79
-70
-6399
-77
-1659

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9257
SELECT DISTINCT + 88 / - + col2 - 69 AS col1, - col1 * + 79 col0 FROM tab0 AS cor0
----
-69
-79
-70
-6399
-77
-1659

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * 46 * + 35 * - col1 + - - 45 NOT IN ( - col2, - ( + col0 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9259
SELECT DISTINCT MIN( ALL - + col0 ) FROM tab1 cor0 WHERE NOT NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT MIN ( ALL - + col0 ) FROM tab1 cor0 WHERE NOT NULL > NULL
----
NULL

query I rowsort
SELECT + 62 + + col2 * - 89 FROM tab1 AS cor0
----
-5189
-5990
-8482

query I rowsort
SELECT ALL + - col1 + 1 - 7 + col1 AS col1 FROM tab1 AS cor0
----
-6
-6
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - ( - col2 ) ) col1 FROM tab1 AS cor0
----
59
68
96

query II rowsort
SELECT + col2 AS col1, + 45 FROM tab0 AS cor0
----
10
45
47
45
99
45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9264
SELECT ALL - COUNT( * ) / - 65 - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9264
SELECT ALL - COUNT ( * ) / - 65 - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - - ( + 77 ) FROM tab1 AS cor0
----
77
77
77

query I rowsort
SELECT + - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9267
SELECT DISTINCT MIN( + 48 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-9267
SELECT DISTINCT MIN ( + 48 ) FROM tab0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT MAX( - 67 ) col0 FROM tab0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9268
SELECT MAX ( - 67 ) col0 FROM tab0
----
-67

query I rowsort
SELECT ALL - col0 * + + 82 AS col2 FROM tab2
----
-3772
-5248
-6150

onlyif mysql # aggregate syntax: 
query I rowsort label-9270
SELECT MAX( DISTINCT + col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9270
SELECT MAX ( DISTINCT + col0 ) col0 FROM tab0
----
97

query I rowsort
SELECT ALL - 30 AS col2 FROM tab1 WHERE NULL IS NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT - COUNT( * ) FROM tab0 WHERE NOT 47 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-9272
SELECT - COUNT ( * ) FROM tab0 WHERE NOT 47 <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9273
SELECT COUNT( DISTINCT - - CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9273
SELECT COUNT ( DISTINCT - - CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL + 89 + - - ( COUNT( * ) ) AS col1 FROM tab2 cor0
----
92

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL + 89 + - - ( COUNT ( * ) ) AS col1 FROM tab2 cor0
----
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, + col2 col2 FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9276
SELECT * FROM tab2 AS cor0 WHERE + CAST( + col0 AS SIGNED ) + + 42 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9276
SELECT * FROM tab2 AS cor0 WHERE + CAST ( + col0 AS INTEGER ) + + 42 IS NULL
----

query I rowsort
SELECT + + col1 * 12 AS col0 FROM tab2 cor0
----
612
804
924

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col2 * + col1 + col0 - col1 BETWEEN + col0 + + 21 / - col2 + - - col1 AND - col2
----

query I rowsort
SELECT DISTINCT - 19 * - col0 AS col0 FROM tab0
----
1653
1843
285

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9280
SELECT * FROM tab2 WHERE NULL BETWEEN + - col0 - CAST( + col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9280
SELECT * FROM tab2 WHERE NULL BETWEEN + - col0 - CAST ( + col2 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9281
SELECT MIN( ALL - - col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
51

skipif mysql # not compatible
query I rowsort label-9281
SELECT MIN ( ALL - - col0 ) AS col2 FROM tab1 WHERE NULL IS NULL
----
51

query I rowsort
SELECT + - col1 + - + 29 FROM tab2 cor0
----
-106
-80
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-9283
SELECT DISTINCT - + COUNT( * ) + + 84 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9283
SELECT DISTINCT - + COUNT ( * ) + + 84 FROM tab1 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT - 6 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT - 6 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9285
SELECT ALL col1 * + - CAST( + 23 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-1863
-23
-483

skipif mysql # not compatible
query I rowsort label-9285
SELECT ALL col1 * + - CAST ( + 23 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-1863
-23
-483

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9286
SELECT 72 / CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9286
SELECT 72 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 37 ) col1 FROM tab1
----
37
37
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9288
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
104

skipif mysql # not compatible
query I rowsort label-9288
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 23 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
104

query I rowsort
SELECT 20 * + col1 AS col2 FROM tab0
----
1620
20
420

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9290
SELECT ALL - CAST( + ( - + 89 ) AS SIGNED ) DIV - - COUNT( * ) FROM tab2 cor0
----
29

skipif mysql # not compatible
query I rowsort label-9290
SELECT ALL - CAST ( + ( - + 89 ) AS INTEGER ) / - - COUNT ( * ) FROM tab2 cor0
----
29

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL <= col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9292
SELECT ALL + - MAX( 89 ) + - COUNT( * ) FROM tab2 AS cor0 WHERE 6 IS NOT NULL
----
-92

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + - MAX ( 89 ) + - COUNT ( * ) FROM tab2 AS cor0 WHERE 6 IS NOT NULL
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT DISTINCT - + MIN( - 86 ) AS col1 FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-9293
SELECT DISTINCT - + MIN ( - 86 ) AS col1 FROM tab0 AS cor0
----
86

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE - 94 * - + 22 + col0 IS NOT NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 WHERE NULL NOT BETWEEN + col1 + - 95 + + 78 AND ( - + col0 )
----

query II rowsort
SELECT + col0 AS col0, + col2 * - + col0 AS col1 FROM tab0 AS cor0
----
15
-705
87
-870
97
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT SUM( ALL + 91 ) col2 FROM tab0 AS cor0
----
273

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9297
SELECT SUM ( ALL + 91 ) col2 FROM tab0 AS cor0
----
273

query I rowsort
SELECT + ( + 73 ) AS col2 FROM tab2 cor0
----
73
73
73

onlyif mysql # DIV for integer division: 
query I rowsort label-9299
SELECT - - col0 DIV + + col1 + + 64 * + col1 AS col2 FROM tab1 AS cor0
----
3009
337
899

skipif mysql # not compatible
query I rowsort label-9299
SELECT - - col0 / + + col1 + + 64 * + col1 AS col2 FROM tab1 AS cor0
----
3009
337
899

query II rowsort
SELECT ALL + ( + + col0 ), - col0 + - col2 FROM tab2
----
46
-69
64
-104
75
-133

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 73 IN ( - - col0 * + col0 )
----

query I rowsort
SELECT + col0 * - col1 + - - col2 + - + col0 FROM tab2 AS cor0
----
-2369
-4952
-5042

onlyif mysql # DIV for integer division: 
query I rowsort label-9303
SELECT ALL + ( - 85 ) * col0 * + col2 + - col0 + + col2 DIV + - col1 FROM tab2 AS cor0
----
-217664
-369825
-89976

skipif mysql # not compatible
query I rowsort label-9303
SELECT ALL + ( - 85 ) * col0 * + col2 + - col0 + + col2 / + - col1 FROM tab2 AS cor0
----
-217664
-369825
-89976

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9304
SELECT DISTINCT col1 / - col1 + - ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9304
SELECT DISTINCT col1 / - col1 + - ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9305
SELECT + - col1 + + + col2 + - col2 * - + col0 * CAST( NULL AS SIGNED ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9305
SELECT + - col1 + + + col2 + - col2 * - + col0 * CAST ( NULL AS INTEGER ) * + col2 AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - AVG ( + - col1 ) FROM tab1 WHERE - + col0 >= NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 - - col2 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - col0 col1 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9309
SELECT + - COUNT( * ) - + 8 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9309
SELECT + - COUNT ( * ) - + 8 FROM tab1 AS cor0
----
-11

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL >= 31 * + + col0 * col1 + + + col2 + - 53 * + col2
----

query I rowsort
SELECT ALL + 24 * + col0 AS col1 FROM tab0
----
2088
2328
360

onlyif mysql # aggregate syntax: 
query I rowsort label-9312
SELECT ALL COUNT( + - 64 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL COUNT ( + - 64 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - 48 * + - ( - col2 ) - + - col1 + - 50 * + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + col2 AS col2, - 5 AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
23
-5
40
-5
58
-5

query I rowsort
SELECT + - 41 AS col2 FROM tab1 cor0
----
-41
-41
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9316
SELECT - col0 + + CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

skipif mysql # not compatible
query I rowsort label-9316
SELECT - col0 + + CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

query I rowsort
SELECT ALL ( + - 56 ) AS col2 FROM tab2 AS cor0
----
-56
-56
-56

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 54 <> ( + 21 / + - 39 )
----

query I rowsort
SELECT + ( 6 ) AS col0 FROM tab1 AS cor0
----
6
6
6

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + col2 + + + 78 NOT IN ( + 93 * - + col0 / + col1 + col1 / + col0 / + + col1 + - + ( 89 ) * + col2 * + + 20 * + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT ALL - + 58 * 64 * + - COUNT( * ) FROM tab0 AS cor0
----
11136

skipif mysql # not compatible
query I rowsort label-9321
SELECT ALL - + 58 * 64 * + - COUNT ( * ) FROM tab0 AS cor0
----
11136

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9322
SELECT DISTINCT COUNT( * ) DIV + + 19 col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9322
SELECT DISTINCT COUNT ( * ) / + + 19 col1 FROM tab2
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9324
SELECT + CAST( - ( + col0 ) AS SIGNED ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9324
SELECT + CAST ( - ( + col0 ) AS INTEGER ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9325
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NOT NULL NOT IN ( - - ( 26 ) / - + col0, col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9325
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NOT NULL NOT IN ( - - ( 26 ) / - + col0, col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9326
SELECT ALL col0 DIV - 42 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-9326
SELECT ALL col0 / - 42 FROM tab0
----
-2
-2
0

query I rowsort
SELECT col0 + + col0 + - 51 AS col2 FROM tab0
----
-21
123
143

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 - col0 AND - - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9329
SELECT ALL + col1 DIV - + 78 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9329
SELECT ALL + col1 / - + 78 + - col0 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT ALL + 12 + + - col1 + - 86 * + - col0 / - 36 * - + col0 FROM tab1 AS cor0 WHERE NULL <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN 70 AND 65
----
3

skipif mysql # not compatible
query I rowsort label-9331
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE + col1 NOT BETWEEN 70 AND 65
----
3

query I rowsort
SELECT + 68 + - 43 AS col0 FROM tab1 cor0 WHERE NULL <> + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9333
SELECT + SUM( - 12 ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-9333
SELECT + SUM ( - 12 ) FROM tab1 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 col0 FROM tab0 AS cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT ALL + - COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9336
SELECT ALL + - COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, - col2 * col1 + - 82 * - + col2 + + col0 * + 18 col1 FROM tab2 cor0
----
-51
1541
-67
2220
-77
1352

query I rowsort
SELECT - col0 + + + 23 FROM tab1 AS cor0 WHERE ( 21 ) IS NOT NULL
----
-28
-62
-68

query I rowsort
SELECT + + col2 - + + col1 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT col0 - + + 22 AS col1 FROM tab0
----
-7
65
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT COUNT( * ) * + SUM( - col1 ) AS col2 FROM tab1
----
-198

skipif mysql # not compatible
query I rowsort label-9341
SELECT DISTINCT COUNT ( * ) * + SUM ( - col1 ) AS col2 FROM tab1
----
-198

query I rowsort
SELECT 86 + - + col0 FROM tab1 WHERE 92 * + ( - 56 ) > NULL OR NULL <> + col1 * + + col1 AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + - col2 + - - col2 + - col2 * col2 * + 90 col2 FROM tab0
----
-199468
-891594
-9860

onlyif mysql # DIV for integer division: 
query II rowsort label-9344
SELECT ( + + ( + 43 ) ) + col1, + 32 DIV 96 AS col2 FROM tab1
----
48
0
57
0
90
0

skipif mysql # not compatible
query II rowsort label-9344
SELECT ( + + ( + 43 ) ) + col1, + 32 / 96 AS col2 FROM tab1
----
48
0
57
0
90
0

query II rowsort
SELECT 18 + - 62 AS col2, 15 FROM tab1
----
-44
15
-44
15
-44
15

onlyif mysql # aggregate syntax: 
query I rowsort label-9346
SELECT DISTINCT - 85 + + COUNT( * ) FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-9346
SELECT DISTINCT - 85 + + COUNT ( * ) FROM tab1
----
-82

query I rowsort
SELECT DISTINCT 16 + + 16 + + 51 FROM tab0 AS cor0
----
83

query II rowsort
SELECT ( + col1 ), - col0 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

query I rowsort
SELECT + col2 / - col1 * 69 * + col1 FROM tab0 AS cor0 WHERE NULL <> col1 * + - col1 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 68 * 6 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9350
SELECT - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT + 68 * 6 IS NULL
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 87 * - col2 + 69 col1 FROM tab0 cor0
----
4158
8682
939

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9352
SELECT + CAST( - col0 AS SIGNED ) * col0 FROM tab0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-9352
SELECT + CAST ( - col0 AS INTEGER ) * col0 FROM tab0
----
-225
-7569
-9409

query I rowsort
SELECT ALL + 1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT ALL + + COUNT( * ) * + 70 FROM tab1 cor0
----
210

skipif mysql # not compatible
query I rowsort label-9354
SELECT ALL + + COUNT ( * ) * + 70 FROM tab1 cor0
----
210

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 96 AND 19
----

query I rowsort
SELECT + 45 AS col2 FROM tab0 AS cor0 WHERE NOT + col2 = col1 + + col2
----
45
45
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND - col0
----

query I rowsort
SELECT - ( 69 ) AS col2 FROM tab0 AS cor0
----
-69
-69
-69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9359
SELECT - COUNT( * ) DIV 32 + COUNT( * ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9359
SELECT - COUNT ( * ) / 32 + COUNT ( * ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-9360
SELECT DISTINCT + ( - + col0 ) DIV ( - col0 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9360
SELECT DISTINCT + ( - + col0 ) / ( - col0 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9361
SELECT ALL - col2 + + ( + col2 ) * - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS SIGNED ) * 14 AND 81
----

skipif mysql # not compatible
query I rowsort label-9361
SELECT ALL - col2 + + ( + col2 ) * - col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS INTEGER ) * 14 AND 81
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9362
SELECT DISTINCT COUNT( * ) * + + 81 AS col2 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-9362
SELECT DISTINCT COUNT ( * ) * + + 81 AS col2 FROM tab2
----
243

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / - + col2 BETWEEN + + col1 AND NULL
----

query I rowsort
SELECT - col1 * + ( + 30 ) * - + col0 + - + col2 + + 14 FROM tab0 AS cor0
----
2825
36417
54814

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 72
----

query II rowsort
SELECT ALL + - 89, col1 + 12 AS col0 FROM tab0 AS cor0
----
-89
13
-89
33
-89
93

query I rowsort
SELECT - - ( + ( - + 94 ) ) * - col0 FROM tab2 AS cor0
----
4324
6016
7050

onlyif mysql # DIV for integer division: 
query II rowsort label-9368
SELECT DISTINCT - - 34 DIV - col1 + + - col2, + 31 * col2 AS col1 FROM tab0 AS cor0
----
-11
310
-133
3069
-47
1457

skipif mysql # not compatible
query II rowsort label-9368
SELECT DISTINCT - - 34 / - col1 + + - col2, + 31 * col2 AS col1 FROM tab0 AS cor0
----
-11
310
-133
3069
-47
1457

query I rowsort
SELECT + 95 * - - 1 FROM tab2
----
95
95
95

query I rowsort
SELECT - col2 * - - col1 FROM tab1 WHERE - - 25 * - 1 - + 71 + - col1 IS NULL
----

query I rowsort
SELECT ALL + col2 + + col2 * + col0 AS col2 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT + - col1 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9373
SELECT DISTINCT + - COUNT( * ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9373
SELECT DISTINCT + - COUNT ( * ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9374
SELECT - COUNT( * ) + + + COUNT( - col1 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9374
SELECT - COUNT ( * ) + + + COUNT ( - col1 ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9375
SELECT ALL + COUNT( * ) + - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9375
SELECT ALL + COUNT ( * ) + - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9376
SELECT ALL + - COUNT( * ) - + COUNT( + 30 ) AS col0 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9376
SELECT ALL + - COUNT ( * ) - + COUNT ( + 30 ) AS col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT col1 * + ( - col1 ) FROM tab1 AS cor0 WHERE 27 BETWEEN NULL AND + - col1
----

query I rowsort
SELECT DISTINCT ( 37 ) + col1 FROM tab0 AS cor0
----
118
38
58

query I rowsort
SELECT + col2 + + - 65 AS col0 FROM tab1 AS cor0
----
-6
3
31

query I rowsort
SELECT - 44 + - 91 FROM tab0 AS cor0
----
-135
-135
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9381
SELECT DISTINCT + + col1 - - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9381
SELECT DISTINCT + + col1 - - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL col1 * + 92 + + + col2 FROM tab2 AS cor0
----
4715
6222
7124

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9383
SELECT DISTINCT - + COUNT( * ) * + CAST( NULL AS SIGNED ) + 41 col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9383
SELECT DISTINCT - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) + 41 col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 * - col1 - + 49 + col0 FROM tab2
----
-2604
-4463
-5914

query I rowsort
SELECT col0 - - col0 + + col0 * + col2 AS col0 FROM tab2
----
1150
2688
4500

query I rowsort
SELECT + col2 - - 47 FROM tab0
----
146
57
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9387
SELECT ALL - 87 AS col2, 11 * - - COUNT( * ) FROM tab0
----
-87
33

skipif mysql # not compatible
query II rowsort label-9387
SELECT ALL - 87 AS col2, 11 * - - COUNT ( * ) FROM tab0
----
-87
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9388
SELECT ALL SUM( - + col1 ) * CAST( NULL AS SIGNED ) + - 45 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL SUM ( - + col1 ) * CAST ( NULL AS INTEGER ) + - 45 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( + + col0 ) * + 64 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-9390
SELECT ALL + SUM( DISTINCT col2 ) AS col1, 58 FROM tab2
----
121
58

skipif mysql # not compatible
query II rowsort label-9390
SELECT ALL + SUM ( DISTINCT col2 ) AS col1, 58 FROM tab2
----
121
58

query I rowsort
SELECT ( - 76 ) * - + 40 * col2 FROM tab2
----
121600
176320
69920

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 44 IS NOT NULL
----

query I rowsort
SELECT - + col2 * - + col1 AS col0 FROM tab0 cor0 WHERE NOT ( NOT ( + col0 BETWEEN NULL AND NULL ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9394
SELECT ALL + col2 * 99 * - CAST( NULL AS DECIMAL ) * + + 13 + + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL + col2 * 99 * - CAST ( NULL AS REAL ) * + + 13 + + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9395
SELECT DISTINCT COUNT( * ) DIV ( - ( - COUNT( * ) ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9395
SELECT DISTINCT COUNT ( * ) / ( - ( - COUNT ( * ) ) ) FROM tab1
----
1

query I rowsort
SELECT ALL + ( + 91 ) * - 36 + + 23 AS col1 FROM tab1 AS cor0
----
-3253
-3253
-3253

query I rowsort
SELECT DISTINCT ( - + col0 ) * + - 70 + + col0 FROM tab0 AS cor0
----
1065
6177
6887

onlyif mysql # aggregate syntax: 
query I rowsort label-9398
SELECT + COUNT( * ) + + 81 FROM tab1 WHERE ( 63 * 72 IS NULL )
----
81

skipif mysql # not compatible
query I rowsort label-9398
SELECT + COUNT ( * ) + + 81 FROM tab1 WHERE ( 63 * 72 IS NULL )
----
81

query I rowsort
SELECT + 90 * - 25 FROM tab0 WHERE + col1 + - col2 > NULL
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - 55 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE ( NULL ) >= col2 * ( + 77 ) + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT ALL 28 + - - COUNT( * ) AS col1 FROM tab1 cor0
----
31

skipif mysql # not compatible
query I rowsort label-9402
SELECT ALL 28 + - - COUNT ( * ) AS col1 FROM tab1 cor0
----
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9403
SELECT DISTINCT + 28 + - 56 DIV MAX( DISTINCT - col0 ) * - - SUM( + + 9 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
109

skipif mysql # not compatible
query I rowsort label-9403
SELECT DISTINCT + 28 + - 56 / MAX ( DISTINCT - col0 ) * - - SUM ( + + 9 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
109

query I rowsort
SELECT ALL + - 8 * + col2 + 3 AS col1 FROM tab1 AS cor0
----
-469
-541
-765

onlyif mysql # aggregate syntax: 
query I rowsort label-9405
SELECT DISTINCT + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL OR NOT NULL > + 69
----
-3

skipif mysql # not compatible
query I rowsort label-9405
SELECT DISTINCT + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT col0 IS NULL OR NOT NULL > + 69
----
-3

query I rowsort
SELECT DISTINCT - 47 + - + 44 * - ( + col2 ) AS col0 FROM tab0 AS cor0
----
2021
393
4309

onlyif mysql # aggregate syntax: 
query I rowsort label-9407
SELECT DISTINCT 97 - + - COUNT( ALL + 92 ) FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-9407
SELECT DISTINCT 97 - + - COUNT ( ALL + 92 ) FROM tab1
----
100

onlyif mysql # DIV for integer division: 
query II rowsort label-9408
SELECT - 59 + - - col2 + 10 DIV 39, - col0 col0 FROM tab1
----
0
-85
37
-51
9
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9408
SELECT - 59 + - - col2 + 10 / 39, - col0 col0 FROM tab1
----
0
-85
37
-51
9
-91

query I rowsort
SELECT ALL - 97 - + - col0 FROM tab0
----
-10
-82
0

query I rowsort
SELECT ALL + 45 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9411
SELECT + COUNT( * ) * + 32 col1, CAST( NULL AS SIGNED ) col2 FROM tab1
----
96
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9411
SELECT + COUNT ( * ) * + 32 col1, CAST ( NULL AS INTEGER ) col2 FROM tab1
----
96
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( 57, col2, - col0 / + + col2 )
----

query I rowsort
SELECT ALL + col1 * + + 82 FROM tab0 WHERE NOT ( + col2 - col0 ) IS NULL
----
1722
6642
82

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE NOT ( ( NOT + col1 - - col2 IS NOT NULL ) )
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT DISTINCT - MIN( - + 29 ) col1 FROM tab1 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9415
SELECT DISTINCT - MIN ( - + 29 ) col1 FROM tab1 AS cor0
----
29

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN 17 AND - + 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9417
SELECT COUNT( * ) * - 16 AS col0 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-9417
SELECT COUNT ( * ) * - 16 AS col0 FROM tab0
----
-48

query I rowsort
SELECT - col2 - 82 FROM tab2 WHERE NOT + 39 - + - col2 - + col2 < col0
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 IN ( - + 96 * - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9420
SELECT ALL MIN( col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9420
SELECT ALL MIN ( col1 ) AS col1 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 BETWEEN ( - - ( - - col0 ) ) AND col1 / - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - ( + - 28 ) + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
124
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT + 22 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT + 22 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / + col0 IS NOT NULL
----

query I rowsort
SELECT ALL ( + 77 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 50 / col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9427
SELECT ALL + COUNT( * ) * 70 - + 79 AS col0 FROM tab1 AS cor0
----
131

skipif mysql # not compatible
query I rowsort label-9427
SELECT ALL + COUNT ( * ) * 70 - + 79 AS col0 FROM tab1 AS cor0
----
131

query I rowsort
SELECT + col0 * - 53 + col2 + - col1 AS col0 FROM tab0 cor0
----
-4622
-5043
-829

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT ALL - + SUM( DISTINCT 80 ) FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-9429
SELECT ALL - + SUM ( DISTINCT 80 ) FROM tab1 AS cor0
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-9430
SELECT DISTINCT + MIN( ALL - col0 ) col2 FROM tab0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9430
SELECT DISTINCT + MIN ( ALL - col0 ) col2 FROM tab0
----
-97

query I rowsort
SELECT DISTINCT + col2 FROM tab2 WHERE ( NOT col2 IS NULL )
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9432
SELECT DISTINCT * FROM tab1 WHERE - + 35 - ( + CAST( NULL AS SIGNED ) ) * - col2 <= NULL
----

skipif mysql # not compatible
query III rowsort label-9432
SELECT DISTINCT * FROM tab1 WHERE - + 35 - ( + CAST ( NULL AS INTEGER ) ) * - col2 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL <> + col2 * - col2 - col2 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9434
SELECT - CAST( - 70 AS SIGNED ) FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif mysql # not compatible
query I rowsort label-9434
SELECT - CAST ( - 70 AS INTEGER ) FROM tab2, tab2 AS cor0
----
9 values hashing to 9758da65ae4711e3e8c8def2fe026911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 3 + - col1, col2 col1 FROM tab0
----
-18
10
-78
47
2
99

query I rowsort
SELECT ALL + ( - ( + col2 ) ) + + + col2 AS col2 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9437
SELECT ALL col0 + + CAST( + - col2 AS SIGNED ) * col2 * - col2 * CAST( NULL AS SIGNED ) + - - ( ( + + col0 ) ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9437
SELECT ALL col0 + + CAST ( + - col2 AS INTEGER ) * col2 * - col2 * CAST ( NULL AS INTEGER ) + - - ( ( + + col0 ) ) + + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 * + col1 col1, + 67 col0 FROM tab1
----
196
67
2209
67
25
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 * - col0 col0 FROM tab0
----
-1275
-7395
-8245

onlyif mysql # aggregate syntax: 
query I rowsort label-9440
SELECT ALL COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-9440
SELECT ALL COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2
----
9

query I rowsort
SELECT DISTINCT col2 * - - col2 FROM tab1
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - + MAX( ALL + - col1 ) + - - 19 AS col1 FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-9442
SELECT - + MAX ( ALL + - col1 ) + - - 19 AS col1 FROM tab0 AS cor0
----
20

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT - - col2 NOT BETWEEN NULL AND - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 - - - 76 AS col0 FROM tab0 AS cor0
----
-163
-173
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= - ( + 86 ) * + + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9446
SELECT ALL - COUNT( * ) * 80 AS col1, - 50 * + COUNT( * ) FROM tab2 AS cor0
----
-240
-150

skipif mysql # not compatible
query II rowsort label-9446
SELECT ALL - COUNT ( * ) * 80 AS col1, - 50 * + COUNT ( * ) FROM tab2 AS cor0
----
-240
-150

query I rowsort
SELECT + 17 + + col2 * + 22 FROM tab1 AS cor0 WHERE NULL >= - col2 * + - 68
----

query III rowsort
SELECT * FROM tab0 WHERE - - col1 < NULL
----

query II rowsort
SELECT DISTINCT col1 AS col2, col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query I rowsort
SELECT - 28 * - 50 FROM tab1
----
1400
1400
1400

query II rowsort
SELECT + - 70, 49 AS col1 FROM tab0 AS cor0
----
-70
49
-70
49
-70
49

onlyif mysql # aggregate syntax: 
query I rowsort label-9452
SELECT - ( + SUM( ALL - - col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9452
SELECT - ( + SUM ( ALL - - col0 ) ) AS col1 FROM tab0 AS cor0
----
-199

query II rowsort
SELECT 66 AS col2, + col1 AS col0 FROM tab2 AS cor0
----
66
51
66
67
66
77

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 + - 81 BETWEEN + 0 + - - 10 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT 9 <> NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9456
SELECT DISTINCT - ( + COUNT( * ) ), - 7 AS col0 FROM tab1 AS cor0
----
-3
-7

skipif mysql # not compatible
query II rowsort label-9456
SELECT DISTINCT - ( + COUNT ( * ) ), - 7 AS col0 FROM tab1 AS cor0
----
-3
-7

query I rowsort
SELECT ALL + col1 * - col0 FROM tab2 cor0 WHERE NULL >= + col1 / - - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9458
SELECT + - ( + CAST( NULL AS SIGNED ) ) * + MAX( - 4 ) - - ( - 33 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9458
SELECT + - ( + CAST ( NULL AS INTEGER ) ) * + MAX ( - 4 ) - - ( - 33 ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 + + 78 / - - col0 + - + 58 BETWEEN ( + col0 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9460
SELECT SUM( 11 ) col1 FROM tab1
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9460
SELECT SUM ( 11 ) col1 FROM tab1
----
33

query I rowsort
SELECT ALL - col2 * + - col2 AS col1 FROM tab0
----
100
2209
9801

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - 27 ) >= NULL
----

query I rowsort
SELECT DISTINCT - 88 * 20 AS col2 FROM tab2
----
-1760

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT + SUM( DISTINCT - 34 ) FROM tab2
----
-34

skipif mysql # not compatible
query I rowsort label-9464
SELECT + SUM ( DISTINCT - 34 ) FROM tab2
----
-34

query III rowsort
SELECT * FROM tab2 WHERE NULL IN ( - - col1 / - - col0 )
----

query I rowsort
SELECT ALL 47 + - col2 FROM tab1
----
-12
-21
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9467
SELECT ALL COUNT( * ) + - 55 AS col1 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-9467
SELECT ALL COUNT ( * ) + - 55 AS col1 FROM tab0
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9468
SELECT ALL col1 * ( + + CAST( + col2 AS SIGNED ) ) FROM tab1
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-9468
SELECT ALL col1 * ( + + CAST ( + col2 AS INTEGER ) ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT col1 * + col1 * + col1 FROM tab0
----
1
531441
9261

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 75 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9471
SELECT * FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-9471
SELECT * FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) <> NULL
----

query I rowsort
SELECT DISTINCT - + col2 + col1 - col1 * + ( + 29 ) + - ( - col1 ) FROM tab0 AS cor0
----
-126
-2234
-577

query I rowsort
SELECT + 2 - - col0 - - + 31 FROM tab2 AS cor0
----
108
79
97

query I rowsort
SELECT ALL - + ( - col0 ) AS col2 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9475
SELECT ALL + ( - - CAST( - + 51 AS SIGNED ) ) * - 0 DIV col2 - - col0, + col0 DIV + col2 + - + col2 AS col0 FROM tab1 AS cor0
----
51
-96
85
-58
91
-67

skipif mysql # not compatible
query II rowsort label-9475
SELECT ALL + ( - - CAST ( - + 51 AS INTEGER ) ) * - 0 / col2 - - col0, + col0 / + col2 + - + col2 AS col0 FROM tab1 AS cor0
----
51
-96
85
-58
91
-67

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9476
SELECT - col1 * col1 DIV + CAST( 66 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-39
-68
-89

skipif mysql # not compatible
query I rowsort label-9476
SELECT - col1 * col1 / + CAST ( 66 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-39
-68
-89

query I rowsort
SELECT DISTINCT col2 * - 23 + 35 * - + 96 AS col1 FROM tab0 WHERE NULL IS NULL
----
-3590
-4441
-5637

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9478
SELECT ALL - ( + col2 ) * col1 DIV + + CAST( + col2 AS SIGNED ) FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-9478
SELECT ALL - ( + col2 ) * col1 / + + CAST ( + col2 AS INTEGER ) FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT DISTINCT - SUM( - + 10 ) AS col1 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9479
SELECT DISTINCT - SUM ( - + 10 ) AS col1 FROM tab2
----
30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 52 * - - col0 col2 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT ALL - 12 + + + col0 + + + col1 * - col1 FROM tab1 WHERE NULL = + col1 + col1
----

query I rowsort
SELECT col0 * 28 FROM tab1
----
1428
2380
2548

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9483
SELECT + - 23 * COUNT( * ) + CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9483
SELECT + - 23 * COUNT ( * ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9484
SELECT DISTINCT + 32 + 97 + - COUNT( * ) FROM tab0 AS cor0
----
126

skipif mysql # not compatible
query I rowsort label-9484
SELECT DISTINCT + 32 + 97 + - COUNT ( * ) FROM tab0 AS cor0
----
126

query I rowsort
SELECT DISTINCT + + 11 * col2 AS col2 FROM tab2 cor0
----
253
440
638

query I rowsort
SELECT ALL + 3 + + col2 AS col1 FROM tab2 cor0
----
26
43
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9487
SELECT DISTINCT 73 * - col0 * 27 - CAST( + - 62 AS SIGNED ) + - col2 - 74 + + col2 * + + col2 AS col1 FROM tab2 AS cor0
----
-124596
-144531
-90172

skipif mysql # not compatible
query I rowsort label-9487
SELECT DISTINCT 73 * - col0 * 27 - CAST ( + - 62 AS INTEGER ) + - col2 - 74 + + col2 * + + col2 AS col1 FROM tab2 AS cor0
----
-124596
-144531
-90172

query I rowsort
SELECT + - col1 * + 71 + + + col1 FROM tab0 AS cor0
----
-1470
-5670
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT MIN( DISTINCT - 80 ) + - ( - 11 ) * 38 FROM tab2 AS cor0
----
338

skipif mysql # not compatible
query I rowsort label-9489
SELECT MIN ( DISTINCT - 80 ) + - ( - 11 ) * 38 FROM tab2 AS cor0
----
338

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - 76 <= NULL
----

query II rowsort
SELECT DISTINCT + + col2 AS col2, 2 FROM tab0 AS cor0 WHERE NOT ( ( NOT + col2 IS NOT NULL ) )
----
10
2
47
2
99
2

query I rowsort
SELECT DISTINCT - 28 * + - col1 + - + col2 - - col2 + - col1 FROM tab1 AS cor0
----
1269
135
378

query I rowsort
SELECT + 58 + col2 FROM tab0 AS cor0
----
105
157
68

query II rowsort
SELECT ALL + + col0 AS col1, + col0 AS col2 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT ALL - 1 AS col1, col0 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab0 cor0 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9497
SELECT + 62 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-9497
SELECT + 62 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
65

query I rowsort
SELECT - 24 FROM tab2 WHERE + col1 * 66 + - - 46 IS NOT NULL
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9499
SELECT ALL - COUNT( ALL - 35 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9499
SELECT ALL - COUNT ( ALL - 35 ) FROM tab2
----
-3

query I rowsort
SELECT + col2 + - 78 AS col0 FROM tab0
----
-31
-68
21

onlyif mysql # DIV for integer division: 
query I rowsort label-9501
SELECT ALL + ( + + col1 ) DIV 20 * + col0 col1 FROM tab1
----
0
0
182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9501
SELECT ALL + ( + + col1 ) / 20 * + col0 col1 FROM tab1
----
0
0
182

query I rowsort
SELECT ALL + col1 + - col0 - + + 56 + col2 FROM tab0
----
-112
-53
57

onlyif mysql # aggregate syntax: 
query I rowsort label-9503
SELECT - COUNT( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9503
SELECT - COUNT ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9504
SELECT + CAST( - 40 AS SIGNED ) FROM tab1 AS cor0
----
-40
-40
-40

skipif mysql # not compatible
query I rowsort label-9504
SELECT + CAST ( - 40 AS INTEGER ) FROM tab1 AS cor0
----
-40
-40
-40

query II rowsort
SELECT ALL col0 AS col0, - 4 - - + col2 AS col1 FROM tab1
----
51
92
85
55
91
64

query II rowsort
SELECT ALL - 6, - col0 AS col2 FROM tab2 AS cor0
----
-6
-46
-6
-64
-6
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT ALL + COUNT( col2 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9507
SELECT ALL + COUNT ( col2 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT col1, col2 + + 42 * + 95 * 7 FROM tab2 AS cor0
----
51
27953
67
27988
77
27970

query II rowsort
SELECT 46, col2 FROM tab0 AS cor0
----
46
10
46
47
46
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9510
SELECT CAST( - 63 AS SIGNED ) FROM tab0 AS cor0
----
-63
-63
-63

skipif mysql # not compatible
query I rowsort label-9510
SELECT CAST ( - 63 AS INTEGER ) FROM tab0 AS cor0
----
-63
-63
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9511
SELECT DISTINCT + col0 * - + col2 + CAST( 23 AS SIGNED ) FROM tab0 AS cor0
----
-682
-847
-9580

skipif mysql # not compatible
query I rowsort label-9511
SELECT DISTINCT + col0 * - + col2 + CAST ( 23 AS INTEGER ) FROM tab0 AS cor0
----
-682
-847
-9580

onlyif mysql # aggregate syntax: 
query I rowsort label-9512
SELECT DISTINCT 48 * - + MIN( ALL col1 ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT 48 * - + MIN ( ALL col1 ) FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT ALL - SUM( + 12 ) FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL - SUM ( + 12 ) FROM tab0
----
-36

query I rowsort
SELECT ALL 17 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT DISTINCT COUNT( * ) * + - SUM( DISTINCT col0 ) FROM tab0
----
-597

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT COUNT ( * ) * + - SUM ( DISTINCT col0 ) FROM tab0
----
-597

onlyif mysql # aggregate syntax: 
query I rowsort label-9516
SELECT 10 * COUNT( DISTINCT - col2 ) AS col2 FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9516
SELECT 10 * COUNT ( DISTINCT - col2 ) AS col2 FROM tab1
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT DISTINCT + COUNT( ALL + ( - - col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9517
SELECT DISTINCT + COUNT ( ALL + ( - - col1 ) ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9518
SELECT DISTINCT - + ( - COUNT( * ) ) col1 FROM tab1 WHERE NULL >= + CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9518
SELECT DISTINCT - + ( - COUNT ( * ) ) col1 FROM tab1 WHERE NULL >= + CAST ( NULL AS INTEGER )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 BETWEEN NULL AND col1 + - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IS NOT NULL OR NOT - col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 11 * - - col2 IS NOT NULL
----

query II rowsort
SELECT + col2 * 92, + 23 AS col2 FROM tab2 AS cor0
----
2116
23
3680
23
5336
23

query I rowsort
SELECT DISTINCT + 66 * - col2 + - - col2 FROM tab0 AS cor0
----
-3055
-6435
-650

onlyif mysql # DIV for integer division: 
query I rowsort label-9524
SELECT ALL - col2 DIV 30 * - ( + 21 ) AS col1 FROM tab2 cor0
----
0
21
21

skipif mysql # not compatible
query I rowsort label-9524
SELECT ALL - col2 / 30 * - ( + 21 ) AS col1 FROM tab2 cor0
----
0
21
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9525
SELECT ALL - COUNT( * ) + + COUNT( * ) AS col0, 11 FROM tab0 AS cor0
----
0
11

skipif mysql # not compatible
query II rowsort label-9525
SELECT ALL - COUNT ( * ) + + COUNT ( * ) AS col0, 11 FROM tab0 AS cor0
----
0
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9526
SELECT - + col0 * col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9526
SELECT - + col0 * col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( + - col1 ) * + 90 - col2 + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 col0 FROM tab0, tab1 cor0
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query III rowsort
SELECT * FROM tab0 WHERE ( ( NOT + + col1 IS NOT NULL ) )
----

query II rowsort
SELECT - ( + col1 ) + + + 46 + - 35, col0 FROM tab0
----
-10
87
-70
15
10
97

query II rowsort
SELECT DISTINCT 65 AS col2, col0 FROM tab2
----
65
46
65
64
65
75

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9533
SELECT ALL 20 + COUNT( * ) col1 FROM tab0
----
23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9533
SELECT ALL 20 + COUNT ( * ) col1 FROM tab0
----
23

query I rowsort
SELECT col2 + + - col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 + - + 78 AS col1 FROM tab0 AS cor0
----
-57
-77
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9536
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-9536
SELECT SUM ( col2 ) col1 FROM tab0 AS cor0
----
156

onlyif mysql # DIV for integer division: 
query I rowsort label-9537
SELECT DISTINCT col1 DIV 33 AS col2 FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-9537
SELECT DISTINCT col1 / 33 AS col2 FROM tab1
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9538
SELECT 7 DIV - ( col1 ) FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT 7 / - ( col1 ) FROM tab2
----
0
0
0

query I rowsort
SELECT ALL - 13 - 34 AS col0 FROM tab0
----
-47
-47
-47

query III rowsort
SELECT ALL * FROM tab2 WHERE ( 3 + col2 ) IS NULL
----

query I rowsort
SELECT ALL - col0 * + col2 + 93 FROM tab1
----
-4803
-4922
-6095

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE ( col2 ) <= ( + col0 ) + + ( - 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9542
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE ( col2 ) <= ( + col0 ) + + ( - 75 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT - SUM( 33 ) * 69 + - 28 FROM tab1
----
-6859

skipif mysql # not compatible
query I rowsort label-9543
SELECT - SUM ( 33 ) * 69 + - 28 FROM tab1
----
-6859

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT + COUNT( - 34 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9544
SELECT + COUNT ( - 34 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 + col1 / 41 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 + + 50 FROM tab1
----
101
135
141

query I rowsort
SELECT + col1 FROM tab1 WHERE NULL < col2 * - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9548
SELECT DISTINCT ( COUNT( * ) ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9548
SELECT DISTINCT ( COUNT ( * ) ) col2 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE - 36 * ( + 71 ) + col1 NOT BETWEEN NULL AND - 27 + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9550
SELECT DISTINCT MAX( ALL + 21 ) * MAX( - 95 * 67 ) + - COUNT( * ) AS col0 FROM tab2
----
-133668

skipif mysql # not compatible
query I rowsort label-9550
SELECT DISTINCT MAX ( ALL + 21 ) * MAX ( - 95 * 67 ) + - COUNT ( * ) AS col0 FROM tab2
----
-133668

query I rowsort
SELECT ALL - 51 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 - col2 ) BETWEEN col0 AND - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9553
SELECT DISTINCT - MAX( ALL col2 ) AS col0 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-9553
SELECT DISTINCT - MAX ( ALL col2 ) AS col0 FROM tab1
----
-96

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT - col0 IS NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 * - 4 + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) BETWEEN col0 AND ( + col2 )
----

query I rowsort
SELECT + col2 * 82 + ( - 48 ) FROM tab0
----
3806
772
8070

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT DISTINCT COUNT( * ) + 55 AS col2 FROM tab0 WHERE NOT col2 NOT IN ( + col2 )
----
58

skipif mysql # not compatible
query I rowsort label-9558
SELECT DISTINCT COUNT ( * ) + 55 AS col2 FROM tab0 WHERE NOT col2 NOT IN ( + col2 )
----
58

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9559
SELECT - col0 * - CAST( - 89 AS DECIMAL ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9559
SELECT - col0 * - CAST ( - 89 AS REAL ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 95 BETWEEN col1 AND + col2 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9561
SELECT MIN( - 54 ) * - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 28 IS NULL
----
162

skipif mysql # not compatible
query I rowsort label-9561
SELECT MIN ( - 54 ) * - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 28 IS NULL
----
162

query I rowsort
SELECT DISTINCT col1 * 88 FROM tab0 AS cor0
----
1848
7128
88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9563
SELECT + 11 DIV - COUNT( * ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9563
SELECT + 11 / - COUNT ( * ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9564
SELECT DISTINCT CAST( col2 AS SIGNED ) FROM tab0 WHERE 16 IN ( - col1 * col1 )
----

skipif mysql # not compatible
query I rowsort label-9564
SELECT DISTINCT CAST ( col2 AS INTEGER ) FROM tab0 WHERE 16 IN ( - col1 * col1 )
----

query I rowsort
SELECT DISTINCT col0 * 59 FROM tab1
----
3009
5015
5369

query I rowsort
SELECT ALL col0 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
2346
4928
5025

query I rowsort
SELECT DISTINCT + 78 + - ( 62 + - col1 ) * 19 FROM tab2 AS cor0
----
-131
173
363

query I rowsort
SELECT 74 + + 18 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT + col2 + + col2 FROM tab0 AS cor0 WHERE - col2 BETWEEN ( col2 ) AND col2
----

query I rowsort
SELECT + 34 + + 87 AS col0 FROM tab1 AS cor0
----
121
121
121

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 cor0 WHERE - col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE 9 + 21 IS NULL
----

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT - 69 * + ( + col0 ) IS NULL
----
15
87
97

query I rowsort
SELECT + col2 + 85 FROM tab1 AS cor0
----
144
153
181

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9575
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> + col2 * col2 + + ( CAST( col2 AS SIGNED ) + - col2 * 22 ) * 75
----
0

skipif mysql # not compatible
query I rowsort label-9575
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL <> + col2 * col2 + + ( CAST ( col2 AS INTEGER ) + - col2 * 22 ) * 75
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9576
SELECT - MAX( DISTINCT + ( col1 ) ) AS col1 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-9576
SELECT - MAX ( DISTINCT + ( col1 ) ) AS col1 FROM tab0
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL COUNT( * ) * - 34 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL COUNT ( * ) * - 34 FROM tab0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9578
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-9578
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) = NULL
----

query I rowsort
SELECT ALL + col1 * - 66 * - 13 AS col2 FROM tab0
----
18018
69498
858

onlyif mysql # aggregate syntax: 
query I rowsort label-9580
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( + col1 - col1 ) AND - 78
----
0

skipif mysql # not compatible
query I rowsort label-9580
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL BETWEEN ( + col1 - col1 ) AND - 78
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9581
SELECT ALL 50 + + COUNT( * ) + SUM( col0 + + col1 ) * 68 FROM tab2
----
25893

skipif mysql # not compatible
query I rowsort label-9581
SELECT ALL 50 + + COUNT ( * ) + SUM ( col0 + + col1 ) * 68 FROM tab2
----
25893

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9582
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 + ( - CAST( NULL AS SIGNED ) + 41 / + 96 ) * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-9582
SELECT * FROM tab1 WHERE NULL BETWEEN - col0 + ( - CAST ( NULL AS INTEGER ) + 41 / + 96 ) * + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9583
SELECT DISTINCT + COUNT( - col2 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9583
SELECT DISTINCT + COUNT ( - col2 ) AS col1 FROM tab2
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9584
SELECT ALL + COUNT( CAST( - col0 AS SIGNED ) ) AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9584
SELECT ALL + COUNT ( CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab0 WHERE col0 IS NOT NULL
----
3

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE col2 IS NULL OR NOT ( NULL ) IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9586
SELECT * FROM tab0 WHERE + 59 * + col2 + - CAST( + col1 + - 19 AS SIGNED ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9586
SELECT * FROM tab0 WHERE + 59 * + col2 + - CAST ( + col1 + - 19 AS INTEGER ) NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + col0 + ( - col0 ) * - col0 FROM tab1
----
2666
7315
8419

query I rowsort
SELECT col1 - + 93 FROM tab2
----
-16
-26
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-9589
SELECT DISTINCT - col0 DIV - - 29 + col1 col2 FROM tab0 AS cor0
----
-2
18
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9589
SELECT DISTINCT - col0 / - - 29 + col1 col2 FROM tab0 AS cor0
----
-2
18
81

query I rowsort
SELECT - 75 - col0 AS col1 FROM tab0 AS cor0
----
-162
-172
-90

query I rowsort
SELECT + ( - - col0 ) - col2 AS col2 FROM tab1 cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT + 84 + + 57 FROM tab0 AS cor0
----
141

query I rowsort
SELECT - col2 * - col0 - col1 - col2 AS col1 FROM tab1 AS cor0
----
4786
4951
6073

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 8 * col0 + ( - col2 - - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 34 < - 58
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 - col1 / - col2 NOT IN ( - 78 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 66 ) <= col0 / col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT + MIN( 40 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
40

skipif mysql # not compatible
query I rowsort label-9598
SELECT + MIN ( 40 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9599
SELECT 52 AS col0, - 47 + - CAST( col2 AS SIGNED ) col1 FROM tab2
----
52
-105
52
-70
52
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9599
SELECT 52 AS col0, - 47 + - CAST ( col2 AS INTEGER ) col1 FROM tab2
----
52
-105
52
-70
52
-87

query I rowsort
SELECT - ( + 32 ) AS col0 FROM tab2
----
-32
-32
-32

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT - + MIN( ALL 0 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9602
SELECT - + MIN ( ALL 0 ) FROM tab1 cor0
----
0

query I rowsort
SELECT DISTINCT - 83 AS col1 FROM tab1 AS cor0 WHERE NOT col1 + + col1 IS NOT NULL
----

query II rowsort
SELECT + col2, - col0 AS col0 FROM tab2 cor0
----
23
-46
40
-64
58
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-9605
SELECT - 0 DIV + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9605
SELECT - 0 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col2 * col0 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9607
SELECT + 5 DIV + COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9607
SELECT + 5 / + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT col0 DIV - col1 + + col2 FROM tab2 AS cor0
----
23
40
57

skipif mysql # not compatible
query I rowsort label-9608
SELECT col0 / - col1 + + col2 FROM tab2 AS cor0
----
23
40
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9609
SELECT - CAST( NULL AS SIGNED ), 99 - - col0 AS col0 FROM tab1 AS cor0
----
NULL
150
NULL
184
NULL
190

skipif mysql # not compatible
query II rowsort label-9609
SELECT - CAST ( NULL AS INTEGER ), 99 - - col0 AS col0 FROM tab1 AS cor0
----
NULL
150
NULL
184
NULL
190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 85 col1 FROM tab1 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT DISTINCT MAX( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-9611
SELECT DISTINCT MAX ( DISTINCT 43 ) AS col0 FROM tab1 AS cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9612
SELECT ALL 65 + MAX( - 51 ) * COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9612
SELECT ALL 65 + MAX ( - 51 ) * COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9613
SELECT ALL - COUNT( * ) FROM tab0 WHERE ( - + col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9613
SELECT ALL - COUNT ( * ) FROM tab0 WHERE ( - + col2 ) IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE - 21 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9615
SELECT DISTINCT MIN( - - 50 ) FROM tab2
----
50

skipif mysql # not compatible
query I rowsort label-9615
SELECT DISTINCT MIN ( - - 50 ) FROM tab2
----
50

query I rowsort
SELECT ALL + 38 * + col2 AS col0 FROM tab2 WHERE + col2 < ( NULL )
----

query II rowsort
SELECT ALL - ( + + col2 ), col0 FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9618
SELECT ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9618
SELECT ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * 42 + - col2 AS col1 FROM tab1
----
-2042
-269
-684

query I rowsort
SELECT - 43 FROM tab2 WHERE NOT - 63 + - col2 NOT BETWEEN 88 + col0 * col1 AND 53
----

query I rowsort
SELECT + - 71 + col2 AS col2 FROM tab0 AS cor0
----
-24
-61
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9622
SELECT ALL + + CAST( col2 AS SIGNED ) AS col1 FROM tab0 cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL + + CAST ( col2 AS INTEGER ) AS col1 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9623
SELECT DISTINCT ( - + CAST( NULL AS SIGNED ) ) * MIN( DISTINCT - col1 + - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9623
SELECT DISTINCT ( - + CAST ( NULL AS INTEGER ) ) * MIN ( DISTINCT - col1 + - col1 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
NULL

query I rowsort
SELECT + col2 + ( col0 ) FROM tab1
----
144
147
159

query I rowsort
SELECT ALL + 73 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9626
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + + 73 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9626
SELECT DISTINCT CAST ( NULL AS REAL ) + + + 73 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9627
SELECT DISTINCT + MIN( col1 ) - + COUNT( * ) AS col2 FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9627
SELECT DISTINCT + MIN ( col1 ) - + COUNT ( * ) AS col2 FROM tab1 cor0
----
2

query I rowsort
SELECT + col0 - + 12 AS col2 FROM tab2 AS cor0
----
34
52
63

query II rowsort
SELECT - ( - col1 ) - 68 AS col1, + col0 * - 21 + col1 AS col2 FROM tab1 AS cor0
----
-21
-1864
-54
-1057
-63
-1780

query I rowsort
SELECT ALL - col0 * - - col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT 52 + - SUM( DISTINCT - col0 ) AS col2 FROM tab2
----
237

skipif mysql # not compatible
query I rowsort label-9631
SELECT 52 + - SUM ( DISTINCT - col0 ) AS col2 FROM tab2
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-9632
SELECT COUNT( ALL + - col1 ) + - 20 FROM tab0
----
-17

skipif mysql # not compatible
query I rowsort label-9632
SELECT COUNT ( ALL + - col1 ) + - 20 FROM tab0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-9633
SELECT - COUNT( * ) + + + 39 * MIN( ALL - 96 ) + - + 2 FROM tab1
----
-3749

skipif mysql # not compatible
query I rowsort label-9633
SELECT - COUNT ( * ) + + + 39 * MIN ( ALL - 96 ) + - + 2 FROM tab1
----
-3749

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 60 + + col2 col2 FROM tab2
----
-2
-20
-37

query III rowsort
SELECT * FROM tab2 WHERE col2 + 41 IN ( col2 * + - 80 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9636
SELECT ALL 61 * col0 DIV + 20 FROM tab0
----
265
295
45

skipif mysql # not compatible
query I rowsort label-9636
SELECT ALL 61 * col0 / + 20 FROM tab0
----
265
295
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9637
SELECT ALL COUNT( * ) + 16 + 6 AS col2 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-9637
SELECT ALL COUNT ( * ) + 16 + 6 AS col2 FROM tab2
----
25

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 WHERE NOT ( ( col2 ) IS NOT NULL )
----

query II rowsort
SELECT DISTINCT - - col1, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query II rowsort
SELECT DISTINCT - + col2, 3 AS col1 FROM tab1 AS cor0
----
-59
3
-68
3
-96
3

onlyif mysql # DIV for integer division: 
query II rowsort label-9641
SELECT ALL + 87 DIV col2, 13 + col2 AS col0 FROM tab2
----
1
71
2
53
3
36

skipif mysql # not compatible
query II rowsort label-9641
SELECT ALL + 87 / col2, 13 + col2 AS col0 FROM tab2
----
1
71
2
53
3
36

query I rowsort
SELECT DISTINCT + - 51 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-9643
SELECT ALL - 91, COUNT( * ) * - SUM( DISTINCT - col0 ) * + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 - + 48 AND col2
----
-91
NULL

skipif mysql # not compatible
query II rowsort label-9643
SELECT ALL - 91, COUNT ( * ) * - SUM ( DISTINCT - col0 ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col0 - + 48 AND col2
----
-91
NULL

query I rowsort
SELECT ALL 35 AS col1 FROM tab1 cor0
----
35
35
35

onlyif mysql # DIV for integer division: 
query I rowsort label-9645
SELECT ALL - col1 * col1 DIV col2 FROM tab1 cor0
----
-2
-32
0

skipif mysql # not compatible
query I rowsort label-9645
SELECT ALL - col1 * col1 / col2 FROM tab1 cor0
----
-2
-32
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9646
SELECT 78 DIV - - MIN( - + col2 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9646
SELECT 78 / - - MIN ( - + col2 ) FROM tab2 AS cor0
----
-1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( NULL ) <> ( NULL ) )
----

query I rowsort
SELECT ALL - - 6 * - 10 * + + 27 FROM tab1 AS cor0
----
-1620
-1620
-1620

query I rowsort
SELECT ALL + + ( ( - 76 ) ) FROM tab2 AS cor0
----
-76
-76
-76

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT ( - + 12 ) <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9651
SELECT - 33 + - MIN( ALL + col0 ) * - COUNT( * ) FROM tab2
----
105

skipif mysql # not compatible
query I rowsort label-9651
SELECT - 33 + - MIN ( ALL + col0 ) * - COUNT ( * ) FROM tab2
----
105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab0 WHERE - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL col0 + - ( - col2 ) + - 31 + col1 FROM tab1 AS cor0
----
118
130
175

query I rowsort
SELECT - col1 * + 27 AS col1 FROM tab2 AS cor0
----
-1377
-1809
-2079

query I rowsort
SELECT ALL + 64 + + + col1 FROM tab0 AS cor0
----
145
65
85

onlyif mysql # aggregate syntax: 
query II rowsort label-9656
SELECT - + 80 AS col0, + COUNT( - - 45 ) AS col1 FROM tab0 AS cor0
----
-80
3

skipif mysql # not compatible
query II rowsort label-9656
SELECT - + 80 AS col0, + COUNT ( - - 45 ) AS col1 FROM tab0 AS cor0
----
-80
3

query I rowsort
SELECT col2 * - col0 FROM tab1 AS cor0 WHERE NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9658
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 62 - - + 14 * - + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-9658
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL IN ( 62 - - + 14 * - + col0 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, + col0 col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9660
SELECT ALL + + MIN( ALL + + col2 ) col2 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9660
SELECT ALL + + MIN ( ALL + + col2 ) col2 FROM tab0 AS cor0
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 97, col0 col2 FROM tab2 AS cor0
----
-97
46
-97
64
-97
75

onlyif mysql # DIV for integer division: 
query I rowsort label-9662
SELECT ( - - 92 ) * - + col1 DIV col1 - + col0 FROM tab0
----
-107
-179
-189

skipif mysql # not compatible
query I rowsort label-9662
SELECT ( - - 92 ) * - + col1 / col1 - + col0 FROM tab0
----
-107
-179
-189

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT ( + col2 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9665
SELECT ALL - - COUNT( 51 ) * - - 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
180

skipif mysql # not compatible
query I rowsort label-9665
SELECT ALL - - COUNT ( 51 ) * - - 20 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
180

query I rowsort
SELECT + + 59 + - 27 FROM tab2 AS cor0
----
32
32
32

query I rowsort
SELECT ALL - - 41 * + - col2 + + 29 + 29 AS col0 FROM tab1 AS cor0
----
-2361
-2730
-3878

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT + + 64 DIV - col2 + 5 FROM tab1 AS cor0
----
4
5

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + + 64 / - col2 + 5 FROM tab1 AS cor0
----
4
5

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT + col1 DIV - 85 + - - 17 + 61 AS col2 FROM tab1 cor0
----
78
78
78

skipif mysql # not compatible
query I rowsort label-9669
SELECT + col1 / - 85 + - - 17 + 61 AS col2 FROM tab1 cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - col1 FROM tab1 AS cor0 WHERE ( NULL ) > col2
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 68 IS NULL ) OR col2 + + col2 - + col2 + - + col0 <> + 98 - + 91
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 2 * + + 9 col0 FROM tab2 AS cor0
----
41
58
76

query I rowsort
SELECT ALL - col1 * col2 * + 24 * - 98 - + col2 FROM tab2 AS cor0
----
2758873
7244120
9139814

onlyif mysql # aggregate syntax: 
query I rowsort label-9674
SELECT ALL - COUNT( * ) - + + 73 FROM tab2 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-9674
SELECT ALL - COUNT ( * ) - + + 73 FROM tab2 AS cor0
----
-76

query I rowsort
SELECT ALL + 55 - col1 FROM tab0
----
-26
34
54

query I rowsort
SELECT DISTINCT col0 * - 8 AS col1 FROM tab2
----
-368
-512
-600

query I rowsort
SELECT DISTINCT - ( - col0 ) + + 1 + + col0 FROM tab1
----
103
171
183

query I rowsort
SELECT DISTINCT - + 36 FROM tab1 WHERE NOT - 18 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9679
SELECT DISTINCT + MIN( DISTINCT - 80 ) col1 FROM tab1
----
-80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9679
SELECT DISTINCT + MIN ( DISTINCT - 80 ) col1 FROM tab1
----
-80

query I rowsort
SELECT col0 * 97 AS col0 FROM tab2
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT MIN( + 40 ) col2 FROM tab1
----
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9681
SELECT DISTINCT MIN ( + 40 ) col2 FROM tab1
----
40

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9682
SELECT DISTINCT + - COUNT( * ) * 44 DIV - + 97 col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9682
SELECT DISTINCT + - COUNT ( * ) * 44 / - + 97 col2 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9683
SELECT col1 AS col1, 4 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST( - col0 AS SIGNED ) * - 12 * col1 BETWEEN - + 81 * - col0 AND NULL
----

skipif mysql # not compatible
query II rowsort label-9683
SELECT col1 AS col1, 4 AS col2 FROM tab2 AS cor0 WHERE NOT + CAST ( - col0 AS INTEGER ) * - 12 * col1 BETWEEN - + 81 * - col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9684
SELECT DISTINCT - col2 * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9684
SELECT DISTINCT - col2 * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9685
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( CAST( NULL AS SIGNED ) ) AND col1
----

skipif mysql # not compatible
query III rowsort label-9685
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( CAST ( NULL AS INTEGER ) ) AND col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9686
SELECT + ( - 35 ) AS col0, + col1 * col1 DIV - col0 FROM tab0
----
-35
-437
-35
-5
-35
0

skipif mysql # not compatible
query II rowsort label-9686
SELECT + ( - 35 ) AS col0, + col1 * col1 / - col0 FROM tab0
----
-35
-437
-35
-5
-35
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = col0 - + col0 - col2 * + col2 * + 90
----

query II rowsort
SELECT ALL - 38, col1 * col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-9689
SELECT - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----

query I rowsort
SELECT ALL col0 * ( + col2 ) AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> 75
----

query II rowsort
SELECT DISTINCT + col0, 90 AS col1 FROM tab0 cor0
----
15
90
87
90
97
90

query I rowsort
SELECT 25 AS col2 FROM tab2 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - col2 * + col0 * 41 * + - col1 FROM tab1
----
1028075
11924276
2810304

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9695
SELECT ALL - CAST( NULL AS SIGNED ) / SUM( DISTINCT - + col0 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9695
SELECT ALL - CAST ( NULL AS INTEGER ) / SUM ( DISTINCT - + col0 ) FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 44 * - - 29 + col2 + + col1 * + + col1 * 84 * - 87 col2 FROM tab1
----
-1430996
-16142028
-181365

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9697
SELECT DISTINCT * FROM tab1 WHERE - 88 * + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9697
SELECT DISTINCT * FROM tab1 WHERE - 88 * + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + + 48 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 61 + - col2 - 96 AS col0 FROM tab2
----
-58
-75
-93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + - col0 col1 FROM tab0
----
-174
-194
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9701
SELECT ALL COUNT( * ) + - - 24 AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL COUNT ( * ) + - - 24 AS col0 FROM tab0
----
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT + col1 + + col1 * CAST( + CAST( - - col2 AS SIGNED ) AS SIGNED ) FROM tab0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-9702
SELECT + col1 + + col1 * CAST ( + CAST ( - - col2 AS INTEGER ) AS INTEGER ) FROM tab0
----
100
231
3888

query I rowsort
SELECT DISTINCT col1 + + + col2 + + 72 FROM tab2 AS cor0
----
146
189
197

query I rowsort
SELECT - - 96 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) < - 72 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 75 + - - 91 BETWEEN ( - + col0 ) AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9706
SELECT DISTINCT MAX( 91 ) * MAX( ALL col1 ) FROM tab2 AS cor0
----
7007

skipif mysql # not compatible
query I rowsort label-9706
SELECT DISTINCT MAX ( 91 ) * MAX ( ALL col1 ) FROM tab2 AS cor0
----
7007

query I rowsort
SELECT ALL - 12 * + col0 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN - - 51 AND ( NULL )
----

query I rowsort
SELECT DISTINCT + + 5 FROM tab1 cor0
----
5

query III rowsort
SELECT * FROM tab0 WHERE ( 55 + - + col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9710
SELECT DISTINCT SUM( ALL + - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-9710
SELECT DISTINCT SUM ( ALL + - col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT DISTINCT col0 + + 46 FROM tab0
----
133
143
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + + + ( + ( - - col1 ) ) col2 FROM tab2 AS cor0
----
28
37
9

query II rowsort
SELECT ALL - 52 AS col0, - col2 AS col0 FROM tab0 AS cor0
----
-52
-10
-52
-47
-52
-99

query I rowsort
SELECT DISTINCT + - 83 + + + 92 + col0 FROM tab2 AS cor0
----
55
73
84

query I rowsort
SELECT ALL - 45 * + - col2 + ( + col0 ) - col0 FROM tab1 cor0
----
2655
3060
4320

query I rowsort
SELECT ALL - ( - 98 ) FROM tab1 AS cor0 WHERE - col1 + + col2 IS NOT NULL
----
98
98
98

query I rowsort
SELECT ALL - - 5 - - col1 FROM tab2 AS cor0
----
56
72
82

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 * + col0 IN ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( col1 * + 73 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT ALL + col2 FROM tab1 WHERE + CAST( - 73 AS SIGNED ) + + col0 <> ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-9720
SELECT ALL + col2 FROM tab1 WHERE + CAST ( - 73 AS INTEGER ) + + col0 <> ( CAST ( NULL AS INTEGER ) )
----

query II rowsort
SELECT DISTINCT + col1, + ( - col1 ) * ( + + col1 ) FROM tab1 WHERE NOT col0 IS NULL
----
14
-196
47
-2209
5
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9722
SELECT ALL + + col2 * - CAST( + 11 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-1089
-110
-517

skipif mysql # not compatible
query I rowsort label-9722
SELECT ALL + + col2 * - CAST ( + 11 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-1089
-110
-517

query II rowsort
SELECT DISTINCT col0, col1 * + 78 * 31 FROM tab1
----
51
33852
85
12090
91
113646

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9724
SELECT DISTINCT CAST( - 24 AS SIGNED ) + ( COUNT( * ) ) FROM tab2 WHERE NULL IN ( + + col1 )
----
-24

skipif mysql # not compatible
query I rowsort label-9724
SELECT DISTINCT CAST ( - 24 AS INTEGER ) + ( COUNT ( * ) ) FROM tab2 WHERE NULL IN ( + + col1 )
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-9725
SELECT ALL COUNT( * ) * + 57 FROM tab1
----
171

skipif mysql # not compatible
query I rowsort label-9725
SELECT ALL COUNT ( * ) * + 57 FROM tab1
----
171

query I rowsort
SELECT DISTINCT + + col1 * + 85 AS col2 FROM tab1 AS cor0
----
1190
3995
425

query I rowsort
SELECT + 9 + 37 + - - 95 AS col1 FROM tab0 AS cor0
----
141
141
141

query I rowsort
SELECT DISTINCT - col2 + + 65 AS col0 FROM tab0 AS cor0
----
-34
18
55

query I rowsort
SELECT 17 * - col0 FROM tab0 AS cor0 WHERE 18 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9730
SELECT CAST( - col0 AS SIGNED ) * 6 - + - 8 * 28 DIV + ( - + col0 ) + + - 67 * + col1 FROM tab2
----
-3697
-4941
-5546

skipif mysql # not compatible
query I rowsort label-9730
SELECT CAST ( - col0 AS INTEGER ) * 6 - + - 8 * 28 / + ( - + col0 ) + + - 67 * + col1 FROM tab2
----
-3697
-4941
-5546

onlyif mysql # aggregate syntax: 
query II rowsort label-9731
SELECT DISTINCT 22, COUNT( * ) col0 FROM tab0
----
22
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9731
SELECT DISTINCT 22, COUNT ( * ) col0 FROM tab0
----
22
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9732
SELECT + 35 * - COUNT( * ) + + 84 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-9732
SELECT + 35 * - COUNT ( * ) + + 84 FROM tab0
----
-21

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( - + col1, 65 + + - col2 )
----

query I rowsort
SELECT DISTINCT - col0 + 62 * col1 AS col1 FROM tab2
----
3116
4079
4710

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT + 53 FROM tab0 WHERE - col0 + + - ( + col1 ) <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( + 63, 59 * + 3 + + col0 )
----

query I rowsort
SELECT 3 * col2 AS col1 FROM tab2 AS cor0
----
120
174
69

query I rowsort
SELECT - - col1 - - col0 AS col0 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + col1 * col2 * - - ( - col1 ) * col2 + + col2 + - col2 FROM tab0
----
-14493249
-44100
-9801

query I rowsort
SELECT ALL col2 + - 62 AS col0 FROM tab1
----
-3
34
6

query III rowsort
SELECT * FROM tab2 WHERE 9 + + col2 NOT BETWEEN - col1 + 17 + - + col1 - + col0 * + + col1 + + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 25 * - ( - + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
1275
2125
2275

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 * + col1 BETWEEN - ( + - col2 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9745
SELECT + col1 DIV col2 + + 96, - col2 col0 FROM tab0 cor0
----
96
-99
97
-47
98
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9745
SELECT + col1 / col2 + + 96, - col2 col0 FROM tab0 cor0
----
96
-99
97
-47
98
-10

query I rowsort
SELECT DISTINCT + col1 - - - col1 + col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT col0 + + col0 FROM tab2 AS cor0 WHERE NOT + ( + col1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9748
SELECT + CAST( - 54 AS SIGNED ) FROM tab0 AS cor0
----
-54
-54
-54

skipif mysql # not compatible
query I rowsort label-9748
SELECT + CAST ( - 54 AS INTEGER ) FROM tab0 AS cor0
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9749
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 15 AND CAST( - col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9749
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN 15 AND CAST ( - col1 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 55 col2 FROM tab0 cor0
----
-55
-55
-55

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9751
SELECT - col1 AS col0, col0 * CAST( NULL AS SIGNED ) * col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

skipif mysql # not compatible
query II rowsort label-9751
SELECT - col1 AS col0, col0 * CAST ( NULL AS INTEGER ) * col2 FROM tab2
----
-51
NULL
-67
NULL
-77
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9752
SELECT ALL + CAST( NULL AS SIGNED ) AS col1, - col1 col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9752
SELECT ALL + CAST ( NULL AS INTEGER ) AS col1, - col1 col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT ALL + 72 * + COUNT( * ) AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-9753
SELECT ALL + 72 * + COUNT ( * ) AS col1 FROM tab0
----
216

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( + col1, 64 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN 27 AND - 43 + + col0
----

query I rowsort
SELECT DISTINCT + - col2 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN ( NULL ) AND ( - + col2 )
----

query I rowsort
SELECT DISTINCT - 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-79

query I rowsort
SELECT + col2 + + - 97 AS col1 FROM tab0
----
-50
-87
2

query I rowsort
SELECT ( + - 52 ) AS col0 FROM tab1
----
-52
-52
-52

query I rowsort
SELECT DISTINCT ( - 85 ) * col2 AS col1 FROM tab1
----
-5015
-5780
-8160

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT NULL > NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9762
SELECT ALL + MIN( DISTINCT - - 84 ), 77 AS col0 FROM tab2 AS cor0
----
84
77

skipif mysql # not compatible
query II rowsort label-9762
SELECT ALL + MIN ( DISTINCT - - 84 ), 77 AS col0 FROM tab2 AS cor0
----
84
77

query I rowsort
SELECT ALL - ( col2 ) + - col2 AS col2 FROM tab0 cor0
----
-198
-20
-94

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 33 <> NULL
----

query I rowsort
SELECT DISTINCT + - 8 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9766
SELECT + 97 * - COUNT( * ) FROM tab1 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-9766
SELECT + 97 * - COUNT ( * ) FROM tab1 AS cor0
----
-291

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9767
SELECT DISTINCT COUNT( * ) * MIN( DISTINCT - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9767
SELECT DISTINCT COUNT ( * ) * MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT COUNT( * ) * - 3 AS col0 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-9768
SELECT COUNT ( * ) * - 3 AS col0 FROM tab1
----
-9

query II rowsort
SELECT ALL col0 AS col0, ( + - col1 ) + 55 * 79 * + col1 + col2 + + col0 + col2 * - + col2 FROM tab1
----
51
51747
85
18383
91
199703

query I rowsort
SELECT col2 + + - col0 * + + col2 FROM tab2
----
-1035
-2520
-4292

query I rowsort
SELECT DISTINCT 22 + + col0 AS col0 FROM tab2
----
68
86
97

query I rowsort
SELECT + 1 + - ( + + col0 ) * - col0 FROM tab2
----
2117
4097
5626

query I rowsort
SELECT ALL 40 + ( - ( + 88 ) ) FROM tab2
----
-48
-48
-48

query I rowsort
SELECT col1 + - 82 AS col0 FROM tab1
----
-35
-68
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-9775
SELECT - 47 + COUNT( * ) + + - ( - + MIN( - 16 ) ) * + 27 AS col1 FROM tab1 cor0
----
-476

skipif mysql # not compatible
query I rowsort label-9775
SELECT - 47 + COUNT ( * ) + + - ( - + MIN ( - 16 ) ) * + 27 AS col1 FROM tab1 cor0
----
-476

query I rowsort
SELECT ALL + col2 + + + col0 AS col0 FROM tab2 AS cor0
----
104
133
69

query I rowsort
SELECT DISTINCT + 0 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query I rowsort
SELECT ALL + 48 * + + col2 AS col2 FROM tab2
----
1104
1920
2784

query I rowsort
SELECT DISTINCT 93 * col1 FROM tab1
----
1302
4371
465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9780
SELECT CAST( - col2 AS SIGNED ) - - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9780
SELECT CAST ( - col2 AS INTEGER ) - - col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9781
SELECT - col1 - col2 DIV - ( + + col1 ), ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab1
----
-46
NULL
-8
NULL
6
NULL

skipif mysql # not compatible
query II rowsort label-9781
SELECT - col1 - col2 / - ( + + col1 ), ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1
----
-46
NULL
-8
NULL
6
NULL

query I rowsort
SELECT + 73 AS col2 FROM tab0 WHERE ( ( - 15 IS NULL ) )
----

query I rowsort
SELECT ALL col1 + - ( - 85 ) FROM tab0
----
106
166
86

query IIIIII rowsort
SELECT * FROM tab1, tab0 AS cor0 WHERE NOT + 99 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 88 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9786
SELECT ALL - + CAST( 74 AS SIGNED ) * col2 * 62 AS col0 FROM tab2 AS cor0
----
-105524
-183520
-266104

skipif mysql # not compatible
query I rowsort label-9786
SELECT ALL - + CAST ( 74 AS INTEGER ) * col2 * 62 AS col0 FROM tab2 AS cor0
----
-105524
-183520
-266104

onlyif mysql # aggregate syntax: 
query I rowsort label-9787
SELECT + - MIN( - col2 ) AS col0 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9787
SELECT + - MIN ( - col2 ) AS col0 FROM tab1 AS cor0
----
96

query I rowsort
SELECT 17 + 68 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL col0 * + 27 * 30 + + - 75 AS col0 FROM tab2 cor0
----
37185
51765
60675

query II rowsort
SELECT + col0, + ( + + col0 ) AS col1 FROM tab0 AS cor0
----
15
15
87
87
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9791
SELECT DISTINCT + ( - MIN( ALL + 74 ) ) AS col0 FROM tab1 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-9791
SELECT DISTINCT + ( - MIN ( ALL + 74 ) ) AS col0 FROM tab1 AS cor0
----
-74

query I rowsort
SELECT 96 FROM tab2 WHERE NOT - col2 <= ( col2 )
----

query I rowsort
SELECT DISTINCT - ( - + 63 ) FROM tab1
----
63

query I rowsort
SELECT DISTINCT - 85 * ( + col1 ) * col2 + - ( - + 65 ) * - col2 + - col0 FROM tab2 AS cor0 WHERE NOT col0 >= + col1
----
-101246
-264464

onlyif mysql # aggregate syntax: 
query I rowsort label-9795
SELECT ALL - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9795
SELECT ALL - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col1 * + + 77 <> NULL
----

query II rowsort
SELECT ALL - col1, + col0 AS col1 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT + 4 + - - 69 AS col1 FROM tab1 AS cor0
----
73
73
73

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9799
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9799
SELECT ALL * FROM tab0 AS cor0 WHERE NULL = CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9800
SELECT 75 + + - CAST( MIN( + - 88 ) AS SIGNED ) FROM tab2 AS cor0
----
163

skipif mysql # not compatible
query I rowsort label-9800
SELECT 75 + + - CAST ( MIN ( + - 88 ) AS INTEGER ) FROM tab2 AS cor0
----
163

query I rowsort
SELECT - col0 + - 42 AS col1 FROM tab2 AS cor0
----
-106
-117
-88

query I rowsort
SELECT + + col1 + + col1 * col0 + - + col2 + + col2 AS col1 FROM tab0 AS cor0
----
1296
1848
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9803
SELECT + ( - 98 ) + ( COUNT( * ) ) + MAX( + - col0 ) DIV COUNT( ALL + col1 ) + + COUNT( * ) FROM tab1 AS cor0
----
-109

skipif mysql # not compatible
query I rowsort label-9803
SELECT + ( - 98 ) + ( COUNT ( * ) ) + MAX ( + - col0 ) / COUNT ( ALL + col1 ) + + COUNT ( * ) FROM tab1 AS cor0
----
-109

query II rowsort
SELECT ALL - - col1 + 2 + + col1, col0 FROM tab2 AS cor0
----
104
46
136
75
156
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT col1 * + ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT col1 * + ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9806
SELECT - COUNT( * ) * + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9806
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL

query I rowsort
SELECT 57 / + 98 * + 53 * + col2 AS col0 FROM tab0 WHERE ( + col2 IS NULL )
----

query I rowsort
SELECT DISTINCT - col0 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-15
-87
-97

query I rowsort
SELECT col1 * - ( - 59 ) * - col1 * - 21 AS col2 FROM tab1
----
242844
2736951
30975

query I rowsort
SELECT ALL 40 * - - col2 FROM tab0 AS cor0
----
1880
3960
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9811
SELECT - COUNT( ALL - 29 ) - MAX( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9811
SELECT - COUNT ( ALL - 29 ) - MAX ( DISTINCT + col1 ) AS col0 FROM tab0 cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 53 col2 FROM tab1 AS cor0
----
39
48
6

query I rowsort
SELECT 50 * + 79 FROM tab0
----
3950
3950
3950

query I rowsort
SELECT - col1 * - + 94 + + col1 FROM tab0 AS cor0
----
1995
7695
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9815
SELECT 55 * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-9815
SELECT 55 * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
165

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9816
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 <= - - col0 + + - 1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9816
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( + col0 <= - - col0 + + - 1 )
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col0 ) IS NOT NULL )
----
10
47
99

query II rowsort
SELECT DISTINCT - col2 AS col1, 37 FROM tab1 AS cor0
----
-59
37
-68
37
-96
37

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 = 77 * + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9820
SELECT - SUM( - 82 ) AS col0 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-9820
SELECT - SUM ( - 82 ) AS col0 FROM tab0 AS cor0
----
246

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9821
SELECT ALL + CAST( - 16 AS SIGNED ) FROM tab2 cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL + CAST ( - 16 AS INTEGER ) FROM tab2 cor0
----
-16
-16
-16

query I rowsort
SELECT + + 57 + - 60 FROM tab1 WHERE NOT NULL < + + col2 + + + ( + col1 ) / col1
----

query II rowsort
SELECT DISTINCT ( 47 ), col0 FROM tab2
----
47
46
47
64
47
75

query II rowsort
SELECT DISTINCT + col0, + col0 * 79 FROM tab2
----
46
3634
64
5056
75
5925

onlyif mysql # aggregate syntax: 
query I rowsort label-9825
SELECT + COUNT( DISTINCT - 67 ) AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9825
SELECT + COUNT ( DISTINCT - 67 ) AS col0 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9826
SELECT DISTINCT ( SUM( ALL - ( - col0 ) ) ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9826
SELECT DISTINCT ( SUM ( ALL - ( - col0 ) ) ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9827
SELECT ALL - + COUNT( * ) FROM tab2 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9827
SELECT ALL - + COUNT ( * ) FROM tab2 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + 7 + 66 + + + col1 * + + col0 + - col0 FROM tab0 AS cor0
----
1273
1813
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9829
SELECT ALL + CAST( NULL AS SIGNED ) AS col2, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-9829
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2, col0 AS col1 FROM tab1 AS cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9830
SELECT DISTINCT - SUM( + 98 ) + + COUNT( * ) + + + MAX( + - ( - + col0 ) ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT - SUM ( + 98 ) + + COUNT ( * ) + + + MAX ( + - ( - + col0 ) ) FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - MAX( DISTINCT + 23 ) FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-9831
SELECT - MAX ( DISTINCT + 23 ) FROM tab2 AS cor0
----
-23

query I rowsort
SELECT - col0 * - - col2 * col2 AS col1 FROM tab2 cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - 39 / - col2 + col0 AS col0 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * - 29 AND + col2
----

query I rowsort
SELECT + + col1 - - + col1 + + + 99 AS col1 FROM tab1 AS cor0
----
109
127
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col2 col0 FROM tab2
----
-17
-23
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9836
SELECT ALL col2 * CAST( - col2 AS SIGNED ) AS col2, + col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

skipif mysql # not compatible
query II rowsort label-9836
SELECT ALL col2 * CAST ( - col2 AS INTEGER ) AS col2, + col0 FROM tab1
----
-3481
85
-4624
91
-9216
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9837
SELECT COUNT( * ) + + 25 FROM tab0
----
28

skipif mysql # not compatible
query I rowsort label-9837
SELECT COUNT ( * ) + + 25 FROM tab0
----
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9838
SELECT + col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) * + + 53 NOT IN ( + + 28, col0, - + col1, 33 - - 55 + col2 + - - col2 * + col0 * 47 )
----

skipif mysql # not compatible
query I rowsort label-9838
SELECT + col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) * + + 53 NOT IN ( + + 28, col0, - + col1, 33 - - 55 + col2 + - - col2 * + col0 * 47 )
----

query I rowsort
SELECT DISTINCT - ( 81 ) + + col2 FROM tab1
----
-13
-22
15

query I rowsort
SELECT DISTINCT - col2 + col1 + + col1 AS col1 FROM tab1
----
-49
-68
26

query I rowsort
SELECT col1 FROM tab2 WHERE - + col1 IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT DISTINCT 42 + + MIN( ALL + col2 ) + + 28 * - 26 FROM tab1
----
-627

skipif mysql # not compatible
query I rowsort label-9842
SELECT DISTINCT 42 + + MIN ( ALL + col2 ) + + 28 * - 26 FROM tab1
----
-627

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + COUNT( + 23 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9843
SELECT + COUNT ( + 23 ) FROM tab1 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9845
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9845
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9846
SELECT DISTINCT COUNT( * ) * + MIN( col0 ) AS col1 FROM tab0 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-9846
SELECT DISTINCT COUNT ( * ) * + MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9847
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 - - CAST( NULL AS SIGNED ) + + 14 NOT BETWEEN ( NULL ) AND - col1 + - col1
----

skipif mysql # not compatible
query III rowsort label-9847
SELECT * FROM tab2 AS cor0 WHERE NOT - 79 - - CAST ( NULL AS INTEGER ) + + 14 NOT BETWEEN ( NULL ) AND - col1 + - col1
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL <= + 28
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9849
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * - 73 * - col1 NOT BETWEEN - CAST( col1 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-9849
SELECT * FROM tab2 AS cor0 WHERE NOT 2 * - 73 * - col1 NOT BETWEEN - CAST ( col1 AS REAL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT + SUM( DISTINCT + + col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9850
SELECT + SUM ( DISTINCT + + col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT + 30 * 82 FROM tab0 cor0
----
2460
2460
2460

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9852
SELECT DISTINCT col1 * - CAST( NULL AS DECIMAL ) * - 99 * - col1 / + 18 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9852
SELECT DISTINCT col1 * - CAST ( NULL AS REAL ) * - 99 * - col1 / + 18 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9853
SELECT ALL + SUM( 36 ) FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-9853
SELECT ALL + SUM ( 36 ) FROM tab0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-9854
SELECT ALL + + COUNT( * ) + + 23 FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9854
SELECT ALL + + COUNT ( * ) + + 23 FROM tab2 AS cor0
----
26

query I rowsort
SELECT + 66 * - col2 + col2 * + col0 AS col2 FROM tab2 AS cor0
----
-460
-80
522

query I rowsort
SELECT - ( - - col0 ) * - col2 FROM tab2 AS cor0
----
1058
2560
4350

query II rowsort
SELECT DISTINCT + 85 AS col2, col0 FROM tab0
----
85
15
85
87
85
97

query I rowsort
SELECT + - col1 AS col1 FROM tab2 AS cor0 WHERE + 59 / ( - ( - col1 ) ) NOT BETWEEN - ( + + col0 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9859
SELECT DISTINCT CAST( COUNT( - col1 ) AS SIGNED ) + + MAX( ALL CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9859
SELECT DISTINCT CAST ( COUNT ( - col1 ) AS INTEGER ) + + MAX ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col0 + - ( + col1 ) col0 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT - + col2 + + - col2 + - col0 AS col2 FROM tab1 AS cor0
----
-203
-227
-243

query I rowsort
SELECT ALL 17 - - col2 FROM tab1 cor0
----
113
76
85

query I rowsort
SELECT ALL col0 - - col0 + - col0 AS col0 FROM tab1 AS cor0
----
51
85
91

query II rowsort
SELECT col2, - 50 FROM tab2 cor0
----
23
-50
40
-50
58
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-9865
SELECT - COUNT( DISTINCT 95 ) * COUNT( * ) - 24 FROM tab0 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-9865
SELECT - COUNT ( DISTINCT 95 ) * COUNT ( * ) - 24 FROM tab0 AS cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT ALL COUNT( * ) - + + 31 + - 12 * 10 FROM tab2
----
-148

skipif mysql # not compatible
query I rowsort label-9866
SELECT ALL COUNT ( * ) - + + 31 + - 12 * 10 FROM tab2
----
-148

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE + 24 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 90 ) + + 13 col1 FROM tab2
----
103
103
103

query I rowsort
SELECT + + col0 * + - col0 AS col2 FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9870
SELECT ALL * FROM tab1 cor0 WHERE + col0 * - - 80 + - CAST( - 99 AS SIGNED ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9870
SELECT ALL * FROM tab1 cor0 WHERE + col0 * - - 80 + - CAST ( - 99 AS INTEGER ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9871
SELECT ALL MIN( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9871
SELECT ALL MIN ( DISTINCT col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + col1 / - + col2 * - - col1 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 NOT BETWEEN ( - col0 ) AND NULL
----

query I rowsort
SELECT ALL + + ( - 26 ) FROM tab1 AS cor0
----
-26
-26
-26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9874
SELECT DISTINCT + - SUM( col1 ) * - CAST( - MAX( - 7 ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
1365

skipif mysql # not compatible
query I rowsort label-9874
SELECT DISTINCT + - SUM ( col1 ) * - CAST ( - MAX ( - 7 ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
1365

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT ALL - SUM( + + col1 ) * - 95 FROM tab1 AS cor0
----
6270

skipif mysql # not compatible
query I rowsort label-9875
SELECT ALL - SUM ( + + col1 ) * - 95 FROM tab1 AS cor0
----
6270

onlyif mysql # aggregate syntax: 
query I rowsort label-9876
SELECT DISTINCT ( SUM( - 49 ) ) col1 FROM tab1
----
-147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9876
SELECT DISTINCT ( SUM ( - 49 ) ) col1 FROM tab1
----
-147

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9877
SELECT 80 + + - CAST( + COUNT( * ) AS SIGNED ) + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9877
SELECT 80 + + - CAST ( + COUNT ( * ) AS INTEGER ) + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + col2 * + 18 AS col2 FROM tab2 AS cor0
----
1044
414
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9879
SELECT ALL + 41 * - - col1 + + CAST( + col1 AS SIGNED ) + + col1 * + col2 FROM tab1 AS cor0
----
1932
505
5170

skipif mysql # not compatible
query I rowsort label-9879
SELECT ALL + 41 * - - col1 + + CAST ( + col1 AS INTEGER ) + + col1 * + col2 FROM tab1 AS cor0
----
1932
505
5170

onlyif mysql # DIV for integer division: 
query II rowsort label-9880
SELECT + + ( - + 49 ) * + col1 AS col2, - 95 DIV - col1 + + 55 * + col2 FROM tab1 AS cor0
----
-2303
3742
-245
3264
-686
5286

skipif mysql # not compatible
query II rowsort label-9880
SELECT + + ( - + 49 ) * + col1 AS col2, - 95 / - col1 + + 55 * + col2 FROM tab1 AS cor0
----
-2303
3742
-245
3264
-686
5286

query II rowsort
SELECT - col1 AS col0, + col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

query I rowsort
SELECT - 2 * + - col1 * - - col0 AS col0 FROM tab1 cor0
----
1428
850
8554

query I rowsort
SELECT ALL col2 FROM tab1 AS cor0 WHERE NOT + ( + ( + + col1 ) ) = NULL
----

query I rowsort
SELECT - 40 * col1 + - col0 FROM tab2 AS cor0
----
-2086
-2755
-3144

onlyif mysql # aggregate syntax: 
query I rowsort label-9885
SELECT + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - + 8 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9885
SELECT + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT col2 / - + 8 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9886
SELECT COUNT( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9886
SELECT COUNT ( ALL + + col2 ) AS col2 FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9887
SELECT ALL + COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE - 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9887
SELECT ALL + COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE - 3 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9888
SELECT DISTINCT - + 23 * + 94 * - col1 + 33 AS col2, col1 / + CAST( NULL AS SIGNED ) col1 FROM tab0 AS cor0
----
175155
NULL
2195
NULL
45435
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9888
SELECT DISTINCT - + 23 * + 94 * - col1 + 33 AS col2, col1 / + CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
175155
NULL
2195
NULL
45435
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9889
SELECT DISTINCT + + COUNT( - col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9889
SELECT DISTINCT + + COUNT ( - col0 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT + 80 AS col2 FROM tab2 WHERE NOT - 10 * - 46 IS NULL
----
80
80
80

query I rowsort
SELECT - - ( + col0 ) FROM tab2 WHERE NOT + col2 <= NULL
----

query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab1 WHERE NULL IS NULL
----
-45
23
26

query I rowsort
SELECT ALL - + col0 * col1 FROM tab2 WHERE + 44 / + + 10 + + 76 <> NULL
----

query I rowsort
SELECT ALL + col1 + + col1 + - 16 + - ( + col1 ) + col0 * + col1 * + col2 AS col1 FROM tab1
----
25064
290867
68542

onlyif mysql # aggregate syntax: 
query I rowsort label-9895
SELECT + COUNT( * ) FROM tab0 WHERE NULL <> 31 + + col1 + col1
----
0

skipif mysql # not compatible
query I rowsort label-9895
SELECT + COUNT ( * ) FROM tab0 WHERE NULL <> 31 + + col1 + col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 > + col1 * - + ( - col2 ) + - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9897
SELECT ALL col0 + 85 DIV col0 AS col1 FROM tab0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-9897
SELECT ALL col0 + 85 / col0 AS col1 FROM tab0
----
20
87
97

query I rowsort
SELECT ALL col0 * 91 FROM tab0 AS cor0
----
1365
7917
8827

onlyif mysql # DIV for integer division: 
query I rowsort label-9899
SELECT DISTINCT + - 19 DIV - 46 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9899
SELECT DISTINCT + - 19 / - 46 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 80 * - 34 FROM tab2
----
-2720
-2720
-2720

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9901
SELECT - CAST( NULL AS DECIMAL ) / - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9901
SELECT - CAST ( NULL AS REAL ) / - col0 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 84 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
84

query I rowsort
SELECT ALL + - col0 + + col2 * - 17 AS col2 FROM tab1 cor0 WHERE NULL BETWEEN - col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 / - + col1 >= + - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 19 * 95 * + - col0 + col1 FROM tab1 AS cor0
----
-153420
-164208
-92041

onlyif mysql # aggregate syntax: 
query I rowsort label-9906
SELECT + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9906
SELECT + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9907
SELECT - + col1 - + - 39 * - col0 * - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9907
SELECT - + col1 - + - 39 * - col0 * - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( - col2 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 50 <> + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9910
SELECT - 22 + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9910
SELECT - 22 + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( - + ( col0 ) ) AS col2 FROM tab1
----
-51
-85
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 49 + - - col1 + + col1 col1 FROM tab0
----
-47
-7
113

query I rowsort
SELECT col2 * + col0 * - - col2 AS col0 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT DISTINCT - ( - - 79 ) FROM tab2 AS cor0
----
-79

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IS NULL AND NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT - + SUM( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN + col1 AND + - col1
----
-185

skipif mysql # not compatible
query I rowsort label-9917
SELECT - + SUM ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN + col1 AND + - col1
----
-185

query I rowsort
SELECT + col1 + - 78 FROM tab1 AS cor0 WHERE NOT - 40 - - 13 IS NOT NULL
----

query II rowsort
SELECT - + col1 * - col1 + - + 71, - col1 AS col2 FROM tab1 AS cor0
----
-46
-5
125
-14
2138
-47

query I rowsort
SELECT ALL + ( + + col1 ) AS col1 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9921
SELECT COUNT( * ) + - - 42 DIV + MAX( - + col2 ) FROM tab2
----
2

skipif mysql # not compatible
query I rowsort label-9921
SELECT COUNT ( * ) + - - 42 / + MAX ( - + col2 ) FROM tab2
----
2

query I rowsort
SELECT - col0 + + ( - 26 ) AS col2 FROM tab1
----
-111
-117
-77

query I rowsort
SELECT + 75 + + 81 * + + col2 FROM tab2
----
1938
3315
4773

query II rowsort
SELECT DISTINCT - col1 AS col1, 12 * - col0 FROM tab0 WHERE NULL NOT IN ( - col0, + 76 * col2, + col0 + col0, + col0 * 5 - + ( + + col0 ), - col0 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9925
SELECT 82, col0 DIV + 31 AS col1 FROM tab2
----
82
1
82
2
82
2

skipif mysql # not compatible
query II rowsort label-9925
SELECT 82, col0 / + 31 AS col1 FROM tab2
----
82
1
82
2
82
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT + COUNT( * ) AS col0 FROM tab0 WHERE ( - 37 - - + col0 ) BETWEEN NULL AND col1
----
0

skipif mysql # not compatible
query I rowsort label-9926
SELECT + COUNT ( * ) AS col0 FROM tab0 WHERE ( - 37 - - + col0 ) BETWEEN NULL AND col1
----
0

query I rowsort
SELECT DISTINCT + 70 + + - col0 + ( 82 ) AS col2 FROM tab1 AS cor0
----
101
61
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 59 col0 FROM tab0 cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9929
SELECT + - MIN( DISTINCT + col1 ) * 19 col1 FROM tab2 AS cor0
----
-969

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9929
SELECT + - MIN ( DISTINCT + col1 ) * 19 col1 FROM tab2 AS cor0
----
-969

query I rowsort
SELECT ALL + - 45 + - col1 AS col2 FROM tab0 AS cor0
----
-126
-46
-66

query I rowsort
SELECT ALL - - col1 * - 35 FROM tab0 AS cor0
----
-2835
-35
-735

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9932
SELECT + 93 - - CAST( - col2 AS SIGNED ) FROM tab0
----
-6
46
83

skipif mysql # not compatible
query I rowsort label-9932
SELECT + 93 - - CAST ( - col2 AS INTEGER ) FROM tab0
----
-6
46
83

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 29 / col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 41 col2 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

onlyif mysql # aggregate syntax: 
query I rowsort label-9935
SELECT DISTINCT - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9935
SELECT DISTINCT - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-9

query I rowsort
SELECT + ( + - col0 ) + + col2 AS col0 FROM tab1 AS cor0
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT + - MAX( + col1 ) FROM tab2 cor0
----
-77

skipif mysql # not compatible
query I rowsort label-9937
SELECT + - MAX ( + col1 ) FROM tab2 cor0
----
-77

query I rowsort
SELECT ALL - col1 - + 80 FROM tab1 AS cor0
----
-127
-85
-94

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9939
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE + ( ( + col0 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) FROM tab0 WHERE + ( ( + col0 ) ) IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 NOT BETWEEN + 27 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9941
SELECT 4 * + + COUNT( * ) DIV + COUNT( * ) AS col1 FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-9941
SELECT 4 * + + COUNT ( * ) / + COUNT ( * ) AS col1 FROM tab0
----
4

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 NOT IN ( + 31, 17, + 69, + col1 / - - col0, - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-9943
SELECT ALL + col2 DIV - + col2 AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9943
SELECT ALL + col2 / - + col2 AS col1 FROM tab1
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 * col0 * col0 + + + 92 + - - col2 * - col1 * - col1 <= + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9945
SELECT * FROM tab0 WHERE NOT col2 + + CAST( NULL AS SIGNED ) <> - col1
----

skipif mysql # not compatible
query III rowsort label-9945
SELECT * FROM tab0 WHERE NOT col2 + + CAST ( NULL AS INTEGER ) <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9946
SELECT + MAX( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-9946
SELECT + MAX ( ALL - + col0 ) AS col0 FROM tab2 AS cor0
----
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-9947
SELECT ALL + + col0 DIV col0 + col0 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + + col0 / col0 + col0 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT - + col2 * 97 + - col1 FROM tab0 AS cor0
----
-4640
-9604
-991

onlyif mysql # aggregate syntax: 
query II rowsort label-9949
SELECT ( - SUM( col0 ) ), 13 col0 FROM tab1
----
-227
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9949
SELECT ( - SUM ( col0 ) ), 13 col0 FROM tab1
----
-227
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9950
SELECT + COUNT( * ) + - - MAX( ALL - col1 ) FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-9950
SELECT + COUNT ( * ) + - - MAX ( ALL - col1 ) FROM tab2
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9951
SELECT col0 + 76, CAST( NULL AS SIGNED ) / - - col1 AS col0 FROM tab2
----
122
NULL
140
NULL
151
NULL

skipif mysql # not compatible
query II rowsort label-9951
SELECT col0 + 76, CAST ( NULL AS INTEGER ) / - - col1 AS col0 FROM tab2
----
122
NULL
140
NULL
151
NULL

query I rowsort
SELECT - 14 + - col1 AS col0 FROM tab0 WHERE + col1 IS NOT NULL
----
-15
-35
-95

onlyif mysql # DIV for integer division: 
query I rowsort label-9953
SELECT 34 + + - 22 + + - 6 DIV - 10 FROM tab2
----
12
12
12

skipif mysql # not compatible
query I rowsort label-9953
SELECT 34 + + - 22 + + - 6 / - 10 FROM tab2
----
12
12
12

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 8 = col1
----

query I rowsort
SELECT + + col2 + - - 85 AS col1 FROM tab0 AS cor0
----
132
184
95

query I rowsort
SELECT + 8 * - col2 - col0 FROM tab2
----
-230
-384
-539

onlyif mysql # DIV for integer division: 
query I rowsort label-9957
SELECT ALL - 96 DIV - - ( - + 52 ) + - col1 DIV + col0 FROM tab0 AS cor0
----
-4
1
1

skipif mysql # not compatible
query I rowsort label-9957
SELECT ALL - 96 / - - ( - + 52 ) + - col1 / + col0 FROM tab0 AS cor0
----
-4
1
1

query I rowsort
SELECT ALL + + col1 * + col0 * 96 AS col1 FROM tab0 AS cor0 WHERE NOT - col0 < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 BETWEEN - 7 AND NULL
----

query I rowsort
SELECT ALL + 11 * col2 FROM tab1 AS cor0
----
1056
649
748

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9962
SELECT ALL + + COUNT( * ) DIV - SUM( ALL + + col0 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9962
SELECT ALL + + COUNT ( * ) / - SUM ( ALL + + col0 ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9963
SELECT - - 61 * + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9963
SELECT - - 61 * + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9964
SELECT + 75 * CAST( col0 AS SIGNED ) FROM tab2
----
3450
4800
5625

skipif mysql # not compatible
query I rowsort label-9964
SELECT + 75 * CAST ( col0 AS INTEGER ) FROM tab2
----
3450
4800
5625

query I rowsort
SELECT - 42 * - 30 FROM tab2
----
1260
1260
1260

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9966
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - - col0 * + + CAST( NULL AS SIGNED ) - + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-9966
SELECT ALL - col1 AS col2 FROM tab0 WHERE NOT - - col0 * + + CAST ( NULL AS INTEGER ) - + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9967
SELECT DISTINCT COUNT( * ) FROM tab0 AS cor0 WHERE NULL IN ( col0, - col0, 21 + + col1 / + col0 * + CAST( NULL AS DECIMAL ), - col1 + - 68 )
----
0

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IN ( col0, - col0, 21 + + col1 / + col0 * + CAST ( NULL AS REAL ), - col1 + - 68 )
----
0

query I rowsort
SELECT ALL - + ( 44 ) FROM tab1 cor0
----
-44
-44
-44

query I rowsort
SELECT ALL + - 87 * - + 96 * col1 + - + col1 FROM tab0 AS cor0
----
175371
676431
8351

onlyif mysql # aggregate syntax: 
query I rowsort label-9970
SELECT ALL - - ( + ( - + COUNT( * ) ) ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9970
SELECT ALL - - ( + ( - + COUNT ( * ) ) ) FROM tab2 cor0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-9971
SELECT DISTINCT + col2 + + - 30 DIV - + col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9971
SELECT DISTINCT + col2 + + - 30 / - + col0 FROM tab2 cor0
----
23
40
58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN ( + col0 ) AND + col1 + - 27 + + col2
----

query I rowsort
SELECT - + col0 + - col0 * + + col0 AS col1 FROM tab0 AS cor0
----
-240
-7656
-9506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT DISTINCT - CAST( - col2 AS SIGNED ) col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9974
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT col2 / col1 < NULL
----

query I rowsort
SELECT + + col0 + col0 * ( col0 ) - + 94 FROM tab2 AS cor0
----
2068
4066
5606

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND ( + col0 - + 39 * - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9978
SELECT ALL + CAST( - - col1 AS SIGNED ) + - - col1 FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-9978
SELECT ALL + CAST ( - - col1 AS INTEGER ) + - - col1 FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9979
SELECT + 43 col2, COUNT( * ) AS col0 FROM tab0 AS cor0
----
43
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9979
SELECT + 43 col2, COUNT ( * ) AS col0 FROM tab0 AS cor0
----
43
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9980
SELECT - 85 - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-9980
SELECT - 85 - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-82

query I rowsort
SELECT DISTINCT + - col1 - col0 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT + 95 - - col0 + + - 93 AS col1 FROM tab1 AS cor0
----
53
87
93

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT - col0 + - + col0 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9984
SELECT CAST( NULL AS SIGNED ) * + - 80 + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9984
SELECT CAST ( NULL AS INTEGER ) * + - 80 + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - 2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 * + + 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + col1 * + 51 FROM tab0 AS cor0
----
-1071
-4131
-51

query II rowsort
SELECT DISTINCT - 62 * - col0, + col2 FROM tab0 AS cor0
----
5394
10
6014
99
930
47

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9989
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col2 >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9989
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * col2 >= CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT ALL - + 53 * + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-9990
SELECT ALL - + 53 * + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-159

query I rowsort
SELECT DISTINCT - col1 * - 52 FROM tab1 cor0
----
2444
260
728

onlyif mysql # aggregate syntax: 
query I rowsort label-9992
SELECT DISTINCT SUM( ALL - + 92 ) AS col0 FROM tab0, tab0 AS cor0
----
-828

skipif mysql # not compatible
query I rowsort label-9992
SELECT DISTINCT SUM ( ALL - + 92 ) AS col0 FROM tab0, tab0 AS cor0
----
-828

query I rowsort
SELECT + ( - col1 ) AS col2 FROM tab1 WHERE NOT + 41 / col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9994
SELECT DISTINCT - 84 DIV - + col0 FROM tab0
----
0
5

skipif mysql # not compatible
query I rowsort label-9994
SELECT DISTINCT - 84 / - + col0 FROM tab0
----
0
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9995
SELECT + SUM( DISTINCT 67 ) FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-9995
SELECT + SUM ( DISTINCT 67 ) FROM tab0
----
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col1 col2 FROM tab0
----
-210
-3807
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT ALL col0 * 96 * - col0 DIV - col0 AS col2 FROM tab0
----
1440
8352
9312

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL col0 * 96 * - col0 / - col0 AS col2 FROM tab0
----
1440
8352
9312

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9998
SELECT - + 72 * CAST( - COUNT( * ) AS SIGNED ) - ( + 69 ) FROM tab2 cor0
----
147

skipif mysql # not compatible
query I rowsort label-9998
SELECT - + 72 * CAST ( - COUNT ( * ) AS INTEGER ) - ( + 69 ) FROM tab2 cor0
----
147

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, 14 col2 FROM tab1 AS cor0
----
14
14
47
14
5
14

