sqllogictest
Artifact Content
Not logged in

Artifact abe487cceb20f63fc36d3287a1cc5ae1d5843c92:


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: