sqllogictest
Artifact Content
Not logged in

Artifact b5644351165f60d0858c49740f9bc6836af41f6f:


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