hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-0
SELECT ALL - SUM( - col0 ) col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) <> CAST( NULL AS SIGNED ) * CAST( - 66 AS SIGNED )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-0
SELECT ALL - SUM ( - col0 ) col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> CAST ( NULL AS INTEGER ) * CAST ( - 66 AS INTEGER )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1
SELECT - - COUNT( DISTINCT - + col2 ) * - 30 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-1
SELECT - - COUNT ( DISTINCT - + col2 ) * - 30 FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-90

query I rowsort
SELECT DISTINCT + col1 FROM tab1 WHERE + 56 + - col0 > 52
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3
SELECT 1 * col1 FROM tab2 WHERE 5 / - 94 + + 86 * + col2 NOT BETWEEN CAST( col1 AS SIGNED ) * - col1 - + CAST( NULL AS SIGNED ) AND + col0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3
SELECT 1 * col1 FROM tab2 WHERE 5 / - 94 + + 86 * + col2 NOT BETWEEN CAST ( col1 AS INTEGER ) * - col1 - + CAST ( NULL AS INTEGER ) AND + col0
----
51
67
77

query I rowsort
SELECT DISTINCT - 65 + ( - 52 ) FROM tab0
----
-117

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 < col2 * col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT - 90 FROM tab1 WHERE NOT - col0 * + ( - col2 ) + - ( + 32 + + 95 ) * col1 <> - 1
----

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

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

query I rowsort
SELECT - col0 + - col1 * col0 AS col2 FROM tab0
----
-1230
-1914
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-11
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE col1 / + col0 + col2 NOT IN ( + 3 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-11
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE col1 / + col0 + col2 NOT IN ( + 3 )
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + + 13 FROM tab0 WHERE NOT NULL = col1 + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 40 col1 FROM tab0
----
3240
40
840

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT - 3 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-16
SELECT ALL COUNT( * ) - - 9 * COUNT( * ) col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-16
SELECT ALL COUNT ( * ) - - 9 * COUNT ( * ) col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----
0

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

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

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

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

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

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

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

query I rowsort
SELECT ALL 23 * + 79 AS col0 FROM tab2
----
1817
1817
1817

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-23
SELECT CAST( NULL AS SIGNED ) AS col1 FROM tab1 WHERE NOT ( - col0 + 67 / + 58 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-23
SELECT CAST ( NULL AS INTEGER ) AS col1 FROM tab1 WHERE NOT ( - col0 + 67 / + 58 ) IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL COUNT( * ) + SUM( DISTINCT 93 ) FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL COUNT ( * ) + SUM ( DISTINCT 93 ) FROM tab0
----
96

query I rowsort
SELECT - 3 * 13 AS col2 FROM tab2
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-26
SELECT DISTINCT 68 - MIN( DISTINCT + ( col0 ) ) * 1 FROM tab2 WHERE NULL IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-26
SELECT DISTINCT 68 - MIN ( DISTINCT + ( col0 ) ) * 1 FROM tab2 WHERE NULL IS NULL
----
22

query I rowsort
SELECT ALL col1 - - 85 * - col0 FROM tab1
----
-4321
-7220
-7688

query I rowsort
SELECT - ( + 87 ) * col1 FROM tab2
----
-4437
-5829
-6699

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-30
SELECT col1 * CAST( 50 AS SIGNED ) AS col1 FROM tab1
----
2350
250
700

skipif mysql # not compatible
query I rowsort label-30
SELECT col1 * CAST ( 50 AS INTEGER ) AS col1 FROM tab1
----
2350
250
700

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 97 + 58 IS NULL
----

query I rowsort
SELECT + col0 + col0 * col2 AS col2 FROM tab2 AS cor0
----
1104
2624
4425

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 - 31 = 42
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-34
SELECT * FROM tab1 AS cor0 WHERE - 35 + col2 / CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-34
SELECT * FROM tab1 AS cor0 WHERE - 35 + col2 / CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT DISTINCT COUNT( * ) - - MAX( col2 ) FROM tab2 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-36
SELECT DISTINCT COUNT ( * ) - - MAX ( col2 ) FROM tab2 AS cor0
----
61

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

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 91 ) <= ( NULL )
----

query I rowsort
SELECT - 30 - + col2 FROM tab2
----
-53
-70
-88

query I rowsort
SELECT + 86 + 16 * + col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
1014
454
726

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

query I rowsort
SELECT DISTINCT 87 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
110
127
145

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + + COUNT( * ) * + 8 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-45
SELECT + + COUNT ( * ) * + 8 FROM tab2 AS cor0
----
24

onlyif mysql # DIV for integer division: 
query I rowsort label-46
SELECT + 90 DIV + 6 AS col0 FROM tab1 cor0
----
15
15
15

skipif mysql # not compatible
query I rowsort label-46
SELECT + 90 / + 6 AS col0 FROM tab1 cor0
----
15
15
15

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

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

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 * + col2 * - col0 col2 FROM tab2
----
-152250
-37030
-89600

query I rowsort
SELECT - col0 FROM tab1 WHERE NOT col0 + 52 < + 78
----
-51
-85
-91

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 72 ) IS NOT NULL
----

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

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-60
SELECT ALL MIN ( - ( 18 ) ) FROM tab1 AS cor0
----
-18

query I rowsort
SELECT ALL 15 * - - col1 AS col0 FROM tab2 AS cor0
----
1005
1155
765

query I rowsort
SELECT DISTINCT - col1 + - 60 * + - col0 AS col2 FROM tab0
----
5199
5819
819

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT - MAX( + - 79 ) + + MAX( 70 ) AS col1 FROM tab0 cor0
----
149

skipif mysql # not compatible
query I rowsort label-64
SELECT - MAX ( + - 79 ) + + MAX ( 70 ) AS col1 FROM tab0 cor0
----
149

query I rowsort
SELECT ALL col2 + + col0 + col0 FROM tab1 AS cor0
----
198
229
250

query I rowsort
SELECT - ( - 68 ) + - col0 + + col2 FROM tab2 AS cor0
----
44
45
51

onlyif mysql # DIV for integer division: 
query I rowsort label-67
SELECT - col1 + + + col1 DIV col1 * + col2 FROM tab0 cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-67
SELECT - col1 + + + col1 / col1 * + col2 FROM tab0 cor0
----
-11
-34
98

query I rowsort
SELECT + 94 * - col2 + col0 * ( - col2 ) FROM tab2 AS cor0
----
-3220
-6320
-9802

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 / 66 IS NULL
----

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

query I rowsort
SELECT + - col0 * + + col2 * - + 40 * col1 - 76 * 71 FROM tab2 AS cor0
----
11652604
2152924
7879404

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-72
SELECT ALL 95 * - + CAST ( NULL AS INTEGER ) * - col1 - + col0 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-73
SELECT - SUM( DISTINCT - col1 ) AS col2 FROM tab2 WHERE ( - - col1 / + ( col1 ) ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-73
SELECT - SUM ( DISTINCT - col1 ) AS col2 FROM tab2 WHERE ( - - col1 / + ( col1 ) ) IS NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col2 >= - - col1 / + col0
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-76
SELECT - 99 - + COUNT( * ) FROM tab2 WHERE - 56 <= NULL
----
-99

skipif mysql # not compatible
query I rowsort label-76
SELECT - 99 - + COUNT ( * ) FROM tab2 WHERE - 56 <= NULL
----
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 - 50 IS NOT NULL AND NOT + col2 NOT IN ( - col2 * + 91 )
----

query II rowsort
SELECT col2 - - col0, 29 AS col0 FROM tab2
----
104
29
133
29
69
29

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

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

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

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

query I rowsort
SELECT ALL + - 91 + + col0 AS col2 FROM tab1 AS cor0
----
-40
-6
0

query I rowsort
SELECT 91 + + col1 AS col0 FROM tab0 AS cor0
----
112
172
92

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col2 NOT BETWEEN NULL AND + col2
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE ( - - col0 ) BETWEEN col2 AND ( col1 * + col0 - - 79 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL + col2 * - + 17 AS col0 FROM tab1 AS cor0
----
-1003
-1156
-1632

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

query I rowsort
SELECT DISTINCT + 47 * + col2 FROM tab1 AS cor0
----
2773
3196
4512

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-91
SELECT + + SUM ( ALL + col1 ) col1 FROM tab1 AS cor0
----
66

query II rowsort
SELECT col1, col0 + - 29 * col0 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
51
-1288
67
-2100
77
-1792

query I rowsort
SELECT ALL - col0 + 12 FROM tab1 AS cor0 WHERE NOT ( - col2 + + col1 - - col2 / - col1 ) NOT BETWEEN col0 / col1 AND col0
----

query I rowsort
SELECT ALL - ( + 82 ) FROM tab2
----
-82
-82
-82

query II rowsort
SELECT 26 AS col1, - col1 * - col1 AS col0 FROM tab0
----
26
1
26
441
26
6561

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

query I rowsort
SELECT ALL 13 + - - 55 * + col0 FROM tab0
----
4798
5348
838

onlyif mysql # aggregate syntax: 
query I rowsort label-98
SELECT DISTINCT COUNT( * ) AS col0 FROM tab0 WHERE NULL IN ( - 48, - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-98
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab0 WHERE NULL IN ( - 48, - col1 )
----
0

query I rowsort
SELECT DISTINCT 31 + - + 14 AS col0 FROM tab0
----
17

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

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

query I rowsort
SELECT DISTINCT - ( - - col0 ) + + + 54 AS col2 FROM tab0
----
-33
-43
39

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

skipif mysql # not compatible
query I rowsort label-102
SELECT DISTINCT ( + - ( - COUNT ( * ) ) ) FROM tab1
----
3

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 - - 9 + col1 <= - col2
----

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

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

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

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

query I rowsort
SELECT DISTINCT - 28 * + col2 AS col1 FROM tab0
----
-1316
-2772
-280

query I rowsort
SELECT + 6 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-109
SELECT + 46 * + COUNT( * ) FROM tab2 WHERE - col1 * + col0 + - + col2 BETWEEN CAST( NULL AS SIGNED ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-109
SELECT + 46 * + COUNT ( * ) FROM tab2 WHERE - col1 * + col0 + - + col2 BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----
0

query I rowsort
SELECT ALL 1 - - ( + ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
24
41
59

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

query I rowsort
SELECT + 20 * + - 38 + col2 - + col0 FROM tab0 AS cor0
----
-728
-758
-837

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col1 FROM tab1 cor0 WHERE NULL >= ( 17 )
----

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

query I rowsort
SELECT ALL col1 - - + col2 AS col1 FROM tab2
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT DISTINCT + MIN( col1 ) * - 99 AS col1 FROM tab1
----
-495

skipif mysql # not compatible
query I rowsort label-116
SELECT DISTINCT + MIN ( col1 ) * - 99 AS col1 FROM tab1
----
-495

query II rowsort
SELECT col1 * col2 + col2 AS col1, + 1 FROM tab2
----
1196
1
3120
1
3944
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-120
SELECT DISTINCT COUNT( * ) * + 65 AS col2 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-120
SELECT DISTINCT COUNT ( * ) * + 65 AS col2 FROM tab1
----
195

query I rowsort
SELECT DISTINCT 4 + ( - 26 ) AS col2 FROM tab0
----
-22

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

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

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

skipif mysql # not compatible
query I rowsort label-123
SELECT + 83 + + + COUNT ( * ) FROM tab2
----
86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-125
SELECT DISTINCT + CAST( - + col1 AS SIGNED ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-125
SELECT DISTINCT + CAST ( - + col1 AS INTEGER ) col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-14
-47
-5

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 BETWEEN - - col1 AND + col0 * + 14 + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-127
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - col0 * + col2 + - CAST( - col1 AS SIGNED ) NOT BETWEEN ( + col0 ) AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-127
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col1 * - col0 * + col2 + - CAST ( - col1 AS INTEGER ) NOT BETWEEN ( + col0 ) AND ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - 45 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 60b9f935ee8e404d155a2f5e9515c050

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-133
SELECT + ( + CAST( NULL AS SIGNED ) ) + + 59 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-133
SELECT + ( + CAST ( NULL AS INTEGER ) ) + + 59 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT COUNT( - ( - col2 ) ) + + 47 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-134
SELECT COUNT ( - ( - col2 ) ) + + 47 FROM tab0 AS cor0
----
50

query II rowsort
SELECT 5 * 34 + + col2, col2 AS col0 FROM tab1
----
229
59
238
68
266
96

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

skipif mysql # not compatible
query I rowsort label-136
SELECT DISTINCT + COUNT ( * ) * - + SUM ( ALL - ( - col1 ) ) AS col0 FROM tab1
----
-198

onlyif mysql # aggregate syntax: 
query I rowsort label-137
SELECT ALL 55 * + COUNT( * ) FROM tab0
----
165

skipif mysql # not compatible
query I rowsort label-137
SELECT ALL 55 * + COUNT ( * ) FROM tab0
----
165

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

query I rowsort
SELECT ALL + col2 * + - col0 + col1 + - - 51 FROM tab2
----
-2432
-4232
-956

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-140
SELECT ALL - 26 * CAST( NULL AS DECIMAL ) + - ( + col0 ) * col0 + - col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-140
SELECT ALL - 26 * CAST ( NULL AS REAL ) + - ( + col0 ) * col0 + - col1 col1 FROM tab1
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT + 26 * - 66 * - - col2 + + 40 AS col1, - col1 * 85 FROM tab0 AS cor0
----
-169844
-85
-17120
-1785
-80612
-6885

query I rowsort
SELECT ALL col1 - + - 33 + + col0 * + col2 + + - col0 / - col1 / 38 AS col2 FROM tab1 AS cor0 WHERE NULL <= col2 * col0 * - col1
----

query I rowsort
SELECT DISTINCT + col2 + - 66 FROM tab1 AS cor0
----
-7
2
30

query I rowsort
SELECT ALL - 62 AS col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-62
-62
-62

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

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

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

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

query I rowsort
SELECT ALL + col0 * 64 FROM tab2
----
2944
4096
4800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-150
SELECT DISTINCT 1 DIV + COUNT( + + 84 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-150
SELECT DISTINCT 1 / + COUNT ( + + 84 ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-151
SELECT col1 - 75 * col2 FROM tab0 WHERE NOT ( ( col1 * + + 0 < ( - col0 * - + CAST( - + ( col1 ) AS SIGNED ) * - - col2 * + 90 ) ) )
----
-3444
-729
-7424

skipif mysql # not compatible
query I rowsort label-151
SELECT col1 - 75 * col2 FROM tab0 WHERE NOT ( ( col1 * + + 0 < ( - col0 * - + CAST ( - + ( col1 ) AS INTEGER ) * - - col2 * + 90 ) ) )
----
-3444
-729
-7424

onlyif mysql # DIV for integer division: 
query I rowsort label-152
SELECT col1 DIV col1 * - + ( - + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-152
SELECT col1 / col1 * - + ( - + col0 ) AS col1 FROM tab2 AS cor0
----
46
64
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 52 col2 FROM tab2 AS cor0 WHERE NOT col2 <> + col0 * + col0 + + col0 - 16 - + col0 / 72 * + col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-155
SELECT 22 DIV - + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-155
SELECT 22 / - + col2 AS col0 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT + - 89 * + + 18 AS col2 FROM tab2 AS cor0
----
-1602

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 12 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-160
SELECT - COUNT( ALL col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + col1 >= - - col2
----
-3

skipif mysql # not compatible
query I rowsort label-160
SELECT - COUNT ( ALL col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT - col1 + col1 >= - - col2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-161
SELECT DISTINCT - COUNT( ALL - ( - 66 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-161
SELECT DISTINCT - COUNT ( ALL - ( - 66 ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 95 * - - 61 col1 FROM tab0 AS cor0
----
-5795

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-164
SELECT DISTINCT MIN( ALL - - 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-164
SELECT DISTINCT MIN ( ALL - - 82 ) FROM tab2
----
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-165
SELECT MIN( DISTINCT - col0 ) + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-100

skipif mysql # not compatible
query I rowsort label-165
SELECT MIN ( DISTINCT - col0 ) + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-100

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-167
SELECT ALL + + col1 DIV - col0 AS col0, - 59 + - - col1 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-5
103
0
-17
0
-57

skipif mysql # not compatible
query II rowsort label-167
SELECT ALL + + col1 / - col0 AS col0, - 59 + - - col1 + + ( + col1 ) AS col2 FROM tab0 AS cor0
----
-5
103
0
-17
0
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-168
SELECT ALL - SUM( + 48 ) FROM tab2 AS cor0 WHERE NOT - col1 * col1 + + col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-168
SELECT ALL - SUM ( + 48 ) FROM tab2 AS cor0 WHERE NOT - col1 * col1 + + col0 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + ( + col2 ) col2, col2 FROM tab0
----
210
10
3807
47
99
99

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-172
SELECT DISTINCT col0 + + + 75 - col2 * + + CAST( + col2 AS SIGNED ) + - 1 + + col0 AS col2 FROM tab0
----
-2105
-9533
148

skipif mysql # not compatible
query I rowsort label-172
SELECT DISTINCT col0 + + + 75 - col2 * + + CAST ( + col2 AS INTEGER ) + - 1 + + col0 AS col2 FROM tab0
----
-2105
-9533
148

onlyif mysql # DIV for integer division: 
query I rowsort label-173
SELECT col0 * + - ( + col1 ) - 33 * - - col1 DIV - col1 AS col2 FROM tab0
----
-1182
-1794
-64

skipif mysql # not compatible
query I rowsort label-173
SELECT col0 * + - ( + col1 ) - 33 * - - col1 / - col1 AS col2 FROM tab0
----
-1182
-1794
-64

query I rowsort
SELECT DISTINCT + + col1 + - ( + 47 ) FROM tab0 cor0
----
-26
-46
34

query I rowsort
SELECT DISTINCT 55 * 54 + + 89 AS col1 FROM tab1 cor0
----
3059

onlyif mysql # aggregate syntax: 
query I rowsort label-176
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NULL >= - 30
----
0

skipif mysql # not compatible
query I rowsort label-176
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL >= - 30
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 <> + ( - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-179
SELECT ALL - SUM( + 36 ) + + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-179
SELECT ALL - SUM ( + 36 ) + + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-105

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

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

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

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

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

query I rowsort
SELECT 75 FROM tab1 WHERE NOT NULL IS NOT NULL
----
75
75
75

query I rowsort
SELECT - col1 * - - col2 * - col0 * - 46 AS col1 FROM tab1
----
-1153450
-13378456
-3153024

query II rowsort
SELECT DISTINCT 16 AS col2, col1 * + col1 FROM tab1
----
16
196
16
2209
16
25

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

query III rowsort
SELECT * FROM tab2 WHERE NOT 83 <> - col0 + col0
----

query I rowsort
SELECT DISTINCT 47 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE - col0 >= 63 * 96 * + + col1 * - + col2 OR col2 * 62 + col2 * 76 <= + + 19 + + col2 + - col2 * - - col1 / col0 / col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-190
SELECT DISTINCT + 81 + - + COUNT( * ) AS col1, 13 col1 FROM tab1 AS cor0
----
78
13

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-190
SELECT DISTINCT + 81 + - + COUNT ( * ) AS col1, 13 col1 FROM tab1 AS cor0
----
78
13

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 84 < + - 23
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col2 BETWEEN NULL AND - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-193
SELECT - AVG ( - 21 ) + - ( 25 ) + - SUM( + CAST( NULL AS SIGNED ) ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-193
SELECT - AVG ( - 21 ) + - ( 25 ) + - SUM ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-194
SELECT DISTINCT - SUM( DISTINCT - 9 ), MAX( DISTINCT ( - col2 ) ) + MIN( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
9
-91

skipif mysql # not compatible
query II rowsort label-194
SELECT DISTINCT - SUM ( DISTINCT - 9 ), MAX ( DISTINCT ( - col2 ) ) + MIN ( DISTINCT + - col1 ) AS col2 FROM tab0 AS cor0
----
9
-91

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

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

query I rowsort
SELECT 9 * col0 + + + 19 FROM tab0
----
154
802
892

onlyif mysql # DIV for integer division: 
query I rowsort label-197
SELECT - col0 * + col1 DIV + col1 AS col1 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-197
SELECT - col0 * + col1 / + col1 AS col1 FROM tab0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-198
SELECT DISTINCT - COUNT( * ) * - 14 + + SUM( DISTINCT - + col2 ) * + 20 AS col1 FROM tab0
----
-3078

skipif mysql # not compatible
query I rowsort label-198
SELECT DISTINCT - COUNT ( * ) * - 14 + + SUM ( DISTINCT - + col2 ) * + 20 AS col1 FROM tab0
----
-3078

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

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

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

query I rowsort
SELECT ALL - col0 + + col2 FROM tab0 AS cor0 WHERE col1 > - - col1 + - 0 + - ( + col0 ) + + 89
----
2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 67 * - - 66 * 91 = NULL )
----

query II rowsort
SELECT + col0 * 45 * + col1 * 72 + col1, - 80 AS col2 FROM tab0 AS cor0
----
314281
-80
3936681
-80
5919501
-80

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-207
SELECT - MAX( DISTINCT + 40 ) * + CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-207
SELECT - MAX ( DISTINCT + 40 ) * + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT ( MAX( - - col0 ) ) AS col2 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-208
SELECT ( MAX ( - - col0 ) ) AS col2 FROM tab2 AS cor0
----
75

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-210
SELECT * FROM tab1 cor0 WHERE NOT ( + CAST( - 7 AS DECIMAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-210
SELECT * FROM tab1 cor0 WHERE NOT ( + CAST ( - 7 AS REAL ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT DISTINCT + COUNT( * ) * + COUNT( * ) - + 83 AS col0 FROM tab2 WHERE 31 * + 27 + - + col1 + + + 8 * 82 + 36 BETWEEN - col0 AND NULL
----
-83

skipif mysql # not compatible
query I rowsort label-212
SELECT DISTINCT + COUNT ( * ) * + COUNT ( * ) - + 83 AS col0 FROM tab2 WHERE 31 * + 27 + - + col1 + + + 8 * 82 + 36 BETWEEN - col0 AND NULL
----
-83

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

query I rowsort
SELECT DISTINCT 41 * + - col2 FROM tab0
----
-1927
-4059
-410

query I rowsort
SELECT col1 * - + 19 FROM tab2
----
-1273
-1463
-969

query I rowsort
SELECT ( 38 ) AS col2 FROM tab1
----
38
38
38

onlyif mysql # aggregate syntax: 
query I rowsort label-217
SELECT + ( + + 79 ) * - + 94 + COUNT( * ) AS col1 FROM tab0 cor0 WHERE NOT - 58 - + - 97 NOT IN ( - 31, + 62, + - col0 * - col0 * col1 )
----
-7426

skipif mysql # not compatible
query I rowsort label-217
SELECT + ( + + 79 ) * - + 94 + COUNT ( * ) AS col1 FROM tab0 cor0 WHERE NOT - 58 - + - 97 NOT IN ( - 31, + 62, + - col0 * - col0 * col1 )
----
-7426

query I rowsort
SELECT col2 * 76 + + - col1 FROM tab0 AS cor0
----
3491
739
7523

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

skipif mysql # not compatible
query I rowsort label-219
SELECT + COUNT ( * ) / + + 21 + + ( + 25 ) FROM tab1 AS cor0
----
25

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) BETWEEN ( + 42 * + ( + + col1 ) ) AND 41
----

query I rowsort
SELECT + 60 * - col1 AS col1 FROM tab1 AS cor0
----
-2820
-300
-840

query II rowsort
SELECT DISTINCT - + 99 + + 5 + + 99, + 71 AS col2 FROM tab0 AS cor0 WHERE 24 <> NULL
----

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

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

query I rowsort
SELECT ALL + + 89 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-225
SELECT DISTINCT + - SUM( DISTINCT - 46 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
46

skipif mysql # not compatible
query I rowsort label-225
SELECT DISTINCT + - SUM ( DISTINCT - 46 ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
46

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-226
SELECT ALL + MAX( ALL + - col0 ) + SUM( ALL - - 38 ) * COUNT( * ) * 26 DIV + 10 AS col1 FROM tab2 AS cor0
----
843

skipif mysql # not compatible
query I rowsort label-226
SELECT ALL + MAX ( ALL + - col0 ) + SUM ( ALL - - 38 ) * COUNT ( * ) * 26 / + 10 AS col1 FROM tab2 AS cor0
----
843

onlyif mysql # aggregate syntax: 
query II rowsort label-227
SELECT COUNT( * ) AS col2, 48 * - 57 * 66 AS col2 FROM tab1 AS cor0
----
3
-180576

skipif mysql # not compatible
query II rowsort label-227
SELECT COUNT ( * ) AS col2, 48 * - 57 * 66 AS col2 FROM tab1 AS cor0
----
3
-180576

query I rowsort
SELECT ALL - col0 + col2 * + col1 AS col0 FROM tab2 AS cor0
----
1127
3016
3811

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

onlyif mysql # aggregate syntax: 
query I rowsort label-230
SELECT DISTINCT SUM( DISTINCT + ( - - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + col2 NOT BETWEEN + + col2 + - col0 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-230
SELECT DISTINCT SUM ( DISTINCT + ( - - col0 ) ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 + + col2 NOT BETWEEN + + col2 + - col0 AND + col2
----
NULL

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

query I rowsort
SELECT - col2 + col2 * - ( + 3 ) FROM tab2
----
-160
-232
-92

query III rowsort
SELECT * FROM tab0 WHERE ( + 60 ) > col2 + + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT - 2 * + col2, col2 - col1 AS col0 FROM tab0
----
-198
98
-20
-11
-94
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-235
SELECT SUM( - + 89 ) DIV - + COUNT( * ) + COUNT( * ) col2 FROM tab2
----
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-235
SELECT SUM ( - + 89 ) / - + COUNT ( * ) + COUNT ( * ) col2 FROM tab2
----
92

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

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

query I rowsort
SELECT DISTINCT col1 + + 75 * + - col1 + - col1 FROM tab2
----
-3825
-5025
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-238
SELECT ALL - + ( SUM( DISTINCT + 96 ) ) - + + COUNT( * ) + 67 AS col1 FROM tab1 cor0
----
-32

skipif mysql # not compatible
query I rowsort label-238
SELECT ALL - + ( SUM ( DISTINCT + 96 ) ) - + + COUNT ( * ) + 67 AS col1 FROM tab1 cor0
----
-32

query I rowsort
SELECT col0 - + 28 FROM tab2
----
18
36
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-240
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - col1 + + + 29 + + ( + 33 ) * 19 BETWEEN + CAST( - col2 AS SIGNED ) AND + col1
----

skipif mysql # not compatible
query I rowsort label-240
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE - col1 + + + 29 + + ( + 33 ) * 19 BETWEEN + CAST ( - col2 AS INTEGER ) AND + col1
----

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

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

query II rowsort
SELECT + col0 - + 96 + + col1 AS col1, - col0 FROM tab1
----
-31
-51
-6
-85
42
-91

query I rowsort
SELECT + 80 * + 42 FROM tab2
----
3360
3360
3360

onlyif mysql # DIV for integer division: 
query II rowsort label-244
SELECT ALL - col1, - col0 DIV - col0 AS col0 FROM tab2
----
-51
1
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-244
SELECT ALL - col1, - col0 / - col0 AS col0 FROM tab2
----
-51
1
-67
1
-77
1

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-247
SELECT - + MIN ( + - col2 ) col2 FROM tab2 AS cor0
----
58

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

query II rowsort
SELECT ALL - ( - ( + 56 ) ) AS col1, + col0 FROM tab1 AS cor0
----
56
51
56
85
56
91

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

query I rowsort
SELECT DISTINCT ( ( + - col2 ) ) FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-253
SELECT 41 * - COUNT( * ) AS col1 FROM tab0
----
-123

skipif mysql # not compatible
query I rowsort label-253
SELECT 41 * - COUNT ( * ) AS col1 FROM tab0
----
-123

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT + SUM( ALL + - 25 ) col1 FROM tab1 WHERE NOT NULL < - - ( + col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-254
SELECT + SUM ( ALL + - 25 ) col1 FROM tab1 WHERE NOT NULL < - - ( + col0 )
----
NULL

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT - col1 BETWEEN ( NULL ) AND col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * - 30 BETWEEN - - 56 + col1 + + col2 AND + col0
----

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

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - 7 IS NOT NULL
----

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

query I rowsort
SELECT - 89 FROM tab1 AS cor0 WHERE NOT ( col0 ) IS NOT NULL
----

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

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

query I rowsort
SELECT ALL + - 15 AS col0 FROM tab2 AS cor0
----
-15
-15
-15

query I rowsort
SELECT + + 92 + + - col0 FROM tab1 AS cor0
----
1
41
7

query I rowsort
SELECT ALL + 63 + - + col2 + - + col1 AS col2 FROM tab0 AS cor0
----
-37
-65
32

onlyif mysql # aggregate syntax: 
query I rowsort label-266
SELECT DISTINCT + COUNT( * ) + + 40 FROM tab2 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-266
SELECT DISTINCT + COUNT ( * ) + + 40 FROM tab2 AS cor0
----
43

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

query I rowsort
SELECT ALL - - 28 + - + col0 FROM tab1 AS cor0
----
-23
-57
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-269
SELECT COUNT( * ) + MIN( 90 ) FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-269
SELECT COUNT ( * ) + MIN ( 90 ) FROM tab2 AS cor0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-270
SELECT + + 69 + + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-270
SELECT + + 69 + + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
72

query I rowsort
SELECT + - 54 * col0 + + + 78 + + - col2 FROM tab1 AS cor0
----
-2772
-4571
-4904

query I rowsort
SELECT ALL + ( - col1 ) * + 89 FROM tab0 AS cor0
----
-1869
-7209
-89

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( 58, + col1 )
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 43 * - col0 * - - 54 col1 FROM tab0
----
-202014
-225234
-34830

onlyif mysql # aggregate syntax: 
query I rowsort label-277
SELECT ALL ( - 43 ) + - COUNT( * ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-277
SELECT ALL ( - 43 ) + - COUNT ( * ) FROM tab2
----
-46

query I rowsort
SELECT ALL - col0 + - + col1 AS col1 FROM tab2 AS cor0
----
-141
-142
-97

query I rowsort
SELECT DISTINCT - - col0 + - + 30 FROM tab1 cor0
----
21
55
61

onlyif mysql # DIV for integer division: 
query I rowsort label-280
SELECT DISTINCT + - col0 DIV 97 + + - col0 DIV - col1 AS col2 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-280
SELECT DISTINCT + - col0 / 97 + + - col0 / - col1 AS col2 FROM tab1 AS cor0
----
1
17
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 66 * - - 44 col0 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to d827b3698fc6fe9656d4d167d62c0e44

query I rowsort
SELECT ALL - 79 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

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

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

query I rowsort
SELECT ALL + - 42 AS col2 FROM tab1 AS cor0
----
-42
-42
-42

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT + 21 >= 82
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE + - 52 * - + 64 <> + 35
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col1 - + 87 * col0, 53 + - col0 - 47 FROM tab2 WHERE NOT - + ( + + col2 ) NOT BETWEEN + col0 AND 48
----

onlyif mysql # DIV for integer division: 
query I rowsort label-288
SELECT ALL col0 DIV 93 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-288
SELECT ALL col0 / 93 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col1 * + col1 + 42 AS col1 FROM tab2
----
2643
4531
5971

query I rowsort
SELECT DISTINCT 1 * + 73 * - col2 + - col0 FROM tab1
----
-4392
-5055
-7059

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-293
SELECT DISTINCT + col1 * + col1, 82 DIV + col2 AS col0 FROM tab1
----
196
0
2209
1
25
1

skipif mysql # not compatible
query II rowsort label-293
SELECT DISTINCT + col1 * + col1, 82 / + col2 AS col0 FROM tab1
----
196
0
2209
1
25
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-294
SELECT ALL - 95 + CAST( NULL AS SIGNED ), 84 * - + col2 col1 FROM tab2 AS cor0
----
NULL
-1932
NULL
-3360
NULL
-4872

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-294
SELECT ALL - 95 + CAST ( NULL AS INTEGER ), 84 * - + col2 col1 FROM tab2 AS cor0
----
NULL
-1932
NULL
-3360
NULL
-4872

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-296
SELECT col2 * - col1 - col2 FROM tab0 AS cor0 WHERE col1 BETWEEN + ( - 47 ) AND - CAST( 90 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-296
SELECT col2 * - col1 - col2 FROM tab0 AS cor0 WHERE col1 BETWEEN + ( - 47 ) AND - CAST ( 90 AS INTEGER )
----

query I rowsort
SELECT DISTINCT 10 - + col0 AS col1 FROM tab0 AS cor0
----
-5
-77
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT ALL - MIN( DISTINCT ( - - 45 ) ) + 57 AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-298
SELECT ALL - MIN ( DISTINCT ( - - 45 ) ) + 57 AS col1 FROM tab0 AS cor0
----
12

query II rowsort
SELECT DISTINCT col1 AS col0, - col0 * - col1 FROM tab1
----
14
714
47
4277
5
425

query I rowsort
SELECT 35 + + - 42 FROM tab2
----
-7
-7
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-301
SELECT ALL - 7 * - - COUNT( * ) col2 FROM tab0
----
-21

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-301
SELECT ALL - 7 * - - COUNT ( * ) col2 FROM tab0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + - col2 col2 FROM tab1
----
-45
23
26

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

query I rowsort
SELECT ALL - 15 - 86 AS col1 FROM tab2 AS cor0
----
-101
-101
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-305
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NULL > col0 * + 1
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NULL > col0 * + 1
----
0

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 * - - col1 + 71 * col0 + col0, + col0 col1 FROM tab0 cor0
----
-135
15
4437
87
6887
97

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

onlyif mysql # aggregate syntax: 
query I rowsort label-310
SELECT COUNT( * ) * 93 FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-310
SELECT COUNT ( * ) * 93 FROM tab0
----
279

query I rowsort
SELECT DISTINCT 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
85

query I rowsort
SELECT DISTINCT - + 1 * col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + - col0 * + col0 + + + col1 + col0 * + col2 FROM tab2 AS cor0
----
-1007
-1208
-1459

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-314
SELECT - 51 - COUNT( * ) + - CAST( + MIN( + col1 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-314
SELECT - 51 - COUNT ( * ) + - CAST ( + MIN ( + col1 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL < NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-315
SELECT DISTINCT + 88 * + + 29 + + MAX( ALL - 96 ) FROM tab0 AS cor0
----
2456

skipif mysql # not compatible
query I rowsort label-315
SELECT DISTINCT + 88 * + + 29 + + MAX ( ALL - 96 ) FROM tab0 AS cor0
----
2456

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

onlyif mysql # aggregate syntax: 
query I rowsort label-317
SELECT DISTINCT 44 * MIN( col0 ) col1 FROM tab0
----
660

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-317
SELECT DISTINCT 44 * MIN ( col0 ) col1 FROM tab0
----
660

onlyif mysql # aggregate syntax: 
query I rowsort label-318
SELECT DISTINCT SUM( DISTINCT + + ( 41 ) ) FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-318
SELECT DISTINCT SUM ( DISTINCT + + ( 41 ) ) FROM tab1
----
41

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

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

query I rowsort
SELECT - + 13 * col2 * 81 FROM tab2 AS cor0
----
-24219
-42120
-61074

onlyif mysql # DIV for integer division: 
query I rowsort label-321
SELECT - - col1 * col1 DIV + ( - col2 ) FROM tab1 AS cor0
----
-2
-32
0

skipif mysql # not compatible
query I rowsort label-321
SELECT - - col1 * col1 / + ( - col2 ) FROM tab1 AS cor0
----
-2
-32
0

onlyif mysql # aggregate syntax: 
query I rowsort label-322
SELECT ALL COUNT( * ) + 39 FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-322
SELECT ALL COUNT ( * ) + 39 FROM tab0
----
42

query II rowsort
SELECT DISTINCT + col0, + 6 * 25 AS col1 FROM tab0
----
15
150
87
150
97
150

query I rowsort
SELECT ALL + 87 + - - col0 FROM tab2 AS cor0
----
133
151
162

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

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

query I rowsort
SELECT 77 + - + 64 FROM tab2 AS cor0
----
13
13
13

onlyif mysql # aggregate syntax: 
query I rowsort label-327
SELECT + MIN( + + 4 ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-327
SELECT + MIN ( + + 4 ) FROM tab1 cor0
----
4

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

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

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

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

query II rowsort
SELECT - - col1 AS col2, + col0 FROM tab0 AS cor0
----
1
97
21
87
81
15

query I rowsort
SELECT 11 * ( + - col1 ) AS col1 FROM tab2
----
-561
-737
-847

query I rowsort
SELECT ALL col0 + + 99 + col1 * + - ( + - 15 ) FROM tab2
----
1179
1318
910

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

onlyif mysql # aggregate syntax: 
query I rowsort label-335
SELECT - 35 - COUNT( * ) AS col1 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-335
SELECT - 35 - COUNT ( * ) AS col1 FROM tab2
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-336
SELECT DISTINCT - MIN( ALL ( col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-336
SELECT DISTINCT - MIN ( ALL ( col2 ) ) FROM tab2
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-337
SELECT - COUNT( DISTINCT - 66 ) AS col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-337
SELECT - COUNT ( DISTINCT - 66 ) AS col1 FROM tab0 AS cor0
----
-1

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

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

query I rowsort
SELECT - col0 + - - col0 * + + col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT ( + 41 <= NULL ) ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-341
SELECT ALL 62 * - + col1 DIV col1 FROM tab2 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-341
SELECT ALL 62 * - + col1 / col1 FROM tab2 AS cor0
----
-62
-62
-62

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-343
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
46
64
75

skipif mysql # not compatible
query I rowsort label-343
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-344
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE 52 + - - CAST( - col1 AS SIGNED ) NOT IN ( - + col2 )
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-344
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE 52 + - - CAST ( - col1 AS INTEGER ) NOT IN ( - + col2 )
----
-15
-87
-97

query I rowsort
SELECT DISTINCT + col1 * 36 - - 49 FROM tab1 cor0
----
1741
229
553

query I rowsort
SELECT - col0 + + col1 AS col2 FROM tab1 WHERE NOT - col0 - + 23 = ( col0 )
----
-37
-44
-80

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

onlyif mysql # DIV for integer division: 
query I rowsort label-348
SELECT DISTINCT - 64 DIV + col0 + + - ( - col0 ) + - col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-348
SELECT DISTINCT - 64 / + col0 + + - ( - col0 ) + - col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT - 3 * - ( ( + + col0 ) ) AS col2 FROM tab2 AS cor0
----
138
192
225

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT - COUNT( * ) * + 63 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-189

skipif mysql # not compatible
query I rowsort label-350
SELECT - COUNT ( * ) * + 63 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-351
SELECT ALL + + CAST( - + 3 AS SIGNED ) * col1 FROM tab0 cor0
----
-243
-3
-63

skipif mysql # not compatible
query I rowsort label-351
SELECT ALL + + CAST ( - + 3 AS INTEGER ) * col1 FROM tab0 cor0
----
-243
-3
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT - MIN( 91 ) AS col0 FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-352
SELECT - MIN ( 91 ) AS col0 FROM tab2
----
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-353
SELECT + 35, - SUM( - col0 ) AS col0 FROM tab1
----
35
227

skipif mysql # not compatible
query II rowsort label-353
SELECT + 35, - SUM ( - col0 ) AS col0 FROM tab1
----
35
227

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

onlyif mysql # DIV for integer division: 
query II rowsort label-355
SELECT - 7 DIV col0 AS col1, - col0 AS col1 FROM tab2
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-355
SELECT - 7 / col0 AS col1, - col0 AS col1 FROM tab2
----
0
-46
0
-64
0
-75

query I rowsort
SELECT + + col1 FROM tab2 WHERE NOT col1 >= + col1
----

query I rowsort
SELECT DISTINCT - 98 + - col1 * col2 FROM tab2
----
-1271
-3178
-3984

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

query III rowsort
SELECT ALL * FROM tab2 WHERE - - 79 BETWEEN NULL AND - 55
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-360
SELECT 51 + - 15 + - 9 + - + 97 * CAST( NULL AS SIGNED ) + + - 90 * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-360
SELECT 51 + - 15 + - 9 + - + 97 * CAST ( NULL AS INTEGER ) + + - 90 * + - col1 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 53 + - 63 FROM tab0
----
-10
-10
-10

query I rowsort
SELECT - col2 + - 80 FROM tab2 AS cor0
----
-103
-120
-138

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

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

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

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

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

query I rowsort
SELECT - 3 + + 12 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT 82 - col2 * + 28 * 88 + + - col2 FROM tab1 AS cor0
----
-145353
-167538
-236558

query I rowsort
SELECT DISTINCT + + 45 + + 86 - - 1 FROM tab2 AS cor0
----
132

query I rowsort
SELECT - col2 * col1 FROM tab0 cor0 WHERE - col1 IS NULL
----

query I rowsort
SELECT DISTINCT + + 60 - + 55 FROM tab1 AS cor0
----
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 23 <> + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-372
SELECT DISTINCT - ( col1 ) - CAST( + - ( - col2 ) AS SIGNED ) + + col1 DIV + col0 FROM tab0
----
-100
-123
-31

skipif mysql # not compatible
query I rowsort label-372
SELECT DISTINCT - ( col1 ) - CAST ( + - ( - col2 ) AS INTEGER ) + + col1 / + col0 FROM tab0
----
-100
-123
-31

query I rowsort
SELECT + col1 + - 47 * - 6 * + 3 FROM tab2
----
897
913
923

query II rowsort
SELECT + col2, + col1 - + col0 FROM tab1
----
59
-80
68
-44
96
-37

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

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

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

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

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

query I rowsort
SELECT DISTINCT - 37 * col1 * col0 AS col1 FROM tab1 cor0
----
-15725
-158249
-26418

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

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

query I rowsort
SELECT DISTINCT col0 * 89 * col1 FROM tab1
----
37825
380653
63546

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

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

query I rowsort
SELECT - + col2 * - col1 + 36 AS col1 FROM tab1 cor0
----
1380
3232
331

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN NULL AND - + 97
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-386
SELECT + ( MIN( + col2 ) ) + - 45 AS col1 FROM tab2 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-386
SELECT + ( MIN ( + col2 ) ) + - 45 AS col1 FROM tab2 AS cor0
----
-22

query I rowsort
SELECT - col0 + - col0 * 86 FROM tab0 WHERE NULL >= - col0 * - 56 * + col0 * - col2
----

query I rowsort
SELECT ALL - 37 * + - col1 AS col1 FROM tab1
----
1739
185
518

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

query III rowsort
SELECT * FROM tab2 WHERE + col1 NOT IN ( - - col1 * - col2 * col1, 30, col1 )
----

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

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

query I rowsort
SELECT 97 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-393
SELECT DISTINCT - CAST( + - 27 AS SIGNED ) * col0 AS col2 FROM tab1
----
1377
2295
2457

skipif mysql # not compatible
query I rowsort label-393
SELECT DISTINCT - CAST ( + - 27 AS INTEGER ) * col0 AS col2 FROM tab1
----
1377
2295
2457

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

skipif mysql # not compatible
query I rowsort label-394
SELECT ( MAX ( - col0 ) ) FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-395
SELECT + - COUNT( + 78 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-395
SELECT + - COUNT ( + 78 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-396
SELECT + col0, col2 - + 12 * + + CAST( NULL AS SIGNED ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-396
SELECT + col0, col2 - + 12 * + + CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

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

query II rowsort
SELECT ALL - col0, 47 AS col2 FROM tab2 AS cor0
----
-46
47
-64
47
-75
47

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 59 * - col1 >= + - col0 + col2 )
----

query I rowsort
SELECT DISTINCT + + col2 FROM tab2 WHERE NOT ( NOT col2 * - col1 IS NULL )
----

query I rowsort
SELECT + 13 AS col2 FROM tab0 cor0
----
13
13
13

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

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

query I rowsort
SELECT - - col1 AS col2 FROM tab2 AS cor0 WHERE NOT + 90 / - 95 + 12 + - - col2 * - col1 IS NULL
----
51
67
77

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-407
SELECT DISTINCT - SUM( DISTINCT + 52 ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-407
SELECT DISTINCT - SUM ( DISTINCT + 52 ) FROM tab2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-408
SELECT ALL * FROM tab2 WHERE 13 BETWEEN NULL AND - col2 + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-408
SELECT ALL * FROM tab2 WHERE 13 BETWEEN NULL AND - col2 + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-409
SELECT SUM( CAST( NULL AS SIGNED ) ) + + 71 AS col1 FROM tab0
----
NULL

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

query II rowsort
SELECT ALL + 2 * - + col0, col2 * - col1 AS col0 FROM tab1
----
-102
-1344
-170
-295
-182
-3196

onlyif mysql # DIV for integer division: 
query I rowsort label-411
SELECT col1 + col1 DIV col1 + col2 - + col1 - col2 AS col1 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-411
SELECT col1 + col1 / col1 + col2 - + col1 - col2 AS col1 FROM tab0
----
1
1
1

query I rowsort
SELECT - 15 + + - 73 AS col2 FROM tab2
----
-88
-88
-88

query I rowsort
SELECT DISTINCT col0 - - 26 AS col2 FROM tab1 AS cor0
----
111
117
77

onlyif mysql # aggregate syntax: 
query I rowsort label-414
SELECT + 93 * - + SUM( + + col2 ) AS col0 FROM tab2 AS cor0
----
-11253

skipif mysql # not compatible
query I rowsort label-414
SELECT + 93 * - + SUM ( + + col2 ) AS col0 FROM tab2 AS cor0
----
-11253

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

skipif mysql # not compatible
query I rowsort label-415
SELECT DISTINCT + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT - col1 - - 60 FROM tab0
----
-21
39
59

query III rowsort
SELECT * FROM tab1 WHERE - col1 + col0 * ( 1 ) * - + col2 / - + col0 - 77 IS NULL
----

query I rowsort
SELECT - col0 - 0 AS col2 FROM tab0
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 = NULL
----

query I rowsort
SELECT ALL + col2 * + 10 AS col1 FROM tab2
----
230
400
580

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

query I rowsort
SELECT DISTINCT - + 99 * + 6 - - col0 AS col2 FROM tab1 AS cor0
----
-503
-509
-543

onlyif mysql # aggregate syntax: 
query I rowsort label-423
SELECT + + MIN( 17 ) AS col0 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-423
SELECT + + MIN ( 17 ) AS col0 FROM tab1 AS cor0
----
17

query I rowsort
SELECT DISTINCT col2 * + - 48 AS col2 FROM tab2 AS cor0
----
-1104
-1920
-2784

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

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

query I rowsort
SELECT DISTINCT + ( + + 86 ) * + col0 FROM tab2
----
3956
5504
6450

onlyif mysql # DIV for integer division: 
query II rowsort label-427
SELECT DISTINCT + col1 DIV - col2 AS col2, - 14 FROM tab1
----
0
-14

skipif mysql # not compatible
query II rowsort label-427
SELECT DISTINCT + col1 / - col2 AS col2, - 14 FROM tab1
----
0
-14

query I rowsort
SELECT col2 * - 92 * - col1 AS col1 FROM tab0
----
19320
350244
9108

onlyif mysql # aggregate syntax: 
query I rowsort label-429
SELECT MAX( - - 41 ) AS col2 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-429
SELECT MAX ( - - 41 ) AS col2 FROM tab1
----
41

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-431
SELECT CAST( + col1 AS SIGNED ) * + - 32 FROM tab1
----
-1504
-160
-448

skipif mysql # not compatible
query I rowsort label-431
SELECT CAST ( + col1 AS INTEGER ) * + - 32 FROM tab1
----
-1504
-160
-448

query II rowsort
SELECT DISTINCT - 6 AS col2, - 0 FROM tab1
----
-6
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-434
SELECT + CAST( NULL AS DECIMAL ) AS col0, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-434
SELECT + CAST ( NULL AS REAL ) AS col0, col1 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT + + 78 DIV + - 13 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-435
SELECT + + 78 / + - 13 AS col0 FROM tab2 AS cor0
----
-6
-6
-6

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

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

query I rowsort
SELECT ALL + 87 + + col2 AS col1 FROM tab2 cor0
----
110
127
145

query I rowsort
SELECT DISTINCT 31 + + + ( col2 ) AS col0 FROM tab2 AS cor0
----
54
71
89

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

query I rowsort
SELECT DISTINCT + 98 + - + col2 * - + 89 AS col2 FROM tab1 AS cor0
----
5349
6150
8642

onlyif mysql # aggregate syntax: 
query I rowsort label-441
SELECT ALL 4 + COUNT( + - col2 ) + + 59 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

skipif mysql # not compatible
query I rowsort label-441
SELECT ALL 4 + COUNT ( + - col2 ) + + 59 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
66

query I rowsort
SELECT DISTINCT - + 64 * - + col2 FROM tab2 AS cor0
----
1472
2560
3712

query I rowsort
SELECT - col2 + 43 FROM tab0 AS cor0 WHERE + 18 + - col1 > col2
----

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + col2 ) col0, - 33 AS col1 FROM tab2 WHERE NULL <> + col1 + col2
----

query II rowsort
SELECT 15 AS col0, - 12 AS col0 FROM tab1
----
15
-12
15
-12
15
-12

query I rowsort
SELECT DISTINCT col0 * - 92 * - - 33 + - col0 + + - 48 FROM tab1
----
-154935
-258193
-276415

query I rowsort
SELECT col0 - col0 - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 54 - col1 col1 FROM tab1 AS cor0
----
-101
-59
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-451
SELECT + CAST( + col2 AS SIGNED ) - - 37 AS col0 FROM tab2 AS cor0
----
60
77
95

skipif mysql # not compatible
query I rowsort label-451
SELECT + CAST ( + col2 AS INTEGER ) - - 37 AS col0 FROM tab2 AS cor0
----
60
77
95

query I rowsort
SELECT 77 + + - 98 AS col0 FROM tab0 cor0
----
-21
-21
-21

query II rowsort
SELECT ( ( col0 ) ) + + - col2 - + col0 + col1, col2 FROM tab0 AS cor0
----
-98
99
11
10
34
47

query I rowsort
SELECT + + col0 + + - col2 AS col1 FROM tab2 AS cor0
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT ALL - COUNT( * ) - 76 FROM tab0 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-455
SELECT ALL - COUNT ( * ) - 76 FROM tab0 AS cor0
----
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 77 + + col0 col0 FROM tab2
----
-13
-2
-31

query I rowsort
SELECT DISTINCT + 58 + + col0 * col0 AS col2 FROM tab2
----
2174
4154
5683

query I rowsort
SELECT ALL + 76 + + col1 AS col2 FROM tab2
----
127
143
153

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT + CAST( MAX( ALL col1 ) AS SIGNED ) + 96 * COUNT( * ) AS col1 FROM tab0
----
369

skipif mysql # not compatible
query I rowsort label-460
SELECT + CAST ( MAX ( ALL col1 ) AS INTEGER ) + 96 * COUNT ( * ) AS col1 FROM tab0
----
369

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 35 <> + ( 37 )
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( 9 )
----

query I rowsort
SELECT 70 + - col0 AS col0 FROM tab0
----
-17
-27
55

query I rowsort
SELECT col0 * + col2 FROM tab0 WHERE NULL = ( + 8 ) - 45
----

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

skipif mysql # not compatible
query I rowsort label-467
SELECT MIN ( col1 ) AS col2 FROM tab1
----
5

query I rowsort
SELECT ALL + ( - 74 ) + + 16 AS col1 FROM tab0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-469
SELECT - COUNT( * ) - - COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-469
SELECT - COUNT ( * ) - - COUNT ( * ) AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-470
SELECT - ( + COUNT( * ) ) - + MIN( ALL col0 ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-470
SELECT - ( + COUNT ( * ) ) - + MIN ( ALL col0 ) FROM tab0
----
-18

query I rowsort
SELECT 68 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
68
68
68

query I rowsort
SELECT + ( ( col0 ) ) - col2 * - 3 AS col2 FROM tab2
----
115
184
249

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 99 ) NOT IN ( - col0 * col1 )
----

query I rowsort
SELECT + 59 * + col1 AS col0 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + - col0 FROM tab0 WHERE NOT + 33 + + col0 / col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-477
SELECT ALL CAST( - COUNT( DISTINCT 80 ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT + col0 / + col2 IS NULL
----
-1

skipif mysql # not compatible
query I rowsort label-477
SELECT ALL CAST ( - COUNT ( DISTINCT 80 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT + col0 / + col2 IS NULL
----
-1

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

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-482
SELECT ALL 49 DIV + col2 FROM tab0 AS cor0
----
0
1
4

skipif mysql # not compatible
query I rowsort label-482
SELECT ALL 49 / + col2 FROM tab0 AS cor0
----
0
1
4

query I rowsort
SELECT ALL 15 * + 34 FROM tab0 cor0
----
510
510
510

query I rowsort
SELECT ALL col0 + 10 AS col0 FROM tab0
----
107
25
97

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

query I rowsort
SELECT DISTINCT - col1 FROM tab0 cor0 WHERE NULL IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-487
SELECT DISTINCT - ( - COUNT( * ) ) + + MIN( DISTINCT - col2 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-487
SELECT DISTINCT - ( - COUNT ( * ) ) + + MIN ( DISTINCT - col2 ) FROM tab0 AS cor0
----
-96

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

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

query I rowsort
SELECT DISTINCT - - col2 + - 25 * 97 FROM tab0 AS cor0
----
-2326
-2378
-2415

query I rowsort
SELECT DISTINCT + 56 FROM tab2 cor0 WHERE NOT ( + 23 ) NOT IN ( col2 )
----
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN ( 9 ) AND 68
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-492
SELECT DISTINCT CAST( NULL AS SIGNED ) / + MAX( col0 ) AS col0 FROM tab1 AS cor0
----
NULL

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

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

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

query I rowsort
SELECT - col2 FROM tab0 WHERE ( + col1 + 89 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-495
SELECT COUNT( * ) + - ( 52 ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-495
SELECT COUNT ( * ) + - ( 52 ) FROM tab1
----
-49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 29 < + col0
----

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

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

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

query I rowsort
SELECT - 35 + + + col0 * 6 FROM tab0
----
487
547
55

query I rowsort
SELECT col2 * - 16 + col1 * col0 FROM tab1
----
-519
-822
3189

query I rowsort
SELECT ( + col0 ) AS col0 FROM tab2 WHERE col1 = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-502
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NOT ( + col2 + + col0 ) NOT IN ( + 80 - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-502
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT ( + col2 + + col0 ) NOT IN ( + 80 - + col1 )
----
0

query I rowsort
SELECT DISTINCT col0 + + 8 + + 60 AS col0 FROM tab2
----
114
132
143

onlyif mysql # DIV for integer division: 
query I rowsort label-504
SELECT 56 + + col1 DIV 34 AS col1 FROM tab1
----
56
56
57

skipif mysql # not compatible
query I rowsort label-504
SELECT 56 + + col1 / 34 AS col1 FROM tab1
----
56
56
57

query I rowsort
SELECT + 78 * + + 18 + + 7 AS col1 FROM tab2
----
1411
1411
1411

query I rowsort
SELECT col2 * + - col1 * col1 + 66 AS col1 FROM tab1
----
-1409
-150146
-18750

query I rowsort
SELECT DISTINCT - + col0 + + 79 AS col1 FROM tab1 AS cor0
----
-12
-6
28

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

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

query I rowsort
SELECT ALL + + 37 + - col2 * 4 FROM tab0 AS cor0
----
-151
-3
-359

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

onlyif mysql # aggregate syntax: 
query I rowsort label-512
SELECT 90 * - MAX( - 93 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
8370

skipif mysql # not compatible
query I rowsort label-512
SELECT 90 * - MAX ( - 93 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
8370

query I rowsort
SELECT DISTINCT + + col1 - - col1 + col0 * col2 FROM tab1 AS cor0
----
4924
5025
6282

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 23 < NULL
----

query I rowsort
SELECT DISTINCT 44 - + 32 AS col0 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-516
SELECT * FROM tab2 WHERE NOT + + 94 - + CAST( ( - 61 ) AS DECIMAL ) IN ( 30 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-516
SELECT * FROM tab2 WHERE NOT + + 94 - + CAST ( ( - 61 ) AS REAL ) IN ( 30 * + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 73 * col0 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT DISTINCT - 57 AS col0 FROM tab0 cor0
----
-57

query I rowsort
SELECT DISTINCT + ( - + 98 ) * - col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
4998
6566
7546

query I rowsort
SELECT - col0 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 >= 71 * - 96 + - col2 * col1
----

query I rowsort
SELECT DISTINCT - - 72 FROM tab1 cor0
----
72

query I rowsort
SELECT - col0 + + col0 AS col1 FROM tab2 AS cor0 WHERE NOT - 62 BETWEEN + col1 AND + 14
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-523
SELECT ALL - SUM( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-523
SELECT ALL - SUM ( DISTINCT - col0 ) AS col1 FROM tab1 AS cor0
----
227

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 97 IS NOT NULL
----

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

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

query I rowsort
SELECT DISTINCT - col0 * 48 + + col2 FROM tab1 WHERE - col0 * - - 59 IS NULL
----

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

query I rowsort
SELECT - ( 99 ) FROM tab0
----
-99
-99
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + ( + + col1 ) * - 9 ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-531
SELECT ALL - MAX( - ( + col0 ) ) * 8 col0 FROM tab0
----
120

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-531
SELECT ALL - MAX ( - ( + col0 ) ) * 8 col0 FROM tab0
----
120

query III rowsort
SELECT ALL * FROM tab0 WHERE + - col0 = - + ( - col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT DISTINCT MAX( DISTINCT 77 ) + + - COUNT( * ) * - 62 AS col1 FROM tab1
----
263

skipif mysql # not compatible
query I rowsort label-534
SELECT DISTINCT MAX ( DISTINCT 77 ) + + - COUNT ( * ) * - 62 AS col1 FROM tab1
----
263

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 / + col2 * + col2 = col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( + 89 )
----

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NULL <> 77 + + 1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col2 ) * - - 46 col1 FROM tab0
----
-2162
-4554
-460

onlyif mysql # aggregate syntax: 
query I rowsort label-539
SELECT 16 + - COUNT( col0 ) * - 85 * - + COUNT( * ) - 83 col0 FROM tab2 AS cor0
----
-832

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-539
SELECT 16 + - COUNT ( col0 ) * - 85 * - + COUNT ( * ) - 83 col0 FROM tab2 AS cor0
----
-832

query I rowsort
SELECT ALL + - 48 + - col0 FROM tab1 AS cor0
----
-133
-139
-99

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

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

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

onlyif mysql # DIV for integer division: 
query III rowsort label-543
SELECT DISTINCT * FROM tab0 cor0 WHERE + 85 DIV - 57 - + + col0 NOT IN ( col1 + - col2 )
----
15
81
47
87
21
10

skipif mysql # not compatible
query III rowsort label-543
SELECT DISTINCT * FROM tab0 cor0 WHERE + 85 / - 57 - + + col0 NOT IN ( col1 + - col2 )
----
15
81
47
87
21
10

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

onlyif mysql # aggregate syntax: 
query I rowsort label-545
SELECT 68 * COUNT( * ) * - COUNT( * ) FROM tab0 AS cor0
----
-612

skipif mysql # not compatible
query I rowsort label-545
SELECT 68 * COUNT ( * ) * - COUNT ( * ) FROM tab0 AS cor0
----
-612

query I rowsort
SELECT - - 49 AS col0 FROM tab2 AS cor0
----
49
49
49

onlyif mysql # aggregate syntax: 
query I rowsort label-547
SELECT DISTINCT COUNT( * ) FROM tab0 WHERE NOT - + col1 * + col2 - + - col1 BETWEEN + + col1 * + 95 AND ( + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-547
SELECT DISTINCT COUNT ( * ) FROM tab0 WHERE NOT - + col1 * + col2 - + - col1 BETWEEN + + col1 * + 95 AND ( + col0 )
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + - 68
----

query I rowsort
SELECT + 64 + - 17 / - ( - 78 ) AS col2 FROM tab2 WHERE ( NOT + 84 >= + 80 )
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - col0 / - 7 - + col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 8 = ( + + col0 )
----

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

query I rowsort
SELECT - + col2 + - col2 * - + col1 FROM tab2 cor0
----
1150
3040
3828

query II rowsort
SELECT - - 25 AS col0, 95 FROM tab2 AS cor0
----
25
95
25
95
25
95

query II rowsort
SELECT col2, + 82 * + col2 AS col2 FROM tab0 cor0
----
10
820
47
3854
99
8118

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 55 IS NULL
----

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

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

query I rowsort
SELECT + 33 FROM tab2 WHERE NOT col0 * + col1 BETWEEN col2 / - 80 AND ( - col1 )
----
33
33
33

query I rowsort
SELECT + 99 AS col2 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 85 - 0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-561
SELECT + 77 DIV + 34 + col0 + + col1 * + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-397
-4252
-757

skipif mysql # not compatible
query I rowsort label-561
SELECT + 77 / + 34 + col0 + + col1 * + - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-397
-4252
-757

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-563
SELECT ALL CAST( NULL AS SIGNED ) AS col1, + col1 * 30 FROM tab1
----
NULL
1410
NULL
150
NULL
420

skipif mysql # not compatible
query II rowsort label-563
SELECT ALL CAST ( NULL AS INTEGER ) AS col1, + col1 * 30 FROM tab1
----
NULL
1410
NULL
150
NULL
420

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-564
SELECT SUM( DISTINCT + - CAST( NULL AS DECIMAL ) ) col0 FROM tab1
----
NULL

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-566
SELECT * FROM tab0 WHERE NOT ( - + 14 + CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-566
SELECT * FROM tab0 WHERE NOT ( - + 14 + CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 87 IS NULL
----

query I rowsort
SELECT ALL 19 + col0 FROM tab1 AS cor0
----
104
110
70

query II rowsort
SELECT + col0, col1 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
46
51
64
77
75
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-570
SELECT + 78 * CAST( COUNT( * ) AS SIGNED ) + COUNT( ALL col1 ) FROM tab1 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-570
SELECT + 78 * CAST ( COUNT ( * ) AS INTEGER ) + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 29, col2 - - col0 col0 FROM tab2 AS cor0
----
-29
104
-29
133
-29
69

query I rowsort
SELECT 2 FROM tab1 AS cor0 CROSS JOIN tab1 cor1 WHERE 85 + - 14 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-573
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

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

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

query I rowsort
SELECT ALL col0 + + col2 * 34 * + - col0 + + col2 * + - col1 * + 57 * col1 AS col2 FROM tab1
----
-1238925
-254500
-8772385

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

skipif mysql # not compatible
query I rowsort label-576
SELECT MAX ( ALL - - ( + 91 ) ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
91

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE 18 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-578
SELECT ALL - 27 + - COUNT( * ) DIV - 90 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-578
SELECT ALL - 27 + - COUNT ( * ) / - 90 FROM tab1
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-579
SELECT MAX( ALL 78 ) - ( + 38 ) AS col0 FROM tab1 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-579
SELECT MAX ( ALL 78 ) - ( + 38 ) AS col0 FROM tab1 AS cor0
----
40

query I rowsort
SELECT DISTINCT - + col1 AS col2 FROM tab2 AS cor0 WHERE - ( + 85 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 68 - 80 + + col2 * - col1 AS col2, + col2 col0 FROM tab2 AS cor0
----
-1185
23
-3092
40
-3898
58

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

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

query I rowsort
SELECT ALL col2 * - - 78 AS col2 FROM tab0
----
3666
7722
780

onlyif mysql # aggregate syntax: 
query I rowsort label-584
SELECT DISTINCT ( 46 ) * ( + COUNT( * ) ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-584
SELECT DISTINCT ( 46 ) * ( + COUNT ( * ) ) FROM tab0
----
138

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * + col2 col2 FROM tab0
----
-1457
-3069
-310

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-588
SELECT - ( + 39 ) DIV + MIN( col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-588
SELECT - ( + 39 ) / + MIN ( col1 ) FROM tab2
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL + MAX( + + 72 ) FROM tab0
----
72

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL + MAX ( + + 72 ) FROM tab0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-592
SELECT MAX( - col0 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-592
SELECT MAX ( - col0 ) AS col1 FROM tab2 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT - col0 AS col1, col0 FROM tab2 cor0
----
-46
46
-64
64
-75
75

query II rowsort
SELECT ALL col2, + col0 - + col1 + col2 FROM tab1
----
59
139
68
112
96
133

query II rowsort
SELECT ALL + col0, 88 - - col1 + + - col2 AS col1 FROM tab0 AS cor0
----
15
122
87
99
97
-10

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

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

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

query I rowsort
SELECT + 1 * - + col0 AS col1 FROM tab1
----
-51
-85
-91

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-600
SELECT DISTINCT - col0 + + CAST( - col1 AS SIGNED ) + - col1 FROM tab0
----
-129
-177
-99

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT - col0 + + CAST ( - col1 AS INTEGER ) + - col1 FROM tab0
----
-129
-177
-99

query I rowsort
SELECT ALL 99 + 44 * 87 AS col0 FROM tab0 WHERE + col1 + + col2 > + - col0
----
3927
3927
3927

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-602
SELECT DISTINCT + ( - + 25 ) DIV MAX( ALL col1 ) + + ( + COUNT( col0 ) ) + 52 * - - SUM( ALL + 11 ) FROM tab1 AS cor0
----
1719

skipif mysql # not compatible
query I rowsort label-602
SELECT DISTINCT + ( - + 25 ) / MAX ( ALL col1 ) + + ( + COUNT ( col0 ) ) + 52 * - - SUM ( ALL + 11 ) FROM tab1 AS cor0
----
1719

onlyif mysql # aggregate syntax: 
query I rowsort label-603
SELECT + - MIN( + 27 ) * - 41 AS col0 FROM tab1 AS cor0
----
1107

skipif mysql # not compatible
query I rowsort label-603
SELECT + - MIN ( + 27 ) * - 41 AS col0 FROM tab1 AS cor0
----
1107

query I rowsort
SELECT ALL - col2 * + - col0 + - - 6 - - - col0 + + 62 AS col0 FROM tab0 AS cor0
----
758
851
9574

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

query I rowsort
SELECT 0 + + - 81 AS col0 FROM tab1
----
-81
-81
-81

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

onlyif mysql # DIV for integer division: 
query I rowsort label-608
SELECT DISTINCT col1 + - - col2 DIV - col1 FROM tab1 cor0
----
-6
46
8

skipif mysql # not compatible
query I rowsort label-608
SELECT DISTINCT col1 + - - col2 / - col1 FROM tab1 cor0
----
-6
46
8

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

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

query I rowsort
SELECT ALL - 35 + + + 15 AS col1 FROM tab2 AS cor0
----
-20
-20
-20

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

query I rowsort
SELECT ALL - 6 - + col0 FROM tab1 AS cor0
----
-57
-91
-97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-613
SELECT * FROM tab1 WHERE ( - ( + 51 ) ) >= + col0 * CAST( NULL AS SIGNED ) * + - 70
----

skipif mysql # not compatible
query III rowsort label-613
SELECT * FROM tab1 WHERE ( - ( + 51 ) ) >= + col0 * CAST ( NULL AS INTEGER ) * + - 70
----

query I rowsort
SELECT ALL col0 * + + 23 FROM tab2
----
1058
1472
1725

query I rowsort
SELECT DISTINCT - 70 * - + col0 FROM tab2
----
3220
4480
5250

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col1 IN ( - col2, col1 + - 45 )
----
-59
-68
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-617
SELECT ALL CAST( 68 AS SIGNED ) * + + MIN( - 20 ) FROM tab1
----
-1360

skipif mysql # not compatible
query I rowsort label-617
SELECT ALL CAST ( 68 AS INTEGER ) * + + MIN ( - 20 ) FROM tab1
----
-1360

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-619
SELECT + 77 DIV CAST( MIN( + col1 ) AS SIGNED ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-619
SELECT + 77 / CAST ( MIN ( + col1 ) AS INTEGER ) FROM tab2
----
1

query I rowsort
SELECT + 56 AS col0 FROM tab2 WHERE NOT ( - 91 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-621
SELECT DISTINCT MAX( + - ( 97 ) ) col1 FROM tab0
----
-97

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

query I rowsort
SELECT ALL - - col1 * - col2 * + + 70 * + + col1 AS col2 FROM tab0 AS cor0
----
-21585690
-308700
-6930

query I rowsort
SELECT ALL + 63 * + 94 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ed11d67de139af98d706b1f67d333682

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-624
SELECT DISTINCT + MAX( ALL + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT + MAX ( ALL + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-625
SELECT - - COUNT( DISTINCT + + 25 ) AS col0 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-625
SELECT - - COUNT ( DISTINCT + + 25 ) AS col0 FROM tab2 cor0
----
1

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

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

query I rowsort
SELECT col2 * + - 70 FROM tab2 AS cor0
----
-1610
-2800
-4060

query I rowsort
SELECT DISTINCT + - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col0 < NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-630
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) * + 50 + + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-630
SELECT DISTINCT + + CAST ( NULL AS REAL ) * + 50 + + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE + col1 + - + col1 IN ( - + col1 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + - col0 col2 FROM tab0
----
-196
-62
-97

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-636
SELECT DISTINCT - 17 + col0 - - + col2 - + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + col2 + col2 + - 41 + + - 66 FROM tab0 AS cor0
----
-13
-87
91

query I rowsort
SELECT ALL + + 87 * 89 FROM tab2 AS cor0
----
7743
7743
7743

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-639
SELECT ALL - COUNT ( - 85 ) * + COUNT ( * ) col0 FROM tab2 AS cor0
----
-9

query I rowsort
SELECT ALL 48 * ( + col2 ) AS col0 FROM tab1
----
2832
3264
4608

query II rowsort
SELECT col1 AS col0, - 53 - + 29 AS col1 FROM tab1
----
14
-82
47
-82
5
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, + col0 * + + 60 FROM tab0
----
1
5820
21
5220
81
900

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-643
SELECT + CAST( NULL AS DECIMAL ), + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-643
SELECT + CAST ( NULL AS REAL ), + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 83 col0, - col0 FROM tab2
----
83
-46
83
-64
83
-75

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

onlyif mysql # DIV for integer division: 
query I rowsort label-648
SELECT DISTINCT + - col2 DIV - col1 FROM tab0 AS cor0
----
0
99

skipif mysql # not compatible
query I rowsort label-648
SELECT DISTINCT + - col2 / - col1 FROM tab0 AS cor0
----
0
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-649
SELECT ALL ( - MIN( ALL + + col1 ) ) DIV + + 62 + - 37 AS col0 FROM tab0 AS cor0
----
-37

skipif mysql # not compatible
query I rowsort label-649
SELECT ALL ( - MIN ( ALL + + col1 ) ) / + + 62 + - 37 AS col0 FROM tab0 AS cor0
----
-37

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

query II rowsort
SELECT DISTINCT - 98 + + col0 * + 12 + - - 51, col0 FROM tab2
----
505
46
721
64
853
75

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

query I rowsort
SELECT - - col0 + - - col1 * col0 FROM tab1 AS cor0
----
4368
510
765

query II rowsort
SELECT col0 + col2, col0 AS col0 FROM tab0 AS cor0
----
196
97
62
15
97
87

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

query I rowsort
SELECT - - ( + col1 ) + col1 FROM tab2 cor0
----
102
134
154

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

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

query I rowsort
SELECT DISTINCT ( - 11 ) + - 40 + + col0 AS col2 FROM tab2
----
-5
13
24

query I rowsort
SELECT + col0 AS col0 FROM tab0 WHERE col1 + + + col2 < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-661
SELECT ALL + COUNT( * ) * 64 + 73 FROM tab1 AS cor0
----
265

skipif mysql # not compatible
query I rowsort label-661
SELECT ALL + COUNT ( * ) * 64 + 73 FROM tab1 AS cor0
----
265

query I rowsort
SELECT 97 + 43 FROM tab2 AS cor0
----
140
140
140

query I rowsort
SELECT DISTINCT 76 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
76

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

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

query I rowsort
SELECT 40 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b1e8ffeef334b4a2b01b2f91e649c2d3

onlyif mysql # aggregate syntax: 
query II rowsort label-666
SELECT DISTINCT + COUNT( * ), + COUNT( ALL - 57 ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-666
SELECT DISTINCT + COUNT ( * ), + COUNT ( ALL - 57 ) FROM tab0 AS cor0
----
3
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT + 86 DIV + col2 + - 55 - - col2 FROM tab2 AS cor0
----
-13
-29
4

skipif mysql # not compatible
query I rowsort label-669
SELECT + 86 / + col2 + - 55 - - col2 FROM tab2 AS cor0
----
-13
-29
4

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

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL < ( - - 73 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-674
SELECT 76 DIV + - SUM( col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-674
SELECT 76 / + - SUM ( col1 ) FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-675
SELECT + - 75 * - SUM( + col0 ) FROM tab1 cor0
----
17025

skipif mysql # not compatible
query I rowsort label-675
SELECT + - 75 * - SUM ( + col0 ) FROM tab1 cor0
----
17025

query I rowsort
SELECT - ( + col2 ) * + 29 FROM tab2 cor0
----
-1160
-1682
-667

query II rowsort
SELECT DISTINCT - + ( - col2 ) AS col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-679
SELECT DISTINCT 31 * + + CAST( NULL AS DECIMAL ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-679
SELECT DISTINCT 31 * + + CAST ( NULL AS REAL ) AS col0 FROM tab1
----
NULL

query II rowsort
SELECT - col0 AS col0, ( 69 ) AS col1 FROM tab1
----
-51
69
-85
69
-91
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-681
SELECT ALL COUNT( * ), COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
3
NULL

skipif mysql # not compatible
query II rowsort label-681
SELECT ALL COUNT ( * ), COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
3
NULL

query I rowsort
SELECT ALL col1 * - col2 * - + 41 * 72 + + - col0 FROM tab0
----
11238249
292151
619833

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

query I rowsort
SELECT DISTINCT - col0 + col0 / 44 + - 16 AS col2 FROM tab2 AS cor0 WHERE NULL = ( NULL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL IN ( col2 * - col2 / - + col0 + - 9 * col2, + col0, + col0 )
----

query II rowsort
SELECT DISTINCT 73 + 1 * col1 AS col2, + 10 FROM tab1 AS cor0
----
120
10
78
10
87
10

query II rowsort
SELECT ALL - col0 * - 69 * + ( - col0 ) + - 66 * + col1 AS col1, + 62 AS col0 FROM tab1 AS cor0 WHERE NOT ( 42 ) + 44 IS NOT NULL AND NULL IS NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-689
SELECT DISTINCT - 40 + + col0 * + col0 * + + 87 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-689
SELECT DISTINCT - 40 + + col0 * + col0 * + + 87 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT ALL - COUNT( 41 ) + 17 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-690
SELECT ALL - COUNT ( 41 ) + 17 FROM tab1
----
14

query I rowsort
SELECT + 69 + + - 47 FROM tab1
----
22
22
22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( + 46 ) + - col0 * - col0 AS col2, + 91 * + - col0 * col1 col0 FROM tab2
----
2162
-213486
4142
-448448
5671
-457275

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( - + col1 ) * + 87, + 99 col0 FROM tab2
----
-4437
99
-5829
99
-6699
99

query I rowsort
SELECT DISTINCT + 36 * + - 96 AS col1 FROM tab2
----
-3456

query I rowsort
SELECT 90 * - ( col2 ) + - col2 + - col0 FROM tab1 AS cor0
----
-5454
-6279
-8787

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

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

skipif mysql # not compatible
query I rowsort label-699
SELECT - - MAX ( - col0 ) AS col0 FROM tab1 AS cor0
----
-51

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 91 * - col2 <= ( + 13 + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT ALL - + 77 AS col1 FROM tab1 WHERE NOT + 71 IS NOT NULL
----

query II rowsort
SELECT ALL 61 AS col0, + 92 AS col0 FROM tab2
----
61
92
61
92
61
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col0, 86 col0 FROM tab0
----
10
86
47
86
99
86

onlyif mysql # aggregate syntax: 
query II rowsort label-705
SELECT COUNT( - col1 ), 88 col1 FROM tab0 WHERE NOT + col1 * - col0 + 1 IS NOT NULL
----
0
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-705
SELECT COUNT ( - col1 ), 88 col1 FROM tab0 WHERE NOT + col1 * - col0 + 1 IS NOT NULL
----
0
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-706
SELECT ALL 53 - ( col0 ) FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + col2 + col2 + - col0 * col0 * col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL 53 - ( col0 ) FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + col2 + col2 + - col0 * col0 * col1 >= NULL
----

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

query I rowsort
SELECT ALL 32 + - + col1 * - - col1 FROM tab0 cor0
----
-409
-6529
31

query I rowsort
SELECT + col2 * + col1 + - - 49 + 59 FROM tab0 AS cor0
----
207
318
3915

query I rowsort
SELECT - + col2 + - ( + 47 ) FROM tab0 cor0
----
-146
-57
-94

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-712
SELECT + col2 * + + 43 col0, col0 * - CAST( NULL AS SIGNED ) + 86 * 25 AS col1 FROM tab2 AS cor0
----
1720
NULL
2494
NULL
989
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-712
SELECT + col2 * + + 43 col0, col0 * - CAST ( NULL AS INTEGER ) + 86 * 25 AS col1 FROM tab2 AS cor0
----
1720
NULL
2494
NULL
989
NULL

query I rowsort
SELECT ALL - - 52 AS col1 FROM tab0 AS cor0
----
52
52
52

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

skipif mysql # not compatible
query I rowsort label-714
SELECT DISTINCT - 66 * COUNT ( * ) + + SUM ( - col0 ) FROM tab2 AS cor0
----
-383

onlyif mysql # DIV for integer division: 
query I rowsort label-715
SELECT - 32 DIV - 14 AS col0 FROM tab2 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-715
SELECT - 32 / - 14 AS col0 FROM tab2 AS cor0
----
2
2
2

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

query I rowsort
SELECT + 80 * + - col0 AS col0 FROM tab1
----
-4080
-6800
-7280

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-719
SELECT - 47 * col1 * CAST( NULL AS SIGNED ) AS col1, 60 * + + col2 - - col0 FROM tab1
----
NULL
3625
NULL
4171
NULL
5811

skipif mysql # not compatible
query II rowsort label-719
SELECT - 47 * col1 * CAST ( NULL AS INTEGER ) AS col1, 60 * + + col2 - - col0 FROM tab1
----
NULL
3625
NULL
4171
NULL
5811

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

skipif mysql # not compatible
query I rowsort label-720
SELECT ALL CAST ( col1 AS INTEGER ) * - col1 + - - col0 FROM tab0
----
-354
-6546
96

query I rowsort
SELECT DISTINCT 34 * - - col0 * + col1 * + + col0 FROM tab0
----
319906
5404266
619650

query I rowsort
SELECT ALL col2 * + col2 + + + col2 FROM tab2
----
1640
3422
552

query I rowsort
SELECT ALL - col0 * - - 2 * + 62 AS col0 FROM tab0
----
-10788
-12028
-1860

query III rowsort
SELECT * FROM tab1 WHERE - 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-725
SELECT DISTINCT - 38 DIV - 11 AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-725
SELECT DISTINCT - 38 / - 11 AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT + col2 - 43 FROM tab2 AS cor0
----
-20
-3
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-727
SELECT DISTINCT COUNT( * ) * - CAST( + - 33 AS SIGNED ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-727
SELECT DISTINCT COUNT ( * ) * - CAST ( + - 33 AS INTEGER ) AS col2 FROM tab1
----
99

onlyif mysql # DIV for integer division: 
query I rowsort label-728
SELECT ALL col1 DIV - 69 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-728
SELECT ALL col1 / - 69 AS col0 FROM tab1
----
0
0
0

query I rowsort
SELECT - 34 * + - col0 FROM tab0 AS cor0
----
2958
3298
510

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

onlyif mysql # aggregate syntax: 
query I rowsort label-731
SELECT SUM( col1 ) * + MIN( DISTINCT + col1 ) FROM tab1 cor0
----
330

skipif mysql # not compatible
query I rowsort label-731
SELECT SUM ( col1 ) * + MIN ( DISTINCT + col1 ) FROM tab1 cor0
----
330

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-733
SELECT ALL - 68 * + 16 AS col1, COUNT( + col2 ) + MAX( - col1 ) FROM tab2 AS cor0
----
-1088
-48

skipif mysql # not compatible
query II rowsort label-733
SELECT ALL - 68 * + 16 AS col1, COUNT ( + col2 ) + MAX ( - col1 ) FROM tab2 AS cor0
----
-1088
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-734
SELECT DISTINCT MIN( col2 ) * + + 39 FROM tab1 cor0
----
2301

skipif mysql # not compatible
query I rowsort label-734
SELECT DISTINCT MIN ( col2 ) * + + 39 FROM tab1 cor0
----
2301

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-735
SELECT + col2 + - 24 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - - col1 * + + 87 * + 72 < CAST( - 16 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-735
SELECT + col2 + - 24 AS col2 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - - col1 * + + 87 * + 72 < CAST ( - 16 AS INTEGER )
----

query I rowsort
SELECT DISTINCT - - 62 AS col0 FROM tab2 WHERE ( + 4 * + col1 IS NULL )
----

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

query I rowsort
SELECT DISTINCT + col0 * - - col1 AS col0 FROM tab1
----
425
4277
714

query I rowsort
SELECT ALL 37 + - - 30 FROM tab1
----
67
67
67

query I rowsort
SELECT DISTINCT col1 * 42 + 35 * + + ( - + col2 ) + + col0 FROM tab1
----
-1770
-2721
-315

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

skipif mysql # not compatible
query I rowsort label-741
SELECT DISTINCT ( - - MIN ( - - 4 ) ) FROM tab0 AS cor0
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 73 + - 1 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-743
SELECT + 5 + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + ( + 55 ) * + col1 + + - 26 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 56
----

onlyif mysql # aggregate syntax: 
query II rowsort label-746
SELECT ALL COUNT( * ) + + 9, + 85 * MIN( - 73 ) AS col1 FROM tab0 cor0
----
12
-6205

skipif mysql # not compatible
query II rowsort label-746
SELECT ALL COUNT ( * ) + + 9, + 85 * MIN ( - 73 ) AS col1 FROM tab0 cor0
----
12
-6205

query I rowsort
SELECT DISTINCT + col1 + + 8 AS col2 FROM tab2 AS cor0
----
59
75
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab0 AS cor0 WHERE NULL <= + col0 * + col1 * + col0 + 19 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT ALL col0 * + CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-749
SELECT ALL col0 * + CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT DISTINCT COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT ( + 37 * 72 IS NULL )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-750
SELECT DISTINCT COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT ( + 37 * 72 IS NULL )
----
3

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

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

query I rowsort
SELECT DISTINCT + + 35 * - col1 - col1 AS col1 FROM tab1 AS cor0
----
-1692
-180
-504

query I rowsort
SELECT - - 33 FROM tab0 WHERE + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + - 94 col0 FROM tab1
----
2507
7131
8187

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - - 78 + + col2 - - - col1 - + - col2 * + 52 / col2 < NULL
----

query II rowsort
SELECT ALL 44 + - col1 + - - col2 AS col0, - col1 AS col1 FROM tab1
----
126
-14
65
-47
98
-5

query II rowsort
SELECT - col0 + col1 AS col0, col0 FROM tab2
----
-8
75
13
64
5
46

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

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

query I rowsort
SELECT DISTINCT col0 * col2 + - col0 AS col0 FROM tab0
----
690
783
9506

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

query I rowsort
SELECT - col1 * - 88 * ( - - 2 ) FROM tab0
----
14256
176
3696

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

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

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

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

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

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

query I rowsort
SELECT - col2 * 5 FROM tab0
----
-235
-495
-50

query I rowsort
SELECT DISTINCT + ( + col0 ) * 8 * - col2 - + col1 + - ( + col1 ) AS col1 FROM tab1 AS cor0
----
-39196
-40130
-49598

query I rowsort
SELECT DISTINCT - col1 * + col0 + + + col0 AS col2 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-771
SELECT DISTINCT + MAX( + 95 ) DIV 19 * + - MIN( + col0 ) FROM tab0 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-771
SELECT DISTINCT + MAX ( + 95 ) / 19 * + - MIN ( + col0 ) FROM tab0 AS cor0
----
-75

query II rowsort
SELECT + col2, col2 * - 44 + + - col2 AS col1 FROM tab2 AS cor0
----
23
-1035
40
-1800
58
-2610

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-774
SELECT ( + 55 ) DIV + MAX( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-774
SELECT ( + 55 ) / + MAX ( ALL - col1 ) AS col1 FROM tab0 AS cor0
----
-55

query II rowsort
SELECT ALL 35 + - col0 AS col0, col2 FROM tab0
----
-52
10
-62
99
20
47

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

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

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

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

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

query I rowsort
SELECT + col2 * + + 55 + + + 9 FROM tab2 AS cor0
----
1274
2209
3199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT NULL NOT BETWEEN NULL AND - + ( - 76 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-781
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + 61 ) * col2 NOT BETWEEN - CAST( NULL AS SIGNED ) + 89 AND - - col1 * col0
----

skipif mysql # not compatible
query III rowsort label-781
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + 61 ) * col2 NOT BETWEEN - CAST ( NULL AS INTEGER ) + 89 AND - - col1 * col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 40 IS NULL )
----

query I rowsort
SELECT col0 * - + col1 + 33 * - - col0 * + + 15 FROM tab0 AS cor0
----
41238
47918
6210

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-784
SELECT - col1 + + col1 + 57, CAST( + col1 AS SIGNED ) AS col1 FROM tab0
----
57
1
57
21
57
81

skipif mysql # not compatible
query II rowsort label-784
SELECT - col1 + + col1 + 57, CAST ( + col1 AS INTEGER ) AS col1 FROM tab0
----
57
1
57
21
57
81

query II rowsort
SELECT - - 0 + + col0 - + col2 + - + 68 * 42 * - col2 AS col2, col2 FROM tab0 AS cor0
----
134200
47
282742
99
28637
10

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

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - COUNT ( ALL + 86 ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 < - 38
----
64
77
40
75
67
58

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col1 IN ( - col0, - col1, + + col1 * - - 23, ( col1 ), - - 86, col0 )
----

query I rowsort
SELECT 93 * col1 * + col1 FROM tab0 AS cor0
----
41013
610173
93

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

query I rowsort
SELECT DISTINCT col2 - col1 + col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + col1 - - - col2 AS col0 FROM tab1
----
-21
-54
-82

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

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

query I rowsort
SELECT ALL col0 * + 28 FROM tab0
----
2436
2716
420

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 25 < NULL
----

query I rowsort
SELECT - 78 AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to b6e4cc21599216686f0cf45b85668b2c

onlyif mysql # aggregate syntax: 
query II rowsort label-800
SELECT DISTINCT + + ( - 71 ) AS col0, - 30 - - SUM( DISTINCT + 93 ) AS col1 FROM tab1 AS cor0
----
-71
63

skipif mysql # not compatible
query II rowsort label-800
SELECT DISTINCT + + ( - 71 ) AS col0, - 30 - - SUM ( DISTINCT + 93 ) AS col1 FROM tab1 AS cor0
----
-71
63

query I rowsort
SELECT DISTINCT col2 * - + 52 FROM tab0 AS cor0
----
-2444
-5148
-520

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

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

query I rowsort
SELECT DISTINCT - + 57 * + col2 AS col0 FROM tab2 AS cor0
----
-1311
-2280
-3306

onlyif mysql # aggregate syntax: 
query I rowsort label-804
SELECT - MAX( 36 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-804
SELECT - MAX ( 36 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT ( 16 ) AS col0 FROM tab0 AS cor0
----
16
16
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-806
SELECT ALL - + ( SUM( - - col2 ) ) DIV - MAX( ALL + - 86 ) + - MAX( - col0 ) - + CAST( - COUNT( ALL 2 ) AS SIGNED ) col0, COUNT( * ) * + + COUNT( * ) col0 FROM tab1 AS cor0
----
52
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-806
SELECT ALL - + ( SUM ( - - col2 ) ) / - MAX ( ALL + - 86 ) + - MAX ( - col0 ) - + CAST ( - COUNT ( ALL 2 ) AS INTEGER ) col0, COUNT ( * ) * + + COUNT ( * ) col0 FROM tab1 AS cor0
----
52
9

onlyif mysql # aggregate syntax: 
query I rowsort label-807
SELECT ALL MIN( DISTINCT + + col0 ) * + COUNT( * ) FROM tab0 AS cor0 WHERE + col2 <> + + 40 * + - col0
----
45

skipif mysql # not compatible
query I rowsort label-807
SELECT ALL MIN ( DISTINCT + + col0 ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE + col2 <> + + 40 * + - col0
----
45

query II rowsort
SELECT DISTINCT + 94, col0 FROM tab2
----
94
46
94
64
94
75

query I rowsort
SELECT ALL + col1 + - col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-810
SELECT DISTINCT COUNT( 17 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-810
SELECT DISTINCT COUNT ( 17 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-811
SELECT col0 * - ( + - col1 ) + - + 29 * 46 DIV - 22, col0 AS col2 FROM tab0
----
1275
15
157
97
1887
87

skipif mysql # not compatible
query II rowsort label-811
SELECT col0 * - ( + - col1 ) + - + 29 * 46 / - 22, col0 AS col2 FROM tab0
----
1275
15
157
97
1887
87

query I rowsort
SELECT col2 + + + col0 AS col2 FROM tab2
----
104
133
69

query I rowsort
SELECT + 12 + + + col2 AS col0 FROM tab0
----
111
22
59

onlyif mysql # aggregate syntax: 
query I rowsort label-814
SELECT - + MIN( DISTINCT + col1 ) + - COUNT( * ) FROM tab1 AS cor0
----
-8

skipif mysql # not compatible
query I rowsort label-814
SELECT - + MIN ( DISTINCT + col1 ) + - COUNT ( * ) FROM tab1 AS cor0
----
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN ( col1 - col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 * - - 39 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-817
SELECT ALL - CAST( + - col0 AS SIGNED ) + col2 FROM tab0 cor0
----
196
62
97

skipif mysql # not compatible
query I rowsort label-817
SELECT ALL - CAST ( + - col0 AS INTEGER ) + col2 FROM tab0 cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-818
SELECT DISTINCT + + 45 + COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / - col1 / + col1 AND + col2
----
45

skipif mysql # not compatible
query I rowsort label-818
SELECT DISTINCT + + 45 + COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col1 / - col1 / + col1 AND + col2
----
45

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

skipif mysql # not compatible
query I rowsort label-819
SELECT DISTINCT + 49 / - COUNT ( * ) FROM tab2 AS cor0
----
-16

query I rowsort
SELECT - ( - 27 ) FROM tab0
----
27
27
27

query I rowsort
SELECT ALL - - 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

query II rowsort
SELECT - col1 - + 1, - 60 AS col2 FROM tab1
----
-15
-60
-48
-60
-6
-60

query I rowsort
SELECT DISTINCT + - col0 - + 87 AS col2 FROM tab0 AS cor0
----
-102
-174
-184

query I rowsort
SELECT + - col1 - - + 42 AS col1 FROM tab1 cor0
----
-5
28
37

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

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

query II rowsort
SELECT col2 + 46 * + 53 + + + col0 AS col1, + col1 AS col1 FROM tab0 AS cor0
----
2500
81
2535
21
2634
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-828
SELECT DISTINCT - + 23 - COUNT( * ) * - - 28 FROM tab1 cor0
----
-107

skipif mysql # not compatible
query I rowsort label-828
SELECT DISTINCT - + 23 - COUNT ( * ) * - - 28 FROM tab1 cor0
----
-107

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

skipif mysql # not compatible
query I rowsort label-829
SELECT DISTINCT MIN ( col0 ) AS col1 FROM tab0 AS cor0
----
15

query II rowsort
SELECT DISTINCT + 0 - + + col0, - col0 + 84 AS col2 FROM tab0 AS cor0
----
-15
69
-87
-3
-97
-13

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

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

query I rowsort
SELECT col0 * + 8 AS col0 FROM tab2
----
368
512
600

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

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

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

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

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab2 WHERE + + 24 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ALL - 87 + - + COUNT( DISTINCT + 84 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 76 IS NULL
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-837
SELECT ALL - 87 + - + COUNT ( DISTINCT + 84 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 76 IS NULL
----
-88

query I rowsort
SELECT DISTINCT col0 * - 91 FROM tab1 AS cor0
----
-4641
-7735
-8281

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

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

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

query I rowsort
SELECT - 57 + - + 72 + + 98 AS col1 FROM tab0 AS cor0
----
-31
-31
-31

query I rowsort
SELECT col0 FROM tab2 cor0 WHERE NOT col1 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-844
SELECT COUNT( DISTINCT 17 ) DIV 82 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-844
SELECT COUNT ( DISTINCT 17 ) / 82 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-845
SELECT col0 DIV col0 AS col0, 54 * - + CAST( + 86 AS SIGNED ) FROM tab0
----
1
-4644
1
-4644
1
-4644

skipif mysql # not compatible
query II rowsort label-845
SELECT col0 / col0 AS col0, 54 * - + CAST ( + 86 AS INTEGER ) FROM tab0
----
1
-4644
1
-4644
1
-4644

onlyif mysql # aggregate syntax: 
query I rowsort label-846
SELECT SUM( 30 ) AS col0 FROM tab1, tab0 AS cor0
----
270

skipif mysql # not compatible
query I rowsort label-846
SELECT SUM ( 30 ) AS col0 FROM tab1, tab0 AS cor0
----
270

query I rowsort
SELECT ALL 79 + + 52 FROM tab0, tab2 AS cor0
----
9 values hashing to 2a1963143aee0d56f95aea0f030bc48f

query I rowsort
SELECT ALL - - 43 AS col1 FROM tab2 WHERE NULL <> NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-850
SELECT + + 32 + + - COUNT( + - 10 ) FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-850
SELECT + + 32 + + - COUNT ( + - 10 ) FROM tab2 AS cor0
----
29

query I rowsort
SELECT DISTINCT 44 * + - col0 + + 29 FROM tab2 AS cor0 WHERE NOT 10 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT + col0 + + + col0 + col0 DIV + + col1 AS col1 FROM tab2
----
128
151
92

skipif mysql # not compatible
query I rowsort label-852
SELECT + col0 + + + col0 + col0 / + + col1 AS col1 FROM tab2
----
128
151
92

query I rowsort
SELECT DISTINCT + col2 * - ( col0 ) * - col1 AS col1 FROM tab2 WHERE NOT 13 * + 61 = NULL
----

query I rowsort
SELECT DISTINCT - 41 - - ( + 33 ) - + col2 - - ( col0 ) + - 57 AS col0 FROM tab0 AS cor0
----
-67
-97
12

onlyif mysql # aggregate syntax: 
query II rowsort label-855
SELECT MAX( + 80 ) * + COUNT( * ) * - 79 AS col0, + 64 FROM tab2 AS cor0
----
-18960
64

skipif mysql # not compatible
query II rowsort label-855
SELECT MAX ( + 80 ) * + COUNT ( * ) * - 79 AS col0, + 64 FROM tab2 AS cor0
----
-18960
64

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

onlyif mysql # aggregate syntax: 
query I rowsort label-857
SELECT ALL - + MIN( + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) >= + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-857
SELECT ALL - + MIN ( + col2 ) FROM tab0 AS cor0 WHERE ( NULL ) >= + col0
----
NULL

query II rowsort
SELECT ALL + col1, - col1 * + col0 AS col2 FROM tab2 AS cor0
----
51
-2346
67
-5025
77
-4928

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

query I rowsort
SELECT DISTINCT + col1 * - 7 FROM tab1 AS cor0
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-861
SELECT 62 * + - COUNT( * ) FROM tab0
----
-186

skipif mysql # not compatible
query I rowsort label-861
SELECT 62 * + - COUNT ( * ) FROM tab0
----
-186

query II rowsort
SELECT ALL - col2 * 50, - col0 AS col2 FROM tab0
----
-2350
-15
-4950
-97
-500
-87

query I rowsort
SELECT DISTINCT + 72 FROM tab0 WHERE - col2 <= col1 - - + col0
----
72

onlyif mysql # DIV for integer division: 
query II rowsort label-864
SELECT ALL + ( + + 1 ) AS col2, - col0 * col2 DIV col1 FROM tab2
----
1
-20
1
-33
1
-64

skipif mysql # not compatible
query II rowsort label-864
SELECT ALL + ( + + 1 ) AS col2, - col0 * col2 / col1 FROM tab2
----
1
-20
1
-33
1
-64

query I rowsort
SELECT - + 3 * + - col0 * + col2 + + - 38 FROM tab0 WHERE NOT - col0 < NULL
----

query I rowsort
SELECT 59 * - 90 AS col2 FROM tab0
----
-5310
-5310
-5310

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-867
SELECT + 85 * 98 DIV - COUNT( ALL - col1 ) FROM tab0 AS cor0
----
-2776

skipif mysql # not compatible
query I rowsort label-867
SELECT + 85 * 98 / - COUNT ( ALL - col1 ) FROM tab0 AS cor0
----
-2776

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-869
SELECT ALL + - MIN( 22 ) DIV + + 15 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-1

skipif mysql # not compatible
query I rowsort label-869
SELECT ALL + - MIN ( 22 ) / + + 15 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-870
SELECT DISTINCT - - 56 FROM tab0 WHERE NOT - - 40 > CAST( NULL AS SIGNED ) * CAST( NULL AS DECIMAL ) + col2
----

skipif mysql # not compatible
query I rowsort label-870
SELECT DISTINCT - - 56 FROM tab0 WHERE NOT - - 40 > CAST ( NULL AS INTEGER ) * CAST ( NULL AS REAL ) + col2
----

query I rowsort
SELECT + ( - 54 ) * + + col1 AS col1 FROM tab1 AS cor0
----
-2538
-270
-756

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

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

query I rowsort
SELECT ALL col1 * - - col0 + - col2 AS col0 FROM tab0 AS cor0
----
-2
1168
1817

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

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

query III rowsort
SELECT * FROM tab2 WHERE 19 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-876
SELECT MIN( - col2 ) + - 78 * - ( - - 7 ) * COUNT( * ) * + 11 FROM tab2
----
17960

skipif mysql # not compatible
query I rowsort label-876
SELECT MIN ( - col2 ) + - 78 * - ( - - 7 ) * COUNT ( * ) * + 11 FROM tab2
----
17960

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 60 * + 90 * - 51 * - col0 col2 FROM tab1
----
-14045400
-23409000
-25061400

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL <= - 19 + + col0
----

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

query I rowsort
SELECT DISTINCT - 83 + 44 * + + col1 FROM tab1 AS cor0
----
137
1985
533

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

onlyif mysql # aggregate syntax: 
query I rowsort label-882
SELECT ALL + 95 * - + 31 + + + COUNT( * ) FROM tab1 cor0
----
-2942

skipif mysql # not compatible
query I rowsort label-882
SELECT ALL + 95 * - + 31 + + + COUNT ( * ) FROM tab1 cor0
----
-2942

query II rowsort
SELECT ALL - + 62, - 21 * - AVG ( ALL col1 ) AS col1 FROM tab0 WHERE NOT + + ( - col2 ) * - col1 + col1 IS NOT NULL
----
-62
NULL

query I rowsort
SELECT 19 - + + 38 - + 82 AS col0 FROM tab2
----
-101
-101
-101

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-885
SELECT col0 * - + CAST( col2 AS SIGNED ) - - col1 AS col2 FROM tab0
----
-624
-849
-9602

skipif mysql # not compatible
query I rowsort label-885
SELECT col0 * - + CAST ( col2 AS INTEGER ) - - col1 AS col2 FROM tab0
----
-624
-849
-9602

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 - + col2 * col1 * col2 col0 FROM tab0
----
-178841
-2012
-9713

onlyif mysql # aggregate syntax: 
query II rowsort label-887
SELECT 67 - + 21 AS col0, COUNT( * ) FROM tab0
----
46
3

skipif mysql # not compatible
query II rowsort label-887
SELECT 67 - + 21 AS col0, COUNT ( * ) FROM tab0
----
46
3

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 / 60 * - col0 < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-889
SELECT DISTINCT + MAX( ALL CAST( + + col2 AS SIGNED ) ) * 11 AS col1 FROM tab0 AS cor0
----
1089

skipif mysql # not compatible
query I rowsort label-889
SELECT DISTINCT + MAX ( ALL CAST ( + + col2 AS INTEGER ) ) * 11 AS col1 FROM tab0 AS cor0
----
1089

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT DISTINCT - SUM( - col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-892
SELECT DISTINCT - SUM ( - col2 ) AS col2 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 67 col0 FROM tab2
----
-3417
-4489
-5159

query I rowsort
SELECT - - 61 * col2 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col0, 43 FROM tab2
----
46
43
64
43
75
43

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 96 <= - 96
----

query I rowsort
SELECT DISTINCT col2 * - 3 FROM tab1
----
-177
-204
-288

query I rowsort
SELECT ALL - col2 / col2 FROM tab0 WHERE NOT NULL <> ( col2 / + ( - 48 * - col2 ) )
----

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

query I rowsort
SELECT DISTINCT 10 FROM tab1 WHERE NOT - 50 IS NULL
----
10

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

query I rowsort
SELECT DISTINCT 43 / col2 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL ( COUNT( * ) ) * 39 AS col1 FROM tab0
----
117

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL ( COUNT ( * ) ) * 39 AS col1 FROM tab0
----
117

query I rowsort
SELECT + col0 * col2 FROM tab2 WHERE - col1 BETWEEN NULL AND col1 * - col1
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-910
SELECT ALL CAST( SUM( col1 ) AS SIGNED ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL CAST ( SUM ( col1 ) AS INTEGER ) AS col2 FROM tab0
----
103

query I rowsort
SELECT ALL - 84 + col1 AS col0 FROM tab2
----
-17
-33
-7

query I rowsort
SELECT ( 66 ) * col0 + - col2 FROM tab1
----
3270
5551
5938

query I rowsort
SELECT ALL ( - col2 ) - 33 FROM tab1
----
-101
-129
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-914
SELECT - MIN( 61 ) + + SUM( col0 ) FROM tab0
----
138

skipif mysql # not compatible
query I rowsort label-914
SELECT - MIN ( 61 ) + + SUM ( col0 ) FROM tab0
----
138

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 27 + col1 * col0 IS NULL
----

query I rowsort
SELECT 85 FROM tab1 WHERE NOT - 6 NOT IN ( col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) NOT IN ( 68 * - 79 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-919
SELECT ALL COUNT( * ) + - ( - 49 ) AS col2 FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-919
SELECT ALL COUNT ( * ) + - ( - 49 ) AS col2 FROM tab1
----
52

query I rowsort
SELECT ALL col2 + 2 * col1 AS col1 FROM tab0
----
101
209
52

query I rowsort
SELECT 14 * + col2 + col1 * - ( col1 ) FROM tab2
----
-2279
-3677
-5369

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-922
SELECT CAST( NULL AS DECIMAL ) * MIN( - 54 ) + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-922
SELECT CAST ( NULL AS REAL ) * MIN ( - 54 ) + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-923
SELECT ALL - col2 DIV col2 + - col0 FROM tab0
----
-16
-88
-98

skipif mysql # not compatible
query I rowsort label-923
SELECT ALL - col2 / col2 + - col0 FROM tab0
----
-16
-88
-98

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

onlyif mysql # aggregate syntax: 
query I rowsort label-925
SELECT DISTINCT - MAX( - col1 ) - 98 AS col2 FROM tab0 WHERE NOT NULL IN ( - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-925
SELECT DISTINCT - MAX ( - col1 ) - 98 AS col2 FROM tab0 WHERE NOT NULL IN ( - 58 )
----
NULL

query I rowsort
SELECT ALL - 4 * 85 FROM tab2
----
-340
-340
-340

query I rowsort
SELECT + 11 + col1 AS col2 FROM tab2
----
62
78
88

query I rowsort
SELECT DISTINCT + 45 * col0 FROM tab2
----
2070
2880
3375

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

query I rowsort
SELECT - col1 - - col0 FROM tab1 WHERE NOT - col2 <= col1 * 91
----

query I rowsort
SELECT DISTINCT + col0 - 74 FROM tab0
----
-59
13
23

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

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

query I rowsort
SELECT DISTINCT + 25 * 84 - - col1 AS col0 FROM tab0 AS cor0
----
2101
2121
2181

query I rowsort
SELECT - col2 * + col1 + + col2 AS col0 FROM tab2 AS cor0
----
-1150
-3040
-3828

onlyif mysql # aggregate syntax: 
query I rowsort label-935
SELECT 91 + - COUNT( * ) col1 FROM tab2 AS cor0
----
88

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

query I rowsort
SELECT DISTINCT ( + 16 ) * - col0 - col1 * 29 FROM tab2 AS cor0
----
-2215
-3143
-3257

query I rowsort
SELECT col0 FROM tab0 WHERE ( NULL ) NOT IN ( 54 )
----

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

query I rowsort
SELECT 51 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-940
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 WHERE + col1 + CAST( + col2 AS SIGNED ) = ( col0 )
----
0

skipif mysql # not compatible
query I rowsort label-940
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 WHERE + col1 + CAST ( + col2 AS INTEGER ) = ( col0 )
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * + 78 + - col1 > ( 95 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-942
SELECT - col1 DIV 93 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-942
SELECT - col1 / 93 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-943
SELECT DISTINCT + COUNT( + col0 ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-944
SELECT MIN( ALL 77 ) col2 FROM tab1 AS cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-944
SELECT MIN ( ALL 77 ) col2 FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-945
SELECT ALL MIN( - col1 ) AS col0 FROM tab1 cor0 WHERE NOT col1 >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-945
SELECT ALL MIN ( - col1 ) AS col0 FROM tab1 cor0 WHERE NOT col1 >= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-946
SELECT DISTINCT - ( 22 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-946
SELECT DISTINCT - ( 22 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
66

query I rowsort
SELECT - 25 - 17 FROM tab2 AS cor0 WHERE NOT - 31 <= NULL
----

query I rowsort
SELECT DISTINCT + + col1 * - ( col2 ) AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

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

skipif mysql # not compatible
query I rowsort label-949
SELECT + MIN ( ( 62 ) ) FROM tab2 AS cor0
----
62

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT - + 63 DIV 91 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-950
SELECT - + 63 / 91 FROM tab1 AS cor0
----
0
0
0

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-953
SELECT DISTINCT MIN( 83 ) DIV 97 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-953
SELECT DISTINCT MIN ( 83 ) / 97 FROM tab0
----
0

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-961
SELECT ALL COUNT( * ) * 2 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-961
SELECT ALL COUNT ( * ) * 2 FROM tab2
----
6

query I rowsort
SELECT - 8 * - col1 AS col0 FROM tab0
----
168
648
8

onlyif mysql # aggregate syntax: 
query I rowsort label-963
SELECT - 26 * + 37 * ( + COUNT( * ) ) FROM tab2
----
-2886

skipif mysql # not compatible
query I rowsort label-963
SELECT - 26 * + 37 * ( + COUNT ( * ) ) FROM tab2
----
-2886

query I rowsort
SELECT ALL 49 * 99 AS col1 FROM tab1 AS cor0
----
4851
4851
4851

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-965
SELECT + col2 col2 FROM tab2 cor0 WHERE NOT ( col2 ) >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-965
SELECT + col2 col2 FROM tab2 cor0 WHERE NOT ( col2 ) >= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - col1 * - 12 + col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-967
SELECT + 63 + col0 DIV 88 FROM tab2 cor0
----
63
63
63

skipif mysql # not compatible
query I rowsort label-967
SELECT + 63 + col0 / 88 FROM tab2 cor0
----
63
63
63

query I rowsort
SELECT ALL col1 * col2 FROM tab1 AS cor0 WHERE NOT col0 > ( ( col1 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-970
SELECT ALL + 30 * 17 - + COUNT( * ) * 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
348

skipif mysql # not compatible
query I rowsort label-970
SELECT ALL + 30 * 17 - + COUNT ( * ) * 18 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
348

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 40 BETWEEN 17 AND col0 + + 10 * 83
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-972
SELECT - + 53 AS col0, col0 DIV - col0 + col2 AS col1 FROM tab1 AS cor0
----
-53
58
-53
67
-53
95

skipif mysql # not compatible
query II rowsort label-972
SELECT - + 53 AS col0, col0 / - col0 + col2 AS col1 FROM tab1 AS cor0
----
-53
58
-53
67
-53
95

onlyif mysql # DIV for integer division: 
query I rowsort label-973
SELECT DISTINCT col1 DIV + - col2 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT col1 / + - col2 * - col2 * + col1 AS col2 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT col2 + - + col2 * - col0 AS col1 FROM tab2 AS cor0
----
1081
2600
4408

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

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

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

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

query I rowsort
SELECT - col0 - + + col1 * + 8 * - col2 AS col1 FROM tab1 cor0
----
10701
2275
25477

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE ( col1 ) NOT IN ( col2 + + 42 * - col0 )
----
-51
-67
-77

query I rowsort
SELECT + 66 + - - 5 AS col1 FROM tab1 AS cor0
----
71
71
71

query I rowsort
SELECT ALL + col1 * ( + - 13 ) AS col2 FROM tab1
----
-182
-611
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-982
SELECT DISTINCT - CAST( - MAX( col0 ) AS SIGNED ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

skipif mysql # not compatible
query I rowsort label-982
SELECT DISTINCT - CAST ( - MAX ( col0 ) AS INTEGER ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
97

query I rowsort
SELECT ALL - ( - ( + 26 ) ) + col0 * - col2 FROM tab0
----
-679
-844
-9577

onlyif mysql # DIV for integer division: 
query I rowsort label-984
SELECT 63 DIV - col1 + + col0 FROM tab1
----
47
73
90

skipif mysql # not compatible
query I rowsort label-984
SELECT 63 / - col1 + + col0 FROM tab1
----
47
73
90

query I rowsort
SELECT - 99 + - - col0 AS col0 FROM tab2
----
-24
-35
-53

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-986
SELECT ( - - CAST( NULL AS SIGNED ) ) + - MAX( 53 ) FROM tab0
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE + 1 * - + 18 <> + col1 * - 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT col2 * 85 FROM tab0 AS cor0
----
3995
8415
850

query I rowsort
SELECT ALL col1 + + 68 AS col2 FROM tab0 AS cor0
----
149
69
89

query I rowsort
SELECT 99 AS col2 FROM tab0 AS cor0 WHERE NULL <= ( col1 * - col0 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-994
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-994
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-996
SELECT DISTINCT + MAX( - - 4 ) AS col0 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-996
SELECT DISTINCT + MAX ( - - 4 ) AS col0 FROM tab2 AS cor0
----
4

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

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

query I rowsort
SELECT + col2 AS col2 FROM tab1 cor0 WHERE NOT + 84 IS NULL
----
59
68
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( - 62 )
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1003
SELECT - COUNT( * ) * 35 + + 96 AS col0 FROM tab0, tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-1003
SELECT - COUNT ( * ) * 35 + + 96 AS col0 FROM tab0, tab0 AS cor0
----
-219

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

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

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

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

query I rowsort
SELECT ALL col1 + + - col0 AS col2 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL - 20 + - col1 * 13 FROM tab0 WHERE ( + + col0 + - 66 ) IN ( - ( col1 ) * + 55 )
----

query I rowsort
SELECT DISTINCT + 31 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-1009
SELECT DISTINCT - COUNT( * ), + CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1009
SELECT DISTINCT - COUNT ( * ), + CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
-3
NULL

query I rowsort
SELECT ALL - col0 * - col0 + col0 AS col2 FROM tab1 AS cor0
----
2652
7310
8372

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL IN ( - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1012
SELECT + + 52 * + COUNT( * ) FROM tab1 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-1012
SELECT + + 52 * + COUNT ( * ) FROM tab1 AS cor0
----
156

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

query I rowsort
SELECT - + col2 * + 71 * col0 + col2 * - 61 AS col1 FROM tab2 AS cor0
----
-184200
-312388
-76521

onlyif mysql # aggregate syntax: 
query I rowsort label-1015
SELECT DISTINCT - MAX( col1 ) - COUNT( * ) * + - 30 * + 19 FROM tab1 AS cor0
----
1663

skipif mysql # not compatible
query I rowsort label-1015
SELECT DISTINCT - MAX ( col1 ) - COUNT ( * ) * + - 30 * + 19 FROM tab1 AS cor0
----
1663

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1016
SELECT ALL * FROM tab1 cor0 WHERE - CAST( - 17 AS DECIMAL ) * + ( col0 ) - col0 - - col2 / ( + 54 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1016
SELECT ALL * FROM tab1 cor0 WHERE - CAST ( - 17 AS REAL ) * + ( col0 ) - col0 - - col2 / ( + 54 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1017
SELECT * FROM tab1 WHERE + CAST( + - col0 AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-1017
SELECT * FROM tab1 WHERE + CAST ( + - col0 AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query II rowsort
SELECT DISTINCT + 60, + 23 AS col2 FROM tab1
----
60
23

query I rowsort
SELECT ALL col0 + + - 51 + col0 FROM tab0
----
-21
123
143

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1021
SELECT * FROM tab0 WHERE NULL IN ( + col2 + - - col0 - CAST( NULL AS SIGNED ) / ( - col0 ) )
----

skipif mysql # not compatible
query III rowsort label-1021
SELECT * FROM tab0 WHERE NULL IN ( + col2 + - - col0 - CAST ( NULL AS INTEGER ) / ( - col0 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1022
SELECT 33 DIV + 19 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1022
SELECT 33 / + 19 FROM tab2 AS cor0
----
1
1
1

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

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

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

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

query I rowsort
SELECT ALL ( + 64 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1027
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-1027
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL = - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1028
SELECT DISTINCT col0 FROM tab1 WHERE + + CAST( col2 AS DECIMAL ) <= + col2
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1028
SELECT DISTINCT col0 FROM tab1 WHERE + + CAST ( col2 AS REAL ) <= + col2
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1029
SELECT + COUNT( * ) DIV 42 FROM tab0 AS cor0
----
0

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1031
SELECT - col1 * + col0, + 90 + - - CAST( NULL AS SIGNED ) + col2 * 98 * 19 AS col0 FROM tab1 AS cor0
----
-425
NULL
-4277
NULL
-714
NULL

skipif mysql # not compatible
query II rowsort label-1031
SELECT - col1 * + col0, + 90 + - - CAST ( NULL AS INTEGER ) + col2 * 98 * 19 AS col0 FROM tab1 AS cor0
----
-425
NULL
-4277
NULL
-714
NULL

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

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

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

query I rowsort
SELECT + ( col0 ) * - ( + 10 ) * - col1 - + col2 AS col2 FROM tab1 AS cor0
----
4191
42702
7044

query I rowsort
SELECT DISTINCT col1 * + ( + + col0 ) AS col1 FROM tab1 AS cor0
----
425
4277
714

query I rowsort
SELECT ALL + col2 * col1 FROM tab0 AS cor0 WHERE ( - col0 * - ( + - col1 ) ) IS NOT NULL
----
210
3807
99

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

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

query II rowsort
SELECT col0 * col2, col2 AS col1 FROM tab1 AS cor0
----
4896
96
5015
59
6188
68

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1040
SELECT ALL col1 DIV - - col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1040
SELECT ALL col1 / - - col2 FROM tab1
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 13 col2 FROM tab0
----
112
23
60

query II rowsort
SELECT DISTINCT + 33 + - - 63 + + col0, col1 FROM tab1 AS cor0
----
147
14
181
5
187
47

query I rowsort
SELECT DISTINCT + - 42 + col1 FROM tab0 AS cor0
----
-21
-41
39

query I rowsort
SELECT + 67 * 49 * col0 AS col0 FROM tab1
----
167433
279055
298753

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1045
SELECT ALL - 16 + ( + 45 ) DIV - MAX( - + col2 ) col2 FROM tab0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1045
SELECT ALL - 16 + ( + 45 ) / - MAX ( - + col2 ) col2 FROM tab0
----
-12

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

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

query I rowsort
SELECT ALL col2 - - col2 * col0 FROM tab1 AS cor0
----
4992
5074
6256

onlyif mysql # DIV for integer division: 
query II rowsort label-1048
SELECT + - col0 * + col0 + - - col0 - - - col0 AS col2, col0 DIV - + 19 AS col1 FROM tab1 AS cor0
----
-2601
-2
-7225
-4
-8281
-4

skipif mysql # not compatible
query II rowsort label-1048
SELECT + - col0 * + col0 + - - col0 - - - col0 AS col2, col0 / - + 19 AS col1 FROM tab1 AS cor0
----
-2601
-2
-7225
-4
-8281
-4

query I rowsort
SELECT - col1 * - + col0 + - 83 AS col1 FROM tab2 cor0 WHERE - col2 * + col0 IS NOT NULL
----
2263
4845
4942

query I rowsort
SELECT 52 + - + col0 FROM tab1 cor0
----
-33
-39
1

query II rowsort
SELECT DISTINCT - col0 - - - 82 AS col1, + col1 AS col0 FROM tab2 AS cor0
----
-128
51
-146
77
-157
67

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

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

query IIIIII rowsort
SELECT * FROM tab0, tab2 AS cor0 WHERE + 23 IS NULL
----

query I rowsort
SELECT DISTINCT col1 - + - ( col0 ) + + col2 AS col0 FROM tab1
----
149
161
206

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1055
SELECT + 85 + - 7 DIV + COUNT( * ), 27 AS col1 FROM tab0
----
83
27

skipif mysql # not compatible
query II rowsort label-1055
SELECT + 85 + - 7 / + COUNT ( * ), 27 AS col1 FROM tab0
----
83
27

onlyif mysql # DIV for integer division: 
query I rowsort label-1056
SELECT DISTINCT + 56 DIV 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1056
SELECT DISTINCT + 56 / 85 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1057
SELECT - + COUNT( * ) FROM tab0 WHERE ( - 64 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1057
SELECT - + COUNT ( * ) FROM tab0 WHERE ( - 64 IS NULL )
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1058
SELECT * FROM tab1 WHERE ( + CAST( - CAST( + + col1 AS DECIMAL ) AS SIGNED ) IN ( + 6 ) )
----

skipif mysql # not compatible
query III rowsort label-1058
SELECT * FROM tab1 WHERE ( + CAST ( - CAST ( + + col1 AS REAL ) AS INTEGER ) IN ( + 6 ) )
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1061
SELECT DISTINCT - ( + 64 ) DIV - - col1 AS col1 FROM tab0 AS cor0
----
-3
-64
0

skipif mysql # not compatible
query I rowsort label-1061
SELECT DISTINCT - ( + 64 ) / - - col1 AS col1 FROM tab0 AS cor0
----
-3
-64
0

query I rowsort
SELECT - 77 FROM tab1 AS cor0 WHERE NOT 1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1063
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + col2 FROM tab2 AS cor0 WHERE NOT - 66 <> NULL
----

skipif mysql # not compatible
query I rowsort label-1063
SELECT DISTINCT - CAST ( NULL AS REAL ) * + col2 FROM tab2 AS cor0 WHERE NOT - 66 <> NULL
----

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

query I rowsort
SELECT DISTINCT 63 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT 67 * - + 26 AS col1 FROM tab0
----
-1742
-1742
-1742

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-1067
SELECT ALL * FROM tab2 WHERE NOT ( + - col1 * - ( + + col1 ) + - col1 ) IN ( - CAST( + CAST( + 0 AS SIGNED ) AS DECIMAL ), - col0 * - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1067
SELECT ALL * FROM tab2 WHERE NOT ( + - col1 * - ( + + col1 ) + - col1 ) IN ( - CAST ( + CAST ( + 0 AS INTEGER ) AS REAL ), - col0 * - 55 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query I rowsort
SELECT DISTINCT - - ( - col2 ) FROM tab0 cor0
----
-10
-47
-99

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

query I rowsort
SELECT ALL - 10 AS col1 FROM tab0 AS cor0
----
-10
-10
-10

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - 26 AS col0, col1 col2 FROM tab1 AS cor0
----
26
14
26
47
26
5

query I rowsort
SELECT - 98 * - 60 - - col0 FROM tab2 AS cor0
----
5926
5944
5955

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 * col2 AND - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT 46 DIV - - 56 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1076
SELECT 46 / - - 56 AS col2 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT DISTINCT + MIN( DISTINCT - + col0 ) + + - 97 * + - COUNT( * ) AS col2 FROM tab1
----
200

skipif mysql # not compatible
query I rowsort label-1078
SELECT DISTINCT + MIN ( DISTINCT - + col0 ) + + - 97 * + - COUNT ( * ) AS col2 FROM tab1
----
200

query I rowsort
SELECT DISTINCT col1 + + 94 + - col2 AS col1 FROM tab0
----
-4
105
128

query I rowsort
SELECT - col1 * - 29 FROM tab2 WHERE - col0 * col0 + + - col2 NOT BETWEEN - col0 AND + col2
----
1479
1943
2233

query I rowsort
SELECT 90 FROM tab1 WHERE - 36 * + + 16 + - 31 IS NULL
----

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

query I rowsort
SELECT DISTINCT - 88 * + ( - ( + col0 ) ) - + 58 * - ( 84 ) * - col1 - - col2 - + col2 + + + col0 FROM tab2 AS cor0
----
-244378
-319749
-369448

query I rowsort
SELECT - 49 + - col1 FROM tab0 cor0
----
-130
-50
-70

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-1086
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST( + 86 AS SIGNED ) / - 39 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

skipif mysql # not compatible
query IIIIII rowsort label-1086
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE - CAST ( + 86 AS INTEGER ) / - 39 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - 54 + + + 28 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 47d0574274146de273829785364ada39

query I rowsort
SELECT + - 0 AS col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - col1 - 9 FROM tab1 AS cor0
----
-14
-23
-56

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT + COUNT( * ) FROM tab2 cor0 WHERE NULL = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1092
SELECT + COUNT ( * ) FROM tab2 cor0 WHERE NULL = ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-1093
SELECT ALL - 11 * - 12 - + COUNT( * ) AS col0, - COUNT( * ) FROM tab0 cor0
----
129
-3

skipif mysql # not compatible
query II rowsort label-1093
SELECT ALL - 11 * - 12 - + COUNT ( * ) AS col0, - COUNT ( * ) FROM tab0 cor0
----
129
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ALL - COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT ( 59 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL - COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT ( 59 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 6 * 24 * - col0 * col1 AS col2 FROM tab2 WHERE NOT ( - + col0 ) <= - col1
----
-337824
-709632

query I rowsort
SELECT - 49 * - 61 AS col0 FROM tab0
----
2989
2989
2989

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT + SUM( DISTINCT + - 70 ) AS col0 FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-1098
SELECT + SUM ( DISTINCT + - 70 ) AS col0 FROM tab0 AS cor0
----
-70

query II rowsort
SELECT + col1 + + - col2, col2 + 22 FROM tab2 WHERE NOT ( - col1 + + col2 ) NOT BETWEEN - col0 AND - + col1
----

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

query I rowsort
SELECT + 44 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

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

query I rowsort
SELECT DISTINCT - 54 + 39 AS col0 FROM tab2 cor0
----
-15

query I rowsort
SELECT - - 94 AS col1 FROM tab1 AS cor0
----
94
94
94

query I rowsort
SELECT ALL - col0 + + - 95 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1107
SELECT * FROM tab2 AS cor0 WHERE 99 BETWEEN NULL AND - ( + ( - col0 ) ) * CAST( + + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1107
SELECT * FROM tab2 AS cor0 WHERE 99 BETWEEN NULL AND - ( + ( - col0 ) ) * CAST ( + + col1 AS INTEGER )
----

query I rowsort
SELECT DISTINCT col1 * - col1 * + col0 FROM tab0
----
-38367
-97
-98415

onlyif mysql # DIV for integer division: 
query I rowsort label-1109
SELECT col0 + 81 + + col0 DIV - col0 - - col0 AS col2 FROM tab1
----
182
250
262

skipif mysql # not compatible
query I rowsort label-1109
SELECT col0 + 81 + + col0 / - col0 - - col0 AS col2 FROM tab1
----
182
250
262

query I rowsort
SELECT DISTINCT 34 + 62 FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1111
SELECT ALL SUM( DISTINCT col2 ) + + + 23 AS col0 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-1111
SELECT ALL SUM ( DISTINCT col2 ) + + + 23 AS col0 FROM tab1
----
246

query I rowsort
SELECT - 22 + - - col0 * + 54 + - 91 + + - col2 FROM tab2
----
2348
3303
3879

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

query I rowsort
SELECT DISTINCT + col2 - col1 + - - col1 * - col2 AS col1 FROM tab2 AS cor0
----
-1201
-3117
-3895

onlyif mysql # DIV for integer division: 
query I rowsort label-1115
SELECT - col1 DIV + 33 - col0 col0 FROM tab0
----
-17
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1115
SELECT - col1 / + 33 - col0 col0 FROM tab0
----
-17
-87
-97

query I rowsort
SELECT DISTINCT + 7 + col2 + + + ( - - 61 ) - - 34 + - col1 + + - col2 FROM tab2
----
25
35
51

query I rowsort
SELECT ALL + - 65 * 18 + + + ( + - 20 ) FROM tab1 AS cor0
----
-1190
-1190
-1190

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 + + 62 * - col2 + 63 col0, - col2 + + - 82 * + col0 col1 FROM tab0 AS cor0
----
-2804
-1277
-547
-7144
-5976
-8053

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1120
SELECT ALL + COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1120
SELECT ALL + COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-1

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT COUNT( + + col1 ) * - 60 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-1123
SELECT COUNT ( + + col1 ) * - 60 FROM tab1
----
-180

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

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

query I rowsort
SELECT ALL - col2 * - + col1 + + + 15 AS col2 FROM tab1 cor0
----
1359
310
3211

query I rowsort
SELECT DISTINCT + - 11 * + + col2 FROM tab0 AS cor0
----
-1089
-110
-517

query I rowsort
SELECT - - col1 * + ( - ( + col1 ) ) AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-1129
SELECT DISTINCT 31 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1129
SELECT DISTINCT 31 / col2 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1130
SELECT ALL MIN( - col2 ) * 59 AS col0 FROM tab0 AS cor0
----
-5841

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL MIN ( - col2 ) * 59 AS col0 FROM tab0 AS cor0
----
-5841

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1131
SELECT + + CAST( - col2 AS SIGNED ) + - 24 FROM tab1 AS cor0
----
-120
-83
-92

skipif mysql # not compatible
query I rowsort label-1131
SELECT + + CAST ( - col2 AS INTEGER ) + - 24 FROM tab1 AS cor0
----
-120
-83
-92

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1132
SELECT MIN( DISTINCT + 65 ) DIV + + 70 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT MIN ( DISTINCT + 65 ) / + + 70 AS col1 FROM tab1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 6 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1134
SELECT ALL + 78 + + - CAST( NULL AS SIGNED ) + + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1134
SELECT ALL + 78 + + - CAST ( NULL AS INTEGER ) + + - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col2 * - col0 + - col1 + + + 95 + 56 * - col1 FROM tab0
----
-1972
-5227
-9565

query II rowsort
SELECT - col2 + - col2, - 89 AS col2 FROM tab0 AS cor0
----
-198
-89
-20
-89
-94
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-1137
SELECT DISTINCT - 75 DIV + 62 - + 83 DIV - col0 AS col1 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1137
SELECT DISTINCT - 75 / + 62 - + 83 / - col0 AS col1 FROM tab1 AS cor0
----
-1
0

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT ALL - ( - 2 ) * + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-1141
SELECT ALL - ( - 2 ) * + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1142
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) * + 34 AS col0 FROM tab0 AS cor0
----
-2958
-3298
-510

skipif mysql # not compatible
query I rowsort label-1142
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) * + 34 AS col0 FROM tab0 AS cor0
----
-2958
-3298
-510

query I rowsort
SELECT ALL + col1 * + 35 + 7 FROM tab0 AS cor0
----
2842
42
742

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT ALL 84 * - COUNT( * ) * + - 9 FROM tab1 WHERE 84 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1146
SELECT ALL 84 * - COUNT ( * ) * + - 9 FROM tab1 WHERE 84 <= NULL
----
0

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

query I rowsort
SELECT - col2 * + + col2 AS col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < 16 + col1
----

query I rowsort
SELECT + col0 + + - 13 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
2
74
84

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

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

query I rowsort
SELECT ALL col1 + col1 + + - 94 AS col2 FROM tab0
----
-52
-92
68

query I rowsort
SELECT + 55 AS col2 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - col0 + + 68 - - + col2 * - 40 + - ( + col2 ) FROM tab1 AS cor0
----
-2436
-2811
-3919

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1155
SELECT - 68 * - + col0 + - - col2 * - + CAST( NULL AS SIGNED ) * + col0 * + col1 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-1155
SELECT - 68 * - + col0 + - - col2 * - + CAST ( NULL AS INTEGER ) * + col0 * + col1 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 * col1 - - + col2 FROM tab0 AS cor0
----
100
451
6608

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

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

query I rowsort
SELECT DISTINCT + 17 * + - col0 AS col1 FROM tab2
----
-1088
-1275
-782

query I rowsort
SELECT 15 + + 17 AS col2 FROM tab0
----
32
32
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1160
SELECT - 15 + col0 DIV + + col1 + + 72 FROM tab0
----
154
57
61

skipif mysql # not compatible
query I rowsort label-1160
SELECT - 15 + col0 / + + col1 + + 72 FROM tab0
----
154
57
61

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1161
SELECT CAST( NULL AS SIGNED ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-1161
SELECT CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

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

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

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

query I rowsort
SELECT + 81 * 17 FROM tab0
----
1377
1377
1377

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1166
SELECT + col1 * - col2 * - col0 DIV col0 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-1166
SELECT + col1 * - col2 * - col0 / col0 FROM tab2 AS cor0
----
1173
3080
3886

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1170
SELECT ALL COUNT( DISTINCT - 62 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL COUNT ( DISTINCT - 62 ) AS col2 FROM tab2 AS cor0
----
1

query II rowsort
SELECT 65 AS col0, col2 + col0 FROM tab2
----
65
104
65
133
65
69

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT DISTINCT MAX( DISTINCT + 1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1173
SELECT DISTINCT MAX ( DISTINCT + 1 ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1174
SELECT ALL 32 * COUNT( * ) AS col2 FROM tab0
----
96

skipif mysql # not compatible
query I rowsort label-1174
SELECT ALL 32 * COUNT ( * ) AS col2 FROM tab0
----
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1175
SELECT ALL - ( + CAST( NULL AS SIGNED ) ) * - col2 AS col2, + 75 AS col2 FROM tab2
----
NULL
75
NULL
75
NULL
75

skipif mysql # not compatible
query II rowsort label-1175
SELECT ALL - ( + CAST ( NULL AS INTEGER ) ) * - col2 AS col2, + 75 AS col2 FROM tab2
----
NULL
75
NULL
75
NULL
75

query I rowsort
SELECT DISTINCT - 24 AS col1 FROM tab1 cor0
----
-24

query I rowsort
SELECT ALL - + 69 AS col2 FROM tab0 AS cor0
----
-69
-69
-69

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

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

query I rowsort
SELECT + 57 + + 67 FROM tab0 AS cor0 WHERE ( NOT - - col1 * - - col2 + + - col0 IS NULL )
----
124
124
124

query II rowsort
SELECT ( + col2 ) AS col0, - col1 FROM tab2
----
23
-51
40
-77
58
-67

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1182
SELECT - COUNT( - col2 ) + + - 83 FROM tab2
----
-86

skipif mysql # not compatible
query I rowsort label-1182
SELECT - COUNT ( - col2 ) + + - 83 FROM tab2
----
-86

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

query I rowsort
SELECT ALL - + ( - 84 ) + col2 AS col0 FROM tab0 cor0
----
131
183
94

query I rowsort
SELECT DISTINCT 77 FROM tab2 AS cor0 WHERE NULL >= NULL
----

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

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

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

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

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

query I rowsort
SELECT + 94 * - + 84 + - 83 * - 15 FROM tab2 AS cor0
----
-6651
-6651
-6651

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 15 col1 FROM tab2
----
1005
1155
765

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT NULL <> - col0 )
----

query I rowsort
SELECT ALL + ( 53 ) + - col2 - - 13 AS col1 FROM tab0
----
-33
19
56

query I rowsort
SELECT ALL col0 * - 91 AS col2 FROM tab1
----
-4641
-7735
-8281

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

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

query I rowsort
SELECT ( col0 ) * + col0 - - 38 AS col0 FROM tab0
----
263
7607
9447

query II rowsort
SELECT col1, 26 * - - 53 FROM tab2 WHERE NULL IS NULL
----
51
1378
67
1378
77
1378

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT COUNT( * ) + - + 27 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1197
SELECT COUNT ( * ) + - + 27 FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1198
SELECT DISTINCT + + 13 + + ( MIN( - + 86 ) ) FROM tab0 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-1198
SELECT DISTINCT + + 13 + + ( MIN ( - + 86 ) ) FROM tab0 AS cor0
----
-73

query I rowsort
SELECT DISTINCT + 84 - + col2 AS col0 FROM tab2 AS cor0
----
26
44
61

query I rowsort
SELECT ALL - 44 + - - col2 + + + col0 * + col0 AS col2 FROM tab0 AS cor0
----
228
7535
9464

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

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

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

query I rowsort
SELECT - 60 AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 067a4b5daf8747042e3b07ca8459859f

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT DISTINCT + col0 DIV - 18 col0 FROM tab0
----
-4
-5
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1206
SELECT + - 99 DIV + - 36 + + - col0 FROM tab1 AS cor0
----
-49
-83
-89

skipif mysql # not compatible
query I rowsort label-1206
SELECT + - 99 / + - 36 + + - col0 FROM tab1 AS cor0
----
-49
-83
-89

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1209
SELECT + - COUNT( * ) AS col0, - 68 FROM tab0 AS cor0
----
-3
-68

skipif mysql # not compatible
query II rowsort label-1209
SELECT + - COUNT ( * ) AS col0, - 68 FROM tab0 AS cor0
----
-3
-68

query I rowsort
SELECT ALL + col0 AS col1 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = - + 59 + + - 85 * + + col1
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1212
SELECT ALL * FROM tab1 WHERE NOT + + 71 IN ( + - col0, - 17 * - col2 * - col2, CAST( NULL AS DECIMAL ) + - col1 )
----

skipif mysql # not compatible
query III rowsort label-1212
SELECT ALL * FROM tab1 WHERE NOT + + 71 IN ( + - col0, - 17 * - col2 * - col2, CAST ( NULL AS REAL ) + - col1 )
----

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1215
SELECT ALL - MIN( DISTINCT - - col0 ) AS col2, + 99 AS col0 FROM tab2 AS cor0
----
-46
99

skipif mysql # not compatible
query II rowsort label-1215
SELECT ALL - MIN ( DISTINCT - - col0 ) AS col2, + 99 AS col0 FROM tab2 AS cor0
----
-46
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1216
SELECT ALL - COUNT( * ) + + SUM( 65 ) AS col1 FROM tab0 AS cor0
----
192

skipif mysql # not compatible
query I rowsort label-1216
SELECT ALL - COUNT ( * ) + + SUM ( 65 ) AS col1 FROM tab0 AS cor0
----
192

query I rowsort
SELECT + - col1 + - - col0 * ( + ( + col2 ) ) AS col2 FROM tab1 AS cor0
----
4882
5010
6141

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + - 77 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1219
SELECT DISTINCT - COUNT( DISTINCT - 64 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1219
SELECT DISTINCT - COUNT ( DISTINCT - 64 ) FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1220
SELECT - MIN( ALL 54 ) FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-1220
SELECT - MIN ( ALL 54 ) FROM tab2
----
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-1221
SELECT ALL COUNT( * ) * COUNT( * ) + 35 * - 79 FROM tab0 AS cor0
----
-2756

skipif mysql # not compatible
query I rowsort label-1221
SELECT ALL COUNT ( * ) * COUNT ( * ) + 35 * - 79 FROM tab0 AS cor0
----
-2756

onlyif mysql # aggregate syntax: 
query I rowsort label-1222
SELECT ALL - + 45 - + MAX( + - col0 ) col1 FROM tab1 cor0
----
6

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

query II rowsort
SELECT DISTINCT + col1 - - - col0 * col0, col0 FROM tab0 AS cor0
----
-144
15
-7548
87
-9408
97

query I rowsort
SELECT 66 + + 14 FROM tab0
----
80
80
80

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT - COUNT( * ) + + + ( COUNT( * ) ) FROM tab1
----
0

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1227
SELECT - ( 62 ) DIV col0 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-1227
SELECT - ( 62 ) / col0 FROM tab0
----
-4
0
0

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

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

query I rowsort
SELECT 15 * - col1 AS col2 FROM tab1
----
-210
-705
-75

query I rowsort
SELECT col2 * + 11 AS col0 FROM tab1
----
1056
649
748

query I rowsort
SELECT DISTINCT col2 * - 95 AS col1 FROM tab0
----
-4465
-9405
-950

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

query II rowsort
SELECT ALL ( col1 ) AS col2, - col1 FROM tab2
----
51
-51
67
-67
77
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1235
SELECT DISTINCT ( + 4 ) * - 91 * - 5 + - + COUNT( * ) AS col1 FROM tab1
----
1817

skipif mysql # not compatible
query I rowsort label-1235
SELECT DISTINCT ( + 4 ) * - 91 * - 5 + - + COUNT ( * ) AS col1 FROM tab1
----
1817

query I rowsort
SELECT DISTINCT ( 36 ) AS col2 FROM tab2 cor0
----
36

query I rowsort
SELECT ALL + 2 * - - 23 FROM tab1 AS cor0
----
46
46
46

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT - 40 DIV - - 90 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1239
SELECT - 40 / - - 90 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1240
SELECT + COUNT( * ) DIV + - 82 - - 39 FROM tab0 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-1240
SELECT + COUNT ( * ) / + - 82 - - 39 FROM tab0 AS cor0
----
39

query I rowsort
SELECT - - 94 + - col2 - - - col1 AS col1 FROM tab2 AS cor0
----
-23
-31
20

query I rowsort
SELECT - - 42 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

query I rowsort
SELECT ALL + 8 + - col0 FROM tab2 AS cor0
----
-38
-56
-67

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1246
SELECT DISTINCT COUNT( * ) + - + 83 FROM tab1 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-1246
SELECT DISTINCT COUNT ( * ) + - + 83 FROM tab1 AS cor0
----
-80

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 87 - - + col2 NOT BETWEEN col1 AND + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 68 - - - col1 AS col2 FROM tab2 AS cor0
----
-9
1
17

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1249
SELECT ALL ( 86 ) DIV + 99 + COUNT( + - col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1249
SELECT ALL ( 86 ) / + 99 + COUNT ( + - col0 ) col0 FROM tab0
----
3

query II rowsort
SELECT ALL col0, 11 FROM tab0
----
15
11
87
11
97
11

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1252
SELECT + COUNT( * ) + - - ( - ( 34 ) ) FROM tab0 WHERE + col2 IS NULL
----
-34

skipif mysql # not compatible
query I rowsort label-1252
SELECT + COUNT ( * ) + - - ( - ( 34 ) ) FROM tab0 WHERE + col2 IS NULL
----
-34

query I rowsort
SELECT - - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + 75 * + col1 <> - 98
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1255
SELECT MIN( - CAST( - + 39 AS SIGNED ) ) AS col2, COUNT( + col1 ) AS col1 FROM tab0 cor0
----
39
3

skipif mysql # not compatible
query II rowsort label-1255
SELECT MIN ( - CAST ( - + 39 AS INTEGER ) ) AS col2, COUNT ( + col1 ) AS col1 FROM tab0 cor0
----
39
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1256
SELECT DISTINCT - ( - + MAX( + 35 ) ) AS col0 FROM tab1, tab2 cor0
----
35

skipif mysql # not compatible
query I rowsort label-1256
SELECT DISTINCT - ( - + MAX ( + 35 ) ) AS col0 FROM tab1, tab2 cor0
----
35

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1257
SELECT 15 * + + CAST( + col1 AS SIGNED ) FROM tab2 cor0
----
1005
1155
765

skipif mysql # not compatible
query I rowsort label-1257
SELECT 15 * + + CAST ( + col1 AS INTEGER ) FROM tab2 cor0
----
1005
1155
765

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 89 * - col1 + 92 / - - col2 * + 52 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query II rowsort
SELECT - col0 + + + ( 61 ) + + col0 + col2, + 20 * + + 57 AS col1 FROM tab2
----
101
1140
119
1140
84
1140

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1261
SELECT + 99 AS col1 FROM tab1 WHERE - col1 + - col1 + - - col2 <> + 88 * - 60 - + + ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-1261
SELECT + 99 AS col1 FROM tab1 WHERE - col1 + - col1 + - - col2 <> + 88 * - 60 - + + ( + CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 * - + 70 + - 12 AS col2 FROM tab1
----
-3582
-5962
-6382

query I rowsort
SELECT ( - ( + 45 ) ) + col0 FROM tab2
----
1
19
30

query I rowsort
SELECT DISTINCT - col1 * col1 + - col1 AS col1 FROM tab0
----
-2
-462
-6642

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1266
SELECT DISTINCT + - MIN( DISTINCT + 67 ) FROM tab2 AS cor0 WHERE NULL <= col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1266
SELECT DISTINCT + - MIN ( DISTINCT + 67 ) FROM tab2 AS cor0 WHERE NULL <= col0
----
NULL

query I rowsort
SELECT - - 85 + col2 + - - col0 FROM tab2 AS cor0
----
154
189
218

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1268
SELECT ALL - 52 AS col0, - col0 * - 9 * + CAST( NULL AS SIGNED ) + - 9 FROM tab2 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

skipif mysql # not compatible
query II rowsort label-1268
SELECT ALL - 52 AS col0, - col0 * - 9 * + CAST ( NULL AS INTEGER ) + - 9 FROM tab2 AS cor0
----
-52
NULL
-52
NULL
-52
NULL

query II rowsort
SELECT + - col0 * + ( + - col1 ) AS col2, - col1 AS col1 FROM tab2 AS cor0
----
2346
-51
4928
-77
5025
-67

query I rowsort
SELECT DISTINCT - + 83 + - 72 - - col1 AS col2 FROM tab0 cor0
----
-134
-154
-74

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

skipif mysql # not compatible
query I rowsort label-1271
SELECT DISTINCT - CAST ( + + col2 AS INTEGER ) AS col1 FROM tab2 cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1272
SELECT ALL ( + 36 ) DIV - + COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

skipif mysql # not compatible
query I rowsort label-1272
SELECT ALL ( + 36 ) / - + COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-1273
SELECT 59 - - - COUNT( * ) FROM tab2 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-1273
SELECT 59 - - - COUNT ( * ) FROM tab2 AS cor0
----
56

query II rowsort
SELECT - col2 + + col0 AS col1, col0 FROM tab0 AS cor0
----
-2
97
-32
15
77
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 / - col0 + - + 78 * + - col0 + + ( + col1 ) * - 89 + - col0 IS NULL AND - 69 * - col1 IS NULL
----

query I rowsort
SELECT + + 22 + col0 FROM tab2 AS cor0
----
68
86
97

query II rowsort
SELECT - + 77 + - 7 AS col1, - 69 AS col1 FROM tab1 AS cor0
----
-84
-69
-84
-69
-84
-69

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

skipif mysql # not compatible
query I rowsort label-1278
SELECT - 27 * - COUNT ( * ) FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1279
SELECT + SUM( ALL - - 66 ) AS col0 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-1279
SELECT + SUM ( ALL - - 66 ) AS col0 FROM tab2
----
198

query I rowsort
SELECT - ( + - col2 ) * + + col0 + - - col0 FROM tab0 WHERE NOT NULL = NULL
----

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

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

query I rowsort
SELECT + 61 * - + 43 AS col1 FROM tab1
----
-2623
-2623
-2623

query II rowsort
SELECT col1, col2 FROM tab0 WHERE NOT ( NOT ( NULL ) IS NULL )
----
1
99
21
10
81
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * 11 col0 FROM tab1 AS cor0
----
154
517
55

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 > + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1286
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 + + - 77 + + + 54 + - col1 + - CAST( + col1 AS SIGNED ), + 80, col2, + col2 * + - 67, - - 3, - + 60 )
----

skipif mysql # not compatible
query III rowsort label-1286
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( + col0 + + - 77 + + + 54 + - col1 + - CAST ( + col1 AS INTEGER ), + 80, col2, + col2 * + - 67, - - 3, - + 60 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 * + - 22 IS NOT NULL
----

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

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

query II rowsort
SELECT - 31, + col0 AS col1 FROM tab2
----
-31
46
-31
64
-31
75

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

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

query I rowsort
SELECT DISTINCT 46 * 36 AS col1 FROM tab2
----
1656

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + ( - 9 ) col2 FROM tab0 AS cor0 WHERE NOT + ( - + col2 ) + - ( - + col1 ) <= 4
----
12
72

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1293
SELECT DISTINCT - 8 DIV - CAST( + col1 AS SIGNED ) + - - col1 + + + col2 FROM tab0 cor0
----
108
128
31

skipif mysql # not compatible
query I rowsort label-1293
SELECT DISTINCT - 8 / - CAST ( + col1 AS INTEGER ) + - - col1 + + + col2 FROM tab0 cor0
----
108
128
31

query I rowsort
SELECT - 44 + col2 AS col1 FROM tab0 cor0
----
-34
3
55

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT col1 <= - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1297
SELECT DISTINCT + col0 * + CAST( - col2 AS SIGNED ) * + + col0 * + + col2 FROM tab0 AS cor0
----
-497025
-756900
-92217609

skipif mysql # not compatible
query I rowsort label-1297
SELECT DISTINCT + col0 * + CAST ( - col2 AS INTEGER ) * + + col0 * + + col2 FROM tab0 AS cor0
----
-497025
-756900
-92217609

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

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

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

query I rowsort
SELECT col0 * + 32 FROM tab1 AS cor0
----
1632
2720
2912

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1302
SELECT CAST( NULL AS DECIMAL ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1302
SELECT CAST ( NULL AS REAL ) / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col2 + + - col2 AS col2 FROM tab1
----
-118
-136
-192

query I rowsort
SELECT DISTINCT col0 * - - col2 + + + col0 FROM tab1
----
4947
5100
6279

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1306
SELECT + - 32 * 42 * 42 + - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-56445

skipif mysql # not compatible
query I rowsort label-1306
SELECT + - 32 * 42 * 42 + - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-56445

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1307
SELECT DISTINCT - COUNT( * ) * 47 DIV + MAX( - col1 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2

skipif mysql # not compatible
query I rowsort label-1307
SELECT DISTINCT - COUNT ( * ) * 47 / + MAX ( - col1 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
2

query I rowsort
SELECT DISTINCT - col1 + + 8 AS col2 FROM tab2
----
-43
-59
-69

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 63 + - col1 - + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1311
SELECT DISTINCT + col2 DIV 18 + + 56 FROM tab1 AS cor0
----
59
61

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT + col2 / 18 + + 56 FROM tab1 AS cor0
----
59
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1312
SELECT MAX( + 57 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
57

skipif mysql # not compatible
query I rowsort label-1312
SELECT MAX ( + 57 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
57

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

skipif mysql # not compatible
query I rowsort label-1313
SELECT ALL + - SUM ( DISTINCT + + col0 ) AS col2 FROM tab1 AS cor0
----
-227

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1316
SELECT ALL + col0, col0 DIV - col2 FROM tab0
----
15
0
87
-8
97
0

skipif mysql # not compatible
query II rowsort label-1316
SELECT ALL + col0, col0 / - col2 FROM tab0
----
15
0
87
-8
97
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1318
SELECT + CAST( col1 AS SIGNED ) * + + 37 FROM tab1
----
1739
185
518

skipif mysql # not compatible
query I rowsort label-1318
SELECT + CAST ( col1 AS INTEGER ) * + + 37 FROM tab1
----
1739
185
518

query III rowsort
SELECT col1, + col2, + - col2 + 42 FROM tab2
----
9 values hashing to d3095ddb56c6d7289767c5a295cdc9fb

query II rowsort
SELECT + + 35 + col1 AS col0, + col0 - - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1323
SELECT - 85 * - + SUM( + 70 ) FROM tab2 AS cor0
----
17850

skipif mysql # not compatible
query I rowsort label-1323
SELECT - 85 * - + SUM ( + 70 ) FROM tab2 AS cor0
----
17850

query I rowsort
SELECT + + 75 * 27 * - + col0 AS col0 FROM tab0 AS cor0
----
-176175
-196425
-30375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 25 col1, 29 AS col2 FROM tab0 cor0
----
25
29
25
29
25
29

query I rowsort
SELECT ALL - + 77 AS col1 FROM tab0 cor0 WHERE NOT + 6 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1327
SELECT ALL + + CAST( - col2 AS SIGNED ) * CAST( - + col0 AS SIGNED ) * - col1 AS col1 FROM tab1 cor0
----
-25075
-290836
-68544

skipif mysql # not compatible
query I rowsort label-1327
SELECT ALL + + CAST ( - col2 AS INTEGER ) * CAST ( - + col0 AS INTEGER ) * - col1 AS col1 FROM tab1 cor0
----
-25075
-290836
-68544

query I rowsort
SELECT + + ( - 77 ) * - 90 FROM tab0 AS cor0
----
6930
6930
6930

onlyif mysql # aggregate syntax: 
query I rowsort label-1329
SELECT DISTINCT MAX( - - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1329
SELECT DISTINCT MAX ( - - col2 ) FROM tab1 AS cor0
----
96

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

query I rowsort
SELECT + 64 + + - col1 + 67 * 55 + - 67 FROM tab2
----
3605
3615
3631

onlyif mysql # aggregate syntax: 
query II rowsort label-1332
SELECT DISTINCT + 17 + + ( - COUNT( * ) ) col0, - COUNT( 52 ) FROM tab0
----
14
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1332
SELECT DISTINCT + 17 + + ( - COUNT ( * ) ) col0, - COUNT ( 52 ) FROM tab0
----
14
-3

query I rowsort
SELECT ALL + 96 * col2 + col2 * + col0 AS col1 FROM tab2
----
3266
6400
9918

query I rowsort
SELECT + 49 + 57 AS col1 FROM tab2
----
106
106
106

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 19 ) + - ( - col0 ) col0 FROM tab2
----
65
83
94

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

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

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE col1 <= 35
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 43 * + col2 - - + 44 AS col1, - col2 col1 FROM tab1 cor0
----
-2493
-59
-2880
-68
-4084
-96

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

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

query I rowsort
SELECT 90 + - 97 FROM tab1
----
-7
-7
-7

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

query I rowsort
SELECT ( col1 ) + + col2 * col2 FROM tab0
----
121
2290
9802

onlyif mysql # DIV for integer division: 
query I rowsort label-1343
SELECT DISTINCT - col0 DIV col2 + 46 AS col2 FROM tab1
----
45
46

skipif mysql # not compatible
query I rowsort label-1343
SELECT DISTINCT - col0 / col2 + 46 AS col2 FROM tab1
----
45
46

onlyif mysql # DIV for integer division: 
query I rowsort label-1344
SELECT 96 DIV 1 FROM tab2
----
96
96
96

skipif mysql # not compatible
query I rowsort label-1344
SELECT 96 / 1 FROM tab2
----
96
96
96

query I rowsort
SELECT DISTINCT col2 - col0 * + col0 AS col1 FROM tab1
----
-2505
-7166
-8213

onlyif mysql # aggregate syntax: 
query I rowsort label-1346
SELECT ALL - COUNT( DISTINCT + col2 ) * COUNT( * ) AS col1 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-1346
SELECT ALL - COUNT ( DISTINCT + col2 ) * COUNT ( * ) AS col1 FROM tab1
----
-9

query I rowsort
SELECT ALL - col1 + col0 * col0 AS col2 FROM tab0
----
144
7548
9408

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1349
SELECT col2 * + CAST( + col2 AS SIGNED ) + + col0 * + 88 FROM tab0
----
18337
3529
7756

skipif mysql # not compatible
query I rowsort label-1349
SELECT col2 * + CAST ( + col2 AS INTEGER ) + + col0 * + 88 FROM tab0
----
18337
3529
7756

query I rowsort
SELECT col0 * col1 - + col0 FROM tab2
----
2300
4864
4950

query I rowsort
SELECT - 19 + col2 FROM tab2 WHERE col1 NOT BETWEEN 94 + + col1 AND ( col0 )
----
21
39
4

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

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

query III rowsort
SELECT * FROM tab2 WHERE 34 + + 6 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1355
SELECT + COUNT( * ) FROM tab0 WHERE NOT + col0 - + col0 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1355
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + col0 - + col0 = NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT ( - CAST( MAX( - 21 ) AS SIGNED ) ) + COUNT( * ) AS col0 FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-1356
SELECT ( - CAST ( MAX ( - 21 ) AS INTEGER ) ) + COUNT ( * ) AS col0 FROM tab1
----
24

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab1 WHERE NOT NULL < col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1358
SELECT ALL - SUM( 80 ) - 30 AS col2 FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-1358
SELECT ALL - SUM ( 80 ) - 30 AS col2 FROM tab2
----
-270

query I rowsort
SELECT col1 * - 69 - + 21 AS col0 FROM tab0
----
-1470
-5610
-90

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1360
SELECT * FROM tab0 WHERE + col2 * - ( col1 ) NOT BETWEEN + CAST( - col0 AS DECIMAL ) AND - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1360
SELECT * FROM tab0 WHERE + col2 * - ( col1 ) NOT BETWEEN + CAST ( - col0 AS REAL ) AND - 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1362
SELECT + 88 DIV - col2 AS col1 FROM tab0 cor0
----
-1
-8
0

skipif mysql # not compatible
query I rowsort label-1362
SELECT + 88 / - col2 AS col1 FROM tab0 cor0
----
-1
-8
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1363
SELECT + 54 DIV col2 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-1363
SELECT + 54 / col2 FROM tab0 cor0
----
0
1
5

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

query I rowsort
SELECT DISTINCT 7 + 42 AS col1 FROM tab2
----
49

query I rowsort
SELECT DISTINCT - col2 + 69 AS col2 FROM tab1 cor0
----
-27
1
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT ALL COUNT( * ) - + 22 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 * - 12 ) < ( NULL )
----
-22

skipif mysql # not compatible
query I rowsort label-1367
SELECT ALL COUNT ( * ) - + 22 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 * - 12 ) < ( NULL )
----
-22

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <= - col2 * - 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1370
SELECT 99 DIV - col2 FROM tab0 AS cor0
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-1370
SELECT 99 / - col2 FROM tab0 AS cor0
----
-1
-2
-9

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

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

query I rowsort
SELECT ALL - + col1 * 39 FROM tab0 AS cor0
----
-3159
-39
-819

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 >= ( 66 + col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT 16 + col2 FROM tab0 WHERE col2 IN ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1377
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col2 FROM tab0 WHERE NOT - col2 < col1 * + col2 + + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1377
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col2 FROM tab0 WHERE NOT - col2 < col1 * + col2 + + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1378
SELECT DISTINCT - 75 * + COUNT( * ) FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-1378
SELECT DISTINCT - 75 * + COUNT ( * ) FROM tab2
----
-225

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

query I rowsort
SELECT col0 * + col1 FROM tab0 WHERE NULL NOT IN ( 2 )
----

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

query I rowsort
SELECT ALL + col1 * + col1 + col1 FROM tab0 WHERE ( - 61 - 84 ) IS NULL
----

query I rowsort
SELECT 91 - col1 FROM tab1 WHERE ( 67 ) - col0 IS NOT NULL
----
44
77
86

query I rowsort
SELECT DISTINCT - col2 * + col0 + + col1 * 54 FROM tab2
----
-732
1598
1696

onlyif mysql # aggregate syntax: 
query I rowsort label-1385
SELECT + 97 * - + 77 + + COUNT( * ) col2 FROM tab0 AS cor0
----
-7466

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1385
SELECT + 97 * - + 77 + + COUNT ( * ) col2 FROM tab0 AS cor0
----
-7466

query I rowsort
SELECT + 34 + + 41 + - 55 FROM tab0 AS cor0
----
20
20
20

query I rowsort
SELECT ALL 15 * - + col1 FROM tab1 AS cor0
----
-210
-705
-75

query I rowsort
SELECT - - 81 + + col1 AS col2 FROM tab1 AS cor0
----
128
86
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1389
SELECT DISTINCT MIN( - - CAST( - + col2 AS SIGNED ) ) AS col0 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-1389
SELECT DISTINCT MIN ( - - CAST ( - + col2 AS INTEGER ) ) AS col0 FROM tab2
----
-58

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

query I rowsort
SELECT DISTINCT 15 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
15

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

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

query II rowsort
SELECT col1 AS col0, 12 FROM tab0 AS cor0
----
1
12
21
12
81
12

query I rowsort
SELECT ALL + 26 * - col2 AS col1 FROM tab1 AS cor0
----
-1534
-1768
-2496

query I rowsort
SELECT ALL - col2 * col1 * + - 37 FROM tab2 AS cor0
----
113960
143782
43401

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

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

query I rowsort
SELECT - col2 * + - ( + col1 ) + col1 AS col1 FROM tab1 AS cor0
----
1358
300
3243

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

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

query I rowsort
SELECT DISTINCT col1 * + 7 * - col1 FROM tab2
----
-18207
-31423
-41503

onlyif mysql # aggregate syntax: 
query I rowsort label-1401
SELECT + MAX( ALL + 6 ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-1401
SELECT + MAX ( ALL + 6 ) FROM tab1
----
6

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE NOT ( + + col2 * + + col1 ) NOT BETWEEN NULL AND ( col1 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 >= ( + 34 + + col1 )
----

query I rowsort
SELECT + - 2 FROM tab2 AS cor0 WHERE NOT + col1 > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1406
SELECT + 20 + - 71 AS col1, + col0 + + CAST( + col0 AS SIGNED ) * - col2 AS col2 FROM tab2 AS cor0
----
-51
-1012
-51
-2496
-51
-4275

skipif mysql # not compatible
query II rowsort label-1406
SELECT + 20 + - 71 AS col1, + col0 + + CAST ( + col0 AS INTEGER ) * - col2 AS col2 FROM tab2 AS cor0
----
-51
-1012
-51
-2496
-51
-4275

query II rowsort
SELECT DISTINCT 6 * col2 AS col0, - 92 * col0 + - col0 FROM tab2 AS cor0
----
138
-4278
240
-5952
348
-6975

onlyif mysql # DIV for integer division: 
query I rowsort label-1408
SELECT ALL + col0 DIV + col2 - col0 * - 30 * col1 AS col2 FROM tab1 AS cor0
----
12751
128311
21420

skipif mysql # not compatible
query I rowsort label-1408
SELECT ALL + col0 / + col2 - col0 * - 30 * col1 AS col2 FROM tab1 AS cor0
----
12751
128311
21420

onlyif mysql # aggregate syntax: 
query I rowsort label-1409
SELECT DISTINCT MAX( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 61 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1409
SELECT DISTINCT MAX ( ALL col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( 61 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1410
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col2 * - CAST( NULL AS SIGNED ) * - + col0 - col0 * + 16
----

skipif mysql # not compatible
query III rowsort label-1410
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > col2 * - CAST ( NULL AS INTEGER ) * - + col0 - col0 * + 16
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1411
SELECT + COUNT( * ) DIV MAX( ALL + ( - 85 ) ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1411
SELECT + COUNT ( * ) / MAX ( ALL + ( - 85 ) ) AS col2 FROM tab2
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= + col2 * + col2
----

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

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE + col1 * + - col1 + - + 64 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1415
SELECT DISTINCT + SUM( ALL - col0 ) + COUNT( * ) DIV - COUNT( DISTINCT - 42 ) AS col1 FROM tab2 cor0
----
-188

skipif mysql # not compatible
query I rowsort label-1415
SELECT DISTINCT + SUM ( ALL - col0 ) + COUNT ( * ) / - COUNT ( DISTINCT - 42 ) AS col1 FROM tab2 cor0
----
-188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1416
SELECT - ( + 19 ) + CAST( NULL AS SIGNED ) * ( + col0 ) + + col0 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-1416
SELECT - ( + 19 ) + CAST ( NULL AS INTEGER ) * ( + col0 ) + + col0 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL + col1 - - - 89 FROM tab2 AS cor0
----
-12
-22
-38

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

query I rowsort
SELECT DISTINCT + 40 + col2 AS col2 FROM tab2
----
63
80
98

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

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

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

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

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

query II rowsort
SELECT DISTINCT + 16, col0 - col1 AS col2 FROM tab2
----
16
-13
16
-5
16
8

query I rowsort
SELECT DISTINCT - 14 + - + col0 AS col2 FROM tab1
----
-105
-65
-99

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

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

query I rowsort
SELECT + 8 * + 85 - + - col0 FROM tab1 AS cor0
----
731
765
771

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col1 + - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + 49 / - col1 AS col1, 97 AS col2 FROM tab2 WHERE NOT NULL > + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1432
SELECT 25 / - CAST( NULL AS SIGNED ) * - - col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1432
SELECT 25 / - CAST ( NULL AS INTEGER ) * - - col1 FROM tab2
----
NULL
NULL
NULL

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( 52 ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT 40 + CAST( + 1 AS SIGNED ) * col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + CAST( col0 AS SIGNED ) > - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-1436
SELECT 40 + CAST ( + 1 AS INTEGER ) * col1 FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + CAST ( col0 AS INTEGER ) > - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT DISTINCT MIN( - col1 ) FROM tab0 AS cor0 WHERE NOT ( 78 >= ( NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-1437
SELECT DISTINCT MIN ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( 78 >= ( NULL ) )
----
NULL

query I rowsort
SELECT - - 57 AS col1 FROM tab1 AS cor0 WHERE NOT ( + - 2 IS NOT NULL )
----

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 73 <= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT + COUNT( * ) + - + MIN( - col2 ) AS col2 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT + COUNT ( * ) + - + MIN ( - col2 ) AS col2 FROM tab1
----
99

query II rowsort
SELECT + 9, + 38 AS col0 FROM tab1
----
9
38
9
38
9
38

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 > - - 91 OR NOT NULL NOT IN ( - 19 * + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT - SUM( + 80 ) FROM tab1
----
-240

skipif mysql # not compatible
query I rowsort label-1446
SELECT - SUM ( + 80 ) FROM tab1
----
-240

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT ALL COUNT( * ) + SUM( - ( + 5 ) ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-1447
SELECT ALL COUNT ( * ) + SUM ( - ( + 5 ) ) FROM tab0
----
-12

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 4 * - - 64 NOT BETWEEN ( + - 86 ) AND ( NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT + ( - - 83 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 + + col1 col2, - 85 + - col0 AS col0 FROM tab1
----
115
-176
73
-170
82
-136

query I rowsort
SELECT 95 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT DISTINCT + col0 + - - col0 AS col0 FROM tab2
----
128
150
92

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 8 NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT col2 + - 14 + - - col2 + + 11 * + col0 * + + 58 + col1 FROM tab1 AS cor0
----
32730
54339
58227

onlyif mysql # aggregate syntax: 
query I rowsort label-1455
SELECT DISTINCT + - 85 - COUNT( * ) + + 54 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1455
SELECT DISTINCT + - 85 - COUNT ( * ) + + 54 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT DISTINCT + ( + + col1 ) * col0 + - 21 FROM tab2 AS cor0
----
2325
4907
5004

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1457
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 + col1 + + 59 NOT BETWEEN + 84 + - - CAST( NULL AS SIGNED ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1457
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 35 + col1 + + 59 NOT BETWEEN + 84 + - - CAST ( NULL AS INTEGER ) AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 - 5 * col0 FROM tab2 AS cor0
----
-179
-243
-308

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

skipif mysql # not compatible
query II rowsort label-1459
SELECT ALL + col0, + col0 FROM tab1 AS cor0 WHERE 45 * + CAST ( NULL AS INTEGER ) IS NULL
----
51
51
85
85
91
91

query I rowsort
SELECT col0 * 3 * + - col1 * + + 77 FROM tab1 AS cor0
----
-164934
-98175
-987987

query I rowsort
SELECT DISTINCT 46 - col0 FROM tab0
----
-41
-51
31

query I rowsort
SELECT - 16 * col2 - - col1 FROM tab1
----
-1041
-1522
-939

query I rowsort
SELECT ALL + col1 * - col0 * - 8 - - + col2 AS col1 FROM tab2
----
18791
39464
40258

onlyif mysql # aggregate syntax: 
query II rowsort label-1464
SELECT + COUNT( * ) AS col0, 87 AS col1 FROM tab1
----
3
87

skipif mysql # not compatible
query II rowsort label-1464
SELECT + COUNT ( * ) AS col0, 87 AS col1 FROM tab1
----
3
87

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE + col1 * ( col1 ) / 56 / - col2 + + col0 + 71 * - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 45 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
45

query II rowsort
SELECT col1 AS col1, col2 + + - ( + 57 ) FROM tab2
----
51
-34
67
1
77
-17

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

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

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

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

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL IN ( - 19, + col1, - col2 )
----

query I rowsort
SELECT + col2 * + + col2 + 40 AS col2 FROM tab0 AS cor0
----
140
2249
9841

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1473
SELECT - ( ( 67 ) ) - + MIN( - col2 + - col0 ) * SUM( ALL + 30 - col0 ) AS col1 FROM tab1 WHERE - + 44 + col1 + + ( + ( - 38 ) ) > + col1 + CAST( NULL AS SIGNED ) + - + 40
----
NULL

skipif mysql # not compatible
query I rowsort label-1473
SELECT - ( ( 67 ) ) - + MIN ( - col2 + - col0 ) * SUM ( ALL + 30 - col0 ) AS col1 FROM tab1 WHERE - + 44 + col1 + + ( + ( - 38 ) ) > + col1 + CAST ( NULL AS INTEGER ) + - + 40
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-1474
SELECT col0 + - col0 AS col0, + col1 DIV + col1 AS col2 FROM tab0
----
0
1
0
1
0
1

skipif mysql # not compatible
query II rowsort label-1474
SELECT col0 + - col0 AS col0, + col1 / + col1 AS col2 FROM tab0
----
0
1
0
1
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT DISTINCT - + SUM( 16 ) FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-1475
SELECT DISTINCT - + SUM ( 16 ) FROM tab2 AS cor0
----
-48

query I rowsort
SELECT col2 / col2 AS col2 FROM tab0 WHERE NULL = - + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1477
SELECT ( - + 38 ) DIV + + col1 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1477
SELECT ( - + 38 ) / + + col1 AS col1 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT 85 - + COUNT( * ) AS col1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-1478
SELECT 85 - + COUNT ( * ) AS col1 FROM tab0
----
82

query I rowsort
SELECT ALL + 47 + col2 FROM tab2 AS cor0
----
105
70
87

onlyif mysql # DIV for integer division: 
query I rowsort label-1480
SELECT ALL - + col1 * - + col1 - + 30 DIV + col2 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - - col0 + - 94 AND 11
----
2209

skipif mysql # not compatible
query I rowsort label-1480
SELECT ALL - + col1 * - + col1 - + 30 / + col2 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - - col0 + - 94 AND 11
----
2209

query I rowsort
SELECT ALL 27 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
27
27
27

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1483
SELECT ALL - 84 - + 70 DIV + SUM( - + 4 ) FROM tab1 cor0
----
-79

skipif mysql # not compatible
query I rowsort label-1483
SELECT ALL - 84 - + 70 / + SUM ( - + 4 ) FROM tab1 cor0
----
-79

query I rowsort
SELECT - + col2 + - 94 AS col2 FROM tab1 AS cor0
----
-153
-162
-190

query I rowsort
SELECT DISTINCT ( + col0 ) - + + col2 * - col0 FROM tab0
----
720
957
9700

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1487
SELECT ALL - CAST ( NULL AS INTEGER ) / + 34 col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 * + - 71 FROM tab1
----
-3621
-6035
-6461

onlyif mysql # DIV for integer division: 
query I rowsort label-1489
SELECT + 77 DIV - - 16 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-1489
SELECT + 77 / - - 16 FROM tab2
----
4
4
4

onlyif mysql # DIV for integer division: 
query I rowsort label-1490
SELECT DISTINCT - 18 DIV - 19 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1490
SELECT DISTINCT - 18 / - 19 FROM tab0
----
0

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

query II rowsort
SELECT ALL - col1, + 95 AS col2 FROM tab2
----
-51
95
-67
95
-77
95

onlyif mysql # aggregate syntax: 
query I rowsort label-1493
SELECT + MIN( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 3 IS NULL
----
-91

skipif mysql # not compatible
query I rowsort label-1493
SELECT + MIN ( DISTINCT - col0 ) AS col0 FROM tab1 AS cor0 WHERE NOT + 3 IS NULL
----
-91

query II rowsort
SELECT DISTINCT + + col2 AS col2, col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1497
SELECT - SUM( - - 56 ) AS col0 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-1497
SELECT - SUM ( - - 56 ) AS col0 FROM tab1 AS cor0
----
-168

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

skipif mysql # not compatible
query II rowsort label-1498
SELECT DISTINCT COUNT ( * ) AS col1, 76 AS col1 FROM tab0 AS cor0
----
3
76

query I rowsort
SELECT DISTINCT ( - 62 ) * + 63 AS col2 FROM tab1
----
-3906

onlyif mysql # aggregate syntax: 
query I rowsort label-1500
SELECT DISTINCT 49 + COUNT( * ) FROM tab1
----
52

skipif mysql # not compatible
query I rowsort label-1500
SELECT DISTINCT 49 + COUNT ( * ) FROM tab1
----
52

query III rowsort
SELECT DISTINCT 32 AS col0, 14 AS col0, + 31 * - col1 * col1 AS col2 FROM tab1
----
9 values hashing to 78b8b088a6aef9eeef6bd149bd8bf686

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 82 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 col1, col0 AS col1 FROM tab2 WHERE - 8 NOT IN ( + col1 * col0 )
----
-46
46
-64
64
-75
75

query I rowsort
SELECT DISTINCT 47 + 82 AS col2 FROM tab2
----
129

query I rowsort
SELECT + col2 + - 36 FROM tab0 AS cor0
----
-26
11
63

query I rowsort
SELECT - 96 * col0 + - + 54 + + + 75 FROM tab2 AS cor0
----
-4395
-6123
-7179

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + col2 + + 71 - 72 * - 17 col1 FROM tab1 AS cor0
----
1439
1442
1454

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1509
SELECT DISTINCT + COUNT( * ) * - - 34 AS col0, + COUNT( * ) * - - 14 FROM tab0
----
102
42

skipif mysql # not compatible
query II rowsort label-1509
SELECT DISTINCT + COUNT ( * ) * - - 34 AS col0, + COUNT ( * ) * - - 14 FROM tab0
----
102
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1510
SELECT DISTINCT - + MAX( DISTINCT + col0 ) + + + COUNT( * ) FROM tab2 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-1510
SELECT DISTINCT - + MAX ( DISTINCT + col0 ) + + + COUNT ( * ) FROM tab2 AS cor0
----
-72

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

skipif mysql # not compatible
query I rowsort label-1511
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) + + MIN ( - + 89 ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( 16 )
----

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

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

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

query I rowsort
SELECT ALL + 84 * - col0 AS col1 FROM tab1
----
-4284
-7140
-7644

query III rowsort
SELECT * FROM tab2 WHERE NOT + 21 - + - ( - 75 ) BETWEEN ( + col2 * col1 + + + col2 - + col1 + - col0 + + col2 ) AND 1 * + + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1517
SELECT MIN( ALL + - col0 ) DIV - COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-1517
SELECT MIN ( ALL + - col0 ) / - COUNT ( * ) FROM tab0
----
32

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1520
SELECT + 57 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
57
-3

skipif mysql # not compatible
query II rowsort label-1520
SELECT + 57 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
57
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1523
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----
0

skipif mysql # not compatible
query I rowsort label-1523
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= col0
----
0

query I rowsort
SELECT ALL - ( ( col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1525
SELECT DISTINCT - MIN ( col0 ) col2 FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + col2 * - 53 FROM tab2 AS cor0
----
-1219
-2120
-3074

onlyif mysql # DIV for integer division: 
query II rowsort label-1527
SELECT + col2 DIV - + col0, + col1 * + 23 AS col1 FROM tab2 AS cor0
----
0
1173
0
1541
0
1771

skipif mysql # not compatible
query II rowsort label-1527
SELECT + col2 / - + col0, + col1 * + 23 AS col1 FROM tab2 AS cor0
----
0
1173
0
1541
0
1771

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT + CAST( NULL AS SIGNED ) + + AVG ( + 74 ) AS col0 FROM tab1 AS cor0 WHERE - col1 NOT IN ( col2 + - ( - - col2 ) + 35 * - + col0 + col2, + 97 * + + col0 + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT + CAST ( NULL AS INTEGER ) + + AVG ( + 74 ) AS col0 FROM tab1 AS cor0 WHERE - col1 NOT IN ( col2 + - ( - - col2 ) + 35 * - + col0 + col2, + 97 * + + col0 + col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( - 18 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col2 + - + 59 col2 FROM tab0
----
646
811
9544

query II rowsort
SELECT ( + + 76 ) + 93 AS col0, - 66 AS col0 FROM tab1
----
169
-66
169
-66
169
-66

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

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

query II rowsort
SELECT 73 + col0 * + 57 AS col2, col2 + - + col0 AS col1 FROM tab0
----
5032
-77
5602
2
928
32

query I rowsort
SELECT ALL - 18 + ( + + col0 ) + col0 FROM tab1 AS cor0
----
152
164
84

query I rowsort
SELECT DISTINCT + col1 * 87 FROM tab2 AS cor0
----
4437
5829
6699

query II rowsort
SELECT ALL 56 AS col2, col2 FROM tab1
----
56
59
56
68
56
96

onlyif mysql # DIV for integer division: 
query I rowsort label-1537
SELECT + col0 DIV - 3 + + col0 FROM tab1
----
34
57
61

skipif mysql # not compatible
query I rowsort label-1537
SELECT + col0 / - 3 + + col0 FROM tab1
----
34
57
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT ALL + 78 + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-1539
SELECT ALL + 78 + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
75

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

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <> ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * col2 col1 FROM tab2 cor0
----
-1600
-3364
-529

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1545
SELECT DISTINCT - COUNT( * ) * + 8 col0 FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1545
SELECT DISTINCT - COUNT ( * ) * + 8 col0 FROM tab1 AS cor0
----
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-1546
SELECT DISTINCT - - col0 DIV + - 99 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1546
SELECT DISTINCT - - col0 / + - 99 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1547
SELECT - col0 * - - CAST( CAST( 10 AS SIGNED ) AS SIGNED ) AS col2 FROM tab2
----
-460
-640
-750

skipif mysql # not compatible
query I rowsort label-1547
SELECT - col0 * - - CAST ( CAST ( 10 AS INTEGER ) AS INTEGER ) AS col2 FROM tab2
----
-460
-640
-750

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

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

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

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

query I rowsort
SELECT + col2 * + + 43 * + col0 AS col2 FROM tab0
----
30315
37410
412929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col1 col2, 73 AS col1 FROM tab0
----
-1
73
-441
73
-6561
73

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1554
SELECT - - 84 * + + SUM( col0 ) AS col0, CAST( NULL AS SIGNED ) * + - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
16716
NULL

skipif mysql # not compatible
query II rowsort label-1554
SELECT - - 84 * + + SUM ( col0 ) AS col0, CAST ( NULL AS INTEGER ) * + - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
16716
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1555
SELECT ALL - - col2 DIV - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1555
SELECT ALL - - col2 / - col2 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1556
SELECT ALL + COUNT( * ) DIV - 63 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL + COUNT ( * ) / - 63 FROM tab1 AS cor0
----
0

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

query I rowsort
SELECT DISTINCT + + 83 * - ( - + 57 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
4731

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + 80 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1561
SELECT DISTINCT - ( + MAX( DISTINCT - ( + - col1 ) ) ) * - 7 * + MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1561
SELECT DISTINCT - ( + MAX ( DISTINCT - ( + - col1 ) ) ) * - 7 * + MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) < NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1562
SELECT - 63 DIV 55 * col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1562
SELECT - 63 / 55 * col1 AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT 99 * - col1 FROM tab0 AS cor0
----
-2079
-8019
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-1564
SELECT + + ( - col2 ) DIV ( + ( + 83 ) ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1564
SELECT + + ( - col2 ) / ( + ( + 83 ) ) AS col1 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1567
SELECT DISTINCT CAST( 95 AS SIGNED ) * - col0 - - 92 + 7 + + 58 * 39 FROM tab1
----
-2484
-5714
-6284

skipif mysql # not compatible
query I rowsort label-1567
SELECT DISTINCT CAST ( 95 AS INTEGER ) * - col0 - - 92 + 7 + + 58 * 39 FROM tab1
----
-2484
-5714
-6284

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1568
SELECT DISTINCT 32 / - col2 * CAST( NULL AS DECIMAL ) + - col1 * + - 93 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1568
SELECT DISTINCT 32 / - col2 * CAST ( NULL AS REAL ) + - col1 * + - 93 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 + col1 col2 FROM tab0 AS cor0
----
108
96
98

query I rowsort
SELECT + col1 + ( + - col1 ) AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - - col1 - + col2 FROM tab2 AS cor0
----
28
37
9

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1573
SELECT + 79 + + + col0, 70 DIV - + 96 + - + col2 AS col2 FROM tab0 AS cor0
----
166
-10
176
-99
94
-47

skipif mysql # not compatible
query II rowsort label-1573
SELECT + 79 + + + col0, 70 / - + 96 + - + col2 AS col2 FROM tab0 AS cor0
----
166
-10
176
-99
94
-47

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1575
SELECT ALL + MIN( + - 71 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-71

skipif mysql # not compatible
query I rowsort label-1575
SELECT ALL + MIN ( + - 71 ) FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-71

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

skipif mysql # not compatible
query I rowsort label-1576
SELECT - ( + SUM ( DISTINCT + - col0 ) ) * - + 71 - + COUNT ( * ) FROM tab2 AS cor0
----
-13138

onlyif mysql # aggregate syntax: 
query I rowsort label-1577
SELECT + SUM( - 72 ) FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-1577
SELECT + SUM ( - 72 ) FROM tab2 AS cor0
----
-216

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

skipif mysql # not compatible
query I rowsort label-1578
SELECT MIN ( - 97 ) FROM tab0 AS cor0
----
-97

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

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

query I rowsort
SELECT + col1 FROM tab1 WHERE NOT NULL = col0
----

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

query I rowsort
SELECT DISTINCT - col0 * - + ( - col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

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

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

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

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

query I rowsort
SELECT + col1 * 82 AS col0 FROM tab0
----
1722
6642
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * col2 col1 FROM tab1
----
-1020
-1440
-885

query I rowsort
SELECT ALL - col2 * - col1 + col1 AS col2 FROM tab2 AS cor0
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-1589
SELECT + + 87 * 40 DIV col2 AS col1 FROM tab2 AS cor0
----
151
60
87

skipif mysql # not compatible
query I rowsort label-1589
SELECT + + 87 * 40 / col2 AS col1 FROM tab2 AS cor0
----
151
60
87

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

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

skipif mysql # not compatible
query I rowsort label-1591
SELECT ALL + CAST ( - col2 AS INTEGER ) AS col0 FROM tab2
----
-23
-40
-58

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 47 + - - col0 col2 FROM tab1 AS cor0
----
132
138
98

query I rowsort
SELECT - ( 66 ) FROM tab2 cor0
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT ALL 41 + + COUNT( * ) FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-1595
SELECT ALL 41 + + COUNT ( * ) FROM tab0 AS cor0
----
44

query III rowsort
SELECT * FROM tab1 cor0 WHERE col0 = - col0 * col2 + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1597
SELECT - 16 + - ( + - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
35
69
75

skipif mysql # not compatible
query I rowsort label-1597
SELECT - 16 + - ( + - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
35
69
75

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

query I rowsort
SELECT ALL ( col0 ) * + + col2 * + 69 FROM tab0 AS cor0
----
48645
60030
662607

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

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

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

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

query I rowsort
SELECT + col2 + 89 FROM tab1
----
148
157
185

query I rowsort
SELECT ALL + col0 + + - 46 + + col1 AS col2 FROM tab2
----
51
95
96

query I rowsort
SELECT ALL - col0 + + 26 FROM tab2 AS cor0
----
-20
-38
-49

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

query I rowsort
SELECT ALL col2 - - - col2 * - ( col2 ) AS col2 FROM tab2 AS cor0
----
1640
3422
552

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

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

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

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1616
SELECT 13 * + MIN( DISTINCT + col2 ) FROM tab2
----
299

skipif mysql # not compatible
query I rowsort label-1616
SELECT 13 * + MIN ( DISTINCT + col2 ) FROM tab2
----
299

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( + 85 * - 87 ) IS NOT NULL )
----

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

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

query I rowsort
SELECT + 23 * - + col1 FROM tab0
----
-1863
-23
-483

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

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

query I rowsort
SELECT ALL - + 25 * col0 FROM tab0 cor0
----
-2175
-2425
-375

query I rowsort
SELECT + 69 * - ( - 93 ) AS col0 FROM tab2 AS cor0
----
6417
6417
6417

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

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

query II rowsort
SELECT + + 85, + col2 FROM tab1 WHERE + col1 * - - 81 + 38 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( - col2 / - + 97 )
----

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

skipif mysql # not compatible
query I rowsort label-1627
SELECT + - 44 * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
396

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL IN ( - col2, col0 * + + col1, col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1629
SELECT + COUNT( * ) AS col2, + 85 AS col0 FROM tab0 AS cor0
----
3
85

skipif mysql # not compatible
query II rowsort label-1629
SELECT + COUNT ( * ) AS col2, + 85 AS col0 FROM tab0 AS cor0
----
3
85

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1631
SELECT + 94, + COUNT( * ) AS col1 FROM tab1 cor0
----
94
3

skipif mysql # not compatible
query II rowsort label-1631
SELECT + 94, + COUNT ( * ) AS col1 FROM tab1 cor0
----
94
3

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

query I rowsort
SELECT ALL + col2 * + + col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT + col2 * - 43 AS col0 FROM tab1 AS cor0
----
-2537
-2924
-4128

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1635
SELECT DISTINCT - ( - COUNT ( * ) ) - - COUNT ( * ) col1 FROM tab2 AS cor0
----
6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT + - col0 - col0 = 30 * - 54 + ( 77 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 48 * - + 22 AS col1 FROM tab0
----
1056
1056
1056

query I rowsort
SELECT - 28 - col0 AS col0 FROM tab2
----
-103
-74
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + col1, - 79 col2 FROM tab1
----
0
-79

query I rowsort
SELECT col2 * + 72 + - col1 * + col0 AS col0 FROM tab1 AS cor0
----
3823
619
6198

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1644
SELECT - ( + col2 ), + 30 + - 76 * CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1644
SELECT - ( + col2 ), + 30 + - 76 * CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1645
SELECT DISTINCT + + MAX( - - 48 ) AS col1 FROM tab1 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-1645
SELECT DISTINCT + + MAX ( - - 48 ) AS col1 FROM tab1 AS cor0
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 6 * + col0 col0 FROM tab1 AS cor0
----
306
510
546

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 = - 41 + ( col0 )
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 50 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1650
SELECT 86 * + + COUNT( * ) + COUNT( * ) + - + 17 FROM tab1
----
244

skipif mysql # not compatible
query I rowsort label-1650
SELECT 86 * + + COUNT ( * ) + COUNT ( * ) + - + 17 FROM tab1
----
244

query I rowsort
SELECT - 9 * - - col1 + - col2 * + - col2 AS col1 FROM tab2
----
2761
70
907

query I rowsort
SELECT + col1 + ( col0 ) + - 9 AS col2 FROM tab2
----
132
133
88

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1655
SELECT 20 * + + ( col1 ) DIV ( - col1 ) + 5 * + col0 FROM tab2
----
210
300
355

skipif mysql # not compatible
query I rowsort label-1655
SELECT 20 * + + ( col1 ) / ( - col1 ) + 5 * + col0 FROM tab2
----
210
300
355

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1656
SELECT COUNT( * ) * + 72 / + COUNT( * ) + + CAST( NULL AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-1656
SELECT COUNT ( * ) * + 72 / + COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL 94 * + ( - col0 ) FROM tab2
----
-4324
-6016
-7050

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1658
SELECT CAST( NULL AS DECIMAL ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1658
SELECT CAST ( NULL AS REAL ) AS col2 FROM tab0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 60 + + + 26 AS col0 FROM tab0
----
86
86
86

query I rowsort
SELECT ALL + col2 + - ( col1 ) + + col1 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT - - col1 * ( - + col2 ) + + - col0 * - col0 + - + col1 FROM tab1 AS cor0
----
1243
5038
6925

onlyif mysql # DIV for integer division: 
query I rowsort label-1662
SELECT DISTINCT + col2 + 26 - + - col0 DIV - - col1 AS col2 FROM tab2 AS cor0
----
49
66
85

skipif mysql # not compatible
query I rowsort label-1662
SELECT DISTINCT + col2 + 26 - + - col0 / - - col1 AS col2 FROM tab2 AS cor0
----
49
66
85

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1665
SELECT DISTINCT 90 - + - COUNT( * ) + - 58 AS col1 FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT 90 - + - COUNT ( * ) + - 58 AS col1 FROM tab0 AS cor0
----
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT + 45 + + - COUNT( * ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-1666
SELECT + 45 + + - COUNT ( * ) FROM tab2
----
42

query I rowsort
SELECT - - col0 / + col2 AS col0 FROM tab1 WHERE + + col0 IS NULL
----

query I rowsort
SELECT ALL col2 * + 93 * + col2 AS col2 FROM tab1
----
323733
430032
857088

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + + col0 col1 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1670
SELECT 72 AS col0, CAST( NULL AS SIGNED ) FROM tab1
----
72
NULL
72
NULL
72
NULL

skipif mysql # not compatible
query II rowsort label-1670
SELECT 72 AS col0, CAST ( NULL AS INTEGER ) FROM tab1
----
72
NULL
72
NULL
72
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab2 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1673
SELECT ALL - COUNT( * ) * + 28 * + 95 + - 30 FROM tab1 cor0
----
-8010

skipif mysql # not compatible
query I rowsort label-1673
SELECT ALL - COUNT ( * ) * + 28 * + 95 + - 30 FROM tab1 cor0
----
-8010

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 77 + - 99 col0 FROM tab0 AS cor0 WHERE - col2 + + col1 IS NULL
----

query I rowsort
SELECT 9 FROM tab0 AS cor0 WHERE NOT + 7 NOT BETWEEN - col0 * + col1 + + col2 + - + col0 + + col0 AND NULL
----

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

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

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

query I rowsort
SELECT + 36 * - - col1 AS col1 FROM tab1
----
1692
180
504

query III rowsort
SELECT ALL col2 AS col1, + col1 + + col1 * - col0 * col1 * + 43, + - 98 + - col2 AS col1 FROM tab0
----
9 values hashing to 08e082881d7c06791d1c9ecb530ef243

query I rowsort
SELECT col0 FROM tab1 WHERE NOT + col0 / - 68 + + 79 * + 37 / + - col2 IS NULL
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1683
SELECT + col1 col1, + ( col1 ) - - + CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1683
SELECT + col1 col1, + ( col1 ) - - + CAST ( NULL AS REAL ) AS col0 FROM tab0
----
1
NULL
21
NULL
81
NULL

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col2 IS NULL
----
-59
-68
-96

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT NULL = ( NULL )
----

query II rowsort
SELECT - 50 + + - col1 AS col2, + 89 FROM tab0
----
-131
89
-51
89
-71
89

onlyif mysql # aggregate syntax: 
query I rowsort label-1689
SELECT - COUNT( + col0 ) AS col1 FROM tab0 cor0 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-1689
SELECT - COUNT ( + col0 ) AS col1 FROM tab0 cor0 WHERE NULL <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - 29 col0 FROM tab2 AS cor0
----
-52
-69
-87

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 44 <> NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1693
SELECT DISTINCT - col1 * ( - col2 ) + - col1 DIV + ( - 83 ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

skipif mysql # not compatible
query I rowsort label-1693
SELECT DISTINCT - col1 * ( - col2 ) + - col1 / + ( - 83 ) AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1694
SELECT ALL + col0 - + col1 * - CAST( - 40 AS SIGNED ) + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1721
-413
-56

skipif mysql # not compatible
query I rowsort label-1694
SELECT ALL + col0 - + col1 * - CAST ( - 40 AS INTEGER ) + ( col2 ) AS col0 FROM tab1 AS cor0
----
-1721
-413
-56

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27 - - + 93 + - col2, 80 * col2 col1 FROM tab1
----
24
7680
52
5440
61
4720

onlyif mysql # aggregate syntax: 
query I rowsort label-1696
SELECT - 54 - - COUNT( * ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-1696
SELECT - 54 - - COUNT ( * ) FROM tab0
----
-51

query I rowsort
SELECT DISTINCT col0 * - 14 AS col1 FROM tab0
----
-1218
-1358
-210

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

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

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1702
SELECT DISTINCT - COUNT( * ) * + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE CAST( 53 AS SIGNED ) BETWEEN + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1702
SELECT DISTINCT - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE CAST ( 53 AS INTEGER ) BETWEEN + col1 AND NULL
----
0

query II rowsort
SELECT col1 AS col2, + 52 * - col0 + - col1 + + col1 AS col2 FROM tab1 AS cor0
----
14
-2652
47
-4732
5
-4420

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1705
SELECT + - SUM( DISTINCT - col2 ) AS col0, 2 FROM tab0 WHERE NOT col0 + col0 IS NULL
----
156
2

skipif mysql # not compatible
query II rowsort label-1705
SELECT + - SUM ( DISTINCT - col2 ) AS col0, 2 FROM tab0 WHERE NOT col0 + col0 IS NULL
----
156
2

query I rowsort
SELECT ALL + ( 39 ) * + ( + col0 ) FROM tab0 AS cor0
----
3393
3783
585

onlyif mysql # DIV for integer division: 
query I rowsort label-1707
SELECT DISTINCT 70 DIV + col1 + 97 - + + col1 FROM tab2 AS cor0
----
20
31
47

skipif mysql # not compatible
query I rowsort label-1707
SELECT DISTINCT 70 / + col1 + 97 - + + col1 FROM tab2 AS cor0
----
20
31
47

query I rowsort
SELECT + col1 * + + 21 FROM tab0 cor0
----
1701
21
441

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 2 IS NOT NULL
----

query II rowsort
SELECT + col1 * - + col2 AS col2, col2 AS col0 FROM tab2 AS cor0
----
-1173
23
-3080
40
-3886
58

query I rowsort
SELECT DISTINCT - 47 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query II rowsort
SELECT col2, - 9 AS col1 FROM tab0 cor0
----
10
-9
47
-9
99
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1713
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( 57 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1713
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( 57 AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1714
SELECT + CAST( NULL AS SIGNED ) / - COUNT( * ) FROM tab2 WHERE ( col2 * 70 * + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1714
SELECT + CAST ( NULL AS INTEGER ) / - COUNT ( * ) FROM tab2 WHERE ( col2 * 70 * + col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1715
SELECT - 53 DIV - SUM( - 42 ) + - 14 + + COUNT( * ) AS col1 FROM tab1
----
-11

skipif mysql # not compatible
query I rowsort label-1715
SELECT - 53 / - SUM ( - 42 ) + - 14 + + COUNT ( * ) AS col1 FROM tab1
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-1716
SELECT DISTINCT - MIN( ALL + col0 ) FROM tab2 WHERE - col2 * + + col1 IS NOT NULL
----
-46

skipif mysql # not compatible
query I rowsort label-1716
SELECT DISTINCT - MIN ( ALL + col0 ) FROM tab2 WHERE - col2 * + + col1 IS NOT NULL
----
-46

query I rowsort
SELECT ( 88 ) + - 12 - col1 FROM tab2
----
-1
25
9

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1719
SELECT DISTINCT + 93 + - COUNT( * ) FROM tab1 AS cor0
----
90

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1720
SELECT DISTINCT - col0 DIV - 88 col0 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1720
SELECT DISTINCT - col0 / - 88 col0 FROM tab0 AS cor0
----
0
1

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1722
SELECT 16 DIV - MIN( - 15 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1

skipif mysql # not compatible
query I rowsort label-1722
SELECT 16 / - MIN ( - 15 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
1

query I rowsort
SELECT col2 - - col2 * + - col1 * - 56 + + - col0 AS col0 FROM tab2
----
172456
217599
65665

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1725
SELECT DISTINCT 33 - + COUNT( * ) FROM tab1 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1725
SELECT DISTINCT 33 - + COUNT ( * ) FROM tab1 AS cor0
----
30

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

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

query I rowsort
SELECT - + 99 + col1 * ( ( + - 72 ) ) + + ( + - col2 ) FROM tab2 AS cor0
----
-3794
-4981
-5683

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 + - - col1 + - - col2 col1 FROM tab1 AS cor0
----
20
66
71

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

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

query I rowsort
SELECT col0 * - ( - 45 ) * - 17 FROM tab1
----
-39015
-65025
-69615

onlyif mysql # aggregate syntax: 
query I rowsort label-1732
SELECT DISTINCT SUM( DISTINCT + + ( - col1 ) ) * + 67 AS col1 FROM tab2
----
-13065

skipif mysql # not compatible
query I rowsort label-1732
SELECT DISTINCT SUM ( DISTINCT + + ( - col1 ) ) * + 67 AS col1 FROM tab2
----
-13065

query I rowsort
SELECT col1 * ( col0 ) AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1734
SELECT DISTINCT * FROM tab2 WHERE NOT col2 IN ( - + col0, - col0 * col0, - - CAST( NULL AS SIGNED ) * - 69, + ( - col2 ) * - + col2 / + + col1 )
----

skipif mysql # not compatible
query III rowsort label-1734
SELECT DISTINCT * FROM tab2 WHERE NOT col2 IN ( - + col0, - col0 * col0, - - CAST ( NULL AS INTEGER ) * - 69, + ( - col2 ) * - + col2 / + + col1 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1736
SELECT COUNT( * ) + + 46 FROM tab0 cor0
----
49

skipif mysql # not compatible
query I rowsort label-1736
SELECT COUNT ( * ) + + 46 FROM tab0 cor0
----
49

onlyif mysql # aggregate syntax: 
query II rowsort label-1737
SELECT - 15 * + 32 * COUNT( * ) AS col1, - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-1440
-3

skipif mysql # not compatible
query II rowsort label-1737
SELECT - 15 * + 32 * COUNT ( * ) AS col1, - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-1440
-3

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

query I rowsort
SELECT col1 * - + col1 - + 79 + - 93 * - col0 FROM tab0 AS cor0
----
-5245
7571
8941

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT ALL - col2 DIV 78 + - col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-1741
SELECT ALL - col2 / 78 + - col1 FROM tab2
----
-51
-67
-77

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

skipif mysql # not compatible
query I rowsort label-1742
SELECT col2 / - + 45 FROM tab2
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1743
SELECT - col1 DIV + + 69 AS col2 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1743
SELECT - col1 / + + 69 AS col2 FROM tab0
----
-1
0
0

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 23 <> + + col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1747
SELECT - - col2 - + - 52 + - - 75 FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-1747
SELECT - - col2 - + - 52 + - - 75 FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2 + + + col0 * - - col0 AS col0, col2 AS col0 FROM tab1 AS cor0 WHERE ( NOT - - col1 IS NULL )
----
2697
96
7284
59
8349
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 6 col1, + 40 + 23 FROM tab0 AS cor0
----
-6
63
-6
63
-6
63

onlyif mysql # DIV for integer division: 
query I rowsort label-1750
SELECT - 41 + - 6 DIV + 87 FROM tab2 AS cor0
----
-41
-41
-41

skipif mysql # not compatible
query I rowsort label-1750
SELECT - 41 + - 6 / + 87 FROM tab2 AS cor0
----
-41
-41
-41

query I rowsort
SELECT + - 98 * + + col1 + col0 AS col2 FROM tab0 AS cor0
----
-1
-1971
-7923

query I rowsort
SELECT + ( 60 ) * + col0 + 88 FROM tab2
----
2848
3928
4588

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1753
SELECT + + SUM( - + col2 ), SUM( - col0 ) FROM tab2 WHERE + 74 + - col0 + 96 * - ( + col2 ) > - + col1 + - CAST( NULL AS SIGNED ) + + - 80
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1753
SELECT + + SUM ( - + col2 ), SUM ( - col0 ) FROM tab2 WHERE + 74 + - col0 + 96 * - ( + col2 ) > - + col1 + - CAST ( NULL AS INTEGER ) + + - 80
----
NULL
NULL

query I rowsort
SELECT - + 69 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3bd7460efa48c66c072ad5f3c2def7e9

query I rowsort
SELECT - 17 - col2 * + col0 + col0 FROM tab1 WHERE - ( 13 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1756
SELECT ALL + 12 DIV - ( MIN( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1756
SELECT ALL + 12 / - ( MIN ( ALL + col0 ) ) AS col2 FROM tab0 AS cor0
----
0

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1759
SELECT ALL + ( + ( COUNT ( * ) ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT - COUNT( * ) * + 75 FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1760
SELECT - COUNT ( * ) * + 75 FROM tab0
----
-225

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1762
SELECT ALL + col2 AS col1, CAST( NULL AS SIGNED ) / col0 * + - 96 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1762
SELECT ALL + col2 AS col1, CAST ( NULL AS INTEGER ) / col0 * + - 96 FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

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

query III rowsort
SELECT * FROM tab0 WHERE + col2 IN ( - 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1765
SELECT ALL COUNT( * ) FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-1765
SELECT ALL COUNT ( * ) FROM tab0 WHERE ( NULL ) NOT IN ( - col2 )
----
0

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

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

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-1768
SELECT + 84 + + COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-1768
SELECT + 84 + + COUNT ( * ) FROM tab1
----
87

query I rowsort
SELECT DISTINCT ( col1 ) AS col1 FROM tab2 WHERE NOT ( NULL ) = ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1770
SELECT ALL 56 * MIN( col1 ) AS col2 FROM tab1
----
280

skipif mysql # not compatible
query I rowsort label-1770
SELECT ALL 56 * MIN ( col1 ) AS col2 FROM tab1
----
280

onlyif mysql # aggregate syntax: 
query I rowsort label-1771
SELECT ALL MIN( ALL - col0 ) * - COUNT( * ) FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-1771
SELECT ALL MIN ( ALL - col0 ) * - COUNT ( * ) FROM tab1
----
273

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 83 ) + + col0 col0 FROM tab0 WHERE ( NULL ) IS NULL
----
170
180
98

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1775
SELECT COUNT( * ) * 23 + 38 AS col2 FROM tab2
----
107

skipif mysql # not compatible
query I rowsort label-1775
SELECT COUNT ( * ) * 23 + 38 AS col2 FROM tab2
----
107

query I rowsort
SELECT + col0 * col2 + 75 FROM tab1
----
4971
5090
6263

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT IN ( - 24 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1778
SELECT DISTINCT + 4 AS col0 FROM tab1 WHERE NOT ( CAST( + col2 AS SIGNED ) + + col2 * - 62 ) IS NULL
----
4

skipif mysql # not compatible
query I rowsort label-1778
SELECT DISTINCT + 4 AS col0 FROM tab1 WHERE NOT ( CAST ( + col2 AS INTEGER ) + + col2 * - 62 ) IS NULL
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1779
SELECT DISTINCT - MAX( 20 ) FROM tab0
----
-20

skipif mysql # not compatible
query I rowsort label-1779
SELECT DISTINCT - MAX ( 20 ) FROM tab0
----
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1780
SELECT DISTINCT - col0 + + 22 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
-29
-63
-69

skipif mysql # not compatible
query I rowsort label-1780
SELECT DISTINCT - col0 + + 22 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
-29
-63
-69

query I rowsort
SELECT col0 AS col0 FROM tab1 WHERE ( 1 - - 10 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1782
SELECT ALL - MAX( ALL col0 ) col0 FROM tab2
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1782
SELECT ALL - MAX ( ALL col0 ) col0 FROM tab2
----
-75

query I rowsort
SELECT col0 FROM tab2 WHERE ( 3 / col0 ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT + ( - 87 ) - col2 FROM tab0 WHERE NOT - 55 IS NOT NULL
----

query I rowsort
SELECT ( - ( 67 ) ) * - col0 AS col0 FROM tab2
----
3082
4288
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-1786
SELECT ALL - 43 * 69 + SUM( + col1 + col0 ) AS col1 FROM tab1
----
-2674

skipif mysql # not compatible
query I rowsort label-1786
SELECT ALL - 43 * 69 + SUM ( + col1 + col0 ) AS col1 FROM tab1
----
-2674

onlyif mysql # aggregate syntax: 
query I rowsort label-1787
SELECT + 50 + + COUNT( * ) FROM tab0
----
53

skipif mysql # not compatible
query I rowsort label-1787
SELECT + 50 + + COUNT ( * ) FROM tab0
----
53

query I rowsort
SELECT - 66 * col0 AS col0 FROM tab1
----
-3366
-5610
-6006

query I rowsort
SELECT 34 + col1 AS col1 FROM tab0
----
115
35
55

onlyif mysql # aggregate syntax: 
query I rowsort label-1790
SELECT ALL 95 + COUNT( * ) FROM tab1
----
98

skipif mysql # not compatible
query I rowsort label-1790
SELECT ALL 95 + COUNT ( * ) FROM tab1
----
98

query I rowsort
SELECT ALL 29 * 68 AS col2 FROM tab2
----
1972
1972
1972

onlyif mysql # aggregate syntax: 
query I rowsort label-1792
SELECT ALL + ( - 57 ) * MIN( DISTINCT - 35 ) FROM tab2
----
1995

skipif mysql # not compatible
query I rowsort label-1792
SELECT ALL + ( - 57 ) * MIN ( DISTINCT - 35 ) FROM tab2
----
1995

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1794
SELECT ALL COUNT( * ) + 24 AS col1 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-1794
SELECT ALL COUNT ( * ) + 24 AS col1 FROM tab2
----
27

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col1 <> + 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1796
SELECT DISTINCT + ( + 94 ) * COUNT( * ) FROM tab1
----
282

skipif mysql # not compatible
query I rowsort label-1796
SELECT DISTINCT + ( + 94 ) * COUNT ( * ) FROM tab1
----
282

query I rowsort
SELECT 1 - 44 * 71 AS col2 FROM tab0
----
-3123
-3123
-3123

query I rowsort
SELECT ALL col1 + 89 AS col1 FROM tab0 AS cor0
----
110
170
90

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

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

query I rowsort
SELECT col0 - 19 FROM tab1 AS cor0
----
32
66
72

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

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

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

query I rowsort
SELECT 94 - col0 AS col1 FROM tab2
----
19
30
48

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1807
SELECT DISTINCT MIN( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NULL >= ( col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1807
SELECT DISTINCT MIN ( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NULL >= ( col2 )
----
NULL

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1809
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE - CAST( - col2 AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + col1 AS col1 FROM tab1 AS cor0 WHERE - CAST ( - col2 AS REAL ) <= NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL - - ( + COUNT( * ) ) * 99 AS col2 FROM tab0 AS cor0
----
297

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL - - ( + COUNT ( * ) ) * 99 AS col2 FROM tab0 AS cor0
----
297

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

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

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

query I rowsort
SELECT - ( - 38 ) AS col1 FROM tab1
----
38
38
38

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

skipif mysql # not compatible
query I rowsort label-1816
SELECT COUNT ( 20 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT 51 + + 39 >= ( NULL )
----

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

skipif mysql # not compatible
query I rowsort label-1818
SELECT MAX ( DISTINCT - 5 ) AS col1 FROM tab2
----
-5

query I rowsort
SELECT ALL - ( col0 ) * 61 FROM tab0
----
-5307
-5917
-915

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1821
SELECT 41 * - SUM( ALL + 29 ) FROM tab0 WHERE NOT col1 IS NULL
----
-3567

skipif mysql # not compatible
query I rowsort label-1821
SELECT 41 * - SUM ( ALL + 29 ) FROM tab0 WHERE NOT col1 IS NULL
----
-3567

query I rowsort
SELECT ( - - 69 ) FROM tab0
----
69
69
69

query I rowsort
SELECT - col0 * + 31 FROM tab0
----
-2697
-3007
-465

query I rowsort
SELECT + col2 AS col0 FROM tab0 WHERE NOT - 14 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col1 + - col0 )
----

query I rowsort
SELECT - 19 * 31 * - 69 AS col2 FROM tab0 AS cor0
----
40641
40641
40641

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

query I rowsort
SELECT ALL + col1 + - ( - 15 ) + + col0 * + col0 FROM tab2
----
2182
4188
5707

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT ALL 7 * + COUNT( * ) + + SUM( ALL - col0 ) AS col0 FROM tab1 cor0
----
-206

skipif mysql # not compatible
query I rowsort label-1831
SELECT ALL 7 * + COUNT ( * ) + + SUM ( ALL - col0 ) AS col0 FROM tab1 cor0
----
-206

query I rowsort
SELECT DISTINCT 71 + 21 FROM tab0 AS cor0
----
92

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

query I rowsort
SELECT - ( 81 ) * col1 FROM tab2 AS cor0
----
-4131
-5427
-6237

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

query II rowsort
SELECT + 61, + col0 FROM tab1 cor0
----
61
51
61
85
61
91

query I rowsort
SELECT + 61 * - ( - + 40 ) + col1 * - col1 FROM tab2 AS cor0
----
-161
-2049
-3489

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

skipif mysql # not compatible
query I rowsort label-1838
SELECT - COUNT ( * ) / 65 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1839
SELECT - 58 * COUNT( * ) col2 FROM tab2 WHERE NULL BETWEEN ( + ( - 55 ) ) AND 7
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1839
SELECT - 58 * COUNT ( * ) col2 FROM tab2 WHERE NULL BETWEEN ( + ( - 55 ) ) AND 7
----
0

query I rowsort
SELECT 79 * + - ( - 59 ) FROM tab0
----
4661
4661
4661

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

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

query I rowsort
SELECT - col0 - - - col0 AS col0 FROM tab2
----
-128
-150
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-1843
SELECT - col1 - + + col2 * - col2 DIV col2 + + col1 AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1843
SELECT - col1 - + + col2 * - col2 / col2 + + col1 AS col0 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 63 * - col0 AS col1, - col2 col0 FROM tab1
----
-3213
-96
-5355
-59
-5733
-68

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT DISTINCT - 38 DIV + + col1 AS col1 FROM tab0
----
-1
-38
0

skipif mysql # not compatible
query I rowsort label-1845
SELECT DISTINCT - 38 / + + col1 AS col1 FROM tab0
----
-1
-38
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1846
SELECT DISTINCT - COUNT( * ) + 29 FROM tab2
----
26

skipif mysql # not compatible
query I rowsort label-1846
SELECT DISTINCT - COUNT ( * ) + 29 FROM tab2
----
26

query II rowsort
SELECT DISTINCT + 99 - - - 68 AS col2, col2 * - ( + ( col0 ) ) * + col2 FROM tab1
----
31
-295885
31
-420784
31
-470016

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1850
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-1850
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 77 * + - col2 + + - 90 - + col2 col0 FROM tab0 AS cor0
----
-3756
-7812
-870

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

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

query I rowsort
SELECT DISTINCT col0 * - ( col1 ) - col0 + - 69 AS col2 FROM tab0 cor0
----
-1299
-1983
-263

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL >= ( NULL )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-1857
SELECT ALL - 77 / - COUNT ( * ) AS col1 FROM tab0
----
25

query I rowsort
SELECT ALL + 57 * - col0 AS col0 FROM tab2 AS cor0
----
-2622
-3648
-4275

query I rowsort
SELECT ALL 42 * - col2 + - col0 + - col0 AS col2 FROM tab1 AS cor0
----
-2648
-3038
-4134

onlyif mysql # DIV for integer division: 
query I rowsort label-1860
SELECT - ( - 11 ) DIV - + col1 + + 56 AS col0 FROM tab0 AS cor0
----
45
56
56

skipif mysql # not compatible
query I rowsort label-1860
SELECT - ( - 11 ) / - + col1 + + 56 AS col0 FROM tab0 AS cor0
----
45
56
56

query I rowsort
SELECT ALL 38 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 - + ( - - col2 ) IN ( 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * col1 + ( + + 74 ) * + col0 + - 36 FROM tab0 cor0
----
4881
6612
7241

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN 54 * - - col1 AND - col2
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - - col0 ) NOT BETWEEN col2 AND ( + col1 )
----
46
51
23
64
77
40

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1869
SELECT ALL + COUNT( * ) + + + COUNT( * ) * 62 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-1869
SELECT ALL + COUNT ( * ) + + + COUNT ( * ) * 62 FROM tab2
----
189

query III rowsort
SELECT * FROM tab0 WHERE NOT + + ( 3 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1871
SELECT + 41 * + ( + - 40 ) * + 77 * + + MAX( DISTINCT - 16 ) * 96 + - SUM( col2 ) + - COUNT( * ) FROM tab2
----
193965956

skipif mysql # not compatible
query I rowsort label-1871
SELECT + 41 * + ( + - 40 ) * + 77 * + + MAX ( DISTINCT - 16 ) * 96 + - SUM ( col2 ) + - COUNT ( * ) FROM tab2
----
193965956

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( - ( - ( col1 ) ) ) NOT BETWEEN + 7 AND ( - 89 - 99 / + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( NULL ) <> col0 + + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1874
SELECT DISTINCT - + COUNT( * ) + ( - - 49 ) + + COUNT( * ) FROM tab1 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-1874
SELECT DISTINCT - + COUNT ( * ) + ( - - 49 ) + + COUNT ( * ) FROM tab1 AS cor0
----
49

query II rowsort
SELECT DISTINCT + col0 AS col1, 5 + col0 AS col2 FROM tab1 AS cor0
----
51
56
85
90
91
96

query I rowsort
SELECT DISTINCT 91 AS col1 FROM tab1 cor0
----
91

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT MIN( + 38 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
38

skipif mysql # not compatible
query I rowsort label-1878
SELECT MIN ( + 38 ) FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
38

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * + 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-1880
SELECT ALL + col2 + + col1 + + col2 DIV - col2 AS col2 FROM tab2 AS cor0
----
116
124
73

skipif mysql # not compatible
query I rowsort label-1880
SELECT ALL + col2 + + col1 + + col2 / - col2 AS col2 FROM tab2 AS cor0
----
116
124
73

query II rowsort
SELECT + 67 + - col2 AS col0, 30 AS col0 FROM tab2 AS cor0
----
27
30
44
30
9
30

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1882
SELECT ALL + 3 * + col2 + col1 AS col0, - ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
182
NULL
251
NULL
302
NULL

skipif mysql # not compatible
query II rowsort label-1882
SELECT ALL + 3 * + col2 + col1 AS col0, - ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
182
NULL
251
NULL
302
NULL

query I rowsort
SELECT - + col0 + 85 + + 64 * - col1 * + col0 + - 36 + 42 AS col0 FROM tab0 AS cor0
----
-116924
-6214
-77684

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NOT + + col0 <= + - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 52 * - 4 * - 65 AS col0 FROM tab2 cor0
----
13520

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 BETWEEN ( + + col1 ) AND col2 * + + 40
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col2 * - + col2 - - ( - 13 ) FROM tab1
----
-3494
-4637
-9229

query I rowsort
SELECT DISTINCT + col2 * 90 FROM tab0
----
4230
8910
900

query I rowsort
SELECT DISTINCT - 65 + - col2 FROM tab2
----
-105
-123
-88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1890
SELECT - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-1890
SELECT - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
-3
NULL

query II rowsort
SELECT - 80, + 75 * col1 - + col0 AS col1 FROM tab1
----
-80
290
-80
3434
-80
999

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1892
SELECT + col0 * - + CAST( CAST( col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-1892
SELECT + col0 * - + CAST ( CAST ( col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 18 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( ( NULL ) < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1895
SELECT ALL + col0 * + - 9 AS col0, - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-459
NULL
-765
NULL
-819
NULL

skipif mysql # not compatible
query II rowsort label-1895
SELECT ALL + col0 * + - 9 AS col0, - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-459
NULL
-765
NULL
-819
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 75 * - col1 / + - 68 = col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1897
SELECT ALL MIN( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-1897
SELECT ALL MIN ( DISTINCT + - col0 ) AS col1 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-1898
SELECT + - 87 DIV + - col2 - - col2 FROM tab2 AS cor0
----
26
42
59

skipif mysql # not compatible
query I rowsort label-1898
SELECT + - 87 / + - col2 - - col2 FROM tab2 AS cor0
----
26
42
59

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 28 ) < ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 73 col0 FROM tab2
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT + MAX( DISTINCT - 53 ) AS col1 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-1901
SELECT + MAX ( DISTINCT - 53 ) AS col1 FROM tab2
----
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + + col2 col1 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1903
SELECT DISTINCT col1 + CAST( - + col0 AS SIGNED ) FROM tab0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-1903
SELECT DISTINCT col1 + CAST ( - + col0 AS INTEGER ) FROM tab0
----
-66
-96
66

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col2 * 83 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab2 WHERE - - 47 NOT BETWEEN NULL AND - + col0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1906
SELECT DISTINCT + - CAST( ( - + 50 ) AS SIGNED ) * 79 - + + 31 + + 30 FROM tab1 AS cor0
----
3949

skipif mysql # not compatible
query I rowsort label-1906
SELECT DISTINCT + - CAST ( ( - + 50 ) AS INTEGER ) * 79 - + + 31 + + 30 FROM tab1 AS cor0
----
3949

onlyif mysql # DIV for integer division: 
query I rowsort label-1907
SELECT ALL + col2 DIV - - col1 AS col0 FROM tab0 AS cor0
----
0
0
99

skipif mysql # not compatible
query I rowsort label-1907
SELECT ALL + col2 / - - col1 AS col0 FROM tab0 AS cor0
----
0
0
99

query I rowsort
SELECT - - col2 + ( + - 12 ) * + + 37 * - + col2 FROM tab2 AS cor0
----
10235
17800
25810

query II rowsort
SELECT DISTINCT 31 AS col2, - col1 + + - col2 + + - 24 FROM tab2 AS cor0
----
31
-141
31
-149
31
-98

query II rowsort
SELECT DISTINCT col1, + col0 * + col2 AS col0 FROM tab2 cor0
----
51
1058
67
4350
77
2560

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1911
SELECT COUNT( * ) + + CAST( NULL AS SIGNED ) + + + COUNT( DISTINCT - + 55 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1911
SELECT COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + + COUNT ( DISTINCT - + 55 ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT + col2 AS col0, + col1 FROM tab1
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + col1 * - 20 + ( - 83 ) + - - col1 AS col2 FROM tab0
----
-102
-1622
-482

query II rowsort
SELECT DISTINCT - 75 AS col1, 54 FROM tab1
----
-75
54

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT + - 83 + + 43 + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col1 * ( - col2 ) <> - - col2
----
-37

skipif mysql # not compatible
query I rowsort label-1915
SELECT + - 83 + + 43 + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col1 * ( - col2 ) <> - - col2
----
-37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + col2 * + - col1 col0 FROM tab0 cor0
----
-196
-297
-3822

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1917
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) * + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1917
SELECT ALL * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS REAL ) * + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE ( 13 ) IN ( - 7 * - 82 )
----
0

skipif mysql # not compatible
query I rowsort label-1918
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE ( 13 ) IN ( - 7 * - 82 )
----
0

query II rowsort
SELECT DISTINCT - 20 AS col2, - col1 * - - col0 * - + col1 AS col0 FROM tab1 AS cor0
----
-20
201019
-20
2125
-20
9996

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN - col0 AND - col1 + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1921
SELECT col2, col0 * - CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-1921
SELECT col2, col0 * - CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 - - col1 col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1923
SELECT ALL - col1 - col0 + col2 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1923
SELECT ALL - col1 - col0 + col2 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT col0 - + + 76 AS col2, col2 FROM tab2
----
-1
58
-12
40
-30
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1925
SELECT 61 - + - MIN( 12 ) FROM tab1
----
73

skipif mysql # not compatible
query I rowsort label-1925
SELECT 61 - + - MIN ( 12 ) FROM tab1
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1926
SELECT 55 * - ( - 91 ) / ( - CAST( NULL AS SIGNED ) ) FROM tab2 WHERE - + 25 * 52 + col2 = ( NULL )
----

skipif mysql # not compatible
query I rowsort label-1926
SELECT 55 * - ( - 91 ) / ( - CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE - + 25 * 52 + col2 = ( NULL )
----

query I rowsort
SELECT DISTINCT - - 33 * col0 FROM tab1 WHERE + 26 * - col0 * - ( + col0 ) = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1928
SELECT + ( + col2 ) DIV - - col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1928
SELECT + ( + col2 ) / - - col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 46 * - col1 * 49 + col2 FROM tab1 AS cor0
----
-105870
-11211
-31460

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1930
SELECT DISTINCT COUNT( + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1930
SELECT DISTINCT COUNT ( + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2
----
0

query I rowsort
SELECT - 64 FROM tab2 WHERE NOT NULL <> col1
----

query I rowsort
SELECT ALL 94 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND ( + col0 )
----

query II rowsort
SELECT + + col2, - col0 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( + 59 * - + col2 * + col2 - col1 + col1 ) > + col1 * ( - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1935
SELECT DISTINCT - - col2 * + CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1935
SELECT DISTINCT - - col2 * + CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1936
SELECT ALL + + COUNT( ALL - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1936
SELECT ALL + + COUNT ( ALL - col2 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1937
SELECT - - ( - + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-1937
SELECT - - ( - + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 AS cor0 WHERE NOT + 94 * - + col0 * ( - col2 ) IS NOT NULL
----

query II rowsort
SELECT col2 * - col1 + + col0, + col0 * - - 35 AS col1 FROM tab2 AS cor0
----
-1127
1610
-3016
2240
-3811
2625

query III rowsort
SELECT * FROM tab2 WHERE NOT + 99 <= 89
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1941
SELECT ALL * FROM tab0 WHERE NULL <= - 44 * - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1941
SELECT ALL * FROM tab0 WHERE NULL <= - 44 * - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - 37 FROM tab1 WHERE ( + col1 ) < ( NULL )
----

query I rowsort
SELECT + col2 + - - 50 + + + col2 FROM tab1
----
168
186
242

onlyif mysql # aggregate syntax: 
query I rowsort label-1944
SELECT - COUNT( * ) + - - 33 AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-1944
SELECT - COUNT ( * ) + - - 33 AS col0 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-1945
SELECT - COUNT( * ) * - 53 * - 83 - 82 AS col2 FROM tab0 AS cor0
----
-13279

skipif mysql # not compatible
query I rowsort label-1945
SELECT - COUNT ( * ) * - 53 * - 83 - 82 AS col2 FROM tab0 AS cor0
----
-13279

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT DISTINCT - COUNT( * ) FROM tab1 WHERE NOT - 23 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-1946
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT - 23 <> NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1947
SELECT + 68 DIV + - 96 * + + 62 * COUNT( * ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1947
SELECT + 68 / + - 96 * + + 62 * COUNT ( * ) AS col1 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1948
SELECT - 35 DIV + 30 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1948
SELECT - 35 / + 30 FROM tab0
----
-1
-1
-1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1949
SELECT 80 AS col1, CAST( NULL AS DECIMAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

skipif mysql # not compatible
query II rowsort label-1949
SELECT 80 AS col1, CAST ( NULL AS REAL ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
18 values hashing to f9d2eb3fa35c65efe9aa9dae501772f0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1950
SELECT + + CAST( + col0 AS SIGNED ) * + col2 + + + 26 FROM tab2 AS cor0
----
1084
2586
4376

skipif mysql # not compatible
query I rowsort label-1950
SELECT + + CAST ( + col0 AS INTEGER ) * + col2 + + + 26 FROM tab2 AS cor0
----
1084
2586
4376

query I rowsort
SELECT col2 + + 52 + + col1 AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1952
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 0 * - - CAST( + 84 AS SIGNED ) > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1952
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 0 * - - CAST ( + 84 AS INTEGER ) > - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - - col1 * - 24 - col2, + col1 AS col0 FROM tab2 cor0
----
-1247
51
-1666
67
-1888
77

query I rowsort
SELECT 36 * + 73 + col1 * col1 + col2 * + col2 + - - col0 - + ( + col0 ) + + - col2 * col1 FROM tab2 AS cor0
----
4585
6595
7077

onlyif mysql # aggregate syntax: 
query I rowsort label-1955
SELECT - MIN( col1 ) * - + 66 FROM tab1
----
330

skipif mysql # not compatible
query I rowsort label-1955
SELECT - MIN ( col1 ) * - + 66 FROM tab1
----
330

onlyif mysql # DIV for integer division: 
query I rowsort label-1956
SELECT DISTINCT 20 * 24 DIV + col1 AS col2 FROM tab2
----
6
7
9

skipif mysql # not compatible
query I rowsort label-1956
SELECT DISTINCT 20 * 24 / + col1 AS col2 FROM tab2
----
6
7
9

onlyif mysql # DIV for integer division: 
query II rowsort label-1957
SELECT ALL - col0 DIV + - 55 AS col0, + col1 * + col2 FROM tab0
----
0
3807
1
210
1
99

skipif mysql # not compatible
query II rowsort label-1957
SELECT ALL - col0 / + - 55 AS col0, + col1 * + col2 FROM tab0
----
0
3807
1
210
1
99

query I rowsort
SELECT + col2 * ( col2 ) AS col0 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-1959
SELECT + 0 * + MAX( ( - col1 ) ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1959
SELECT + 0 * + MAX ( ( - col1 ) ) col1 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1960
SELECT + + ( + CAST( NULL AS SIGNED ) ) / - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1960
SELECT + + ( + CAST ( NULL AS INTEGER ) ) / - 0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1961
SELECT + - 94 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-1961
SELECT + - 94 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query II rowsort
SELECT + col2 * - col0, col1 + col1 * + col0 - - col2 AS col1 FROM tab2
----
-1058
2420
-2560
5045
-4350
5150

query I rowsort
SELECT 94 + + + col2 FROM tab1 AS cor0
----
153
162
190

query I rowsort
SELECT DISTINCT - + 5 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT ALL + MIN( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-1965
SELECT ALL + MIN ( DISTINCT - col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-1966
SELECT DISTINCT - MIN( ALL - + col1 ), + MAX( DISTINCT + ( - + 2 ) ) - + - 11 col2 FROM tab1 AS cor0
----
47
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1966
SELECT DISTINCT - MIN ( ALL - + col1 ), + MAX ( DISTINCT + ( - + 2 ) ) - + - 11 col2 FROM tab1 AS cor0
----
47
9

query I rowsort
SELECT + - ( col1 ) * - col0 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-1968
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT ALL - COUNT( - - col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1969
SELECT ALL - COUNT ( - - col2 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-1970
SELECT COUNT( * ), 25 AS col0 FROM tab2
----
3
25

skipif mysql # not compatible
query II rowsort label-1970
SELECT COUNT ( * ), 25 AS col0 FROM tab2
----
3
25

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1971
SELECT ALL + 61 + + col1 * - col1 AS col1, - 37 * - - CAST( NULL AS SIGNED ) * + col1 * + 22 AS col1 FROM tab1
----
-135
NULL
-2148
NULL
36
NULL

skipif mysql # not compatible
query II rowsort label-1971
SELECT ALL + 61 + + col1 * - col1 AS col1, - 37 * - - CAST ( NULL AS INTEGER ) * + col1 * + 22 AS col1 FROM tab1
----
-135
NULL
-2148
NULL
36
NULL

query II rowsort
SELECT DISTINCT + col0 AS col0, - 2 + - ( - col0 ) FROM tab0 cor0
----
15
13
87
85
97
95

query II rowsort
SELECT DISTINCT + - 5 + - + ( - + col1 ) * col0, - 85 AS col2 FROM tab0 AS cor0
----
1210
-85
1822
-85
92
-85

query I rowsort
SELECT - col1 * + - col0 + + ( + - 48 ) FROM tab0 AS cor0
----
1167
1779
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1975
SELECT 7 + + MIN( 29 ) - - + 79 AS col1 FROM tab2 AS cor0
----
115

skipif mysql # not compatible
query I rowsort label-1975
SELECT 7 + + MIN ( 29 ) - - + 79 AS col1 FROM tab2 AS cor0
----
115

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1976
SELECT DISTINCT CAST( NULL AS SIGNED ) * col1 AS col1, - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-1976
SELECT DISTINCT CAST ( NULL AS INTEGER ) * col1 AS col1, - col1 AS col0 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

query I rowsort
SELECT ALL + col2 + + - col1 * - + 48 FROM tab1
----
2324
299
768

onlyif mysql # aggregate syntax: 
query I rowsort label-1978
SELECT - 92 + + COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-83

skipif mysql # not compatible
query I rowsort label-1978
SELECT - 92 + + COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1979
SELECT 64 * COUNT( * ) AS col0 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-1979
SELECT 64 * COUNT ( * ) AS col0 FROM tab1
----
192

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + col2 - - col2 AS col1 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-1982
SELECT ALL - MIN( 91 ) AS col0 FROM tab0 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-1982
SELECT ALL - MIN ( 91 ) AS col0 FROM tab0 AS cor0
----
-91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1983
SELECT 64 * + CAST( NULL AS DECIMAL ) AS col0, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-1983
SELECT 64 * + CAST ( NULL AS REAL ) AS col0, col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT ( ( col2 ) ) AS col2 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT col0 * - - col1 * + col1 FROM tab0
----
38367
97
98415

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT ALL - COUNT( * ) * 50 AS col1 FROM tab1
----
-150

skipif mysql # not compatible
query I rowsort label-1986
SELECT ALL - COUNT ( * ) * 50 AS col1 FROM tab1
----
-150

onlyif mysql # aggregate syntax: 
query I rowsort label-1987
SELECT ( - - SUM( ALL - col1 ) ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1987
SELECT ( - - SUM ( ALL - col1 ) ) AS col0 FROM tab2
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1988
SELECT ALL CAST( - - col0 AS SIGNED ) FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-1988
SELECT ALL CAST ( - - col0 AS INTEGER ) FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 22 IN ( - col1 / - 60 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 90 AS col2 FROM tab2 WHERE NOT 57 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1991
SELECT - COUNT( * ) * - 56 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-1991
SELECT - COUNT ( * ) * - 56 FROM tab0
----
168

query I rowsort
SELECT 45 * + col1 * 36 AS col2 FROM tab0 cor0
----
131220
1620
34020

onlyif mysql # aggregate syntax: 
query I rowsort label-1993
SELECT ALL - 4 * + COUNT( * ) * + COUNT( + - col1 ) FROM tab2 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-1993
SELECT ALL - 4 * + COUNT ( * ) * + COUNT ( + - col1 ) FROM tab2 AS cor0
----
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-1994
SELECT + - col1 DIV col0 - + col0 + - 82 + col1 + + col1 FROM tab2 AS cor0
----
-23
-27
7

skipif mysql # not compatible
query I rowsort label-1994
SELECT + - col1 / col0 - + col0 + - 82 + col1 + + col1 FROM tab2 AS cor0
----
-23
-27
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IN ( + col2, col1 )
----

query I rowsort
SELECT + - 51 FROM tab0 WHERE NOT NULL BETWEEN 69 / + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT + 94 + - COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT ( 16 ) IS NULL
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1997
SELECT + 94 + - COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT ( 16 ) IS NULL
----
91

query I rowsort
SELECT DISTINCT + ( + - 8 ) FROM tab1 cor0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-1999
SELECT + + MIN( - col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-1999
SELECT + + MIN ( - col1 ) AS col0 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2000
SELECT + col2 * - CAST( NULL AS SIGNED ) * - + 93 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2000
SELECT + col2 * - CAST ( NULL AS INTEGER ) * - + 93 * - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2001
SELECT 8 DIV + col0 + + col1 + - col0 - - 9 DIV - 91 AS col0 FROM tab2 AS cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-2001
SELECT 8 / + col0 + + col1 + - col0 - - 9 / - 91 AS col0 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-2002
SELECT ALL 11 AS col2, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
11
3

skipif mysql # not compatible
query II rowsort label-2002
SELECT ALL 11 AS col2, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
11
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 22 >= - 29
----

query III rowsort
SELECT * FROM tab0 WHERE - 8 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2005
SELECT + col2 + CAST( NULL AS SIGNED ) + - + 27 + + 56 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2005
SELECT + col2 + CAST ( NULL AS INTEGER ) + - + 27 + + 56 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 + + + ( + - col2 ) * col0 FROM tab1
----
-4992
-5074
-6256

onlyif mysql # aggregate syntax: 
query I rowsort label-2007
SELECT ALL + - COUNT( DISTINCT + ( ( - + col2 ) ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2007
SELECT ALL + - COUNT ( DISTINCT + ( ( - + col2 ) ) ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - ( - 72 ) * col0 FROM tab1
----
3672
6120
6552

query II rowsort
SELECT DISTINCT 99 * + col0 + - 38, ( 87 ) AS col0 FROM tab0
----
1447
87
8575
87
9565
87

query I rowsort
SELECT col2 + + + col2 + - - col1 * col2 FROM tab1
----
1536
3332
413

onlyif mysql # aggregate syntax: 
query I rowsort label-2011
SELECT ALL - COUNT( * ) * - - 73 + - + COUNT( DISTINCT 40 ) AS col1 FROM tab2
----
-220

skipif mysql # not compatible
query I rowsort label-2011
SELECT ALL - COUNT ( * ) * - - 73 + - + COUNT ( DISTINCT 40 ) AS col1 FROM tab2
----
-220

query I rowsort
SELECT DISTINCT - 12 * + col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 31 * - col2 - + + col1 + 66 + + col1 - col0 * + - col2 AS col2 FROM tab1 AS cor0
----
1986
3252
4146

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + col1 ) > + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 88 - 37 FROM tab2
----
51
51
51

query I rowsort
SELECT ALL + col2 FROM tab1 WHERE NOT col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2017
SELECT DISTINCT + ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2017
SELECT DISTINCT + ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN - - col1 AND - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2019
SELECT SUM( DISTINCT 45 ) AS col0 FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2019
SELECT SUM ( DISTINCT 45 ) AS col0 FROM tab0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL 42 / + col0 * + CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL 42 / + col0 * + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT 57 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2022
SELECT + 8 DIV + col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2022
SELECT + 8 / + col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2023
SELECT - 26 DIV - + col1 col2 FROM tab0
----
0
1
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2023
SELECT - 26 / - + col1 col2 FROM tab0
----
0
1
26

onlyif mysql # aggregate syntax: 
query I rowsort label-2024
SELECT DISTINCT 32 * + MIN( DISTINCT + col0 ) FROM tab2 WHERE NOT ( + 41 ) IS NULL
----
1472

skipif mysql # not compatible
query I rowsort label-2024
SELECT DISTINCT 32 * + MIN ( DISTINCT + col0 ) FROM tab2 WHERE NOT ( + 41 ) IS NULL
----
1472

query I rowsort
SELECT DISTINCT - AVG ( - col0 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col0 * col0 * + + col1 FROM tab2
----
107916
315392
376875

query I rowsort
SELECT ALL - 77 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query I rowsort
SELECT DISTINCT - 76 + + col0 FROM tab2 AS cor0
----
-1
-12
-30

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 89 NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT ALL - - ( - + col2 ) + - col2 AS col1 FROM tab1 AS cor0
----
-118
-136
-192

query I rowsort
SELECT - - col0 * 59 AS col0 FROM tab1 cor0
----
3009
5015
5369

onlyif mysql # DIV for integer division: 
query I rowsort label-2032
SELECT - 21 DIV - 11 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2032
SELECT - 21 / - 11 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2033
SELECT + 26 DIV - col1 FROM tab0 AS cor0
----
-1
-26
0

skipif mysql # not compatible
query I rowsort label-2033
SELECT + 26 / - col1 FROM tab0 AS cor0
----
-1
-26
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2034
SELECT - COUNT( ALL + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2034
SELECT - COUNT ( ALL + ( + col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT - + ( - col2 ) * - + col0 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2036
SELECT DISTINCT + ( col1 ) * - + ( 82 ) + col1 DIV + ( - col2 ) FROM tab1
----
-1148
-3854
-410

skipif mysql # not compatible
query I rowsort label-2036
SELECT DISTINCT + ( col1 ) * - + ( 82 ) + col1 / + ( - col2 ) FROM tab1
----
-1148
-3854
-410

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2037
SELECT * FROM tab0 WHERE ( + CAST( NULL AS SIGNED ) ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2037
SELECT * FROM tab0 WHERE ( + CAST ( NULL AS INTEGER ) ) * col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 80 * + col2 AS col0 FROM tab0
----
3760
7920
800

query I rowsort
SELECT + 98 * - + col1 AS col1 FROM tab0
----
-2058
-7938
-98

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col2 ) + col0 + + - col2 * + - col2 AS col1 FROM tab1
----
3625
4783
9363

query I rowsort
SELECT DISTINCT - ( - 79 ) FROM tab1 WHERE - col0 IS NOT NULL
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2043
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - 33
----
0

skipif mysql # not compatible
query I rowsort label-2043
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - - 33
----
0

query II rowsort
SELECT DISTINCT - 0 AS col0, ( - col1 ) FROM tab2 AS cor0
----
0
-51
0
-67
0
-77

query II rowsort
SELECT col1 * - 47, + col2 AS col1 FROM tab2
----
-2397
23
-3149
58
-3619
40

onlyif mysql # aggregate syntax: 
query I rowsort label-2046
SELECT DISTINCT 9 - - + COUNT( * ) + - 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-17

skipif mysql # not compatible
query I rowsort label-2046
SELECT DISTINCT 9 - - + COUNT ( * ) + - 35 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-17

query I rowsort
SELECT - col0 * - - ( - + col1 ) - + + col0 FROM tab2 cor0
----
2300
4864
4950

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 54 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT ( 54 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 36 col2 FROM tab0 AS cor0
----
36
36
36

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2050
SELECT ALL - + MAX( + col0 ) * 61 DIV - SUM( - - col0 ) AS col2 FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-2050
SELECT ALL - + MAX ( + col0 ) * 61 / - SUM ( - - col0 ) AS col2 FROM tab2 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query II rowsort label-2051
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) col0, - COUNT( ALL + col2 ) col2 FROM tab2 AS cor0
----
-9
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2051
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) col0, - COUNT ( ALL + col2 ) col2 FROM tab2 AS cor0
----
-9
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 22 col0 FROM tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-2053
SELECT - ( + SUM( DISTINCT - col2 ) ) AS col2 FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2053
SELECT - ( + SUM ( DISTINCT - col2 ) ) AS col2 FROM tab0 AS cor0
----
156

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2054
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( - ( col2 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2054
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( - ( col2 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT ALL COUNT( DISTINCT - - col0 ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2055
SELECT ALL COUNT ( DISTINCT - - col0 ) col0 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 36 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 17 FROM tab2 WHERE NOT - ( + col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT 51 * - + 18 FROM tab1
----
-918

onlyif mysql # DIV for integer division: 
query I rowsort label-2059
SELECT 91 DIV - col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2059
SELECT 91 / - col0 FROM tab1
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col2 ) col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2061
SELECT ( - COUNT( * ) ) + 78 + - SUM( - col2 ) + MAX( - col2 ) * - + SUM( ALL - col2 ) + - - ( + 21 ) AS col1 FROM tab1
----
-12838

skipif mysql # not compatible
query I rowsort label-2061
SELECT ( - COUNT ( * ) ) + 78 + - SUM ( - col2 ) + MAX ( - col2 ) * - + SUM ( ALL - col2 ) + - - ( + 21 ) AS col1 FROM tab1
----
-12838

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2062
SELECT DISTINCT * FROM tab0 WHERE CAST( NULL AS SIGNED ) + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2062
SELECT DISTINCT * FROM tab0 WHERE CAST ( NULL AS INTEGER ) + - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + 99 + - ( + 72 ) + - - 46 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 23726b3acc81d0da778ac9662bc92c2b

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 cor0 WHERE 23 IS NOT NULL AND NOT col0 IN ( - col2 / + col2, + col1, col1, + col1 + + + col1, col2 * + col0 / - col2, 85 )
----
-15
-87
-97

query I rowsort
SELECT ALL + - col0 * + + col2 AS col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2066
SELECT + ( 19 ) * + 2 * 14 * 52 - 23 + + + COUNT( * ) - 68 AS col0 FROM tab0 AS cor0
----
27576

skipif mysql # not compatible
query I rowsort label-2066
SELECT + ( 19 ) * + 2 * 14 * 52 - 23 + + + COUNT ( * ) - 68 AS col0 FROM tab0 AS cor0
----
27576

query I rowsort
SELECT - col0 + - col1 * + 26 AS col0 FROM tab1 AS cor0
----
-1313
-215
-415

query I rowsort
SELECT DISTINCT 3 - + - col1 FROM tab0 cor0
----
24
4
84

query I rowsort
SELECT DISTINCT + ( + 69 ) FROM tab2
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * + col1 + + + 78 col2, col1 FROM tab0
----
1293
81
175
1
1905
21

query III rowsort
SELECT * FROM tab2 WHERE ( NOT + col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2072
SELECT ALL col0 DIV - - 83 + - + ( col0 ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2072
SELECT ALL col0 / - - 83 + - + ( col0 ) FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-2073
SELECT - MIN( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2073
SELECT - MIN ( DISTINCT - + col2 ) AS col1 FROM tab1 AS cor0
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 53 * - 89 + + - col1 ) IS NULL
----

query I rowsort
SELECT + col1 * + - col0 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-2076
SELECT - col0 DIV + + 37 AS col0 FROM tab0
----
-2
-2
0

skipif mysql # not compatible
query I rowsort label-2076
SELECT - col0 / + + 37 AS col0 FROM tab0
----
-2
-2
0

query I rowsort
SELECT + col0 * 37 * + col1 AS col0 FROM tab2
----
182336
185925
86802

onlyif mysql # aggregate syntax: 
query I rowsort label-2078
SELECT SUM( DISTINCT - 48 ) AS col1 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-2078
SELECT SUM ( DISTINCT - 48 ) AS col1 FROM tab1
----
-48

query I rowsort
SELECT + col0 * - 63 AS col1 FROM tab2 AS cor0
----
-2898
-4032
-4725

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - col1, + col0 AS col0, - col1 col2 FROM tab0 AS cor0
----
9 values hashing to bfd8664dc7613cc7dfd9a46b7807cb3c

onlyif mysql # aggregate syntax: 
query I rowsort label-2081
SELECT ALL - SUM( + 8 ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-2081
SELECT ALL - SUM ( + 8 ) FROM tab1 AS cor0
----
-24

query I rowsort
SELECT + - col2 * - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL IS NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2083
SELECT ALL - + col0 AS col0, 76 DIV + + 57 FROM tab0 cor0
----
-15
1
-87
1
-97
1

skipif mysql # not compatible
query II rowsort label-2083
SELECT ALL - + col0 AS col0, 76 / + + 57 FROM tab0 cor0
----
-15
1
-87
1
-97
1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 28 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2085
SELECT DISTINCT + + ( + MIN( ALL col0 ) ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-2085
SELECT DISTINCT + + ( + MIN ( ALL col0 ) ) AS col0 FROM tab2 AS cor0
----
46

onlyif mysql # aggregate syntax: 
query I rowsort label-2086
SELECT DISTINCT - + SUM( - - col2 ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2086
SELECT DISTINCT - + SUM ( - - col2 ) FROM tab0 AS cor0
----
-156

query II rowsort
SELECT ALL + - col1 AS col1, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

query II rowsort
SELECT ALL col0, + 4 - - col0 FROM tab2 AS cor0
----
46
50
64
68
75
79

onlyif mysql # aggregate syntax: 
query I rowsort label-2089
SELECT ( MIN( + ( - + col1 ) ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2089
SELECT ( MIN ( + ( - + col1 ) ) ) FROM tab0
----
-81

query I rowsort
SELECT ALL + ( + - col1 ) AS col0 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT + col2 * - 11 * - col1 AS col1 FROM tab1
----
14784
3245
35156

query I rowsort
SELECT ALL - 53 FROM tab2 WHERE 23 <= 54
----
-53
-53
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 WHERE NOT + - col0 * - - col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-2093
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - col0 * - - col1 > NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2094
SELECT * FROM tab2 AS cor0 WHERE col0 / - - CAST( col2 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2094
SELECT * FROM tab2 AS cor0 WHERE col0 / - - CAST ( col2 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-2095
SELECT - - COUNT( * ) + - + COUNT( * ) AS col2, - 92 AS col0 FROM tab2 AS cor0
----
0
-92

skipif mysql # not compatible
query II rowsort label-2095
SELECT - - COUNT ( * ) + - + COUNT ( * ) AS col2, - 92 AS col0 FROM tab2 AS cor0
----
0
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-2096
SELECT + col0 DIV col1 + - + col2 FROM tab1 AS cor0
----
-42
-67
-93

skipif mysql # not compatible
query I rowsort label-2096
SELECT + col0 / col1 + - + col2 FROM tab1 AS cor0
----
-42
-67
-93

onlyif mysql # DIV for integer division: 
query I rowsort label-2097
SELECT - 67 + - col2 + + + 55 DIV + ( col2 ) AS col2 FROM tab2
----
-106
-125
-88

skipif mysql # not compatible
query I rowsort label-2097
SELECT - 67 + - col2 + + + 55 / + ( col2 ) AS col2 FROM tab2
----
-106
-125
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL COUNT( * ) * + + 68 FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-2098
SELECT ALL COUNT ( * ) * + + 68 FROM tab1
----
204

onlyif mysql # aggregate syntax: 
query I rowsort label-2099
SELECT - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2099
SELECT - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT col1 * + + col1 * - - 66 * + + col1 FROM tab2 cor0 WHERE ( col1 ) IS NULL
----

query I rowsort
SELECT ALL - col1 + + + col0 AS col2 FROM tab1 cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2102
SELECT DISTINCT + COUNT( * ) - 4 AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2102
SELECT DISTINCT + COUNT ( * ) - 4 AS col0 FROM tab0 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 - - + 54 col1 FROM tab2 AS cor0
----
100
118
129

query I rowsort
SELECT - + ( + 66 ) AS col1 FROM tab2 AS cor0
----
-66
-66
-66

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2105
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2105
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2106
SELECT ALL + MAX( - 20 ) FROM tab1 AS cor0
----
-20

skipif mysql # not compatible
query I rowsort label-2106
SELECT ALL + MAX ( - 20 ) FROM tab1 AS cor0
----
-20

query II rowsort
SELECT + - col1 AS col2, - col0 FROM tab2 AS cor0
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT 36 - + + 23 * + - 79 AS col1 FROM tab2 AS cor0
----
1853
1853
1853

query I rowsort
SELECT ALL + 62 - col1 FROM tab1
----
15
48
57

query I rowsort
SELECT DISTINCT - ( - 41 ) + 79 * ( - col1 ) AS col0 FROM tab2
----
-3988
-5252
-6042

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 26 * col1 * col2 col2 FROM tab0
----
2574
5460
98982

query I rowsort
SELECT ALL - col1 + + col0 * + - 53 FROM tab1
----
-2717
-4510
-4870

onlyif mysql # aggregate syntax: 
query I rowsort label-2113
SELECT DISTINCT COUNT( * ) * 28 AS col0 FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-2113
SELECT DISTINCT COUNT ( * ) * 28 AS col0 FROM tab2
----
84

query I rowsort
SELECT + 46 * - + 41 + - col1 FROM tab0 AS cor0
----
-1887
-1907
-1967

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT + - ( + MAX( - - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2115
SELECT + - ( + MAX ( - - col2 ) ) FROM tab1 AS cor0
----
-96

query I rowsort
SELECT ALL + + 45 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
45
45
45

onlyif mysql # aggregate syntax: 
query I rowsort label-2117
SELECT DISTINCT - COUNT( ALL - col0 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2117
SELECT DISTINCT - COUNT ( ALL - col0 ) FROM tab0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <= - - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2119
SELECT - - ( - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2119
SELECT - - ( - CAST ( NULL AS REAL ) ) AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - 64 * + 37 AS col0 FROM tab2 cor0
----
-2368
-2368
-2368

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 <= - - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 88, - col0 col0 FROM tab1 AS cor0
----
88
-51
88
-85
88
-91

query I rowsort
SELECT - col0 * col0 FROM tab1 AS cor0 WHERE NOT ( col1 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 < + col1
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2125
SELECT MIN( ALL ( - - col0 ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2125
SELECT MIN ( ALL ( - - col0 ) ) FROM tab1
----
51

query III rowsort
SELECT ALL * FROM tab2 WHERE - 45 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2127
SELECT DISTINCT - COUNT( * ), + COUNT( * ) DIV + 70 AS col0 FROM tab1
----
-3
0

skipif mysql # not compatible
query II rowsort label-2127
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) / + 70 AS col0 FROM tab1
----
-3
0

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 + - 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 76 + + 55 col0 FROM tab0
----
146
218
228

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2130
SELECT 86 + - 58 + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2130
SELECT 86 + - 58 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 67 col0 FROM tab1 AS cor0
----
-67
-67
-67

query I rowsort
SELECT - 36 * + col1 * - - col0 FROM tab0 AS cor0
----
-3492
-43740
-65772

onlyif mysql # DIV for integer division: 
query I rowsort label-2133
SELECT DISTINCT col1 DIV + - col2 + + 39 col1 FROM tab0 AS cor0
----
37
38
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2133
SELECT DISTINCT col1 / + - col2 + + 39 col1 FROM tab0 AS cor0
----
37
38
39

query I rowsort
SELECT col2 + - - ( - + col1 ) + - - col2 * + col1 * - col2 FROM tab1 AS cor0
----
-128942
-17351
-217307

onlyif mysql # aggregate syntax: 
query I rowsort label-2135
SELECT ALL + COUNT( * ) + ( - ( ( + + ( + COUNT( * ) ) ) ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT ALL + COUNT ( * ) + ( - ( ( + + ( + COUNT ( * ) ) ) ) ) FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL <= + 14 + col0
----

query II rowsort
SELECT DISTINCT - + ( - + col2 ) - - 98 AS col1, 80 * - col0 FROM tab0 AS cor0
----
108
-6960
145
-1200
197
-7760

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 94 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - COUNT( * ) * - 56 AS col1 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-2139
SELECT - COUNT ( * ) * - 56 AS col1 FROM tab0
----
168

onlyif mysql # aggregate syntax: 
query I rowsort label-2140
SELECT 41 * COUNT( * ) AS col1 FROM tab2
----
123

skipif mysql # not compatible
query I rowsort label-2140
SELECT 41 * COUNT ( * ) AS col1 FROM tab2
----
123

query I rowsort
SELECT ALL col1 * - 8 * + ( - - col2 ) AS col0 FROM tab1
----
-10752
-2360
-25568

onlyif mysql # aggregate syntax: 
query I rowsort label-2142
SELECT ALL COUNT( * ) + 14 AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-2142
SELECT ALL COUNT ( * ) + 14 AS col2 FROM tab0
----
17

onlyif mysql # DIV for integer division: 
query I rowsort label-2143
SELECT col2 DIV + col0 * + 21 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2143
SELECT col2 / + col0 * + 21 FROM tab2
----
0
0
0

query I rowsort
SELECT 62 * - 69 AS col2 FROM tab0
----
-4278
-4278
-4278

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 69 * 66 col0 FROM tab1
----
4554
4554
4554

query II rowsort
SELECT ALL + + col0 AS col0, ( + col1 ) AS col2 FROM tab1 AS cor0
----
51
14
85
5
91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 81 col1, col1 AS col2 FROM tab2 AS cor0
----
81
51
81
67
81
77

onlyif mysql # aggregate syntax: 
query II rowsort label-2148
SELECT DISTINCT - + SUM( + 27 ) AS col1, 60 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-243
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2148
SELECT DISTINCT - + SUM ( + 27 ) AS col1, 60 col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-243
60

query I rowsort
SELECT ALL + ( col0 ) * - col1 AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - col1 + - ( col1 ) * + + 21 FROM tab1 WHERE NOT ( ( NULL ) = - + col1 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 / + - 18 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2153
SELECT DISTINCT SUM( + col1 ) AS col0, ( + 24 ) AS col0 FROM tab1 AS cor0
----
66
24

skipif mysql # not compatible
query II rowsort label-2153
SELECT DISTINCT SUM ( + col1 ) AS col0, ( + 24 ) AS col0 FROM tab1 AS cor0
----
66
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 85 + - col2 col0 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + ( - + col2 ) FROM tab0 cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 - + - col2 - - col2 = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2157
SELECT - 30 DIV - MAX( DISTINCT - + 74 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2157
SELECT - 30 / - MAX ( DISTINCT - + 74 ) FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-2158
SELECT DISTINCT + CAST( CAST( NULL AS DECIMAL ) AS SIGNED ) AS col1, + col0 AS col1 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-2158
SELECT DISTINCT + CAST ( CAST ( NULL AS REAL ) AS INTEGER ) AS col1, + col0 AS col1 FROM tab1 cor0
----
NULL
51
NULL
85
NULL
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2159
SELECT ALL + MAX( ALL + 59 ) * + MIN( - - col1 ) + + - 61 * + ( COUNT( * ) ) + COUNT( * ) AS col2 FROM tab1 WHERE NOT + - col2 + col2 >= col1
----
115

skipif mysql # not compatible
query I rowsort label-2159
SELECT ALL + MAX ( ALL + 59 ) * + MIN ( - - col1 ) + + - 61 * + ( COUNT ( * ) ) + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + - col2 + col2 >= col1
----
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2160
SELECT MAX( col0 ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2160
SELECT MAX ( col0 ) AS col1 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2161
SELECT - COUNT( * ) FROM tab2 WHERE NOT - + 45 * col1 - col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2161
SELECT - COUNT ( * ) FROM tab2 WHERE NOT - + 45 * col1 - col2 IS NOT NULL
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NOT NULL BETWEEN - + col1 AND NULL
----

query I rowsort
SELECT - ( + 41 ) FROM tab0
----
-41
-41
-41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2164
SELECT ALL AVG ( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2164
SELECT ALL AVG ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT + ( - col2 ) + + 21 FROM tab2
----
-19
-2
-37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2166
SELECT * FROM tab1 WHERE - col2 * + CAST( NULL AS SIGNED ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2166
SELECT * FROM tab1 WHERE - col2 * + CAST ( NULL AS INTEGER ) + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2167
SELECT - ( + - ( COUNT( col1 ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2167
SELECT - ( + - ( COUNT ( col1 ) ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT + MIN( col1 ) + + - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT + MIN ( col1 ) + + - COUNT ( * ) FROM tab1
----
2

query II rowsort
SELECT + col2 + + + col1 * + ( + - col0 ) * + 27 + + col1, col2 FROM tab1 cor0
----
-11411
59
-115364
68
-19168
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - 31 + col1 BETWEEN + + 82 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 + + 86 col2 FROM tab0 AS cor0
----
178
178
178

query III rowsort
SELECT * FROM tab1 WHERE - col2 - + ( + col0 ) * - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2173
SELECT DISTINCT + + CAST( NULL AS SIGNED ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2173
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
NULL

query I rowsort
SELECT ALL - + col2 + - + col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col0 + - col0 * col1 + - ( 24 ) AS col2 FROM tab1 AS cor0
----
-364
-4210
-687

query I rowsort
SELECT ALL - + 66 * - col0 - - col0 AS col0 FROM tab2 AS cor0
----
3082
4288
5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2177
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> + 16 * CAST( NULL AS SIGNED ) + + - col0
----
0

skipif mysql # not compatible
query I rowsort label-2177
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> + 16 * CAST ( NULL AS INTEGER ) + + - col0
----
0

query I rowsort
SELECT ALL + col2 - col1 * col1 FROM tab1 AS cor0
----
-100
-2141
34

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2179
SELECT DISTINCT - COUNT( * ) * - MAX( DISTINCT + CAST( + 29 AS SIGNED ) ) * - 40 * - MAX( + CAST( NULL AS SIGNED ) ) - + 12 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2179
SELECT DISTINCT - COUNT ( * ) * - MAX ( DISTINCT + CAST ( + 29 AS INTEGER ) ) * - 40 * - MAX ( + CAST ( NULL AS INTEGER ) ) - + 12 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + 1 - col0 FROM tab1 AS cor0
----
-50
-84
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-2181
SELECT SUM( - col2 ) - - COUNT( * ) FROM tab1
----
-220

skipif mysql # not compatible
query I rowsort label-2181
SELECT SUM ( - col2 ) - - COUNT ( * ) FROM tab1
----
-220

query I rowsort
SELECT DISTINCT col1 * - 24 * - + col0 FROM tab2
----
118272
120600
56304

query I rowsort
SELECT + ( 74 ) * 9 AS col2 FROM tab2
----
666
666
666

onlyif mysql # aggregate syntax: 
query I rowsort label-2184
SELECT - COUNT( * ) * + 13 AS col2 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-2184
SELECT - COUNT ( * ) * + 13 AS col2 FROM tab0
----
-39

query I rowsort
SELECT DISTINCT 14 * + col0 FROM tab2
----
1050
644
896

onlyif mysql # aggregate syntax: 
query I rowsort label-2186
SELECT SUM( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
195

skipif mysql # not compatible
query I rowsort label-2186
SELECT SUM ( ALL col1 ) AS col1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 19
----

query II rowsort
SELECT - 32, - col2 - + 61 AS col1 FROM tab1
----
-32
-120
-32
-129
-32
-157

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2189
SELECT ALL + COUNT( * ) AS col0, - MAX( ALL + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

skipif mysql # not compatible
query II rowsort label-2189
SELECT ALL + COUNT ( * ) AS col0, - MAX ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2190
SELECT DISTINCT + 33 AS col2, - COUNT( * ) + + 15 AS col1 FROM tab0 AS cor0
----
33
12

skipif mysql # not compatible
query II rowsort label-2190
SELECT DISTINCT + 33 AS col2, - COUNT ( * ) + + 15 AS col1 FROM tab0 AS cor0
----
33
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2191
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) - 86 >= NULL
----

skipif mysql # not compatible
query III rowsort label-2191
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) - 86 >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 74 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 21 * col0 FROM tab0 AS cor0
----
1827
2037
315

onlyif mysql # DIV for integer division: 
query I rowsort label-2194
SELECT + col2 + ( + col2 ) DIV + + col1 FROM tab1 cor0
----
102
69
70

skipif mysql # not compatible
query I rowsort label-2194
SELECT + col2 + ( + col2 ) / + + col1 FROM tab1 cor0
----
102
69
70

query I rowsort
SELECT col0 AS col2 FROM tab2 AS cor0 WHERE 80 + col0 IS NOT NULL
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 WHERE + col2 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE - - col2 + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - + col0 * - - 68 * - col2 AS col1 FROM tab1 AS cor0
----
332928
341020
420784

query I rowsort
SELECT col1 AS col0 FROM tab0 AS cor0 WHERE - col2 IS NOT NULL
----
1
21
81

query I rowsort
SELECT ALL + 74 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN + 86 - - - 39 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2201
SELECT ALL - 67 DIV + + col2 + col1 AS col2 FROM tab1
----
14
4
47

skipif mysql # not compatible
query I rowsort label-2201
SELECT ALL - 67 / + + col2 + col1 AS col2 FROM tab1
----
14
4
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT ALL + MAX( DISTINCT - + col2 ) FROM tab1 WHERE NOT - col2 * - + col2 > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-2202
SELECT ALL + MAX ( DISTINCT - + col2 ) FROM tab1 WHERE NOT - col2 * - + col2 > + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT ALL + + COUNT( * ) AS col0 FROM tab1 WHERE NOT NULL = + col1
----
0

skipif mysql # not compatible
query I rowsort label-2203
SELECT ALL + + COUNT ( * ) AS col0 FROM tab1 WHERE NOT NULL = + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT DISTINCT 95 * - MIN( + + col2 ) + + - COUNT( * ) AS col1 FROM tab0
----
-953

skipif mysql # not compatible
query I rowsort label-2204
SELECT DISTINCT 95 * - MIN ( + + col2 ) + + - COUNT ( * ) AS col1 FROM tab0
----
-953

onlyif mysql # DIV for integer division: 
query I rowsort label-2205
SELECT 92 DIV - 97 FROM tab2 AS cor0 WHERE 13 NOT BETWEEN + col0 AND + 98
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2205
SELECT 92 / - 97 FROM tab2 AS cor0 WHERE 13 NOT BETWEEN + col0 AND + 98
----
0
0
0

query I rowsort
SELECT ALL col2 AS col1 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT - 56 + 40 AS col0 FROM tab1 AS cor0
----
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 - + col0 + ( + col1 ) * + col0 * - 0 col0 FROM tab0 AS cor0 WHERE NULL > col1
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 5 + - col0 * ( col1 ) BETWEEN + + 20 + + 90 AND NULL
----

query I rowsort
SELECT + 87 * + 32 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
141984
186528
214368

onlyif mysql # aggregate syntax: 
query I rowsort label-2211
SELECT DISTINCT - - MAX( ALL + + col1 ) AS col1 FROM tab2 cor0
----
77

skipif mysql # not compatible
query I rowsort label-2211
SELECT DISTINCT - - MAX ( ALL + + col1 ) AS col1 FROM tab2 cor0
----
77

query I rowsort
SELECT DISTINCT col0 * + ( + col2 ) AS col0 FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT ALL - 44 * - col2 AS col2 FROM tab2 cor0
----
1012
1760
2552

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 + - + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT - MIN( DISTINCT - - col0 ) FROM tab2
----
-46

skipif mysql # not compatible
query I rowsort label-2215
SELECT - MIN ( DISTINCT - - col0 ) FROM tab2
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col2, - col0 AS col1 FROM tab2
----
-23
-46
-40
-64
-58
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2217
SELECT ALL + 39, CAST( NULL AS SIGNED ) * - col2 * 36 AS col2 FROM tab1
----
39
NULL
39
NULL
39
NULL

skipif mysql # not compatible
query II rowsort label-2217
SELECT ALL + 39, CAST ( NULL AS INTEGER ) * - col2 * 36 AS col2 FROM tab1
----
39
NULL
39
NULL
39
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2218
SELECT DISTINCT MIN( DISTINCT + + col1 ) AS col2 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2218
SELECT DISTINCT MIN ( DISTINCT + + col1 ) AS col2 FROM tab2
----
51

query II rowsort
SELECT col0, 91 * col0 + + - col0 AS col1 FROM tab2
----
46
4140
64
5760
75
6750

onlyif mysql # DIV for integer division: 
query I rowsort label-2220
SELECT DISTINCT - col0 * + + col1 DIV col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT - col0 * + + col1 / col1 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-2221
SELECT - 41 DIV + 12 - + col1 AS col1 FROM tab0 cor0
----
-24
-4
-84

skipif mysql # not compatible
query I rowsort label-2221
SELECT - 41 / + 12 - + col1 AS col1 FROM tab0 cor0
----
-24
-4
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2222
SELECT ALL - SUM( ALL - col2 ) AS col1 FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-2222
SELECT ALL - SUM ( ALL - col2 ) AS col1 FROM tab0 cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2223
SELECT ALL + COUNT( - ( - col2 ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2223
SELECT ALL + COUNT ( - ( - col2 ) ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2224
SELECT DISTINCT - - 27 + - COUNT( * ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
24
3

skipif mysql # not compatible
query II rowsort label-2224
SELECT DISTINCT - - 27 + - COUNT ( * ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
24
3

query I rowsort
SELECT ALL - + 6 AS col2 FROM tab2 cor0
----
-6
-6
-6

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 69 / + col2 * - - 87 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2227
SELECT ALL - col0 DIV 44 * - + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2227
SELECT ALL - col0 / 44 * - + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query II rowsort
SELECT - + col1 * 27 - - col1, - col2 AS col2 FROM tab1 AS cor0
----
-1222
-68
-130
-59
-364
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT DISTINCT + - COUNT( - ( col1 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2229
SELECT DISTINCT + - COUNT ( - ( col1 ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2230
SELECT - + COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2230
SELECT - + COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
-9

query I rowsort
SELECT - - col2 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col1 * - 77 * - 30 FROM tab0
----
187110
2310
48510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2233
SELECT + CAST( + 82 AS SIGNED ) AS col2 FROM tab0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-2233
SELECT + CAST ( + 82 AS INTEGER ) AS col2 FROM tab0
----
82
82
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2234
SELECT - - 26 + 73 + ( - COUNT( * ) ) DIV 19 * 84 col1 FROM tab0 WHERE + 14 NOT BETWEEN + col0 AND NULL
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2234
SELECT - - 26 + 73 + ( - COUNT ( * ) ) / 19 * 84 col1 FROM tab0 WHERE + 14 NOT BETWEEN + col0 AND NULL
----
99

query I rowsort
SELECT ALL col0 + col2 + col1 AS col2 FROM tab0
----
118
143
197

query II rowsort
SELECT 35 - + col0 + + + 73 AS col1, - 79 AS col2 FROM tab2
----
33
-79
44
-79
62
-79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2237
SELECT ALL col0 + + CAST( NULL AS SIGNED ) + + ( - col2 ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2237
SELECT ALL col0 + + CAST ( NULL AS INTEGER ) + + ( - col2 ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 + - col0 * + col0 AS col0 FROM tab2 AS cor0
----
-2093
-4056
-5567

onlyif mysql # aggregate syntax: 
query I rowsort label-2239
SELECT DISTINCT + 96 * COUNT( * ) * + COUNT( * ) + + 28 AS col1 FROM tab1 AS cor0
----
892

skipif mysql # not compatible
query I rowsort label-2239
SELECT DISTINCT + 96 * COUNT ( * ) * + COUNT ( * ) + + 28 AS col1 FROM tab1 AS cor0
----
892

onlyif mysql # aggregate syntax: 
query I rowsort label-2240
SELECT ALL - COUNT( * ) + ( + 77 ) * 43 AS col2 FROM tab0 AS cor0
----
3308

skipif mysql # not compatible
query I rowsort label-2240
SELECT ALL - COUNT ( * ) + ( + 77 ) * 43 AS col2 FROM tab0 AS cor0
----
3308

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2241
SELECT ALL - COUNT( * ) / ( CAST( NULL AS SIGNED ) * - 22 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2241
SELECT ALL - COUNT ( * ) / ( CAST ( NULL AS INTEGER ) * - 22 ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT 47 AS col0 FROM tab1 WHERE NOT - 15 = + col1
----
47

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col0 ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT - SUM( - 64 ) FROM tab0
----
192

skipif mysql # not compatible
query I rowsort label-2244
SELECT - SUM ( - 64 ) FROM tab0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-2245
SELECT - COUNT( ALL 86 ) + + 42 * + 29 AS col2 FROM tab1
----
1215

skipif mysql # not compatible
query I rowsort label-2245
SELECT - COUNT ( ALL 86 ) + + 42 * + 29 AS col2 FROM tab1
----
1215

query I rowsort
SELECT ( 78 ) + - 73 FROM tab2
----
5
5
5

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 35 + 81 ) BETWEEN - 41 + + col0 AND - col2 * - 39
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 52 + - col2 FROM tab1
----
-16
-44
-7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT CAST( col2 AS SIGNED ) FROM tab0 WHERE NOT ( NULL ) >= ( col2 + - col2 * col1 )
----

skipif mysql # not compatible
query I rowsort label-2249
SELECT CAST ( col2 AS INTEGER ) FROM tab0 WHERE NOT ( NULL ) >= ( col2 + - col2 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 86 / col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT DISTINCT 95 + - COUNT( * ) FROM tab2 WHERE NOT col2 <= NULL
----
95

skipif mysql # not compatible
query I rowsort label-2251
SELECT DISTINCT 95 + - COUNT ( * ) FROM tab2 WHERE NOT col2 <= NULL
----
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 25 + - col0 > + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT + col2 * + 64 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 * + col0 + + 2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2255
SELECT - ( COUNT( * ) ) * 7 - 46 FROM tab0
----
-67

skipif mysql # not compatible
query I rowsort label-2255
SELECT - ( COUNT ( * ) ) * 7 - 46 FROM tab0
----
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2256
SELECT ALL * FROM tab2 WHERE NOT - CAST( NULL AS DECIMAL ) + 40 IN ( col2 + - col2 )
----

skipif mysql # not compatible
query III rowsort label-2256
SELECT ALL * FROM tab2 WHERE NOT - CAST ( NULL AS REAL ) + 40 IN ( col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2257
SELECT 23 * - CAST( NULL AS SIGNED ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2257
SELECT 23 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( + col0 ) IS NULL
----
14
47
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2260
SELECT + 5 DIV col1 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2260
SELECT + 5 / col1 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2261
SELECT ALL * FROM tab0 WHERE + ( col2 ) - CAST( + 7 + 9 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2261
SELECT ALL * FROM tab0 WHERE + ( col2 ) - CAST ( + 7 + 9 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2262
SELECT CAST( + 35 AS SIGNED ) AS col2 FROM tab1
----
35
35
35

skipif mysql # not compatible
query I rowsort label-2262
SELECT CAST ( + 35 AS INTEGER ) AS col2 FROM tab1
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 46 col1 FROM tab1
----
2714
3128
4416

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT DISTINCT + + SUM( DISTINCT 59 ) FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2264
SELECT DISTINCT + + SUM ( DISTINCT 59 ) FROM tab2 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2265
SELECT MAX( col2 ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2265
SELECT MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL + + col1 + + 70 FROM tab1 AS cor0
----
117
75
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2267
SELECT DISTINCT ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) + col0 < col2 * + ( + col1 * col1 ) + CAST( - col0 AS SIGNED ) * + 66
----
1

skipif mysql # not compatible
query I rowsort label-2267
SELECT DISTINCT ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col1 ) + col0 < col2 * + ( + col1 * col1 ) + CAST ( - col0 AS INTEGER ) * + 66
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2268
SELECT DISTINCT + col2 + + CAST( NULL AS SIGNED ) col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2268
SELECT DISTINCT + col2 + + CAST ( NULL AS INTEGER ) col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT 13 + 91 * + col2 AS col0 FROM tab1 AS cor0
----
5382
6201
8749

query III rowsort
SELECT * FROM tab0 WHERE + col0 > ( 58 * col1 )
----
97
1
99

query III rowsort
SELECT * FROM tab0 WHERE ( + col0 ) < ( + col1 )
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2272
SELECT col2 + CAST( - col0 AS SIGNED ) FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-2272
SELECT col2 + CAST ( - col0 AS INTEGER ) FROM tab0
----
-77
2
32

query I rowsort
SELECT ALL 25 * col2 AS col2 FROM tab2
----
1000
1450
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2274
SELECT - CAST( NULL AS SIGNED ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2274
SELECT - CAST ( NULL AS INTEGER ) * col1 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 23 + - + col1 AS col2 FROM tab0
----
-58
2
22

query III rowsort
SELECT ALL * FROM tab0 WHERE ( col0 + - col0 * 3 ) <> NULL
----

query I rowsort
SELECT DISTINCT + ( + 55 ) + col2 FROM tab0 AS cor0
----
102
154
65

query I rowsort
SELECT DISTINCT + col2 * - 24 FROM tab0 cor0
----
-1128
-2376
-240

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 17 - col0 IN ( - col0 ) AND NOT ( 33 ) >= col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2280
SELECT ALL COUNT( * ) * - - SUM( col2 ) * 16 FROM tab2
----
5808

skipif mysql # not compatible
query I rowsort label-2280
SELECT ALL COUNT ( * ) * - - SUM ( col2 ) * 16 FROM tab2
----
5808

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE NOT ( + col1 ) IN ( + ( col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2282
SELECT ALL - COUNT( DISTINCT - + col0 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL - COUNT ( DISTINCT - + col0 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2283
SELECT ALL + 67 DIV 85 * - + col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2283
SELECT ALL + 67 / 85 * - + col2 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( - - col0 )
----

query I rowsort
SELECT ALL - ( - - 70 ) AS col0 FROM tab2 cor0
----
-70
-70
-70

query II rowsort
SELECT DISTINCT col1 AS col0, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT BETWEEN ( - 59 + col0 ) AND ( + 77 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( + 70 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 5 * - 2 FROM tab1
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2290
SELECT ALL + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) + col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-2290
SELECT ALL + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) + col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ( - + 73 ) FROM tab2
----
-73
-73
-73

query I rowsort
SELECT col1 * - 95 AS col0 FROM tab0
----
-1995
-7695
-95

query II rowsort
SELECT 95 * - col1 AS col1, col2 FROM tab0
----
-1995
10
-7695
47
-95
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col2 - + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2295
SELECT DISTINCT SUM( - 22 ) FROM tab0 WHERE NOT + 56 * + col2 * + col1 + - 91 IN ( 74 )
----
-66

skipif mysql # not compatible
query I rowsort label-2295
SELECT DISTINCT SUM ( - 22 ) FROM tab0 WHERE NOT + 56 * + col2 * + col1 + - 91 IN ( 74 )
----
-66

query I rowsort
SELECT - col0 AS col1 FROM tab0 WHERE NOT + + col2 IN ( - col1 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-2297
SELECT ALL + + COUNT( DISTINCT + - col0 ) AS col1 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2297
SELECT ALL + + COUNT ( DISTINCT + - col0 ) AS col1 FROM tab0 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2298
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) <> col1 * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2298
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT - ( - col1 ) <> col1 * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( ( + + col0 ) + + col1 )
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT 33 + - col1 AS col0 FROM tab2
----
-18
-34
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-2302
SELECT ALL + MIN( + col1 ) AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-2302
SELECT ALL + MIN ( + col1 ) AS col0 FROM tab2
----
51

query I rowsort
SELECT col0 + - 72 + - - col0 + + - col2 FROM tab2
----
-3
16
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2304
SELECT - COUNT( * ) + 86 FROM tab1
----
83

skipif mysql # not compatible
query I rowsort label-2304
SELECT - COUNT ( * ) + 86 FROM tab1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2305
SELECT col1 * - col2 + + + col2 * + 66 - - + col2 + col2 * - col1 / + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2305
SELECT col1 * - col2 + + + col2 * + 66 - - + col2 + col2 * - col1 / + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT 81 + col0 + + col2, - col1 AS col1 FROM tab0
----
143
-81
178
-21
277
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2307
SELECT - COUNT( * ) FROM tab2 WHERE col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2307
SELECT - COUNT ( * ) FROM tab2 WHERE col1 IS NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 30 IS NOT NULL
----

query I rowsort
SELECT - 31 AS col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-31
-31
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * col2 col1 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2, col1 col0 FROM tab2 AS cor0
----
23
51
40
77
58
67

query I rowsort
SELECT DISTINCT + - 85 * - 96 + - col2 AS col0 FROM tab1 AS cor0
----
8064
8092
8101

query I rowsort
SELECT + col0 * + + col2 * + col1 FROM tab1 AS cor0
----
25075
290836
68544

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( col0 ) + + 67 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - col1 col1 FROM tab2 AS cor0
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-2316
SELECT ALL - col1 DIV - col1 + - col2 * 99 - - col1 - + col2 * col1 FROM tab1 AS cor0
----
-10833
-6130
-9880

skipif mysql # not compatible
query I rowsort label-2316
SELECT ALL - col1 / - col1 + - col2 * 99 - - col1 - + col2 * col1 FROM tab1 AS cor0
----
-10833
-6130
-9880

query I rowsort
SELECT ( + 57 ) FROM tab2 AS cor0
----
57
57
57

query III rowsort
SELECT * FROM tab1 WHERE ( NOT col2 * 61 + - col0 * ( 57 - + 51 ) >= col2 / col1 - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2319
SELECT ALL col1 DIV - 34 + + col2 FROM tab0
----
10
45
99

skipif mysql # not compatible
query I rowsort label-2319
SELECT ALL col1 / - 34 + + col2 FROM tab0
----
10
45
99

query I rowsort
SELECT - col0 * - 74 + + col2 + col2 FROM tab2
----
3450
4816
5666

onlyif mysql # aggregate syntax: 
query I rowsort label-2321
SELECT + COUNT( * ) FROM tab1 WHERE + 81 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-2321
SELECT + COUNT ( * ) FROM tab1 WHERE + 81 IS NOT NULL
----
3

query IIIIII rowsort
SELECT * FROM tab2, tab2 cor0 WHERE NOT NULL IS NOT NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + + col1 col0 FROM tab2 WHERE ( NOT 72 + + + col2 >= - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2324
SELECT CAST( NULL AS SIGNED ) * + 38 * col0 + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2324
SELECT CAST ( NULL AS INTEGER ) * + 38 * col0 + + + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 97 * + - col1 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1358
-4559
-485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2326
SELECT DISTINCT - CAST( NULL AS SIGNED ) / + col1 / - col1 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2326
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / + col1 / - col1 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - col2 * + ( 84 ) AS col2 FROM tab1 AS cor0
----
-4956
-5712
-8064

query II rowsort
SELECT ALL - 67 * 25 AS col0, col0 + col2 * + col2 FROM tab2
----
-1675
1664
-1675
3439
-1675
575

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( - 76 ) FROM tab0
----
-76
-76
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2331
SELECT COUNT( * ) DIV + - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2331
SELECT COUNT ( * ) / + - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2332
SELECT + COUNT( * ) * + 43 FROM tab0 AS cor0
----
129

skipif mysql # not compatible
query I rowsort label-2332
SELECT + COUNT ( * ) * + 43 FROM tab0 AS cor0
----
129

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2333
SELECT DISTINCT - COUNT( ALL CAST( - - col2 AS SIGNED ) ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT - COUNT ( ALL CAST ( - - col2 AS INTEGER ) ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + 18 - + + 17 FROM tab0 AS cor0 WHERE NOT NULL < ( NULL )
----

query II rowsort
SELECT ALL - 7 * + col1 AS col1, col0 + + col0 AS col1 FROM tab2 AS cor0
----
-357
92
-469
150
-539
128

onlyif mysql # DIV for integer division: 
query I rowsort label-2336
SELECT - ( - col1 ) DIV + col2 - + 4 AS col2 FROM tab2 AS cor0
----
-2
-3
-3

skipif mysql # not compatible
query I rowsort label-2336
SELECT - ( - col1 ) / + col2 - + 4 AS col2 FROM tab2 AS cor0
----
-2
-3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2337
SELECT + ( 31 ) * - COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2337
SELECT + ( 31 ) * - COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + 7 NOT IN ( - 28 )
----

query I rowsort
SELECT - 54 FROM tab0 WHERE NOT + 45 IS NULL
----
-54
-54
-54

query I rowsort
SELECT - col2 - + 98 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-121
-138
-156

query III rowsort
SELECT ALL * FROM tab0 WHERE - + col0 NOT BETWEEN NULL AND col2
----

onlyif mysql # DIV for integer division: 
query II rowsort label-2342
SELECT ALL - 30 + - + 12 DIV - - col1, - 76 AS col0 FROM tab2
----
-30
-76
-30
-76
-30
-76

skipif mysql # not compatible
query II rowsort label-2342
SELECT ALL - 30 + - + 12 / - - col1, - 76 AS col0 FROM tab2
----
-30
-76
-30
-76
-30
-76

query I rowsort
SELECT - col2 FROM tab1 WHERE ( - - ( - ( + - col2 ) ) <= NULL ) OR NULL IS NOT NULL
----

query I rowsort
SELECT + 65 + - 37 * + col1 * - col1 + col2 FROM tab2
----
166216
219478
96325

query I rowsort
SELECT col1 FROM tab0 WHERE NOT + col1 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2346
SELECT ALL CAST( - - col0 AS SIGNED ) * + - col2 AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-2346
SELECT ALL CAST ( - - col0 AS INTEGER ) * + - col2 AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2347
SELECT ALL col0 * + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2347
SELECT ALL col0 * + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query II rowsort
SELECT - - col2 AS col1, 65 FROM tab0 AS cor0
----
10
65
47
65
99
65

query II rowsort
SELECT DISTINCT - col0 AS col1, - 78 + - col1 + + + col1 - + col0 FROM tab2 cor0
----
-46
-124
-64
-142
-75
-153

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 24, - col1 * + col1 col2 FROM tab2 AS cor0 WHERE ( NULL ) = NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2351
SELECT - 58 * - ( + COUNT( * ) ) FROM tab1 cor0 WHERE - col2 + + - ( - - 17 ) <> - CAST( NULL AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-2351
SELECT - 58 * - ( + COUNT ( * ) ) FROM tab1 cor0 WHERE - col2 + + - ( - - 17 ) <> - CAST ( NULL AS INTEGER )
----
0

query I rowsort
SELECT + ( + 3 ) * + 86 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NOT NULL IS NULL )
----

query I rowsort
SELECT + + col0 + 96 FROM tab1 AS cor0
----
147
181
187

query I rowsort
SELECT ALL + col1 + 79 FROM tab1 AS cor0
----
126
84
93

query II rowsort
SELECT - ( + col0 ) * - - col0 + - col0, col0 FROM tab0 AS cor0
----
-240
15
-7656
87
-9506
97

query I rowsort
SELECT ALL + + col0 + 0 AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + col0 ) < + 97 + - 47
----
64
77
40
75
67
58

query I rowsort
SELECT - 23 + + 34 AS col0 FROM tab1 AS cor0
----
11
11
11

query I rowsort
SELECT ALL + col1 - - + col0 * - 91 - + - 87 AS col1 FROM tab1 AS cor0
----
-4540
-7643
-8147

onlyif mysql # aggregate syntax: 
query I rowsort label-2360
SELECT ALL + - SUM( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-2360
SELECT ALL + - SUM ( ALL + - col0 ) AS col2 FROM tab0 AS cor0
----
199

query I rowsort
SELECT ALL col0 * - - 32 AS col2 FROM tab0
----
2784
3104
480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2362
SELECT + 86 * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2362
SELECT + 86 * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2363
SELECT ALL - MIN( - + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL - MIN ( - + col2 ) FROM tab2
----
58

query I rowsort
SELECT - col1 * + - 57 * - 30 FROM tab0
----
-138510
-1710
-35910

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2365
SELECT + CAST( - col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-2365
SELECT + CAST ( - col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab1 WHERE ( + - 19 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2367
SELECT + + MIN( + - ( - 7 ) ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-2367
SELECT + + MIN ( + - ( - 7 ) ) FROM tab1 AS cor0
----
7

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2369
SELECT ALL col2 * CAST( NULL AS SIGNED ) * + + col1 + + col2 / - - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2369
SELECT ALL col2 * CAST ( NULL AS INTEGER ) * + + col1 + + col2 / - - col2 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col1 * + col1 + + 76 * + + col1 col1 FROM tab2 AS cor0
----
-77
1275
603

onlyif mysql # DIV for integer division: 
query I rowsort label-2371
SELECT + col2 DIV - - col2 AS col0 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2371
SELECT + col2 / - - col2 AS col0 FROM tab0
----
1
1
1

query I rowsort
SELECT 82 * + col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2373
SELECT DISTINCT + - ( - MAX( - col1 ) ) DIV + 64 + - COUNT( * ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2373
SELECT DISTINCT + - ( - MAX ( - col1 ) ) / + 64 + - COUNT ( * ) col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col2 * + 35 FROM tab2
----
1400
2030
805

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT COUNT( * ) FROM tab1 WHERE ( - - col1 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT COUNT ( * ) FROM tab1 WHERE ( - - col1 ) = NULL
----
0

query II rowsort
SELECT + col0, - col0 FROM tab2 WHERE NOT - ( col2 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 + 8 * - col1 * col2 + + col2 col2 FROM tab0
----
-1692
-30431
-715

query I rowsort
SELECT ALL col0 * - col0 FROM tab2 AS cor0 WHERE NOT 99 * - col2 IS NOT NULL
----

query I rowsort
SELECT - col0 + + 54 AS col2 FROM tab2 AS cor0
----
-10
-21
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 54 col2 FROM tab1 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT DISTINCT - ( - 99 ) + - COUNT( * ) AS col2 FROM tab2 WHERE NULL < - - 80
----
99

skipif mysql # not compatible
query I rowsort label-2381
SELECT DISTINCT - ( - 99 ) + - COUNT ( * ) AS col2 FROM tab2 WHERE NULL < - - 80
----
99

query I rowsort
SELECT - 3 * + col2 FROM tab2 AS cor0
----
-120
-174
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2383
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - + 85 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2383
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - + 85 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2384
SELECT DISTINCT - - 88, + COUNT( * ) DIV 78 col0 FROM tab0 AS cor0
----
88
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2384
SELECT DISTINCT - - 88, + COUNT ( * ) / 78 col0 FROM tab0 AS cor0
----
88
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2385
SELECT + MIN( ALL - 71 ) - + COUNT( * ) / - COUNT( * ) / - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2385
SELECT + MIN ( ALL - 71 ) - + COUNT ( * ) / - COUNT ( * ) / - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE + col2 * col1 BETWEEN - + col1 * - 36 AND + - 19 + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2387
SELECT - + COUNT( * ) * 5 - - + 20 FROM tab1 cor0
----
5

skipif mysql # not compatible
query I rowsort label-2387
SELECT - + COUNT ( * ) * 5 - - + 20 FROM tab1 cor0
----
5

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col2 * - 37 <> ( 11 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2389
SELECT DISTINCT ( + 26 ) AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
26
NULL

skipif mysql # not compatible
query II rowsort label-2389
SELECT DISTINCT ( + 26 ) AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
26
NULL

query I rowsort
SELECT ALL + col0 - + 74 + - col0 AS col1 FROM tab2
----
-74
-74
-74

query I rowsort
SELECT + col2 * + col1 * + - col0 + + 34 * + col2 FROM tab1
----
-23069
-288524
-65280

onlyif mysql # aggregate syntax: 
query I rowsort label-2392
SELECT ALL - ( + COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2392
SELECT ALL - ( + COUNT ( * ) ) col0 FROM tab0
----
-3

query II rowsort
SELECT ALL - ( - col2 ), - col2 AS col1 FROM tab2
----
23
-23
40
-40
58
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 16 col0 FROM tab2
----
-16

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 NOT IN ( + col2, + col0 + - - 87 * + - col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE ( 30 + col1 ) NOT BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2396
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE ( 30 + col1 ) NOT BETWEEN ( NULL ) AND NULL
----
0

query I rowsort
SELECT ALL 20 AS col0 FROM tab2, tab0 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + 61 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 51f53697966a79d306a4570537cd91a1

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 BETWEEN + col2 + col0 * - - col0 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT + col1 * + - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-2400
SELECT + col1 * + - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2401
SELECT DISTINCT col2, CAST( - col0 AS SIGNED ) + + - 93 + col2 FROM tab2
----
23
-116
40
-117
58
-110

skipif mysql # not compatible
query II rowsort label-2401
SELECT DISTINCT col2, CAST ( - col0 AS INTEGER ) + + - 93 + col2 FROM tab2
----
23
-116
40
-117
58
-110

query III rowsort
SELECT ALL * FROM tab2 WHERE + + 77 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= - 77
----
64
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-2404
SELECT ALL + col2 DIV - col0 + - 82 * - - 26 * - col0 AS col0 FROM tab2
----
136448
159900
98072

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + col2 / - col0 + - 82 * - - 26 * - col0 AS col0 FROM tab2
----
136448
159900
98072

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 61 AND + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2406
SELECT ALL + col0 + - - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2406
SELECT ALL + col0 + - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 + + 99 FROM tab1 AS cor0
----
104
113
146

query I rowsort
SELECT DISTINCT + col2 + - col2 * + - col0 * + col2 + + + col1 + 72 * ( + col2 ) + - + col2 + + ( + + col0 ) AS col2 FROM tab2
----
105421
256618
26087

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2409
SELECT * FROM tab1 WHERE NULL <> ( 52 + + + CAST( NULL AS SIGNED ) + + 17 )
----

skipif mysql # not compatible
query III rowsort label-2409
SELECT * FROM tab1 WHERE NULL <> ( 52 + + + CAST ( NULL AS INTEGER ) + + 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2410
SELECT + MAX( ALL + + col0 ) + - 46 AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-2410
SELECT + MAX ( ALL + + col0 ) + - 46 AS col0 FROM tab0 AS cor0
----
51

query I rowsort
SELECT DISTINCT - + col0 - col0 AS col0 FROM tab2 AS cor0
----
-128
-150
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-2412
SELECT DISTINCT + COUNT( * ) + 45 FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-2412
SELECT DISTINCT + COUNT ( * ) + 45 FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT + - col0 FROM tab0 AS cor0 WHERE NOT - 3 IS NULL
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 74 / + 85 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + 2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2416
SELECT - ( + - COUNT( DISTINCT + 58 ) ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2416
SELECT - ( + - COUNT ( DISTINCT + 58 ) ) FROM tab0
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2417
SELECT - + 37 + COUNT( * ) AS col0 FROM tab1 WHERE NOT + - 13 < + - ( - 55 ) + + CAST( NULL AS SIGNED )
----
-37

skipif mysql # not compatible
query I rowsort label-2417
SELECT - + 37 + COUNT ( * ) AS col0 FROM tab1 WHERE NOT + - 13 < + - ( - 55 ) + + CAST ( NULL AS INTEGER )
----
-37

query I rowsort
SELECT - 22 FROM tab0 WHERE NOT + col0 * + + col1 + col2 * + + col0 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2419
SELECT MIN( - + col2 ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2419
SELECT MIN ( - + col2 ) FROM tab1
----
-96

query I rowsort
SELECT 4 * 51 AS col2 FROM tab1
----
204
204
204

query II rowsort
SELECT DISTINCT 24 AS col0, - ( - 84 ) - - col0 + + col0 AS col2 FROM tab0
----
24
114
24
258
24
278

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2422
SELECT DISTINCT col1, 44 + CAST( NULL AS SIGNED ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-2422
SELECT DISTINCT col1, 44 + CAST ( NULL AS INTEGER ) FROM tab2
----
51
NULL
67
NULL
77
NULL

query I rowsort
SELECT + col2 + col1 - + 45 / col2 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN - 34 AND - + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2424
SELECT CAST( NULL AS DECIMAL ) / + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2424
SELECT CAST ( NULL AS REAL ) / + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2425
SELECT COUNT( * ) * - ( + 37 ) FROM tab2 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-2425
SELECT COUNT ( * ) * - ( + 37 ) FROM tab2 AS cor0
----
-111

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 < - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 24 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
24

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = + col1 * col0
----

query II rowsort
SELECT DISTINCT - col1 + + + col1 AS col2, col2 FROM tab0
----
0
10
0
47
0
99

query I rowsort
SELECT DISTINCT - col0 + - - 10 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= + 7
----
-75

query I rowsort
SELECT DISTINCT + - col2 * - 62 * - 88 AS col0 FROM tab2 AS cor0
----
-125488
-218240
-316448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 60 col0 FROM tab0 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2433
SELECT + - COUNT( - col0 ) * COUNT( * ) col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2433
SELECT + - COUNT ( - col0 ) * COUNT ( * ) col0 FROM tab0 AS cor0
----
-9

query I rowsort
SELECT DISTINCT col1 + + ( - col0 ) FROM tab1
----
-37
-44
-80

query I rowsort
SELECT 69 * 59 AS col1 FROM tab2
----
4071
4071
4071

query II rowsort
SELECT + col2 + col1 AS col2, 7 FROM tab0 WHERE NULL = - 32
----

query I rowsort
SELECT DISTINCT 30 + + + col1 AS col0 FROM tab0
----
111
31
51

query I rowsort
SELECT ALL 48 + col1 FROM tab0
----
129
49
69

query I rowsort
SELECT ALL + + 36 * + 19 FROM tab0 WHERE NOT + 38 IS NULL
----
684
684
684

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - - 67 * 47 + + col2 AND - col0 + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2441
SELECT DISTINCT * FROM tab2 WHERE - 96 >= + + CAST( NULL AS SIGNED ) / + col1
----

skipif mysql # not compatible
query III rowsort label-2441
SELECT DISTINCT * FROM tab2 WHERE - 96 >= + + CAST ( NULL AS INTEGER ) / + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2442
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * 38 + - 54 AS col1 FROM tab2
----
1884
2492
2872

skipif mysql # not compatible
query I rowsort label-2442
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * 38 + - 54 AS col1 FROM tab2
----
1884
2492
2872

query III rowsort
SELECT * FROM tab2 WHERE + ( - - col0 ) + + col1 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2444
SELECT ALL + 81 DIV - + 47 - MIN( DISTINCT + - col0 ) col0 FROM tab2 AS cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2444
SELECT ALL + 81 / - + 47 - MIN ( DISTINCT + - col0 ) col0 FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT + 2 + + COUNT( * ) FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2445
SELECT + 2 + + COUNT ( * ) FROM tab1 AS cor0
----
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2446
SELECT + col2 DIV - - 56 + + col2 AS col0 FROM tab2 cor0
----
23
40
59

skipif mysql # not compatible
query I rowsort label-2446
SELECT + col2 / - - 56 + + col2 AS col0 FROM tab2 cor0
----
23
40
59

query I rowsort
SELECT + - col0 + + 89 AS col1 FROM tab1 AS cor0
----
-2
38
4

query III rowsort
SELECT * FROM tab0 WHERE NULL < - - 26
----

query I rowsort
SELECT - + 57 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 520dc393896969e02a72ab6c5d92126b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2450
SELECT * FROM tab0 WHERE ( - 32 * + col1 - col2 * - 14 + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2450
SELECT * FROM tab0 WHERE ( - 32 * + col1 - col2 * - 14 + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT ( - + 18 ) + - ( ( - 34 ) ) FROM tab2 AS cor0
----
16

query I rowsort
SELECT col0 - + 19 AS col2 FROM tab0 AS cor0
----
-4
68
78

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + 60 col0 FROM tab1 AS cor0
----
-36
-8
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2454
SELECT + - col0 * + CAST( NULL AS SIGNED ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2454
SELECT + - col0 * + CAST ( NULL AS INTEGER ) - col2 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2455
SELECT * FROM tab0 cor0 WHERE + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2455
SELECT * FROM tab0 cor0 WHERE + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + col0 AS col2, - col1 - - - col1 AS col1 FROM tab1 AS cor0
----
51
-28
85
-10
91
-94

query I rowsort
SELECT - + 87 * - ( + - ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-4089
-8613
-870

query II rowsort
SELECT ALL - 7 * + + ( col2 ) * - 96, + col2 AS col2 FROM tab2 AS cor0
----
15456
23
26880
40
38976
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2459
SELECT DISTINCT + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-2460
SELECT DISTINCT + COUNT( col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2460
SELECT DISTINCT + COUNT ( col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ( + col2 ) * - + 70 FROM tab0
----
-3290
-6930
-700

onlyif mysql # DIV for integer division: 
query I rowsort label-2462
SELECT DISTINCT + col2 DIV + - col0 AS col1 FROM tab0 cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2462
SELECT DISTINCT + col2 / + - col0 AS col1 FROM tab0 cor0
----
-1
-3
0

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2464
SELECT DISTINCT - MIN( + + col1 ) FROM tab1
----
-5

skipif mysql # not compatible
query I rowsort label-2464
SELECT DISTINCT - MIN ( + + col1 ) FROM tab1
----
-5

query I rowsort
SELECT + + col2 * + - 86 AS col1 FROM tab2 AS cor0
----
-1978
-3440
-4988

query I rowsort
SELECT - col0 * + - 52 * - col2 + - col0 FROM tab0 AS cor0
----
-36675
-45327
-499453

query I rowsort
SELECT DISTINCT + + col2 + 22 + col2 AS col2 FROM tab0 AS cor0
----
116
220
42

query I rowsort
SELECT - - 13 + col2 FROM tab1 AS cor0
----
109
72
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2469
SELECT + 57 + - SUM( - 28 ) + 79 AS col0 FROM tab0 AS cor0
----
220

skipif mysql # not compatible
query I rowsort label-2469
SELECT + 57 + - SUM ( - 28 ) + 79 AS col0 FROM tab0 AS cor0
----
220

query I rowsort
SELECT + col1 + + col2 + - ( + 51 ) AS col0 FROM tab1
----
13
59
64

query I rowsort
SELECT ALL col0 + - + 73 AS col0 FROM tab2
----
-27
-9
2

query I rowsort
SELECT DISTINCT + col2 - - + 0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT ALL col1 * + 75 - - col1 FROM tab2 AS cor0
----
3876
5092
5852

query I rowsort
SELECT + col1 * + col1 + col0 + - - col2 FROM tab2
----
2670
4622
6033

onlyif mysql # aggregate syntax: 
query I rowsort label-2475
SELECT ALL - COUNT( * ) * - 7 FROM tab0 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2475
SELECT ALL - COUNT ( * ) * - 7 FROM tab0 AS cor0
----
21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 41 = - + 71
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 + + 89 * - 15 AND + ( + - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2478
SELECT MAX( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2478
SELECT MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT DISTINCT - 80 * col0 AS col0 FROM tab2 AS cor0
----
-3680
-5120
-6000

query I rowsort
SELECT DISTINCT - col2 * + + col0 * + col0 AS col2 FROM tab1 WHERE - - 70 + col0 * 57 IS NOT NULL
----
-249696
-426275
-563108

onlyif mysql # DIV for integer division: 
query I rowsort label-2481
SELECT DISTINCT + col2 DIV - - ( col0 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-2481
SELECT DISTINCT + col2 / - - ( col0 ) FROM tab1
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2482
SELECT ALL col0 AS col0, 39 * col2 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-2482
SELECT ALL col0 AS col0, 39 * col2 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
51
NULL
85
NULL
91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2483
SELECT - COUNT( * ) * - ( 73 ) AS col1 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-2483
SELECT - COUNT ( * ) * - ( 73 ) AS col1 FROM tab0
----
219

onlyif mysql # DIV for integer division: 
query I rowsort label-2484
SELECT col1 DIV col2 * - col1 DIV col1 col1 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2484
SELECT col1 / col2 * - col1 / col1 col1 FROM tab2
----
-1
-1
-2

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 AS col2 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

onlyif mysql # DIV for integer division: 
query II rowsort label-2486
SELECT ALL - col1 DIV - + 15 AS col0, - col1 DIV col1 FROM tab2
----
3
-1
4
-1
5
-1

skipif mysql # not compatible
query II rowsort label-2486
SELECT ALL - col1 / - + 15 AS col0, - col1 / col1 FROM tab2
----
3
-1
4
-1
5
-1

query I rowsort
SELECT DISTINCT - + 20 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-2488
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----
0

skipif mysql # not compatible
query I rowsort label-2488
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL < NULL
----
0

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + col0 / + + ( - col0 ) BETWEEN col1 * + ( - col2 ) / col0 / + 86 AND ( - - col2 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2491
SELECT ALL + CAST( + col1 AS SIGNED ) * - 92 + + col2 FROM tab0 AS cor0
----
-1922
-7405
7

skipif mysql # not compatible
query I rowsort label-2491
SELECT ALL + CAST ( + col1 AS INTEGER ) * - 92 + + col2 FROM tab0 AS cor0
----
-1922
-7405
7

query I rowsort
SELECT DISTINCT 57 AS col1 FROM tab1 AS cor0 WHERE NOT col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - COUNT( DISTINCT - + 70 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-2493
SELECT - COUNT ( DISTINCT - + 70 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT - col0 * 83 FROM tab2
----
-3818
-5312
-6225

query I rowsort
SELECT DISTINCT col2 * 46 * 4 + - + col2 FROM tab2
----
10614
4209
7320

onlyif mysql # aggregate syntax: 
query I rowsort label-2496
SELECT DISTINCT ( - 38 ) + + + COUNT( * ) FROM tab1
----
-35

skipif mysql # not compatible
query I rowsort label-2496
SELECT DISTINCT ( - 38 ) + + + COUNT ( * ) FROM tab1
----
-35

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT + col2 * - col2 * - - col0 BETWEEN - col0 AND col0 + + 89 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + + - col2 col2 FROM tab1 AS cor0
----
-21
-54
-82

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2499
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST( - - col2 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2499
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST ( - - col2 AS REAL ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2500
SELECT * FROM tab2 AS cor0 WHERE CAST( col2 AS SIGNED ) * + 71 NOT IN ( - 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2500
SELECT * FROM tab2 AS cor0 WHERE CAST ( col2 AS INTEGER ) * + 71 NOT IN ( - 5 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 20 * + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2502
SELECT ALL - - COUNT( * ) - - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2502
SELECT ALL - - COUNT ( * ) - - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 2 AS col0 FROM tab0 cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2504
SELECT COUNT( + ( + + 41 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2504
SELECT COUNT ( + ( + + 41 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + 32 * col0 FROM tab2 AS cor0
----
1472
2048
2400

query I rowsort
SELECT + col0 * - col1 + + 96 * col1 AS col1 FROM tab2 AS cor0
----
1407
2464
2550

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col1 * + + col2 col0, 36 FROM tab1 AS cor0
----
1344
36
295
36
3196
36

query I rowsort
SELECT DISTINCT 3 * + ( 94 ) FROM tab1 AS cor0
----
282

onlyif mysql # aggregate syntax: 
query I rowsort label-2509
SELECT DISTINCT + - SUM( col2 ) FROM tab0 cor0
----
-156

skipif mysql # not compatible
query I rowsort label-2509
SELECT DISTINCT + - SUM ( col2 ) FROM tab0 cor0
----
-156

query I rowsort
SELECT ALL + col2 * - - ( - col0 ) + + + col0 + 29 - + col1 * col1 FROM tab2 WHERE - col1 <= col0 + + - ( + ( ( - - 86 ) ) ) + + + col0 * - + col1 / - 94 * - + col1 * col2 + + - col0 + - 17
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col2 - + + ( col0 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 67 AS col2 FROM tab1, tab2 AS cor0
----
9 values hashing to fbe03b15d6b951410b38f7e98895006f

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT 45 * + + COUNT( * ) * + - 66 col0 FROM tab0, tab0 AS cor0
----
-26730

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2513
SELECT 45 * + + COUNT ( * ) * + - 66 col0 FROM tab0, tab0 AS cor0
----
-26730

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2514
SELECT - 62 * + ( - CAST( + col2 AS SIGNED ) ) FROM tab2 cor0
----
1426
2480
3596

skipif mysql # not compatible
query I rowsort label-2514
SELECT - 62 * + ( - CAST ( + col2 AS INTEGER ) ) FROM tab2 cor0
----
1426
2480
3596

onlyif mysql # DIV for integer division: 
query I rowsort label-2515
SELECT ALL - col2 DIV 36 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-2515
SELECT ALL - col2 / 36 AS col1 FROM tab1 AS cor0
----
-1
-1
-2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + ( + + col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 67 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
67

query III rowsort
SELECT ALL * FROM tab2 WHERE 24 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - - col0 <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2520
SELECT + col1 + - - col2 * + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

skipif mysql # not compatible
query I rowsort label-2520
SELECT + col1 + - - col2 * + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + + ( + 96 ) * + col0 + 93 AS col1 FROM tab1 AS cor0
----
4989
8253
8829

query II rowsort
SELECT ALL - 45, col2 FROM tab1 AS cor0
----
-45
59
-45
68
-45
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT + MAX( 58 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT + MAX ( 58 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT + 60 AS col0 FROM tab0 cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT DISTINCT MAX( DISTINCT - 25 ) AS col1 FROM tab1
----
-25

skipif mysql # not compatible
query I rowsort label-2525
SELECT DISTINCT MAX ( DISTINCT - 25 ) AS col1 FROM tab1
----
-25

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + col0 ) = - 16 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2527
SELECT + CAST( col2 AS SIGNED ) * + ( 65 ) col0 FROM tab2
----
1495
2600
3770

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2527
SELECT + CAST ( col2 AS INTEGER ) * + ( 65 ) col0 FROM tab2
----
1495
2600
3770

onlyif mysql # aggregate syntax: 
query I rowsort label-2528
SELECT ALL SUM( DISTINCT + + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-2528
SELECT ALL SUM ( DISTINCT + + col2 ) FROM tab0
----
156

query II rowsort
SELECT DISTINCT - col0 + - col1 AS col1, col2 FROM tab2
----
-141
40
-142
58
-97
23

query I rowsort
SELECT - ( + - 97 ) AS col0 FROM tab1
----
97
97
97

query II rowsort
SELECT ALL - + 94 + - 66 + + - col2, + col2 FROM tab1 AS cor0
----
-219
59
-228
68
-256
96

query II rowsort
SELECT 55, col2 FROM tab1 AS cor0
----
55
59
55
68
55
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2533
SELECT DISTINCT - - AVG ( - - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2533
SELECT DISTINCT - - AVG ( - - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 72 AS col1 FROM tab1 cor0
----
-72
-72
-72

query I rowsort
SELECT ALL 77 * + col2 AS col1 FROM tab1 AS cor0
----
4543
5236
7392

onlyif mysql # DIV for integer division: 
query II rowsort label-2536
SELECT ALL - col1 AS col0, + col2 * - col1 * + + col1 DIV col1 FROM tab2 cor0
----
-51
-1173
-67
-3886
-77
-3080

skipif mysql # not compatible
query II rowsort label-2536
SELECT ALL - col1 AS col0, + col2 * - col1 * + + col1 / col1 FROM tab2 cor0
----
-51
-1173
-67
-3886
-77
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-2537
SELECT DISTINCT - - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2537
SELECT DISTINCT - - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT DISTINCT + col0 + - + col0 * 48 FROM tab2
----
-2162
-3008
-3525

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 >= + col0
----

query I rowsort
SELECT DISTINCT - col2 * - + col0 AS col2 FROM tab1
----
4896
5015
6188

query I rowsort
SELECT ( - 49 ) AS col2 FROM tab2
----
-49
-49
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-2542
SELECT DISTINCT ( - + MAX( ALL - col1 ) ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT ( - + MAX ( ALL - col1 ) ) AS col1 FROM tab1 AS cor0
----
5

query I rowsort
SELECT - 25 + - col2 * - col0 * - col2 AS col0 FROM tab0
----
-33160
-8725
-950722

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 45 + + + col1 col2 FROM tab0
----
126
46
66

onlyif mysql # aggregate syntax: 
query I rowsort label-2545
SELECT ALL MIN( + 96 ) + - - 62 col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2545
SELECT ALL MIN ( + 96 ) + - - 62 col1 FROM tab0 AS cor0 WHERE ( NULL ) = NULL
----
NULL

query II rowsort
SELECT DISTINCT + col2 * - - col1 + - 85, + 79 AS col0 FROM tab0 AS cor0
----
125
79
14
79
3722
79

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 11 ) col2 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-2549
SELECT + + MAX( ALL + + col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2549
SELECT + + MAX ( ALL + + col1 ) FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2550
SELECT ALL - MAX( - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2550
SELECT ALL - MAX ( - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 - + 57 FROM tab2
----
-17
-34
1

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT + 52 * + + col0 * 51 + 70 IS NULL
----
59
68
96

query I rowsort
SELECT ALL - col1 + 96 AS col2 FROM tab1 WHERE NOT - 99 IS NOT NULL
----

query I rowsort
SELECT ALL - 86 + - col1 FROM tab0
----
-107
-167
-87

query II rowsort
SELECT - - 51 AS col2, 69 AS col2 FROM tab0 AS cor0
----
51
69
51
69
51
69

onlyif mysql # DIV for integer division: 
query I rowsort label-2556
SELECT DISTINCT + col1 DIV - + 99 DIV col1 * + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2556
SELECT DISTINCT + col1 / - + 99 / col1 * + col0 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2557
SELECT - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( CAST( + - col2 AS SIGNED ) ) + - col2 IN ( 90, - col0 * - CAST( NULL AS SIGNED ) * + - col1 - - col0 )
----

skipif mysql # not compatible
query I rowsort label-2557
SELECT - ( col1 ) AS col2 FROM tab2 AS cor0 WHERE NOT + ( CAST ( + - col2 AS INTEGER ) ) + - col2 IN ( 90, - col0 * - CAST ( NULL AS INTEGER ) * + - col1 - - col0 )
----

query I rowsort
SELECT + - col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT DISTINCT + + SUM( DISTINCT 59 ) AS col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-2559
SELECT DISTINCT + + SUM ( DISTINCT 59 ) AS col1 FROM tab2 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2560
SELECT + col2 * + + ( - CAST( NULL AS SIGNED ) ), 9 + + - col0 + - 54 AS col0 FROM tab2 AS cor0
----
NULL
-109
NULL
-120
NULL
-91

skipif mysql # not compatible
query II rowsort label-2560
SELECT + col2 * + + ( - CAST ( NULL AS INTEGER ) ), 9 + + - col0 + - 54 AS col0 FROM tab2 AS cor0
----
NULL
-109
NULL
-120
NULL
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2561
SELECT ALL - MIN( - 71 ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-2561
SELECT ALL - MIN ( - 71 ) FROM tab2 AS cor0
----
71

query I rowsort
SELECT ALL col2 * col1 * + 19 AS col1 FROM tab2 AS cor0
----
22287
58520
73834

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 44 > + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT DISTINCT + ( + - SUM( - + 63 ) ) FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-2564
SELECT DISTINCT + ( + - SUM ( - + 63 ) ) FROM tab2 AS cor0
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 19 * + col2 + + col1 AS col2, 63 col0 FROM tab2
----
1169
63
488
63
837
63

query I rowsort
SELECT col2 + - + 23 FROM tab0
----
-13
24
76

query I rowsort
SELECT DISTINCT col2 * + col2 + + + col1 - + 44 + - ( + - col2 ) AS col2 FROM tab2
----
1673
3445
559

onlyif mysql # aggregate syntax: 
query I rowsort label-2568
SELECT DISTINCT - COUNT( + col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2568
SELECT DISTINCT - COUNT ( + col2 ) AS col0 FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2569
SELECT + CAST( - 10 AS SIGNED ) FROM tab2
----
-10
-10
-10

skipif mysql # not compatible
query I rowsort label-2569
SELECT + CAST ( - 10 AS INTEGER ) FROM tab2
----
-10
-10
-10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2570
SELECT ALL + CAST( + COUNT( - col0 ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2570
SELECT ALL + CAST ( + COUNT ( - col0 ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - - col2 * + 32 FROM tab0 AS cor0
----
1504
3168
320

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 85 * + + col2 * ( - 57 ) * col2 + + 6 * + 0 col2 FROM tab1 cor0
----
-16865445
-22403280
-44651520

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 69 + - col1 col1 FROM tab2 AS cor0
----
-120
-136
-146

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2574
SELECT + 40 + + - COUNT( * ) * CAST( NULL AS SIGNED ) * - CAST( - AVG ( - 69 ) AS SIGNED ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2574
SELECT + 40 + + - COUNT ( * ) * CAST ( NULL AS INTEGER ) * - CAST ( - AVG ( - 69 ) AS INTEGER ) FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + col2 AS col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 49 + + 86, col1 + + col2 col1 FROM tab1 AS cor0
----
135
110
135
115
135
64

query I rowsort
SELECT ALL col0 - - + col1 + - col2 FROM tab2 AS cor0
----
101
74
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT DISTINCT ( + + 46 ) * + + COUNT( * ) FROM tab1 cor0
----
138

skipif mysql # not compatible
query I rowsort label-2578
SELECT DISTINCT ( + + 46 ) * + + COUNT ( * ) FROM tab1 cor0
----
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * + 13 col0 FROM tab1
----
-1248
-767
-884

onlyif mysql # aggregate syntax: 
query I rowsort label-2580
SELECT DISTINCT MIN( ALL - + col1 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 33 AND + + 37 * + - ( - 58 )
----
NULL

skipif mysql # not compatible
query I rowsort label-2580
SELECT DISTINCT MIN ( ALL - + col1 ) AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN 33 AND + + 37 * + - ( - 58 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2581
SELECT ALL - CAST( NULL AS DECIMAL ) / + COUNT( * ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL - CAST ( NULL AS REAL ) / + COUNT ( * ) AS col2 FROM tab0
----
NULL

query II rowsort
SELECT + col1 * + col2 * - 16, col0 AS col0 FROM tab2
----
-18768
46
-49280
64
-62176
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2583
SELECT ALL MIN( DISTINCT + 39 ) FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-2583
SELECT ALL MIN ( DISTINCT + 39 ) FROM tab0
----
39

query I rowsort
SELECT - 12 * + + col1 FROM tab2
----
-612
-804
-924

onlyif mysql # aggregate syntax: 
query I rowsort label-2585
SELECT - COUNT( * ) * + 27 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-2585
SELECT - COUNT ( * ) * + 27 FROM tab2
----
-81

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab1 AS cor0 WHERE 97 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2587
SELECT DISTINCT ( + + ( + COUNT( * ) ) ) DIV 62 AS col0, + COUNT( + - 17 ) AS col2 FROM tab2
----
0
3

skipif mysql # not compatible
query II rowsort label-2587
SELECT DISTINCT ( + + ( + COUNT ( * ) ) ) / 62 AS col0, + COUNT ( + - 17 ) AS col2 FROM tab2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + MIN( DISTINCT - 11 ) + + 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26

skipif mysql # not compatible
query I rowsort label-2588
SELECT + MIN ( DISTINCT - 11 ) + + 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
26

onlyif mysql # DIV for integer division: 
query I rowsort label-2589
SELECT 6 * ( + + col2 ) DIV - 36 AS col0 FROM tab0
----
-1
-16
-7

skipif mysql # not compatible
query I rowsort label-2589
SELECT 6 * ( + + col2 ) / - 36 AS col0 FROM tab0
----
-1
-16
-7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 * + 50 col2 FROM tab2
----
-2300
-2300
-2300

query I rowsort
SELECT ALL + ( - 69 ) AS col1 FROM tab1 AS cor0
----
-69
-69
-69

onlyif mysql # DIV for integer division: 
query II rowsort label-2592
SELECT ALL - 28 AS col2, col0 DIV + col2 + - + col2 FROM tab0 AS cor0
----
-28
-2
-28
-47
-28
-99

skipif mysql # not compatible
query II rowsort label-2592
SELECT ALL - 28 AS col2, col0 / + col2 + - + col2 FROM tab0 AS cor0
----
-28
-2
-28
-47
-28
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2593
SELECT + COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2593
SELECT + COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-2594
SELECT DISTINCT + - col1 AS col2, col2 DIV - col0 FROM tab2 cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-2594
SELECT DISTINCT + - col1 AS col2, col2 / - col0 FROM tab2 cor0
----
-51
0
-67
0
-77
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 67 > - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2596
SELECT MIN( DISTINCT + + CAST( - col2 AS SIGNED ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-2596
SELECT MIN ( DISTINCT + + CAST ( - col2 AS INTEGER ) ) FROM tab1
----
-96

query III rowsort
SELECT * FROM tab1 WHERE ( ( + 47 ) IS NULL )
----

query I rowsort
SELECT DISTINCT - 55 * + col0 + col2 - + + 8 FROM tab1
----
-2717
-4624
-4945

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2599
SELECT ALL - COUNT( * ) * + CAST( CAST( - - 34 AS SIGNED ) AS SIGNED ) col1 FROM tab2
----
-102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2599
SELECT ALL - COUNT ( * ) * + CAST ( CAST ( - - 34 AS INTEGER ) AS INTEGER ) col1 FROM tab2
----
-102

onlyif mysql # aggregate syntax: 
query I rowsort label-2600
SELECT DISTINCT + ( - - COUNT( * ) ) + + COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-2600
SELECT DISTINCT + ( - - COUNT ( * ) ) + + COUNT ( * ) FROM tab1
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2601
SELECT ALL col0 * + CAST( - - 75 AS SIGNED ) + - + 21 FROM tab0
----
1104
6504
7254

skipif mysql # not compatible
query I rowsort label-2601
SELECT ALL col0 * + CAST ( - - 75 AS INTEGER ) + - + 21 FROM tab0
----
1104
6504
7254

onlyif mysql # DIV for integer division: 
query I rowsort label-2602
SELECT + col2 DIV - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-2602
SELECT + col2 / - col0 AS col1 FROM tab0 WHERE NULL IS NULL
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2603
SELECT COUNT( + - col0 ) + 2 * + MAX( - + 72 ), COUNT( * ) col2 FROM tab2
----
-141
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2603
SELECT COUNT ( + - col0 ) + 2 * + MAX ( - + 72 ), COUNT ( * ) col2 FROM tab2
----
-141
3

query I rowsort
SELECT - col2 + col2 * - ( + + 79 ) AS col0 FROM tab2 AS cor0
----
-1840
-3200
-4640

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2605
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST( + col2 AS SIGNED ) / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2605
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( + col2 AS INTEGER ) / + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 - + + 49 col1 FROM tab0 AS cor0
----
-2
-39
50

query I rowsort
SELECT - + col0 - col1 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2608
SELECT DISTINCT + 32 + + SUM( CAST( NULL AS SIGNED ) ) AS col1, MAX( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
NULL
-46

skipif mysql # not compatible
query II rowsort label-2608
SELECT DISTINCT + 32 + + SUM ( CAST ( NULL AS INTEGER ) ) AS col1, MAX ( DISTINCT ( - col0 ) ) AS col1 FROM tab2 AS cor0
----
NULL
-46

onlyif mysql # DIV for integer division: 
query I rowsort label-2609
SELECT - + col1 DIV col2 - - + col0 + + + 27 * - col2 AS col0 FROM tab1 AS cor0
----
-1508
-1745
-2541

skipif mysql # not compatible
query I rowsort label-2609
SELECT - + col1 / col2 - - + col0 + + + 27 * - col2 AS col0 FROM tab1 AS cor0
----
-1508
-1745
-2541

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2610
SELECT - 99 - - 92 + + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2610
SELECT - 99 - - 92 + + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 73 * col0 AS col2 FROM tab0 AS cor0
----
1095
6351
7081

onlyif mysql # DIV for integer division: 
query II rowsort label-2612
SELECT ALL + 86 DIV 85, col0 FROM tab2
----
1
46
1
64
1
75

skipif mysql # not compatible
query II rowsort label-2612
SELECT ALL + 86 / 85, col0 FROM tab2
----
1
46
1
64
1
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT ALL AVG ( ALL col1 ) / + + 15 * + 88 + - - 72 FROM tab0 WHERE CAST( ( + col2 ) AS SIGNED ) * 0 >= + + 48
----
NULL

skipif mysql # not compatible
query I rowsort label-2613
SELECT ALL AVG ( ALL col1 ) / + + 15 * + 88 + - - 72 FROM tab0 WHERE CAST ( ( + col2 ) AS INTEGER ) * 0 >= + + 48
----
NULL

query I rowsort
SELECT col2 * col1 * - 99 * + + col2 AS col2 FROM tab1
----
-12773376
-1723095
-21515472

onlyif mysql # aggregate syntax: 
query I rowsort label-2615
SELECT ALL ( - COUNT( + - col1 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL ( - COUNT ( + - col1 ) ) AS col1 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 / + col0 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 14 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-2618
SELECT + - col0 DIV col0 DIV + col1 + - + col2 + + col1 * - 20 col2 FROM tab1 AS cor0
----
-1008
-159
-376

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2618
SELECT + - col0 / col0 / + col1 + - + col2 + + col1 * - 20 col2 FROM tab1 AS cor0
----
-1008
-159
-376

query I rowsort
SELECT DISTINCT + 37 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( + 99 <> + - 40 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2620
SELECT DISTINCT + MAX( 17 ) + - - 37 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54

skipif mysql # not compatible
query I rowsort label-2620
SELECT DISTINCT + MAX ( 17 ) + - - 37 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL IS NOT NULL
----
54

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT ALL + col2 DIV col0 * 82 col0 FROM tab0
----
0
246
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2621
SELECT ALL + col2 / col0 * 82 col0 FROM tab0
----
0
246
82

onlyif mysql # aggregate syntax: 
query II rowsort label-2622
SELECT ALL COUNT( * ) AS col2, + 26 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
26

skipif mysql # not compatible
query II rowsort label-2622
SELECT ALL COUNT ( * ) AS col2, + 26 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 13 col1 FROM tab1 WHERE NOT NULL NOT BETWEEN - col2 AND + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2624
SELECT ALL + CAST( - 17 AS SIGNED ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

skipif mysql # not compatible
query I rowsort label-2624
SELECT ALL + CAST ( - 17 AS INTEGER ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON - 25 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + 50 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 78 * + col2 * - - 36 FROM tab2 AS cor0
----
112320
162864
64584

onlyif mysql # DIV for integer division: 
query I rowsort label-2628
SELECT DISTINCT - 38 DIV - + 88 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2628
SELECT DISTINCT - 38 / - + 88 FROM tab0 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2629
SELECT + + 58 DIV + - col0 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2629
SELECT + + 58 / + - col0 FROM tab1 cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2630
SELECT - 18 * - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2630
SELECT - 18 * - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + col2, 98 * 40 * - 0 + - col1 + 76 FROM tab0 AS cor0
----
10
55
47
-5
99
75

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 50 * - - ( - 57 ) + + + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2633
SELECT + MIN( DISTINCT col2 ) + AVG ( ALL - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2633
SELECT + MIN ( DISTINCT col2 ) + AVG ( ALL - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 28 + ( col0 ) FROM tab0
----
115
125
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2635
SELECT col0 + + - CAST( - col0 AS SIGNED ) FROM tab1
----
102
170
182

skipif mysql # not compatible
query I rowsort label-2635
SELECT col0 + + - CAST ( - col0 AS INTEGER ) FROM tab1
----
102
170
182

onlyif mysql # DIV for integer division: 
query I rowsort label-2636
SELECT DISTINCT + col2 DIV col0 DIV + col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2636
SELECT DISTINCT + col2 / col0 / + col0 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2637
SELECT ALL + 65 AS col0, COUNT( * ) + 8 + + - ( 95 ) * - + 32 FROM tab0
----
65
3051

skipif mysql # not compatible
query II rowsort label-2637
SELECT ALL + 65 AS col0, COUNT ( * ) + 8 + + - ( 95 ) * - + 32 FROM tab0
----
65
3051

onlyif mysql # aggregate syntax: 
query I rowsort label-2638
SELECT ALL ( - 1 ) + + COUNT( DISTINCT - 29 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2638
SELECT ALL ( - 1 ) + + COUNT ( DISTINCT - 29 ) FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2639
SELECT MAX( + 42 ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-2639
SELECT MAX ( + 42 ) FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2640
SELECT DISTINCT - 58 + - col0 - + ( CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2640
SELECT DISTINCT - 58 + - col0 - + ( CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, - 49 col2 FROM tab2
----
51
-49
67
-49
77
-49

query I rowsort
SELECT + col2 * - + 41 * col1 * - 85 AS col1 FROM tab1 AS cor0
----
1028075
11138060
4683840

query I rowsort
SELECT DISTINCT - 1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1

query I rowsort
SELECT DISTINCT - col0 + - 44 AS col0 FROM tab2 cor0
----
-108
-119
-90

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE + 25 IS NULL
----

query I rowsort
SELECT + - ( + col0 ) FROM tab2 WHERE + 57 + - col2 * - + 58 + 65 + + + ( + col2 ) + + 33 * - 28 * col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT DISTINCT col1 * + col2 - - - col0 AS col1 FROM tab1 WHERE - 38 NOT BETWEEN - 5 AND - + col2
----
1293
210
3105

query I rowsort
SELECT - + col0 FROM tab0 cor0 WHERE + col2 + col1 * col2 <= - col2
----

query I rowsort
SELECT DISTINCT ( col2 ) + + 25 * - col2 AS col0 FROM tab0 AS cor0
----
-1128
-2376
-240

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 94 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2651
SELECT ALL SUM( ALL CAST( - + 17 AS SIGNED ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2651
SELECT ALL SUM ( ALL CAST ( - + 17 AS INTEGER ) ) FROM tab1 AS cor0
----
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 - - 68 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * - 89 + + col0 AS col1 FROM tab1 AS cor0
----
1297
4274
530

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) = 1
----

query II rowsort
SELECT ALL - 79 AS col0, 88 FROM tab2
----
-79
88
-79
88
-79
88

query II rowsort
SELECT DISTINCT - col0, - col2 + + + 93 AS col1 FROM tab1
----
-51
-3
-85
34
-91
25

query III rowsort
SELECT ALL * FROM tab1 WHERE 26 * - col0 <> + 94
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2658
SELECT + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL BETWEEN NULL AND ( + + col0 * - col1 + 38 + + - col0 * - 51 * - ( + + col2 ) )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2658
SELECT + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL OR NOT NULL BETWEEN NULL AND ( + + col0 * - col1 + 38 + + - col0 * - 51 * - ( + + col2 ) )
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-2659
SELECT + + col1 col2, + 39 DIV - col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2659
SELECT + + col1 col2, + 39 / - col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query III rowsort
SELECT * FROM tab0 WHERE ( + 20 / 58 ) NOT BETWEEN 32 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN + 20 * col1 + col2 / + col2 AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2662
SELECT ALL COUNT( * ) + 98 * - 17 col0 FROM tab0
----
-1663

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2662
SELECT ALL COUNT ( * ) + 98 * - 17 col0 FROM tab0
----
-1663

query III rowsort
SELECT * FROM tab1 WHERE ( 5 ) <> NULL
----

query I rowsort
SELECT ALL ( 83 ) - col1 FROM tab0
----
2
62
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2665
SELECT ( MAX( ALL col0 ) ) + - 40 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-2665
SELECT ( MAX ( ALL col0 ) ) + - 40 FROM tab1
----
51

query III rowsort
SELECT * FROM tab1 WHERE ( 11 ) NOT BETWEEN ( + col1 ) AND col0 + + 49 * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 84 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > ( 19 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + 94 - + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT ( COUNT( * ) ) FROM tab1 WHERE - 13 + col1 * + 4 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2670
SELECT ( COUNT ( * ) ) FROM tab1 WHERE - 13 + col1 * + 4 IS NULL
----
0

query I rowsort
SELECT 59 + - 20 FROM tab0
----
39
39
39

query I rowsort
SELECT ALL 26 * + col2 AS col0 FROM tab0
----
1222
2574
260

query I rowsort
SELECT + 51 AS col1 FROM tab0 WHERE + 41 IS NULL
----

query I rowsort
SELECT ALL - 14 * + 55 FROM tab0
----
-770
-770
-770

onlyif mysql # DIV for integer division: 
query I rowsort label-2675
SELECT col2 * - 35 + 10 DIV - 83 col1 FROM tab0
----
-1645
-3465
-350

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2675
SELECT col2 * - 35 + 10 / - 83 col1 FROM tab0
----
-1645
-3465
-350

onlyif mysql # aggregate syntax: 
query I rowsort label-2676
SELECT ALL COUNT( 61 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2676
SELECT ALL COUNT ( 61 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + 97 <= ( ( - 78 ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2678
SELECT DISTINCT - col0 FROM tab2 WHERE NOT col2 BETWEEN col0 * col1 AND CAST( NULL AS SIGNED )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2678
SELECT DISTINCT - col0 FROM tab2 WHERE NOT col2 BETWEEN col0 * col1 AND CAST ( NULL AS INTEGER )
----
-46
-64
-75

query I rowsort
SELECT + col2 + + 49 AS col2 FROM tab0
----
148
59
96

onlyif mysql # DIV for integer division: 
query I rowsort label-2680
SELECT - 14 DIV + 27 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2680
SELECT - 14 / + 27 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2681
SELECT DISTINCT + COUNT( * ) * + 5 + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2681
SELECT DISTINCT + COUNT ( * ) * + 5 + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2682
SELECT COUNT( ALL col2 ) * - 75 FROM tab2
----
-225

skipif mysql # not compatible
query I rowsort label-2682
SELECT COUNT ( ALL col2 ) * - 75 FROM tab2
----
-225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2683
SELECT ALL - col0 + CAST( col2 AS SIGNED ) AS col1 FROM tab0
----
-77
2
32

skipif mysql # not compatible
query I rowsort label-2683
SELECT ALL - col0 + CAST ( col2 AS INTEGER ) AS col1 FROM tab0
----
-77
2
32

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 58 / col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT + COUNT( * ) + SUM( DISTINCT + col2 ) FROM tab2 AS cor0
----
124

skipif mysql # not compatible
query I rowsort label-2685
SELECT + COUNT ( * ) + SUM ( DISTINCT + col2 ) FROM tab2 AS cor0
----
124

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 NOT BETWEEN NULL AND 93 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2687
SELECT DISTINCT - MIN( + 70 ) AS col2 FROM tab2 AS cor0 WHERE + col1 * - col0 IS NOT NULL
----
-70

skipif mysql # not compatible
query I rowsort label-2687
SELECT DISTINCT - MIN ( + 70 ) AS col2 FROM tab2 AS cor0 WHERE + col1 * - col0 IS NOT NULL
----
-70

query I rowsort
SELECT col0 * - 97 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
-1455
-8439
-9409

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 92 IN ( + 20 + 2 * col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2691
SELECT 5 DIV + 61 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2691
SELECT 5 / + 61 AS col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ( 24 ) * 66 + 77 FROM tab2 AS cor0 CROSS JOIN tab2
----
9 values hashing to ccf58b4af9e8ea736c2036bc36fe165a

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 41 + 49 NOT IN ( - col2 - col1 * col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2694
SELECT ( - 98 ) DIV ( COUNT( * ) ) col0 FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2694
SELECT ( - 98 ) / ( COUNT ( * ) ) col0 FROM tab1 AS cor0
----
-32

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT - 83 DIV col1 FROM tab0 AS cor0
----
-1
-3
-83

skipif mysql # not compatible
query I rowsort label-2695
SELECT - 83 / col1 FROM tab0 AS cor0
----
-1
-3
-83

query I rowsort
SELECT - 53 * col0 FROM tab0 cor0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-2697
SELECT - + MIN( col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2697
SELECT - + MIN ( col2 ) FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT AVG ( DISTINCT col0 ) col1 FROM tab0 AS cor0 WHERE NOT col2 - 36 NOT IN ( - col0 / - col0 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2699
SELECT ALL CAST( + + 47 AS SIGNED ) FROM tab1
----
47
47
47

skipif mysql # not compatible
query I rowsort label-2699
SELECT ALL CAST ( + + 47 AS INTEGER ) FROM tab1
----
47
47
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT - SUM( + col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2700
SELECT - SUM ( + col2 ) AS col0 FROM tab1
----
-223

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL < + 88
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * col0 col2 FROM tab2 WHERE NOT ( NULL ) = - col0 - 43
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col0 ) >= ( + col2 ) * col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col1 * + - col0 AS col0 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-2705
SELECT ALL COUNT( * ) * + MAX( DISTINCT + col1 ) AS col2 FROM tab0
----
243

skipif mysql # not compatible
query I rowsort label-2705
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + col1 ) AS col2 FROM tab0
----
243

query I rowsort
SELECT ALL col0 * 17 + 39 / 3 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col1 AND NULL
----

query I rowsort
SELECT col1 - col2 FROM tab0 AS cor0 WHERE NOT 21 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2708
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + ( - CAST( - col2 AS SIGNED ) ) ) <> NULL
----

skipif mysql # not compatible
query III rowsort label-2708
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + ( - CAST ( - col2 AS INTEGER ) ) ) <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2709
SELECT DISTINCT SUM( DISTINCT col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2709
SELECT DISTINCT SUM ( DISTINCT col2 ) FROM tab0 AS cor0
----
156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2711
SELECT DISTINCT * FROM tab2 WHERE CAST( 4 AS SIGNED ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2711
SELECT DISTINCT * FROM tab2 WHERE CAST ( 4 AS INTEGER ) * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + ( 93 ) FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 34 * + + col0 AS col0 FROM tab0
----
2958
3298
510

onlyif mysql # aggregate syntax: 
query I rowsort label-2714
SELECT - + ( - COUNT( ALL 29 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-2714
SELECT - + ( - COUNT ( ALL 29 ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2715
SELECT DISTINCT + col0 - col1 * + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE + col2 <= + 3
----

skipif mysql # not compatible
query I rowsort label-2715
SELECT DISTINCT + col0 - col1 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE + col2 <= + 3
----

query I rowsort
SELECT DISTINCT col0 * col2 FROM tab1 AS cor0 WHERE NOT + 99 IS NULL
----
4896
5015
6188

query I rowsort
SELECT + 50 + - col2 FROM tab1 AS cor0
----
-18
-46
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col1 FROM tab2 AS cor0 WHERE NOT 62 / + 85 * - col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, - col1 AS col1 FROM tab2 cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT ALL ( - + col2 ) AS col1 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT DISTINCT + col0 + + 62 * - col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col0 / - + 48 )
----

query III rowsort
SELECT * FROM tab0 WHERE - col1 <> + col0 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 * 13 FROM tab0
----
-1287
-130
-611

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2725
SELECT - CAST( NULL AS SIGNED ) / + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2725
SELECT - CAST ( NULL AS INTEGER ) / + col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 WHERE ( col2 ) <= 37
----
23

skipif mysql # not compatible
query I rowsort label-2726
SELECT - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 WHERE ( col2 ) <= 37
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-2727
SELECT - 22 DIV col2 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2727
SELECT - 22 / col2 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2728
SELECT ALL COUNT( * ) + - 78 FROM tab1
----
-75

skipif mysql # not compatible
query I rowsort label-2728
SELECT ALL COUNT ( * ) + - 78 FROM tab1
----
-75

query I rowsort
SELECT DISTINCT + 62 / col2 AS col2 FROM tab0 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT - col1 - - col0 + 54 AS col2 FROM tab2 AS cor0
----
41
49
62

query I rowsort
SELECT DISTINCT 74 AS col0 FROM tab1 AS cor0 WHERE + col2 + + 67 NOT IN ( + ( - col2 ) - col0 )
----
74

query I rowsort
SELECT + col2 * col0 - + - ( + - col0 ) FROM tab2 cor0
----
1012
2496
4275

onlyif mysql # aggregate syntax: 
query I rowsort label-2733
SELECT DISTINCT - - COUNT( * ) - - - 60 * COUNT( DISTINCT 96 ) FROM tab0 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2733
SELECT DISTINCT - - COUNT ( * ) - - - 60 * COUNT ( DISTINCT 96 ) FROM tab0 cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 38 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2735
SELECT - COUNT( * ) * - + COUNT( * ) * + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2735
SELECT - COUNT ( * ) * - + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT col1 AS col1, col0 + - col2 * + - col0 FROM tab2
----
51
1104
67
4425
77
2624

onlyif mysql # aggregate syntax: 
query I rowsort label-2737
SELECT ALL - COUNT( 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2737
SELECT ALL - COUNT ( 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - 23 + - col1 + + - ( 33 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-2739
SELECT ( + 86 ) DIV col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( + - ( - 9 ) * + + 83 + 13 )
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2739
SELECT ( + 86 ) / col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( + - ( - 9 ) * + + 83 + 13 )
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 < ( + - col2 / + 72 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2742
SELECT DISTINCT + + ( - MIN( + col1 ) ) col0 FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2742
SELECT DISTINCT + + ( - MIN ( + col1 ) ) col0 FROM tab2 AS cor0
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2743
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE - CAST( - + col1 AS SIGNED ) NOT IN ( col2 )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2743
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE - CAST ( - + col1 AS INTEGER ) NOT IN ( col2 )
----
-23
-40
-58

query I rowsort
SELECT DISTINCT + + col1 * col1 - col2 AS col0 FROM tab1 AS cor0
----
-34
100
2141

query II rowsort
SELECT ALL - - col2 AS col1, ( - - 4 ) FROM tab0 AS cor0
----
10
4
47
4
99
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 14 > ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2747
SELECT DISTINCT MIN( + 44 ) AS col1 FROM tab0 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-2747
SELECT DISTINCT MIN ( + 44 ) AS col1 FROM tab0 AS cor0
----
44

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + 87 NOT BETWEEN ( 85 / + - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT ALL COUNT( 18 ) FROM tab1 WHERE ( - col2 NOT IN ( + + ( - col2 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-2749
SELECT ALL COUNT ( 18 ) FROM tab1 WHERE ( - col2 NOT IN ( + + ( - col2 ) ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2750
SELECT ALL - SUM( DISTINCT + + col1 ) AS col2 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2750
SELECT ALL - SUM ( DISTINCT + + col1 ) AS col2 FROM tab2
----
-195

query II rowsort
SELECT DISTINCT ( col1 ) AS col0, - col0 + + 96 FROM tab1
----
14
45
47
5
5
11

onlyif mysql # aggregate syntax: 
query II rowsort label-2752
SELECT DISTINCT COUNT( * ) AS col0, + COUNT( * ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-2752
SELECT DISTINCT COUNT ( * ) AS col0, + COUNT ( * ) FROM tab0
----
3
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL ( 77 ) * + 59 + + - ( + CAST( NULL AS SIGNED ) ) * + ( + SUM( - ( - col1 ) ) ) / 30 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL ( 77 ) * + 59 + + - ( + CAST ( NULL AS INTEGER ) ) * + ( + SUM ( - ( - col1 ) ) ) / 30 AS col2 FROM tab0
----
NULL

query I rowsort
SELECT + 47 FROM tab1 WHERE NOT NULL IS NOT NULL
----
47
47
47

query I rowsort
SELECT + col1 * - - 77 FROM tab2
----
3927
5159
5929

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2756
SELECT - COUNT( * ) FROM tab0 WHERE NOT - CAST( NULL AS DECIMAL ) * + - 93 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2756
SELECT - COUNT ( * ) FROM tab0 WHERE NOT - CAST ( NULL AS REAL ) * + - 93 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 56 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2758
SELECT ALL + ( - - COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2758
SELECT ALL + ( - - COUNT ( * ) ) FROM tab1 cor0
----
3

query I rowsort
SELECT 75 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
75
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2760
SELECT ALL - ( MAX( ALL - + 17 ) ) FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-2760
SELECT ALL - ( MAX ( ALL - + 17 ) ) FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2761
SELECT CAST( + + 98 AS SIGNED ) + + COUNT( * ) + - 67 col1 FROM tab0
----
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2761
SELECT CAST ( + + 98 AS INTEGER ) + + COUNT ( * ) + - 67 col1 FROM tab0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT ALL - COUNT( * ) - + SUM( + - col0 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2762
SELECT ALL - COUNT ( * ) - + SUM ( + - col0 ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT - - col2 + col0 * + + col2 AS col1 FROM tab2 AS cor0 WHERE col1 * + - 44 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 57 ) col0 FROM tab2 AS cor0 WHERE - 32 - - - col0 <> - col0 - ( - col0 )
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2765
SELECT ALL - 59 FROM tab0 AS cor0 WHERE NOT col1 + - col0 + + - 31 - - CAST( NULL AS SIGNED ) * 17 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2765
SELECT ALL - 59 FROM tab0 AS cor0 WHERE NOT col1 + - col0 + + - 31 - - CAST ( NULL AS INTEGER ) * 17 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2766
SELECT + MAX( + + col0 ) AS col0, - SUM( - + 70 ) FROM tab2 AS cor0
----
75
210

skipif mysql # not compatible
query II rowsort label-2766
SELECT + MAX ( + + col0 ) AS col0, - SUM ( - + 70 ) FROM tab2 AS cor0
----
75
210

query I rowsort
SELECT - - 53 * - col1 FROM tab2 AS cor0
----
-2703
-3551
-4081

query I rowsort
SELECT + 37 - - col2 FROM tab1 AS cor0
----
105
133
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2769
SELECT DISTINCT COUNT( * ) + - 49 AS col0 FROM tab0
----
-46

skipif mysql # not compatible
query I rowsort label-2769
SELECT DISTINCT COUNT ( * ) + - 49 AS col0 FROM tab0
----
-46

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 + - 25 + - 38 + - + 8 * + 29 * - 47 * + 40 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT 34 + + - CAST( NULL AS SIGNED ) * - 28 * - SUM( DISTINCT col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2771
SELECT 34 + + - CAST ( NULL AS INTEGER ) * - 28 * - SUM ( DISTINCT col2 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2772
SELECT DISTINCT + COUNT( * ) DIV 22 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2772
SELECT DISTINCT + COUNT ( * ) / 22 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2773
SELECT + col1 * - + ( + 15 ) * col0 + col0 FROM tab2 WHERE - 3 * 71 + - CAST( NULL AS SIGNED ) IS NULL
----
-35144
-73856
-75300

skipif mysql # not compatible
query I rowsort label-2773
SELECT + col1 * - + ( + 15 ) * col0 + col0 FROM tab2 WHERE - 3 * 71 + - CAST ( NULL AS INTEGER ) IS NULL
----
-35144
-73856
-75300

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + ( - ( 65 ) ) - 56 col2 FROM tab1
----
-30
-36
-70

query III rowsort
SELECT ALL * FROM tab1 WHERE + 5 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2776
SELECT * FROM tab2 AS cor0 WHERE col2 - col2 + col0 * ( col1 ) / CAST( - + col2 AS SIGNED ) IN ( col0 )
----

skipif mysql # not compatible
query III rowsort label-2776
SELECT * FROM tab2 AS cor0 WHERE col2 - col2 + col0 * ( col1 ) / CAST ( - + col2 AS INTEGER ) IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT DISTINCT - + 11 - + COUNT( * ) FROM tab2 AS cor0
----
-14

skipif mysql # not compatible
query I rowsort label-2777
SELECT DISTINCT - + 11 - + COUNT ( * ) FROM tab2 AS cor0
----
-14

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL IN ( - 92 + 31 - 2 * + ( - - 4 ) + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2779
SELECT - 34 * - - COUNT( * ), + 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-306
71

skipif mysql # not compatible
query II rowsort label-2779
SELECT - 34 * - - COUNT ( * ), + 71 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-306
71

query I rowsort
SELECT + + 28 AS col2 FROM tab2 AS cor0
----
28
28
28

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 20 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 * - + 82 * col1 AS col2 FROM tab0 AS cor0
----
36162
538002
82

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 30 ) < col0
----
87
21
10
97
1
99

query I rowsort
SELECT ALL + - col2 * col0 - 22 + + + 21 + + col2 FROM tab2 AS cor0
----
-1036
-2521
-4293

query I rowsort
SELECT 38 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN 78 * - col0 AND - + col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT + MAX( DISTINCT col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT + MAX ( DISTINCT col0 ) AS col2 FROM tab1
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2788
SELECT 97, - CAST( - + col1 AS SIGNED ) AS col1 FROM tab2
----
97
51
97
67
97
77

skipif mysql # not compatible
query II rowsort label-2788
SELECT 97, - CAST ( - + col1 AS INTEGER ) AS col1 FROM tab2
----
97
51
97
67
97
77

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT NULL IN ( col2 + ( col0 ), - 29 / + - col2 )
----

query II rowsort
SELECT ALL col0, 33 * + - 87 + - col2 * 44 * + + col0 AS col1 FROM tab0
----
15
-33891
87
-41151
97
-425403

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2791
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2791
SELECT DISTINCT * FROM tab0 WHERE NOT + + CAST ( NULL AS REAL ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT 6 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT + - MIN( ALL col0 ) AS col1 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2793
SELECT + - MIN ( ALL col0 ) AS col1 FROM tab1 cor0
----
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2794
SELECT + - MIN( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2794
SELECT + - MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - 64 AS col0 FROM tab0 AS cor0 WHERE NULL >= 56
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2796
SELECT - + 24 DIV - col0 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2796
SELECT - + 24 / - col0 AS col0 FROM tab1 cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 33 >= NULL
----

query I rowsort
SELECT DISTINCT + 9 + - col0 FROM tab2
----
-37
-55
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-2799
SELECT ALL + COUNT( * ) + + + MIN( - col0 ) + + 85 FROM tab2
----
13

skipif mysql # not compatible
query I rowsort label-2799
SELECT ALL + COUNT ( * ) + + + MIN ( - col0 ) + + 85 FROM tab2
----
13

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - + 25 IS NULL AND NULL >= ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 54 ) > col0
----
15
81
47

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab2 AS cor0 WHERE NULL NOT IN ( 15, - col0, + col1 * col0 - + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2803
SELECT DISTINCT + + COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2803
SELECT DISTINCT + + COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

query I rowsort
SELECT DISTINCT + col2 * - 88 * - + 37 FROM tab0 AS cor0
----
153032
322344
32560

query I rowsort
SELECT ALL col1 + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col1, - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2806
SELECT ALL - COUNT( * ) - + + 51 FROM tab1 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-2806
SELECT ALL - COUNT ( * ) - + + 51 FROM tab1 AS cor0
----
-54

query I rowsort
SELECT ALL - + 43 * - col1 AS col0 FROM tab0 AS cor0
----
3483
43
903

query I rowsort
SELECT DISTINCT + 20 + - - col2 - + col1 * - col0 + - col0 FROM tab2 WHERE NOT + col1 = - - 42
----
2343
4924
5028

query I rowsort
SELECT col1 * - ( 20 ) * + + 5 AS col2 FROM tab1
----
-1400
-4700
-500

onlyif mysql # DIV for integer division: 
query I rowsort label-2810
SELECT col0 DIV - + col0 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2810
SELECT col0 / - + col0 AS col0 FROM tab0
----
-1
-1
-1

query II rowsort
SELECT + 75 * col2 AS col1, 52 AS col0 FROM tab2
----
1725
52
3000
52
4350
52

query I rowsort
SELECT col2 * col2 - - 37 FROM tab2
----
1637
3401
566

query I rowsort
SELECT DISTINCT - 23 + + col0 + col1 FROM tab0 WHERE NOT + col0 <> - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2814
SELECT DISTINCT - COUNT( * ) + + MAX( - + col2 ) AS col0 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-2814
SELECT DISTINCT - COUNT ( * ) + + MAX ( - + col2 ) AS col0 FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-2815
SELECT SUM( - col2 ) * ( COUNT( ALL - col0 ) ) col0 FROM tab2
----
-363

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2815
SELECT SUM ( - col2 ) * ( COUNT ( ALL - col0 ) ) col0 FROM tab2
----
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-2816
SELECT ALL - COUNT( * ) * 83 AS col2 FROM tab1 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2816
SELECT ALL - COUNT ( * ) * 83 AS col2 FROM tab1 AS cor0
----
-249

query I rowsort
SELECT DISTINCT + + 36 * - - 17 * + col0 FROM tab0 AS cor0
----
53244
59364
9180

query I rowsort
SELECT DISTINCT + col1 * + + col0 AS col1 FROM tab1 AS cor0
----
425
4277
714

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE + ( - 59 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2820
SELECT col0 - - col0 - + + CAST( col2 AS SIGNED ) FROM tab2 WHERE NOT - - col0 IS NULL
----
69
88
92

skipif mysql # not compatible
query I rowsort label-2820
SELECT col0 - - col0 - + + CAST ( col2 AS INTEGER ) FROM tab2 WHERE NOT - - col0 IS NULL
----
69
88
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2821
SELECT ALL 62 AS col2, COUNT( * ) + - - CAST( NULL AS SIGNED ) + 58 - 68 FROM tab0 AS cor0
----
62
NULL

skipif mysql # not compatible
query II rowsort label-2821
SELECT ALL 62 AS col2, COUNT ( * ) + - - CAST ( NULL AS INTEGER ) + 58 - 68 FROM tab0 AS cor0
----
62
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT ( NOT + 88 >= - - col0 ) )
----
91
47
68

query I rowsort
SELECT DISTINCT + 51 * - 16 + + 74 AS col1 FROM tab2 AS cor0
----
-742

query II rowsort
SELECT DISTINCT - - col2, col0 FROM tab0 AS cor0 WHERE ( NULL >= + ( + col0 ) )
----

query II rowsort
SELECT DISTINCT + 79 AS col2, + 27 + - 30 FROM tab0 AS cor0
----
79
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 / - + 50 + - col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2827
SELECT ALL + 85 * 95 DIV col1 FROM tab2
----
104
120
158

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL + 85 * 95 / col1 FROM tab2
----
104
120
158

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = 68 * col1 + + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL IN ( - 7 - - 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2830
SELECT ALL 21 + - - COUNT( * ) FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-2830
SELECT ALL 21 + - - COUNT ( * ) FROM tab2
----
24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 30 ) + + col1 col1 FROM tab1
----
-16
-25
17

onlyif mysql # aggregate syntax: 
query II rowsort label-2832
SELECT DISTINCT 51 + COUNT( ALL col0 ) + 59 AS col0, + COUNT( * ) + + 0 AS col2 FROM tab1 AS cor0
----
113
3

skipif mysql # not compatible
query II rowsort label-2832
SELECT DISTINCT 51 + COUNT ( ALL col0 ) + 59 AS col0, + COUNT ( * ) + + 0 AS col2 FROM tab1 AS cor0
----
113
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2833
SELECT DISTINCT + 42 + + col1 + + 28 DIV - col0 * 19 + 36 AS col2 FROM tab1 AS cor0
----
125
83
92

skipif mysql # not compatible
query I rowsort label-2833
SELECT DISTINCT + 42 + + col1 + + 28 / - col0 * 19 + 36 AS col2 FROM tab1 AS cor0
----
125
83
92

query I rowsort
SELECT ALL + 55 FROM tab2 AS cor0 WHERE NULL <> NULL AND NOT col2 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2835
SELECT ALL COUNT( * ) + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2835
SELECT ALL COUNT ( * ) + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( + col1 ) FROM tab2 AS cor0 WHERE 4 > col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2838
SELECT + SUM( - + col2 ) + + - 25 AS col1 FROM tab0 cor0
----
-181

skipif mysql # not compatible
query I rowsort label-2838
SELECT + SUM ( - + col2 ) + + - 25 AS col1 FROM tab0 cor0
----
-181

query I rowsort
SELECT - 19 + + 83 AS col2 FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2840
SELECT ALL + ( - CAST( + 10 AS SIGNED ) ) AS col2, - 2 FROM tab2
----
-10
-2
-10
-2
-10
-2

skipif mysql # not compatible
query II rowsort label-2840
SELECT ALL + ( - CAST ( + 10 AS INTEGER ) ) AS col2, - 2 FROM tab2
----
-10
-2
-10
-2
-10
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT DISTINCT + + 49 - - COUNT( * ) FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-2841
SELECT DISTINCT + + 49 - - COUNT ( * ) FROM tab1 AS cor0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2842
SELECT DISTINCT + MIN( DISTINCT + col0 ) - - COUNT( * ) * - 22 FROM tab0 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2842
SELECT DISTINCT + MIN ( DISTINCT + col0 ) - - COUNT ( * ) * - 22 FROM tab0 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT ALL - ( MIN( - col1 ) ) - + COUNT( * ) FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-2843
SELECT ALL - ( MIN ( - col1 ) ) - + COUNT ( * ) FROM tab0 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2844
SELECT - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-2844
SELECT - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2845
SELECT 23 - - COUNT( * ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-2845
SELECT 23 - - COUNT ( * ) FROM tab0 AS cor0
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2846
SELECT ALL COUNT( * ) - + - SUM( + col0 ) * - CAST( NULL AS DECIMAL ) * + MIN( ALL - CAST( NULL AS SIGNED ) ) + - 55 * - MAX( ALL - col0 ) * + - 26 + - + ( + - MIN( + 78 ) ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2846
SELECT ALL COUNT ( * ) - + - SUM ( + col0 ) * - CAST ( NULL AS REAL ) * + MIN ( ALL - CAST ( NULL AS INTEGER ) ) + - 55 * - MAX ( ALL - col0 ) * + - 26 + - + ( + - MIN ( + 78 ) ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT 93 + 55 AS col2 FROM tab2
----
148
148
148

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT - COUNT( * ) * - COUNT( + - col1 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2849
SELECT - COUNT ( * ) * - COUNT ( + - col1 ) FROM tab0
----
9

query II rowsort
SELECT ( - 20 ) AS col2, col2 FROM tab0 AS cor0
----
-20
10
-20
47
-20
99

onlyif mysql # DIV for integer division: 
query I rowsort label-2851
SELECT + col1 DIV + - 45 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2851
SELECT + col1 / + - 45 AS col2 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + + col2 IN ( + 37 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2853
SELECT DISTINCT - + COUNT( * ) * - CAST( 1 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2853
SELECT DISTINCT - + COUNT ( * ) * - CAST ( 1 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2854
SELECT ALL + col0 * CAST( + col2 AS SIGNED ) + + col0 FROM tab0 AS cor0
----
720
957
9700

skipif mysql # not compatible
query I rowsort label-2854
SELECT ALL + col0 * CAST ( + col2 AS INTEGER ) + + col0 FROM tab0 AS cor0
----
720
957
9700

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + col2 AND + col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT - 74 * MIN( ALL - 80 ) AS col0 FROM tab0 cor0
----
5920

skipif mysql # not compatible
query I rowsort label-2857
SELECT - 74 * MIN ( ALL - 80 ) AS col0 FROM tab0 cor0
----
5920

onlyif mysql # DIV for integer division: 
query I rowsort label-2858
SELECT + 79 DIV + col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-2858
SELECT + 79 / + col0 FROM tab0 AS cor0
----
0
0
5

onlyif mysql # DIV for integer division: 
query I rowsort label-2859
SELECT ALL + 44 DIV + 37 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2859
SELECT ALL + 44 / + 37 AS col2 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2860
SELECT DISTINCT + CAST( NULL AS SIGNED ), 41 AS col2 FROM tab0 cor0 WHERE NOT NULL >= 16
----

skipif mysql # not compatible
query II rowsort label-2860
SELECT DISTINCT + CAST ( NULL AS INTEGER ), 41 AS col2 FROM tab0 cor0 WHERE NOT NULL >= 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2861
SELECT DISTINCT - MIN( col1 ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-2861
SELECT DISTINCT - MIN ( col1 ) FROM tab2 AS cor0
----
-51

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2862
SELECT - COUNT( * ) DIV - MAX( + + col2 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2862
SELECT - COUNT ( * ) / - MAX ( + + col2 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT DISTINCT 55 * - 26 FROM tab2 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + + 61 + + 80 AS col0, - col1 FROM tab0 AS cor0
----
141
-1
141
-21
141
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col2 + - col0 + col1 col1 FROM tab2
----
108
51
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT MAX( ALL 13 ) - - 86 + + 68 FROM tab0, tab2 cor0
----
167

skipif mysql # not compatible
query I rowsort label-2866
SELECT MAX ( ALL 13 ) - - 86 + + 68 FROM tab0, tab2 cor0
----
167

query III rowsort
SELECT * FROM tab1 WHERE - ( col1 ) < col1 - - - 97
----

query II rowsort
SELECT DISTINCT + col2, + col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2869
SELECT - CAST( - COUNT( * ) AS SIGNED ) * + 78 * 75 col2 FROM tab0 AS cor0
----
17550

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2869
SELECT - CAST ( - COUNT ( * ) AS INTEGER ) * + 78 * 75 col2 FROM tab0 AS cor0
----
17550

query I rowsort
SELECT ALL - - col2 + - + col2 + 50 + - 53 - + col2 AS col0 FROM tab1 AS cor0
----
-62
-71
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT DISTINCT - + SUM( col2 ) + 52 * + 88 + + 44 + 44 AS col1 FROM tab0 AS cor0
----
4508

skipif mysql # not compatible
query I rowsort label-2871
SELECT DISTINCT - + SUM ( col2 ) + 52 * + 88 + + 44 + 44 AS col1 FROM tab0 AS cor0
----
4508

onlyif mysql # DIV for integer division: 
query I rowsort label-2872
SELECT col1 + + col1 DIV + 87 AS col2 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2872
SELECT col1 + + col1 / + 87 AS col2 FROM tab2
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + - col1 + + col0 col2 FROM tab2 AS cor0
----
41
51
83

query I rowsort
SELECT col2 + - + 38 FROM tab0 AS cor0
----
-28
61
9

query I rowsort
SELECT DISTINCT - col2 FROM tab0 cor0 WHERE NOT ( NOT ( + col1 ) + + - col0 <= ( - + 1 ) )
----
-10
-99

query I rowsort
SELECT col0 * 95 AS col0 FROM tab0 AS cor0 WHERE 78 NOT IN ( + col2, + col1, - + col2 + col2, + col0 )
----
1425
8265
9215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2877
SELECT ALL + CAST( NULL AS SIGNED ) + + COUNT( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE 5 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2877
SELECT ALL + CAST ( NULL AS INTEGER ) + + COUNT ( ALL col0 ) AS col2 FROM tab1 AS cor0 WHERE 5 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2878
SELECT ALL + col2 - col2 DIV col2 col0 FROM tab1 AS cor0
----
58
67
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2878
SELECT ALL + col2 - col2 / col2 col0 FROM tab1 AS cor0
----
58
67
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2879
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - + col1 ) + + col2 * col0 / col0 * - - CAST( + + col0 AS SIGNED ) * - + ( - - col0 ) NOT BETWEEN NULL AND - + col0
----

skipif mysql # not compatible
query III rowsort label-2879
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( - + col1 ) + + col2 * col0 / col0 * - - CAST ( + + col0 AS INTEGER ) * - + ( - - col0 ) NOT BETWEEN NULL AND - + col0
----

query I rowsort
SELECT DISTINCT - - col2 - + 68 + - col1 AS col0 FROM tab1 AS cor0
----
-14
-47
14

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2881
SELECT DISTINCT 67 DIV + COUNT( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
22

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT 67 / + COUNT ( * ) FROM tab1 cor0 WHERE NULL IS NULL
----
22

query II rowsort
SELECT ALL - ( + col0 ), col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2883
SELECT + ( SUM( + + 42 ) ) AS col0 FROM tab0
----
126

skipif mysql # not compatible
query I rowsort label-2883
SELECT + ( SUM ( + + 42 ) ) AS col0 FROM tab0
----
126

query II rowsort
SELECT + col2 * col0 * + + col1 AS col2, + 78 * - col1 FROM tab1
----
25075
-390
290836
-3666
68544
-1092

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT ALL + SUM( + col1 ) AS col2 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2885
SELECT ALL + SUM ( + col1 ) AS col2 FROM tab0
----
103

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2886
SELECT - CAST( - - 19 AS SIGNED ) * + + col0, - 54 AS col2 FROM tab1
----
-1615
-54
-1729
-54
-969
-54

skipif mysql # not compatible
query II rowsort label-2886
SELECT - CAST ( - - 19 AS INTEGER ) * + + col0, - 54 AS col2 FROM tab1
----
-1615
-54
-1729
-54
-969
-54

query I rowsort
SELECT 10 AS col1 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2888
SELECT DISTINCT + + 14 + + - COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
5

skipif mysql # not compatible
query I rowsort label-2888
SELECT DISTINCT + + 14 + + - COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
5

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab2, tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2890
SELECT - COUNT( * ) + - 46 DIV - COUNT( ALL - 47 ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-2890
SELECT - COUNT ( * ) + - 46 / - COUNT ( ALL - 47 ) AS col1 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2891
SELECT + COUNT( * ) FROM tab0 WHERE NOT + - col0 <= col2
----
0

skipif mysql # not compatible
query I rowsort label-2891
SELECT + COUNT ( * ) FROM tab0 WHERE NOT + - col0 <= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2892
SELECT + 1 + + + MAX( - 48 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-2892
SELECT + 1 + + + MAX ( - 48 ) FROM tab1
----
-47

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + ( + 94 ) IS NOT NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-2894
SELECT DISTINCT ( + 37 ) + COUNT( * ) FROM tab0 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-2894
SELECT DISTINCT ( + 37 ) + COUNT ( * ) FROM tab0 AS cor0
----
40

query II rowsort
SELECT ALL col2, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

query I rowsort
SELECT DISTINCT + col0 * + + col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT + - 2 * - COUNT( * ) + - MIN( ALL - col1 ) + 40 FROM tab2 WHERE NULL <> col0 * + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2897
SELECT + - 2 * - COUNT ( * ) + - MIN ( ALL - col1 ) + 40 FROM tab2 WHERE NULL <> col0 * + col0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND - col0 * + + col0
----

query I rowsort
SELECT col0 * + - ( - ( col1 ) ) FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ( - 26 ) AS col1 FROM tab1
----
-26
-26
-26

query III rowsort
SELECT * FROM tab1 WHERE + - col2 <> + + col0 / - 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2902
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) * - 12 * 53 + + col1 IN ( - 98 )
----

skipif mysql # not compatible
query III rowsort label-2902
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) * - 12 * 53 + + col1 IN ( - 98 )
----

query I rowsort
SELECT + 21 + col2 * + - col2 AS col2 FROM tab2
----
-1579
-3343
-508

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 93 + + 33 AS col1, + col1 col2 FROM tab1 AS cor0
----
126
14
126
47
126
5

query I rowsort
SELECT + col2 * 82 AS col0 FROM tab1
----
4838
5576
7872

query I rowsort
SELECT ALL 13 * ( + - col2 ) FROM tab0
----
-1287
-130
-611

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2907
SELECT - + 38 * - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2907
SELECT - + 38 * - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-2908
SELECT DISTINCT col2 DIV 61 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2908
SELECT DISTINCT col2 / 61 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( 40 ) - + ( - 40 ), ( + + 55 ) col2 FROM tab1
----
80
55

query II rowsort
SELECT - col0 - col2 * + col2, + col1 FROM tab1 AS cor0
----
-3566
5
-4715
47
-9267
14

query II rowsort
SELECT ALL - + col2, col1 - 37 AS col2 FROM tab0 AS cor0
----
-10
-16
-47
44
-99
-36

query I rowsort
SELECT DISTINCT - 84 * - 78 + + - col1 - + col1 * + - col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT COUNT( * ) * - 23 AS col0 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2913
SELECT COUNT ( * ) * - 23 AS col0 FROM tab1 cor0
----
-69

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2914
SELECT - CAST( NULL AS SIGNED ) col0, + 40 col2 FROM tab2 AS cor0
----
NULL
40
NULL
40
NULL
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2914
SELECT - CAST ( NULL AS INTEGER ) col0, + 40 col2 FROM tab2 AS cor0
----
NULL
40
NULL
40
NULL
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2915
SELECT ALL + CAST( + col1 AS SIGNED ) col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2915
SELECT ALL + CAST ( + col1 AS INTEGER ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2916
SELECT ALL - ( COUNT( * ) ) FROM tab0 cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2916
SELECT ALL - ( COUNT ( * ) ) FROM tab0 cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL + + col2 FROM tab2 WHERE NOT NULL <= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2918
SELECT + 85 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-2918
SELECT + 85 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
255

query I rowsort
SELECT - ( + col2 ) * - 72 AS col1 FROM tab0 AS cor0
----
3384
7128
720

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2920
SELECT DISTINCT + + 22 * 6 / 29 + - + CAST( NULL AS SIGNED ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2920
SELECT DISTINCT + + 22 * 6 / 29 + - + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - 34 FROM ( tab2 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 40442a74794ded4c78101eefe525a5bb

onlyif mysql # aggregate syntax: 
query I rowsort label-2922
SELECT ALL + + COUNT( * ) + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2922
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT DISTINCT + COUNT( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2923
SELECT DISTINCT + COUNT ( * ) FROM tab0 cor0 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT col0 * 30 + - 16 * + col2 FROM tab2 AS cor0
----
1012
1280
1322

query I rowsort
SELECT + col1 * - col2 + col1 + + + ( - - col1 ) AS col2 FROM tab1 AS cor0
----
-1316
-285
-3102

onlyif mysql # aggregate syntax: 
query I rowsort label-2926
SELECT + COUNT( * ) + + + 80 AS col1 FROM tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2926
SELECT + COUNT ( * ) + + + 80 AS col1 FROM tab1 AS cor0
----
83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 58 = + col1
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL = - col2 / + - 47
----

query I rowsort
SELECT DISTINCT + 94 AS col2 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT - + MAX( DISTINCT + col1 ) + - COUNT( * ) * - SUM( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-662

skipif mysql # not compatible
query I rowsort label-2930
SELECT - + MAX ( DISTINCT + col1 ) + - COUNT ( * ) * - SUM ( ALL + - col1 ) AS col2 FROM tab2 AS cor0
----
-662

onlyif mysql # DIV for integer division: 
query I rowsort label-2931
SELECT DISTINCT - ( - - col1 ) * col0 DIV - + 50 - + col1 AS col1 FROM tab2
----
-5
21
33

skipif mysql # not compatible
query I rowsort label-2931
SELECT DISTINCT - ( - - col1 ) * col0 / - + 50 - + col1 AS col1 FROM tab2
----
-5
21
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2932
SELECT MAX( 32 ) col2 FROM tab2
----
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2932
SELECT MAX ( 32 ) col2 FROM tab2
----
32

query II rowsort
SELECT ALL 38 + - 83 AS col0, col1 FROM tab2
----
-45
51
-45
67
-45
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2934
SELECT + + MAX( ALL - col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-2934
SELECT + + MAX ( ALL - col0 ) FROM tab2 AS cor0
----
-46

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT - CAST( - 39 AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

skipif mysql # not compatible
query I rowsort label-2936
SELECT - CAST ( - 39 AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5ecc4d3de68ae828a2d522dff8571cbf

query I rowsort
SELECT ALL col1 * + col0 + - col2 AS col0 FROM tab0 AS cor0
----
-2
1168
1817

query I rowsort
SELECT DISTINCT - + 85 * + + col0 AS col2 FROM tab2 cor0
----
-3910
-5440
-6375

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT DISTINCT - col2 * - - col1 * + - col2 DIV + col2 FROM tab2 AS cor0
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-2939
SELECT DISTINCT - col2 * - - col1 * + - col2 / + col2 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2940
SELECT CAST( 30 AS SIGNED ) FROM tab1 cor0
----
30
30
30

skipif mysql # not compatible
query I rowsort label-2940
SELECT CAST ( 30 AS INTEGER ) FROM tab1 cor0
----
30
30
30

query II rowsort
SELECT col2 AS col1, 33 * + + 1 * 6 * - + col2 FROM tab1
----
59
-11682
68
-13464
96
-19008

query I rowsort
SELECT 54 * + col1 * 13 FROM tab1
----
32994
3510
9828

query I rowsort
SELECT + + col0 + col0 FROM tab1 WHERE NOT + 82 IS NULL
----
102
170
182

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2944
SELECT ALL COUNT( * ) DIV - - 5 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2944
SELECT ALL COUNT ( * ) / - - 5 FROM tab2
----
0

query I rowsort
SELECT ALL col1 FROM tab1 WHERE NOT NULL BETWEEN - 54 AND NULL
----

query I rowsort
SELECT 95 * + col1 * + 69 * + + col0 FROM tab1
----
2785875
28035735
4680270

query I rowsort
SELECT ALL - col1 + + col2 FROM tab1 WHERE NOT NULL NOT BETWEEN + 12 AND + col0 + - col0
----

query I rowsort
SELECT - ( 24 ) AS col0 FROM tab1
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-2949
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * + col2 * + col1 * - ( - - 61 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2949
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + ( + col0 ) * + col2 * + col1 * - ( - - 61 ) IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2950
SELECT DISTINCT - MAX( + - CAST( NULL AS SIGNED ) ) * CAST( + 5 AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2950
SELECT DISTINCT - MAX ( + - CAST ( NULL AS INTEGER ) ) * CAST ( + 5 AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2951
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS DECIMAL ) * + col0 * + col0 * - col0 / - + col2 * - 10 BETWEEN - + col1 AND - + col0
----

skipif mysql # not compatible
query III rowsort label-2951
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS REAL ) * + col0 * + col0 * - col0 / - + col2 * - 10 BETWEEN - + col1 AND - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2952
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) - + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2952
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) - + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL - col1 AS col1 FROM tab1 AS cor0 WHERE NOT 57 IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 32 col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
32
32
32

onlyif mysql # aggregate syntax: 
query II rowsort label-2955
SELECT ( + COUNT( * ) ) AS col2, - COUNT( * ) AS col2 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-2955
SELECT ( + COUNT ( * ) ) AS col2, - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2956
SELECT ALL + SUM( - CAST( col0 AS SIGNED ) ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL + SUM ( - CAST ( col0 AS INTEGER ) ) FROM tab1 AS cor0
----
-227

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 <> col0 * - col1 + - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2958
SELECT - COUNT( * ) - - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2958
SELECT - COUNT ( * ) - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2959
SELECT DISTINCT + CAST( NULL AS SIGNED ) + col0 + + col1 - - + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2959
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + col0 + + col1 - - + col1 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col0 - - - 12 + - + col2 + 8 AS col1 FROM tab0
----
-36
-6
73

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT COUNT( * ) * + 88 * COUNT( * ) - - - 64 + 69 col0 FROM tab2
----
797

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2961
SELECT COUNT ( * ) * + 88 * COUNT ( * ) - - - 64 + 69 col0 FROM tab2
----
797

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT ALL MAX( DISTINCT col2 ) AS col0 FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL MAX ( DISTINCT col2 ) AS col0 FROM tab2
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2963
SELECT - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-2963
SELECT - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL < - col2 * + 96 / - - col2 * - col2
----

query I rowsort
SELECT - 58 + col0 AS col0 FROM tab2 AS cor0
----
-12
17
6

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN + 72 * 35 + - + col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL = col0 * col1 / + col2
----

query II rowsort
SELECT + + 63 * - + ( - 4 ) * - col1 AS col0, col1 AS col0 FROM tab0 AS cor0
----
-20412
81
-252
1
-5292
21

onlyif mysql # aggregate syntax: 
query II rowsort label-2969
SELECT DISTINCT - - 3 col0, + COUNT( col0 ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2969
SELECT DISTINCT - - 3 col0, + COUNT ( col0 ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT DISTINCT - col0 * - col2 + + 55 FROM tab0 AS cor0
----
760
925
9658

onlyif mysql # aggregate syntax: 
query I rowsort label-2971
SELECT ( + SUM( ALL - 3 ) ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2971
SELECT ( + SUM ( ALL - 3 ) ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT + + col0 * - - 7 FROM tab2 AS cor0
----
322
448
525

query I rowsort
SELECT ALL - 92 / + AVG ( ALL - 13 ) FROM tab2 cor0 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col1, + 61 * col1 FROM tab2 AS cor0
----
51
3111
67
4087
77
4697

onlyif mysql # DIV for integer division: 
query I rowsort label-2975
SELECT - col2 DIV 79 * + + col2 * + + col2 FROM tab0 AS cor0
----
-9801
0
0

skipif mysql # not compatible
query I rowsort label-2975
SELECT - col2 / 79 * + + col2 * + + col2 FROM tab0 AS cor0
----
-9801
0
0

query II rowsort
SELECT + col2, + 59 + + col2 AS col0 FROM tab1 AS cor0
----
59
118
68
127
96
155

onlyif mysql # DIV for integer division: 
query I rowsort label-2977
SELECT DISTINCT - - 14 DIV + 93 * + col1 AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2977
SELECT DISTINCT - - 14 / + 93 * + col1 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - col2 + - - col2 - + + col2 >= NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2979
SELECT DISTINCT - ( - 35 ) DIV + col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2979
SELECT DISTINCT - ( - 35 ) / + col1 FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col1 / - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 * + + col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND col0 + - - 30
----

query I rowsort
SELECT ALL - 31 * + - col0 FROM tab2 AS cor0
----
1426
1984
2325

onlyif mysql # aggregate syntax: 
query II rowsort label-2983
SELECT ALL MAX( col2 ) AS col2, - COUNT( * ) FROM tab1 AS cor0
----
96
-3

skipif mysql # not compatible
query II rowsort label-2983
SELECT ALL MAX ( col2 ) AS col2, - COUNT ( * ) FROM tab1 AS cor0
----
96
-3

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE - 40 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2985
SELECT ALL SUM( DISTINCT 83 ) FROM tab0, tab1 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL SUM ( DISTINCT 83 ) FROM tab0, tab1 AS cor0
----
83

query I rowsort
SELECT + - col0 + - ( + + col0 ) FROM tab1 AS cor0
----
-102
-170
-182

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 41 >= 31
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2988
SELECT DISTINCT - COUNT( * ) AS col0, + 53 AS col2 FROM tab0 AS cor0
----
-3
53

skipif mysql # not compatible
query II rowsort label-2988
SELECT DISTINCT - COUNT ( * ) AS col0, + 53 AS col2 FROM tab0 AS cor0
----
-3
53

query I rowsort
SELECT - 54 AS col0 FROM tab0 WHERE + - 84 + - ( + col2 ) * - col0 IS NOT NULL
----
-54
-54
-54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2990
SELECT CAST( + col2 AS SIGNED ) * + col0 col2 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2990
SELECT CAST ( + col2 AS INTEGER ) * + col0 col2 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 - + 74 col2, col0 FROM tab0 AS cor0
----
-59
15
13
87
23
97

query I rowsort
SELECT ALL 11 * - col2 AS col2 FROM tab1 AS cor0
----
-1056
-649
-748

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + 31 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2994
SELECT - col0 * - CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2994
SELECT - col0 * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - + 37 AS col0 FROM tab1
----
-2183
-2516
-3552

onlyif mysql # aggregate syntax: 
query I rowsort label-2996
SELECT ALL - MAX( ALL 8 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-8

skipif mysql # not compatible
query I rowsort label-2996
SELECT ALL - MAX ( ALL 8 ) FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-8

query I rowsort
SELECT DISTINCT - - 46 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
46

query I rowsort
SELECT - ( 20 ) - - - 40 * - + 85 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to bc8b4467251ecc9c6e40dc98f2067219

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE 83 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - ( - + 40 ) - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3001
SELECT ALL + MAX( - 69 ) FROM tab0 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3001
SELECT ALL + MAX ( - 69 ) FROM tab0 cor0
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + col0 col2 FROM tab2 AS cor0
----
2346
4928
5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 - 21 col2, - 35 * + 97 * + col1 AS col2 FROM tab2 WHERE NOT NULL >= 71 - 80
----

query I rowsort
SELECT DISTINCT - - col2 AS col0 FROM tab2 WHERE NULL <= ( col1 )
----

query I rowsort
SELECT ALL - col2 + - 85 * + col0 * - 1 AS col1 FROM tab2
----
3887
5400
6317

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL IN ( - + col2 * + - col2 / + - 65, + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3007
SELECT 75, + COUNT( * ) col2 FROM tab0
----
75
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3007
SELECT 75, + COUNT ( * ) col2 FROM tab0
----
75
3

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 24 NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT col1 + - + 21 AS col2, col2 * + - col2 AS col0 FROM tab0
----
-20
-9801
0
-100
60
-2209

onlyif mysql # aggregate syntax: 
query I rowsort label-3010
SELECT ALL + COUNT( * ) + 91 AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-3010
SELECT ALL + COUNT ( * ) + 91 AS col0 FROM tab0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3011
SELECT DISTINCT - CAST( - + 9 AS SIGNED ) + + 94 + + col1 FROM tab1
----
108
117
150

skipif mysql # not compatible
query I rowsort label-3011
SELECT DISTINCT - CAST ( - + 9 AS INTEGER ) + + 94 + + col1 FROM tab1
----
108
117
150

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3012
SELECT - + CAST( NULL AS DECIMAL ) + - + ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE col1 BETWEEN - + 49 * + + col2 AND - 45
----
NULL

skipif mysql # not compatible
query I rowsort label-3012
SELECT - + CAST ( NULL AS REAL ) + - + ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE col1 BETWEEN - + 49 * + + col2 AND - 45
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT + MAX( ALL + 72 ) FROM tab0 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-3013
SELECT + MAX ( ALL + 72 ) FROM tab0 AS cor0
----
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 AS cor0 WHERE col1 - + 19 IS NOT NULL
----
23
40
58

query II rowsort
SELECT ALL col2 - + col2 AS col2, - col1 FROM tab1 AS cor0
----
0
-14
0
-47
0
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3016
SELECT ALL CAST( NULL AS SIGNED ) * + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3016
SELECT ALL CAST ( NULL AS INTEGER ) * + - col1 AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3017
SELECT 24 + - COUNT( * ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-3017
SELECT 24 + - COUNT ( * ) FROM tab0
----
21

query I rowsort
SELECT - 35 + - - col0 AS col2 FROM tab1
----
16
50
56

query III rowsort
SELECT * FROM tab2 WHERE NOT - - col2 NOT BETWEEN - col1 AND + col0 * + col1 * - ( - + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - ( 45 ) AS col2 FROM tab1 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-3021
SELECT - COUNT( DISTINCT - + 28 ) AS col0 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3021
SELECT - COUNT ( DISTINCT - + 28 ) AS col0 FROM tab2 cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3022
SELECT - - COUNT( * ) + - 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

skipif mysql # not compatible
query I rowsort label-3022
SELECT - - COUNT ( * ) + - 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-73

query I rowsort
SELECT - 50 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT 87 * - - col0 * + col1 AS col2 FROM tab0 AS cor0
----
105705
158949
8439

query I rowsort
SELECT - + 23 AS col2 FROM tab1 cor0
----
-23
-23
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-3027
SELECT ALL + ( - + MIN( ALL col0 ) ) col0 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3027
SELECT ALL + ( - + MIN ( ALL col0 ) ) col0 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-3028
SELECT + MIN( DISTINCT + + col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3028
SELECT + MIN ( DISTINCT + + col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 96 FROM tab0 AS cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3030
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 68 + - col0 * - - col0 + + col1 * col0 - - CAST( + col0 AS DECIMAL ) ) BETWEEN ( NULL ) AND - + col0
----
15
81
47

skipif mysql # not compatible
query III rowsort label-3030
SELECT ALL * FROM tab0 cor0 WHERE NOT ( 68 + - col0 * - - col0 + + col1 * col0 - - CAST ( + col0 AS REAL ) ) BETWEEN ( NULL ) AND - + col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-3031
SELECT + COUNT( * ) + + - MAX( - + col0 ) col1 FROM tab1
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3031
SELECT + COUNT ( * ) + + - MAX ( - + col0 ) col1 FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3032
SELECT DISTINCT * FROM tab0 WHERE NULL = + + col0 * - 31 + - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3032
SELECT DISTINCT * FROM tab0 WHERE NULL = + + col0 * - 31 + - - CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3033
SELECT DISTINCT col0 DIV - + 6 + ( - - 28 ) col2 FROM tab0
----
12
14
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3033
SELECT DISTINCT col0 / - + 6 + ( - - 28 ) col2 FROM tab0
----
12
14
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 60 col1 FROM tab1 WHERE NOT NULL >= - + col1 + - + col1 * - + 48
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 17 * + col2 col2 FROM tab0
----
1683
170
799

onlyif mysql # aggregate syntax: 
query I rowsort label-3036
SELECT ALL + COUNT( * ) + - - SUM( DISTINCT col0 ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-3036
SELECT ALL + COUNT ( * ) + - - SUM ( DISTINCT col0 ) FROM tab2
----
188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3037
SELECT ALL ( - CAST( col0 AS SIGNED ) ) + - 49 AS col1 FROM tab2
----
-113
-124
-95

skipif mysql # not compatible
query I rowsort label-3037
SELECT ALL ( - CAST ( col0 AS INTEGER ) ) + - 49 AS col1 FROM tab2
----
-113
-124
-95

query I rowsort
SELECT DISTINCT - ( + + 13 ) FROM tab0 AS cor0
----
-13

query I rowsort
SELECT 98 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to f9dee8c21116f1aed64ac5160e190809

query I rowsort
SELECT + col1 + col2 - col2 + col1 - 67 AS col1 FROM tab0 WHERE - - col2 >= + + 0
----
-25
-65
95

query I rowsort
SELECT col0 * + col1 + + - ( - col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
1296
1848
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3042
SELECT + CAST( NULL AS DECIMAL ) * - CAST( + 95 AS SIGNED ) + - COUNT( * ) - 50 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3042
SELECT + CAST ( NULL AS REAL ) * - CAST ( + 95 AS INTEGER ) + - COUNT ( * ) - 50 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - - col2 * + col1 AS col0 FROM tab2 AS cor0
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3044
SELECT ALL - 23 * + COUNT( * ) FROM tab1 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-3044
SELECT ALL - 23 * + COUNT ( * ) FROM tab1 AS cor0
----
-69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 * + - col1 * col2 * - col1 + col2 + + 53 + col1 + + ( 56 ) + 53 * + + col0 + col2 < ( NULL )
----

query II rowsort
SELECT DISTINCT 65 * 69, col2 AS col0 FROM tab0
----
4485
10
4485
47
4485
99

query I rowsort
SELECT - col0 * 18 AS col0 FROM tab0
----
-1566
-1746
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 57 * - AVG ( DISTINCT - - col1 ) col0 FROM tab2 WHERE NOT - 11 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3049
SELECT DISTINCT - 15 DIV - 7 FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3049
SELECT DISTINCT - 15 / - 7 FROM tab1
----
2

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + + col2 BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT col1, 94 AS col0 FROM tab0
----
1
94
21
94
81
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - ( - - 85 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 61 >= + col0
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3054
SELECT DISTINCT - CAST( + ( + SUM( + 72 ) ) AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-3054
SELECT DISTINCT - CAST ( + ( + SUM ( + 72 ) ) AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT + SUM( DISTINCT - + 80 ) FROM tab0 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3055
SELECT + SUM ( DISTINCT - + 80 ) FROM tab0 AS cor0
----
-80

query I rowsort
SELECT - 59 FROM tab1 WHERE NULL BETWEEN NULL AND + col1 + + col2
----

query I rowsort
SELECT ( - 54 ) FROM tab1
----
-54
-54
-54

query I rowsort
SELECT - col0 FROM tab0 WHERE NULL BETWEEN + + col1 AND + 54
----

query I rowsort
SELECT ALL + ( - 18 ) + - 52 + col0 FROM tab0
----
-55
17
27

query I rowsort
SELECT col2 * + + col1 + col1 AS col1 FROM tab0
----
100
231
3888

query I rowsort
SELECT - 55 + col1 AS col1 FROM tab1
----
-41
-50
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3062
SELECT ALL + + CAST( NULL AS SIGNED ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3062
SELECT ALL + + CAST ( NULL AS INTEGER ) + + col1 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3063
SELECT - col2 + - 17 - - col1 + - col2 + + - col1 + - col2 DIV - col1 AS col0 FROM tab0 cor0
----
-111
-116
-37

skipif mysql # not compatible
query I rowsort label-3063
SELECT - col2 + - 17 - - col1 + - col2 + + - col1 + - col2 / - col1 AS col0 FROM tab0 cor0
----
-111
-116
-37

onlyif mysql # DIV for integer division: 
query II rowsort label-3064
SELECT DISTINCT + col2 - - + 20 DIV - col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

skipif mysql # not compatible
query II rowsort label-3064
SELECT DISTINCT + col2 - - + 20 / - col2, col2 FROM tab1 AS cor0
----
59
59
68
68
96
96

query I rowsort
SELECT + - col1 - + - 73 * + - col0 + - col1 FROM tab1 AS cor0
----
-3751
-6215
-6737

query I rowsort
SELECT ALL 94 * + + 96 AS col2 FROM tab0 AS cor0
----
9024
9024
9024

query I rowsort
SELECT - + 86 * col2 FROM tab2 AS cor0
----
-1978
-3440
-4988

query I rowsort
SELECT ALL - col0 * - 34 AS col0 FROM tab0 AS cor0
----
2958
3298
510

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3069
SELECT DISTINCT 15 / - - CAST( NULL AS SIGNED ) * col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3069
SELECT DISTINCT 15 / - - CAST ( NULL AS INTEGER ) * col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3070
SELECT ALL COUNT( * ) * + - 40 AS col0 FROM tab1
----
-120

skipif mysql # not compatible
query I rowsort label-3070
SELECT ALL COUNT ( * ) * + - 40 AS col0 FROM tab1
----
-120

query II rowsort
SELECT ALL col2 AS col1, - col0 AS col1 FROM tab0
----
10
-87
47
-15
99
-97

query I rowsort
SELECT DISTINCT + + ( + + col2 ) * + 70 * + - col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-243670
-323680
-645120

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3073
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( 35 BETWEEN 91 + col1 * + CAST( - col0 AS SIGNED ) + - col0 + - + col1 - - 58 * - 82 * + 60 AND - + col0 ) )
----

skipif mysql # not compatible
query III rowsort label-3073
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT ( 35 BETWEEN 91 + col1 * + CAST ( - col0 AS INTEGER ) + - col0 + - + col1 - - 58 * - 82 * + 60 AND - + col0 ) )
----

query II rowsort
SELECT + - 60 * + 82 * col1 + + col0, col0 FROM tab0 cor0
----
-103233
87
-398505
15
-4823
97

query II rowsort
SELECT - 34 * + col0 + + col2 + + - 7 AS col2, col0 AS col2 FROM tab1 AS cor0
----
-1645
51
-2838
85
-3033
91

query I rowsort
SELECT ALL + - col1 * - - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3077
SELECT - col2 DIV 89 + - + col0 + - col1 FROM tab0 AS cor0
----
-108
-96
-99

skipif mysql # not compatible
query I rowsort label-3077
SELECT - col2 / 89 + - + col0 + - col1 FROM tab0 AS cor0
----
-108
-96
-99

query I rowsort
SELECT ALL 34 * + + col2 * - 90 + col2 AS col2 FROM tab1
----
-180481
-208012
-293664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3079
SELECT ALL + CAST( NULL AS SIGNED ) * 85 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3079
SELECT ALL + CAST ( NULL AS INTEGER ) * 85 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( + 76 ) * + - 93 FROM tab0 cor0
----
-7068
-7068
-7068

query I rowsort
SELECT - col0 + col0 - + 90 AS col2 FROM tab2 AS cor0
----
-90
-90
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 5 >= NULL
----

query I rowsort
SELECT + col0 + + col0 * + - col2 + + col1 AS col1 FROM tab1 AS cor0
----
-4831
-4925
-6050

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 0 col1 FROM tab2 cor0
----
0

query I rowsort
SELECT + 70 + + - 11 * col1 - + - col0 FROM tab2 AS cor0
----
-445
-592
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-3086
SELECT ALL col0 DIV - 14 FROM tab1
----
-3
-6
-6

skipif mysql # not compatible
query I rowsort label-3086
SELECT ALL col0 / - 14 FROM tab1
----
-3
-6
-6

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( NULL ) <> NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT + 99 + + col1 * + CAST( - col2 AS SIGNED ) AS col0 FROM tab0
----
-111
-3708
0

skipif mysql # not compatible
query I rowsort label-3088
SELECT + 99 + + col1 * + CAST ( - col2 AS INTEGER ) AS col0 FROM tab0
----
-111
-3708
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3089
SELECT ALL - 48 DIV - col1 FROM tab1
----
1
3
9

skipif mysql # not compatible
query I rowsort label-3089
SELECT ALL - 48 / - col1 FROM tab1
----
1
3
9

query I rowsort
SELECT ALL - 10 + - col2 FROM tab2
----
-33
-50
-68

query III rowsort
SELECT ALL * FROM tab1 WHERE - + 40 BETWEEN + ( - - col0 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT ALL - COUNT( ALL + col0 ) AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3092
SELECT ALL - COUNT ( ALL + col0 ) AS col0 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT 7 + ( + col2 ) * - col0 FROM tab1
----
-4889
-5008
-6181

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3094
SELECT DISTINCT + 91 + ( + CAST( + col0 AS SIGNED ) ) * - 56 AS col2 FROM tab0 AS cor0
----
-4781
-5341
-749

skipif mysql # not compatible
query I rowsort label-3094
SELECT DISTINCT + 91 + ( + CAST ( + col0 AS INTEGER ) ) * - 56 AS col2 FROM tab0 AS cor0
----
-4781
-5341
-749

onlyif mysql # aggregate syntax: 
query I rowsort label-3095
SELECT - MIN( ALL + ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-3095
SELECT - MIN ( ALL + ( - col1 ) ) AS col0 FROM tab1 AS cor0
----
47

query II rowsort
SELECT col0 AS col1, - ( col0 ) + - col0 * - col2 FROM tab1 AS cor0
----
51
4845
85
4930
91
6097

onlyif mysql # aggregate syntax: 
query I rowsort label-3097
SELECT DISTINCT - 67 - - COUNT( * ) FROM tab0 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3097
SELECT DISTINCT - 67 - - COUNT ( * ) FROM tab0 AS cor0
----
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3098
SELECT ALL - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3098
SELECT ALL - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3099
SELECT ALL 25 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL 25 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3100
SELECT - AVG ( 70 ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3100
SELECT - AVG ( 70 ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT - ( + col2 ) * - col1 FROM tab1
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - col0 + col0 col2 FROM tab1 WHERE NULL = col1 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + - 61 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3104
SELECT DISTINCT 96 DIV COUNT( * ) - 56 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-24

skipif mysql # not compatible
query I rowsort label-3104
SELECT DISTINCT 96 / COUNT ( * ) - 56 AS col2 FROM tab0 WHERE + col1 IS NOT NULL
----
-24

query I rowsort
SELECT ALL + 58 + 82 AS col1 FROM tab0
----
140
140
140

query I rowsort
SELECT - 18 * + col1 AS col0 FROM tab2
----
-1206
-1386
-918

query I rowsort
SELECT + 63 / col1 AS col0 FROM tab1 WHERE NULL NOT BETWEEN NULL AND - 74
----

query I rowsort
SELECT DISTINCT + col2 * 62 FROM tab1
----
3658
4216
5952

query III rowsort
SELECT * FROM tab1 WHERE NOT + 62 > col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( col0 - 18 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 - + 52 AS col2 FROM tab0
----
-37
35
45

query I rowsort
SELECT col1 + + 21 AS col1 FROM tab0
----
102
22
42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3113
SELECT * FROM tab2 WHERE NOT col2 IN ( col2 / - ( CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-3113
SELECT * FROM tab2 WHERE NOT col2 IN ( col2 / - ( CAST ( NULL AS INTEGER ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3114
SELECT SUM( ALL - col1 ) + + ( 1 ) * + COUNT( * ) AS col2 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-3114
SELECT SUM ( ALL - col1 ) + + ( 1 ) * + COUNT ( * ) AS col2 FROM tab2
----
-192

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col2 - col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - 69 )
----

query III rowsort
SELECT * FROM tab2 WHERE + 14 NOT IN ( col0 - 14 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) BETWEEN - 0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3119
SELECT SUM( - 18 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3119
SELECT SUM ( - 18 ) FROM tab1 WHERE NULL NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT DISTINCT + 63 - - col1 * 43 FROM tab2
----
2256
2944
3374

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 < 81 + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 11 + - col1 AS col2 FROM tab0
----
-10
-70
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + col0 ) col1 FROM tab1 WHERE - 92 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3124
SELECT + ( COUNT( * ) ) + + COUNT( * ) AS col0 FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3124
SELECT + ( COUNT ( * ) ) + + COUNT ( * ) AS col0 FROM tab1
----
6

query I rowsort
SELECT - 1 + col0 AS col1 FROM tab2
----
45
63
74

query I rowsort
SELECT 17 FROM tab1 WHERE ( - 86 ) IS NOT NULL
----
17
17
17

query I rowsort
SELECT + col1 AS col0 FROM tab0 WHERE NOT NULL IN ( col0 + + col0 * + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3128
SELECT CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3128
SELECT CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT col2 - - 93 FROM tab1
----
152
161
189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3130
SELECT CAST( col0 AS SIGNED ) DIV 38 col1 FROM tab0 AS cor0
----
0
2
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3130
SELECT CAST ( col0 AS INTEGER ) / 38 col1 FROM tab0 AS cor0
----
0
2
2

query I rowsort
SELECT DISTINCT + 12 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL + col0 * - 63 AS col0 FROM tab1 AS cor0
----
-3213
-5355
-5733

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( col2 ) BETWEEN ( + col0 + col1 ) AND NULL
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3134
SELECT MIN( col0 ) col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3134
SELECT MIN ( col0 ) col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT - col1 + + 41 AS col2 FROM tab2
----
-10
-26
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT - COUNT( * ) + + 94 FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-3136
SELECT - COUNT ( * ) + + 94 FROM tab0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3137
SELECT 90 * SUM( + ( col0 ) ) + 94 AS col1 FROM tab0
----
18004

skipif mysql # not compatible
query I rowsort label-3137
SELECT 90 * SUM ( + ( col0 ) ) + 94 AS col1 FROM tab0
----
18004

query I rowsort
SELECT ALL col0 * 92 + - col0 AS col2 FROM tab2
----
4186
5824
6825

onlyif mysql # aggregate syntax: 
query I rowsort label-3139
SELECT DISTINCT + SUM( DISTINCT 74 ) * 69 + COUNT( + 67 + col0 ) * COUNT( * ) FROM tab1
----
5115

skipif mysql # not compatible
query I rowsort label-3139
SELECT DISTINCT + SUM ( DISTINCT 74 ) * 69 + COUNT ( + 67 + col0 ) * COUNT ( * ) FROM tab1
----
5115

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3141
SELECT ALL - COUNT( * ) DIV + COUNT( * ) FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3141
SELECT ALL - COUNT ( * ) / + COUNT ( * ) FROM tab2 cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + 88 * col1 col0 FROM tab0 AS cor0
----
1827
7047
87

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3143
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - 86 / + CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3143
SELECT * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - 86 / + CAST ( + col1 AS INTEGER )
----

query I rowsort
SELECT ALL col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN ( NULL ) AND col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3145
SELECT COUNT( * ) + 62 AS col1 FROM tab2 AS cor0 WHERE ( - 76 ) IN ( col1 + - col0 )
----
62

skipif mysql # not compatible
query I rowsort label-3145
SELECT COUNT ( * ) + 62 AS col1 FROM tab2 AS cor0 WHERE ( - 76 ) IN ( col1 + - col0 )
----
62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3146
SELECT - COUNT( * ) DIV - 85 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3146
SELECT - COUNT ( * ) / - 85 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 28 * col1 col2 FROM tab2
----
1428
1876
2156

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3148
SELECT + 77 * COUNT( * ) + - 60 DIV - COUNT( * ) FROM tab2
----
251

skipif mysql # not compatible
query I rowsort label-3148
SELECT + 77 * COUNT ( * ) + - 60 / - COUNT ( * ) FROM tab2
----
251

query I rowsort
SELECT + col2 + - col2 + + col0 AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab0 WHERE - col1 <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT 59 + + ( 78 ) DIV 48 FROM tab2
----
60
60
60

skipif mysql # not compatible
query I rowsort label-3151
SELECT 59 + + ( 78 ) / 48 FROM tab2
----
60
60
60

query I rowsort
SELECT 77 + + - col0 + 4 AS col0 FROM tab0
----
-16
-6
66

query I rowsort
SELECT DISTINCT col0 + - 54 AS col1 FROM tab1
----
-3
31
37

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3155
SELECT DISTINCT + - COUNT( * ) + - + 62 AS col1 FROM tab1 cor0
----
-65

skipif mysql # not compatible
query I rowsort label-3155
SELECT DISTINCT + - COUNT ( * ) + - + 62 AS col1 FROM tab1 cor0
----
-65

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3156
SELECT ALL + CAST( NULL AS SIGNED ) - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL + CAST ( NULL AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 50 + + col0 FROM tab0 cor0
----
137
147
65

query I rowsort
SELECT DISTINCT - ( col2 ) * 80 + col1 AS col0 FROM tab1 WHERE NOT NULL = - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3159
SELECT DISTINCT + 15 + + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----
15

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT + 15 + + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NULL ) <> NULL
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT ALL ( + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 64 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3160
SELECT ALL ( + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT 64 IS NOT NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3161
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - CAST( - col0 AS SIGNED ) + col2 / + col1 )
----

skipif mysql # not compatible
query I rowsort label-3161
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - CAST ( - col0 AS INTEGER ) + col2 / + col1 )
----

query I rowsort
SELECT ALL - - col0 * + 76 FROM tab2 cor0
----
3496
4864
5700

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3164
SELECT SUM( - col1 ) FROM tab1 AS cor0 WHERE NOT - 85 * + - col1 + + 35 NOT BETWEEN + col2 + 74 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3164
SELECT SUM ( - col1 ) FROM tab1 AS cor0 WHERE NOT - 85 * + - col1 + + 35 NOT BETWEEN + col2 + 74 AND col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 col2, + col1 + col1 * - 86 AS col1 FROM tab0 AS cor0
----
10
-1785
47
-6885
99
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3166
SELECT DISTINCT - MAX( 60 ) AS col1 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3166
SELECT DISTINCT - MAX ( 60 ) AS col1 FROM tab0 AS cor0
----
-60

query I rowsort
SELECT col0 + - ( - 17 ) AS col1 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
63
81
92

query II rowsort
SELECT DISTINCT - col0 AS col0, + 1 AS col2 FROM tab2 AS cor0
----
-46
1
-64
1
-75
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3169
SELECT + MAX( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-3169
SELECT + MAX ( DISTINCT - col1 ) FROM tab1 AS cor0
----
-5

query II rowsort
SELECT - col2 AS col1, - col0 AS col0 FROM tab2 AS cor0
----
-23
-46
-40
-64
-58
-75

onlyif mysql # aggregate syntax: 
query II rowsort label-3171
SELECT + + COUNT( * ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3171
SELECT + + COUNT ( * ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
3
3

query II rowsort
SELECT DISTINCT + + 31 AS col2, - 47 AS col1 FROM tab2 AS cor0
----
31
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-3173
SELECT COUNT( * ) * - - 1 AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3173
SELECT COUNT ( * ) * - - 1 AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3174
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT ALL - ( + 41 ) FROM tab1 AS cor0
----
-41
-41
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-3176
SELECT ALL - SUM( ALL col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-3176
SELECT ALL - SUM ( ALL col0 ) AS col0 FROM tab0
----
-199

query I rowsort
SELECT DISTINCT + 87 AS col1 FROM tab1 WHERE - col0 * + + 49 + 60 <> 68
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3178
SELECT - 76 AS col1 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) + + - col1 + col1 * - col2 <> + 80 + col2 * 90
----

skipif mysql # not compatible
query I rowsort label-3178
SELECT - 76 AS col1 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) + + - col1 + col1 * - col2 <> + 80 + col2 * 90
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 51 col0 FROM tab0 WHERE NOT - - 0 > - col0
----

query II rowsort
SELECT + col0 * + col2, + col2 AS col1 FROM tab2 AS cor0
----
1058
23
2560
40
4350
58

query I rowsort
SELECT ALL + 45 + - 36 * - 12 AS col2 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
477
477
477

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3183
SELECT + - CAST( 1 AS SIGNED ) * + - col0 * + 73 AS col2 FROM tab0 cor0
----
1095
6351
7081

skipif mysql # not compatible
query I rowsort label-3183
SELECT + - CAST ( 1 AS INTEGER ) * + - col0 * + 73 AS col2 FROM tab0 cor0
----
1095
6351
7081

query I rowsort
SELECT - col1 * + col2 + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - col2 / + 63 <= ( NULL ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3185
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab1 WHERE + 19 NOT IN ( + 46 * - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-3185
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab1 WHERE + 19 NOT IN ( + 46 * - col0 )
----
NULL

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE ( col1 ) <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3187
SELECT ALL - col1 DIV col1 FROM tab0 WHERE ( col0 ) NOT BETWEEN 69 AND ( - 39 - col1 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3187
SELECT ALL - col1 / col1 FROM tab0 WHERE ( col0 ) NOT BETWEEN 69 AND ( - 39 - col1 )
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3188
SELECT col0 + + col1 * + col2 * - CAST( NULL AS SIGNED ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3188
SELECT col0 + + col1 * + col2 * - CAST ( NULL AS INTEGER ) * - col2 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3189
SELECT DISTINCT - col1 DIV - ( + + 69 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3189
SELECT DISTINCT - col1 / - ( + + 69 ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3190
SELECT DISTINCT + ( MIN( ALL - col1 ) ) + - - 68 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-3190
SELECT DISTINCT + ( MIN ( ALL - col1 ) ) + - - 68 FROM tab1 AS cor0
----
21

onlyif mysql # DIV for integer division: 
query I rowsort label-3191
SELECT + col0 + + + col0 DIV + col2 col2 FROM tab2 cor0
----
48
65
76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3191
SELECT + col0 + + + col0 / + col2 col2 FROM tab2 cor0
----
48
65
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3192
SELECT - COUNT( * ) + 43 FROM tab1 cor0
----
40

skipif mysql # not compatible
query I rowsort label-3192
SELECT - COUNT ( * ) + 43 FROM tab1 cor0
----
40

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3193
SELECT ALL CAST( NULL AS SIGNED ) * + - SUM( col0 ) + - + 52 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3193
SELECT ALL CAST ( NULL AS INTEGER ) * + - SUM ( col0 ) + - + 52 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( - col1 ) col1 FROM tab0 AS cor0
----
-1
-21
-81

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN NULL AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3196
SELECT DISTINCT ( + COUNT( ALL - 19 ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT ( + COUNT ( ALL - 19 ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT ( 10 ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + - col1 col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3199
SELECT ALL 26 * ( - - COUNT( * ) ) AS col2 FROM tab2
----
78

skipif mysql # not compatible
query I rowsort label-3199
SELECT ALL 26 * ( - - COUNT ( * ) ) AS col2 FROM tab2
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-3200
SELECT ALL + 33 * + ( 49 ) + - ( - MIN( col1 ) ) AS col0 FROM tab1
----
1622

skipif mysql # not compatible
query I rowsort label-3200
SELECT ALL + 33 * + ( 49 ) + - ( - MIN ( col1 ) ) AS col0 FROM tab1
----
1622

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col0 + + col2 + + col2 * - col2 * - col1 IS NOT NULL
----

query I rowsort
SELECT + - 65 * 3 FROM tab2 WHERE ( NOT col1 <> + 90 )
----

query I rowsort
SELECT 33 FROM tab0 WHERE NULL <> col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 * col2 * + col0 col2 FROM tab0
----
32430
40020
441738

query I rowsort
SELECT - + col0 - - 62 - + col0 FROM tab2 AS cor0
----
-30
-66
-88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col1 + + col2 ) IS NULL
----

query I rowsort
SELECT DISTINCT - col1 - - - col1 AS col1 FROM tab0 cor0
----
-162
-2
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-3208
SELECT - + 60 DIV col0 DIV - + col1 AS col0 FROM tab0 cor0 WHERE NOT + 16 < - 26
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3208
SELECT - + 60 / col0 / - + col1 AS col0 FROM tab0 cor0 WHERE NOT + 16 < - 26
----
0
0
0

query I rowsort
SELECT DISTINCT + + 72 AS col2 FROM tab1 WHERE - + 90 BETWEEN NULL AND - - 79
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3210
SELECT ALL 36 * + + COUNT( * ), ( - 34 ) AS col0 FROM tab0 AS cor0
----
108
-34

skipif mysql # not compatible
query II rowsort label-3210
SELECT ALL 36 * + + COUNT ( * ), ( - 34 ) AS col0 FROM tab0 AS cor0
----
108
-34

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 87 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3212
SELECT + CAST( NULL AS SIGNED ) * - 91 / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3212
SELECT + CAST ( NULL AS INTEGER ) * - 91 / col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( - 80 ) FROM tab2
----
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - 77 col0 FROM tab1
----
-1078
-3619
-385

query I rowsort
SELECT - col0 * + + 49 AS col2 FROM tab1
----
-2499
-4165
-4459

query I rowsort
SELECT DISTINCT - col2 * - + 24 + 58 FROM tab2
----
1018
1450
610

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 30, 4 col2 FROM tab2
----
-30
4
-30
4
-30
4

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 9 col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT DISTINCT - CAST( - col2 AS SIGNED ) FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-3219
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) FROM tab1 cor0
----
59
68
96

query I rowsort
SELECT ALL - 42 * - col0 + - + col0 - col0 FROM tab0
----
3480
3880
600

query II rowsort
SELECT DISTINCT col0 + - col0, + 30 AS col1 FROM tab1
----
0
30

query I rowsort
SELECT ALL - - 8 AS col2 FROM tab1 cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3223
SELECT - + COUNT( DISTINCT 45 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3223
SELECT - + COUNT ( DISTINCT 45 ) AS col0 FROM tab1 AS cor0
----
-1

query I rowsort
SELECT 80 AS col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 95 - + col1 + - + 67 FROM tab2 AS cor0
----
-23
-39
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL + - COUNT( 99 ) * COUNT( - 79 ) + - - MIN( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL + - COUNT ( 99 ) * COUNT ( - 79 ) + - - MIN ( DISTINCT col0 ) AS col1 FROM tab1 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3227
SELECT + AVG ( col2 ) + CAST( NULL AS SIGNED ) + 79 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3227
SELECT + AVG ( col2 ) + CAST ( NULL AS INTEGER ) + 79 AS col0 FROM tab1
----
NULL

query I rowsort
SELECT + col0 + + - col2 AS col0 FROM tab2
----
17
23
24

query I rowsort
SELECT 51 * 59 + col2 AS col1 FROM tab0
----
3019
3056
3108

onlyif mysql # aggregate syntax: 
query I rowsort label-3230
SELECT ALL - COUNT( * ) * 27 * - 7 FROM tab2
----
567

skipif mysql # not compatible
query I rowsort label-3230
SELECT ALL - COUNT ( * ) * 27 * - 7 FROM tab2
----
567

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 + - col1 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + ( - 36 ) * - - 51 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3233
SELECT DISTINCT + col2 + 88 DIV - 41 AS col1 FROM tab1
----
57
66
94

skipif mysql # not compatible
query I rowsort label-3233
SELECT DISTINCT + col2 + 88 / - 41 AS col1 FROM tab1
----
57
66
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3234
SELECT SUM( ALL + + 89 ) AS col0 FROM tab0 AS cor0
----
267

skipif mysql # not compatible
query I rowsort label-3234
SELECT SUM ( ALL + + 89 ) AS col0 FROM tab0 AS cor0
----
267

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT col0 DIV 65 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3235
SELECT col0 / 65 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + + 58 col2 FROM tab0 AS cor0
----
-1218
-4698
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-3237
SELECT + - COUNT( * ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3237
SELECT + - COUNT ( * ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 68
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3239
SELECT DISTINCT + col1 col0, - 77 + + 35 + 20 + col1 - - col2 * - CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3239
SELECT DISTINCT + col1 col0, - 77 + + 35 + 20 + col1 - - col2 * - CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3240
SELECT - CAST( - - SUM( - ( - 97 ) ) AS SIGNED ) FROM tab2 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-3240
SELECT - CAST ( - - SUM ( - ( - 97 ) ) AS INTEGER ) FROM tab2 AS cor0
----
-291

query II rowsort
SELECT 38, + col0 AS col0 FROM tab1 AS cor0
----
38
51
38
85
38
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 75 col1 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query II rowsort
SELECT DISTINCT + col2 * col0 AS col1, col0 * + col2 * - 19 FROM tab0
----
705
-13395
870
-16530
9603
-182457

onlyif mysql # aggregate syntax: 
query I rowsort label-3244
SELECT - COUNT( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

skipif mysql # not compatible
query I rowsort label-3244
SELECT - COUNT ( * ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----
0

query II rowsort
SELECT + ( ( - 36 ) ) AS col0, - col1 FROM tab2
----
-36
-51
-36
-67
-36
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3246
SELECT ALL + MIN( + 22 ) FROM tab2, tab1 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-3246
SELECT ALL + MIN ( + 22 ) FROM tab2, tab1 AS cor0
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-3247
SELECT + + ( - ( - 71 ) ) col2, MAX( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
71
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3247
SELECT + + ( - ( - 71 ) ) col2, MAX ( DISTINCT col1 ) AS col2 FROM tab0 AS cor0
----
71
81

query I rowsort
SELECT + col2 + + col2 AS col0 FROM tab0 AS cor0 WHERE 96 * + col2 IS NOT NULL
----
198
20
94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( - - col1, - col0 - + 20, - col0 * col2 * 81 / + col2 )
----

query II rowsort
SELECT DISTINCT - + col0 AS col2, ( 50 ) FROM tab2 WHERE NOT ( NULL ) <= ( NULL ) AND NOT + 66 + 62 * - col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3251
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * 81 + - 89 + - COUNT( * ) AS col1 FROM tab1
----
151

skipif mysql # not compatible
query I rowsort label-3251
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * 81 + - 89 + - COUNT ( * ) AS col1 FROM tab1
----
151

query I rowsort
SELECT - 10 + 80 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT ALL - COUNT( col0 ) col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3253
SELECT ALL - COUNT ( col0 ) col1 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 18, col0 col0 FROM tab2 cor0
----
-18
46
-18
64
-18
75

query I rowsort
SELECT DISTINCT - 76 - + col0 AS col1 FROM tab0
----
-163
-173
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3256
SELECT DISTINCT - MIN( DISTINCT 40 ) * - + COUNT( * ) FROM tab2
----
120

skipif mysql # not compatible
query I rowsort label-3256
SELECT DISTINCT - MIN ( DISTINCT 40 ) * - + COUNT ( * ) FROM tab2
----
120

onlyif mysql # aggregate syntax: 
query I rowsort label-3257
SELECT ALL + MAX( col2 ) * + COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
174

skipif mysql # not compatible
query I rowsort label-3257
SELECT ALL + MAX ( col2 ) * + COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
174

onlyif mysql # DIV for integer division: 
query I rowsort label-3258
SELECT + 54 DIV - col1 col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3258
SELECT + 54 / - col1 col0 FROM tab2
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3259
SELECT * FROM tab0 WHERE + col2 + + CAST( NULL AS SIGNED ) * 65 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3259
SELECT * FROM tab0 WHERE + col2 + + CAST ( NULL AS INTEGER ) * 65 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + ( - - col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-3261
SELECT - ( COUNT( * ) ) AS col0, COUNT( * ) AS col2 FROM tab0
----
-3
3

skipif mysql # not compatible
query II rowsort label-3261
SELECT - ( COUNT ( * ) ) AS col0, COUNT ( * ) AS col2 FROM tab0
----
-3
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 17 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + 26 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 59 * - + ( + + 89 ) FROM tab0 WHERE NOT NULL <> 59 - - col1 + + 5 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 86 IS NOT NULL ) OR + col0 NOT IN ( - col0, - 70 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 18 * + 45 FROM tab1
----
-810
-810
-810

query III rowsort
SELECT * FROM tab1 WHERE NOT 56 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3268
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3268
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3269
SELECT col1 * + CAST( + col2 AS SIGNED ) col0 FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3269
SELECT col1 * + CAST ( + col2 AS INTEGER ) col0 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT - - 50 - - + COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
59

skipif mysql # not compatible
query I rowsort label-3270
SELECT - - 50 - - + COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
59

query II rowsort
SELECT col1 AS col0, + 53 AS col2 FROM tab0
----
1
53
21
53
81
53

query I rowsort
SELECT DISTINCT 76 FROM tab0, tab1 cor0
----
76

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3273
SELECT ALL - CAST( NULL AS DECIMAL ) * 57 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL - CAST ( NULL AS REAL ) * 57 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + 64 * - 72 AS col0 FROM tab1 AS cor0
----
-4608
-4608
-4608

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT + 98 + + + col2 + - 69 NOT BETWEEN + col2 AND col0
----
-87

query I rowsort
SELECT ALL - 62 AS col0 FROM tab0 cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3277
SELECT DISTINCT + + col1 * + CAST( + - col1 AS SIGNED ) AS col1, + col1 + col2 + col1 + col2 + 15 + + ( col0 ) * col1 FROM tab0 AS cor0 WHERE + 32 > 59 + col0 + - col2 * col2 / + + col2
----
-6561
1486

skipif mysql # not compatible
query II rowsort label-3277
SELECT DISTINCT + + col1 * + CAST ( + - col1 AS INTEGER ) AS col1, + col1 + col2 + col1 + col2 + 15 + + ( col0 ) * col1 FROM tab0 AS cor0 WHERE + 32 > 59 + col0 + - col2 * col2 / + + col2
----
-6561
1486

onlyif mysql # aggregate syntax: 
query I rowsort label-3278
SELECT DISTINCT - COUNT( * ) * 20 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3278
SELECT DISTINCT - COUNT ( * ) * 20 FROM tab2 AS cor0
----
-60

query I rowsort
SELECT ( + + 78 ) FROM tab0
----
78
78
78

query II rowsort
SELECT - col1, col2 + + col0 AS col1 FROM tab0
----
-1
196
-21
97
-81
62

query I rowsort
SELECT DISTINCT - - col1 FROM tab1 WHERE NOT - - col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3282
SELECT - 35 AS col0, ( COUNT( * ) ) AS col0 FROM tab0
----
-35
3

skipif mysql # not compatible
query II rowsort label-3282
SELECT - 35 AS col0, ( COUNT ( * ) ) AS col0 FROM tab0
----
-35
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3283
SELECT ALL - 8 AS col2, + col0 - 6 + + + col1 - CAST( col1 AS SIGNED ) * - col2 + - col0 FROM tab0
----
-8
225
-8
3882
-8
94

skipif mysql # not compatible
query II rowsort label-3283
SELECT ALL - 8 AS col2, + col0 - 6 + + + col1 - CAST ( col1 AS INTEGER ) * - col2 + - col0 FROM tab0
----
-8
225
-8
3882
-8
94

onlyif mysql # aggregate syntax: 
query I rowsort label-3284
SELECT - COUNT( * ) + + 19 FROM tab1
----
16

skipif mysql # not compatible
query I rowsort label-3284
SELECT - COUNT ( * ) + + 19 FROM tab1
----
16

query I rowsort
SELECT + col0 * + 48 + + col1 + col0 + - col0 * ( col2 ) AS col0 FROM tab2 AS cor0
----
-608
1247
653

onlyif mysql # aggregate syntax: 
query I rowsort label-3286
SELECT DISTINCT MAX( + col0 ) + 47 FROM tab2 AS cor0
----
122

skipif mysql # not compatible
query I rowsort label-3286
SELECT DISTINCT MAX ( + col0 ) + 47 FROM tab2 AS cor0
----
122

onlyif mysql # aggregate syntax: 
query I rowsort label-3287
SELECT ( 30 ) + MAX( ALL - col2 ) FROM tab2 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3287
SELECT ( 30 ) + MAX ( ALL - col2 ) FROM tab2 AS cor0
----
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT DISTINCT + CAST( + 37 AS SIGNED ) FROM tab1
----
37

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT + CAST ( + 37 AS INTEGER ) FROM tab1
----
37

query I rowsort
SELECT ALL - 44 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 07457d9e571e036a9a3a0f5a5a2e1ef2

query I rowsort
SELECT DISTINCT col1 + + - ( - col0 ) AS col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT - + col1 * - 67 - col1 * + + col2 FROM tab1 AS cor0
----
-406
-47
40

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 36 - 4 + + col0 IS NOT NULL AND ( col1 / - - 57 * - + col1 + + 10 + + + col0 * - + col1 * - col2 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3293
SELECT ALL + ( - COUNT( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3293
SELECT ALL + ( - COUNT ( + col0 ) ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 68 - + - col0 + + col2 - + col1 AS col2 FROM tab0 AS cor0
----
144
263
49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + 8 ) NOT BETWEEN - col1 + + - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3296
SELECT - COUNT( * ) + COUNT( - col0 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3296
SELECT - COUNT ( * ) + COUNT ( - col0 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3297
SELECT + CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3297
SELECT + CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0, tab0 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT - col0 * col1 * - col1 * + col2 FROM tab0
----
383670
4625505
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3299
SELECT COUNT( * ) * - COUNT( DISTINCT - - 29 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3299
SELECT COUNT ( * ) * - COUNT ( DISTINCT - - 29 ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-3300
SELECT + col0 DIV col1 * + 88 FROM tab1
----
1496
264
88

skipif mysql # not compatible
query I rowsort label-3300
SELECT + col0 / col1 * + 88 FROM tab1
----
1496
264
88

query I rowsort
SELECT DISTINCT 86 AS col2 FROM tab2 WHERE NOT - + 97 NOT IN ( + + col0 * - + 7 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3302
SELECT DISTINCT + COUNT( 73 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3302
SELECT DISTINCT + COUNT ( 73 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT ALL COUNT( * ) col0 FROM tab1, tab2 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3303
SELECT ALL COUNT ( * ) col0 FROM tab1, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3304
SELECT ALL COUNT( * ) DIV 13 AS col2 FROM tab0 WHERE NOT + + col2 * col2 + - 66 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3304
SELECT ALL COUNT ( * ) / 13 AS col2 FROM tab0 WHERE NOT + + col2 * col2 + - 66 IS NULL
----
0

query II rowsort
SELECT ALL col2, - 12 FROM tab1
----
59
-12
68
-12
96
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( NOT col1 >= ( - col2 ) )
----
3

skipif mysql # not compatible
query I rowsort label-3306
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( NOT col1 >= ( - col2 ) )
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3307
SELECT + col2 AS col2, - CAST( + col2 AS SIGNED ) DIV - ( - + col1 ) + + - col1 + 60 AS col0 FROM tab2 AS cor0
----
23
9
40
-17
58
-7

skipif mysql # not compatible
query II rowsort label-3307
SELECT + col2 AS col2, - CAST ( + col2 AS INTEGER ) / - ( - + col1 ) + + - col1 + 60 AS col0 FROM tab2 AS cor0
----
23
9
40
-17
58
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT DISTINCT - COUNT( + 36 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT - COUNT ( + 36 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3309
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 + - CAST( NULL AS DECIMAL ) * 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3309
SELECT * FROM tab1 AS cor0 WHERE NOT + col1 * - col1 + - CAST ( NULL AS REAL ) * 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - + 97 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 76 / - 65 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3312
SELECT + COUNT( * ) DIV COUNT( * ) * COUNT( * ) - + 51 AS col2 FROM tab1 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-3312
SELECT + COUNT ( * ) / COUNT ( * ) * COUNT ( * ) - + 51 AS col2 FROM tab1 AS cor0
----
-48

query I rowsort
SELECT + - ( - ( + 97 ) ) * + col0 * - col1 FROM tab2 AS cor0
----
-227562
-478016
-487425

query II rowsort
SELECT - col2 * col0 AS col1, 93 FROM tab0 AS cor0
----
-705
93
-870
93
-9603
93

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3315
SELECT * FROM tab2 AS cor0 WHERE NOT 89 IN ( + col0 / - col1 - - CAST( NULL AS SIGNED ) / + col2, col0 * + - col0 * + col2 )
----

skipif mysql # not compatible
query III rowsort label-3315
SELECT * FROM tab2 AS cor0 WHERE NOT 89 IN ( + col0 / - col1 - - CAST ( NULL AS INTEGER ) / + col2, col0 * + - col0 * + col2 )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col0 IS NOT NULL )
----

query I rowsort
SELECT 93 + col0 AS col2 FROM tab1 AS cor0
----
144
178
184

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - + col1 + col0 * + col0 AS col2 FROM tab0 AS cor0
----
144
7548
9408

query II rowsort
SELECT 83 * col1 + + + col1 * col2 AS col0, col1 * + col2 FROM tab1 AS cor0
----
2506
1344
7097
3196
710
295

onlyif mysql # aggregate syntax: 
query I rowsort label-3321
SELECT - MIN( + 82 ) + + MIN( - - col2 ) FROM tab1
----
-23

skipif mysql # not compatible
query I rowsort label-3321
SELECT - MIN ( + 82 ) + + MIN ( - - col2 ) FROM tab1
----
-23

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL = + + 60
----

query I rowsort
SELECT ALL col0 + - 68 AS col0 FROM tab2
----
-22
-4
7

onlyif mysql # DIV for integer division: 
query I rowsort label-3324
SELECT ALL 92 DIV col0 AS col2 FROM tab0 AS cor0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-3324
SELECT ALL 92 / col0 AS col2 FROM tab0 AS cor0
----
0
1
6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE 83 IS NULL
----

query I rowsort
SELECT DISTINCT + col1 + - 26 FROM tab1 AS cor0
----
-12
-21
21

query I rowsort
SELECT ALL - 43 - + col2 AS col0 FROM tab0 AS cor0
----
-142
-53
-90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3328
SELECT SUM( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-3328
SELECT SUM ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3329
SELECT + ( COUNT( * ) ) col1 FROM ( tab2 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-3329
SELECT + ( COUNT ( * ) ) col1 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3330
SELECT DISTINCT - 84 + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT - 84 + CAST ( NULL AS REAL ) FROM tab0
----
NULL

query I rowsort
SELECT ALL col1 * col1 - - - col1 FROM tab2 AS cor0
----
2550
4422
5852

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 < 53
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3333
SELECT + MIN( - col0 ) FROM tab0 AS cor0 WHERE col1 NOT IN ( - col2 )
----
-97

skipif mysql # not compatible
query I rowsort label-3333
SELECT + MIN ( - col0 ) FROM tab0 AS cor0 WHERE col1 NOT IN ( - col2 )
----
-97

query II rowsort
SELECT + 73, col1 + + col2 AS col2 FROM tab2 AS cor0
----
73
117
73
125
73
74

query I rowsort
SELECT DISTINCT col0 - + - col2 AS col0 FROM tab1 AS cor0
----
144
147
159

query II rowsort
SELECT + col2 AS col2, - ( - 67 ) FROM tab0 AS cor0
----
10
67
47
67
99
67

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE ( + col2 ) IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-3338
SELECT CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT + AVG ( ALL ( - - col2 ) ) FROM tab2 cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( + ( + + 98 ) ) IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 95 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT DISTINCT ( - MAX( - ( + 28 ) ) ) col2 FROM tab2
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3342
SELECT DISTINCT ( - MAX ( - ( + 28 ) ) ) col2 FROM tab2
----
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 IN ( col0, + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + 25 ) * + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3345
SELECT + COUNT( * ) * + 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
126

skipif mysql # not compatible
query I rowsort label-3345
SELECT + COUNT ( * ) * + 14 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
126

onlyif mysql # aggregate syntax: 
query I rowsort label-3346
SELECT ALL COUNT( * ) + - - 9 AS col1 FROM tab2
----
12

skipif mysql # not compatible
query I rowsort label-3346
SELECT ALL COUNT ( * ) + - - 9 AS col1 FROM tab2
----
12

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 <> col0
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 86 * - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 * - col2 - - + 60 + - + col0 FROM tab0 AS cor0
----
750
843
9566

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 1 <> + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3351
SELECT + ( - - CAST( - MIN( ALL - CAST( + col0 AS SIGNED ) ) AS SIGNED ) ) * + 50 FROM tab0 AS cor0
----
4850

skipif mysql # not compatible
query I rowsort label-3351
SELECT + ( - - CAST ( - MIN ( ALL - CAST ( + col0 AS INTEGER ) ) AS INTEGER ) ) * + 50 FROM tab0 AS cor0
----
4850

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3352
SELECT AVG ( DISTINCT - col1 ) * CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3352
SELECT AVG ( DISTINCT - col1 ) * CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3353
SELECT ALL CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3353
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 68 + - - 6 AS col2 FROM tab0
----
74
74
74

query I rowsort
SELECT 49 + - col1 FROM tab1
----
2
35
44

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - 47 * + + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 50 * + col0 + + col1 FROM tab0
----
4371
4851
831

onlyif mysql # DIV for integer division: 
query I rowsort label-3358
SELECT DISTINCT + col2 + - col2 + + col1 DIV - + col0 + col0 + + 64 AS col2 FROM tab0
----
151
161
74

skipif mysql # not compatible
query I rowsort label-3358
SELECT DISTINCT + col2 + - col2 + + col1 / - + col0 + col0 + + 64 AS col2 FROM tab0
----
151
161
74

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 * + col2 NOT IN ( + 24, col2, + + 69 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 54 - + 91 AS col1 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-3361
SELECT - SUM( + + col1 ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-3361
SELECT - SUM ( + + col1 ) FROM tab2 cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - - col2 col2 FROM tab2 AS cor0 WHERE 49 > + 43
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3363
SELECT + COUNT( + col0 ) FROM tab0 cor0 WHERE NOT + col0 * - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3363
SELECT + COUNT ( + col0 ) FROM tab0 cor0 WHERE NOT + col0 * - col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3364
SELECT DISTINCT COUNT( + - 38 ) DIV 3 - - COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT COUNT ( + - 38 ) / 3 - - COUNT ( * ) FROM tab0 AS cor0
----
4

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3365
SELECT - COUNT( DISTINCT - - CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3365
SELECT - COUNT ( DISTINCT - - CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3366
SELECT + + SUM( - col2 ) AS col0 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3366
SELECT + + SUM ( - col2 ) AS col0 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3367
SELECT - MAX( - 60 ) FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-3367
SELECT - MAX ( - 60 ) FROM tab2 AS cor0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col0 * col0 col1 FROM tab0 WHERE col1 IS NULL
----

query II rowsort
SELECT 79 AS col1, - col2 FROM tab0
----
79
-10
79
-47
79
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3370
SELECT DISTINCT AVG ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3370
SELECT DISTINCT AVG ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT ALL col1, 67 FROM tab1 AS cor0
----
14
67
47
67
5
67

query II rowsort
SELECT ALL + col0, 97 FROM tab0 AS cor0
----
15
97
87
97
97
97

query I rowsort
SELECT DISTINCT 74 + 53 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
127

query I rowsort
SELECT DISTINCT - 26 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-26

query I rowsort
SELECT + 27 + + + 28 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1626bd3008abd9f18cc88cdecf7b64d0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - - 83 ) >= + col1
----

query I rowsort
SELECT 0 AS col2 FROM tab2 WHERE 3 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3378
SELECT col0 * + 64 * + + col0 / - + col2 * + col1 + - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3378
SELECT col0 * + 64 * + + col0 / - + col2 * + col1 + - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3379
SELECT - - MIN( ALL - + col1 ) * - + COUNT( ALL - col0 ) + - 15 - + COUNT( * ) col1 FROM tab0 AS cor0
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3379
SELECT - - MIN ( ALL - + col1 ) * - + COUNT ( ALL - col0 ) + - 15 - + COUNT ( * ) col1 FROM tab0 AS cor0
----
225

query I rowsort
SELECT - - col2 + - ( - + col2 ) AS col0 FROM tab0 AS cor0
----
198
20
94

onlyif mysql # DIV for integer division: 
query I rowsort label-3381
SELECT ALL - + ( + ( - col2 ) ) + - - col1 + + - 92 * - col1 - col1 * - col1 DIV + col1 + + col1 FROM tab2 AS cor0
----
4868
6423
7355

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL - + ( + ( - col2 ) ) + - - col1 + + - 92 * - col1 - col1 * - col1 / + col1 + + col1 FROM tab2 AS cor0
----
4868
6423
7355

query I rowsort
SELECT - col1 * + col0 + + + ( - col2 ) FROM tab1 AS cor0
----
-4345
-484
-810

onlyif mysql # DIV for integer division: 
query I rowsort label-3383
SELECT - col0 + + col2 DIV col1 * col0 AS col0 FROM tab0 AS cor0
----
-15
-87
9506

skipif mysql # not compatible
query I rowsort label-3383
SELECT - col0 + + col2 / col1 * col0 AS col0 FROM tab0 AS cor0
----
-15
-87
9506

onlyif mysql # DIV for integer division: 
query I rowsort label-3384
SELECT - 0 DIV - col0 + - 6 DIV + + 41 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3384
SELECT - 0 / - col0 + - 6 / + + 41 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3385
SELECT ALL * FROM tab0 WHERE CAST( NULL AS DECIMAL ) * + col0 < NULL
----

skipif mysql # not compatible
query III rowsort label-3385
SELECT ALL * FROM tab0 WHERE CAST ( NULL AS REAL ) * + col0 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3386
SELECT CAST( NULL AS SIGNED ) * - 92 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3386
SELECT CAST ( NULL AS INTEGER ) * - 92 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 14 + - + col2 FROM tab2
----
-26
-44
-9

query I rowsort
SELECT + ( + + 99 ) FROM tab0
----
99
99
99

query I rowsort
SELECT ALL + col0 + - + col0 + - + 38 FROM tab2
----
-38
-38
-38

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> 25
----

query III rowsort
SELECT * FROM tab1 WHERE 59 * + 14 * 98 * - 23 * 0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3392
SELECT + MAX( ALL col2 ) FROM tab2 cor0
----
58

skipif mysql # not compatible
query I rowsort label-3392
SELECT + MAX ( ALL col2 ) FROM tab2 cor0
----
58

query I rowsort
SELECT ALL - col1 + 11 FROM tab1 AS cor0
----
-3
-36
6

query I rowsort
SELECT DISTINCT col0 - - + col0 + col2 AS col0 FROM tab0 AS cor0
----
184
293
77

query I rowsort
SELECT + - 38 - + col0 + + 3 FROM tab2 AS cor0
----
-110
-81
-99

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - 72 / ( - col1 ) <> - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= col1 + - 88
----

query I rowsort
SELECT DISTINCT + col2 - - + col1 FROM tab1 AS cor0
----
110
115
64

query I rowsort
SELECT ( - col0 ) * - 35 * - 31 FROM tab0
----
-105245
-16275
-94395

onlyif mysql # aggregate syntax: 
query I rowsort label-3400
SELECT + MIN( 48 ) * 81 FROM tab0 AS cor0
----
3888

skipif mysql # not compatible
query I rowsort label-3400
SELECT + MIN ( 48 ) * 81 FROM tab0 AS cor0
----
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-3401
SELECT ALL + SUM( DISTINCT - ( - - 53 ) ) FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-3401
SELECT ALL + SUM ( DISTINCT - ( - - 53 ) ) FROM tab2 AS cor0
----
-53

query I rowsort
SELECT - 50 / - 28 FROM tab0 AS cor0 WHERE NOT - col1 * 3 <= 98 - - - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3403
SELECT DISTINCT - - col0 * + + col1 * 36 * ( CAST( - + col2 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-10492200
-1942488
-7096320

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - - col0 * + + col1 * 36 * ( CAST ( - + col2 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-10492200
-1942488
-7096320

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3404
SELECT ALL CAST( NULL AS DECIMAL ) * col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3404
SELECT ALL CAST ( NULL AS REAL ) * col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT DISTINCT 33 * - SUM( + - col0 ) FROM tab0
----
6567

skipif mysql # not compatible
query I rowsort label-3405
SELECT DISTINCT 33 * - SUM ( + - col0 ) FROM tab0
----
6567

onlyif mysql # DIV for integer division: 
query I rowsort label-3406
SELECT ALL - col0 DIV - - 20 AS col2 FROM tab0
----
-4
-4
0

skipif mysql # not compatible
query I rowsort label-3406
SELECT ALL - col0 / - - 20 AS col2 FROM tab0
----
-4
-4
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 + 94 * + - ( + ( - ( + col1 ) ) ) * + col2 col2 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3408
SELECT ALL COUNT( * ) DIV - 67 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3408
SELECT ALL COUNT ( * ) / - 67 AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + + col2 ) col1 FROM tab0
----
10
47
99

query I rowsort
SELECT DISTINCT - 90 * 68 AS col0 FROM tab1 AS cor0
----
-6120

query I rowsort
SELECT DISTINCT - 2 + - col2 AS col2 FROM tab1
----
-61
-70
-98

query I rowsort
SELECT + 88 AS col2 FROM tab0 WHERE col2 * + 6 + 7 * col0 IS NOT NULL
----
88
88
88

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NULL > - ( col1 )
----

query II rowsort
SELECT - 98 * - 26 AS col1, 84 AS col0 FROM tab1 AS cor0
----
2548
84
2548
84
2548
84

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3415
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT 73 NOT BETWEEN - 18 + - 60 + col0 + + CAST( NULL AS DECIMAL ) AND NULL )
----

skipif mysql # not compatible
query III rowsort label-3415
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT 73 NOT BETWEEN - 18 + - 60 + col0 + + CAST ( NULL AS REAL ) AND NULL )
----

query I rowsort
SELECT DISTINCT + - 69 AS col0 FROM tab1 AS cor0
----
-69

query II rowsort
SELECT 97, col1 * - col0 FROM tab2 AS cor0 WHERE ( NOT - col1 * - col2 >= ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * - 75 - + col2 col0 FROM tab2 cor0
----
3802
4967
5735

query I rowsort
SELECT + + col1 + + + col2 * - ( - + col1 ) AS col0 FROM tab1 WHERE - col0 + - col1 * - 13 * - 5 IS NOT NULL
----
1358
300
3243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3420
SELECT ALL + CAST( 80 AS SIGNED ) FROM tab0
----
80
80
80

skipif mysql # not compatible
query I rowsort label-3420
SELECT ALL + CAST ( 80 AS INTEGER ) FROM tab0
----
80
80
80

query I rowsort
SELECT - col1 * - col2 + col1 FROM tab2
----
1224
3157
3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3422
SELECT DISTINCT - COUNT( + 12 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3422
SELECT DISTINCT - COUNT ( + 12 ) FROM tab2
----
-3

query I rowsort
SELECT - col1 + - + col1 + ( 55 ) FROM tab2
----
-47
-79
-99

query II rowsort
SELECT DISTINCT col0 * 18 AS col1, col1 AS col0 FROM tab2
----
1152
77
1350
67
828
51

query I rowsort
SELECT DISTINCT - ( + col2 ) AS col2 FROM tab0 WHERE ( + col2 ) BETWEEN + col0 AND NULL
----

query I rowsort
SELECT + 87 AS col0 FROM tab0 WHERE + ( + col2 ) / 54 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3427
SELECT + 77 * - - CAST( - + 93 AS SIGNED ) * col2 + + col0 AS col2 FROM tab0
----
-336552
-708842
-71523

skipif mysql # not compatible
query I rowsort label-3427
SELECT + 77 * - - CAST ( - + 93 AS INTEGER ) * col2 + + col0 AS col2 FROM tab0
----
-336552
-708842
-71523

query I rowsort
SELECT ALL - col2 + 94 * 95 FROM tab2 cor0
----
8872
8890
8907

query II rowsort
SELECT ALL col1 * col1 + 45, - 60 * + col0 AS col1 FROM tab1 AS cor0
----
2254
-5460
241
-3060
70
-5100

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT - + COUNT( ALL - + col2 ) * + - 23 + - 28 AS col1 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT - + COUNT ( ALL - + col2 ) * + - 23 + - 28 AS col1 FROM tab0 AS cor0
----
41

query II rowsort
SELECT DISTINCT + 38, + col2 FROM tab2 AS cor0
----
38
23
38
40
38
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3432
SELECT DISTINCT + 87 DIV + - SUM( ALL + - 67 ) AS col0, COUNT( * ) FROM tab0 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-3432
SELECT DISTINCT + 87 / + - SUM ( ALL + - 67 ) AS col0, COUNT ( * ) FROM tab0 AS cor0
----
0
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3433
SELECT + col1 col2, + CAST( NULL AS SIGNED ) + - ( - col0 ), - - CAST( + col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
9 values hashing to 6dbdc38342e8a2a5e1bb6abb69d199e8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-3433
SELECT + col1 col2, + CAST ( NULL AS INTEGER ) + - ( - col0 ), - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
9 values hashing to 6dbdc38342e8a2a5e1bb6abb69d199e8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3434
SELECT ALL - - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL - - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 23 AS col0 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3436
SELECT DISTINCT - MAX( 19 ) * + COUNT( DISTINCT 60 ), - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-19
-3

skipif mysql # not compatible
query II rowsort label-3436
SELECT DISTINCT - MAX ( 19 ) * + COUNT ( DISTINCT 60 ), - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-19
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3437
SELECT ALL + 44 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT ALL + 44 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3438
SELECT CAST( - - col2 AS SIGNED ) * + col0 AS col1 FROM tab1
----
4896
5015
6188

skipif mysql # not compatible
query I rowsort label-3438
SELECT CAST ( - - col2 AS INTEGER ) * + col0 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3439
SELECT DISTINCT + MAX( ALL + + CAST( - - 92 AS SIGNED ) ) DIV + - 87 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3439
SELECT DISTINCT + MAX ( ALL + + CAST ( - - 92 AS INTEGER ) ) / + - 87 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT ALL 1 * - col0 FROM tab0 AS cor0
----
-15
-87
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-3441
SELECT + - 3 DIV col1 + + 38 AS col0 FROM tab0 AS cor0
----
35
38
38

skipif mysql # not compatible
query I rowsort label-3441
SELECT + - 3 / col1 + + 38 AS col0 FROM tab0 AS cor0
----
35
38
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 75 <= NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col2 < ( - + ( + col2 ) * - + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT ALL + 3 - + MAX( + + col1 ) AS col0 FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-3444
SELECT ALL + 3 - + MAX ( + + col1 ) AS col0 FROM tab1 cor0
----
-44

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 95 IS NULL AND + col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3446
SELECT DISTINCT - COUNT( * ) + ( - + 53 ) FROM tab2 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-3446
SELECT DISTINCT - COUNT ( * ) + ( - + 53 ) FROM tab2 AS cor0
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-3447
SELECT + COUNT( * ) + - - 30 FROM tab0 cor0
----
33

skipif mysql # not compatible
query I rowsort label-3447
SELECT + COUNT ( * ) + - - 30 FROM tab0 cor0
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-3448
SELECT - - 79 + + COUNT( + 79 ) AS col1 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-3448
SELECT - - 79 + + COUNT ( + 79 ) AS col1 FROM tab2 cor0
----
82

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3449
SELECT ALL + CAST( NULL AS DECIMAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3449
SELECT ALL + CAST ( NULL AS REAL ) - col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 55 + ( + ( + 84 ) ) AS col1 FROM tab0 cor0
----
139
139
139

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3451
SELECT DISTINCT - 89 DIV + - COUNT( * ) col1 FROM tab0 AS cor0
----
29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3451
SELECT DISTINCT - 89 / + - COUNT ( * ) col1 FROM tab0 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-3452
SELECT ALL - COUNT( DISTINCT col2 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3452
SELECT ALL - COUNT ( DISTINCT col2 ) FROM tab2 cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 51 * - 4 / + col1 * col1 + + - ( - 20 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 + + col2 FROM tab2 WHERE ( + 91 >= - col2 )
----
0
0
0

query II rowsort
SELECT - col0 AS col0, + col1 * - col0 FROM tab2
----
-46
-2346
-64
-4928
-75
-5025

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3456
SELECT ALL CAST( NULL AS DECIMAL ) + - col0 * - - 42 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT ALL CAST ( NULL AS REAL ) + - col0 * - - 42 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + - col0 col1 FROM tab0 AS cor0
----
-77
2
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3458
SELECT - col2, 96 * + + CAST( + 14 AS SIGNED ) AS col0, - col2 FROM tab1 AS cor0
----
9 values hashing to ed9ee3977c93d27c459b47b53b6ef833

skipif mysql # not compatible
query III rowsort label-3458
SELECT - col2, 96 * + + CAST ( + 14 AS INTEGER ) AS col0, - col2 FROM tab1 AS cor0
----
9 values hashing to ed9ee3977c93d27c459b47b53b6ef833

onlyif mysql # DIV for integer division: 
query II rowsort label-3459
SELECT col2 DIV 93, col2 * col1 AS col2 FROM tab1
----
0
295
0
3196
1
1344

skipif mysql # not compatible
query II rowsort label-3459
SELECT col2 / 93, col2 * col1 AS col2 FROM tab1
----
0
295
0
3196
1
1344

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3460
SELECT col0 FROM tab2 AS cor0 WHERE NOT CAST( + - col2 AS SIGNED ) / + + col1 <> NULL
----

skipif mysql # not compatible
query I rowsort label-3460
SELECT col0 FROM tab2 AS cor0 WHERE NOT CAST ( + - col2 AS INTEGER ) / + + col1 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 col1 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + ( - 75 ) AS col0 FROM tab0 AS cor0
----
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-3463
SELECT DISTINCT - col1 DIV col2 * col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-64
-75
-92

skipif mysql # not compatible
query I rowsort label-3463
SELECT DISTINCT - col1 / col2 * col0 FROM tab2 AS cor0 WHERE - col2 IS NOT NULL
----
-64
-75
-92

query II rowsort
SELECT ALL col2 * + 76 AS col0, col1 FROM tab2 AS cor0
----
1748
51
3040
77
4408
67

onlyif mysql # aggregate syntax: 
query I rowsort label-3465
SELECT - + MAX( + - 43 ) AS col2 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-3465
SELECT - + MAX ( + - 43 ) AS col2 FROM tab2 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT DISTINCT 94 * + - COUNT( * ) * MAX( + 18 ) FROM tab1
----
-5076

skipif mysql # not compatible
query I rowsort label-3466
SELECT DISTINCT 94 * + - COUNT ( * ) * MAX ( + 18 ) FROM tab1
----
-5076

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3467
SELECT + CAST( + col2 AS SIGNED ) col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3467
SELECT + CAST ( + col2 AS INTEGER ) col0 FROM tab0
----
10
47
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + 18 * - 3 col0 FROM tab2
----
-46
-54
-64
-54
-75
-54

query I rowsort
SELECT 84 * + 28 FROM tab2
----
2352
2352
2352

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3470
SELECT DISTINCT + col2 * - CAST( col1 AS SIGNED ) * - col2 AS col0 FROM tab0
----
178929
2100
9801

skipif mysql # not compatible
query I rowsort label-3470
SELECT DISTINCT + col2 * - CAST ( col1 AS INTEGER ) * - col2 AS col0 FROM tab0
----
178929
2100
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-3471
SELECT ALL 25 * + 91 * COUNT( * ) * + MIN( + + 34 ) FROM tab2
----
232050

skipif mysql # not compatible
query I rowsort label-3471
SELECT ALL 25 * + 91 * COUNT ( * ) * + MIN ( + + 34 ) FROM tab2
----
232050

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 IS NULL AND NOT NULL BETWEEN ( NULL ) AND 24
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3473
SELECT 0 + - ( + + COUNT( * ) ) AS col2, - 12 + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-3473
SELECT 0 + - ( + + COUNT ( * ) ) AS col2, - 12 + CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3474
SELECT ALL COUNT( * ) - + COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3474
SELECT ALL COUNT ( * ) - + COUNT ( * ) AS col0 FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT col0 AS col1, col1 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 26 IS NULL
----

query I rowsort
SELECT DISTINCT - - ( - - 36 ) FROM tab0 cor0
----
36

query I rowsort
SELECT - 34 - - col2 FROM tab0 AS cor0
----
-24
13
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3479
SELECT DISTINCT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT DISTINCT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE col0 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3480
SELECT COUNT( * ) + 1 AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-3480
SELECT COUNT ( * ) + 1 AS col1 FROM tab2
----
4

query I rowsort
SELECT 16 + 2 FROM tab2
----
18
18
18

query I rowsort
SELECT ALL + col0 * col0 + - col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3483
SELECT DISTINCT - col1 * - col0 * - CAST( NULL AS DECIMAL ) + + + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3483
SELECT DISTINCT - col1 * - col0 * - CAST ( NULL AS REAL ) + + + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3484
SELECT + COUNT( * ) col0, SUM( ALL col1 ) FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3484
SELECT + COUNT ( * ) col0, SUM ( ALL col1 ) FROM tab1 AS cor0
----
3
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3485
SELECT + - 32 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3485
SELECT + - 32 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query II rowsort label-3486
SELECT DISTINCT + + COUNT( * ), COUNT( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-3486
SELECT DISTINCT + + COUNT ( * ), COUNT ( * ) AS col0 FROM tab2 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 col1 FROM tab2 AS cor0 WHERE NOT NULL < 36
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3488
SELECT + COUNT( - + col0 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3488
SELECT + COUNT ( - + col0 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3489
SELECT - + COUNT( - - col0 ) FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3489
SELECT - + COUNT ( - - col0 ) FROM tab0 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3490
SELECT + - CAST( NULL AS SIGNED ) * + 90 * - col0 + + col1 AS col0 FROM tab0 WHERE NOT NULL > - - col0 / col2
----

skipif mysql # not compatible
query I rowsort label-3490
SELECT + - CAST ( NULL AS INTEGER ) * + 90 * - col0 + + col1 AS col0 FROM tab0 WHERE NOT NULL > - - col0 / col2
----

query I rowsort
SELECT ( 14 ) + + - col1 + col1 + - + 71 FROM tab0
----
-57
-57
-57

query II rowsort
SELECT ALL + 68 + - col0 AS col0, + col1 * col0 AS col1 FROM tab1
----
-17
425
-23
4277
17
714

query I rowsort
SELECT ALL 86 + ( + col2 ) AS col2 FROM tab0 AS cor0
----
133
185
96

query I rowsort
SELECT + col0 * + - col1 AS col1 FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT + + 72 + 40 FROM tab0 AS cor0
----
112

query II rowsort
SELECT + 81 * + col1 + col2 AS col2, col2 FROM tab0
----
1711
10
180
99
6608
47

onlyif mysql # DIV for integer division: 
query I rowsort label-3497
SELECT - 9 + - 34 + + col1 DIV 64 FROM tab1
----
-43
-43
-43

skipif mysql # not compatible
query I rowsort label-3497
SELECT - 9 + - 34 + + col1 / 64 FROM tab1
----
-43
-43
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3498
SELECT - col0 + - col0 - - CAST( NULL AS SIGNED ) * col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3498
SELECT - col0 + - col0 - - CAST ( NULL AS INTEGER ) * col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3499
SELECT DISTINCT - 94 + - col1 - - + col0 - - - col2 DIV + ( + - 9 ) FROM tab1 AS cor0
----
-43
-47
-8

skipif mysql # not compatible
query I rowsort label-3499
SELECT DISTINCT - 94 + - col1 - - + col0 - - - col2 / + ( + - 9 ) FROM tab1 AS cor0
----
-43
-47
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3500
SELECT CAST( NULL AS SIGNED ) FROM tab2 cor0 WHERE ( NULL ) < NULL
----

skipif mysql # not compatible
query I rowsort label-3500
SELECT CAST ( NULL AS INTEGER ) FROM tab2 cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT 56 * - col2 AS col0 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: 
query I rowsort label-3502
SELECT DISTINCT COUNT( * ) * + + 2 * + ( - COUNT( + col0 ) ) FROM tab2
----
-18

skipif mysql # not compatible
query I rowsort label-3502
SELECT DISTINCT COUNT ( * ) * + + 2 * + ( - COUNT ( + col0 ) ) FROM tab2
----
-18

query I rowsort
SELECT 36 * + col2 FROM tab1
----
2124
2448
3456

query I rowsort
SELECT DISTINCT + ( col0 ) * 31 FROM tab2
----
1426
1984
2325

onlyif mysql # DIV for integer division: 
query I rowsort label-3505
SELECT DISTINCT col0 DIV + 11 AS col0 FROM tab0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-3505
SELECT DISTINCT col0 / + 11 AS col0 FROM tab0
----
1
7
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3506
SELECT 85 * + 11, col1 - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
935
NULL
935
NULL
935
NULL

skipif mysql # not compatible
query II rowsort label-3506
SELECT 85 * + 11, col1 - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
935
NULL
935
NULL
935
NULL

query I rowsort
SELECT 3 * + 33 FROM tab1
----
99
99
99

query I rowsort
SELECT - col0 * + - col0 * - 17 FROM tab2
----
-35972
-69632
-95625

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col0 NOT IN ( - col0 / + col1, + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - ( - 15 ) FROM tab2 AS cor0
----
15
15
15

query II rowsort
SELECT ALL - - col1 AS col2, col1 * col0 FROM tab0 AS cor0
----
1
97
21
1827
81
1215

onlyif mysql # DIV for integer division: 
query I rowsort label-3512
SELECT 53 DIV col1 AS col1 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-3512
SELECT 53 / col1 AS col1 FROM tab1
----
1
10
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3513
SELECT AVG ( ALL CAST( NULL AS DECIMAL ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3513
SELECT AVG ( ALL CAST ( NULL AS REAL ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3514
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + - 45 + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3514
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + - 45 + col1 FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - 94 FROM tab2
----
-140
-158
-169

query I rowsort
SELECT - col1 + - col1 + - - ( - col2 ) FROM tab2
----
-125
-192
-194

onlyif mysql # aggregate syntax: 
query I rowsort label-3517
SELECT ALL + 57 + COUNT( * ) AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-3517
SELECT ALL + 57 + COUNT ( * ) AS col2 FROM tab2
----
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3518
SELECT - col1, - col1 * - col0 * + ( - CAST( NULL AS SIGNED ) ) FROM tab1 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query II rowsort label-3518
SELECT - col1, - col1 * - col0 * + ( - CAST ( NULL AS INTEGER ) ) FROM tab1 WHERE + col1 IS NULL
----

query I rowsort
SELECT + col1 * + + col0 FROM tab0 cor0
----
1215
1827
97

query I rowsort
SELECT DISTINCT - 8 * + ( + col0 ) FROM tab1 AS cor0
----
-408
-680
-728

query I rowsort
SELECT + col1 * + col0 - + 85 FROM tab0 AS cor0
----
1130
12
1742

onlyif mysql # DIV for integer division: 
query I rowsort label-3522
SELECT ALL + col1 + - + 19 * col2 DIV - - ( - col0 ) - - col2 FROM tab2 cor0
----
128
139
83

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL + col1 + - + 19 * col2 / - - ( - col0 ) - - col2 FROM tab2 cor0
----
128
139
83

onlyif mysql # DIV for integer division: 
query I rowsort label-3523
SELECT DISTINCT col1 DIV + col2 FROM tab2 cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-3523
SELECT DISTINCT col1 / + col2 FROM tab2 cor0
----
1
2

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3525
SELECT DISTINCT + col2 * + CAST( - col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

skipif mysql # not compatible
query I rowsort label-3525
SELECT DISTINCT + col2 * + CAST ( - col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1600
-3364
-529

onlyif mysql # DIV for integer division: 
query II rowsort label-3526
SELECT 62 * + 24 AS col2, col1 DIV 67 FROM tab1 cor0
----
1488
0
1488
0
1488
0

skipif mysql # not compatible
query II rowsort label-3526
SELECT 62 * + 24 AS col2, col1 / 67 FROM tab1 cor0
----
1488
0
1488
0
1488
0

query I rowsort
SELECT ALL col0 * - 51 + - + col2 - - + 55 AS col2 FROM tab1 AS cor0
----
-2642
-4339
-4654

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - - col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - - col2 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3529
SELECT DISTINCT + 1 * + + COUNT( * ) col0 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3529
SELECT DISTINCT + 1 * + + COUNT ( * ) col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3530
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 + CAST( col1 AS DECIMAL ) + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3530
SELECT DISTINCT * FROM tab1 WHERE NOT - + col2 + CAST ( col1 AS REAL ) + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3531
SELECT ALL ( + 8 ) * COUNT( * ) * + 91 FROM tab2 AS cor0
----
2184

skipif mysql # not compatible
query I rowsort label-3531
SELECT ALL ( + 8 ) * COUNT ( * ) * + 91 FROM tab2 AS cor0
----
2184

query I rowsort
SELECT ( + ( + - col0 ) ) * - 57 FROM tab0 AS cor0
----
4959
5529
855

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3533
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * col0 IN ( + CAST( + CAST( 27 AS SIGNED ) AS SIGNED ) * col2 * - col1 )
----

skipif mysql # not compatible
query III rowsort label-3533
SELECT ALL * FROM tab0 AS cor0 WHERE + col2 * col0 IN ( + CAST ( + CAST ( 27 AS INTEGER ) AS INTEGER ) * col2 * - col1 )
----

query II rowsort
SELECT col2 AS col2, col2 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT DISTINCT + 28 AS col1 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) ) = + 38 / + col2
----

skipif mysql # not compatible
query I rowsort label-3535
SELECT DISTINCT + 28 AS col1 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) ) = + 38 / + col2
----

query I rowsort
SELECT DISTINCT 97 + - col2 FROM tab2
----
39
57
74

query I rowsort
SELECT ALL 70 * - col2 AS col1 FROM tab1
----
-4130
-4760
-6720

query III rowsort
SELECT * FROM tab1 WHERE ( 16 ) NOT BETWEEN ( col1 + + col1 ) AND + 3 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 - col0 = - col2 * col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT DISTINCT COUNT( * ) * - 88 FROM tab2
----
-264

skipif mysql # not compatible
query I rowsort label-3540
SELECT DISTINCT COUNT ( * ) * - 88 FROM tab2
----
-264

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3541
SELECT DISTINCT + COUNT( * ) * AVG ( ALL + CAST( + col2 AS SIGNED ) * CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3541
SELECT DISTINCT + COUNT ( * ) * AVG ( ALL + CAST ( + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3542
SELECT ALL 24 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3542
SELECT ALL 24 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT - 5 + - MIN( DISTINCT col0 ) FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-3543
SELECT - 5 + - MIN ( DISTINCT col0 ) FROM tab2
----
-51

query I rowsort
SELECT ALL col2 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + col1 NOT BETWEEN col2 AND NULL
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3546
SELECT + 7 * + COUNT( * ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3546
SELECT + 7 * + COUNT ( * ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 - - col0 col2 FROM tab2 WHERE ( col1 ) BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT + ( + 60 ) + COUNT( * ) AS col0 FROM tab2
----
63

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT + ( + 60 ) + COUNT ( * ) AS col0 FROM tab2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3549
SELECT 5 * COUNT( * ) AS col0 FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-3549
SELECT 5 * COUNT ( * ) AS col0 FROM tab2
----
15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( 10 ) / + 70 <> NULL
----

query I rowsort
SELECT DISTINCT - col2 + 78 FROM tab0
----
-21
31
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3552
SELECT + COUNT( * ) col1 FROM tab2 WHERE NOT NULL > col0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3552
SELECT + COUNT ( * ) col1 FROM tab2 WHERE NOT NULL > col0
----
0

query I rowsort
SELECT ALL + 19 * 69 AS col1 FROM tab1
----
1311
1311
1311

query I rowsort
SELECT + col1 - + col1 AS col2 FROM tab0 WHERE NOT + col1 > col2 / + 91
----
0

query I rowsort
SELECT DISTINCT - 91 FROM tab2 cor0 WHERE col0 = - col1 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * col0 NOT IN ( col0 + + col2 * col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3557
SELECT col1 + CAST( NULL AS SIGNED ) * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 74 AND - col1
----

skipif mysql # not compatible
query I rowsort label-3557
SELECT col1 + CAST ( NULL AS INTEGER ) * + col1 AS col1 FROM tab2 AS cor0 WHERE NULL BETWEEN - 74 AND - col1
----

query III rowsort
SELECT * FROM tab0 WHERE + col0 NOT IN ( - 14 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 47 * col1 AS col2 FROM tab0
----
3807
47
987

query I rowsort
SELECT ALL + ( + col1 ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 75 * col2 FROM tab0 AS cor0
----
3525
7425
750

query I rowsort
SELECT - 76 * col1 FROM tab0 AS cor0
----
-1596
-6156
-76

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - col1 NOT BETWEEN ( col0 + 96 ) AND ( 8 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 - - col2 * col0 NOT BETWEEN col2 * + 97 + - col1 * - col0 AND 97
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 20 ) > 50
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT col2 IN ( + 19 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3567
SELECT ALL + 37 * MAX( - col0 * col0 ) AS col2 FROM tab0 AS cor0
----
-8325

skipif mysql # not compatible
query I rowsort label-3567
SELECT ALL + 37 * MAX ( - col0 * col0 ) AS col2 FROM tab0 AS cor0
----
-8325

query I rowsort
SELECT ALL col1 * + - 58 AS col1 FROM tab0
----
-1218
-4698
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 IN ( 11 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3570
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3570
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
-9

query I rowsort
SELECT ALL + col1 * 23 FROM tab1 WHERE 76 IN ( + col1 * + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3572
SELECT ALL - COUNT( DISTINCT + 56 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-3572
SELECT ALL - COUNT ( DISTINCT + 56 ) AS col0 FROM tab1
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3573
SELECT + 68 * - + MIN( DISTINCT 19 ) FROM tab2
----
-1292

skipif mysql # not compatible
query I rowsort label-3573
SELECT + 68 * - + MIN ( DISTINCT 19 ) FROM tab2
----
-1292

onlyif mysql # DIV for integer division: 
query I rowsort label-3574
SELECT 36 DIV - 61 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3574
SELECT 36 / - 61 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3575
SELECT - SUM( - col2 ) AS col0 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3575
SELECT - SUM ( - col2 ) AS col0 FROM tab0
----
156

query I rowsort
SELECT - col0 * - 66 FROM tab0
----
5742
6402
990

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT ALL + COUNT( DISTINCT + 25 ) * COUNT( col2 * col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3578
SELECT ALL + COUNT ( DISTINCT + 25 ) * COUNT ( col2 * col0 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT col2 * 47 * - col0 AS col2 FROM tab0 AS cor0
----
-33135
-40890
-451341

onlyif mysql # DIV for integer division: 
query I rowsort label-3580
SELECT DISTINCT - - col1 DIV + col1 col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3580
SELECT DISTINCT - - col1 / + col1 col1 FROM tab2 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3581
SELECT ALL - - col1 DIV 36 AS col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3581
SELECT ALL - - col1 / 36 AS col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT - 90 + - col0 FROM tab2 cor0
----
-136
-154
-165

onlyif mysql # DIV for integer division: 
query I rowsort label-3583
SELECT col0 * - col2 + - col0 + - 81 DIV col0 FROM tab2
----
-1105
-2625
-4426

skipif mysql # not compatible
query I rowsort label-3583
SELECT col0 * - col2 + - col0 + - 81 / col0 FROM tab2
----
-1105
-2625
-4426

query I rowsort
SELECT ALL - ( col2 ) / + col0 AS col0 FROM tab2 WHERE NULL NOT IN ( - col0 )
----

query II rowsort
SELECT - col2, + 0 - - col2 * - 7 AS col1 FROM tab2
----
-23
-161
-40
-280
-58
-406

query II rowsort
SELECT - 6 AS col1, ( - col0 ) AS col2 FROM tab0
----
-6
-15
-6
-87
-6
-97

query I rowsort
SELECT col0 * col2 * + - col2 FROM tab2
----
-102400
-24334
-252300

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL < ( col2 * + 7 )
----

query I rowsort
SELECT DISTINCT + col2 * 63 AS col2 FROM tab2 cor0 WHERE NOT ( - col1 ) IS NULL
----
1449
2520
3654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * + col1 * 42 - col0 col1 FROM tab1 cor0
----
12305
134141
56397

onlyif mysql # DIV for integer division: 
query I rowsort label-3591
SELECT ALL - + col2 DIV - - 74 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT ALL - + col2 / - - 74 AS col0 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT + 31 NOT BETWEEN NULL AND - 89
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 BETWEEN - ( + col2 ) AND ( col1 / - col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3594
SELECT ALL - 32 DIV COUNT( * ) col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3594
SELECT ALL - 32 / COUNT ( * ) col2 FROM tab0 AS cor0
----
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col1, - 90 FROM tab1 AS cor0
----
51
-90
85
-90
91
-90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 + col2 col0 FROM tab1 AS cor0 WHERE + col0 + + + 71 + - col0 IS NULL
----

query I rowsort
SELECT ALL 1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT + ( - 0 ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT MAX( ALL - 64 ) AS col2 FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-3599
SELECT MAX ( ALL - 64 ) AS col2 FROM tab2 AS cor0
----
-64

query I rowsort
SELECT ALL 13 * - 45 + + 97 AS col2 FROM tab1 AS cor0
----
-488
-488
-488

query I rowsort
SELECT + col2 + - 88 FROM tab0
----
-41
-78
11

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IS NULL AND ( - + 4 ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - col1 AND NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3604
SELECT + col0 + - - CAST( NULL AS SIGNED ), col2 DIV + CAST( - col2 AS SIGNED ) AS col2 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

skipif mysql # not compatible
query II rowsort label-3604
SELECT + col0 + - - CAST ( NULL AS INTEGER ), col2 / + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1
----
NULL
-1
NULL
-1
NULL
-1

query I rowsort
SELECT col1 * + col0 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND - 66 AND + 82 * col2 NOT BETWEEN ( col2 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3606
SELECT - COUNT( * ) * + 25 * - COUNT( * ) + - 26 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3606
SELECT - COUNT ( * ) * + 25 * - COUNT ( * ) + - 26 FROM tab0
----
199

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 68 * col2 > col0
----

query I rowsort
SELECT - 53 + - col1 AS col2 FROM tab2
----
-104
-120
-130

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) BETWEEN + + 25 / - - ( col1 ) AND col0 + 68
----

query I rowsort
SELECT ALL + col0 + 63 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
114
148
154

query I rowsort
SELECT ALL + col0 - + + 94 AS col0 FROM tab2 AS cor0
----
-19
-30
-48

query I rowsort
SELECT DISTINCT ( + col0 ) + 3 FROM tab0 AS cor0 WHERE NOT - col2 - + + 62 IS NULL
----
100
18
90

query I rowsort
SELECT + ( + 20 ) FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT - - 54 AS col0 FROM tab0 AS cor0
----
54
54
54

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3615
SELECT ALL * FROM tab0 WHERE NOT col1 <> - 33 * CAST( NULL AS SIGNED ) * col0 + - col0
----

skipif mysql # not compatible
query III rowsort label-3615
SELECT ALL * FROM tab0 WHERE NOT col1 <> - 33 * CAST ( NULL AS INTEGER ) * col0 + - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) > - col2 / + - col2
----

query I rowsort
SELECT DISTINCT 4 FROM tab1 AS cor0 WHERE + col2 * - - 40 + col1 + + + 24 * + col2 * 20 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT DISTINCT - SUM( + col1 ) col1 FROM tab2 cor0
----
-195

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3618
SELECT DISTINCT - SUM ( + col1 ) col1 FROM tab2 cor0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-3619
SELECT + 55 DIV col2 AS col1 FROM tab0 cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3619
SELECT + 55 / col2 AS col1 FROM tab0 cor0
----
0
1
5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 10 * - + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 col1 FROM tab2 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3622
SELECT ALL + - MIN( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-3622
SELECT ALL + - MIN ( DISTINCT col0 ) FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL 31 * 68 + 88 + + - col1 FROM tab2 AS cor0
----
2119
2129
2145

query I rowsort
SELECT - ( - + col1 ) FROM tab0 cor0
----
1
21
81

query II rowsort
SELECT 80, 5 AS col2 FROM tab1
----
80
5
80
5
80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3626
SELECT DISTINCT + 20 * - COUNT( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3626
SELECT DISTINCT + 20 * - COUNT ( * ) AS col2 FROM tab0 WHERE - col1 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3627
SELECT + MIN( - 95 ) FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-3627
SELECT + MIN ( - 95 ) FROM tab0
----
-95

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 NOT IN ( - + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 * - col0 / col2 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( NOT NULL NOT BETWEEN + 14 AND - col0 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3631
SELECT + 67 * - - COUNT( * ) FROM tab1
----
201

skipif mysql # not compatible
query I rowsort label-3631
SELECT + 67 * - - COUNT ( * ) FROM tab1
----
201

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 >= col1
----
46
51
23
64
77
40

query I rowsort
SELECT + ( 85 ) AS col1 FROM tab2 cor0
----
85
85
85

query I rowsort
SELECT - col2 + - col0 - - col1 + col0 * + col2 AS col0 FROM tab1 AS cor0
----
4763
4876
6076

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + MAX( - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( + col0 ) * - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT + MAX ( - col1 ) AS col0 FROM tab2 AS cor0 WHERE ( + col0 ) * - col0 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3636
SELECT - CAST( NULL AS SIGNED ) + - - 92 * + - col2 + - + col2 / + col0 FROM tab1 cor0 WHERE - col0 BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query I rowsort label-3636
SELECT - CAST ( NULL AS INTEGER ) + - - 92 * + - col2 + - + col2 / + col0 FROM tab1 cor0 WHERE - col0 BETWEEN NULL AND - col1
----

query I rowsort
SELECT ALL - 6 / + col0 FROM tab2 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT + 17 + + + COUNT( * ) FROM tab2 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-3638
SELECT + 17 + + + COUNT ( * ) FROM tab2 AS cor0
----
20

query I rowsort
SELECT DISTINCT - col0 + - + col2 AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col1 / - col1 * - 31 NOT BETWEEN - col1 AND ( NULL )
----

query I rowsort
SELECT + - 50 + + - col0 FROM tab0 AS cor0
----
-137
-147
-65

query II rowsort
SELECT + 25 AS col2, col0 FROM tab0 AS cor0 WHERE ( NOT 91 IS NULL )
----
25
15
25
87
25
97

query I rowsort
SELECT - - 81 * - 82 * col1 + 33 + - col0 * - col1 * + col2 FROM tab2 AS cor0
----
-153531
-284751
-314281

query I rowsort
SELECT col1 + - col2 AS col2 FROM tab1 AS cor0 WHERE ( NOT - col0 > ( - col0 * + + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3645
SELECT DISTINCT + COUNT( * ) * 86 FROM tab0 WHERE NOT - col2 NOT BETWEEN + - col1 * - 93 + + - ( - col0 ) / col1 * - col0 + - col2 AND + col2
----
86

skipif mysql # not compatible
query I rowsort label-3645
SELECT DISTINCT + COUNT ( * ) * 86 FROM tab0 WHERE NOT - col2 NOT BETWEEN + - col1 * - 93 + + - ( - col0 ) / col1 * - col0 + - col2 AND + col2
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3646
SELECT ALL COUNT( * ) AS col0, CAST( NULL AS SIGNED ) col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3646
SELECT ALL COUNT ( * ) AS col0, CAST ( NULL AS INTEGER ) col2 FROM tab0
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE col0 + ( ( + + 33 ) ) + + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL >= + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT DISTINCT COUNT( - ( + 62 ) ) FROM tab1 WHERE NOT + 52 NOT BETWEEN + col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3649
SELECT DISTINCT COUNT ( - ( + 62 ) ) FROM tab1 WHERE NOT + 52 NOT BETWEEN + col2 AND NULL
----
0

query I rowsort
SELECT col2 * + 27 * + - col2 FROM tab0
----
-264627
-2700
-59643

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3651
SELECT DISTINCT - AVG ( col0 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN ( ( + 80 ) ) AND + CAST( - 41 AS SIGNED )
----
NULL

skipif mysql # not compatible
query I rowsort label-3651
SELECT DISTINCT - AVG ( col0 ) FROM tab0 WHERE NOT ( NULL ) BETWEEN ( ( + 80 ) ) AND + CAST ( - 41 AS INTEGER )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3652
SELECT + CAST( + + col1 AS SIGNED ) - - CAST( NULL AS SIGNED ) * + - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3652
SELECT + CAST ( + + col1 AS INTEGER ) - - CAST ( NULL AS INTEGER ) * + - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 - + + 82 FROM tab1 AS cor0
----
-141
-150
-178

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 39 - - + col1 + col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT DISTINCT 53 FROM tab0, tab0 AS cor0
----
53

query I rowsort
SELECT ALL - ( - 61 ) AS col1 FROM tab0 AS cor0
----
61
61
61

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 NOT IN ( + 50 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 32 AS col1, col1 * - - 11 col1 FROM tab2
----
32
561
32
737
32
847

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col1 - + col1 BETWEEN + col2 + - - col2 + - - col1 AND - col0
----

query I rowsort
SELECT col1 * col0 * - 78 * + col1 FROM tab2
----
-26260650
-29597568
-9332388

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3662
SELECT + ( + - CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - + col2 + - - col2, 51 * + + 90 )
----

skipif mysql # not compatible
query I rowsort label-3662
SELECT + ( + - CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( - + col2 + - - col2, 51 * + + 90 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * - col1 BETWEEN col0 / col1 AND - + ( + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL col1, col1 + - - 14 AS col0 FROM tab0
----
1
15
21
35
81
95

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3665
SELECT ALL + MAX( ALL CAST( - col2 AS SIGNED ) ) * + MIN( DISTINCT + col1 ) col0 FROM tab1
----
-295

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3665
SELECT ALL + MAX ( ALL CAST ( - col2 AS INTEGER ) ) * + MIN ( DISTINCT + col1 ) col0 FROM tab1
----
-295

onlyif mysql # aggregate syntax: 
query II rowsort label-3666
SELECT 24 AS col1, COUNT( * ) AS col0 FROM tab0
----
24
3

skipif mysql # not compatible
query II rowsort label-3666
SELECT 24 AS col1, COUNT ( * ) AS col0 FROM tab0
----
24
3

query I rowsort
SELECT ( - 66 ) * 98 FROM tab0
----
-6468
-6468
-6468

query II rowsort
SELECT DISTINCT - + 19 AS col0, - 38 FROM tab0 AS cor0
----
-19
-38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3669
SELECT ALL + 59 * CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3669
SELECT ALL + 59 * CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * + 75 col0 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT - 5 + - col1 FROM tab0 cor0
----
-26
-6
-86

query II rowsort
SELECT col1 + + + 77 - - - col0 * - col2 AS col2, 85 AS col1 FROM tab2 cor0
----
1186
85
2714
85
4494
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3673
SELECT + ( 31 ) + + + COUNT( * ) FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-3673
SELECT + ( 31 ) + + + COUNT ( * ) FROM tab0
----
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col2 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * - 97 FROM tab0
----
-2037
-7857
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - col1 < NULL )
----

query II rowsort
SELECT col0 + col2 AS col1, col2 FROM tab1
----
144
59
147
96
159
68

query I rowsort
SELECT ALL - col0 * - 27 + 52 AS col1 FROM tab1
----
1429
2347
2509

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3679
SELECT DISTINCT + COUNT( * ) + - 92 AS col0 FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND ( + + CAST( - - col2 AS SIGNED ) * + - col1 + col1 ) )
----
-92

skipif mysql # not compatible
query I rowsort label-3679
SELECT DISTINCT + COUNT ( * ) + - 92 AS col0 FROM tab1 WHERE NOT ( NOT NULL BETWEEN ( NULL ) AND ( + + CAST ( - - col2 AS INTEGER ) * + - col1 + col1 ) )
----
-92

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 <> + col2
----

query I rowsort
SELECT ALL - - col2 * - 28 AS col0 FROM tab2 WHERE col0 * - col1 + + - 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3682
SELECT + - 47 * + ( COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-423

skipif mysql # not compatible
query I rowsort label-3682
SELECT + - 47 * + ( COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-423

query I rowsort
SELECT - 6 * - + col1 FROM tab0 AS cor0
----
126
486
6

query II rowsort
SELECT DISTINCT 97, col0 FROM tab0 AS cor0
----
97
15
97
87
97
97

query II rowsort
SELECT ALL - + col2, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT col1 + + + 96 + + + CAST( NULL AS SIGNED ) - ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3686
SELECT col1 + + + 96 + + + CAST ( NULL AS INTEGER ) - ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3687
SELECT DISTINCT - 48 col0, + 45 + COUNT( * ) + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-48
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3687
SELECT DISTINCT - 48 col0, + 45 + COUNT ( * ) + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-48
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3688
SELECT CAST( - COUNT( + - 78 ) AS SIGNED ) + COUNT( * ) - - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3688
SELECT CAST ( - COUNT ( + - 78 ) AS INTEGER ) + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + + ( + 36 ) col1 FROM tab1
----
133
133
133

query II rowsort
SELECT ALL + ( + col1 ) + - ( + + 75 ), + col0 FROM tab1
----
-28
91
-61
51
-70
85

query III rowsort
SELECT * FROM tab1 WHERE NOT - 43 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - col2 FROM tab0 AS cor0 WHERE col0 * + - 93 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT ALL + col0 * col2 + col0 FROM tab0 cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + 35 * + col0 * - + ( + - 34 ) AS col2 FROM tab1 AS cor0
----
101150
108290
60690

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3696
SELECT - 45 DIV + MIN( - 60 ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3696
SELECT - 45 / + MIN ( - 60 ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 30 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to da5de0c411a2c0f445400f1b63ea9f89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3698
SELECT CAST( - col2 AS SIGNED ) + 64 FROM tab2 AS cor0
----
24
41
6

skipif mysql # not compatible
query I rowsort label-3698
SELECT CAST ( - col2 AS INTEGER ) + 64 FROM tab2 AS cor0
----
24
41
6

onlyif mysql # DIV for integer division: 
query II rowsort label-3699
SELECT - col2 * - 61 + + col1, 99 DIV col1 AS col0 FROM tab0 AS cor0
----
2948
1
6040
99
631
4

skipif mysql # not compatible
query II rowsort label-3699
SELECT - col2 * - 61 + + col1, 99 / col1 AS col0 FROM tab0 AS cor0
----
2948
1
6040
99
631
4

query I rowsort
SELECT 22 + + col2 + + + 53 FROM tab1 AS cor0
----
134
143
171

onlyif mysql # aggregate syntax: 
query I rowsort label-3701
SELECT ALL - + COUNT( * ) col1 FROM tab1 AS cor0 WHERE + 25 * + col1 / - + col0 IS NOT NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3701
SELECT ALL - + COUNT ( * ) col1 FROM tab1 AS cor0 WHERE + 25 * + col1 / - + col0 IS NOT NULL
----
-3

query I rowsort
SELECT DISTINCT - 76 - + - col0 FROM tab1 AS cor0
----
-25
15
9

query I rowsort
SELECT ALL - col2 * 21 FROM tab2 cor0
----
-1218
-483
-840

query I rowsort
SELECT ALL 10 * - ( col0 ) AS col0 FROM tab2
----
-460
-640
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-3705
SELECT DISTINCT COUNT( * ) * - 96 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-3705
SELECT DISTINCT COUNT ( * ) * - 96 FROM tab1
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 * + + ( - 17 ) - + col2 col1, 79 AS col1 FROM tab2
----
-1044
79
-414
79
-720
79

query III rowsort
SELECT * FROM tab1 WHERE + + col2 / + col2 IS NULL
----

query I rowsort
SELECT - 43 - + ( - 26 ) AS col0 FROM tab1
----
-17
-17
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-3709
SELECT ALL ( - ( - - 93 ) ) DIV col2 AS col1 FROM tab0
----
-1
-9
0

skipif mysql # not compatible
query I rowsort label-3709
SELECT ALL ( - ( - - 93 ) ) / col2 AS col1 FROM tab0
----
-1
-9
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT SUM( + col2 ) DIV - - COUNT( * ) col2 FROM tab1
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3710
SELECT SUM ( + col2 ) / - - COUNT ( * ) col2 FROM tab1
----
74

onlyif mysql # DIV for integer division: 
query I rowsort label-3711
SELECT 37 DIV + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3711
SELECT 37 / + col2 FROM tab1
----
0
0
0

query I rowsort
SELECT + ( + col1 ) * - col2 * - col1 + + col2 * - + col1 + - col1 + 45 AS col1 FROM tab0
----
304524
4224
44

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 * + col1 * + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 27 * - col1 FROM tab1 AS cor0
----
1269
135
378

onlyif mysql # DIV for integer division: 
query I rowsort label-3715
SELECT ALL + - col1 DIV - 16 AS col0 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + - col1 / - 16 AS col0 FROM tab0 AS cor0
----
0
1
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + ( col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3717
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( ( - CAST( + - col1 AS SIGNED ) ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3717
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + ( ( - CAST ( + - col1 AS INTEGER ) ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3718
SELECT - COUNT( * ) * - COUNT( * ) AS col1, - 56 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
9
-168

skipif mysql # not compatible
query II rowsort label-3718
SELECT - COUNT ( * ) * - COUNT ( * ) AS col1, - 56 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
9
-168

query I rowsort
SELECT ALL + col0 * + + col1 + + - 10 AS col0 FROM tab0 AS cor0
----
1205
1817
87

onlyif mysql # aggregate syntax: 
query I rowsort label-3720
SELECT DISTINCT - SUM( ALL 45 ) AS col2 FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-3720
SELECT DISTINCT - SUM ( ALL 45 ) AS col2 FROM tab1
----
-135

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3721
SELECT ALL CAST( NULL AS DECIMAL ), + 15 AS col2 FROM tab0
----
NULL
15
NULL
15
NULL
15

skipif mysql # not compatible
query II rowsort label-3721
SELECT ALL CAST ( NULL AS REAL ), + 15 AS col2 FROM tab0
----
NULL
15
NULL
15
NULL
15

onlyif mysql # aggregate syntax: 
query II rowsort label-3722
SELECT + 68, COUNT( ALL + 64 ) AS col1 FROM tab1
----
68
3

skipif mysql # not compatible
query II rowsort label-3722
SELECT + 68, COUNT ( ALL + 64 ) AS col1 FROM tab1
----
68
3

query I rowsort
SELECT DISTINCT ( - col0 ) + ( - 91 ) AS col1 FROM tab2
----
-137
-155
-166

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT + 73 + COUNT( * ) FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + 73 + COUNT ( * ) FROM tab2
----
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL >= - - 5 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3726
SELECT DISTINCT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= + col1 + - 46 + 33
----
0

skipif mysql # not compatible
query I rowsort label-3726
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= + col1 + - 46 + 33
----
0

query I rowsort
SELECT ALL ( - ( - 74 ) ) + col2 * + col0 + col1 FROM tab1
----
4984
5094
6309

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab2 AS cor1 ON NOT ( NULL ) IS NULL
----

query I rowsort
SELECT + col2 * col2 * - 42 * + col2 - + col1 + - + col0 * + col1 FROM tab2
----
-2693005
-513411
-8199796

query I rowsort
SELECT ALL + col2 - + 95 AS col1 FROM tab0 cor0
----
-48
-85
4

query I rowsort
SELECT ALL + 42 + - + 7 * + - col0 FROM tab1 AS cor0
----
399
637
679

query I rowsort
SELECT ALL - 73 FROM tab0 AS cor0 WHERE col2 - 66 BETWEEN 61 + - 68 * - col1 * - col1 + - col1 - + col2 AND - col0 + + 98
----
-73
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-3733
SELECT DISTINCT - COUNT( * ) * + ( - MIN( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE 57 IS NOT NULL
----
138

skipif mysql # not compatible
query I rowsort label-3733
SELECT DISTINCT - COUNT ( * ) * + ( - MIN ( col0 ) ) AS col2 FROM tab2 AS cor0 WHERE 57 IS NOT NULL
----
138

query I rowsort
SELECT ALL + col2 - - 12 AS col2 FROM tab2 AS cor0
----
35
52
70

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= col1 / + - col0
----

query I rowsort
SELECT col0 * - col2 + + col1 AS col0 FROM tab0 cor0
----
-624
-849
-9602

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3737
SELECT ALL CAST( - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-3737
SELECT ALL CAST ( - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3738
SELECT - COUNT( 84 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3738
SELECT - COUNT ( 84 ) FROM tab2
----
-3

query I rowsort
SELECT - - col1 + + col1 FROM tab1 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col2, - col1 FROM tab2
----
51
-51
67
-67
77
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-3741
SELECT + 1 * MIN( ALL col0 ) AS col0, + 60 FROM tab1
----
51
60

skipif mysql # not compatible
query II rowsort label-3741
SELECT + 1 * MIN ( ALL col0 ) AS col0, + 60 FROM tab1
----
51
60

query III rowsort
SELECT * FROM tab2 WHERE NOT + 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3743
SELECT DISTINCT - COUNT( col2 ) + 69 + - + 79 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
-10

skipif mysql # not compatible
query I rowsort label-3743
SELECT DISTINCT - COUNT ( col2 ) + 69 + - + 79 AS col2 FROM tab0 WHERE NOT NULL IS NULL
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3744
SELECT - SUM( - col2 ) * 47 AS col0 FROM tab0 AS cor0
----
7332

skipif mysql # not compatible
query I rowsort label-3744
SELECT - SUM ( - col2 ) * 47 AS col0 FROM tab0 AS cor0
----
7332

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3746
SELECT ALL - col1 DIV - 89 * - 87 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3746
SELECT ALL - col1 / - 89 * - 87 AS col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3747
SELECT ALL COUNT( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3747
SELECT ALL COUNT ( DISTINCT col2 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3748
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) <> + col2
----

skipif mysql # not compatible
query I rowsort label-3748
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) <> + col2
----

query I rowsort
SELECT DISTINCT + col1 * col1 * 51 FROM tab1 AS cor0
----
112659
1275
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-3750
SELECT + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + - col2 IS NULL OR - 32 = NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3750
SELECT + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT + - col2 IS NULL OR - 32 = NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT DISTINCT + COUNT( * ) + + 91 AS col1 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT + COUNT ( * ) + + 91 AS col1 FROM tab1
----
94

query I rowsort
SELECT - ( - col2 ) * - col1 - col1 AS col0 FROM tab2
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT ALL COUNT( * ) + MAX( + col1 ) AS col2 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3753
SELECT ALL COUNT ( * ) + MAX ( + col1 ) AS col2 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-3754
SELECT + SUM( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-3754
SELECT + SUM ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT + col0 - + + 64 + 3 AS col0 FROM tab0 AS cor0
----
-46
26
36

query I rowsort
SELECT DISTINCT + ( + - 24 ) FROM tab1
----
-24

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3757
SELECT ALL 84 + - 82 + - col0 + + ( + - col2 ) * + CAST( NULL AS DECIMAL ) AS col2, + col2 * col1 FROM tab2
----
NULL
1173
NULL
3080
NULL
3886

skipif mysql # not compatible
query II rowsort label-3757
SELECT ALL 84 + - 82 + - col0 + + ( + - col2 ) * + CAST ( NULL AS REAL ) AS col2, + col2 * col1 FROM tab2
----
NULL
1173
NULL
3080
NULL
3886

onlyif mysql # DIV for integer division: 
query I rowsort label-3758
SELECT 16 DIV col0 + - col2 AS col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3758
SELECT 16 / col0 + - col2 AS col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-3759
SELECT ALL + - ( MAX( ALL - col1 ) ) FROM tab1 WHERE NOT - + ( col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3759
SELECT ALL + - ( MAX ( ALL - col1 ) ) FROM tab1 WHERE NOT - + ( col1 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3760
SELECT + MAX( + + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3760
SELECT + MAX ( + + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col0, - col0 AS col1 FROM tab0 AS cor0
----
15
-15
87
-87
97
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - MAX( + + col2 ) FROM tab0 AS cor0 WHERE + col1 - - + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - MAX ( + + col2 ) FROM tab0 AS cor0 WHERE + col1 - - + col2 IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3763
SELECT - CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3763
SELECT - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT ALL - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - 31 + - 1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3765
SELECT ALL - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - 31 + - 1 IS NULL
----
0

query I rowsort
SELECT col2 * 43 * + col0 FROM tab2
----
110080
187050
45494

query I rowsort
SELECT 60 * col1 FROM tab2
----
3060
4020
4620

query I rowsort
SELECT DISTINCT - ( + 57 ) * + col2 FROM tab0
----
-2679
-5643
-570

onlyif mysql # aggregate syntax: 
query I rowsort label-3769
SELECT DISTINCT + COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3769
SELECT DISTINCT + COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + 68 col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3770
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + 68 col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3771
SELECT - COUNT( * ), COUNT( * ) * + 86 * - COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-6966

skipif mysql # not compatible
query II rowsort label-3771
SELECT - COUNT ( * ), COUNT ( * ) * + 86 * - COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-6966

query II rowsort
SELECT col1 AS col0, col2 FROM tab2
----
51
23
67
58
77
40

onlyif mysql # aggregate syntax: 
query I rowsort label-3773
SELECT ( - COUNT( * ) ) * - + ( + - 17 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 5
----
0

skipif mysql # not compatible
query I rowsort label-3773
SELECT ( - COUNT ( * ) ) * - + ( + - 17 ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 5
----
0

query I rowsort
SELECT ALL - 87 * col1 * - col1 + + + 77 + - 50 FROM tab1 AS cor0
----
17079
192210
2202

query I rowsort
SELECT ALL - - 23 * + col2 * - col0 * - col2 + col2 * + 48 + - col1 * col1 FROM tab1 cor0
----
10814780
6808162
9679087

onlyif mysql # aggregate syntax: 
query I rowsort label-3776
SELECT + MIN( ( col1 ) ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-3776
SELECT + MIN ( ( col1 ) ) FROM tab2 cor0
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3777
SELECT DISTINCT col0 DIV 17 AS col0 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT col0 / 17 AS col0 FROM tab2 AS cor0
----
2
3
4

query I rowsort
SELECT + col1 * - 66 FROM tab2 AS cor0
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-3779
SELECT ALL + ( - MAX( - 43 ) ) AS col0 FROM tab2 cor0
----
43

skipif mysql # not compatible
query I rowsort label-3779
SELECT ALL + ( - MAX ( - 43 ) ) AS col0 FROM tab2 cor0
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-3780
SELECT COUNT( - - ( + 83 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3780
SELECT COUNT ( - - ( + 83 ) ) FROM tab2
----
3

query I rowsort
SELECT DISTINCT 21 + - + col1 * col2 AS col0 FROM tab2
----
-1152
-3059
-3865

query I rowsort
SELECT + col2 + 69 * col2 AS col1 FROM tab0
----
3290
6930
700

onlyif mysql # aggregate syntax: 
query I rowsort label-3783
SELECT ALL 99 * + 96 + + COUNT( - col0 ) AS col2 FROM tab2
----
9507

skipif mysql # not compatible
query I rowsort label-3783
SELECT ALL 99 * + 96 + + COUNT ( - col0 ) AS col2 FROM tab2
----
9507

query I rowsort
SELECT col1 + - 65 * + col2 FROM tab2
----
-1444
-2523
-3703

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3785
SELECT DISTINCT CAST( NULL AS SIGNED ) + 22 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3785
SELECT DISTINCT CAST ( NULL AS INTEGER ) + 22 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT 59 + 16 AS col0 FROM tab0
----
75
75
75

query I rowsort
SELECT ALL col0 * + 52 + - col0 AS col2 FROM tab0
----
4437
4947
765

query III rowsort
SELECT * FROM tab2 WHERE + + col1 = 30 * + 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 + + col0 col1, + 13 FROM tab2
----
17
13
23
13
24
13

onlyif mysql # aggregate syntax: 
query I rowsort label-3790
SELECT ALL 8 + + + MAX( - + 83 ) AS col0 FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-3790
SELECT ALL 8 + + + MAX ( - + 83 ) AS col0 FROM tab0
----
-75

query II rowsort
SELECT DISTINCT - - col2, + 40 AS col0 FROM tab0 AS cor0
----
10
40
47
40
99
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3792
SELECT col1 col2 FROM tab2 AS cor0 WHERE - col0 - + + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3792
SELECT col1 col2 FROM tab2 AS cor0 WHERE - col0 - + + CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3793
SELECT ALL + - col2 * col2 DIV col0 FROM tab2 cor0
----
-11
-25
-44

skipif mysql # not compatible
query I rowsort label-3793
SELECT ALL + - col2 * col2 / col0 FROM tab2 cor0
----
-11
-25
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3794
SELECT + col1 FROM tab0 AS cor0 WHERE - col0 * + - col1 * col1 * + col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3794
SELECT + col1 FROM tab0 AS cor0 WHERE - col0 * + - col1 * col1 * + col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT - 36 AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT DISTINCT + - COUNT( * ) + - - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

skipif mysql # not compatible
query I rowsort label-3796
SELECT DISTINCT + - COUNT ( * ) + - - 70 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
61

onlyif mysql # aggregate syntax: 
query II rowsort label-3797
SELECT DISTINCT + SUM( ALL 26 ) AS col0, COUNT( * ) * - + 66 FROM tab1
----
78
-198

skipif mysql # not compatible
query II rowsort label-3797
SELECT DISTINCT + SUM ( ALL 26 ) AS col0, COUNT ( * ) * - + 66 FROM tab1
----
78
-198

query I rowsort
SELECT ALL - + 86 FROM tab2 cor0
----
-86
-86
-86

query I rowsort
SELECT ( - - col0 ) * col0 AS col1 FROM tab2 AS cor0
----
2116
4096
5625

query I rowsort
SELECT DISTINCT + + col1 * col1 * + - ( - col1 ) AS col2 FROM tab2 AS cor0
----
132651
300763
456533

onlyif mysql # aggregate syntax: 
query I rowsort label-3801
SELECT ALL + SUM( DISTINCT - + 14 ) col2 FROM tab1
----
-14

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3801
SELECT ALL + SUM ( DISTINCT - + 14 ) col2 FROM tab1
----
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-3802
SELECT ALL - COUNT( * ) col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3802
SELECT ALL - COUNT ( * ) col0 FROM tab0 WHERE NOT + col2 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 9 col2 FROM tab0
----
9
9
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 / + - col0 + 62 + 61 * + 27 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + col2, col0 * - col1 AS col0 FROM tab1 AS cor0
----
59
-425
68
-4277
96
-714

query II rowsort
SELECT DISTINCT + 96 AS col0, - 70 AS col1 FROM tab2 AS cor0
----
96
-70

query I rowsort
SELECT - 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 52 IS NULL
----

query I rowsort
SELECT - col0 * - col0 + + + col0 AS col1 FROM tab2 AS cor0
----
2162
4160
5700

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3810
SELECT col1 + + + col2 + - CAST( + + col1 AS SIGNED ) FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3810
SELECT col1 + + + col2 + - CAST ( + + col1 AS INTEGER ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + - ( + col0 ) + + col1 - - - col0 AS col0 FROM tab0 AS cor0
----
-153
-193
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT ( + - COUNT( * ) ) * - MIN( 80 ) AS col1 FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-3812
SELECT ( + - COUNT ( * ) ) * - MIN ( 80 ) AS col1 FROM tab2 AS cor0
----
240

query III rowsort
SELECT * FROM tab0 WHERE col2 NOT BETWEEN col2 AND - col2 + - 58 * col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT + ( + col2 ) AS col0, ( + col1 ) AS col2 FROM tab2 WHERE NULL NOT BETWEEN + 10 AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 - + 30 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col0 - 72 FROM tab0 WHERE NOT col1 NOT BETWEEN NULL AND 50 * col2
----

query I rowsort
SELECT DISTINCT - 70 * - col2 * - col2 * + + col0 AS col0 FROM tab2
----
-1703380
-17661000
-7168000

query I rowsort
SELECT + 39 * + col1 FROM tab2
----
1989
2613
3003

query I rowsort
SELECT DISTINCT - 65 + 82 AS col2 FROM tab0 AS cor0
----
17

query I rowsort
SELECT ALL - col1 + - - 7 FROM tab0 AS cor0
----
-14
-74
6

query I rowsort
SELECT DISTINCT - 97 - 36 FROM tab1 AS cor0
----
-133

onlyif mysql # aggregate syntax: 
query I rowsort label-3822
SELECT DISTINCT - 27 - - - COUNT( * ) + + SUM( ALL 36 ) AS col1 FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-3822
SELECT DISTINCT - 27 - - - COUNT ( * ) + + SUM ( ALL 36 ) AS col1 FROM tab1 AS cor0
----
78

query I rowsort
SELECT ALL 25 * + + col0 * - col0 AS col0 FROM tab1
----
-180625
-207025
-65025

onlyif mysql # DIV for integer division: 
query II rowsort label-3824
SELECT - col1 AS col0, col2 DIV + 12 - + + 59 - col1 FROM tab0 cor0
----
-1
-52
-21
-80
-81
-137

skipif mysql # not compatible
query II rowsort label-3824
SELECT - col1 AS col0, col2 / + 12 - + + 59 - col1 FROM tab0 cor0
----
-1
-52
-21
-80
-81
-137

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3825
SELECT - col0, ( + - CAST( NULL AS SIGNED ) ) + ( + 27 ) AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-3825
SELECT - col0, ( + - CAST ( NULL AS INTEGER ) ) + ( + 27 ) AS col0 FROM tab0 AS cor0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT DISTINCT - + ( + + ( + + col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3827
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( col1 AS SIGNED ) * + 27 * + - ( + - col2 ) <= + col1
----

skipif mysql # not compatible
query III rowsort label-3827
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( col1 AS INTEGER ) * + 27 * + - ( + - col2 ) <= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3828
SELECT DISTINCT + - MAX( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3828
SELECT DISTINCT + - MAX ( DISTINCT - col1 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT col0 * + - 10 AS col0 FROM tab2 AS cor0
----
-460
-640
-750

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col0 * col0 FROM tab2 AS cor0
----
23
2116
40
4096
58
5625

onlyif mysql # DIV for integer division: 
query II rowsort label-3831
SELECT ALL + 79 AS col1, col1 DIV + col0 AS col2 FROM tab2 AS cor0
----
79
0
79
1
79
1

skipif mysql # not compatible
query II rowsort label-3831
SELECT ALL + 79 AS col1, col1 / + col0 AS col2 FROM tab2 AS cor0
----
79
0
79
1
79
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col0 FROM tab1 AS cor0 WHERE NOT ( col1 - + + col1 * - 18 BETWEEN + 89 * col2 + col0 - - - col1 AND + 62 )
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT DISTINCT - COUNT( ALL - + 95 ) * - 5 * + - 36 AS col2 FROM tab1 AS cor0
----
-540

skipif mysql # not compatible
query I rowsort label-3833
SELECT DISTINCT - COUNT ( ALL - + 95 ) * - 5 * + - 36 AS col2 FROM tab1 AS cor0
----
-540

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > col0 + col2 * + col1 + + col2 + + + col0 * - 59
----

query I rowsort
SELECT ALL + col2 * 70 AS col2 FROM tab2 WHERE - + col2 NOT BETWEEN - 55 AND NULL
----
4060

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3836
SELECT COUNT( * ) * + COUNT( + - col0 ) AS col1, - CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
9
NULL

skipif mysql # not compatible
query II rowsort label-3836
SELECT COUNT ( * ) * + COUNT ( + - col0 ) AS col1, - CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT + + COUNT( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3837
SELECT + + COUNT ( * ) FROM tab1 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3838
SELECT ALL MIN( - - 63 ) AS col0 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-3838
SELECT ALL MIN ( - - 63 ) AS col0 FROM tab1
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3839
SELECT col2 DIV col1 + col1 FROM tab1 AS cor0
----
16
20
48

skipif mysql # not compatible
query I rowsort label-3839
SELECT col2 / col1 + col1 FROM tab1 AS cor0
----
16
20
48

onlyif mysql # aggregate syntax: 
query I rowsort label-3840
SELECT MAX( ALL + + 34 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
34

skipif mysql # not compatible
query I rowsort label-3840
SELECT MAX ( ALL + + 34 ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT DISTINCT - MAX( ALL + - 35 ) AS col2 FROM tab1 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-3841
SELECT DISTINCT - MAX ( ALL + - 35 ) AS col2 FROM tab1 AS cor0
----
35

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 2 BETWEEN - + col0 + 31 AND NULL
----

query II rowsort
SELECT DISTINCT 44 + col0 + 13, - 77 AS col0 FROM tab2 AS cor0
----
103
-77
121
-77
132
-77

query I rowsort
SELECT - 17 + - col0 FROM tab1
----
-102
-108
-68

query I rowsort
SELECT + 49 + - col0 AS col1 FROM tab2
----
-15
-26
3

query III rowsort
SELECT * FROM tab2 WHERE + - col2 / - - ( + col0 ) BETWEEN - + col2 AND 56
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 0 IS NULL
----

query I rowsort
SELECT col2 + 87 FROM tab1
----
146
155
183

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT BETWEEN col1 + + col2 AND col2
----

query II rowsort
SELECT ALL + ( + 30 ) * + 9 + - - col0 AS col0, - 44 AS col1 FROM tab2
----
316
-44
334
-44
345
-44

query I rowsort
SELECT DISTINCT + 35 + - 66 FROM tab2
----
-31

query I rowsort
SELECT ALL + col1 - + col0 + col0 AS col1 FROM tab2 WHERE col1 / + - col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3853
SELECT DISTINCT CAST( NULL AS SIGNED ) * MAX( ALL - + col1 ) * + CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3853
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MAX ( ALL - + col1 ) * + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3854
SELECT ALL + col0 DIV - 50 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3854
SELECT ALL + col0 / - 50 AS col1 FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3855
SELECT SUM( 12 ) AS col0 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-3855
SELECT SUM ( 12 ) AS col0 FROM tab0
----
36

query II rowsort
SELECT ALL 87, + 9 AS col0 FROM tab0 AS cor0
----
87
9
87
9
87
9

query I rowsort
SELECT DISTINCT + - 96 * col0 AS col0 FROM tab0 AS cor0
----
-1440
-8352
-9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
10
47
99

query I rowsort
SELECT DISTINCT 32 * - col0 - + + col0 AS col2 FROM tab0 AS cor0
----
-2871
-3201
-495

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col0 <= col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3861
SELECT ALL + 53 DIV + COUNT( * ) FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-3861
SELECT ALL + 53 / + COUNT ( * ) FROM tab1
----
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 col1 FROM tab1
----
86
86
86

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3863
SELECT DISTINCT - col1 AS col2, col1 * + - col2 * - col1 + - - col2 - CAST( + 95 AS SIGNED ) * - 52 * - col0 * 65 AS col0 FROM tab1
----
-14
-16357188
-47
-29069820
-5
-27291966

skipif mysql # not compatible
query II rowsort label-3863
SELECT DISTINCT - col1 AS col2, col1 * + - col2 * - col1 + - - col2 - CAST ( + 95 AS INTEGER ) * - 52 * - col0 * 65 AS col0 FROM tab1
----
-14
-16357188
-47
-29069820
-5
-27291966

onlyif mysql # DIV for integer division: 
query II rowsort label-3864
SELECT ALL - col0 AS col1, col2 DIV + col0 AS col2 FROM tab0
----
-15
3
-87
0
-97
1

skipif mysql # not compatible
query II rowsort label-3864
SELECT ALL - col0 AS col1, col2 / + col0 AS col2 FROM tab0
----
-15
3
-87
0
-97
1

query I rowsort
SELECT DISTINCT - col0 + + - 51 * + - 31 AS col1 FROM tab2
----
1506
1517
1535

query II rowsort
SELECT ALL col2 AS col0, - 57 * col1 AS col2 FROM tab1
----
59
-285
68
-2679
96
-798

onlyif mysql # DIV for integer division: 
query II rowsort label-3867
SELECT DISTINCT - ( + 69 ) + - - ( + + 74 ) AS col2, - 39 DIV - + 32 AS col0 FROM tab2
----
5
1

skipif mysql # not compatible
query II rowsort label-3867
SELECT DISTINCT - ( + 69 ) + - - ( + + 74 ) AS col2, - 39 / - + 32 AS col0 FROM tab2
----
5
1

query II rowsort
SELECT + col2 AS col0, - ( - col1 ) AS col2 FROM tab2 cor0
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > - ( - - 11 ) + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3870
SELECT col2 DIV - col0 + + - 7 FROM tab2
----
-7
-7
-7

skipif mysql # not compatible
query I rowsort label-3870
SELECT col2 / - col0 + + - 7 FROM tab2
----
-7
-7
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3871
SELECT ALL MIN( ALL col1 ) DIV - - 87 + - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3871
SELECT ALL MIN ( ALL col1 ) / - - 87 + - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3872
SELECT DISTINCT - COUNT( * ) + - - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3872
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) FROM tab2 cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( + 90 ) col1 FROM tab1 AS cor0
----
149
158
186

onlyif mysql # DIV for integer division: 
query I rowsort label-3874
SELECT col1 + - col1 DIV + col0 AS col1 FROM tab0 AS cor0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-3874
SELECT col1 + - col1 / + col0 AS col1 FROM tab0 AS cor0
----
1
21
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 8 + - - ( + + 72 ) col2 FROM tab1 cor0
----
80
80
80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3876
SELECT COUNT( DISTINCT col0 ) + + + COUNT( * ) - - - 59 * - CAST( NULL AS SIGNED ) / + 33 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3876
SELECT COUNT ( DISTINCT col0 ) + + + COUNT ( * ) - - - 59 * - CAST ( NULL AS INTEGER ) / + 33 AS col0 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * ( - 52 ) - 51 + + col2 * + 3 col2 FROM tab0 AS cor0
----
1071
298
4302

query III rowsort
SELECT * FROM tab0 cor0 WHERE col0 = 13
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3879
SELECT ALL - CAST( col2 AS SIGNED ) AS col1, + 96 col0 FROM tab2 AS cor0
----
-23
96
-40
96
-58
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3879
SELECT ALL - CAST ( col2 AS INTEGER ) AS col1, + 96 col0 FROM tab2 AS cor0
----
-23
96
-40
96
-58
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3880
SELECT DISTINCT + ( + SUM( - col0 ) ) - + COUNT( * ) * + ( + 79 ) * 37 * COUNT( * ) * + 9 + - ( - 5 ) FROM tab0 AS cor0
----
-236957

skipif mysql # not compatible
query I rowsort label-3880
SELECT DISTINCT + ( + SUM ( - col0 ) ) - + COUNT ( * ) * + ( + 79 ) * 37 * COUNT ( * ) * + 9 + - ( - 5 ) FROM tab0 AS cor0
----
-236957

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL <> + 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT MAX( + + col2 ) FROM tab1 WHERE + col0 NOT IN ( col0 + col2, - 2 + col1, - 81 * + col2, 93 )
----
96

skipif mysql # not compatible
query I rowsort label-3882
SELECT MAX ( + + col2 ) FROM tab1 WHERE + col0 NOT IN ( col0 + col2, - 2 + col1, - 81 * + col2, 93 )
----
96

query III rowsort
SELECT * FROM tab2 WHERE + col2 + - - 51 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT 10 - - ( - 9 ) + - COUNT( * ) FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3884
SELECT 10 - - ( - 9 ) + - COUNT ( * ) FROM tab1
----
-2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3885
SELECT DISTINCT - CAST( COUNT( * ) AS SIGNED ) + 16 AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-3885
SELECT DISTINCT - CAST ( COUNT ( * ) AS INTEGER ) + 16 AS col2 FROM tab0
----
13

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + - col2 col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3888
SELECT ALL + SUM( - 14 ) col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3888
SELECT ALL + SUM ( - 14 ) col2 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3889
SELECT ALL + CAST( col0 AS SIGNED ) AS col0 FROM tab2 cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3889
SELECT ALL + CAST ( col0 AS INTEGER ) AS col0 FROM tab2 cor0
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3890
SELECT * FROM tab0 WHERE NOT - + CAST( - col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-3890
SELECT * FROM tab0 WHERE NOT - + CAST ( - col1 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3891
SELECT + COUNT( - col1 ) * - + 24 col0 FROM tab1
----
-72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3891
SELECT + COUNT ( - col1 ) * - + 24 col0 FROM tab1
----
-72

query II rowsort
SELECT + col2 * - - col1, col1 * col2 FROM tab0 AS cor0
----
210
210
3807
3807
99
99

query I rowsort
SELECT ALL - - col1 AS col0 FROM tab1 AS cor0 WHERE + col1 + col1 IS NULL
----

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT ALL - 78 * col2 FROM tab2 AS cor0
----
-1794
-3120
-4524

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( 2 ) * - col2 + + col0 * + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT + COUNT( DISTINCT + - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-3898
SELECT + COUNT ( DISTINCT + - col1 ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 col2 FROM tab2 WHERE NOT + 29 IS NOT NULL
----

query I rowsort
SELECT col0 + + col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
104
133
69

query I rowsort
SELECT ( 57 ) AS col1 FROM tab0
----
57
57
57

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - col2 * + + 66 * + col2 IS NOT NULL
----

query I rowsort
SELECT col0 * - ( + + col1 ) + - 74 + - + col2 FROM tab1
----
-4419
-558
-884

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + + ( - + 42 ) AS col1, + col1 col0 FROM tab0
----
-27
81
45
21
55
1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( NULL ) NOT BETWEEN NULL AND - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3906
SELECT ALL - + 18 + - COUNT( * ) + - SUM( ALL + col1 ) FROM tab1 cor0
----
-87

skipif mysql # not compatible
query I rowsort label-3906
SELECT ALL - + 18 + - COUNT ( * ) + - SUM ( ALL + col1 ) FROM tab1 cor0
----
-87

query I rowsort
SELECT - - col2 * - 58 + col2 + - col1 * + - col2 * - 73 FROM tab0 AS cor0
----
-12870
-15900
-280590

query I rowsort
SELECT DISTINCT - 77 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-77

query I rowsort
SELECT DISTINCT col1 + + 39 AS col1 FROM tab0
----
120
40
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3910
SELECT COUNT( * ) - COUNT( * ) AS col1, + COUNT( DISTINCT col1 ) FROM tab1 AS cor0
----
0
3

skipif mysql # not compatible
query II rowsort label-3910
SELECT COUNT ( * ) - COUNT ( * ) AS col1, + COUNT ( DISTINCT col1 ) FROM tab1 AS cor0
----
0
3

query I rowsort
SELECT ALL - col2 + - + ( col1 ) FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT + col1 - 98 + - + col0 AS col1 FROM tab0 cor0
----
-164
-194
-32

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3913
SELECT CAST( NULL AS DECIMAL ) * 65 - - + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3913
SELECT CAST ( NULL AS REAL ) * 65 - - + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT - - MIN( DISTINCT + col2 ) * + COUNT( * ) + + - 41 + - 65 AS col2 FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3914
SELECT - - MIN ( DISTINCT + col2 ) * + COUNT ( * ) + + - 41 + - 65 AS col2 FROM tab1 AS cor0
----
71

query I rowsort
SELECT DISTINCT 36 * 75 * + col1 FROM tab1
----
126900
13500
37800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3916
SELECT ALL COUNT( ALL - + col2 ) * + SUM( DISTINCT - col2 ) * + + CAST( NULL AS SIGNED ), 92 DIV - 84 AS col2 FROM tab0
----
NULL
-1

skipif mysql # not compatible
query II rowsort label-3916
SELECT ALL COUNT ( ALL - + col2 ) * + SUM ( DISTINCT - col2 ) * + + CAST ( NULL AS INTEGER ), 92 / - 84 AS col2 FROM tab0
----
NULL
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-3917
SELECT - 37 + + + 21 + + - COUNT( * ) col1 FROM tab0
----
-19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3917
SELECT - 37 + + + 21 + + - COUNT ( * ) col1 FROM tab0
----
-19

query II rowsort
SELECT + col0 * col1, + col2 * - col2 AS col1 FROM tab1
----
425
-3481
4277
-4624
714
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT DISTINCT - MIN( DISTINCT - ( - - col0 ) ) AS col0 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3919
SELECT DISTINCT - MIN ( DISTINCT - ( - - col0 ) ) AS col0 FROM tab2
----
75

query I rowsort
SELECT ( - 32 ) AS col1 FROM tab2
----
-32
-32
-32

query II rowsort
SELECT ALL - col0, col0 + col1 AS col1 FROM tab0
----
-15
96
-87
108
-97
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3922
SELECT - CAST( NULL AS DECIMAL ) * ( 36 ) + + CAST( - COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3922
SELECT - CAST ( NULL AS REAL ) * ( 36 ) + + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3923
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - + - CAST( - + col2 AS SIGNED ) + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3923
SELECT * FROM tab1 AS cor0 WHERE NOT col0 - + - CAST ( - + col2 AS INTEGER ) + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL col0 * 80 AS col1 FROM tab0 AS cor0
----
1200
6960
7760

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3925
SELECT - MIN( ALL - 4 ) * + CAST( NULL AS SIGNED ) + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3925
SELECT - MIN ( ALL - 4 ) * + CAST ( NULL AS INTEGER ) + COUNT ( * ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 AS col2 FROM tab2 AS cor0 WHERE NOT col0 NOT BETWEEN col2 + 0 AND col2 + - col2 * 36 + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3927
SELECT col2 DIV - 80 + col2 * + col1 AS col2 FROM tab0
----
210
3807
98

skipif mysql # not compatible
query I rowsort label-3927
SELECT col2 / - 80 + col2 * + col1 AS col2 FROM tab0
----
210
3807
98

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE + ( - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3929
SELECT DISTINCT col0 + + 4 DIV - col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT col0 + + 4 / - col0 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL col0 + - - col1 + - 58 AS col1 FROM tab2
----
39
83
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3931
SELECT ALL + CAST( - 14 AS SIGNED ) + + + 44 FROM tab1
----
30
30
30

skipif mysql # not compatible
query I rowsort label-3931
SELECT ALL + CAST ( - 14 AS INTEGER ) + + + 44 FROM tab1
----
30
30
30

query II rowsort
SELECT ALL - 93 * 77, col2 FROM tab0
----
-7161
10
-7161
47
-7161
99

query I rowsort
SELECT DISTINCT 14 + + ( - + col2 ) * + col1 * col1 AS col2 FROM tab1
----
-1461
-150198
-18802

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT BETWEEN - col1 AND + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3935
SELECT COUNT( * ) - 55 col2 FROM tab2, tab2 cor0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3935
SELECT COUNT ( * ) - 55 col2 FROM tab2, tab2 cor0
----
-46

query I rowsort
SELECT ALL - ( col2 ) * col2 - col0 FROM tab0 AS cor0
----
-187
-2224
-9898

onlyif mysql # DIV for integer division: 
query I rowsort label-3937
SELECT DISTINCT - col0 + col0 DIV col0 FROM tab0 AS cor0
----
-14
-86
-96

skipif mysql # not compatible
query I rowsort label-3937
SELECT DISTINCT - col0 + col0 / col0 FROM tab0 AS cor0
----
-14
-86
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3938
SELECT DISTINCT - + 0 - MIN( ALL + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3938
SELECT DISTINCT - + 0 - MIN ( ALL + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 84 - - ( 86 ) FROM tab2 AS cor0
----
170
170
170

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3940
SELECT + - CAST( 73 AS SIGNED ) FROM tab2 AS cor0
----
-73
-73
-73

skipif mysql # not compatible
query I rowsort label-3940
SELECT + - CAST ( 73 AS INTEGER ) FROM tab2 AS cor0
----
-73
-73
-73

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col0 <= - col1
----

query II rowsort
SELECT - col0, - col2 + col2 AS col2 FROM tab1 AS cor0
----
-51
0
-85
0
-91
0

query I rowsort
SELECT DISTINCT - col0 - - col0 / + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 26 * - + col0, - col0 - col1 / - - 32 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 8 - - col0 col1 FROM tab2 AS cor0
----
54
72
83

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN - + 88 AND NULL
----

query I rowsort
SELECT + 54 * - - 24 FROM tab0
----
1296
1296
1296

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + 24 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3948
SELECT DISTINCT COUNT( * ) DIV + - 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3948
SELECT DISTINCT COUNT ( * ) / + - 69 FROM tab1
----
0

query I rowsort
SELECT + 85 * - 48 AS col1 FROM tab1
----
-4080
-4080
-4080

onlyif mysql # aggregate syntax: 
query I rowsort label-3950
SELECT DISTINCT ( + MIN( ALL + - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-3950
SELECT DISTINCT ( + MIN ( ALL + - col2 ) ) FROM tab1
----
-96

query II rowsort
SELECT + col2 AS col0, + 85 AS col2 FROM tab1
----
59
85
68
85
96
85

query I rowsort
SELECT - ( 81 ) FROM tab1
----
-81
-81
-81

onlyif mysql # DIV for integer division: 
query II rowsort label-3953
SELECT DISTINCT - 51, + col1 DIV + + col1 AS col1 FROM tab2
----
-51
1

skipif mysql # not compatible
query II rowsort label-3953
SELECT DISTINCT - 51, + col1 / + + col1 AS col1 FROM tab2
----
-51
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3954
SELECT DISTINCT - COUNT( - ( - 85 ) ) col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3954
SELECT DISTINCT - COUNT ( - ( - 85 ) ) col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT col2 * - 6, + col1 FROM tab2 AS cor0
----
-138
51
-240
77
-348
67

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN NULL AND + col2 + + 53 * + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 30 col0 FROM tab1 cor0
----
30

query I rowsort
SELECT DISTINCT - + 93 AS col2 FROM tab1 cor0
----
-93

query I rowsort
SELECT DISTINCT - - 61 AS col2 FROM tab0 AS cor0
----
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3960
SELECT ALL + - COUNT( * ) FROM tab0 AS cor0 WHERE + 78 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3960
SELECT ALL + - COUNT ( * ) FROM tab0 AS cor0 WHERE + 78 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT MIN( ALL + 6 ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-3961
SELECT MIN ( ALL + 6 ) FROM tab0 AS cor0
----
6

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - col0 + + - ( + - col2 ) = + - 9
----

query I rowsort
SELECT DISTINCT - col1 + - 60 * - - col2 FROM tab1
----
-3545
-4127
-5774

onlyif mysql # DIV for integer division: 
query I rowsort label-3964
SELECT - col0 DIV - + 99 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3964
SELECT - col0 / - + 99 FROM tab2
----
0
0
0

query I rowsort
SELECT + 56 + - col0 AS col2 FROM tab2
----
-19
-8
10

query II rowsort
SELECT DISTINCT + col2 + + - col1 * - - col2, col1 + - + col1 AS col0 FROM tab2
----
-1150
0
-3040
0
-3828
0

query I rowsort
SELECT DISTINCT + 97 + col0 AS col1 FROM tab2
----
143
161
172

query I rowsort
SELECT col0 + + col2 + + - 42 AS col1 FROM tab2
----
27
62
91

query I rowsort
SELECT DISTINCT - 58 + - col0 + + - col2 FROM tab1 cor0
----
-202
-205
-217

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT + 12 * - COUNT( * ) FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-3970
SELECT + 12 * - COUNT ( * ) FROM tab1 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT ALL + MAX( ALL col1 ) col1 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3971
SELECT ALL + MAX ( ALL col1 ) col1 FROM tab0
----
81

query I rowsort
SELECT + col1 FROM tab1 WHERE ( col2 / col2 ) IS NOT NULL
----
14
47
5

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT 2 IS NULL
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-3974
SELECT + col1 DIV col1 + col2 * - col2 FROM tab0
----
-2208
-9800
-99

skipif mysql # not compatible
query I rowsort label-3974
SELECT + col1 / col1 + col2 * - col2 FROM tab0
----
-2208
-9800
-99

query I rowsort
SELECT + 34 AS col2 FROM tab0 WHERE NOT + col0 IS NULL
----
34
34
34

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 3 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE - 8 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 47 * col0 col2 FROM tab0
----
4089
4559
705

onlyif mysql # DIV for integer division: 
query I rowsort label-3979
SELECT + col0 DIV + ( 35 ) FROM tab1
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3979
SELECT + col0 / + ( 35 ) FROM tab1
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3980
SELECT ALL 29 + + col1 FROM tab2 WHERE NULL BETWEEN + 13 + 51 AND - CAST( + 98 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL 29 + + col1 FROM tab2 WHERE NULL BETWEEN + 13 + 51 AND - CAST ( + 98 AS INTEGER )
----

query I rowsort
SELECT ALL + col1 + - col2 * - col1 FROM tab2
----
1224
3157
3953

onlyif mysql # DIV for integer division: 
query I rowsort label-3982
SELECT - col2 DIV 11 AS col2 FROM tab0
----
-4
-9
0

skipif mysql # not compatible
query I rowsort label-3982
SELECT - col2 / 11 AS col2 FROM tab0
----
-4
-9
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3983
SELECT DISTINCT ( + col0 ) DIV col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-3983
SELECT DISTINCT ( + col0 ) / col0 FROM tab1
----
1

query III rowsort
SELECT * FROM tab1 WHERE col0 <= - 89 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT MAX( DISTINCT col1 ) AS col1 FROM tab2 WHERE col0 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT MAX ( DISTINCT col1 ) AS col1 FROM tab2 WHERE col0 > NULL
----
NULL

query I rowsort
SELECT + ( col1 ) AS col0 FROM tab1 WHERE ( col2 + - col2 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3987
SELECT COUNT( * ) + + 92 AS col1 FROM tab1
----
95

skipif mysql # not compatible
query I rowsort label-3987
SELECT COUNT ( * ) + + 92 AS col1 FROM tab1
----
95

query I rowsort
SELECT 91 + 82 FROM tab2
----
173
173
173

query I rowsort
SELECT 29 + - col0 * 16 AS col1 FROM tab0
----
-1363
-1523
-211

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3990
SELECT col0 + CAST( NULL AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3990
SELECT col0 + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT ( - col1 - col2 ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3993
SELECT ALL COUNT( * ) AS col1 FROM tab0 WHERE NOT ( + col0 * - ( col2 ) ) < 56 / - ( col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3993
SELECT ALL COUNT ( * ) AS col1 FROM tab0 WHERE NOT ( + col0 * - ( col2 ) ) < 56 / - ( col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3994
SELECT - COUNT( + col2 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3994
SELECT - COUNT ( + col2 ) AS col1 FROM tab1
----
-3

query I rowsort
SELECT + col1 * col0 + + 72 AS col1 FROM tab2
----
2418
5000
5097

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT SUM( ( - col2 ) ) AS col1 FROM tab1 WHERE + col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3996
SELECT SUM ( ( - col2 ) ) AS col1 FROM tab1 WHERE + col2 IS NULL
----
NULL

query I rowsort
SELECT - 30 * ( - col1 ) FROM tab0 AS cor0
----
2430
30
630

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT DISTINCT MIN( DISTINCT - 57 ) AS col0 FROM tab0 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3998
SELECT DISTINCT MIN ( DISTINCT - 57 ) AS col0 FROM tab0 AS cor0
----
-57

query I rowsort
SELECT col1 FROM tab2 WHERE NOT col2 + - col2 IS NULL
----
51
67
77

query I rowsort
SELECT DISTINCT ( col1 ) + - col0 FROM tab1 WHERE col0 / + 46 NOT IN ( - col2 * col2 )
----
-37
-44
-80

query I rowsort
SELECT + 76 * + 33 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to 082724078b1519bdca90d0d56cabccec

query I rowsort
SELECT DISTINCT col1 + - 50 * + 41 AS col1 FROM tab0
----
-1969
-2029
-2049

query I rowsort
SELECT DISTINCT + ( + 39 ) FROM tab0 AS cor0
----
39

query I rowsort
SELECT + 38 + + ( + col1 ) FROM tab1 cor0
----
43
52
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - 47 + ( + COUNT( * ) ) FROM tab2 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-4005
SELECT - 47 + ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-44

query I rowsort
SELECT ALL + col0 * 85 AS col1 FROM tab0 AS cor0
----
1275
7395
8245

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT 70 + MAX( col1 ) col1 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4007
SELECT 70 + MAX ( col1 ) col1 FROM tab2 AS cor0
----
147

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT ALL + MAX( ALL col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-4008
SELECT ALL + MAX ( ALL col2 ) FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4009
SELECT 16 + SUM( + ( - 63 ) ) FROM tab0 AS cor0
----
-173

skipif mysql # not compatible
query I rowsort label-4009
SELECT 16 + SUM ( + ( - 63 ) ) FROM tab0 AS cor0
----
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - col2 * - 15 col0 FROM tab2 AS cor0
----
368
640
928

onlyif mysql # aggregate syntax: 
query I rowsort label-4011
SELECT + COUNT( * ) + COUNT( * ) AS col1 FROM tab2 cor0
----
6

skipif mysql # not compatible
query I rowsort label-4011
SELECT + COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 cor0
----
6

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE col0 BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4013
SELECT DISTINCT ( + COUNT( * ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4013
SELECT DISTINCT ( + COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT ALL + AVG ( DISTINCT + 80 ) + - 78 FROM tab0 WHERE NOT ( NULL ) = NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE col0 + col1 * + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4016
SELECT ( + COUNT( * ) ) col1 FROM tab2 WHERE NULL NOT BETWEEN 49 AND - col2 OR ( + col2 / col1 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4016
SELECT ( + COUNT ( * ) ) col1 FROM tab2 WHERE NULL NOT BETWEEN 49 AND - col2 OR ( + col2 / col1 ) IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( NULL ) NOT IN ( col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4018
SELECT 59 DIV + col2 AS col2 FROM tab0 WHERE + 91 IS NOT NULL
----
0
1
5

skipif mysql # not compatible
query I rowsort label-4018
SELECT 59 / + col2 AS col2 FROM tab0 WHERE + 91 IS NOT NULL
----
0
1
5

query I rowsort
SELECT ALL + 55 * + + 18 * - col1 AS col2 FROM tab2
----
-50490
-66330
-76230

onlyif mysql # aggregate syntax: 
query I rowsort label-4020
SELECT DISTINCT - COUNT( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4020
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE ( NULL ) BETWEEN NULL AND 97
----

query I rowsort
SELECT 92 - + 3 AS col1 FROM tab2 AS cor0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) - - col2 * col2 col2 FROM tab0 AS cor0
----
110
2256
9900

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( + col1 + col1 ) BETWEEN ( NULL ) AND 60 - + col2
----

query II rowsort
SELECT ALL - col0, 2 AS col2 FROM tab0
----
-15
2
-87
2
-97
2

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT + 41 + + + col1 + col1 DIV 87 AS col2 FROM tab2
----
108
118
92

skipif mysql # not compatible
query I rowsort label-4026
SELECT + 41 + + + col1 + col1 / 87 AS col2 FROM tab2
----
108
118
92

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - + col1 AND col0 * - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 88 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col0 FROM tab2 AS cor0 WHERE - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 IN ( - col0 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4031
SELECT + MAX( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-4031
SELECT + MAX ( DISTINCT - col2 ) AS col2 FROM tab2 AS cor0
----
-23

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: DECIMAL type: 
query I rowsort label-4033
SELECT ALL + + 7 * + 97 - + ( - col1 ) - CAST( NULL AS DECIMAL ) / - CAST( - ( + 74 ) AS SIGNED ) * 64 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4033
SELECT ALL + + 7 * + 97 - + ( - col1 ) - CAST ( NULL AS REAL ) / - CAST ( - ( + 74 ) AS INTEGER ) * 64 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4034
SELECT DISTINCT - SUM( ALL col0 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-227

skipif mysql # not compatible
query I rowsort label-4034
SELECT DISTINCT - SUM ( ALL col0 ) FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-227

query I rowsort
SELECT DISTINCT - 49 * + col1 AS col0 FROM tab0 AS cor0
----
-1029
-3969
-49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4036
SELECT ( CAST( + COUNT( * ) AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4036
SELECT ( CAST ( + COUNT ( * ) AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( - col1 ) IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( 15 + - col0 * col0 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( 83 ) col2 FROM tab1
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4039
SELECT - 35 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4039
SELECT - 35 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE NOT + - col0 IS NOT NULL
----

query I rowsort
SELECT - 65 * col1 FROM tab0 WHERE NOT + col0 IS NULL
----
-1365
-5265
-65

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4041
SELECT ALL ( CAST( COUNT( * ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4041
SELECT ALL ( CAST ( COUNT ( * ) AS INTEGER ) ) FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 81 - - col0 col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
127
145
156

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NOT + - col0 IS NULL )
----

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL - col0 * + 43 * + col2 * + 53 FROM tab1 AS cor0
----
-11157984
-11429185
-14102452

onlyif mysql # DIV for integer division: 
query I rowsort label-4046
SELECT ALL + 35 DIV - + col1 AS col0 FROM tab0 cor0
----
-1
-35
0

skipif mysql # not compatible
query I rowsort label-4046
SELECT ALL + 35 / - + col1 AS col0 FROM tab0 cor0
----
-1
-35
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( + col2 ) NOT BETWEEN 95 AND 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4048
SELECT 29 * - MAX( - col1 ) AS col2 FROM tab2
----
1479

skipif mysql # not compatible
query I rowsort label-4048
SELECT 29 * - MAX ( - col1 ) AS col2 FROM tab2
----
1479

query I rowsort
SELECT + + col1 * - + col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 13 * + + 51 AS col1 FROM tab1 cor0
----
663

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4051
SELECT ALL + CAST( + 65 AS SIGNED ) + + + CAST( NULL AS SIGNED ) * col0 + + col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4051
SELECT ALL + CAST ( + 65 AS INTEGER ) + + + CAST ( NULL AS INTEGER ) * col0 + + col2 col2 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 BETWEEN + + col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4054
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + 97 NOT BETWEEN ( - col2 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4054
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + 97 NOT BETWEEN ( - col2 ) AND NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 23 = 47 * col2 * - + ( + col1 ) - - ( ( col0 ) - 97 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4056
SELECT SUM( col2 ) - + + 91 + - 11 col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4056
SELECT SUM ( col2 ) - + + 91 + - 11 col0 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4057
SELECT - 6 + + col2 * + - col0 * + col2 * - CAST( col1 AS SIGNED ) * + col2 FROM tab1 AS cor0
----
1344825658
631701498
87286069

skipif mysql # not compatible
query I rowsort label-4057
SELECT - 6 + + col2 * + - col0 * + col2 * - CAST ( col1 AS INTEGER ) * + col2 FROM tab1 AS cor0
----
1344825658
631701498
87286069

query I rowsort
SELECT 86 * - col1 - - + 30 + - 19 FROM tab2 AS cor0
----
-4375
-5751
-6611

query I rowsort
SELECT - col0 + - col1 * + - 38 AS col1 FROM tab2
----
1892
2471
2862

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4060
SELECT ALL COUNT( * ) DIV SUM( DISTINCT + - col0 ) + + 74 AS col0 FROM tab0
----
74

skipif mysql # not compatible
query I rowsort label-4060
SELECT ALL COUNT ( * ) / SUM ( DISTINCT + - col0 ) + + 74 AS col0 FROM tab0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-4061
SELECT COUNT( * ) + - MIN( ALL + 15 ) AS col2 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-4061
SELECT COUNT ( * ) + - MIN ( ALL + 15 ) AS col2 FROM tab1
----
-12

onlyif mysql # DIV for integer division: 
query I rowsort label-4062
SELECT + - ( col0 ) * col2 DIV - col0 - + col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE + 75 >= + col0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4062
SELECT + - ( col0 ) * col2 / - col0 - + col2 + + col1 AS col1 FROM tab2 AS cor0 WHERE + 75 >= + col0
----
51
67
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 90 + - 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col1 BETWEEN - 64 + - col2 + 31 * - + col0 + col2 AND NULL
----

query I rowsort
SELECT ALL + + col0 - 7 AS col2 FROM tab1 AS cor0
----
44
78
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4066
SELECT ALL 41, CAST( - 10 AS SIGNED ) * MAX( ALL 72 ) - - SUM( ALL 12 + 26 ) * - 24 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41
-8928

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4066
SELECT ALL 41, CAST ( - 10 AS INTEGER ) * MAX ( ALL 72 ) - - SUM ( ALL 12 + 26 ) * - 24 col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
41
-8928

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4067
SELECT - col0 * + CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4067
SELECT - col0 * + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4068
SELECT - MAX( - 50 ) FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-4068
SELECT - MAX ( - 50 ) FROM tab0 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT - MIN( DISTINCT 41 ) FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-4069
SELECT - MIN ( DISTINCT 41 ) FROM tab1 AS cor0
----
-41

query II rowsort
SELECT ALL + col2 AS col2, col1 FROM tab1
----
59
5
68
47
96
14

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL = - + ( - 17 ) / col2 * + 4 - - - col1 - + - col1
----

query I rowsort
SELECT col1 * - 5 AS col0 FROM tab2
----
-255
-335
-385

query I rowsort
SELECT DISTINCT 37 + + col1 AS col0 FROM tab0
----
118
38
58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) < 28
----

query I rowsort
SELECT DISTINCT + col0 * + 56 AS col1 FROM tab2 AS cor0
----
2576
3584
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-4076
SELECT DISTINCT - ( + MIN( ALL + - 73 ) ) AS col1 FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-4076
SELECT DISTINCT - ( + MIN ( ALL + - 73 ) ) AS col1 FROM tab1 AS cor0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-4077
SELECT + + col2 DIV + col1 * - + col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4077
SELECT + + col2 / + col1 * - + col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT DISTINCT - 6 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-4079
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4079
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9

query I rowsort
SELECT ALL + 65 FROM tab1 WHERE NOT ( ( ( NOT 66 BETWEEN ( NULL ) AND ( NULL ) ) ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 47 * 68 + + 18 * col2 + + - col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4082
SELECT ALL + col2 DIV - col2, + col0 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

skipif mysql # not compatible
query II rowsort label-4082
SELECT ALL + col2 / - col2, + col0 FROM tab2 AS cor0
----
-1
46
-1
64
-1
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4083
SELECT DISTINCT - 13 DIV 53 + - - ( - + col1 ) - - col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

skipif mysql # not compatible
query I rowsort label-4083
SELECT DISTINCT - 13 / 53 + - - ( - + col1 ) - - col0 AS col2 FROM tab0 AS cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + ( 25 ) NOT IN ( - + 70, + col1 * - + col0 / - 78 * + + col0 + + - col2 / col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - 94 * col0, col1 FROM tab0 AS cor0
----
-1410
81
-8178
21
-9118
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * 29 + + 87 col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
-1392
-2378
-2552

query I rowsort
SELECT ALL 3 - - col1 + col1 AS col1 FROM tab1 AS cor0
----
13
31
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4088
SELECT + SUM( + 24 ) FROM tab2 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4088
SELECT + SUM ( + 24 ) FROM tab2 AS cor0
----
72

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND 40 * col2
----

query I rowsort
SELECT DISTINCT - 60 * - col0 AS col1 FROM tab1
----
3060
5100
5460

query I rowsort
SELECT ALL + 21 + + col1 AS col1 FROM tab2
----
72
88
98

query I rowsort
SELECT + ( - col1 ) - - + col1 + - col2 AS col2 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT + 94 - + + col1 AS col2 FROM tab1
----
47
80
89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4094
SELECT CAST( NULL AS SIGNED ) + - - COUNT( * ) col2 FROM tab1 cor0 WHERE 70 - + ( - ( - 74 ) ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4094
SELECT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) col2 FROM tab1 cor0 WHERE 70 - + ( - ( - 74 ) ) IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - - 45 FROM tab1 cor0
----
45

query I rowsort
SELECT + ( 36 ) AS col0 FROM tab0
----
36
36
36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT + col2 * - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4097
SELECT + col2 * - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4098
SELECT + ( - col0 ) DIV + - 22 AS col2 FROM tab0 AS cor0
----
0
3
4

skipif mysql # not compatible
query I rowsort label-4098
SELECT + ( - col0 ) / + - 22 AS col2 FROM tab0 AS cor0
----
0
3
4

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - ( - - ( - col0 ) ) * - - col1 > ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4100
SELECT ALL COUNT( + + col2 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4100
SELECT ALL COUNT ( + + col2 ) FROM tab2 cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 NOT BETWEEN NULL AND - 48
----
15
81
47
87
21
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 33 * + - col1 col0 FROM tab0
----
2673
33
693

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL <= NULL )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab2 WHERE col2 IS NULL
----

query I rowsort
SELECT - col1 * + 65 AS col1 FROM tab1
----
-3055
-325
-910

onlyif mysql # aggregate syntax: 
query I rowsort label-4106
SELECT DISTINCT 46 * + COUNT( * ) * - + COUNT( DISTINCT 28 ) AS col2 FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-4106
SELECT DISTINCT 46 * + COUNT ( * ) * - + COUNT ( DISTINCT 28 ) AS col2 FROM tab1
----
-138

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - col0
----

query I rowsort
SELECT DISTINCT - + 41 AS col2 FROM tab2 cor0
----
-41

query II rowsort
SELECT - 17 + - col1, + 75 AS col1 FROM tab0 AS cor0
----
-18
75
-38
75
-98
75

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 AND + col1 / 5
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0 AS col1, - 49 col1 FROM tab0 WHERE - 59 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4112
SELECT ALL COUNT( * ) + - + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4112
SELECT ALL COUNT ( * ) + - + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT col2 - - 71 AS col1 FROM tab0 cor0
----
118
170
81

query I rowsort
SELECT + + ( col1 ) * - + col0 - - 81 FROM tab1 AS cor0
----
-344
-4196
-633

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT ALL - + 77 - + COUNT( * ) FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4116
SELECT ALL - + 77 - + COUNT ( * ) FROM tab2 AS cor0
----
-80

query I rowsort
SELECT DISTINCT - - 81 * + - 60 FROM tab0 AS cor0
----
-4860

onlyif mysql # aggregate syntax: 
query I rowsort label-4118
SELECT COUNT( * ) + ( - + 57 ) AS col2 FROM tab0
----
-54

skipif mysql # not compatible
query I rowsort label-4118
SELECT COUNT ( * ) + ( - + 57 ) AS col2 FROM tab0
----
-54

onlyif mysql # DIV for integer division: 
query I rowsort label-4119
SELECT 65 + col2 DIV - col2 AS col0 FROM tab2
----
64
64
64

skipif mysql # not compatible
query I rowsort label-4119
SELECT 65 + col2 / - col2 AS col0 FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4120
SELECT + col0 + CAST( + ( + + 28 ) AS SIGNED ) DIV + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4120
SELECT + col0 + CAST ( + ( + + 28 ) AS INTEGER ) / + col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4121
SELECT - col0 * + 92 * + - CAST( - col1 AS DECIMAL ) AS col1, + col1 FROM tab0 WHERE NULL > ( 7 / col1 + col0 )
----

skipif mysql # not compatible
query II rowsort label-4121
SELECT - col0 * + 92 * + - CAST ( - col1 AS REAL ) AS col1, + col1 FROM tab0 WHERE NULL > ( 7 / col1 + col0 )
----

query I rowsort
SELECT ALL - col1 + 32 FROM tab1
----
-15
18
27

query I rowsort
SELECT + col2 + - 5 + + 83 AS col2 FROM tab1
----
137
146
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4124
SELECT - CAST( NULL AS SIGNED ) + + + col0 + + col0 * + 13 col0 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4124
SELECT - CAST ( NULL AS INTEGER ) + + + col0 + + col0 * + 13 col0 FROM tab0 WHERE + col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + + col1 * 30 * + col0 AS col0 FROM tab0 cor0
----
1151010
2910
2952450

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4126
SELECT ALL COUNT( DISTINCT + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4126
SELECT ALL COUNT ( DISTINCT + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE - col1 * 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4128
SELECT ALL - COUNT( * ) * + 88 AS col2 FROM tab0
----
-264

skipif mysql # not compatible
query I rowsort label-4128
SELECT ALL - COUNT ( * ) * + 88 AS col2 FROM tab0
----
-264

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT ALL 11 * - COUNT( * ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-4129
SELECT ALL 11 * - COUNT ( * ) FROM tab1
----
-33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4130
SELECT DISTINCT + 15 DIV ( - ( COUNT( * ) ) ) FROM tab2
----
-5

skipif mysql # not compatible
query I rowsort label-4130
SELECT DISTINCT + 15 / ( - ( COUNT ( * ) ) ) FROM tab2
----
-5

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4133
SELECT DISTINCT + - CAST( + + col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4133
SELECT DISTINCT + - CAST ( + + col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # DIV for integer division: 
query I rowsort label-4134
SELECT - 54 DIV ( + col0 ) FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4134
SELECT - 54 / ( + col0 ) FROM tab2 AS cor0
----
-1
0
0

query I rowsort
SELECT 57 + 35 * + - 2 AS col2 FROM tab2 cor0
----
-13
-13
-13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4136
SELECT - CAST( + MIN( ALL + col2 ) AS SIGNED ) + + 74 + - 78 FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-4136
SELECT - CAST ( + MIN ( ALL + col2 ) AS INTEGER ) + + 74 + - 78 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT - col1 FROM tab0 WHERE 79 IS NOT NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - col1 AND ( NULL )
----

query II rowsort
SELECT DISTINCT - 59 + + col2 AS col2, 89 * - 18 FROM tab2
----
-1
-1602
-19
-1602
-36
-1602

onlyif mysql # aggregate syntax: 
query I rowsort label-4140
SELECT ALL COUNT( + + 80 ) + + 49 FROM tab2 WHERE - col0 IS NOT NULL
----
52

skipif mysql # not compatible
query I rowsort label-4140
SELECT ALL COUNT ( + + 80 ) + + 49 FROM tab2 WHERE - col0 IS NOT NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4141
SELECT DISTINCT 30 + + COUNT( * ) AS col0 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-4141
SELECT DISTINCT 30 + + COUNT ( * ) AS col0 FROM tab0
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-4142
SELECT DISTINCT - 88 DIV + - col1 + col0 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-4142
SELECT DISTINCT - 88 / + - col1 + col0 FROM tab2
----
47
65
76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + ( - - 73 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + + 69 IS NULL
----

query II rowsort
SELECT + col0 AS col0, - col1 - - - col2 FROM tab0 AS cor0
----
15
-128
87
-31
97
-100

query I rowsort
SELECT ALL col0 * - + col0 + + + col2 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-178
-7559
-9310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4147
SELECT - - CAST( - + SUM( DISTINCT + + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-4147
SELECT - - CAST ( - + SUM ( DISTINCT + + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
-103

query I rowsort
SELECT - 29 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 0cc9ddad93fc783055518ae4b6be054b

query I rowsort
SELECT ALL col0 * - 88 AS col0 FROM tab1
----
-4488
-7480
-8008

onlyif mysql # DIV for integer division: 
query I rowsort label-4150
SELECT DISTINCT col0 - + + col0 + col2 DIV - col1 * col1 + + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4150
SELECT DISTINCT col0 - + + col0 + col2 / - col1 * col1 + + col1 FROM tab2
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4151
SELECT DISTINCT - MAX( - + 60 ) + + 37 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-4151
SELECT DISTINCT - MAX ( - + 60 ) + + 37 FROM tab2 AS cor0
----
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 7 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 21 * - col0 AS col0 FROM tab2 AS cor0
----
-1344
-1575
-966

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE - 33 * + - col0 IN ( - 97 * - 27 + + + col2, + col0 - + - CAST( + + 21 AS SIGNED ) * + col2, - 24 + - 9 + col1 * - col1 - + 71 * + col0 * - - 74 + - 98 )
----
0

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE - 33 * + - col0 IN ( - 97 * - 27 + + + col2, + col0 - + - CAST ( + + 21 AS INTEGER ) * + col2, - 24 + - 9 + col1 * - col1 - + 71 * + col0 * - - 74 + - 98 )
----
0

query I rowsort
SELECT DISTINCT - 49 - - col1 AS col2 FROM tab0 AS cor0
----
-28
-48
32

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT DISTINCT COUNT( * ) * + 5 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-4156
SELECT DISTINCT COUNT ( * ) * + 5 FROM tab2 AS cor0
----
15

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4157
SELECT + COUNT( * ) - - + COUNT( * ) DIV ( + ( - - MAX( - col2 ) ) ) col2 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4157
SELECT + COUNT ( * ) - - + COUNT ( * ) / ( + ( - - MAX ( - col2 ) ) ) col2 FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4158
SELECT + ( + - 78 ) DIV - 13 + COUNT( DISTINCT + col2 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-4158
SELECT + ( + - 78 ) / - 13 + COUNT ( DISTINCT + col2 ) AS col2 FROM tab1
----
9

query II rowsort
SELECT + col0, 61 FROM tab0
----
15
61
87
61
97
61

query I rowsort
SELECT 44 * ( col1 ) FROM tab1
----
2068
220
616

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 <> col2 * - - col1 - - 4 * - col2 * col0 * + 38
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4162
SELECT - - col0 col2 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT - - col0 col2 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL
----
46
64
75

query I rowsort
SELECT col0 * - + 38 AS col1 FROM tab1
----
-1938
-3230
-3458

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + col1 + + col1 )
----

query II rowsort
SELECT - 61, col1 AS col2 FROM tab2
----
-61
51
-61
67
-61
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4166
SELECT DISTINCT - + SUM( ALL - 1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4166
SELECT DISTINCT - + SUM ( ALL - 1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 8 * + 81 * - + col2 AS col2 FROM tab2 AS cor0
----
-14904
-25920
-37584

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <= - 34 * - + 0
----

query I rowsort
SELECT + + col1 * + - col2 + col1 FROM tab2 cor0
----
-1122
-3003
-3819

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 * + col2 * - col1 col1 FROM tab0 AS cor0
----
308367
4410
99

query I rowsort
SELECT 59 - - col0 + + col1 FROM tab0 AS cor0 WHERE NOT ( 11 + + 50 / - 63 + - 38 + - col0 IS NULL )
----
155
157
167

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = + col2 + + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4173
SELECT ALL SUM( DISTINCT + 78 ) AS col1 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-4173
SELECT ALL SUM ( DISTINCT + 78 ) AS col1 FROM tab0 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4174
SELECT * FROM tab1 cor0 WHERE NOT - col1 IN ( 82, + 57, - - col1 - CAST( - col1 AS SIGNED ), + - 52, + col2, + + CAST( NULL AS SIGNED ) / - col2 )
----

skipif mysql # not compatible
query III rowsort label-4174
SELECT * FROM tab1 cor0 WHERE NOT - col1 IN ( 82, + 57, - - col1 - CAST ( - col1 AS INTEGER ), + - 52, + col2, + + CAST ( NULL AS INTEGER ) / - col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + col0 + - 54 = col1 - + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 45 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT ALL - col2 + + col2 + CAST( - + col0 AS SIGNED ) AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4177
SELECT ALL - col2 + + col2 + CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 76 + - + col0 + - - ( + 7 ) * + ( + + col2 ) + + 87 * + col0 * col0 FROM tab1
----
226984
628979
720908

onlyif mysql # DIV for integer division: 
query I rowsort label-4179
SELECT - col1 + 11 DIV - col2 * 39 AS col1 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-4179
SELECT - col1 + 11 / - col2 * 39 AS col1 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + ( 1 ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4181
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, 11 + col1 * 99, col2 * - - CAST( ( - 2 ) AS SIGNED ) + + col2 + + 18 )
----

skipif mysql # not compatible
query III rowsort label-4181
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, 11 + col1 * 99, col2 * - - CAST ( ( - 2 ) AS INTEGER ) + + col2 + + 18 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4182
SELECT DISTINCT - + 76 + - + 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL NOT BETWEEN - CAST( - 27 AS SIGNED ) AND NULL )
----

skipif mysql # not compatible
query I rowsort label-4182
SELECT DISTINCT - + 76 + - + 57 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL NOT BETWEEN - CAST ( - 27 AS INTEGER ) AND NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE ( ( ( NOT col2 IS NULL ) ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4184
SELECT ALL 12 + + 20 DIV 70 DIV + MIN( + col1 ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-4184
SELECT ALL 12 + + 20 / 70 / + MIN ( + col1 ) FROM tab0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT DISTINCT COUNT( * ) + ( - 87 ) FROM tab0
----
-84

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT COUNT ( * ) + ( - 87 ) FROM tab0
----
-84

query I rowsort
SELECT ALL + 63 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # aggregate syntax: 
query I rowsort label-4187
SELECT DISTINCT COUNT( * ) - - COUNT( * ) + - 62 col0 FROM tab2 WHERE - 71 BETWEEN - 4 AND + + col0
----
-62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4187
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) + - 62 col0 FROM tab2 WHERE - 71 BETWEEN - 4 AND + + col0
----
-62

query II rowsort
SELECT DISTINCT col2, 65 AS col2 FROM tab0 AS cor0 WHERE 45 + 50 / + + ( + 65 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4189
SELECT ALL - col1 * - col2 - - - 24 DIV ( - col0 ) FROM tab0 cor0
----
210
3808
99

skipif mysql # not compatible
query I rowsort label-4189
SELECT ALL - col1 * - col2 - - - 24 / ( - col0 ) FROM tab0 cor0
----
210
3808
99

query I rowsort
SELECT DISTINCT - - 13 - - col0 AS col1 FROM tab2 AS cor0
----
59
77
88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) > + 51 * - + 47
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4192
SELECT - MAX( + 27 ) FROM tab2 cor0
----
-27

skipif mysql # not compatible
query I rowsort label-4192
SELECT - MAX ( + 27 ) FROM tab2 cor0
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT DISTINCT - - MIN( + col0 ) AS col2 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4193
SELECT DISTINCT - - MIN ( + col0 ) AS col2 FROM tab2 AS cor0
----
46

query I rowsort
SELECT - ( + - 32 ) FROM tab0
----
32
32
32

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4196
SELECT DISTINCT - SUM( DISTINCT - col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-4196
SELECT DISTINCT - SUM ( DISTINCT - col2 ) AS col1 FROM tab1
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + col1 col1 FROM tab2 AS cor0
----
3009
3953
4543

query I rowsort
SELECT DISTINCT 97 * - - col0 FROM tab0 AS cor0
----
1455
8439
9409

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT - ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT - ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 89 BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col0 * + + 5 AS col2 FROM tab0 AS cor0
----
435
485
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + col1 col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + + col1 AND NULL
----

query II rowsort
SELECT DISTINCT - 43 AS col0, col2 FROM tab0
----
-43
10
-43
47
-43
99

query I rowsort
SELECT DISTINCT + col0 * - + 0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4205
SELECT CAST( - - col2 AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4205
SELECT CAST ( - - col2 AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL 19 * + COUNT( * ) + 96 AS col2 FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL 19 * + COUNT ( * ) + 96 AS col2 FROM tab2 AS cor0
----
153

query I rowsort
SELECT - - col1 + + 35 AS col0 FROM tab1 cor0
----
40
49
82

query II rowsort
SELECT - + col1 + + 9 + + col2, + 15 AS col2 FROM tab0 AS cor0
----
-2
15
-25
15
107
15

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4209
SELECT - CAST( NULL AS SIGNED ), + 15 AS col2 FROM tab2 AS cor0
----
NULL
15
NULL
15
NULL
15

skipif mysql # not compatible
query II rowsort label-4209
SELECT - CAST ( NULL AS INTEGER ), + 15 AS col2 FROM tab2 AS cor0
----
NULL
15
NULL
15
NULL
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4210
SELECT CAST( NULL AS SIGNED ) * - + ( + col2 ) FROM tab0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4210
SELECT CAST ( NULL AS INTEGER ) * - + ( + col2 ) FROM tab0 WHERE + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 81 * col1 * + 23 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4212
SELECT DISTINCT + CAST( + CAST( + 26 AS SIGNED ) AS SIGNED ) * - - col0 + - + CAST( + - col1 AS SIGNED ) col2 FROM tab1 AS cor0
----
1340
2215
2413

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4212
SELECT DISTINCT + CAST ( + CAST ( + 26 AS INTEGER ) AS INTEGER ) * - - col0 + - + CAST ( + - col1 AS INTEGER ) col2 FROM tab1 AS cor0
----
1340
2215
2413

query I rowsort
SELECT col2 - - + col2 + 27 * - col0 * + col2 FROM tab0 AS cor0
----
-18941
-23470
-259083

query I rowsort
SELECT DISTINCT + col1 - - 12 * + - 82 AS col1 FROM tab2 AS cor0
----
-907
-917
-933

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4215
SELECT ALL COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4215
SELECT ALL COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4216
SELECT ALL + MIN( col0 ) - + 63 col2 FROM tab1 cor0
----
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4216
SELECT ALL + MIN ( col0 ) - + 63 col2 FROM tab1 cor0
----
-12

query I rowsort
SELECT ALL - + 29 + + + 51 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c55ee7433d8d39a59b1de2aadd9538c9

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL COUNT( * ) * - 33 + + 66 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL COUNT ( * ) * - 33 + + 66 FROM tab2
----
-33

query II rowsort
SELECT 48 AS col2, 14 * - + col2 AS col2 FROM tab0
----
48
-1386
48
-140
48
-658

query I rowsort
SELECT ALL + 83 + + + 73 FROM tab2 AS cor0
----
156
156
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4221
SELECT 66 AS col1, SUM( ALL + - col2 ) + - 36 col2 FROM tab0 AS cor0
----
66
-192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4221
SELECT 66 AS col1, SUM ( ALL + - col2 ) + - 36 col2 FROM tab0 AS cor0
----
66
-192

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT BETWEEN + col0 / + - col0 AND 49 - col1 + 21
----

query I rowsort
SELECT 22 * col2 * - 9 * + + col0 FROM tab0 cor0 WHERE NOT 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4224
SELECT ALL - + 47 * + col1 + - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-2374
-3091
-3579

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - + 47 * + col1 + - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-2374
-3091
-3579

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, + col0 + - - 88 col1 FROM tab1 cor0
----
14
139
47
179
5
173

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4226
SELECT ALL + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-4226
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT + col0 * + - 23 FROM tab2 AS cor0
----
-1058
-1472
-1725

query I rowsort
SELECT ALL + - col1 + + col2 + - + col2 FROM tab1 WHERE NULL NOT BETWEEN + 86 AND NULL
----

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-4229
SELECT ALL CAST( NULL AS DECIMAL ), 72 DIV - ( + col2 ) col1 FROM tab0
----
NULL
-1
NULL
-7
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4229
SELECT ALL CAST ( NULL AS REAL ), 72 / - ( + col2 ) col1 FROM tab0
----
NULL
-1
NULL
-7
NULL
0

query II rowsort
SELECT DISTINCT - col2 AS col2, col0 FROM tab2
----
-23
46
-40
64
-58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT + ( + COUNT( * ) ) * - 20 AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-4231
SELECT + ( + COUNT ( * ) ) * - 20 AS col2 FROM tab1
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-4232
SELECT ALL + ( + COUNT( * ) ) * + 76 FROM tab0
----
228

skipif mysql # not compatible
query I rowsort label-4232
SELECT ALL + ( + COUNT ( * ) ) * + 76 FROM tab0
----
228

query II rowsort
SELECT col2, - col2 * + + 22 - col2 * ( 44 ) AS col0 FROM tab2
----
23
-1518
40
-2640
58
-3828

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2, col1 col0 FROM tab1 AS cor0
----
-59
5
-68
47
-96
14

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 47 - col0 IS NULL
----

query II rowsort
SELECT - ( - 32 ) * - ( + col1 ) + - 54 * + - ( 3 ) AS col0, 40 * + 0 AS col1 FROM tab1 cor0
----
-1342
0
-286
0
2
0

query I rowsort
SELECT + ( - col0 ) * + col2 * + - 22 + col1 FROM tab0
----
15591
19161
211267

onlyif mysql # aggregate syntax: 
query I rowsort label-4238
SELECT 9 + - COUNT( DISTINCT - 91 ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-4238
SELECT 9 + - COUNT ( DISTINCT - 91 ) FROM tab0
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4239
SELECT + ( + col0 ) + + + ( + + 86 ) - col2 * + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4239
SELECT + ( + col0 ) + + + ( + + 86 ) - col2 * + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 + - 56 AS col1 FROM tab1
----
-5
29
35

query I rowsort
SELECT ALL 33 + - 18 + - 52 * + 44 + + 68 FROM tab0
----
-2205
-2205
-2205

query I rowsort
SELECT ALL 0 + col0 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT DISTINCT + 6 - + COUNT( * ) + + 88 + - COUNT( * ) FROM tab2
----
88

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + 6 - + COUNT ( * ) + + 88 + - COUNT ( * ) FROM tab2
----
88

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE ( + - ( + col2 ) * - 1 * - 22 <> - col2 * + col1 )
----
14
47
5

query I rowsort
SELECT col2 AS col2 FROM tab0 WHERE ( col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 - - 50 col2 FROM tab2
----
2166
4146
5675

query II rowsort
SELECT DISTINCT + col2 * - col2 AS col2, col0 AS col2 FROM tab2
----
-1600
64
-3364
75
-529
46

onlyif mysql # aggregate syntax: 
query I rowsort label-4248
SELECT ALL - COUNT( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-4248
SELECT ALL - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL <> NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT ALL - - SUM( ALL + col2 ) FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4249
SELECT ALL - - SUM ( ALL + col2 ) FROM tab1 AS cor0
----
223

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4250
SELECT - CAST( + + CAST( - ( COUNT( * ) ) AS SIGNED ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4250
SELECT - CAST ( + + CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4251
SELECT - 23 / + - CAST( NULL AS SIGNED ) * COUNT( * ) * - + 51 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4251
SELECT - 23 / + - CAST ( NULL AS INTEGER ) * COUNT ( * ) * - + 51 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT 17 AS col0, ( + + col2 ) * + 88 * + 59 + - - col1 AS col2 FROM tab2
----
17
119467
17
207757
17
301203

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, + col0 AS col1 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4254
SELECT ALL - + col1 * - col1 * - + col0 + - 62 FROM tab2 WHERE NOT ( CAST( NULL AS SIGNED ) < 35 )
----

skipif mysql # not compatible
query I rowsort label-4254
SELECT ALL - + col1 * - col1 * - + col0 + - 62 FROM tab2 WHERE NOT ( CAST ( NULL AS INTEGER ) < 35 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, + 83 FROM tab1 WHERE NOT 43 NOT IN ( + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 21 - + - col0 NOT BETWEEN - 92 AND + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + col0 + + col1 * - 39 - - 14 col1 FROM tab1 AS cor0
----
-10100
-3133
-7406

query I rowsort
SELECT - 13 * col2 AS col2 FROM tab0 AS cor0
----
-1287
-130
-611

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 * + col1 < - - 79
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 82 + + + 23 FROM tab0
----
105
105
105

query I rowsort
SELECT DISTINCT - - col0 + - col2 * col2 FROM tab2 AS cor0
----
-1536
-3289
-483

query I rowsort
SELECT col0 + + 65 FROM tab0 AS cor0
----
152
162
80

query II rowsort
SELECT ALL - - col0 AS col0, + 32 AS col0 FROM tab1 AS cor0
----
51
32
85
32
91
32

query I rowsort
SELECT DISTINCT - + ( - 85 ) AS col0 FROM tab0 AS cor0
----
85

query I rowsort
SELECT + 87 + 53 AS col2 FROM tab0 AS cor0
----
140
140
140

onlyif mysql # aggregate syntax: 
query I rowsort label-4266
SELECT DISTINCT - COUNT( * ) + - COUNT( * ) + - 21 * 59 * - 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 72 * + 89
----
64428

skipif mysql # not compatible
query I rowsort label-4266
SELECT DISTINCT - COUNT ( * ) + - COUNT ( * ) + - 21 * 59 * - 52 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > - 72 * + 89
----
64428

onlyif mysql # aggregate syntax: 
query I rowsort label-4267
SELECT ALL - COUNT( 80 ) * + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4267
SELECT ALL - COUNT ( 80 ) * + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

query I rowsort
SELECT DISTINCT ( + - col2 ) * col2 + col2 AS col1 FROM tab0
----
-2162
-90
-9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + col1 * - col0 col1 FROM tab2
----
-2295
-4851
-4958

query II rowsort
SELECT ALL 44 + - col0 - + - col1, col0 FROM tab1
----
-36
85
0
91
7
51

query I rowsort
SELECT DISTINCT - col0 + 53 + + - ( + - col1 ) * 66 FROM tab1
----
298
3064
926

query I rowsort
SELECT DISTINCT - + col2 * col2 + + - col2 AS col0 FROM tab0 WHERE + + 23 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4273
SELECT 88 * + CAST( NULL AS SIGNED ) - MAX( ALL - col0 ) - - COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT 88 * + CAST ( NULL AS INTEGER ) - MAX ( ALL - col0 ) - - COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4274
SELECT + col1 DIV + CAST( + 62 AS SIGNED ) + + col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4274
SELECT + col1 / + CAST ( + 62 AS INTEGER ) + + col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT ALL COUNT( DISTINCT - 48 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4275
SELECT ALL COUNT ( DISTINCT - 48 ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 <= + col1 / - + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4277
SELECT - col2 DIV 87 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4277
SELECT - col2 / 87 FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT ALL col0 * - col1 - + 23 - - + col1 * col2 * col0 FROM tab1 cor0
----
24627
286536
67807

query I rowsort
SELECT + 79 FROM tab0 WHERE NOT 3 IS NULL
----
79
79
79

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4280
SELECT + - 0 + CAST( NULL AS SIGNED ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4280
SELECT + - 0 + CAST ( NULL AS INTEGER ) / + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4281
SELECT DISTINCT col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4281
SELECT DISTINCT col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + 27 * + 61 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4283
SELECT ALL - COUNT( * ) - + SUM( ALL - ( + col1 ) ) FROM tab0
----
100

skipif mysql # not compatible
query I rowsort label-4283
SELECT ALL - COUNT ( * ) - + SUM ( ALL - ( + col1 ) ) FROM tab0
----
100

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4284
SELECT ALL CAST( COUNT( * ) AS SIGNED ) + - 92 col0 FROM tab0 AS cor0
----
-89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4284
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) + - 92 col0 FROM tab0 AS cor0
----
-89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 34 AS col2, + col1 - col0 col1 FROM tab2 AS cor0
----
34
-8
34
13
34
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4286
SELECT DISTINCT + COUNT( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4286
SELECT DISTINCT + COUNT ( ALL + col2 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT 15 / - + col0 * + 60 FROM tab1 AS cor0 WHERE + col2 + - + col2 >= ( NULL )
----

query I rowsort
SELECT - - col1 + - 18 AS col2 FROM tab1 AS cor0
----
-13
-4
29

onlyif mysql # aggregate syntax: 
query I rowsort label-4289
SELECT DISTINCT COUNT( * ) * - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4289
SELECT DISTINCT COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab1
----
-9

query I rowsort
SELECT + ( col0 ) + ( + + col0 ) FROM tab1
----
102
170
182

query I rowsort
SELECT ALL col1 + + 69 FROM tab1
----
116
74
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4292
SELECT - 7 + + SUM( - col0 ) FROM tab1
----
-234

skipif mysql # not compatible
query I rowsort label-4292
SELECT - 7 + + SUM ( - col0 ) FROM tab1
----
-234

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT - COUNT( * ) + - - 11 AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-4293
SELECT - COUNT ( * ) + - - 11 AS col2 FROM tab2
----
8

query I rowsort
SELECT - col0 FROM tab2 WHERE + 80 IS NULL
----

query I rowsort
SELECT DISTINCT 93 * 97 AS col1 FROM tab2
----
9021

onlyif mysql # aggregate syntax: 
query I rowsort label-4296
SELECT - MIN( - + col0 ) AS col2 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-4296
SELECT - MIN ( - + col0 ) AS col2 FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4297
SELECT MAX( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-4297
SELECT MAX ( DISTINCT - col0 ) AS col1 FROM tab2 cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4298
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) + - col1 / - - col0 IS NOT NULL
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4298
SELECT ALL - col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) + - col1 / - - col0 IS NOT NULL
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4299
SELECT ALL CAST( - - 57 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
57
57
57

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL CAST ( - - 57 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
57
57
57

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4300
SELECT ALL - CAST( NULL AS SIGNED ) * + 70, - ( + col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-4300
SELECT ALL - CAST ( NULL AS INTEGER ) * + 70, - ( + col2 ) AS col2 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= col2 / + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 8 col2 FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT 73 * 99 * + - col1 * col2 FROM tab1 AS cor0
----
-2131965
-23097492
-9713088

query I rowsort
SELECT DISTINCT - - 12 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
12

query I rowsort
SELECT ALL - 83 + + + col0 + - col1 FROM tab2 AS cor0
----
-75
-88
-96

query I rowsort
SELECT ALL + + col0 - - col2 AS col2 FROM tab1 AS cor0
----
144
147
159

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 * - + col2 BETWEEN + col0 AND + col1 + - col1
----

query I rowsort
SELECT ALL col1 - + - ( col0 ) + col0 * - col1 FROM tab2 AS cor0
----
-2249
-4787
-4883

query I rowsort
SELECT - 27 * - 1 - - 37 FROM tab0 AS cor0
----
64
64
64

query II rowsort
SELECT + col2 * + - col1 AS col1, - 89 AS col2 FROM tab1 AS cor0
----
-1344
-89
-295
-89
-3196
-89

query I rowsort
SELECT col0 / - 39 AS col0 FROM tab1 WHERE + col2 * col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) IS NOT NULL AND col1 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 + - 99 AS col1 FROM tab0
----
-18
-78
-98

query III rowsort
SELECT * FROM tab0 WHERE + 0 * + col2 >= NULL
----

query II rowsort
SELECT ALL col0 AS col2, + 40 AS col1 FROM tab0
----
15
40
87
40
97
40

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * + col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4317
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * + + col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4317
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * + + col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4318
SELECT + MAX( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-4318
SELECT + MAX ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT COUNT( * ) * - - 43 * - 56 FROM tab2
----
-7224

skipif mysql # not compatible
query I rowsort label-4319
SELECT COUNT ( * ) * - - 43 * - 56 FROM tab2
----
-7224

query I rowsort
SELECT + 66 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4321
SELECT ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4321
SELECT ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 84 < + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 19 * + 45 FROM tab1 AS cor0
----
855
855
855

onlyif mysql # aggregate syntax: 
query II rowsort label-4324
SELECT DISTINCT - 16, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-16
-3

skipif mysql # not compatible
query II rowsort label-4324
SELECT DISTINCT - 16, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-16
-3

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL BETWEEN + 0 * + col1 AND - ( - - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4327
SELECT ALL + CAST( NULL AS SIGNED ) + + col2 AS col0, - 34 + + col0 AS col1 FROM tab0
----
NULL
-19
NULL
53
NULL
63

skipif mysql # not compatible
query II rowsort label-4327
SELECT ALL + CAST ( NULL AS INTEGER ) + + col2 AS col0, - 34 + + col0 AS col1 FROM tab0
----
NULL
-19
NULL
53
NULL
63

onlyif mysql # aggregate syntax: 
query I rowsort label-4328
SELECT ALL - - 73 + + + COUNT( 26 ) AS col0 FROM tab0 WHERE NULL <> - 96
----
73

skipif mysql # not compatible
query I rowsort label-4328
SELECT ALL - - 73 + + + COUNT ( 26 ) AS col0 FROM tab0 WHERE NULL <> - 96
----
73

query II rowsort
SELECT - 60 + + col0 AS col1, 81 * + col2 FROM tab0 cor0
----
-45
3807
27
810
37
8019

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 60 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4331
SELECT DISTINCT COUNT( * ) + - 84 col0 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4331
SELECT DISTINCT COUNT ( * ) + - 84 col0 FROM tab0 AS cor0
----
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT DISTINCT - col1 DIV col2 * + col2 AS col0 FROM tab2 cor0
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT - col1 / col2 * + col2 AS col0 FROM tab2 cor0
----
-40
-46
-58

query I rowsort
SELECT - col0 AS col1 FROM tab2 cor0 WHERE 21 * - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 NOT IN ( - + col1, - 16 + col0 + 30 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 15 FROM tab1 AS cor0 LEFT JOIN tab0 AS cor1 ON NOT NULL IS NULL
----
15
15
15

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4336
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * CAST( - 71 AS SIGNED ) = NULL
----

skipif mysql # not compatible
query III rowsort label-4336
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * CAST ( - 71 AS INTEGER ) = NULL
----

query I rowsort
SELECT - col1 - - col1 + - 35 + + - col1 + + + col1 * - 43 AS col2 FROM tab2 AS cor0
----
-2279
-2983
-3423

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 87 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT + MIN( + col0 ) - COUNT( * ) col1 FROM tab2 cor0
----
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4339
SELECT + MIN ( + col0 ) - COUNT ( * ) col1 FROM tab2 cor0
----
43

query I rowsort
SELECT + + 87 + - 24 + - col1 + + col1 * - + col2 FROM tab2 AS cor0
----
-1161
-3094
-3890

query I rowsort
SELECT + 3 FROM tab2 AS cor0 WHERE + col0 IS NOT NULL
----
3
3
3

query II rowsort
SELECT ALL + + col1 - + 54 + + - col2 AS col0, + col1 FROM tab0 AS cor0
----
-152
1
-20
81
-43
21

query I rowsort
SELECT col1 + - ( col0 ) AS col1 FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4344
SELECT + COUNT( + 41 ) + - 0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4344
SELECT + COUNT ( + 41 ) + - 0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT + 73 - + 2 AS col2 FROM tab0 cor0
----
71

query I rowsort
SELECT - col0 * + 40 + - 70 AS col1 FROM tab2 AS cor0
----
-1910
-2630
-3070

query I rowsort
SELECT ALL + + col2 / + col1 * col1 / + 91 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 47 + + - ( - 46 ) AS col0 FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT 40 * - ( + + SUM( col0 ) ) FROM tab2
----
-7400

skipif mysql # not compatible
query I rowsort label-4349
SELECT 40 * - ( + + SUM ( col0 ) ) FROM tab2
----
-7400

query I rowsort
SELECT - col0 / - 37 + - 89 FROM tab0 WHERE NOT + col0 * col1 * + - col2 * + col1 = NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 88 <= col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 29 / + 2 - + 84 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 59 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
59

query I rowsort
SELECT + - 12 FROM ( tab1 AS cor0 CROSS JOIN tab1 cor1 )
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

onlyif mysql # aggregate syntax: 
query I rowsort label-4355
SELECT ALL + + COUNT( * ) * + 83 AS col2 FROM tab1 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-4355
SELECT ALL + + COUNT ( * ) * + 83 AS col2 FROM tab1 AS cor0
----
249

query I rowsort
SELECT + 8 * - 9 AS col2 FROM tab1 AS cor0
----
-72
-72
-72

query II rowsort
SELECT DISTINCT - ( 10 ) * col1, + col1 AS col2 FROM tab1 AS cor0
----
-140
14
-470
47
-50
5

query I rowsort
SELECT - col1 + + - 21 AS col0 FROM tab2 AS cor0
----
-72
-88
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-4359
SELECT + 65 + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-4359
SELECT + 65 + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
62

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * + - col1 + + col2 col0 FROM tab2 cor0
----
-2578
-4431
-5889

query I rowsort
SELECT ALL col2 * 54 * + - 41 + + ( - 88 ) FROM tab2
----
-128500
-51010
-88648

onlyif mysql # aggregate syntax: 
query I rowsort label-4363
SELECT ALL ( SUM( col2 ) ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4363
SELECT ALL ( SUM ( col2 ) ) AS col2 FROM tab2
----
121

query I rowsort
SELECT DISTINCT col1 + - col1 + 45 FROM tab1
----
45

query III rowsort
SELECT * FROM tab1 WHERE + col1 <> - 84 * - 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4366
SELECT DISTINCT - MIN( 23 ) + COUNT( * ) + - 67 * + + 21 * SUM( ALL - col1 ) FROM tab1
----
92842

skipif mysql # not compatible
query I rowsort label-4366
SELECT DISTINCT - MIN ( 23 ) + COUNT ( * ) + - 67 * + + 21 * SUM ( ALL - col1 ) FROM tab1
----
92842

query I rowsort
SELECT DISTINCT - 82 * + 68 FROM tab2
----
-5576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col1 ) col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT - COUNT( * ) * + ( - 83 ) + - 83 * COUNT( 17 ) + - 21 AS col2 FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-4369
SELECT - COUNT ( * ) * + ( - 83 ) + - 83 * COUNT ( 17 ) + - 21 AS col2 FROM tab0 AS cor0
----
-21

query I rowsort
SELECT ALL - 84 AS col0 FROM tab2 WHERE NOT + col1 * - 92 > NULL
----

query I rowsort
SELECT 42 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64c29db9f1cd7ed4ddeb1735e3e0d442

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-4372
SELECT ALL COUNT( * ) + - COUNT( * ), + 47 + - 10 - - CAST( + CAST( - - COUNT( ALL col2 ) AS SIGNED ) AS SIGNED ) * COUNT( * ) AS col1 FROM tab1
----
0
46

skipif mysql # not compatible
query II rowsort label-4372
SELECT ALL COUNT ( * ) + - COUNT ( * ), + 47 + - 10 - - CAST ( + CAST ( - - COUNT ( ALL col2 ) AS INTEGER ) AS INTEGER ) * COUNT ( * ) AS col1 FROM tab1
----
0
46

query I rowsort
SELECT DISTINCT - col1 * - ( - 85 ) * col1 FROM tab0 cor0
----
-37485
-557685
-85

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL NOT BETWEEN - col1 + - ( + + col0 ) AND NULL
----

query I rowsort
SELECT ALL - + col0 FROM tab1 WHERE NOT col0 IS NULL
----
-51
-85
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4376
SELECT * FROM tab1 WHERE NOT + + col0 NOT BETWEEN CAST( NULL AS SIGNED ) + - + col0 * ( col2 ) - - col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4376
SELECT * FROM tab1 WHERE NOT + + col0 NOT BETWEEN CAST ( NULL AS INTEGER ) + - + col0 * ( col2 ) - - col0 AND NULL
----

query II rowsort
SELECT ALL 77 AS col0, 16 AS col2 FROM tab1
----
77
16
77
16
77
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4378
SELECT ALL - 88 * ( + + ( CAST( + col2 AS SIGNED ) ) ) FROM tab0
----
-4136
-8712
-880

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - 88 * ( + + ( CAST ( + col2 AS INTEGER ) ) ) FROM tab0
----
-4136
-8712
-880

query II rowsort
SELECT DISTINCT col0 AS col2, col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # DIV for integer division: 
query I rowsort label-4380
SELECT - col0 DIV - 89 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT - col0 / - 89 FROM tab2
----
0
0
0

query I rowsort
SELECT + col1 + + col0 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
108
96
98

query I rowsort
SELECT 90 AS col2 FROM tab1 AS cor0 WHERE NOT - 72 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL IS NULL ) OR NOT NULL IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 59 FROM tab0 WHERE 47 IS NOT NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4385
SELECT COUNT( * ) * + 56 col2 FROM tab0 WHERE NOT ( col1 + col2 ) = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4385
SELECT COUNT ( * ) * + 56 col2 FROM tab0 WHERE NOT ( col1 + col2 ) = NULL
----
0

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE NOT ( + col2 ) > ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) col2 FROM tab0 WHERE NOT + col1 BETWEEN 16 AND NULL
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT ALL - 3 + + SUM( ALL 92 ) FROM tab0
----
273

skipif mysql # not compatible
query I rowsort label-4388
SELECT ALL - 3 + + SUM ( ALL 92 ) FROM tab0
----
273

query III rowsort
SELECT * FROM tab0 WHERE - 50 + 95 IS NULL
----

query I rowsort
SELECT + 23 + 90 FROM tab2
----
113
113
113

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 26 / col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ( 74 ) + col1 DIV + col2 FROM tab0
----
74
75
76

skipif mysql # not compatible
query I rowsort label-4392
SELECT ( 74 ) + col1 / + col2 FROM tab0
----
74
75
76

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT col1 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4394
SELECT ALL - CAST( NULL AS DECIMAL ) * + MAX( DISTINCT col2 ) FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4394
SELECT ALL - CAST ( NULL AS REAL ) * + MAX ( DISTINCT col2 ) FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4395
SELECT ALL + COUNT( * ) FROM tab1 WHERE NOT col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4395
SELECT ALL + COUNT ( * ) FROM tab1 WHERE NOT col1 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE NOT + col2 + col1 IN ( col0 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4397
SELECT 21 + - COUNT( * ) * + SUM( ALL + col1 ) AS col0 FROM tab0
----
-288

skipif mysql # not compatible
query I rowsort label-4397
SELECT 21 + - COUNT ( * ) * + SUM ( ALL + col1 ) AS col0 FROM tab0
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT - ( COUNT( * ) ) * 11 FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-4398
SELECT - ( COUNT ( * ) ) * 11 FROM tab0
----
-33

query III rowsort
SELECT * FROM tab2 WHERE + col2 + col1 * 17 NOT BETWEEN ( NULL ) AND col0 * - 59
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 59 * 91 AS col2 FROM tab2
----
-5369
-5369
-5369

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 16 col1 FROM tab1
----
1088
1536
944

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 NOT IN ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4403
SELECT DISTINCT 40 DIV - 26 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4403
SELECT DISTINCT 40 / - 26 FROM tab0
----
-1

query I rowsort
SELECT ( - col2 ) * + 55 + 17 FROM tab0 AS cor0
----
-2568
-533
-5428

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT ALL + COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 35 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4405
SELECT ALL + COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 35 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4406
SELECT - CAST( NULL AS SIGNED ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4406
SELECT - CAST ( NULL AS INTEGER ) * - col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4407
SELECT ALL - COUNT( * ) * + 93 FROM tab0 AS cor0
----
-279

skipif mysql # not compatible
query I rowsort label-4407
SELECT ALL - COUNT ( * ) * + 93 FROM tab0 AS cor0
----
-279

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL >= 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4409
SELECT + COUNT( * ) AS col1 FROM tab0 WHERE ( col1 ) NOT IN ( + col2 + + col1 )
----
3

skipif mysql # not compatible
query I rowsort label-4409
SELECT + COUNT ( * ) AS col1 FROM tab0 WHERE ( col1 ) NOT IN ( + col2 + + col1 )
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4410
SELECT + CAST( - 27 AS SIGNED ) - 44 col0 FROM tab2
----
-71
-71
-71

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4410
SELECT + CAST ( - 27 AS INTEGER ) - 44 col0 FROM tab2
----
-71
-71
-71

query III rowsort
SELECT * FROM tab1 WHERE col0 = ( NULL )
----

query I rowsort
SELECT - col2 - - col1 FROM tab2 WHERE NULL NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT DISTINCT MIN( DISTINCT col2 ) AS col1 FROM tab1 WHERE NULL = ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col1 FROM tab1 WHERE NULL = ( + col2 )
----
NULL

query I rowsort
SELECT - col0 + - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE col0 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4416
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4416
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL < + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4417
SELECT - COUNT( DISTINCT col1 ) * 1 AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4417
SELECT - COUNT ( DISTINCT col1 ) * 1 AS col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT ALL + ( + col1 ) * - 8 FROM tab1 AS cor0
----
-112
-376
-40

query I rowsort
SELECT + 96 + col2 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col1 AND 24
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4420
SELECT ALL + + CAST( - col2 AS SIGNED ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

skipif mysql # not compatible
query I rowsort label-4420
SELECT ALL + + CAST ( - col2 AS INTEGER ) * - col2 FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT 62 AS col0 FROM tab1 AS cor0 WHERE + ( - 12 ) IS NOT NULL
----
62

query I rowsort
SELECT DISTINCT ( col2 ) AS col2 FROM tab2 WHERE NOT - col0 * col0 BETWEEN - 98 AND ( col0 )
----
23
40
58

query I rowsort
SELECT - col1 * + 24 * 56 FROM tab2
----
-103488
-68544
-90048

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col0 ) IN ( + col0 * 75 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4425
SELECT DISTINCT 7 DIV - SUM( - 57 ) DIV + COUNT( * ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4425
SELECT DISTINCT 7 / - SUM ( - 57 ) / + COUNT ( * ) AS col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab0 WHERE NOT NULL NOT IN ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL col0 / CAST( NULL AS SIGNED ) / - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL col0 / CAST ( NULL AS INTEGER ) / - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 99 < NULL
----

query I rowsort
SELECT 56 * - - 55 * + 48 FROM tab1 AS cor0
----
147840
147840
147840

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4430
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - 23 * ( + CAST( col0 AS SIGNED ) ) = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4430
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - - 23 * ( + CAST ( col0 AS INTEGER ) ) = col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - ( + + 10 ) AS col0 FROM tab2
----
-10
-10
-10

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 BETWEEN NULL AND - ( + 43 )
----
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4433
SELECT ALL * FROM tab0 WHERE NULL <= - col2 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4433
SELECT ALL * FROM tab0 WHERE NULL <= - col2 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 73 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL <> NULL
----

query I rowsort
SELECT DISTINCT - - col0 + 97 FROM tab1 AS cor0
----
148
182
188

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 22 <= ( - + col1 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT ALL - + SUM( - 73 ) col1 FROM tab2 AS cor0
----
219

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4437
SELECT ALL - + SUM ( - 73 ) col1 FROM tab2 AS cor0
----
219

onlyif mysql # aggregate syntax: 
query I rowsort label-4438
SELECT + 54 + + COUNT( * ) * 43 FROM tab1 AS cor0
----
183

skipif mysql # not compatible
query I rowsort label-4438
SELECT + 54 + + COUNT ( * ) * 43 FROM tab1 AS cor0
----
183

onlyif mysql # DIV for integer division: 
query I rowsort label-4439
SELECT + - col2 DIV - + ( + col2 ) FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4439
SELECT + - col2 / - + ( + col2 ) FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT 53 FROM tab2 WHERE NOT + col0 <> ( + + 74 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4441
SELECT ALL * FROM tab2 WHERE NOT ( + ( - col1 ) ) <> - 9 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4441
SELECT ALL * FROM tab2 WHERE NOT ( + ( - col1 ) ) <> - 9 * CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + 80 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE 50 NOT IN ( 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE + + 29 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + - col2 + 78 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + + ( + + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4448
SELECT CAST( + + 44 AS SIGNED ) * - 21 - col1 AS col0 FROM tab0
----
-1005
-925
-945

skipif mysql # not compatible
query I rowsort label-4448
SELECT CAST ( + + 44 AS INTEGER ) * - 21 - col1 AS col0 FROM tab0
----
-1005
-925
-945

query I rowsort
SELECT - 75 + + + 68 - col0 + col2 + + 0 * col1 FROM tab1 AS cor0
----
-30
-33
38

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 <= - + 59 + + - 67 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 5 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 74665fbb47d5b17da011bca567195b21

onlyif mysql # aggregate syntax: 
query I rowsort label-4452
SELECT DISTINCT - + COUNT( * ) col1 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-4452
SELECT DISTINCT - + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 20 * + 79 col0 FROM tab1 AS cor0
----
-1580
-1580
-1580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4454
SELECT - ( + 23 ) DIV + + 66 + - - MIN( ALL - CAST( + ( col0 ) AS SIGNED ) ) + ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-4454
SELECT - ( + 23 ) / + + 66 + - - MIN ( ALL - CAST ( + ( col0 ) AS INTEGER ) ) + ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 51 * - + col2 col0 FROM tab0 AS cor0
----
2397
5049
510

onlyif mysql # aggregate syntax: 
query I rowsort label-4456
SELECT ALL + MAX( - col0 ) AS col0 FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4456
SELECT ALL + MAX ( - col0 ) AS col0 FROM tab1 cor0
----
-51

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( - col1 ) AND col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col1 ) - - + col2 = + col2
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + + col0 ) ) NOT IN ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 IN ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - col2 AS col2, col2 * col1 * col0 AS col2 FROM tab1 WHERE NOT - col1 BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 61 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4463
SELECT - COUNT( * ) * + MAX( DISTINCT - + col2 ) FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4463
SELECT - COUNT ( * ) * + MAX ( DISTINCT - + col2 ) FROM tab2
----
69

query II rowsort
SELECT ALL col1, col1 * + + col0 FROM tab2
----
51
2346
67
5025
77
4928

query II rowsort
SELECT ALL + col2, - 42 * - col1 FROM tab1
----
59
210
68
1974
96
588

query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NOT ( NULL BETWEEN - 28 AND + + 46 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4467
SELECT + SUM( DISTINCT col2 ) col1 FROM tab1
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4467
SELECT + SUM ( DISTINCT col2 ) col1 FROM tab1
----
223

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4468
SELECT DISTINCT CAST( + - col0 AS SIGNED ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-4468
SELECT DISTINCT CAST ( + - col0 AS INTEGER ) FROM tab1
----
-51
-85
-91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col1, + 60 FROM tab1 AS cor0
----
-14
60
-47
60
-5
60

onlyif mysql # aggregate syntax: 
query II rowsort label-4471
SELECT ALL 70, - COUNT( * ) AS col1 FROM tab0 cor0
----
70
-3

skipif mysql # not compatible
query II rowsort label-4471
SELECT ALL 70, - COUNT ( * ) AS col1 FROM tab0 cor0
----
70
-3

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE NOT col0 + 62 * - - col1 IS NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - ( + + col0 ) + - 65 AS col2 FROM tab1
----
-116
-150
-156

query I rowsort
SELECT ALL col0 * - col0 * + - col1 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT MAX( + 7 ) * + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-4475
SELECT MAX ( + 7 ) * + COUNT ( * ) FROM tab2
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( + col1 ) - - - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - ( - col1 ) AS col1, col1 * col2 * + col2 AS col1 FROM tab1 cor0
----
14
129024
47
217328
5
17405

onlyif mysql # DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT 5 DIV + ( - - col0 ) * - col1 + + col1 - + - col0 * - - 52 + - col1 FROM tab1 cor0
----
2652
4420
4732

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT 5 / + ( - - col0 ) * - col1 + + col1 - + - col0 * - - 52 + - col1 FROM tab1 cor0
----
2652
4420
4732

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - 56 / col2 * - ( - - col2 ) >= - col0 + + col0 )
----

query I rowsort
SELECT DISTINCT - 72 + - col2 AS col2 FROM tab0
----
-119
-171
-82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 74 + - ( + + col1 ) + - + 62, - 1 col2 FROM tab1
----
-2
-1
-35
-1
7
-1

query II rowsort
SELECT DISTINCT - col0 AS col0, col0 FROM tab0
----
-15
15
-87
87
-97
97

query I rowsort
SELECT - 23 + + - col1 AS col2 FROM tab2
----
-100
-74
-90

query I rowsort
SELECT + col1 + col0 * - 1 FROM tab2
----
-8
13
5

query I rowsort
SELECT 82 + + col1 AS col0 FROM tab2
----
133
149
159

onlyif mysql # aggregate syntax: 
query I rowsort label-4486
SELECT DISTINCT + 45 + + MIN( - col2 ) FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4486
SELECT DISTINCT + 45 + + MIN ( - col2 ) FROM tab1
----
-51

query I rowsort
SELECT 41 * - + 30 * - + col2 FROM tab2
----
28290
49200
71340

query I rowsort
SELECT DISTINCT col2 + - 0 AS col2 FROM tab0
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4489
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 47 + + CAST( NULL AS SIGNED ) - - 22 + - col2 BETWEEN 53 AND - 18
----

skipif mysql # not compatible
query III rowsort label-4489
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 47 + + CAST ( NULL AS INTEGER ) - - 22 + - col2 BETWEEN 53 AND - 18
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4490
SELECT ALL + 43 - - CAST( - COUNT( * ) AS SIGNED ) DIV + - 90 AS col1 FROM tab1 cor0
----
43

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL + 43 - - CAST ( - COUNT ( * ) AS INTEGER ) / + - 90 AS col1 FROM tab1 cor0
----
43

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT + col0 * - col0 + - - col1 + + col1 FROM tab2 AS cor0
----
-2014
-3942
-5491

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + 36 + col0 + + 19 * 43 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4494
SELECT + - col0 DIV - ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4494
SELECT + - col0 / - ( - col0 ) FROM tab1 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4495
SELECT DISTINCT SUM( DISTINCT - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT SUM ( DISTINCT - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 72 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4497
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4497
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT NULL <= + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4498
SELECT - MIN( CAST( - col1 AS SIGNED ) ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4498
SELECT - MIN ( CAST ( - col1 AS INTEGER ) ) FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT ALL + CAST( 91 AS SIGNED ) AS col1 FROM tab1
----
91
91
91

skipif mysql # not compatible
query I rowsort label-4499
SELECT ALL + CAST ( 91 AS INTEGER ) AS col1 FROM tab1
----
91
91
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( - col1 ) >= ( - col0 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( + col2 * - col0 + + - 37 + - col1 )
----

query I rowsort
SELECT - col1 * - - col1 AS col2 FROM tab1
----
-196
-2209
-25

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 46 + col2 + - + col2 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 27 + - - col2 AS col1 FROM tab2
----
50
67
85

query I rowsort
SELECT - col1 FROM tab2 AS cor0 WHERE NOT + 64 IS NULL
----
-51
-67
-77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col2 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4507
SELECT ALL COUNT( * ) + + + 88 FROM tab2
----
91

skipif mysql # not compatible
query I rowsort label-4507
SELECT ALL COUNT ( * ) + + + 88 FROM tab2
----
91

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 + - 54 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 - + col2 + + + col1 col1 FROM tab2 AS cor0
----
-3
-49
5

query II rowsort
SELECT col1, - col1 * - col1 + ( + 4 ) * - col2 * + 59 FROM tab0 AS cor0
----
1
-23363
21
-1919
81
-4531

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-4512
SELECT DISTINCT - - col1 DIV + 29 + - + 72 FROM tab2 AS cor0
----
-70
-71

skipif mysql # not compatible
query I rowsort label-4512
SELECT DISTINCT - - col1 / + 29 + - + 72 FROM tab2 AS cor0
----
-70
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT + COUNT( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4513
SELECT + COUNT ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4514
SELECT ALL + 58 AS col2, COUNT( * ) AS col1 FROM tab2 AS cor0
----
58
3

skipif mysql # not compatible
query II rowsort label-4514
SELECT ALL + 58 AS col2, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
58
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + - - col2 AS col0, - col1 col1 FROM tab1
----
110
-14
115
-47
64
-5

query I rowsort
SELECT - 10 FROM tab0 WHERE ( + 43 ) IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT col1 + - col1 IS NULL
----
10
47
99

query I rowsort
SELECT ALL + col0 + - - 61 + - + col2 AS col2 FROM tab2
----
78
84
85

query II rowsort
SELECT DISTINCT + col0 * + + 69 * + - 20 AS col1, 59 AS col0 FROM tab2 WHERE NULL IN ( 78 * + col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE ( NOT - 61 - col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + - col1 col0 FROM tab1
----
138
65
90

query II rowsort
SELECT ALL 95 AS col2, + 25 FROM tab1 WHERE + + col1 + ( + col2 ) + ( - col1 ) * + + 72 * 89 IS NOT NULL
----
95
25
95
25
95
25

query I rowsort
SELECT + 56 FROM tab2 AS cor0 WHERE NULL <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 15 <> col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4525
SELECT 37 * + COUNT( * ) col0 FROM tab2
----
111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4525
SELECT 37 * + COUNT ( * ) col0 FROM tab2
----
111

onlyif mysql # aggregate syntax: 
query I rowsort label-4526
SELECT COUNT( * ) * - MIN( ALL + - col2 ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-4526
SELECT COUNT ( * ) * - MIN ( ALL + - col2 ) FROM tab0
----
297

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4527
SELECT + MAX( + 80 ) DIV - - COUNT( * ) FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-4527
SELECT + MAX ( + 80 ) / - - COUNT ( * ) FROM tab1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4528
SELECT - + CAST( + + COUNT( * ) AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4528
SELECT - + CAST ( + + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4529
SELECT 56 AS col2, ( - - SUM( - col1 ) ) AS col2 FROM tab2 AS cor0
----
56
-195

skipif mysql # not compatible
query II rowsort label-4529
SELECT 56 AS col2, ( - - SUM ( - col1 ) ) AS col2 FROM tab2 AS cor0
----
56
-195

query I rowsort
SELECT ALL + col2 * + 55 * - 99 FROM tab1 AS cor0
----
-321255
-370260
-522720

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 74 + - col2 / col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col0 + - 47 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * - + 31 AS col2 FROM tab1 AS cor0
----
-1829
-2108
-2976

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 AS col2, 66 * 93 col0 FROM tab2 AS cor0
----
23
6138
40
6138
58
6138

query II rowsort
SELECT ALL - 52 AS col1, + col1 AS col0 FROM tab1 AS cor0
----
-52
14
-52
47
-52
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4537
SELECT DISTINCT - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT DISTINCT - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0
----
NULL

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE - 91 IS NOT NULL
----
-1
-21
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT ALL col0 * CAST( 64 AS SIGNED ) + ( 66 ) AS col2 FROM tab2
----
3010
4162
4866

skipif mysql # not compatible
query I rowsort label-4539
SELECT ALL col0 * CAST ( 64 AS INTEGER ) + ( 66 ) AS col2 FROM tab2
----
3010
4162
4866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 37 col1 FROM tab1
----
37
37
37

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN col0 + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 + - 72 + - - col0 AS col1 FROM tab1
----
72
75
87

query I rowsort
SELECT + ( 96 ) AS col1 FROM tab1
----
96
96
96

query I rowsort
SELECT col0 + - col0 + col1 AS col1 FROM tab1
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 + - - 49 * - col0 <= + col2 + - col2
----

query I rowsort
SELECT DISTINCT - - 90 * - 32 + ( - col1 ) FROM tab2 cor0
----
-2931
-2947
-2957

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4547
SELECT DISTINCT * FROM tab0 WHERE NULL = + CAST( NULL AS SIGNED ) * - 56
----

skipif mysql # not compatible
query III rowsort label-4547
SELECT DISTINCT * FROM tab0 WHERE NULL = + CAST ( NULL AS INTEGER ) * - 56
----

query II rowsort
SELECT DISTINCT col0 AS col0, 80 FROM tab1
----
51
80
85
80
91
80

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT NULL = 8
----

query I rowsort
SELECT + col0 FROM tab2 WHERE NULL BETWEEN - col1 - - + col0 AND - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4551
SELECT col2, - col2 - col1 - + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-4551
SELECT col2, - col2 - col1 - + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
59
NULL
68
NULL
96
NULL

query I rowsort
SELECT ALL 29 - + ( col0 ) AS col2 FROM tab1
----
-22
-56
-62

query I rowsort
SELECT ALL - col0 - + col2 + + 97 FROM tab0 cor0
----
-99
0
35

query I rowsort
SELECT ( + col1 ) + + - 79 AS col1 FROM tab0 AS cor0
----
-58
-78
2

query I rowsort
SELECT + 48 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col1 - + + 62 AS col1 FROM tab2 AS cor0
----
-11
15
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4557
SELECT DISTINCT + MIN( + - col0 ) * 50 AS col0 FROM tab0 AS cor0
----
-4850

skipif mysql # not compatible
query I rowsort label-4557
SELECT DISTINCT + MIN ( + - col0 ) * 50 AS col0 FROM tab0 AS cor0
----
-4850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT COUNT( * ) + + COUNT( * ) * + CAST( NULL AS SIGNED ) / 85 * + MIN( + 61 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT COUNT ( * ) + + COUNT ( * ) * + CAST ( NULL AS INTEGER ) / 85 * + MIN ( + 61 ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4559
SELECT 29 DIV - ( + COUNT( * ) ) + - COUNT( * ) * - ( + COUNT( * ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4559
SELECT 29 / - ( + COUNT ( * ) ) + - COUNT ( * ) * - ( + COUNT ( * ) ) FROM tab0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4560
SELECT CAST( NULL AS DECIMAL ) + - col0 + - + 98 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4560
SELECT CAST ( NULL AS REAL ) + - col0 + - + 98 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT + 48 AS col1, col1 * + col0 * + - col0 FROM tab1
----
48
-36125
48
-36414
48
-389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT DISTINCT - SUM( - + ( col2 ) ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4562
SELECT DISTINCT - SUM ( - + ( col2 ) ) FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col2 ) BETWEEN - ( col1 ) AND - col1 * + col2 + 71
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4564
SELECT DISTINCT + 73 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col0 * - col2 - + col2 * - CAST( col2 AS SIGNED ) + - + 75 - col0 + - + col2 - col2 / + 90, - 94, - col0 )
----

skipif mysql # not compatible
query I rowsort label-4564
SELECT DISTINCT + 73 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col0 * - col2 - + col2 * - CAST ( col2 AS INTEGER ) + - + 75 - col0 + - + col2 - col2 / + 90, - 94, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT + - 45 * COUNT( ALL col1 ) FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-4565
SELECT + - 45 * COUNT ( ALL col1 ) FROM tab2 AS cor0
----
-135

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4566
SELECT + - COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) + - 65 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4566
SELECT + - COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) + - 65 IS NOT NULL
----
-3

query I rowsort
SELECT 85 * + col1 + + col0 AS col1 FROM tab1 AS cor0
----
1241
4086
510

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= - 71
----

query I rowsort
SELECT + 34 + - - ( - col0 ) FROM tab2 AS cor0
----
-12
-30
-41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4570
SELECT - col1 + - col2 + - 21 * + - CAST( NULL AS DECIMAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4570
SELECT - col1 + - col2 + - 21 * + - CAST ( NULL AS REAL ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 66 + + col1 AS col2 FROM tab1
----
113
71
80

onlyif mysql # aggregate syntax: 
query I rowsort label-4572
SELECT DISTINCT + MAX( DISTINCT 4 ) FROM tab1 cor0
----
4

skipif mysql # not compatible
query I rowsort label-4572
SELECT DISTINCT + MAX ( DISTINCT 4 ) FROM tab1 cor0
----
4

query II rowsort
SELECT ALL + col2 AS col2, + ( - - col0 ) AS col1 FROM tab0 AS cor0
----
10
87
47
15
99
97

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + 75 + - + col0 = - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 25 * + 29 + col0 * + - col1 - - col2 AS col2 FROM tab1 AS cor0
----
-1091
-1343
-4934

query I rowsort
SELECT - 49 FROM tab2 cor0
----
-49
-49
-49

query I rowsort
SELECT - col2 * ( - + 71 ) AS col0 FROM tab1 AS cor0
----
4189
4828
6816

query I rowsort
SELECT DISTINCT 63 * - + 43 + - - col0 - + - 69 * col0 * col1 - - col2 * - col1 FROM tab0 AS cor0
----
123231
3982
77334

query I rowsort
SELECT DISTINCT + 12 * - + col0 AS col1 FROM tab2 AS cor0
----
-552
-768
-900

query I rowsort
SELECT ALL + - 92 FROM tab2 AS cor0 WHERE NULL <= col1
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NULL NOT BETWEEN + col1 AND 30
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL < + 95 * - + col1 * - + col1 * + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4583
SELECT - col1 * - CAST( - col2 AS SIGNED ) FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-4583
SELECT - col1 * - CAST ( - col2 AS INTEGER ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL 12 * - col0 AS col2 FROM tab2
----
-552
-768
-900

query I rowsort
SELECT - col0 * 60 AS col1 FROM tab2
----
-2760
-3840
-4500

onlyif mysql # DIV for integer division: 
query I rowsort label-4586
SELECT - ( - 18 ) DIV col0 * - 16 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4586
SELECT - ( - 18 ) / col0 * - 16 AS col2 FROM tab2
----
0
0
0

query II rowsort
SELECT - - col0 AS col0, 23 FROM tab2 AS cor0
----
46
23
64
23
75
23

query I rowsort
SELECT - col0 * - + col1 + - 19 * - col1 * + 1 AS col0 FROM tab0 WHERE NOT + col1 IN ( + ( + + col2 ) )
----
116
2226
2754

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT DISTINCT 1 * - COUNT( DISTINCT - - ( - 1 ) ) FROM tab0, tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4589
SELECT DISTINCT 1 * - COUNT ( DISTINCT - - ( - 1 ) ) FROM tab0, tab1 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - col2 col0, col1 - + 6 FROM tab1 AS cor0
----
-59
-1
-68
41
-96
8

onlyif mysql # aggregate syntax: 
query I rowsort label-4591
SELECT 90 * + + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-4591
SELECT 90 * + + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
-270

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, - col2 * - + col2 col1 FROM tab0 AS cor0
----
15
2209
87
100
97
9801

query I rowsort
SELECT DISTINCT - 75 FROM tab1 AS cor0 WHERE ( NOT ( NOT 0 > NULL ) ) OR NULL IS NOT NULL
----

query II rowsort
SELECT ALL - col0 AS col2, + 98 AS col1 FROM tab1 AS cor0
----
-51
98
-85
98
-91
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4595
SELECT DISTINCT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4595
SELECT DISTINCT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4596
SELECT + - 9 * COUNT( * ) + + MIN( ALL + + col2 ) col0 FROM tab0 AS cor0
----
-17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4596
SELECT + - 9 * COUNT ( * ) + + MIN ( ALL + + col2 ) col0 FROM tab0 AS cor0
----
-17

query I rowsort
SELECT DISTINCT - col0 * + 91 FROM tab0
----
-1365
-7917
-8827

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT DISTINCT COUNT( * ) * - + COUNT( * ) * - - 59 + + 70 FROM tab1
----
-461

skipif mysql # not compatible
query I rowsort label-4598
SELECT DISTINCT COUNT ( * ) * - + COUNT ( * ) * - - 59 + + 70 FROM tab1
----
-461

query I rowsort
SELECT col1 + + 67 * + col0 AS col2 FROM tab1
----
3431
5700
6144

query I rowsort
SELECT DISTINCT + col0 * + - col1 + + + 29 AS col1 FROM tab1
----
-396
-4248
-685

query II rowsort
SELECT - + col2 + 94 AS col1, col2 AS col0 FROM tab0 AS cor0
----
-5
99
47
47
84
10

query II rowsort
SELECT DISTINCT col1 - - 73 AS col2, 44 + - col1 FROM tab0 AS cor0
----
154
-37
74
43
94
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT ALL - ( + - COUNT( * ) ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4603
SELECT ALL - ( + - COUNT ( * ) ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-4604
SELECT + col2 DIV ( + + col0 ), + col0 * - 25 AS col0 FROM tab2 AS cor0
----
0
-1150
0
-1600
0
-1875

skipif mysql # not compatible
query II rowsort label-4604
SELECT + col2 / ( + + col0 ), + col0 * - 25 AS col0 FROM tab2 AS cor0
----
0
-1150
0
-1600
0
-1875

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 NOT IN ( col1 + + col0 * + col2 + - col2, col1 )
----

query I rowsort
SELECT 87 * - + col2 FROM tab1
----
-5133
-5916
-8352

query I rowsort
SELECT DISTINCT - 72 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT DISTINCT - + 39 + - COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-48

skipif mysql # not compatible
query I rowsort label-4608
SELECT DISTINCT - + 39 + - COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + + 40 < - 38 / - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + + 65 col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND + col0
----

query II rowsort
SELECT 57 AS col2, - 77 FROM tab2 cor0
----
57
-77
57
-77
57
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4612
SELECT DISTINCT - + COUNT( ALL - + 73 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT - + COUNT ( ALL - + 73 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 49 * + col0 * - col2 FROM tab2
----
-125440
-213150
-51842

query I rowsort
SELECT DISTINCT col2 * + col0 * 28 AS col2 FROM tab1
----
137088
140420
173264

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT - ( - MIN( DISTINCT - 77 ) ) AS col2 FROM tab0
----
-77

skipif mysql # not compatible
query I rowsort label-4615
SELECT - ( - MIN ( DISTINCT - 77 ) ) AS col2 FROM tab0
----
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4616
SELECT DISTINCT + ( + MAX( ALL + col1 ) ) col0 FROM tab0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4616
SELECT DISTINCT + ( + MAX ( ALL + col1 ) ) col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4617
SELECT DISTINCT COUNT( * ) * + 75 AS col1 FROM tab2
----
225

skipif mysql # not compatible
query I rowsort label-4617
SELECT DISTINCT COUNT ( * ) * + 75 AS col1 FROM tab2
----
225

query I rowsort
SELECT col1 AS col2 FROM tab2 WHERE NOT ( NULL = ( 36 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4619
SELECT COUNT( * ) * - COUNT( * ) FROM tab0 WHERE NOT + + col0 >= + col2
----
-4

skipif mysql # not compatible
query I rowsort label-4619
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab0 WHERE NOT + + col0 >= + col2
----
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-4620
SELECT ALL COUNT( * ) * + - 66 * - - SUM( - 24 ) * - 84 + - - COUNT( - + col0 ) FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4620
SELECT ALL COUNT ( * ) * + - 66 * - - SUM ( - 24 ) * - 84 + - - COUNT ( - + col0 ) FROM tab1 WHERE NOT + col1 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT 58 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
58

query I rowsort
SELECT + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4623
SELECT - col0 AS col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0
----

skipif mysql # not compatible
query II rowsort label-4623
SELECT - col0 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NULL ) > + col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4624
SELECT ( - col1 ) FROM tab1 AS cor0 WHERE NOT + CAST( + 53 AS DECIMAL ) <> NULL
----

skipif mysql # not compatible
query I rowsort label-4624
SELECT ( - col1 ) FROM tab1 AS cor0 WHERE NOT + CAST ( + 53 AS REAL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4625
SELECT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * 0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-4625
SELECT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * 0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4626
SELECT DISTINCT col1 DIV 41 AS col0 FROM tab1 cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-4626
SELECT DISTINCT col1 / 41 AS col0 FROM tab1 cor0
----
0
1

query I rowsort
SELECT - - col2 + - + 58 AS col0 FROM tab0 AS cor0
----
-11
-48
41

onlyif mysql # aggregate syntax: 
query I rowsort label-4628
SELECT + + COUNT( * ) + - 91 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4628
SELECT + + COUNT ( * ) + - 91 FROM tab1 AS cor0
----
-88

query I rowsort
SELECT - col0 + - - 19 AS col2 FROM tab2 AS cor0
----
-27
-45
-56

query I rowsort
SELECT ALL ( - col0 ) * + + col0 AS col1 FROM tab0 AS cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL - col2 FROM tab2 AS cor0 WHERE ( NULL ) > + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4632
SELECT DISTINCT col1 / - col1 * + - 24 + - + CAST( + 55 AS DECIMAL ) col0 FROM tab2 AS cor0 WHERE NOT ( col0 IS NOT NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4632
SELECT DISTINCT col1 / - col1 * + - 24 + - + CAST ( + 55 AS REAL ) col0 FROM tab2 AS cor0 WHERE NOT ( col0 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4633
SELECT DISTINCT + + 9 DIV col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT DISTINCT + + 9 / col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4634
SELECT + CAST( NULL AS SIGNED ) * + + 4 * - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4634
SELECT + CAST ( NULL AS INTEGER ) * + + 4 * - + col2 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT - COUNT( 27 ) col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4635
SELECT - COUNT ( 27 ) col2 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - col0 * + - 87 AS col2 FROM tab0
----
1305
7569
8439

onlyif mysql # DIV for integer division: 
query II rowsort label-4637
SELECT ALL + col2 DIV + + 45 AS col1, - col0 * - col2 FROM tab1
----
1
5015
1
6188
2
4896

skipif mysql # not compatible
query II rowsort label-4637
SELECT ALL + col2 / + + 45 AS col1, - col0 * - col2 FROM tab1
----
1
5015
1
6188
2
4896

query I rowsort
SELECT DISTINCT + ( - 25 ) + + col1 * - - 5 + - col0 AS col0 FROM tab0
----
-117
-7
365

onlyif mysql # aggregate syntax: 
query I rowsort label-4639
SELECT DISTINCT ( - COUNT( * ) ) + - + 57 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-4639
SELECT DISTINCT ( - COUNT ( * ) ) + - + 57 FROM tab0
----
-60

query I rowsort
SELECT + 71 + + 69 AS col0 FROM tab0 WHERE + + col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4641
SELECT DISTINCT + COUNT( * ) DIV - + COUNT( * ) + - - COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-4641
SELECT DISTINCT + COUNT ( * ) / - + COUNT ( * ) + - - COUNT ( * ) FROM tab1
----
2

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col1 <> NULL OR NOT NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4643
SELECT DISTINCT col0 DIV 3 AS col1 FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-4643
SELECT DISTINCT col0 / 3 AS col1 FROM tab2
----
15
21
25

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 24 * + - col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT col0 <> + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT ALL ( MIN( ALL + - 54 ) ) - - - 93 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-147

skipif mysql # not compatible
query I rowsort label-4646
SELECT ALL ( MIN ( ALL + - 54 ) ) - - - 93 AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
-147

query I rowsort
SELECT DISTINCT + 91 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 * - 45 col1, 22 * col2 AS col1 FROM tab0 AS cor0
----
-3915
220
-4365
2178
-675
1034

onlyif mysql # aggregate syntax: 
query I rowsort label-4649
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col0 )
----
0

skipif mysql # not compatible
query I rowsort label-4649
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 NOT IN ( - col0 )
----
0

query I rowsort
SELECT DISTINCT + col2 AS col0 FROM tab0 cor0 WHERE col1 * col2 NOT BETWEEN - + col0 AND NULL
----

query II rowsort
SELECT ALL + + col0 * col1 AS col1, + col1 * - ( + ( ( + col1 ) ) ) FROM tab0 AS cor0
----
1215
-6561
1827
-441
97
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 / - 35 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4654
SELECT CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4654
SELECT CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4655
SELECT ALL + COUNT( * ) * + + COUNT( DISTINCT + - 65 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4655
SELECT ALL + COUNT ( * ) * + + COUNT ( DISTINCT + - 65 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT ALL 3, col1 * + - col0 AS col2 FROM tab0
----
3
-1215
3
-1827
3
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 - - col1 < + + col0
----

query I rowsort
SELECT ALL + 97 * - + col1 AS col1 FROM tab0
----
-2037
-7857
-97

query III rowsort
SELECT * FROM tab2 WHERE NOT - - ( - col2 ) NOT BETWEEN col1 AND NULL
----

query I rowsort
SELECT ALL - 22 * - + col1 * - - col1 AS col0 FROM tab0 AS cor0
----
144342
22
9702

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( ( NOT ( NOT NULL IS NOT NULL ) ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4662
SELECT + ( - COUNT( * ) ) AS col2, 52 AS col0 FROM tab2
----
-3
52

skipif mysql # not compatible
query II rowsort label-4662
SELECT + ( - COUNT ( * ) ) AS col2, 52 AS col0 FROM tab2
----
-3
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT SUM( DISTINCT + 57 ) FROM tab0
----
57

skipif mysql # not compatible
query I rowsort label-4663
SELECT SUM ( DISTINCT + 57 ) FROM tab0
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4664
SELECT - MIN( + 83 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

skipif mysql # not compatible
query I rowsort label-4664
SELECT - MIN ( + 83 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-83

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 8 * - 30 AND col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4666
SELECT DISTINCT - col0 DIV - - ( - col0 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4666
SELECT DISTINCT - col0 / - - ( - col0 ) FROM tab0 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4667
SELECT DISTINCT ( - col1 ) DIV - + col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4667
SELECT DISTINCT ( - col1 ) / - + col0 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 * + - col0 + - col1 col1 FROM tab0 AS cor0
----
-1371
-7503
-8343

query I rowsort
SELECT 65 + + col2 + - col1 AS col1 FROM tab2
----
28
37
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT DISTINCT COUNT( * ) + + - 68 AS col0 FROM tab2
----
-65

skipif mysql # not compatible
query I rowsort label-4670
SELECT DISTINCT COUNT ( * ) + + - 68 AS col0 FROM tab2
----
-65

query I rowsort
SELECT 13 + + + col1 AS col0 FROM tab0
----
14
34
94

query I rowsort
SELECT DISTINCT + col0 - - col2 * - 82 AS col0 FROM tab1
----
-4753
-5485
-7821

onlyif mysql # aggregate syntax: 
query I rowsort label-4673
SELECT ALL + COUNT( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4673
SELECT ALL + COUNT ( ALL - col2 ) AS col1 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 / + col1 IN ( col2, col1, 94 * - 56, + + 17, + col1, col1 * - 93 )
----

query II rowsort
SELECT DISTINCT - 18 + + col1 + col2 AS col1, + col2 AS col2 FROM tab1 cor0
----
46
59
92
96
97
68

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4676
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4676
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4677
SELECT DISTINCT COUNT( * ) * - 78 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-234

skipif mysql # not compatible
query I rowsort label-4677
SELECT DISTINCT COUNT ( * ) * - 78 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-234

query I rowsort
SELECT 69 - - - 49 FROM tab2
----
20
20
20

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col0 * - col1 * - + 92 IS NULL AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 77 * 39 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d91930d3e593f3fc6c168f79fe639910

onlyif mysql # aggregate syntax: 
query I rowsort label-4681
SELECT DISTINCT COUNT( - 70 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4681
SELECT DISTINCT COUNT ( - 70 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col2 * + col1 - - col0 FROM tab2 cor0
----
-1127
-3016
-3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4683
SELECT - - 0 * SUM( + col1 ) AS col2 FROM tab0 cor0 WHERE NOT col0 + 22 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT - - 0 * SUM ( + col1 ) AS col2 FROM tab0 cor0 WHERE NOT col0 + 22 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 col2 FROM tab2 cor0
----
-18
-18
-18

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4686
SELECT ALL ( COUNT( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4686
SELECT ALL ( COUNT ( * ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT col0 AS col2, - col2 FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE NOT 74 > col1 + + col2 + - + col0 + + col0
----
15
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * col1 * - 0 AS col1, col0 + + col0 col0 FROM tab0 cor0
----
0
174
0
194
0
30

query I rowsort
SELECT DISTINCT - 5 * - col2 AS col2 FROM tab0 AS cor0
----
235
495
50

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 * - + col2 * + 47 AND + 40 / + - ( - + 41 ) * + + col2 + + ( col0 ) + - + col2 / 86
----

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE 9 + col1 - 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 62 + + col0 FROM tab1
----
113
147
153

query I rowsort
SELECT - + 61 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + 39 + + + 31 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 + col2 col0 FROM tab1 AS cor0
----
13
22
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4696
SELECT + col1 * + - CAST( + col0 AS SIGNED ) FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-4696
SELECT + col1 * + - CAST ( + col0 AS INTEGER ) FROM tab1 AS cor0
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT 16 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT + COUNT( + col2 ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4698
SELECT + COUNT ( + col2 ) * + COUNT ( * ) FROM tab2
----
9

query I rowsort
SELECT DISTINCT + ( - col0 ) + 96 FROM tab2
----
21
32
50

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4700
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-4700
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4701
SELECT DISTINCT - + MAX( DISTINCT + 1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4701
SELECT DISTINCT - + MAX ( DISTINCT + 1 ) AS col0 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT - ( - - col2 ) + col1 FROM tab0
----
-98
11
34

query I rowsort
SELECT - col1 * col2 - + - col2 FROM tab0
----
-200
-3760
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4704
SELECT ( - AVG ( CAST( NULL AS DECIMAL ) ) ) - - ( - - COUNT( * ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4704
SELECT ( - AVG ( CAST ( NULL AS REAL ) ) ) - - ( - - COUNT ( * ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL - 93 * col0 + + - col0 FROM tab2 AS cor0
----
-4324
-6016
-7050

query II rowsort
SELECT DISTINCT col0 * - + 81 AS col2, - col0 + + col1 FROM tab2 AS cor0
----
-3726
5
-5184
13
-6075
-8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT + - col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL ( + - col2 ) * - 2 * + 64 FROM tab1
----
12288
7552
8704

query I rowsort
SELECT DISTINCT - col2 - - + col1 AS col0 FROM tab0 cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND 2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4710
SELECT DISTINCT + COUNT( * ) AS col1, COUNT( * ) AS col1 FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4710
SELECT DISTINCT + COUNT ( * ) AS col1, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

skipif mysql # not compatible
query I rowsort label-4711
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 77 <= - 37
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4713
SELECT DISTINCT - - SUM( + + 23 ) col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4713
SELECT DISTINCT - - SUM ( + + 23 ) col1 FROM tab1 AS cor0
----
69

query I rowsort
SELECT ALL - + 32 FROM tab1 cor0
----
-32
-32
-32

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + col0 <= + col1
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4716
SELECT ALL + ( col2 ) DIV col1 AS col2 FROM tab1
----
1
11
6

skipif mysql # not compatible
query I rowsort label-4716
SELECT ALL + ( col2 ) / col1 AS col2 FROM tab1
----
1
11
6

query I rowsort
SELECT ALL + ( ( + col2 ) ) AS col0 FROM tab2
----
23
40
58

query II rowsort
SELECT DISTINCT col0 AS col2, 7 FROM tab1
----
51
7
85
7
91
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 >= ( + 18 ) OR NOT ( NULL ) <> - + col0
----
51
14
96
85
5
59

query I rowsort
SELECT 19 + - - 76 AS col0 FROM tab2 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT COUNT( * ) + 81 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4721
SELECT COUNT ( * ) + 81 FROM tab0 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + col2 + 9 col1 FROM tab0
----
108
219
3816

query I rowsort
SELECT DISTINCT + - col2 - - + col0 AS col2 FROM tab1 cor0
----
-45
23
26

query II rowsort
SELECT + col0 + col0 AS col1, + ( col2 ) AS col2 FROM tab2 AS cor0
----
128
40
150
58
92
23

query I rowsort
SELECT - col1 + + 40 + - + col1 AS col0 FROM tab1 AS cor0
----
-54
12
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4726
SELECT ALL CAST( 24 AS SIGNED ) + + 9 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, col1 * col2 )
----

skipif mysql # not compatible
query I rowsort label-4726
SELECT ALL CAST ( 24 AS INTEGER ) + + 9 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col1, col1 * col2 )
----

query I rowsort
SELECT DISTINCT - - col2 * + - col1 AS col2 FROM tab2 cor0
----
-1173
-3080
-3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + 18 ) col1 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT ALL - col1 * + 53 * + - col2 + - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4729
SELECT ALL - col1 * + 53 * + - col2 + - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 53 * - 20 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 WHERE + - 66 IS NULL
----

query I rowsort
SELECT 65 + - + col2 AS col0 FROM tab1
----
-3
-31
6

query II rowsort
SELECT + 62 AS col1, + col0 FROM tab2
----
62
46
62
64
62
75

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + - col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 53 AS col2 FROM tab1 AS cor0 WHERE NULL = NULL
----

query I rowsort
SELECT - col0 * + 6 * col0 AS col2 FROM tab2
----
-12696
-24576
-33750

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4737
SELECT ALL COUNT( * ) DIV + - 82 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4737
SELECT ALL COUNT ( * ) / + - 82 col2 FROM tab2
----
0

query I rowsort
SELECT ALL - ( - col1 ) * col2 AS col1 FROM tab1
----
1344
295
3196

onlyif mysql # aggregate syntax: 
query I rowsort label-4739
SELECT DISTINCT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT - col0 * + + col1 FROM tab1 AS cor0
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT - MAX( DISTINCT + 2 ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4741
SELECT - MAX ( DISTINCT + 2 ) AS col0 FROM tab1 AS cor0
----
-2

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 38 < + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 11 col1 FROM tab0 AS cor0
----
11
11
11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 BETWEEN + 33 * + col2 * - col1 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN + col0 AND - 94 * - - 36
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - col0 ) < - col0 + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + col0 col0 FROM tab0
----
108
96
98

query I rowsort
SELECT DISTINCT + 24 * 97 FROM tab0
----
2328

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 99 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col1 > + - 63 + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + + col2 * col0 + - col0 + - 63 * + - col0 AS col1 FROM tab1 cor0
----
10285
11830
8058

query I rowsort
SELECT + 61 * ( + 39 ) * 54 + + ( - - col0 ) - col1 FROM tab2 AS cor0
----
128453
128461
128474

query I rowsort
SELECT + 74 * - - col2 AS col2 FROM tab0 cor0
----
3478
7326
740

query II rowsort
SELECT ALL + 43, col0 AS col1 FROM tab0 AS cor0
----
43
15
43
87
43
97

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 >= - - 72
----

query I rowsort
SELECT DISTINCT + 89 AS col0 FROM tab0 AS cor0 WHERE NOT + 33 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL IN ( - + col1 * col1, col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT ALL - COUNT( * ) * 38 AS col2 FROM tab1
----
-114

skipif mysql # not compatible
query I rowsort label-4758
SELECT ALL - COUNT ( * ) * 38 AS col2 FROM tab1
----
-114

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 50 col1 FROM tab0 cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT - + SUM( ALL + + col0 ) FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-4760
SELECT - + SUM ( ALL + + col0 ) FROM tab0 AS cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT COUNT( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4761
SELECT COUNT ( ALL - - col2 ) AS col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT 19 - + col0 FROM tab2 AS cor0
----
-27
-45
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4763
SELECT DISTINCT + COUNT( * ) * 97 * - + COUNT( * ) + - 64 - + COUNT( * ) * - 79 col2 FROM tab2 AS cor0
----
-700

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4763
SELECT DISTINCT + COUNT ( * ) * 97 * - + COUNT ( * ) + - 64 - + COUNT ( * ) * - 79 col2 FROM tab2 AS cor0
----
-700

query I rowsort
SELECT ALL + 87 * + - 52 * - - 40 AS col0 FROM tab1 AS cor0
----
-180960
-180960
-180960

query I rowsort
SELECT DISTINCT + - 0 * - 83 * - 51 AS col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - 99 * - col2 AS col0 FROM tab2 AS cor0
----
2277
3960
5742

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT + COUNT( * ) - + 76 AS col2 FROM tab2 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-4767
SELECT + COUNT ( * ) - + 76 AS col2 FROM tab2 AS cor0
----
-73

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 = - 93
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4769
SELECT - col1 AS col1 FROM tab1 WHERE ( CAST( NULL AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-4769
SELECT - col1 AS col1 FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT + + 88 * + col1 > - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4771
SELECT DISTINCT ( AVG ( - - CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4771
SELECT DISTINCT ( AVG ( - - CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col2 * - - 38 AS col0, + col1 * - col0 FROM tab0 cor0
----
1786
-1215
3762
-97
380
-1827

query I rowsort
SELECT ALL + + 45 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

query I rowsort
SELECT ALL 51 * + + 44 AS col0 FROM tab2 cor0
----
2244
2244
2244

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 * - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4776
SELECT ALL SUM( ALL 25 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-4776
SELECT ALL SUM ( ALL 25 ) FROM tab1
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4777
SELECT CAST( NULL AS DECIMAL ) * + 46 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4777
SELECT CAST ( NULL AS REAL ) * + 46 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col2 * 71 FROM tab2
----
1633
2840
4118

query II rowsort
SELECT ALL - col2 * + ( + + col2 ) AS col1, - col1 FROM tab2 AS cor0
----
-1600
-77
-3364
-67
-529
-51

query I rowsort
SELECT DISTINCT - col0 * - - col1 AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-4781
SELECT DISTINCT - 92 DIV col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT - 92 / col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
-1
-2
-4

query I rowsort
SELECT ALL + + col1 * ( - 21 ) AS col0 FROM tab2 AS cor0
----
-1071
-1407
-1617

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4783
SELECT ALL - CAST( NULL AS DECIMAL ) * 97 * + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4783
SELECT ALL - CAST ( NULL AS REAL ) * 97 * + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4784
SELECT 68 AS col2, col2 * + + col1 + col1 * 84 DIV - ( + 47 ) AS col2 FROM tab2 AS cor0
----
68
1082
68
2943
68
3767

skipif mysql # not compatible
query II rowsort label-4784
SELECT 68 AS col2, col2 * + + col1 + col1 * 84 / - ( + 47 ) AS col2 FROM tab2 AS cor0
----
68
1082
68
2943
68
3767

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 23 + - - 89 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + + ( - col2 ) ) col1 FROM tab2
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL - MAX( DISTINCT - col1 ) + 53 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL - MAX ( DISTINCT - col1 ) + 53 FROM tab0
----
54

query I rowsort
SELECT DISTINCT - col1 + 81 FROM tab2
----
14
30
4

query I rowsort
SELECT - col2 + + 39 + - ( + 69 ) FROM tab0
----
-129
-40
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4790
SELECT ALL + CAST( col1 AS SIGNED ) * + col1 - - - 52, + col2 FROM tab1
----
-27
59
144
96
2157
68

skipif mysql # not compatible
query II rowsort label-4790
SELECT ALL + CAST ( col1 AS INTEGER ) * + col1 - - - 52, + col2 FROM tab1
----
-27
59
144
96
2157
68

onlyif mysql # DIV for integer division: 
query I rowsort label-4791
SELECT ALL + 24 * 72 DIV + - 9 + - col1 - - col2 AS col1 FROM tab1
----
-110
-138
-171

skipif mysql # not compatible
query I rowsort label-4791
SELECT ALL + 24 * 72 / + - 9 + - col1 - - col2 AS col1 FROM tab1
----
-110
-138
-171

query II rowsort
SELECT DISTINCT - 96 + + + col1 * col0 AS col0, col2 FROM tab0
----
1
99
1119
47
1731
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT ALL 73 + - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4793
SELECT ALL 73 + - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4794
SELECT 63 FROM tab0 AS cor0 WHERE - CAST( NULL AS SIGNED ) * + + col0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4794
SELECT 63 FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * + + col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4795
SELECT - col1 DIV col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4795
SELECT - col1 / col0 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( 34 ) + - 10 + 79 col0 FROM tab1 AS cor0
----
35
35
35

query I rowsort
SELECT + 64 + col1 * col1 FROM tab1 AS cor0
----
2273
260
89

query I rowsort
SELECT col0 * + col0 * + col1 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: 
query I rowsort label-4799
SELECT ALL + SUM( DISTINCT 3 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL + SUM ( DISTINCT 3 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT - 36 * + 43 FROM tab0
----
-1548
-1548
-1548

onlyif mysql # DIV for integer division: 
query I rowsort label-4801
SELECT col0 * - + col0 * col1 + - col1 DIV + col0 * + 54 FROM tab1 WHERE NOT + col2 * - col0 + - col2 * + 45 * - col1 IS NULL
----
-36125
-36414
-389207

skipif mysql # not compatible
query I rowsort label-4801
SELECT col0 * - + col0 * col1 + - col1 / + col0 * + 54 FROM tab1 WHERE NOT + col2 * - col0 + - col2 * + 45 * - col1 IS NULL
----
-36125
-36414
-389207

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4802
SELECT + CAST( NULL AS SIGNED ) AS col2, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-4802
SELECT + CAST ( NULL AS INTEGER ) AS col2, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

query III rowsort
SELECT DISTINCT - col1, col0 AS col0, + 51 + - col2 + + col0 AS col2 FROM tab2
----
9 values hashing to 8f0668bdc338f6c2d5874b6c0e0e70a1

query III rowsort
SELECT * FROM tab0 WHERE NOT - + 29 + - col1 < NULL
----

query II rowsort
SELECT + + col0 AS col1, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query II rowsort label-4806
SELECT + COUNT( DISTINCT - col0 ), 21 AS col1 FROM tab1 AS cor0
----
3
21

skipif mysql # not compatible
query II rowsort label-4806
SELECT + COUNT ( DISTINCT - col0 ), 21 AS col1 FROM tab1 AS cor0
----
3
21

query I rowsort
SELECT + ( 4 ) + col0 AS col1 FROM tab0 cor0
----
101
19
91

query I rowsort
SELECT + 80 + + 5 AS col2 FROM tab0 AS cor0
----
85
85
85

query I rowsort
SELECT ALL - ( col0 ) * - - col1 AS col0 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT - col0 * - - col1 + 78 AS col2 FROM tab0 AS cor0
----
-1137
-1749
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-4811
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4811
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4812
SELECT DISTINCT ( + CAST( + - col2 AS DECIMAL ) ) * 75 AS col2 FROM tab0 AS cor0 WHERE col2 + + 0 NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT ( + CAST ( + - col2 AS REAL ) ) * 75 AS col2 FROM tab0 AS cor0 WHERE col2 + + 0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4813
SELECT + - COUNT( * ) DIV + ( - COUNT( * ) ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-4813
SELECT + - COUNT ( * ) / + ( - COUNT ( * ) ) AS col2 FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT ALL COUNT( * ) FROM tab2 WHERE 68 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4814
SELECT ALL COUNT ( * ) FROM tab2 WHERE 68 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4815
SELECT ALL - SUM( + - 79 ) AS col0 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-4815
SELECT ALL - SUM ( + - 79 ) AS col0 FROM tab0
----
237

query I rowsort
SELECT DISTINCT + 72 AS col0 FROM tab2 WHERE NOT ( NOT ( + col1 / 91 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4817
SELECT SUM( DISTINCT - 95 ) * - MAX( ALL + - col2 ) + COUNT( * ) AS col1 FROM tab0
----
-947

skipif mysql # not compatible
query I rowsort label-4817
SELECT SUM ( DISTINCT - 95 ) * - MAX ( ALL + - col2 ) + COUNT ( * ) AS col1 FROM tab0
----
-947

query I rowsort
SELECT col0 * - col0 * col1 - - - 6 + 21 AS col2 FROM tab0 AS cor0
----
-158934
-18210
-9394

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4819
SELECT ALL - + 18 + + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0 WHERE NOT + 49 - - ( - + col0 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4819
SELECT ALL - + 18 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0 WHERE NOT + 49 - - ( - + col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL 13 + COUNT( * ) FROM tab0
----
16

skipif mysql # not compatible
query I rowsort label-4820
SELECT ALL 13 + COUNT ( * ) FROM tab0
----
16

query I rowsort
SELECT ( 76 ) + + 72 AS col2 FROM tab1
----
148
148
148

query I rowsort
SELECT DISTINCT - 68 AS col0 FROM tab2 WHERE NOT ( col1 ) NOT IN ( 73 )
----

query I rowsort
SELECT ALL col2 * - 85 FROM tab2
----
-1955
-3400
-4930

query I rowsort
SELECT - 87 * col1 + + 61 AS col2 FROM tab0
----
-1766
-26
-6986

query I rowsort
SELECT DISTINCT - ( ( - ( col0 ) ) ) AS col1 FROM tab2 WHERE NOT ( - ( col0 ) ) < col1
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab1 WHERE NOT NULL > + col0
----

query I rowsort
SELECT - col0 + ( - col2 + - col1 ) FROM tab1
----
-149
-161
-206

query III rowsort
SELECT * FROM tab2 WHERE + col2 NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT + col2 * 5 AS col0 FROM tab0
----
235
495
50

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col0 BETWEEN NULL AND 84
----
87
21
10
97
1
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( col0 ) AND col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4832
SELECT ALL - MIN( 24 ) DIV - COUNT( * ) AS col0 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-4832
SELECT ALL - MIN ( 24 ) / - COUNT ( * ) AS col0 FROM tab2
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4833
SELECT ( + CAST( NULL AS SIGNED ) ) + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4833
SELECT ( + CAST ( NULL AS INTEGER ) ) + + col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - col0 * ( - 41 ) FROM tab2
----
1886
2624
3075

query I rowsort
SELECT - 0 + col2 AS col1 FROM tab0
----
10
47
99

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 53 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 89 + + col0 FROM tab2
----
135
153
164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4838
SELECT + 46 AS col0 FROM tab0 WHERE NOT ( + 10 / - CAST( col1 AS SIGNED ) ) IS NULL
----
46
46
46

skipif mysql # not compatible
query I rowsort label-4838
SELECT + 46 AS col0 FROM tab0 WHERE NOT ( + 10 / - CAST ( col1 AS INTEGER ) ) IS NULL
----
46
46
46

query I rowsort
SELECT + ( - 80 ) + - col0 FROM tab2 WHERE NULL NOT IN ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4840
SELECT ALL - CAST( NULL AS SIGNED ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4840
SELECT ALL - CAST ( NULL AS INTEGER ) + - col2 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( col0 ) - + 9 FROM tab0
----
6
78
88

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * 35 = col1
----

query I rowsort
SELECT ALL + col1 + col0 * col2 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE - 50 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( 76 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 93 + col0 AS col2 FROM tab2
----
139
157
168

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4849
SELECT + ( - col1 ) * CAST( - CAST( col0 AS SIGNED ) AS SIGNED ) + + col1 FROM tab2
----
2397
5005
5092

skipif mysql # not compatible
query I rowsort label-4849
SELECT + ( - col1 ) * CAST ( - CAST ( col0 AS INTEGER ) AS INTEGER ) + + col1 FROM tab2
----
2397
5005
5092

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4850
SELECT CAST( NULL AS SIGNED ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4850
SELECT CAST ( NULL AS INTEGER ) / - col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 74 - - col1 * 86 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4852
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST( + col2 AS SIGNED ) + col2 NOT BETWEEN NULL AND - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4852
SELECT DISTINCT * FROM tab1 cor0 WHERE - CAST ( + col2 AS INTEGER ) + col2 NOT BETWEEN NULL AND - 54
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 + col0 FROM tab1 AS cor0 WHERE NOT + ( + col1 ) IS NULL
----
102
170
182

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( - col1 / - col0 ) IS NULL
----

query I rowsort
SELECT ALL col2 + col0 FROM tab2 WHERE ( NULL ) IS NULL
----
104
133
69

query I rowsort
SELECT DISTINCT - 76 * + 97 AS col2 FROM tab0
----
-7372

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT DISTINCT + 82 + + COUNT( 67 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
91

skipif mysql # not compatible
query I rowsort label-4857
SELECT DISTINCT + 82 + + COUNT ( 67 ) AS col0 FROM tab0 cor0 CROSS JOIN tab1
----
91

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4859
SELECT DISTINCT + COUNT( * ) * - 49 AS col1 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-4859
SELECT DISTINCT + COUNT ( * ) * - 49 AS col1 FROM tab1 AS cor0
----
-147

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( - 52 + col2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT ( + col2 ) <= ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4862
SELECT - 9 + col0 DIV + col1 FROM tab1 cor0
----
-6
-8
8

skipif mysql # not compatible
query I rowsort label-4862
SELECT - 9 + col0 / + col1 FROM tab1 cor0
----
-6
-8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4864
SELECT DISTINCT - ( + + COUNT( * ) ) + - COUNT( * ) AS col0 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4864
SELECT DISTINCT - ( + + COUNT ( * ) ) + - COUNT ( * ) AS col0 FROM tab0
----
-6

query I rowsort
SELECT + col0 * col1 + + col2 AS col0 FROM tab0 WHERE ( col0 ) > + col1
----
1837
196

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4866
SELECT + 58 + - + col0 + CAST( NULL AS DECIMAL ) / col2 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4866
SELECT + 58 + - + col0 + CAST ( NULL AS REAL ) / col2 col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 71 FROM tab0 WHERE NOT ( col2 ) = NULL
----

query I rowsort
SELECT 55 + 6 FROM tab1
----
61
61
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4869
SELECT 99 + + COUNT( * ) DIV 9 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-4869
SELECT 99 + + COUNT ( * ) / 9 FROM tab2
----
99

query III rowsort
SELECT * FROM tab2 WHERE NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL + col1 * CAST( NULL AS SIGNED ) + 39 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + col1 * CAST ( NULL AS INTEGER ) + 39 AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - 38 + col2 * col0 AS col1 FROM tab2
----
-366
-880
1804

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL SUM( + col1 ) FROM tab2 WHERE NOT ( NULL ) <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL SUM ( + col1 ) FROM tab2 WHERE NOT ( NULL ) <> NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4874
SELECT ( - CAST( col2 AS SIGNED ) ) + 49 AS col1 FROM tab0
----
-50
2
39

skipif mysql # not compatible
query I rowsort label-4874
SELECT ( - CAST ( col2 AS INTEGER ) ) + 49 AS col1 FROM tab0
----
-50
2
39

query I rowsort
SELECT DISTINCT 26 + - col2 FROM tab2
----
-14
-32
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4876
SELECT + col2 + col0 + + 10 DIV col0 AS col0 FROM tab2
----
104
133
69

skipif mysql # not compatible
query I rowsort label-4876
SELECT + col2 + col0 + + 10 / col0 AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE ( + 79 ) IS NULL OR NOT ( + col1 ) IS NULL
----
59
68
96

query I rowsort
SELECT 4 + - col2 FROM tab2
----
-19
-36
-54

query I rowsort
SELECT DISTINCT + 1 * col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT - ( - col2 ) * col1 FROM tab0 AS cor0 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT ALL - MAX( DISTINCT + col0 ) * 87 FROM tab1 AS cor0
----
-7917

skipif mysql # not compatible
query I rowsort label-4881
SELECT ALL - MAX ( DISTINCT + col0 ) * 87 FROM tab1 AS cor0
----
-7917

query I rowsort
SELECT ALL 25 * 44 AS col2 FROM tab1
----
1100
1100
1100

query I rowsort
SELECT ALL + 2 * - col2 + 90 * col0 AS col0 FROM tab2
----
4094
5680
6634

query I rowsort
SELECT - 72 - - 24 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT 68 * + col0 AS col0 FROM tab1 AS cor0
----
3468
5780
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-4886
SELECT MIN( 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-4886
SELECT MIN ( 68 ) FROM tab0 AS cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4887
SELECT DISTINCT 12 * 34 + - ( - COUNT( col2 ) + - 98 ) FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( 79 + - col2 )
----
506

skipif mysql # not compatible
query I rowsort label-4887
SELECT DISTINCT 12 * 34 + - ( - COUNT ( col2 ) + - 98 ) FROM tab2 cor0 WHERE NULL NOT BETWEEN ( NULL ) AND ( 79 + - col2 )
----
506

onlyif mysql # aggregate syntax: 
query II rowsort label-4888
SELECT DISTINCT COUNT( * ) AS col0, COUNT( * ) FROM tab1 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4888
SELECT DISTINCT COUNT ( * ) AS col0, COUNT ( * ) FROM tab1 AS cor0
----
3
3

query I rowsort
SELECT ALL - col1 + col1 FROM tab0 cor0 WHERE 52 IS NOT NULL
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4890
SELECT col2 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + CAST( ( - col1 ) AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4890
SELECT col2 + - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + CAST ( ( - col1 ) AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4891
SELECT - MIN( - 86 ) FROM tab0 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-4891
SELECT - MIN ( - 86 ) FROM tab0 AS cor0
----
86

onlyif mysql # aggregate syntax: 
query II rowsort label-4892
SELECT - 21 AS col0, COUNT( * ) AS col1 FROM tab1 cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-4892
SELECT - 21 AS col0, COUNT ( * ) AS col1 FROM tab1 cor0
----
-21
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4893
SELECT + col0 * + col0 DIV col0 FROM tab0 cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4893
SELECT + col0 * + col0 / col0 FROM tab0 cor0
----
15
87
97

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col0 IN ( - + col2 + + col2 * col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 * - col2 * - - ( + col2 ) FROM tab0
----
-1000
-103823
-970299

query I rowsort
SELECT DISTINCT + col2 - col2 FROM tab2 WHERE - 16 - + 67 >= col0
----

query I rowsort
SELECT ALL 77 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4898
SELECT + - 23 DIV col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4898
SELECT + - 23 / col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 74 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT - - 20 IN ( 82 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 37 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
37

query I rowsort
SELECT ALL col2 + - - 86 * - 91 * + 98 * + col1 AS col2 FROM tab0 AS cor0
----
-16105898
-62122741
-766849

query I rowsort
SELECT + - 97 * - col0 FROM tab1 AS cor0
----
4947
8245
8827

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4904
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 + col2 ) <> CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4904
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 + col2 ) <> CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE + col0 * + 14 < + col0 + 72 * + 33
----
3

skipif mysql # not compatible
query I rowsort label-4905
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE + col0 * + 14 < + col0 + 72 * + 33
----
3

query III rowsort
SELECT * FROM tab1 WHERE ( 56 * - + col1 ) NOT IN ( 22 + - - 12 + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col1 + + - ( - 63 ) AS col2 FROM tab1
----
16
49
58

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4909
SELECT ALL - ( + + MIN( - + col1 ) ) AS col2 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-4909
SELECT ALL - ( + + MIN ( - + col1 ) ) AS col2 FROM tab1
----
47

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL NOT BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4911
SELECT * FROM tab0 WHERE ( + CAST( NULL AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4911
SELECT * FROM tab0 WHERE ( + CAST ( NULL AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * + col1 + + 3 FROM tab2
----
1176
3083
3889

query I rowsort
SELECT + col2 * - col1 - - - col1 FROM tab1
----
-1358
-300
-3243

onlyif mysql # aggregate syntax: 
query I rowsort label-4914
SELECT DISTINCT 75 * + 10 * - - ( - - 94 ) - + COUNT( * ) AS col2 FROM tab1, tab2 cor0
----
70491

skipif mysql # not compatible
query I rowsort label-4914
SELECT DISTINCT 75 * + 10 * - - ( - - 94 ) - + COUNT ( * ) AS col2 FROM tab1, tab2 cor0
----
70491

query I rowsort
SELECT DISTINCT + col1 * - + 87 + - + 87 + - - col1 AS col0 FROM tab1 cor0
----
-1291
-4129
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT - MAX( DISTINCT - 56 ) - + - MIN( + + ( - col2 ) ) + + + COUNT( DISTINCT + col0 ) + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT - MAX ( DISTINCT - 56 ) - + - MIN ( + + ( - col2 ) ) + + + COUNT ( DISTINCT + col0 ) + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4917
SELECT - + 73 + + COUNT( * ) * - - COUNT( col0 ) FROM tab2 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-4917
SELECT - + 73 + + COUNT ( * ) * - - COUNT ( col0 ) FROM tab2 AS cor0
----
-64

query I rowsort
SELECT DISTINCT col1 * 85 - col0 FROM tab2 AS cor0
----
4289
5620
6481

query II rowsort
SELECT + col1 + + - col1 AS col1, - col2 AS col1 FROM tab1 AS cor0
----
0
-59
0
-68
0
-96

query I rowsort
SELECT DISTINCT col1 - + - col1 * - + col1 + + col0 FROM tab1
----
-131
-2071
65

query I rowsort
SELECT col0 * 67 FROM tab1 WHERE NOT + - 74 + - col1 BETWEEN + col0 * col1 * 9 AND + ( 54 )
----
3417
5695
6097

query I rowsort
SELECT - + 61 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 6 + + - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( + col2 + col0 ) IS NULL
----

query I rowsort
SELECT ALL - 45 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) * 93 FROM tab1 AS cor0
----
-1302
-4371
-465

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col0 FROM tab2 AS cor0
----
-40
-40
-40

query I rowsort
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 45 + - col0 )
----

query I rowsort
SELECT DISTINCT 5 * 77 * - 97 AS col0 FROM tab2 AS cor0
----
-37345

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 <> + + col2
----

query II rowsort
SELECT ALL + 80 * + 78, col2 FROM tab2 cor0
----
6240
23
6240
40
6240
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( + 50 / - + col2, 61 * col0 * + - col2 * - col1 )
----

query I rowsort
SELECT DISTINCT - 74 AS col2 FROM tab1 WHERE NULL < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4935
SELECT ALL col1 DIV + 88 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4935
SELECT ALL col1 / + 88 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT col1 * + col0 * - 43 * - col1 AS col0 FROM tab1
----
429828
8643817
91375

query II rowsort
SELECT + col1, 58 FROM tab1
----
14
58
47
58
5
58

query I rowsort
SELECT - + col1 * col2 FROM tab0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT - col0 + + - col2 * + col2 + - col2 AS col0 FROM tab1 AS cor0
----
-3625
-4783
-9363

query I rowsort
SELECT col2 * 1 FROM tab0 AS cor0 WHERE NOT col0 + - - 75 NOT IN ( + col2 )
----

query I rowsort
SELECT DISTINCT - ( - + col1 ) AS col1 FROM tab1 cor0
----
14
47
5

query I rowsort
SELECT - col1 - + col1 FROM tab1 WHERE NULL BETWEEN + col0 - - col1 * col1 + - col1 * - - col2 AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4943
SELECT ALL - CAST( NULL AS SIGNED ) + 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL - CAST ( NULL AS INTEGER ) + 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4944
SELECT ALL - COUNT( * ) - COUNT( + ( - - 87 ) ) * + - COUNT( * ) col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4944
SELECT ALL - COUNT ( * ) - COUNT ( + ( - - 87 ) ) * + - COUNT ( * ) col0 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
6

query I rowsort
SELECT ALL + 69 + + col2 + 83 AS col2 FROM tab0 AS cor0
----
162
199
251

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4946
SELECT DISTINCT + + CAST( + col0 AS SIGNED ) - - col1 - - 75 FROM tab2 AS cor0
----
172
216
217

skipif mysql # not compatible
query I rowsort label-4946
SELECT DISTINCT + + CAST ( + col0 AS INTEGER ) - - col1 - - 75 FROM tab2 AS cor0
----
172
216
217

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT MIN( + 67 ) + - + COUNT( * ) col0 FROM tab0 AS cor0
----
64

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4947
SELECT MIN ( + 67 ) + - + COUNT ( * ) col0 FROM tab0 AS cor0
----
64

query I rowsort
SELECT - 46 + + + col1 FROM tab2
----
21
31
5

query I rowsort
SELECT - 60 + + ( - col0 ) * - - 92 - + col2 FROM tab1
----
-4848
-7939
-8500

onlyif mysql # aggregate syntax: 
query I rowsort label-4950
SELECT DISTINCT COUNT( * ) * + + COUNT( - col0 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-4950
SELECT DISTINCT COUNT ( * ) * + + COUNT ( - col0 ) FROM tab2
----
9

query I rowsort
SELECT ALL col2 + + + ( + col0 ) AS col1 FROM tab1
----
144
147
159

query III rowsort
SELECT * FROM tab0 WHERE ( col1 ) < NULL
----

query I rowsort
SELECT ALL + + 52 + + - col1 FROM tab2 cor0
----
-15
-25
1

query I rowsort
SELECT ALL - col0 * - - col1 - 9 * ( 27 ) FROM tab0 AS cor0
----
-1458
-2070
-340

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT ALL COUNT( - 56 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4955
SELECT ALL COUNT ( - 56 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT ALL + - col1 * - - col0 * col2 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4957
SELECT - col2 / CAST( NULL AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4957
SELECT - col2 / CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT ALL - - MIN( - col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4958
SELECT ALL - - MIN ( - col0 ) FROM tab2 AS cor0
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT ALL - - MIN( 28 ) AS col0 FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4959
SELECT ALL - - MIN ( 28 ) AS col0 FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4960
SELECT ALL - MAX( ALL ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4960
SELECT ALL - MAX ( ALL ( col2 ) ) AS col2 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4961
SELECT col1, 27 DIV + ( + - CAST( - 2 AS SIGNED ) ) + + + col1 col0 FROM tab2 AS cor0
----
51
64
67
80
77
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4961
SELECT col1, 27 / + ( + - CAST ( - 2 AS INTEGER ) ) + + + col1 col0 FROM tab2 AS cor0
----
51
64
67
80
77
90

query I rowsort
SELECT + 75 + - - 51 FROM tab1 cor0 WHERE NOT NULL NOT BETWEEN col2 * col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4964
SELECT DISTINCT 66 * - + SUM( - - col1 ) AS col0 FROM tab0
----
-6798

skipif mysql # not compatible
query I rowsort label-4964
SELECT DISTINCT 66 * - + SUM ( - - col1 ) AS col0 FROM tab0
----
-6798

onlyif mysql # aggregate syntax: 
query I rowsort label-4965
SELECT ALL 36 + + - COUNT( + 69 ) * + COUNT( * ) AS col0 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-4965
SELECT ALL 36 + + - COUNT ( + 69 ) * + COUNT ( * ) AS col0 FROM tab2
----
27

onlyif mysql # aggregate syntax: 
query II rowsort label-4966
SELECT ALL COUNT( * ), 25 + COUNT( * ) * AVG ( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

skipif mysql # not compatible
query II rowsort label-4966
SELECT ALL COUNT ( * ), 25 + COUNT ( * ) * AVG ( ALL col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
0
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4967
SELECT - MIN( DISTINCT + CAST( - col1 AS SIGNED ) ) * MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
2397

skipif mysql # not compatible
query I rowsort label-4967
SELECT - MIN ( DISTINCT + CAST ( - col1 AS INTEGER ) ) * MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
2397

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 + + 93 * + 18 col2 FROM tab0 AS cor0 WHERE - 86 + - + col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4969
SELECT - 28 + + + ( COUNT( * ) ) FROM tab0 WHERE + col0 / col2 + + col0 > col0 + - col2 + - col1 * + 32 + - 71
----
-25

skipif mysql # not compatible
query I rowsort label-4969
SELECT - 28 + + + ( COUNT ( * ) ) FROM tab0 WHERE + col0 / col2 + + col0 > col0 + - col2 + - col1 * + 32 + - 71
----
-25

query I rowsort
SELECT ALL col1 * - - col2 + 12 FROM tab2
----
1185
3092
3898

query I rowsort
SELECT ALL - col0 + col2 * - 82 AS col0 FROM tab2 cor0
----
-1932
-3344
-4831

query II rowsort
SELECT - 52 * + + 96 * - 44 AS col2, col2 AS col0 FROM tab2 AS cor0
----
219648
23
219648
40
219648
58

query I rowsort
SELECT - + 58 * + col1 + col2 AS col1 FROM tab2 cor0
----
-2935
-3828
-4426

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4974
SELECT + - ( col2 ) * + CAST( NULL AS SIGNED ) + - col1 - 31 * - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4974
SELECT + - ( col2 ) * + CAST ( NULL AS INTEGER ) + - col1 - 31 * - 60 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4975
SELECT + 85 col1, COUNT( * ) - + 77 col2 FROM tab2 AS cor0
----
85
-74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4975
SELECT + 85 col1, COUNT ( * ) - + 77 col2 FROM tab2 AS cor0
----
85
-74

query I rowsort
SELECT 66 * - 43 * col0 FROM tab0 AS cor0
----
-246906
-275286
-42570

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - col2, col1, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4978
SELECT ALL - MAX( col1 ) AS col1 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-4978
SELECT ALL - MAX ( col1 ) AS col1 FROM tab2 AS cor0
----
-77

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 NOT IN ( + col0, col0 + + + 93 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 1 col1 FROM tab2 AS cor0
----
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 36 col0 FROM tab2 AS cor0
----
36
36
36

query I rowsort
SELECT ALL + ( - + col0 ) FROM tab0
----
-15
-87
-97

query III rowsort
SELECT * FROM tab0 WHERE + col0 < - - 26
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4984
SELECT + col1 - - CAST( col1 AS SIGNED ) FROM tab0
----
162
2
42

skipif mysql # not compatible
query I rowsort label-4984
SELECT + col1 - - CAST ( col1 AS INTEGER ) FROM tab0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4985
SELECT - - COUNT( * ) FROM tab2 WHERE NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-4985
SELECT - - COUNT ( * ) FROM tab2 WHERE NULL > NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 26 BETWEEN NULL AND + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4987
SELECT ALL + - MIN( DISTINCT + 65 ) + - 34 FROM tab0 AS cor0 WHERE ( NULL ) < + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT ALL + - MIN ( DISTINCT + 65 ) + - 34 FROM tab0 AS cor0 WHERE ( NULL ) < + col1
----
NULL

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL = col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4989
SELECT - ( + COUNT( * ) ) * + COUNT( * ) FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4989
SELECT - ( + COUNT ( * ) ) * + COUNT ( * ) FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4990
SELECT ( COUNT( * ) ) + - MAX( + col0 ) + + COUNT( * ) col1, 24 * - 63 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
-1512

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4990
SELECT ( COUNT ( * ) ) + - MAX ( + col0 ) + + COUNT ( * ) col1, 24 * - 63 AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL
-1512

query II rowsort
SELECT DISTINCT + 30 AS col2, 50 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
30
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4992
SELECT ALL + - col2 FROM tab1 WHERE NOT ( col1 ) / + 68 + + + CAST( NULL AS SIGNED ) * - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4992
SELECT ALL + - col2 FROM tab1 WHERE NOT ( col1 ) / + 68 + + + CAST ( NULL AS INTEGER ) * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4993
SELECT + 47 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4993
SELECT + 47 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-4994
SELECT COUNT( * ) AS col1, + 36 col2 FROM tab1 AS cor0
----
3
36

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4994
SELECT COUNT ( * ) AS col1, + 36 col2 FROM tab1 AS cor0
----
3
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * - - ( ( + 72 ) ) * - - col1 col0 FROM tab2 AS cor0
----
221760
279792
84456

query I rowsort
SELECT - 60 * - + 77 FROM tab0 AS cor0
----
4620
4620
4620

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT DISTINCT COUNT( * ) * - - 90 FROM tab0 cor0
----
270

skipif mysql # not compatible
query I rowsort label-4997
SELECT DISTINCT COUNT ( * ) * - - 90 FROM tab0 cor0
----
270

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4998
SELECT + - CAST( 47 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

skipif mysql # not compatible
query I rowsort label-4998
SELECT + - CAST ( 47 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-47
-47
-47

query I rowsort
SELECT DISTINCT - 65 * + col1 FROM tab2 AS cor0
----
-3315
-4355
-5005

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL + COUNT( ALL + col2 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + COUNT ( ALL + col2 ) AS col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT - COUNT( * ) + - SUM( - col1 ) FROM tab2
----
192

skipif mysql # not compatible
query I rowsort label-5001
SELECT - COUNT ( * ) + - SUM ( - col1 ) FROM tab2
----
192

query II rowsort
SELECT - col1 + + + 13 AS col1, + col1 * 86 FROM tab1
----
-1
1204
-34
4042
8
430

query II rowsort
SELECT DISTINCT - 58 * + + 1, col2 - - col0 AS col1 FROM tab0
----
-58
196
-58
62
-58
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + + col1 * + + 22 col1 FROM tab2
----
1145
1532
1734

query I rowsort
SELECT col1 + + col1 + + col1 FROM tab0
----
243
3
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5006
SELECT ALL COUNT( * ) * 32 FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-5006
SELECT ALL COUNT ( * ) * 32 FROM tab2
----
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col1 + + - col2 * - 36 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5008
SELECT ALL + col2 DIV + ( 11 ) AS col0 FROM tab1 AS cor0
----
5
6
8

skipif mysql # not compatible
query I rowsort label-5008
SELECT ALL + col2 / + ( 11 ) AS col0 FROM tab1 AS cor0
----
5
6
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5009
SELECT DISTINCT + - col1 DIV col0 + - 12 * - col0 + - col1 FROM tab1 AS cor0
----
1015
1045
598

skipif mysql # not compatible
query I rowsort label-5009
SELECT DISTINCT + - col1 / col0 + - 12 * - col0 + - col1 FROM tab1 AS cor0
----
1015
1045
598

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5010
SELECT DISTINCT col1 * - CAST( NULL AS SIGNED ) + - 29 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5010
SELECT DISTINCT col1 * - CAST ( NULL AS INTEGER ) + - 29 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5011
SELECT ALL + col2 * - col2 AS col0, + col1, 47 AS col0 FROM tab1 WHERE NOT + CAST( 17 AS SIGNED ) + + col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5011
SELECT ALL + col2 * - col2 AS col0, + col1, 47 AS col0 FROM tab1 WHERE NOT + CAST ( 17 AS INTEGER ) + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + + ( col1 ) + col2 AS col2 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-5013
SELECT DISTINCT + 60 + - COUNT( * ) FROM tab0 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT + 60 + - COUNT ( * ) FROM tab0 AS cor0
----
57

query II rowsort
SELECT DISTINCT + ( - 60 ) AS col0, 62 - 44 * - + 40 FROM tab1 cor0
----
-60
1822

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL MIN( - + 55 ) - - COUNT( * ) * + - COUNT( DISTINCT + 29 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5015
SELECT ALL MIN ( - + 55 ) - - COUNT ( * ) * + - COUNT ( DISTINCT + 29 ) FROM tab2 AS cor0
----
-58

query I rowsort
SELECT DISTINCT - - col1 * col1 + + col2 + + col2 - - 38 * - col2 FROM tab1 cor0
----
-2099
-239
-3260

query I rowsort
SELECT ALL 19 * + + 42 - + - col0 FROM tab0 AS cor0
----
813
885
895

query I rowsort
SELECT ALL col2 * - 45 * + - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
138600
174870
52785

query I rowsort
SELECT ALL + col0 + 71 AS col2 FROM tab1
----
122
156
162

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5020
SELECT + 86 * MAX( + 86 ) DIV - - COUNT( * ) FROM tab2
----
2465

skipif mysql # not compatible
query I rowsort label-5020
SELECT + 86 * MAX ( + 86 ) / - - COUNT ( * ) FROM tab2
----
2465

onlyif mysql # aggregate syntax: 
query I rowsort label-5021
SELECT ALL + COUNT( * ) * + 91 * + + MAX( - 23 ) FROM tab2
----
-6279

skipif mysql # not compatible
query I rowsort label-5021
SELECT ALL + COUNT ( * ) * + 91 * + + MAX ( - 23 ) FROM tab2
----
-6279

query I rowsort
SELECT DISTINCT 40 * + col1 AS col0 FROM tab1
----
1880
200
560

onlyif mysql # DIV for integer division: 
query I rowsort label-5023
SELECT ALL - col0 DIV + - col0 AS col0 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5023
SELECT ALL - col0 / + - col0 AS col0 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + + col0 AS col0 FROM tab1 WHERE ( NOT ( NOT + + col0 IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5025
SELECT col2 * + - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5025
SELECT col2 * + - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5026
SELECT DISTINCT + - MIN( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5026
SELECT DISTINCT + - MIN ( + col0 ) AS col0 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-5027
SELECT - COUNT( * ) AS col1, 36 AS col0 FROM tab1 AS cor0
----
-3
36

skipif mysql # not compatible
query II rowsort label-5027
SELECT - COUNT ( * ) AS col1, 36 AS col0 FROM tab1 AS cor0
----
-3
36

query I rowsort
SELECT ALL 83 * + col2 FROM tab2 cor0
----
1909
3320
4814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2, - ( 82 ) + - + col1 col2 FROM tab0 cor0
----
-10
-103
-47
-163
-99
-83

query I rowsort
SELECT DISTINCT 12 AS col2 FROM tab0 AS cor0 WHERE NOT + 56 / + col0 IS NULL
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5031
SELECT DISTINCT - MAX( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-5031
SELECT DISTINCT - MAX ( DISTINCT + col1 ) AS col0 FROM tab1 AS cor0
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5032
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL < + 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - COUNT( + - col1 ) + + 78 FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-5034
SELECT - COUNT ( + - col1 ) + + 78 FROM tab2 AS cor0
----
75

query I rowsort
SELECT 62 * col2 + col1 FROM tab1 AS cor0
----
3663
4263
5966

onlyif mysql # aggregate syntax: 
query I rowsort label-5036
SELECT MAX( + 58 ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5036
SELECT MAX ( + 58 ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query II rowsort label-5037
SELECT ALL 23, COUNT( * ) * - + MIN( 34 ) AS col2 FROM tab1
----
23
-102

skipif mysql # not compatible
query II rowsort label-5037
SELECT ALL 23, COUNT ( * ) * - + MIN ( 34 ) AS col2 FROM tab1
----
23
-102

query I rowsort
SELECT ALL ( - 13 ) + + col0 + col2 FROM tab2
----
120
56
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT + col2 * - col0 FROM tab1 WHERE col0 NOT BETWEEN CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-5039
SELECT + col2 * - col0 FROM tab1 WHERE col0 NOT BETWEEN CAST ( NULL AS INTEGER ) AND NULL
----

query II rowsort
SELECT + col2, + col2 * 11 FROM tab2
----
23
253
40
440
58
638

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - 45 col1 FROM tab2
----
1
19
30

query III rowsort
SELECT * FROM tab1 WHERE + 25 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5043
SELECT + COUNT( * ) DIV + + ( - 33 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT + COUNT ( * ) / + + ( - 33 ) FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - + ( + col0 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 AS col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-5046
SELECT - COUNT( * ), COUNT( * ) + - 78 AS col1 FROM tab1 cor0
----
-3
-75

skipif mysql # not compatible
query II rowsort label-5046
SELECT - COUNT ( * ), COUNT ( * ) + - 78 AS col1 FROM tab1 cor0
----
-3
-75

query II rowsort
SELECT ALL + col1 - + - col2 AS col1, col2 FROM tab0 AS cor0
----
100
99
128
47
31
10

onlyif mysql # aggregate syntax: 
query II rowsort label-5048
SELECT - - 45 AS col2, - MAX( ALL col0 ) AS col1 FROM tab2 AS cor0
----
45
-75

skipif mysql # not compatible
query II rowsort label-5048
SELECT - - 45 AS col2, - MAX ( ALL col0 ) AS col1 FROM tab2 AS cor0
----
45
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT + + COUNT( ALL - - 70 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5049
SELECT + + COUNT ( ALL - - 70 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT DISTINCT - + COUNT( * ) - 90 FROM tab0 cor0
----
-93

skipif mysql # not compatible
query I rowsort label-5050
SELECT DISTINCT - + COUNT ( * ) - 90 FROM tab0 cor0
----
-93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5051
SELECT ALL col1 - + 96 + 90 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5051
SELECT ALL col1 - + 96 + 90 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5052
SELECT DISTINCT - + COUNT( * ) - - 73 DIV - COUNT( * ) FROM tab2 AS cor0
----
-27

skipif mysql # not compatible
query I rowsort label-5052
SELECT DISTINCT - + COUNT ( * ) - - 73 / - COUNT ( * ) FROM tab2 AS cor0
----
-27

query I rowsort
SELECT - - 69 - + + 41 + - + 17 AS col0 FROM tab2 AS cor0
----
11
11
11

onlyif mysql # aggregate syntax: 
query I rowsort label-5054
SELECT DISTINCT MAX( ALL + 48 ) AS col0 FROM tab1 cor0
----
48

skipif mysql # not compatible
query I rowsort label-5054
SELECT DISTINCT MAX ( ALL + 48 ) AS col0 FROM tab1 cor0
----
48

onlyif mysql # aggregate syntax: 
query II rowsort label-5055
SELECT DISTINCT - SUM( DISTINCT col2 ) AS col2, MIN( DISTINCT 44 ) * COUNT( * ) AS col0 FROM tab1
----
-223
132

skipif mysql # not compatible
query II rowsort label-5055
SELECT DISTINCT - SUM ( DISTINCT col2 ) AS col2, MIN ( DISTINCT 44 ) * COUNT ( * ) AS col0 FROM tab1
----
-223
132

query II rowsort
SELECT ALL col2 * col1, + col2 AS col2 FROM tab0
----
210
10
3807
47
99
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5057
SELECT DISTINCT - ( + COUNT( * ) ) DIV - - 15 * MAX( ALL + ( - 50 ) ) AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5057
SELECT DISTINCT - ( + COUNT ( * ) ) / - - 15 * MAX ( ALL + ( - 50 ) ) AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5058
SELECT + 37 DIV + 50 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5058
SELECT + 37 / + 50 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT - col2 + + col1 IS NULL
----
-15
-87
-97

query I rowsort
SELECT 17 * + - 54 * - ( - col0 ) AS col1 FROM tab2
----
-42228
-58752
-68850

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + - MAX( - 49 ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-5061
SELECT + - MAX ( - 49 ) FROM tab2 AS cor0
----
49

query I rowsort
SELECT 66 * + col1 - - col2 AS col1 FROM tab1 AS cor0
----
1020
3170
389

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5063
SELECT ALL ( MIN( DISTINCT - CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5063
SELECT ALL ( MIN ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col0 + 83 FROM tab0 WHERE NOT - - col1 IS NULL
----
-14
-4
68

query I rowsort
SELECT col2 * - 48 AS col1 FROM tab2
----
-1104
-1920
-2784

query II rowsort
SELECT DISTINCT + col1 AS col1, - col0 + - col2 FROM tab0 AS cor0
----
1
-196
21
-97
81
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5067
SELECT ALL + 87 AS col0 FROM tab1 AS cor0 WHERE col1 * CAST( - col2 AS SIGNED ) >= + - col2
----

skipif mysql # not compatible
query I rowsort label-5067
SELECT ALL + 87 AS col0 FROM tab1 AS cor0 WHERE col1 * CAST ( - col2 AS INTEGER ) >= + - col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 * + 70 + - 10 >= col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 * + 52 * - - col0 col1 FROM tab2 AS cor0
----
-121992
-256256
-261300

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5070
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0, CAST( NULL AS SIGNED ), + + 42 )
----

skipif mysql # not compatible
query III rowsort label-5070
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0, CAST ( NULL AS INTEGER ), + + 42 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5071
SELECT DISTINCT + + MAX( - col2 ) * + 25 FROM tab1 AS cor0
----
-1475

skipif mysql # not compatible
query I rowsort label-5071
SELECT DISTINCT + + MAX ( - col2 ) * + 25 FROM tab1 AS cor0
----
-1475

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT + + 72 * + SUM( + 79 ) AS col0 FROM tab2 WHERE + + col1 = + col1 * - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-5072
SELECT DISTINCT + + 72 * + SUM ( + 79 ) AS col0 FROM tab2 WHERE + + col1 = + col1 * - col2
----
NULL

query I rowsort
SELECT + col1 * col2 FROM tab0 WHERE ( NOT NULL IS NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) + + - 31 col1 FROM tab1
----
28
37
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5075
SELECT - MAX( col0 ) + + 49 FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-5075
SELECT - MAX ( col0 ) + + 49 FROM tab2
----
-26

onlyif mysql # aggregate syntax: 
query I rowsort label-5076
SELECT ALL COUNT( * ) FROM tab0 WHERE - col2 BETWEEN - col0 + + 38 AND + col0
----
1

skipif mysql # not compatible
query I rowsort label-5076
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col2 BETWEEN - col0 + + 38 AND + col0
----
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + + col1 ) + - col0 col1 FROM tab0
----
-108
-96
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT ALL COUNT( * ) + 20 AS col2 FROM tab0
----
23

skipif mysql # not compatible
query I rowsort label-5078
SELECT ALL COUNT ( * ) + 20 AS col2 FROM tab0
----
23

query I rowsort
SELECT 57 * - col0 + - + 86 FROM tab1
----
-2993
-4931
-5273

query I rowsort
SELECT DISTINCT + - 63 AS col2 FROM tab0 AS cor0
----
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-5081
SELECT DISTINCT COUNT( * ) * 80 - COUNT( * ) FROM tab2 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-5081
SELECT DISTINCT COUNT ( * ) * 80 - COUNT ( * ) FROM tab2 AS cor0
----
237

query I rowsort
SELECT DISTINCT 25 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( - col1 )
----

query I rowsort
SELECT + + col2 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - - 68
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col1 <> col2 * - col1 * + col2
----

query I rowsort
SELECT - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT col0 <= 38 + - 56 + - col2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-5086
SELECT - ( MAX( ALL + - col2 ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5086
SELECT - ( MAX ( ALL + - col2 ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT - 74 * col1 AS col0 FROM tab0
----
-1554
-5994
-74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 * + col0 col1 FROM tab2
----
4048
5632
6600

query I rowsort
SELECT col2 * - + col0 * - col0 * - col2 FROM tab0
----
-497025
-756900
-92217609

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5090
SELECT DISTINCT + AVG ( ALL - + col2 ) * + - COUNT( * ) * - COUNT( ALL + col1 ) * - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5090
SELECT DISTINCT + AVG ( ALL - + col2 ) * + - COUNT ( * ) * - COUNT ( ALL + col1 ) * - CAST ( NULL AS REAL ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 * + 36 AS col2 FROM tab2 AS cor0
----
-1656
-2304
-2700

onlyif mysql # DIV for integer division: 
query I rowsort label-5092
SELECT DISTINCT - + 16 DIV + - col1 AS col1 FROM tab0 AS cor0
----
0
16

skipif mysql # not compatible
query I rowsort label-5092
SELECT DISTINCT - + 16 / + - col1 AS col1 FROM tab0 AS cor0
----
0
16

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5093
SELECT + + CAST( NULL AS SIGNED ) / COUNT( * ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5093
SELECT + + CAST ( NULL AS INTEGER ) / COUNT ( * ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5094
SELECT COUNT( DISTINCT + 36 ) col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5094
SELECT COUNT ( DISTINCT + 36 ) col1 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5095
SELECT DISTINCT 24 DIV - - 24 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5095
SELECT DISTINCT 24 / - - 24 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-5096
SELECT - SUM( DISTINCT - col1 ), 80 AS col1 FROM tab0 cor0
----
103
80

skipif mysql # not compatible
query II rowsort label-5096
SELECT - SUM ( DISTINCT - col1 ), 80 AS col1 FROM tab0 cor0
----
103
80

query I rowsort
SELECT + col1 + - ( - 69 ) FROM tab0
----
150
70
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= col1 * - col1
----

query I rowsort
SELECT col0 + - 52 FROM tab0 cor0
----
-37
35
45

query I rowsort
SELECT + ( + col2 ) + + + col0 FROM tab2 AS cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-5101
SELECT - col0 DIV 3 + - col1 + - col0 FROM tab1 AS cor0
----
-118
-168
-82

skipif mysql # not compatible
query I rowsort label-5101
SELECT - col0 / 3 + - col1 + - col0 FROM tab1 AS cor0
----
-118
-168
-82

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + ( col2 ) < 47 - - col0 + - col2 * - 4 + - + 12
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5103
SELECT DISTINCT - ( - 60 ) DIV + 93 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5103
SELECT DISTINCT - ( - 60 ) / + 93 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5104
SELECT MIN( + col0 ), 42 AS col1 FROM tab1 AS cor0
----
51
42

skipif mysql # not compatible
query II rowsort label-5104
SELECT MIN ( + col0 ), 42 AS col1 FROM tab1 AS cor0
----
51
42

onlyif mysql # DIV for integer division: 
query I rowsort label-5105
SELECT - 71 DIV + - col2 + - col1 FROM tab2 AS cor0
----
-48
-66
-76

skipif mysql # not compatible
query I rowsort label-5105
SELECT - 71 / + - col2 + - col1 FROM tab2 AS cor0
----
-48
-66
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT - ( + COUNT( * ) ) AS col1 FROM tab0 WHERE + + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5106
SELECT - ( + COUNT ( * ) ) AS col1 FROM tab0 WHERE + + col2 IS NULL
----
0

query II rowsort
SELECT DISTINCT + 26, col0 AS col0 FROM tab2
----
26
46
26
64
26
75

query I rowsort
SELECT DISTINCT col0 + + ( + + col0 ) FROM tab2
----
128
150
92

query I rowsort
SELECT ALL + col1 * - col1 * + col2 + - + 26 + + col0 FROM tab0
----
-28
-308378
-4349

onlyif mysql # DIV for integer division: 
query I rowsort label-5110
SELECT DISTINCT - - ( + + col0 ) DIV - - col2 + + col2 AS col0 FROM tab0 AS cor0
----
18
47
99

skipif mysql # not compatible
query I rowsort label-5110
SELECT DISTINCT - - ( + + col0 ) / - - col2 + + col2 AS col0 FROM tab0 AS cor0
----
18
47
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5111
SELECT 98 DIV + col2 + - 22 FROM tab2 AS cor0
----
-18
-20
-21

skipif mysql # not compatible
query I rowsort label-5111
SELECT 98 / + col2 + - 22 FROM tab2 AS cor0
----
-18
-20
-21

query I rowsort
SELECT - + col0 + - + col0 FROM tab1 AS cor0
----
-102
-170
-182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5113
SELECT + + col1 + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5113
SELECT + + col1 + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col2 * + - 43 + + col0 + col2 AS col1 FROM tab2 AS cor0 WHERE col0 * + 74 / - 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT ALL 70 + + + COUNT( * ) * 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
601

skipif mysql # not compatible
query I rowsort label-5115
SELECT ALL 70 + + + COUNT ( * ) * 59 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
601

query II rowsort
SELECT DISTINCT col0 + + 67 AS col1, col0 FROM tab2 AS cor0 WHERE ( + col0 + - col1 * 66 * + 49 ) IS NOT NULL
----
113
46
131
64
142
75

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND - col2 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5118
SELECT * FROM tab2 cor0 WHERE NOT ( CAST( - + col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5118
SELECT * FROM tab2 cor0 WHERE NOT ( CAST ( - + col0 AS INTEGER ) ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col1 / col0 + - ( - 20 ) IN ( + 59, + col2, col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5120
SELECT DISTINCT SUM( DISTINCT - - 94 ) AS col0 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-5120
SELECT DISTINCT SUM ( DISTINCT - - 94 ) AS col0 FROM tab2
----
94

query II rowsort
SELECT + 9, col1 FROM tab2
----
9
51
9
67
9
77

onlyif mysql # DIV for integer division: 
query I rowsort label-5122
SELECT 81 DIV + 7 FROM tab1
----
11
11
11

skipif mysql # not compatible
query I rowsort label-5122
SELECT 81 / + 7 FROM tab1
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 57 * col2 col2 FROM tab1
----
-3363
-3876
-5472

query II rowsort
SELECT col2 AS col2, col0 AS col1 FROM tab2
----
23
46
40
64
58
75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col2, - col1, 5 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 NOT BETWEEN NULL AND + 1 * + 63
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 18 * col0 + col0 col1 FROM tab0
----
1653
1843
285

query I rowsort
SELECT DISTINCT + ( - ( col2 ) ) FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-5129
SELECT ALL - + COUNT( * ) + - SUM( ALL - 25 ) + - 38 AS col0, COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
178
9

skipif mysql # not compatible
query II rowsort label-5129
SELECT ALL - + COUNT ( * ) + - SUM ( ALL - 25 ) + - 38 AS col0, COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
178
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL + MAX( DISTINCT + ( + col1 ) ) FROM tab0 cor0
----
81

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + MAX ( DISTINCT + ( + col1 ) ) FROM tab0 cor0
----
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5131
SELECT DISTINCT + 21 DIV + ( COUNT( * ) ) FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-5131
SELECT DISTINCT + 21 / + ( COUNT ( * ) ) FROM tab1 AS cor0
----
7

query II rowsort
SELECT ALL - col1 AS col2, - 72 FROM tab2 AS cor0
----
-51
-72
-67
-72
-77
-72

query I rowsort
SELECT 41 + col1 + - + col1 * + col2 + - - 16 * + 49 * - 95 FROM tab1
----
-74729
-75769
-77588

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT - COUNT( * ) + + + 13 FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-5134
SELECT - COUNT ( * ) + + + 13 FROM tab1
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - ( + 61 ) col2 FROM tab0
----
-46
26
36

query I rowsort
SELECT ALL - col2 + - col0 - + col2 + - + 43 * + col1 * + 98 FROM tab2
----
-215006
-282529
-324622

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5137
SELECT * FROM tab0 WHERE col2 BETWEEN + + col2 / col0 + - CAST( NULL AS DECIMAL ) AND + col0
----

skipif mysql # not compatible
query III rowsort label-5137
SELECT * FROM tab0 WHERE col2 BETWEEN + + col2 / col0 + - CAST ( NULL AS REAL ) AND + col0
----

query II rowsort
SELECT col0, col0 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

query II rowsort
SELECT - + 12 * - col2 - - 22 AS col1, ( 77 ) FROM tab0 cor0
----
1210
77
142
77
586
77

query I rowsort
SELECT - + 48 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 31c94943c073954e4ca20b170ab61f8c

query II rowsort
SELECT ALL col2 AS col2, - 73 + - + col1 AS col1 FROM tab0
----
10
-94
47
-154
99
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5143
SELECT COUNT( * ) * + 2 DIV - MIN( - - col2 ) * + - COUNT( * ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5143
SELECT COUNT ( * ) * + 2 / - MIN ( - - col2 ) * + - COUNT ( * ) AS col1 FROM tab2
----
0

query I rowsort
SELECT ALL - - 31 AS col1 FROM tab2 AS cor0
----
31
31
31

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + 79 ) - + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 72, + col1 col0 FROM tab0 AS cor0
----
72
1
72
21
72
81

onlyif mysql # aggregate syntax: 
query II rowsort label-5148
SELECT ALL - SUM( ALL col1 ) AS col2, + COUNT( * ) col0 FROM tab0
----
-103
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5148
SELECT ALL - SUM ( ALL col1 ) AS col2, + COUNT ( * ) col0 FROM tab0
----
-103
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 NOT BETWEEN + ( - col0 ) AND - + col2 + + 70
----
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-5150
SELECT ALL MIN( ALL + 97 ) FROM tab1
----
97

skipif mysql # not compatible
query I rowsort label-5150
SELECT ALL MIN ( ALL + 97 ) FROM tab1
----
97

query I rowsort
SELECT + col0 FROM tab1 WHERE NOT + - ( + - 87 ) IS NOT NULL
----

query I rowsort
SELECT ALL - 49 + + - col0 AS col1 FROM tab1
----
-100
-134
-140

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT ALL MAX( DISTINCT + 62 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-5153
SELECT ALL MAX ( DISTINCT + 62 ) AS col0 FROM tab2 AS cor0 WHERE NOT NULL < ( NULL )
----
NULL

query II rowsort
SELECT + col2 * + col1, + 98 AS col2 FROM tab0 AS cor0
----
210
98
3807
98
99
98

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + 64 ) IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5156
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - + col2 AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5156
SELECT DISTINCT - CAST ( NULL AS REAL ) + - + col2 AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5157
SELECT 78 - - - COUNT( * ) * 78 - 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-684

skipif mysql # not compatible
query I rowsort label-5157
SELECT 78 - - - COUNT ( * ) * 78 - 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-684

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - + 13 ) + - ( 61 ) + 54 + 89 * 24 col0 FROM tab0 AS cor0
----
2142
2142
2142

onlyif mysql # aggregate syntax: 
query I rowsort label-5159
SELECT - COUNT( * ) * 66 AS col2 FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5159
SELECT - COUNT ( * ) * 66 AS col2 FROM tab2 AS cor0
----
-198

query I rowsort
SELECT + - 3 * + col1 FROM tab2 AS cor0
----
-153
-201
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-5161
SELECT ALL SUM( ALL - - 40 ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-5161
SELECT ALL SUM ( ALL - - 40 ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT + - col2 FROM tab2 AS cor0 WHERE - col2 + - col1 - - - 67 - + col2 / + col0 IS NULL
----

query I rowsort
SELECT + col1 * - 65 FROM tab0 AS cor0
----
-1365
-5265
-65

query I rowsort
SELECT DISTINCT - - 18 + - 8 + + - col2 * - col1 AS col2 FROM tab0 AS cor0
----
109
220
3817

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 58 * + + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT - COUNT( 64 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5166
SELECT - COUNT ( 64 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-3

query I rowsort
SELECT - ( + col2 ) * + + 50 FROM tab2 AS cor0
----
-1150
-2000
-2900

query I rowsort
SELECT + - 80 * + + col0 FROM tab0 AS cor0
----
-1200
-6960
-7760

query I rowsort
SELECT + - col0 * + 70 * - 17 AS col2 FROM tab1 cor0
----
101150
108290
60690

query I rowsort
SELECT - col2 - - 52 AS col2 FROM tab2
----
-6
12
29

query I rowsort
SELECT ALL - 42 * - 18 AS col2 FROM tab2
----
756
756
756

query I rowsort
SELECT 43 - - + 19 - - + col1 FROM tab2
----
113
129
139

query I rowsort
SELECT DISTINCT 30 * - col0 * - col0 AS col2 FROM tab1
----
216750
248430
78030

query I rowsort
SELECT ALL + col0 - 51 FROM tab2
----
-5
13
24

query I rowsort
SELECT - 14 * - + 0 - + 25 AS col0 FROM tab2
----
-25
-25
-25

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 >= - col1 * + 19
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - + 55 AS col0 FROM tab2 cor0
----
-55
-55
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-5178
SELECT + MIN( DISTINCT - 68 ) FROM tab1 AS cor0
----
-68

skipif mysql # not compatible
query I rowsort label-5178
SELECT + MIN ( DISTINCT - 68 ) FROM tab1 AS cor0
----
-68

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( + 66 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5180
SELECT ALL COUNT( DISTINCT - + 39 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5180
SELECT ALL COUNT ( DISTINCT - + 39 ) AS col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT - + col1 * - 19 AS col2 FROM tab0 AS cor0
----
1539
19
399

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> - - 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5183
SELECT + SUM( DISTINCT - + 40 ) FROM tab1
----
-40

skipif mysql # not compatible
query I rowsort label-5183
SELECT + SUM ( DISTINCT - + 40 ) FROM tab1
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 42 * col1 * - 33 col0, 66 + - col0 + + 64 FROM tab0
----
-112266
115
-1386
33
-29106
43

onlyif mysql # DIV for integer division: 
query I rowsort label-5185
SELECT - ( + col1 ) * - + 45 + - 8 DIV + 96 FROM tab1
----
2115
225
630

skipif mysql # not compatible
query I rowsort label-5185
SELECT - ( + col1 ) * - + 45 + - 8 / + 96 FROM tab1
----
2115
225
630

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE NOT - col1 NOT BETWEEN - ( 16 ) AND NULL
----

query I rowsort
SELECT DISTINCT 48 * + - col0 AS col2 FROM tab2
----
-2208
-3072
-3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT - 18 + + ( - 66 ) + - 91 * COUNT( * ) AS col1 FROM tab2
----
-357

skipif mysql # not compatible
query I rowsort label-5188
SELECT - 18 + + ( - 66 ) + - 91 * COUNT ( * ) AS col1 FROM tab2
----
-357

query I rowsort
SELECT ( 9 ) + + + col1 FROM tab1
----
14
23
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5190
SELECT + col2 + + 34 + + col0 + - col2 DIV + col1 FROM tab2 AS cor0
----
103
138
167

skipif mysql # not compatible
query I rowsort label-5190
SELECT + col2 + + 34 + + col0 + - col2 / + col1 FROM tab2 AS cor0
----
103
138
167

query I rowsort
SELECT DISTINCT - ( - + ( col0 ) ) + - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 * + col0 IN ( col2, + col2 )
----
141
142
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 * 48 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 31 + col0 AS col2 FROM tab1
----
20
54
60

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - col0 ) <> NULL
----

query I rowsort
SELECT DISTINCT + + 8 AS col0 FROM tab1 AS cor0
----
8

query I rowsort
SELECT DISTINCT col1 + + + col2 AS col1 FROM tab2 AS cor0
----
117
125
74

query II rowsort
SELECT - col0 + - - col2 AS col0, + col0 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + 11 / + 16 * + col0 FROM tab0 AS cor0 WHERE NOT NULL >= + 92
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5200
SELECT ALL COUNT( * ) * - 81 DIV ( - + 22 ) AS col2 FROM tab0 WHERE NOT NULL <> - + col0
----
0

skipif mysql # not compatible
query I rowsort label-5200
SELECT ALL COUNT ( * ) * - 81 / ( - + 22 ) AS col2 FROM tab0 WHERE NOT NULL <> - + col0
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5201
SELECT ALL - 32 * col1 * + + CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5201
SELECT ALL - 32 * col1 * + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5202
SELECT + col2 AS col1, CAST( NULL AS SIGNED ) + - - 69, + + col1 + col2 col0 FROM tab2
----
9 values hashing to 0caa39e80c8ebd87426fd6d9e238e02b

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-5202
SELECT + col2 AS col1, CAST ( NULL AS INTEGER ) + - - 69, + + col1 + col2 col0 FROM tab2
----
9 values hashing to 0caa39e80c8ebd87426fd6d9e238e02b

query III rowsort
SELECT * FROM tab0 WHERE - 83 + 90 IS NULL
----

query I rowsort
SELECT DISTINCT 46 * col2 + - 32 * + col0 AS col1 FROM tab2
----
-208
-414
268

query I rowsort
SELECT ALL col1 + - + col0 - col2 + col2 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-5206
SELECT ALL + 5 DIV + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + 5 / + + col0 FROM tab1
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 4 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - ( - + ( + 43 ) ) col2 FROM tab2 AS cor0
----
43
43
43

query II rowsort
SELECT ALL - col1, col2 AS col2 FROM tab2 AS cor0
----
-51
23
-67
58
-77
40

query I rowsort
SELECT col1 + + 31 * - 97 * + col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5211
SELECT DISTINCT SUM( DISTINCT - - 65 ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-5211
SELECT DISTINCT SUM ( DISTINCT - - 65 ) AS col1 FROM tab1 AS cor0
----
65

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= - col0 + - 42 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT DISTINCT COUNT( * ) * + 85 col0 FROM tab1
----
255

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5213
SELECT DISTINCT COUNT ( * ) * + 85 col0 FROM tab1
----
255

query I rowsort
SELECT - 40 FROM tab0 WHERE NOT NULL IN ( 67 + + 91 * col2, + 40 * - ( + 73 ) * col2 * + 0, + - col0, - 16 + - ( + 90 ) * + - 68 / + 92 - + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5215
SELECT DISTINCT - 15, - 44 * 70 - + + COUNT( + col2 ) AS col0 FROM tab0 AS cor0
----
-15
-3083

skipif mysql # not compatible
query II rowsort label-5215
SELECT DISTINCT - 15, - 44 * 70 - + + COUNT ( + col2 ) AS col0 FROM tab0 AS cor0
----
-15
-3083

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5216
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, SUM( DISTINCT - col0 ) FROM tab2 AS cor0
----
NULL
-185

skipif mysql # not compatible
query II rowsort label-5216
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, SUM ( DISTINCT - col0 ) FROM tab2 AS cor0
----
NULL
-185

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + - col1 <> NULL
----

query I rowsort
SELECT col1 * - 45 + + col1 FROM tab0 AS cor0
----
-3564
-44
-924

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5219
SELECT ALL - - CAST( - + AVG ( DISTINCT + - ( col2 ) ) AS SIGNED ) DIV + - 93 * - ( + COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5219
SELECT ALL - - CAST ( - + AVG ( DISTINCT + - ( col2 ) ) AS INTEGER ) / + - 93 * - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5220
SELECT - COUNT( * ) FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5220
SELECT - COUNT ( * ) FROM tab2 WHERE NOT ( + col0 ) IS NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-5221
SELECT ALL + col1 DIV - 9 + - col1 AS col1 FROM tab1
----
-15
-5
-52

skipif mysql # not compatible
query I rowsort label-5221
SELECT ALL + col1 / - 9 + - col1 AS col1 FROM tab1
----
-15
-5
-52

query I rowsort
SELECT ALL - 50 FROM tab2, tab1 AS cor0
----
9 values hashing to c7432a968c8352c12996dfa54dd4b9e8

onlyif mysql # aggregate syntax: 
query I rowsort label-5223
SELECT - COUNT( * ) * + 36 FROM tab2 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-5223
SELECT - COUNT ( * ) * + 36 FROM tab2 AS cor0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT ALL + + SUM( ALL col1 ) FROM tab0 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
103

skipif mysql # not compatible
query I rowsort label-5224
SELECT ALL + + SUM ( ALL col1 ) FROM tab0 AS cor0 WHERE NOT - col0 * - col0 IS NULL
----
103

query II rowsort
SELECT col2, - col2 + + col2 + - col2 FROM tab0 AS cor0 WHERE - col1 + 70 >= - 46 + - col2 OR NOT NULL IS NOT NULL
----
10
-10
47
-47
99
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT COUNT( * ) + + - 62 AS col0 FROM tab0 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5226
SELECT COUNT ( * ) + + - 62 AS col0 FROM tab0 AS cor0
----
-59

query I rowsort
SELECT ALL - 81 AS col1 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

query I rowsort
SELECT ALL + col2 + + col2 AS col0 FROM tab1 cor0
----
118
136
192

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5229
SELECT ALL - CAST( NULL AS SIGNED ) - 67 * + col1 + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5229
SELECT ALL - CAST ( NULL AS INTEGER ) - 67 * + col1 + 44 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + 15 AS col2 FROM tab0 AS cor0
----
-32
-84
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT DISTINCT 82 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-5231
SELECT DISTINCT 82 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
246

query I rowsort
SELECT ALL col2 + - col0 - + 33 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 <> + col0
----
-50
-56
-57

query I rowsort
SELECT + col2 * - col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT ALL - + col1 - col1 + - 31 * + - col2 FROM tab2 AS cor0
----
1086
1664
611

query I rowsort
SELECT DISTINCT col0 - - - col1 FROM tab2 AS cor0
----
-13
-5
8

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 + - - col0 + + + 77 AND 20
----

query I rowsort
SELECT DISTINCT - col0 - + - col0 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT + + COUNT( * ) AS col2, - SUM( - - col2 ) FROM tab1 AS cor0
----
3
-223

skipif mysql # not compatible
query II rowsort label-5238
SELECT + + COUNT ( * ) AS col2, - SUM ( - - col2 ) FROM tab1 AS cor0
----
3
-223

query II rowsort
SELECT col1 AS col0, col2 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT ALL + 55 - - - col0 + - col0 FROM tab1 AS cor0
----
-115
-127
-47

query I rowsort
SELECT - 97 AS col2 FROM tab1 cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT col1 * - 18 AS col0 FROM tab1
----
-252
-846
-90

query I rowsort
SELECT + col2 - + col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT + 71 * col1 AS col2 FROM tab0
----
1491
5751
71

query I rowsort
SELECT - - 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d8bf0a05c9c4d2a93812d106baae4752

query I rowsort
SELECT - col1 * - col1 * - col1 FROM tab0
----
-1
-531441
-9261

query I rowsort
SELECT ALL + 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT + ( - COUNT( * ) ) * - COUNT( * ) AS col0 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5248
SELECT + ( - COUNT ( * ) ) * - COUNT ( * ) AS col0 FROM tab1
----
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5249
SELECT + - COUNT( * ) AS col0, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-5249
SELECT + - COUNT ( * ) AS col0, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-3
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5250
SELECT DISTINCT - COUNT( * ), + COUNT( * ) FROM tab0 cor0 WHERE NOT 55 / + + 26 + col0 IS NOT NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-5250
SELECT DISTINCT - COUNT ( * ), + COUNT ( * ) FROM tab0 cor0 WHERE NOT 55 / + + 26 + col0 IS NOT NULL
----
0
0

query I rowsort
SELECT ALL + 71 * - ( + + col2 ) FROM tab0 AS cor0
----
-3337
-7029
-710

onlyif mysql # aggregate syntax: 
query II rowsort label-5252
SELECT DISTINCT - 57 * - - 41 * MAX( DISTINCT - col1 ) col2, + COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
2337
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5252
SELECT DISTINCT - 57 * - - 41 * MAX ( DISTINCT - col1 ) col2, + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
2337
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 82 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5255
SELECT ALL - COUNT( + col0 ) DIV + + 34 - 58 AS col0 FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5255
SELECT ALL - COUNT ( + col0 ) / + + 34 - 58 AS col0 FROM tab2 cor0
----
-58

query III rowsort
SELECT * FROM tab2 WHERE 46 * + + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5257
SELECT - col1 + + col1 DIV col1 + 87 * + + col2 AS col1 FROM tab2
----
1951
3404
4980

skipif mysql # not compatible
query I rowsort label-5257
SELECT - col1 + + col1 / col1 + 87 * + + col2 AS col1 FROM tab2
----
1951
3404
4980

query I rowsort
SELECT ALL 25 + + col1 * + col2 + + 97 + + col1 * + - col1 FROM tab0
----
-109
-2632
220

query I rowsort
SELECT + 32 * 3 + col1 * - col2 + col2 AS col1 FROM tab0
----
-104
-3664
96

query I rowsort
SELECT DISTINCT 23 + col2 FROM tab2
----
46
63
81

query I rowsort
SELECT DISTINCT ( col2 ) * col2 AS col2 FROM tab1
----
3481
4624
9216

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5262
SELECT ALL 10 * + + MIN( CAST( NULL AS DECIMAL ) ) col0 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5262
SELECT ALL 10 * + + MIN ( CAST ( NULL AS REAL ) ) col0 FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT IN ( - 58 + 81 ) AND + + col2 BETWEEN NULL AND + col0
----

query I rowsort
SELECT - 28 + 48 AS col1 FROM tab1 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-5265
SELECT + MIN( - col1 ) + + 71 AS col1 FROM tab1 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5265
SELECT + MIN ( - col1 ) + + 71 AS col1 FROM tab1 AS cor0
----
24

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= 92 * + col0 + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5267
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE col2 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 > - 92 + - col0
----

query I rowsort
SELECT ALL - 58 - col2 + - - col1 FROM tab2 AS cor0
----
-21
-30
-49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 88 * + + ( - 82 ) - - 91 - col2 col2, + col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL col2 * col0 + - + col0 AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5272
SELECT - MAX( ALL - ( + + 19 ) ) AS col2 FROM tab1, tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-5272
SELECT - MAX ( ALL - ( + + 19 ) ) AS col2 FROM tab1, tab0 cor0
----
19

query III rowsort
SELECT * FROM tab1 WHERE NOT - 97 * - + 16 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col2 FROM tab1 WHERE NOT col1 - - col2 / + - col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5275
SELECT - MIN( - col1 ) FROM tab0 WHERE NOT + col2 + + + 4 / + + col1 BETWEEN - col1 AND - + CAST( NULL AS SIGNED ) * - 37
----
NULL

skipif mysql # not compatible
query I rowsort label-5275
SELECT - MIN ( - col1 ) FROM tab0 WHERE NOT + col2 + + + 4 / + + col1 BETWEEN - col1 AND - + CAST ( NULL AS INTEGER ) * - 37
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col0, - 10 FROM tab2
----
51
-10
67
-10
77
-10

query I rowsort
SELECT ALL + 17 * - col1 FROM tab1 AS cor0
----
-238
-799
-85

query I rowsort
SELECT DISTINCT 66 AS col0 FROM tab1 WHERE NOT col0 IS NULL
----
66

query I rowsort
SELECT + col1 * - col2 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 col0 FROM tab1 WHERE - col2 + - col1 NOT IN ( col2 )
----
82
82
82

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - col2 ) IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT 71 IS NOT NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( NULL ) IN ( col0 )
----

query I rowsort
SELECT 46 AS col0 FROM tab1 WHERE + col1 IS NOT NULL
----
46
46
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5285
SELECT ALL 23 DIV col1 + col0 * + col1 AS col1 FROM tab2 WHERE - col2 * + col2 + col1 IS NOT NULL
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL 23 / col1 + col0 * + col1 AS col1 FROM tab2 WHERE - col2 * + col2 + col1 IS NOT NULL
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT COUNT( * ) * + COUNT( DISTINCT col0 ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-5286
SELECT COUNT ( * ) * + COUNT ( DISTINCT col0 ) FROM tab0
----
9

query I rowsort
SELECT col2 + - 8 AS col1 FROM tab0
----
2
39
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 87 * + col2 col0 FROM tab0
----
-4089
-8613
-870

query I rowsort
SELECT 20 + 29 AS col1 FROM tab1
----
49
49
49

query I rowsort
SELECT col1 FROM tab1 WHERE ( - 95 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT ALL - MAX( DISTINCT col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5291
SELECT ALL - MAX ( DISTINCT col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT + COUNT( + 15 ) + - 0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5292
SELECT + COUNT ( + 15 ) + - 0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5293
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT col1 <> + col1 * ( + CAST( + col2 AS DECIMAL ) ) + - 50
----

skipif mysql # not compatible
query I rowsort label-5293
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT col1 <> + col1 * ( + CAST ( + col2 AS REAL ) ) + - 50
----

query I rowsort
SELECT DISTINCT - 3 * ( + col2 ) FROM tab1
----
-177
-204
-288

onlyif mysql # DIV for integer division: 
query I rowsort label-5295
SELECT - col1 DIV + col1 FROM tab0 WHERE NOT - col1 BETWEEN - col0 AND - col2
----
-1
-1

skipif mysql # not compatible
query I rowsort label-5295
SELECT - col1 / + col1 FROM tab0 WHERE NOT - col1 BETWEEN - col0 AND - col2
----
-1
-1

query I rowsort
SELECT col2 FROM tab1 WHERE NULL <= ( NULL )
----

query I rowsort
SELECT ALL + ( 92 ) * + col0 AS col0 FROM tab0
----
1380
8004
8924

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL ) IN ( 57 * col2 )
----

query I rowsort
SELECT 60 - col2 AS col1 FROM tab1
----
-36
-8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-5300
SELECT 66 DIV + col0 AS col1 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5300
SELECT 66 / + col0 AS col1 FROM tab0
----
0
0
4

query I rowsort
SELECT - col1 - 23 AS col0 FROM tab1 cor0
----
-28
-37
-70

query I rowsort
SELECT ALL + 94 + col1 * - col1 FROM tab1 cor0
----
-102
-2115
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - col1 * + 49 col0 FROM tab0 AS cor0
----
-1008
-3888
-48

onlyif mysql # DIV for integer division: 
query I rowsort label-5304
SELECT ALL col0 - ( + col2 + col1 DIV - col0 ) AS col1 FROM tab2 AS cor0
----
17
24
25

skipif mysql # not compatible
query I rowsort label-5304
SELECT ALL col0 - ( + col2 + col1 / - col0 ) AS col1 FROM tab2 AS cor0
----
17
24
25

query I rowsort
SELECT 72 FROM tab0 AS cor0 WHERE ( + col2 + - col1 ) IS NULL
----

query I rowsort
SELECT - 20 + + 69 AS col2 FROM tab2 AS cor0
----
49
49
49

query III rowsort
SELECT * FROM tab2 cor0 WHERE col1 / + col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 94 * col0 AS col2 FROM tab0
----
1410
8178
9118

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5309
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( + col1 ) / col2 + + CAST( NULL AS SIGNED ) ) IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-5309
SELECT DISTINCT * FROM tab1 WHERE NOT ( ( + col1 ) / col2 + + CAST ( NULL AS INTEGER ) ) IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5310
SELECT - + COUNT( * ) - 81 * 81 FROM tab1 AS cor0
----
-6564

skipif mysql # not compatible
query I rowsort label-5310
SELECT - + COUNT ( * ) - 81 * 81 FROM tab1 AS cor0
----
-6564

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT ( 61 ) IN ( + col1 )
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT ALL + SUM( + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-5312
SELECT ALL + SUM ( + col2 ) AS col2 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT AVG ( - col0 ) + COUNT( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5313
SELECT AVG ( - col0 ) + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 * 86 AS col1 FROM tab1
----
5074
5848
8256

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5315
SELECT * FROM tab0 WHERE NOT ( NULL ) > ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5315
SELECT * FROM tab0 WHERE NOT ( NULL ) > ( + CAST ( NULL AS REAL ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN 66 * 30 AND ( col1 * col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col1 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5318
SELECT COUNT( * ) * + + COUNT( - 94 ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5318
SELECT COUNT ( * ) * + + COUNT ( - 94 ) FROM tab2
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 10 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL BETWEEN ( NULL ) AND ( - col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5321
SELECT SUM( - col2 ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5321
SELECT SUM ( - col2 ) col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5322
SELECT - 24 DIV - COUNT( 16 ) AS col2 FROM tab2
----
8

skipif mysql # not compatible
query I rowsort label-5322
SELECT - 24 / - COUNT ( 16 ) AS col2 FROM tab2
----
8

query I rowsort
SELECT DISTINCT ( col2 ) FROM tab0 AS cor0 WHERE NOT - col0 * + col1 IN ( 37 )
----
10
47
99

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND col2
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col2 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5326
SELECT 6 * + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5326
SELECT 6 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 85 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( + 68 ) = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5328
SELECT ALL + MIN( DISTINCT - 97 ) + + 84 * + 28 AS col1 FROM tab0
----
2255

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL + MIN ( DISTINCT - 97 ) + + 84 * + 28 AS col1 FROM tab0
----
2255

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT + - ( + + MAX( + col0 ) ) col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5329
SELECT DISTINCT + - ( + + MAX ( + col0 ) ) col2 FROM tab1 AS cor0
----
-91

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 - + + 42 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5331
SELECT DISTINCT col1 AS col0, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-5331
SELECT DISTINCT col1 AS col0, - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT + COUNT( * ) FROM tab1 cor0 WHERE + 3 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5332
SELECT + COUNT ( * ) FROM tab1 cor0 WHERE + 3 IS NULL
----
0

query I rowsort
SELECT ALL + AVG ( DISTINCT + 24 ) - + 85 AS col1 FROM tab2 AS cor0 WHERE NOT + 4 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0 col1, - col0 AS col2 FROM tab1 cor0
----
-51
-51
-85
-85
-91
-91

query I rowsort
SELECT DISTINCT - - col2 + + 65 AS col2 FROM tab0 AS cor0
----
112
164
75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5336
SELECT * FROM tab1 cor0 WHERE ( - 46 ) <= ( - col1 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5336
SELECT * FROM tab1 cor0 WHERE ( - 46 ) <= ( - col1 + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5337
SELECT ALL + COUNT( DISTINCT + 67 ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5337
SELECT ALL + COUNT ( DISTINCT + 67 ) AS col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT * FROM tab0 WHERE - 0 <> NULL
----

query I rowsort
SELECT + 63 + - 66 FROM tab1
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5340
SELECT - 30 + + COUNT( * ) AS col0 FROM tab1
----
-27

skipif mysql # not compatible
query I rowsort label-5340
SELECT - 30 + + COUNT ( * ) AS col0 FROM tab1
----
-27

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= 9
----

query I rowsort
SELECT 2 - 0 FROM tab1 WHERE NULL BETWEEN + col1 AND + col2
----

query I rowsort
SELECT DISTINCT + 60 + + 50 * 31 AS col1 FROM tab2
----
1610

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5344
SELECT CAST( + col2 AS SIGNED ) + - + col1 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-5344
SELECT CAST ( + col2 AS INTEGER ) + - + col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT ALL col0 * + 61 + 2 FROM tab1
----
3113
5187
5553

query I rowsort
SELECT + col2 + + col0 - + + col2 * ( + col0 ) * 51 AS col0 FROM tab1
----
-249549
-255621
-315429

onlyif mysql # aggregate syntax: 
query I rowsort label-5347
SELECT COUNT( * ) FROM tab2 WHERE - 37 * - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5347
SELECT COUNT ( * ) FROM tab2 WHERE - 37 * - col0 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5348
SELECT ALL col0 FROM tab0 WHERE 87 >= col0 + CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-5348
SELECT ALL col0 FROM tab0 WHERE 87 >= col0 + CAST ( NULL AS INTEGER ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT - 28 - COUNT( DISTINCT - + col1 ) FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - 28 - COUNT ( DISTINCT - + col1 ) FROM tab2
----
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-5350
SELECT DISTINCT - ( 94 ) DIV col2 + col2 - col1 FROM tab1 AS cor0
----
20
53
82

skipif mysql # not compatible
query I rowsort label-5350
SELECT DISTINCT - ( 94 ) / col2 + col2 - col1 FROM tab1 AS cor0
----
20
53
82

query I rowsort
SELECT - col2 FROM tab0 WHERE + + col1 + + col1 NOT IN ( - col1 * - col2 )
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 BETWEEN + col2 AND ( NULL )
----

query I rowsort
SELECT ALL 39 FROM tab0 WHERE NULL IN ( + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5354
SELECT DISTINCT + ( CAST( + col1 AS SIGNED ) ) AS col2 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-5354
SELECT DISTINCT + ( CAST ( + col1 AS INTEGER ) ) AS col2 FROM tab0 cor0
----
1
21
81

query I rowsort
SELECT ALL + ( - 28 ) AS col0 FROM tab2 cor0
----
-28
-28
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-5356
SELECT - MIN( ALL + - col2 ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5356
SELECT - MIN ( ALL + - col2 ) FROM tab2 AS cor0
----
58

query I rowsort
SELECT DISTINCT - 16 / col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

query I rowsort
SELECT DISTINCT - 0 * + - col0 AS col1 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 <> + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT - COUNT( - + 35 ) AS col1 FROM tab2 WHERE NOT + 50 NOT BETWEEN ( + col0 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-5360
SELECT - COUNT ( - + 35 ) AS col1 FROM tab2 WHERE NOT + 50 NOT BETWEEN ( + col0 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5361
SELECT SUM( - 77 ) AS col2 FROM tab0
----
-231

skipif mysql # not compatible
query I rowsort label-5361
SELECT SUM ( - 77 ) AS col2 FROM tab0
----
-231

query I rowsort
SELECT + ( + - 5 ) FROM tab0
----
-5
-5
-5

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 33 ) IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT ( NOT NULL BETWEEN NULL AND NULL )
----

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( col2 * col0 * - col1 ) >= NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5367
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 29 IN ( col0 * + col1 - - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5367
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 29 IN ( col0 * + col1 - - + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5368
SELECT - 12, COUNT( col0 ) * + + MIN( - - ( + + ( + 63 ) ) ) AS col1 FROM tab0 AS cor0
----
-12
189

skipif mysql # not compatible
query II rowsort label-5368
SELECT - 12, COUNT ( col0 ) * + + MIN ( - - ( + + ( + 63 ) ) ) AS col1 FROM tab0 AS cor0
----
-12
189

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5369
SELECT DISTINCT CAST( col1 AS SIGNED ) AS col2, + col1 DIV + col2 AS col0 FROM tab2
----
51
2
67
1
77
1

skipif mysql # not compatible
query II rowsort label-5369
SELECT DISTINCT CAST ( col1 AS INTEGER ) AS col2, + col1 / + col2 AS col0 FROM tab2
----
51
2
67
1
77
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5370
SELECT ALL - SUM( ALL + col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5370
SELECT ALL - SUM ( ALL + col2 ) col0 FROM tab0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 11, col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 95 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5373
SELECT DISTINCT - 96 + - - 44 + - - CAST( - ( - col1 ) AS SIGNED ) * - col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - col0 )
----

skipif mysql # not compatible
query I rowsort label-5373
SELECT DISTINCT - 96 + - - 44 + - - CAST ( - ( - col1 ) AS INTEGER ) * - col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT IN ( - col0 )
----

query I rowsort
SELECT ALL + col1 + 55 AS col0 FROM tab2 AS cor0
----
106
122
132

query II rowsort
SELECT + col0 * + + 20, col1 - + 81 AS col0 FROM tab1 AS cor0
----
1020
-67
1700
-76
1820
-34

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5376
SELECT + + SUM( DISTINCT col2 ) DIV - COUNT( * ) FROM tab2 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-5376
SELECT + + SUM ( DISTINCT col2 ) / - COUNT ( * ) FROM tab2 AS cor0
----
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 col0 FROM tab2 WHERE NOT ( + ( - 22 ) * + col2 * - - col1 - col2 ) <= 80
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-5378
SELECT ALL CAST( NULL AS DECIMAL ) col1, ( + - COUNT( * ) ) col1 FROM tab1
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5378
SELECT ALL CAST ( NULL AS REAL ) col1, ( + - COUNT ( * ) ) col1 FROM tab1
----
NULL
-3

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL <= ( - + col2 - + - 4 )
----

query I rowsort
SELECT ALL - col0 + + - col2 AS col1 FROM tab2
----
-104
-133
-69

query III rowsort
SELECT * FROM tab2 WHERE ( col0 * - ( col2 ) * - + col0 + col2 + - + col2 / 22 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5382
SELECT COUNT( * ) * + SUM( col0 ) - - - ( + - 92 ) * + 94 AS col1 FROM tab2
----
9203

skipif mysql # not compatible
query I rowsort label-5382
SELECT COUNT ( * ) * + SUM ( col0 ) - - - ( + - 92 ) * + 94 AS col1 FROM tab2
----
9203

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5383
SELECT SUM( + CAST( 81 AS SIGNED ) ) + 82 * + - 74 FROM tab1
----
-5825

skipif mysql # not compatible
query I rowsort label-5383
SELECT SUM ( + CAST ( 81 AS INTEGER ) ) + 82 * + - 74 FROM tab1
----
-5825

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT col0 * - 39 * CAST( NULL AS SIGNED ) * + 60 - - 59 + - 79 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5384
SELECT col0 * - 39 * CAST ( NULL AS INTEGER ) * + 60 - - 59 + - 79 * + col1 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 52 <> + col0 * + ( - col1 )
----

query I rowsort
SELECT DISTINCT + 87 - - ( + col1 ) FROM tab0 AS cor0
----
108
168
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 79 col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - - col1 / - col2 AND - 31
----

query I rowsort
SELECT DISTINCT - col1 * - 23 FROM tab1 AS cor0
----
1081
115
322

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 + col0 <= - - 52 + 0 + col0 * - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 AS cor0 WHERE ( + 56 * + 45 + + 26 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5392
SELECT - col0 * ( CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5392
SELECT - col0 * ( CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL - ( + col0 ) * 36 + - 6 AS col1, 74 AS col2 FROM tab2 AS cor0
----
-1662
74
-2310
74
-2706
74

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 cor0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 70 * + col1 col1 FROM tab1 AS cor0
----
3290
350
980

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 / - col2 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5397
SELECT DISTINCT - COUNT( * ), COUNT( 53 ) * + - 64 * - + 58 AS col0 FROM tab2
----
-3
11136

skipif mysql # not compatible
query II rowsort label-5397
SELECT DISTINCT - COUNT ( * ), COUNT ( 53 ) * + - 64 * - + 58 AS col0 FROM tab2
----
-3
11136

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 * + 92 * - 24 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5399
SELECT ALL + COUNT( ALL - 84 ) col2 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5399
SELECT ALL + COUNT ( ALL - 84 ) col2 FROM tab1
----
3

query I rowsort
SELECT + ( - + col0 ) AS col1 FROM tab0
----
-15
-87
-97

query I rowsort
SELECT + col2 * + + 79 AS col1 FROM tab2
----
1817
3160
4582

query I rowsort
SELECT DISTINCT 64 + col2 FROM tab1
----
123
132
160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5403
SELECT - col0 + + CAST( + - 18 AS SIGNED ) + + col0 AS col1 FROM tab1
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-5403
SELECT - col0 + + CAST ( + - 18 AS INTEGER ) + + col0 AS col1 FROM tab1
----
-18
-18
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-5404
SELECT COUNT( * ) + - - COUNT( * ) FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5404
SELECT COUNT ( * ) + - - COUNT ( * ) FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5405
SELECT DISTINCT - + MIN( ALL + 42 ) FROM tab0 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-5405
SELECT DISTINCT - + MIN ( ALL + 42 ) FROM tab0 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-5406
SELECT ALL - col0 DIV 5 AS col2 FROM tab2 cor0
----
-12
-15
-9

skipif mysql # not compatible
query I rowsort label-5406
SELECT ALL - col0 / 5 AS col2 FROM tab2 cor0
----
-12
-15
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-5407
SELECT ALL 94 AS col0, COUNT( * ) AS col2 FROM tab1
----
94
3

skipif mysql # not compatible
query II rowsort label-5407
SELECT ALL 94 AS col0, COUNT ( * ) AS col2 FROM tab1
----
94
3

query I rowsort
SELECT + 23 FROM tab0 AS cor0 WHERE - 48 < - 17
----
23
23
23

query I rowsort
SELECT + + 62 + + 65 + - col2 AS col0 FROM tab2 AS cor0
----
104
69
87

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 40 IS NULL
----

query I rowsort
SELECT + ( - - col0 ) * - - col2 + + ( - col1 ) FROM tab1
----
4882
5010
6141

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5412
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) NOT IN ( - col0 * - - col2 / - col1 )
----

skipif mysql # not compatible
query III rowsort label-5412
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) NOT IN ( - col0 * - - col2 / - col1 )
----

query II rowsort
SELECT col2 * - col2 * + col2, - col1 AS col0 FROM tab2
----
-12167
-51
-195112
-67
-64000
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 37 + + 37 col0 FROM tab0
----
74

query II rowsort
SELECT col1 * - - col0, col2 FROM tab0
----
1215
47
1827
10
97
99

query I rowsort
SELECT DISTINCT + 62 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND ( - 67 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 5 - - - 45 col1, col1 AS col2 FROM tab0 cor0
----
-40
1
-40
21
-40
81

query I rowsort
SELECT DISTINCT - 31 AS col0 FROM tab2 AS cor0 WHERE NOT 45 <> col1 - + col1 * + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5419
SELECT COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT + CAST( + ( - + 42 ) AS SIGNED ) IN ( col1 )
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5419
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT + CAST ( + ( - + 42 ) AS INTEGER ) IN ( col1 )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5420
SELECT - MAX( + col2 ) * 74 AS col0, - MIN( + - 35 ) * - 36 + + + COUNT( * ) AS col0 FROM tab1
----
-7104
-1257

skipif mysql # not compatible
query II rowsort label-5420
SELECT - MAX ( + col2 ) * 74 AS col0, - MIN ( + - 35 ) * - 36 + + + COUNT ( * ) AS col0 FROM tab1
----
-7104
-1257

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5421
SELECT + - CAST( + COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5421
SELECT + - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT + COUNT( DISTINCT + + col0 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5422
SELECT + COUNT ( DISTINCT + + col0 ) col1 FROM tab2
----
3

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE ( - col1 IS NULL )
----

query I rowsort
SELECT DISTINCT 77 AS col2 FROM tab2 AS cor0 WHERE NOT - col2 * - + col0 IS NULL
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5425
SELECT - CAST( - - col0 AS SIGNED ) FROM tab1 cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5425
SELECT - CAST ( - - col0 AS INTEGER ) FROM tab1 cor0
----
-51
-85
-91

query I rowsort
SELECT + col2 * 99 + + col1 * + + col2 FROM tab2 AS cor0
----
3450
7040
9628

query I rowsort
SELECT DISTINCT col0 * + + col1 AS col2 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5428
SELECT * FROM tab2 cor0 WHERE NOT col0 + + - 63 + col0 NOT BETWEEN - 73 + - col1 + + - col2 + - CAST( NULL AS SIGNED ) AND - 59
----

skipif mysql # not compatible
query III rowsort label-5428
SELECT * FROM tab2 cor0 WHERE NOT col0 + + - 63 + col0 NOT BETWEEN - 73 + - col1 + + - col2 + - CAST ( NULL AS INTEGER ) AND - 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL - COUNT( * ) * + - MIN( DISTINCT - col0 ) * 83 + + 32 + - 87 col1 FROM tab1 AS cor0
----
-22714

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5429
SELECT ALL - COUNT ( * ) * + - MIN ( DISTINCT - col0 ) * 83 + + 32 + - 87 col1 FROM tab1 AS cor0
----
-22714

query I rowsort
SELECT DISTINCT - + 99 * col2 AS col0 FROM tab0 AS cor0
----
-4653
-9801
-990

query II rowsort
SELECT DISTINCT col0 AS col0, col0 + + ( - col0 ) AS col2 FROM tab2 AS cor0
----
46
0
64
0
75
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5432
SELECT ALL + 5 DIV + 75 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5432
SELECT ALL + 5 / + 75 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 / + + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( - 37 ) FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-5435
SELECT ALL + COUNT( * ) * + SUM( + col2 ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-5435
SELECT ALL + COUNT ( * ) * + SUM ( + col2 ) FROM tab1
----
669

query I rowsort
SELECT DISTINCT + col0 * + ( + col1 ) * col2 AS col0 FROM tab0 cor0
----
18270
57105
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5437
SELECT 37 DIV 19 - - - col1 AS col0 FROM tab0 AS cor0
----
-20
-80
0

skipif mysql # not compatible
query I rowsort label-5437
SELECT 37 / 19 - - - col1 AS col0 FROM tab0 AS cor0
----
-20
-80
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col2 FROM tab0 cor0 WHERE ( NULL ) <> + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5439
SELECT DISTINCT - 24 DIV col1 + + col0 + col1 FROM tab0 AS cor0
----
107
74
96

skipif mysql # not compatible
query I rowsort label-5439
SELECT DISTINCT - 24 / col1 + + col0 + col1 FROM tab0 AS cor0
----
107
74
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5440
SELECT CAST( + col1 AS SIGNED ) * + + 87 + + 74 AS col1, col2 * - - col1 * - 48 FROM tab1 cor0
----
1292
-64512
4163
-153408
509
-14160

skipif mysql # not compatible
query II rowsort label-5440
SELECT CAST ( + col1 AS INTEGER ) * + + 87 + + 74 AS col1, col2 * - - col1 * - 48 FROM tab1 cor0
----
1292
-64512
4163
-153408
509
-14160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5441
SELECT ALL + col1 * + - CAST( - col0 AS SIGNED ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-5441
SELECT ALL + col1 * + - CAST ( - col0 AS INTEGER ) FROM tab0 WHERE NOT NULL IS NOT NULL
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5442
SELECT ALL + COUNT( ALL 5 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5442
SELECT ALL + COUNT ( ALL 5 ) AS col2 FROM tab2
----
3

query III rowsort
SELECT * FROM tab1 WHERE + - 93 * + - col0 * - 68 / 20 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5444
SELECT - 15 DIV + + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-5444
SELECT - 15 / + + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-5445
SELECT + CAST( NULL AS DECIMAL ) * + - CAST( NULL AS DECIMAL ) DIV + ( - - COUNT( * ) ) AS col1, 32 DIV - + COUNT( * ) FROM tab0, tab2 AS cor0
----
NULL
-3

skipif mysql # not compatible
query II rowsort label-5445
SELECT + CAST ( NULL AS REAL ) * + - CAST ( NULL AS REAL ) / + ( - - COUNT ( * ) ) AS col1, 32 / - + COUNT ( * ) FROM tab0, tab2 AS cor0
----
NULL
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5446
SELECT ALL - MIN( + col1 ) DIV 87 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5446
SELECT ALL - MIN ( + col1 ) / 87 AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT + + col2 * + ( col1 ) AS col0 FROM tab0 AS cor0
----
210
3807
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 25 / 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5449
SELECT DISTINCT - COUNT( DISTINCT - - ( - col0 ) ) AS col1, + MIN( col0 ) * MIN( - col0 ) FROM tab0 AS cor0
----
-3
-1455

skipif mysql # not compatible
query II rowsort label-5449
SELECT DISTINCT - COUNT ( DISTINCT - - ( - col0 ) ) AS col1, + MIN ( col0 ) * MIN ( - col0 ) FROM tab0 AS cor0
----
-3
-1455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 28 - - col0 col2 FROM tab0 AS cor0
----
115
125
43

onlyif mysql # aggregate syntax: 
query II rowsort label-5451
SELECT + - 11 AS col1, COUNT( * ) FROM tab0 AS cor0
----
-11
3

skipif mysql # not compatible
query II rowsort label-5451
SELECT + - 11 AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-11
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT DISTINCT + 74 * col2 DIV col0 FROM tab2 AS cor0 WHERE NOT col0 + 72 IS NULL
----
37
46
57

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT + 74 * col2 / col0 FROM tab2 AS cor0 WHERE NOT col0 + 72 IS NULL
----
37
46
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT - 13 - + - MIN( + col1 ) * 24 AS col1 FROM tab1 AS cor0
----
107

skipif mysql # not compatible
query I rowsort label-5453
SELECT - 13 - + - MIN ( + col1 ) * 24 AS col1 FROM tab1 AS cor0
----
107

onlyif mysql # aggregate syntax: 
query I rowsort label-5454
SELECT + COUNT( * ) FROM tab0 WHERE col1 BETWEEN NULL AND NULL AND NOT col1 NOT IN ( 27 * col0, - 58 + col2 + + - col2 * 21 )
----
0

skipif mysql # not compatible
query I rowsort label-5454
SELECT + COUNT ( * ) FROM tab0 WHERE col1 BETWEEN NULL AND NULL AND NOT col1 NOT IN ( 27 * col0, - 58 + col2 + + - col2 * 21 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT ALL COUNT( * ) + - 53 AS col1 FROM tab2
----
-50

skipif mysql # not compatible
query I rowsort label-5455
SELECT ALL COUNT ( * ) + - 53 AS col1 FROM tab2
----
-50

query I rowsort
SELECT col0 + + 73 + + col1 FROM tab2
----
170
214
215

onlyif mysql # DIV for integer division: 
query I rowsort label-5457
SELECT DISTINCT col0 + - + 68 DIV - - col0 AS col2 FROM tab1
----
50
85
91

skipif mysql # not compatible
query I rowsort label-5457
SELECT DISTINCT col0 + - + 68 / - - col0 AS col2 FROM tab1
----
50
85
91

query II rowsort
SELECT ALL ( + col1 ) AS col0, col0 + - col0 FROM tab2
----
51
0
67
0
77
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5459
SELECT DISTINCT - - CAST( NULL AS SIGNED ), 6 AS col0 FROM tab2 AS cor0
----
NULL
6

skipif mysql # not compatible
query II rowsort label-5459
SELECT DISTINCT - - CAST ( NULL AS INTEGER ), 6 AS col0 FROM tab2 AS cor0
----
NULL
6

query II rowsort
SELECT + + col1, + col0 AS col2 FROM tab0 AS cor0
----
1
97
21
87
81
15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 NOT BETWEEN + - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0, 45 col2 FROM tab0 AS cor0
----
15
45
87
45
97
45

query I rowsort
SELECT ALL - 29 * + ( + - col0 ) FROM tab2
----
1334
1856
2175

onlyif mysql # DIV for integer division: 
query II rowsort label-5464
SELECT - - col2 DIV + 36 AS col1, col1 FROM tab2 AS cor0
----
0
51
1
67
1
77

skipif mysql # not compatible
query II rowsort label-5464
SELECT - - col2 / + 36 AS col1, col1 FROM tab2 AS cor0
----
0
51
1
67
1
77

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT - 74 / - col0 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5466
SELECT ALL COUNT( col2 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5466
SELECT ALL COUNT ( col2 ) AS col0 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5467
SELECT ALL 15 + MIN( ALL 15 ) * - 83 AS col2 FROM tab2 cor0
----
-1230

skipif mysql # not compatible
query I rowsort label-5467
SELECT ALL 15 + MIN ( ALL 15 ) * - 83 AS col2 FROM tab2 cor0
----
-1230

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 93 = + 60 + + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 47 col1, + ( - 96 ) AS col1 FROM tab2
----
-47
-96
-47
-96
-47
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 + - col1 * + col0 * col2 col2 FROM tab1
----
-25068
-290829
-68537

onlyif mysql # aggregate syntax: 
query II rowsort label-5471
SELECT DISTINCT + ( + 76 ) + COUNT( * ), + 32 col2 FROM tab1
----
79
32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5471
SELECT DISTINCT + ( + 76 ) + COUNT ( * ), + 32 col2 FROM tab1
----
79
32

query II rowsort
SELECT col2 + - 25 + + 4, col2 + + col2 AS col0 FROM tab2
----
19
80
2
46
37
116

query I rowsort
SELECT - 16 FROM tab2 WHERE ( NULL < col0 )
----

query I rowsort
SELECT + col2 + + col1 + ( - - col0 ) * + col0 FROM tab2
----
2190
4213
5750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT ALL + + AVG ( - - col2 ) - + 53 FROM tab2 WHERE NOT ( NOT CAST( NULL AS SIGNED ) - col2 <> + col1 * + - col0 + - 50 / + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5475
SELECT ALL + + AVG ( - - col2 ) - + 53 FROM tab2 WHERE NOT ( NOT CAST ( NULL AS INTEGER ) - col2 <> + col1 * + - col0 + - 50 / + col1 )
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * ( - + ( 40 ) ) AS col1 FROM tab0 AS cor0
----
-1880
-3960
-400

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 4 + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5478
SELECT - 96 - + ( + COUNT( * ) ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-5478
SELECT - 96 - + ( + COUNT ( * ) ) FROM tab0
----
-99

query I rowsort
SELECT ALL - col1 * - col2 + - ( col2 ) - 57 FROM tab0 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-57
143
3703

onlyif mysql # aggregate syntax: 
query I rowsort label-5480
SELECT 99 + + MAX( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
196

skipif mysql # not compatible
query I rowsort label-5480
SELECT 99 + + MAX ( DISTINCT col0 ) AS col1 FROM tab0 cor0
----
196

query I rowsort
SELECT ALL + col0 FROM tab0 cor0 WHERE NULL <= + 40
----

query I rowsort
SELECT 80 + - + col1 AS col2 FROM tab1 AS cor0
----
33
66
75

query I rowsort
SELECT DISTINCT col1 - + 19 AS col2 FROM tab2 AS cor0
----
32
48
58

query II rowsort
SELECT ALL - + col2 - - col1 AS col0, + col1 FROM tab1 AS cor0
----
-21
47
-54
5
-82
14

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - 21
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - ( col1 ) + ( col0 ) col2, 55 FROM tab1 cor0
----
37
55
44
55
80
55

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT ALL - col1 - - col0 DIV 23 FROM tab1 AS cor0
----
-12
-2
-44

skipif mysql # not compatible
query I rowsort label-5487
SELECT ALL - col1 - - col0 / 23 FROM tab1 AS cor0
----
-12
-2
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT DISTINCT + + COUNT( * ) * + + 80 AS col1 FROM tab0 AS cor0 WHERE 51 IS NOT NULL
----
240

skipif mysql # not compatible
query I rowsort label-5488
SELECT DISTINCT + + COUNT ( * ) * + + 80 AS col1 FROM tab0 AS cor0 WHERE 51 IS NOT NULL
----
240

query I rowsort
SELECT ALL - - 15 AS col2 FROM tab2 AS cor0
----
15
15
15

query I rowsort
SELECT - 44 * - col2 FROM tab0
----
2068
4356
440

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL = col0 + + col0 + 51 + - col1 * - 47 * + col2 * - 78
----

query II rowsort
SELECT - 42 * + col0 * - + col0, - 64 AS col2 FROM tab2
----
172032
-64
236250
-64
88872
-64

onlyif mysql # aggregate syntax: 
query II rowsort label-5493
SELECT DISTINCT + COUNT( * ) AS col2, 77 FROM tab0 AS cor0
----
3
77

skipif mysql # not compatible
query II rowsort label-5493
SELECT DISTINCT + COUNT ( * ) AS col2, 77 FROM tab0 AS cor0
----
3
77

query I rowsort
SELECT + + 26 * + - 50 FROM tab2 AS cor0
----
-1300
-1300
-1300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5495
SELECT CAST( + 44 AS SIGNED ) FROM tab1
----
44
44
44

skipif mysql # not compatible
query I rowsort label-5495
SELECT CAST ( + 44 AS INTEGER ) FROM tab1
----
44
44
44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 col0, 96 * - - 83 AS col1 FROM tab0
----
99
7968
99
7968
99
7968

query IIIIII rowsort
SELECT * FROM tab0, tab0 AS cor0 WHERE NOT ( NULL ) > 83
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( col0 / 8 * col0 / + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5499
SELECT - COUNT( * ) * MAX( + col2 ) col2 FROM tab2 AS cor0 WHERE NOT 71 + - col2 + col1 * + + ( + col2 ) IS NULL
----
-174

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5499
SELECT - COUNT ( * ) * MAX ( + col2 ) col2 FROM tab2 AS cor0 WHERE NOT 71 + - col2 + col1 * + + ( + col2 ) IS NULL
----
-174

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col2 / 24 + + 59 + + + 52 - - 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5501
SELECT COUNT( ALL - + col1 ) * COUNT( * ) FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5501
SELECT COUNT ( ALL - + col1 ) * COUNT ( * ) FROM tab1 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5502
SELECT DISTINCT - SUM( 53 ) FROM tab1 AS cor0
----
-159

skipif mysql # not compatible
query I rowsort label-5502
SELECT DISTINCT - SUM ( 53 ) FROM tab1 AS cor0
----
-159

query I rowsort
SELECT - 49 FROM tab1 AS cor0 WHERE NOT col0 / col0 * + col0 IS NOT NULL
----

query I rowsort
SELECT + col1 * col2 * - + col2 AS col1 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - MAX( + 97 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5505
SELECT - MAX ( + 97 ) AS col2 FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-5506
SELECT 13 DIV col2 + + + 8 AS col2 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5506
SELECT 13 / col2 + + + 8 AS col2 FROM tab1 AS cor0
----
8
8
8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= ( - + col1 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5508
SELECT + COUNT( * ), MIN( ALL + 19 ) AS col1 FROM tab0 AS cor0
----
3
19

skipif mysql # not compatible
query II rowsort label-5508
SELECT + COUNT ( * ), MIN ( ALL + 19 ) AS col1 FROM tab0 AS cor0
----
3
19

query I rowsort
SELECT ALL col1 + + col1 + - 7 - 90 AS col2 FROM tab0
----
-55
-95
65

onlyif mysql # aggregate syntax: 
query I rowsort label-5510
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab0 WHERE - col1 + + 16 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab0 WHERE - col1 + + 16 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5511
SELECT DISTINCT - col1 + + + CAST( + - 69 AS SIGNED ) FROM tab2
----
-120
-136
-146

skipif mysql # not compatible
query I rowsort label-5511
SELECT DISTINCT - col1 + + + CAST ( + - 69 AS INTEGER ) FROM tab2
----
-120
-136
-146

query I rowsort
SELECT DISTINCT + ( - - ( + + col2 ) ) * - - col2 AS col1 FROM tab1
----
3481
4624
9216

query I rowsort
SELECT ALL col1 + - col0 - - col2 + - 32 AS col1 FROM tab1
----
-53
-8
27

query I rowsort
SELECT DISTINCT - - ( + + col0 ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-5515
SELECT - + 60 + + COUNT( * ) FROM tab0 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-5515
SELECT - + 60 + + COUNT ( * ) FROM tab0 cor0
----
-57

query I rowsort
SELECT col2 * - + 73 + + 88 FROM tab1 AS cor0
----
-4219
-4876
-6920

query I rowsort
SELECT - - 37 + - 99 FROM tab1 AS cor0
----
-62
-62
-62

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT ALL - + ( 5 ) * + CAST( + col2 AS SIGNED ) FROM tab2 AS cor0
----
-115
-200
-290

skipif mysql # not compatible
query I rowsort label-5518
SELECT ALL - + ( 5 ) * + CAST ( + col2 AS INTEGER ) FROM tab2 AS cor0
----
-115
-200
-290

query I rowsort
SELECT DISTINCT ( - col0 ) + col1 * 53 FROM tab0
----
-44
1026
4278

query I rowsort
SELECT ALL + 67 + + col1 AS col0 FROM tab2
----
118
134
144

onlyif mysql # aggregate syntax: 
query II rowsort label-5521
SELECT + + COUNT( * ), + MIN( + col1 ) col1 FROM tab1 cor0
----
3
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5521
SELECT + + COUNT ( * ), + MIN ( + col1 ) col1 FROM tab1 cor0
----
3
5

query I rowsort
SELECT DISTINCT - 61 - + 68 FROM tab2 AS cor0
----
-129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5523
SELECT - CAST( - col0 AS SIGNED ) * + col2 - 76 AS col2 FROM tab0 AS cor0
----
629
794
9527

skipif mysql # not compatible
query I rowsort label-5523
SELECT - CAST ( - col0 AS INTEGER ) * + col2 - 76 AS col2 FROM tab0 AS cor0
----
629
794
9527

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5524
SELECT DISTINCT CAST( - + 11 AS SIGNED ) FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5524
SELECT DISTINCT CAST ( - + 11 AS INTEGER ) FROM tab1 AS cor0
----
-11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2 AS col0, 49 col0 FROM tab1 AS cor0
----
59
49
68
49
96
49

onlyif mysql # aggregate syntax: 
query I rowsort label-5526
SELECT - COUNT( + 31 ) FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5526
SELECT - COUNT ( + 31 ) FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + col1 * - 56 FROM tab0
----
-1176
-4536
-56

query I rowsort
SELECT + col1 * col1 * + - 20 AS col0 FROM tab1
----
-3920
-44180
-500

query I rowsort
SELECT - 27 * - ( + col2 ) FROM tab2
----
1080
1566
621

onlyif mysql # aggregate syntax: 
query I rowsort label-5530
SELECT - + MAX( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5530
SELECT - + MAX ( DISTINCT + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5531
SELECT ALL - COUNT( * ) DIV - 34 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-5531
SELECT ALL - COUNT ( * ) / - 34 AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT COUNT( * ) * 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
594

skipif mysql # not compatible
query I rowsort label-5532
SELECT COUNT ( * ) * 66 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
594

query II rowsort
SELECT - - 67, + col0 * col0 AS col2 FROM tab1 AS cor0
----
67
2601
67
7225
67
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-5534
SELECT col1 DIV 48 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5534
SELECT col1 / 48 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT COUNT( * ) * + 31 AS col0 FROM tab2 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-5535
SELECT COUNT ( * ) * + 31 AS col0 FROM tab2 AS cor0
----
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 48 + - col0 * + + ( - col1 ) + - 26 col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT + col1 + - 38 FROM tab1
----
-24
-33
9

query II rowsort
SELECT DISTINCT - col2, 78 AS col0 FROM tab2
----
-23
78
-40
78
-58
78

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 + + 92 IS NULL
----

query I rowsort
SELECT ALL col1 - + + col2 AS col0 FROM tab1
----
-21
-54
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT ALL COUNT( * ) FROM tab2 WHERE + + col1 NOT BETWEEN NULL AND + col0
----
2

skipif mysql # not compatible
query I rowsort label-5541
SELECT ALL COUNT ( * ) FROM tab2 WHERE + + col1 NOT BETWEEN NULL AND + col0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5542
SELECT DISTINCT COUNT( ALL col0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5542
SELECT DISTINCT COUNT ( ALL col0 ) FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 * + + 23 + + col0 AS col1 FROM tab0 cor0
----
2088
2328
360

query I rowsort
SELECT + 44 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # aggregate syntax: 
query I rowsort label-5545
SELECT + 76 * + COUNT( * ) * + 90 - + - 63 AS col0 FROM tab0
----
20583

skipif mysql # not compatible
query I rowsort label-5545
SELECT + 76 * + COUNT ( * ) * + 90 - + - 63 AS col0 FROM tab0
----
20583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 col0 FROM tab1 WHERE NOT + col1 IN ( + col0, col1 * - 37, - ( + - 10 ) + - col1, - col1 )
----
-68
-96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 56 + + 89 col0 FROM tab0
----
33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + + - 80 * - 68 col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
5495

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + + 15 <= - 76 + - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT - - 91 * - SUM( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT - col0 + - col1 = col1 + + - col2
----
-9282

skipif mysql # not compatible
query I rowsort label-5550
SELECT - - 91 * - SUM ( DISTINCT col0 ) FROM tab0 AS cor0 WHERE NOT - col0 + - col1 = col1 + + - col2
----
-9282

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 / - + ( 57 ) >= NULL
----

query I rowsort
SELECT ALL ( col0 ) * - col0 - - - 96 FROM tab2 AS cor0
----
-2212
-4192
-5721

query I rowsort
SELECT - 68 AS col2 FROM tab2 WHERE NOT NULL <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5554
SELECT ALL + COUNT( * ) / - CAST( NULL AS SIGNED ) * - 11 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5554
SELECT ALL + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - 11 FROM tab1
----
NULL

query I rowsort
SELECT col2 * + - 31 AS col1 FROM tab1
----
-1829
-2108
-2976

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT DISTINCT 51 * + + MAX( - col0 ) col1 FROM tab2
----
-2346

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5556
SELECT DISTINCT 51 * + + MAX ( - col0 ) col1 FROM tab2
----
-2346

query II rowsort
SELECT DISTINCT + col2, - col0 * + - col1 - + col0 FROM tab1
----
59
340
68
4186
96
663

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5558
SELECT CAST( COUNT( * ) AS SIGNED ) * + MIN( ALL + col0 ) - COUNT( * ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-5558
SELECT CAST ( COUNT ( * ) AS INTEGER ) * + MIN ( ALL + col0 ) - COUNT ( * ) FROM tab1
----
150

query I rowsort
SELECT + col0 * + 43 AS col2 FROM tab1
----
2193
3655
3913

query I rowsort
SELECT col1 * + 14 * - col1 FROM tab2
----
-36414
-62846
-83006

query I rowsort
SELECT - ( - 91 ) AS col1 FROM tab0 AS cor0
----
91
91
91

query I rowsort
SELECT ALL - 11 * - col2 FROM tab2 WHERE - col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 * - - 58 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5564
SELECT - 82 + - + COUNT( ALL CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
-82

skipif mysql # not compatible
query I rowsort label-5564
SELECT - 82 + - + COUNT ( ALL CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
-82

onlyif mysql # DIV for integer division: 
query II rowsort label-5565
SELECT col1 DIV + + col1, col1 + - - ( col1 ) col1 FROM tab0 AS cor0
----
1
162
1
2
1
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5565
SELECT col1 / + + col1, col1 + - - ( col1 ) col1 FROM tab0 AS cor0
----
1
162
1
2
1
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5566
SELECT COUNT( + col0 ) col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5566
SELECT COUNT ( + col0 ) col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 41 <> + - 83 * - - 45
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + 66 * - + col2 AS col1, col0 FROM tab2 AS cor0
----
-1518
46
-2640
64
-3828
75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < ( + col0 )
----

query I rowsort
SELECT - 38 * 88 - + - col2 * - 8 * - - col0 FROM tab1 AS cor0
----
-42512
-43464
-52848

query II rowsort
SELECT + - 97 * + 50, 64 AS col0 FROM tab2 AS cor0
----
-4850
64
-4850
64
-4850
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5572
SELECT CAST( NULL AS SIGNED ) / - + 86 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5572
SELECT CAST ( NULL AS INTEGER ) / - + 86 FROM tab1 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - + 26 FROM tab2 AS cor0
----
-1040
-1508
-598

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 > - col2 / + - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 63 + col2 * + - col1 FROM tab2
----
-1110
-3017
-3823

onlyif mysql # aggregate syntax: 
query I rowsort label-5576
SELECT ALL ( ( + MIN( - 29 ) ) ) + - COUNT( * ) AS col0 FROM tab2
----
-32

skipif mysql # not compatible
query I rowsort label-5576
SELECT ALL ( ( + MIN ( - 29 ) ) ) + - COUNT ( * ) AS col0 FROM tab2
----
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5577
SELECT ALL + MAX( + CAST( col2 AS SIGNED ) ) FROM tab1 WHERE - 77 + - col2 + - + 48 < + 29
----
96

skipif mysql # not compatible
query I rowsort label-5577
SELECT ALL + MAX ( + CAST ( col2 AS INTEGER ) ) FROM tab1 WHERE - 77 + - col2 + - + 48 < + 29
----
96

query I rowsort
SELECT DISTINCT 56 * + + col2 - + 79 FROM tab2
----
1209
2161
3169

query I rowsort
SELECT ALL + 1 + + ( - 19 ) FROM tab0
----
-18
-18
-18

query I rowsort
SELECT DISTINCT + col2 + - 56 FROM tab2 AS cor0
----
-16
-33
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5581
SELECT + 4 + - - ( - 41 ) DIV + COUNT( * ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5581
SELECT + 4 + - - ( - 41 ) / + COUNT ( * ) FROM tab1 AS cor0
----
-9

query I rowsort
SELECT - + 87 + 93 FROM tab2 AS cor0
----
6
6
6

query I rowsort
SELECT ALL - + col0 FROM tab0 WHERE NOT col1 IN ( + - 9 * + col1 + - col0, col2 + - - col1, + 87 )
----
-15
-87
-97

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE + - col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL 25 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 525a55d5ed224a62da65df36731881a7

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE 78 * col2 IS NOT NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + col0 * + 5 * 48 FROM tab0 WHERE NULL IS NULL
----
20880
23280
3600

onlyif mysql # aggregate syntax: 
query I rowsort label-5588
SELECT ALL - MIN( DISTINCT - + col1 ) AS col1 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-5588
SELECT ALL - MIN ( DISTINCT - + col1 ) AS col1 FROM tab1
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5589
SELECT MAX( DISTINCT + 53 ) FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-5589
SELECT MAX ( DISTINCT + 53 ) FROM tab2
----
53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5590
SELECT + CAST( - 41 AS SIGNED ) * - col2 AS col0 FROM tab0 AS cor0
----
1927
4059
410

skipif mysql # not compatible
query I rowsort label-5590
SELECT + CAST ( - 41 AS INTEGER ) * - col2 AS col0 FROM tab0 AS cor0
----
1927
4059
410

query II rowsort
SELECT DISTINCT - - 52 AS col0, col2 AS col0 FROM tab0 AS cor0
----
52
10
52
47
52
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5592
SELECT DISTINCT - - COUNT( * ) * - + AVG ( DISTINCT col1 ) * - + ( + MAX( + + CAST( NULL AS SIGNED ) ) ) + + 63 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5592
SELECT DISTINCT - - COUNT ( * ) * - + AVG ( DISTINCT col1 ) * - + ( + MAX ( + + CAST ( NULL AS INTEGER ) ) ) + + 63 AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5593
SELECT ALL COUNT( * ) / CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE ( NULL ) < + col1 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5593
SELECT ALL COUNT ( * ) / CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE ( NULL ) < + col1 + + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5594
SELECT ALL + COUNT( * ) * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5594
SELECT ALL + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5595
SELECT - 39 AS col0, + col2 * - 15 * col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-39
NULL
-39
NULL
-39
NULL

skipif mysql # not compatible
query II rowsort label-5595
SELECT - 39 AS col0, + col2 * - 15 * col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-39
NULL
-39
NULL
-39
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 77 AND col0 * + + col2 * + + col1
----

query II rowsort
SELECT ALL + ( - col0 ), col0 AS col1 FROM tab2
----
-46
46
-64
64
-75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT + 68 DIV 32 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-5598
SELECT + 68 / 32 FROM tab0
----
2
2
2

query I rowsort
SELECT DISTINCT - col0 + col2 FROM tab1 WHERE NOT - 68 + - + 58 + - 86 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 93 * col0 * col2 - - + col1 FROM tab1 AS cor0
----
455342
466400
575531

query I rowsort
SELECT DISTINCT 64 + - col1 * col2 AS col2 FROM tab0 AS cor0
----
-146
-35
-3743

query I rowsort
SELECT - ( 98 ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-5603
SELECT 72 * + MIN( DISTINCT 69 ) FROM tab0 AS cor0
----
4968

skipif mysql # not compatible
query I rowsort label-5603
SELECT 72 * + MIN ( DISTINCT 69 ) FROM tab0 AS cor0
----
4968

query I rowsort
SELECT - col2 / + col0 / col2 + - ( + col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT ALL + COUNT( * ), + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
3
23

skipif mysql # not compatible
query II rowsort label-5605
SELECT ALL + COUNT ( * ), + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
3
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5606
SELECT + ( CAST( + - col0 AS SIGNED ) ) + col2 + - - ( + + col2 ) FROM tab2
----
0
16
41

skipif mysql # not compatible
query I rowsort label-5606
SELECT + ( CAST ( + - col0 AS INTEGER ) ) + col2 + - - ( + + col2 ) FROM tab2
----
0
16
41

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5607
SELECT + col2 * - col2 + 52 + + 1, + CAST( NULL AS SIGNED ) col2 FROM tab2
----
-1547
NULL
-3311
NULL
-476
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5607
SELECT + col2 * - col2 + 52 + + 1, + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
-1547
NULL
-3311
NULL
-476
NULL

query I rowsort
SELECT - ( - col2 ) + + col1 AS col1 FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT col0 * col1 + + col0 AS col1 FROM tab1
----
4368
510
765

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5610
SELECT ALL - col0 + + col1 + - col1 - - col1 * - + 6 - - 40 * + - CAST( NULL AS DECIMAL ) * col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5610
SELECT ALL - col0 + + col1 + - col1 - - col1 * - + 6 - - 40 * + - CAST ( NULL AS REAL ) * col2 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5611
SELECT ALL ( + COUNT( * ) ) - + 17 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-5611
SELECT ALL ( + COUNT ( * ) ) - + 17 FROM tab0
----
-14

query I rowsort
SELECT ALL + 23 + - 31 AS col2 FROM tab0 AS cor0
----
-8
-8
-8

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 37 + 1 * col0 <> col2 * - + col0 * + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5614
SELECT ALL + ( COUNT( * ) ) AS col1, - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-5614
SELECT ALL + ( COUNT ( * ) ) AS col1, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 61 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 65 AS col2 FROM tab2 AS cor0
----
65

onlyif mysql # DIV for integer division: 
query I rowsort label-5617
SELECT + ( - col1 ) * ( col2 ) * col0 DIV - col1 - + col1 FROM tab0
----
624
849
9602

skipif mysql # not compatible
query I rowsort label-5617
SELECT + ( - col1 ) * ( col2 ) * col0 / - col1 - + col1 FROM tab0
----
624
849
9602

query I rowsort
SELECT 26 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

onlyif mysql # aggregate syntax: 
query I rowsort label-5619
SELECT - COUNT( * ) * SUM( ALL col0 ) AS col1 FROM tab1
----
-681

skipif mysql # not compatible
query I rowsort label-5619
SELECT - COUNT ( * ) * SUM ( ALL col0 ) AS col1 FROM tab1
----
-681

query I rowsort
SELECT ALL - + ( - + col0 ) AS col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT CAST( NULL AS SIGNED ) / col2 * + 77 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - 33
----

skipif mysql # not compatible
query I rowsort label-5621
SELECT CAST ( NULL AS INTEGER ) / col2 * + 77 FROM tab2 cor0 WHERE NOT NULL NOT BETWEEN + col1 AND - 33
----

query I rowsort
SELECT ( + - col2 ) FROM tab1 AS cor0 WHERE NOT 81 * + + 76 IS NULL
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5623
SELECT ALL - - ( + 23 ) * ( - MAX( ALL 55 ) ) col2 FROM tab0 AS cor0
----
-1265

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5623
SELECT ALL - - ( + 23 ) * ( - MAX ( ALL 55 ) ) col2 FROM tab0 AS cor0
----
-1265

onlyif mysql # aggregate syntax: 
query I rowsort label-5624
SELECT DISTINCT + 20 * COUNT( * ) col2 FROM tab0 AS cor0
----
60

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5624
SELECT DISTINCT + 20 * COUNT ( * ) col2 FROM tab0 AS cor0
----
60

query II rowsort
SELECT + 49 AS col1, col0 - col1 AS col0 FROM tab1 AS cor0
----
49
37
49
44
49
80

query I rowsort
SELECT + + 40 AS col1 FROM tab2 cor0
----
40
40
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5627
SELECT ALL + COUNT( * ) AS col1, + COUNT( * ) AS col0 FROM tab2
----
3
3

skipif mysql # not compatible
query II rowsort label-5627
SELECT ALL + COUNT ( * ) AS col1, + COUNT ( * ) AS col0 FROM tab2
----
3
3

onlyif mysql # aggregate syntax: 
query II rowsort label-5628
SELECT ALL 78, - COUNT( * ) col1 FROM tab1
----
78
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5628
SELECT ALL 78, - COUNT ( * ) col1 FROM tab1
----
78
-3

query II rowsort
SELECT ALL col0 * - col0, col1 AS col2 FROM tab0
----
-225
81
-7569
21
-9409
1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2, tab1 AS cor0 WHERE + 79 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 AS col0, col1 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
21
47
81
99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5632
SELECT DISTINCT - + COUNT( * ) + - COUNT( * ) + + + 98 + - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5632
SELECT DISTINCT - + COUNT ( * ) + - COUNT ( * ) + + + 98 + - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE - 43 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL - col2 * - 83 AS col0 FROM tab1 AS cor0
----
4897
5644
7968

query I rowsort
SELECT 27 * - col1 AS col2 FROM tab0 cor0
----
-2187
-27
-567

onlyif mysql # aggregate syntax: 
query I rowsort label-5635
SELECT ALL COUNT( DISTINCT - - ( 3 ) ) col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5635
SELECT ALL COUNT ( DISTINCT - - ( 3 ) ) col2 FROM tab2 AS cor0
----
1

query I rowsort
SELECT DISTINCT col2 + + 91 FROM tab1 AS cor0
----
150
159
187

query I rowsort
SELECT 80 * + col2 * 30 + - 47 FROM tab1 AS cor0
----
141553
163153
230353

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5638
SELECT ALL + + CAST( CAST( NULL AS SIGNED ) AS SIGNED ) + - col1 * + 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL + + CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) + - col1 * + 55 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT + SUM( DISTINCT - - 10 ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5639
SELECT + SUM ( DISTINCT - - 10 ) FROM tab1 AS cor0
----
10

query I rowsort
SELECT - - col0 * - 26 * - col1 - + col1 + + - 26 FROM tab0 AS cor0
----
2495
31483
47455

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 86 * col0 col1 FROM tab2 cor0
----
181976
352256
483750

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5642
SELECT ALL - col2 - + - CAST( NULL AS SIGNED ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5642
SELECT ALL - col2 - + - CAST ( NULL AS INTEGER ), col1 AS col0 FROM tab1 AS cor0
----
NULL
14
NULL
47
NULL
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - + 46 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5644
SELECT COUNT( - + col0 ) - - 11 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-5644
SELECT COUNT ( - + col0 ) - - 11 FROM tab2
----
14

query III rowsort
SELECT * FROM tab1 WHERE + col0 + + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5646
SELECT MIN( - - col2 ) AS col1 FROM tab0 WHERE ( - col2 ) BETWEEN ( NULL ) AND col0
----
NULL

skipif mysql # not compatible
query I rowsort label-5646
SELECT MIN ( - - col2 ) AS col1 FROM tab0 WHERE ( - col2 ) BETWEEN ( NULL ) AND col0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - + col1 + 32 col2, + 16 * - col0 col1 FROM tab2
----
-5
-1024
23
-1200
4
-736

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * - - 40 - ( + - col0 ) col0 FROM tab1 AS cor0
----
1971
285
611

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 * - - col1 * - 56 * + col2 * + col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 91 * - col1 + col1 AS col2, - col2 col2 FROM tab2 AS cor0
----
4692
-23
6164
-58
7084
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-5651
SELECT ALL - + ( COUNT( * ) ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5651
SELECT ALL - + ( COUNT ( * ) ) AS col1 FROM tab1 cor0
----
-3

query I rowsort
SELECT DISTINCT + ( + - col0 ) AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-5653
SELECT - - col1 DIV + col0, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
5
81

skipif mysql # not compatible
query II rowsort label-5653
SELECT - - col1 / + col0, col1 AS col2 FROM tab0 AS cor0
----
0
1
0
21
5
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5654
SELECT - MAX( DISTINCT + 17 ) FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-5654
SELECT - MAX ( DISTINCT + 17 ) FROM tab1 AS cor0
----
-17

onlyif mysql # DIV for integer division: 
query I rowsort label-5655
SELECT col2 DIV + col0 + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-5655
SELECT col2 / + col0 + + col1 AS col1 FROM tab2 AS cor0
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE - 92 + + 73 NOT BETWEEN - col0 + + - col2 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 3 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab1 WHERE - - col2 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = + - col2 / col2 - col1
----

query I rowsort
SELECT + + ( col2 ) * col0 AS col0 FROM tab1 WHERE NOT - + col1 * - - col1 + - 10 NOT BETWEEN - col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 + - col2 + col1, col2 col1 FROM tab0
----
-97
99
115
47
32
10

query I rowsort
SELECT ALL col0 + + 61 AS col2 FROM tab2
----
107
125
136

query I rowsort
SELECT + ( + - 88 ) + + - col1 FROM tab0 cor0
----
-109
-169
-89

query I rowsort
SELECT - 64 + col2 - + - col2 * 73 AS col0 FROM tab2 AS cor0
----
1638
2896
4228

query I rowsort
SELECT - 42 + + + 20 + - col2 + + col0 * + + col1 FROM tab2 AS cor0 WHERE - col0 NOT BETWEEN - col1 * + col0 + - col1 AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5666
SELECT DISTINCT MAX( DISTINCT + 2 ) + - 61 + - SUM( DISTINCT - col1 ) FROM tab1 cor0
----
7

skipif mysql # not compatible
query I rowsort label-5666
SELECT DISTINCT MAX ( DISTINCT + 2 ) + - 61 + - SUM ( DISTINCT - col1 ) FROM tab1 cor0
----
7

query I rowsort
SELECT DISTINCT - col2 + + + col1 + col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 * + col1 < NULL
----

query II rowsort
SELECT DISTINCT + col1 * + 78 AS col0, 54 - + + col1 AS col2 FROM tab0
----
1638
33
6318
-27
78
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5670
SELECT ALL 13 + - + COUNT( * ) AS col2 FROM tab2
----
10

skipif mysql # not compatible
query I rowsort label-5670
SELECT ALL 13 + - + COUNT ( * ) AS col2 FROM tab2
----
10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 12 * - + col0 col0 FROM tab2
----
-552
-768
-900

onlyif mysql # DIV for integer division: 
query I rowsort label-5672
SELECT + 92 DIV ( - 4 ) FROM tab0
----
-23
-23
-23

skipif mysql # not compatible
query I rowsort label-5672
SELECT + 92 / ( - 4 ) FROM tab0
----
-23
-23
-23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5673
SELECT + ( CAST( + - col2 AS SIGNED ) ) FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5673
SELECT + ( CAST ( + - col2 AS INTEGER ) ) FROM tab2
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) * - - col0 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 * + - col2 AS col0, - col2 AS col0 FROM tab1 cor0
----
1344
-96
295
-59
3196
-68

query I rowsort
SELECT ALL + 39 AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5677
SELECT DISTINCT + SUM( ALL + ( + + col0 ) ) * + + 49 FROM tab1 AS cor0
----
11123

skipif mysql # not compatible
query I rowsort label-5677
SELECT DISTINCT + SUM ( ALL + ( + + col0 ) ) * + + 49 FROM tab1 AS cor0
----
11123

onlyif mysql # aggregate syntax: 
query II rowsort label-5678
SELECT + COUNT( 48 ) AS col0, + ( - SUM( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
3
121

skipif mysql # not compatible
query II rowsort label-5678
SELECT + COUNT ( 48 ) AS col0, + ( - SUM ( ALL - col2 ) ) AS col2 FROM tab2 AS cor0
----
3
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 40 col2 FROM tab0 AS cor0
----
40
40
40

query I rowsort
SELECT ALL ( - + ( + 16 ) ) FROM tab0 AS cor0
----
-16
-16
-16

query II rowsort
SELECT ALL col0 AS col0, + 54 + + - ( - 89 ) AS col1 FROM tab0 cor0
----
15
143
87
143
97
143

onlyif mysql # aggregate syntax: 
query II rowsort label-5682
SELECT - 1 col2, COUNT( * ) AS col1 FROM tab1 AS cor0
----
-1
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5682
SELECT - 1 col2, COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5683
SELECT + col0 DIV - 58 FROM tab0 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-5683
SELECT + col0 / - 58 FROM tab0 AS cor0
----
-1
-1
0

query II rowsort
SELECT + 8 AS col0, 37 FROM tab2 AS cor0
----
8
37
8
37
8
37

onlyif mysql # aggregate syntax: 
query II rowsort label-5685
SELECT DISTINCT + 45 AS col0, - SUM( DISTINCT - 60 ) AS col2 FROM tab0 AS cor0
----
45
60

skipif mysql # not compatible
query II rowsort label-5685
SELECT DISTINCT + 45 AS col0, - SUM ( DISTINCT - 60 ) AS col2 FROM tab0 AS cor0
----
45
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5686
SELECT - MAX( + 52 ) AS col0 FROM tab0 cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5686
SELECT - MAX ( + 52 ) AS col0 FROM tab0 cor0
----
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-5687
SELECT - ( + - col2 ) DIV ( col0 ) FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-5687
SELECT - ( + - col2 ) / ( col0 ) FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + 24 + + 26 FROM tab2
----
50

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND - col2 * + col0 + - col2
----

query I rowsort
SELECT ALL - + col1 * + 52 * - - col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 82 + - - col2 col0 FROM tab0 AS cor0
----
-35
-72
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 col1 FROM tab1 WHERE + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5693
SELECT DISTINCT - - MIN( ALL + 82 ) - - + COUNT( * ) FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-5693
SELECT DISTINCT - - MIN ( ALL + 82 ) - - + COUNT ( * ) FROM tab2 AS cor0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + + MIN( ALL + col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-5694
SELECT + + MIN ( ALL + col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT - - col2 * + col0 + col0 AS col2 FROM tab0 cor0
----
720
957
9700

onlyif mysql # aggregate syntax: 
query II rowsort label-5696
SELECT + COUNT( * ) AS col2, COUNT( * ) col0 FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5696
SELECT + COUNT ( * ) AS col2, COUNT ( * ) col0 FROM tab2 AS cor0
----
3
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5698
SELECT col2 - + - 12 * - CAST( NULL AS SIGNED ) + - col1 / col2 * - 22 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5698
SELECT col2 - + - 12 * - CAST ( NULL AS INTEGER ) + - col1 / col2 * - 22 * + - col0 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 98 * + + col2 FROM tab2 AS cor0
----
-2254
-3920
-5684

query I rowsort
SELECT col0 - - col1 * - col1 - - 85 FROM tab1 AS cor0
----
-2033
-60
145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 35 col1 FROM tab1
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-5702
SELECT - COUNT( DISTINCT - - col1 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-5702
SELECT - COUNT ( DISTINCT - - col1 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT ALL 23 * + - 97 AS col0 FROM tab0
----
-2231
-2231
-2231

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5704
SELECT DISTINCT + 24 AS col2, + CAST( NULL AS SIGNED ) FROM tab1
----
24
NULL

skipif mysql # not compatible
query II rowsort label-5704
SELECT DISTINCT + 24 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1
----
24
NULL

query II rowsort
SELECT 97 AS col2, 27 FROM tab1 AS cor0
----
97
27
97
27
97
27

query I rowsort
SELECT ALL - 97 * + - col1 * col1 AS col2 FROM tab2 AS cor0
----
252297
435433
575113

query I rowsort
SELECT ALL col0 * col1 + - + 98 + + - 52 AS col2 FROM tab1 AS cor0
----
275
4127
564

query I rowsort
SELECT DISTINCT + col2 * - + col0 AS col2 FROM tab0 cor0
----
-705
-870
-9603

onlyif mysql # DIV for integer division: 
query II rowsort label-5709
SELECT ALL - + col1 * 40 AS col1, col1 DIV + col0 FROM tab1 AS cor0
----
-1880
0
-200
0
-560
0

skipif mysql # not compatible
query II rowsort label-5709
SELECT ALL - + col1 * 40 AS col1, col1 / + col0 FROM tab1 AS cor0
----
-1880
0
-200
0
-560
0

query I rowsort
SELECT ALL + col2 * - - 98 AS col1 FROM tab0 cor0
----
4606
9702
980

onlyif mysql # aggregate syntax: 
query I rowsort label-5711
SELECT DISTINCT - - COUNT( * ) FROM tab2 AS cor0 WHERE NOT + col0 / - 34 + + - 26 * col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5711
SELECT DISTINCT - - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + col0 / - 34 + + - 26 * col2 IS NULL
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5712
SELECT DISTINCT col0 DIV + + col0 AS col2, 85 + 29 - + 51 * - col2 AS col2 FROM tab2 AS cor0
----
1
1287
1
2154
1
3072

skipif mysql # not compatible
query II rowsort label-5712
SELECT DISTINCT col0 / + + col0 AS col2, 85 + 29 - + 51 * - col2 AS col2 FROM tab2 AS cor0
----
1
1287
1
2154
1
3072

onlyif mysql # aggregate syntax: 
query I rowsort label-5713
SELECT SUM( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-5713
SELECT SUM ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5714
SELECT ALL - 27 * CAST( SUM( DISTINCT - 85 ) AS SIGNED ) + + 17 AS col2 FROM tab0 AS cor0
----
2312

skipif mysql # not compatible
query I rowsort label-5714
SELECT ALL - 27 * CAST ( SUM ( DISTINCT - 85 ) AS INTEGER ) + + 17 AS col2 FROM tab0 AS cor0
----
2312

onlyif mysql # aggregate syntax: 
query I rowsort label-5715
SELECT COUNT( * ) FROM tab0 WHERE + 46 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5715
SELECT COUNT ( * ) FROM tab0 WHERE + 46 IS NOT NULL
----
3

query I rowsort
SELECT DISTINCT col0 + + - col0 AS col2 FROM tab0
----
0

query I rowsort
SELECT ALL col1 + - 28 AS col0 FROM tab2
----
23
39
49

query I rowsort
SELECT DISTINCT col0 + - 74 FROM tab1
----
-23
11
17

query I rowsort
SELECT col2 + 82 + + col0 FROM tab0
----
144
179
278

onlyif mysql # aggregate syntax: 
query I rowsort label-5720
SELECT ALL SUM( ALL ( - col0 ) ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5720
SELECT ALL SUM ( ALL ( - col0 ) ) AS col0 FROM tab0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-5721
SELECT ALL + MAX( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-5721
SELECT ALL + MAX ( ALL - col2 ) AS col0 FROM tab2 AS cor0
----
-23

query III rowsort
SELECT * FROM tab0 WHERE + col2 * - col1 = ( NULL )
----

query I rowsort
SELECT 69 FROM tab0 WHERE NOT ( ( + ( ( + col2 ) ) ) + ( + col1 ) ) > NULL
----

query I rowsort
SELECT ALL 70 * 50 AS col0 FROM tab1
----
3500
3500
3500

onlyif mysql # DIV for integer division: 
query I rowsort label-5725
SELECT - col2 DIV - 28 FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5725
SELECT - col2 / - 28 FROM tab1
----
2
2
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col0 BETWEEN + col1 * - 59 + col0 AND col2
----
15
81
47
97
1
99

query I rowsort
SELECT + 66 + 6 FROM tab1
----
72
72
72

query I rowsort
SELECT + col0 + 7 FROM tab0
----
104
22
94

onlyif mysql # aggregate syntax: 
query I rowsort label-5729
SELECT 7 * - MAX( - col0 ) AS col1 FROM tab2
----
322

skipif mysql # not compatible
query I rowsort label-5729
SELECT 7 * - MAX ( - col0 ) AS col1 FROM tab2
----
322

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 >= ( - col1 * col1 )
----

query I rowsort
SELECT - col1 FROM tab1 WHERE NOT + ( 91 ) BETWEEN ( NULL ) AND - ( + col2 ) + + col1 * col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 BETWEEN - 59 AND col0 * col0
----
51
14
96

query I rowsort
SELECT + 13 * 94 + + 60 AS col2 FROM tab0
----
1282
1282
1282

onlyif mysql # DIV for integer division: 
query I rowsort label-5734
SELECT ALL - 32 DIV + col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5734
SELECT ALL - 32 / + col1 AS col0 FROM tab2
----
0
0
0

query I rowsort
SELECT 6 * ( - 4 ) AS col1 FROM tab1
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5736
SELECT 74 + + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5736
SELECT 74 + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 79 * + 34 + + col0 * - 75 AS col2 FROM tab0
----
-3811
-9211
-9961

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col0 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col1 AS col1 FROM tab0 WHERE 40 IS NULL
----

query I rowsort
SELECT 80 + 31 FROM tab0
----
111
111
111

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - 47 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5743
SELECT + MIN( + col0 ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-5743
SELECT + MIN ( + col0 ) AS col2 FROM tab2
----
46

query I rowsort
SELECT + 13 * 61 + ( col0 ) FROM tab1
----
844
878
884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5745
SELECT - 55 + + 83 FROM tab0 WHERE NOT col2 / CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5745
SELECT - 55 + + 83 FROM tab0 WHERE NOT col2 / CAST ( NULL AS INTEGER ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + 88 * 78 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( 95 ) > ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 87 + - 45 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 11 * + 26 AS col1 FROM tab0 cor0
----
286

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT - ( - CAST( - col0 AS SIGNED ) ) FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5750
SELECT - ( - CAST ( - col0 AS INTEGER ) ) FROM tab1
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-5751
SELECT ALL + 26 DIV + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5751
SELECT ALL + 26 / + col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5753
SELECT - COUNT( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5753
SELECT - COUNT ( ALL col2 ) AS col0 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5754
SELECT SUM( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE ( + col2 ) NOT IN ( 11 + col1 * 87 )
----
121

skipif mysql # not compatible
query I rowsort label-5754
SELECT SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0 WHERE ( + col2 ) NOT IN ( 11 + col1 * 87 )
----
121

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5755
SELECT AVG ( ALL - CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5755
SELECT AVG ( ALL - CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT + col2 DIV 32 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-5756
SELECT + col2 / 32 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5757
SELECT DISTINCT + col1 DIV + 51 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5757
SELECT DISTINCT + col1 / + 51 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 + + 1 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * - 15 AS col1 FROM tab0 AS cor0
----
-1305
-1455
-225

onlyif mysql # aggregate syntax: 
query I rowsort label-5760
SELECT DISTINCT COUNT( + col0 ) + SUM( DISTINCT + ( ( 0 ) ) + + 12 ) AS col0 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5760
SELECT DISTINCT COUNT ( + col0 ) + SUM ( DISTINCT + ( ( 0 ) ) + + 12 ) AS col0 FROM tab2 AS cor0
----
15

query I rowsort
SELECT 39 * - 7 FROM tab1 AS cor0
----
-273
-273
-273

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 90 BETWEEN NULL AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5763
SELECT DISTINCT MIN( DISTINCT + 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-5763
SELECT DISTINCT MIN ( DISTINCT + 43 ) FROM tab2
----
43

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * 49 > 76 * 58
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5765
SELECT ALL + 29 + - - col0 * CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5765
SELECT ALL + 29 + - - col0 * CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 88 + + col2 * - ( col2 * + col2 ) FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 97 + + 80 AS col2 FROM tab0
----
177

query I rowsort
SELECT DISTINCT 24 + 8 FROM tab2
----
32

query I rowsort
SELECT ALL col2 * + 55 + ( col1 ) FROM tab2
----
1316
2277
3257

query I rowsort
SELECT col0 AS col0 FROM tab0 WHERE ( ( - 26 ) * 59 ) NOT IN ( + ( col2 ) )
----
15
87
97

query I rowsort
SELECT DISTINCT + + 20 + - - col2 AS col1 FROM tab1 AS cor0
----
116
79
88

query I rowsort
SELECT col0 + col1 + + col0 FROM tab1 AS cor0
----
116
175
229

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL - col0 - 0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + + 73 - col2 * col2 col0 FROM tab1 AS cor0
----
-3467
-4619
-9239

query I rowsort
SELECT ALL - col0 + col1 * + 15 AS col2 FROM tab1 cor0 WHERE ( col0 / col2 ) IS NOT NULL
----
-10
159
614

query I rowsort
SELECT ALL 63 + col1 FROM tab0 AS cor0
----
144
64
84

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( ( - 49 ) > ( 91 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 < ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - col2 AS col0, + ( - 15 ) FROM tab0 AS cor0
----
-10
-15
-47
-15
-99
-15

onlyif mysql # aggregate syntax: 
query II rowsort label-5781
SELECT + COUNT( * ), + 25 * - SUM( + col1 ) col1 FROM tab0 AS cor0
----
3
-2575

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5781
SELECT + COUNT ( * ), + 25 * - SUM ( + col1 ) col1 FROM tab0 AS cor0
----
3
-2575

query II rowsort
SELECT ALL col2 AS col1, 8 - + col0 FROM tab2 AS cor0
----
23
-38
40
-56
58
-67

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5783
SELECT ALL + + 92 DIV + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5783
SELECT ALL + + 92 / + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-30

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 / + 28 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + ( - ( + 66 ) ) AS col0 FROM tab1 AS cor0
----
66
66
66

query I rowsort
SELECT - - col0 AS col1 FROM tab0 AS cor0 WHERE NOT col2 IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5787
SELECT COUNT( ( col2 ) ) FROM tab2 WHERE NOT + col0 * + + col1 >= ( col2 * + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5787
SELECT COUNT ( ( col2 ) ) FROM tab2 WHERE NOT + col0 * + + col1 >= ( col2 * + col1 )
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 15 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 ) IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 IN ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5792
SELECT ALL - COUNT( * ) * COUNT( * ) col0, COUNT( * ) + - 69 AS col2 FROM tab0
----
-9
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5792
SELECT ALL - COUNT ( * ) * COUNT ( * ) col0, COUNT ( * ) + - 69 AS col2 FROM tab0
----
-9
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5793
SELECT + col2 * 9 FROM tab2 WHERE NOT ( - CAST( NULL AS SIGNED ) + + col1 ) NOT BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-5793
SELECT + col2 * 9 FROM tab2 WHERE NOT ( - CAST ( NULL AS INTEGER ) + + col1 ) NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5794
SELECT - 68 * + CAST( ( - 21 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
1428
1428
1428

skipif mysql # not compatible
query I rowsort label-5794
SELECT - 68 * + CAST ( ( - 21 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
1428
1428
1428

query I rowsort
SELECT - ( + col2 ) + - col1 AS col1 FROM tab2 WHERE NULL NOT BETWEEN ( - 66 * - - ( - 40 ) + + col1 ) AND ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-5796
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab1
----
9

query I rowsort
SELECT DISTINCT + 8 * + 3 FROM tab1 AS cor0
----
24

query I rowsort
SELECT + - col0 * + - col1 + 65 FROM tab2 AS cor0
----
2411
4993
5090

query I rowsort
SELECT + + col2 + - 29 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-5800
SELECT ALL + col0 + col1 DIV - - col0, - col2 * CAST( col2 AS SIGNED ) col0 FROM tab0 cor0
----
20
-2209
87
-100
97
-9801

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5800
SELECT ALL + col0 + col1 / - - col0, - col2 * CAST ( col2 AS INTEGER ) col0 FROM tab0 cor0
----
20
-2209
87
-100
97
-9801

query I rowsort
SELECT DISTINCT - + ( 5 ) FROM tab2 AS cor0
----
-5

query I rowsort
SELECT - 77 + 95 FROM tab1 WHERE ( ( - 32 + - col0 ) IS NOT NULL )
----
18
18
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5803
SELECT ALL CAST( + 34 AS SIGNED ) AS col1 FROM tab0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-5803
SELECT ALL CAST ( + 34 AS INTEGER ) AS col1 FROM tab0
----
34
34
34

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT ( NULL ) NOT BETWEEN ( + - col2 + + col2 * + col1 ) AND 60 )
----

query III rowsort
SELECT * FROM tab0 WHERE + ( - col2 ) <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 + - col2 col0 FROM tab1
----
-14
-42
-5

query I rowsort
SELECT 64 + + col2 AS col1 FROM tab2
----
104
122
87

query I rowsort
SELECT ALL - ( + - col2 ) + + + 83 + - + 46 FROM tab0
----
136
47
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5809
SELECT DISTINCT - col2 * - CAST( NULL AS SIGNED ) - - col2 col2 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5809
SELECT DISTINCT - col2 * - CAST ( NULL AS INTEGER ) - - col2 col2 FROM tab2
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) = + 32
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5811
SELECT * FROM tab1 AS cor0 WHERE - CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-5811
SELECT * FROM tab1 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 - col1 + col1 col2 FROM tab0 AS cor0
----
1
21
81

query I rowsort
SELECT + - 86 - + col0 + - col0 * - - col1 FROM tab2 AS cor0
----
-2478
-5078
-5186

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT + COUNT( * ) + 4 AS col2 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT + COUNT ( * ) + 4 AS col2 FROM tab0
----
7

query I rowsort
SELECT ALL col1 + + 72 - - ( - 93 ) AS col0 FROM tab2
----
30
46
56

onlyif mysql # DIV for integer division: 
query I rowsort label-5816
SELECT DISTINCT 27 DIV col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5816
SELECT DISTINCT 27 / col2 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5817
SELECT + 63 / + + CAST( NULL AS SIGNED ) - MAX( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( col2 ) + - col1 + + 22 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5817
SELECT + 63 / + + CAST ( NULL AS INTEGER ) - MAX ( col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT + ( col2 ) + - col1 + + 22 IS NOT NULL
----
NULL

query I rowsort
SELECT col1 * - ( - + 0 ) AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5819
SELECT DISTINCT COUNT( ALL 93 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5819
SELECT DISTINCT COUNT ( ALL 93 ) AS col0 FROM tab1
----
3

query II rowsort
SELECT 89, col2 FROM tab2
----
89
23
89
40
89
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > - col0
----

query I rowsort
SELECT ALL - 60 AS col0 FROM tab1 cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5823
SELECT - + COUNT( col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5823
SELECT - + COUNT ( col0 ) FROM tab2 cor0
----
-3

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( 57 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 11 + col1 AS col0 FROM tab2 cor0
----
62
78
88

query I rowsort
SELECT - 53 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 47 AS col0 FROM tab0 cor0
----
47

query I rowsort
SELECT + + 32 * + 74 + + + col0 FROM tab0 AS cor0
----
2383
2455
2465

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT IN ( 89 * - - col1, + 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col2 FROM tab0 AS cor0
----
81
81
81

query I rowsort
SELECT DISTINCT - ( 44 ) - - + col0 FROM tab1 AS cor0
----
41
47
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5832
SELECT - + 3 * + ( + + col1 ) * - + col0 * - CAST( - 16 AS SIGNED ) FROM tab0 AS cor0
----
4656
58320
87696

skipif mysql # not compatible
query I rowsort label-5832
SELECT - + 3 * + ( + + col1 ) * - + col0 * - CAST ( - 16 AS INTEGER ) FROM tab0 AS cor0
----
4656
58320
87696

query I rowsort
SELECT - ( + + 33 ) FROM tab1 AS cor0
----
-33
-33
-33

onlyif mysql # aggregate syntax: 
query I rowsort label-5834
SELECT + + 49 * - + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-147

skipif mysql # not compatible
query I rowsort label-5834
SELECT + + 49 * - + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-147

query I rowsort
SELECT DISTINCT + col2 * + col0 + + - col0 FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT ALL - col1 + - + col2 + + col2 FROM tab1
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE ( 93 * 93 + - - col2 * + 90 + + - col1 + + col1 ) <> col1 + + 11
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + ( - - col2 ) AS col0 FROM tab0
----
196
62
97

query III rowsort
SELECT * FROM tab0 WHERE + 21 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + col0 + - col1 AS col0 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5841
SELECT DISTINCT + COUNT( * ) * - COUNT( * ) - - 69 AS col2 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-5841
SELECT DISTINCT + COUNT ( * ) * - COUNT ( * ) - - 69 AS col2 FROM tab2
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5842
SELECT + - SUM( + + 27 ) + 53 + - + 78 FROM tab0 AS cor0
----
-106

skipif mysql # not compatible
query I rowsort label-5842
SELECT + - SUM ( + + 27 ) + 53 + - + 78 FROM tab0 AS cor0
----
-106

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5843
SELECT DISTINCT + + CAST( NULL AS DECIMAL ) - 70 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5843
SELECT DISTINCT + + CAST ( NULL AS REAL ) - 70 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT + ( - ( 83 ) ) FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5845
SELECT - 34 * - - CAST( NULL AS SIGNED ) + - COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5845
SELECT - 34 * - - CAST ( NULL AS INTEGER ) + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5846
SELECT - col0 DIV ( - 18 ) col0 FROM tab0
----
0
4
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5846
SELECT - col0 / ( - 18 ) col0 FROM tab0
----
0
4
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5847
SELECT COUNT( * ) * - 45 * 83 AS col1 FROM tab2 cor0
----
-11205

skipif mysql # not compatible
query I rowsort label-5847
SELECT COUNT ( * ) * - 45 * 83 AS col1 FROM tab2 cor0
----
-11205

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT - 44 BETWEEN NULL AND + col2 + + col1 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE 11 + col0 = + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT - SUM( + 64 ) FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-5850
SELECT - SUM ( + 64 ) FROM tab0 AS cor0
----
-192

onlyif mysql # aggregate syntax: 
query I rowsort label-5851
SELECT DISTINCT MIN( + + 95 ) AS col2 FROM tab1 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-5851
SELECT DISTINCT MIN ( + + 95 ) AS col2 FROM tab1 AS cor0
----
95

query I rowsort
SELECT DISTINCT + 45 AS col2 FROM tab0 cor0
----
45

query II rowsort
SELECT + 0, + col2 FROM tab1 cor0
----
0
59
0
68
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5854
SELECT ALL + COUNT( - + col2 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5854
SELECT ALL + COUNT ( - + col2 ) col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 59 * - 24 * + col2 <> col0
----

query I rowsort
SELECT 91 * - col2 AS col0 FROM tab0
----
-4277
-9009
-910

query I rowsort
SELECT col2 AS col1 FROM tab1 WHERE NOT col0 + + col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5858
SELECT CAST( - COUNT( * ) AS SIGNED ) + - + 88 FROM tab2 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5858
SELECT CAST ( - COUNT ( * ) AS INTEGER ) + - + 88 FROM tab2 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + SUM( ALL 29 ) * - 97 FROM tab2 cor0
----
-8439

skipif mysql # not compatible
query I rowsort label-5859
SELECT + SUM ( ALL 29 ) * - 97 FROM tab2 cor0
----
-8439

onlyif mysql # aggregate syntax: 
query I rowsort label-5860
SELECT ALL - SUM( DISTINCT - col0 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IN ( col1 * - col2, + 89 * + - ( col0 ) * - 86 + 33, 45 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5860
SELECT ALL - SUM ( DISTINCT - col0 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IN ( col1 * - col2, + 89 * + - ( col0 ) * - 86 + 33, 45 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5861
SELECT + - 97 * + CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5861
SELECT + - 97 * + CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 53 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL + 81 - - COUNT( * ) col2 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5863
SELECT ALL + 81 - - COUNT ( * ) col2 FROM tab1 AS cor0
----
84

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 >= col0 * 81 - + + col0 * + + 54 / + 8
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 27 AS col1 FROM tab0 AS cor0 WHERE - col1 BETWEEN 39 * - + 47 + + + col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - + 65 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * 66 + 58 FROM tab0 AS cor0
----
124
1444
5404

query I rowsort
SELECT ALL + + col2 FROM tab1 WHERE NOT + - 80 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5869
SELECT 31 DIV - - COUNT( DISTINCT + + 60 ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-5869
SELECT 31 / - - COUNT ( DISTINCT + + 60 ) AS col2 FROM tab2
----
31

query II rowsort
SELECT ALL 22 * + + ( + - 85 ) + - - col1 AS col1, + col2 AS col1 FROM tab0
----
-1789
47
-1849
10
-1869
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5871
SELECT - col0 DIV - 82 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5871
SELECT - col0 / - 82 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5872
SELECT DISTINCT COUNT( * ) + - 33 + COUNT( * ) + - + ( - - 90 ) * - 55 * - + COUNT( - col1 ) FROM tab2
----
-14877

skipif mysql # not compatible
query I rowsort label-5872
SELECT DISTINCT COUNT ( * ) + - 33 + COUNT ( * ) + - + ( - - 90 ) * - 55 * - + COUNT ( - col1 ) FROM tab2
----
-14877

onlyif mysql # aggregate syntax: 
query I rowsort label-5873
SELECT - 34 * + COUNT( * ) FROM tab2
----
-102

skipif mysql # not compatible
query I rowsort label-5873
SELECT - 34 * + COUNT ( * ) FROM tab2
----
-102

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5874
SELECT COUNT( - col1 ) DIV - 57 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5874
SELECT COUNT ( - col1 ) / - 57 col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5875
SELECT DISTINCT col0 + 0 AS col2, 99 FROM tab1 WHERE + col2 * col0 * + 30 + - col0 < - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query II rowsort label-5875
SELECT DISTINCT col0 + 0 AS col2, 99 FROM tab1 WHERE + col2 * col0 * + 30 + - col0 < - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 <= - + 11 + + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col2 < col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5878
SELECT DISTINCT CAST( + 49 AS SIGNED ) AS col0 FROM tab2
----
49

skipif mysql # not compatible
query I rowsort label-5878
SELECT DISTINCT CAST ( + 49 AS INTEGER ) AS col0 FROM tab2
----
49

query I rowsort
SELECT ALL 65 * + col1 FROM tab1
----
3055
325
910

query I rowsort
SELECT ALL col0 + + - col2 + - + col2 FROM tab2
----
-16
-41
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 26 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 4 >= + col1 + - + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5883
SELECT ALL + SUM( - + col1 ) FROM tab0 cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5883
SELECT ALL + SUM ( - + col1 ) FROM tab0 cor0
----
-103

query II rowsort
SELECT col1 AS col2, - col2 AS col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 92 * col1 col2 FROM tab2 AS cor0
----
4692
6164
7084

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT + col1 <> NULL )
----

query I rowsort
SELECT ALL + 54 + - 85 - col0 FROM tab2 AS cor0
----
-106
-77
-95

query I rowsort
SELECT ALL - col0 + col1 * - 98 FROM tab1
----
-1423
-4697
-575

query I rowsort
SELECT + 95 * - col1 * + - col0 + - - col1 FROM tab1
----
40380
406362
67844

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT - COUNT( DISTINCT 90 ) AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT - COUNT ( DISTINCT 90 ) AS col0 FROM tab1
----
-1

query I rowsort
SELECT ALL - 11 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT + ( - 79 ) FROM tab0 AS cor0
----
-79

query I rowsort
SELECT col1 * - col1 AS col2 FROM tab2 AS cor0 WHERE ( col2 ) IS NOT NULL
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT + MAX( DISTINCT + ( + col1 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5894
SELECT + MAX ( DISTINCT + ( + col1 ) ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5895
SELECT col2 AS col2, col1 + + col0 DIV + col2 FROM tab2
----
23
53
40
78
58
68

skipif mysql # not compatible
query II rowsort label-5895
SELECT col2 AS col2, col1 + + col0 / + col2 FROM tab2
----
23
53
40
78
58
68

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE 5 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5897
SELECT COUNT( * ) + - - ( + 10 ) FROM tab0 WHERE NOT NULL IS NOT NULL AND col0 IS NOT NULL
----
13

skipif mysql # not compatible
query I rowsort label-5897
SELECT COUNT ( * ) + - - ( + 10 ) FROM tab0 WHERE NOT NULL IS NOT NULL AND col0 IS NOT NULL
----
13

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT 0 + - - col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-5899
SELECT DISTINCT + - COUNT( + 23 ), 43 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5899
SELECT DISTINCT + - COUNT ( + 23 ), 43 col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col2 FROM tab2 WHERE NOT NULL <= 24 * 38
----

query III rowsort
SELECT * FROM tab1 WHERE NOT 46 = NULL
----

query I rowsort
SELECT - ( - col0 ) * - col1 + + ( + + 44 ) AS col1 FROM tab2 cor0
----
-2302
-4884
-4981

query I rowsort
SELECT DISTINCT + + col2 * - col0 * + + col0 FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT - - 59 * + col2 FROM tab1 AS cor0
----
3481
4012
5664

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5905
SELECT ALL + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE NOT - 19 / - 77 > + - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5905
SELECT ALL + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE NOT - 19 / - 77 > + - col0
----

query I rowsort
SELECT + 19 * col1 * - 55 AS col0 FROM tab2 AS cor0
----
-53295
-70015
-80465

query II rowsort
SELECT ( + + col0 ) AS col2, col2 * - col2 AS col0 FROM tab1 AS cor0
----
51
-9216
85
-3481
91
-4624

query I rowsort
SELECT + + 89 * + col0 FROM tab2 AS cor0
----
4094
5696
6675

onlyif mysql # DIV for integer division: 
query I rowsort label-5909
SELECT 34 DIV + 96 + + + 8 FROM tab1 AS cor0
----
8
8
8

skipif mysql # not compatible
query I rowsort label-5909
SELECT 34 / + 96 + + + 8 FROM tab1 AS cor0
----
8
8
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5910
SELECT DISTINCT - 95 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE + ( + + col0 ) * - - ( + 3 ) IS NOT NULL
----
-285

skipif mysql # not compatible
query I rowsort label-5910
SELECT DISTINCT - 95 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE + ( + + col0 ) * - - ( + 3 ) IS NOT NULL
----
-285

query I rowsort
SELECT DISTINCT + 22 FROM tab0 AS cor0 WHERE 84 IS NOT NULL
----
22

onlyif mysql # aggregate syntax: 
query I rowsort label-5912
SELECT ALL - ( + + MIN( + col0 ) ) + - 93 AS col1 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-5912
SELECT ALL - ( + + MIN ( + col0 ) ) + - 93 AS col1 FROM tab0
----
-108

onlyif mysql # aggregate syntax: 
query I rowsort label-5913
SELECT + COUNT( * ) + ( + COUNT( * ) ) col0 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5913
SELECT + COUNT ( * ) + ( + COUNT ( * ) ) col0 FROM tab0
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 44 + + 60 * - + col2 col2 FROM tab0
----
-5896
324
744

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 / + col1 + + - col2 > + 37
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5916
SELECT - - col1 AS col1 FROM tab2 WHERE NULL = 77 + CAST( NULL AS SIGNED ) + + + col0
----

skipif mysql # not compatible
query I rowsort label-5916
SELECT - - col1 AS col1 FROM tab2 WHERE NULL = 77 + CAST ( NULL AS INTEGER ) + + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5917
SELECT ALL - 29 + COUNT( * ) FROM tab2
----
-26

skipif mysql # not compatible
query I rowsort label-5917
SELECT ALL - 29 + COUNT ( * ) FROM tab2
----
-26

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5918
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( NULL AS DECIMAL ) AND col0 + + 54
----

skipif mysql # not compatible
query III rowsort label-5918
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( NULL AS REAL ) AND col0 + + 54
----

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE - col0 IS NOT NULL
----
1
21
81

query II rowsort
SELECT - 61 * + col0 * - + col1 + - col2 + + 69 AS col1, 34 FROM tab1 AS cor0
----
25935
34
260898
34
43527
34

query I rowsort
SELECT ALL + col2 FROM tab0 cor0 WHERE + 80 * - 46 BETWEEN - col0 AND + 10
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5922
SELECT + col2 * 76 - - + 69 DIV + ( + col2 ) AS col0 FROM tab1
----
4485
5169
7296

skipif mysql # not compatible
query I rowsort label-5922
SELECT + col2 * 76 - - + 69 / + ( + col2 ) AS col0 FROM tab1
----
4485
5169
7296

query I rowsort
SELECT 8 + - - col0 AS col1 FROM tab0
----
105
23
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5924
SELECT + SUM( ALL + + col2 ) + - + COUNT( * ) AS col0 FROM tab1
----
220

skipif mysql # not compatible
query I rowsort label-5924
SELECT + SUM ( ALL + + col2 ) + - + COUNT ( * ) AS col0 FROM tab1
----
220

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5925
SELECT - + COUNT( * ) + + + COUNT( * ) / - - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5925
SELECT - + COUNT ( * ) + + + COUNT ( * ) / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col1 - + 38 + + - col0 + + col2 * col0 + col1 + col1 * + 81 AS col2 FROM tab2 AS cor0
----
5207
8849
9798

query I rowsort
SELECT ALL 19 - - - col0 + col1 AS col2 FROM tab1 AS cor0
----
-18
-25
-61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, 40 * - - col0 col2 FROM tab0 AS cor0
----
-1
3880
-21
3480
-81
600

query II rowsort
SELECT - col1 * + col1 + - col1 + - + 20 AS col2, col2 FROM tab2 AS cor0
----
-2672
23
-4576
58
-6026
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5930
SELECT MIN( col1 ) * - - 92 FROM tab1 AS cor0
----
460

skipif mysql # not compatible
query I rowsort label-5930
SELECT MIN ( col1 ) * - - 92 FROM tab1 AS cor0
----
460

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col0 NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + 29 AS col2 FROM tab2 WHERE NOT NULL NOT IN ( col0, col0 )
----

query II rowsort
SELECT col0 * - + 26, - 49 AS col2 FROM tab2
----
-1196
-49
-1664
-49
-1950
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-5934
SELECT ALL + - SUM( + col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5934
SELECT ALL + - SUM ( + col0 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL col2 * col0 * + col2 AS col0 FROM tab1
----
295885
420784
470016

query I rowsort
SELECT - col1 * 34 * - + col2 FROM tab2
----
104720
132124
39882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5937
SELECT DISTINCT + ( - col0 ) / + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5937
SELECT DISTINCT + ( - col0 ) / + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-5939
SELECT 8 * + COUNT( * ) / + AVG ( + + col1 ) + + - SUM( + 66 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5939
SELECT 8 * + COUNT ( * ) / + AVG ( + + col1 ) + + - SUM ( + 66 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 7 * col0 > col1 AND NOT NULL BETWEEN NULL AND col0 * + 81 + - ( + 0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / + col1 > + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5942
SELECT DISTINCT MIN( - + col1 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-5942
SELECT DISTINCT MIN ( - + col1 ) FROM tab2 AS cor0
----
-77

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5943
SELECT - CAST( NULL AS DECIMAL ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5943
SELECT - CAST ( NULL AS REAL ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5944
SELECT DISTINCT + - 74, col1 - - 53 * 78 DIV - col2 AS col2 FROM tab2 AS cor0
----
-74
-128
-74
-26
-74
-4

skipif mysql # not compatible
query II rowsort label-5944
SELECT DISTINCT + - 74, col1 - - 53 * 78 / - col2 AS col2 FROM tab2 AS cor0
----
-74
-128
-74
-26
-74
-4

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - - 93 + 51 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 + - 48 + + 59 + col0 AS col2 FROM tab1 WHERE ( NOT ( ( NULL IS NOT NULL ) ) )
----
155
158
170

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5947
SELECT DISTINCT 40 + + col0 AS col1, col1 * col2 + - col0 * + CAST( NULL AS DECIMAL ) - 58 AS col0 FROM tab1
----
125
NULL
131
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-5947
SELECT DISTINCT 40 + + col0 AS col1, col1 * col2 + - col0 * + CAST ( NULL AS REAL ) - 58 AS col0 FROM tab1
----
125
NULL
131
NULL
91
NULL

query I rowsort
SELECT 8 AS col2 FROM tab2 WHERE col1 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE - + 14 * col0 - + 98 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * + 46 + + 63 + 82 - - - col1 + - - col1 FROM tab0
----
2307
4699
605

query I rowsort
SELECT - - col2 * - - col0 + - 89 + + col2 + 92 FROM tab1 AS cor0
----
4995
5077
6259

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5953
SELECT * FROM tab2 WHERE col2 * - CAST( NULL AS SIGNED ) <> - col0
----

skipif mysql # not compatible
query III rowsort label-5953
SELECT * FROM tab2 WHERE col2 * - CAST ( NULL AS INTEGER ) <> - col0
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 72 BETWEEN NULL AND - col2 / + col0 - + - 49 * + col1 / - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5955
SELECT ALL + CAST( NULL AS SIGNED ) - - 63 + + 25 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5955
SELECT ALL + CAST ( NULL AS INTEGER ) - - 63 + + 25 AS col1 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 52 + 15 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5957
SELECT DISTINCT COUNT( ALL - col2 ) + - 63 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-5957
SELECT DISTINCT COUNT ( ALL - col2 ) + - 63 FROM tab0 cor0
----
-60

query I rowsort
SELECT + col2 / + 7 FROM tab0 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5959
SELECT - - SUM( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
query I rowsort label-5959
SELECT - - SUM ( ALL - col1 ) AS col2 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL 50 * + col1 AS col0 FROM tab2 AS cor0
----
2550
3350
3850

query I rowsort
SELECT ( - col2 ) * + - col1 AS col0 FROM tab0
----
210
3807
99

query II rowsort
SELECT DISTINCT + col1, col0 AS col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # DIV for integer division: 
query II rowsort label-5963
SELECT ( - col2 ) DIV - 36 + + + col1 AS col0, ( + 39 ) AS col1 FROM tab2
----
51
39
68
39
78
39

skipif mysql # not compatible
query II rowsort label-5963
SELECT ( - col2 ) / - 36 + + + col1 AS col0, ( + 39 ) AS col1 FROM tab2
----
51
39
68
39
78
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 - + 17 BETWEEN NULL AND - - col1
----

query I rowsort
SELECT + col2 * 70 FROM tab2
----
1610
2800
4060

query II rowsort
SELECT - 87 AS col2, col0 + 37 AS col0 FROM tab1
----
-87
122
-87
128
-87
88

onlyif mysql # aggregate syntax: 
query I rowsort label-5967
SELECT DISTINCT - - SUM( DISTINCT + 69 ) AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5967
SELECT DISTINCT - - SUM ( DISTINCT + 69 ) AS col1 FROM tab2 AS cor0
----
69

query I rowsort
SELECT - - 59 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query I rowsort
SELECT ALL + - col1 AS col1 FROM tab1 WHERE NOT col0 * - 74 IS NULL
----
-14
-47
-5

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 NOT IN ( 12 * 17 + - - col2 + - + 83, 47 + + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 15 * - - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5972
SELECT DISTINCT + SUM( ALL - - col2 ) + + 20 FROM tab0 AS cor0
----
176

skipif mysql # not compatible
query I rowsort label-5972
SELECT DISTINCT + SUM ( ALL - - col2 ) + + 20 FROM tab0 AS cor0
----
176

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col2 FROM tab2 cor0
----
96
96
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5974
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST( + col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5974
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= CAST ( + col0 AS INTEGER )
----

query I rowsort
SELECT - col0 * 84 FROM tab2 AS cor0
----
-3864
-5376
-6300

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5976
SELECT ALL - - CAST( COUNT( * ) AS SIGNED ), 56 AS col1 FROM tab1 AS cor0
----
3
56

skipif mysql # not compatible
query II rowsort label-5976
SELECT ALL - - CAST ( COUNT ( * ) AS INTEGER ), 56 AS col1 FROM tab1 AS cor0
----
3
56

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col1 AND + 97
----

query I rowsort
SELECT ALL - 87 * 4 AS col2 FROM tab1
----
-348
-348
-348

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5979
SELECT MIN( ALL + + CAST( NULL AS SIGNED ) ) + - 21 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5979
SELECT MIN ( ALL + + CAST ( NULL AS INTEGER ) ) + - 21 AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5980
SELECT SUM( DISTINCT - col2 ) + + - COUNT( * ) FROM tab0
----
-159

skipif mysql # not compatible
query I rowsort label-5980
SELECT SUM ( DISTINCT - col2 ) + + - COUNT ( * ) FROM tab0
----
-159

query II rowsort
SELECT ALL 9 AS col1, 61 + + col2 + - col2 + - ( + - col0 ) + + 49 FROM tab0
----
9
125
9
197
9
207

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5982
SELECT DISTINCT col2 * - 94 * CAST( NULL AS SIGNED ) + - + 34 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5982
SELECT DISTINCT col2 * - 94 * CAST ( NULL AS INTEGER ) + - + 34 AS col2 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 81 NOT IN ( + 54, + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 + - col2 * - + col2 * col2 + - col2 AS col1 FROM tab2
----
12093
194987
63883

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 BETWEEN col1 AND NULL
----

query I rowsort
SELECT 6 * - col2 FROM tab0
----
-282
-594
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-5987
SELECT MIN( + - 76 ) FROM tab0
----
-76

skipif mysql # not compatible
query I rowsort label-5987
SELECT MIN ( + - 76 ) FROM tab0
----
-76

query II rowsort
SELECT - 71, 4 - col1 + - col2 * - 51 AS col0 FROM tab1
----
-71
3008
-71
3425
-71
4886

query I rowsort
SELECT ALL - 86 - - 24 AS col0 FROM tab0
----
-62
-62
-62

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5990
SELECT - MAX( ALL CAST( - + col1 AS SIGNED ) ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5990
SELECT - MAX ( ALL CAST ( - + col1 AS INTEGER ) ) FROM tab2 AS cor0
----
51

query I rowsort
SELECT ALL - col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5992
SELECT ALL + CAST( NULL AS SIGNED ) + 48 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT ALL + CAST ( NULL AS INTEGER ) + 48 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 84 AS col2 FROM tab2 AS cor0
----
84

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE NOT col2 * + + col0 = - 59 * + col1 * - - col1 / 77 + - - 55
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5995
SELECT DISTINCT + + SUM( - - 17 ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-5995
SELECT DISTINCT + + SUM ( - - 17 ) AS col0 FROM tab0 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT + SUM( + 0 ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5996
SELECT + SUM ( + 0 ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL - COUNT( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL - COUNT ( * ) AS col2 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
-9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 + col1 + + 43 * - col1 IS NULL
----

query I rowsort
SELECT ALL - col0 * - col0 + + col0 + 49 FROM tab2 AS cor0
----
2211
4209
5749

onlyif mysql # DIV for integer division: 
query I rowsort label-6000
SELECT - 51 DIV - 32 + + ( col0 ) + 87 * + 37 * + col1 * - 7 FROM tab1 AS cor0
----
-1058959
-112579
-315410

skipif mysql # not compatible
query I rowsort label-6000
SELECT - 51 / - 32 + + ( col0 ) + 87 * + 37 * + col1 * - 7 FROM tab1 AS cor0
----
-1058959
-112579
-315410

onlyif mysql # DIV for integer division: 
query I rowsort label-6001
SELECT DISTINCT - 54 DIV - col0 FROM tab0
----
0
3

skipif mysql # not compatible
query I rowsort label-6001
SELECT DISTINCT - 54 / - col0 FROM tab0
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 col2 FROM tab2 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6003
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST( + col2 AS SIGNED ) - + + 0, col2, col0 )
----

skipif mysql # not compatible
query III rowsort label-6003
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( CAST ( + col2 AS INTEGER ) - + + 0, col2, col0 )
----

query I rowsort
SELECT - 74 * col0 AS col0 FROM tab0
----
-1110
-6438
-7178

query I rowsort
SELECT DISTINCT col1 * - 87 FROM tab0
----
-1827
-7047
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT - MAX( - col1 ) * - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-6006
SELECT - MAX ( - col1 ) * - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6007
SELECT COUNT( * ) * + CAST( NULL AS SIGNED ) * + - 18 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6007
SELECT COUNT ( * ) * + CAST ( NULL AS INTEGER ) * + - 18 AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col2 col0 FROM tab1
----
-14
96
-47
68
-5
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6009
SELECT + 8 * - - CAST( 51 AS SIGNED ) AS col0 FROM tab1
----
408
408
408

skipif mysql # not compatible
query I rowsort label-6009
SELECT + 8 * - - CAST ( 51 AS INTEGER ) AS col0 FROM tab1
----
408
408
408

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6010
SELECT DISTINCT + COUNT( - CAST( NULL AS SIGNED ) ) * 35 + + - 36 FROM tab1 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-6010
SELECT DISTINCT + COUNT ( - CAST ( NULL AS INTEGER ) ) * 35 + + - 36 FROM tab1 AS cor0
----
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 1 + - ( + col1 ) col0 FROM tab1 AS cor0
----
-13
-4
-46

query I rowsort
SELECT DISTINCT 0 * + + col2 * + col0 FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6013
SELECT ALL ( col1 ) DIV 81 + 58 AS col0 FROM tab1
----
58
58
58

skipif mysql # not compatible
query I rowsort label-6013
SELECT ALL ( col1 ) / 81 + 58 AS col0 FROM tab1
----
58
58
58

query I rowsort
SELECT ALL + + col1 * col0 FROM tab1 WHERE col0 * + col1 + + + col1 = + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6015
SELECT - CAST( NULL AS SIGNED ) + - col1 * - + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6015
SELECT - CAST ( NULL AS INTEGER ) + - col1 * - + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - col2 * - 16 + + 99 FROM tab0 AS cor0
----
-1485
-61
-653

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6017
SELECT DISTINCT - - col1 col1 FROM tab2 AS cor0 WHERE NOT ( NOT + CAST( NULL AS SIGNED ) < NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6017
SELECT DISTINCT - - col1 col1 FROM tab2 AS cor0 WHERE NOT ( NOT + CAST ( NULL AS INTEGER ) < NULL )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6018
SELECT DISTINCT + 1 AS col1, + col1 DIV - col0 FROM tab2 AS cor0
----
1
-1
1
0

skipif mysql # not compatible
query II rowsort label-6018
SELECT DISTINCT + 1 AS col1, + col1 / - col0 FROM tab2 AS cor0
----
1
-1
1
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6020
SELECT DISTINCT + ( col2 ) + CAST( NULL AS SIGNED ) * + + col0 + - 41, - col1 + 37 col0 FROM tab2
----
NULL
-14
NULL
-30
NULL
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6020
SELECT DISTINCT + ( col2 ) + CAST ( NULL AS INTEGER ) * + + col0 + - 41, - col1 + 37 col0 FROM tab2
----
NULL
-14
NULL
-30
NULL
-40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6021
SELECT DISTINCT * FROM tab0 WHERE - + col2 * col1 + col2 + 3 * 0 * CAST( - col2 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6021
SELECT DISTINCT * FROM tab0 WHERE - + col2 * col1 + col2 + 3 * 0 * CAST ( - col2 AS INTEGER ) IS NULL
----

query I rowsort
SELECT ALL + 59 FROM tab0 WHERE + 97 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6023
SELECT ALL 19 + - SUM( - - 24 ) AS col0, - COUNT( * ) AS col1 FROM tab1
----
-53
-3

skipif mysql # not compatible
query II rowsort label-6023
SELECT ALL 19 + - SUM ( - - 24 ) AS col0, - COUNT ( * ) AS col1 FROM tab1
----
-53
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6024
SELECT - CAST( NULL AS SIGNED ) + - COUNT( * ) * + 16 AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6024
SELECT - CAST ( NULL AS INTEGER ) + - COUNT ( * ) * + 16 AS col1 FROM tab2 cor0
----
NULL

query I rowsort
SELECT + - col2 + - 88 FROM tab2 AS cor0
----
-111
-128
-146

query II rowsort
SELECT - 84 + + - 16 AS col2, 85 FROM tab1 AS cor0
----
-100
85
-100
85
-100
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6027
SELECT - + MAX( + 19 ) + + + 26 + + 22 FROM tab2 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-6027
SELECT - + MAX ( + 19 ) + + + 26 + + 22 FROM tab2 AS cor0
----
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6028
SELECT DISTINCT - ( COUNT( * ) ) - COUNT( * ) col0 FROM tab0 cor0
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6028
SELECT DISTINCT - ( COUNT ( * ) ) - COUNT ( * ) col0 FROM tab0 cor0
----
-6

query I rowsort
SELECT - - col0 * 6 FROM tab0 AS cor0
----
522
582
90

query II rowsort
SELECT - col2 AS col0, + ( - col0 ) FROM tab1
----
-59
-85
-68
-91
-96
-51

query II rowsort
SELECT - - col2, 92 AS col1 FROM tab0 AS cor0
----
10
92
47
92
99
92

onlyif mysql # aggregate syntax: 
query I rowsort label-6032
SELECT + COUNT( ( + 58 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6032
SELECT + COUNT ( ( + 58 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + ( + 6 ) * + + col0 - + col0 AS col2 FROM tab1 AS cor0
----
-357
-595
-637

query II rowsort
SELECT 2, col2 FROM tab0 AS cor0
----
2
10
2
47
2
99

onlyif mysql # DIV for integer division: 
query I rowsort label-6035
SELECT ALL col1 DIV col0 + - - col0 FROM tab0 cor0
----
20
87
97

skipif mysql # not compatible
query I rowsort label-6035
SELECT ALL col1 / col0 + - - col0 FROM tab0 cor0
----
20
87
97

query I rowsort
SELECT DISTINCT - 60 * + col2 FROM tab0 AS cor0
----
-2820
-5940
-600

query I rowsort
SELECT col0 - - - col1 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
-13
-5
8

query I rowsort
SELECT DISTINCT + col0 * 77 FROM tab1
----
3927
6545
7007

onlyif mysql # DIV for integer division: 
query I rowsort label-6039
SELECT + col2 DIV - - 16 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-6039
SELECT + col2 / - - 16 FROM tab2
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT - 25 * + - SUM( - ( 36 ) ) FROM tab0
----
-2700

skipif mysql # not compatible
query I rowsort label-6040
SELECT - 25 * + - SUM ( - ( 36 ) ) FROM tab0
----
-2700

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + 65 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6042
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6042
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
3

query I rowsort
SELECT + col0 * + 88 AS col0 FROM tab1 AS cor0
----
4488
7480
8008

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 70 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 * + col2 * + + col1 * + col2, col1 AS col1 FROM tab2 AS cor0
----
1241034
51
16904100
67
7884800
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT + COUNT( * ) + - 51 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-6046
SELECT + COUNT ( * ) + - 51 FROM tab0 AS cor0
----
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-6047
SELECT ALL + COUNT( * ) + - 74 AS col2 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-6047
SELECT ALL + COUNT ( * ) + - 74 AS col2 FROM tab2 AS cor0
----
-71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6048
SELECT + COUNT( * ) DIV COUNT( * ) + + + 34 * COUNT( * ) AS col2 FROM tab1 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-6048
SELECT + COUNT ( * ) / COUNT ( * ) + + + 34 * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
103

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6049
SELECT DISTINCT + 2 DIV - + COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6049
SELECT DISTINCT + 2 / - + COUNT ( * ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT ALL + ( + + 45 ) FROM tab1 cor0
----
45
45
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 col1, col2 FROM tab1 AS cor0
----
-14
96
-47
68
-5
59

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6053
SELECT ALL + COUNT( * ) DIV + + 78 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL + COUNT ( * ) / + + 78 FROM tab1
----
0

query I rowsort
SELECT + + col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-6055
SELECT col0 AS col0, col2 DIV + col2 FROM tab2
----
46
1
64
1
75
1

skipif mysql # not compatible
query II rowsort label-6055
SELECT col0 AS col0, col2 / + col2 FROM tab2
----
46
1
64
1
75
1

query I rowsort
SELECT ALL - col0 + + 38 AS col0 FROM tab2
----
-26
-37
-8

query II rowsort
SELECT 85, 88 AS col2 FROM tab2
----
85
88
85
88
85
88

onlyif mysql # aggregate syntax: 
query I rowsort label-6058
SELECT DISTINCT 54 * 8 + - ( - ( + - SUM( - 82 ) ) ) * + + MIN( ALL - + col1 ) * - - COUNT( DISTINCT col1 ) FROM tab1
----
-34254

skipif mysql # not compatible
query I rowsort label-6058
SELECT DISTINCT 54 * 8 + - ( - ( + - SUM ( - 82 ) ) ) * + + MIN ( ALL - + col1 ) * - - COUNT ( DISTINCT col1 ) FROM tab1
----
-34254

onlyif mysql # aggregate syntax: 
query I rowsort label-6059
SELECT DISTINCT - COUNT( * ) - SUM( - ( - 33 ) ) FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - COUNT ( * ) - SUM ( - ( - 33 ) ) FROM tab0
----
-102

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6060
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - 40 AS col1, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

skipif mysql # not compatible
query II rowsort label-6060
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - 40 AS col1, - col1 AS col0 FROM tab0
----
NULL
-1
NULL
-21
NULL
-81

query II rowsort
SELECT ALL 41 AS col0, 13 FROM tab1 AS cor0
----
41
13
41
13
41
13

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 <= col0 + + - 86 + - 41 * + - 73 * + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6063
SELECT SUM( ALL + 33 ) AS col2 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-6063
SELECT SUM ( ALL + 33 ) AS col2 FROM tab0
----
99

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NOT col0 + + + 86 / - + col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 71 FROM tab2 AS cor0 WHERE ( NOT col2 IS NULL )
----
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6066
SELECT ALL + CAST( + MIN( ALL + col1 ) AS SIGNED ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + CAST ( + MIN ( ALL + col1 ) AS INTEGER ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT ALL - col2 AS col1, - 89 FROM tab2
----
-23
-89
-40
-89
-58
-89

query II rowsort
SELECT 34 AS col0, + col1 FROM tab2
----
34
51
34
67
34
77

query II rowsort
SELECT - col1 AS col0, col0 FROM tab2
----
-51
46
-67
75
-77
64

query II rowsort
SELECT DISTINCT + 10, col2 AS col0 FROM tab1
----
10
59
10
68
10
96

query I rowsort
SELECT DISTINCT - 63 + + + col0 FROM tab0
----
-48
24
34

query I rowsort
SELECT col1 * col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col1 - - col1 * + ( + 86 ) AND NULL
----

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT + 74 * + - col0 IS NULL
----
14
47
5

query II rowsort
SELECT DISTINCT col2 AS col1, col0 + - ( + - col0 ) FROM tab0 AS cor0
----
10
174
47
30
99
194

query I rowsort
SELECT 25 * - 68 + col0 FROM tab0 AS cor0
----
-1603
-1613
-1685

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE 3 IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6077
SELECT ALL + 30 * 26 + + 18 DIV 10 col2, 14 * + 17 + + - COUNT( ALL + + col1 ) FROM tab0
----
781
235

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6077
SELECT ALL + 30 * 26 + + 18 / 10 col2, 14 * + 17 + + - COUNT ( ALL + + col1 ) FROM tab0
----
781
235

query I rowsort
SELECT - col2 * - 74 AS col1 FROM tab0 AS cor0
----
3478
7326
740

onlyif mysql # aggregate syntax: 
query I rowsort label-6079
SELECT DISTINCT - + MAX( col1 ) FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-6079
SELECT DISTINCT - + MAX ( col1 ) FROM tab1 AS cor0
----
-47

query I rowsort
SELECT DISTINCT - ( - ( + col2 ) ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 col2 FROM tab2 AS cor0 WHERE NOT 18 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6082
SELECT - col2 DIV col0 - + 31 AS col0 FROM tab1
----
-31
-31
-32

skipif mysql # not compatible
query I rowsort label-6082
SELECT - col2 / col0 - + 31 AS col0 FROM tab1
----
-31
-31
-32

query I rowsort
SELECT - 39 - + - 10 AS col2 FROM tab1
----
-29
-29
-29

onlyif mysql # aggregate syntax: 
query I rowsort label-6084
SELECT DISTINCT SUM( ( + ( - - col0 ) ) ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-6084
SELECT DISTINCT SUM ( ( + ( - - col0 ) ) ) AS col1 FROM tab1
----
227

query I rowsort
SELECT DISTINCT - col1 + - 30 AS col0 FROM tab0
----
-111
-31
-51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN NULL AND + 25 AND NOT 5 IS NULL
----

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NULL > NULL AND NOT ( NOT 40 < + col1 )
----

query I rowsort
SELECT 98 + - 11 FROM tab2
----
87
87
87

query I rowsort
SELECT ALL col0 - + 21 + col1 FROM tab0
----
75
77
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6090
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 - + - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6090
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT col0 - + - col1 IS NULL
----
3

query III rowsort
SELECT + col0 AS col1, + ( - col0 ) AS col1, + col0 AS col0 FROM tab0 AS cor0
----
9 values hashing to a3b1ba051236c82a145196edd727fda2

onlyif mysql # aggregate syntax: 
query I rowsort label-6092
SELECT DISTINCT - 47 * - - 35 * ( COUNT( * ) ) FROM tab2
----
-4935

skipif mysql # not compatible
query I rowsort label-6092
SELECT DISTINCT - 47 * - - 35 * ( COUNT ( * ) ) FROM tab2
----
-4935

onlyif mysql # aggregate syntax: 
query II rowsort label-6093
SELECT ALL COUNT( * ) AS col0, 74 AS col1 FROM tab1
----
3
74

skipif mysql # not compatible
query II rowsort label-6093
SELECT ALL COUNT ( * ) AS col0, 74 AS col1 FROM tab1
----
3
74

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE col1 <> ( NULL )
----

query I rowsort
SELECT + + col2 AS col0 FROM tab0 cor0 WHERE NOT col2 * col0 * - col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( + + col1 ) = NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 62 + + col1 + 98 * + 45 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL + col0 AS col1, col1 AS col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 <= + col0
----
75
67
58

query I rowsort
SELECT - col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL > col2 * + 62
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col2, col2 AS col1 FROM tab1 AS cor0
----
51
96
85
59
91
68

query III rowsort
SELECT ALL * FROM tab0 WHERE - 86 IS NULL
----

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT + 56 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6104
SELECT + COUNT( * ) AS col2 FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-6104
SELECT + COUNT ( * ) AS col2 FROM tab2, tab2 cor0
----
9

query I rowsort
SELECT col2 + + col2 + - + col0 FROM tab2
----
0
16
41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 90 * + - col2 * - 18 + col2 col2 FROM tab1
----
110228
155616
95639

query I rowsort
SELECT DISTINCT 30 + col0 FROM tab1
----
115
121
81

query II rowsort
SELECT col2 + + 32, col1 FROM tab2
----
55
51
72
77
90
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6109
SELECT DISTINCT - SUM( col0 ) * + - MIN( - col2 ) AS col1 FROM tab0 AS cor0
----
-19701

skipif mysql # not compatible
query I rowsort label-6109
SELECT DISTINCT - SUM ( col0 ) * + - MIN ( - col2 ) AS col1 FROM tab0 AS cor0
----
-19701

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6110
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) = - 66
----

skipif mysql # not compatible
query III rowsort label-6110
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) = - 66
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6111
SELECT ALL MIN( ALL + col0 ) AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6111
SELECT ALL MIN ( ALL + col0 ) AS col1 FROM tab1
----
51

query IIIIII rowsort
SELECT ALL * FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NULL IS NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

query I rowsort
SELECT ALL - col0 * + + col0 + ( + 55 ) - ( + 50 ) AS col2 FROM tab2
----
-2111
-4091
-5620

query II rowsort
SELECT ALL + + 80 AS col2, + 99 FROM tab0 AS cor0
----
80
99
80
99
80
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6115
SELECT - + 6 + - CAST( col0 AS SIGNED ) FROM tab2 AS cor0
----
-52
-70
-81

skipif mysql # not compatible
query I rowsort label-6115
SELECT - + 6 + - CAST ( col0 AS INTEGER ) FROM tab2 AS cor0
----
-52
-70
-81

query I rowsort
SELECT ALL col0 * col1 + - + 17 - + + col1 FROM tab0 AS cor0
----
1117
1789
79

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE + 3 < - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6118
SELECT DISTINCT - COUNT( * ) * + 10 FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-6118
SELECT DISTINCT - COUNT ( * ) * + 10 FROM tab0 AS cor0
----
-30

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * - col1 col2 FROM tab1
----
-2632
-280
-784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6120
SELECT ALL CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6120
SELECT ALL CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col0, + col0 col0 FROM tab2 WHERE NOT - - col2 IS NULL
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6122
SELECT DISTINCT col1 + col0 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6122
SELECT DISTINCT col1 + col0 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT + - 0 AS col1 FROM tab1 WHERE + ( - 59 ) + - 47 NOT BETWEEN - - 4 AND + + col0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - + col0 col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - col0 + 39 FROM tab1
----
-12
-46
-52

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 * col0 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6127
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 51 ) IN ( col1, - 57 * col1 / + CAST( col0 AS SIGNED ), - col0, + + col1 )
----
46
51
23

skipif mysql # not compatible
query III rowsort label-6127
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 51 ) IN ( col1, - 57 * col1 / + CAST ( col0 AS INTEGER ), - col0, + + col1 )
----
46
51
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 85 * + - col0 >= + ( 91 )
----

query II rowsort
SELECT - ( + col0 ), ( col2 ) FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT - 22 * - 17 * - col2 * + col2 AS col0 FROM tab2
----
-1258136
-197846
-598400

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + col0 + + - ( - 7 ) + - 67 * - col0, - 31 + - - col2, - - 11, - + 3 * + + 35 - + ( 95 ) + col0 * + 29 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 > + + col0 / - ( - - col2 ) + col2 - + col2 + col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6133
SELECT DISTINCT + 52 + CAST( col0 AS DECIMAL ) * + 80 + + - 79 FROM tab1 WHERE - + 3 < NULL
----

skipif mysql # not compatible
query I rowsort label-6133
SELECT DISTINCT + 52 + CAST ( col0 AS REAL ) * + 80 + + - 79 FROM tab1 WHERE - + 3 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 14 + + 44 col1 FROM tab1
----
58
58
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( col2 ) col0 FROM tab0 WHERE - col1 IS NOT NULL
----
-10
-47
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-6136
SELECT + 94 DIV - col0 + col2 AS col1 FROM tab0 AS cor0
----
41
9
99

skipif mysql # not compatible
query I rowsort label-6136
SELECT + 94 / - col0 + col2 AS col1 FROM tab0 AS cor0
----
41
9
99

query I rowsort
SELECT DISTINCT - col2 FROM tab1 cor0 WHERE NOT 41 IS NOT NULL
----

query II rowsort
SELECT ALL + col1 AS col0, + ( ( + 20 ) ) FROM tab2 AS cor0
----
51
20
67
20
77
20

query I rowsort
SELECT DISTINCT col0 + - - col2 * + col2 FROM tab0
----
187
2224
9898

query I rowsort
SELECT ALL + - 44 - - - 60 AS col2 FROM tab2 AS cor0
----
-104
-104
-104

query I rowsort
SELECT DISTINCT 49 - - 49 FROM tab1 AS cor0
----
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 69 + + + col2 * - col1 col0 FROM tab2 AS cor0
----
-1104
-3011
-3817

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6143
SELECT ALL + CAST( NULL AS SIGNED ) - - - 94 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6143
SELECT ALL + CAST ( NULL AS INTEGER ) - - - 94 * col2 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( + col1, col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6145
SELECT ALL - col2 DIV - ( - + col0 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6145
SELECT ALL - col2 / - ( - + col0 ) FROM tab1 AS cor0
----
-1
0
0

query II rowsort
SELECT DISTINCT + 56 * - 53 + + col2 AS col2, + 86 AS col0 FROM tab1 AS cor0
----
-2872
86
-2900
86
-2909
86

onlyif mysql # aggregate syntax: 
query I rowsort label-6147
SELECT - MAX( ALL - 44 ) AS col1 FROM tab0 WHERE NOT + col2 - col0 IS NULL
----
44

skipif mysql # not compatible
query I rowsort label-6147
SELECT - MAX ( ALL - 44 ) AS col1 FROM tab0 WHERE NOT + col2 - col0 IS NULL
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT ALL MIN( DISTINCT 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-6148
SELECT ALL MIN ( DISTINCT 90 ) FROM tab0
----
90

query I rowsort
SELECT ALL 33 * - col0 FROM tab0
----
-2871
-3201
-495

query I rowsort
SELECT + 82 FROM tab2 WHERE NOT + + ( - 44 ) + - 5 IS NULL
----
82
82
82

query I rowsort
SELECT - col2 FROM tab0 WHERE NOT - + ( 15 ) / - ( + col2 ) + + - col1 * - + col1 IS NULL
----
-10
-47
-99

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + 54 * - col1 + + 5 BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6153
SELECT 37, + COUNT( * ) AS col1 FROM tab2 AS cor0
----
37
3

skipif mysql # not compatible
query II rowsort label-6153
SELECT 37, + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
37
3

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + 25 * + 3 IS NULL
----
10
47
99

query I rowsort
SELECT ALL + 28 + + 53 AS col2 FROM tab1
----
81
81
81

query I rowsort
SELECT DISTINCT - 33 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 12 AS col1 FROM tab0 WHERE NULL < 45
----

query I rowsort
SELECT DISTINCT 63 + 79 AS col1 FROM tab1
----
142

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL COUNT( * ) + 15 FROM tab2 WHERE NOT + col1 BETWEEN - col0 AND - col2 + + col1
----
18

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL COUNT ( * ) + 15 FROM tab2 WHERE NOT + col1 BETWEEN - col0 AND - col2 + + col1
----
18

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6160
SELECT + CAST( - COUNT( * ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6160
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT + 43 + - col2 FROM tab2
----
-15
20
3

query I rowsort
SELECT + col2 + + 55 * + col1 FROM tab0
----
1165
154
4502

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6163
SELECT ALL * FROM tab0 WHERE NOT - 43 + + CAST( 18 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6163
SELECT ALL * FROM tab0 WHERE NOT - 43 + + CAST ( 18 AS REAL ) IS NOT NULL
----

query I rowsort
SELECT 98 + 28 AS col0 FROM tab1
----
126
126
126

query III rowsort
SELECT * FROM tab2 WHERE NOT - 62 <= ( col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - 5 col0 FROM tab2
----
-20
-20
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL <> ( - col1 * col1 )
----

query I rowsort
SELECT ALL - 60 * 12 + + 58 AS col0 FROM tab2 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT + 75 * 17 AS col1 FROM tab2
----
1275
1275
1275

query I rowsort
SELECT ALL col2 FROM tab1 WHERE 4 >= ( col1 * + 76 )
----

query I rowsort
SELECT ALL + 15 + + col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col2 + 47 FROM tab0
----
-52
0
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6173
SELECT ALL ( - COUNT( * ) ) * + 16 AS col2 FROM tab2
----
-48

skipif mysql # not compatible
query I rowsort label-6173
SELECT ALL ( - COUNT ( * ) ) * + 16 AS col2 FROM tab2
----
-48

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * - 28 + + col2 / col1 = ( - col1 * + 8 )
----

query I rowsort
SELECT col2 * + ( - col2 ) FROM tab2 WHERE + col0 * col1 IN ( - 59 )
----

query I rowsort
SELECT + col2 * + 62 AS col1 FROM tab0 AS cor0
----
2914
6138
620

query I rowsort
SELECT + col0 * col2 FROM tab0 cor0 WHERE + col0 NOT BETWEEN NULL AND - 41 / 11
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col2 FROM tab2 AS cor0 WHERE NULL BETWEEN col2 * - 57 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6179
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) <> - col2 * + 16
----

skipif mysql # not compatible
query I rowsort label-6179
SELECT DISTINCT - col2 FROM tab0 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) <> - col2 * + 16
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE ( - col0 - 44 ) BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE 94 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6182
SELECT + 43 - COUNT( * ) FROM tab2
----
40

skipif mysql # not compatible
query I rowsort label-6182
SELECT + 43 - COUNT ( * ) FROM tab2
----
40

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT DISTINCT MAX( DISTINCT + 65 ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-6183
SELECT DISTINCT MAX ( DISTINCT + 65 ) FROM tab2
----
65

query IIIIII rowsort
SELECT ALL * FROM ( tab0 cor0 CROSS JOIN tab0 )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-6185
SELECT ALL COUNT( * ) * 71 - COUNT( * ) FROM tab1
----
210

skipif mysql # not compatible
query I rowsort label-6185
SELECT ALL COUNT ( * ) * 71 - COUNT ( * ) FROM tab1
----
210

query I rowsort
SELECT DISTINCT + ( + col2 ) * + col2 - col2 AS col2 FROM tab0 AS cor0
----
2162
90
9702

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6187
SELECT col0 / - 78 + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6187
SELECT col0 / - 78 + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 62 - 93 FROM tab2 cor0
----
-155
-155
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-6189
SELECT DISTINCT - 12 + COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6189
SELECT DISTINCT - 12 + COUNT ( * ) FROM tab0 cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6190
SELECT DISTINCT + col1 - col2 / CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6190
SELECT DISTINCT + col1 - col2 / CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 55 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( col0 + col1 ) AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6192
SELECT ALL + + COUNT( DISTINCT col0 ) * ( - SUM( + col0 ) - + COUNT( * ) ) FROM tab2 AS cor0
----
-564

skipif mysql # not compatible
query I rowsort label-6192
SELECT ALL + + COUNT ( DISTINCT col0 ) * ( - SUM ( + col0 ) - + COUNT ( * ) ) FROM tab2 AS cor0
----
-564

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6193
SELECT DISTINCT - + SUM( col0 ) * CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6193
SELECT DISTINCT - + SUM ( col0 ) * CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 44 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6195
SELECT DISTINCT + SUM( ALL col2 ) AS col2 FROM tab1 cor0
----
223

skipif mysql # not compatible
query I rowsort label-6195
SELECT DISTINCT + SUM ( ALL col2 ) AS col2 FROM tab1 cor0
----
223

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 7 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6197
SELECT + 8 * COUNT( - col0 * - 87 ) AS col2 FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-6197
SELECT + 8 * COUNT ( - col0 * - 87 ) AS col2 FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-6198
SELECT 22 * COUNT( * ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6198
SELECT 22 * COUNT ( * ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT DISTINCT - 20 * 91 AS col1 FROM tab2
----
-1820

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6200
SELECT CAST( NULL AS SIGNED ) * CAST( NULL AS SIGNED ) * - 67 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6200
SELECT CAST ( NULL AS INTEGER ) * CAST ( NULL AS INTEGER ) * - 67 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6201
SELECT - COUNT( * ) DIV 2 * - COUNT( col1 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6201
SELECT - COUNT ( * ) / 2 * - COUNT ( col1 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - col0 FROM tab1 WHERE NOT ( NULL ) IN ( 39 )
----

query I rowsort
SELECT + ( + 19 ) FROM tab1
----
19
19
19

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 <> ( - col0 )
----

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE ( - 54 ) IS NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 25 > NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( 52 ) BETWEEN NULL AND 47
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT IN ( + 33 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6209
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT - CAST( 29 AS DECIMAL ) = ( - col0 - col1 )
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6209
SELECT + col0 col2 FROM tab2 AS cor0 WHERE NOT - CAST ( 29 AS REAL ) = ( - col0 - col1 )
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6210
SELECT col0 * - ( CAST( + col2 AS SIGNED ) * - 58 ) - + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-6210
SELECT col0 * - ( CAST ( + col2 AS INTEGER ) * - 58 ) - + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 23 * col0 NOT IN ( 80 * col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * - 1 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6213
SELECT ALL + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 85 NOT BETWEEN + - 26 + col2 AND - 5 * + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN + - 37 AND col2
----

query I rowsort
SELECT ALL + col2 * 53 FROM tab2 AS cor0
----
1219
2120
3074

query II rowsort
SELECT + + col0 AS col2, col0 * + col1 FROM tab0 AS cor0
----
15
1215
87
1827
97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT + COUNT( + + col2 ) * - + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT + COUNT ( + + col2 ) * - + COUNT ( * ) FROM tab0 AS cor0
----
-9

query II rowsort
SELECT DISTINCT + col1, + 0 AS col0 FROM tab2 AS cor0
----
51
0
67
0
77
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN col0 AND ( + col2 * 27 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6221
SELECT + col0 DIV + col2 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0
1
1

skipif mysql # not compatible
query I rowsort label-6221
SELECT + col0 / + col2 AS col2 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
0
1
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col0 ) * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 3 AS col0, 31 * - col2 AS col1 FROM tab1 AS cor0
----
3
-1829
3
-2108
3
-2976

query II rowsort
SELECT ALL + col1 AS col0, ( ( col1 ) ) FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT ALL + ( - col0 ) + - - col1 * - 26 AS col0 FROM tab1
----
-1313
-215
-415

onlyif mysql # aggregate syntax: 
query I rowsort label-6226
SELECT DISTINCT COUNT( * ) * - COUNT( DISTINCT - - col2 ) + COUNT( * ) FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6226
SELECT DISTINCT COUNT ( * ) * - COUNT ( DISTINCT - - col2 ) + COUNT ( * ) FROM tab0
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6227
SELECT + COUNT( ALL + - ( 61 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6227
SELECT + COUNT ( ALL + - ( 61 ) ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 92 + + + 92 * + col1 AS col2 FROM tab1
----
1196
368
4232

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 68 ) IS NOT NULL AND NOT NULL NOT BETWEEN ( 16 * col0 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6230
SELECT DISTINCT - - ( + CAST( - - 26 AS SIGNED ) ) DIV + col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-6230
SELECT DISTINCT - - ( + CAST ( - - 26 AS INTEGER ) ) / + col2 FROM tab2 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT - + 35 + - - CAST( NULL AS SIGNED ) * + + col2 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6231
SELECT - + 35 + - - CAST ( NULL AS INTEGER ) * + + col2 * + col0 + col1 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( + col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6233
SELECT + + COUNT( * ) AS col1 FROM tab2 WHERE NULL <> - + col1
----
0

skipif mysql # not compatible
query I rowsort label-6233
SELECT + + COUNT ( * ) AS col1 FROM tab2 WHERE NULL <> - + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6234
SELECT ALL SUM( ALL + col1 ) AS col1 FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-6234
SELECT ALL SUM ( ALL + col1 ) AS col1 FROM tab1
----
66

query I rowsort
SELECT DISTINCT + 81 + - + ( + - col2 ) + - + col0 AS col1 FROM tab0
----
113
4
83

query I rowsort
SELECT DISTINCT + - 51 * - 12 FROM tab1 AS cor0
----
612

query I rowsort
SELECT col1 + col0 AS col0 FROM tab1 cor0 WHERE NOT + col0 NOT IN ( col0 )
----
138
65
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6238
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 / + 72 AND - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6238
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN - col0 / + 72 AND - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + ( + - 61 ) AS col2 FROM tab2 AS cor0
----
61

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 13 * - 2 + col1 col1 FROM tab0 AS cor0 WHERE NOT + 97 * + col1 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 <= - + 19
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6242
SELECT CAST( NULL AS SIGNED ) / - ( col0 ) * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - col1 )
----

skipif mysql # not compatible
query I rowsort label-6242
SELECT CAST ( NULL AS INTEGER ) / - ( col0 ) * col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2, - col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 IN ( + 10 + col1 * - - 33 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - ( - col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6245
SELECT + COUNT( - 57 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6245
SELECT + COUNT ( - 57 ) FROM tab0 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + - 56 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 67 * - AVG ( col1 ) FROM tab2 WHERE NOT ( col1 IS NOT NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + + 95 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT ALL + MIN( ALL - 32 ) FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-6249
SELECT ALL + MIN ( ALL - 32 ) FROM tab1
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6250
SELECT COUNT( * ) * - COUNT( * ) col1 FROM tab0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6250
SELECT COUNT ( * ) * - COUNT ( * ) col1 FROM tab0
----
-9

query I rowsort
SELECT ALL 50 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

query II rowsort
SELECT DISTINCT col2 * 58, - 75 AS col1 FROM tab1
----
3422
-75
3944
-75
5568
-75

query I rowsort
SELECT ALL 82 + - col0 AS col0 FROM tab1 AS cor0
----
-3
-9
31

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 * ( - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 6 + 18 FROM tab2 AS cor0
----
24
24
24

query I rowsort
SELECT + - 11 * - 7 * + - col1 + col1 + - + 51 FROM tab2 AS cor0
----
-3927
-5143
-5903

onlyif mysql # aggregate syntax: 
query I rowsort label-6257
SELECT - COUNT( * ) + + 86 AS col0 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-6257
SELECT - COUNT ( * ) + + 86 AS col0 FROM tab0
----
83

onlyif mysql # aggregate syntax: 
query I rowsort label-6258
SELECT ALL COUNT( * ) + + 64 col2 FROM tab1
----
67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6258
SELECT ALL COUNT ( * ) + + 64 col2 FROM tab1
----
67

onlyif mysql # DIV for integer division: 
query I rowsort label-6259
SELECT ALL ( - + col2 ) * + + col1 + - col2 DIV - col1 AS col1 FROM tab0
----
-210
-3807
0

skipif mysql # not compatible
query I rowsort label-6259
SELECT ALL ( - + col2 ) * + + col1 + - col2 / - col1 AS col1 FROM tab0
----
-210
-3807
0

query I rowsort
SELECT DISTINCT 44 + 81 FROM tab0
----
125

query I rowsort
SELECT - ( - col1 ) * + col0 - + col1 + - + col0 FROM tab1
----
335
4139
649

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 12 AS col0, + 84 col0 FROM tab1
----
12
84
12
84
12
84

onlyif mysql # DIV for integer division: 
query I rowsort label-6263
SELECT + col0 DIV - col0 + - col1 col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-52
-68
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6263
SELECT + col0 / - col0 + - col1 col2 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-52
-68
-78

query I rowsort
SELECT + AVG ( + col0 ) FROM tab1 cor0 WHERE - 5 IN ( - col0 )
----
NULL

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE NOT - + 37 + - - col2 IS NULL AND 25 < - + col0
----

query II rowsort
SELECT DISTINCT 4, ( - col0 ) AS col1 FROM tab2 AS cor0
----
4
-46
4
-64
4
-75

query I rowsort
SELECT DISTINCT - 83 - col0 - + 58 FROM tab2 AS cor0
----
-187
-205
-216

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6268
SELECT ALL * FROM tab2 WHERE NOT ( ( NULL ) NOT IN ( + col2 + - - ( + col0 ), - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query III rowsort label-6268
SELECT ALL * FROM tab2 WHERE NOT ( ( NULL ) NOT IN ( + col2 + - - ( + col0 ), - CAST ( NULL AS INTEGER ) ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 11 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

query I rowsort
SELECT - 62 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f0e93f6ff5fc3cf50a14e276206dad5c

query I rowsort
SELECT + 66 * 41 AS col1 FROM tab2, tab0 AS cor0
----
9 values hashing to 59c38d2245d303c974ff7a9a50d98c62

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6272
SELECT DISTINCT COUNT( * ) DIV + COUNT( * ) + - COUNT( * ) * - MAX( DISTINCT 34 ) + - - 93 AS col1 FROM tab0 AS cor0
----
196

skipif mysql # not compatible
query I rowsort label-6272
SELECT DISTINCT COUNT ( * ) / + COUNT ( * ) + - COUNT ( * ) * - MAX ( DISTINCT 34 ) + - - 93 AS col1 FROM tab0 AS cor0
----
196

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-6273
SELECT - col0 / CAST( NULL AS SIGNED ) AS col1, CAST( + CAST( NULL AS DECIMAL ) AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-6273
SELECT - col0 / CAST ( NULL AS INTEGER ) AS col1, CAST ( + CAST ( NULL AS REAL ) AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6274
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= ( + CAST( - + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6274
SELECT ALL * FROM tab1 AS cor0 WHERE NULL <= ( + CAST ( - + col0 AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 29 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - - ( + col2 ) AS col1, + 27 FROM tab2 AS cor0
----
23
27
40
27
58
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6277
SELECT - CAST( col1 AS SIGNED ) col0 FROM tab1
----
-14
-47
-5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6277
SELECT - CAST ( col1 AS INTEGER ) col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-6278
SELECT DISTINCT + 13 col2, COUNT( * ) AS col0 FROM tab2
----
13
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6278
SELECT DISTINCT + 13 col2, COUNT ( * ) AS col0 FROM tab2
----
13
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6280
SELECT 43 - MAX( ALL - 87 + col1 ) FROM tab2 WHERE col1 * col1 * - CAST( - col2 AS SIGNED ) * + - col0 * + - 77 * - col0 IS NOT NULL AND NOT + col0 BETWEEN 35 * - col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6280
SELECT 43 - MAX ( ALL - 87 + col1 ) FROM tab2 WHERE col1 * col1 * - CAST ( - col2 AS INTEGER ) * + - col0 * + - 77 * - col0 IS NOT NULL AND NOT + col0 BETWEEN 35 * - col2 AND NULL
----
NULL

query I rowsort
SELECT ( + 47 ) AS col0 FROM tab2
----
47
47
47

query I rowsort
SELECT - col1 * - 47 FROM tab2
----
2397
3149
3619

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 NOT IN ( - + col1 * + col0 * 7 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6284
SELECT CAST( + col1 AS SIGNED ) + - - 97 AS col1 FROM tab0 AS cor0
----
118
178
98

skipif mysql # not compatible
query I rowsort label-6284
SELECT CAST ( + col1 AS INTEGER ) + - - 97 AS col1 FROM tab0 AS cor0
----
118
178
98

onlyif mysql # DIV for integer division: 
query I rowsort label-6285
SELECT + col2 DIV + + col0 + + col1 AS col0 FROM tab1 cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-6285
SELECT + col2 / + + col0 + + col1 AS col0 FROM tab1 cor0
----
15
47
5

query I rowsort
SELECT col1 + + col0 * + 3 + col0 AS col2 FROM tab1
----
218
345
411

query I rowsort
SELECT - - ( + 51 ) FROM tab2 AS cor0
----
51
51
51

query I rowsort
SELECT ALL 27 * - 53 + col0 AS col2 FROM tab2 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT + MIN( + 1 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6289
SELECT + MIN ( + 1 ) col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( 27 ) AS col2 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT + 71 * + col2 * + 56 AS col2 FROM tab1 AS cor0
----
234584
270368
381696

query I rowsort
SELECT DISTINCT - 50 * - 79 FROM tab1
----
3950

query I rowsort
SELECT ALL col0 FROM tab0 WHERE NOT + col1 = ( col0 / - 62 )
----
15
87
97

query I rowsort
SELECT 2 - + ( + - col1 ) + + col0 * - col2 * col1 AS col2 FROM tab0
----
-18247
-57022
-9600

query I rowsort
SELECT col2 + 66 - 80 FROM tab0
----
-4
33
85

onlyif mysql # aggregate syntax: 
query I rowsort label-6296
SELECT DISTINCT ( - + COUNT( * ) ) + - + 29 col1 FROM tab0
----
-32

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6296
SELECT DISTINCT ( - + COUNT ( * ) ) + - + 29 col1 FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-6297
SELECT ALL 29 + + COUNT( * ) AS col0 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-6297
SELECT ALL 29 + + COUNT ( * ) AS col0 FROM tab0
----
32

query I rowsort
SELECT + col1 * - 63 + col1 AS col1 FROM tab2 AS cor0
----
-3162
-4154
-4774

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT + MAX( DISTINCT - - 38 ) FROM tab0 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-6299
SELECT + MAX ( DISTINCT - - 38 ) FROM tab0 AS cor0
----
38

query I rowsort
SELECT ALL + 27 * col1 * - - col1 FROM tab1
----
5292
59643
675

onlyif mysql # DIV for integer division: 
query I rowsort label-6301
SELECT ALL col0 DIV 11 col0 FROM tab0
----
1
7
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6301
SELECT ALL col0 / 11 col0 FROM tab0
----
1
7
8

query I rowsort
SELECT 47 AS col1 FROM tab2 WHERE NOT + 74 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6303
SELECT ALL * FROM tab0 WHERE col0 / CAST( - - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6303
SELECT ALL * FROM tab0 WHERE col0 / CAST ( - - col1 AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6304
SELECT - + col0 DIV + col1 AS col0 FROM tab2 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6304
SELECT - + col0 / + col1 AS col0 FROM tab2 cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6305
SELECT - CAST( + + 38 AS SIGNED ) FROM tab1 AS cor0
----
-38
-38
-38

skipif mysql # not compatible
query I rowsort label-6305
SELECT - CAST ( + + 38 AS INTEGER ) FROM tab1 AS cor0
----
-38
-38
-38

query II rowsort
SELECT + col1, + col2 AS col0 FROM tab1 AS cor0
----
14
96
47
68
5
59

query II rowsort
SELECT - + col1 AS col1, + col2 FROM tab2 cor0
----
-51
23
-67
58
-77
40

query II rowsort
SELECT - 47, + col1 FROM tab0 AS cor0
----
-47
1
-47
21
-47
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - 48 >= col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6310
SELECT + COUNT( ALL - - col1 ) AS col0 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6310
SELECT + COUNT ( ALL - - col1 ) AS col0 FROM tab2 cor0
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 80
----

query I rowsort
SELECT DISTINCT - + col1 + - 89 FROM tab0 AS cor0 WHERE col1 > NULL
----

query II rowsort
SELECT + col1, - col0 * - - col1 + col0 AS col0 FROM tab0 cor0
----
1
0
21
-1740
81
-1200

onlyif mysql # DIV for integer division: 
query II rowsort label-6314
SELECT DISTINCT 48 DIV + 28, col0 * - col2 * - 91 AS col2 FROM tab1
----
1
445536
1
456365
1
563108

skipif mysql # not compatible
query II rowsort label-6314
SELECT DISTINCT 48 / + 28, col0 * - col2 * - 91 AS col2 FROM tab1
----
1
445536
1
456365
1
563108

query I rowsort
SELECT ( col2 ) * - - 97 + - 53 + - 5 AS col2 FROM tab2
----
2173
3822
5568

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6316
SELECT * FROM tab0 WHERE NOT - - CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-6316
SELECT * FROM tab0 WHERE NOT - - CAST ( NULL AS REAL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - + 11 ) AS col1, + col2 col1 FROM tab2
----
-11
23
-11
40
-11
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6318
SELECT - col1 DIV 27 FROM tab2 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-6318
SELECT - col1 / 27 FROM tab2 AS cor0
----
-1
-2
-2

query I rowsort
SELECT ALL + 3 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 3cf1e377a943589897b8d431a834f1ba

query I rowsort
SELECT DISTINCT + + ( + col0 ) + 39 FROM tab2 AS cor0
----
103
114
85

query I rowsort
SELECT - col1 FROM tab2 cor0 WHERE NULL IS NULL
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 15 >= + + 64 * + 31 + + 99 * - + col1
----
15
81
47
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-6323
SELECT ALL MIN( DISTINCT 15 ) * ( - + 75 ) - ( - 58 ) FROM tab2 AS cor0
----
-1067

skipif mysql # not compatible
query I rowsort label-6323
SELECT ALL MIN ( DISTINCT 15 ) * ( - + 75 ) - ( - 58 ) FROM tab2 AS cor0
----
-1067

query I rowsort
SELECT DISTINCT + 12 + - col1 * - col0 * + col0 AS col2 FROM tab2 AS cor0
----
107928
315404
376887

query I rowsort
SELECT ALL - 93 - + 87 AS col1 FROM tab2 AS cor0
----
-180
-180
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col1, - col0 col2 FROM tab0 AS cor0
----
1
-97
21
-87
81
-15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 68 - - 4 col1 FROM tab1 AS cor0
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-6328
SELECT DISTINCT - 3 * + - COUNT( * ) col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6328
SELECT DISTINCT - 3 * + - COUNT ( * ) col2 FROM tab0 AS cor0
----
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 1 BETWEEN NULL AND - col0 + + col0 + - + col0
----

query I rowsort
SELECT ALL 37 * + - col0 + col2 FROM tab0 cor0
----
-3209
-3490
-508

query I rowsort
SELECT - + 27 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) <= col2 * col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 IN ( - - col0 * - - col2 + 26, col1 * + col0, + col1 * - - 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6333
SELECT CAST( col1 AS SIGNED ) DIV + 67 AS col1 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6333
SELECT CAST ( col1 AS INTEGER ) / + 67 AS col1 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6334
SELECT SUM( - ( - 80 ) ) * + - 98 AS col1 FROM tab1
----
-23520

skipif mysql # not compatible
query I rowsort label-6334
SELECT SUM ( - ( - 80 ) ) * + - 98 AS col1 FROM tab1
----
-23520

query I rowsort
SELECT DISTINCT 39 * col1 * - + ( - - col2 ) AS col0 FROM tab1
----
-11505
-124644
-52416

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6336
SELECT 78 * col0 * col0 * col2 AS col1, CAST( + - 91 AS SIGNED ) AS col1 FROM tab2
----
12779520
-91
25447500
-91
3796104
-91

skipif mysql # not compatible
query II rowsort label-6336
SELECT 78 * col0 * col0 * col2 AS col1, CAST ( + - 91 AS INTEGER ) AS col1 FROM tab2
----
12779520
-91
25447500
-91
3796104
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6337
SELECT ALL - CAST( NULL AS SIGNED ) + - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6337
SELECT ALL - CAST ( NULL AS INTEGER ) + - + col0 AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT col1 * - - col1 * col0 FROM tab1
----
201019
2125
9996

query III rowsort
SELECT - col2 AS col1, - 10 AS col0, + col2 FROM tab0
----
9 values hashing to a50eee58acbbe16e17cde3df6c968ea9

onlyif mysql # DIV for integer division: 
query I rowsort label-6340
SELECT col2 DIV - + col1 - col0 AS col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-6340
SELECT col2 / - + col1 - col0 AS col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6341
SELECT + + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = col2
----
0

skipif mysql # not compatible
query I rowsort label-6341
SELECT + + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL = col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6342
SELECT ALL - MAX( ALL + + col2 ) * 70 FROM tab1 AS cor0
----
-6720

skipif mysql # not compatible
query I rowsort label-6342
SELECT ALL - MAX ( ALL + + col2 ) * 70 FROM tab1 AS cor0
----
-6720

query II rowsort
SELECT col1, - 52 - - + 25 AS col1 FROM tab1 AS cor0
----
14
-27
47
-27
5
-27

onlyif mysql # aggregate syntax: 
query II rowsort label-6344
SELECT - COUNT( * ) AS col2, + MIN( DISTINCT + ( + col2 ) ) FROM tab0 AS cor0
----
-3
10

skipif mysql # not compatible
query II rowsort label-6344
SELECT - COUNT ( * ) AS col2, + MIN ( DISTINCT + ( + col2 ) ) FROM tab0 AS cor0
----
-3
10

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 94 IS NULL
----

query I rowsort
SELECT ALL + - 38 * 37 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 7aba87dfb2f751431ed509008109d9f0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 20 <> - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6348
SELECT DISTINCT - 62 * + COUNT( * ) * 42 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-23436

skipif mysql # not compatible
query I rowsort label-6348
SELECT DISTINCT - 62 * + COUNT ( * ) * 42 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-23436

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6349
SELECT ALL - COUNT( DISTINCT 91 ) + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6349
SELECT ALL - COUNT ( DISTINCT 91 ) + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - - 28 * + - col1, + col0 + - col0 AS col1 FROM tab0 AS cor0
----
-2268
0
-28
0
-588
0

query I rowsort
SELECT ALL - + col2 * - - col2 - col1 + col0 * - col1 + + - col2 * col1 FROM tab2 AS cor0
----
-12342
-4099
-9685

query I rowsort
SELECT DISTINCT + + 13 FROM tab1 AS cor0 WHERE 75 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 * + - col1 * col0 col1 FROM tab1 AS cor0
----
25075
290836
68544

query II rowsort
SELECT col2 AS col2, col1 * col2 AS col0 FROM tab0
----
10
210
47
3807
99
99

query I rowsort
SELECT 92 * col0 * - - 10 FROM tab1
----
46920
78200
83720

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL MAX( ALL 98 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL MAX ( ALL 98 ) FROM tab2
----
98

query II rowsort
SELECT ALL 16, col1 AS col1 FROM tab1
----
16
14
16
47
16
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6358
SELECT DISTINCT + col2 + - + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6358
SELECT DISTINCT + col2 + - + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE + col1 <= - 24 + 14 * - + col2 + + + col1
----

query I rowsort
SELECT DISTINCT + - 34 FROM tab0 WHERE NOT NULL <= - + col0
----

query I rowsort
SELECT ALL 91 FROM tab2 WHERE NOT + - ( + 33 ) * - - 14 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT ALL - + COUNT( ALL - col0 ) * 54 FROM tab2 cor0
----
-162

skipif mysql # not compatible
query I rowsort label-6362
SELECT ALL - + COUNT ( ALL - col0 ) * 54 FROM tab2 cor0
----
-162

query II rowsort
SELECT DISTINCT 88 AS col2, - 40 AS col0 FROM tab1 cor0
----
88
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-6364
SELECT ALL - MAX( + - col2 ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6364
SELECT ALL - MAX ( + - col2 ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6365
SELECT - + CAST( NULL AS SIGNED ) + + - 51 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6365
SELECT - + CAST ( NULL AS INTEGER ) + + - 51 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6366
SELECT - - COUNT( * ) + - + COUNT( * ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6366
SELECT - - COUNT ( * ) + - + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 = + - 9
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + 98
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6369
SELECT ALL + col0 - + col0 + + col0 + - col2 DIV col1 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-6369
SELECT ALL + col0 - + col0 + + col0 + - col2 / col1 FROM tab1 AS cor0
----
45
74
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6370
SELECT * FROM tab1 WHERE + CAST( NULL AS SIGNED ) + col2 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6370
SELECT * FROM tab1 WHERE + CAST ( NULL AS INTEGER ) + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT NULL <> + col1 * + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6372
SELECT ALL + SUM( + + col1 ) FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-6372
SELECT ALL + SUM ( + + col1 ) FROM tab1 AS cor0
----
66

query I rowsort
SELECT - + 27 AS col0 FROM tab0 AS cor0
----
-27
-27
-27

query I rowsort
SELECT DISTINCT - 44 FROM tab0, tab0 cor0
----
-44

query I rowsort
SELECT ALL - col2 AS col2 FROM tab1 WHERE NOT NULL <= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6376
SELECT COUNT( * ) DIV + - 63 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6376
SELECT COUNT ( * ) / + - 63 FROM tab2
----
0

query II rowsort
SELECT DISTINCT - col2 * - col0, col1 AS col1 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

onlyif mysql # aggregate syntax: 
query I rowsort label-6378
SELECT ALL + COUNT( * ) * - 2 * + COUNT( * ) FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6378
SELECT ALL + COUNT ( * ) * - 2 * + COUNT ( * ) FROM tab2 AS cor0
----
-18

query I rowsort
SELECT DISTINCT col1 * - - col1 AS col1 FROM tab1 AS cor0
----
196
2209
25

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + col1 IS NOT NULL
----

query I rowsort
SELECT 14 * col2 * + - 31 FROM tab1 AS cor0
----
-25606
-29512
-41664

query II rowsort
SELECT DISTINCT - col2 AS col1, - ( + col2 ) FROM tab0 cor0
----
-10
-10
-47
-47
-99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6383
SELECT DISTINCT - CAST( NULL AS SIGNED ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6383
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + col1 AS col1 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 26 = + + col0 + + + col1
----

query I rowsort
SELECT + 47 AS col0 FROM tab2 WHERE + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6386
SELECT ALL - - COUNT( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6386
SELECT ALL - - COUNT ( * ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
0

query I rowsort
SELECT - col0 * + - col1 + - - col1 AS col1 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-6388
SELECT COUNT( * ) * - SUM( + - 30 ) + SUM( DISTINCT 60 ) FROM tab1
----
330

skipif mysql # not compatible
query I rowsort label-6388
SELECT COUNT ( * ) * - SUM ( + - 30 ) + SUM ( DISTINCT 60 ) FROM tab1
----
330

onlyif mysql # aggregate syntax: 
query I rowsort label-6389
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) AS col1 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-6389
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab2
----
-9

query I rowsort
SELECT ALL - ( + col0 ) + col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6391
SELECT ALL - COUNT( * ) DIV - COUNT( * ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6391
SELECT ALL - COUNT ( * ) / - COUNT ( * ) AS col1 FROM tab2 cor0
----
1

query I rowsort
SELECT DISTINCT - 49 AS col2 FROM tab1 cor0
----
-49

query I rowsort
SELECT DISTINCT col2 * - ( + + 24 ) * col0 + + 21 AS col2 FROM tab0
----
-16899
-20859
-230451

query I rowsort
SELECT DISTINCT - ( + col1 ) + + 85 FROM tab0
----
4
64
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6395
SELECT - CAST( NULL AS SIGNED ) + - col0 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6395
SELECT - CAST ( NULL AS INTEGER ) + - col0 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6396
SELECT - COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-6396
SELECT - COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6397
SELECT + 91 + + col0 * + CAST( - col2 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-4805
-4924
-6097

skipif mysql # not compatible
query I rowsort label-6397
SELECT + 91 + + col0 * + CAST ( - col2 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-4805
-4924
-6097

query I rowsort
SELECT ALL - col1 - + + 0 + + - col0 FROM tab0 cor0
----
-108
-96
-98

query I rowsort
SELECT ALL 97 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6400
SELECT DISTINCT CAST( NULL AS SIGNED ), col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

skipif mysql # not compatible
query II rowsort label-6400
SELECT DISTINCT CAST ( NULL AS INTEGER ), col0 * col2 AS col1 FROM tab2 AS cor0
----
NULL
1058
NULL
2560
NULL
4350

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT + 63 * + 93 + + - col0 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT ALL + 73, col0 FROM tab2 AS cor0
----
73
46
73
64
73
75

query I rowsort
SELECT DISTINCT ( + - col2 ) AS col0 FROM tab1 cor0
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query II rowsort label-6404
SELECT DISTINCT SUM( col1 ), SUM( DISTINCT - col0 ) AS col0 FROM tab1
----
66
-227

skipif mysql # not compatible
query II rowsort label-6404
SELECT DISTINCT SUM ( col1 ), SUM ( DISTINCT - col0 ) AS col0 FROM tab1
----
66
-227

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6405
SELECT + MAX( ALL 3 ) DIV + + 92 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6405
SELECT + MAX ( ALL 3 ) / + + 92 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6406
SELECT DISTINCT 58 * - MIN( - 3 ) AS col0 FROM tab2
----
174

skipif mysql # not compatible
query I rowsort label-6406
SELECT DISTINCT 58 * - MIN ( - 3 ) AS col0 FROM tab2
----
174

onlyif mysql # aggregate syntax: 
query I rowsort label-6407
SELECT DISTINCT + SUM( - + 39 ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-6407
SELECT DISTINCT + SUM ( - + 39 ) FROM tab1
----
-117

query I rowsort
SELECT 89 AS col2 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( - + ( - col2 ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6410
SELECT - CAST( NULL AS SIGNED ) * 34 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6410
SELECT - CAST ( NULL AS INTEGER ) * 34 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - + 76 * + col2 FROM tab1 AS cor0
----
-4484
-5168
-7296

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT + SUM( DISTINCT - 60 ) FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT + SUM ( DISTINCT - 60 ) FROM tab1
----
-60

query II rowsort
SELECT DISTINCT col2 AS col2, + 44 FROM tab1
----
59
44
68
44
96
44

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6414
SELECT ( - col2 ) + + CAST( - 85 AS SIGNED ) + - col2 * ( 78 ) - + + col0 col0, 18 * - + col2 AS col0 FROM tab0
----
-3813
-846
-8003
-1782
-962
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6414
SELECT ( - col2 ) + + CAST ( - 85 AS INTEGER ) + - col2 * ( 78 ) - + + col0 col0, 18 * - + col2 AS col0 FROM tab0
----
-3813
-846
-8003
-1782
-962
-180

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT - col0 IS NULL
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 98 - col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 = - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6418
SELECT * FROM tab0 AS cor0 WHERE NOT 19 BETWEEN - 21 + - CAST( NULL AS SIGNED ) AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6418
SELECT * FROM tab0 AS cor0 WHERE NOT 19 BETWEEN - 21 + - CAST ( NULL AS INTEGER ) AND - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 59 / - 67 * + - col2 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, - col2 FROM tab0 AS cor0
----
-15
-47
-87
-10
-97
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NOT ( NULL IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col0 * col0 + + - 55 FROM tab2 AS cor0
----
-2171
-4151
-5680

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6423
SELECT + CAST( + + 72 AS SIGNED ) col1 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6423
SELECT + CAST ( + + 72 AS INTEGER ) col1 FROM tab1 AS cor0
----
72
72
72

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE ( NOT + col0 IS NULL )
----
-15
-87
-97

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( + + col1 ) <> + 45 * + + col0 + - col1
----

query II rowsort
SELECT DISTINCT + col0 AS col0, 77 AS col2 FROM tab0
----
15
77
87
77
97
77

onlyif mysql # aggregate syntax: 
query I rowsort label-6427
SELECT DISTINCT - COUNT( * ) + + SUM( DISTINCT + col0 ) FROM tab2
----
182

skipif mysql # not compatible
query I rowsort label-6427
SELECT DISTINCT - COUNT ( * ) + + SUM ( DISTINCT + col0 ) FROM tab2
----
182

query I rowsort
SELECT ALL + 73 + + - col0 FROM tab2
----
-2
27
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6429
SELECT + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6429
SELECT + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab2
----
3

query I rowsort
SELECT ( + + 82 ) AS col0 FROM tab2
----
82
82
82

query I rowsort
SELECT ALL + col2 + 60 AS col2 FROM tab1
----
119
128
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 col1 FROM tab1 WHERE - col2 + col2 NOT BETWEEN NULL AND + + col1
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 + + col2 IN ( - 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT ALL - COUNT( - col2 ) AS col2 FROM tab0 WHERE - - col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6434
SELECT ALL - COUNT ( - col2 ) AS col2 FROM tab0 WHERE - - col1 IS NOT NULL
----
-3

query I rowsort
SELECT - 22 + - col1 FROM tab2
----
-73
-89
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6436
SELECT ALL COUNT( * ) + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) + - 6 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6436
SELECT ALL COUNT ( * ) + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) + - 6 FROM tab2 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 23 + - col1 col1 FROM tab2 AS cor0
----
1122
1474
1694

query III rowsort
SELECT ALL + 24, + col2 AS col1, + col0 FROM tab2 AS cor0
----
9 values hashing to 6dfa75ab14fae5d30ceea5fb2e66034b

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 33 + - col1 < col0
----

query I rowsort
SELECT + col2 + + - col1 + - col1 - col0 * col0 - + 8 * - col2 FROM tab2 AS cor0
----
-2011
-3890
-5237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 4 col0 FROM tab2 AS cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query II rowsort label-6442
SELECT DISTINCT + 81 + - 46 AS col2, - 23 * + - COUNT( * ) FROM tab1
----
35
69

skipif mysql # not compatible
query II rowsort label-6442
SELECT DISTINCT + 81 + - 46 AS col2, - 23 * + - COUNT ( * ) FROM tab1
----
35
69

query I rowsort
SELECT - col0 - + + col1 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT ALL + COUNT( - - col0 ) - - 38 + + 83 + 34 FROM tab2 AS cor0
----
158

skipif mysql # not compatible
query I rowsort label-6444
SELECT ALL + COUNT ( - - col0 ) - - 38 + + 83 + 34 FROM tab2 AS cor0
----
158

query I rowsort
SELECT + + 86 - col2 * - + 30 FROM tab2 AS cor0
----
1286
1826
776

onlyif mysql # aggregate syntax: 
query I rowsort label-6446
SELECT DISTINCT - COUNT( * ) + MAX( DISTINCT col1 ) col0 FROM tab2 cor0
----
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6446
SELECT DISTINCT - COUNT ( * ) + MAX ( DISTINCT col1 ) col0 FROM tab2 cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-6447
SELECT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 79 * - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6447
SELECT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT 79 * - col1 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6448
SELECT + MIN( - + col0 ) FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-6448
SELECT + MIN ( - + col0 ) FROM tab2 AS cor0
----
-75

query I rowsort
SELECT DISTINCT - + 50 AS col2 FROM tab2 cor0
----
-50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6450
SELECT ALL + COUNT( * ) DIV CAST( 49 AS SIGNED ) AS col2 FROM tab2 WHERE NOT + - col0 + - - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6450
SELECT ALL + COUNT ( * ) / CAST ( 49 AS INTEGER ) AS col2 FROM tab2 WHERE NOT + - col0 + - - col0 IS NULL
----
0

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT NULL >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6452
SELECT col0 * col2 DIV col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-6452
SELECT col0 * col2 / col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6453
SELECT + + MAX( - col2 ) DIV + - MAX( ALL col0 ) + - - COUNT( * ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-6453
SELECT + + MAX ( - col2 ) / + - MAX ( ALL col0 ) + - - COUNT ( * ) FROM tab2 cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6454
SELECT ALL + - CAST( NULL AS SIGNED ), - 42 col1 FROM tab1 AS cor0
----
NULL
-42
NULL
-42
NULL
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6454
SELECT ALL + - CAST ( NULL AS INTEGER ), - 42 col1 FROM tab1 AS cor0
----
NULL
-42
NULL
-42
NULL
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-6455
SELECT ALL MIN( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6455
SELECT ALL MIN ( DISTINCT col0 ) AS col1 FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query I rowsort label-6456
SELECT + COUNT( * ) FROM tab2 AS cor0 WHERE NOT 6 * col0 - - - ( + 53 ) > - col0
----
0

skipif mysql # not compatible
query I rowsort label-6456
SELECT + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT 6 * col0 - - - ( + 53 ) > - col0
----
0

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - 54 > - + 51
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6459
SELECT ALL + MIN( ALL 31 ) FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-6459
SELECT ALL + MIN ( ALL 31 ) FROM tab2 AS cor0
----
31

query II rowsort
SELECT + col1, col2 * + 43 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + + col2 * - + col0 AS col0 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT - + col0 - col0 NOT BETWEEN NULL AND + col1 AND + col2 * - - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) = + + col0
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 46 + col2 + + col2 <= col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 35 AS col1 FROM tab0 AS cor0 WHERE col2 + col0 <> - 4
----
35
35
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 * - col2 col2, ( + col2 ) * + col2 + 40 AS col2 FROM tab2 AS cor0
----
1058
569
2560
1640
4350
3404

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6468
SELECT DISTINCT - 76 + + COUNT( * ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-6468
SELECT DISTINCT - 76 + + COUNT ( * ) FROM tab0
----
-73

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6469
SELECT ALL - CAST( NULL AS SIGNED ) + - - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6469
SELECT ALL - CAST ( NULL AS INTEGER ) + - - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6470
SELECT ( - ( - col0 ) ) AS col0, - col1 + + 73 * + col2 + + 76 - - 59 DIV + col0 AS col0 FROM tab2
----
46
1705
64
2919
75
4243

skipif mysql # not compatible
query II rowsort label-6470
SELECT ( - ( - col0 ) ) AS col0, - col1 + + 73 * + col2 + + 76 - - 59 / + col0 AS col0 FROM tab2
----
46
1705
64
2919
75
4243

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6471
SELECT ALL + CAST( NULL AS SIGNED ) + - 92 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6471
SELECT ALL + CAST ( NULL AS INTEGER ) + - 92 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6472
SELECT DISTINCT + MIN( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6472
SELECT DISTINCT + MIN ( ALL + + col0 ) AS col0 FROM tab0 AS cor0
----
15

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6473
SELECT * FROM tab2 AS cor0 WHERE NULL <= col0 * + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6473
SELECT * FROM tab2 AS cor0 WHERE NULL <= col0 * + CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col2 * - - col1 + - + col1 FROM tab0 cor0
----
189
3726
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6475
SELECT - COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6475
SELECT - COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + col2 AS col0, col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
23
46
40
64
58
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * col1 col2 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / - - col1 + + + col2 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + - col2 AND col0 + col1
----
51
14
96

query II rowsort
SELECT + + col0 AS col1, 79 AS col1 FROM tab0 AS cor0
----
15
79
87
79
97
79

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + - ( ( col2 ) ) + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT + - col1 AS col1, + col2 * - 66 FROM tab1 AS cor0
----
-14
-6336
-47
-4488
-5
-3894

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 + - 1 <> + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6484
SELECT - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-6484
SELECT - SUM ( ALL col0 ) AS col1 FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6485
SELECT + ( - + 35 ) AS col2, - CAST( NULL AS SIGNED ) * - + AVG ( - col0 ) FROM tab0 cor0
----
-35
NULL

skipif mysql # not compatible
query II rowsort label-6485
SELECT + ( - + 35 ) AS col2, - CAST ( NULL AS INTEGER ) * - + AVG ( - col0 ) FROM tab0 cor0
----
-35
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 42 < NULL
----

query II rowsort
SELECT - 95 AS col2, 81 AS col0 FROM tab0 AS cor0
----
-95
81
-95
81
-95
81

query I rowsort
SELECT DISTINCT 18 * ( - col1 ) * - ( + col0 ) - col1 FROM tab1 AS cor0
----
12838
7645
76939

query I rowsort
SELECT ( + 86 ) FROM tab1
----
86
86
86

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT + 54 * - + col0 <= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6491
SELECT 4 * - COUNT( * ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-6491
SELECT 4 * - COUNT ( * ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT - 43 * - 31 AS col1 FROM tab2
----
1333

onlyif mysql # aggregate syntax: 
query I rowsort label-6493
SELECT DISTINCT - COUNT( ALL + - ( 47 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6493
SELECT DISTINCT - COUNT ( ALL + - ( 47 ) ) FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6494
SELECT ALL 37 DIV - + col0 * col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6494
SELECT ALL 37 / - + col0 * col0 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-6495
SELECT + col2 DIV ( + + col0 ) AS col2 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6495
SELECT + col2 / ( + + col0 ) AS col2 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6496
SELECT DISTINCT - CAST( + - AVG ( - - 37 ) AS SIGNED ) col2 FROM tab1
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6496
SELECT DISTINCT - CAST ( + - AVG ( - - 37 ) AS INTEGER ) col2 FROM tab1
----
37

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 63 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT col0 * + col0, col0 AS col1 FROM tab2
----
2116
46
4096
64
5625
75

query I rowsort
SELECT - - ( + col1 ) / - 17 * col0 * + 50 * + col0 + + 61 AS col0 FROM tab1 WHERE NOT + 58 + + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6500
SELECT ALL - COUNT( ALL - - 28 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-6500
SELECT ALL - COUNT ( ALL - - 28 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6501
SELECT DISTINCT - MAX( - 84 ) AS col1 FROM tab0 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-6501
SELECT DISTINCT - MAX ( - 84 ) AS col1 FROM tab0 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6502
SELECT ALL - SUM( 40 ) FROM tab2 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-6502
SELECT ALL - SUM ( 40 ) FROM tab2 AS cor0
----
-120

query I rowsort
SELECT DISTINCT + + col0 * 81 AS col0 FROM tab1 AS cor0
----
4131
6885
7371

query I rowsort
SELECT + col1 * - + col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6505
SELECT * FROM tab2 AS cor0 WHERE + ( - CAST( NULL AS SIGNED ) ) * - ( + - 33 ) + - + 76 - + col2 = - - 37 - + col1
----

skipif mysql # not compatible
query III rowsort label-6505
SELECT * FROM tab2 AS cor0 WHERE + ( - CAST ( NULL AS INTEGER ) ) * - ( + - 33 ) + - + 76 - + col2 = - - 37 - + col1
----

query I rowsort
SELECT col0 * 50 - 56 FROM tab0 AS cor0
----
4294
4794
694

query I rowsort
SELECT + - 78 * - - col1 AS col0 FROM tab2 AS cor0
----
-3978
-5226
-6006

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6508
SELECT * FROM tab2 WHERE NOT - 60 = 54 * col1 AND NOT NULL BETWEEN CAST( NULL AS DECIMAL ) + + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-6508
SELECT * FROM tab2 WHERE NOT - 60 = 54 * col1 AND NOT NULL BETWEEN CAST ( NULL AS REAL ) + + col0 AND NULL
----

query I rowsort
SELECT DISTINCT 71 + + col0 * + 40 * + col2 AS col1 FROM tab0
----
28271
34871
384191

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 + col2, 54 col1 FROM tab1
----
144
54
147
54
159
54

query I rowsort
SELECT ALL col0 + + 19 + - col2 AS col1 FROM tab0
----
-13
17
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6512
SELECT ALL - COUNT( * ) * + 36 + - 80 AS col1 FROM tab2
----
-188

skipif mysql # not compatible
query I rowsort label-6512
SELECT ALL - COUNT ( * ) * + 36 + - 80 AS col1 FROM tab2
----
-188

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NULL NOT IN ( col0 )
----

query I rowsort
SELECT 1 + + 0 + - col0 * - - col2 AS col1 FROM tab2 AS cor0
----
-1057
-2559
-4349

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 81 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6516
SELECT + CAST( col0 AS SIGNED ) * - 38 AS col0 FROM tab1 AS cor0
----
-1938
-3230
-3458

skipif mysql # not compatible
query I rowsort label-6516
SELECT + CAST ( col0 AS INTEGER ) * - 38 AS col0 FROM tab1 AS cor0
----
-1938
-3230
-3458

onlyif mysql # aggregate syntax: 
query I rowsort label-6517
SELECT ALL 69 * ( - 52 ) + - COUNT( * ) FROM tab0 AS cor0
----
-3591

skipif mysql # not compatible
query I rowsort label-6517
SELECT ALL 69 * ( - 52 ) + - COUNT ( * ) FROM tab0 AS cor0
----
-3591

query II rowsort
SELECT ALL + + 46 + col2 AS col1, + col0 FROM tab2 WHERE NOT + col2 <> + col2
----
104
75
69
46
86
64

onlyif mysql # aggregate syntax: 
query I rowsort label-6519
SELECT DISTINCT - + COUNT( * ) * + 6 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-6519
SELECT DISTINCT - + COUNT ( * ) * + 6 FROM tab2 AS cor0
----
-18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6520
SELECT DISTINCT 26 * - - col0 + 25 + - CAST( NULL AS SIGNED ) col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6520
SELECT DISTINCT 26 * - - col0 + 25 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6521
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6521
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6522
SELECT ALL + MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-6522
SELECT ALL + MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6523
SELECT - SUM( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-6523
SELECT - SUM ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 83 * + col0 col2 FROM tab2
----
-3818
-5312
-6225

query II rowsort
SELECT DISTINCT col1, - 35 FROM tab0
----
1
-35
21
-35
81
-35

query II rowsort
SELECT - col2 AS col1, - col2 FROM tab2 WHERE NOT - col1 IS NULL
----
-23
-23
-40
-40
-58
-58

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT - col1 <> col0 * + + 80
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6528
SELECT - 2 * COUNT( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6

skipif mysql # not compatible
query I rowsort label-6528
SELECT - 2 * COUNT ( * ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT ALL COUNT( * ) * - + COUNT( * ) FROM tab0, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-6529
SELECT ALL COUNT ( * ) * - + COUNT ( * ) FROM tab0, tab2 AS cor0
----
-81

query II rowsort
SELECT col0 * + col1, col2 + - col1 + + col1 AS col0 FROM tab1
----
425
59
4277
68
714
96

query I rowsort
SELECT - 14 * - + 88 FROM tab0
----
1232
1232
1232

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 67 IS NOT NULL
----

query II rowsort
SELECT - 60, - col1 AS col1 FROM tab1 AS cor0
----
-60
-14
-60
-47
-60
-5

query II rowsort
SELECT DISTINCT 84 AS col0, col2 + + + col0 AS col0 FROM tab1 WHERE col0 IN ( col0 * + - 3, + 51 * + col0 / + - col1 + + 80 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6535
SELECT ALL - 0 DIV - + 97 + - MIN( ALL - col1 ) + + 5 AS col0 FROM tab0
----
86

skipif mysql # not compatible
query I rowsort label-6535
SELECT ALL - 0 / - + 97 + - MIN ( ALL - col1 ) + + 5 AS col0 FROM tab0
----
86

query I rowsort
SELECT DISTINCT 20 + - + ( + - col1 ) AS col0 FROM tab2
----
71
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6537
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND - CAST( + 16 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6537
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 AND - CAST ( + 16 AS INTEGER )
----

query I rowsort
SELECT 85 + col0 + + - col0 * + - col1 AS col2 FROM tab0 AS cor0
----
1315
1999
279

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6539
SELECT * FROM tab2 AS cor0 WHERE + 75 < - + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-6539
SELECT * FROM tab2 AS cor0 WHERE + 75 < - + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6540
SELECT - MAX( DISTINCT col2 ) + - + MAX( + 94 ) + - 50 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-6540
SELECT - MAX ( DISTINCT col2 ) + - + MAX ( + 94 ) + - 50 FROM tab0 AS cor0
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-6541
SELECT ALL - col2 DIV + col1 * + + 17 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6541
SELECT ALL - col2 / + col1 * + + 17 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6542
SELECT ALL + COUNT( * ) DIV + MAX( ( - col1 ) ) col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6542
SELECT ALL + COUNT ( * ) / + MAX ( ( - col1 ) ) col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col0 BETWEEN - - col2 AND + - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6544
SELECT CAST( NULL AS SIGNED ) * - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6544
SELECT CAST ( NULL AS INTEGER ) * - + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6545
SELECT + MAX( 82 ) FROM tab1 WHERE - - col0 IS NOT NULL
----
82

skipif mysql # not compatible
query I rowsort label-6545
SELECT + MAX ( 82 ) FROM tab1 WHERE - - col0 IS NOT NULL
----
82

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col1 <> ( - ( + + col2 ) ) * ( + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 26 AS col1, + 54 AS col0 FROM tab0
----
26
54
26
54
26
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6548
SELECT CAST( + col0 AS SIGNED ) * + + 23 FROM tab1
----
1173
1955
2093

skipif mysql # not compatible
query I rowsort label-6548
SELECT CAST ( + col0 AS INTEGER ) * + + 23 FROM tab1
----
1173
1955
2093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 99 col1 FROM tab0
----
-99
-99
-99

query I rowsort
SELECT DISTINCT + col1 * + + 34 * + 91 + col1 FROM tab0
----
250695
3095
64995

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6551
SELECT ALL + 36 FROM tab0 WHERE NOT + - CAST( - col2 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-6551
SELECT ALL + 36 FROM tab0 WHERE NOT + - CAST ( - col2 AS INTEGER ) >= NULL
----

query I rowsort
SELECT DISTINCT - col2 - - ( + - 89 ) FROM tab2 AS cor0
----
-112
-129
-147

query I rowsort
SELECT - - 15 - + - col0 + + col0 AS col2 FROM tab1 AS cor0
----
117
185
197

query II rowsort
SELECT ALL + col1 AS col1, + 14 FROM tab1 cor0
----
14
14
47
14
5
14

query I rowsort
SELECT DISTINCT - ( + col1 ) AS col0 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL - + 24 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 797d0f7c145f8ac623924448c714bbcc

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 * - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6558
SELECT DISTINCT CAST( + ( col2 ) AS SIGNED ) AS col0 FROM tab0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6558
SELECT DISTINCT CAST ( + ( col2 ) AS INTEGER ) AS col0 FROM tab0
----
10
47
99

query I rowsort
SELECT - ( + 2 ) AS col2 FROM tab1
----
-2
-2
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6560
SELECT DISTINCT - CAST( NULL AS DECIMAL ) col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6560
SELECT DISTINCT - CAST ( NULL AS REAL ) col0 FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6562
SELECT ALL + col0 * - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - 32 ) NOT BETWEEN ( NULL ) AND + - col0
----

skipif mysql # not compatible
query I rowsort label-6562
SELECT ALL + col0 * - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - 32 ) NOT BETWEEN ( NULL ) AND + - col0
----

query I rowsort
SELECT ALL col1 + - + 54 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6564
SELECT col2 DIV - + col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-6564
SELECT col2 / - + col1 AS col1 FROM tab0 AS cor0
----
-99
0
0

query I rowsort
SELECT DISTINCT - col0 + - 90 FROM tab1
----
-141
-175
-181

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 col0, - col1 AS col2 FROM tab1 WHERE NOT NULL = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col0 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6568
SELECT ALL - COUNT( ALL - col1 ) * 17 AS col1 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-6568
SELECT ALL - COUNT ( ALL - col1 ) * 17 AS col1 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT col2 * - 22 AS col2 FROM tab1 AS cor0
----
-1298
-1496
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-6570
SELECT - + ( COUNT( col1 ) ) FROM tab1 AS cor0 WHERE ( 74 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6570
SELECT - + ( COUNT ( col1 ) ) FROM tab1 AS cor0 WHERE ( 74 IS NULL )
----
0

query I rowsort
SELECT ALL + + col0 * + 27 AS col0 FROM tab0 cor0
----
2349
2619
405

query I rowsort
SELECT + 29 + - + col0 AS col1 FROM tab2 AS cor0
----
-17
-35
-46

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + col1 BETWEEN + - 65 + - + 83 AND - col2 + - col2
----

query I rowsort
SELECT - col0 + - 25 AS col1 FROM tab2
----
-100
-71
-89

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6575
SELECT ALL - CAST( NULL AS SIGNED ) + + - col2 - + ( + + 70 ) + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6575
SELECT ALL - CAST ( NULL AS INTEGER ) + + - col2 - + ( + + 70 ) + + + col2 AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6576
SELECT ALL col1 + - - CAST( + col0 AS SIGNED ) + col1, - 85 AS col2 FROM tab2 AS cor0
----
148
-85
209
-85
218
-85

skipif mysql # not compatible
query II rowsort label-6576
SELECT ALL col1 + - - CAST ( + col0 AS INTEGER ) + col1, - 85 AS col2 FROM tab2 AS cor0
----
148
-85
209
-85
218
-85

query I rowsort
SELECT col1 * + + col1 + + col1 FROM tab1 AS cor0
----
210
2256
30

query I rowsort
SELECT DISTINCT + 73 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6579
SELECT + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * + COUNT( * ) / + SUM( DISTINCT + col1 ) * - COUNT( * ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6579
SELECT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * + COUNT ( * ) / + SUM ( DISTINCT + col1 ) * - COUNT ( * ) FROM tab1 cor0
----
NULL

query I rowsort
SELECT - col2 * + col1 - + + col1 AS col2 FROM tab0 AS cor0
----
-100
-231
-3888

query II rowsort
SELECT col0 * + 44 - + 2 + 57 AS col1, col0 FROM tab0 AS cor0
----
3883
87
4323
97
715
15

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE 83 IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-6583
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - - col0 * + CAST( NULL AS SIGNED ) AND CAST( CAST( + ( 5 ) AS DECIMAL ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6583
SELECT ALL * FROM tab0 WHERE NOT NULL BETWEEN - - col0 * + CAST ( NULL AS INTEGER ) AND CAST ( CAST ( + ( 5 ) AS REAL ) AS INTEGER )
----

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE NOT + ( col1 ) IS NULL
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-6585
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE ( + col1 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6585
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE ( + col1 IS NULL )
----
0

query I rowsort
SELECT ALL - - ( - col2 ) FROM tab0 WHERE NOT - ( - col0 ) IS NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - + col2 FROM tab1 WHERE ( NOT + col0 IS NULL )
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-6588
SELECT COUNT( DISTINCT + - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6588
SELECT COUNT ( DISTINCT + - col2 ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6589
SELECT - MIN( ALL - + 26 ) AS col2 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-6589
SELECT - MIN ( ALL - + 26 ) AS col2 FROM tab1 AS cor0
----
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ( col2 ), + 20 col0, + ( - col0 ) FROM tab1 AS cor0
----
9 values hashing to 1f20d6f242434654b6f3dbc175cb1202

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + - col1 > NULL OR NOT + col2 <> + col2 * - 78 / - col1 + + col1 / + col0 + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-6592
SELECT ALL - CAST( - ( COUNT( * ) ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE + ( - CAST( NULL AS DECIMAL ) ) < - col2 * + 69 + - - col1
----
0

skipif mysql # not compatible
query I rowsort label-6592
SELECT ALL - CAST ( - ( COUNT ( * ) ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE + ( - CAST ( NULL AS REAL ) ) < - col2 * + 69 + - - col1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 61 IN ( col0 / col1 + + col1 * + ( 0 ) )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 30 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6595
SELECT DISTINCT 2 col0, + MAX( DISTINCT - - col2 ) FROM tab0 AS cor0
----
2
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6595
SELECT DISTINCT 2 col0, + MAX ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
2
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6596
SELECT - + 58 DIV - COUNT( * ) AS col0 FROM tab0 cor0
----
19

skipif mysql # not compatible
query I rowsort label-6596
SELECT - + 58 / - COUNT ( * ) AS col0 FROM tab0 cor0
----
19

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= + col1
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6598
SELECT - col2 DIV - CAST( + col0 AS SIGNED ) - - col1 col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6598
SELECT - col2 / - CAST ( + col0 AS INTEGER ) - - col1 col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + + col1 AS col2 FROM tab0 AS cor0 WHERE col0 * + col1 BETWEEN - col1 AND - col2
----

query I rowsort
SELECT ALL + col0 + - + 96 FROM tab2
----
-21
-32
-50

query I rowsort
SELECT 73 + col0 + + - col2 * - 67 AS col0 FROM tab0
----
3237
6803
830

query I rowsort
SELECT + ( + 53 ) + + 89 AS col0 FROM tab1
----
142
142
142

query I rowsort
SELECT ALL col1 + - 66 FROM tab1
----
-19
-52
-61

query I rowsort
SELECT col1 + 8 AS col0 FROM tab0
----
29
89
9

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT + 88 + + + ( + COUNT( * ) ) col1 FROM tab0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6605
SELECT + 88 + + + ( + COUNT ( * ) ) col1 FROM tab0
----
91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6606
SELECT ALL - COUNT( * ) * COUNT( * ) + MIN( - col1 ) + + CAST( NULL AS DECIMAL ) * - 46 AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6606
SELECT ALL - COUNT ( * ) * COUNT ( * ) + MIN ( - col1 ) + + CAST ( NULL AS REAL ) * - 46 AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 + - col1 + col2 AS col1 FROM tab0
----
-19
195
76

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 89 + + col1 + col2 * col0 + - col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6609
SELECT ALL - CAST( NULL AS SIGNED ) * - MIN( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6609
SELECT ALL - CAST ( NULL AS INTEGER ) * - MIN ( ALL + col0 ) AS col2 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT - - ( - col2 ), - 38 * col0 * 90 + + col2 AS col2 FROM tab1 AS cor0
----
-59
-290641
-68
-311152
-96
-174324

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col0 + + + 12 + col0 - - col1 - - - 19 ) <> + col2
----

query I rowsort
SELECT col1 - + 32 AS col1 FROM tab2
----
19
35
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 - col1 + 0 col1, 20 + + - 22 FROM tab1
----
21
-2
54
-2
82
-2

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6614
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( CAST( - 52 AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6614
SELECT DISTINCT * FROM tab0 cor0 CROSS JOIN tab2 AS cor1 WHERE ( CAST ( - 52 AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6615
SELECT + - COUNT( * ) * - 63 + - - MAX( - col0 ) col2 FROM tab1 AS cor0
----
138

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6615
SELECT + - COUNT ( * ) * - 63 + - - MAX ( - col0 ) col2 FROM tab1 AS cor0
----
138

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT + 57 + - SUM( + - col0 ) AS col1 FROM tab2 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-6616
SELECT + 57 + - SUM ( + - col0 ) AS col1 FROM tab2 AS cor0
----
242

onlyif mysql # aggregate syntax: 
query I rowsort label-6617
SELECT ALL COUNT( * ) - - 73 + COUNT( * ) AS col0 FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6617
SELECT ALL COUNT ( * ) - - 73 + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6618
SELECT ALL COUNT( * ) * + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-6618
SELECT ALL COUNT ( * ) * + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-15

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL = 31
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6620
SELECT DISTINCT ( + 57 ) - + COUNT( * ) FROM tab0 cor0
----
54

skipif mysql # not compatible
query I rowsort label-6620
SELECT DISTINCT ( + 57 ) - + COUNT ( * ) FROM tab0 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - COUNT( * ) * COUNT( * ) * 81 col2 FROM tab2
----
-729

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6621
SELECT DISTINCT - COUNT ( * ) * COUNT ( * ) * 81 col2 FROM tab2
----
-729

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 80 col2, 95 * + + col2 FROM tab2
----
80
2185
80
3800
80
5510

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT COUNT( * ) * - + MAX( - - col0 ) col0 FROM tab2
----
-225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6623
SELECT COUNT ( * ) * - + MAX ( - - col0 ) col0 FROM tab2
----
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-6624
SELECT ALL col2 DIV 56 AS col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6624
SELECT ALL col2 / 56 AS col2 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-6625
SELECT DISTINCT - - SUM( DISTINCT + col0 ), - 25 AS col1 FROM tab0 AS cor0
----
199
-25

skipif mysql # not compatible
query II rowsort label-6625
SELECT DISTINCT - - SUM ( DISTINCT + col0 ), - 25 AS col1 FROM tab0 AS cor0
----
199
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( col1, - col0 * - 21 * - col2, 49, - + col0 - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT + MAX( col1 ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT + MAX ( col1 ) FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6628
SELECT DISTINCT + - COUNT( DISTINCT + - CAST( NULL AS DECIMAL ) ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6628
SELECT DISTINCT + - COUNT ( DISTINCT + - CAST ( NULL AS REAL ) ) col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6629
SELECT COUNT( * ) AS col1, + COUNT( * ) FROM tab2 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-6629
SELECT COUNT ( * ) AS col1, + COUNT ( * ) FROM tab2 AS cor0
----
3
3

query I rowsort
SELECT ( + col1 ) * - - col2 * + + col0 AS col0 FROM tab1
----
25075
290836
68544

query I rowsort
SELECT DISTINCT - 72 + + col1 FROM tab1 WHERE NOT NULL < 76 * - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6632
SELECT + COUNT( * ) * - + 74 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-222

skipif mysql # not compatible
query I rowsort label-6632
SELECT + COUNT ( * ) * - + 74 AS col1 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-222

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= + 84
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6634
SELECT ALL + COUNT( DISTINCT + 47 ) AS col2, - 11 + - COUNT( * ) AS col0 FROM tab1 cor0
----
1
-14

skipif mysql # not compatible
query II rowsort label-6634
SELECT ALL + COUNT ( DISTINCT + 47 ) AS col2, - 11 + - COUNT ( * ) AS col0 FROM tab1 cor0
----
1
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-6635
SELECT DISTINCT - 40 - - + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-37

skipif mysql # not compatible
query I rowsort label-6635
SELECT DISTINCT - 40 - - + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-6636
SELECT ALL - - col0 DIV col1 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-74

skipif mysql # not compatible
query I rowsort label-6636
SELECT ALL - - col0 / col1 + - col0 AS col1 FROM tab2 AS cor0
----
-46
-64
-74

query I rowsort
SELECT ALL + col2 * - - 91 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
2093
3640
5278

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 / col0 = - - 49
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6639
SELECT COUNT( * ), 41 AS col1 FROM tab0
----
3
41

skipif mysql # not compatible
query II rowsort label-6639
SELECT COUNT ( * ), 41 AS col1 FROM tab0
----
3
41

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6640
SELECT + 78 + + CAST( NULL AS DECIMAL ) * 83 AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6640
SELECT + 78 + + CAST ( NULL AS REAL ) * 83 AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6641
SELECT + - COUNT( * ) AS col0 FROM tab1 WHERE - - 5 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-6641
SELECT + - COUNT ( * ) AS col0 FROM tab1 WHERE - - 5 IS NOT NULL
----
-3

query I rowsort
SELECT + 5 + 14 AS col0 FROM tab0 AS cor0
----
19
19
19

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab2 cor0 WHERE 41 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-6644
SELECT DISTINCT + COUNT( * ) AS col0, 27 AS col0 FROM tab1 AS cor0
----
3
27

skipif mysql # not compatible
query II rowsort label-6644
SELECT DISTINCT + COUNT ( * ) AS col0, 27 AS col0 FROM tab1 AS cor0
----
3
27

query I rowsort
SELECT 56 + - 40 AS col2 FROM tab1 cor0
----
16
16
16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 0 col1 FROM tab2 WHERE NOT ( NULL ) >= - 15
----

query I rowsort
SELECT DISTINCT col0 / 23 AS col1 FROM tab2 WHERE NOT ( + col2 * - col1 + 54 ) < ( 91 )
----

query I rowsort
SELECT - 39 * - col0 + col0 AS col2 FROM tab1
----
2040
3400
3640

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 54 ) + - col0 BETWEEN + col1 / 14 AND ( 39 + + 69 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6650
SELECT ALL 61 * - MIN( DISTINCT - col2 ) FROM tab1
----
5856

skipif mysql # not compatible
query I rowsort label-6650
SELECT ALL 61 * - MIN ( DISTINCT - col2 ) FROM tab1
----
5856

query I rowsort
SELECT + col0 FROM tab1 WHERE NULL <> + col1
----

query I rowsort
SELECT ALL ( + col2 ) FROM tab1 WHERE NOT ( + col2 ) BETWEEN - col2 AND - col0
----
59
68
96

query III rowsort
SELECT * FROM tab1 WHERE - col1 BETWEEN col1 / col0 + + col0 AND NULL
----

query I rowsort
SELECT ALL - col0 AS col1 FROM tab0 WHERE NOT + col1 * 10 IN ( col1 )
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-6655
SELECT + COUNT( * ) * + 33 + + COUNT( * ) FROM tab1
----
102

skipif mysql # not compatible
query I rowsort label-6655
SELECT + COUNT ( * ) * + 33 + + COUNT ( * ) FROM tab1
----
102

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6656
SELECT * FROM tab2 WHERE NOT NULL <= - col2 - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-6656
SELECT * FROM tab2 WHERE NOT NULL <= - col2 - - CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6657
SELECT ALL - MIN( col1 ) * - COUNT( * ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-6657
SELECT ALL - MIN ( col1 ) * - COUNT ( * ) FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( - col1 ) > - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6659
SELECT ALL MIN( - col1 ) FROM tab1 WHERE NOT + col0 IS NULL
----
-47

skipif mysql # not compatible
query I rowsort label-6659
SELECT ALL MIN ( - col1 ) FROM tab1 WHERE NOT + col0 IS NULL
----
-47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6660
SELECT + COUNT( * ) DIV + 11 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-6660
SELECT + COUNT ( * ) / + 11 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab1 WHERE 79 / - 55 + col0 IS NOT NULL
----
14
47
5

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND col0 + + col2 * 41
----

query III rowsort
SELECT ALL * FROM tab0 WHERE ( NULL ) BETWEEN + col2 AND - 50 * col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 - - col0 col0 FROM tab1
----
123
157
163

query I rowsort
SELECT 55 AS col1 FROM tab1 WHERE + col1 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6666
SELECT ALL + CAST( + 99 AS SIGNED ) DIV COUNT( * ) FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-6666
SELECT ALL + CAST ( + 99 AS INTEGER ) / COUNT ( * ) FROM tab0
----
33

query I rowsort
SELECT DISTINCT ( - 86 ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6668
SELECT ALL + COUNT( * ) DIV + 33 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6668
SELECT ALL + COUNT ( * ) / + 33 FROM tab0
----
0

query I rowsort
SELECT ALL + ( ( col2 ) ) - - col1 FROM tab2
----
117
125
74

onlyif mysql # DIV for integer division: 
query I rowsort label-6670
SELECT 78 DIV - col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-6670
SELECT 78 / - col1 FROM tab2
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6671
SELECT + COUNT( * ) DIV ( COUNT( * ) * 70 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6671
SELECT + COUNT ( * ) / ( COUNT ( * ) * 70 ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6672
SELECT CAST( NULL AS SIGNED ) * - 84 + MAX( ALL + 77 - + 82 ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6672
SELECT CAST ( NULL AS INTEGER ) * - 84 + MAX ( ALL + 77 - + 82 ) col1 FROM tab0
----
NULL

query I rowsort
SELECT + col1 + + ( + col2 ) FROM tab2 WHERE + 99 IS NOT NULL
----
117
125
74

query I rowsort
SELECT - col2 - ( col0 ) * - col2 FROM tab1
----
4800
4956
6120

onlyif mysql # aggregate syntax: 
query I rowsort label-6675
SELECT ALL SUM( ( 62 ) ) AS col2 FROM tab2
----
186

skipif mysql # not compatible
query I rowsort label-6675
SELECT ALL SUM ( ( 62 ) ) AS col2 FROM tab2
----
186

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6676
SELECT DISTINCT + col0 col2 FROM tab2 WHERE NOT - col0 * CAST( NULL AS DECIMAL ) + - col0 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6676
SELECT DISTINCT + col0 col2 FROM tab2 WHERE NOT - col0 * CAST ( NULL AS REAL ) + - col0 BETWEEN col2 AND NULL
----

query I rowsort
SELECT col0 FROM tab2 WHERE NOT NULL > - 77
----

query III rowsort
SELECT * FROM tab1 WHERE ( - col0 ) <= col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 BETWEEN col1 AND 86 / 95 + 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6680
SELECT DISTINCT + MIN( DISTINCT - 18 ) * - 86 FROM tab1 AS cor0
----
1548

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + MIN ( DISTINCT - 18 ) * - 86 FROM tab1 AS cor0
----
1548

query I rowsort
SELECT ALL - col1 * - 9 AS col2 FROM tab0 AS cor0
----
189
729
9

onlyif mysql # DIV for integer division: 
query I rowsort label-6682
SELECT DISTINCT col0 DIV col1 col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6682
SELECT DISTINCT col0 / col1 col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-6683
SELECT DISTINCT col1 DIV + ( - 63 ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-1
0

skipif mysql # not compatible
query I rowsort label-6683
SELECT DISTINCT col1 / + ( - 63 ) AS col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-1
0

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE ( col0 ) >= - 54
----
15
87
97

query I rowsort
SELECT ALL 26 / - col0 + col1 AS col2 FROM tab2 WHERE NOT col0 NOT IN ( - 98 )
----

query I rowsort
SELECT col0 * - 17 FROM tab2 AS cor0
----
-1088
-1275
-782

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6687
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST( NULL AS SIGNED ) ) NOT IN ( 92 )
----

skipif mysql # not compatible
query III rowsort label-6687
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) ) NOT IN ( 92 )
----

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col0 > col1 * - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 33 col2 FROM tab1 AS cor0
----
33
33
33

query I rowsort
SELECT DISTINCT - ( col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6691
SELECT + ( ( + SUM( DISTINCT 70 ) ) ) + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-6691
SELECT + ( ( + SUM ( DISTINCT 70 ) ) ) + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-6692
SELECT DISTINCT MAX( DISTINCT ( - col1 ) ) + 17 FROM tab2 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-6692
SELECT DISTINCT MAX ( DISTINCT ( - col1 ) ) + 17 FROM tab2 AS cor0
----
-34

query I rowsort
SELECT ALL - 0 * - col1 * + col1 + 7 AS col1 FROM tab2
----
7
7
7

query I rowsort
SELECT col0 FROM tab2 WHERE NULL IN ( + 31 )
----

query I rowsort
SELECT col0 * 74 FROM tab2 WHERE NULL IS NULL
----
3404
4736
5550

query I rowsort
SELECT DISTINCT col1 + - 79 AS col1 FROM tab0
----
-58
-78
2

query I rowsort
SELECT col1 + + ( + ( 97 ) ) - col0 AS col0 FROM tab0
----
1
163
31

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6698
SELECT ALL * FROM tab0 WHERE + col1 + CAST( - col0 + + 83 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-6698
SELECT ALL * FROM tab0 WHERE + col1 + CAST ( - col0 + + 83 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 94 * col0 FROM tab2 AS cor0 WHERE ( + 99 ) NOT IN ( - col0 / col0 )
----
4324
6016
7050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6700
SELECT DISTINCT + CAST( NULL AS SIGNED ) - col1 * - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6700
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - col1 * - col2 AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 55 * + col1 + col1 AS col2 FROM tab1 cor0
----
2632
280
784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6702
SELECT col0 - + + CAST( - - col1 AS SIGNED ) FROM tab1
----
37
44
80

skipif mysql # not compatible
query I rowsort label-6702
SELECT col0 - + + CAST ( - - col1 AS INTEGER ) FROM tab1
----
37
44
80

query I rowsort
SELECT + + col0 + - 5 FROM tab2 WHERE NULL IS NULL
----
41
59
70

query I rowsort
SELECT col1 + - col1 - col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6705
SELECT ALL COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col1 * - col2 - - CAST( 33 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6705
SELECT ALL COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IN ( + col1 * - col2 - - CAST ( 33 AS INTEGER ) )
----
0

query I rowsort
SELECT DISTINCT + 96 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6707
SELECT ALL - + ( + COUNT( * ) ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6707
SELECT ALL - + ( + COUNT ( * ) ) AS col1 FROM tab0 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6708
SELECT DISTINCT - COUNT( * ) FROM tab0 AS cor0 WHERE 90 NOT IN ( + col1 * - col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-6708
SELECT DISTINCT - COUNT ( * ) FROM tab0 AS cor0 WHERE 90 NOT IN ( + col1 * - col1 )
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( - col1 ) AND col2
----

query I rowsort
SELECT DISTINCT + col1 * + 83 AS col0 FROM tab0 AS cor0
----
1743
6723
83

query I rowsort
SELECT ALL 85 * col0 AS col1 FROM tab2 AS cor0
----
3910
5440
6375

onlyif mysql # aggregate syntax: 
query I rowsort label-6712
SELECT ALL MIN( ALL + 96 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-6712
SELECT ALL MIN ( ALL + 96 ) FROM tab2
----
96

query I rowsort
SELECT ( - 14 ) AS col1 FROM tab2
----
-14
-14
-14

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - col1 <= ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6715
SELECT ALL + COUNT( * ) FROM tab0 WHERE ( - CAST( col2 AS SIGNED ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6715
SELECT ALL + COUNT ( * ) FROM tab0 WHERE ( - CAST ( col2 AS INTEGER ) ) IS NULL
----
0

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL < - col2 - + col0
----

query I rowsort
SELECT + col2 AS col2 FROM tab0 AS cor0 WHERE NOT col0 * ( - + col0 ) IN ( col0 + col2 )
----
10
47
99

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 - - col1 < col2 + - col1 / col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - - 44 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT MIN( + + col1 ) FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6721
SELECT MIN ( + + col1 ) FROM tab2 WHERE NOT ( NULL ) = ( NULL )
----
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NULL ) NOT IN ( col2, + col2 )
----

query I rowsort
SELECT DISTINCT - + 58 + - + col2 * - col0 FROM tab1 AS cor0
----
4838
4957
6130

query II rowsort
SELECT DISTINCT - ( + col0 ) * 39, col1 AS col2 FROM tab0 AS cor0
----
-3393
21
-3783
1
-585
81

query I rowsort
SELECT ALL col0 * + + col0 AS col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-6726
SELECT ALL - - col1 DIV + + 84 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6726
SELECT ALL - - col1 / + + 84 AS col0 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + 57 * + col2 AS col2 FROM tab0 AS cor0
----
2679
5643
570

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6728
SELECT * FROM tab1 AS cor0 WHERE col2 <> ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-6728
SELECT * FROM tab1 AS cor0 WHERE col2 <> ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6729
SELECT - col2 DIV col1 + + 50 + col0 AS col0 FROM tab0 AS cor0
----
137
48
65

skipif mysql # not compatible
query I rowsort label-6729
SELECT - col2 / col1 + + 50 + col0 AS col0 FROM tab0 AS cor0
----
137
48
65

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 78 ) col2 FROM tab1 cor0
----
78
78
78

query I rowsort
SELECT DISTINCT - col0 + - - col1 AS col0 FROM tab2 cor0 WHERE NOT ( + col1 ) <= ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6733
SELECT DISTINCT - 11 / + CAST( NULL AS DECIMAL ) + + CAST( col0 AS DECIMAL ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6733
SELECT DISTINCT - 11 / + CAST ( NULL AS REAL ) + + CAST ( col0 AS REAL ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT 27 * - 39 FROM tab2
----
-1053
-1053
-1053

onlyif mysql # aggregate syntax: 
query II rowsort label-6735
SELECT DISTINCT COUNT( * ) AS col2, MIN( + - col0 ) AS col1 FROM tab2
----
3
-75

skipif mysql # not compatible
query II rowsort label-6735
SELECT DISTINCT COUNT ( * ) AS col2, MIN ( + - col0 ) AS col1 FROM tab2
----
3
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-6736
SELECT COUNT( + col2 ) + 85 FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6736
SELECT COUNT ( + col2 ) + 85 FROM tab0
----
88

query II rowsort
SELECT ALL - + col2 AS col0, 27 AS col2 FROM tab1 AS cor0
----
-59
27
-68
27
-96
27

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 41 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 + + 55 AS col2 FROM tab1 AS cor0
----
102
60
69

query III rowsort
SELECT * FROM tab0 WHERE ( - + 30 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6741
SELECT + - SUM( ALL col2 ) * COUNT( * ) * 4 FROM tab2 cor0
----
-1452

skipif mysql # not compatible
query I rowsort label-6741
SELECT + - SUM ( ALL col2 ) * COUNT ( * ) * 4 FROM tab2 cor0
----
-1452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1, 72 - - col0 * - 99 col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 93 * + col0 FROM tab2 AS cor0 WHERE NOT ( - col0 * - 1 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6744
SELECT ALL col0 / - - col0 * + + CAST( NULL AS SIGNED ) + - col1 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6744
SELECT ALL col0 / - - col0 * + + CAST ( NULL AS INTEGER ) + - col1 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT 99 * col0 / - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-6746
SELECT ALL - 59 col0, - COUNT( * ) * + SUM( - col0 ) FROM tab1
----
-59
681

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6746
SELECT ALL - 59 col0, - COUNT ( * ) * + SUM ( - col0 ) FROM tab1
----
-59
681

query II rowsort
SELECT 55 AS col0, col2 AS col0 FROM tab2
----
55
23
55
40
55
58

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6748
SELECT - COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-6748
SELECT - COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0
----
-1

query I rowsort
SELECT ALL + 34 * col0 FROM tab2
----
1564
2176
2550

query I rowsort
SELECT DISTINCT 17 * - col1 AS col2 FROM tab2
----
-1139
-1309
-867

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6751
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 + CAST( + + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6751
SELECT * FROM tab0 AS cor0 WHERE NOT - 83 + CAST ( + + col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6752
SELECT + CAST( + col1 AS SIGNED ) DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6752
SELECT + CAST ( + col1 AS INTEGER ) / - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

query I rowsort
SELECT DISTINCT + 1 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6754
SELECT ALL ( + col1 ) * - - col1 + - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6754
SELECT ALL ( + col1 ) * - - col1 + - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6755
SELECT ALL - col0 * - + CAST( NULL AS SIGNED ) - ( + - 60 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6755
SELECT ALL - col0 * - + CAST ( NULL AS INTEGER ) - ( + - 60 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6756
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-6756
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( - 88 / - col1 + - - col0, col2 )
----

query I rowsort
SELECT DISTINCT 93 * - col1 * ( - 0 ) + - col1 - col2 + 87 AS col2 FROM tab0 cor0
----
-13
-41
56

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE 97 + - - col1 * col1 - - 22 * + col2 NOT IN ( - col2, 37 + - col1 )
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6760
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 46 * + - CAST( NULL AS SIGNED ) * - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-6760
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( 46 * + - CAST ( NULL AS INTEGER ) * - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 33 + + 79 AS col2 FROM tab1
----
112
112
112

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6762
SELECT + MAX( col1 ) * + + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6762
SELECT + MAX ( col1 ) * + + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 + 10 AS col1 FROM tab1
----
15
24
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + 89 - + col1 col0 FROM tab2 AS cor0
----
-140
-156
-166

onlyif mysql # DIV for integer division: 
query I rowsort label-6765
SELECT - 5 + + 83 DIV col1 FROM tab0 AS cor0 WHERE ( - col2 * - + col0 + col2 * - col0 * - col0 + 87 * + col0 + + col2 ) IS NOT NULL
----
-2
-4
78

skipif mysql # not compatible
query I rowsort label-6765
SELECT - 5 + + 83 / col1 FROM tab0 AS cor0 WHERE ( - col2 * - + col0 + col2 * - col0 * - col0 + 87 * + col0 + + col2 ) IS NOT NULL
----
-2
-4
78

query I rowsort
SELECT DISTINCT + - 55 - col1 AS col1 FROM tab1 cor0
----
-102
-60
-69

query I rowsort
SELECT ALL - col0 * - - col1 AS col0 FROM tab0 cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6768
SELECT + ( + COUNT( * ) ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6768
SELECT + ( + COUNT ( * ) ) / + COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6769
SELECT ALL COUNT( * ) * 33 col0 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6769
SELECT ALL COUNT ( * ) * 33 col0 FROM tab0
----
99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 - - - col2 + - - col1 + + + col2 <> - + 92
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT 38 AS col1 FROM tab2 cor0
----
38

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6772
SELECT * FROM tab2 AS cor0 WHERE NOT 95 + + 98 + CAST( NULL AS SIGNED ) * - - 9 >= + col2 AND - 70 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6772
SELECT * FROM tab2 AS cor0 WHERE NOT 95 + + 98 + CAST ( NULL AS INTEGER ) * - - 9 >= + col2 AND - 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6773
SELECT - + ( COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6773
SELECT - + ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT + 7 * - col0 * + col0 AS col0 FROM tab0
----
-1575
-52983
-65863

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6775
SELECT + ( - 48 ) / - 59 * + - CAST( NULL AS SIGNED ) + + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6775
SELECT + ( - 48 ) / - 59 * + - CAST ( NULL AS INTEGER ) + + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
NULL

query I rowsort
SELECT DISTINCT col0 + + col2 + - + 39 * + 31 * - + 52 AS col1 FROM tab2
----
62937
62972
63001

query I rowsort
SELECT 86 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6778
SELECT + + col2, CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-6778
SELECT + + col2, CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
59
NULL
68
NULL
96
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6779
SELECT + COUNT( * ) - - 23 FROM tab0 cor0
----
26

skipif mysql # not compatible
query I rowsort label-6779
SELECT + COUNT ( * ) - - 23 FROM tab0 cor0
----
26

query I rowsort
SELECT + 16 - col2 + col1 + - col1 + col0 FROM tab0 AS cor0
----
-16
14
93

onlyif mysql # aggregate syntax: 
query I rowsort label-6781
SELECT - - COUNT( * ) - + + 0 AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6781
SELECT - - COUNT ( * ) - + + 0 AS col2 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6782
SELECT col0 - CAST( - + col0 AS SIGNED ) FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-6782
SELECT col0 - CAST ( - + col0 AS INTEGER ) FROM tab2
----
128
150
92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6783
SELECT - 78 + - + AVG ( - CAST( NULL AS SIGNED ) ) + + COUNT( * ) + + 60 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6783
SELECT - 78 + - + AVG ( - CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + + 60 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + + col2 ) * - col0 col1 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # DIV for integer division: 
query I rowsort label-6785
SELECT ALL - col0 * col1 DIV - 92 + + col0 + col2 FROM tab0
----
116
197
75

skipif mysql # not compatible
query I rowsort label-6785
SELECT ALL - col0 * col1 / - 92 + + col0 + col2 FROM tab0
----
116
197
75

query I rowsort
SELECT DISTINCT + col2 + + 9 FROM tab0
----
108
19
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6787
SELECT ALL col2 + - 52 + + col1 * - - col2 - + ( + ( - - 19 ) ) * + CAST( NULL AS DECIMAL ) - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6787
SELECT ALL col2 + - 52 + + col1 * - - col2 - + ( + ( - - 19 ) ) * + CAST ( NULL AS REAL ) - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 * - + col1 NOT IN ( 71 + - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 91 * + 79 FROM tab0 AS cor0
----
7189
7189
7189

query I rowsort
SELECT DISTINCT 61 * + - 91 AS col1 FROM tab2 AS cor0
----
-5551

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col2 BETWEEN + col1 * + - 95 - + 92 AND - 57
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NOT + - 80 / - 81 BETWEEN - + ( - col1 ) AND + 37
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-6793
SELECT ALL MAX( + + 12 ) col0 FROM tab1, tab1 cor0
----
12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6793
SELECT ALL MAX ( + + 12 ) col0 FROM tab1, tab1 cor0
----
12

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 93 ) col2 FROM tab1
----
93
93
93

onlyif mysql # DIV for integer division: 
query I rowsort label-6795
SELECT - 47 DIV + 33 col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6795
SELECT - 47 / + 33 col0 FROM tab1 cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-6796
SELECT + - ( + + COUNT( * ) ) AS col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6796
SELECT + - ( + + COUNT ( * ) ) AS col0 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-6797
SELECT + 34, + COUNT( * ) AS col2 FROM tab0 AS cor0
----
34
3

skipif mysql # not compatible
query II rowsort label-6797
SELECT + 34, + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
34
3

onlyif mysql # DIV for integer division: 
query I rowsort label-6798
SELECT - col0 DIV col0 * + - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-6798
SELECT - col0 / col0 * + - col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + - col0 * + 58 FROM tab1 AS cor0
----
-2958
-4930
-5278

query I rowsort
SELECT ALL + - col1 * + 8 FROM tab0 AS cor0
----
-168
-648
-8

query I rowsort
SELECT + col2 + col1 AS col1 FROM tab1 WHERE NOT 98 BETWEEN + ( + 22 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6802
SELECT - CAST( - col0 AS SIGNED ) + - 28 FROM tab1
----
23
57
63

skipif mysql # not compatible
query I rowsort label-6802
SELECT - CAST ( - col0 AS INTEGER ) + - 28 FROM tab1
----
23
57
63

query I rowsort
SELECT - col2 AS col0 FROM tab0 WHERE NOT NULL IN ( + col1 * + + col2 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - col2 + + col2 / ( + col1 ) - + col1 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query II rowsort label-6805
SELECT 79 DIV + col1 AS col1, col2 FROM tab1
----
1
68
15
59
5
96

skipif mysql # not compatible
query II rowsort label-6805
SELECT 79 / + col1 AS col1, col2 FROM tab1
----
1
68
15
59
5
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 55 + - col2 + + - col2 col1 FROM tab2
----
-25
-61
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 34 BETWEEN + - ( col0 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6808
SELECT COUNT( * ) * + COUNT( * ) + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6808
SELECT COUNT ( * ) * + COUNT ( * ) + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 >= + - col1 / + col0 + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 7 AND - ( + col2 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT - col0 * - + 57 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6813
SELECT ALL + CAST( - 13 AS SIGNED ) + col2 AS col2 FROM tab2
----
10
27
45

skipif mysql # not compatible
query I rowsort label-6813
SELECT ALL + CAST ( - 13 AS INTEGER ) + col2 AS col2 FROM tab2
----
10
27
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6814
SELECT - MAX( DISTINCT - col0 ) col0 FROM tab2
----
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6814
SELECT - MAX ( DISTINCT - col0 ) col0 FROM tab2
----
46

query I rowsort
SELECT col2 - - col2 + - - 56 * + col1 FROM tab1
----
2768
398
976

query I rowsort
SELECT ( - - 1 ) * - col0 - - col2 AS col2 FROM tab1
----
-23
-26
45

onlyif mysql # aggregate syntax: 
query I rowsort label-6817
SELECT MAX( ALL - 49 ) - - - COUNT( * ) FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-6817
SELECT MAX ( ALL - 49 ) - - - COUNT ( * ) FROM tab2
----
-52

query I rowsort
SELECT 77 - col1 AS col2 FROM tab2
----
0
10
26

query II rowsort
SELECT col0 AS col0, - col1 * + col0 AS col2 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 22 col1 FROM tab2 cor0
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6821
SELECT SUM( - - col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-6821
SELECT SUM ( - - col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT ALL + col0 * + 19 AS col2 FROM tab0 AS cor0
----
1653
1843
285

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 50 * col2
----

query I rowsort
SELECT - ( + 42 ) FROM tab2 cor0
----
-42
-42
-42

query I rowsort
SELECT ALL + - col0 - + col1 * - col2 FROM tab1 cor0 WHERE NOT ( - - 61 >= NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col1 col1 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-6827
SELECT MIN( ALL + 76 ) AS col1 FROM tab2
----
76

skipif mysql # not compatible
query I rowsort label-6827
SELECT MIN ( ALL + 76 ) AS col1 FROM tab2
----
76

onlyif mysql # DIV for integer division: 
query I rowsort label-6828
SELECT ALL + ( 99 ) DIV + - col1 FROM tab0
----
-1
-4
-99

skipif mysql # not compatible
query I rowsort label-6828
SELECT ALL + ( 99 ) / + - col1 FROM tab0
----
-1
-4
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6829
SELECT ALL CAST( - ( - + col0 ) AS SIGNED ) AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-6829
SELECT ALL CAST ( - ( - + col0 ) AS INTEGER ) AS col1 FROM tab1
----
51
85
91

onlyif mysql # aggregate syntax: 
query II rowsort label-6830
SELECT 68, + COUNT( ALL - 64 ) AS col2 FROM tab2
----
68
3

skipif mysql # not compatible
query II rowsort label-6830
SELECT 68, + COUNT ( ALL - 64 ) AS col2 FROM tab2
----
68
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6831
SELECT ALL + COUNT( * ) + + SUM( col1 ) FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-6831
SELECT ALL + COUNT ( * ) + + SUM ( col1 ) FROM tab1
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( col1 ) * - - 97 col0 FROM tab2
----
4947
6499
7469

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT DISTINCT COUNT( * ) + + - COUNT( - - col0 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6833
SELECT DISTINCT COUNT ( * ) + + - COUNT ( - - col0 ) AS col0 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6834
SELECT - CAST( + col1 AS SIGNED ) FROM tab2 WHERE NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-6834
SELECT - CAST ( + col1 AS INTEGER ) FROM tab2 WHERE NULL >= NULL
----

query I rowsort
SELECT DISTINCT + ( - ( + + col0 ) ) AS col2 FROM tab1 cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-6836
SELECT 59 + - COUNT( DISTINCT - 78 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-6836
SELECT 59 + - COUNT ( DISTINCT - 78 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT - 54 + - 74 FROM tab1 AS cor0
----
-128
-128
-128

query I rowsort
SELECT - 62 * col0 + - col1 FROM tab1 AS cor0
----
-3176
-5275
-5689

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col2, col0 FROM tab2 AS cor0
----
-46
46
-64
64
-75
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6840
SELECT + - col1 col1, - ( - 97 ) * + CAST( - 86 AS SIGNED ) + + 17 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6840
SELECT + - col1 col1, - ( - 97 ) * + CAST ( - 86 AS INTEGER ) + + 17 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 + + 95 col2 FROM tab0 AS cor0
----
105
105
105

query I rowsort
SELECT DISTINCT ( 41 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
41

onlyif mysql # aggregate syntax: 
query I rowsort label-6843
SELECT DISTINCT 14 - - MAX( DISTINCT + col2 ) FROM tab0 AS cor0
----
113

skipif mysql # not compatible
query I rowsort label-6843
SELECT DISTINCT 14 - - MAX ( DISTINCT + col2 ) FROM tab0 AS cor0
----
113

onlyif mysql # aggregate syntax: 
query I rowsort label-6844
SELECT 23 * - COUNT( ALL + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) <= + col2
----
0

skipif mysql # not compatible
query I rowsort label-6844
SELECT 23 * - COUNT ( ALL + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) <= + col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6845
SELECT ALL + COUNT( * ) - - - 86 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-6845
SELECT ALL + COUNT ( * ) - - - 86 FROM tab0 AS cor0
----
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6846
SELECT ALL - - ( - 7 ) - + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6846
SELECT ALL - - ( - 7 ) - + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6847
SELECT - CAST( NULL AS SIGNED ) - + col0 * + col2 + - 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6847
SELECT - CAST ( NULL AS INTEGER ) - + col0 * + col2 + - 17 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 1 col1 FROM tab2 AS cor0 WHERE - ( - col1 ) BETWEEN + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT - - 48 * 68 + + MIN( DISTINCT - ( col0 ) ) FROM tab2 AS cor0
----
3189

skipif mysql # not compatible
query I rowsort label-6849
SELECT - - 48 * 68 + + MIN ( DISTINCT - ( col0 ) ) FROM tab2 AS cor0
----
3189

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT - 95 <= + + col1
----

query I rowsort
SELECT ALL col2 + + 86 FROM tab2 AS cor0
----
109
126
144

query I rowsort
SELECT 21 AS col0 FROM tab1 AS cor0 WHERE - col1 - + - col2 IS NOT NULL
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT ALL SUM( col0 ) col2 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6853
SELECT ALL SUM ( col0 ) col2 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-6854
SELECT ALL - - ( + MAX( + + col2 ) ) + - 40 AS col0 FROM tab2 WHERE 34 = + - ( ( + + ( + - 76 ) ) ) + + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-6854
SELECT ALL - - ( + MAX ( + + col2 ) ) + - 40 AS col0 FROM tab2 WHERE 34 = + - ( ( + + ( + - 76 ) ) ) + + + col0
----
NULL

query I rowsort
SELECT - - col1 * + 78 FROM tab2 cor0
----
3978
5226
6006

onlyif mysql # aggregate syntax: 
query I rowsort label-6856
SELECT COUNT( DISTINCT 99 ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6856
SELECT COUNT ( DISTINCT 99 ) AS col0 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE + col2 * - 26 * + + ( - 92 ) NOT BETWEEN + 18 AND 46
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 29 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + col2 ) col1 FROM tab2
----
23
40
58

query II rowsort
SELECT - + col0 AS col0, 53 * + + 28 * - col0 * + - col0 * + col1 AS col0 FROM tab0 AS cor0
----
-15
27045900
-87
235880316
-97
13962956

query I rowsort
SELECT + col1 / - + col2 FROM tab2 AS cor0 WHERE NOT NULL < 49 * + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * + - 47 + + 84 * - col1 col2, + col0 AS col0 FROM tab1 AS cor0
----
-3573
51
-4415
85
-8225
91

query II rowsort
SELECT - col0 * + - col1 + + - col0 AS col2, - col1 AS col1 FROM tab1 AS cor0
----
340
-5
4186
-47
663
-14

query I rowsort
SELECT DISTINCT 73 * + 88 AS col2 FROM tab0 cor0
----
6424

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 81 - - - 31 + + - col2 + col2 * col2 * + 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6866
SELECT ALL 93 - ( - COUNT( * ) ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
93

skipif mysql # not compatible
query I rowsort label-6866
SELECT ALL 93 - ( - COUNT ( * ) ) FROM tab1 WHERE NOT - col2 IS NOT NULL
----
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6867
SELECT ALL - col2 + col2 + 60 * - col0 / + - CAST( NULL AS SIGNED ) * - col1 - ( 51 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6867
SELECT ALL - col2 + col2 + 60 * - col0 / + - CAST ( NULL AS INTEGER ) * - col1 - ( 51 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6868
SELECT DISTINCT 59 + 17 + 93 DIV 82, + col2 FROM tab0
----
77
10
77
47
77
99

skipif mysql # not compatible
query II rowsort label-6868
SELECT DISTINCT 59 + 17 + 93 / 82, + col2 FROM tab0
----
77
10
77
47
77
99

query I rowsort
SELECT ALL 97 * - - col1 + - 90 FROM tab2
----
4857
6409
7379

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT 23 * - + 19 + - COUNT( * ) AS col0 FROM tab2
----
-440

skipif mysql # not compatible
query I rowsort label-6870
SELECT 23 * - + 19 + - COUNT ( * ) AS col0 FROM tab2
----
-440

query I rowsort
SELECT - 16 * + col1 AS col1 FROM tab1
----
-224
-752
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-6872
SELECT ALL + 96 DIV - - 74 FROM tab0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + 96 / - - 74 FROM tab0
----
1
1
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 81 * - 16 IS NULL
----

query I rowsort
SELECT - col0 + + + 24 FROM tab1
----
-27
-61
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-6875
SELECT ALL + COUNT( * ) + + MIN( + + col2 ) FROM tab1
----
62

skipif mysql # not compatible
query I rowsort label-6875
SELECT ALL + COUNT ( * ) + + MIN ( + + col2 ) FROM tab1
----
62

query I rowsort
SELECT - col1 + - col0 + + + 35 FROM tab2 AS cor0
----
-106
-107
-62

query I rowsort
SELECT ALL - col2 + - - col0 - + col1 AS col0 FROM tab1 AS cor0
----
-24
-59
21

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE col0 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6879
SELECT DISTINCT + + 33 + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6879
SELECT DISTINCT + + 33 + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col1 / - col2 IS NULL
----

query I rowsort
SELECT - ( - 4 ) AS col0 FROM tab0 cor0
----
4
4
4

onlyif mysql # aggregate syntax: 
query I rowsort label-6882
SELECT DISTINCT - ( - - COUNT( * ) ) * - COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-6882
SELECT DISTINCT - ( - - COUNT ( * ) ) * - COUNT ( * ) FROM tab2
----
9

query II rowsort
SELECT col2 * - + col0, 44 AS col0 FROM tab0
----
-705
44
-870
44
-9603
44

query I rowsort
SELECT + 24 + - + 40 * - 89 FROM tab1 WHERE NOT - col2 + col2 < col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6885
SELECT DISTINCT - COUNT( DISTINCT + col0 ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-6885
SELECT DISTINCT - COUNT ( DISTINCT + col0 ) AS col2 FROM tab1
----
-3

query I rowsort
SELECT 70 * + col2 * - 41 AS col2 FROM tab2
----
-114800
-166460
-66010

query II rowsort
SELECT 93 AS col0, col0 FROM tab1
----
93
51
93
85
93
91

query II rowsort
SELECT DISTINCT - col1 AS col0, + col2 FROM tab1
----
-14
96
-47
68
-5
59

query I rowsort
SELECT col1 * ( ( - col1 ) ) AS col2 FROM tab0
----
-1
-441
-6561

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6890
SELECT DISTINCT - CAST( NULL AS SIGNED ) * 8 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6890
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * 8 AS col0 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * 85 col2 FROM tab1 AS cor0
----
5015
5780
8160

query I rowsort
SELECT DISTINCT 14 AS col2 FROM tab0 cor0
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-6893
SELECT DISTINCT + + MIN( + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6893
SELECT DISTINCT + + MIN ( + col0 ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT - 19 + - - 66 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-6895
SELECT ALL COUNT( * ) + + 54 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
63

skipif mysql # not compatible
query I rowsort label-6895
SELECT ALL COUNT ( * ) + + 54 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-6896
SELECT - - COUNT( DISTINCT - 87 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-6896
SELECT - - COUNT ( DISTINCT - 87 ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
1

query I rowsort
SELECT - 38 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-38
-38
-38

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6899
SELECT + + 13 * - 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-6899
SELECT + + 13 * - CAST ( NULL AS INTEGER ) col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6900
SELECT ALL SUM( 29 ) AS col0, CAST( NULL AS SIGNED ) * - COUNT( * ) * 31 FROM tab0 AS cor0
----
87
NULL

skipif mysql # not compatible
query II rowsort label-6900
SELECT ALL SUM ( 29 ) AS col0, CAST ( NULL AS INTEGER ) * - COUNT ( * ) * 31 FROM tab0 AS cor0
----
87
NULL

query I rowsort
SELECT DISTINCT - col0 * + 25 + col1 FROM tab0 AS cor0
----
-2154
-2424
-294

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6902
SELECT - CAST( - SUM( - col2 ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-6902
SELECT - CAST ( - SUM ( - col2 ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 82 col0, ( col1 ) FROM tab2
----
82
51
82
67
82
77

query I rowsort
SELECT DISTINCT - col1 + - - 85 + + col1 + - col0 + - col2 * col1 FROM tab1
----
-1310
-295
-3202

query I rowsort
SELECT ALL + 65 * + col2 + - - col1 AS col2 FROM tab0
----
3136
6436
671

onlyif mysql # DIV for integer division: 
query II rowsort label-6906
SELECT DISTINCT 21 * - col1 DIV - col1 + col2 col1, + col2 + - col1 AS col1 FROM tab2
----
44
-28
61
-37
79
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6906
SELECT DISTINCT 21 * - col1 / - col1 + col2 col1, + col2 + - col1 AS col1 FROM tab2
----
44
-28
61
-37
79
-9

query I rowsort
SELECT DISTINCT 84 - - col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
135
169
175

query I rowsort
SELECT - + 39 + + col0 + - ( - + 87 ) * - ( - 25 ) * + 23 - - - col2 FROM tab0 AS cor0
----
49954
49984
50063

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6909
SELECT - MAX( DISTINCT - + col1 ) DIV - - COUNT( * ) FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-6909
SELECT - MAX ( DISTINCT - + col1 ) / - - COUNT ( * ) FROM tab2 AS cor0
----
17

query I rowsort
SELECT ALL + - 37 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to ed4644af7729c2425ea6cc3d84c6504f

query III rowsort
SELECT * FROM tab2 WHERE - + ( + 60 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL + + ( + 55 ) AS col0, 79 + col2 AS col1 FROM tab2 AS cor0
----
55
102
55
119
55
137

query II rowsort
SELECT - 54 - - - col1 AS col2, 66 - + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL = - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6915
SELECT - - ( + - COUNT( * ) ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-6915
SELECT - - ( + - COUNT ( * ) ) AS col0 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE + - ( + 56 ) NOT BETWEEN 57 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6917
SELECT DISTINCT CAST( + COUNT( * ) AS SIGNED ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6917
SELECT DISTINCT CAST ( + COUNT ( * ) AS INTEGER ) AS col1 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6918
SELECT DISTINCT MIN( ALL + 88 ) FROM tab0
----
88

skipif mysql # not compatible
query I rowsort label-6918
SELECT DISTINCT MIN ( ALL + 88 ) FROM tab0
----
88

query II rowsort
SELECT DISTINCT ( + - col1 ), col1 AS col0 FROM tab0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6920
SELECT 98 * - + COUNT( * ) AS col2 FROM tab0
----
-294

skipif mysql # not compatible
query I rowsort label-6920
SELECT 98 * - + COUNT ( * ) AS col2 FROM tab0
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-6921
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) FROM tab2 WHERE 80 <> - col1 / 65 * - + col2 * - col2 - + col1
----
0

skipif mysql # not compatible
query I rowsort label-6921
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) FROM tab2 WHERE 80 <> - col1 / 65 * - + col2 * - col2 - + col1
----
0

query I rowsort
SELECT ( + 96 ) * - - 10 + + - 33 AS col2 FROM tab2
----
927
927
927

onlyif mysql # aggregate syntax: 
query I rowsort label-6923
SELECT - + COUNT( * ) + - 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-98

skipif mysql # not compatible
query I rowsort label-6923
SELECT - + COUNT ( * ) + - 89 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-98

query I rowsort
SELECT DISTINCT + - col0 + + + col1 AS col2 FROM tab2 AS cor0
----
-8
13
5

onlyif mysql # aggregate syntax: 
query II rowsort label-6925
SELECT ALL + COUNT( * ) AS col1, - 11 FROM tab0 AS cor0
----
3
-11

skipif mysql # not compatible
query II rowsort label-6925
SELECT ALL + COUNT ( * ) AS col1, - 11 FROM tab0 AS cor0
----
3
-11

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL <> + 12
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + - + 36 < + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN + - col2 + - - 45 AND NULL
----

query I rowsort
SELECT DISTINCT - ( + - col0 ) + ( + + col2 ) - col1 * + col0 AS col1 FROM tab2
----
-2277
-4824
-4892

query I rowsort
SELECT ALL - 75 + - ( + 7 ) * - 30 FROM tab1
----
135
135
135

onlyif mysql # aggregate syntax: 
query I rowsort label-6931
SELECT - MAX( 46 ) col2 FROM tab0
----
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6931
SELECT - MAX ( 46 ) col2 FROM tab0
----
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( + col1 ) * - col0 AS col0, + 76 col1 FROM tab2 AS cor0
----
-2346
76
-4928
76
-5025
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6933
SELECT CAST( NULL AS SIGNED ) + + ( + + COUNT( * ) ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6933
SELECT CAST ( NULL AS INTEGER ) + + ( + + COUNT ( * ) ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6934
SELECT - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-6934
SELECT - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # DIV for integer division: 
query I rowsort label-6935
SELECT + 75 + + - ( 68 ) + col2 + + - col0 DIV + + col2 AS col2 FROM tab2
----
28
46
64

skipif mysql # not compatible
query I rowsort label-6935
SELECT + 75 + + - ( 68 ) + col2 + + - col0 / + + col2 AS col2 FROM tab2
----
28
46
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6936
SELECT - 9 AS col0, - MIN( ALL - col0 ) FROM tab0
----
-9
97

skipif mysql # not compatible
query II rowsort label-6936
SELECT - 9 AS col0, - MIN ( ALL - col0 ) FROM tab0
----
-9
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6937
SELECT ALL MIN( + 15 ) FROM tab1
----
15

skipif mysql # not compatible
query I rowsort label-6937
SELECT ALL MIN ( + 15 ) FROM tab1
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-6938
SELECT ALL + 14, - COUNT( * ) AS col0 FROM tab1 cor0
----
14
-3

skipif mysql # not compatible
query II rowsort label-6938
SELECT ALL + 14, - COUNT ( * ) AS col0 FROM tab1 cor0
----
14
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-6939
SELECT col0 DIV + 86 + col2 AS col1 FROM tab0 AS cor0
----
100
11
47

skipif mysql # not compatible
query I rowsort label-6939
SELECT col0 / + 86 + col2 AS col1 FROM tab0 AS cor0
----
100
11
47

query II rowsort
SELECT ALL col0 AS col2, 23 FROM tab2 cor0
----
46
23
64
23
75
23

onlyif mysql # aggregate syntax: 
query I rowsort label-6941
SELECT + COUNT( DISTINCT - 61 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6941
SELECT + COUNT ( DISTINCT - 61 ) FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6942
SELECT ALL + SUM( + 1 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6942
SELECT ALL + SUM ( + 1 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6943
SELECT ALL COUNT( 42 ) * - COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6943
SELECT ALL COUNT ( 42 ) * - COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - col1 * + + CAST( NULL AS SIGNED ) + col2 * + col2 * - col2 * - 10 * - - col2 <> - 92
----

skipif mysql # not compatible
query III rowsort label-6944
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - col1 * + + CAST ( NULL AS INTEGER ) + col2 * + col2 * - col2 * - 10 * - - col2 <> - 92
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT DISTINCT - ( + + COUNT( ALL 22 ) ) * COUNT( * ) AS col1 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-6945
SELECT DISTINCT - ( + + COUNT ( ALL 22 ) ) * COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 NOT BETWEEN + 1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6947
SELECT + CAST( 61 AS SIGNED ) * - 16 FROM tab0
----
-976
-976
-976

skipif mysql # not compatible
query I rowsort label-6947
SELECT + CAST ( 61 AS INTEGER ) * - 16 FROM tab0
----
-976
-976
-976

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 43 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT DISTINCT COUNT( * ) * - 93 AS col1 FROM tab0
----
-279

skipif mysql # not compatible
query I rowsort label-6949
SELECT DISTINCT COUNT ( * ) * - 93 AS col1 FROM tab0
----
-279

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 76 * 45 col0 FROM tab0
----
3420
3420
3420

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 * - - col2 = NULL
----

query I rowsort
SELECT - col1 * 11 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT + ( - col1 ) = + col0 * - 8
----
-10
-210
-810

query I rowsort
SELECT + col2 + ( + + col1 ) AS col0 FROM tab2 cor0
----
117
125
74

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6954
SELECT DISTINCT - col2 + col0 / - 27 / + + CAST( NULL AS SIGNED ) * col0 / + - col1 * + ( 80 ), + 31 AS col0 FROM tab2
----
NULL
31

skipif mysql # not compatible
query II rowsort label-6954
SELECT DISTINCT - col2 + col0 / - 27 / + + CAST ( NULL AS INTEGER ) * col0 / + - col1 * + ( 80 ), + 31 AS col0 FROM tab2
----
NULL
31

query I rowsort
SELECT DISTINCT 48 + + - col1 AS col2 FROM tab1
----
1
34
43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 88 col2, + ( + 87 ) * + col1 FROM tab1 AS cor0
----
88
1218
88
4089
88
435

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6957
SELECT DISTINCT CAST( + 97 AS SIGNED ) + col0 col0 FROM tab1
----
148
182
188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6957
SELECT DISTINCT CAST ( + 97 AS INTEGER ) + col0 col0 FROM tab1
----
148
182
188

query I rowsort
SELECT DISTINCT col0 + - ( - - col0 ) + - col0 AS col1 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT 99 + + - 30 * col0 FROM tab1
----
-1431
-2451
-2631

onlyif mysql # aggregate syntax: 
query I rowsort label-6960
SELECT + COUNT( * ) + + 17 + + 12 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-6960
SELECT + COUNT ( * ) + + 17 + + 12 FROM tab0
----
32

query I rowsort
SELECT ALL + 15 * 68 FROM tab2 WHERE + col2 + + col0 > NULL
----

query I rowsort
SELECT ALL + 22 FROM tab2 WHERE - + 98 IS NOT NULL
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-6963
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE ( col2 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-6963
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE ( col2 ) IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6964
SELECT DISTINCT + 40 + + MAX( ALL + col0 ) AS col1 FROM tab1
----
131

skipif mysql # not compatible
query I rowsort label-6964
SELECT DISTINCT + 40 + + MAX ( ALL + col0 ) AS col1 FROM tab1
----
131

query I rowsort
SELECT + - col2 + col1 * + col1 * + + col0 * + col0 FROM tab1 cor0
----
180566
18292661
509700

query I rowsort
SELECT DISTINCT + col2 - - ( - 27 ) AS col1 FROM tab1 AS cor0
----
32
41
69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6967
SELECT - MIN( - 68 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6967
SELECT - MIN ( - 68 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL - - col2 AS col0, - col2 FROM tab0 AS cor0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT DISTINCT - col0 * - col2 AS col2, 33 AS col0 FROM tab0 AS cor0
----
705
33
870
33
9603
33

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 71 NOT BETWEEN + + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6971
SELECT ( + - MIN( - col2 ) ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-6971
SELECT ( + - MIN ( - col2 ) ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6972
SELECT MAX( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-6972
SELECT MAX ( DISTINCT - col0 ) AS col2 FROM tab2 AS cor0
----
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT MAX( DISTINCT - 92 ) AS col2 FROM tab1 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-6973
SELECT MAX ( DISTINCT - 92 ) AS col2 FROM tab1 AS cor0
----
-92

query I rowsort
SELECT ALL + col1 * - col1 AS col1 FROM tab2 cor0
----
-2601
-4489
-5929

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT - MAX( ALL - 36 ) AS col2 FROM tab0 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-6975
SELECT - MAX ( ALL - 36 ) AS col2 FROM tab0 AS cor0
----
36

onlyif mysql # DIV for integer division: 
query I rowsort label-6976
SELECT DISTINCT + col0 DIV + 63 col0 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6976
SELECT DISTINCT + col0 / + 63 col0 FROM tab1 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( - - col0 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT col2, - col1 * + - col2 FROM tab2
----
23
1173
40
3080
58
3886

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( 52 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-6980
SELECT DISTINCT SUM( ALL + col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-6980
SELECT DISTINCT SUM ( ALL + col2 ) AS col2 FROM tab2
----
121

query I rowsort
SELECT - 37 * - 51 AS col2 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6982
SELECT + MIN( ALL col0 ) * - MIN( - col0 ) FROM tab0
----
1455

skipif mysql # not compatible
query I rowsort label-6982
SELECT + MIN ( ALL col0 ) * - MIN ( - col0 ) FROM tab0
----
1455

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6983
SELECT DISTINCT CAST( - col1 AS SIGNED ) * + - 16 AS col2 FROM tab0
----
1296
16
336

skipif mysql # not compatible
query I rowsort label-6983
SELECT DISTINCT CAST ( - col1 AS INTEGER ) * + - 16 AS col2 FROM tab0
----
1296
16
336

query I rowsort
SELECT DISTINCT 66 * + - col2 AS col0 FROM tab0 AS cor0
----
-3102
-6534
-660

query I rowsort
SELECT - - 90 * - col1 AS col2 FROM tab1 AS cor0
----
-1260
-4230
-450

query I rowsort
SELECT ( + ( + 60 ) ) FROM tab0 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6987
SELECT col2 AS col2, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-6987
SELECT col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT + + 54 * col0 AS col0 FROM tab2 AS cor0 WHERE + 0 * + ( - 47 ) IS NULL
----

query I rowsort
SELECT ALL - - 86 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query II rowsort
SELECT DISTINCT 38, - 42 * ( - ( - 18 ) ) AS col0 FROM tab1, tab2 AS cor0
----
38
-756

onlyif mysql # aggregate syntax: 
query I rowsort label-6991
SELECT + - COUNT( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
-9

skipif mysql # not compatible
query I rowsort label-6991
SELECT + - COUNT ( * ) AS col2 FROM tab1 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( NOT NULL IS NULL )
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6992
SELECT 7 + COUNT( * ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-6992
SELECT 7 + COUNT ( * ) FROM tab1
----
10

query I rowsort
SELECT DISTINCT col0 FROM tab0 WHERE NOT ( + col1 IN ( - 94 ) )
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6994
SELECT - CAST( NULL AS SIGNED ) + - + 92 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6994
SELECT - CAST ( NULL AS INTEGER ) + - + 92 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6995
SELECT - + COUNT( * ) + 2 AS col2 FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6995
SELECT - + COUNT ( * ) + 2 AS col2 FROM tab1 cor0
----
-1

query I rowsort
SELECT DISTINCT - 46 - 86 FROM tab0 AS cor0
----
-132

query I rowsort
SELECT + ( col0 ) + - col1 FROM tab2 cor0
----
-13
-5
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6998
SELECT col2 + - - col2 / - 96 + - - CAST( NULL AS SIGNED ), CAST( col0 AS SIGNED ) * + 65 + + - col1 AS col1 FROM tab0 AS cor0
----
NULL
5634
NULL
6304
NULL
894

skipif mysql # not compatible
query II rowsort label-6998
SELECT col2 + - - col2 / - 96 + - - CAST ( NULL AS INTEGER ), CAST ( col0 AS INTEGER ) * + 65 + + - col1 AS col1 FROM tab0 AS cor0
----
NULL
5634
NULL
6304
NULL
894

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6999
SELECT ALL - + 16 * + 5 * + ( - + CAST( COUNT( * ) AS SIGNED ) ) + - MIN( ALL col1 ) AS col2 FROM tab0 AS cor0
----
239

skipif mysql # not compatible
query I rowsort label-6999
SELECT ALL - + 16 * + 5 * + ( - + CAST ( COUNT ( * ) AS INTEGER ) ) + - MIN ( ALL col1 ) AS col2 FROM tab0 AS cor0
----
239

query I rowsort
SELECT + col2 + + col2 + - - 49 * - col0 AS col1 FROM tab2 AS cor0
----
-2208
-3056
-3559

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7001
SELECT DISTINCT + - CAST( NULL AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7001
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL 98 - + + col2 FROM tab0 AS cor0
----
-1
51
88

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 72 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7004
SELECT DISTINCT COUNT( col1 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7004
SELECT DISTINCT COUNT ( col1 ) AS col1 FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT + - ( + col1 ), - col2 AS col0 FROM tab1 AS cor0
----
-14
-96
-47
-68
-5
-59

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7006
SELECT * FROM tab1 WHERE - - 93 * - 21 + CAST( NULL AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7006
SELECT * FROM tab1 WHERE - - 93 * - 21 + CAST ( NULL AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7007
SELECT DISTINCT SUM( DISTINCT col0 ) + - + COUNT( * ) AS col1 FROM tab1
----
224

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT SUM ( DISTINCT col0 ) + - + COUNT ( * ) AS col1 FROM tab1
----
224

query I rowsort
SELECT ALL + col1 + + col0 + + 79 * - - col1 FROM tab1
----
1171
3851
485

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, + 31 col0 FROM tab1
----
51
31
85
31
91
31

query I rowsort
SELECT ALL col0 + - - 9 * 54 * 57 * + 97 + col1 AS col1 FROM tab0
----
2687190
2687192
2687202

query I rowsort
SELECT + 71 * ( + - 47 ) - - col0 - + col0 FROM tab1
----
-3337
-3337
-3337

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 - col0 col0 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT DISTINCT - 39 * + + ( col0 ) - + 40 - 40 - - col0 * - - col1 * 44 AS col2 FROM tab1 AS cor0
----
15305
184559
29347

onlyif mysql # aggregate syntax: 
query I rowsort label-7014
SELECT ALL - MAX( - col1 ) * 13 * + COUNT( col2 ) AS col0 FROM tab0 cor0
----
39

skipif mysql # not compatible
query I rowsort label-7014
SELECT ALL - MAX ( - col1 ) * 13 * + COUNT ( col2 ) AS col0 FROM tab0 cor0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7015
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 / CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7015
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 / CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col2 * + 97 * + - 2, col0 FROM tab0 AS cor0
----
-19206
97
-1940
87
-9118
15

query I rowsort
SELECT col0 * + 85 AS col2 FROM tab1 cor0
----
4335
7225
7735

onlyif mysql # aggregate syntax: 
query II rowsort label-7018
SELECT - 53, + COUNT( * ) AS col2 FROM tab1
----
-53
3

skipif mysql # not compatible
query II rowsort label-7018
SELECT - 53, + COUNT ( * ) AS col2 FROM tab1
----
-53
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7019
SELECT DISTINCT MIN( DISTINCT + 10 ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-7019
SELECT DISTINCT MIN ( DISTINCT + 10 ) FROM tab1
----
10

query I rowsort
SELECT DISTINCT - - col0 AS col1 FROM tab2 AS cor0 WHERE 63 / col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7021
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> CAST( ( - CAST( - col1 AS SIGNED ) ) AS SIGNED ) - + - col2
----

skipif mysql # not compatible
query III rowsort label-7021
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> CAST ( ( - CAST ( - col1 AS INTEGER ) ) AS INTEGER ) - + - col2
----

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT DISTINCT col0 * + ( - col1 ) AS col2 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7024
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IN ( - col0 )
----

skipif mysql # not compatible
query III rowsort label-7024
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IN ( - col0 )
----

query I rowsort
SELECT DISTINCT 61 * col0 + - + col2 AS col0 FROM tab2 AS cor0
----
2783
3864
4517

query II rowsort
SELECT + + col1, 32 AS col2 FROM tab1 cor0
----
14
32
47
32
5
32

query II rowsort
SELECT - col2, col2 * - + ( col1 ) * - - col2 AS col1 FROM tab2 AS cor0
----
-23
-26979
-40
-123200
-58
-225388

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7028
SELECT DISTINCT - + 96 DIV - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-7028
SELECT DISTINCT - + 96 / - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-32

query I rowsort
SELECT ALL 86 / - col1 FROM tab2 AS cor0 WHERE - 49 - - + ( - 25 ) + col0 * + col0 IS NULL
----

query II rowsort
SELECT DISTINCT col1 + + - 4, - 53 AS col0 FROM tab1
----
1
-53
10
-53
43
-53

query I rowsort
SELECT ALL col0 * + col1 * col0 * - - col0 AS col0 FROM tab2
----
20185088
28265625
4964136

query I rowsort
SELECT ALL - 23 * + 41 FROM tab1 AS cor0
----
-943
-943
-943

query I rowsort
SELECT col1 + 92 + - 36 * 3 AS col1 FROM tab2 AS cor0
----
35
51
61

onlyif mysql # aggregate syntax: 
query I rowsort label-7034
SELECT ALL - + MAX( - 25 ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-7034
SELECT ALL - + MAX ( - 25 ) FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7035
SELECT + 62 - + COUNT( * ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7035
SELECT + 62 - + COUNT ( * ) FROM tab1 AS cor0
----
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7036
SELECT ALL 69 - ( + CAST( NULL AS SIGNED ) ) * + + 77 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7036
SELECT ALL 69 - ( + CAST ( NULL AS INTEGER ) ) * + + 77 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL col1 AS col0, + col2 AS col0, - + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT + col2 * - col0 FROM tab2 AS cor0 WHERE - 78 - - + 72 IS NOT NULL
----
-1058
-2560
-4350

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN - col1 AND - - 14
----

query I rowsort
SELECT + - 72 FROM tab0 WHERE + col1 + 50 >= + + 67
----
-72
-72

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN + 7 + - col2 AND NULL
----

query I rowsort
SELECT DISTINCT col1 + - - 30 AS col1 FROM tab0 AS cor0 WHERE NULL > 38 * - + col2 - + ( + col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7043
SELECT DISTINCT - - col2 DIV + col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7043
SELECT DISTINCT - - col2 / + col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT + - COUNT( * ) AS col0 FROM tab2 WHERE NOT ( - 97 * - col2 / + - 13 + - col2 >= + + col2 )
----
-3

skipif mysql # not compatible
query I rowsort label-7044
SELECT + - COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( - 97 * - col2 / + - 13 + - col2 >= + + col2 )
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 92 col2, - col1 col2 FROM tab1 AS cor0
----
-92
-14
-92
-47
-92
-5

query II rowsort
SELECT - col1 AS col1, 73 AS col2 FROM tab2 AS cor0
----
-51
73
-67
73
-77
73

onlyif mysql # DIV for integer division: 
query I rowsort label-7047
SELECT ( col1 ) DIV - 36 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7047
SELECT ( col1 ) / - 36 FROM tab1 cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7048
SELECT + 58 * COUNT( * ) FROM tab1 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-7048
SELECT + 58 * COUNT ( * ) FROM tab1 AS cor0
----
174

query I rowsort
SELECT DISTINCT ( 25 ) FROM tab2 cor0 WHERE NULL = + 22
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7050
SELECT - - CAST( 66 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
66
66
66

skipif mysql # not compatible
query I rowsort label-7050
SELECT - - CAST ( 66 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
66
66
66

query I rowsort
SELECT DISTINCT - col1 + - col1 - + col0 - ( - + 58 ) * 2 + 39 FROM tab1
----
-30
60
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7052
SELECT + + MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 WHERE + col1 NOT BETWEEN col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7052
SELECT + + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 WHERE + col1 NOT BETWEEN col0 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7053
SELECT - 46 * COUNT( * ) FROM tab1
----
-138

skipif mysql # not compatible
query I rowsort label-7053
SELECT - 46 * COUNT ( * ) FROM tab1
----
-138

query I rowsort
SELECT ALL ( + - 15 ) + - + 8 + + col2 FROM tab0
----
-13
24
76

onlyif mysql # aggregate syntax: 
query I rowsort label-7055
SELECT DISTINCT 34 + + COUNT( * ) AS col2 FROM tab0
----
37

skipif mysql # not compatible
query I rowsort label-7055
SELECT DISTINCT 34 + + COUNT ( * ) AS col2 FROM tab0
----
37

query III rowsort
SELECT * FROM tab0 WHERE + 32 = 98
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7057
SELECT 53 AS col1, COUNT( * ) FROM tab2
----
53
3

skipif mysql # not compatible
query II rowsort label-7057
SELECT 53 AS col1, COUNT ( * ) FROM tab2
----
53
3

query III rowsort
SELECT * FROM tab1 WHERE + 31 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7059
SELECT ALL + SUM( + 78 ) FROM tab2 AS cor0
----
234

skipif mysql # not compatible
query I rowsort label-7059
SELECT ALL + SUM ( + 78 ) FROM tab2 AS cor0
----
234

onlyif mysql # aggregate syntax: 
query I rowsort label-7060
SELECT ALL + COUNT( DISTINCT + 15 ) FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7060
SELECT ALL + COUNT ( DISTINCT + 15 ) FROM tab0 cor0 WHERE NOT + col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + + 75 + - 29 AS col0, 10 FROM tab1 AS cor0
----
46
10

query I rowsort
SELECT DISTINCT col0 + + 0 + + col2 AS col1 FROM tab0
----
196
62
97

query I rowsort
SELECT DISTINCT 65 - - 24 * - + col1 FROM tab1
----
-1063
-271
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT ALL col1 - - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL col1 - - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7065
SELECT ALL - - 5 DIV - - col1 + + + col0 FROM tab0 AS cor0
----
102
15
87

skipif mysql # not compatible
query I rowsort label-7065
SELECT ALL - - 5 / - - col1 + + + col0 FROM tab0 AS cor0
----
102
15
87

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT - COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col0 + + col0 / + col2
----
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) >= col0 + + col0 / + col2
----
0

query I rowsort
SELECT + col1 + + 65 AS col1 FROM tab0 AS cor0
----
146
66
86

onlyif mysql # DIV for integer division: 
query I rowsort label-7068
SELECT + - 72 * - 16 + - + ( - + col0 ) * 54 DIV col1 + + 31 FROM tab1 AS cor0
----
1287
1379
2101

skipif mysql # not compatible
query I rowsort label-7068
SELECT + - 72 * - 16 + - + ( - + col0 ) * 54 / col1 + + 31 FROM tab1 AS cor0
----
1287
1379
2101

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 70 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 4 * + col0 col0 FROM tab1
----
204
340
364

query I rowsort
SELECT col1 * + + 82 * - + col0 AS col0 FROM tab0
----
-149814
-7954
-99630

query III rowsort
SELECT * FROM tab0 WHERE NOT - - 69 + - + col0 * - 36 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7073
SELECT 92 + COUNT( * ) DIV COUNT( * ) FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-7073
SELECT 92 + COUNT ( * ) / COUNT ( * ) FROM tab0
----
93

query I rowsort
SELECT col2 + 88 FROM tab0
----
135
187
98

query I rowsort
SELECT ALL col0 + 26 * 49 FROM tab1
----
1325
1359
1365

query I rowsort
SELECT DISTINCT + col2 * col2 - col0 FROM tab1
----
3396
4533
9165

onlyif mysql # aggregate syntax: 
query I rowsort label-7077
SELECT DISTINCT SUM( ALL - col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7077
SELECT DISTINCT SUM ( ALL - col2 ) col0 FROM tab0
----
-156

query III rowsort
SELECT * FROM tab0 WHERE + col1 / + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7079
SELECT ALL - ( + CAST( NULL AS DECIMAL ) ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( col1 )
----

skipif mysql # not compatible
query I rowsort label-7079
SELECT ALL - ( + CAST ( NULL AS REAL ) ) AS col0 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( col1 )
----

query I rowsort
SELECT DISTINCT 55 + col2 FROM tab2
----
113
78
95

query I rowsort
SELECT DISTINCT + col2 - col2 * 28 AS col2 FROM tab2
----
-1080
-1566
-621

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7082
SELECT - COUNT( ( - ( - CAST( NULL AS SIGNED ) ) ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7082
SELECT - COUNT ( ( - ( - CAST ( NULL AS INTEGER ) ) ) ) FROM tab2
----
0

query I rowsort
SELECT ALL + col2 + + 8 FROM tab2
----
31
48
66

query I rowsort
SELECT + ( - col0 ) * + 62 AS col1 FROM tab2 WHERE NOT + col1 IS NULL
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-7085
SELECT ALL 61 - COUNT( * ) col0 FROM tab2
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7085
SELECT ALL 61 - COUNT ( * ) col0 FROM tab2
----
58

query I rowsort
SELECT col0 * - col1 + - col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT 33 + - 30 * col1 AS col2 FROM tab1
----
-117
-1377
-387

onlyif mysql # aggregate syntax: 
query I rowsort label-7088
SELECT DISTINCT - ( + MAX( 33 ) ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7088
SELECT DISTINCT - ( + MAX ( 33 ) ) col2 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT col2 + - 31 FROM tab2
----
-8
27
9

onlyif mysql # DIV for integer division: 
query I rowsort label-7090
SELECT 3 DIV 49 + col2 * 25 FROM tab0
----
1175
2475
250

skipif mysql # not compatible
query I rowsort label-7090
SELECT 3 / 49 + col2 * 25 FROM tab0
----
1175
2475
250

onlyif mysql # aggregate syntax: 
query I rowsort label-7091
SELECT - 14 + + SUM( col2 + col2 ) FROM tab1
----
432

skipif mysql # not compatible
query I rowsort label-7091
SELECT - 14 + + SUM ( col2 + col2 ) FROM tab1
----
432

onlyif mysql # aggregate syntax: 
query I rowsort label-7092
SELECT + COUNT( * ) FROM tab2 WHERE NOT - 90 IN ( - col0 * 5 )
----
3

skipif mysql # not compatible
query I rowsort label-7092
SELECT + COUNT ( * ) FROM tab2 WHERE NOT - 90 IN ( - col0 * 5 )
----
3

query III rowsort
SELECT * FROM tab0 WHERE 4 + - col0 NOT BETWEEN 54 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 96 * - col0 - ( - col0 ) * - col2 FROM tab0
----
-291
735
7482

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( - ( 38 ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7096
SELECT 43 * CAST( - col2 AS SIGNED ) AS col2 FROM tab0
----
-2021
-4257
-430

skipif mysql # not compatible
query I rowsort label-7096
SELECT 43 * CAST ( - col2 AS INTEGER ) AS col2 FROM tab0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-7097
SELECT ALL - 33 * + COUNT( * ) FROM tab2
----
-99

skipif mysql # not compatible
query I rowsort label-7097
SELECT ALL - 33 * + COUNT ( * ) FROM tab2
----
-99

query I rowsort
SELECT ALL + col2 / 33 AS col0 FROM tab1 WHERE NULL > - col2 * - ( + col2 )
----

query I rowsort
SELECT DISTINCT + col1 + 89 FROM tab0
----
110
170
90

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NULL NOT BETWEEN 77 AND ( - col2 )
----

query I rowsort
SELECT ( 93 ) + + col2 AS col2 FROM tab1
----
152
161
189

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7102
SELECT + 8 * CAST( NULL AS SIGNED ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7102
SELECT + 8 * CAST ( NULL AS INTEGER ) AS col2 FROM tab0 WHERE NOT ( NULL ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col2 * col2 NOT BETWEEN + 88 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7104
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - 81 ) ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-7104
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( ( - 81 ) ) IS NOT NULL
----
0

query I rowsort
SELECT ( - col1 ) + 86 AS col1 FROM tab2 AS cor0
----
19
35
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7107
SELECT DISTINCT COUNT( * ) * + MAX( ALL - 21 ) AS col2 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-7107
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL - 21 ) AS col2 FROM tab1
----
-63

query I rowsort
SELECT ALL col1 + 85 FROM tab2 WHERE ( + ( col1 ) ) IS NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 / 53 IS NULL
----

query I rowsort
SELECT ALL col1 + 61 FROM tab1 AS cor0
----
108
66
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7111
SELECT ALL 17 - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7111
SELECT ALL 17 - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - - ( - 10 ) - + col2 FROM tab0 AS cor0
----
-109
-20
-57

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( col0 / - 88 )
----

onlyif mysql # DIV for integer division: 
query III rowsort label-7114
SELECT * FROM tab0 AS cor0 WHERE col2 < col2 DIV col0 + col2
----
15
81
47
97
1
99

skipif mysql # not compatible
query III rowsort label-7114
SELECT * FROM tab0 AS cor0 WHERE col2 < col2 / col0 + col2
----
15
81
47
97
1
99

query I rowsort
SELECT - - col0 - + 37 AS col1 FROM tab0 AS cor0
----
-22
50
60

query I rowsort
SELECT - 46 AS col1 FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col1 * col1 FROM tab1 cor0 WHERE NOT ( - 25 * col1 ) IN ( + 1 )
----
196
2209
25

onlyif mysql # aggregate syntax: 
query I rowsort label-7118
SELECT - COUNT( * ) * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7118
SELECT - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7119
SELECT ALL CAST( NULL AS SIGNED ) * AVG ( DISTINCT CAST( col1 AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7119
SELECT ALL CAST ( NULL AS INTEGER ) * AVG ( DISTINCT CAST ( col1 AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND col2
----

query I rowsort
SELECT col0 * + 61 AS col1 FROM tab0 cor0
----
5307
5917
915

onlyif mysql # DIV for integer division: 
query I rowsort label-7122
SELECT 91 + - 86 DIV col2 FROM tab0 WHERE NOT 67 BETWEEN - 82 AND col1
----
83
91

skipif mysql # not compatible
query I rowsort label-7122
SELECT 91 + - 86 / col2 FROM tab0 WHERE NOT 67 BETWEEN - 82 AND col1
----
83
91

query I rowsort
SELECT DISTINCT col0 * 0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7124
SELECT ALL - 6 * - MAX( ALL + 35 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7124
SELECT ALL - 6 * - MAX ( ALL + 35 ) AS col0 FROM tab2 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col0 * - col1 * col1 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT ALL + col0 * + col2 AS col2 FROM tab1 AS cor0 WHERE + 43 * 67 IS NOT NULL
----
4896
5015
6188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7127
SELECT - COUNT( * ) DIV + + COUNT( * ) AS col0 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-7127
SELECT - COUNT ( * ) / + + COUNT ( * ) AS col0 FROM tab0 cor0
----
-1

query I rowsort
SELECT - ( - 28 ) FROM tab2 AS cor0
----
28
28
28

query I rowsort
SELECT ALL col0 + - col2 * + col1 FROM tab1 AS cor0 WHERE ( + col0 ) NOT IN ( - col1 - - col0 )
----
-1293
-210
-3105

query II rowsort
SELECT ALL col2, + ( 69 ) AS col2 FROM tab2
----
23
69
40
69
58
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT COUNT( * ) * + COUNT( * ) * + 97 FROM tab0
----
873

skipif mysql # not compatible
query I rowsort label-7131
SELECT COUNT ( * ) * + COUNT ( * ) * + 97 FROM tab0
----
873

query I rowsort
SELECT + 72 * + - 76 AS col0 FROM tab0
----
-5472
-5472
-5472

query I rowsort
SELECT DISTINCT + col0 * + ( + col2 ) FROM tab2 AS cor0
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-7134
SELECT ALL - SUM( ALL - - 56 ) FROM tab2 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-7134
SELECT ALL - SUM ( ALL - - 56 ) FROM tab2 AS cor0
----
-168

query I rowsort
SELECT DISTINCT 99 FROM tab1 AS cor0 WHERE NOT NULL IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7136
SELECT DISTINCT - COUNT( * ) AS col2, 86 AS col2 FROM tab2 cor0
----
-3
86

skipif mysql # not compatible
query II rowsort label-7136
SELECT DISTINCT - COUNT ( * ) AS col2, 86 AS col2 FROM tab2 cor0
----
-3
86

query I rowsort
SELECT col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND + col2 * - col0
----

query II rowsort
SELECT DISTINCT + col2 AS col0, 25 FROM tab0 cor0
----
10
25
47
25
99
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( - + 68 ) + + col1 col2 FROM tab2 AS cor0
----
119
135
145

query I rowsort
SELECT 72 + - col2 AS col0 FROM tab0
----
-27
25
62

query I rowsort
SELECT DISTINCT 53 + - col1 + - ( + - 43 ) FROM tab1
----
49
82
91

query III rowsort
SELECT * FROM tab1 WHERE ( - - col2 + col0 * + col2 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - col2 * col1 AS col0 FROM tab0 WHERE 79 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 87 col2 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7145
SELECT ALL ( ( + COUNT( * ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7145
SELECT ALL ( ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + 75 FROM tab2 WHERE ( NULL ) > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7147
SELECT COUNT( col1 ) AS col0 FROM tab2 cor0 WHERE ( + col1 - + col0 - - + 28 + col1 ) >= - col1
----
3

skipif mysql # not compatible
query I rowsort label-7147
SELECT COUNT ( col1 ) AS col0 FROM tab2 cor0 WHERE ( + col1 - + col0 - - + 28 + col1 ) >= - col1
----
3

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( NULL ) AND ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7149
SELECT + + CAST( + col1 AS SIGNED ) - 38 - + col0 + 87 AS col2 FROM tab2 AS cor0
----
41
54
62

skipif mysql # not compatible
query I rowsort label-7149
SELECT + + CAST ( + col1 AS INTEGER ) - 38 - + col0 + 87 AS col2 FROM tab2 AS cor0
----
41
54
62

onlyif mysql # aggregate syntax: 
query I rowsort label-7150
SELECT ALL + MIN( col2 ) AS col1 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL + MIN ( col2 ) AS col1 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT AVG ( ALL col0 ) - ( - 82 + AVG ( 52 + col2 ) ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NOT - 88 / + col0 IS NOT NULL ) )
----

query I rowsort
SELECT col0 + + - col0 FROM tab0
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 NOT IN ( + 57 + - 98 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 89 + + 65 * 34 * + col1 AS col0 FROM tab1
----
103959
11139
31029

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 - + col2 col2 FROM tab0
----
-28
24
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7157
SELECT ( + MIN( DISTINCT - CAST( - ( - col2 ) AS SIGNED ) ) ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-7157
SELECT ( + MIN ( DISTINCT - CAST ( - ( - col2 ) AS INTEGER ) ) ) FROM tab2 AS cor0
----
-58

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 72 * + col0 = + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 NOT BETWEEN + ( col2 ) * - + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 0 * 27 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 22 FROM tab0 AS cor0 WHERE ( - ( col2 ) ) BETWEEN NULL AND + - 17 * + col0 + + col0
----

query I rowsort
SELECT DISTINCT + 64 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
-28224
-419904
-64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7163
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= ( col0 * + CAST( + 35 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7163
SELECT * FROM tab0 AS cor0 WHERE NOT col2 <= ( col0 * + CAST ( + 35 AS INTEGER ) )
----

query I rowsort
SELECT ALL col2 * + col0 + + col2 FROM tab2 AS cor0
----
1081
2600
4408

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + - col2, col1 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7166
SELECT DISTINCT + COUNT( * ) * + 24 col0 FROM tab0
----
72

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7166
SELECT DISTINCT + COUNT ( * ) * + 24 col0 FROM tab0
----
72

query II rowsort
SELECT ALL - col0 AS col0, 55 FROM tab2
----
-46
55
-64
55
-75
55

onlyif mysql # aggregate syntax: 
query I rowsort label-7168
SELECT DISTINCT - COUNT( ALL - - 47 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-7168
SELECT DISTINCT - COUNT ( ALL - - 47 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + - 20 + + 98 + - 64 col0 FROM tab0 AS cor0
----
-1706
-1906
-266

query I rowsort
SELECT DISTINCT 96 * - col1 + + 52 * + + 39 + + - col0 / 22 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7171
SELECT DISTINCT - - col1 * - col0 AS col1, 73 + - col1 + - + col0 * - CAST( NULL AS SIGNED ) * - col2 FROM tab0 cor0
----
-1215
NULL
-1827
NULL
-97
NULL

skipif mysql # not compatible
query II rowsort label-7171
SELECT DISTINCT - - col1 * - col0 AS col1, 73 + - col1 + - + col0 * - CAST ( NULL AS INTEGER ) * - col2 FROM tab0 cor0
----
-1215
NULL
-1827
NULL
-97
NULL

query II rowsort
SELECT - col0, - col0 FROM tab2 cor0
----
-46
-46
-64
-64
-75
-75

query I rowsort
SELECT ALL ( - 35 ) + - + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 2 IS NULL
----
-40
-49
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-7174
SELECT DISTINCT col1 DIV - - 16 FROM tab2
----
3
4

skipif mysql # not compatible
query I rowsort label-7174
SELECT DISTINCT col1 / - - 16 FROM tab2
----
3
4

query I rowsort
SELECT 86 AS col1 FROM tab0 AS cor0 WHERE col2 NOT IN ( - - 35 + - - col2 - 65 * + + col0 )
----
86
86
86

query III rowsort
SELECT * FROM tab0 cor0 WHERE + ( 68 ) * + + col1 - + - col0 * + col0 + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE 21 NOT IN ( - + ( col2 ), + 88, 96 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7178
SELECT ALL - col2 * col2 FROM tab1 WHERE 19 + - col2 * - CAST( 77 AS SIGNED ) <> ( col2 / + col0 + - col2 + + col0 * + col2 )
----
-3481
-4624
-9216

skipif mysql # not compatible
query I rowsort label-7178
SELECT ALL - col2 * col2 FROM tab1 WHERE 19 + - col2 * - CAST ( 77 AS INTEGER ) <> ( col2 / + col0 + - col2 + + col0 * + col2 )
----
-3481
-4624
-9216

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) IN ( 28 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7180
SELECT ALL CAST( NULL AS SIGNED ) - + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7180
SELECT ALL CAST ( NULL AS INTEGER ) - + COUNT ( * ) FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( NULL ) = - 79
----

query I rowsort
SELECT - 2 * col2 AS col1 FROM tab0 AS cor0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-7183
SELECT DISTINCT - - COUNT( * ) col2, - ( + 74 ) * + 62 + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
-4588

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7183
SELECT DISTINCT - - COUNT ( * ) col2, - ( + 74 ) * + 62 + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
0
-4588

query I rowsort
SELECT DISTINCT - 40 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT ALL + 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-7185
SELECT ALL + COUNT ( * ) col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7186
SELECT DISTINCT - ( - CAST( NULL AS SIGNED ) ), ( - 43 ) AS col0 FROM tab1
----
NULL
-43

skipif mysql # not compatible
query II rowsort label-7186
SELECT DISTINCT - ( - CAST ( NULL AS INTEGER ) ), ( - 43 ) AS col0 FROM tab1
----
NULL
-43

query II rowsort
SELECT - ( 90 ) AS col2, col2 + - 61 FROM tab1 AS cor0
----
-90
-2
-90
35
-90
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7188
SELECT + COUNT( * ) DIV - + 86 * - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7188
SELECT + COUNT ( * ) / - + 86 * - COUNT ( * ) FROM tab2 cor0
----
0

query I rowsort
SELECT + - ( 87 ) FROM tab0 AS cor0
----
-87
-87
-87

query I rowsort
SELECT DISTINCT 62 * + - col2 FROM tab2 AS cor0
----
-1426
-2480
-3596

onlyif mysql # aggregate syntax: 
query I rowsort label-7191
SELECT - MIN( - 51 ) FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7191
SELECT - MIN ( - 51 ) FROM tab0 AS cor0
----
51

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= + - ( + col0 )
----

query I rowsort
SELECT DISTINCT - + col0 FROM tab0 WHERE NOT - - 30 < NULL
----

query I rowsort
SELECT + 60 * + + col2 AS col2 FROM tab0
----
2820
5940
600

query II rowsort
SELECT col2 AS col0, col1 * ( + col0 ) AS col2 FROM tab2
----
23
2346
40
4928
58
5025

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7196
SELECT ALL - ( - col2 ) * + + CAST( + + col1 AS SIGNED ) FROM tab2
----
1173
3080
3886

skipif mysql # not compatible
query I rowsort label-7196
SELECT ALL - ( - col2 ) * + + CAST ( + + col1 AS INTEGER ) FROM tab2
----
1173
3080
3886

query I rowsort
SELECT DISTINCT + - col0 * 33 + ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IN ( - ( 1 ) * col1, + 35 * - col1 + + col0 + + col2 * + 5 )
----

query I rowsort
SELECT ALL - ( 58 ) * col0 AS col0 FROM tab0 AS cor0
----
-5046
-5626
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-7199
SELECT MIN( - col2 ) * - - MIN( - - col1 ) * 89 AS col0 FROM tab2 AS cor0
----
-263262

skipif mysql # not compatible
query I rowsort label-7199
SELECT MIN ( - col2 ) * - - MIN ( - - col1 ) * 89 AS col0 FROM tab2 AS cor0
----
-263262

query I rowsort
SELECT DISTINCT - + col1 * - col2 - + col0 FROM tab2 AS cor0
----
1127
3016
3811

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * col2 col1 FROM tab0 WHERE - - col2 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7202
SELECT ALL 50 + - - MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-7202
SELECT ALL 50 + - - MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
49

onlyif mysql # DIV for integer division: 
query I rowsort label-7203
SELECT ALL - col2 DIV - ( + - col0 ) FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7203
SELECT ALL - col2 / - ( + - col0 ) FROM tab1 AS cor0
----
-1
0
0

query I rowsort
SELECT + col2 + - ( 17 ) FROM tab0 AS cor0
----
-7
30
82

query I rowsort
SELECT + ( + ( - col2 ) ) * + col2 * - col2 + - 22 AS col1 FROM tab1 AS cor0
----
205357
314410
884714

query I rowsort
SELECT DISTINCT + - col0 * - ( + + col1 ) * + - col2 + - col1 * - ( + col1 ) AS col2 FROM tab0 cor0
----
-17829
-50544
-9602

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 * + - ( + col2 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 67 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7209
SELECT - CAST( NULL AS SIGNED ) / - + AVG ( + col2 ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7209
SELECT - CAST ( NULL AS INTEGER ) / - + AVG ( + col2 ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col0 * + col2 * + 68 * - 9 * - - col1 * 96 AS col0 FROM tab1 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT - 13 * - + 65 AS col0 FROM tab2
----
845
845
845

query I rowsort
SELECT DISTINCT - col1 - 49 - + + 77 * + col2 AS col0 FROM tab1
----
-4597
-5332
-7455

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN NULL AND col2 / + 9 + col0 * + + col2 + + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7214
SELECT + 79 * + COUNT( + col1 ) AS col0, + CAST( - - 35 AS SIGNED ) FROM tab2
----
237
35

skipif mysql # not compatible
query II rowsort label-7214
SELECT + 79 * + COUNT ( + col1 ) AS col0, + CAST ( - - 35 AS INTEGER ) FROM tab2
----
237
35

query I rowsort
SELECT ALL + 86 * + ( col2 ) FROM tab0
----
4042
8514
860

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT DISTINCT MAX( ( + + col0 ) ), - COUNT( - col0 ) AS col2 FROM tab2
----
75
-3

skipif mysql # not compatible
query II rowsort label-7216
SELECT DISTINCT MAX ( ( + + col0 ) ), - COUNT ( - col0 ) AS col2 FROM tab2
----
75
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7217
SELECT DISTINCT + - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) + - 79 FROM tab2 AS cor0
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-7217
SELECT DISTINCT + - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) + - 79 FROM tab2 AS cor0
----
-3
NULL

query I rowsort
SELECT - + 40 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-40
-40
-40

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-7219
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7219
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 * CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7220
SELECT DISTINCT + COUNT( - col2 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7220
SELECT DISTINCT + COUNT ( - col2 ) FROM tab1 cor0
----
3

query II rowsort
SELECT - + col1, 35 AS col2 FROM tab1 AS cor0
----
-14
35
-47
35
-5
35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - col1 ) col1 FROM tab0 cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7223
SELECT - COUNT( * ) * 32 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-7223
SELECT - COUNT ( * ) * 32 FROM tab1
----
-96

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / + col0 * + col0 / + + col0 * + - 78 <= NULL
----

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT - col0 * - col1 + + 68 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7226
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT IN ( - CAST( NULL AS SIGNED ), col1 * + col0 )
----

skipif mysql # not compatible
query III rowsort label-7226
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT IN ( - CAST ( NULL AS INTEGER ), col1 * + col0 )
----

query I rowsort
SELECT + col2 * + + 41 AS col2 FROM tab1
----
2419
2788
3936

onlyif mysql # aggregate syntax: 
query II rowsort label-7228
SELECT ALL - 65 * - + COUNT( * ) AS col1, + COUNT( * ) AS col1 FROM tab1
----
195
3

skipif mysql # not compatible
query II rowsort label-7228
SELECT ALL - 65 * - + COUNT ( * ) AS col1, + COUNT ( * ) AS col1 FROM tab1
----
195
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT DISTINCT + ( 6 ) + - ( + COUNT( col1 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7229
SELECT DISTINCT + ( 6 ) + - ( + COUNT ( col1 ) ) FROM tab1
----
3

query I rowsort
SELECT ALL col2 FROM tab0 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + 76 FROM tab1 AS cor0 WHERE NULL IS NULL
----
76
76
76

query I rowsort
SELECT - col0 / 92 + col2 AS col1 FROM tab2 AS cor0 WHERE 82 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7233
SELECT - ( - col1 ) + - CAST( + 48 AS SIGNED ) - + - col1 FROM tab1 AS cor0
----
-20
-38
46

skipif mysql # not compatible
query I rowsort label-7233
SELECT - ( - col1 ) + - CAST ( + 48 AS INTEGER ) - + - col1 FROM tab1 AS cor0
----
-20
-38
46

onlyif mysql # aggregate syntax: 
query I rowsort label-7234
SELECT DISTINCT + - 75 + + COUNT( col1 ) FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-7234
SELECT DISTINCT + - 75 + + COUNT ( col1 ) FROM tab0 AS cor0
----
-72

query I rowsort
SELECT ALL - 65 + col2 * + - col2 * + - col2 AS col2 FROM tab0 cor0
----
103758
935
970234

onlyif mysql # aggregate syntax: 
query I rowsort label-7236
SELECT ALL + COUNT( DISTINCT + 42 ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7236
SELECT ALL + COUNT ( DISTINCT + 42 ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7237
SELECT ALL + 50 - + COUNT( * ) FROM tab2 cor0
----
47

skipif mysql # not compatible
query I rowsort label-7237
SELECT ALL + 50 - + COUNT ( * ) FROM tab2 cor0
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-7238
SELECT ALL + ( - COUNT( + - col2 ) ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7238
SELECT ALL + ( - COUNT ( + - col2 ) ) FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - col2 <= - + 68 * col0 - col1
----

query I rowsort
SELECT + 12 - col0 FROM tab2 AS cor0
----
-34
-52
-63

query I rowsort
SELECT + 16 - + - col2 FROM tab1 AS cor0
----
112
75
84

query I rowsort
SELECT + col0 + - 25 FROM tab2
----
21
39
50

query I rowsort
SELECT col1 + - col0 + + 41 AS col1 FROM tab0
----
-25
-55
107

query I rowsort
SELECT ALL - col1 * + col1 * col0 FROM tab1
----
-201019
-2125
-9996

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - 74 * - + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7246
SELECT DISTINCT ( 76 ) / - 17 - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7246
SELECT DISTINCT ( 76 ) / - 17 - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + 98 col2 FROM tab1 AS cor0
----
51
84
93

query I rowsort
SELECT ALL - ( - col1 ) * - + col1 FROM tab0 cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT - SUM( - 41 ) AS col0 FROM tab2 cor0
----
123

skipif mysql # not compatible
query I rowsort label-7249
SELECT - SUM ( - 41 ) AS col0 FROM tab2 cor0
----
123

query II rowsort
SELECT + 18 AS col2, - col1 AS col2 FROM tab1 AS cor0
----
18
-14
18
-47
18
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7251
SELECT CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7251
SELECT CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE NOT - + 73 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7253
SELECT + + col2 * - - col2 + - - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST( NULL AS SIGNED ) AND CAST( NULL AS SIGNED ) + - col0 * + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7253
SELECT + + col2 * - - col2 + - - col2 FROM tab2 WHERE NOT NULL NOT BETWEEN CAST ( NULL AS INTEGER ) AND CAST ( NULL AS INTEGER ) + - col0 * + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7254
SELECT CAST( + ( - + ( + MAX( + - 80 ) ) ) AS SIGNED ) AS col0 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-7254
SELECT CAST ( + ( - + ( + MAX ( + - 80 ) ) ) AS INTEGER ) AS col0 FROM tab2
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7255
SELECT ALL - 56 * - + SUM( + 85 ) - + + COUNT( * ) FROM tab1 AS cor0
----
14277

skipif mysql # not compatible
query I rowsort label-7255
SELECT ALL - 56 * - + SUM ( + 85 ) - + + COUNT ( * ) FROM tab1 AS cor0
----
14277

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 93 IS NOT NULL
----

query I rowsort
SELECT col2 * - - col0 + - 99 * - ( + 23 ) AS col0 FROM tab2 AS cor0
----
3335
4837
6627

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7258
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + CAST( NULL AS SIGNED ) + + col2 / col0 + 50
----

skipif mysql # not compatible
query III rowsort label-7258
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < + CAST ( NULL AS INTEGER ) + + col2 / col0 + 50
----

onlyif mysql # DIV for integer division: 
query II rowsort label-7259
SELECT DISTINCT 3 * + + col2 AS col2, col2 + - col2 + + - 96 DIV - - col0 AS col2 FROM tab0 AS cor0
----
141
-6
297
0
30
-1

skipif mysql # not compatible
query II rowsort label-7259
SELECT DISTINCT 3 * + + col2 AS col2, col2 + - col2 + + - 96 / - - col0 AS col2 FROM tab0 AS cor0
----
141
-6
297
0
30
-1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 IN ( 45 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7261
SELECT ALL + + SUM( ( - + col1 ) ) FROM tab2 cor0
----
-195

skipif mysql # not compatible
query I rowsort label-7261
SELECT ALL + + SUM ( ( - + col1 ) ) FROM tab2 cor0
----
-195

query I rowsort
SELECT col0 + ( - - ( 40 ) ) FROM tab0 AS cor0
----
127
137
55

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7264
SELECT ALL 76 + CAST( NULL AS SIGNED ) col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7264
SELECT ALL 76 + CAST ( NULL AS INTEGER ) col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL ( 18 ) * - col1 + - + 54 AS col1 FROM tab0 WHERE NOT - col1 BETWEEN - + col2 AND 77
----
-1512
-432

onlyif mysql # aggregate syntax: 
query I rowsort label-7266
SELECT - COUNT( * ) * COUNT( * ) FROM tab2, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-7266
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab2, tab2 AS cor0
----
-81

query II rowsort
SELECT 63, col2 + + col2 AS col0 FROM tab1
----
63
118
63
136
63
192

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0, - col2 * + + col1 FROM tab1
----
51
-1344
85
-295
91
-3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + 97 col0 FROM tab2
----
4462
6208
7275

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + ( - col1 ) NOT BETWEEN col2 AND - col2
----

query I rowsort
SELECT + col1 FROM tab2 WHERE NOT 69 IN ( + col0, + col2 )
----
51
67
77

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col2 * - col0 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT ( + - 59 ) AS col1 FROM tab1
----
-59

query I rowsort
SELECT + 48 * + 83 AS col0 FROM tab1 AS cor0
----
3984
3984
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT DISTINCT - MAX( ALL 73 ) FROM tab1 AS cor0
----
-73

skipif mysql # not compatible
query I rowsort label-7276
SELECT DISTINCT - MAX ( ALL 73 ) FROM tab1 AS cor0
----
-73

query III rowsort
SELECT * FROM tab2 WHERE ( - + col2 ) BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7278
SELECT + COUNT( * ) + - 77 FROM tab1
----
-74

skipif mysql # not compatible
query I rowsort label-7278
SELECT + COUNT ( * ) + - 77 FROM tab1
----
-74

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 59 = ( + + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 68 col0 FROM tab0 cor0
----
-68
-68
-68

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 * col2 < + col2 * + col0 + + 39
----

query I rowsort
SELECT DISTINCT 7 * 53 * + col2 FROM tab0
----
17437
36729
3710

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7283
SELECT + 97 * col2 - - + CAST( NULL AS SIGNED ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7283
SELECT + 97 * col2 - - + CAST ( NULL AS INTEGER ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( - ( + col1 ) ) - + 13 FROM tab2
----
-64
-80
-90

query I rowsort
SELECT ALL col0 * + 24 FROM tab2
----
1104
1536
1800

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( col2 ) * 34 col2, + 0 + col2 AS col2 FROM tab1
----
2006
59
2312
68
3264
96

onlyif mysql # DIV for integer division: 
query I rowsort label-7287
SELECT ALL col0 DIV - 53 AS col0 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7287
SELECT ALL col0 / - 53 AS col0 FROM tab1
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7288
SELECT DISTINCT ( - - 24 ) * + - COUNT( * ) FROM tab1, tab1 cor0
----
-216

skipif mysql # not compatible
query I rowsort label-7288
SELECT DISTINCT ( - - 24 ) * + - COUNT ( * ) FROM tab1, tab1 cor0
----
-216

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7289
SELECT DISTINCT 19, + CAST( - COUNT( * ) AS SIGNED ) + + - 61 AS col1 FROM tab1 cor0
----
19
-64

skipif mysql # not compatible
query II rowsort label-7289
SELECT DISTINCT 19, + CAST ( - COUNT ( * ) AS INTEGER ) + + - 61 AS col1 FROM tab1 cor0
----
19
-64

query I rowsort
SELECT DISTINCT + ( + col2 ) * + - col1 * + col0 AS col1 FROM tab2 cor0
----
-197120
-291450
-53958

query I rowsort
SELECT col1 AS col0 FROM tab1 AS cor0 WHERE NOT 0 * - - col1 NOT BETWEEN NULL AND ( + col1 + + + 43 * col0 )
----

query I rowsort
SELECT DISTINCT - - 20 * col2 * + + col1 * + - col2 * 43 FROM tab2 AS cor0
----
-105952000
-193833680
-23201940

onlyif mysql # aggregate syntax: 
query II rowsort label-7293
SELECT COUNT( * ) AS col0, 4 AS col0 FROM tab2 AS cor0
----
3
4

skipif mysql # not compatible
query II rowsort label-7293
SELECT COUNT ( * ) AS col0, 4 AS col0 FROM tab2 AS cor0
----
3
4

onlyif mysql # DIV for integer division: 
query II rowsort label-7294
SELECT DISTINCT + + 80 AS col2, + 0 * - col0 * col0 DIV col2 AS col2 FROM tab0 cor0
----
80
0

skipif mysql # not compatible
query II rowsort label-7294
SELECT DISTINCT + + 80 AS col2, + 0 * - col0 * col0 / col2 AS col2 FROM tab0 cor0
----
80
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7295
SELECT + MIN( - col2 ) AS col0 FROM tab0 cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7295
SELECT + MIN ( - col2 ) AS col0 FROM tab0 cor0
----
-99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN - col1 AND - 63
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7297
SELECT + - COUNT( * ) AS col2 FROM tab2 WHERE NOT + col1 * + col1 + col1 * CAST( NULL AS DECIMAL ) + + - ( - 42 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7297
SELECT + - COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col1 * + col1 + col1 * CAST ( NULL AS REAL ) + + - ( - 42 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-7298
SELECT SUM( DISTINCT + 23 ) AS col0, + SUM( col0 ) FROM tab2
----
23
185

skipif mysql # not compatible
query II rowsort label-7298
SELECT SUM ( DISTINCT + 23 ) AS col0, + SUM ( col0 ) FROM tab2
----
23
185

query I rowsort
SELECT ( + 98 ) * + col0 FROM tab1
----
4998
8330
8918

query III rowsort
SELECT ALL * FROM tab1 WHERE ( 96 ) NOT BETWEEN col2 AND + col2
----
85
5
59
91
47
68

query I rowsort
SELECT - + col0 / - col1 AS col1 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 86 * ( + col0 ) FROM tab1
----
4386
7310
7826

query I rowsort
SELECT + - 16 + col1 FROM tab1 AS cor0
----
-11
-2
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT ALL + 36 * + COUNT( ALL + + col0 ) FROM tab0 AS cor0
----
108

skipif mysql # not compatible
query I rowsort label-7304
SELECT ALL + 36 * + COUNT ( ALL + + col0 ) FROM tab0 AS cor0
----
108

onlyif mysql # aggregate syntax: 
query I rowsort label-7305
SELECT ALL + ( - COUNT( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-7305
SELECT ALL + ( - COUNT ( * ) ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query I rowsort
SELECT ALL col2 * - col2 * + - col2 + - 68 FROM tab0 cor0
----
103755
932
970231

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 24 col2, + 54 AS col1 FROM tab2 AS cor0
----
-24
54
-24
54
-24
54

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - - col1 * - col0 col0 FROM tab1 AS cor0
----
-340
-4186
-663

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7309
SELECT - col1 - - - CAST( NULL AS DECIMAL ) * + 92 + + + 73 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7309
SELECT - col1 - - - CAST ( NULL AS REAL ) * + 92 + + + 73 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - - 85 * + + 19 + - 65 FROM tab0 AS cor0
----
1550

query I rowsort
SELECT 18 + + 17 FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
35
35
35

query I rowsort
SELECT - col1 + - 40 AS col1 FROM tab2 AS cor0
----
-107
-117
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7313
SELECT ALL - COUNT( DISTINCT - col2 ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7313
SELECT ALL - COUNT ( DISTINCT - col2 ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT - COUNT( * ) * ( 59 ) AS col0 FROM tab0
----
-177

skipif mysql # not compatible
query I rowsort label-7314
SELECT - COUNT ( * ) * ( 59 ) AS col0 FROM tab0
----
-177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - + 65 col1, col2 FROM tab2
----
2990
23
4160
40
4875
58

query I rowsort
SELECT - + 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 490d008f3fb5b70d3971cfc6d84503f4

onlyif mysql # aggregate syntax: 
query I rowsort label-7317
SELECT COUNT( * ) * - 40 FROM tab0 AS cor0
----
-120

skipif mysql # not compatible
query I rowsort label-7317
SELECT COUNT ( * ) * - 40 FROM tab0 AS cor0
----
-120

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 NOT BETWEEN + col2 AND - + col0 )
----

query I rowsort
SELECT col2 * + ( + ( - col0 ) ) + - col1 + + col1 - col0 AS col0 FROM tab0 cor0
----
-720
-957
-9700

onlyif mysql # DIV for integer division: 
query I rowsort label-7320
SELECT ALL + 33 DIV - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
0

skipif mysql # not compatible
query I rowsort label-7320
SELECT ALL + 33 / - col1 AS col1 FROM tab0 AS cor0
----
-1
-33
0

query I rowsort
SELECT + col1 + - + 50 + - ( col0 ) AS col2 FROM tab2 AS cor0
----
-37
-45
-58

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + col2, col0 )
----

query I rowsort
SELECT - 72 + 92 FROM tab0 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query I rowsort label-7324
SELECT + COUNT( * ) AS col1 FROM tab2 WHERE ( + + 8 ) * - col1 + + + 74 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7324
SELECT + COUNT ( * ) AS col1 FROM tab2 WHERE ( + + 8 ) * - col1 + + + 74 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 39 col0 FROM tab0 WHERE + col0 IS NOT NULL
----
39
39
39

query I rowsort
SELECT + - col0 AS col1 FROM tab0 WHERE + 87 >= + 13
----
-15
-87
-97

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col0 + + + ( col1 ) IS NULL
----

query II rowsort
SELECT - col2, + ( + col2 ) FROM tab1
----
-59
59
-68
68
-96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7329
SELECT + COUNT( ALL - ( + + col1 ) ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7329
SELECT + COUNT ( ALL - ( + + col1 ) ) AS col0 FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7330
SELECT ( - MIN( DISTINCT + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-7330
SELECT ( - MIN ( DISTINCT + col2 ) ) AS col2 FROM tab0 AS cor0
----
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-7331
SELECT DISTINCT - + col2 DIV - 86 FROM tab1 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-7331
SELECT DISTINCT - + col2 / - 86 FROM tab1 AS cor0
----
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7332
SELECT DISTINCT - - CAST( NULL AS SIGNED ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

skipif mysql # not compatible
query II rowsort label-7332
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) AS col0, - col0 FROM tab0 AS cor0
----
NULL
-15
NULL
-87
NULL
-97

query I rowsort
SELECT 93 + - 87 + 6 FROM tab1
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7334
SELECT ALL 46 + + COUNT( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
55

skipif mysql # not compatible
query I rowsort label-7334
SELECT ALL 46 + + COUNT ( * ) AS col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7335
SELECT ALL * FROM tab1 WHERE NOT - CAST( + col1 AS SIGNED ) + + - col2 <= - + col0
----
85
5
59

skipif mysql # not compatible
query III rowsort label-7335
SELECT ALL * FROM tab1 WHERE NOT - CAST ( + col1 AS INTEGER ) + + - col2 <= - + col0
----
85
5
59

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7337
SELECT + ( - - MIN( - - 15 ) ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-7337
SELECT + ( - - MIN ( - - 15 ) ) FROM tab1 AS cor0
----
15

query I rowsort
SELECT DISTINCT - 70 * 7 FROM tab2 cor0
----
-490

query I rowsort
SELECT - + 54 + - AVG ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT 13 IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 * - ( + 7 ) FROM tab0
----
-329
-693
-70

query II rowsort
SELECT DISTINCT col0 AS col0, + 36 FROM tab2
----
46
36
64
36
75
36

onlyif mysql # aggregate syntax: 
query I rowsort label-7342
SELECT ALL + COUNT( DISTINCT col0 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7342
SELECT ALL + COUNT ( DISTINCT col0 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + col0 * 69 * - - 38 * + col2 FROM tab1
----
12837312
13149330
16224936

onlyif mysql # aggregate syntax: 
query I rowsort label-7344
SELECT 17 * + COUNT( * ) AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-7344
SELECT 17 * + COUNT ( * ) AS col2 FROM tab0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7345
SELECT - col1 * - + col0 + - 90 FROM tab0 WHERE NOT NULL >= - + col2 / 92 / + col0 + - CAST( 89 AS SIGNED ) * - col1 * 18 * - col0
----

skipif mysql # not compatible
query I rowsort label-7345
SELECT - col1 * - + col0 + - 90 FROM tab0 WHERE NOT NULL >= - + col2 / 92 / + col0 + - CAST ( 89 AS INTEGER ) * - col1 * 18 * - col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( col1 - col2, - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7347
SELECT DISTINCT - - MAX( ALL - col2 ) FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-7347
SELECT DISTINCT - - MAX ( ALL - col2 ) FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col2 col1, col1 * 16 + + col2 FROM tab2 cor0
----
23
839
40
1272
58
1130

query I rowsort
SELECT ALL - col1 * - 29 FROM tab2 AS cor0
----
1479
1943
2233

onlyif mysql # aggregate syntax: 
query I rowsort label-7350
SELECT ALL + SUM( DISTINCT - 5 ) FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-7350
SELECT ALL + SUM ( DISTINCT - 5 ) FROM tab1 AS cor0
----
-5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN col2 AND - - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * + - col2 - + + col0 + col2 * - 1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7353
SELECT - - ( - MAX( DISTINCT - 54 ) ) FROM tab1 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7353
SELECT - - ( - MAX ( DISTINCT - 54 ) ) FROM tab1 AS cor0
----
54

query I rowsort
SELECT ALL + 20 + + ( - 30 ) * - col0 FROM tab1
----
1550
2570
2750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7355
SELECT DISTINCT - CAST( + col0 AS SIGNED ) + - col1 FROM tab1
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-7355
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) + - col1 FROM tab1
----
-138
-65
-90

query I rowsort
SELECT ALL col2 * + col0 + + + col0 FROM tab1
----
4947
5100
6279

onlyif mysql # aggregate syntax: 
query I rowsort label-7357
SELECT + 66 + - COUNT( * ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-7357
SELECT + 66 + - COUNT ( * ) FROM tab1
----
63

query I rowsort
SELECT ALL - col2 + - 10 + + + col0 AS col0 FROM tab1
----
-55
13
16

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + ( + col1 ) ) + + + 90 * col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7360
SELECT ALL - COUNT( * ) DIV - - 38 * + 21 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7360
SELECT ALL - COUNT ( * ) / - - 38 * + 21 col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7361
SELECT ALL 20 + + ( + COUNT( * ) ) FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-7361
SELECT ALL 20 + + ( + COUNT ( * ) ) FROM tab2
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-7362
SELECT ALL - COUNT( * ) * COUNT( * ) + - 69 col2 FROM tab2
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7362
SELECT ALL - COUNT ( * ) * COUNT ( * ) + - 69 col2 FROM tab2
----
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-7363
SELECT DISTINCT + 25 - - - MAX( ALL + + col1 ) FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT + 25 - - - MAX ( ALL + + col1 ) FROM tab1
----
-22

query II rowsort
SELECT ALL - col2 AS col0, col0 + - 90 + col2 FROM tab0 AS cor0 WHERE NOT ( - 36 ) > col0
----
-10
7
-47
-28
-99
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7365
SELECT COUNT( - + col0 ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7365
SELECT COUNT ( - + col0 ) FROM tab0 AS cor0 WHERE + col2 IS NULL
----
0

query II rowsort
SELECT ALL - col2 AS col0, + col2 FROM tab1 AS cor0
----
-59
59
-68
68
-96
96

query I rowsort
SELECT col1 * + + col0 AS col2 FROM tab1 AS cor0
----
425
4277
714

query II rowsort
SELECT DISTINCT col0 * col1, + col1 FROM tab2
----
2346
51
4928
77
5025
67

onlyif mysql # aggregate syntax: 
query II rowsort label-7369
SELECT DISTINCT + SUM( DISTINCT - col1 ) AS col1, 69 AS col2 FROM tab2
----
-195
69

skipif mysql # not compatible
query II rowsort label-7369
SELECT DISTINCT + SUM ( DISTINCT - col1 ) AS col1, 69 AS col2 FROM tab2
----
-195
69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT DISTINCT - - CAST( 45 AS SIGNED ) AS col0 FROM tab2 cor0
----
45

skipif mysql # not compatible
query I rowsort label-7370
SELECT DISTINCT - - CAST ( 45 AS INTEGER ) AS col0 FROM tab2 cor0
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7371
SELECT - CAST( 95 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-95
-95
-95

skipif mysql # not compatible
query I rowsort label-7371
SELECT - CAST ( 95 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-95
-95
-95

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 + + 75 + + col1 * + 29 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 5 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col1 AS col1, 17 * - 49 FROM tab1 AS cor0
----
14
-833
47
-833
5
-833

query I rowsort
SELECT + - 0 AS col2 FROM tab0 cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col2 * - + col0 >= NULL
----

query II rowsort
SELECT DISTINCT + 5, + col2 FROM tab2 AS cor0
----
5
23
5
40
5
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7378
SELECT - CAST( NULL AS SIGNED ), COUNT( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-7378
SELECT - CAST ( NULL AS INTEGER ), COUNT ( * ) AS col0 FROM tab1 AS cor0
----
NULL
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7379
SELECT ALL MIN( - + col1 ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-7379
SELECT ALL MIN ( - + col1 ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT - col0 * 77 AS col2 FROM tab1
----
-3927
-6545
-7007

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7381
SELECT ALL - + col1 * CAST( NULL AS SIGNED ) FROM tab1 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7381
SELECT ALL - + col1 * CAST ( NULL AS INTEGER ) FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7382
SELECT + ( - - COUNT( * ) ) * - 30 + - + 49 AS col2 FROM tab0 AS cor0
----
-139

skipif mysql # not compatible
query I rowsort label-7382
SELECT + ( - - COUNT ( * ) ) * - 30 + - + 49 AS col2 FROM tab0 AS cor0
----
-139

query III rowsort
SELECT ALL * FROM tab2 WHERE - 89 + - 63 IS NULL
----

query I rowsort
SELECT ALL + 2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + 76 col0 FROM tab0
----
123
175
86

query II rowsort
SELECT col1, - col0 * + col2 FROM tab0
----
1
-9603
21
-870
81
-705

query I rowsort
SELECT - - 48 + - 1 FROM tab0 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7388
SELECT + 34 * 67 + MAX( - CAST( - col2 AS SIGNED ) ) * COUNT( * ) AS col2 FROM tab1 AS cor0
----
2566

skipif mysql # not compatible
query I rowsort label-7388
SELECT + 34 * 67 + MAX ( - CAST ( - col2 AS INTEGER ) ) * COUNT ( * ) AS col2 FROM tab1 AS cor0
----
2566

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND + + 97
----

query I rowsort
SELECT DISTINCT 44 AS col1 FROM tab2 cor0
----
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > 28
----

query I rowsort
SELECT 38 + - - col2 FROM tab1 WHERE 46 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 / + + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE + - 57 * + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 6 * col1 + - - 71 AS col2 FROM tab0
----
197
557
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7396
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 0 + 99 + + col1 + - 53 * ( - + 47 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7396
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 0 + 99 + + col1 + - 53 * ( - + 47 ) FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + 75 * + col2 - - col0 AS col1 FROM tab2 cor0
----
1771
3064
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 49 + - + col2 col2 FROM tab1
----
-10
-19
-47

query III rowsort
SELECT * FROM tab0 WHERE + 75 NOT BETWEEN + 85 - + col0 AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col0, ( - + col0 ) AS col2 FROM tab0
----
-1
-97
-21
-87
-81
-15

query I rowsort
SELECT DISTINCT + ( - 46 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT - col1 FROM tab1 AS cor0 WHERE NOT 96 IS NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> + 41
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7404
SELECT ALL + MAX( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7404
SELECT ALL + MAX ( DISTINCT - - col1 ) AS col2 FROM tab0 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7405
SELECT DISTINCT + COUNT( * ) * + 71 FROM tab1 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-7405
SELECT DISTINCT + COUNT ( * ) * + 71 FROM tab1 AS cor0
----
213

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0 * + col0 )
----

query II rowsort
SELECT col0, - col1 + + ( + col2 ) FROM tab0
----
15
-34
87
-11
97
98

query I rowsort
SELECT 59 * 95 FROM tab0
----
5605
5605
5605

query II rowsort
SELECT 76 * + col2, col2 FROM tab1
----
4484
59
5168
68
7296
96

query I rowsort
SELECT ALL 19 * + - col2 * + - col2 FROM tab1
----
175104
66139
87856

onlyif mysql # aggregate syntax: 
query I rowsort label-7411
SELECT DISTINCT + COUNT( ALL col2 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7411
SELECT DISTINCT + COUNT ( ALL col2 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT 17 * - 68 * + col2 FROM tab1
----
-110976
-68204
-78608

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 54 + - + 0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 21 + + - ( - - col1 ) AS col2 FROM tab1
----
-26
16
7

query I rowsort
SELECT 34 FROM tab1 WHERE - col0 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7416
SELECT - - 47 DIV COUNT( * ) FROM tab2 AS cor0 WHERE + 78 IS NOT NULL
----
15

skipif mysql # not compatible
query I rowsort label-7416
SELECT - - 47 / COUNT ( * ) FROM tab2 AS cor0 WHERE + 78 IS NOT NULL
----
15

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7417
SELECT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7417
SELECT MIN ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7418
SELECT DISTINCT - MAX( - col1 ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7418
SELECT DISTINCT - MAX ( - col1 ) AS col2 FROM tab0 AS cor0
----
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + 35 + ( - col2 ) + - + col1 + + + 54 + - + col1 * + + col2 AND + - col1
----

query I rowsort
SELECT DISTINCT + col1 * + col1 * + ( + 54 ) + - col2 AS col2 FROM tab1 AS cor0
----
10488
119218
1291

query I rowsort
SELECT + col2 + + + col1 AS col2 FROM tab2
----
117
125
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7422
SELECT ALL SUM( DISTINCT - + ( - 27 ) ) + - + CAST( NULL AS SIGNED ) + - 64 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7422
SELECT ALL SUM ( DISTINCT - + ( - 27 ) ) + - + CAST ( NULL AS INTEGER ) + - 64 FROM tab2
----
NULL

query I rowsort
SELECT ALL 37 + + - col1 FROM tab2
----
-14
-30
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-7424
SELECT ALL COUNT( ALL + 44 ) + - MAX( ALL col0 ) + - COUNT( * ) FROM tab1
----
-91

skipif mysql # not compatible
query I rowsort label-7424
SELECT ALL COUNT ( ALL + 44 ) + - MAX ( ALL col0 ) + - COUNT ( * ) FROM tab1
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7425
SELECT ALL + SUM( DISTINCT - + col2 ) - COUNT( * ) FROM tab1 AS cor0
----
-226

skipif mysql # not compatible
query I rowsort label-7425
SELECT ALL + SUM ( DISTINCT - + col2 ) - COUNT ( * ) FROM tab1 AS cor0
----
-226

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7426
SELECT ALL * FROM tab0 cor0 WHERE NOT - 66 + + 72 - + col1 + - col2 * + + col0 * - CAST( 93 AS SIGNED ) * + + col2 * - col0 * - col1 / - 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
skipif postgresql # PostgreSQL does not promote INTEGER (32-bit) results
query III rowsort label-7426
SELECT ALL * FROM tab0 cor0 WHERE NOT - 66 + + 72 - + col1 + - col2 * + + col0 * - CAST ( 93 AS INTEGER ) * + + col2 * - col0 * - col1 / - 15 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - col2 * + - col2 FROM tab2 cor0
----
-1600
-3364
-529

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 23 col1 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ce60bf4b0647d0fcb18a0562e351c52d

query I rowsort
SELECT + - 91 AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

query I rowsort
SELECT 71 + - 47 * + ( - - 40 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7431
SELECT ALL - CAST( - 85 AS SIGNED ) * - 29 AS col0 FROM tab0
----
-2465
-2465
-2465

skipif mysql # not compatible
query I rowsort label-7431
SELECT ALL - CAST ( - 85 AS INTEGER ) * - 29 AS col0 FROM tab0
----
-2465
-2465
-2465

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 > NULL AND NOT + 76 / col1 <= ( + 32 ) * col2
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 84 / + - 44 * + - col0 + 5 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7434
SELECT DISTINCT - 70 DIV + 24 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-7434
SELECT DISTINCT - 70 / + 24 FROM tab2
----
-2

query I rowsort
SELECT 46 * col0 AS col1 FROM tab2
----
2116
2944
3450

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7436
SELECT DISTINCT - 21 + - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-7436
SELECT DISTINCT - 21 + - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7437
SELECT ALL + AVG ( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7437
SELECT ALL + AVG ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ( + ( - - col2 ) ) * col1 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: 
query II rowsort label-7439
SELECT + 72 AS col0, MAX( ALL - - col1 ) FROM tab1 AS cor0
----
72
47

skipif mysql # not compatible
query II rowsort label-7439
SELECT + 72 AS col0, MAX ( ALL - - col1 ) FROM tab1 AS cor0
----
72
47

query I rowsort
SELECT DISTINCT - - col2 * - - 72 FROM tab1 AS cor0
----
4248
4896
6912

onlyif mysql # aggregate syntax: 
query I rowsort label-7441
SELECT ALL + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col0 * - 14 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-7441
SELECT ALL + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col0 * - 14 IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( NOT + col0 / col2 NOT BETWEEN NULL AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7443
SELECT DISTINCT - 60 + ( + COUNT( * ) ) FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-7443
SELECT DISTINCT - 60 + ( + COUNT ( * ) ) FROM tab1
----
-57

onlyif mysql # aggregate syntax: 
query I rowsort label-7444
SELECT DISTINCT + 86 * + MAX( - - col1 ) FROM tab1
----
4042

skipif mysql # not compatible
query I rowsort label-7444
SELECT DISTINCT + 86 * + MAX ( - - col1 ) FROM tab1
----
4042

query I rowsort
SELECT ALL col0 * - 67 + + + col1 * + col0 AS col1 FROM tab1
----
-1820
-2703
-5270

query I rowsort
SELECT DISTINCT + 82 FROM tab1 cor0 WHERE NOT - ( ( + 11 ) ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + - ( - - col2 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * col2 - - col0 * col1 FROM tab0
----
1927
3424
9898

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT col1 DIV + + col1 - col2 - - + col1 FROM tab2
----
10
29
38

skipif mysql # not compatible
query I rowsort label-7450
SELECT col1 / + + col1 - col2 - - + col1 FROM tab2
----
10
29
38

query I rowsort
SELECT ALL + col1 + + col2 * + col0 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT ALL + col0 * 97 + + 91 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
4553
6299
7366

query I rowsort
SELECT ALL - col2 * - + 72 FROM tab1 AS cor0
----
4248
4896
6912

query I rowsort
SELECT - 7 * col2 FROM tab0
----
-329
-693
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-7455
SELECT ALL SUM( ALL + col1 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-7455
SELECT ALL SUM ( ALL + col1 ) FROM tab2
----
195

query II rowsort
SELECT ALL + 41 AS col1, col0 AS col1 FROM tab2
----
41
46
41
64
41
75

query I rowsort
SELECT DISTINCT - 15 * - col2 FROM tab2 AS cor0
----
345
600
870

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7458
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + CAST( NULL AS SIGNED ) IN ( + - ( + - CAST( - 49 AS SIGNED ) ), col1 ) )
----

skipif mysql # not compatible
query III rowsort label-7458
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + CAST ( NULL AS INTEGER ) IN ( + - ( + - CAST ( - 49 AS INTEGER ) ), col1 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN + - ( col0 ) * - ( - + 65 ) AND + col1
----

query I rowsort
SELECT ALL - - 56 * + ( - col0 ) FROM tab1 AS cor0
----
-2856
-4760
-5096

query II rowsort
SELECT ALL + - col1 AS col2, 4 AS col1 FROM tab0 cor0
----
-1
4
-21
4
-81
4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7462
SELECT DISTINCT + COUNT( * ) DIV - + 62 AS col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7462
SELECT DISTINCT + COUNT ( * ) / - + 62 AS col0 FROM tab0 cor0
----
0

query II rowsort
SELECT ALL ( col1 ) * - 66 + - col0, col0 AS col1 FROM tab1
----
-3193
91
-415
85
-975
51

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7464
SELECT ALL * FROM tab0 WHERE NULL >= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7464
SELECT ALL * FROM tab0 WHERE NULL >= CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7465
SELECT + col0 * - + col1 DIV + col1 AS col2 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-7465
SELECT + col0 * - + col1 / + col1 AS col2 FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - col1 * 75 AS col0 FROM tab2
----
-3825
-5025
-5775

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7467
SELECT 39 * + CAST( col2 AS SIGNED ) + - col0 FROM tab2
----
1496
2187
851

skipif mysql # not compatible
query I rowsort label-7467
SELECT 39 * + CAST ( col2 AS INTEGER ) + - col0 FROM tab2
----
1496
2187
851

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 * - 82 col1, col0 AS col1 FROM tab2 cor0
----
-3772
46
-5248
64
-6150
75

onlyif mysql # aggregate syntax: 
query I rowsort label-7469
SELECT ALL - 31 * - 35 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
1088

skipif mysql # not compatible
query I rowsort label-7469
SELECT ALL - 31 * - 35 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
1088

query I rowsort
SELECT + + 7 + - 24 AS col0 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7471
SELECT CAST( NULL AS DECIMAL ) * - + col1 + ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7471
SELECT CAST ( NULL AS REAL ) * - + col1 + ( + col2 ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7472
SELECT + - CAST( NULL AS SIGNED ) + CAST( - col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7472
SELECT + - CAST ( NULL AS INTEGER ) + CAST ( - col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 / col2 FROM tab2 WHERE ( + col2 ) + - 2 = - 74 * + 41 + col0 * + + col1
----

query I rowsort
SELECT ALL - 50 + - col1 FROM tab2
----
-101
-117
-127

query I rowsort
SELECT + ( 57 ) FROM tab1
----
57
57
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7476
SELECT - CAST( - MAX( col2 ) AS SIGNED ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-7476
SELECT - CAST ( - MAX ( col2 ) AS INTEGER ) FROM tab1
----
96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7477
SELECT CAST( NULL AS SIGNED ) * - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7477
SELECT CAST ( NULL AS INTEGER ) * - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT + 51 FROM tab1 cor0 WHERE - 58 NOT IN ( + + 17, + col1 )
----
51
51
51

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 BETWEEN + col1 * + 19 * col2 - - col2 AND NULL
----

query I rowsort
SELECT DISTINCT - 2 - - ( + + 12 ) FROM tab1 AS cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-7481
SELECT ALL + - 68 DIV + col1 FROM tab2 cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-7481
SELECT ALL + - 68 / + col1 FROM tab2 cor0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7482
SELECT + col2 DIV - col2 + col0 - - - ( CAST( - 6 AS SIGNED ) ) + col1 FROM tab0 AS cor0
----
101
103
113

skipif mysql # not compatible
query I rowsort label-7482
SELECT + col2 / - col2 + col0 - - - ( CAST ( - 6 AS INTEGER ) ) + col1 FROM tab0 AS cor0
----
101
103
113

query I rowsort
SELECT - 80 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-80
-80
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT ALL + - MIN( ALL + col0 ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-7484
SELECT ALL + - MIN ( ALL + col0 ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT 68 * 80 + + - col0 AS col2 FROM tab2
----
5365
5376
5394

query I rowsort
SELECT 57 + - col0 + - - col0 * - 30 FROM tab0
----
-2640
-2950
-408

query I rowsort
SELECT DISTINCT - col1 + - + col0 FROM tab2
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-7488
SELECT - ( - - 81 ) + - MIN( 27 ) AS col1 FROM tab1
----
-108

skipif mysql # not compatible
query I rowsort label-7488
SELECT - ( - - 81 ) + - MIN ( 27 ) AS col1 FROM tab1
----
-108

query I rowsort
SELECT DISTINCT - ( 25 ) AS col0 FROM tab1 WHERE - col2 BETWEEN NULL AND + 90 / col2 * + col1 + 67
----

query II rowsort
SELECT DISTINCT col1 AS col0, col2 * + 22 AS col0 FROM tab2
----
51
506
67
1276
77
880

query II rowsort
SELECT ALL + col1, - 73 AS col2 FROM tab1
----
14
-73
47
-73
5
-73

query II rowsort
SELECT - 34 AS col1, + col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + col1 + - + 82 * - col0 AND ( NULL )
----

query II rowsort
SELECT DISTINCT - - col0, + col2 * - + col0 AS col2 FROM tab0 cor0
----
15
-705
87
-870
97
-9603

query II rowsort
SELECT col2 AS col2, - col0 AS col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 59 col2, col2 FROM tab2 AS cor0
----
59
23
59
40
59
58

query III rowsort
SELECT + col0, + col0, + - col0 FROM tab0 AS cor0
----
9 values hashing to 917079b64bb82110ed4680dde2b51374

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT DISTINCT + COUNT( - 42 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7497
SELECT DISTINCT + COUNT ( - 42 ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 90 NOT IN ( - col1 * + + col0, - col2 * col2, - - col2 )
----

query I rowsort
SELECT col0 * col1 * - col1 + - col2 * col0 FROM tab2 cor0
----
-120704
-341025
-382016

onlyif mysql # aggregate syntax: 
query I rowsort label-7500
SELECT DISTINCT SUM( ALL + ( - 49 ) ) * - - 13 AS col0 FROM tab0 AS cor0
----
-1911

skipif mysql # not compatible
query I rowsort label-7500
SELECT DISTINCT SUM ( ALL + ( - 49 ) ) * - - 13 AS col0 FROM tab0 AS cor0
----
-1911

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 col1 FROM tab2 AS cor0 WHERE ( - col1 ) / + + col2 * 4 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL - col1 * + - 77 FROM tab0 AS cor0
----
1617
6237
77

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col2 + + + col1 IS NOT NULL
----

query I rowsort
SELECT - 18 + - - col1 * col2 AS col2 FROM tab0 AS cor0
----
192
3789
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7505
SELECT + 83 + 95 * col2 DIV - col2 - col1 FROM tab1
----
-17
-26
-59

skipif mysql # not compatible
query I rowsort label-7505
SELECT + 83 + 95 * col2 / - col2 - col1 FROM tab1
----
-17
-26
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-7506
SELECT COUNT( * ) - 96 AS col0 FROM tab2 WHERE - - col1 BETWEEN NULL AND NULL
----
-96

skipif mysql # not compatible
query I rowsort label-7506
SELECT COUNT ( * ) - 96 AS col0 FROM tab2 WHERE - - col1 BETWEEN NULL AND NULL
----
-96

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( NOT + 87 >= NULL )
----

query I rowsort
SELECT - 22 * + + col2 * col2 AS col0 FROM tab2
----
-11638
-35200
-74008

query II rowsort
SELECT DISTINCT col1, - col1 - col1 FROM tab2 AS cor0
----
51
-102
67
-134
77
-154

query I rowsort
SELECT ( + col2 ) - - 13 AS col2 FROM tab2 AS cor0
----
36
53
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7511
SELECT 60 - + - COUNT( * ) * COUNT( * ) FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7511
SELECT 60 - + - COUNT ( * ) * COUNT ( * ) FROM tab2 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-7512
SELECT ALL + - COUNT( * ) * + 67 AS col1 FROM tab1 AS cor0
----
-201

skipif mysql # not compatible
query I rowsort label-7512
SELECT ALL + - COUNT ( * ) * + 67 AS col1 FROM tab1 AS cor0
----
-201

query I rowsort
SELECT DISTINCT - ( - col1 ) AS col0 FROM tab0 WHERE NULL > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7514
SELECT ALL + 3 DIV - col0 AS col1 FROM tab2 WHERE + col0 * - ( 16 ) + 39 NOT BETWEEN ( - col2 ) AND col0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7514
SELECT ALL + 3 / - col0 AS col1 FROM tab2 WHERE + col0 * - ( 16 ) + 39 NOT BETWEEN ( - col2 ) AND col0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE ( NULL ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT col0 * - 62 FROM tab0
----
-5394
-6014
-930

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7517
SELECT DISTINCT CAST( NULL AS SIGNED ) / - col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7517
SELECT DISTINCT CAST ( NULL AS INTEGER ) / - col0 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7518
SELECT + 4 + + CAST( NULL AS SIGNED ) * - CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7518
SELECT + 4 + + CAST ( NULL AS INTEGER ) * - CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 51 + col0 AS col1 FROM tab0
----
138
148
66

query I rowsort
SELECT ALL - col2 * 89 FROM tab2
----
-2047
-3560
-5162

query I rowsort
SELECT ALL col0 - + 14 AS col2 FROM tab1 WHERE NOT col2 < col2
----
37
71
77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 * col0 NOT BETWEEN ( + 90 / 94 ) AND ( 63 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 55 BETWEEN - col1 AND ( + col2 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7524
SELECT CAST( 11 AS SIGNED ) - + col2 AS col2 FROM tab2 WHERE NOT 46 / + col1 IS NULL
----
-12
-29
-47

skipif mysql # not compatible
query I rowsort label-7524
SELECT CAST ( 11 AS INTEGER ) - + col2 AS col2 FROM tab2 WHERE NOT 46 / + col1 IS NULL
----
-12
-29
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 56 col1 FROM tab0
----
56

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7526
SELECT - col1 - CAST( NULL AS DECIMAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7526
SELECT - col1 - CAST ( NULL AS REAL ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7527
SELECT - 1 DIV COUNT( * ) AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7527
SELECT - 1 / COUNT ( * ) AS col2 FROM tab2
----
0

query I rowsort
SELECT DISTINCT col0 - col0 * col0 AS col1 FROM tab2
----
-2070
-4032
-5550

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) NOT IN ( + 1 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7530
SELECT DISTINCT MIN( DISTINCT + 69 ) AS col1 FROM tab1 WHERE ( 35 * col0 ) IS NOT NULL
----
69

skipif mysql # not compatible
query I rowsort label-7530
SELECT DISTINCT MIN ( DISTINCT + 69 ) AS col1 FROM tab1 WHERE ( 35 * col0 ) IS NOT NULL
----
69

query I rowsort
SELECT 86 - - col0 * - col1 AS col1 FROM tab2
----
-2260
-4842
-4939

onlyif mysql # aggregate syntax: 
query I rowsort label-7532
SELECT 29 + COUNT( * ) FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-7532
SELECT 29 + COUNT ( * ) FROM tab1
----
32

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL IN ( ( col2 ) / - col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7534
SELECT ALL - col1 DIV + 29 + 84 * col1 FROM tab1
----
1176
3947
420

skipif mysql # not compatible
query I rowsort label-7534
SELECT ALL - col1 / + 29 + 84 * col1 FROM tab1
----
1176
3947
420

query I rowsort
SELECT col1 * col0 - col0 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT NULL >= ( - ( ( col2 ) ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7536
SELECT * FROM tab2 WHERE NOT ( NULL ) = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-7536
SELECT * FROM tab2 WHERE NOT ( NULL ) = + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col1 ) NOT IN ( - 90 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 IN ( 46 )
----
64
77
40
75
67
58

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7539
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + 65 - CAST( - col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-7539
SELECT ALL * FROM tab0 WHERE NOT col1 NOT IN ( + 65 - CAST ( - col0 AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7540
SELECT + COUNT( * ) FROM tab2 WHERE NOT NULL = ( + CAST( NULL AS DECIMAL ) + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT + COUNT ( * ) FROM tab2 WHERE NOT NULL = ( + CAST ( NULL AS REAL ) + col2 )
----
0

query I rowsort
SELECT ALL - 55 * - col0 AS col0 FROM tab2
----
2530
3520
4125

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN ( - 21 + col2 ) AND NULL
----

query I rowsort
SELECT + col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + 11 AS col1 FROM tab2 AS cor0
----
11

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7545
SELECT ALL - - 61 + - COUNT( * ) DIV + SUM( - col1 + - col0 ) col1 FROM tab1 AS cor0
----
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7545
SELECT ALL - - 61 + - COUNT ( * ) / + SUM ( - col1 + - col0 ) col1 FROM tab1 AS cor0
----
61

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7546
SELECT - 87 DIV - MIN( DISTINCT + col2 * 26 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7546
SELECT - 87 / - MIN ( DISTINCT + col2 * 26 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7547
SELECT COUNT( DISTINCT + 64 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7547
SELECT COUNT ( DISTINCT + 64 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7548
SELECT ALL - CAST( NULL AS SIGNED ) + + 62 + AVG ( ALL + 70 ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7548
SELECT ALL - CAST ( NULL AS INTEGER ) + + 62 + AVG ( ALL + 70 ) FROM tab2
----
NULL

query I rowsort
SELECT col2 * + 83 + + ( + ( - col1 ) ) FROM tab2 WHERE NOT col0 NOT BETWEEN NULL AND ( NULL ) OR - col2 + + 73 IS NOT NULL
----
1858
3243
4747

query III rowsort
SELECT * FROM tab1 WHERE - col0 NOT BETWEEN ( + col0 ) AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7551
SELECT ALL - COUNT( + + col0 ) + 19 * 73 FROM tab2
----
1384

skipif mysql # not compatible
query I rowsort label-7551
SELECT ALL - COUNT ( + + col0 ) + 19 * 73 FROM tab2
----
1384

query I rowsort
SELECT - col1 + - 15 FROM tab0
----
-16
-36
-96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + 9 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 64 * 34 FROM tab0 WHERE + col0 NOT IN ( - ( - col2 ) )
----
2176
2176
2176

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7555
SELECT ALL - AVG ( CAST( NULL AS DECIMAL ) ) + ( 42 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7555
SELECT ALL - AVG ( CAST ( NULL AS REAL ) ) + ( 42 ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7556
SELECT DISTINCT - SUM( DISTINCT + col1 ) col1 FROM tab0 AS cor0 WHERE NULL <= + col1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7556
SELECT DISTINCT - SUM ( DISTINCT + col1 ) col1 FROM tab0 AS cor0 WHERE NULL <= + col1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7557
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + col1 > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7557
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + col1 > ( NULL )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7558
SELECT - 32 DIV col2 * 45 + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7558
SELECT - 32 / col2 * 45 + col1 AS col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT + ( - - col0 ) * - col1 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT ALL 4 + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7561
SELECT + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE ( col1 IS NULL )
----

skipif mysql # not compatible
query I rowsort label-7561
SELECT + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE ( col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + - 68 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-68

query I rowsort
SELECT ALL col2 * col0 - - 73 AS col1 FROM tab0
----
778
943
9676

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7564
SELECT CAST( NULL AS SIGNED ) * 9 - - col1 + + 10 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7564
SELECT CAST ( NULL AS INTEGER ) * 9 - - col1 + + 10 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7565
SELECT ALL - + col0 - + CAST( - CAST( - 77 AS SIGNED ) AS SIGNED ) FROM tab0 AS cor0
----
-164
-174
-92

skipif mysql # not compatible
query I rowsort label-7565
SELECT ALL - + col0 - + CAST ( - CAST ( - 77 AS INTEGER ) AS INTEGER ) FROM tab0 AS cor0
----
-164
-174
-92

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN - col1 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7567
SELECT ALL + + COUNT( + col1 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7567
SELECT ALL + + COUNT ( + col1 ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT ALL + + ( 12 ) AS col1 FROM tab2 AS cor0
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT - MAX( - 6 ) AS col2 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7569
SELECT - MAX ( - 6 ) AS col2 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7570
SELECT DISTINCT - + col0 * + CAST( + col2 AS SIGNED ) + col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

skipif mysql # not compatible
query I rowsort label-7570
SELECT DISTINCT - + col0 * + CAST ( + col2 AS INTEGER ) + col0 FROM tab1 AS cor0
----
-4845
-4930
-6097

query II rowsort
SELECT 31 AS col0, - ( - 88 ) + col1 AS col1 FROM tab2 AS cor0
----
31
139
31
155
31
165

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col2 <= - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( - 34 ) * + col1 + col2 * col2 FROM tab1 AS cor0
----
3651
6222
9692

onlyif mysql # aggregate syntax: 
query I rowsort label-7574
SELECT DISTINCT 79 * - MAX( - col2 ) AS col0 FROM tab1 AS cor0
----
4661

skipif mysql # not compatible
query I rowsort label-7574
SELECT DISTINCT 79 * - MAX ( - col2 ) AS col0 FROM tab1 AS cor0
----
4661

query I rowsort
SELECT + - col2 * 35 - col0 FROM tab0 AS cor0
----
-1660
-3562
-437

query I rowsort
SELECT DISTINCT - ( 85 ) * - 26 + + col1 AS col1 FROM tab0 AS cor0
----
2211
2231
2291

onlyif mysql # aggregate syntax: 
query I rowsort label-7577
SELECT + - COUNT( * ) * - MIN( ALL col2 ) FROM tab1 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7577
SELECT + - COUNT ( * ) * - MIN ( ALL col2 ) FROM tab1 AS cor0
----
177

onlyif mysql # DIV for integer division: 
query I rowsort label-7578
SELECT ALL 53 DIV - col0 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7578
SELECT ALL 53 / - col0 FROM tab2
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT + 1 BETWEEN - 91 / col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + + col2 BETWEEN col2 * + 40 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT ( + - 64 + col1 ) IN ( - ( - col1 ) + 5 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7582
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) AS col1 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-7582
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) AS col1 FROM tab2
----
9

query I rowsort
SELECT ALL - col1 * col2 * 62 FROM tab1
----
-18290
-198152
-83328

query I rowsort
SELECT DISTINCT ( - - 61 ) FROM tab2
----
61

onlyif mysql # DIV for integer division: 
query I rowsort label-7585
SELECT DISTINCT 27 DIV + 75 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7585
SELECT DISTINCT 27 / + 75 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7586
SELECT ALL COUNT( * ) DIV - 74 * - 92 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7586
SELECT ALL COUNT ( * ) / - 74 * - 92 AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7587
SELECT ( + 60 ) DIV - - col2 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7587
SELECT ( + 60 ) / - - col2 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT 24 * + 27 AS col1 FROM tab0 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7589
SELECT + - COUNT( + col2 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7589
SELECT + - COUNT ( + col2 ) AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7590
SELECT - SUM( ALL + col1 ) FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7590
SELECT - SUM ( ALL + col1 ) FROM tab1 AS cor0
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-7591
SELECT - 24 DIV + col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7591
SELECT - 24 / + col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7592
SELECT - + COUNT( col1 ) * 5 FROM tab2 cor0
----
-15

skipif mysql # not compatible
query I rowsort label-7592
SELECT - + COUNT ( col1 ) * 5 FROM tab2 cor0
----
-15

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > 0 + + + ( - col1 ) * + col1
----

query I rowsort
SELECT DISTINCT + col1 * + - col1 * + 91 AS col0 FROM tab2 AS cor0
----
-236691
-408499
-539539

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 + + col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 16 FROM ( tab2 AS cor0 CROSS JOIN tab2 cor1 )
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

query I rowsort
SELECT - 89 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 924a74d31360fa4301c953b423a4710e

query I rowsort
SELECT + col1 + col1 + col2 + + ( col2 + - col2 ) AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
125
192
194

query II rowsort
SELECT + - col2 + + 97 + - + col1 AS col2, + 66 + + col0 AS col2 FROM tab1 AS cor0
----
-13
117
-18
157
33
151

query I rowsort
SELECT ALL - - 68 * col2 * - col0 FROM tab2 AS cor0
----
-174080
-295800
-71944

onlyif mysql # aggregate syntax: 
query I rowsort label-7601
SELECT + MAX( ALL 25 ) + 44 AS col1 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-7601
SELECT + MAX ( ALL 25 ) + 44 AS col1 FROM tab2 AS cor0
----
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * 59 + - - ( - 0 ) col2 FROM tab1 AS cor0
----
3481
4012
5664

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 45 col0, + col1 FROM tab0 AS cor0
----
-45
1
-45
21
-45
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7604
SELECT + + 99 + - 11 * + col0 + + ( 87 ) + 68 DIV col2 FROM tab1 cor0
----
-375
-748
-814

skipif mysql # not compatible
query I rowsort label-7604
SELECT + + 99 + - 11 * + col0 + + ( 87 ) + 68 / col2 FROM tab1 cor0
----
-375
-748
-814

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7605
SELECT - CAST( NULL AS SIGNED ) + SUM( DISTINCT col0 ) AS col0, COUNT( * ) col0 FROM tab2 AS cor0
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7605
SELECT - CAST ( NULL AS INTEGER ) + SUM ( DISTINCT col0 ) AS col0, COUNT ( * ) col0 FROM tab2 AS cor0
----
NULL
3

query I rowsort
SELECT col0 * + + col0 * - 31 + - - 71 AS col2 FROM tab1 AS cor0
----
-223904
-256640
-80560

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - col0 ) > col0 + + 4
----

query I rowsort
SELECT ALL col0 * - col2 + 22 FROM tab1
----
-4874
-4993
-6166

query I rowsort
SELECT ALL - col2 FROM tab1 WHERE + col0 >= ( + - ( + col2 ) )
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7610
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7610
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0, tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( - ( - + col1 ) ) AS col0 FROM tab0
----
-1
-21
-81

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - 43 ) IS NULL
----

query I rowsort
SELECT 97 FROM tab2 WHERE - col0 IS NOT NULL
----
97
97
97

onlyif mysql # aggregate syntax: 
query II rowsort label-7614
SELECT - COUNT( * ) AS col1, 14 AS col0 FROM tab0
----
-3
14

skipif mysql # not compatible
query II rowsort label-7614
SELECT - COUNT ( * ) AS col1, 14 AS col0 FROM tab0
----
-3
14

onlyif mysql # aggregate syntax: 
query I rowsort label-7615
SELECT 20 * - MAX( + col1 ) * - ( - COUNT( * ) ) col2 FROM tab1
----
-2820

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7615
SELECT 20 * - MAX ( + col1 ) * - ( - COUNT ( * ) ) col2 FROM tab1
----
-2820

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, col1 + + col1 FROM tab0
----
10
42
47
162
99
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7617
SELECT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 + + ( col2 ) + + CAST( NULL AS DECIMAL ) / + col0 > 50 + + col0
----
0

skipif mysql # not compatible
query I rowsort label-7617
SELECT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + col2 + + ( col2 ) + + CAST ( NULL AS REAL ) / + col0 > 50 + + col0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 59 ) <= col2 + + 43 + + - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7619
SELECT - ( - CAST( NULL AS SIGNED ) ) + - col1, ( + - 58 ) AS col0 FROM tab0
----
NULL
-58
NULL
-58
NULL
-58

skipif mysql # not compatible
query II rowsort label-7619
SELECT - ( - CAST ( NULL AS INTEGER ) ) + - col1, ( + - 58 ) AS col0 FROM tab0
----
NULL
-58
NULL
-58
NULL
-58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7620
SELECT MIN( DISTINCT - + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7620
SELECT MIN ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7621
SELECT ALL - col0 * + CAST( + col0 AS SIGNED ) AS col0 FROM tab0 cor0
----
-225
-7569
-9409

skipif mysql # not compatible
query I rowsort label-7621
SELECT ALL - col0 * + CAST ( + col0 AS INTEGER ) AS col0 FROM tab0 cor0
----
-225
-7569
-9409

query I rowsort
SELECT ALL + col2 * ( col2 ) AS col2 FROM tab2 cor0
----
1600
3364
529

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + 60 + + col1 >= - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1, ( + col0 ) AS col1 FROM tab1
----
14
51
47
91
5
85

query I rowsort
SELECT ALL col1 * - 98 AS col1 FROM tab0
----
-2058
-7938
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 9 AS col2, 8 + - + 4 col1 FROM tab0
----
9
4
9
4
9
4

query I rowsort
SELECT ALL ( - - col0 ) FROM tab1 WHERE NOT - 59 <= ( + col0 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7628
SELECT 98 DIV + COUNT( * ) FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-7628
SELECT 98 / + COUNT ( * ) FROM tab0
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7629
SELECT DISTINCT - 96 * MAX( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7629
SELECT DISTINCT - 96 * MAX ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7630
SELECT DISTINCT ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7630
SELECT DISTINCT ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - - col0 * - - col0 + col2 AS col0, 74 * + col1 AS col0 FROM tab2 AS cor0
----
2139
3774
4136
5698
5683
4958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7632
SELECT - col2 + + 91 + + + col1 + - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, CAST( + 38 AS SIGNED ) + + - col0 )
----

skipif mysql # not compatible
query I rowsort label-7632
SELECT - col2 + + 91 + + + col1 + - col0 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, CAST ( + 38 AS INTEGER ) + + - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN - col0 * - + col2 AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7634
SELECT ( - col1 ) * col1 + - col0 + + col0 + - + 68 - col1 * CAST( col2 AS SIGNED ) + col1 * 51 * - col2 AS col2 FROM tab2 AS cor0
----
-166157
-206629
-63665

skipif mysql # not compatible
query I rowsort label-7634
SELECT ( - col1 ) * col1 + - col0 + + col0 + - + 68 - col1 * CAST ( col2 AS INTEGER ) + col1 * 51 * - col2 AS col2 FROM tab2 AS cor0
----
-166157
-206629
-63665

onlyif mysql # aggregate syntax: 
query I rowsort label-7635
SELECT DISTINCT - ( COUNT( * ) ) + 15 AS col0 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-7635
SELECT DISTINCT - ( COUNT ( * ) ) + 15 AS col0 FROM tab1
----
12

query I rowsort
SELECT + col0 * + + col2 * + col2 FROM tab1
----
295885
420784
470016

onlyif mysql # aggregate syntax: 
query I rowsort label-7637
SELECT ALL - COUNT( ALL - ( - 40 ) ) * - - SUM( + - 0 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7637
SELECT ALL - COUNT ( ALL - ( - 40 ) ) * - - SUM ( + - 0 ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7638
SELECT DISTINCT - - SUM( DISTINCT + col2 ) * 9 FROM tab1 AS cor0
----
2007

skipif mysql # not compatible
query I rowsort label-7638
SELECT DISTINCT - - SUM ( DISTINCT + col2 ) * 9 FROM tab1 AS cor0
----
2007

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col2 AND + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7640
SELECT ALL AVG ( CAST( - 41 AS SIGNED ) ) + + ( + COUNT( * ) ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7640
SELECT ALL AVG ( CAST ( - 41 AS INTEGER ) ) + + ( + COUNT ( * ) ) FROM tab2 AS cor0 WHERE NOT - col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7641
SELECT DISTINCT + - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT + - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE col1 + + + col2 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7642
SELECT * FROM tab1 AS cor0 WHERE + col0 < - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7642
SELECT * FROM tab1 AS cor0 WHERE + col0 < - CAST ( NULL AS REAL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7643
SELECT - 42 DIV 35 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

skipif mysql # not compatible
query I rowsort label-7643
SELECT - 42 / 35 + - col1 FROM tab0 AS cor0
----
-2
-22
-82

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 58 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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-7646
SELECT COUNT( - 39 ) - MIN( + ( - + col0 ) ) AS col1 FROM tab1 cor0
----
94

skipif mysql # not compatible
query I rowsort label-7646
SELECT COUNT ( - 39 ) - MIN ( + ( - + col0 ) ) AS col1 FROM tab1 cor0
----
94

query I rowsort
SELECT + 20 + - + col2 FROM tab0
----
-27
-79
10

query I rowsort
SELECT DISTINCT - ( + col1 ) + ( col2 ) FROM tab2
----
-28
-37
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-7649
SELECT + 28 * 12 DIV - + col0 + - col2 FROM tab0
----
-102
-13
-69

skipif mysql # not compatible
query I rowsort label-7649
SELECT + 28 * 12 / - + col0 + - col2 FROM tab0
----
-102
-13
-69

query I rowsort
SELECT ALL col1 + - - 69 AS col0 FROM tab1
----
116
74
83

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL BETWEEN NULL AND - 30
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7652
SELECT ALL * FROM tab0 WHERE - CAST( + col1 AS SIGNED ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-7652
SELECT ALL * FROM tab0 WHERE - CAST ( + col1 AS INTEGER ) < ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE col1 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 4 * - 26 = NULL
----

query I rowsort
SELECT ALL - ( 6 ) + - 65 + + col1 AS col2 FROM tab2 cor0
----
-20
-4
6

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7657
SELECT + MIN( DISTINCT + 20 ) col2 FROM tab2 cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7657
SELECT + MIN ( DISTINCT + 20 ) col2 FROM tab2 cor0
----
20

query I rowsort
SELECT - col0 * - ( + col1 ) FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7659
SELECT ALL MAX( ALL col2 ) AS col1 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-7659
SELECT ALL MAX ( ALL col2 ) AS col1 FROM tab2 AS cor0
----
58

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7660
SELECT + 72 DIV - CAST( NULL AS SIGNED ) + + + 25 AS col2, + col0 * + col1 + - ( + + ( ( + 81 ) ) ) DIV - col0 FROM tab1 cor0
----
NULL
425
NULL
4277
NULL
715

skipif mysql # not compatible
query II rowsort label-7660
SELECT + 72 / - CAST ( NULL AS INTEGER ) + + + 25 AS col2, + col0 * + col1 + - ( + + ( ( + 81 ) ) ) / - col0 FROM tab1 cor0
----
NULL
425
NULL
4277
NULL
715

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7662
SELECT SUM( DISTINCT + + col2 ) col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7662
SELECT SUM ( DISTINCT + + col2 ) col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT ( - 88 ) AS col0 FROM tab1 cor0
----
-88
-88
-88

query I rowsort
SELECT + col1 / - + col1 * + - col1 / + 38 FROM tab2 AS cor0 WHERE NOT - 16 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7665
SELECT DISTINCT - 64, - 12 - + - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-64
-9

skipif mysql # not compatible
query II rowsort label-7665
SELECT DISTINCT - 64, - 12 - + - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-64
-9

query II rowsort
SELECT DISTINCT - - col2 * + ( col2 ), col0 FROM tab2 WHERE - - col2 + - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7667
SELECT ALL 0 * COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7667
SELECT ALL 0 * COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT + + 87 FROM tab1 WHERE NOT NULL < + 87
----

query I rowsort
SELECT ALL + col1 * - + col1 AS col0 FROM tab2
----
-2601
-4489
-5929

query III rowsort
SELECT * FROM tab0 WHERE NOT - col1 / - col0 BETWEEN NULL AND - 59
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-7671
SELECT - col0 DIV + ( col0 ) AS col1 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7671
SELECT - col0 / + ( col0 ) AS col1 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7672
SELECT DISTINCT + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-7672
SELECT DISTINCT + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT ALL + col1 + + 84 FROM tab1
----
131
89
98

query I rowsort
SELECT + col1 * - col1 + + col1 + - ( + col2 ) FROM tab2
----
-2573
-4480
-5892

query III rowsort
SELECT * FROM tab1 WHERE - 61 = NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7676
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( CAST( + col2 AS DECIMAL ) ) > + col1 AND NOT ( NULL ) > NULL
----

skipif mysql # not compatible
query I rowsort label-7676
SELECT DISTINCT + col2 AS col0 FROM tab0 WHERE NOT ( CAST ( + col2 AS REAL ) ) > + col1 AND NOT ( NULL ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7677
SELECT + 70 + - MAX( + + col0 ) AS col1 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-7677
SELECT + 70 + - MAX ( + + col0 ) AS col1 FROM tab1
----
-21

query I rowsort
SELECT + 49 + - + col1 * col1 + - 65 FROM tab0 AS cor0
----
-17
-457
-6577

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT NULL <= 79
----

query I rowsort
SELECT ALL + + col1 - - 58 * - + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - + col0 IS NOT NULL )
----

query I rowsort
SELECT + 5 + col2 + + col0 + - ( col1 ) + + + col0 * col0 AS col2 FROM tab1 AS cor0
----
2739
7369
8398

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 9 col2, + col2 * - col2 AS col1 FROM tab2 AS cor0
----
9
-1600
9
-3364
9
-529

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7683
SELECT - 14 DIV col1 - + CAST( - 4 AS SIGNED ) + - + col0 AS col2 FROM tab2 AS cor0
----
-42
-60
-71

skipif mysql # not compatible
query I rowsort label-7683
SELECT - 14 / col1 - + CAST ( - 4 AS INTEGER ) + - + col0 AS col2 FROM tab2 AS cor0
----
-42
-60
-71

query II rowsort
SELECT DISTINCT col2, col0 * + 26 FROM tab2 cor0
----
23
1196
40
1664
58
1950

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT ( NOT ( NULL ) <> + col2 ) )
----

query I rowsort
SELECT ALL - col1 + + ( - - col2 ) + + + 21 * - col0 FROM tab0
----
-1838
-1939
-349

query I rowsort
SELECT DISTINCT + ( - col1 ) + - - 54 FROM tab2
----
-13
-23
3

query I rowsort
SELECT + 7 - - 12 + + col2 FROM tab0 WHERE + 68 < ( - ( - - ( col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7689
SELECT MIN( DISTINCT - - col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7689
SELECT MIN ( DISTINCT - - col1 ) AS col1 FROM tab0
----
1

query I rowsort
SELECT ALL col0 * - 46 * - + col1 + col2 FROM tab2
----
107939
226728
231208

query I rowsort
SELECT 12 - + - 17 AS col1 FROM tab2
----
29
29
29

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col2 < 72 + 82 * - col2 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - col2 - + 82 AS col1 FROM tab2
----
-105
-122
-140

query II rowsort
SELECT DISTINCT - - col2 - 49 AS col2, col0 FROM tab0 AS cor0
----
-2
15
-39
87
50
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7695
SELECT DISTINCT + + SUM( ALL col0 ) - - 89 AS col2 FROM tab1 AS cor0
----
316

skipif mysql # not compatible
query I rowsort label-7695
SELECT DISTINCT + + SUM ( ALL col0 ) - - 89 AS col2 FROM tab1 AS cor0
----
316

onlyif mysql # aggregate syntax: 
query I rowsort label-7696
SELECT DISTINCT + SUM( DISTINCT 35 ) FROM tab0 AS cor0
----
35

skipif mysql # not compatible
query I rowsort label-7696
SELECT DISTINCT + SUM ( DISTINCT 35 ) FROM tab0 AS cor0
----
35

query I rowsort
SELECT ALL col2 * col0 * - col1 FROM tab2 AS cor0
----
-197120
-291450
-53958

onlyif mysql # aggregate syntax: 
query I rowsort label-7698
SELECT DISTINCT 74 * - COUNT( * ) FROM tab1 AS cor0
----
-222

skipif mysql # not compatible
query I rowsort label-7698
SELECT DISTINCT 74 * - COUNT ( * ) FROM tab1 AS cor0
----
-222

onlyif mysql # aggregate syntax: 
query II rowsort label-7699
SELECT ALL COUNT( * ), 19 AS col2 FROM tab2
----
3
19

skipif mysql # not compatible
query II rowsort label-7699
SELECT ALL COUNT ( * ), 19 AS col2 FROM tab2
----
3
19

onlyif mysql # DIV for integer division: 
query I rowsort label-7700
SELECT col0 DIV 19 FROM tab0
----
0
4
5

skipif mysql # not compatible
query I rowsort label-7700
SELECT col0 / 19 FROM tab0
----
0
4
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + ( - 4 ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6fec965b60b9885c4af73e85422cfd9b

onlyif mysql # aggregate syntax: 
query I rowsort label-7702
SELECT ALL + + ( + - COUNT( * ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-7702
SELECT ALL + + ( + - COUNT ( * ) ) AS col2 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7703
SELECT DISTINCT + - MIN( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7703
SELECT DISTINCT + - MIN ( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
47

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 * - ( + col2 ) - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL <= 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7706
SELECT ALL COUNT( ALL + - col1 ) col1 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7706
SELECT ALL COUNT ( ALL + - col1 ) col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT - COUNT( ALL - 2 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-7707
SELECT - COUNT ( ALL - 2 ) FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7708
SELECT DISTINCT ( + + SUM( + + ( - col1 ) ) ) AS col1 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-7708
SELECT DISTINCT ( + + SUM ( + + ( - col1 ) ) ) AS col1 FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query I rowsort label-7709
SELECT ALL - COUNT( * ) + COUNT( 37 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7709
SELECT ALL - COUNT ( * ) + COUNT ( 37 ) FROM tab1
----
0

query II rowsort
SELECT DISTINCT - 0, 59 + - col1 AS col2 FROM tab0
----
0
-22
0
38
0
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 AS col0, - col1 col2 FROM tab2
----
63
-51
63
-67
63
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + - col2 ) col2 FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT ALL + col2 * 50 FROM tab2 cor0
----
1150
2000
2900

onlyif mysql # aggregate syntax: 
query I rowsort label-7714
SELECT DISTINCT + SUM( - - col1 ) AS col1 FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-7714
SELECT DISTINCT + SUM ( - - col1 ) AS col1 FROM tab2 AS cor0
----
195

onlyif mysql # aggregate syntax: 
query I rowsort label-7715
SELECT ALL - + 12 * COUNT( * ) * + COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-972

skipif mysql # not compatible
query I rowsort label-7715
SELECT ALL - + 12 * COUNT ( * ) * + COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-972

query I rowsort
SELECT ALL - ( - ( - 65 ) ) + - 64 FROM tab2
----
-129
-129
-129

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col0 + col0 * + col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( 17 ) AS col2 FROM tab2 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT - + COUNT( ALL + col1 ) - + - COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7719
SELECT - + COUNT ( ALL + col1 ) - + - COUNT ( * ) FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7720
SELECT + - 88 - + MAX( + 76 ) AS col0 FROM tab2 AS cor0
----
-164

skipif mysql # not compatible
query I rowsort label-7720
SELECT + - 88 - + MAX ( + 76 ) AS col0 FROM tab2 AS cor0
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7721
SELECT - col0 * - CAST( - - 90 AS SIGNED ) + col0 * - CAST( col1 AS SIGNED ) + - col1 AS col0 FROM tab1 AS cor0
----
3862
3866
7220

skipif mysql # not compatible
query I rowsort label-7721
SELECT - col0 * - CAST ( - - 90 AS INTEGER ) + col0 * - CAST ( col1 AS INTEGER ) + - col1 AS col0 FROM tab1 AS cor0
----
3862
3866
7220

query I rowsort
SELECT - col0 + ( 33 ) + + + col0 AS col1 FROM tab2 AS cor0
----
33
33
33

query I rowsort
SELECT + col2 + - - ( col0 ) FROM tab0 AS cor0
----
196
62
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 NOT BETWEEN NULL AND 90
----
51
14
96

query I rowsort
SELECT DISTINCT col1 * col2 * + - col2 FROM tab2
----
-123200
-225388
-26979

query I rowsort
SELECT DISTINCT - - col0 FROM tab2 WHERE NOT col0 = + col0
----

query I rowsort
SELECT ALL - col0 + + + 33 FROM tab0
----
-54
-64
18

query I rowsort
SELECT DISTINCT - 27 * - 28 AS col0 FROM tab0
----
756

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

query I rowsort
SELECT DISTINCT + 7 * + 54 + col2 + - - col0 FROM tab2
----
447
482
511

query I rowsort
SELECT ALL 33 * + + 61 * 20 AS col0 FROM tab1 AS cor0
----
40260
40260
40260

query II rowsort
SELECT DISTINCT 32 * + + col1 AS col0, col2 FROM tab0
----
2592
47
32
99
672
10

query I rowsort
SELECT ALL - 36 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query I rowsort
SELECT - ( + col0 ) * - col0 * - ( + col2 ) FROM tab2 AS cor0
----
-163840
-326250
-48668

query I rowsort
SELECT DISTINCT - col1 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-14
-47
-5

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 * + + col1 + - 65 = - - col2 + - col2
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7737
SELECT ALL COUNT( - + 89 ), + COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-7737
SELECT ALL COUNT ( - + 89 ), + COUNT ( * ) FROM tab0 AS cor0
----
3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col1 / - 36 - + + 46 < + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7739
SELECT + + COUNT( * ) + - - COUNT( ALL + 89 ) AS col2 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7739
SELECT + + COUNT ( * ) + - - COUNT ( ALL + 89 ) AS col2 FROM tab1 AS cor0
----
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7740
SELECT + CAST( 4 AS DECIMAL ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-7740
SELECT + CAST ( 4 AS REAL ) FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - ( + 31 ) FROM tab0
----
-31
-31
-31

query I rowsort
SELECT 59 * - 48 AS col0 FROM tab2 AS cor0
----
-2832
-2832
-2832

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + - 12 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 15 * + col2 * + 54 AS col2 FROM tab0 AS cor0
----
-38070
-80190
-8100

query II rowsort
SELECT col1 * + col2 AS col1, col2 AS col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
210
10
3807
47
99
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 + - - 59 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 * - + col0 col2 FROM tab0 AS cor0
----
-150
-870
-970

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 84 IN ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7749
SELECT DISTINCT - CAST( col2 AS SIGNED ) + + col0 AS col0 FROM tab0
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT - CAST ( col2 AS INTEGER ) + + col0 AS col0 FROM tab0
----
-2
-32
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7750
SELECT * FROM tab0 AS cor0 WHERE - CAST( - col2 AS SIGNED ) / - col0 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7750
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - col2 AS INTEGER ) / - col0 + + + col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 + - 69 FROM tab1 AS cor0
----
-22
-55
-64

query II rowsort
SELECT ALL col2 AS col0, + 60 FROM tab0 cor0
----
10
60
47
60
99
60

query I rowsort
SELECT DISTINCT - - col0 - - col1 - col0 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT DISTINCT col1 * - + 10 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 1 col0 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - 31 * - - col2 AS col1 FROM tab1 AS cor0
----
-1829
-2108
-2976

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 >= + + 90
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col1 * ( - 41 ) AS col2 FROM tab0 AS cor0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: 
query I rowsort label-7759
SELECT - 45 - COUNT( * ) FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-7759
SELECT - 45 - COUNT ( * ) FROM tab0
----
-48

query I rowsort
SELECT ALL - ( - + 77 ) FROM tab0
----
77
77
77

query II rowsort
SELECT 35 * - col0 AS col2, col0 * col1 AS col0 FROM tab0
----
-3045
1827
-3395
97
-525
1215

query II rowsort
SELECT - 29 * col2 AS col0, col0 AS col0 FROM tab0
----
-1363
15
-2871
97
-290
87

query I rowsort
SELECT ALL ( + - 88 ) FROM tab0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + + 17 ) FROM tab2
----
-17

query II rowsort
SELECT ALL col1 AS col2, col0 AS col1 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7767
SELECT + col0 * - + CAST( - - col1 AS SIGNED ) * col0 + - col2 FROM tab1
----
-36184
-36510
-389275

skipif mysql # not compatible
query I rowsort label-7767
SELECT + col0 * - + CAST ( - - col1 AS INTEGER ) * col0 + - col2 FROM tab1
----
-36184
-36510
-389275

query IIIIII rowsort
SELECT ALL * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT - COUNT( * ) * - 22 AS col2 FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT - COUNT ( * ) * - 22 AS col2 FROM tab0
----
66

onlyif mysql # DIV for integer division: 
query I rowsort label-7770
SELECT - 63 DIV - + col1 FROM tab0
----
0
3
63

skipif mysql # not compatible
query I rowsort label-7770
SELECT - 63 / - + col1 FROM tab0
----
0
3
63

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-7771
SELECT DISTINCT + CAST( - CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7771
SELECT DISTINCT + CAST ( - CAST ( NULL AS INTEGER ) AS REAL ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7772
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= + CAST( - - 18 AS SIGNED ) + - col1 * + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7772
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <= + CAST ( - - 18 AS INTEGER ) + - col1 * + 47
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( col0 ) * - col2 * + - 24 AS col0 FROM tab2 AS cor0
----
104400
25392
61440

onlyif mysql # aggregate syntax: 
query I rowsort label-7774
SELECT + MAX( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-7774
SELECT + MAX ( ALL + col1 ) AS col0 FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7775
SELECT CAST( - col0 AS SIGNED ) AS col2, - 34 + - 12 AS col2 FROM tab0
----
-15
-46
-87
-46
-97
-46

skipif mysql # not compatible
query II rowsort label-7775
SELECT CAST ( - col0 AS INTEGER ) AS col2, - 34 + - 12 AS col2 FROM tab0
----
-15
-46
-87
-46
-97
-46

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7776
SELECT ALL COUNT( ALL + 77 ) + - COUNT( DISTINCT col2 ) AS col0, + 26 DIV 26 FROM tab2
----
0
1

skipif mysql # not compatible
query II rowsort label-7776
SELECT ALL COUNT ( ALL + 77 ) + - COUNT ( DISTINCT col2 ) AS col0, + 26 / 26 FROM tab2
----
0
1

query I rowsort
SELECT 33 + - col0 * col2 AS col1 FROM tab1
----
-4863
-4982
-6155

query I rowsort
SELECT 31 * 44 + + col1 * - - col2 * + 21 - - col0 FROM tab1
----
29639
68571
7644

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7779
SELECT DISTINCT + CAST( - 54 AS SIGNED ) + - col0 + - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7779
SELECT DISTINCT + CAST ( - 54 AS INTEGER ) + - col0 + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT + ( + - ( 67 ) ) FROM tab2
----
-67

query I rowsort
SELECT ALL 17 + - - col2 - - + 31 AS col2 FROM tab2
----
106
71
88

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 44 >= NULL
----

query I rowsort
SELECT - col0 * 94 * + 9 * + col0 FROM tab1 AS cor0
----
-2200446
-6112350
-7005726

query I rowsort
SELECT + col2 * col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7785
SELECT + MAX( - col1 ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7785
SELECT + MAX ( - col1 ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT - 58 - - - col2 FROM tab1 AS cor0
----
-117
-126
-154

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * col0 + + + 60 col0 FROM tab2 AS cor0
----
2406
4988
5085

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NULL <> NULL
----

query I rowsort
SELECT + + ( + 65 ) - - col0 AS col1 FROM tab1 AS cor0
----
116
150
156

onlyif mysql # aggregate syntax: 
query I rowsort label-7790
SELECT DISTINCT COUNT( * ) - + 60 - - - ( ( + + 32 ) ) AS col0 FROM tab1 AS cor0
----
-89

skipif mysql # not compatible
query I rowsort label-7790
SELECT DISTINCT COUNT ( * ) - + 60 - - - ( ( + + 32 ) ) AS col0 FROM tab1 AS cor0
----
-89

query I rowsort
SELECT - + col0 + - - 46 FROM tab1 cor0
----
-39
-45
-5

query I rowsort
SELECT 25 * + + 13 FROM tab1
----
325
325
325

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT ALL + AVG ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7793
SELECT ALL + AVG ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0
----
NULL

query II rowsort
SELECT DISTINCT + col0, - col0 FROM tab2
----
46
-46
64
-64
75
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 63 ) <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 + + 74 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1, col0 col2 FROM tab1
----
-14
51
-47
91
-5
85

query III rowsort
SELECT * FROM tab0 WHERE NOT 56 <= NULL
----

query I rowsort
SELECT ALL 26 * - 64 AS col1 FROM tab0
----
-1664
-1664
-1664

query II rowsort
SELECT DISTINCT col1, col2 * + col1 AS col0 FROM tab1
----
14
1344
47
3196
5
295

query II rowsort
SELECT DISTINCT col1 AS col1, - col0 FROM tab0
----
1
-97
21
-87
81
-15

query II rowsort
SELECT + 0 AS col1, col2 AS col2 FROM tab0 AS cor0
----
0
10
0
47
0
99

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-7803
SELECT ALL - col2 * + col0 AS col0, - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

skipif mysql # not compatible
query II rowsort label-7803
SELECT ALL - col2 * + col0 AS col0, - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
-4896
NULL
-5015
NULL
-6188
NULL

query III rowsort
SELECT col0, ( + - 90 ) + 74, + col2 FROM tab0 AS cor0
----
9 values hashing to 839e50eaf5479b16c8fba75366910af8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7805
SELECT DISTINCT + SUM( + + 89 ) DIV + 59 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-7805
SELECT DISTINCT + SUM ( + + 89 ) / + 59 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
13

query III rowsort
SELECT * FROM tab1 WHERE NOT ( 87 + - col0 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7807
SELECT - COUNT( * ) + + - 61 FROM tab0 cor0
----
-64

skipif mysql # not compatible
query I rowsort label-7807
SELECT - COUNT ( * ) + + - 61 FROM tab0 cor0
----
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-7808
SELECT DISTINCT + 95 * - 73 * + COUNT( * ) FROM tab1 AS cor0
----
-20805

skipif mysql # not compatible
query I rowsort label-7808
SELECT DISTINCT + 95 * - 73 * + COUNT ( * ) FROM tab1 AS cor0
----
-20805

query I rowsort
SELECT + + col0 + + 1 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7810
SELECT - COUNT( * ) + 89 AS col1 FROM tab1 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-7810
SELECT - COUNT ( * ) + 89 AS col1 FROM tab1 AS cor0
----
86

query I rowsort
SELECT - col1 * + col0 * + 38 + + 95 FROM tab2 AS cor0
----
-187169
-190855
-89053

query I rowsort
SELECT ALL - col1 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * - - 65 + + col1 col1 FROM tab2 AS cor0
----
-3264
-4288
-4928

query I rowsort
SELECT + ( + col2 ) + + + 40 FROM tab1 AS cor0
----
108
136
99

onlyif mysql # aggregate syntax: 
query I rowsort label-7815
SELECT ALL SUM( - 51 ) FROM tab1 cor0 WHERE col1 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7815
SELECT ALL SUM ( - 51 ) FROM tab1 cor0 WHERE col1 > NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7816
SELECT DISTINCT + SUM( ALL + + CAST( NULL AS SIGNED ) ) * - 17 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7816
SELECT DISTINCT + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) * - 17 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col0 + + col1 + + - col2 FROM tab0 AS cor0 WHERE - col0 NOT BETWEEN + col2 AND + 94
----
-1
49
98

query I rowsort
SELECT + - col0 AS col1 FROM tab1 WHERE - 45 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7819
SELECT ALL * FROM tab0 WHERE NULL IN ( - - CAST( NULL AS SIGNED ), col1 + - - col1 + 40 * - ( 56 ) * + 13, - col0 * + - col2 )
----

skipif mysql # not compatible
query III rowsort label-7819
SELECT ALL * FROM tab0 WHERE NULL IN ( - - CAST ( NULL AS INTEGER ), col1 + - - col1 + 40 * - ( 56 ) * + 13, - col0 * + - col2 )
----

query I rowsort
SELECT DISTINCT 13 * - - col1 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7821
SELECT ALL MAX( ( + 53 ) ) * COUNT( * ) + + - 54 AS col0 FROM tab0
----
105

skipif mysql # not compatible
query I rowsort label-7821
SELECT ALL MAX ( ( + 53 ) ) * COUNT ( * ) + + - 54 AS col0 FROM tab0
----
105

onlyif mysql # aggregate syntax: 
query I rowsort label-7822
SELECT - COUNT( - col0 ) col0 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7822
SELECT - COUNT ( - col0 ) col0 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT - + col1 * + + col2 FROM tab1 AS cor0
----
-1344
-295
-3196

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 cor0 WHERE NOT - 28 + - - col0 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7825
SELECT * FROM tab0 WHERE CAST( NULL AS DECIMAL ) * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7825
SELECT * FROM tab0 WHERE CAST ( NULL AS REAL ) * col0 IS NOT NULL
----

query I rowsort
SELECT + 83 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7827
SELECT DISTINCT * FROM tab2 WHERE NOT col2 >= + CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-7827
SELECT DISTINCT * FROM tab2 WHERE NOT col2 >= + CAST ( NULL AS REAL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7828
SELECT ALL ( + MAX( + 26 ) ) DIV SUM( - col0 ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7828
SELECT ALL ( + MAX ( + 26 ) ) / SUM ( - col0 ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7829
SELECT DISTINCT CAST( col1 AS SIGNED ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7829
SELECT DISTINCT CAST ( col1 AS INTEGER ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7830
SELECT ALL CAST( + + col1 AS SIGNED ) * + + col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE 72 IS NOT NULL
----
129024
17405
217328

skipif mysql # not compatible
query I rowsort label-7830
SELECT ALL CAST ( + + col1 AS INTEGER ) * + + col2 * + col2 AS col1 FROM tab1 AS cor0 WHERE 72 IS NOT NULL
----
129024
17405
217328

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT 89 IS NOT NULL
----

query II rowsort
SELECT + col2 AS col1, + 16 AS col2 FROM tab2
----
23
16
40
16
58
16

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT ( - COUNT( * ) ) col0 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7833
SELECT ( - COUNT ( * ) ) col0 FROM tab0
----
-3

query I rowsort
SELECT ALL ( - - col1 ) AS col2 FROM tab0
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 col2 FROM tab0
----
-225
-7569
-9409

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT 42 * + MAX( - col1 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-7836
SELECT 42 * + MAX ( - col1 ) FROM tab0
----
-42

query I rowsort
SELECT ALL + 99 AS col0 FROM tab2 WHERE NULL BETWEEN NULL AND + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7838
SELECT ALL + + col0 DIV + + col2 + - 0 * - col2 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-7838
SELECT ALL + + col0 / + + col2 + - 0 * - col2 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7839
SELECT DISTINCT 7 * + + ( - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) / - 64 - - + 86 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7839
SELECT DISTINCT 7 * + + ( - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) / - 64 - - + 86 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL col0, col0 * - col2 AS col0 FROM tab0 AS cor0
----
15
-705
87
-870
97
-9603

query I rowsort
SELECT ALL - col1 * + + ( + 39 ) * - col2 FROM tab0 cor0
----
148473
3861
8190

query II rowsort
SELECT DISTINCT - - ( + col2 ) AS col1, col1 FROM tab0 AS cor0 WHERE NOT 36 IS NULL
----
10
21
47
81
99
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7843
SELECT DISTINCT COUNT( * ) + - 22 FROM tab2 cor0 WHERE NULL IS NULL
----
-19

skipif mysql # not compatible
query I rowsort label-7843
SELECT DISTINCT COUNT ( * ) + - 22 FROM tab2 cor0 WHERE NULL IS NULL
----
-19

query I rowsort
SELECT + + col0 * + 28 AS col1 FROM tab0 AS cor0
----
2436
2716
420

query II rowsort
SELECT ALL 9 + + col0 AS col2, 85 FROM tab1
----
100
85
60
85
94
85

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7846
SELECT - CAST( + COUNT( * ) AS SIGNED ) * 90 + ( COUNT( col1 ) ) * - COUNT( * ) FROM tab1
----
-279

skipif mysql # not compatible
query I rowsort label-7846
SELECT - CAST ( + COUNT ( * ) AS INTEGER ) * 90 + ( COUNT ( col1 ) ) * - COUNT ( * ) FROM tab1
----
-279

query I rowsort
SELECT col2 + - col1 * - col0 + col0 FROM tab2
----
2415
5032
5158

onlyif mysql # DIV for integer division: 
query I rowsort label-7848
SELECT DISTINCT 68 DIV + col0 + + - 65 + - - col2 col0 FROM tab0
----
-14
-55
34

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7848
SELECT DISTINCT 68 / + col0 + + - 65 + - - col2 col0 FROM tab0
----
-14
-55
34

query II rowsort
SELECT col1 + + col0 AS col2, + 4 FROM tab0
----
108
4
96
4
98
4

onlyif mysql # aggregate syntax: 
query I rowsort label-7850
SELECT COUNT( * ) FROM tab1 WHERE NULL >= 85
----
0

skipif mysql # not compatible
query I rowsort label-7850
SELECT COUNT ( * ) FROM tab1 WHERE NULL >= 85
----
0

query I rowsort
SELECT DISTINCT + col1 + + col1 + + col1 + 95 * + col1 * + col0 AS col2 FROM tab0
----
115668
173628
9218

query I rowsort
SELECT DISTINCT + ( - 39 ) - col2 + + + col1 * + - col2 FROM tab2
----
-1235
-3159
-3983

query III rowsort
SELECT * FROM tab0 WHERE - col1 <> + col2 / + 25
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7854
SELECT - + CAST( NULL AS DECIMAL ) AS col0 FROM tab1 WHERE NULL < col0
----

skipif mysql # not compatible
query I rowsort label-7854
SELECT - + CAST ( NULL AS REAL ) AS col0 FROM tab1 WHERE NULL < col0
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( + - col2, + 43, col0 + + - 37, - + 85, + col2 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7856
SELECT DISTINCT + CAST( NULL AS DECIMAL ) / 83 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7856
SELECT DISTINCT + CAST ( NULL AS REAL ) / 83 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7857
SELECT ALL SUM( - + 90 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-270

skipif mysql # not compatible
query I rowsort label-7857
SELECT ALL SUM ( - + 90 ) AS col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-270

query I rowsort
SELECT + col0 * - + 57 FROM tab1 AS cor0
----
-2907
-4845
-5187

onlyif mysql # aggregate syntax: 
query I rowsort label-7859
SELECT + + MIN( DISTINCT + + 59 ) FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
59

skipif mysql # not compatible
query I rowsort label-7859
SELECT + + MIN ( DISTINCT + + 59 ) FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7860
SELECT ALL + - ( + MIN( DISTINCT - + 16 ) ) FROM tab0 WHERE - + 98 NOT BETWEEN NULL AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7860
SELECT ALL + - ( + MIN ( DISTINCT - + 16 ) ) FROM tab0 WHERE - + 98 NOT BETWEEN NULL AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7861
SELECT col0 AS col2, + 84 * - + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-7861
SELECT col0 AS col2, + 84 * - + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7862
SELECT + - SUM( + - col0 ) FROM tab1 cor0
----
227

skipif mysql # not compatible
query I rowsort label-7862
SELECT + - SUM ( + - col0 ) FROM tab1 cor0
----
227

query I rowsort
SELECT DISTINCT - ( ( col0 ) ) AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # DIV for integer division: 
query II rowsort label-7864
SELECT - + col2, 8 DIV + 59 + - 60 AS col1 FROM tab0 AS cor0
----
-10
-60
-47
-60
-99
-60

skipif mysql # not compatible
query II rowsort label-7864
SELECT - + col2, 8 / + 59 + - 60 AS col1 FROM tab0 AS cor0
----
-10
-60
-47
-60
-99
-60

query I rowsort
SELECT DISTINCT ( + 3 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7866
SELECT DISTINCT MIN( CAST( + col2 AS SIGNED ) ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-7866
SELECT DISTINCT MIN ( CAST ( + col2 AS INTEGER ) ) FROM tab1 AS cor0
----
59

query II rowsort
SELECT - col2 AS col0, + col0 AS col2 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL - col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
-59
-68
-96

query II rowsort
SELECT - + 95 AS col0, col1 AS col2 FROM tab0 cor0
----
-95
1
-95
21
-95
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7870
SELECT ALL COUNT( - 46 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7870
SELECT ALL COUNT ( - 46 ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7871
SELECT ALL + SUM( - 94 ) FROM tab0
----
-282

skipif mysql # not compatible
query I rowsort label-7871
SELECT ALL + SUM ( - 94 ) FROM tab0
----
-282

onlyif mysql # aggregate syntax: 
query I rowsort label-7872
SELECT - COUNT( * ) * - - 44 FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-7872
SELECT - COUNT ( * ) * - - 44 FROM tab1
----
-132

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT + + col1 + col0 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-7874
SELECT col2 DIV + - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-7874
SELECT col2 / + - col0 AS col0 FROM tab1 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( - - col2 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT col0 * + - ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE col1 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7877
SELECT DISTINCT COUNT( * ) * + 55 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-7877
SELECT DISTINCT COUNT ( * ) * + 55 FROM tab2
----
165

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT - COUNT( * ) * + + 34 + - 19 AS col2 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-7878
SELECT - COUNT ( * ) * + + 34 + - 19 AS col2 FROM tab2 cor0
----
-121

query I rowsort
SELECT ALL - + col0 + - - 28 AS col2 FROM tab0 AS cor0
----
-59
-69
13

query I rowsort
SELECT - - 56 + + col2 FROM tab0 AS cor0
----
103
155
66

query I rowsort
SELECT + 71 + - + 21 AS col0 FROM tab2 AS cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-7882
SELECT DISTINCT COUNT( - 37 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-7882
SELECT DISTINCT COUNT ( - 37 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT DISTINCT MAX( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7883
SELECT DISTINCT MAX ( DISTINCT - col2 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7884
SELECT ALL col1 * col1 AS col0, 50 + + + col2 DIV - - col0 FROM tab2
----
2601
50
4489
50
5929
50

skipif mysql # not compatible
query II rowsort label-7884
SELECT ALL col1 * col1 AS col0, 50 + + + col2 / - - col0 FROM tab2
----
2601
50
4489
50
5929
50

query I rowsort
SELECT DISTINCT col1 * + ( - col2 ) + col0 - - + col0 AS col2 FROM tab2
----
-1081
-2952
-3736

query III rowsort
SELECT * FROM tab1 WHERE + col2 + - - 26 + col1 + col2 * - 50 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7887
SELECT ALL + ( + - 91 ) + COUNT( * ) AS col0 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-7887
SELECT ALL + ( + - 91 ) + COUNT ( * ) AS col0 FROM tab1
----
-88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7888
SELECT 11, + 28 + + ( - + ( - 18 ) ) + - col2 DIV col1 + - CAST( + col1 AS SIGNED ) AS col2 FROM tab0
----
11
-35
11
-54
11
25

skipif mysql # not compatible
query II rowsort label-7888
SELECT 11, + 28 + + ( - + ( - 18 ) ) + - col2 / col1 + - CAST ( + col1 AS INTEGER ) AS col2 FROM tab0
----
11
-35
11
-54
11
25

query I rowsort
SELECT + col2 * + col1 - + col0 FROM tab1
----
1293
210
3105

query I rowsort
SELECT ALL ( + + ( + - col0 ) ) FROM tab1 AS cor0
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - - COUNT( * ) - - 13 + 70 * + 26 AS col1 FROM tab0 cor0
----
1836

skipif mysql # not compatible
query I rowsort label-7891
SELECT - - COUNT ( * ) - - 13 + 70 * + 26 AS col1 FROM tab0 cor0
----
1836

query I rowsort
SELECT DISTINCT - col1 - 48 * + col2 * - col0 FROM tab2 cor0
----
122803
208733
50733

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 2 > ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 cor0 WHERE - col0 * - col1 > - ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 83 * - - col1 FROM tab1
----
-1162
-3901
-415

query III rowsort
SELECT * FROM tab2 WHERE NOT - 28 BETWEEN + - 26 AND ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL 11 * - MIN( ALL - col1 ) AS col2 FROM tab1
----
517

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL 11 * - MIN ( ALL - col1 ) AS col2 FROM tab1
----
517

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7898
SELECT DISTINCT - 33 DIV - MAX( 29 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7898
SELECT DISTINCT - 33 / - MAX ( 29 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT + 91 * col2 AS col1 FROM tab0
----
4277
9009
910

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 NOT BETWEEN - col2 AND + + col0
----
87
21
10

query I rowsort
SELECT - 57 * + + 80 * + + 58 * - col0 AS col2 FROM tab1
----
13488480
22480800
24067680

query II rowsort
SELECT ALL - col1 AS col1, col0 AS col1 FROM tab0 cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - - 31 AS col0 FROM tab1 cor0
----
31

query I rowsort
SELECT ALL - 70 + - col1 FROM tab0 AS cor0
----
-151
-71
-91

query I rowsort
SELECT - - col0 + - + col1 + - + col1 * + col1 AS col0 FROM tab1 AS cor0
----
-159
-2165
55

onlyif mysql # DIV for integer division: 
query II rowsort label-7906
SELECT + 7 + + col0 DIV - + 59 AS col2, col1 FROM tab0 AS cor0
----
6
1
6
21
7
81

skipif mysql # not compatible
query II rowsort label-7906
SELECT + 7 + + col0 / - + 59 AS col2, col1 FROM tab0 AS cor0
----
6
1
6
21
7
81

query II rowsort
SELECT DISTINCT + 10 + + 87 AS col0, + 21 AS col1 FROM tab0
----
97
21

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7908
SELECT ALL ( + - col0 ), - CAST( NULL AS SIGNED ) col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7908
SELECT ALL ( + - col0 ), - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
-15
NULL
-87
NULL
-97
NULL

query I rowsort
SELECT + 12 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT 34 FROM tab2 AS cor0 WHERE - col1 IS NOT NULL
----
34
34
34

query I rowsort
SELECT DISTINCT + 66 * + - 20 + col1 AS col1 FROM tab1 AS cor0
----
-1273
-1306
-1315

onlyif mysql # aggregate syntax: 
query II rowsort label-7912
SELECT + COUNT( * ) + - 65 col2, SUM( + col0 ) + + - ( - - 99 ) FROM tab2 AS cor0
----
-62
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7912
SELECT + COUNT ( * ) + - 65 col2, SUM ( + col0 ) + + - ( - - 99 ) FROM tab2 AS cor0
----
-62
86

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7913
SELECT + CAST( - - 6 AS SIGNED ) + - col0 AS col2 FROM tab0 AS cor0
----
-81
-9
-91

skipif mysql # not compatible
query I rowsort label-7913
SELECT + CAST ( - - 6 AS INTEGER ) + - col0 AS col2 FROM tab0 AS cor0
----
-81
-9
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT COUNT( * ) AS col1 FROM tab2 WHERE + + col1 BETWEEN ( - - ( col0 ) ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7914
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE + + col1 BETWEEN ( - - ( col0 ) ) AND NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 97 + + col2 col0 FROM tab1
----
156
165
193

query I rowsort
SELECT - col0 + + - col0 + - col0 - - + col2 + + - col1 * - 85 AS col2 FROM tab1
----
1133
229
3790

query III rowsort
SELECT * FROM tab0 WHERE - + col2 - + col1 BETWEEN NULL AND - col0
----

query I rowsort
SELECT + ( + 41 ) + + 77 FROM tab2
----
118
118
118

query I rowsort
SELECT DISTINCT - col2 + - + col2 AS col1 FROM tab1
----
-118
-136
-192

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 8 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ( - + ( - - 95 ) ) AS col2, col0 * - - col0 AS col0 FROM tab0 cor0
----
-95
225
-95
7569
-95
9409

query I rowsort
SELECT ALL - ( + 14 ) AS col2 FROM tab0 AS cor0
----
-14
-14
-14

query IIIIII rowsort
SELECT * FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 ) WHERE NULL IS NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7924
SELECT DISTINCT - col1 * - + CAST( - - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7924
SELECT DISTINCT - col1 * - + CAST ( - - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1215
1827
97

query II rowsort
SELECT + 21, - 70 AS col1 FROM tab0 AS cor0
----
21
-70
21
-70
21
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7926
SELECT - - COUNT( * ) DIV + 8 * - + COUNT( * ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7926
SELECT - - COUNT ( * ) / + 8 * - + COUNT ( * ) FROM tab1 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7927
SELECT + 34 * - - SUM( col0 ) AS col0 FROM tab0 AS cor0
----
6766

skipif mysql # not compatible
query I rowsort label-7927
SELECT + 34 * - - SUM ( col0 ) AS col0 FROM tab0 AS cor0
----
6766

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7928
SELECT + ( - - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7928
SELECT + ( - - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7929
SELECT ALL - 32 * - COUNT( * ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7929
SELECT ALL - 32 * - COUNT ( * ) FROM tab0 AS cor0
----
96

query II rowsort
SELECT + + col2 AS col2, 72 FROM tab2 WHERE NOT 92 * + 71 * col1 * - col2 IS NOT NULL
----

query I rowsort
SELECT 37 * + col0 AS col0 FROM tab1
----
1887
3145
3367

onlyif mysql # DIV for integer division: 
query I rowsort label-7932
SELECT + col2 DIV 72 DIV + - 53 * + col2 FROM tab0 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT + col2 / 72 / + - 53 * + col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - 61 * + col1 + + + col1 AS col1 FROM tab1 AS cor0
----
-2820
-300
-840

query II rowsort
SELECT DISTINCT 7 AS col2, 71 AS col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7935
SELECT ALL + MIN( + - 90 ) AS col2 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-7935
SELECT ALL + MIN ( + - 90 ) AS col2 FROM tab2 AS cor0
----
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7936
SELECT - SUM( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-7936
SELECT - SUM ( DISTINCT + col1 ) AS col1 FROM tab1 AS cor0
----
-66

query I rowsort
SELECT - 40 FROM tab2 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7938
SELECT MIN( ( - col0 ) ) + - 98 AS col1 FROM tab1
----
-189

skipif mysql # not compatible
query I rowsort label-7938
SELECT MIN ( ( - col0 ) ) + - 98 AS col1 FROM tab1
----
-189

query I rowsort
SELECT 39 + + + 49 AS col1 FROM tab2
----
88
88
88

query I rowsort
SELECT DISTINCT - + 4 * - col0 - 78 FROM tab1 WHERE + col2 > NULL
----

query I rowsort
SELECT - col1 + - - 50 FROM tab2 AS cor0
----
-1
-17
-27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 60 + 89 col1 FROM tab1 AS cor0
----
149
149
149

query I rowsort
SELECT - col2 * ( - + col0 ) FROM tab2 AS cor0
----
1058
2560
4350

query I rowsort
SELECT DISTINCT col2 - + col1 FROM tab1 cor0
----
21
54
82

onlyif mysql # aggregate syntax: 
query I rowsort label-7945
SELECT ALL - + ( + MIN( ALL + - col0 ) ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-7945
SELECT ALL - + ( + MIN ( ALL + - col0 ) ) FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - 13 + - + col0 FROM tab0
----
-100
-110
-28

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7947
SELECT col0 - - 72 AS col2, CAST( NULL AS SIGNED ) FROM tab1
----
123
NULL
157
NULL
163
NULL

skipif mysql # not compatible
query II rowsort label-7947
SELECT col0 - - 72 AS col2, CAST ( NULL AS INTEGER ) FROM tab1
----
123
NULL
157
NULL
163
NULL

query I rowsort
SELECT ALL 27 * + col1 - + col1 AS col1 FROM tab1
----
1222
130
364

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 93 > + col1
----

query II rowsort
SELECT col0 - + - col2 AS col2, + col1 AS col0 FROM tab2
----
104
77
133
67
69
51

onlyif mysql # aggregate syntax: 
query I rowsort label-7951
SELECT - ( + COUNT( * ) ) * - + ( - ( 60 ) ) - MIN( - col2 ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-7951
SELECT - ( + COUNT ( * ) ) * - + ( - ( 60 ) ) - MIN ( - col2 ) FROM tab0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7952
SELECT - CAST( + + 36 AS SIGNED ) FROM tab1
----
-36
-36
-36

skipif mysql # not compatible
query I rowsort label-7952
SELECT - CAST ( + + 36 AS INTEGER ) FROM tab1
----
-36
-36
-36

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7953
SELECT DISTINCT col1 * col2 / CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7953
SELECT DISTINCT col1 * col2 / CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + - col2 - col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-100
-128
-31

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 41 + 43 * - col2 >= + 6 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7956
SELECT DISTINCT + CAST( NULL AS SIGNED ) * - + 65 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7956
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * - + 65 AS col0 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 * col2 > ( NULL )
----

query I rowsort
SELECT DISTINCT + 38 * 90 FROM tab1 AS cor0
----
3420

onlyif mysql # DIV for integer division: 
query I rowsort label-7959
SELECT DISTINCT - + ( col0 ) DIV + + 98 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7959
SELECT DISTINCT - + ( col0 ) / + + 98 AS col2 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7960
SELECT DISTINCT + ( + COUNT( * ) ) * + - 18 * + - SUM( ALL - ( col2 ) ) - 96 FROM tab0 AS cor0
----
-8520

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + ( + COUNT ( * ) ) * + - 18 * + - SUM ( ALL - ( col2 ) ) - 96 FROM tab0 AS cor0
----
-8520

onlyif mysql # aggregate syntax: 
query I rowsort label-7961
SELECT DISTINCT - 15 * + - COUNT( * ) col0 FROM tab2 cor0
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7961
SELECT DISTINCT - 15 * + - COUNT ( * ) col0 FROM tab2 cor0
----
45

query II rowsort
SELECT col2 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
23
23
40
40
58
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7963
SELECT ALL + + CAST( col1 AS SIGNED ) * col1 + col2 AS col2 FROM tab1 AS cor0
----
2277
292
84

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + + CAST ( col1 AS INTEGER ) * col1 + col2 AS col2 FROM tab1 AS cor0
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7964
SELECT - SUM( col1 ) * - 12 FROM tab2 AS cor0 WHERE NOT NULL < - col1 * - col1 OR NULL > + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7964
SELECT - SUM ( col1 ) * - 12 FROM tab2 AS cor0 WHERE NOT NULL < - col1 * - col1 OR NULL > + col2
----
NULL

query I rowsort
SELECT ALL col1 + - - col0 + + - col0 - col1 AS col2 FROM tab0
----
0
0
0

query II rowsort
SELECT - col0, - col1 AS col0 FROM tab0
----
-15
-81
-87
-21
-97
-1

query I rowsort
SELECT ALL col0 * - 67 AS col0 FROM tab1
----
-3417
-5695
-6097

query I rowsort
SELECT ALL 18 * + - col2 FROM tab1
----
-1062
-1224
-1728

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + ( + 5 ) col0 FROM tab0
----
104
15
52

query II rowsort
SELECT DISTINCT + 83 AS col0, - col2 FROM tab1 AS cor0
----
83
-59
83
-68
83
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT - MIN( ALL - 74 ) AS col0 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-7971
SELECT - MIN ( ALL - 74 ) AS col0 FROM tab2
----
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + 41 col1 FROM tab1 WHERE - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7973
SELECT - COUNT( * ) * COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-7973
SELECT - COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 32 col2 FROM tab0 WHERE - 9 BETWEEN col1 / - col2 AND NULL
----

query I rowsort
SELECT - - 40 - - + col1 - - 38 FROM tab2 AS cor0
----
129
145
155

onlyif mysql # DIV for integer division: 
query I rowsort label-7976
SELECT DISTINCT - - ( ( + col0 ) ) DIV col1 col0 FROM tab2 cor0
----
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7976
SELECT DISTINCT - - ( ( + col0 ) ) / col1 col0 FROM tab2 cor0
----
0
1

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7977
SELECT col0 + - col0 * - col2 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7977
SELECT col0 + - col0 * - col2 + CAST ( NULL AS REAL ) AS col2 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + AVG ( ALL col2 ) * - 96 * + + 64 FROM tab0 cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + + col1 * + col2 + + 41 * + - 74 + + - 21 + 90 + - col2 AS col0, - col2 + + 53 AS col1 FROM tab2 AS cor0
----
-1815
30
75
13
863
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7981
SELECT - 89 + ( - - SUM( DISTINCT - + 59 ) ) col2 FROM tab2 AS cor0
----
-148

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7981
SELECT - 89 + ( - - SUM ( DISTINCT - + 59 ) ) col2 FROM tab2 AS cor0
----
-148

onlyif mysql # aggregate syntax: 
query I rowsort label-7982
SELECT ( - 34 ) + - ( - SUM( DISTINCT + - ( + 3 ) ) ) AS col1 FROM tab0
----
-37

skipif mysql # not compatible
query I rowsort label-7982
SELECT ( - 34 ) + - ( - SUM ( DISTINCT + - ( + 3 ) ) ) AS col1 FROM tab0
----
-37

query I rowsort
SELECT DISTINCT 41 + - - col1 FROM tab2
----
108
118
92

onlyif mysql # aggregate syntax: 
query II rowsort label-7984
SELECT ALL + COUNT( * ) AS col0, 94 FROM tab0
----
3
94

skipif mysql # not compatible
query II rowsort label-7984
SELECT ALL + COUNT ( * ) AS col0, 94 FROM tab0
----
3
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7985
SELECT ALL + CAST( - - 35 AS SIGNED ) * - + MAX( - 89 ) + + COUNT( * ) FROM tab2
----
3118

skipif mysql # not compatible
query I rowsort label-7985
SELECT ALL + CAST ( - - 35 AS INTEGER ) * - + MAX ( - 89 ) + + COUNT ( * ) FROM tab2
----
3118

query I rowsort
SELECT col1 + - 5 AS col1 FROM tab2
----
46
62
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col1 * ( col0 ) col2 FROM tab0
----
1
97
21
1827
81
1215

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 11 col1, col2 FROM tab2 cor0
----
-11
23
-11
40
-11
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7989
SELECT MAX( DISTINCT col1 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7989
SELECT MAX ( DISTINCT col1 ) FROM tab0 WHERE - col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT - SUM( + col1 ) AS col0 FROM tab2 WHERE NOT - col0 + - col2 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7990
SELECT - SUM ( + col1 ) AS col0 FROM tab2 WHERE NOT - col0 + - col2 IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + 17 + col2 FROM tab0
----
116
27
64

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) NOT IN ( - 78 * col1 + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7993
SELECT + CAST( + MAX( - 88 ) AS SIGNED ) FROM tab0
----
-88

skipif mysql # not compatible
query I rowsort label-7993
SELECT + CAST ( + MAX ( - 88 ) AS INTEGER ) FROM tab0
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-7994
SELECT 33 * + COUNT( * ) FROM tab1 WHERE - 95 IS NOT NULL
----
99

skipif mysql # not compatible
query I rowsort label-7994
SELECT 33 * + COUNT ( * ) FROM tab1 WHERE - 95 IS NOT NULL
----
99

query I rowsort
SELECT DISTINCT - 73 + - 73 * 74 AS col1 FROM tab1 WHERE 16 NOT IN ( - col2 + col2 / + 97 )
----
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-7996
SELECT 75 * MAX( ALL 57 ) FROM tab1
----
4275

skipif mysql # not compatible
query I rowsort label-7996
SELECT 75 * MAX ( ALL 57 ) FROM tab1
----
4275

onlyif mysql # DIV for integer division: 
query I rowsort label-7997
SELECT col2 DIV - col1 + 41 col2 FROM tab2
----
41
41
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7997
SELECT col2 / - col1 + 41 col2 FROM tab2
----
41
41
41

onlyif mysql # aggregate syntax: 
query I rowsort label-7998
SELECT ALL + 73 + + COUNT( DISTINCT - 33 ) AS col2 FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-7998
SELECT ALL + 73 + + COUNT ( DISTINCT - 33 ) AS col2 FROM tab1
----
74

query III rowsort
SELECT * FROM tab0 WHERE - col2 + 15 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 AS col2 FROM tab2 WHERE NOT NULL BETWEEN col0 * col2 AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col1 FROM tab1 WHERE NOT 17 / - col2 + + col0 <= 46
----
14
47
5

query I rowsort
SELECT DISTINCT 99 + + col1 AS col1 FROM tab0
----
100
120
180

query I rowsort
SELECT + col1 - 48 AS col0 FROM tab1
----
-1
-34
-43

query I rowsort
SELECT + 88 + - col1 * - col2 FROM tab2
----
1261
3168
3974

query I rowsort
SELECT - 77 + - col0 FROM tab1
----
-128
-162
-168

query I rowsort
SELECT + col1 + + col2 * ( + 40 ) AS col1 FROM tab1
----
2365
2767
3854

query I rowsort
SELECT + col2 FROM tab1 WHERE NOT - col2 * + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8008
SELECT col1 * - CAST( ( 50 ) AS SIGNED ) FROM tab2 WHERE CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8008
SELECT col1 * - CAST ( ( 50 ) AS INTEGER ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + 15 FROM tab2 WHERE NOT ( ( col2 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8010
SELECT DISTINCT + COUNT( * ) * 86 + + MIN( ( 39 ) ) AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-8010
SELECT DISTINCT + COUNT ( * ) * 86 + + MIN ( ( 39 ) ) AS col1 FROM tab2
----
297

query I rowsort
SELECT col1 FROM tab2 cor0 WHERE + col2 + 72 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8012
SELECT ALL 60 DIV COUNT( * ) FROM tab0 AS cor0
----
20

skipif mysql # not compatible
query I rowsort label-8012
SELECT ALL 60 / COUNT ( * ) FROM tab0 AS cor0
----
20

query I rowsort
SELECT ALL col2 + - ( col2 ) FROM tab1 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8014
SELECT ALL - 74 DIV + col1 FROM tab0 AS cor0
----
-3
-74
0

skipif mysql # not compatible
query I rowsort label-8014
SELECT ALL - 74 / + col1 FROM tab0 AS cor0
----
-3
-74
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 + - col1 IS NULL
----

query I rowsort
SELECT col0 * col2 + col0 AS col0 FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
4947
5100
6279

query I rowsort
SELECT DISTINCT + col0 * + col0 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
2116
4096
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-8018
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE col2 + col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8018
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE col2 + col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8019
SELECT DISTINCT + MIN( DISTINCT 21 ) AS col2 FROM tab1 cor0
----
21

skipif mysql # not compatible
query I rowsort label-8019
SELECT DISTINCT + MIN ( DISTINCT 21 ) AS col2 FROM tab1 cor0
----
21

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 WHERE 22 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 84 + - 90 / - 17 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 62 + ( + col2 ) AS col0 FROM tab2 AS cor0
----
-22
-39
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8023
SELECT CAST( col2 AS SIGNED ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8023
SELECT CAST ( col2 AS INTEGER ) FROM tab0 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8024
SELECT * FROM tab1 cor0 WHERE col1 IN ( - col1 * + col2 + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8024
SELECT * FROM tab1 cor0 WHERE col1 IN ( - col1 * + col2 + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT ALL + 45 AS col0 FROM tab0 AS cor0 WHERE NOT + 35 > NULL
----

query I rowsort
SELECT - ( - col2 ) * 91 AS col2 FROM tab2 AS cor0
----
2093
3640
5278

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8027
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( CAST( NULL AS SIGNED ) ) NOT IN ( 70 + + col0 )
----

skipif mysql # not compatible
query III rowsort label-8027
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + ( CAST ( NULL AS INTEGER ) ) NOT IN ( 70 + + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8028
SELECT ALL - 12 * COUNT( * ) - + MAX( col0 - col0 ) * - 41 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-8028
SELECT ALL - 12 * COUNT ( * ) - + MAX ( col0 - col0 ) * - 41 FROM tab0 AS cor0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-8029
SELECT DISTINCT + COUNT( * ) + + 40 AS col0 FROM tab0 AS cor0 WHERE col0 <> 60
----
43

skipif mysql # not compatible
query I rowsort label-8029
SELECT DISTINCT + COUNT ( * ) + + 40 AS col0 FROM tab0 AS cor0 WHERE col0 <> 60
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8030
SELECT ALL COUNT( ALL + 21 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8030
SELECT ALL COUNT ( ALL + 21 ) AS col0 FROM tab1 AS cor0 WHERE NOT ( - col2 ) IS NOT NULL
----
0

query I rowsort
SELECT + col0 + col1 AS col0 FROM tab0 AS cor0 WHERE NOT 76 < + 53
----
108
96
98

query I rowsort
SELECT col1 * - - 27 AS col2 FROM tab1
----
1269
135
378

onlyif mysql # aggregate syntax: 
query I rowsort label-8033
SELECT DISTINCT COUNT( * ) AS col2 FROM tab0 WHERE NOT + 72 NOT BETWEEN - 5 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8033
SELECT DISTINCT COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 72 NOT BETWEEN - 5 AND NULL
----
0

query I rowsort
SELECT ( 4 ) FROM tab2
----
4
4
4

query I rowsort
SELECT col0 * - + 31 FROM tab2
----
-1426
-1984
-2325

query I rowsort
SELECT ALL ( + ( col0 ) ) AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL IS NOT NULL OR + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8038
SELECT COUNT( ALL - ( ( + 30 ) ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8038
SELECT COUNT ( ALL - ( ( + 30 ) ) ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8039
SELECT + COUNT( * ) / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8039
SELECT + COUNT ( * ) / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT ( + 94 ) AS col2 FROM tab1 AS cor0
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8041
SELECT DISTINCT 95 AS col1 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) / col2 + + col0 < NULL
----

skipif mysql # not compatible
query I rowsort label-8041
SELECT DISTINCT 95 AS col1 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) / col2 + + col0 < NULL
----

query I rowsort
SELECT + 76 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

onlyif mysql # aggregate syntax: 
query I rowsort label-8043
SELECT ( + - MAX( + + col0 ) ) * + 51 AS col2 FROM tab2
----
-3825

skipif mysql # not compatible
query I rowsort label-8043
SELECT ( + - MAX ( + + col0 ) ) * + 51 AS col2 FROM tab2
----
-3825

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IN ( + ( - ( - 60 ) ) )
----

query I rowsort
SELECT 4 * + 71 AS col1 FROM tab0
----
284
284
284

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 74 * col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - 43 * col0 AS col2 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8048
SELECT ALL + + MAX( - 22 ) FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-8048
SELECT ALL + + MAX ( - 22 ) FROM tab0 AS cor0
----
-22

onlyif mysql # DIV for integer division: 
query I rowsort label-8049
SELECT + 2 DIV + col1 * col1 + + col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-8049
SELECT + 2 / + col1 * col1 + + col2 FROM tab1 AS cor0
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8050
SELECT ALL + CAST( - - col2 AS SIGNED ) col2 FROM tab1 cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8050
SELECT ALL + CAST ( - - col2 AS INTEGER ) col2 FROM tab1 cor0
----
59
68
96

onlyif mysql # DIV for integer division: 
query II rowsort label-8051
SELECT ALL - + 74 AS col2, + 8 DIV - + 16 * col2 FROM tab2 AS cor0
----
-74
0
-74
0
-74
0

skipif mysql # not compatible
query II rowsort label-8051
SELECT ALL - + 74 AS col2, + 8 / - + 16 * col2 FROM tab2 AS cor0
----
-74
0
-74
0
-74
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( col0 + 78 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - 79 AS col0 FROM tab1 AS cor0
----
79

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - + col0 * col2 ) IS NOT NULL OR NOT + 31 * col0 IN ( col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8056
SELECT DISTINCT + 11 + - MIN( DISTINCT + + col1 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-8056
SELECT DISTINCT + 11 + - MIN ( DISTINCT + + col1 ) FROM tab0
----
10

query I rowsort
SELECT - col1 + - 25 * - col2 * + col0 AS col2 FROM tab1
----
122386
125370
154653

query I rowsort
SELECT ALL ( + col2 ) AS col0 FROM tab0 WHERE NULL NOT BETWEEN NULL AND NULL AND NOT ( NOT col1 + + 91 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 71 + - + col0 AS col2, + 83 + + col1 + - ( + 84 ) col0 FROM tab0
----
-158
20
-168
0
-86
80

query I rowsort
SELECT DISTINCT + col0 + - col0 * - col2 + - - col2 + - col0 * + col0 FROM tab1
----
-1934
-2066
2442

query I rowsort
SELECT + col2 + col2 + + + col0 * - col0 * - 95 * col1 FROM tab2
----
10252066
29962320
35803241

query I rowsort
SELECT DISTINCT - col1 / ( col1 ) AS col1 FROM tab2 WHERE + 35 / - col0 * + 39 - - 17 IS NULL
----

query I rowsort
SELECT 20 FROM tab2 WHERE ( - col0 * + - col0 * + col1 + - 88 ) IN ( + col2 )
----

query I rowsort
SELECT DISTINCT + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
-116
-46
-80

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 56 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8066
SELECT COUNT( * ) * 39 FROM tab1 AS cor0
----
117

skipif mysql # not compatible
query I rowsort label-8066
SELECT COUNT ( * ) * 39 FROM tab1 AS cor0
----
117

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8067
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col0 + - col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8067
SELECT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND col0 + - col1 + - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col2, 40 + + col2 - - ( + 1 ) FROM tab0
----
10
51
47
88
99
140

query I rowsort
SELECT DISTINCT - col0 + + 22 AS col2 FROM tab2
----
-24
-42
-53

query I rowsort
SELECT 9 AS col0 FROM tab2 WHERE + + 76 BETWEEN - col1 AND ( - + 78 )
----

query I rowsort
SELECT - 10 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-8072
SELECT MAX( - + 96 ) * - - COUNT( * ) + - ( - 74 ) FROM tab1 AS cor0
----
-214

skipif mysql # not compatible
query I rowsort label-8072
SELECT MAX ( - + 96 ) * - - COUNT ( * ) + - ( - 74 ) FROM tab1 AS cor0
----
-214

query II rowsort
SELECT ALL + col0, + col0 + - + col0 * + col0 * - col1 FROM tab2 AS cor0
----
46
107962
64
315456
75
376950

query II rowsort
SELECT - + col1, col2 + + 28 AS col1 FROM tab1 AS cor0
----
-14
124
-47
96
-5
87

query I rowsort
SELECT + 69 * 74 AS col1 FROM tab2 AS cor0
----
5106
5106
5106

onlyif mysql # DIV for integer division: 
query I rowsort label-8076
SELECT + + ( - - col1 ) * col2 DIV - + col1 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-8076
SELECT + + ( - - col1 ) * col2 / - + col1 AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 / - col2 >= NULL
----

query I rowsort
SELECT - + 12 * col0 * col2 FROM tab1 AS cor0
----
-58752
-60180
-74256

query I rowsort
SELECT - col0 + + ( + col2 ) FROM tab0 WHERE NOT ( ( NOT ( + col1 ) IS NULL ) )
----

query II rowsort
SELECT ALL - col0 * - col1 AS col0, - 73 FROM tab1
----
425
-73
4277
-73
714
-73

query I rowsort
SELECT 47 * - + col0 + - col2 * ( col1 * + 79 + - 33 * + ( col2 + - col1 ) ) FROM tab2 WHERE NOT ( 73 ) = ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8082
SELECT MIN( - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8082
SELECT MIN ( - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8083
SELECT DISTINCT col1 DIV + + col0 col1 FROM tab0
----
0
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8083
SELECT DISTINCT col1 / + + col0 col1 FROM tab0
----
0
5

query I rowsort
SELECT DISTINCT + 54 FROM tab1 WHERE NOT ( col2 <= + 46 )
----
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8085
SELECT DISTINCT COUNT( * ) DIV SUM( + ( - col0 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8085
SELECT DISTINCT COUNT ( * ) / SUM ( + ( - col0 ) ) FROM tab0
----
0

query I rowsort
SELECT ALL col1 AS col1 FROM tab0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8088
SELECT + COUNT( * ), 72 AS col2 FROM tab1
----
3
72

skipif mysql # not compatible
query II rowsort label-8088
SELECT + COUNT ( * ), 72 AS col2 FROM tab1
----
3
72

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8089
SELECT DISTINCT - CAST( NULL AS SIGNED ) col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8089
SELECT DISTINCT - CAST ( NULL AS INTEGER ) col2 FROM tab2 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8090
SELECT - - 71 DIV 26 FROM tab1 cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-8090
SELECT - - 71 / 26 FROM tab1 cor0
----
2
2
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 52 + col1, 49 col1 FROM tab0 AS cor0
----
-31
49
-51
49
29
49

query I rowsort
SELECT - 72 * - 63 AS col2 FROM tab1 cor0 WHERE NOT + col1 * + ( - 34 ) BETWEEN col2 AND - col0
----
4536
4536
4536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + - ( - + col2 ) ) col2 FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT - 51 AS col1 FROM tab1 WHERE NOT ( 91 ) BETWEEN 46 - + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 * + col1 * col0 + + 25 AS col0 FROM tab2 AS cor0
----
-197095
-291425
-53933

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8097
SELECT DISTINCT + + CAST( - 57 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-8097
SELECT DISTINCT + + CAST ( - 57 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8098
SELECT - + col2 + - CAST( + col1 AS SIGNED ) AS col1 FROM tab0 cor0
----
-100
-128
-31

skipif mysql # not compatible
query I rowsort label-8098
SELECT - + col2 + - CAST ( + col1 AS INTEGER ) AS col1 FROM tab0 cor0
----
-100
-128
-31

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( NULL ) IN ( + col0, 37 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col1 + - col0 >= NULL
----

query I rowsort
SELECT DISTINCT - col2 * - + col1 + - col1 FROM tab2 AS cor0
----
1122
3003
3819

query I rowsort
SELECT + col0 FROM tab1 AS cor0 WHERE col0 <> - 70
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8103
SELECT ALL + CAST( - - 34 AS SIGNED ) AS col1 FROM tab2
----
34
34
34

skipif mysql # not compatible
query I rowsort label-8103
SELECT ALL + CAST ( - - 34 AS INTEGER ) AS col1 FROM tab2
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8104
SELECT + col0 * col1 AS col0 FROM tab2 WHERE - - col0 NOT BETWEEN + col0 + CAST( NULL AS SIGNED ) AND col1 + - 95 * - col0
----

skipif mysql # not compatible
query I rowsort label-8104
SELECT + col0 * col1 AS col0 FROM tab2 WHERE - - col0 NOT BETWEEN + col0 + CAST ( NULL AS INTEGER ) AND col1 + - 95 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8105
SELECT DISTINCT MIN( DISTINCT col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-8105
SELECT DISTINCT MIN ( DISTINCT col2 ) AS col1 FROM tab1
----
59

onlyif mysql # DIV for integer division: 
query II rowsort label-8106
SELECT col1, + 92 DIV col2 * - 2 FROM tab2
----
51
-8
67
-2
77
-4

skipif mysql # not compatible
query II rowsort label-8106
SELECT col1, + 92 / col2 * - 2 FROM tab2
----
51
-8
67
-2
77
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8107
SELECT ALL + CAST( NULL AS SIGNED ) + - 76 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8107
SELECT ALL + CAST ( NULL AS INTEGER ) + - 76 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8108
SELECT + COUNT( DISTINCT + ( col0 ) ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8108
SELECT + COUNT ( DISTINCT + ( col0 ) ) AS col2 FROM tab2
----
3

query I rowsort
SELECT + col1 - + 39 * + col2 FROM tab0 AS cor0
----
-1752
-369
-3860

query I rowsort
SELECT 13 * + - col0 - + + col0 + + - 73 AS col0 FROM tab1 AS cor0
----
-1263
-1347
-787

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) BETWEEN NULL AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8112
SELECT - 8 * + COUNT( * ) FROM tab1 WHERE + 42 + col2 NOT BETWEEN - col2 + col1 AND col1
----
-24

skipif mysql # not compatible
query I rowsort label-8112
SELECT - 8 * + COUNT ( * ) FROM tab1 WHERE + 42 + col2 NOT BETWEEN - col2 + col1 AND col1
----
-24

query I rowsort
SELECT DISTINCT - col2 * + - 56 FROM tab0
----
2632
5544
560

query I rowsort
SELECT + col2 * + - col1 AS col2 FROM tab0
----
-210
-3807
-99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) = 42
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8116
SELECT DISTINCT + - COUNT( * ) * + - 70 AS col1 FROM tab0 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-8116
SELECT DISTINCT + - COUNT ( * ) * + - 70 AS col1 FROM tab0 AS cor0
----
210

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
23

onlyif mysql # aggregate syntax: 
query II rowsort label-8118
SELECT ALL ( - COUNT( * ) ), - COUNT( col2 ) AS col2 FROM tab2 cor0
----
-3
-3

skipif mysql # not compatible
query II rowsort label-8118
SELECT ALL ( - COUNT ( * ) ), - COUNT ( col2 ) AS col2 FROM tab2 cor0
----
-3
-3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 51 * - col2 IS NULL
----

query I rowsort
SELECT ALL - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
196
2209
25

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8121
SELECT + + 65 + - CAST( - + SUM( - col0 ) AS SIGNED ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT + 51 * - 3 = + col0 + 57
----
-131

skipif mysql # not compatible
query I rowsort label-8121
SELECT + + 65 + - CAST ( - + SUM ( - col0 ) AS INTEGER ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT + 51 * - 3 = + col0 + 57
----
-131

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 29 IN ( 43 / col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL > 6 + - - ( + 25 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 9 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8125
SELECT DISTINCT + COUNT( DISTINCT col2 ) col1 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8125
SELECT DISTINCT + COUNT ( DISTINCT col2 ) col1 FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8126
SELECT col2 DIV CAST( + 17 AS SIGNED ) AS col0 FROM tab1
----
3
4
5

skipif mysql # not compatible
query I rowsort label-8126
SELECT col2 / CAST ( + 17 AS INTEGER ) AS col0 FROM tab1
----
3
4
5

query I rowsort
SELECT 66 * - ( - col2 ) AS col1 FROM tab1
----
3894
4488
6336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8128
SELECT DISTINCT - - 95 + - 59 AS col2 FROM tab2 WHERE CAST( - col1 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-8128
SELECT DISTINCT - - 95 + - 59 AS col2 FROM tab2 WHERE CAST ( - col1 AS INTEGER ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 - - 22 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8130
SELECT ALL 83 * + + CAST( - COUNT( * ) AS SIGNED ) + + COUNT( * ) - + 16 AS col1 FROM tab1 AS cor0
----
-262

skipif mysql # not compatible
query I rowsort label-8130
SELECT ALL 83 * + + CAST ( - COUNT ( * ) AS INTEGER ) + + COUNT ( * ) - + 16 AS col1 FROM tab1 AS cor0
----
-262

query I rowsort
SELECT ALL + ( + col1 ) * + col2 + + - 24 AS col0 FROM tab0 cor0
----
186
3783
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8132
SELECT CAST( NULL AS SIGNED ), col2 * - col1 AS col0 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-8132
SELECT CAST ( NULL AS INTEGER ), col2 * - col1 AS col0 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 / 45 * + + col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 41, 18 col0 FROM tab0 AS cor0
----
-41
18
-41
18
-41
18

onlyif mysql # aggregate syntax: 
query I rowsort label-8135
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE 71 NOT BETWEEN NULL AND + col2
----
2

skipif mysql # not compatible
query I rowsort label-8135
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE 71 NOT BETWEEN NULL AND + col2
----
2

onlyif mysql # DIV for integer division: 
query II rowsort label-8136
SELECT col2 AS col1, + col1 DIV col1 FROM tab0 AS cor0
----
10
1
47
1
99
1

skipif mysql # not compatible
query II rowsort label-8136
SELECT col2 AS col1, + col1 / col1 FROM tab0 AS cor0
----
10
1
47
1
99
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8137
SELECT DISTINCT + col2 * col2 - - - CAST( + ( - col0 ) AS SIGNED ) FROM tab1 AS cor0
----
3566
4715
9267

skipif mysql # not compatible
query I rowsort label-8137
SELECT DISTINCT + col2 * col2 - - - CAST ( + ( - col0 ) AS INTEGER ) FROM tab1 AS cor0
----
3566
4715
9267

onlyif mysql # aggregate syntax: 
query I rowsort label-8138
SELECT + - COUNT( * ) + - 55 * 70 AS col1 FROM tab0 cor0
----
-3853

skipif mysql # not compatible
query I rowsort label-8138
SELECT + - COUNT ( * ) + - 55 * 70 AS col1 FROM tab0 cor0
----
-3853

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8139
SELECT CAST( + col0 AS SIGNED ) + + 19 col0 FROM tab1 AS cor0
----
104
110
70

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8139
SELECT CAST ( + col0 AS INTEGER ) + + 19 col0 FROM tab1 AS cor0
----
104
110
70

onlyif mysql # aggregate syntax: 
query I rowsort label-8140
SELECT + ( - - COUNT( * ) ) + + + 47 col2 FROM tab2 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8140
SELECT + ( - - COUNT ( * ) ) + + + 47 col2 FROM tab2 AS cor0
----
50

query II rowsort
SELECT ALL + 60 * + col2 + + col2 + - 97 + + col2 AS col2, - col2 * col1 FROM tab1
----
3561
-295
4119
-3196
5855
-1344

query III rowsort
SELECT * FROM tab2 WHERE + 81 < - col2 * col0
----

query I rowsort
SELECT ALL + col2 + - + 82 FROM tab2
----
-24
-42
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-8144
SELECT DISTINCT + + COUNT( * ) + + 15 + + + 70 FROM tab1 cor0
----
88

skipif mysql # not compatible
query I rowsort label-8144
SELECT DISTINCT + + COUNT ( * ) + + 15 + + + 70 FROM tab1 cor0
----
88

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 * 3 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8146
SELECT + - CAST( NULL AS SIGNED ) * - col2 * - 52 + + col1 * + col2 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8146
SELECT + - CAST ( NULL AS INTEGER ) * - col2 * - 52 + + col1 * + col2 + + ( + col2 ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8147
SELECT COUNT( + 79 ) col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8147
SELECT COUNT ( + 79 ) col1 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8148
SELECT ALL ( + + COUNT( * ) ) * 77 * - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-693

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL ( + + COUNT ( * ) ) * 77 * - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-693

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 52 col1 FROM tab2
----
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, - col2 col0 FROM tab2
----
51
-23
67
-58
77
-40

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL IN ( + + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8152
SELECT DISTINCT - + COUNT( DISTINCT + 28 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-8152
SELECT DISTINCT - + COUNT ( DISTINCT + 28 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8153
SELECT + COUNT( * ), + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-8153
SELECT + COUNT ( * ), + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8154
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST( - + col1 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8154
SELECT * FROM tab0 AS cor0 WHERE NOT - CAST ( - + col1 AS INTEGER ) IS NOT NULL
----

query II rowsort
SELECT - - 39, - 68 * + col1 * - col0 AS col2 FROM tab1 AS cor0
----
39
28900
39
290836
39
48552

onlyif mysql # aggregate syntax: 
query I rowsort label-8156
SELECT ALL + + COUNT( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8156
SELECT ALL + + COUNT ( DISTINCT - col2 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - col0 * - - 25 AS col2 FROM tab2
----
-1150
-1600
-1875

query I rowsort
SELECT DISTINCT col2 * - ( + 66 ) FROM tab0
----
-3102
-6534
-660

query I rowsort
SELECT + + col2 - - + 27 * - 25 * + ( + col0 ) AS col0 FROM tab1 WHERE NOT - col2 IS NULL
----
-34329
-57316
-61357

query I rowsort
SELECT ALL + 19 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
19
19
19

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT NULL NOT BETWEEN + - col2 * - 63 + - col1 * + - col2 AND + col1
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8162
SELECT col0 DIV - col1 AS col0, - col0 FROM tab2
----
-1
-75
0
-46
0
-64

skipif mysql # not compatible
query II rowsort label-8162
SELECT col0 / - col1 AS col0, - col0 FROM tab2
----
-1
-75
0
-46
0
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-8163
SELECT ALL - - col2 DIV - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8163
SELECT ALL - - col2 / - ( - col2 ) AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL - + col1 * col1 * col0 AS col2 FROM tab0 AS cor0
----
-38367
-97
-98415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8165
SELECT ALL ( + ( - 2 ) ) + + + CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8165
SELECT ALL ( + ( - 2 ) ) + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT 81 + COUNT( * ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-8166
SELECT 81 + COUNT ( * ) FROM tab0
----
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8167
SELECT ALL - + CAST( NULL AS SIGNED ) * - col2 * + - 7 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8167
SELECT ALL - + CAST ( NULL AS INTEGER ) * - col2 * + - 7 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + - 22 + - col2 + - 36 * + col0 FROM tab1 AS cor0
----
-1954
-3141
-3366

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8169
SELECT - ( + 40 ) + - SUM( DISTINCT + col2 ) DIV - 15 AS col1 FROM tab0 cor0
----
-30

skipif mysql # not compatible
query I rowsort label-8169
SELECT - ( + 40 ) + - SUM ( DISTINCT + col2 ) / - 15 AS col1 FROM tab0 cor0
----
-30

query I rowsort
SELECT ALL - col0 * - 19 AS col1 FROM tab1 AS cor0
----
1615
1729
969

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8171
SELECT ALL - CAST( NULL AS SIGNED ) / - - 27 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8171
SELECT ALL - CAST ( NULL AS INTEGER ) / - - 27 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 + + 86 - col0 FROM tab0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-8173
SELECT DISTINCT COUNT( * ) + - 54 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT COUNT ( * ) + - 54 FROM tab2
----
-51

onlyif mysql # DIV for integer division: 
query I rowsort label-8174
SELECT - 15 DIV - col1 FROM tab0
----
0
0
15

skipif mysql # not compatible
query I rowsort label-8174
SELECT - 15 / - col1 FROM tab0
----
0
0
15

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT MIN( ALL + ( - col0 ) ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT MIN ( ALL + ( - col0 ) ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8176
SELECT DISTINCT + 92 / + col2 * + col2 * 3 * - 32 * - 43 AS col1 FROM tab1 WHERE ( + 52 ) - - + CAST( NULL AS SIGNED ) IS NULL AND NULL NOT BETWEEN col1 * - - 37 AND ( + col0 )
----

skipif mysql # not compatible
query I rowsort label-8176
SELECT DISTINCT + 92 / + col2 * + col2 * 3 * - 32 * - 43 AS col1 FROM tab1 WHERE ( + 52 ) - - + CAST ( NULL AS INTEGER ) IS NULL AND NULL NOT BETWEEN col1 * - - 37 AND ( + col0 )
----

query I rowsort
SELECT col2 - - - col2 + - + 13 FROM tab2
----
-13
-13
-13

query I rowsort
SELECT DISTINCT + 13 + + + 11 FROM tab0
----
24

query I rowsort
SELECT col0 - - + col0 FROM tab1
----
102
170
182

query I rowsort
SELECT ALL + 58 + - + col0 FROM tab1 cor0 WHERE NOT + 11 NOT BETWEEN + + col2 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8181
SELECT ALL - MAX( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8181
SELECT ALL - MAX ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 67 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

onlyif mysql # aggregate syntax: 
query II rowsort label-8183
SELECT 95 * SUM( + + ( + 29 ) ) * COUNT( * ), - 83 + - - 5 AS col1 FROM tab0
----
24795
-78

skipif mysql # not compatible
query II rowsort label-8183
SELECT 95 * SUM ( + + ( + 29 ) ) * COUNT ( * ), - 83 + - - 5 AS col1 FROM tab0
----
24795
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8184
SELECT MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8184
SELECT MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8185
SELECT COUNT( + 78 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8185
SELECT COUNT ( + 78 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8186
SELECT ALL + COUNT( * ) * - 97 * - + ( + COUNT( * ) ) FROM tab1
----
873

skipif mysql # not compatible
query I rowsort label-8186
SELECT ALL + COUNT ( * ) * - 97 * - + ( + COUNT ( * ) ) FROM tab1
----
873

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 - - - 10 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 17 AS col2 FROM tab0 WHERE col2 NOT IN ( - col0, + 36 )
----
17
17
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + - col0 NOT IN ( - + col0, + col0 + col1, - col1 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - 6 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT ALL - - MAX( ALL - + ( + + 20 ) ) * 48 AS col2 FROM tab2 WHERE NULL IS NULL
----
-960

skipif mysql # not compatible
query I rowsort label-8191
SELECT ALL - - MAX ( ALL - + ( + + 20 ) ) * 48 AS col2 FROM tab2 WHERE NULL IS NULL
----
-960

query II rowsort
SELECT + 40, col0 AS col2 FROM tab2
----
40
46
40
64
40
75

query II rowsort
SELECT - col0 AS col1, - col1 * + col1 * 89 AS col1 FROM tab2
----
-46
-231489
-64
-527681
-75
-399521

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8194
SELECT DISTINCT - SUM( + - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8194
SELECT DISTINCT - SUM ( + - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 WHERE NULL IS NOT NULL
----
NULL

query II rowsort
SELECT col0 AS col0, col0 + col0 FROM tab2
----
46
92
64
128
75
150

query I rowsort
SELECT col1 AS col0 FROM tab2 WHERE NOT + + 83 > + col1
----

query I rowsort
SELECT ALL col1 * + - 21 AS col1 FROM tab2
----
-1071
-1407
-1617

query I rowsort
SELECT col0 + col1 + col2 AS col1 FROM tab1
----
149
161
206

query II rowsort
SELECT + 23, + col1 AS col1 FROM tab2 cor0
----
23
51
23
67
23
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT - ( - + COUNT( * ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8200
SELECT - ( - + COUNT ( * ) ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT 98 - + col0 * - col0 FROM tab2 AS cor0
----
2214
4194
5723

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 32 + - - col2 FROM tab2
----
55
72
90

query I rowsort
SELECT ALL col2 + + 88 FROM tab0
----
135
187
98

query I rowsort
SELECT ALL - col0 * - + col1 + - ( - ( + 33 ) ) AS col2 FROM tab1 WHERE NULL <> + - col2
----

query I rowsort
SELECT DISTINCT + col0 + - 69 FROM tab2
----
-23
-5
6

query I rowsort
SELECT - 68 AS col2 FROM tab2 WHERE NOT ( NOT ( NULL ) BETWEEN NULL AND + + col0 + col1 )
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( - + 39 ) IS NOT NULL
----
54 values hashing to 058438fde5fb838f23bcbdd39266ddcf

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, col2 FROM tab2 AS cor0
----
46
23
64
40
75
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - 88, + col0 * + 17 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL - CAST( + MIN( 60 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - CAST ( + MIN ( 60 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-60

query II rowsort
SELECT ALL + 31 AS col0, - col1 FROM tab1 AS cor0
----
31
-14
31
-47
31
-5

query I rowsort
SELECT - 47 + - col1 - 40 * col0 * - col1 AS col1 FROM tab1 AS cor0
----
16948
170986
28499

query I rowsort
SELECT ALL col0 * + - col2 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT ALL 95 * + col0 + - col2 + + + col2 AS col2 FROM tab0 AS cor0
----
1425
8265
9215

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8216
SELECT + 24 * - col0 + - CAST( NULL AS SIGNED ) * col2 * + CAST( NULL AS DECIMAL ) * - col1 / - ( - - 15 ) FROM tab1 cor0 WHERE NOT NULL >= - col0
----

skipif mysql # not compatible
query I rowsort label-8216
SELECT + 24 * - col0 + - CAST ( NULL AS INTEGER ) * col2 * + CAST ( NULL AS REAL ) * - col1 / - ( - - 15 ) FROM tab1 cor0 WHERE NOT NULL >= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT MIN( DISTINCT + 55 ) FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-8217
SELECT MIN ( DISTINCT + 55 ) FROM tab2 AS cor0
----
55

query I rowsort
SELECT ALL + - 97 FROM tab2 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL + 69 * - - col2 FROM tab1
----
4071
4692
6624

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT SUM( ALL - + col1 ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8220
SELECT SUM ( ALL - + col1 ) AS col1 FROM tab1
----
-66

onlyif mysql # aggregate syntax: 
query I rowsort label-8221
SELECT COUNT( DISTINCT - - col2 ) * 77 FROM tab0
----
231

skipif mysql # not compatible
query I rowsort label-8221
SELECT COUNT ( DISTINCT - - col2 ) * 77 FROM tab0
----
231

query I rowsort
SELECT DISTINCT - 32 * col2 AS col0 FROM tab0 AS cor0
----
-1504
-3168
-320

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8223
SELECT - + COUNT( * ) DIV + 77 AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8223
SELECT - + COUNT ( * ) / + 77 AS col2 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 WHERE + - ( col0 ) > 45
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8225
SELECT + col1 + + CAST( NULL AS SIGNED ) + col1 * + 35 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8225
SELECT + col1 + + CAST ( NULL AS INTEGER ) + col1 * + 35 AS col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + 59 AS col0 FROM tab1
----
106
64
73

query I rowsort
SELECT col1 * col0 * + col0 * - col1 + 9 FROM tab1
----
-180616
-18292720
-509787

query I rowsort
SELECT ALL - 47 + + col1 AS col1 FROM tab1
----
-33
-42
0

query II rowsort
SELECT col2, 73 FROM tab0 AS cor0
----
10
73
47
73
99
73

query II rowsort
SELECT - 67 AS col2, 87 AS col0 FROM tab1 cor0
----
-67
87
-67
87
-67
87

onlyif mysql # aggregate syntax: 
query I rowsort label-8231
SELECT - ( + - MIN( DISTINCT col1 ) ) FROM tab1 cor0 WHERE + col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8231
SELECT - ( + - MIN ( DISTINCT col1 ) ) FROM tab1 cor0 WHERE + col0 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT - MIN( DISTINCT 38 ) FROM tab0 AS cor0
----
-38

skipif mysql # not compatible
query I rowsort label-8232
SELECT - MIN ( DISTINCT 38 ) FROM tab0 AS cor0
----
-38

query I rowsort
SELECT - 57 * + col1 + - col0 FROM tab0 AS cor0
----
-1284
-154
-4632

query I rowsort
SELECT ALL + ( 80 ) * - 96 * - col2 - 84 - - + 40 AS col1 FROM tab0 AS cor0
----
360916
760276
76756

onlyif mysql # DIV for integer division: 
query I rowsort label-8235
SELECT col0 DIV ( + - 54 ) FROM tab0 cor0 WHERE NULL IS NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-8235
SELECT col0 / ( + - 54 ) FROM tab0 cor0 WHERE NULL IS NULL
----
-1
-1
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8236
SELECT + + COUNT( * ) col1, - 38 * + - 99 FROM tab1 AS cor0
----
3
3762

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8236
SELECT + + COUNT ( * ) col1, - 38 * + - 99 FROM tab1 AS cor0
----
3
3762

query II rowsort
SELECT ALL - + 94 * + col2 + + col2, col2 - + 65 AS col2 FROM tab2 AS cor0
----
-2139
-42
-3720
-25
-5394
-7

query I rowsort
SELECT + col2 * col0 + + - 37 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 70
----

query I rowsort
SELECT ALL - 25 * - - col2 FROM tab0 AS cor0
----
-1175
-2475
-250

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col2 FROM tab0
----
-60

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 NOT BETWEEN col0 AND - col1 + + col1
----

query I rowsort
SELECT DISTINCT - col1 * + 94 AS col2 FROM tab2
----
-4794
-6298
-7238

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - col0 + - - col1 * + ( + + col1 ) IN ( - + col0, - col1 * 79 )
----

query I rowsort
SELECT 9 FROM tab2 AS cor0 WHERE NOT col1 * + ( col0 ) >= NULL
----

query I rowsort
SELECT ALL 2 * + col0 AS col0 FROM tab2 AS cor0
----
128
150
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 col0 FROM tab1 WHERE col0 > 96
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8247
SELECT - COUNT( * ) * 68 col2 FROM tab1
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8247
SELECT - COUNT ( * ) * 68 col2 FROM tab1
----
-204

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8248
SELECT ALL - CAST( NULL AS SIGNED ) AS col2, 80 + + 90 * 14 * col1 * - col1 FROM tab2 cor0
----
NULL
-3277180
NULL
-5656060
NULL
-7470460

skipif mysql # not compatible
query II rowsort label-8248
SELECT ALL - CAST ( NULL AS INTEGER ) AS col2, 80 + + 90 * 14 * col1 * - col1 FROM tab2 cor0
----
NULL
-3277180
NULL
-5656060
NULL
-7470460

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN + ( - + 28 ) AND + + 86
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8250
SELECT - 14, col1 * + ( + 8 ) * - + 94 + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
-14
NULL
-14
NULL
-14
NULL

skipif mysql # not compatible
query II rowsort label-8250
SELECT - 14, col1 * + ( + 8 ) * - + 94 + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
-14
NULL
-14
NULL
-14
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8251
SELECT + MAX( - + 64 ) AS col0 FROM tab1 AS cor0
----
-64

skipif mysql # not compatible
query I rowsort label-8251
SELECT + MAX ( - + 64 ) AS col0 FROM tab1 AS cor0
----
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 41 * col0 col0 FROM tab0 AS cor0
----
3567
3977
615

query III rowsort
SELECT * FROM tab1 WHERE - - 43 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 + + - ( + col2 ) AS col0 FROM tab1
----
-144
-147
-159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8255
SELECT + CAST( + + col0 AS SIGNED ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8255
SELECT + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + col1 ) + 9 FROM tab0
----
10
30
90

query I rowsort
SELECT - + col1 + + col1 + - col0 + col2 AS col0 FROM tab0 WHERE - 22 IS NOT NULL
----
-77
2
32

query II rowsort
SELECT DISTINCT 42 AS col2, - col1 AS col1 FROM tab2
----
42
-51
42
-67
42
-77

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL < + + col2
----

query I rowsort
SELECT + col0 + + + col1 FROM tab1
----
138
65
90

query I rowsort
SELECT ALL - + 8 AS col1 FROM tab0 AS cor0
----
-8
-8
-8

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - - ( col0 ) / 95 AND + ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT ALL - MAX( ALL - + 87 ) FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-8263
SELECT ALL - MAX ( ALL - + 87 ) FROM tab1 AS cor0
----
87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8264
SELECT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8264
SELECT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8265
SELECT - COUNT( * ) col0 FROM tab2 AS cor0 WHERE col0 * - 12 <> - col2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8265
SELECT - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE col0 * - 12 <> - col2
----
-3

query I rowsort
SELECT - 85 + - 60 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to c79967bbfe31387e6d92241fdf1b18ff

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 69 * + - col1 * - col0 * - - col2 * - - 23 + - col0 NOT BETWEEN + 41 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 * - + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 35 - - + col2 + - ( - col2 ) * - col0 AS col2 FROM tab1 AS cor0
----
-4765
-4921
-6085

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + col1 * + 9 >= NULL
----

query I rowsort
SELECT ALL col1 * + - 71 FROM tab1 AS cor0
----
-3337
-355
-994

query I rowsort
SELECT ALL - col1 * + col0 FROM tab1 WHERE - col2 * - ( - + col2 ) * - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8273
SELECT ALL - ( SUM( DISTINCT col1 ) ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8273
SELECT ALL - ( SUM ( DISTINCT col1 ) ) AS col2 FROM tab1
----
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 34 col0 FROM tab0
----
34

query I rowsort
SELECT + col2 * - - col1 AS col0 FROM tab1
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8276
SELECT - + 46 * + CAST( + + 86 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-3956
-3956
-3956

skipif mysql # not compatible
query I rowsort label-8276
SELECT - + 46 * + CAST ( + + 86 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-3956
-3956
-3956

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 86 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT - 87, col0 AS col2 FROM tab0 AS cor0
----
-87
15
-87
87
-87
97

query I rowsort
SELECT ALL - col0 * - + col2 AS col0 FROM tab1 AS cor0
----
4896
5015
6188

query I rowsort
SELECT DISTINCT - + 83 * col0 AS col1 FROM tab0 AS cor0
----
-1245
-7221
-8051

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT 75 * + COUNT( * ) FROM tab2 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT 75 * + COUNT ( * ) FROM tab2 AS cor0
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8282
SELECT DISTINCT + col2 AS col0, CAST( + col0 AS SIGNED ) + + - ( - + ( - col2 ) ) FROM tab0 cor0 WHERE NOT + col0 * 60 IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8282
SELECT DISTINCT + col2 AS col0, CAST ( + col0 AS INTEGER ) + + - ( - + ( - col2 ) ) FROM tab0 cor0 WHERE NOT + col0 * 60 IS NOT NULL
----

query I rowsort
SELECT + + col2 + + - 65 * 9 - - col0 * + - col1 FROM tab2 AS cor0
----
-2908
-5473
-5552

onlyif mysql # aggregate syntax: 
query I rowsort label-8284
SELECT DISTINCT - MIN( - col2 ) + - COUNT( * ) col1 FROM tab0 AS cor0 WHERE 88 IS NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8284
SELECT DISTINCT - MIN ( - col2 ) + - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE 88 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col0 + col2 + col2 FROM tab0 AS cor0
----
107
109
295

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 WHERE - 87 - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 43 + + - 19 AS col2 FROM tab1
----
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-8288
SELECT ALL COUNT( * ) + + MAX( col0 ) AS col0 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-8288
SELECT ALL COUNT ( * ) + + MAX ( col0 ) AS col0 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT MAX( + col2 ) FROM tab0 WHERE ( NULL ) <= + 7
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT MAX ( + col2 ) FROM tab0 WHERE ( NULL ) <= + 7
----
NULL

query I rowsort
SELECT ALL + 74 + + col0 FROM tab0
----
161
171
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( - - 74 ) col1 FROM tab0
----
74
74
74

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8292
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - + COUNT( * ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8292
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - + COUNT ( * ) AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8293
SELECT + 68 * + 1 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8293
SELECT + 68 * + 1 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
71

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT col1 IS NULL
----
-23
-40
-58

query I rowsort
SELECT ALL + col1 + + ( + col0 ) AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT DISTINCT + col1 - 27 FROM tab0
----
-26
-6
54

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT + COUNT( * ) col1, 39 AS col1 FROM tab2 AS cor0
----
3
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8297
SELECT + COUNT ( * ) col1, 39 AS col1 FROM tab2 AS cor0
----
3
39

query III rowsort
SELECT + col1, + col0, + + col0 FROM tab2 AS cor0
----
9 values hashing to f83fc17c7f2d54813d812eda14b325ea

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT - col2 DIV - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8299
SELECT - col2 / - col0 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
0
0
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8300
SELECT ALL + col1 AS col1, - col1 - - CAST( NULL AS SIGNED ) + 65 * - col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8300
SELECT ALL + col1 AS col1, - col1 - - CAST ( NULL AS INTEGER ) + 65 * - col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8301
SELECT + COUNT( ALL + - 10 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8301
SELECT + COUNT ( ALL + - 10 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8302
SELECT COUNT( * ) * - MIN( ALL 41 ) * - + 7 FROM tab1
----
861

skipif mysql # not compatible
query I rowsort label-8302
SELECT COUNT ( * ) * - MIN ( ALL 41 ) * - + 7 FROM tab1
----
861

onlyif mysql # aggregate syntax: 
query I rowsort label-8303
SELECT DISTINCT + MIN( 33 ) col0 FROM tab1
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8303
SELECT DISTINCT + MIN ( 33 ) col0 FROM tab1
----
33

onlyif mysql # aggregate syntax: 
query I rowsort label-8304
SELECT ALL + SUM( - + col1 ) AS col1 FROM tab0
----
-103

skipif mysql # not compatible
query I rowsort label-8304
SELECT ALL + SUM ( - + col1 ) AS col1 FROM tab0
----
-103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8305
SELECT COUNT( * ) * CAST( - 85 AS SIGNED ) * + 87 FROM tab2
----
-22185

skipif mysql # not compatible
query I rowsort label-8305
SELECT COUNT ( * ) * CAST ( - 85 AS INTEGER ) * + 87 FROM tab2
----
-22185

query III rowsort
SELECT * FROM tab1 WHERE NOT - 70 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL + 50 * + col1, col2 col0, col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to c5ef886672f357cf0e399ac8a2e9d6cb

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 col1 FROM tab1 AS cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8309
SELECT DISTINCT + COUNT( ALL + - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8309
SELECT DISTINCT + COUNT ( ALL + - col0 ) AS col1 FROM tab0
----
3

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + 28 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8311
SELECT ALL - COUNT( ALL - - 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8311
SELECT ALL - COUNT ( ALL - - 49 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-9

query I rowsort
SELECT DISTINCT + col0 FROM tab2 WHERE NOT ( ( 8 - - - ( col0 ) ) IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8313
SELECT DISTINCT + CAST( NULL AS SIGNED ) * col0 AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8313
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * col0 AS col0 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( - ( - - 44 ), + col1, - ( - col0 ), - 55, - col0 - - - col2 + + col0 )
----

query I rowsort
SELECT + - col0 * - col1 * + col2 AS col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT DISTINCT - ( - col2 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8317
SELECT DISTINCT + + 62 DIV col1 AS col1 FROM tab0 cor0
----
0
2
62

skipif mysql # not compatible
query I rowsort label-8317
SELECT DISTINCT + + 62 / col1 AS col1 FROM tab0 cor0
----
0
2
62

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT + COUNT( * ) - + + 52 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 AND NULL
----
-52

skipif mysql # not compatible
query I rowsort label-8318
SELECT DISTINCT + COUNT ( * ) - + + 52 FROM tab2 AS cor0 WHERE NOT - col2 NOT BETWEEN col2 AND NULL
----
-52

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT DISTINCT MAX( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT DISTINCT MAX ( DISTINCT + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8320
SELECT ALL ( ( - COUNT( * ) ) ) DIV + CAST( + ( 24 ) AS SIGNED ) + + + 98 AS col2 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8320
SELECT ALL ( ( - COUNT ( * ) ) ) / + CAST ( + ( 24 ) AS INTEGER ) + + + 98 AS col2 FROM tab2 AS cor0
----
98

query II rowsort
SELECT ALL 90 + + + col1 * - col1 AS col1, col0 * + col2 * + col1 FROM tab1 AS cor0
----
-106
68544
-2119
290836
65
25075

onlyif mysql # DIV for integer division: 
query I rowsort label-8322
SELECT col0 DIV col1 + + + col0 AS col0 FROM tab2
----
46
64
76

skipif mysql # not compatible
query I rowsort label-8322
SELECT col0 / col1 + + + col0 AS col0 FROM tab2
----
46
64
76

query I rowsort
SELECT ALL + 66 + - col1 * - 91 FROM tab0 AS cor0
----
157
1977
7437

query I rowsort
SELECT + - 82 * - ( col1 ) AS col1 FROM tab2 cor0
----
4182
5494
6314

query I rowsort
SELECT ALL - col0 + + col0 AS col1 FROM tab0 WHERE NOT NULL <> - ( + col0 )
----

query I rowsort
SELECT + ( 87 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

onlyif mysql # DIV for integer division: 
query I rowsort label-8327
SELECT ALL col1 DIV - 5 AS col0 FROM tab1
----
-1
-2
-9

skipif mysql # not compatible
query I rowsort label-8327
SELECT ALL col1 / - 5 AS col0 FROM tab1
----
-1
-2
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8328
SELECT - - SUM( ALL - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-8328
SELECT - - SUM ( ALL - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT - MAX( - 32 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-8329
SELECT - MAX ( - 32 ) FROM tab2 AS cor0
----
32

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8330
SELECT MAX( + + 13 ) * 48 col1, COUNT( * ) DIV - MIN( + col0 ) + 61 AS col1 FROM tab2 cor0
----
624
61

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8330
SELECT MAX ( + + 13 ) * 48 col1, COUNT ( * ) / - MIN ( + col0 ) + 61 AS col1 FROM tab2 cor0
----
624
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8331
SELECT DISTINCT MIN( ALL - + CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8331
SELECT DISTINCT MIN ( ALL - + CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col1 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT - col0 + - col0 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query II rowsort label-8333
SELECT + col0 col1, + col0 DIV + col2 FROM tab2
----
46
2
64
1
75
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8333
SELECT + col0 col1, + col0 / + col2 FROM tab2
----
46
2
64
1
75
1

query I rowsort
SELECT DISTINCT + col0 * 83 AS col0 FROM tab2 cor0
----
3818
5312
6225

query I rowsort
SELECT + - col0 FROM tab2 AS cor0 WHERE NOT + 72 * col1 - - col1 BETWEEN NULL AND col0
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + col2, - 98 * col0 + - + 60 AS col1 FROM tab0 AS cor0
----
10
-8586
47
-1530
99
-9566

query II rowsort
SELECT - + col2 AS col1, col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8338
SELECT DISTINCT + SUM( DISTINCT - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8338
SELECT DISTINCT + SUM ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 48 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8340
SELECT ALL col0 * col1 DIV col2 * + + col1 FROM tab2
----
5202
5762
9471

skipif mysql # not compatible
query I rowsort label-8340
SELECT ALL col0 * col1 / col2 * + + col1 FROM tab2
----
5202
5762
9471

onlyif mysql # aggregate syntax: 
query I rowsort label-8341
SELECT - 11 + + + COUNT( * ) + + MIN( col2 ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-8341
SELECT - 11 + + + COUNT ( * ) + + MIN ( col2 ) FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8342
SELECT 95 * - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-855

skipif mysql # not compatible
query I rowsort label-8342
SELECT 95 * - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-855

query I rowsort
SELECT + col2 + 79 * - col0 AS col0 FROM tab1
----
-3933
-6656
-7121

onlyif mysql # aggregate syntax: 
query I rowsort label-8344
SELECT + - 21 * COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-189

skipif mysql # not compatible
query I rowsort label-8344
SELECT + - 21 * COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-8345
SELECT COUNT( * ) + + - 5 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-8345
SELECT COUNT ( * ) + + - 5 FROM tab1 AS cor0
----
-2

query I rowsort
SELECT ALL + col2 * + 35 AS col0 FROM tab2 AS cor0
----
1400
2030
805

query I rowsort
SELECT + - 57 * - col0 + - - col1 + col1 AS col0 FROM tab0 AS cor0
----
1017
5001
5531

onlyif mysql # aggregate syntax: 
query I rowsort label-8348
SELECT + - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-8348
SELECT + - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 cor0
----
0

query I rowsort
SELECT ALL - - 53 AS col2 FROM tab1 cor0 WHERE NOT + col1 * 66 - + col0 = NULL
----

query I rowsort
SELECT ALL + + col2 + + 85 FROM tab0 AS cor0
----
132
184
95

query I rowsort
SELECT ALL - ( 9 ) FROM tab1 AS cor0
----
-9
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT + SUM( ALL - col1 ) + + 8 + 43 col0 FROM tab1
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8352
SELECT DISTINCT + SUM ( ALL - col1 ) + + 8 + 43 col0 FROM tab1
----
-15

query III rowsort
SELECT * FROM tab0 WHERE col1 + 27 = col2 * - col0
----

query II rowsort
SELECT 27 AS col0, col0 + - - 47 + + col0 * col1 AS col2 FROM tab2
----
27
2439
27
5039
27
5147

query I rowsort
SELECT - - 61 FROM tab2 WHERE + col1 > - + col0 / + 84 + col2 + + ( - 44 )
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8356
SELECT + col0 * CAST( NULL AS SIGNED ) * + + col0 FROM tab2 WHERE - col0 * - ( - - 25 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8356
SELECT + col0 * CAST ( NULL AS INTEGER ) * + + col0 FROM tab2 WHERE - col0 * - ( - - 25 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + - col2 col2 FROM tab0 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT - col1 - - - col2 + 33 AS col0, 73 * ( + + col1 ), - col0 AS col1 FROM tab0 AS cor0
----
9 values hashing to 1afe2f3b9465674aeeba34e2973983cf

query III rowsort
SELECT * FROM tab0 WHERE NOT - ( 4 ) <= - col1
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL - COUNT( * ) * + MAX( ALL - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL - COUNT ( * ) * + MAX ( ALL - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE ( NOT + 30 + col1 = - col0 )
----
1
21
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 30 * 14 col0, - 37 FROM tab1
----
420
-37
420
-37
420
-37

onlyif mysql # DIV for integer division: 
query I rowsort label-8363
SELECT col1 DIV - 80 AS col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8363
SELECT col1 / - 80 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) >= NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 84 * + 11 <> col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8366
SELECT ALL + MAX( ALL - col0 ) DIV - 13 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-8366
SELECT ALL + MAX ( ALL - col0 ) / - 13 AS col1 FROM tab0
----
1

query I rowsort
SELECT ( + 95 ) AS col0 FROM tab2
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8368
SELECT DISTINCT + 25 + - COUNT( ALL + + col2 ) FROM tab2 WHERE NOT - + col1 * 17 IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-8368
SELECT DISTINCT + 25 + - COUNT ( ALL + + col2 ) FROM tab2 WHERE NOT - + col1 * 17 IS NOT NULL
----
25

query I rowsort
SELECT - 49 * + 15 FROM tab2
----
-735
-735
-735

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1 * 90 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8371
SELECT COUNT( DISTINCT - + col2 ) * COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8371
SELECT COUNT ( DISTINCT - + col2 ) * COUNT ( * ) AS col2 FROM tab0
----
9

query I rowsort
SELECT col0 * - col0 * + col2 AS col2 FROM tab1
----
-249696
-426275
-563108

query I rowsort
SELECT DISTINCT + ( - 77 ) AS col1 FROM tab0
----
-77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8374
SELECT ALL 57 * CAST( + - 87 AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > + col0 * + col2
----

skipif mysql # not compatible
query I rowsort label-8374
SELECT ALL 57 * CAST ( + - 87 AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL > + col0 * + col2
----

query I rowsort
SELECT DISTINCT - ( - - 39 ) + - col0 FROM tab0 AS cor0
----
-126
-136
-54

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( col0 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8377
SELECT + col0 DIV - col1 + - + 58 FROM tab1 cor0
----
-59
-61
-75

skipif mysql # not compatible
query I rowsort label-8377
SELECT + col0 / - col1 + - + 58 FROM tab1 cor0
----
-59
-61
-75

query III rowsort
SELECT * FROM tab1 WHERE - 41 + + ( - 62 ) >= - col0
----

query I rowsort
SELECT ( 64 ) FROM tab2
----
64
64
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8380
SELECT * FROM tab0 AS cor0 WHERE + CAST( col1 AS SIGNED ) * col0 * + 68 >= NULL
----

skipif mysql # not compatible
query III rowsort label-8380
SELECT * FROM tab0 AS cor0 WHERE + CAST ( col1 AS INTEGER ) * col0 * + 68 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 81 col1, col2 AS col1 FROM tab2 AS cor0
----
81
23
81
40
81
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 col1 FROM tab1 AS cor0
----
21
54
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 71, - col1 * + col1 col1 FROM tab1 AS cor0
----
-71
-196
-71
-2209
-71
-25

query I rowsort
SELECT - - 18 + - col1 FROM tab1 AS cor0
----
-29
13
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8385
SELECT + col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8385
SELECT + col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col0 * + ( + col0 ) AS col2 FROM tab0
----
306
7590
9410

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8387
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL > + - col0
----

skipif mysql # not compatible
query I rowsort label-8387
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL > + - col0
----

query I rowsort
SELECT DISTINCT col1 * col2 * - + col2 + + col1 AS col0 FROM tab2
----
-123123
-225321
-26928

query I rowsort
SELECT ( col2 ) + + 38 * + + 97 * - 37 + col1 FROM tab1
----
-136267
-136272
-136318

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT ALL MAX( ALL 73 ) * - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8390
SELECT ALL MAX ( ALL 73 ) * - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-219

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 * - 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8392
SELECT - COUNT( DISTINCT + 57 ) AS col0 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8392
SELECT - COUNT ( DISTINCT + 57 ) AS col0 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT + col0, + 67 FROM tab1 AS cor0
----
51
67
85
67
91
67

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8394
SELECT DISTINCT + - col0 * CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8394
SELECT DISTINCT + - col0 * CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 94 AS col1 FROM tab2 cor0
----
94
94
94

query I rowsort
SELECT + 5 + + - col0 FROM tab0 cor0 WHERE NOT col2 * - col2 * col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8397
SELECT + COUNT( * ) AS col0, + MAX( 59 ) DIV - - 96 FROM tab2 AS cor0
----
3
0

skipif mysql # not compatible
query II rowsort label-8397
SELECT + COUNT ( * ) AS col0, + MAX ( 59 ) / - - 96 FROM tab2 AS cor0
----
3
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8398
SELECT DISTINCT + + 31 / 68 / CAST( NULL AS SIGNED ) * - + col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8398
SELECT DISTINCT + + 31 / 68 / CAST ( NULL AS INTEGER ) * - + col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8399
SELECT COUNT( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8399
SELECT COUNT ( DISTINCT - col1 ) AS col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col0 / + + col2 * + - col0 * - 67 + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 + - col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 76 * - col1 + col2 AS col0 FROM tab1
----
-321
-3504
-968

onlyif mysql # aggregate syntax: 
query II rowsort label-8403
SELECT ALL + COUNT( * ) * COUNT( * ) AS col2, 56 AS col0 FROM tab1
----
9
56

skipif mysql # not compatible
query II rowsort label-8403
SELECT ALL + COUNT ( * ) * COUNT ( * ) AS col2, 56 AS col0 FROM tab1
----
9
56

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 - - col0 IS NOT NULL
----

query II rowsort
SELECT col2 * - 73, + col0 FROM tab0 AS cor0
----
-3431
15
-7227
97
-730
87

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 3 + - 67 * - 31 * 45 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM ( tab0 cor0 CROSS JOIN tab1 cor1 ) WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8408
SELECT ALL + 72 * COUNT( * ) + 31 * + + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8408
SELECT ALL + 72 * COUNT ( * ) + 31 * + + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8409
SELECT - - COUNT( DISTINCT - - 70 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8409
SELECT - - COUNT ( DISTINCT - - 70 ) FROM tab0 AS cor0
----
1

query II rowsort
SELECT col1 * - 74 * + 43, 86 * - - col0 AS col2 FROM tab0 AS cor0
----
-257742
1290
-3182
8342
-66822
7482

query I rowsort
SELECT + 7 * - col0 FROM tab1 cor0
----
-357
-595
-637

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - + col2 + col2 * + 86 * + 5 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8413
SELECT ALL - - MAX( DISTINCT + - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8413
SELECT ALL - - MAX ( DISTINCT + - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL ( 35 ) * - col0 + + + col1 FROM tab0
----
-3024
-3394
-444

query I rowsort
SELECT ALL col1 - - - 73 FROM tab1
----
-26
-59
-68

query I rowsort
SELECT col1 - + + 19 FROM tab1
----
-14
-5
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8417
SELECT + SUM( DISTINCT ( col1 ) ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-8417
SELECT + SUM ( DISTINCT ( col1 ) ) AS col1 FROM tab0
----
103

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + - col2 ) + ( - - col1 ) col1 FROM tab0 AS cor0 WHERE 97 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT - - COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 27 NOT BETWEEN col2 AND - col2
----
0

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT - - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT 27 NOT BETWEEN col2 AND - col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8420
SELECT + - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8420
SELECT + - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----
0

query I rowsort
SELECT ALL + ( + 45 ) FROM tab0 AS cor0 WHERE NULL IS NULL
----
45
45
45

query I rowsort
SELECT DISTINCT + col2 FROM tab1 AS cor0 WHERE 91 BETWEEN col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 49 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8424
SELECT DISTINCT - COUNT( + col2 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8424
SELECT DISTINCT - COUNT ( + col2 ) AS col2 FROM tab2
----
-3

query II rowsort
SELECT + 63, col2 FROM tab1
----
63
59
63
68
63
96

query I rowsort
SELECT + 88 + + + 5 AS col0 FROM tab1
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8427
SELECT ALL + COUNT( * ) + + SUM( + 20 ) FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-8427
SELECT ALL + COUNT ( * ) + + SUM ( + 20 ) FROM tab1
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8428
SELECT + COUNT( * ) + + COUNT( * ) * - + 38 * - COUNT( * ) FROM tab1
----
345

skipif mysql # not compatible
query I rowsort label-8428
SELECT + COUNT ( * ) + + COUNT ( * ) * - + 38 * - COUNT ( * ) FROM tab1
----
345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8429
SELECT ALL - col2 * + CAST( 81 AS SIGNED ) + 75 FROM tab1
----
-4704
-5433
-7701

skipif mysql # not compatible
query I rowsort label-8429
SELECT ALL - col2 * + CAST ( 81 AS INTEGER ) + 75 FROM tab1
----
-4704
-5433
-7701

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8430
SELECT DISTINCT * FROM tab0 WHERE NOT 0 * - col1 <> + 22 - - CAST( NULL AS SIGNED ) * 61
----

skipif mysql # not compatible
query III rowsort label-8430
SELECT DISTINCT * FROM tab0 WHERE NOT 0 * - col1 <> + 22 - - CAST ( NULL AS INTEGER ) * 61
----

query II rowsort
SELECT - 64, 57 AS col0 FROM tab2 AS cor0
----
-64
57
-64
57
-64
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 39 col0 FROM tab2
----
39

query III rowsort
SELECT * FROM tab1 WHERE NOT - 4 BETWEEN 36 AND col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 51 AS col2 FROM tab2 WHERE NOT NULL <= + 25 * 37
----

query I rowsort
SELECT 88 + col0 * - ( 8 ) AS col0 FROM tab0
----
-32
-608
-688

onlyif mysql # DIV for integer division: 
query I rowsort label-8436
SELECT 0 DIV - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8436
SELECT 0 / - col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8437
SELECT + COUNT( * ) + - 13 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-8437
SELECT + COUNT ( * ) + - 13 FROM tab1
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) < - col1
----

query I rowsort
SELECT 55 * - 26 AS col2 FROM tab0
----
-1430
-1430
-1430

query I rowsort
SELECT 61 + + 15 FROM tab2
----
76
76
76

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE - col1 * 52 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8442
SELECT ALL 2 DIV - col0 + - 13 * 57 FROM tab1
----
-741
-741
-741

skipif mysql # not compatible
query I rowsort label-8442
SELECT ALL 2 / - col0 + - 13 * 57 FROM tab1
----
-741
-741
-741

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 - - 47 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 IN ( ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + 75 * - col2 FROM tab0
----
-3525
-7425
-750

query I rowsort
SELECT ALL + 52 / - col1 FROM tab1 WHERE NOT ( ( col0 ) ) > ( col1 )
----

query I rowsort
SELECT 22 * 15 + 81 AS col0 FROM tab2
----
411
411
411

query I rowsort
SELECT + 28 AS col1 FROM tab2 WHERE NULL > NULL
----

query I rowsort
SELECT DISTINCT 36 + col2 AS col1 FROM tab0 WHERE NOT ( 61 / - col0 ) BETWEEN + 4 AND col0
----
135
46
83

onlyif mysql # aggregate syntax: 
query I rowsort label-8450
SELECT - COUNT( + 71 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8450
SELECT - COUNT ( + 71 ) FROM tab2
----
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8451
SELECT MAX( ALL - col1 ) DIV 28 - COUNT( * ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-8451
SELECT MAX ( ALL - col1 ) / 28 - COUNT ( * ) FROM tab0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8452
SELECT - CAST( NULL AS SIGNED ) / - col1 - + col1 * 71 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8452
SELECT - CAST ( NULL AS INTEGER ) / - col1 - + col1 * 71 col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col2 ) BETWEEN + 66 AND + col2 - - 72
----
15
81
47
87
21
10

query I rowsort
SELECT DISTINCT 80 AS col0 FROM tab1 AS cor0 WHERE NOT ( - col1 ) NOT BETWEEN col0 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8455
SELECT 50 * COUNT( * ) FROM tab2 cor0
----
150

skipif mysql # not compatible
query I rowsort label-8455
SELECT 50 * COUNT ( * ) FROM tab2 cor0
----
150

query I rowsort
SELECT DISTINCT + ( + col1 ) * - col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8457
SELECT DISTINCT MAX( + 19 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
19

skipif mysql # not compatible
query I rowsort label-8457
SELECT DISTINCT MAX ( + 19 ) FROM tab2 AS cor0 CROSS JOIN tab1
----
19

query I rowsort
SELECT col0 AS col1 FROM tab1 AS cor0 WHERE NOT ( - col1 ) BETWEEN col1 AND - 49
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 93 + 44 * 2 col0 FROM tab0 AS cor0
----
181
181
181

query I rowsort
SELECT + col2 + + 10 FROM tab0 AS cor0
----
109
20
57

query I rowsort
SELECT + ( + 24 ) + col2 FROM tab0 AS cor0
----
123
34
71

query I rowsort
SELECT ALL + col1 * - 96 FROM tab1 AS cor0
----
-1344
-4512
-480

query I rowsort
SELECT + ( + col0 ) FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8464
SELECT ALL + ( + CAST( CAST( NULL AS DECIMAL ) AS DECIMAL ) ) / col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8464
SELECT ALL + ( + CAST ( CAST ( NULL AS REAL ) AS REAL ) ) / col0 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 61 col1 FROM tab2 cor0 WHERE NULL <> col2 + 85
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT ALL - CAST( - 66 AS SIGNED ) + - COUNT( * ) FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-8466
SELECT ALL - CAST ( - 66 AS INTEGER ) + - COUNT ( * ) FROM tab1 AS cor0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-8467
SELECT - 90 DIV + ( + col0 * col0 ) col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8467
SELECT - 90 / + ( + col0 * col0 ) col1 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT 4 + + col1 AS col0 FROM tab1
----
18
51
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8469
SELECT + CAST( + MAX( col1 ) AS SIGNED ) AS col0 FROM tab1
----
47

skipif mysql # not compatible
query I rowsort label-8469
SELECT + CAST ( + MAX ( col1 ) AS INTEGER ) AS col0 FROM tab1
----
47

query I rowsort
SELECT 2 AS col0 FROM tab0 WHERE col1 < ( col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE 14 / - col1 IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT COUNT( * ) * - SUM( + col2 ) AS col2 FROM tab2
----
-363

skipif mysql # not compatible
query I rowsort label-8472
SELECT COUNT ( * ) * - SUM ( + col2 ) AS col2 FROM tab2
----
-363

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8473
SELECT ALL 25 + + - col0 * - CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8473
SELECT ALL 25 + + - col0 * - CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * 29 AS col0 FROM tab1
----
1711
1972
2784

query I rowsort
SELECT ALL 52 * - col2 * col0 FROM tab1
----
-254592
-260780
-321776

query I rowsort
SELECT 85 * + 51 AS col2 FROM tab2
----
4335
4335
4335

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8477
SELECT col1 * - + CAST( 88 AS SIGNED ) FROM tab0 AS cor0
----
-1848
-7128
-88

skipif mysql # not compatible
query I rowsort label-8477
SELECT col1 * - + CAST ( 88 AS INTEGER ) FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8478
SELECT - 17 - COUNT( * ) + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-8478
SELECT - 17 - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8479
SELECT + CAST( NULL AS SIGNED ) / + col2 + - 85 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8479
SELECT + CAST ( NULL AS INTEGER ) / + col2 + - 85 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE - col0 * - 99 <= 27 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8481
SELECT ALL + COUNT( * ) - + COUNT( * ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8481
SELECT ALL + COUNT ( * ) - + COUNT ( * ) FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8482
SELECT ALL - 17 * - col1 FROM tab2 AS cor0 WHERE ( col2 - 82 ) < CAST( 4 AS SIGNED )
----
1139
1309
867

skipif mysql # not compatible
query I rowsort label-8482
SELECT ALL - 17 * - col1 FROM tab2 AS cor0 WHERE ( col2 - 82 ) < CAST ( 4 AS INTEGER )
----
1139
1309
867

onlyif mysql # DIV for integer division: 
query I rowsort label-8483
SELECT ALL - col1 - - col0 - col2 + + col2 DIV - col1 AS col2 FROM tab1 AS cor0
----
-25
-65
10

skipif mysql # not compatible
query I rowsort label-8483
SELECT ALL - col1 - - col0 - col2 + + col2 / - col1 AS col2 FROM tab1 AS cor0
----
-25
-65
10

query I rowsort
SELECT DISTINCT ( + 41 ) - 58 FROM tab1 AS cor0
----
-17

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT 85 > + col1
----

query I rowsort
SELECT DISTINCT 68 - ( - 61 ) FROM tab0 cor0
----
129

query I rowsort
SELECT ALL + col0 - 77 + + col1 AS col1 FROM tab0 AS cor0
----
19
21
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 AS cor0 WHERE NOT ( - 17 ) NOT IN ( + col2 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8489
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 + - col2 * - col2 ) AND col0 + - 71
----
0

skipif mysql # not compatible
query I rowsort label-8489
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( col2 + - col2 * - col2 ) AND col0 + - 71
----
0

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8491
SELECT ( CAST( + - 77 AS SIGNED ) ) FROM tab1
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-8491
SELECT ( CAST ( + - 77 AS INTEGER ) ) FROM tab1
----
-77
-77
-77

query I rowsort
SELECT col0 FROM tab2 WHERE NOT + col1 + - col0 <> - col0
----

query I rowsort
SELECT col2 * - col2 AS col1 FROM tab1 WHERE NOT - 94 < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8494
SELECT ( + 30 ) DIV CAST( - SUM( DISTINCT + col1 ) AS SIGNED ) * - 34 + ( - MAX( col1 ) ) * + 31 AS col2 FROM tab1
----
-1457

skipif mysql # not compatible
query I rowsort label-8494
SELECT ( + 30 ) / CAST ( - SUM ( DISTINCT + col1 ) AS INTEGER ) * - 34 + ( - MAX ( col1 ) ) * + 31 AS col2 FROM tab1
----
-1457

query II rowsort
SELECT DISTINCT + + ( - 62 ) AS col0, col1 FROM tab0 AS cor0
----
-62
1
-62
21
-62
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8496
SELECT MIN( + 1 ) - + 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

skipif mysql # not compatible
query I rowsort label-8496
SELECT MIN ( + 1 ) - + 44 AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8497
SELECT ALL + + CAST( + col2 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-8497
SELECT ALL + + CAST ( + col2 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col1 * + col2 FROM tab0 AS cor0 WHERE col2 NOT BETWEEN ( col0 * col2 ) AND ( + col0 )
----
210
3807
99

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 >= + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + col2 + + col0 * col1 AS col2 FROM tab2 AS cor0
----
2392
5008
5141

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8501
SELECT DISTINCT + CAST( + ( - 54 ) AS SIGNED ) AS col2, + 62 col2 FROM tab0 AS cor0
----
-54
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8501
SELECT DISTINCT + CAST ( + ( - 54 ) AS INTEGER ) AS col2, + 62 col2 FROM tab0 AS cor0
----
-54
62

query I rowsort
SELECT + 83 + col0 * 76 * + + col0 * col1 * - - 67 - col2 AS col2 FROM tab1
----
183948524
185420075
1981842059

query I rowsort
SELECT ALL 62 + + col1 AS col0 FROM tab2
----
113
129
139

query I rowsort
SELECT 67 + - 53 FROM tab2
----
14
14
14

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 67 + - + col0 + 89 BETWEEN - ( + ( col2 ) ) AND ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8506
SELECT DISTINCT - ( + col0 ) + + 34 + - 8 + - 45 - + - CAST( NULL AS SIGNED ) + ( + col2 ) * 2 * - col2 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8506
SELECT DISTINCT - ( + col0 ) + + 34 + - 8 + - 45 - + - CAST ( NULL AS INTEGER ) + ( + col2 ) * 2 * - col2 AS col2 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 50 + - col1 col0 FROM tab2
----
-101
-117
-127

query II rowsort
SELECT 54 + - - col2 AS col0, - col0 + - col2 * - col2 FROM tab1
----
113
3396
122
4533
150
9165

query I rowsort
SELECT 81 FROM tab0, tab1 cor0
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

onlyif mysql # aggregate syntax: 
query I rowsort label-8510
SELECT 5 + + COUNT( * ) AS col2 FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-8510
SELECT 5 + + COUNT ( * ) AS col2 FROM tab1
----
8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8511
SELECT DISTINCT - MAX( col2 ) + CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8511
SELECT DISTINCT - MAX ( col2 ) + CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8512
SELECT MAX( + - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-8512
SELECT MAX ( + - col1 ) FROM tab0 AS cor0
----
-1

query I rowsort
SELECT - 30 AS col1 FROM tab0 AS cor0 WHERE + col0 * + col2 + - + col0 IS NOT NULL
----
-30
-30
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8514
SELECT COUNT( DISTINCT + 55 ) * 78 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-8514
SELECT COUNT ( DISTINCT + 55 ) * 78 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
26

query I rowsort
SELECT 51 - col2 FROM tab2
----
-7
11
28

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8516
SELECT - col1 - + 90 AS col0, CAST( NULL AS DECIMAL ) * col2 * + 64 FROM tab1
----
-104
NULL
-137
NULL
-95
NULL

skipif mysql # not compatible
query II rowsort label-8516
SELECT - col1 - + 90 AS col0, CAST ( NULL AS REAL ) * col2 * + 64 FROM tab1
----
-104
NULL
-137
NULL
-95
NULL

query I rowsort
SELECT ALL - col0 + - ( + ( + - 34 ) ) FROM tab1
----
-17
-51
-57

query III rowsort
SELECT * FROM tab2 WHERE - col2 <> col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT DISTINCT COUNT( * ) + - - 9 AS col2 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-8519
SELECT DISTINCT COUNT ( * ) + - - 9 AS col2 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT + + SUM( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
121

skipif mysql # not compatible
query I rowsort label-8520
SELECT + + SUM ( ALL - - col2 ) AS col2 FROM tab2 AS cor0
----
121

query I rowsort
SELECT - col0 + + col2 * 3 / - 24 + + ( + col1 ) FROM tab0 AS cor0 WHERE NOT ( - col2 * col0 * - col1 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( - 66, col2 )
----

query I rowsort
SELECT - + ( + ( col0 ) ) * col1 FROM tab1 AS cor0
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN - ( + ( + 58 ) ) - + 69 AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8525
SELECT ALL + 63 AS col0, MIN( ALL - + col0 ) FROM tab2
----
63
-75

skipif mysql # not compatible
query II rowsort label-8525
SELECT ALL + 63 AS col0, MIN ( ALL - + col0 ) FROM tab2
----
63
-75

query I rowsort
SELECT - ( ( - 1 ) ) AS col1 FROM tab1 WHERE NOT - col1 = 39
----
1
1
1

query I rowsort
SELECT ALL 26 * + - col1 AS col2 FROM tab2
----
-1326
-1742
-2002

onlyif mysql # DIV for integer division: 
query I rowsort label-8528
SELECT 52 DIV + + col1 AS col2 FROM tab1
----
1
10
3

skipif mysql # not compatible
query I rowsort label-8528
SELECT 52 / + + col1 AS col2 FROM tab1
----
1
10
3

query I rowsort
SELECT - col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT - col1 AS col1, col0 AS col2 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 53 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8532
SELECT ALL col1 * col0 DIV - + col2 + + - 10 AS col1, - col0 col2 FROM tab0
----
-10
-97
-192
-87
-35
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8532
SELECT ALL col1 * col0 / - + col2 + + - 10 AS col1, - col0 col2 FROM tab0
----
-10
-97
-192
-87
-35
-15

query I rowsort
SELECT DISTINCT 21 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 LEFT OUTER JOIN tab2 cor1 ON NULL IS NOT NULL
----
18 values hashing to 18b19f89ce73392082a69acc4aed78f1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8535
SELECT + COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8535
SELECT + COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL col0 * - - col1 + - + col1 FROM tab1
----
420
4230
700

query I rowsort
SELECT DISTINCT - 24 AS col2 FROM tab1 WHERE NULL IS NULL
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8538
SELECT ALL 45 - + - COUNT( * ) AS col1 FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-8538
SELECT ALL 45 - + - COUNT ( * ) AS col1 FROM tab0
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8539
SELECT 85 - - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8539
SELECT 85 - - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8540
SELECT * FROM tab2 WHERE NOT col2 + + CAST( NULL AS SIGNED ) + - + ( + col2 ) - - col1 < NULL AND NOT 95 = - + 77
----

skipif mysql # not compatible
query III rowsort label-8540
SELECT * FROM tab2 WHERE NOT col2 + + CAST ( NULL AS INTEGER ) + - + ( + col2 ) - - col1 < NULL AND NOT 95 = - + 77
----

query I rowsort
SELECT DISTINCT - ( - + col0 ) - + col1 - + - 60 AS col1 FROM tab2 AS cor0
----
47
55
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 47 * + - col1 IN ( - 21, col1 * + + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8543
SELECT + 87 * + CAST( NULL AS SIGNED ) + - 33 + - 71 AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8543
SELECT + 87 * + CAST ( NULL AS INTEGER ) + - 33 + - 71 AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8544
SELECT 12 * + 93 * COUNT( * ) AS col1 FROM tab0
----
3348

skipif mysql # not compatible
query I rowsort label-8544
SELECT 12 * + 93 * COUNT ( * ) AS col1 FROM tab0
----
3348

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + ( - MIN( DISTINCT + col1 ) ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-8545
SELECT + ( - MIN ( DISTINCT + col1 ) ) AS col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8546
SELECT DISTINCT + + 68 * - COUNT( * ) col2 FROM tab0 AS cor0
----
-204

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8546
SELECT DISTINCT + + 68 * - COUNT ( * ) col2 FROM tab0 AS cor0
----
-204

query I rowsort
SELECT + ( - - 8 ) AS col1 FROM tab1 cor0
----
8
8
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col2, col0 * + 93 AS col2 FROM tab0 AS cor0
----
10
8091
47
1395
99
9021

query I rowsort
SELECT - 60 - + col1 FROM tab1 AS cor0 WHERE NOT + 22 + - col2 < - 2 * - 40
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8550
SELECT ALL - col0 * ( - col1 ) DIV + col0 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8550
SELECT ALL - col0 * ( - col1 ) / + col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8551
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NULL <= - col1
----
0

skipif mysql # not compatible
query I rowsort label-8551
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL <= - col1
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT + 91 * + + col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8553
SELECT MIN( col0 ) * 16 FROM tab0 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8553
SELECT MIN ( col0 ) * 16 FROM tab0 WHERE NOT ( NULL IS NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8554
SELECT DISTINCT + COUNT( * ) + 6 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----
6

skipif mysql # not compatible
query I rowsort label-8554
SELECT DISTINCT + COUNT ( * ) + 6 AS col2 FROM tab0 WHERE NOT NULL <= NULL
----
6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( col2 * + col0 ) BETWEEN + col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8556
SELECT - + COUNT( * ) + + + 53 col1 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8556
SELECT - + COUNT ( * ) + + + 53 col1 FROM tab1 AS cor0
----
50

query I rowsort
SELECT - 25 * - 55 * + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT + col2 AS col0, col0 AS col2 FROM tab1
----
59
85
68
91
96
51

onlyif mysql # DIV for integer division: 
query II rowsort label-8559
SELECT DISTINCT - col2 * - col0 DIV - - col0 AS col2, + 67 AS col1 FROM tab0 AS cor0
----
10
67
47
67
99
67

skipif mysql # not compatible
query II rowsort label-8559
SELECT DISTINCT - col2 * - col0 / - - col0 AS col2, + 67 AS col1 FROM tab0 AS cor0
----
10
67
47
67
99
67

query I rowsort
SELECT DISTINCT + + 86 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8561
SELECT ALL + - 83 * + COUNT( * ) FROM tab2 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-8561
SELECT ALL + - 83 * + COUNT ( * ) FROM tab2 AS cor0
----
-249

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 12 + - col1 col2 FROM tab2 AS cor0
----
-39
-55
-65

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 AS cor0 WHERE NOT 43 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT - 11 + + COUNT( * ) FROM tab2 cor0
----
-8

skipif mysql # not compatible
query I rowsort label-8564
SELECT - 11 + + COUNT ( * ) FROM tab2 cor0
----
-8

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 43 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8566
SELECT - CAST( NULL AS SIGNED ) + col1 * - 5 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8566
SELECT - CAST ( NULL AS INTEGER ) + col1 * - 5 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + + col1 AS col2 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8568
SELECT 44 * SUM( DISTINCT col0 ) + + 92 AS col0 FROM tab2
----
8232

skipif mysql # not compatible
query I rowsort label-8568
SELECT 44 * SUM ( DISTINCT col0 ) + + 92 AS col0 FROM tab2
----
8232

onlyif mysql # DIV for integer division: 
query I rowsort label-8569
SELECT DISTINCT col0 DIV - col1 + - 6 + - 49 col1 FROM tab0
----
-152
-55
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8569
SELECT DISTINCT col0 / - col1 + - 6 + - 49 col1 FROM tab0
----
-152
-55
-59

query I rowsort
SELECT DISTINCT 54 + + + 62 FROM tab1
----
116

query I rowsort
SELECT - col1 + ( - col1 ) AS col1 FROM tab0
----
-162
-2
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col2 + - 51 col0 FROM tab1
----
4845
4964
6137

onlyif mysql # DIV for integer division: 
query I rowsort label-8573
SELECT + col0 + - + col1 + - + col0 DIV + + col2 FROM tab0
----
-66
58
96

skipif mysql # not compatible
query I rowsort label-8573
SELECT + col0 + - + col1 + - + col0 / + + col2 FROM tab0
----
-66
58
96

query III rowsort
SELECT * FROM tab0 WHERE col0 + - col2 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT CAST( NULL AS SIGNED ) / col0 + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8575
SELECT CAST ( NULL AS INTEGER ) / col0 + - - col1 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - ( + col2 ) + + col0 + - col2 * + - 27 FROM tab2
----
1104
1583
644

query I rowsort
SELECT ALL col2 * + col2 - - col1 AS col2 FROM tab0 AS cor0
----
121
2290
9802

query I rowsort
SELECT ALL + + col0 * + 95 + - col2 - col2 * + col0 FROM tab2 AS cor0
----
2717
3289
3480

query I rowsort
SELECT + - col2 - + - col1 AS col1 FROM tab0 cor0
----
-98
11
34

onlyif mysql # aggregate syntax: 
query I rowsort label-8580
SELECT + SUM( 62 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
186

skipif mysql # not compatible
query I rowsort label-8580
SELECT + SUM ( 62 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
186

query I rowsort
SELECT + + 90 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 96f7a90428db93f472e0d219bab64853

query I rowsort
SELECT col2 + + + col2 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 AND + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 / col0 / - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 39 * + col0 AS col1 FROM tab0 AS cor0
----
-3393
-3783
-585

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 1 * + 51 * 93 col2, col2 AS col1 FROM tab0 AS cor0
----
-4743
10
-4743
47
-4743
99

onlyif mysql # aggregate syntax: 
query II rowsort label-8586
SELECT - - 37 AS col0, SUM( + + col0 ) * + - 31 FROM tab2 AS cor0
----
37
-5735

skipif mysql # not compatible
query II rowsort label-8586
SELECT - - 37 AS col0, SUM ( + + col0 ) * + - 31 FROM tab2 AS cor0
----
37
-5735

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8587
SELECT DISTINCT - ( COUNT( * ) ) * + 12 DIV - 49 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8587
SELECT DISTINCT - ( COUNT ( * ) ) * + 12 / - 49 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8588
SELECT ALL - - 66 * + 3 DIV MAX( - col2 ) DIV - 72 * - COUNT( * ) + + 28 - 81 AS col0 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8588
SELECT ALL - - 66 * + 3 / MAX ( - col2 ) / - 72 * - COUNT ( * ) + + 28 - 81 AS col0 FROM tab2 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8589
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN CAST( col2 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8589
SELECT ALL - col1 FROM tab2 AS cor0 WHERE NULL BETWEEN CAST ( col2 AS INTEGER ) AND NULL
----

query I rowsort
SELECT col1 * - col2 + - col2 AS col0 FROM tab2 cor0
----
-1196
-3120
-3944

query II rowsort
SELECT + 82 AS col2, col0 * 37 AS col0 FROM tab2
----
82
1702
82
2368
82
2775

query I rowsort
SELECT ALL - + col1 AS col1 FROM tab1 WHERE NOT NULL > + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8593
SELECT - col0 DIV - 14 FROM tab1
----
3
6
6

skipif mysql # not compatible
query I rowsort label-8593
SELECT - col0 / - 14 FROM tab1
----
3
6
6

query II rowsort
SELECT 66, - 45 AS col0 FROM tab0
----
66
-45
66
-45
66
-45

query I rowsort
SELECT ALL - + col1 * + + col2 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8596
SELECT DISTINCT 75 DIV + + COUNT( * ) FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8596
SELECT DISTINCT 75 / + + COUNT ( * ) FROM tab1 AS cor0
----
25

onlyif mysql # aggregate syntax: 
query I rowsort label-8597
SELECT - - MIN( DISTINCT - + 47 ) * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-141

skipif mysql # not compatible
query I rowsort label-8597
SELECT - - MIN ( DISTINCT - + 47 ) * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8598
SELECT CAST( - - col1 AS SIGNED ) * - col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-8598
SELECT CAST ( - - col1 AS INTEGER ) * - col2 AS col2 FROM tab1 AS cor0
----
-1344
-295
-3196

onlyif mysql # aggregate syntax: 
query I rowsort label-8599
SELECT DISTINCT 31 + + - COUNT( * ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-8599
SELECT DISTINCT 31 + + - COUNT ( * ) FROM tab2 AS cor0
----
28

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-8600
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST( + 17 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-8600
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + CAST ( + 17 AS REAL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - + col0 / - 92 * 99 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 94 + + col2 * + col1 AS col1 FROM tab0
----
193
304
3901

query II rowsort
SELECT col0 * + - col2 * - + col2 + - 29 + 90 - + col2 + + col0, col1 FROM tab1
----
295972
5
420868
47
470032
14

query I rowsort
SELECT + col1 * - col1 * + 48 FROM tab2 cor0
----
-124848
-215472
-284592

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 NOT IN ( - col2, - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN - 54 * - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8607
SELECT col1 + + CAST( NULL AS SIGNED ) * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8607
SELECT col1 + + CAST ( NULL AS INTEGER ) * - col0 AS col0 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - + col1 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8609
SELECT ALL col0 + + CAST( - 22 AS SIGNED ) AS col1 FROM tab2
----
24
42
53

skipif mysql # not compatible
query I rowsort label-8609
SELECT ALL col0 + + CAST ( - 22 AS INTEGER ) AS col1 FROM tab2
----
24
42
53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col2 FROM tab0 WHERE ( 68 + + col0 + + + ( - col0 ) * - col0 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8611
SELECT DISTINCT ( ( - COUNT( ALL + col1 ) ) ) + + 48 - + + COUNT( * ) + - - COUNT( * ) AS col1 FROM tab1
----
45

skipif mysql # not compatible
query I rowsort label-8611
SELECT DISTINCT ( ( - COUNT ( ALL + col1 ) ) ) + + 48 - + + COUNT ( * ) + - - COUNT ( * ) AS col1 FROM tab1
----
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8612
SELECT ALL 66 - - + CAST( + + 55 AS SIGNED ) AS col2 FROM tab0
----
121
121
121

skipif mysql # not compatible
query I rowsort label-8612
SELECT ALL 66 - - + CAST ( + + 55 AS INTEGER ) AS col2 FROM tab0
----
121
121
121

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - COUNT( * ) - + 57 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-8613
SELECT - COUNT ( * ) - + 57 FROM tab1
----
-60

query I rowsort
SELECT ALL 6 + - col1 AS col0 FROM tab0
----
-15
-75
5

query I rowsort
SELECT DISTINCT - col2 - - + 52 FROM tab2
----
-6
12
29

onlyif mysql # aggregate syntax: 
query I rowsort label-8616
SELECT + COUNT( * ) + - COUNT( * ) * COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-8616
SELECT + COUNT ( * ) + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8617
SELECT + CAST( - + col0 AS SIGNED ) * - - col0 FROM tab0 AS cor0 WHERE NULL > + col2
----

skipif mysql # not compatible
query I rowsort label-8617
SELECT + CAST ( - + col0 AS INTEGER ) * - - col0 FROM tab0 AS cor0 WHERE NULL > + col2
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * + 44 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - - col0, col0 - - 95 AS col0 FROM tab1 cor0
----
51
146
85
180
91
186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 32 col1 FROM tab2 AS cor0
----
-32
-32
-32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8621
SELECT ALL - COUNT( * ) * + ( - + CAST( - + 14 AS SIGNED ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-126

skipif mysql # not compatible
query I rowsort label-8621
SELECT ALL - COUNT ( * ) * + ( - + CAST ( - + 14 AS INTEGER ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-126

query I rowsort
SELECT - + col2 * + - col0 FROM tab2 AS cor0
----
1058
2560
4350

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 48 IS NULL
----

query I rowsort
SELECT + - 25 AS col1 FROM tab1 AS cor0
----
-25
-25
-25

query I rowsort
SELECT col1 * + col0 * col0 AS col0 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8626
SELECT + ( - ( + + CAST( NULL AS SIGNED ) ) ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8626
SELECT + ( - ( + + CAST ( NULL AS INTEGER ) ) ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT ( + + 57 ) * + + col0 + + - col1 AS col2 FROM tab2
----
2571
3571
4208

onlyif mysql # aggregate syntax: 
query I rowsort label-8628
SELECT ALL + ( COUNT( * ) ) + - - 73 * + MAX( DISTINCT + col1 ) AS col0 FROM tab0
----
5916

skipif mysql # not compatible
query I rowsort label-8628
SELECT ALL + ( COUNT ( * ) ) + - - 73 * + MAX ( DISTINCT + col1 ) AS col0 FROM tab0
----
5916

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8629
SELECT * FROM tab0 WHERE NOT CAST( - + 97 AS DECIMAL ) NOT BETWEEN + col0 AND + - 31 + - + col1
----

skipif mysql # not compatible
query III rowsort label-8629
SELECT * FROM tab0 WHERE NOT CAST ( - + 97 AS REAL ) NOT BETWEEN + col0 AND + - 31 + - + col1
----

query I rowsort
SELECT DISTINCT + col1 * + 94 FROM tab2
----
4794
6298
7238

onlyif mysql # aggregate syntax: 
query I rowsort label-8631
SELECT 55 * - COUNT( * ) + + COUNT( * ) * - - 46 col1 FROM tab1
----
-27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8631
SELECT 55 * - COUNT ( * ) + + COUNT ( * ) * - - 46 col1 FROM tab1
----
-27

query I rowsort
SELECT - col1 + + 58 FROM tab2
----
-19
-9
7

query I rowsort
SELECT ALL + 88 * + col2 AS col1 FROM tab2 AS cor0
----
2024
3520
5104

onlyif mysql # DIV for integer division: 
query I rowsort label-8634
SELECT - - col1 DIV + + col2 AS col0 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8634
SELECT - - col1 / + + col2 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8635
SELECT ( + - MIN( ALL + - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-8635
SELECT ( + - MIN ( ALL + - col0 ) ) FROM tab1
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-8636
SELECT ALL - COUNT( * ) - - 31 AS col1 FROM tab2, tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-8636
SELECT ALL - COUNT ( * ) - - 31 AS col1 FROM tab2, tab0 AS cor0
----
22

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8637
SELECT col2 * col1 * - - CAST( - col1 AS SIGNED ) DIV - col1 + + 27 * 12 + - - col0 + + + col2 AS col0 FROM tab2 AS cor0
----
1566
3508
4343

skipif mysql # not compatible
query I rowsort label-8637
SELECT col2 * col1 * - - CAST ( - col1 AS INTEGER ) / - col1 + + 27 * 12 + - - col0 + + + col2 AS col0 FROM tab2 AS cor0
----
1566
3508
4343

query I rowsort
SELECT ALL - ( col2 ) AS col0 FROM tab0 AS cor0 WHERE NOT - 78 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - - 86 * + 53 - - 89 + - col2, + col2 FROM tab0 AS cor0
----
4548
99
4600
47
4637
10

query I rowsort
SELECT - col1 + - - col0 + - + 65 AS col1 FROM tab0 AS cor0
----
-131
1
31

query I rowsort
SELECT + + 85 + + 2 FROM tab1 AS cor0
----
87
87
87

query I rowsort
SELECT ALL - ( - - col2 ) * + col0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT - 10 * + - col1 AS col2 FROM tab0
----
10
210
810

query I rowsort
SELECT DISTINCT col0 - + - col1 FROM tab2 WHERE NULL BETWEEN - 6 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8646
SELECT MIN( + 28 ) AS col2 FROM tab2
----
28

skipif mysql # not compatible
query I rowsort label-8646
SELECT MIN ( + 28 ) AS col2 FROM tab2
----
28

query I rowsort
SELECT DISTINCT - 60 + + + col0 FROM tab2
----
-14
15
4

query I rowsort
SELECT DISTINCT - ( + - 32 ) * + col2 + - col0 FROM tab1
----
1803
2085
3021

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8650
SELECT - MAX( + - 42 ) FROM tab0 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-8650
SELECT - MAX ( + - 42 ) FROM tab0 AS cor0
----
42

query II rowsort
SELECT DISTINCT col1 * + col1 * col1 AS col1, - 24 + - col2 FROM tab1
----
103823
-92
125
-83
2744
-120

onlyif mysql # DIV for integer division: 
query II rowsort label-8652
SELECT ALL - 9 col2, - col0 - col0 - ( - - col2 ) DIV - + col0 AS col1 FROM tab1 AS cor0
----
-9
-101
-9
-170
-9
-182

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8652
SELECT ALL - 9 col2, - col0 - col0 - ( - - col2 ) / - + col0 AS col1 FROM tab1 AS cor0
----
-9
-101
-9
-170
-9
-182

onlyif mysql # aggregate syntax: 
query I rowsort label-8653
SELECT 94 + + - SUM( DISTINCT + ( - - col2 ) ) * COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT 94 + + - SUM ( DISTINCT + ( - - col2 ) ) * COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

query II rowsort
SELECT - col2, - 26 AS col0 FROM tab0 AS cor0
----
-10
-26
-47
-26
-99
-26

query I rowsort
SELECT DISTINCT col0 + + - 90 FROM tab2 WHERE ( + col2 NOT BETWEEN + ( + 53 ) AND + col1 + - + ( ( + - ( col0 ) ) ) * - + col2 )
----
-15
-26
-44

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= 1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8657
SELECT SUM( col0 ) * - COUNT( * ) AS col1 FROM tab2 AS cor0
----
-555

skipif mysql # not compatible
query I rowsort label-8657
SELECT SUM ( col0 ) * - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-555

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 62 IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT DISTINCT - 71 + - 38 AS col0 FROM tab1
----
-109

onlyif mysql # aggregate syntax: 
query I rowsort label-8660
SELECT + 58 * + + SUM( ALL - 1 ) FROM tab2 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-8660
SELECT + 58 * + + SUM ( ALL - 1 ) FROM tab2 AS cor0
----
-174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8661
SELECT ALL + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 cor0 WHERE + col1 + - col0 >= NULL
----

skipif mysql # not compatible
query I rowsort label-8661
SELECT ALL + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 cor0 WHERE + col1 + - col0 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - col2 / + 13 AND col2
----
85
5
59
91
47
68

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * 41 * + col1 * + col1 * - - 25 > - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 68 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 >= + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 23 * 92 AS col2 FROM tab0 AS cor0
----
-2116

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8667
SELECT ALL - + CAST( NULL AS SIGNED ) - CAST( 44 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL - + CAST ( NULL AS INTEGER ) - CAST ( 44 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 80 AS col1 FROM tab0 AS cor0 WHERE NULL < NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8669
SELECT - COUNT( * ) FROM tab1 WHERE - col1 NOT BETWEEN - + 13 * - CAST( col0 AS SIGNED ) AND + 5 * + - col2 + + 42 * - + col2
----
-3

skipif mysql # not compatible
query I rowsort label-8669
SELECT - COUNT ( * ) FROM tab1 WHERE - col1 NOT BETWEEN - + 13 * - CAST ( col0 AS INTEGER ) AND + 5 * + - col2 + + 42 * - + col2
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-8670
SELECT - col0 DIV - 73 AS col1 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8670
SELECT - col0 / - 73 AS col1 FROM tab1
----
0
1
1

query I rowsort
SELECT 66 * + + col1 FROM tab1
----
3102
330
924

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8672
SELECT - CAST( NULL AS SIGNED ) col1, + 51 + + ( + ( CAST( + + 66 AS SIGNED ) ) ) AS col2 FROM tab0
----
NULL
117
NULL
117
NULL
117

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8672
SELECT - CAST ( NULL AS INTEGER ) col1, + 51 + + ( + ( CAST ( + + 66 AS INTEGER ) ) ) AS col2 FROM tab0
----
NULL
117
NULL
117
NULL
117

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8673
SELECT ALL CAST( NULL AS SIGNED ) * + - 37 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8673
SELECT ALL CAST ( NULL AS INTEGER ) * + - 37 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL + + ( + ( + 81 ) ) * COUNT( * ) + + COUNT( * ) FROM tab1 WHERE + 65 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL + + ( + ( + 81 ) ) * COUNT ( * ) + + COUNT ( * ) FROM tab1 WHERE + 65 IS NULL
----
0

query II rowsort
SELECT ALL col0, - col0 + + col2 AS col1 FROM tab1
----
51
45
85
-26
91
-23

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 BETWEEN NULL AND - + col2 * + + 96 / - - col2 * - col1 * - 21
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT 5 + + 31 + - col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > + 75
----

query I rowsort
SELECT ALL + - col0 * - - col1 - - 27 * - col0 FROM tab0 AS cor0
----
-1620
-2716
-4176

query I rowsort
SELECT DISTINCT - col1 * + col2 * col1 AS col2 FROM tab2 cor0
----
-237160
-260362
-59823

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 * - - 2 + - col0 * - 92 / + + 67 * - + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - - 21 * - ( + col2 ) AS col0 FROM tab0 AS cor0 WHERE col2 >= - col1
----
-2079
-210
-987

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8683
SELECT - col1 + - - col2 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) / col2 + CAST( - 67 AS SIGNED ) * - + col0 = + 58 * col2 + + col1 * - col2
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-8683
SELECT - col1 + - - col2 FROM tab0 AS cor0 WHERE NOT ( - + col2 ) / col2 + CAST ( - 67 AS INTEGER ) * - + col0 = + 58 * col2 + + col1 * - col2
----
-11
-34
98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 10 col2 FROM tab1 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8685
SELECT COUNT( CAST( NULL AS SIGNED ) ), + COUNT( * ) col2 FROM tab2 AS cor0
----
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8685
SELECT COUNT ( CAST ( NULL AS INTEGER ) ), + COUNT ( * ) col2 FROM tab2 AS cor0
----
0
3

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col2 * + - col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 81 col2, col2 AS col1 FROM tab1
----
81
59
81
68
81
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8688
SELECT DISTINCT - SUM( - + col0 ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-8688
SELECT DISTINCT - SUM ( - + col0 ) FROM tab1
----
227

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * col1 + + col0 + + col0 col2 FROM tab2
----
2693
4639
6057

query I rowsort
SELECT 47 + + 78 + + col0 AS col0 FROM tab1
----
176
210
216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - 93 col0 FROM tab2
----
-35
-53
-70

query I rowsort
SELECT col0 * 37 + + 99 - + col1 * + 98 * - 50 FROM tab1
----
233766
27744
70586

onlyif mysql # aggregate syntax: 
query II rowsort label-8693
SELECT DISTINCT + COUNT( * ) * + 67 * - COUNT( * ) AS col1, 38 AS col0 FROM tab2 WHERE - col2 NOT BETWEEN - col0 AND col0
----
0
38

skipif mysql # not compatible
query II rowsort label-8693
SELECT DISTINCT + COUNT ( * ) * + 67 * - COUNT ( * ) AS col1, 38 AS col0 FROM tab2 WHERE - col2 NOT BETWEEN - col0 AND col0
----
0
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8694
SELECT - CAST( NULL AS SIGNED ) * + - col1 + + col0 * - + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8694
SELECT - CAST ( NULL AS INTEGER ) * + - col1 + + col0 * - + col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - - col2 * - 74 * - 99 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8696
SELECT DISTINCT - MIN( + + 56 ) + + COUNT( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
-53

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT - MIN ( + + 56 ) + + COUNT ( * ) FROM tab1 WHERE NOT - col0 IS NULL
----
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL + COUNT( * ) + + 2 * - MIN( + + col1 ) AS col1 FROM tab1 WHERE NOT col2 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL + COUNT ( * ) + + 2 * - MIN ( + + col1 ) AS col1 FROM tab1 WHERE NOT col2 <= NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8698
SELECT ALL ( + SUM( ALL 51 ) ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8698
SELECT ALL ( + SUM ( ALL 51 ) ) FROM tab0
----
153

query I rowsort
SELECT 96 + + col2 FROM tab2
----
119
136
154

query II rowsort
SELECT DISTINCT col0 * - col2 + - col2 AS col0, col1 + - col1 + + 58 FROM tab1
----
-4992
58
-5074
58
-6256
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8701
SELECT ALL + + MIN( ALL + 80 ) AS col1 FROM tab0 cor0
----
80

skipif mysql # not compatible
query I rowsort label-8701
SELECT ALL + + MIN ( ALL + 80 ) AS col1 FROM tab0 cor0
----
80

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 4 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8703
SELECT ALL col2 * - ( - 59 ) + 28 * 10 DIV col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT 93 IS NULL ) )
----
1362
2363
3426

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL col2 * - ( - 59 ) + 28 * 10 / col1 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT 93 IS NULL ) )
----
1362
2363
3426

onlyif mysql # aggregate syntax: 
query I rowsort label-8704
SELECT ALL - MAX( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8704
SELECT ALL - MAX ( ALL + col2 ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8705
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT + + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query III rowsort label-8705
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NOT + + CAST ( NULL AS INTEGER ) IS NULL )
----

query I rowsort
SELECT DISTINCT 98 - col2 AS col1 FROM tab0 AS cor0
----
-1
51
88

query I rowsort
SELECT DISTINCT - col1 - col1 + - col0 FROM tab0 AS cor0
----
-129
-177
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8708
SELECT DISTINCT - + SUM( - col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-8708
SELECT DISTINCT - + SUM ( - col1 ) AS col2 FROM tab2 cor0
----
195

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8709
SELECT + - 99 + - + MAX( + CAST( - - col1 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-146

skipif mysql # not compatible
query I rowsort label-8709
SELECT + - 99 + - + MAX ( + CAST ( - - col1 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-146

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-8710
SELECT - - CAST( col2 AS SIGNED ) * - CAST( NULL AS DECIMAL ) * 18 AS col0, + col0 - col2 FROM tab2 AS cor0
----
NULL
17
NULL
23
NULL
24

skipif mysql # not compatible
query II rowsort label-8710
SELECT - - CAST ( col2 AS INTEGER ) * - CAST ( NULL AS REAL ) * 18 AS col0, + col0 - col2 FROM tab2 AS cor0
----
NULL
17
NULL
23
NULL
24

query I rowsort
SELECT col1 * + + 7 FROM tab1
----
329
35
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8712
SELECT COUNT( * ) DIV 23 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8712
SELECT COUNT ( * ) / 23 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8713
SELECT DISTINCT + COUNT( * ) DIV 50 * - 8 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8713
SELECT DISTINCT + COUNT ( * ) / 50 * - 8 FROM tab0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col0 col0 FROM tab2
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 87 * 10 * + 26 col2 FROM tab2
----
22620
22620
22620

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col1 ) * - col2 + - 83 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 FROM tab1 AS cor0 WHERE 25 IN ( - - col1, - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8718
SELECT + + 40 DIV - 9 AS col0 FROM tab2 AS cor0
----
-4
-4
-4

skipif mysql # not compatible
query I rowsort label-8718
SELECT + + 40 / - 9 AS col0 FROM tab2 AS cor0
----
-4
-4
-4

onlyif mysql # aggregate syntax: 
query I rowsort label-8719
SELECT - 53 * + 8 + - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-424

skipif mysql # not compatible
query I rowsort label-8719
SELECT - 53 * + 8 + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-424

query II rowsort
SELECT - col2, - col1 + + col1 AS col1 FROM tab2 AS cor0
----
-23
0
-40
0
-58
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col1 + - col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8722
SELECT - - 70 FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8722
SELECT - - 70 FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8723
SELECT ALL + col0 * + col2 + 83 DIV + col0 AS col1, 96 AS col2 FROM tab1
----
4897
96
5015
96
6188
96

skipif mysql # not compatible
query II rowsort label-8723
SELECT ALL + col0 * + col2 + 83 / + col0 AS col1, 96 AS col2 FROM tab1
----
4897
96
5015
96
6188
96

onlyif mysql # DIV for integer division: 
query I rowsort label-8724
SELECT ALL col0 DIV 45 DIV + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8724
SELECT ALL col0 / 45 / + col0 FROM tab1
----
0
0
0

query I rowsort
SELECT + 61 + + 32 + col2 FROM tab0
----
103
140
192

query I rowsort
SELECT - - 95 + + col2 * - col0 + - col0 FROM tab1 AS cor0
----
-4852
-5005
-6184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8727
SELECT + col0 * - ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE ( NOT + 47 BETWEEN + - col2 + col2 AND col0 + + col1 )
----

skipif mysql # not compatible
query I rowsort label-8727
SELECT + col0 * - ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE ( NOT + 47 BETWEEN + - col2 + col2 AND col0 + + col1 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 > + 18 )
----

query I rowsort
SELECT ALL + col0 * ( + - col0 ) AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

onlyif mysql # DIV for integer division: 
query I rowsort label-8730
SELECT ALL - ( + 82 ) DIV + - 73 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8730
SELECT ALL - ( + 82 ) / + - 73 FROM tab1 AS cor0
----
1
1
1

query I rowsort
SELECT DISTINCT - 72 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - col1 + - 88 FROM tab2 cor0
----
-139
-155
-165

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * + - ( - + 57 ) + - - 37 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8734
SELECT * FROM tab2 WHERE CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8734
SELECT * FROM tab2 WHERE CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col1 * - 33 + - 4 FROM tab1
----
-1555
-169
-466

query I rowsort
SELECT ALL 20 * - 86 + col1 * col2 AS col2 FROM tab0
----
-1510
-1621
2087

query II rowsort
SELECT DISTINCT - - 91 AS col1, col1 FROM tab0 WHERE 8 + - + 94 <> col2 + col1
----
91
1
91
21
91
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8738
SELECT DISTINCT CAST( col1 AS SIGNED ) * + - 52 + - 15 FROM tab0
----
-1107
-4227
-67

skipif mysql # not compatible
query I rowsort label-8738
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + - 52 + - 15 FROM tab0
----
-1107
-4227
-67

query I rowsort
SELECT ALL col0 + + - 87 AS col1 FROM tab0
----
-72
0
10

query I rowsort
SELECT DISTINCT 47 + 58 FROM tab2
----
105

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + - col1 / - + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8742
SELECT ALL + MAX( + - 88 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-8742
SELECT ALL + MAX ( + - 88 ) FROM tab1
----
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT + - 62 + + - COUNT( * ) * - - ( + ( - COUNT( * ) ) ) AS col0 FROM tab2 AS cor0
----
-53

skipif mysql # not compatible
query I rowsort label-8743
SELECT + - 62 + + - COUNT ( * ) * - - ( + ( - COUNT ( * ) ) ) AS col0 FROM tab2 AS cor0
----
-53

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8744
SELECT ALL + + CAST( - col2 AS SIGNED ) * 52 * - + col2 AS col2 FROM tab0 AS cor0
----
114868
509652
5200

skipif mysql # not compatible
query I rowsort label-8744
SELECT ALL + + CAST ( - col2 AS INTEGER ) * 52 * - + col2 AS col2 FROM tab0 AS cor0
----
114868
509652
5200

onlyif mysql # aggregate syntax: 
query I rowsort label-8745
SELECT DISTINCT 61 + COUNT( ALL col1 ) FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-8745
SELECT DISTINCT 61 + COUNT ( ALL col1 ) FROM tab1 AS cor0
----
64

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 + - ( + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8747
SELECT CAST( NULL AS SIGNED ) * + 36 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-8747
SELECT CAST ( NULL AS INTEGER ) * + 36 FROM tab0, tab2 AS cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-8748
SELECT DISTINCT - MAX( DISTINCT - + col2 ) FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT - MAX ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
23

query II rowsort
SELECT - - 77 AS col1, 73 FROM tab1 AS cor0
----
77
73
77
73
77
73

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8750
SELECT ALL - + col1 col0, CAST( NULL AS SIGNED ) - + col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 + col1 AND NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8750
SELECT ALL - + col1 col0, CAST ( NULL AS INTEGER ) - + col2 FROM tab2 cor0 WHERE NULL NOT BETWEEN col1 + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8751
SELECT + col2, + col0 * + col0 - - + CAST( - col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
23
2070
40
4032
58
5550

skipif mysql # not compatible
query II rowsort label-8751
SELECT + col2, + col0 * + col0 - - + CAST ( - col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
23
2070
40
4032
58
5550

onlyif mysql # aggregate syntax: 
query II rowsort label-8752
SELECT COUNT( * ) AS col1, + COUNT( DISTINCT + 82 ) FROM tab1 AS cor0
----
3
1

skipif mysql # not compatible
query II rowsort label-8752
SELECT COUNT ( * ) AS col1, + COUNT ( DISTINCT + 82 ) FROM tab1 AS cor0
----
3
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, col2 col2 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query I rowsort
SELECT ALL ( col1 ) * + col0 - + 11 * + - 30 AS col1 FROM tab0 AS cor0
----
1545
2157
427

query I rowsort
SELECT ALL - col2 * - 93 AS col2 FROM tab0 cor0
----
4371
9207
930

query I rowsort
SELECT + + col2 / - col0 - - col2 + + - 35 AS col0 FROM tab2 WHERE NOT + + 72 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8757
SELECT - + col1 * - - col0 + 57 + col2 - - col0 AS col0 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-8757
SELECT - + col1 * - - col0 + 57 + col2 - - col0 AS col0 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8758
SELECT SUM( ALL 82 ) DIV + + 6 FROM tab1
----
41

skipif mysql # not compatible
query I rowsort label-8758
SELECT SUM ( ALL 82 ) / + + 6 FROM tab1
----
41

query I rowsort
SELECT col2 * 34 FROM tab2
----
1360
1972
782

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8760
SELECT DISTINCT + col0 * + col1 AS col0, CAST( + + col0 AS SIGNED ) FROM tab1
----
425
85
4277
91
714
51

skipif mysql # not compatible
query II rowsort label-8760
SELECT DISTINCT + col0 * + col1 AS col0, CAST ( + + col0 AS INTEGER ) FROM tab1
----
425
85
4277
91
714
51

query I rowsort
SELECT col1 * - + 20 AS col1 FROM tab0
----
-1620
-20
-420

query II rowsort
SELECT DISTINCT col1 * - + col2, - col0 AS col2 FROM tab1
----
-1344
-51
-295
-85
-3196
-91

query I rowsort
SELECT ALL + + col0 * + + col0 FROM tab1 cor0
----
2601
7225
8281

onlyif mysql # DIV for integer division: 
query I rowsort label-8764
SELECT DISTINCT + col1 DIV + 37 - + 22 AS col2 FROM tab0 AS cor0 WHERE - 54 IS NOT NULL
----
-20
-22

skipif mysql # not compatible
query I rowsort label-8764
SELECT DISTINCT + col1 / + 37 - + 22 AS col2 FROM tab0 AS cor0 WHERE - 54 IS NOT NULL
----
-20
-22

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8765
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + CAST( + col1 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8765
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + CAST ( + col1 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8766
SELECT * FROM tab2 WHERE NOT + col1 IN ( + 92 + + col0, + col2, - CAST( + - col2 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8766
SELECT * FROM tab2 WHERE NOT + col1 IN ( + 92 + + col0, + col2, - CAST ( + - col2 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE NULL > - col1 * - col1
----

query I rowsort
SELECT ALL col0 * - col1 * + col0 AS col2 FROM tab2 AS cor0
----
-107916
-315392
-376875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8769
SELECT ALL + 58 * - COUNT( * ) * 42 * - CAST( + 77 AS SIGNED ) FROM tab1 cor0
----
562716

skipif mysql # not compatible
query I rowsort label-8769
SELECT ALL + 58 * - COUNT ( * ) * 42 * - CAST ( + 77 AS INTEGER ) FROM tab1 cor0
----
562716

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8770
SELECT ALL - col2 AS col0, - CAST( NULL AS SIGNED ) + + col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-8770
SELECT ALL - col2 AS col0, - CAST ( NULL AS INTEGER ) + + col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT + ( + col1 ) + 53 * col2 FROM tab2 AS cor0
----
1270
2197
3141

onlyif mysql # DIV for integer division: 
query I rowsort label-8772
SELECT + 40 * - col2 + col1 DIV - col0 AS col2 FROM tab2 AS cor0
----
-1601
-2320
-921

skipif mysql # not compatible
query I rowsort label-8772
SELECT + 40 * - col2 + col1 / - col0 AS col2 FROM tab2 AS cor0
----
-1601
-2320
-921

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8773
SELECT ALL col0 + CAST( NULL AS SIGNED ) / col1 * - CAST( NULL AS SIGNED ) + col2 - col1 + - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL col0 + CAST ( NULL AS INTEGER ) / col1 * - CAST ( NULL AS INTEGER ) + col2 - col1 + - - col1 AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8774
SELECT + CAST( NULL AS SIGNED ) + + col2 col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8774
SELECT + CAST ( NULL AS INTEGER ) + + col2 col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 71 + 84 * - 95 FROM tab0
----
-8051

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-8776
SELECT COUNT( * ) DIV - - 68 + CAST( + + CAST( - 30 AS DECIMAL ) AS SIGNED ) - - COUNT( * ) * + + COUNT( * ) AS col2 FROM tab1
----
-21

skipif mysql # not compatible
query I rowsort label-8776
SELECT COUNT ( * ) / - - 68 + CAST ( + + CAST ( - 30 AS REAL ) AS INTEGER ) - - COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab1
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-8777
SELECT DISTINCT + 89 + + + COUNT( * ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-8777
SELECT DISTINCT + 89 + + + COUNT ( * ) FROM tab1
----
92

query I rowsort
SELECT ( - col0 ) + + 90 FROM tab0
----
-7
3
75

query I rowsort
SELECT ALL - ( + 96 ) AS col1 FROM tab2 WHERE - col2 / + col1 - - col0 + - + 87 * - col2 <> - col1
----
-96
-96
-96

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8780
SELECT + CAST( + COUNT( ALL - col0 ) AS SIGNED ) + - MAX( DISTINCT 92 ) + 76 - + AVG ( + 35 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8780
SELECT + CAST ( + COUNT ( ALL - col0 ) AS INTEGER ) + - MAX ( DISTINCT 92 ) + 76 - + AVG ( + 35 ) AS col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8781
SELECT - col1 DIV + ( - col0 ) AS col0 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8781
SELECT - col1 / + ( - col0 ) AS col0 FROM tab2 AS cor0
----
0
1
1

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( NULL ) IN ( - 50, - 23 * - - col0, + col2 * col2, - ( + col2 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 34 col0 FROM tab2 AS cor0
----
-34
-34
-34

query I rowsort
SELECT - col1 - + - 6 FROM tab0 AS cor0
----
-15
-75
5

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 22 * - + col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 63 * - + col1 < 82
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8787
SELECT MIN( + + 61 ), 96 AS col2 FROM tab0 cor0
----
61
96

skipif mysql # not compatible
query II rowsort label-8787
SELECT MIN ( + + 61 ), 96 AS col2 FROM tab0 cor0
----
61
96

query I rowsort
SELECT 7 * + col1 FROM tab1 cor0 WHERE NOT NULL < - 58
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 36 * col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8790
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8790
SELECT * FROM tab0 AS cor0 WHERE NOT + col0 + CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 57 col2 FROM tab2 AS cor0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-8792
SELECT - - COUNT( DISTINCT + + 12 ) FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-8792
SELECT - - COUNT ( DISTINCT + + 12 ) FROM tab1 cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8793
SELECT + + COUNT( + 36 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8793
SELECT + + COUNT ( + 36 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8794
SELECT + - MAX( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-8794
SELECT + - MAX ( DISTINCT col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query II rowsort label-8795
SELECT + COUNT( * ), ( + COUNT( * ) ) FROM tab0
----
3
3

skipif mysql # not compatible
query II rowsort label-8795
SELECT + COUNT ( * ), ( + COUNT ( * ) ) FROM tab0
----
3
3

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE NOT - 70 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8797
SELECT DISTINCT MIN( 32 ) AS col1 FROM tab1
----
32

skipif mysql # not compatible
query I rowsort label-8797
SELECT DISTINCT MIN ( 32 ) AS col1 FROM tab1
----
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8798
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) NOT IN ( - + col1 + - 55 + - col2 * ( - col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-8798
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) NOT IN ( - + col1 + - 55 + - col2 * ( - col2 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8799
SELECT - ( col1 ) * - col1 * col2 + - - col1 DIV col0 col1 FROM tab2 cor0
----
237161
260362
59824

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8799
SELECT - ( col1 ) * - col1 * col2 + - - col1 / col0 col1 FROM tab2 cor0
----
237161
260362
59824

query I rowsort
SELECT DISTINCT - col2 * + col1 + col2 FROM tab0 AS cor0
----
-200
-3760
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8801
SELECT 25 * + 29 + - SUM( DISTINCT - + CAST( NULL AS SIGNED ) ) - 92, MIN( ALL 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
33

skipif mysql # not compatible
query II rowsort label-8801
SELECT 25 * + 29 + - SUM ( DISTINCT - + CAST ( NULL AS INTEGER ) ) - 92, MIN ( ALL 33 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL
33

query I rowsort
SELECT DISTINCT + 82 * + 98 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
8036

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN NULL AND - - 78
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 >= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + - - col2, col0 + - + ( + 55 ) col1 FROM tab1 AS cor0
----
118
30
136
36
192
-4

query I rowsort
SELECT - 43 * + col2 * - col1 AS col0 FROM tab2 AS cor0
----
132440
167098
50439

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 67 * col2, - col0 col0 FROM tab0 cor0
----
3149
-15
6633
-97
670
-87

query I rowsort
SELECT - 97 AS col1 FROM tab2 AS cor0 WHERE - col2 * 55 <= + - 5
----
-97
-97
-97

query I rowsort
SELECT DISTINCT - 98 + + + col0 FROM tab1 AS cor0
----
-13
-47
-7

query I rowsort
SELECT DISTINCT 48 + + 79 FROM tab1
----
127

onlyif mysql # aggregate syntax: 
query I rowsort label-8811
SELECT ALL COUNT( * ) + 43 FROM tab0
----
46

skipif mysql # not compatible
query I rowsort label-8811
SELECT ALL COUNT ( * ) + 43 FROM tab0
----
46

query I rowsort
SELECT ALL + col0 + + + col1 AS col0 FROM tab2
----
141
142
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8813
SELECT ALL + - ( COUNT( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL AND NOT 2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8813
SELECT ALL + - ( COUNT ( * ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL AND NOT 2 IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8814
SELECT col2 - + - col0 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8814
SELECT col2 - + - col0 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + - ( + 49 ) FROM tab2 AS cor0
----
-49
-49
-49

query I rowsort
SELECT - 13 + - - col0 AS col0 FROM tab0 AS cor0
----
2
74
84

query I rowsort
SELECT + col1 + - col1 + - col0 * + - col0 FROM tab1 AS cor0
----
2601
7225
8281

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8818
SELECT ALL 71 AS col2, CAST( - col0 AS SIGNED ) * + + col1 * + + col1 + + + ( 59 ) AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN 5 AND NULL
----

skipif mysql # not compatible
query II rowsort label-8818
SELECT ALL 71 AS col2, CAST ( - col0 AS INTEGER ) * + + col1 * + + col1 + + + ( 59 ) AS col0 FROM tab1 cor0 WHERE NOT NULL BETWEEN 5 AND NULL
----

query II rowsort
SELECT ALL - + col0 AS col1, col2 + - col2 + + 7 AS col2 FROM tab2 AS cor0
----
-46
7
-64
7
-75
7

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL <= + - 88 + + 56
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 92 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8822
SELECT + 88 DIV + 22 FROM tab2
----
4
4
4

skipif mysql # not compatible
query I rowsort label-8822
SELECT + 88 / + 22 FROM tab2
----
4
4
4

query II rowsort
SELECT col1 * - 62, col2 AS col0 FROM tab0
----
-1302
10
-5022
47
-62
99

query II rowsort
SELECT ALL + col2 AS col0, - col0 FROM tab2 AS cor0
----
23
-46
40
-64
58
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8825
SELECT - + MAX( DISTINCT + col0 ) FROM tab0 cor0
----
-97

skipif mysql # not compatible
query I rowsort label-8825
SELECT - + MAX ( DISTINCT + col0 ) FROM tab0 cor0
----
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8826
SELECT DISTINCT + col1, + col1 + CAST( NULL AS DECIMAL ) * col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8826
SELECT DISTINCT + col1, + col1 + CAST ( NULL AS REAL ) * col0 FROM tab2 AS cor0
----
51
NULL
67
NULL
77
NULL

query II rowsort
SELECT + col1, col2 + col2 FROM tab0 AS cor0
----
1
198
21
20
81
94

onlyif mysql # aggregate syntax: 
query I rowsort label-8828
SELECT + COUNT( - - col1 ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-8828
SELECT + COUNT ( - - col1 ) AS col0 FROM tab2 WHERE NOT NULL BETWEEN col2 AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8829
SELECT DISTINCT - 49 * - 47 + col2 * - + CAST( NULL AS SIGNED ) FROM tab0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8829
SELECT DISTINCT - 49 * - 47 + col2 * - + CAST ( NULL AS INTEGER ) FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 90 * + col0 FROM tab1
----
4590
7650
8190

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8831
SELECT DISTINCT MAX( - CAST( - - 44 AS SIGNED ) ) AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-44

skipif mysql # not compatible
query I rowsort label-8831
SELECT DISTINCT MAX ( - CAST ( - - 44 AS INTEGER ) ) AS col1 FROM tab2 WHERE NOT ( NOT NULL IS NULL )
----
-44

onlyif mysql # DIV for integer division: 
query I rowsort label-8832
SELECT ALL ( + 28 ) DIV - + 83 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL ( + 28 ) / - + 83 AS col0 FROM tab1
----
0
0
0

query II rowsort
SELECT DISTINCT 57, + col2 AS col0 FROM tab1
----
57
59
57
68
57
96

query I rowsort
SELECT ALL + - col1 * + 67 AS col2 FROM tab0 WHERE + col2 BETWEEN NULL AND - col0 + - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 87 * col0 col1 FROM tab1 AS cor0 WHERE NOT ( NOT - col2 + + - col2 IS NULL )
----

query I rowsort
SELECT - 12 + - col2 + + 16 * - col0 FROM tab0 AS cor0
----
-1414
-1663
-299

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8837
SELECT - 16 + CAST( MIN( DISTINCT + + 42 ) AS SIGNED ) * - 23 FROM tab2 AS cor0
----
-982

skipif mysql # not compatible
query I rowsort label-8837
SELECT - 16 + CAST ( MIN ( DISTINCT + + 42 ) AS INTEGER ) * - 23 FROM tab2 AS cor0
----
-982

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8838
SELECT MAX( + col1 ) DIV - ( + COUNT( * ) ) + + COUNT( * ) FROM tab1 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-8838
SELECT MAX ( + col1 ) / - ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 cor0
----
-12

query II rowsort
SELECT DISTINCT col1 + - + col1 AS col1, col1 - + col0 AS col1 FROM tab2
----
0
-8
0
13
0
5

query III rowsort
SELECT * FROM tab0 WHERE - + 23 + + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab1 WHERE NULL IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8842
SELECT COUNT( * ) DIV COUNT( - + 3 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-8842
SELECT COUNT ( * ) / COUNT ( - + 3 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8843
SELECT ALL CAST( NULL AS SIGNED ) * + col2 - - col1 + - ( + col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8843
SELECT ALL CAST ( NULL AS INTEGER ) * + col2 - - col1 + - ( + col1 ) AS col0 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8844
SELECT ALL + col2 DIV ( - col1 ) col2 FROM tab2 WHERE - - col2 + 36 > - col2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8844
SELECT ALL + col2 / ( - col1 ) col2 FROM tab2 WHERE - - col2 + 36 > - col2
----
0
0
0

query I rowsort
SELECT ALL 50 AS col0 FROM tab2 cor0
----
50
50
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8846
SELECT + + MAX( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-8846
SELECT + + MAX ( DISTINCT - col2 ) AS col1 FROM tab1 AS cor0
----
-59

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( + 21 IS NOT NULL )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT 72 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + col2 AS col1 FROM tab0 WHERE NOT - col2 * + ( - 93 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 69 IN ( + + col2, + 67 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8851
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + - col1 AS SIGNED ) * - col2 + + - 74 NOT BETWEEN + col1 AND + - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-8851
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + - col1 AS INTEGER ) * - col2 + + - 74 NOT BETWEEN + col1 AND + - 28
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8852
SELECT - COUNT( * ) DIV 92 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8852
SELECT - COUNT ( * ) / 92 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8853
SELECT COUNT( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8853
SELECT COUNT ( DISTINCT - ( col0 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 36 * + 52 * - col1 FROM tab0 AS cor0
----
151632
1872
39312

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT ALL - COUNT( + col2 ) + + + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8855
SELECT ALL - COUNT ( + col2 ) + + + COUNT ( * ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col0 + col0 NOT BETWEEN + col2 AND + + 39 / col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8857
SELECT DISTINCT col0, - CAST( NULL AS SIGNED ) * + + 91 FROM tab1
----
51
NULL
85
NULL
91
NULL

skipif mysql # not compatible
query II rowsort label-8857
SELECT DISTINCT col0, - CAST ( NULL AS INTEGER ) * + + 91 FROM tab1
----
51
NULL
85
NULL
91
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + 32 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col1, 47 + - col0 col1 FROM tab0 AS cor0
----
15
32
87
-40
97
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8860
SELECT - COUNT( * ) DIV - ( - 39 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8860
SELECT - COUNT ( * ) / - ( - 39 ) FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8861
SELECT 70 * col0 DIV + - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-23
-35
-89

skipif mysql # not compatible
query I rowsort label-8861
SELECT 70 * col0 / + - col2 + + col1 AS col0 FROM tab2 AS cor0
----
-23
-35
-89

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8862
SELECT + MIN( DISTINCT ( - + CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8862
SELECT + MIN ( DISTINCT ( - + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT - + 54 - + col0 AS col0 FROM tab0 AS cor0
----
-141
-151
-69

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT - col2 * - 3 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 AND NULL
----

query II rowsort
SELECT DISTINCT 93 * + + 85, col2 + - col2 AS col0 FROM tab2 cor0
----
7905
0

query I rowsort
SELECT DISTINCT + col2 + - + col2 * + col2 AS col1 FROM tab0 AS cor0
----
-2162
-90
-9702

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8868
SELECT ALL - COUNT( - + CAST( NULL AS SIGNED ) ) + - - COUNT( DISTINCT + + col0 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-8868
SELECT ALL - COUNT ( - + CAST ( NULL AS INTEGER ) ) + - - COUNT ( DISTINCT + + col0 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8869
SELECT COUNT( * ) DIV - + 52 * 94 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8869
SELECT COUNT ( * ) / - + 52 * 94 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT + COUNT( DISTINCT 52 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-8870
SELECT + COUNT ( DISTINCT 52 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 80 + + 28 * + col2 FROM tab0
----
1396
2852
360

query I rowsort
SELECT - col1 + col0 FROM tab2 WHERE NOT ( NULL ) IS NOT NULL
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab2 WHERE 68 * + col0 NOT IN ( + col1 + - col1 / col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( 13 ) AS col0 FROM tab0
----
-13
-13
-13

onlyif mysql # DIV for integer division: 
query I rowsort label-8876
SELECT col2 DIV + 14 + col2 col2 FROM tab2
----
24
42
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8876
SELECT col2 / + 14 + col2 col2 FROM tab2
----
24
42
62

query I rowsort
SELECT ALL - col2 + + ( - col0 ) * - 50 AS col2 FROM tab2 WHERE 57 IS NOT NULL
----
2277
3160
3692

query I rowsort
SELECT col2 FROM tab1 WHERE col2 >= - 66
----
59
68
96

query I rowsort
SELECT DISTINCT + 18 / + col0 FROM tab2 WHERE NOT + col1 + col1 / ( col0 ) NOT BETWEEN + 10 AND ( + 25 )
----

query I rowsort
SELECT 16 + ( col2 ) AS col1 FROM tab0
----
115
26
63

onlyif mysql # aggregate syntax: 
query I rowsort label-8881
SELECT 53 + COUNT( * ) FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-8881
SELECT 53 + COUNT ( * ) FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8882
SELECT col1 + - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8882
SELECT col1 + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8883
SELECT + CAST( NULL AS SIGNED ) + + COUNT( * ) col1 FROM tab2 WHERE NOT - col1 NOT IN ( 17 * - col2 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8883
SELECT + CAST ( NULL AS INTEGER ) + + COUNT ( * ) col1 FROM tab2 WHERE NOT - col1 NOT IN ( 17 * - col2 )
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8885
SELECT DISTINCT ( + COUNT( - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8885
SELECT DISTINCT ( + COUNT ( - col0 ) ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8886
SELECT - ( - MAX( col1 ) ) FROM tab2 WHERE NOT NULL <= ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT - ( - MAX ( col1 ) ) FROM tab2 WHERE NOT NULL <= ( NULL )
----
NULL

query I rowsort
SELECT - col0 + 87 FROM tab2
----
12
23
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8888
SELECT CAST( NULL AS SIGNED ) * 33 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8888
SELECT CAST ( NULL AS INTEGER ) * 33 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * + 76 AS col2 FROM tab1
----
1064
3572
380

query I rowsort
SELECT - 52 * col2 FROM tab0
----
-2444
-5148
-520

query III rowsort
SELECT ALL * FROM tab0 WHERE 28 + - col2 IN ( col2 * - col1 + - col0 )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 NOT BETWEEN ( 44 ) AND - col2 * - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8893
SELECT MAX( - 63 ) - COUNT( * ) AS col1 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-8893
SELECT MAX ( - 63 ) - COUNT ( * ) AS col1 FROM tab1
----
-66

onlyif mysql # DIV for integer division: 
query I rowsort label-8894
SELECT DISTINCT + col2 + - col2 DIV col2 FROM tab2
----
22
39
57

skipif mysql # not compatible
query I rowsort label-8894
SELECT DISTINCT + col2 + - col2 / col2 FROM tab2
----
22
39
57

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8895
SELECT ALL COUNT( * ) DIV + COUNT( ALL 8 ) AS col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL COUNT ( * ) / + COUNT ( ALL 8 ) AS col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8896
SELECT ALL + COUNT( * ) * - 15 AS col2 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8896
SELECT ALL + COUNT ( * ) * - 15 AS col2 FROM tab0 AS cor0
----
-45

query I rowsort
SELECT ALL + ( col1 ) + col1 * col0 AS col2 FROM tab1 AS cor0
----
430
4324
728

onlyif mysql # aggregate syntax: 
query I rowsort label-8898
SELECT DISTINCT 52 + - SUM( ALL 80 ) * COUNT( * ) FROM tab0
----
-668

skipif mysql # not compatible
query I rowsort label-8898
SELECT DISTINCT 52 + - SUM ( ALL 80 ) * COUNT ( * ) FROM tab0
----
-668

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab0 WHERE NOT + col1 * + col1 BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col1 FROM tab2 WHERE ( col0 + + col0 ) <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( col1 ) <> - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8902
SELECT + - ( 36 ) + + COUNT( - ( 16 ) ) FROM tab1 AS cor0
----
-33

skipif mysql # not compatible
query I rowsort label-8902
SELECT + - ( 36 ) + + COUNT ( - ( 16 ) ) FROM tab1 AS cor0
----
-33

query I rowsort
SELECT DISTINCT - + ( col0 ) - + col2 * col1 FROM tab2 AS cor0
----
-1219
-3144
-3961

onlyif mysql # aggregate syntax: 
query I rowsort label-8904
SELECT COUNT( * ) + 17 FROM tab2 cor0
----
20

skipif mysql # not compatible
query I rowsort label-8904
SELECT COUNT ( * ) + 17 FROM tab2 cor0
----
20

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8905
SELECT 93 + - CAST( NULL AS SIGNED ) * + COUNT( * ) col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8905
SELECT 93 + - CAST ( NULL AS INTEGER ) * + COUNT ( * ) col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col1 - + col0 BETWEEN NULL AND 65 + col2 * col1
----

query I rowsort
SELECT - 83 * + col2 + 84 * + col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 64 * + col0 AS col2 FROM tab1 AS cor0 WHERE ( + col0 ) IS NULL
----

query I rowsort
SELECT ( 30 ) AS col1 FROM tab2 AS cor0
----
30
30
30

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8910
SELECT COUNT( - col1 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8910
SELECT COUNT ( - col1 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT col1 * + col0 * ( + col1 ) AS col1 FROM tab1
----
201019
2125
9996

onlyif mysql # aggregate syntax: 
query I rowsort label-8912
SELECT ALL COUNT( - 65 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8912
SELECT ALL COUNT ( - 65 ) AS col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT + col0 * - col2 + col0 FROM tab2 WHERE NULL NOT IN ( col1 / 87 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <> - 25 * col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8915
SELECT ALL * FROM tab0 cor0 WHERE NOT ( CAST( NULL AS SIGNED ) + 60 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8915
SELECT ALL * FROM tab0 cor0 WHERE NOT ( CAST ( NULL AS INTEGER ) + 60 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col1 * - 98 AS col2 FROM tab1 AS cor0
----
-1372
-4606
-490

query I rowsort
SELECT + col0 * - 66 * + - col2 FROM tab1
----
323136
330990
408408

query I rowsort
SELECT DISTINCT 88 FROM tab2 WHERE - 65 * 24 > ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8919
SELECT DISTINCT - MAX( ALL - - col2 ) AS col1 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-8919
SELECT DISTINCT - MAX ( ALL - - col2 ) AS col1 FROM tab0
----
-99

query I rowsort
SELECT - col2 + - 92 - - col0 AS col0 FROM tab0 AS cor0
----
-124
-15
-94

query I rowsort
SELECT col2 + - col2 + col2 + - col2 * - col1 FROM tab1 cor0
----
1440
3264
354

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8922
SELECT ALL + 1 * CAST( NULL AS SIGNED ) / - COUNT( * ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL + 1 * CAST ( NULL AS INTEGER ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-8923
SELECT ALL + col0 / CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8923
SELECT ALL + col0 / CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8924
SELECT 74 + - COUNT( * ) FROM tab1 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-8924
SELECT 74 + - COUNT ( * ) FROM tab1 AS cor0
----
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8925
SELECT ALL - + COUNT( * ) DIV 31 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8925
SELECT ALL - + COUNT ( * ) / 31 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8926
SELECT DISTINCT - + COUNT( * ) AS col0 FROM tab2 cor0 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8926
SELECT DISTINCT - + COUNT ( * ) AS col0 FROM tab2 cor0 WHERE - col1 IS NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8927
SELECT - - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8927
SELECT - - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - ( + ( - 88 ) ) + 16 AS col0 FROM tab1 AS cor0
----
104
104
104

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 95 + + + 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( + col1 ) BETWEEN - ( - col1 ) AND ( + col0 * 99 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT - - 25 AS col2, col0 AS col2 FROM tab2 AS cor0
----
25
46
25
64
25
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8932
SELECT DISTINCT + MAX( - col1 ) + - 43 FROM tab1
----
-48

skipif mysql # not compatible
query I rowsort label-8932
SELECT DISTINCT + MAX ( - col1 ) + - 43 FROM tab1
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8933
SELECT DISTINCT + col0 + - - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8933
SELECT DISTINCT + col0 + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab2 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( ( col0 ) ) IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT - + col0 / ( + 58 + CAST( NULL AS SIGNED ) ) FROM tab2 WHERE NULL < + col1
----

skipif mysql # not compatible
query I rowsort label-8936
SELECT - + col0 / ( + 58 + CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE NULL < + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8937
SELECT ALL + CAST( NULL AS SIGNED ) + 61, - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-8937
SELECT ALL + CAST ( NULL AS INTEGER ) + 61, - col0 AS col2 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # DIV for integer division: 
query I rowsort label-8938
SELECT ALL + 18 DIV 17 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-8938
SELECT ALL + 18 / 17 FROM tab1
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8939
SELECT col2 * 0 AS col2, CAST( NULL AS SIGNED ) FROM tab0
----
0
NULL
0
NULL
0
NULL

skipif mysql # not compatible
query II rowsort label-8939
SELECT col2 * 0 AS col2, CAST ( NULL AS INTEGER ) FROM tab0
----
0
NULL
0
NULL
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8940
SELECT + COUNT( DISTINCT col1 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-8940
SELECT + COUNT ( DISTINCT col1 ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8941
SELECT ALL + COUNT( DISTINCT - col2 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8941
SELECT ALL + COUNT ( DISTINCT - col2 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8942
SELECT DISTINCT + col1 DIV 58 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-8942
SELECT DISTINCT + col1 / 58 AS col2 FROM tab0 AS cor0
----
0
1

query I rowsort
SELECT ALL 61 FROM tab2 AS cor0 WHERE NULL IS NULL
----
61
61
61

query I rowsort
SELECT - - col0 * - 80 + - 13 AS col0 FROM tab1 AS cor0
----
-4093
-6813
-7293

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT DISTINCT MIN( ( + + col2 ) ) + 47 AS col0 FROM tab2 cor0
----
70

skipif mysql # not compatible
query I rowsort label-8945
SELECT DISTINCT MIN ( ( + + col2 ) ) + 47 AS col0 FROM tab2 cor0
----
70

query I rowsort
SELECT - col0 + + + col1 AS col1 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL + 88 + col1 AS col2 FROM tab1
----
102
135
93

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT ALL 14 + + + COUNT( * ) AS col2 FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-8948
SELECT ALL 14 + + + COUNT ( * ) AS col2 FROM tab0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT 49 * - - 68 * - MIN( DISTINCT + col2 ) + 65 AS col0 FROM tab1
----
-196523

skipif mysql # not compatible
query I rowsort label-8949
SELECT 49 * - - 68 * - MIN ( DISTINCT + col2 ) + 65 AS col0 FROM tab1
----
-196523

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE NOT 93 * - 36 IS NOT NULL
----

query I rowsort
SELECT + ( + 67 ) FROM tab1 cor0
----
67
67
67

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( 8 + col2 + + 58 + + col1 + + ( + ( + 58 ) ) * + 2 * + 42 / 86 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( - + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 54 * - - 88 + + col1 col2 FROM tab0 AS cor0
----
-4671
-4731
-4751

onlyif mysql # aggregate syntax: 
query I rowsort label-8955
SELECT DISTINCT - + COUNT( ALL + - 91 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8955
SELECT DISTINCT - + COUNT ( ALL + - 91 ) FROM tab0 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) < - col1
----

query II rowsort
SELECT ALL 17 AS col0, col1 + col1 FROM tab2
----
17
102
17
134
17
154

query I rowsort
SELECT DISTINCT + - col2 FROM tab1 WHERE NOT ( NULL ) >= + 29 + - 2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8959
SELECT DISTINCT CAST( + 10 AS SIGNED ) FROM tab1
----
10

skipif mysql # not compatible
query I rowsort label-8959
SELECT DISTINCT CAST ( + 10 AS INTEGER ) FROM tab1
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8960
SELECT + MAX( DISTINCT - - col2 ) AS col0 FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8960
SELECT + MAX ( DISTINCT - - col2 ) AS col0 FROM tab0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8961
SELECT COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-8961
SELECT COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0
----
9

query II rowsort
SELECT - 96 AS col0, col2 * col2 * - ( - - 40 ) AS col0 FROM tab2
----
-96
-134560
-96
-21160
-96
-64000

onlyif mysql # aggregate syntax: 
query I rowsort label-8963
SELECT ALL - SUM( ALL col0 ) * + + ( + 12 ) col1 FROM tab0
----
-2388

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8963
SELECT ALL - SUM ( ALL col0 ) * + + ( + 12 ) col1 FROM tab0
----
-2388

query I rowsort
SELECT ALL - 89 + + - col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-136
-188
-99

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IN ( + col1 / col2 * + 41 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8966
SELECT ALL + + MIN( DISTINCT 0 ) col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8966
SELECT ALL + + MIN ( DISTINCT 0 ) col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) >= + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8968
SELECT DISTINCT 54 + ( + 14 ) * - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-8968
SELECT DISTINCT 54 + ( + 14 ) * - COUNT ( * ) FROM tab0
----
12

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8969
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST( + col1 AS SIGNED ) AND 70
----

skipif mysql # not compatible
query III rowsort label-8969
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN + CAST ( + col1 AS INTEGER ) AND 70
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 8 / + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + ( + - 33 ) FROM tab2 AS cor0
----
-33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 + - col0 >= col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8974
SELECT - col0 FROM tab2 AS cor0 WHERE 68 * 99 - - CAST( - + 90 AS SIGNED ) >= ( + - col1 * + col0 )
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-8974
SELECT - col0 FROM tab2 AS cor0 WHERE 68 * 99 - - CAST ( - + 90 AS INTEGER ) >= ( + - col1 * + col0 )
----
-46
-64
-75

query I rowsort
SELECT col2 + 5 AS col0 FROM tab2 AS cor0
----
28
45
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8976
SELECT - CAST( + col2 AS SIGNED ) + col2 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8976
SELECT - CAST ( + col2 AS INTEGER ) + col2 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE - - col2 < - + 44
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8978
SELECT DISTINCT - col1 * - + 92 + CAST( + col1 AS SIGNED ) AS col0, - 91 col2 FROM tab1
----
1302
-91
4371
-91
465
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8978
SELECT DISTINCT - col1 * - + 92 + CAST ( + col1 AS INTEGER ) AS col0, - 91 col2 FROM tab1
----
1302
-91
4371
-91
465
-91

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8979
SELECT CAST( NULL AS DECIMAL ) + 33 * - COUNT( - 86 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-8979
SELECT CAST ( NULL AS REAL ) + 33 * - COUNT ( - 86 ) FROM tab0
----
NULL

query I rowsort
SELECT col2 + + col2 + col1 * + col0 AS col1 FROM tab0
----
1309
1847
295

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 27 + col1 col2 FROM tab0
----
108
28
48

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( - - 31 - col2 )
----

query I rowsort
SELECT ALL 71 * 32 + col0 FROM tab0
----
2287
2359
2369

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT MIN( DISTINCT + 12 ) FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT MIN ( DISTINCT + 12 ) FROM tab0 AS cor0
----
12

query II rowsort
SELECT ALL col2 AS col0, col0 FROM tab2 AS cor0
----
23
46
40
64
58
75

onlyif mysql # aggregate syntax: 
query I rowsort label-8986
SELECT ALL - + SUM( DISTINCT - 56 ) FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8986
SELECT ALL - + SUM ( DISTINCT - 56 ) FROM tab0 AS cor0 WHERE NULL IS NULL AND NOT NULL BETWEEN ( NULL ) AND NULL
----
NULL

query I rowsort
SELECT - 91 AS col0 FROM tab0 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 745d1c3a09d935465cad552325c5c945

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8988
SELECT col0 + col0 AS col1 FROM tab0 WHERE NULL IN ( + + 81 * + col0 + 28 * - ( - CAST( + 20 AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-8988
SELECT col0 + col0 AS col1 FROM tab0 WHERE NULL IN ( + + 81 * + col0 + 28 * - ( - CAST ( + 20 AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 * + col0 IN ( + ( - - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 >= + + col2
----
85
5
59
91
47
68

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab0 cor0
----
-73

query I rowsort
SELECT col1 FROM tab0 AS cor0 WHERE NOT - 26 * + col2 IS NULL
----
1
21
81

query I rowsort
SELECT col2 * 65 - col2 * + 18 AS col1 FROM tab2 AS cor0
----
1081
1880
2726

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col1 <> + col1 / 63 + - col1 - + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8995
SELECT + CAST( - + CAST( 60 AS SIGNED ) AS SIGNED ) AS col2, COUNT( * ) AS col0 FROM tab2
----
-60
3

skipif mysql # not compatible
query II rowsort label-8995
SELECT + CAST ( - + CAST ( 60 AS INTEGER ) AS INTEGER ) AS col2, COUNT ( * ) AS col0 FROM tab2
----
-60
3

query I rowsort
SELECT ( + ( - + col0 ) ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT ALL + 10 FROM tab2 WHERE NOT NULL IS NOT NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT + MAX( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8998
SELECT + MAX ( col2 ) FROM tab1 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8999
SELECT - 85 DIV - - col0 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8999
SELECT - 85 / - - col0 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - + col1 * col2 FROM tab0 AS cor0 WHERE NOT + 70 IS NOT NULL
----

query II rowsort
SELECT DISTINCT col0 AS col2, 77 + - - col1 + + col2 FROM tab1 AS cor0
----
51
187
85
141
91
192

query I rowsort
SELECT - - ( - - 78 ) FROM tab2 AS cor0
----
78
78
78

query II rowsort
SELECT - col2, + col1 AS col2 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2, col0 + - ( + 25 ) + col1 + + + col0 col0 FROM tab0
----
10
170
47
86
99
170

query III rowsort
SELECT * FROM tab0 WHERE NOT - + ( - col0 ) * - 56 + + col2 NOT BETWEEN NULL AND ( + - ( + ( + col2 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT COUNT( * ) + + + MAX( ALL + col1 ) AS col2 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-9006
SELECT DISTINCT COUNT ( * ) + + + MAX ( ALL + col1 ) AS col2 FROM tab0
----
84

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col0 * ( + 62 ) + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9008
SELECT DISTINCT - MAX( - 32 ) FROM tab0 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-9008
SELECT DISTINCT - MAX ( - 32 ) FROM tab0 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, 70 col2 FROM tab0 AS cor0
----
-1
70
-21
70
-81
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9010
SELECT + - ( + COUNT( * ) ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9010
SELECT + - ( + COUNT ( * ) ) AS col1 FROM tab2 AS cor0
----
-3

query II rowsort
SELECT DISTINCT + + col0, 90 FROM tab1 AS cor0
----
51
90
85
90
91
90

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col0, + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NOT col2 + + ( + + col1 ) * + col1 * - col0 NOT BETWEEN + col0 * + - col0 AND ( col2 + + col0 * 24 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9014
SELECT DISTINCT + 30 * + COUNT( * ) AS col0 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-9014
SELECT DISTINCT + 30 * + COUNT ( * ) AS col0 FROM tab0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-9015
SELECT DISTINCT - 38 DIV + 6 + - + col1 FROM tab2
----
-57
-73
-83

skipif mysql # not compatible
query I rowsort label-9015
SELECT DISTINCT - 38 / + 6 + - + col1 FROM tab2
----
-57
-73
-83

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9016
SELECT ALL + CAST( - + COUNT( * ) AS SIGNED ) - + - 98 AS col2 FROM tab1 WHERE + - 9 BETWEEN - - col0 AND NULL
----
98

skipif mysql # not compatible
query I rowsort label-9016
SELECT ALL + CAST ( - + COUNT ( * ) AS INTEGER ) - + - 98 AS col2 FROM tab1 WHERE + - 9 BETWEEN - - col0 AND NULL
----
98

query I rowsort
SELECT DISTINCT - col0 - + + 46 AS col0 FROM tab0
----
-133
-143
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT ALL + COUNT( * ) col0 FROM tab0 WHERE - - col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9018
SELECT ALL + COUNT ( * ) col0 FROM tab0 WHERE - - col2 IS NULL
----
0

query II rowsort
SELECT - + col1 * - col1 AS col1, col2 AS col2 FROM tab2 WHERE + 15 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9020
SELECT CAST( - + 6 AS SIGNED ) + + 33 + + 56 * - - 60 + COUNT( * ) * COUNT( ALL + col2 ) * MIN( col0 ) - COUNT( * ) * - 46 * - 69 FROM tab0 AS cor0
----
-6000

skipif mysql # not compatible
query I rowsort label-9020
SELECT CAST ( - + 6 AS INTEGER ) + + 33 + + 56 * - - 60 + COUNT ( * ) * COUNT ( ALL + col2 ) * MIN ( col0 ) - COUNT ( * ) * - 46 * - 69 FROM tab0 AS cor0
----
-6000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - ( - 38 ) col0 FROM tab2 AS cor0
----
38

query I rowsort
SELECT ALL - col2 * + 18 FROM tab1 AS cor0
----
-1062
-1224
-1728

query II rowsort
SELECT DISTINCT - 58, - 42 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9024
SELECT + 25, - COUNT( - col2 ) AS col1 FROM tab0 AS cor0
----
25
-3

skipif mysql # not compatible
query II rowsort label-9024
SELECT + 25, - COUNT ( - col2 ) AS col1 FROM tab0 AS cor0
----
25
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 9 ) col2 FROM tab1 AS cor0
----
9
9
9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 97 * + col1 NOT BETWEEN NULL AND - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9027
SELECT DISTINCT CAST( NULL AS SIGNED ) * MIN( + col1 ) + COUNT( * ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9027
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MIN ( + col1 ) + COUNT ( * ) col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( col2 ) AND + ( + col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9029
SELECT MAX( 1 ) FROM tab1 WHERE NOT - CAST( + - col2 AS SIGNED ) <= + 62 * - - CAST( - - CAST( + + col1 AS SIGNED ) AS SIGNED ) - + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-9029
SELECT MAX ( 1 ) FROM tab1 WHERE NOT - CAST ( + - col2 AS INTEGER ) <= + 62 * - - CAST ( - - CAST ( + + col1 AS INTEGER ) AS INTEGER ) - + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9030
SELECT ( - MAX( ALL + 95 ) ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-9030
SELECT ( - MAX ( ALL + 95 ) ) AS col2 FROM tab0
----
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-9031
SELECT + COUNT( * ) * + ( + + SUM( - col0 ) ) AS col2 FROM tab1 WHERE NOT 19 NOT BETWEEN NULL AND + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9031
SELECT + COUNT ( * ) * + ( + + SUM ( - col0 ) ) AS col2 FROM tab1 WHERE NOT 19 NOT BETWEEN NULL AND + + col1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 72 * + 21 col0 FROM tab2
----
1512
1512
1512

onlyif mysql # DIV for integer division: 
query I rowsort label-9033
SELECT ALL col1 DIV + 97 * + + col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9033
SELECT ALL col1 / + 97 * + + col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9034
SELECT ALL MAX( + + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-9034
SELECT ALL MAX ( + + col2 ) FROM tab2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9035
SELECT ALL MIN( DISTINCT - + 49 ) AS col2 FROM tab2
----
-49

skipif mysql # not compatible
query I rowsort label-9035
SELECT ALL MIN ( DISTINCT - + 49 ) AS col2 FROM tab2
----
-49

query I rowsort
SELECT col0 * - + col1 * + col2 * - - col0 AS col2 FROM tab0
----
-1589490
-856575
-931491

onlyif mysql # DIV for integer division: 
query I rowsort label-9037
SELECT - col1 DIV + 71 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9037
SELECT - col1 / + 71 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9038
SELECT - CAST( + col2 AS SIGNED ) + - 47 AS col0 FROM tab0 AS cor0
----
-146
-57
-94

skipif mysql # not compatible
query I rowsort label-9038
SELECT - CAST ( + col2 AS INTEGER ) + - 47 AS col0 FROM tab0 AS cor0
----
-146
-57
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9039
SELECT ALL 55 * + - ( + MIN( DISTINCT + 44 ) ) AS col1 FROM tab0 AS cor0
----
-2420

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL 55 * + - ( + MIN ( DISTINCT + 44 ) ) AS col1 FROM tab0 AS cor0
----
-2420

query I rowsort
SELECT col1 * col0 * + ( col1 ) FROM tab0
----
38367
97
98415

query III rowsort
SELECT * FROM tab1 WHERE + + col1 / + col1 + + 99 - + 83 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 48, - 54 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
48
-54

query II rowsort
SELECT ALL col2 AS col0, 96 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 * + col0 AND - - 60 * + col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9044
SELECT DISTINCT + COUNT( * ), + 70 AS col1 FROM tab2 AS cor0
----
3
70

skipif mysql # not compatible
query II rowsort label-9044
SELECT DISTINCT + COUNT ( * ), + 70 AS col1 FROM tab2 AS cor0
----
3
70

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 > + col2
----
97
1
99

query I rowsort
SELECT DISTINCT col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9047
SELECT - SUM( ALL + - 40 ) + + ( - 65 ) col1 FROM tab1 AS cor0
----
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9047
SELECT - SUM ( ALL + - 40 ) + + ( - 65 ) col1 FROM tab1 AS cor0
----
55

query I rowsort
SELECT col1 + + 33 FROM tab1
----
38
47
80

onlyif mysql # aggregate syntax: 
query I rowsort label-9049
SELECT - 99 + + COUNT( * ) FROM tab2
----
-96

skipif mysql # not compatible
query I rowsort label-9049
SELECT - 99 + + COUNT ( * ) FROM tab2
----
-96

query II rowsort
SELECT ALL 47 AS col1, + col1 * + col0 AS col2 FROM tab0
----
47
1215
47
1827
47
97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9051
SELECT DISTINCT 18 - - ( + 38 ) DIV COUNT( * ) AS col0 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-9051
SELECT DISTINCT 18 - - ( + 38 ) / COUNT ( * ) AS col0 FROM tab2
----
30

query I rowsort
SELECT DISTINCT - col2 - col2 + col2 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9053
SELECT DISTINCT + ( + SUM( DISTINCT + 22 ) ) * + + COUNT( * ) + 22 FROM tab1
----
88

skipif mysql # not compatible
query I rowsort label-9053
SELECT DISTINCT + ( + SUM ( DISTINCT + 22 ) ) * + + COUNT ( * ) + 22 FROM tab1
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-9054
SELECT ALL MAX( col0 ) AS col1 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9054
SELECT ALL MAX ( col0 ) AS col1 FROM tab1 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query II rowsort label-9055
SELECT ALL - COUNT( * ) AS col0, + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-3
3

skipif mysql # not compatible
query II rowsort label-9055
SELECT ALL - COUNT ( * ) AS col0, + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9056
SELECT MAX( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9056
SELECT MAX ( ALL - - col1 ) AS col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT - 71 FROM tab0 WHERE NOT - col0 IS NULL
----
-71
-71
-71

query I rowsort
SELECT ALL + 17 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query III rowsort
SELECT * FROM tab2 WHERE NOT - ( + col1 ) <= - col2 - - col1 * 39
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 = col0 * + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9061
SELECT DISTINCT + col0 * CAST( NULL AS DECIMAL ) + - ( + col1 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9061
SELECT DISTINCT + col0 * CAST ( NULL AS REAL ) + - ( + col1 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col0 AS col0 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT DISTINCT + + 29 * - 66, + col2 * - - col0 AS col1 FROM tab2 AS cor0
----
-1914
1058
-1914
2560
-1914
4350

onlyif mysql # DIV for integer division: 
query I rowsort label-9064
SELECT ALL col1 DIV 98 * + + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9064
SELECT ALL col1 / 98 * + + ( + - col1 ) AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9065
SELECT 23 * col0 - + CAST( NULL AS DECIMAL ) + + 98 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9065
SELECT 23 * col0 - + CAST ( NULL AS REAL ) + + 98 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col1 * 98 * - + 43 - 46 FROM tab1 AS cor0
----
-198104
-21116
-59042

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + ( + col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 51 col2 FROM tab1 cor0
----
-51
-51
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * - 93 col2 FROM tab0
----
-1395
-8091
-9021

query II rowsort
SELECT DISTINCT col0 AS col2, + 64 * 70 FROM tab2
----
46
4480
64
4480
75
4480

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( + col0 + 71, + col1, - 85 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN ( + col0 ) AND NULL
----

query I rowsort
SELECT ALL + col2 * + - 89 FROM tab0
----
-4183
-8811
-890

onlyif mysql # DIV for integer division: 
query I rowsort label-9074
SELECT col2 DIV - col1 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9074
SELECT col2 / - col1 col1 FROM tab2
----
0
0
0

query I rowsort
SELECT + - col0 * - + col2 FROM tab1 AS cor0
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query II rowsort label-9076
SELECT ALL - + COUNT( * ) col0, + 62 * - MAX( DISTINCT 51 ) AS col2 FROM tab2 AS cor0
----
-3
-3162

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9076
SELECT ALL - + COUNT ( * ) col0, + 62 * - MAX ( DISTINCT 51 ) AS col2 FROM tab2 AS cor0
----
-3
-3162

query I rowsort
SELECT DISTINCT + 18 * + 65 FROM tab0 AS cor0
----
1170

query I rowsort
SELECT + 43 + + col1 FROM tab0
----
124
44
64

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9079
SELECT ALL col0 + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL col0 + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + 43 * col2 * 58 AS col1 FROM tab0 WHERE + col0 + 6 < + + 20 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9081
SELECT ALL - ( + MAX( + + ( + col0 ) ) ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9081
SELECT ALL - ( + MAX ( + + ( + col0 ) ) ) FROM tab0 AS cor0
----
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-9082
SELECT ALL - - col0 DIV 61 - + col1 FROM tab0 AS cor0
----
-20
-81
0

skipif mysql # not compatible
query I rowsort label-9082
SELECT ALL - - col0 / 61 - + col1 FROM tab0 AS cor0
----
-20
-81
0

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT ( NOT NULL < NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9084
SELECT - CAST( - - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9084
SELECT - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9085
SELECT DISTINCT - + col1 / - col1 * + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2, + 86 col1 FROM tab1 AS cor0
----
NULL
86

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9085
SELECT DISTINCT - + col1 / - col1 * + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2, + 86 col1 FROM tab1 AS cor0
----
NULL
86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 22 BETWEEN + - col1 AND NULL
----

query I rowsort
SELECT DISTINCT - 25 + - - 20 - - - 26 + + col0 - + col0 + col2 FROM tab2 cor0
----
-8
27
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9089
SELECT DISTINCT - SUM( - + 90 ) FROM tab1
----
270

skipif mysql # not compatible
query I rowsort label-9089
SELECT DISTINCT - SUM ( - + 90 ) FROM tab1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9090
SELECT ALL 97 + COUNT( * ) AS col0 FROM tab1
----
100

skipif mysql # not compatible
query I rowsort label-9090
SELECT ALL 97 + COUNT ( * ) AS col0 FROM tab1
----
100

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9091
SELECT CAST( - + 61 AS SIGNED ) + + col0 FROM tab2
----
-15
14
3

skipif mysql # not compatible
query I rowsort label-9091
SELECT CAST ( - + 61 AS INTEGER ) + + col0 FROM tab2
----
-15
14
3

query II rowsort
SELECT + col0 AS col2, + col1 FROM tab2 AS cor0
----
46
51
64
77
75
67

query I rowsort
SELECT DISTINCT + + 0 * + 15 * - - col2 FROM tab2 WHERE NOT NULL <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 83 col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT 56 * col2 AS col2 FROM tab0 cor0
----
2632
5544
560

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 < - ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 68 * - col0 * - 21 * + 11 FROM tab1 AS cor0
----
1335180
1429428
801108

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9098
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-9098
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + col2 + col0 FROM tab1 WHERE NOT + col0 >= NULL
----

query I rowsort
SELECT ( - col0 ) + 71 AS col2 FROM tab2
----
-4
25
7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 50 NOT IN ( + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9102
SELECT COUNT( + + ( - ( - - col1 ) ) ) + - 52 FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-9102
SELECT COUNT ( + + ( - ( - - col1 ) ) ) + - 52 FROM tab1
----
-49

onlyif mysql # DIV for integer division: 
query I rowsort label-9103
SELECT ALL + ( + col2 ) + - + col2 DIV 26 FROM tab2
----
23
39
56

skipif mysql # not compatible
query I rowsort label-9103
SELECT ALL + ( + col2 ) + - + col2 / 26 FROM tab2
----
23
39
56

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE + - 94 <= NULL
----

query I rowsort
SELECT 13 + - 5 FROM tab0
----
8
8
8

query I rowsort
SELECT col2 + - col2 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9107
SELECT + - COUNT( * ) * + - COUNT( * ) AS col2, 44 col0 FROM tab0 cor0
----
9
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9107
SELECT + - COUNT ( * ) * + - COUNT ( * ) AS col2, 44 col0 FROM tab0 cor0
----
9
44

query II rowsort
SELECT DISTINCT - col0, col1 AS col0 FROM tab0
----
-15
81
-87
21
-97
1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - col2 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9110
SELECT ALL + CAST( - col0 AS SIGNED ) + + CAST( NULL AS SIGNED ), - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-9110
SELECT ALL + CAST ( - col0 AS INTEGER ) + + CAST ( NULL AS INTEGER ), - col0 AS col1 FROM tab2
----
NULL
-46
NULL
-64
NULL
-75

query I rowsort
SELECT DISTINCT 7 - col2 FROM tab2
----
-16
-33
-51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col0 - col1 AND + - col0 / - + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9113
SELECT DISTINCT + COUNT( * ) + 7 AS col2 FROM tab1 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9113
SELECT DISTINCT + COUNT ( * ) + 7 AS col2 FROM tab1 cor0
----
10

query II rowsort
SELECT - col1 + - col1 + - 2 AS col0, - col1 * 38 + 68 FROM tab2 AS cor0
----
-104
-1870
-136
-2478
-156
-2858

query I rowsort
SELECT - col0 + + 26 AS col1 FROM tab0 AS cor0
----
-61
-71
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2, col2 col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query II rowsort
SELECT - - 47 + - col2 * + ( + 14 ) AS col0, col1 FROM tab0 AS cor0
----
-1339
1
-611
81
-93
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 95 col2, col2 FROM tab1 AS cor0
----
-95
59
-95
68
-95
96

query I rowsort
SELECT + 73 * + 58 - col1 + 64 FROM tab2 AS cor0
----
4221
4231
4247

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL = ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9121
SELECT - CAST( - - col0 AS SIGNED ) + - col1 * + col1 * col1 AS col0 FROM tab1 cor0
----
-103914
-210
-2795

skipif mysql # not compatible
query I rowsort label-9121
SELECT - CAST ( - - col0 AS INTEGER ) + - col1 * + col1 * col1 AS col0 FROM tab1 cor0
----
-103914
-210
-2795

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9122
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, 59 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
59
NULL
59

skipif mysql # not compatible
query II rowsort label-9122
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, 59 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
59
NULL
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9123
SELECT ALL + COUNT( * ) AS col2 FROM tab0 WHERE NOT ( NOT ( - col1 IS NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-9123
SELECT ALL + COUNT ( * ) AS col2 FROM tab0 WHERE NOT ( NOT ( - col1 IS NULL ) )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9124
SELECT - col2 * - CAST( + 1 AS SIGNED ) col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9124
SELECT - col2 * - CAST ( + 1 AS INTEGER ) col0 FROM tab1
----
59
68
96

query I rowsort
SELECT 63 * + - col1 * - - col0 * + + col1 AS col0 FROM tab0
----
-2417121
-6111
-6200145

query I rowsort
SELECT + 93 * - - 5 FROM tab2 cor0
----
465
465
465

onlyif mysql # aggregate syntax: 
query I rowsort label-9127
SELECT ALL - - COUNT( * ) * + + COUNT( * ) + - - COUNT( * ) FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9127
SELECT ALL - - COUNT ( * ) * + + COUNT ( * ) + - - COUNT ( * ) FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9128
SELECT ALL MAX( DISTINCT - 20 ) col2 FROM tab1
----
-20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9128
SELECT ALL MAX ( DISTINCT - 20 ) col2 FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9129
SELECT DISTINCT - COUNT( * ) * - 36 FROM tab1
----
108

skipif mysql # not compatible
query I rowsort label-9129
SELECT DISTINCT - COUNT ( * ) * - 36 FROM tab1
----
108

query I rowsort
SELECT col1 + + + col2 - - col0 - - col1 FROM tab0 AS cor0
----
139
198
224

onlyif mysql # aggregate syntax: 
query I rowsort label-9131
SELECT - - ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9131
SELECT - - ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col0 * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NOT + col1 * - 31 * 53 IS NOT NULL )
----

query II rowsort
SELECT + - col1 AS col0, col0 FROM tab1 cor0
----
-14
51
-47
91
-5
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 27 * - col1 * - 1 * + + col1 - + col1 - + col1 + + ( col0 ) + col2 col0 FROM tab2 AS cor0
----
-121204
-160133
-70260

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE ( 13 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9137
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) * + - COUNT( * ) AS col1 FROM tab1
----
12

skipif mysql # not compatible
query I rowsort label-9137
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) * + - COUNT ( * ) AS col1 FROM tab1
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9138
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NOT - col0 / + 72 NOT BETWEEN + - 63 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9138
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - col0 / + 72 NOT BETWEEN + - 63 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9139
SELECT ALL - - COUNT( * ) * - 19 * 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-15561

skipif mysql # not compatible
query I rowsort label-9139
SELECT ALL - - COUNT ( * ) * - 19 * 91 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-15561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9140
SELECT 20 + + + ( + + COUNT( * ) ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9140
SELECT 20 + + + ( + + COUNT ( * ) ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9141
SELECT DISTINCT COUNT( * ) + - + 58 + - MIN( ALL + ( - - col1 ) ) AS col2 FROM tab2
----
-106

skipif mysql # not compatible
query I rowsort label-9141
SELECT DISTINCT COUNT ( * ) + - + 58 + - MIN ( ALL + ( - - col1 ) ) AS col2 FROM tab2
----
-106

query I rowsort
SELECT DISTINCT + + 74 - + 48 + - ( - col1 ) AS col2 FROM tab0 AS cor0
----
107
27
47

query I rowsort
SELECT ALL - 91 * + + col2 - col1 AS col1 FROM tab2 AS cor0
----
-2144
-3717
-5345

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT COUNT( * ) - - 14 FROM tab0 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9144
SELECT COUNT ( * ) - - 14 FROM tab0 AS cor0
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - 38 + - 56 * + 41 * ( + AVG ( col0 ) ) * - - COUNT( * ) - COUNT( * ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9145
SELECT - 38 + - 56 * + 41 * ( + AVG ( col0 ) ) * - - COUNT ( * ) - COUNT ( * ) FROM tab1 WHERE NOT NULL >= NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9146
SELECT DISTINCT - COUNT( * ) AS col0, + SUM( ALL + + col2 ) DIV COUNT( * ) AS col0 FROM tab2
----
-3
40

skipif mysql # not compatible
query II rowsort label-9146
SELECT DISTINCT - COUNT ( * ) AS col0, + SUM ( ALL + + col2 ) / COUNT ( * ) AS col0 FROM tab2
----
-3
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9147
SELECT DISTINCT + CAST( - 69 AS SIGNED ) AS col1 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-9147
SELECT DISTINCT + CAST ( - 69 AS INTEGER ) AS col1 FROM tab1
----
-69

query I rowsort
SELECT - 36 * + - col1 FROM tab1
----
1692
180
504

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9149
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0, + 25 * + COUNT( * ) AS col2 FROM tab2
----
NULL
75

skipif mysql # not compatible
query II rowsort label-9149
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0, + 25 * + COUNT ( * ) AS col2 FROM tab2
----
NULL
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9150
SELECT ALL COUNT( ALL - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9150
SELECT ALL COUNT ( ALL - col2 ) AS col2 FROM tab1
----
3

query I rowsort
SELECT + + 1 - - col2 + - col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9152
SELECT CAST( + 65 AS SIGNED ) AS col1 FROM tab0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-9152
SELECT CAST ( + 65 AS INTEGER ) AS col1 FROM tab0
----
65
65
65

onlyif mysql # DIV for integer division: 
query I rowsort label-9153
SELECT col1 DIV + col0 * - + col0 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9153
SELECT col1 / + col0 * - + col0 AS col2 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9154
SELECT + CAST( - - 76 AS SIGNED ) FROM tab1
----
76
76
76

skipif mysql # not compatible
query I rowsort label-9154
SELECT + CAST ( - - 76 AS INTEGER ) FROM tab1
----
76
76
76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col1 + + - col1 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 29 * - col1 * - + col2 col2 FROM tab0
----
-110403
-2871
-6090

query I rowsort
SELECT DISTINCT 96 FROM tab2 WHERE - 61 < NULL
----

query I rowsort
SELECT DISTINCT 65 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, 81 FROM tab0 AS cor0 WHERE NOT 8 >= - col2
----

query I rowsort
SELECT DISTINCT col0 + - col0 * col1 * + col2 FROM tab0 AS cor0
----
-18183
-57090
-9506

query I rowsort
SELECT + col2 + + 35 FROM tab1
----
103
131
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9162
SELECT 64 + - col2 DIV + col2 col0 FROM tab0
----
63
63
63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9162
SELECT 64 + - col2 / + col2 col0 FROM tab0
----
63
63
63

query I rowsort
SELECT ALL - 56 + col2 FROM tab2
----
-16
-33
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9164
SELECT ALL 3 * - CAST( col2 AS SIGNED ) + + + col1 AS col2 FROM tab2
----
-107
-18
-43

skipif mysql # not compatible
query I rowsort label-9164
SELECT ALL 3 * - CAST ( col2 AS INTEGER ) + + + col1 AS col2 FROM tab2
----
-107
-18
-43

query I rowsort
SELECT DISTINCT 8 + + col1 * col1 * - col0 FROM tab1
----
-201011
-2117
-9988

onlyif mysql # aggregate syntax: 
query I rowsort label-9166
SELECT DISTINCT + SUM( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
121

skipif mysql # not compatible
query I rowsort label-9166
SELECT DISTINCT + SUM ( ALL + col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
121

query I rowsort
SELECT 0 - - col1 FROM tab1
----
14
47
5

query I rowsort
SELECT col1 - 33 AS col1 FROM tab0
----
-12
-32
48

query I rowsort
SELECT 48 + - col0 * col2 FROM tab2
----
-1010
-2512
-4302

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 93 + + 51 col0 FROM tab2 AS cor0
----
144
144
144

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 ) > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9172
SELECT DISTINCT + CAST( + SUM( ALL - 87 ) AS SIGNED ) * - COUNT( * ) FROM tab1 AS cor0
----
783

skipif mysql # not compatible
query I rowsort label-9172
SELECT DISTINCT + CAST ( + SUM ( ALL - 87 ) AS INTEGER ) * - COUNT ( * ) FROM tab1 AS cor0
----
783

query I rowsort
SELECT 34 AS col1 FROM tab2 AS cor0 WHERE NOT NULL >= col0 + - + col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - - col0 + - col2
----

query I rowsort
SELECT - col1 * - 64 AS col2 FROM tab2
----
3264
4288
4928

query I rowsort
SELECT - col1 * + + 27 * - col1 AS col1 FROM tab1
----
5292
59643
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9177
SELECT ALL CAST( NULL AS SIGNED ) / - + 26 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9177
SELECT ALL CAST ( NULL AS INTEGER ) / - + 26 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT - SUM( DISTINCT - col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT - SUM ( DISTINCT - col0 ) AS col1 FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-9179
SELECT ALL + SUM( 7 ) AS col2 FROM tab2 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-9179
SELECT ALL + SUM ( 7 ) AS col2 FROM tab2 AS cor0
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9180
SELECT ALL + ( + COUNT( + col2 ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9180
SELECT ALL + ( + COUNT ( + col2 ) ) FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9181
SELECT - - ( + col2 ) * + col2 - col1 FROM tab1 AS cor0 WHERE - ( + CAST( - - col2 AS DECIMAL ) ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9181
SELECT - - ( + col2 ) * + col2 - col1 FROM tab1 AS cor0 WHERE - ( + CAST ( - - col2 AS REAL ) ) > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < col1 + + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9183
SELECT ALL - - 37 + - + ( + - CAST( + col0 AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
101
112
83

skipif mysql # not compatible
query I rowsort label-9183
SELECT ALL - - 37 + - + ( + - CAST ( + col0 AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
101
112
83

onlyif mysql # DIV for integer division: 
query I rowsort label-9184
SELECT DISTINCT 18 DIV + col1 AS col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9184
SELECT DISTINCT 18 / + col1 AS col2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9185
SELECT ALL + CAST( + 62 AS SIGNED ) + + col1 FROM tab1
----
109
67
76

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL + CAST ( + 62 AS INTEGER ) + + col1 FROM tab1
----
109
67
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9186
SELECT + 55 + - - COUNT( * ) FROM tab0 WHERE CAST( NULL AS SIGNED ) * + col2 + + - 86 IS NULL
----
58

skipif mysql # not compatible
query I rowsort label-9186
SELECT + 55 + - - COUNT ( * ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) * + col2 + + - 86 IS NULL
----
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 65 * + - 90 + 10 <= NULL
----

query I rowsort
SELECT + col1 + - + col1 AS col2 FROM tab0 WHERE - 32 IS NULL
----

query I rowsort
SELECT DISTINCT + 57 + - + col0 AS col0 FROM tab0
----
-30
-40
42

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9190
SELECT col2 - + CAST( NULL AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9190
SELECT col2 - + CAST ( NULL AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT - col1 IS NOT NULL AND NOT NULL IS NULL
----

query I rowsort
SELECT col0 - + + col1 + + col2 FROM tab2
----
18
27
66

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 > 95
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9194
SELECT 19 + + 56 DIV - col2 + + + 67 FROM tab0 AS cor0
----
81
85
86

skipif mysql # not compatible
query I rowsort label-9194
SELECT 19 + + 56 / - col2 + + + 67 FROM tab0 AS cor0
----
81
85
86

query I rowsort
SELECT - 38 * + col0 FROM tab1 AS cor0 WHERE - col1 - + 21 > + 97 + 18
----

query I rowsort
SELECT + col0 + + - col0 * + 6 AS col1 FROM tab2 AS cor0
----
-230
-320
-375

query I rowsort
SELECT DISTINCT - 5 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + + col2 AS col2 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9199
SELECT CAST( - + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-9199
SELECT CAST ( - + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT ALL + + ( - 21 ) FROM tab2 AS cor0
----
-21
-21
-21

query I rowsort
SELECT ALL 95 * - 61 FROM tab0 AS cor0
----
-5795
-5795
-5795

query I rowsort
SELECT ALL - col1 * + 28 * + + col0 * - ( - 81 ) FROM tab0 cor0
----
-219996
-2755620
-4143636

onlyif mysql # aggregate syntax: 
query I rowsort label-9203
SELECT ALL MIN( ALL + col0 ) FROM tab0 AS cor0 WHERE 34 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9203
SELECT ALL MIN ( ALL + col0 ) FROM tab0 AS cor0 WHERE 34 IS NULL
----
NULL

query I rowsort
SELECT - 67 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-67
-67
-67

query I rowsort
SELECT + 15 / + col1 + + col1 + + - ( col1 ) FROM tab0 AS cor0 WHERE NOT - col2 IS NOT NULL
----

query I rowsort
SELECT ( + col2 ) AS col1 FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9207
SELECT ALL + CAST( NULL AS SIGNED ) * + - 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9207
SELECT ALL + CAST ( NULL AS INTEGER ) * + - 97 FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT col2, col2 - + ( + col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL = - col0
----

query II rowsort
SELECT DISTINCT - col0, ( col0 ) AS col1 FROM tab0
----
-15
15
-87
87
-97
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9210
SELECT - MAX( DISTINCT - 54 ) AS col0 FROM tab0
----
54

skipif mysql # not compatible
query I rowsort label-9210
SELECT - MAX ( DISTINCT - 54 ) AS col0 FROM tab0
----
54

query I rowsort
SELECT ALL - ( - col2 ) * + col0 AS col2 FROM tab0
----
705
870
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9212
SELECT DISTINCT MAX( 10 ) col1 FROM tab0 cor0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9212
SELECT DISTINCT MAX ( 10 ) col1 FROM tab0 cor0
----
10

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) <= col2
----

query II rowsort
SELECT col0, - col1 + + 37 FROM tab0 AS cor0
----
15
-44
87
16
97
36

query I rowsort
SELECT ALL + - 31 FROM tab1 AS cor0 WHERE ( + - col2 ) + + - col2 + col1 + col0 + + - 56 IS NOT NULL
----
-31
-31
-31

query I rowsort
SELECT + 76 * + - col2 AS col2 FROM tab2
----
-1748
-3040
-4408

query I rowsort
SELECT - 42 * + col2 AS col0 FROM tab2
----
-1680
-2436
-966

query I rowsort
SELECT DISTINCT + col0 FROM tab1 WHERE NOT col1 + - 5 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 42 * ( + ( col0 ) ) AS col0 FROM tab2 AS cor0
----
1932
2688
3150

query I rowsort
SELECT + ( - 86 ) * + col2 + + 66 FROM tab2 AS cor0
----
-1912
-3374
-4922

query I rowsort
SELECT ALL + col2 + - 48 + + col1 AS col2 FROM tab0 AS cor0
----
-17
52
80

query I rowsort
SELECT - - col1 * col1 + 50 AS col1 FROM tab2 AS cor0
----
2651
4539
5979

onlyif mysql # DIV for integer division: 
query I rowsort label-9223
SELECT DISTINCT col2 DIV 52 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-9223
SELECT DISTINCT col2 / 52 FROM tab1 AS cor0
----
1

query I rowsort
SELECT DISTINCT col1 + 6 AS col1 FROM tab2
----
57
73
83

query I rowsort
SELECT col2 + + + 57 FROM tab1
----
116
125
153

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9226
SELECT - CAST( NULL AS SIGNED ) * - col0 * col0 + - + col2 / 84 AS col0, 19 AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
NULL
19
NULL
19
NULL
19

skipif mysql # not compatible
query II rowsort label-9226
SELECT - CAST ( NULL AS INTEGER ) * - col0 * col0 + - + col2 / 84 AS col0, 19 AS col1 FROM tab1 WHERE col1 IS NOT NULL
----
NULL
19
NULL
19
NULL
19

query III rowsort
SELECT * FROM tab0 WHERE - col2 + - 79 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col2 * col2 * - col1 + + - col0 FROM tab1
----
-129075
-17490
-217419

onlyif mysql # aggregate syntax: 
query I rowsort label-9229
SELECT ALL - COUNT( * ) + MIN( DISTINCT + - 57 ) AS col2 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-9229
SELECT ALL - COUNT ( * ) + MIN ( DISTINCT + - 57 ) AS col2 FROM tab1
----
-60

query I rowsort
SELECT DISTINCT 61 - 54 FROM tab0
----
7

query I rowsort
SELECT ALL col2 - + 95 AS col0 FROM tab2 AS cor0
----
-37
-55
-72

query I rowsort
SELECT + col1 / col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 / + - 62 AND + 7
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 75 + 22 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to fee5c00ad71c23e23683a32c71fe6e7d

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + ( - col0 ) col2, col0 * - col1 AS col0 FROM tab2 AS cor0
----
46
-2346
64
-4928
75
-5025

query II rowsort
SELECT ALL 26, + col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
26
51
26
67
26
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9236
SELECT + - MAX( DISTINCT + 15 ) AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-9236
SELECT + - MAX ( DISTINCT + 15 ) AS col0 FROM tab2 AS cor0
----
-15

query I rowsort
SELECT - col1 * - col2 + col2 AS col1 FROM tab2 cor0
----
1196
3120
3944

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9238
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR col1 * - CAST( + col2 AS DECIMAL ) IS NOT NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-9238
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL OR col1 * - CAST ( + col2 AS REAL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9239
SELECT + - COUNT( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9239
SELECT + - COUNT ( DISTINCT - col1 ) col0 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9240
SELECT + - COUNT( ALL - - 5 ) FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9240
SELECT + - COUNT ( ALL - - 5 ) FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT ALL COUNT( * ) AS col2 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-9241
SELECT ALL COUNT ( * ) AS col2 FROM tab1 WHERE NOT + col0 BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 32 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9243
SELECT DISTINCT - CAST( NULL AS SIGNED ) * col0 AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9243
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * col0 AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + ( - - 32 ) + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
41

skipif mysql # not compatible
query I rowsort label-9244
SELECT + ( - - 32 ) + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
41

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 * - + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - + 3 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query I rowsort
SELECT DISTINCT + - col2 * - col1 - - - 20 FROM tab2 AS cor0
----
1153
3060
3866

onlyif mysql # aggregate syntax: 
query I rowsort label-9248
SELECT SUM( + + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-9248
SELECT SUM ( + + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT col1 * 21 AS col1 FROM tab0 AS cor0
----
1701
21
441

query I rowsort
SELECT DISTINCT - + col2 + + + col2 AS col0 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT - - 23, col2 FROM tab2 AS cor0
----
23
23
23
40
23
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9252
SELECT DISTINCT - CAST( + col0 AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9252
SELECT DISTINCT - CAST ( + col0 AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 18 - + - col0 * 72 FROM tab2
----
3330
4626
5418

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9254
SELECT CAST( - col2 AS SIGNED ) + col1 AS col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-9254
SELECT CAST ( - col2 AS INTEGER ) + col1 AS col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT col2 + + - 13 FROM tab1 AS cor0
----
46
55
83

query I rowsort
SELECT - col0 + - 88 FROM tab2 AS cor0
----
-134
-152
-163

onlyif mysql # aggregate syntax: 
query II rowsort label-9257
SELECT - 79 + + COUNT( * ) AS col2, + COUNT( * ) * COUNT( - - col0 ) - ( - + ( - SUM( ALL - 81 ) ) ) FROM tab0 AS cor0
----
-76
252

skipif mysql # not compatible
query II rowsort label-9257
SELECT - 79 + + COUNT ( * ) AS col2, + COUNT ( * ) * COUNT ( - - col0 ) - ( - + ( - SUM ( ALL - 81 ) ) ) FROM tab0 AS cor0
----
-76
252

onlyif mysql # aggregate syntax: 
query I rowsort label-9258
SELECT DISTINCT - MIN( 41 ) AS col1 FROM tab1 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-9258
SELECT DISTINCT - MIN ( 41 ) AS col1 FROM tab1 AS cor0
----
-41

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 74 AND + ( + - 93 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9260
SELECT ALL - 55 DIV - 1 FROM tab1 AS cor0
----
55
55
55

skipif mysql # not compatible
query I rowsort label-9260
SELECT ALL - 55 / - 1 FROM tab1 AS cor0
----
55
55
55

onlyif mysql # DIV for integer division: 
query II rowsort label-9261
SELECT col0 DIV + - ( + - 36 ) AS col1, col0 FROM tab1 AS cor0
----
1
51
2
85
2
91

skipif mysql # not compatible
query II rowsort label-9261
SELECT col0 / + - ( + - 36 ) AS col1, col0 FROM tab1 AS cor0
----
1
51
2
85
2
91

onlyif mysql # aggregate syntax: 
query I rowsort label-9262
SELECT - - COUNT( ALL col0 ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9262
SELECT - - COUNT ( ALL col0 ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9263
SELECT ALL - MAX( + col0 ) DIV + 91 AS col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9263
SELECT ALL - MAX ( + col0 ) / + 91 AS col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 85 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9265
SELECT ( + CAST( + col0 AS SIGNED ) ) * - col1 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
query I rowsort label-9265
SELECT ( + CAST ( + col0 AS INTEGER ) ) * - col1 FROM tab0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9266
SELECT + COUNT( - col1 ) * + + COUNT( * ) - - 77 FROM tab1
----
86

skipif mysql # not compatible
query I rowsort label-9266
SELECT + COUNT ( - col1 ) * + + COUNT ( * ) - - 77 FROM tab1
----
86

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9267
SELECT ( - MIN( + + CAST( col0 AS SIGNED ) ) ) + - COUNT( * ) FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-9267
SELECT ( - MIN ( + + CAST ( col0 AS INTEGER ) ) ) + - COUNT ( * ) FROM tab0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9268
SELECT COUNT( * ) FROM tab1 WHERE NOT + 47 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9268
SELECT COUNT ( * ) FROM tab1 WHERE NOT + 47 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 75 + ( + - 89 ) col1 FROM tab0 AS cor0
----
-164
-164
-164

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <> - 11 * 16 - + + col2 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9271
SELECT DISTINCT + - MAX( + col1 ) FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-9271
SELECT DISTINCT + - MAX ( + col1 ) FROM tab1 cor0
----
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col1 FROM tab0 AS cor0
----
-23
-23
-23

query I rowsort
SELECT DISTINCT + 49 * col0 AS col0 FROM tab1 AS cor0 WHERE 11 * - col2 <= - + col2 * col1
----
4165

onlyif mysql # aggregate syntax: 
query I rowsort label-9274
SELECT ALL 22 + - COUNT( col1 ) * 66 AS col2 FROM tab1 cor0
----
-176

skipif mysql # not compatible
query I rowsort label-9274
SELECT ALL 22 + - COUNT ( col1 ) * 66 AS col2 FROM tab1 cor0
----
-176

onlyif mysql # aggregate syntax: 
query I rowsort label-9275
SELECT DISTINCT - + COUNT( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9275
SELECT DISTINCT - + COUNT ( DISTINCT + - col1 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT + + 29 * - ( - 97 ) * 79 + + col2 AS col2 FROM tab1 AS cor0
----
222286
222295
222323

query I rowsort
SELECT ( - + col2 ) + - - col1 * - 15 FROM tab2 cor0
----
-1063
-1195
-788

query II rowsort
SELECT ALL + 80 AS col2, col1 FROM tab1 AS cor0
----
80
14
80
47
80
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9279
SELECT COUNT( * ) + COUNT( * ) + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-9279
SELECT COUNT ( * ) + COUNT ( * ) + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT + COUNT( DISTINCT col2 ) + ( - + 51 ) + - - MAX( - 12 ) FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-9280
SELECT + COUNT ( DISTINCT col2 ) + ( - + 51 ) + - - MAX ( - 12 ) FROM tab2
----
-60

query II rowsort
SELECT 42 AS col0, + col0 AS col0 FROM tab1
----
42
51
42
85
42
91

query I rowsort
SELECT ALL + col1 + - ( + col0 ) AS col2 FROM tab1
----
-37
-44
-80

onlyif mysql # DIV for integer division: 
query I rowsort label-9283
SELECT ALL 41 + - col2 DIV 43 + + ( + col1 ) FROM tab2
----
107
118
92

skipif mysql # not compatible
query I rowsort label-9283
SELECT ALL 41 + - col2 / 43 + + ( + col1 ) FROM tab2
----
107
118
92

query III rowsort
SELECT * FROM tab2 WHERE + - col2 * col1 IN ( + col1 + - 26 * col0 + + col1 * - - 97, + col1, + col1 )
----

query I rowsort
SELECT - ( - - col2 ) FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9286
SELECT ALL + MAX( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9286
SELECT ALL + MAX ( DISTINCT + col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT ALL + + 70 AS col1 FROM tab2 AS cor0 WHERE - col0 IS NULL
----

query II rowsort
SELECT + - col2 AS col1, 46 AS col1 FROM tab1 AS cor0
----
-59
46
-68
46
-96
46

onlyif mysql # DIV for integer division: 
query I rowsort label-9289
SELECT ALL + 41 DIV + 43 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9289
SELECT ALL + 41 / + 43 AS col1 FROM tab2
----
0
0
0

query I rowsort
SELECT DISTINCT 98 * + + col2 FROM tab1 cor0
----
5782
6664
9408

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NULL NOT BETWEEN col2 AND - + 56
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9292
SELECT ALL + AVG ( DISTINCT + - 12 ) + - MAX( DISTINCT + CAST( ( - 3 ) AS SIGNED ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - 67, col0 + + + col2, - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT ALL + AVG ( DISTINCT + - 12 ) + - MAX ( DISTINCT + CAST ( ( - 3 ) AS INTEGER ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - 67, col0 + + + col2, - col2 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9293
SELECT ( - + ( ( - COUNT( * ) ) ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9293
SELECT ( - + ( ( - COUNT ( * ) ) ) ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9294
SELECT ( - - COUNT( + col0 ) ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9294
SELECT ( - - COUNT ( + col0 ) ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9295
SELECT MIN( + col2 ) col1 FROM tab1
----
59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9295
SELECT MIN ( + col2 ) col1 FROM tab1
----
59

query I rowsort
SELECT ALL col1 * + 80 AS col2 FROM tab1
----
1120
3760
400

onlyif mysql # aggregate syntax: 
query I rowsort label-9297
SELECT + 71 * + ( + COUNT( * ) ) FROM tab2, tab1 cor0
----
639

skipif mysql # not compatible
query I rowsort label-9297
SELECT + 71 * + ( + COUNT ( * ) ) FROM tab2, tab1 cor0
----
639

query I rowsort
SELECT - 49 * + col2 AS col2 FROM tab1 AS cor0
----
-2891
-3332
-4704

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT MIN( 31 ) AS col1 FROM tab1 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT MIN ( 31 ) AS col1 FROM tab1 AS cor0
----
31

query I rowsort
SELECT - ( col2 ) + - col1 AS col0 FROM tab0 cor0
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 92 col0, col2 col0 FROM tab1 AS cor0
----
92
59
92
68
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9302
SELECT DISTINCT - - COUNT( * ) + 13 AS col1 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-9302
SELECT DISTINCT - - COUNT ( * ) + 13 AS col1 FROM tab2 AS cor0
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT COUNT( DISTINCT col1 ) * 6 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-9303
SELECT COUNT ( DISTINCT col1 ) * 6 FROM tab1
----
18

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9304
SELECT 54 DIV 13 + + COUNT( * ) AS col2 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-9304
SELECT 54 / 13 + + COUNT ( * ) AS col2 FROM tab1
----
7

query III rowsort
SELECT * FROM tab1 WHERE col0 NOT IN ( + 39 / col0 + ( col2 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 10 * - col2 AS col2 FROM tab1
----
-590
-680
-960

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT col1 + col0 / col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 0 + col2 FROM tab0 WHERE NOT 10 <> NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col1 * + 22 ) = ( 56 ) * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9310
SELECT DISTINCT + col2 DIV col2 AS col0 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-9310
SELECT DISTINCT + col2 / col2 AS col0 FROM tab2
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT - 6 + col2 * - ( - ( 17 ) DIV + col0 ) AS col1 FROM tab2
----
-6
-6
-6

skipif mysql # not compatible
query I rowsort label-9311
SELECT - 6 + col2 * - ( - ( 17 ) / + col0 ) AS col1 FROM tab2
----
-6
-6
-6

query I rowsort
SELECT 51 + 98 AS col2 FROM tab2 WHERE + ( col0 ) + + col0 NOT IN ( col0 )
----
149
149
149

query I rowsort
SELECT col1 + - 85 FROM tab0
----
-4
-64
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9314
SELECT col1 + - CAST( - col2 + + CAST( NULL AS SIGNED ) AS SIGNED ) * 60 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9314
SELECT col1 + - CAST ( - col2 + + CAST ( NULL AS INTEGER ) AS INTEGER ) * 60 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 FROM tab1 WHERE col0 * col2 > NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9316
SELECT ( col2 ) DIV 71 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9316
SELECT ( col2 ) / 71 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9317
SELECT DISTINCT COUNT( * ) + MIN( - col1 + + 77 * col2 ) AS col1 FROM tab1
----
4541

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT COUNT ( * ) + MIN ( - col1 + + 77 * col2 ) AS col1 FROM tab1
----
4541

onlyif mysql # DIV for integer division: 
query I rowsort label-9318
SELECT - col2 DIV - ( ( ( + col0 ) ) ) + + 67 FROM tab1
----
67
67
68

skipif mysql # not compatible
query I rowsort label-9318
SELECT - col2 / - ( ( ( + col0 ) ) ) + + 67 FROM tab1
----
67
67
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 10 + col1 col2 FROM tab2
----
61
77
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT IN ( col2 + + 95 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9321
SELECT DISTINCT COUNT( * ) + + 75 col2 FROM tab2
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9321
SELECT DISTINCT COUNT ( * ) + + 75 col2 FROM tab2
----
78

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col0 / 64 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 3 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 30 - - 43 col1 FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9325
SELECT + col0 - col1 DIV + 21 FROM tab1
----
51
85
89

skipif mysql # not compatible
query I rowsort label-9325
SELECT + col0 - col1 / + 21 FROM tab1
----
51
85
89

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 BETWEEN NULL AND - col0 * - col2 + 47 / - col0
----

query I rowsort
SELECT col1 AS col2 FROM tab2 AS cor0 WHERE NOT + col1 >= - 85
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9328
SELECT ALL SUM( DISTINCT 68 ) * - 29 AS col2 FROM tab0 AS cor0
----
-1972

skipif mysql # not compatible
query I rowsort label-9328
SELECT ALL SUM ( DISTINCT 68 ) * - 29 AS col2 FROM tab0 AS cor0
----
-1972

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 90 * + 31 col2 FROM tab0 AS cor0
----
2790
2790
2790

onlyif mysql # DIV for integer division: 
query III rowsort label-9330
SELECT * FROM tab2 AS cor0 WHERE NOT + 18 DIV + col0 <> + col1 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9330
SELECT * FROM tab2 AS cor0 WHERE NOT + 18 / + col0 <> + col1 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9331
SELECT DISTINCT COUNT( * ) * + CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9331
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9332
SELECT ALL + COUNT( * ) * MIN( - 45 ) + - 27 AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
-432

skipif mysql # not compatible
query I rowsort label-9332
SELECT ALL + COUNT ( * ) * MIN ( - 45 ) + - 27 AS col2 FROM tab2 cor0 CROSS JOIN tab0
----
-432

onlyif mysql # DIV for integer division: 
query I rowsort label-9333
SELECT ALL col0 DIV - 91 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-9333
SELECT ALL col0 / - 91 FROM tab1
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 >= - col2
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 IN ( - 65 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col2 < ( NULL )
----

query I rowsort
SELECT col0 + col0 * 65 AS col1 FROM tab2 cor0 WHERE NOT + col1 <> ( 82 )
----

query I rowsort
SELECT ALL 30 FROM tab1 AS cor0 WHERE ( + 89 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9339
SELECT SUM( ALL - col2 ) / - 0 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND 91
----
NULL

skipif mysql # not compatible
query I rowsort label-9339
SELECT SUM ( ALL - col2 ) / - 0 FROM tab1 AS cor0 WHERE NOT - col2 BETWEEN NULL AND 91
----
NULL

query I rowsort
SELECT DISTINCT col0 + col0 AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN - col0 * - col0 AND ( - col0 ) / + 43 + 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT DISTINCT - COUNT( * ) * ( - 94 * 39 + - COUNT( * ) ) + + MAX( DISTINCT col2 ) col0 FROM tab2 AS cor0
----
11065

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9341
SELECT DISTINCT - COUNT ( * ) * ( - 94 * 39 + - COUNT ( * ) ) + + MAX ( DISTINCT col2 ) col0 FROM tab2 AS cor0
----
11065

onlyif mysql # aggregate syntax: 
query I rowsort label-9342
SELECT ALL + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col0 <> col2 + 76
----
3

skipif mysql # not compatible
query I rowsort label-9342
SELECT ALL + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col0 <> col2 + 76
----
3

query I rowsort
SELECT col1 + + 19 + + col2 * + 99 FROM tab1
----
5865
6798
9537

query I rowsort
SELECT DISTINCT col0 + + 86 + - col0 FROM tab2
----
86

query I rowsort
SELECT - 56 + - 47 AS col2 FROM tab1
----
-103
-103
-103

onlyif mysql # DIV for integer division: 
query I rowsort label-9346
SELECT ALL ( + - col0 ) + col2 DIV - 14 col2 FROM tab1
----
-57
-89
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9346
SELECT ALL ( + - col0 ) + col2 / - 14 col2 FROM tab1
----
-57
-89
-95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 26 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9348
SELECT 40 + + SUM( - col2 ) FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-9348
SELECT 40 + + SUM ( - col2 ) FROM tab2
----
-81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9349
SELECT + CAST( NULL AS SIGNED ) * - ( - AVG ( ALL - 11 ) ) * MIN( DISTINCT col0 ) + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9349
SELECT + CAST ( NULL AS INTEGER ) * - ( - AVG ( ALL - 11 ) ) * MIN ( DISTINCT col0 ) + + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9350
SELECT DISTINCT COUNT( * ) * - 84 * + COUNT( ALL - col0 ) + 65 AS col0 FROM tab1
----
-691

skipif mysql # not compatible
query I rowsort label-9350
SELECT DISTINCT COUNT ( * ) * - 84 * + COUNT ( ALL - col0 ) + 65 AS col0 FROM tab1
----
-691

query I rowsort
SELECT 22 * col1 + col1 * + col0 AS col1 FROM tab2
----
3468
6499
6622

query I rowsort
SELECT + ( + 12 ) + - col1 FROM tab1
----
-2
-35
7

query I rowsort
SELECT + 89 * - ( - col2 ) + ( - col2 ) AS col2 FROM tab2
----
2024
3520
5104

onlyif mysql # aggregate syntax: 
query I rowsort label-9354
SELECT DISTINCT - 1 * MAX( + ( 17 ) ) AS col2 FROM tab1
----
-17

skipif mysql # not compatible
query I rowsort label-9354
SELECT DISTINCT - 1 * MAX ( + ( 17 ) ) AS col2 FROM tab1
----
-17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9355
SELECT DISTINCT - ( - CAST( + ( COUNT( * ) ) AS SIGNED ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9355
SELECT DISTINCT - ( - CAST ( + ( COUNT ( * ) ) AS INTEGER ) ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9356
SELECT DISTINCT + ( MIN( + 57 ) ) + COUNT( * ) * + 19 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9356
SELECT DISTINCT + ( MIN ( + 57 ) ) + COUNT ( * ) * + 19 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + 6 ) BETWEEN col1 AND ( NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9358
SELECT * FROM tab2 AS cor0 WHERE - ( + col2 ) IN ( - ( CAST( NULL AS SIGNED ) ) + col0 )
----

skipif mysql # not compatible
query III rowsort label-9358
SELECT * FROM tab2 AS cor0 WHERE - ( + col2 ) IN ( - ( CAST ( NULL AS INTEGER ) ) + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col2 + - col1 ) NOT BETWEEN 47 AND col2
----
51
14
96
85
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9360
SELECT ALL 12 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-9360
SELECT ALL 12 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
15

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) < - 44
----

query I rowsort
SELECT ALL - 79 + - 59 FROM tab2
----
-138
-138
-138

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9363
SELECT DISTINCT + col2 + - - CAST( NULL AS SIGNED ) * ( 33 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9363
SELECT DISTINCT + col2 + - - CAST ( NULL AS INTEGER ) * ( 33 ) FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + 49 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + - col1 - - + ( - + col2 ) FROM tab2 AS cor0
----
-117
-125
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT DISTINCT 71 - COUNT( * ) AS col1 FROM tab1 cor0
----
68

skipif mysql # not compatible
query I rowsort label-9366
SELECT DISTINCT 71 - COUNT ( * ) AS col1 FROM tab1 cor0
----
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT DISTINCT - - MAX( col1 ) FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
81

skipif mysql # not compatible
query I rowsort label-9367
SELECT DISTINCT - - MAX ( col1 ) FROM tab0 cor0 WHERE NOT + col0 IS NULL
----
81

query I rowsort
SELECT - - col2 + + col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query II rowsort
SELECT + col2, + col1 AS col1 FROM tab0 cor0
----
10
21
47
81
99
1

query I rowsort
SELECT 9 / 47 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( + col1 + - col0 ) AND NULL
----

query I rowsort
SELECT + col1 * + - 5 * - col1 FROM tab2 cor0
----
13005
22445
29645

query I rowsort
SELECT - 98 FROM tab0 AS cor0 WHERE NOT ( + col2 * col1 / 62 + col0 ) IN ( - 29 )
----
-98
-98
-98

query I rowsort
SELECT - - 59 * + col0 FROM tab2 AS cor0
----
2714
3776
4425

query II rowsort
SELECT DISTINCT + + 29 AS col0, col0 FROM tab2 AS cor0
----
29
46
29
64
29
75

query I rowsort
SELECT + col1 * + - ( + col2 ) FROM tab2
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9376
SELECT ALL * FROM tab1 WHERE NOT 93 NOT BETWEEN NULL AND col0 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9376
SELECT ALL * FROM tab1 WHERE NOT 93 NOT BETWEEN NULL AND col0 * CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9377
SELECT - COUNT( * ) * + COUNT( ALL - col2 ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-9377
SELECT - COUNT ( * ) * + COUNT ( ALL - col2 ) FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9378
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( CAST( + 64 AS SIGNED ) * + col2 )
----

skipif mysql # not compatible
query III rowsort label-9378
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( CAST ( + 64 AS INTEGER ) * + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 10 <= + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( col0 * col1 * + 71 ) < + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9381
SELECT ALL COUNT( + col0 ) col2 FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9381
SELECT ALL COUNT ( + col0 ) col2 FROM tab2 AS cor0 WHERE ( + col0 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT ALL col2 AS col2 FROM tab1 cor0 WHERE + 64 > ( + + ( - col1 ) * + col1 )
----
59
68
96

query I rowsort
SELECT DISTINCT + 23 - + col2 FROM tab0 AS cor0 WHERE NOT ( + col0 * + col0 * + 4 ) = - col1 + col1
----
-24
-76
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9384
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + + CAST( col1 AS SIGNED ) ) + + col1 * + col0 >= - 19 * 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9384
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + ( + + CAST ( col1 AS INTEGER ) ) + + col1 * + col0 >= - 19 * 48
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9385
SELECT DISTINCT + - COUNT( - - 54 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9385
SELECT DISTINCT + - COUNT ( - - 54 ) AS col0 FROM tab2 AS cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 33 col2 FROM tab2
----
-33

query I rowsort
SELECT + col0 AS col1 FROM tab0 WHERE NOT - 27 < - - 11 * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9388
SELECT ALL + + SUM( col1 ) * - + SUM( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
14718

skipif mysql # not compatible
query I rowsort label-9388
SELECT ALL + + SUM ( col1 ) * - + SUM ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
14718

query I rowsort
SELECT - + 64 + + col2 FROM tab2 AS cor0
----
-24
-41
-6

query I rowsort
SELECT ALL + + 93 AS col2 FROM tab0 cor0 WHERE - 53 IS NOT NULL
----
93
93
93

query I rowsort
SELECT + 63 + + col0 AS col1 FROM tab2 AS cor0
----
109
127
138

query I rowsort
SELECT ALL + + 3 * col2 + - + col1 * - col1 * - col1 FROM tab1 AS cor0
----
-103619
-2456
52

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9393
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 64 + + col1 = col1 / - col0 * ( + col2 ) - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9393
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 64 + + col1 = col1 / - col0 * ( + col2 ) - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 * - 81 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9395
SELECT DISTINCT COUNT( * ) AS col0, - MAX( DISTINCT - + 36 ) AS col2 FROM tab2 AS cor0 WHERE 67 IS NOT NULL
----
3
36

skipif mysql # not compatible
query II rowsort label-9395
SELECT DISTINCT COUNT ( * ) AS col0, - MAX ( DISTINCT - + 36 ) AS col2 FROM tab2 AS cor0 WHERE 67 IS NOT NULL
----
3
36

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < ( - 53 + + 55 + col2 - + 4 * + col2 * - col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9397
SELECT - - SUM( ALL - CAST( - 9 AS SIGNED ) ) * + COUNT( * ) AS col1 FROM tab1 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9397
SELECT - - SUM ( ALL - CAST ( - 9 AS INTEGER ) ) * + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-9398
SELECT - col1 DIV + + col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-9398
SELECT - col1 / + + col0 FROM tab0 AS cor0
----
-5
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9399
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE 97 + 25 * - CAST( - 71 AS SIGNED ) * ( - 76 ) NOT BETWEEN col0 / 33 AND + col1
----
10
47
99

skipif mysql # not compatible
query I rowsort label-9399
SELECT DISTINCT col2 AS col2 FROM tab0 WHERE 97 + 25 * - CAST ( - 71 AS INTEGER ) * ( - 76 ) NOT BETWEEN col0 / 33 AND + col1
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9400
SELECT ALL + MIN( - col0 ) / + + 37 * 91 + + MAX( DISTINCT 68 ) FROM tab2 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9400
SELECT ALL + MIN ( - col0 ) / + + 37 * 91 + + MAX ( DISTINCT 68 ) FROM tab2 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT ALL 6 + + ( - - 81 ) * 90 FROM tab1
----
7296
7296
7296

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9402
SELECT CAST( - - 35 AS SIGNED ) * + MIN( DISTINCT - col0 ) * COUNT( * ) FROM tab2
----
-7875

skipif mysql # not compatible
query I rowsort label-9402
SELECT CAST ( - - 35 AS INTEGER ) * + MIN ( DISTINCT - col0 ) * COUNT ( * ) FROM tab2
----
-7875

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( NOT - col2 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + ( + - ( col0 ) ) + + - col0 FROM tab2 AS cor0
----
-128
-150
-92

query I rowsort
SELECT + ( + col1 ) + + - col1 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT - - 67 FROM tab1 cor0 WHERE col1 * col0 IS NOT NULL
----
67
67
67

onlyif mysql # DIV for integer division: 
query I rowsort label-9407
SELECT + 94 + - col0 - col0 DIV + col2 FROM tab0 cor0
----
-1
-3
79

skipif mysql # not compatible
query I rowsort label-9407
SELECT + 94 + - col0 - col0 / + col2 FROM tab0 cor0
----
-1
-3
79

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT DISTINCT + - MAX( DISTINCT + 6 ) AS col2 FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-9408
SELECT DISTINCT + - MAX ( DISTINCT + 6 ) AS col2 FROM tab2 AS cor0
----
-6

query II rowsort
SELECT DISTINCT + - col2 * + + 15, + ( col1 ) FROM tab2 AS cor0 WHERE NOT + col1 IS NULL
----
-345
51
-600
77
-870
67

query I rowsort
SELECT DISTINCT col0 + col1 * + - col0 + col1 + col0 + + + col0 + col2 FROM tab2
----
-2134
-4619
-4675

onlyif mysql # aggregate syntax: 
query II rowsort label-9411
SELECT - MIN( 33 ), - 30 AS col1 FROM tab1 AS cor0
----
-33
-30

skipif mysql # not compatible
query II rowsort label-9411
SELECT - MIN ( 33 ), - 30 AS col1 FROM tab1 AS cor0
----
-33
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9412
SELECT DISTINCT - MIN( DISTINCT - col1 ) - - 33 col2 FROM tab0 AS cor0
----
114

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9412
SELECT DISTINCT - MIN ( DISTINCT - col1 ) - - 33 col2 FROM tab0 AS cor0
----
114

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9413
SELECT DISTINCT - COUNT( * ) DIV + 92 AS col2 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9413
SELECT DISTINCT - COUNT ( * ) / + 92 AS col2 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + 30 * - + col1 FROM tab2 AS cor0
----
-1530
-2010
-2310

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9415
SELECT 35 AS col2, - 83 / - MIN( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----
35
NULL

skipif mysql # not compatible
query II rowsort label-9415
SELECT 35 AS col2, - 83 / - MIN ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----
35
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9416
SELECT + SUM( ALL 98 ) AS col0 FROM tab0 AS cor0
----
294

skipif mysql # not compatible
query I rowsort label-9416
SELECT + SUM ( ALL 98 ) AS col0 FROM tab0 AS cor0
----
294

query I rowsort
SELECT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 38 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 AS col1, + col1 * - col1 * - col0 AS col0 FROM tab1
----
51
9996
85
2125
91
201019

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9420
SELECT - SUM( col0 ) * SUM( ALL - - col0 ) DIV + COUNT( * ) FROM tab0
----
-13200

skipif mysql # not compatible
query I rowsort label-9420
SELECT - SUM ( col0 ) * SUM ( ALL - - col0 ) / + COUNT ( * ) FROM tab0
----
-13200

query I rowsort
SELECT DISTINCT + 90 * - 16 AS col1 FROM tab1
----
-1440

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9422
SELECT DISTINCT * FROM tab0 WHERE NOT + 55 >= - CAST( NULL AS SIGNED ) - col1
----

skipif mysql # not compatible
query III rowsort label-9422
SELECT DISTINCT * FROM tab0 WHERE NOT + 55 >= - CAST ( NULL AS INTEGER ) - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9423
SELECT DISTINCT MAX( - col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-9423
SELECT DISTINCT MAX ( - col1 ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-9424
SELECT DISTINCT - 85, SUM( - col1 ) AS col2 FROM tab1 cor0
----
-85
-66

skipif mysql # not compatible
query II rowsort label-9424
SELECT DISTINCT - 85, SUM ( - col1 ) AS col2 FROM tab1 cor0
----
-85
-66

query II rowsort
SELECT - 92 AS col2, + col2 AS col0 FROM tab2 AS cor0
----
-92
23
-92
40
-92
58

query I rowsort
SELECT ALL + 46 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT ( + + col0 ) FROM tab1 WHERE NOT + 68 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - ( + ( + col2 ) ) * + 92 * - 36 col0, - col0 AS col2 FROM tab0
----
155664
-15
327888
-97
33120
-87

query I rowsort
SELECT DISTINCT - 25 + - col2 AS col0 FROM tab2
----
-48
-65
-83

query I rowsort
SELECT 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + col1 < - 50 * - col2 * + 57
----

query I rowsort
SELECT ALL + - 78 * + + col0 AS col0 FROM tab2 AS cor0
----
-3588
-4992
-5850

onlyif mysql # DIV for integer division: 
query I rowsort label-9433
SELECT col1 + 20 DIV - + col2 + + - col2 FROM tab1
----
-21
-54
-82

skipif mysql # not compatible
query I rowsort label-9433
SELECT col1 + 20 / - + col2 + + - col2 FROM tab1
----
-21
-54
-82

query I rowsort
SELECT 88 + + + col2 FROM tab0
----
135
187
98

query II rowsort
SELECT col0 + + 63 + - + 18 AS col1, + col2 AS col1 FROM tab2
----
109
40
120
58
91
23

query I rowsort
SELECT col0 + 35 FROM tab0
----
122
132
50

query III rowsort
SELECT ALL * FROM tab2 WHERE - ( - + 85 ) / + + col2 BETWEEN - + 89 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT ALL 64 + - - MAX( DISTINCT + - col2 ) AS col2 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-9438
SELECT ALL 64 + - - MAX ( DISTINCT + - col2 ) AS col2 FROM tab2
----
41

query I rowsort
SELECT DISTINCT - ( 84 ) - + 11 FROM tab1
----
-95

query III rowsort
SELECT * FROM tab0 WHERE + - col2 / + + 28 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9441
SELECT - col2 * - - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NULL IN ( - col1 )
----

skipif mysql # not compatible
query I rowsort label-9441
SELECT - col2 * - - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT - + ( col1 ) - col1 AS col2 FROM tab0 AS cor0
----
-162
-2
-42

query I rowsort
SELECT DISTINCT 65 + 96 FROM tab0 AS cor0 WHERE NOT col1 IS NULL
----
161

query I rowsort
SELECT - + 80 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 4dde3bd5652d30396b9cadd0e2cfb680

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9445
SELECT - CAST( NULL AS SIGNED ) * - SUM( DISTINCT + + col2 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9445
SELECT - CAST ( NULL AS INTEGER ) * - SUM ( DISTINCT + + col2 ) FROM tab0
----
NULL

query I rowsort
SELECT ALL 37 * col0 * - - col0 AS col0 FROM tab2
----
151552
208125
78292

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9447
SELECT DISTINCT - - COUNT( * ) DIV - 21 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9447
SELECT DISTINCT - - COUNT ( * ) / - 21 AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9448
SELECT ALL + - col1 DIV + col0 * + 83 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9448
SELECT ALL + - col1 / + col0 * + 83 AS col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9449
SELECT - + ( - SUM( ALL 85 ) ) AS col2 FROM tab1 AS cor0
----
255

skipif mysql # not compatible
query I rowsort label-9449
SELECT - + ( - SUM ( ALL 85 ) ) AS col2 FROM tab1 AS cor0
----
255

query I rowsort
SELECT DISTINCT - 43 + - 72 AS col1 FROM tab2 AS cor0 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9451
SELECT ALL - 32, CAST( - 49 AS SIGNED ) + + col2 + col1 + - col2 DIV - 35 - - 92 AS col1 FROM tab0 AS cor0
----
-32
145
-32
172
-32
74

skipif mysql # not compatible
query II rowsort label-9451
SELECT ALL - 32, CAST ( - 49 AS INTEGER ) + + col2 + col1 + - col2 / - 35 - - 92 AS col1 FROM tab0 AS cor0
----
-32
145
-32
172
-32
74

query I rowsort
SELECT 45 - + col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-22
-32
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-9453
SELECT - - COUNT( ALL 9 ), + 99 AS col0 FROM tab0 AS cor0
----
3
99

skipif mysql # not compatible
query II rowsort label-9453
SELECT - - COUNT ( ALL 9 ), + 99 AS col0 FROM tab0 AS cor0
----
3
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9454
SELECT DISTINCT + - 93 + col1 AS col0 FROM tab1 cor0 WHERE NOT NULL = + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9454
SELECT DISTINCT + - 93 + col1 AS col0 FROM tab1 cor0 WHERE NOT NULL = + CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 * - + col0 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9456
SELECT * FROM tab0 WHERE NOT + col2 / + 41 BETWEEN + col1 - + 21 AND + CAST( - col1 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-9456
SELECT * FROM tab0 WHERE NOT + col2 / + 41 BETWEEN + col1 - + 21 AND + CAST ( - col1 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + 74 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - - 13 / col2 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 * col0 NOT IN ( col0 / - 75 )
----

query II rowsort
SELECT + - ( col1 ), - col0 AS col1 FROM tab2 cor0
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT DISTINCT + 15 + - - 66 AS col0 FROM tab0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9462
SELECT DISTINCT ( - 78 ) + COUNT( * ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9462
SELECT DISTINCT ( - 78 ) + COUNT ( * ) FROM tab2
----
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9463
SELECT CAST( - - 14 AS SIGNED ) * - col1 + 15 + + col1 AS col1 FROM tab1 cor0
----
-167
-50
-596

skipif mysql # not compatible
query I rowsort label-9463
SELECT CAST ( - - 14 AS INTEGER ) * - col1 + 15 + + col1 AS col1 FROM tab1 cor0
----
-167
-50
-596

onlyif mysql # aggregate syntax: 
query I rowsort label-9464
SELECT ALL + - SUM( + + col0 ) AS col0 FROM tab0 AS cor0
----
-199

skipif mysql # not compatible
query I rowsort label-9464
SELECT ALL + - SUM ( + + col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # DIV for integer division: 
query I rowsort label-9465
SELECT - 4 DIV ( - + 60 ) * - + 25 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9465
SELECT - 4 / ( - + 60 ) * - + 25 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + AVG ( col1 ) FROM tab2 AS cor0 WHERE col0 = NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9467
SELECT col2 * - - CAST( NULL AS SIGNED ) * + + col1 / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9467
SELECT col2 * - - CAST ( NULL AS INTEGER ) * + + col1 / - col0 col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 85 col1 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
-85
-85
-85

onlyif mysql # DIV for integer division: 
query II rowsort label-9469
SELECT + col1 DIV - - 89 * + col1, + 30 AS col1 FROM tab0 AS cor0
----
0
30
0
30
0
30

skipif mysql # not compatible
query II rowsort label-9469
SELECT + col1 / - - 89 * + col1, + 30 AS col1 FROM tab0 AS cor0
----
0
30
0
30
0
30

query III rowsort
SELECT ALL * FROM tab2 WHERE col1 * + 26 + + + col2 < + col0 * - col0
----

query I rowsort
SELECT - col0 FROM tab0 WHERE - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9472
SELECT ALL CAST( NULL AS SIGNED ) + - col1 + - 10 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9472
SELECT ALL CAST ( NULL AS INTEGER ) + - col1 + - 10 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9473
SELECT ALL + col2 DIV + 51 + - - 21 FROM tab1
----
22
22
22

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL + col2 / + 51 + - - 21 FROM tab1
----
22
22
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9474
SELECT + COUNT( * ) * + - 72 + + 13 FROM tab1
----
-203

skipif mysql # not compatible
query I rowsort label-9474
SELECT + COUNT ( * ) * + - 72 + + 13 FROM tab1
----
-203

onlyif mysql # aggregate syntax: 
query I rowsort label-9475
SELECT DISTINCT - 54 - MAX( + col0 ) * 44 AS col1 FROM tab2
----
-3354

skipif mysql # not compatible
query I rowsort label-9475
SELECT DISTINCT - 54 - MAX ( + col0 ) * 44 AS col1 FROM tab2
----
-3354

onlyif mysql # aggregate syntax: 
query I rowsort label-9476
SELECT ALL 1 + MIN( col2 ) AS col2 FROM tab1 AS cor0 WHERE - col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9476
SELECT ALL 1 + MIN ( col2 ) AS col2 FROM tab1 AS cor0 WHERE - col1 <= NULL
----
NULL

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > ( NULL )
----

query I rowsort
SELECT col0 * - 93 * - 2 AS col0 FROM tab2
----
11904
13950
8556

onlyif mysql # aggregate syntax: 
query I rowsort label-9479
SELECT + COUNT( ALL - - col1 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9479
SELECT + COUNT ( ALL - - col1 ) FROM tab2
----
3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT + 42 IS NULL )
----

query I rowsort
SELECT DISTINCT ( - col0 ) FROM tab2 AS cor0 WHERE NULL IS NULL
----
-46
-64
-75

query I rowsort
SELECT col1 * 17 AS col2 FROM tab0 AS cor0
----
1377
17
357

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT col1 IS NOT NULL
----

query II rowsort
SELECT 8 AS col2, + 1 FROM tab1
----
8
1
8
1
8
1

onlyif mysql # DIV for integer division: 
query I rowsort label-9485
SELECT 18 DIV - - ( + col0 ) + + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-9485
SELECT 18 / - - ( + col0 ) + + col2 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL - MAX( DISTINCT + 69 ) + + 65 FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL - MAX ( DISTINCT + 69 ) + + 65 FROM tab2
----
-4

query I rowsort
SELECT DISTINCT - + col0 * + - col0 AS col2 FROM tab2 cor0
----
2116
4096
5625

query III rowsort
SELECT * FROM tab1 WHERE + + col0 + col1 * + 14 NOT BETWEEN + col1 - - col1 AND + ( + + col1 ) * - - ( ( - col0 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + - 97 AS col0 FROM tab1 cor0
----
-97
-97
-97

query I rowsort
SELECT DISTINCT + + col0 - + - col1 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT 14 + + col2 AS col0 FROM tab2 AS cor0
----
37
54
72

query I rowsort
SELECT - - col1 + + - ( + 43 ) FROM tab1 AS cor0
----
-29
-38
4

query II rowsort
SELECT DISTINCT + col0, ( - col0 ) AS col1 FROM tab1
----
51
-51
85
-85
91
-91

query I rowsort
SELECT + 71 + + + col0 FROM tab0
----
158
168
86

query III rowsort
SELECT * FROM tab2 WHERE 5 BETWEEN ( 91 ) AND - 51 * + 37 + col2
----

query I rowsort
SELECT DISTINCT - 20 + col2 * 40 * + col0 * - col2 FROM tab2
----
-10092020
-4096020
-973380

query I rowsort
SELECT DISTINCT - 70 + - + col1 AS col0 FROM tab1
----
-117
-75
-84

query I rowsort
SELECT DISTINCT col0 + - 74 * + - 84 + - + col0 FROM tab2
----
6216

query I rowsort
SELECT DISTINCT + ( + - col2 ) + + - col2 AS col0 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query II rowsort label-9500
SELECT DISTINCT + COUNT( * ), + 48 AS col2 FROM tab1 AS cor0
----
3
48

skipif mysql # not compatible
query II rowsort label-9500
SELECT DISTINCT + COUNT ( * ), + 48 AS col2 FROM tab1 AS cor0
----
3
48

query I rowsort
SELECT DISTINCT col1 * col1 - - 85 + - col0 + - 0 FROM tab0 AS cor0
----
-11
439
6631

query II rowsort
SELECT col0 AS col1, + 56 - + col2 * col2 FROM tab2 cor0
----
46
-473
64
-1544
75
-3308

onlyif mysql # DIV for integer division: 
query II rowsort label-9503
SELECT ALL col0 DIV + col1, col1 FROM tab2
----
0
51
0
77
1
67

skipif mysql # not compatible
query II rowsort label-9503
SELECT ALL col0 / + col1, col1 FROM tab2
----
0
51
0
77
1
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9504
SELECT DISTINCT + COUNT( * ) * - + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

skipif mysql # not compatible
query I rowsort label-9504
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - col1 + - + 54 <> NULL
----

query I rowsort
SELECT + col1 AS col0 FROM tab1 AS cor0 WHERE NOT col1 - col2 >= NULL
----

query I rowsort
SELECT ALL - ( - col1 ) * + col0 AS col2 FROM tab2 AS cor0
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT - MIN( + + col1 ) AS col1 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9508
SELECT - MIN ( + + col1 ) AS col1 FROM tab1 AS cor0
----
-5

query I rowsort
SELECT ALL + col0 * - col2 * + 11 FROM tab2 AS cor0
----
-11638
-28160
-47850

query I rowsort
SELECT + ( 82 ) FROM tab2 AS cor0
----
82
82
82

query I rowsort
SELECT ALL col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
14
47
5

query I rowsort
SELECT DISTINCT + - 49 AS col1 FROM tab2 AS cor0
----
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9513
SELECT ALL col0 / + + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9513
SELECT ALL col0 / + + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - 19 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-9515
SELECT DISTINCT ( col0 ) DIV - 76 * - 68 + col1 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-9515
SELECT DISTINCT ( col0 ) / - 76 * - 68 + col1 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL 16 + + col2 AS col1 FROM tab1
----
112
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9517
SELECT ALL - MIN( - col1 ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9517
SELECT ALL - MIN ( - col1 ) FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + col1 - - 5 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL + SUM( ALL - 39 ) FROM tab0
----
-117

skipif mysql # not compatible
query I rowsort label-9519
SELECT ALL + SUM ( ALL - 39 ) FROM tab0
----
-117

query I rowsort
SELECT col2 * - - 10 * col0 AS col2 FROM tab1 WHERE NOT NULL NOT BETWEEN col0 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9521
SELECT ALL + CAST( NULL AS SIGNED ) * ( + col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9521
SELECT ALL + CAST ( NULL AS INTEGER ) * ( + col0 ) AS col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9522
SELECT DISTINCT - + COUNT( * ) * ( + COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9522
SELECT DISTINCT - + COUNT ( * ) * ( + COUNT ( * ) ) FROM tab2 AS cor0
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9523
SELECT DISTINCT + 91 DIV - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9523
SELECT DISTINCT + 91 / - col0 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT - - col1 FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( - + 86 ) AND - col2 + + 75 + - col2
----

query I rowsort
SELECT - 33 FROM tab2, tab1 cor0
----
9 values hashing to 8035c665a75d22be5922be1a4e574e03

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 73 col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e5fbf5d129b181bacd6113bbc8732496

query II rowsort
SELECT DISTINCT + + 22, col1 / - - col0 AS col1 FROM tab0 WHERE + + 84 * + + 19 * - col2 IS NULL
----

query I rowsort
SELECT ALL col0 + + col1 * + + col2 + + 32 + + col0 AS col2 FROM tab1
----
1478
3410
497

query I rowsort
SELECT DISTINCT 56 - + - 45 FROM tab0 AS cor0
----
101

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9530
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - CAST( + col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9530
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * - CAST ( + col0 AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT ALL + - 48 - + col2 AS col2 FROM tab2 AS cor0
----
-106
-71
-88

query II rowsort
SELECT - col1 * col0 AS col0, 99 FROM tab0 AS cor0
----
-1215
99
-1827
99
-97
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9533
SELECT ALL + ( 84 ) DIV + col0 FROM tab1 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9533
SELECT ALL + ( 84 ) / + col0 FROM tab1 AS cor0
----
0
0
1

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9535
SELECT + + 96 DIV 13 col0 FROM tab2 AS cor0
----
7
7
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9535
SELECT + + 96 / 13 col0 FROM tab2 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT + 18 AS col1 FROM tab0 cor0
----
18

query I rowsort
SELECT DISTINCT - 85 + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
-100
-172
-182

query II rowsort
SELECT - - 27 - col2 AS col0, - col1 AS col2 FROM tab0 cor0
----
-20
-81
-72
-1
17
-21

query I rowsort
SELECT + + col2 AS col0 FROM tab1 WHERE NOT - ( - - col1 ) BETWEEN + col1 + - col0 * + - ( - + col2 ) * - col1 AND col0 AND 46 * + - 53 IS NULL
----

query I rowsort
SELECT col0 * - col1 + - col1 + col0 + - 56 * - col1 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + 85 + col2 AS col1, + 87 AS col0 FROM tab2
----
108
87
125
87
143
87

query I rowsort
SELECT col1 * + col0 + + 75 - - col2 AS col0 FROM tab2
----
2444
5043
5158

onlyif mysql # aggregate syntax: 
query I rowsort label-9543
SELECT DISTINCT MAX( DISTINCT col2 ) - - COUNT( * ) AS col1 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9543
SELECT DISTINCT MAX ( DISTINCT col2 ) - - COUNT ( * ) AS col1 FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - MAX( + - col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-9544
SELECT - MAX ( + - col1 ) AS col0 FROM tab1 AS cor0
----
5

query II rowsort
SELECT + - col1 * + + col1 AS col1, - col2 FROM tab2 AS cor0
----
-2601
-23
-4489
-58
-5929
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT MAX( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9546
SELECT MAX ( DISTINCT + col2 ) col0 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9547
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) - + 40 + + - 2 + 58 AS col1 FROM tab0 WHERE + + 83 IS NOT NULL
----
25

skipif mysql # not compatible
query I rowsort label-9547
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) - + 40 + + - 2 + 58 AS col1 FROM tab0 WHERE + + 83 IS NOT NULL
----
25

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 + + + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9549
SELECT MIN( - 67 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-67

skipif mysql # not compatible
query I rowsort label-9549
SELECT MIN ( - 67 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9550
SELECT * FROM tab2 WHERE - 73 IS NULL OR CAST( NULL AS SIGNED ) < + - col2
----

skipif mysql # not compatible
query III rowsort label-9550
SELECT * FROM tab2 WHERE - 73 IS NULL OR CAST ( NULL AS INTEGER ) < + - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9551
SELECT DISTINCT - COUNT( ALL 67 ) AS col1 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-9551
SELECT DISTINCT - COUNT ( ALL 67 ) AS col1 FROM tab1
----
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9552
SELECT CAST( NULL AS SIGNED ) AS col1, - MIN( ALL - col2 ) AS col1 FROM tab2
----
NULL
58

skipif mysql # not compatible
query II rowsort label-9552
SELECT CAST ( NULL AS INTEGER ) AS col1, - MIN ( ALL - col2 ) AS col1 FROM tab2
----
NULL
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 68 col2, col1 AS col1 FROM tab2 AS cor0
----
68
51
68
67
68
77

query I rowsort
SELECT + - 23 * - col1 AS col2 FROM tab0 AS cor0
----
1863
23
483

onlyif mysql # aggregate syntax: 
query I rowsort label-9555
SELECT - MAX( + col2 ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-58

skipif mysql # not compatible
query I rowsort label-9555
SELECT - MAX ( + col2 ) FROM tab2 AS cor0 WHERE NOT - col2 IS NULL
----
-58

query I rowsort
SELECT ALL 7 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 AS cor0 WHERE NULL <= - col2 + - col2
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 86 BETWEEN + col2 + col2 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0 col0, 80 * - + col2 FROM tab2 AS cor0
----
46
-1840
64
-3200
75
-4640

query I rowsort
SELECT ALL - 77 + + col2 FROM tab0
----
-30
-67
22

query I rowsort
SELECT ALL - 46 AS col1 FROM tab2 WHERE NULL NOT BETWEEN - col1 AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9562
SELECT - CAST( NULL AS DECIMAL ) + CAST( NULL AS SIGNED ) + - ( - ( + col0 ) ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9562
SELECT - CAST ( NULL AS REAL ) + CAST ( NULL AS INTEGER ) + - ( - ( + col0 ) ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9563
SELECT col2 DIV + 77 + - + col1 * 64 FROM tab2
----
-3264
-4288
-4928

skipif mysql # not compatible
query I rowsort label-9563
SELECT col2 / + 77 + - + col1 * 64 FROM tab2
----
-3264
-4288
-4928

query IIIIII rowsort
SELECT * FROM tab2, tab1 AS cor0 WHERE NULL <= + 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 32 + + - 0 col1 FROM tab1 AS cor0
----
32
32
32

query I rowsort
SELECT ALL + 17 FROM tab0 cor0
----
17
17
17

query I rowsort
SELECT 6 * + + 23 FROM tab2 AS cor0
----
138
138
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 81 + - col0 col1 FROM tab2
----
-127
-145
-156

onlyif mysql # aggregate syntax: 
query I rowsort label-9569
SELECT - COUNT( DISTINCT + 13 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9569
SELECT - COUNT ( DISTINCT + 13 ) FROM tab2
----
-1

query I rowsort
SELECT col0 * + col2 - col0 + - col0 * - - 78 * - col1 + + col0 + + col1 + - 38 AS col0 FROM tab2
----
184059
386983
396329

query I rowsort
SELECT 65 - + + col2 FROM tab0
----
-34
18
55

onlyif mysql # aggregate syntax: 
query I rowsort label-9572
SELECT DISTINCT + + 20 + - COUNT( * ) AS col2 FROM tab1 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-9572
SELECT DISTINCT + + 20 + - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
17

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9573
SELECT DISTINCT 33 - - + 97 + - CAST( + COUNT( + ( + 24 ) ) AS SIGNED ) AS col1, 12 AS col1 FROM tab0 AS cor0
----
127
12

skipif mysql # not compatible
query II rowsort label-9573
SELECT DISTINCT 33 - - + 97 + - CAST ( + COUNT ( + ( + 24 ) ) AS INTEGER ) AS col1, 12 AS col1 FROM tab0 AS cor0
----
127
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9574
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) / - + 85 * - col1 <= + col0 * col0
----
0

skipif mysql # not compatible
query I rowsort label-9574
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) / - + 85 * - col1 <= + col0 * col0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 * - + 54 NOT IN ( - 69, - col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - - 89 )
----

query I rowsort
SELECT col0 * - + col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + - + col2 col2 FROM tab1 AS cor0 WHERE NOT col2 * ( - col0 ) IS NULL
----
-21
-54
-82

query I rowsort
SELECT 3 * + col0 * - - col0 AS col0 FROM tab2
----
12288
16875
6348

query II rowsort
SELECT DISTINCT - col2, - col2 AS col1 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL + 25 * + ( + + col1 ) AS col2 FROM tab2
----
1275
1675
1925

query I rowsort
SELECT ALL + 75 * + 16 * + 81 AS col2 FROM tab1
----
97200
97200
97200

query II rowsort
SELECT DISTINCT + 85 AS col1, + 28 * col0 AS col0 FROM tab0
----
85
2436
85
2716
85
420

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT + 61 + col2 * + - 68 AS col0 FROM tab0 WHERE NOT ( - - CAST( - 2 AS SIGNED ) * 55 ) > NULL
----

skipif mysql # not compatible
query I rowsort label-9584
SELECT + 61 + col2 * + - 68 AS col0 FROM tab0 WHERE NOT ( - - CAST ( - 2 AS INTEGER ) * 55 ) > NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN - col1 / + 10 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col0, - col1 FROM tab0 AS cor0
----
15
-81
87
-21
97
-1

query I rowsort
SELECT ALL - col1 AS col0 FROM tab2 AS cor0 WHERE 28 / + 33 <> - - 41
----
-51
-67
-77

query II rowsort
SELECT ALL - - ( - 19 ) AS col1, - 5 FROM tab1 AS cor0
----
-19
-5
-19
-5
-19
-5

query II rowsort
SELECT + + col1, + 77 - ( col2 ) AS col0 FROM tab2 AS cor0
----
51
54
67
19
77
37

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN - - 3 AND - col1 * + - 84 * - col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9591
SELECT ( ( SUM( + 78 ) ) ) / - - ( CAST( NULL AS SIGNED ) ) + + COUNT( * ) + + + 9 * - COUNT( * ) + 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9591
SELECT ( ( SUM ( + 78 ) ) ) / - - ( CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) + + + 9 * - COUNT ( * ) + 75 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NULL IS NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9592
SELECT - - CAST( - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-9592
SELECT - - CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT + + ( + col0 ) * - col0 AS col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab0 AS cor0
----
92
92
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 9 + 26 + - col1 * - col2 * - col0, + col0 col1 FROM tab0 AS cor0
----
-18235
87
-57070
15
-9568
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9596
SELECT + 19 * col0 AS col2, ( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 cor0
----
1653
NULL
1843
NULL
285
NULL

skipif mysql # not compatible
query II rowsort label-9596
SELECT + 19 * col0 AS col2, ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 cor0
----
1653
NULL
1843
NULL
285
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 <= - + col0 * 23
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9598
SELECT + ( + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9598
SELECT + ( + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 33 * + + col0 + - + col2 IS NULL
----

query II rowsort
SELECT + col2 AS col2, ( col2 ) AS col0 FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - - 78 col1 FROM tab1
----
125
83
92

query I rowsort
SELECT - col1 AS col0 FROM tab2 WHERE - col0 * + - col1 * - col1 - col2 * + col1 NOT BETWEEN col2 AND 80
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE + - col0 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9604
SELECT ALL col1 + + - CAST( + col1 AS SIGNED ) + - col1, + 10 * + - col0 AS col0 FROM tab0
----
-1
-970
-21
-870
-81
-150

skipif mysql # not compatible
query II rowsort label-9604
SELECT ALL col1 + + - CAST ( + col1 AS INTEGER ) + - col1, + 10 * + - col0 AS col0 FROM tab0
----
-1
-970
-21
-870
-81
-150

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( ALL - + 48 ) col0 FROM tab2 WHERE NOT - + col2 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9606
SELECT DISTINCT + COUNT( DISTINCT + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9606
SELECT DISTINCT + COUNT ( DISTINCT + ( col2 ) ) AS col2 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 13 - - ( - 92 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9608
SELECT ALL - col1 DIV + col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9608
SELECT ALL - col1 / + col1 AS col2 FROM tab0 AS cor0
----
-1
-1
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-9609
SELECT ALL - 35 DIV - col2 + - 34, + 12 DIV + col2 AS col1 FROM tab0 AS cor0
----
-31
1
-34
0
-34
0

skipif mysql # not compatible
query II rowsort label-9609
SELECT ALL - 35 / - col2 + - 34, + 12 / + col2 AS col1 FROM tab0 AS cor0
----
-31
1
-34
0
-34
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9610
SELECT - COUNT( DISTINCT ( - 52 ) ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-9610
SELECT - COUNT ( DISTINCT ( - 52 ) ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9611
SELECT ALL MIN( + - 85 ) + + 75 AS col1 FROM tab2 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-9611
SELECT ALL MIN ( + - 85 ) + + 75 AS col1 FROM tab2 AS cor0
----
-10

query I rowsort
SELECT + 3 FROM tab0 AS cor0 WHERE NULL IS NOT NULL AND NULL IS NULL
----

query I rowsort
SELECT ( + col0 ) * col1 * + 91 - + - col0 + - col2 AS col0 FROM tab2 AS cor0
----
213509
448472
457292

query I rowsort
SELECT + + col2 + - ( + 64 ) AS col0 FROM tab2 cor0 WHERE NOT 21 = + + 26 + 44 * + 43
----
-24
-41
-6

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN - ( col0 ) / + col2 * col0 + col0 AND NULL
----

query I rowsort
SELECT ( - + 31 ) * - col1 * 48 AS col1 FROM tab2
----
114576
75888
99696

query II rowsort
SELECT - - col2, + col0 / - - col2 * - 83 FROM tab2 WHERE NOT ( NULL ) >= + col0 + - 25 * - + col2
----

query I rowsort
SELECT ALL 61 AS col0 FROM tab2 WHERE NOT ( NOT ( + col2 ) * + ( - + col2 ) * + 55 IS NOT NULL )
----
61
61
61

query I rowsort
SELECT col1 * - ( - 55 ) AS col2 FROM tab0
----
1155
4455
55

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9620
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT 73 <= col2 + + 2 - + - CAST( NULL AS DECIMAL ) * col2
----

skipif mysql # not compatible
query I rowsort label-9620
SELECT col0 AS col2 FROM tab1 AS cor0 WHERE NOT 73 <= col2 + + 2 - + - CAST ( NULL AS REAL ) * col2
----

query II rowsort
SELECT ALL col1 AS col1, col1 AS col0 FROM tab1
----
14
14
47
47
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9622
SELECT ALL MIN( DISTINCT - 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-9622
SELECT ALL MIN ( DISTINCT - 42 ) FROM tab2
----
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-9623
SELECT 28 * - SUM( ALL - col1 ) AS col0 FROM tab1
----
1848

skipif mysql # not compatible
query I rowsort label-9623
SELECT 28 * - SUM ( ALL - col1 ) AS col0 FROM tab1
----
1848

onlyif mysql # DIV for integer division: 
query I rowsort label-9624
SELECT - 46 DIV + col2 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-9624
SELECT - 46 / + col2 FROM tab2
----
-1
-2
0

query I rowsort
SELECT ALL ( + + ( - 54 ) ) FROM tab0 AS cor0
----
-54
-54
-54

query I rowsort
SELECT 6 + - + col0 AS col2 FROM tab2 AS cor0
----
-40
-58
-69

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9627
SELECT ALL - COUNT( * ) + - 33 AS col1, CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
-36
NULL

skipif mysql # not compatible
query II rowsort label-9627
SELECT ALL - COUNT ( * ) + - 33 AS col1, CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
-36
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9628
SELECT - 85 + + 60, - CAST( + col0 AS SIGNED ) AS col1 FROM tab2
----
-25
-46
-25
-64
-25
-75

skipif mysql # not compatible
query II rowsort label-9628
SELECT - 85 + + 60, - CAST ( + col0 AS INTEGER ) AS col1 FROM tab2
----
-25
-46
-25
-64
-25
-75

query I rowsort
SELECT + 79 + + col1 AS col2 FROM tab0
----
100
160
80

query I rowsort
SELECT + col2 + - col1 + - - col0 * + - col1 FROM tab2
----
-2374
-4965
-5034

onlyif mysql # aggregate syntax: 
query I rowsort label-9631
SELECT DISTINCT ( + + MIN( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-9631
SELECT DISTINCT ( + + MIN ( ALL - col1 ) ) AS col2 FROM tab0 AS cor0
----
-81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9632
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 83 = + - col2 * + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9632
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 83 = + - col2 * + + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 10 - - col0 FROM tab0 AS cor0
----
107
25
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9634
SELECT DISTINCT CAST( 45 AS SIGNED ) + col1 FROM tab1
----
50
59
92

skipif mysql # not compatible
query I rowsort label-9634
SELECT DISTINCT CAST ( 45 AS INTEGER ) + col1 FROM tab1
----
50
59
92

query I rowsort
SELECT ALL + 58 + - col1 FROM tab0
----
-23
37
57

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab1 WHERE col1 + - col1 IS NOT NULL
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9637
SELECT DISTINCT 18 - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9637
SELECT DISTINCT 18 - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, ( + - col0 ) * + col0 * - 2 AS col2 FROM tab1 cor0
----
51
5202
85
14450
91
16562

onlyif mysql # aggregate syntax: 
query I rowsort label-9639
SELECT DISTINCT + - SUM( ALL 28 ) FROM tab0 cor0
----
-84

skipif mysql # not compatible
query I rowsort label-9639
SELECT DISTINCT + - SUM ( ALL 28 ) FROM tab0 cor0
----
-84

query I rowsort
SELECT + + col0 / + col1 / + col2 AS col2 FROM tab1 AS cor0 WHERE NOT col2 <= NULL
----

query II rowsort
SELECT - - col2, 20 * + + 93 AS col2 FROM tab1 AS cor0
----
59
1860
68
1860
96
1860

query I rowsort
SELECT + col0 * + + col1 + col0 + - 58 FROM tab0 cor0
----
1172
136
1856

query II rowsort
SELECT ALL - col1 AS col2, + col1 * + col1 + + col2 - - - col1 AS col1 FROM tab1 AS cor0
----
-14
278
-47
2230
-5
79

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 > - 12
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9645
SELECT MIN( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-9645
SELECT MIN ( DISTINCT col2 ) AS col2 FROM tab0 cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT + 11 * + CAST( - - ( - - 99 ) AS SIGNED ) FROM tab0 AS cor0
----
1089

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT + 11 * + CAST ( - - ( - - 99 ) AS INTEGER ) FROM tab0 AS cor0
----
1089

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT COUNT( * ) * + - 1 AS col0 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-9647
SELECT COUNT ( * ) * + - 1 AS col0 FROM tab2
----
-3

query I rowsort
SELECT - col1 * + - 38 FROM tab0
----
3078
38
798

query I rowsort
SELECT 11 * - + ( + + 33 ) FROM tab2
----
-363
-363
-363

onlyif mysql # aggregate syntax: 
query I rowsort label-9650
SELECT DISTINCT + COUNT( - - col2 ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9650
SELECT DISTINCT + COUNT ( - - col2 ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9651
SELECT ALL col1 DIV + - col0 col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9651
SELECT ALL col1 / + - col0 col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT ALL - MIN( + ( col1 ) ) FROM tab2 WHERE NOT 55 * 46 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9652
SELECT ALL - MIN ( + ( col1 ) ) FROM tab2 WHERE NOT 55 * 46 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9653
SELECT DISTINCT + MIN( ALL ( - + ( + + col0 ) ) ) AS col1 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-9653
SELECT DISTINCT + MIN ( ALL ( - + ( + + col0 ) ) ) AS col1 FROM tab1 AS cor0
----
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9654
SELECT + 23 DIV col2 * col1 FROM tab2 AS cor0
----
0
0
51

skipif mysql # not compatible
query I rowsort label-9654
SELECT + 23 / col2 * col1 FROM tab2 AS cor0
----
0
0
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9655
SELECT ALL MIN( - - col2 ) AS col2 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-9655
SELECT ALL MIN ( - - col2 ) AS col2 FROM tab2 AS cor0
----
23

query I rowsort
SELECT DISTINCT ( + 46 ) FROM tab2
----
46

query I rowsort
SELECT DISTINCT col0 + + col1 * 24 * + - col1 AS col1 FROM tab2
----
-107661
-142232
-62378

query I rowsort
SELECT ALL ( - 91 ) AS col1 FROM tab1
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-9659
SELECT ALL - MAX( + 59 ) FROM tab2 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - MAX ( + 59 ) FROM tab2 AS cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-9660
SELECT - 66 DIV + 77 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9660
SELECT - 66 / + 77 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE + 83 = + col1 * + col0 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT SUM( - - 2 ) AS col2 FROM tab0 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9662
SELECT SUM ( - - 2 ) AS col2 FROM tab0 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9663
SELECT DISTINCT COUNT( * ) + - MIN( DISTINCT col0 ) * - - 77 FROM tab0 AS cor0
----
-1152

skipif mysql # not compatible
query I rowsort label-9663
SELECT DISTINCT COUNT ( * ) + - MIN ( DISTINCT col0 ) * - - 77 FROM tab0 AS cor0
----
-1152

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 63 + - col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9665
SELECT + - col2 DIV - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9665
SELECT + - col2 / - - col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 AS cor0 WHERE - col0 > NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 WHERE ( NOT NULL IS NOT NULL )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-9668
SELECT ALL - + MAX( col0 ) / + MIN( DISTINCT col1 ) AS col0 FROM tab1 WHERE - col1 * - 18 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9668
SELECT ALL - + MAX ( col0 ) / + MIN ( DISTINCT col1 ) AS col0 FROM tab1 WHERE - col1 * - 18 <> NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9669
SELECT 58 DIV - col2 + col0 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-9669
SELECT 58 / - col2 + col0 AS col1 FROM tab1
----
51
85
91

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - col1 <= - + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9671
SELECT - + MIN( - col0 ) * 44 + + 75 + + + 9 AS col1 FROM tab2 cor0
----
3384

skipif mysql # not compatible
query I rowsort label-9671
SELECT - + MIN ( - col0 ) * 44 + + 75 + + + 9 AS col1 FROM tab2 cor0
----
3384

onlyif mysql # DIV for integer division: 
query I rowsort label-9672
SELECT - col1 + col2 * - 7 + - col2 - col2 DIV + - col2 + + col1 FROM tab0 AS cor0
----
-375
-79
-791

skipif mysql # not compatible
query I rowsort label-9672
SELECT - col1 + col2 * - 7 + - col2 - col2 / + - col2 + + col1 FROM tab0 AS cor0
----
-375
-79
-791

query I rowsort
SELECT 77 FROM tab0 WHERE NOT - 20 IS NULL
----
77
77
77

query I rowsort
SELECT 65 AS col1 FROM tab0 cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT - SUM( + 45 ) FROM tab2 cor0
----
-135

skipif mysql # not compatible
query I rowsort label-9675
SELECT - SUM ( + 45 ) FROM tab2 cor0
----
-135

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 13 NOT BETWEEN - + 48 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9677
SELECT col1 * + CAST( NULL AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 <> NULL
----

skipif mysql # not compatible
query I rowsort label-9677
SELECT col1 * + CAST ( NULL AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 <> NULL
----

query II rowsort
SELECT DISTINCT 51 * - col2, + col0 FROM tab2 cor0
----
-1173
46
-2040
64
-2958
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 5 col1, 67 + 64 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

query II rowsort
SELECT col1, - col2 + + col1 + 22 AS col2 FROM tab1
----
14
-60
47
1
5
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-9681
SELECT DISTINCT - MAX( + col0 ) AS col0 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-9681
SELECT DISTINCT - MAX ( + col0 ) AS col0 FROM tab2
----
-75

query I rowsort
SELECT + 0 * + - col0 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9683
SELECT CAST( NULL AS SIGNED ) / - 15 / + col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9683
SELECT CAST ( NULL AS INTEGER ) / - 15 / + col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-9684
SELECT + 68 * col1 DIV 12 AS col1, col2 + - col1 AS col0 FROM tab0
----
119
-11
459
-34
5
98

skipif mysql # not compatible
query II rowsort label-9684
SELECT + 68 * col1 / 12 AS col1, col2 + - col1 AS col0 FROM tab0
----
119
-11
459
-34
5
98

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 * - col0 - - + ( + + col0 ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9686
SELECT DISTINCT - CAST( NULL AS SIGNED ) / CAST( - col0 AS SIGNED ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9686
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / CAST ( - col0 AS INTEGER ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9687
SELECT ALL - - COUNT( * ) + + + 62 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9687
SELECT ALL - - COUNT ( * ) + + + 62 col1 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
65

query I rowsort
SELECT + ( + + 10 ) AS col0 FROM tab0 AS cor0
----
10
10
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9689
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col1 * CAST( - + col1 AS SIGNED ) IS NULL
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-9689
SELECT - col2 FROM tab1 AS cor0 WHERE NOT col1 * CAST ( - + col1 AS INTEGER ) IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 56 = + 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9691
SELECT - COUNT( * ) + + - COUNT( * ) + + SUM( + col0 ) FROM tab1 AS cor0
----
221

skipif mysql # not compatible
query I rowsort label-9691
SELECT - COUNT ( * ) + + - COUNT ( * ) + + SUM ( + col0 ) FROM tab1 AS cor0
----
221

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9692
SELECT ALL col2 * - - col0 * + + CAST( + + 9 AS SIGNED ) + - col2 FROM tab0 AS cor0
----
6298
7820
86328

skipif mysql # not compatible
query I rowsort label-9692
SELECT ALL col2 * - - col0 * + + CAST ( + + 9 AS INTEGER ) + - col2 FROM tab0 AS cor0
----
6298
7820
86328

query I rowsort
SELECT DISTINCT + col1 * - 69 FROM tab0 cor0
----
-1449
-5589
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-9694
SELECT DISTINCT + col1 DIV - col0 * col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9694
SELECT DISTINCT + col1 / - col0 * col0 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 33 + + col2 + col1 IS NULL
----

query I rowsort
SELECT - col1 + - + 15 AS col0 FROM tab0
----
-16
-36
-96

query I rowsort
SELECT col2 * col0 + - 91 * + 9 * + 90 FROM tab1
----
-67522
-68695
-68814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 45 col2 FROM tab2
----
-45

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9699
SELECT ALL - COUNT( * ) DIV + 79 + + + COUNT( * ) + - 58 FROM tab1
----
-55

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - COUNT ( * ) / + 79 + + + COUNT ( * ) + - 58 FROM tab1
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9700
SELECT DISTINCT 99 AS col0 FROM tab1 WHERE + 92 * - col0 - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-9700
SELECT DISTINCT 99 AS col0 FROM tab1 WHERE + 92 * - col0 - CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9701
SELECT ALL - 86 + - CAST( - COUNT( - col0 ) AS SIGNED ) FROM tab1
----
-83

skipif mysql # not compatible
query I rowsort label-9701
SELECT ALL - 86 + - CAST ( - COUNT ( - col0 ) AS INTEGER ) FROM tab1
----
-83

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9702
SELECT + MAX( ALL + col0 ) DIV COUNT( * ) FROM tab1
----
30

skipif mysql # not compatible
query I rowsort label-9702
SELECT + MAX ( ALL + col0 ) / COUNT ( * ) FROM tab1
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9703
SELECT - CAST( 28 AS SIGNED ) FROM tab2
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-9703
SELECT - CAST ( 28 AS INTEGER ) FROM tab2
----
-28
-28
-28

query I rowsort
SELECT ( - + col1 ) AS col0 FROM tab2
----
-51
-67
-77

query III rowsort
SELECT * FROM tab0 WHERE - col2 <> - col2 * + - ( - - 40 ) / - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + ( - 33 ) - + 50 FROM tab0 AS cor0
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9707
SELECT col1 - + - CAST( - - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
10
28
94

skipif mysql # not compatible
query I rowsort label-9707
SELECT col1 - + - CAST ( - - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # aggregate syntax: 
query II rowsort label-9708
SELECT DISTINCT COUNT( * ) AS col1, MIN( + col0 ) AS col0 FROM tab2
----
3
46

skipif mysql # not compatible
query II rowsort label-9708
SELECT DISTINCT COUNT ( * ) AS col1, MIN ( + col0 ) AS col0 FROM tab2
----
3
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9709
SELECT + MIN( ALL + - col0 ) AS col2 FROM tab0
----
-97

skipif mysql # not compatible
query I rowsort label-9709
SELECT + MIN ( ALL + - col0 ) AS col2 FROM tab0
----
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-9710
SELECT SUM( DISTINCT + col0 ), COUNT( * ) AS col1 FROM tab1 AS cor0
----
227
3

skipif mysql # not compatible
query II rowsort label-9710
SELECT SUM ( DISTINCT + col0 ), COUNT ( * ) AS col1 FROM tab1 AS cor0
----
227
3

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN - col0 AND + col1
----

query I rowsort
SELECT DISTINCT 15 * - col0 - + + 42 FROM tab0 AS cor0
----
-1347
-1497
-267

onlyif mysql # DIV for integer division: 
query II rowsort label-9713
SELECT + 5, col0 DIV col2 AS col2 FROM tab1 AS cor0
----
5
0
5
1
5
1

skipif mysql # not compatible
query II rowsort label-9713
SELECT + 5, col0 / col2 AS col2 FROM tab1 AS cor0
----
5
0
5
1
5
1

query I rowsort
SELECT - ( - - 51 ) FROM tab2 AS cor0
----
-51
-51
-51

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9716
SELECT - COUNT( * ) * - - 54 AS col1, 82 AS col2 FROM tab1
----
-162
82

skipif mysql # not compatible
query II rowsort label-9716
SELECT - COUNT ( * ) * - - 54 AS col1, 82 AS col2 FROM tab1
----
-162
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 90 IS NULL OR NOT NULL IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 85 * + 7 * 3 FROM tab2 AS cor0
----
-1785
-1785
-1785

onlyif mysql # DIV for integer division: 
query II rowsort label-9719
SELECT - col1 DIV col2 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

skipif mysql # not compatible
query II rowsort label-9719
SELECT - col1 / col2 AS col1, + col2 AS col2 FROM tab2 AS cor0
----
-1
40
-1
58
-2
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9720
SELECT DISTINCT + col1 + - - CAST( CAST( + col2 AS SIGNED ) AS SIGNED ) FROM tab0
----
100
128
31

skipif mysql # not compatible
query I rowsort label-9720
SELECT DISTINCT + col1 + - - CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT + 21 - + 92 AS col0 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL - + col1 * - 36 AS col0 FROM tab1 AS cor0
----
1692
180
504

query II rowsort
SELECT ALL + + col1, ( - col2 ) FROM tab2 AS cor0
----
51
-23
67
-58
77
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 68 col1 FROM tab0 AS cor0
----
68

query I rowsort
SELECT + col1 * 82 AS col1 FROM tab2 cor0
----
4182
5494
6314

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col1 col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT - ( + 65 ) - + 42 + + col0 * - col2 AS col0 FROM tab1
----
-5003
-5122
-6295

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col1 * + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - + col0 + - - col1 col2 FROM tab1
----
-2587
-7220
-8234

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9730
SELECT - col2 + 44 / CAST( NULL AS SIGNED ) * - col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9730
SELECT - col2 + 44 / CAST ( NULL AS INTEGER ) * - col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 / - col1 + col1 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 45 + - 68 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9733
SELECT + + col2 + + col2 DIV - col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-9733
SELECT + + col2 + + col2 / - col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9734
SELECT SUM( + - col1 ) + + + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + 37 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9734
SELECT SUM ( + - col1 ) + + + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + 37 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9735
SELECT - 36 DIV col1 FROM tab0
----
-1
-36
0

skipif mysql # not compatible
query I rowsort label-9735
SELECT - 36 / col1 FROM tab0
----
-1
-36
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9736
SELECT ALL + 14 DIV - col2 * + + col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9736
SELECT ALL + 14 / - col2 * + + col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9737
SELECT + + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-9737
SELECT + + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9738
SELECT DISTINCT + COUNT( - CAST( NULL AS DECIMAL ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9738
SELECT DISTINCT + COUNT ( - CAST ( NULL AS REAL ) ) FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9739
SELECT DISTINCT - 47, COUNT( + 40 ) + + + CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
-47
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9739
SELECT DISTINCT - 47, COUNT ( + 40 ) + + + CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
-47
NULL

query II rowsort
SELECT ALL - 15, ( + 81 ) AS col1 FROM tab0 AS cor0
----
-15
81
-15
81
-15
81

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col1 + - 12 + - col1 / - col0 BETWEEN NULL AND - - 90
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT ALL + COUNT( DISTINCT - col0 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-9743
SELECT ALL + COUNT ( DISTINCT - col0 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT DISTINCT + col0 + + 3 FROM tab0
----
100
18
90

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 62 NOT IN ( 5, col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9746
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST( - + col0 AS SIGNED ) ) * + + 50 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9746
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( - + col0 AS INTEGER ) ) * + + 50 IS NOT NULL
----

query I rowsort
SELECT ALL ( 50 ) + + - 50 + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + col1 > NULL
----

query I rowsort
SELECT DISTINCT - col2 / - col0 * + + col0 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT col0 / + col0 = ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9749
SELECT + 38 DIV col1 FROM tab0 AS cor0
----
0
1
38

skipif mysql # not compatible
query I rowsort label-9749
SELECT + 38 / col1 FROM tab0 AS cor0
----
0
1
38

onlyif mysql # aggregate syntax: 
query II rowsort label-9750
SELECT 5 AS col1, + MIN( DISTINCT - - col2 ) * COUNT( * ) FROM tab0 AS cor0
----
5
30

skipif mysql # not compatible
query II rowsort label-9750
SELECT 5 AS col1, + MIN ( DISTINCT - - col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
5
30

query I rowsort
SELECT + 77 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 051bf10c50e061d74ad0a4d205a1c622

onlyif mysql # aggregate syntax: 
query II rowsort label-9752
SELECT - COUNT( * ) AS col0, COUNT( * ) + - 32 * AVG ( - + 12 ) / + 49 FROM tab2 WHERE NULL <= - 20 * - col1
----
0
NULL

skipif mysql # not compatible
query II rowsort label-9752
SELECT - COUNT ( * ) AS col0, COUNT ( * ) + - 32 * AVG ( - + 12 ) / + 49 FROM tab2 WHERE NULL <= - 20 * - col1
----
0
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 BETWEEN - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col0 + + col2 * col1 AS col1 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query I rowsort label-9755
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE col0 + - col0 + - - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9755
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE col0 + - col0 + - - col0 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9756
SELECT ( + col0 ) / - + CAST( NULL AS SIGNED ) + + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9756
SELECT ( + col0 ) / - + CAST ( NULL AS INTEGER ) + + 22 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9757
SELECT ALL - MIN( col1 ) FROM tab1 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9757
SELECT ALL - MIN ( col1 ) FROM tab1 cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9758
SELECT - + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) < - col0 + + 87
----
0

skipif mysql # not compatible
query I rowsort label-9758
SELECT - + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) < - col0 + + 87
----
0

query I rowsort
SELECT + 88 + 10 * + + col2 AS col2 FROM tab2 AS cor0
----
318
488
668

query III rowsort
SELECT * FROM tab1 WHERE + 4 >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9761
SELECT ALL 69 * - MIN( DISTINCT + - col0 ) + + - COUNT( * ) FROM tab1
----
6276

skipif mysql # not compatible
query I rowsort label-9761
SELECT ALL 69 * - MIN ( DISTINCT + - col0 ) + + - COUNT ( * ) FROM tab1
----
6276

query I rowsort
SELECT DISTINCT - 10 + - 39 FROM tab1
----
-49

onlyif mysql # aggregate syntax: 
query I rowsort label-9763
SELECT + 66 * COUNT( ALL + - col1 ) * + - 15 FROM tab1
----
-2970

skipif mysql # not compatible
query I rowsort label-9763
SELECT + 66 * COUNT ( ALL + - col1 ) * + - 15 FROM tab1
----
-2970

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col0 <= + 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9765
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE + CAST( NULL AS SIGNED ) + - - 1 * - 65 + - 5 BETWEEN col1 AND - col1 + - col2 * - col1 * + col1 - - col2
----

skipif mysql # not compatible
query I rowsort label-9765
SELECT DISTINCT col2 AS col1 FROM tab2 WHERE + CAST ( NULL AS INTEGER ) + - - 1 * - 65 + - 5 BETWEEN col1 AND - col1 + - col2 * - col1 * + col1 - - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9766
SELECT DISTINCT COUNT( * ) DIV + + SUM( DISTINCT + col2 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9766
SELECT DISTINCT COUNT ( * ) / + + SUM ( DISTINCT + col2 ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 45 col1, ( 52 ) - + 54 FROM tab2 AS cor0
----
-45
-2
-45
-2
-45
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT + 10 * - - COUNT( * ) AS col1 FROM tab0 cor0
----
30

skipif mysql # not compatible
query I rowsort label-9768
SELECT + 10 * - - COUNT ( * ) AS col1 FROM tab0 cor0
----
30

query I rowsort
SELECT ALL - 63 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9770
SELECT ALL + - COUNT( 22 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9770
SELECT ALL + - COUNT ( 22 ) FROM tab0 AS cor0
----
-3

query I rowsort
SELECT 16 FROM tab2 WHERE NOT NULL NOT IN ( col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9772
SELECT col2 + - 32 * CAST( - col1 * + col2 AS SIGNED ) AS col0 FROM tab1
----
102340
43104
9499

skipif mysql # not compatible
query I rowsort label-9772
SELECT col2 + - 32 * CAST ( - col1 * + col2 AS INTEGER ) AS col0 FROM tab1
----
102340
43104
9499

onlyif mysql # aggregate syntax: 
query I rowsort label-9773
SELECT DISTINCT ( COUNT( ALL - 11 ) ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9773
SELECT DISTINCT ( COUNT ( ALL - 11 ) ) AS col1 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9774
SELECT - COUNT( DISTINCT - col0 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9774
SELECT - COUNT ( DISTINCT - col0 ) col2 FROM tab0
----
-3

query I rowsort
SELECT - 87 + 85 AS col0 FROM tab0
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9776
SELECT CAST( - 83 AS SIGNED ) AS col2 FROM tab1
----
-83
-83
-83

skipif mysql # not compatible
query I rowsort label-9776
SELECT CAST ( - 83 AS INTEGER ) AS col2 FROM tab1
----
-83
-83
-83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9777
SELECT CAST( + 86 AS SIGNED ) AS col2 FROM tab2
----
86
86
86

skipif mysql # not compatible
query I rowsort label-9777
SELECT CAST ( + 86 AS INTEGER ) AS col2 FROM tab2
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-9778
SELECT ALL - MIN( DISTINCT col2 ) + 60 AS col1 FROM tab2
----
37

skipif mysql # not compatible
query I rowsort label-9778
SELECT ALL - MIN ( DISTINCT col2 ) + 60 AS col1 FROM tab2
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-9779
SELECT + COUNT( * ) FROM tab1 WHERE NULL <> ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-9779
SELECT + COUNT ( * ) FROM tab1 WHERE NULL <> ( NULL )
----
0

query I rowsort
SELECT DISTINCT + col1 - 24 * + col0 AS col1 FROM tab0
----
-2067
-2327
-279

query I rowsort
SELECT + col2 * col2 AS col0 FROM tab2 WHERE NULL <= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 <= - ( - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9783
SELECT ALL MIN( ALL + 25 ) AS col1 FROM tab2
----
25

skipif mysql # not compatible
query I rowsort label-9783
SELECT ALL MIN ( ALL + 25 ) AS col1 FROM tab2
----
25

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( + col2 + - 12 ) IS NULL
----

query I rowsort
SELECT - 22 AS col0 FROM tab2 WHERE NOT - col0 - - ( 37 + + 13 ) / - col0 IS NOT NULL
----

query I rowsort
SELECT col1 / 67 AS col1 FROM tab0 WHERE NOT NULL BETWEEN - 97 AND - col0 * + col2
----

query I rowsort
SELECT col1 - - col0 * + 58 AS col2 FROM tab1
----
2972
4935
5325

query I rowsort
SELECT ALL + 52 * + col0 FROM tab0
----
4524
5044
780

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT SUM( DISTINCT + col1 ) - 89 FROM tab2
----
106

skipif mysql # not compatible
query I rowsort label-9789
SELECT SUM ( DISTINCT + col1 ) - 89 FROM tab2
----
106

query I rowsort
SELECT col2 + - 20 * + col1 FROM tab2 AS cor0
----
-1282
-1500
-997

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9791
SELECT 27 * - 58 + COUNT( * ) DIV - COUNT( * ) FROM tab0 AS cor0
----
-1567

skipif mysql # not compatible
query I rowsort label-9791
SELECT 27 * - 58 + COUNT ( * ) / - COUNT ( * ) FROM tab0 AS cor0
----
-1567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9792
SELECT - CAST( 85 AS SIGNED ) + + COUNT( * ) * 79 FROM tab2 AS cor0
----
152

skipif mysql # not compatible
query I rowsort label-9792
SELECT - CAST ( 85 AS INTEGER ) + + COUNT ( * ) * 79 FROM tab2 AS cor0
----
152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 + + col2 col2 FROM tab0 cor0
----
130
41
78

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NOT 75 <> ( - col1 + 18 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col2 + + 19 )
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab2 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9797
SELECT COUNT( * ) * + 95 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
285

skipif mysql # not compatible
query I rowsort label-9797
SELECT COUNT ( * ) * + 95 AS col0 FROM tab2 WHERE - col2 IS NOT NULL
----
285

query I rowsort
SELECT - col0 FROM tab2 WHERE ( col0 ) IN ( + 61 / + col1 )
----

query III rowsort
SELECT * FROM tab1 WHERE ( 3 * col2 + 26 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 94 * 67 AS col0 FROM tab2 AS cor0
----
6298
6298
6298

query I rowsort
SELECT DISTINCT - - 90 * 2 AS col1 FROM tab2 AS cor0
----
180

query I rowsort
SELECT ALL + ( 61 ) AS col0 FROM tab0 AS cor0 WHERE - 60 + 7 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9803
SELECT ALL 22 * + MIN( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
506

skipif mysql # not compatible
query I rowsort label-9803
SELECT ALL 22 * + MIN ( col2 ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
506

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9804
SELECT ALL + CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-9804
SELECT ALL + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9805
SELECT - 84 - 27 DIV col2 FROM tab0 AS cor0
----
-84
-84
-86

skipif mysql # not compatible
query I rowsort label-9805
SELECT - 84 - 27 / col2 FROM tab0 AS cor0
----
-84
-84
-86

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9806
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( + col2 ) * 98 ) <= CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9806
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - ( + col2 ) * 98 ) <= CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - + col1 * - 4 AS col2 FROM tab0 AS cor0
----
324
4
84

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT DISTINCT COUNT( * ) * MAX( ALL - col2 ) FROM tab0
----
-30

skipif mysql # not compatible
query I rowsort label-9808
SELECT DISTINCT COUNT ( * ) * MAX ( ALL - col2 ) FROM tab0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9809
SELECT - 65 * - COUNT( * ) + COUNT( * ) AS col0 FROM tab2 WHERE NOT + ( + col0 ) - + 68 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9809
SELECT - 65 * - COUNT ( * ) + COUNT ( * ) AS col0 FROM tab2 WHERE NOT + ( + col0 ) - + 68 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 83 * + col1 FROM tab2
----
-4233
-5561
-6391

onlyif mysql # DIV for integer division: 
query I rowsort label-9811
SELECT DISTINCT 29 DIV - + 36 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9811
SELECT DISTINCT 29 / - + 36 AS col1 FROM tab1
----
0

query I rowsort
SELECT DISTINCT 43 * col2 FROM tab1
----
2537
2924
4128

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + ( col2 ) + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9814
SELECT DISTINCT - col2 DIV + + 26 + + col2 AS col0 FROM tab1 AS cor0
----
57
66
93

skipif mysql # not compatible
query I rowsort label-9814
SELECT DISTINCT - col2 / + + 26 + + col2 AS col0 FROM tab1 AS cor0
----
57
66
93

onlyif mysql # DIV for integer division: 
query I rowsort label-9815
SELECT ALL + - col1 DIV + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9815
SELECT ALL + - col1 / + col0 AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 66 + col1 FROM tab0 WHERE NOT - col2 IS NULL
----
147
67
87

onlyif mysql # aggregate syntax: 
query II rowsort label-9817
SELECT DISTINCT COUNT( * ), + MAX( ALL - col0 ) AS col0 FROM tab1
----
3
-51

skipif mysql # not compatible
query II rowsort label-9817
SELECT DISTINCT COUNT ( * ), + MAX ( ALL - col0 ) AS col0 FROM tab1
----
3
-51

query I rowsort
SELECT col0 * - - col1 AS col0 FROM tab0
----
1215
1827
97

query II rowsort
SELECT + - col2 AS col1, + 91 FROM tab0 AS cor0
----
-10
91
-47
91
-99
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9820
SELECT ALL - SUM( DISTINCT CAST( - + col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9820
SELECT ALL - SUM ( DISTINCT CAST ( - + col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-9821
SELECT ALL COUNT( * ) * + 70 AS col1 FROM tab1 AS cor0
----
210

skipif mysql # not compatible
query I rowsort label-9821
SELECT ALL COUNT ( * ) * + 70 AS col1 FROM tab1 AS cor0
----
210

query I rowsort
SELECT - 44 AS col1 FROM tab2 AS cor0 WHERE NOT - 65 <= 7
----

query I rowsort
SELECT ALL + - 2 * + - 4 AS col2 FROM tab1 cor0
----
8
8
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9824
SELECT + COUNT( * ) DIV 5 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 BETWEEN col1 AND ( + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-9824
SELECT + COUNT ( * ) / 5 AS col1 FROM tab2 AS cor0 WHERE NOT - col0 * - col1 BETWEEN col1 AND ( + col2 )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( col1 ) BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 * col1 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-425
-4277
-714

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 23 * 12 NOT IN ( - col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN col1 * 49 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9829
SELECT ALL - 30 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9829
SELECT ALL - 30 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT DISTINCT + col0 / 62 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9830
SELECT DISTINCT + col0 / 62 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9831
SELECT - 48 + COUNT( * ) + + + 74 AS col1 FROM tab2
----
29

skipif mysql # not compatible
query I rowsort label-9831
SELECT - 48 + COUNT ( * ) + + + 74 AS col1 FROM tab2
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9832
SELECT + 21 + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE - - 10 NOT IN ( 33 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9832
SELECT + 21 + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE - - 10 NOT IN ( 33 )
----
NULL
NULL
NULL

query I rowsort
SELECT - 15 + - - col0 FROM tab2
----
31
49
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + - col2, - 75 col2 FROM tab2
----
0
-75
0
-75
0
-75

query I rowsort
SELECT DISTINCT 2 + - 92 * + col1 AS col0 FROM tab1
----
-1286
-4322
-458

query I rowsort
SELECT - col2 * ( 59 ) * + col0 * 77 + 84 + col2 FROM tab0
----
-3202684
-3952316
-43626246

query I rowsort
SELECT ALL 34 + 67 AS col0 FROM tab0
----
101
101
101

query I rowsort
SELECT 21 * col2 FROM tab2 WHERE NULL = - - ( - - col2 ) / - 93
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9839
SELECT ALL - COUNT( * ) * + 15 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-9839
SELECT ALL - COUNT ( * ) * + 15 FROM tab1
----
-45

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9840
SELECT ALL COUNT( col1 ) * - COUNT( * ) + - 33 - - CAST( NULL AS DECIMAL ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9840
SELECT ALL COUNT ( col1 ) * - COUNT ( * ) + - 33 - - CAST ( NULL AS REAL ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9841
SELECT ALL + ( - - MIN( + + col1 ) ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-9841
SELECT ALL + ( - - MIN ( + + col1 ) ) FROM tab2 cor0
----
51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT ( col1 * - 71 BETWEEN NULL AND ( NULL ) ) )
----

query I rowsort
SELECT + col0 * - 40 / - col0 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9844
SELECT + 65 DIV + + 16 - + col0 AS col2 FROM tab1
----
-47
-81
-87

skipif mysql # not compatible
query I rowsort label-9844
SELECT + 65 / + + 16 - + col0 AS col2 FROM tab1
----
-47
-81
-87

query II rowsort
SELECT 92 - + col1 * - 82, - col1 - 28 AS col0 FROM tab1
----
1240
-42
3946
-75
502
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * + + 17 - - col1 col2 FROM tab0
----
868
888
948

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT 65 * - + MIN( col0 ) * - COUNT( * ) - - COUNT( * ) AS col0 FROM tab2
----
8973

skipif mysql # not compatible
query I rowsort label-9847
SELECT 65 * - + MIN ( col0 ) * - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab2
----
8973

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9848
SELECT DISTINCT - COUNT( * ) * + - 4 + - - CAST( ( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9848
SELECT DISTINCT - COUNT ( * ) * + - 4 + - - CAST ( ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE - 48 / - col1 * + col0 / + - col0 NOT BETWEEN ( col2 - + 78 ) AND - 61 * - col0 + + 17 / 39
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 * + - col0 * 1 - - 43 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9850
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 * + - col0 * 1 - - 43 ) IS NOT NULL
----
0

query I rowsort
SELECT 41 * col2 + col2 FROM tab2 AS cor0
----
1680
2436
966

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 = ( 29 + + - col1 + + col1 + + col2 * 59 )
----

query I rowsort
SELECT DISTINCT - ( - 43 ) AS col2 FROM tab0 AS cor0
----
43

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9854
SELECT DISTINCT 37 AS col2, - COUNT( * ) DIV - COUNT( * ) AS col2 FROM tab2 AS cor0
----
37
1

skipif mysql # not compatible
query II rowsort label-9854
SELECT DISTINCT 37 AS col2, - COUNT ( * ) / - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
37
1

onlyif mysql # aggregate syntax: 
query II rowsort label-9855
SELECT ( - 54 ) AS col0, COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-54
3

skipif mysql # not compatible
query II rowsort label-9855
SELECT ( - 54 ) AS col0, COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-54
3

query I rowsort
SELECT 87 * - col0 FROM tab0 AS cor0
----
-1305
-7569
-8439

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + col2 ) * - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2, col0 col0 FROM tab2
----
23
46
40
64
58
75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9859
SELECT - 18 AS col1, CAST( col0 AS SIGNED ) FROM tab0
----
-18
15
-18
87
-18
97

skipif mysql # not compatible
query II rowsort label-9859
SELECT - 18 AS col1, CAST ( col0 AS INTEGER ) FROM tab0
----
-18
15
-18
87
-18
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9860
SELECT DISTINCT + col2 col0 FROM tab2 WHERE NULL > ( - + 70 * - + CAST( NULL AS SIGNED ) - + col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9860
SELECT DISTINCT + col2 col0 FROM tab2 WHERE NULL > ( - + 70 * - + CAST ( NULL AS INTEGER ) - + col0 )
----

query II rowsort
SELECT + col2, 26 - col1 FROM tab2
----
23
-25
40
-51
58
-41

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 42 col0 FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query II rowsort label-9863
SELECT ALL + COUNT( * ) AS col0, - COUNT( * ) + MAX( 75 ) + - COUNT( * ) FROM tab2
----
3
69

skipif mysql # not compatible
query II rowsort label-9863
SELECT ALL + COUNT ( * ) AS col0, - COUNT ( * ) + MAX ( 75 ) + - COUNT ( * ) FROM tab2
----
3
69

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col0 ) * - 91 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( + - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9866
SELECT - MIN( ALL + - 80 ) AS col2 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-9866
SELECT - MIN ( ALL + - 80 ) AS col2 FROM tab2 AS cor0
----
80

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IS NOT NULL OR NOT col0 IS NOT NULL
----

query I rowsort
SELECT + 60 + + col2 + - - col2 * col0 FROM tab0 AS cor0 WHERE NOT 72 * - 17 IS NULL
----
812
940
9762

query I rowsort
SELECT - + col0 * - - col2 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9870
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 21 + + CAST( + col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-9870
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( 21 + + CAST ( + col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col0 * 18 + - 42 AS col0 FROM tab1
----
1488
1596
876

query II rowsort
SELECT ALL + col1 * 64 + - + col2 + - col2 * - 35 AS col0, + 38 FROM tab0
----
1684
38
3430
38
6782
38

query I rowsort
SELECT DISTINCT + 22 FROM tab1 WHERE NOT NULL IS NOT NULL
----
22

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 AS cor0 WHERE NOT NULL IN ( col0 + 56 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9875
SELECT - 67 + - SUM( col0 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-9875
SELECT - 67 + - SUM ( col0 ) FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9876
SELECT ALL 40 * - CAST( + col0 AS SIGNED ) FROM tab0 AS cor0
----
-3480
-3880
-600

skipif mysql # not compatible
query I rowsort label-9876
SELECT ALL 40 * - CAST ( + col0 AS INTEGER ) FROM tab0 AS cor0
----
-3480
-3880
-600

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT DISTINCT - + 3 * + 7 + + MAX( DISTINCT + - 81 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-102

skipif mysql # not compatible
query I rowsort label-9877
SELECT DISTINCT - + 3 * + 7 + + MAX ( DISTINCT + - 81 ) AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
-102

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - ( - ( - + 83 ) ) >= NULL )
----

query I rowsort
SELECT - 24 * col2 * - + col0 * + 10 * + 14 AS col2 FROM tab0 AS cor0
----
2368800
2923200
32266080

query I rowsort
SELECT 42 AS col1 FROM tab1 cor0
----
42
42
42

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9881
SELECT DISTINCT SUM( + + col0 ) DIV - SUM( + col1 ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9881
SELECT DISTINCT SUM ( + + col0 ) / - SUM ( + col1 ) AS col2 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT ALL col2 * ( - col1 ) + + - col1 FROM tab1
----
-1358
-300
-3243

onlyif mysql # DIV for integer division: 
query I rowsort label-9883
SELECT - col0 - + + 67 * 90 DIV - - col0 FROM tab1
----
-155
-157
-169

skipif mysql # not compatible
query I rowsort label-9883
SELECT - col0 - + + 67 * 90 / - - col0 FROM tab1
----
-155
-157
-169

query II rowsort
SELECT - 31 + 82 + - - col2 AS col0, - col0 FROM tab0
----
150
-97
61
-87
98
-15

query I rowsort
SELECT - 97 + col1 AS col0 FROM tab1
----
-50
-83
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - - 40 col2 FROM tab2 AS cor0
----
63
80
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9887
SELECT - CAST( - col2 AS SIGNED ) + + + col0 AS col0 FROM tab2 cor0
----
104
133
69

skipif mysql # not compatible
query I rowsort label-9887
SELECT - CAST ( - col2 AS INTEGER ) + + + col0 AS col0 FROM tab2 cor0
----
104
133
69

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT 63 + + - 46 DIV col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
60
63
63

skipif mysql # not compatible
query I rowsort label-9888
SELECT 63 + + - 46 / col0 FROM tab0 AS cor0 WHERE NULL IS NULL
----
60
63
63

query I rowsort
SELECT + + col2 FROM tab0 WHERE ( NULL ) NOT BETWEEN NULL AND + col0
----

query I rowsort
SELECT ALL + ( + col0 ) * + - 82 FROM tab1
----
-4182
-6970
-7462

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9891
SELECT DISTINCT - - SUM( ALL + - CAST( 52 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-9891
SELECT DISTINCT - - SUM ( ALL + - CAST ( 52 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
-156

query I rowsort
SELECT DISTINCT + - ( + + col2 ) FROM tab2 cor0
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 56 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9894
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 56 IS NULL
----
-3

query I rowsort
SELECT + ( + ( 71 ) ) AS col2 FROM tab1
----
71
71
71

onlyif mysql # DIV for integer division: 
query I rowsort label-9896
SELECT + 84 DIV + 3 FROM tab2
----
28
28
28

skipif mysql # not compatible
query I rowsort label-9896
SELECT + 84 / + 3 FROM tab2
----
28
28
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9897
SELECT CAST( + 68 AS SIGNED ) * - + col0 * col0 FROM tab1
----
-176868
-491300
-563108

skipif mysql # not compatible
query I rowsort label-9897
SELECT CAST ( + 68 AS INTEGER ) * - + col0 * col0 FROM tab1
----
-176868
-491300
-563108

onlyif mysql # DIV for integer division: 
query I rowsort label-9898
SELECT + col0 DIV - col0 col0 FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9898
SELECT + col0 / - col0 col0 FROM tab1
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-9899
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST( NULL AS DECIMAL ) + - ( + + col1 ) + + 21 * + CAST( col2 AS SIGNED ) / ( + col0 ) / CAST( col0 AS SIGNED ) = ( NULL )
----

skipif mysql # not compatible
query III rowsort label-9899
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 * - CAST ( NULL AS REAL ) + - ( + + col1 ) + + 21 * + CAST ( col2 AS INTEGER ) / ( + col0 ) / CAST ( col0 AS INTEGER ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( 93 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - ( + 87 ) AS col1 FROM tab1 AS cor0
----
-87
-87
-87

query III rowsort
SELECT * FROM tab2 WHERE ( - + 94 * + col1 * col1 * - 76 + - col2 + + - col0 ) BETWEEN NULL AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 + 48 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 41 * - col2 + 91 FROM tab2 cor0
----
1034
1731
2469

query I rowsort
SELECT ALL - - col1 * col2 * - + 38 + col1 + - - col2 FROM tab1 cor0
----
-11146
-121333
-50962

query II rowsort
SELECT col2 * 55 + - + col1 AS col2, col0 AS col0 FROM tab1 AS cor0 WHERE - col1 / + 45 IS NOT NULL
----
3240
85
3693
91
5266
51

query I rowsort
SELECT - ( + - 37 ) + - col2 FROM tab2 AS cor0
----
-21
-3
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9908
SELECT - 12 * + col2 * - - CAST( NULL AS SIGNED ) + + ( + - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9908
SELECT - 12 * + col2 * - - CAST ( NULL AS INTEGER ) + + ( + - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col2 + + - 2 FROM tab1 AS cor0
----
-61
-70
-98

query I rowsort
SELECT ALL + col2 + 12 * 57 + + col2 AS col2 FROM tab0
----
704
778
882

onlyif mysql # aggregate syntax: 
query I rowsort label-9911
SELECT - COUNT( * ) * - COUNT( * ) + + 45 col0 FROM tab0
----
54

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9911
SELECT - COUNT ( * ) * - COUNT ( * ) + + 45 col0 FROM tab0
----
54

query I rowsort
SELECT DISTINCT - col2 + + 3 + + - 98 * - 12 AS col2 FROM tab1
----
1083
1111
1120

query I rowsort
SELECT 5 + - - 70 * + - col1 * + col2 FROM tab0
----
-14695
-266485
-6925

query III rowsort
SELECT * FROM tab1 WHERE + col0 >= + col0 / - col2 + + ( - - col0 ) + - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 + + 33 FROM tab2
----
108
79
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9916
SELECT ALL col0 DIV col0 DIV - col2 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL col0 / col0 / - col2 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT + col2 * - + 72 * col2 FROM tab0
----
-159048
-705672
-7200

query I rowsort
SELECT ALL + + col1 - + 11 AS col1 FROM tab0 cor0
----
-10
10
70

query I rowsort
SELECT DISTINCT - + col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL >= col0 * - 59
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col2 BETWEEN NULL AND + + 93
----
97
1
99

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9922
SELECT + 10 AS col1, MAX( ALL - col1 ) * 97 AS col2 FROM tab0 AS cor0
----
10
-97

skipif mysql # not compatible
query II rowsort label-9922
SELECT + 10 AS col1, MAX ( ALL - col1 ) * 97 AS col2 FROM tab0 AS cor0
----
10
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9923
SELECT ALL + COUNT( ALL - - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9923
SELECT ALL + COUNT ( ALL - - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT - + ( + - 67 ) AS col2 FROM tab1 AS cor0
----
67
67
67

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9925
SELECT + 61 * MAX( ALL - - col2 ) - MAX( - + CAST( NULL AS SIGNED ) ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9925
SELECT + 61 * MAX ( ALL - - col2 ) - MAX ( - + CAST ( NULL AS INTEGER ) ) FROM tab0 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9926
SELECT ALL - + 81 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-243

skipif mysql # not compatible
query I rowsort label-9926
SELECT ALL - + 81 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-243

query III rowsort
SELECT * FROM tab2 WHERE NOT + + 85 < NULL
----

query I rowsort
SELECT - col1 * - + 59 * - - col1 FROM tab1
----
11564
130331
1475

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 54 + + - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 / + + col0 = - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + ( ( - + 29 ) ) AS col2 FROM tab2
----
-29

query I rowsort
SELECT DISTINCT ( + - ( - col0 ) ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT - - 97 AS col2 FROM tab1 cor0
----
97
97
97

query I rowsort
SELECT + - 98 AS col1 FROM tab0 cor0
----
-98
-98
-98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9935
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + + CAST( NULL AS SIGNED ) * + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9935
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col2 * + + CAST ( NULL AS INTEGER ) * + col0 IS NULL
----

query I rowsort
SELECT + - 4 + + + 84 + col0 AS col0 FROM tab1 AS cor0
----
131
165
171

query I rowsort
SELECT ALL col2 * - col2 - - col0 + col1 + - + 71 AS col2 FROM tab1 AS cor0
----
-3462
-4557
-9222

onlyif mysql # aggregate syntax: 
query II rowsort label-9938
SELECT - COUNT( * ) * + 23 + + 24, - COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-183
-9

skipif mysql # not compatible
query II rowsort label-9938
SELECT - COUNT ( * ) * + 23 + + 24, - COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-183
-9

query I rowsort
SELECT 70 + - - 82 AS col1 FROM tab1
----
152
152
152

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9940
SELECT ALL + 65 col2 FROM tab1 WHERE NOT ( NULL IN ( - ( - 43 ) - CAST( NULL AS DECIMAL ) ) )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9940
SELECT ALL + 65 col2 FROM tab1 WHERE NOT ( NULL IN ( - ( - 43 ) - CAST ( NULL AS REAL ) ) )
----

query I rowsort
SELECT ALL - col2 + 76 FROM tab1 cor0
----
-20
17
8

onlyif mysql # aggregate syntax: 
query I rowsort label-9942
SELECT ALL - MIN( - + 44 ) FROM tab1 AS cor0
----
44

skipif mysql # not compatible
query I rowsort label-9942
SELECT ALL - MIN ( - + 44 ) FROM tab1 AS cor0
----
44

query II rowsort
SELECT ALL - - 74 AS col2, 27 FROM tab2 AS cor0 WHERE NOT + col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9944
SELECT ALL - 44 + COUNT( * ) AS col0, 4 FROM tab2
----
-41
4

skipif mysql # not compatible
query II rowsort label-9944
SELECT ALL - 44 + COUNT ( * ) AS col0, 4 FROM tab2
----
-41
4

query I rowsort
SELECT ALL 38 + 0 FROM tab1
----
38
38
38

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9946
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 89 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9946
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 89 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9947
SELECT ALL + 17 + + - MIN( col2 ) AS col1 FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-9947
SELECT ALL + 17 + + - MIN ( col2 ) AS col1 FROM tab0
----
7

query I rowsort
SELECT DISTINCT + col0 + - - ( - 45 ) * - - col0 FROM tab2
----
-2024
-2816
-3300

query I rowsort
SELECT - 40 + col1 + - 92 FROM tab0 AS cor0
----
-111
-131
-51

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9950
SELECT - SUM( - - 46 ) / CAST( NULL AS SIGNED ) + - ( + - ( - MAX( ALL - 91 ) ) ) + - AVG ( DISTINCT 58 ) AS col2 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9950
SELECT - SUM ( - - 46 ) / CAST ( NULL AS INTEGER ) + - ( + - ( - MAX ( ALL - 91 ) ) ) + - AVG ( DISTINCT 58 ) AS col2 FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT - 64 - col0 + - 35 AS col0 FROM tab0 AS cor0
----
-114
-186
-196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 37 * 96 * - col1 + + - col2 + + col1 col2 FROM tab1 AS cor0
----
166923
17706
49646

onlyif mysql # aggregate syntax: 
query I rowsort label-9953
SELECT + 24 * - MAX( DISTINCT - 41 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
984

skipif mysql # not compatible
query I rowsort label-9953
SELECT + 24 * - MAX ( DISTINCT - 41 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
984

onlyif mysql # DIV for integer division: 
query I rowsort label-9954
SELECT DISTINCT + col2 * col1 DIV + col0 AS col0 FROM tab1
----
26
3
35

skipif mysql # not compatible
query I rowsort label-9954
SELECT DISTINCT + col2 * col1 / + col0 AS col0 FROM tab1
----
26
3
35

onlyif mysql # aggregate syntax: 
query I rowsort label-9955
SELECT DISTINCT - MAX( ALL - 30 ) FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-9955
SELECT DISTINCT - MAX ( ALL - 30 ) FROM tab2 AS cor0
----
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL = ( - col0 + col1 * + - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9957
SELECT MAX( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-9957
SELECT MAX ( ALL + - col2 ) AS col2 FROM tab1 AS cor0
----
-59

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE NOT - col2 * + - col0 - col0 IS NULL
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-9959
SELECT DISTINCT + COUNT( * ) AS col0, COUNT( * ) DIV 15 AS col2 FROM tab2
----
3
0

skipif mysql # not compatible
query II rowsort label-9959
SELECT DISTINCT + COUNT ( * ) AS col0, COUNT ( * ) / 15 AS col2 FROM tab2
----
3
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9960
SELECT ALL - ( + col0 ) DIV 95 * col1 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9960
SELECT ALL - ( + col0 ) / 95 * col1 AS col0 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9961
SELECT ALL + COUNT( DISTINCT - + col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9961
SELECT ALL + COUNT ( DISTINCT - + col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9962
SELECT ALL + COUNT( + + col1 ) * - COUNT( * ) AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-9962
SELECT ALL + COUNT ( + + col1 ) * - COUNT ( * ) AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-9
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9963
SELECT - - COUNT( * ) + + - 77 * - COUNT( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
702

skipif mysql # not compatible
query I rowsort label-9963
SELECT - - COUNT ( * ) + + - 77 * - COUNT ( * ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
702

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE NULL IN ( + col0, - col1 + col0 )
----

query I rowsort
SELECT ALL 76 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 30b8941a700cffd5b983116383bd42d5

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 / + col0 + col0 IS NOT NULL
----

query I rowsort
SELECT + 94 * + 5 FROM tab2
----
470
470
470

onlyif mysql # aggregate syntax: 
query I rowsort label-9968
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - 31 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9968
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - 31 IS NOT NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col2 * - - 74 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 43 * col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 AS cor0 WHERE NOT 42 IS NOT NULL
----

query I rowsort
SELECT + - col0 + - - col1 + - col0 FROM tab2 AS cor0
----
-41
-51
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-9973
SELECT DISTINCT - 78 + COUNT( * ) FROM tab0
----
-75

skipif mysql # not compatible
query I rowsort label-9973
SELECT DISTINCT - 78 + COUNT ( * ) FROM tab0
----
-75

query III rowsort
SELECT * FROM tab1 WHERE + col1 + col1 * + - col0 * col1 / - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + + col0 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9976
SELECT DISTINCT col0 * + CAST( - col1 AS SIGNED ) col0 FROM tab0
----
-1215
-1827
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9976
SELECT DISTINCT col0 * + CAST ( - col1 AS INTEGER ) col0 FROM tab0
----
-1215
-1827
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9977
SELECT - CAST( - - col0 AS SIGNED ) FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9977
SELECT - CAST ( - - col0 AS INTEGER ) FROM tab0
----
-15
-87
-97

query I rowsort
SELECT ALL - 83 + col0 FROM tab0
----
-68
14
4

query II rowsort
SELECT + + 66 AS col2, col2 - - - col2 - - - 77 - - col0 + - + col0 - col2 * + 91 + + + col2 AS col0 FROM tab0 AS cor0
----
66
-4307
66
-8987
66
-977

query I rowsort
SELECT 61 / 10 * - col1 + + ( - col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT ALL + 77 * + + col2 AS col1 FROM tab0 AS cor0
----
3619
7623
770

query I rowsort
SELECT DISTINCT col1 * 23 AS col2 FROM tab1
----
1081
115
322

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - 46 ) * - 1 col0 FROM tab1
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9984
SELECT * FROM tab1 WHERE NOT + ( - col2 ) NOT IN ( + col0, CAST( NULL AS SIGNED ) + - col2 )
----

skipif mysql # not compatible
query III rowsort label-9984
SELECT * FROM tab1 WHERE NOT + ( - col2 ) NOT IN ( + col0, CAST ( NULL AS INTEGER ) + - col2 )
----

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE ( NOT ( + col2 ) = NULL )
----

query I rowsort
SELECT - 37 FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9987
SELECT DISTINCT 69 * CAST( col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
1587
2760
4002

skipif mysql # not compatible
query I rowsort label-9987
SELECT DISTINCT 69 * CAST ( col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
1587
2760
4002

query I rowsort
SELECT - + 2 FROM tab2 AS cor0 WHERE NOT NULL <> + col0
----

query II rowsort
SELECT DISTINCT - col1 * + col2 + - 19 * 62, 19 AS col1 FROM tab2 AS cor0
----
-2351
19
-4258
19
-5064
19

query I rowsort
SELECT ALL - - col0 * - 17 FROM tab1 AS cor0
----
-1445
-1547
-867

onlyif mysql # DIV for integer division: 
query I rowsort label-9991
SELECT + col1 * - 5 * - col2 - + col1 DIV - - col0 - + ( col2 ) DIV - 19 AS col1 FROM tab2 AS cor0
----
15401
19433
5865

skipif mysql # not compatible
query I rowsort label-9991
SELECT + col1 * - 5 * - col2 - + col1 / - - col0 - + ( col2 ) / - 19 AS col1 FROM tab2 AS cor0
----
15401
19433
5865

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + 15 IN ( - col1, col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 / + - col0 col1 FROM tab1 WHERE + col1 * col2 < + 5
----

query I rowsort
SELECT ALL 6 + + col0 AS col0 FROM tab0
----
103
21
93

query II rowsort
SELECT DISTINCT - col2 * - 30 AS col2, + col2 AS col1 FROM tab2
----
1200
40
1740
58
690
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * - - 7 col2, - 49 FROM tab0 AS cor0
----
-105
-49
-609
-49
-679
-49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9997
SELECT ALL - CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE - col0 - + + col0 * - - 47 - - col2 > NULL
----

skipif mysql # not compatible
query I rowsort label-9997
SELECT ALL - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE - col0 - + + col0 * - - 47 - - col2 > NULL
----

query I rowsort
SELECT DISTINCT - 73 AS col2 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
-73

query I rowsort
SELECT + ( col2 ) * - - 25 + - + ( - - col0 ) AS col2 FROM tab0
----
1160
163
2378

