sqllogictest
Artifact Content
Not logged in

Artifact 74b132e24bd90585c4942f7f00cce73b4fd68a85:


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)

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 71 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # DIV for integer division: 
query I rowsort label-1
SELECT ALL 32 DIV + col2 - + - ( col1 ) + - 73 * col1 FROM tab2 cor0
----
-3671
-4824
-5544

skipif mysql # not compatible
query I rowsort label-1
SELECT ALL 32 / + col2 - + - ( col1 ) + - 73 * col1 FROM tab2 cor0
----
-3671
-4824
-5544

query I rowsort
SELECT + - col2 + - 39 FROM tab0 cor0
----
-138
-49
-86

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

query I rowsort
SELECT DISTINCT + 33 - + 35 + + col0 * + 24 AS col1 FROM tab2 AS cor0
----
1102
1534
1798

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL = 75
----

query I rowsort
SELECT DISTINCT col1 / col1 AS col1 FROM tab0 cor0 WHERE ( col1 + col0 ) IN ( col2 )
----

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col1 NOT IN ( + - col1 * col1 )
----
51
67
77

query I rowsort
SELECT - 95 + col2 FROM tab2
----
-37
-55
-72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 - - - col2 col0 FROM tab2
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-10
SELECT + 45 DIV 23 FROM tab0 WHERE col0 + - + col1 + - 72 * ( CAST( NULL AS SIGNED ) * 26 ) IS NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-10
SELECT + 45 / 23 FROM tab0 WHERE col0 + - + col1 + - 72 * ( CAST ( NULL AS INTEGER ) * 26 ) IS NULL
----
1
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-11
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) * 42 * col1 BETWEEN - col2 AND 20
----

skipif mysql # not compatible
query III rowsort label-11
SELECT DISTINCT * FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) * 42 * col1 BETWEEN - col2 AND 20
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-14
SELECT - ( 24 ) * - 62 AS col0 FROM tab2 WHERE ( - + CAST( NULL AS SIGNED ) * - 51 + + CAST( + col0 AS SIGNED ) ) = NULL
----

skipif mysql # not compatible
query I rowsort label-14
SELECT - ( 24 ) * - 62 AS col0 FROM tab2 WHERE ( - + CAST ( NULL AS INTEGER ) * - 51 + + CAST ( + col0 AS INTEGER ) ) = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-15
SELECT COUNT( * ) DIV + 19 AS col2, - 72 + - COUNT( * ) FROM tab2 AS cor0
----
0
-75

skipif mysql # not compatible
query II rowsort label-15
SELECT COUNT ( * ) / + 19 AS col2, - 72 + - COUNT ( * ) FROM tab2 AS cor0
----
0
-75

query I rowsort
SELECT DISTINCT + + col1 + - 27 + - + col2 + - - col1 + + col1 FROM tab0 AS cor0
----
-123
169
26

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

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

query I rowsort
SELECT DISTINCT + 15 * - - col1 AS col1 FROM tab2
----
1005
1155
765

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 39 * - ( - - col0 ) > - + col1 + 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

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

query I rowsort
SELECT DISTINCT - + 92 * ( 87 ) - + col0 FROM tab2 AS cor0
----
-8050
-8068
-8079

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

skipif mysql # not compatible
query I rowsort label-23
SELECT DISTINCT - COUNT ( * ) / + 86 AS col2 FROM tab1 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 31 BETWEEN NULL AND - 16
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-25
SELECT ALL MAX( ALL + col2 ) FROM tab0 cor0 WHERE - 98 * - - 39 IN ( - col1 + + col0 + + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-25
SELECT ALL MAX ( ALL + col2 ) FROM tab0 cor0 WHERE - 98 * - - 39 IN ( - col1 + + col0 + + col2 )
----
NULL

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

query I rowsort
SELECT + - ( + - ( + + 19 ) ) FROM tab0 AS cor0
----
19
19
19

query II rowsort
SELECT - + col0 AS col0, col2 * - 42 FROM tab1 AS cor0
----
-51
-4032
-85
-2478
-91
-2856

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-29
SELECT ALL CAST( + col0 AS SIGNED ) AS col2, 44 * col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-29
SELECT ALL CAST ( + col0 AS INTEGER ) AS col2, 44 * col1 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col2 * + + 49 AS col1, col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < ( 21 )
----

query I rowsort
SELECT ALL 88 * + col0 FROM tab0
----
1320
7656
8536

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL > - - ( + col0 ) / 49
----

query I rowsort
SELECT ALL 72 + - 67 AS col2 FROM tab0 AS cor0
----
5
5
5

query I rowsort
SELECT - col0 * - 31 AS col0 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-36
SELECT + + ( - COUNT( * ) ) + SUM( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
192

skipif mysql # not compatible
query I rowsort label-36
SELECT + + ( - COUNT ( * ) ) + SUM ( DISTINCT col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
192

query II rowsort
SELECT - 5 AS col0, - col2 + col1 * col1 AS col1 FROM tab1 AS cor0
----
-5
-34
-5
100
-5
2141

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-38
SELECT - 50 / 64 * - - col2 + - + 94 - + + CAST( NULL AS SIGNED ) * + 12 + - + 82 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-38
SELECT - 50 / 64 * - - col2 + - + 94 - + + CAST ( NULL AS INTEGER ) * + 12 + - + 82 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-39
SELECT 97 + + COUNT( DISTINCT + - col2 ) FROM tab2
----
100

skipif mysql # not compatible
query I rowsort label-39
SELECT 97 + + COUNT ( DISTINCT + - col2 ) FROM tab2
----
100

query I rowsort
SELECT DISTINCT col0 + - col0 + + 82 FROM tab2
----
82

query I rowsort
SELECT DISTINCT ( - + 42 ) FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-42
SELECT ALL - 55 - 36 AS col2, COUNT( * ) + - + 78 * + MAX( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-91
-7563

skipif mysql # not compatible
query II rowsort label-42
SELECT ALL - 55 - 36 AS col2, COUNT ( * ) + - + 78 * + MAX ( DISTINCT + col0 ) AS col1 FROM tab0 AS cor0
----
-91
-7563

query I rowsort
SELECT DISTINCT col1 + ( + 52 ) FROM tab0 AS cor0
----
133
53
73

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

query I rowsort
SELECT ALL - 6 + 87 * + col0 FROM tab2 cor0
----
3996
5562
6519

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-46
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT - col0 + - 56 NOT IN ( + - CAST( + 32 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-46
SELECT ALL col0 FROM tab1 AS cor0 WHERE NOT - col0 + - 56 NOT IN ( + - CAST ( + 32 AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-47
SELECT 3 + col0 * col1 FROM tab1 AS cor0 WHERE ( ( ( - - col2 ) ) + + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-47
SELECT 3 + col0 * col1 FROM tab1 AS cor0 WHERE ( ( ( - - col2 ) ) + + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-48
SELECT CAST( NULL AS SIGNED ) - 42 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-48
SELECT CAST ( NULL AS INTEGER ) - 42 col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT 45 - 91 AS col2 FROM tab1
----
-46
-46
-46

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

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

query I rowsort
SELECT ALL 6 + - col0 - - col2 AS col0 FROM tab1
----
-17
-20
51

query II rowsort
SELECT DISTINCT ( - ( + col1 ) ), col0 FROM tab2
----
-51
46
-67
75
-77
64

query II rowsort
SELECT + col2 AS col1, - ( col1 ) AS col2 FROM tab1 AS cor0 WHERE NOT 59 >= NULL
----

query I rowsort
SELECT DISTINCT + - col0 * col2 AS col1 FROM tab1 cor0
----
-4896
-5015
-6188

onlyif mysql # aggregate syntax: 
query I rowsort label-55
SELECT ALL SUM( ALL + 33 ) FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-55
SELECT ALL SUM ( ALL + 33 ) FROM tab2
----
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> ( - col2 * - 57 )
----

query I rowsort
SELECT ALL + 87 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to fa0cdd86483844cda3bb806e032d5c64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( ( + col1 ) ) * 93 col1 FROM tab1 WHERE NOT NULL < + - col2 * - col0
----

query I rowsort
SELECT ALL - 59 * - 34 FROM tab1
----
2006
2006
2006

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-63
SELECT ALL MIN( DISTINCT + - 28 ) AS col2 FROM tab0
----
-28

skipif mysql # not compatible
query I rowsort label-63
SELECT ALL MIN ( DISTINCT + - 28 ) AS col2 FROM tab0
----
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-64
SELECT ALL - 75 * - COUNT( * ) col0 FROM tab2
----
225

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-64
SELECT ALL - 75 * - COUNT ( * ) col0 FROM tab2
----
225

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

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

skipif mysql # not compatible
query I rowsort label-66
SELECT DISTINCT + CAST ( NULL AS REAL ) + + col2 AS col1 FROM tab1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-67
SELECT DISTINCT * FROM tab2 WHERE CAST( + + col2 AS SIGNED ) - + col1 + - + 83 NOT IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-67
SELECT DISTINCT * FROM tab2 WHERE CAST ( + + col2 AS INTEGER ) - + col1 + - + 83 NOT IN ( + + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT COUNT( * ) + - 68 AS col2 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-69
SELECT COUNT ( * ) + - 68 AS col2 FROM tab0
----
-65

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

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

query I rowsort
SELECT DISTINCT + 49 + + - col1 FROM tab0
----
-32
28
48

onlyif mysql # aggregate syntax: 
query I rowsort label-72
SELECT + - MAX( DISTINCT col0 ) FROM tab0 WHERE col1 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-72
SELECT + - MAX ( DISTINCT col0 ) FROM tab0 WHERE col1 BETWEEN NULL AND NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT CAST( + + 64 AS SIGNED ) + + COUNT( * ) AS col2 FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-73
SELECT CAST ( + + 64 AS INTEGER ) + + COUNT ( * ) AS col2 FROM tab1
----
67

query I rowsort
SELECT ALL - - col0 FROM tab0 WHERE NOT + ( ( col1 ) ) - + col2 * - 61 IS NULL
----
15
87
97

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

query II rowsort
SELECT ALL + - col2 - + + col0 AS col2, + 43 AS col0 FROM tab0 AS cor0
----
-196
43
-62
43
-97
43

query I rowsort
SELECT + + 9 + - 24 AS col2 FROM tab0 cor0
----
-15
-15
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-78
SELECT - - CAST( - 7 AS SIGNED ) AS col0 FROM tab0 WHERE + 94 BETWEEN - + col1 AND + col2
----
-7

skipif mysql # not compatible
query I rowsort label-78
SELECT - - CAST ( - 7 AS INTEGER ) AS col0 FROM tab0 WHERE + 94 BETWEEN - + col1 AND + col2
----
-7

query III rowsort
SELECT * FROM tab1 WHERE NOT - 57 >= NULL
----

query I rowsort
SELECT DISTINCT col0 - - + col2 * 60 FROM tab0 WHERE NOT col2 NOT IN ( - - col1, col1 + - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-81
SELECT ALL 3 * + col2 DIV + ( + col0 ) FROM tab0
----
0
3
9

skipif mysql # not compatible
query I rowsort label-81
SELECT ALL 3 * + col2 / + ( + col0 ) FROM tab0
----
0
3
9

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

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

skipif mysql # not compatible
query I rowsort label-83
SELECT + ( + col1 ) / + col0 AS col2 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-84
SELECT DISTINCT CAST( NULL AS SIGNED ) FROM tab1 WHERE + col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-84
SELECT DISTINCT CAST ( NULL AS INTEGER ) FROM tab1 WHERE + col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT - ( COUNT( * ) ) * - - 81 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT - ( COUNT ( * ) ) * - - 81 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----
0

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

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

query I rowsort
SELECT + - ( - - col0 ) + - col1 AS col2 FROM tab2 AS cor0
----
-141
-142
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-88
SELECT - SUM( ALL + col0 ) + - - 32 + - - COUNT( * ) FROM tab0 cor0
----
-164

skipif mysql # not compatible
query I rowsort label-88
SELECT - SUM ( ALL + col0 ) + - - 32 + - - COUNT ( * ) FROM tab0 cor0
----
-164

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-89
SELECT ALL + + AVG ( DISTINCT - CAST( col1 AS SIGNED ) ) * - - CAST( NULL AS SIGNED ) col2, - 45 AS col1 FROM tab2 AS cor0
----
NULL
-45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-89
SELECT ALL + + AVG ( DISTINCT - CAST ( col1 AS INTEGER ) ) * - - CAST ( NULL AS INTEGER ) col2, - 45 AS col1 FROM tab2 AS cor0
----
NULL
-45

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

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

query I rowsort
SELECT - - col1 AS col2 FROM tab2 WHERE NULL = + 98 + - col1 + col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 51 = - col1
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 70 + + col1 col0 FROM tab1 AS cor0
----
117
75
84

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT + SUM( col0 ) + + 89 FROM tab2 cor0
----
274

skipif mysql # not compatible
query I rowsort label-96
SELECT + SUM ( col0 ) + + 89 FROM tab2 cor0
----
274

query I rowsort
SELECT DISTINCT col1 + - - col1 AS col1 FROM tab1 cor0
----
10
28
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-98
SELECT - + CAST( + + col0 AS SIGNED ) + - ( - ( + col2 ) ) AS col2 FROM tab1 cor0
----
-23
-26
45

skipif mysql # not compatible
query I rowsort label-98
SELECT - + CAST ( + + col0 AS INTEGER ) + - ( - ( + col2 ) ) AS col2 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT DISTINCT 92 FROM tab2 AS cor0 WHERE NULL <> - col1 + - + col1 * - + col2 AND col1 IS NOT NULL
----

query I rowsort
SELECT ALL + 52 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 7f4ae30893ab330784829711032ae599

query I rowsort
SELECT ALL + + col0 + + col2 - - col2 * 79 + + col0 * + - 21 FROM tab0 AS cor0
----
-940
3460
5980

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * 40 <= - + 24
----

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

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

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col2 BETWEEN NULL AND + 15
----
15
81
47
97
1
99

query II rowsort
SELECT 61, col1 FROM tab0
----
61
1
61
21
61
81

query II rowsort
SELECT + col1, + col0 AS col0 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-108
SELECT - COUNT( * ) col2, COUNT( * ) + - MAX( + col1 ) + 38 FROM tab1
----
-3
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-108
SELECT - COUNT ( * ) col2, COUNT ( * ) + - MAX ( + col1 ) + 38 FROM tab1
----
-3
-6

onlyif mysql # aggregate syntax: 
query II rowsort label-109
SELECT ALL 47, COUNT( * ) AS col2 FROM tab2
----
47
3

skipif mysql # not compatible
query II rowsort label-109
SELECT ALL 47, COUNT ( * ) AS col2 FROM tab2
----
47
3

query I rowsort
SELECT col0 * + 45 AS col1 FROM tab0
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query III rowsort label-111
SELECT DISTINCT COUNT( * ) AS col1, + 66, COUNT( * ) col0 FROM tab0
----
3
66
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-111
SELECT DISTINCT COUNT ( * ) AS col1, + 66, COUNT ( * ) col0 FROM tab0
----
3
66
3

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

query II rowsort
SELECT ALL - 83 AS col2, col0 - - - col2 FROM tab2
----
-83
17
-83
23
-83
24

onlyif mysql # aggregate syntax: 
query I rowsort label-114
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE 11 / + col2 * col1 > NULL
----
0

skipif mysql # not compatible
query I rowsort label-114
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE 11 / + col2 * col1 > NULL
----
0

query I rowsort
SELECT - col1 AS col1 FROM tab2 cor0 WHERE NOT ( col2 ) NOT BETWEEN NULL AND + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-116
SELECT ALL COUNT( * ) * - - 71 FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-116
SELECT ALL COUNT ( * ) * - - 71 FROM tab1
----
213

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + 25 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-118
SELECT DISTINCT + COUNT( DISTINCT + CAST( + col2 AS SIGNED ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-118
SELECT DISTINCT + COUNT ( DISTINCT + CAST ( + col2 AS INTEGER ) ) FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----
0

query I rowsort
SELECT DISTINCT - + 28 * + 11 AS col0 FROM tab0 AS cor0
----
-308

query I rowsort
SELECT DISTINCT 59 * + col1 FROM tab0 AS cor0
----
1239
4779
59

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

query I rowsort
SELECT 15 + - - 42 FROM tab0
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT 75 * + 14 + - MIN( + col2 ) AS col2 FROM tab2
----
1027

skipif mysql # not compatible
query I rowsort label-123
SELECT 75 * + 14 + - MIN ( + col2 ) AS col2 FROM tab2
----
1027

query I rowsort
SELECT - 37 + - - 67 + + 55 * + - col0 AS col2 FROM tab1
----
-2775
-4645
-4975

onlyif mysql # DIV for integer division: 
query I rowsort label-125
SELECT DISTINCT ( - col1 ) DIV + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-125
SELECT DISTINCT ( - col1 ) / + col2 AS col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-126
SELECT - 50 + - - 31 + + MAX( DISTINCT - - col2 ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-126
SELECT - 50 + - - 31 + + MAX ( DISTINCT - - col2 ) AS col0 FROM tab0
----
80

onlyif mysql # DIV for integer division: 
query I rowsort label-127
SELECT ALL + col1 DIV + + 96 * - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-127
SELECT ALL + col1 / + + 96 * - col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-128
SELECT ALL - 74, COUNT( * ) col0 FROM tab0
----
-74
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-128
SELECT ALL - 74, COUNT ( * ) col0 FROM tab0
----
-74
3

query I rowsort
SELECT + ( - 24 ) + + ( - - 55 ) FROM tab2
----
31
31
31

query I rowsort
SELECT DISTINCT + 53 + - + col0 FROM tab2
----
-11
-22
7

query I rowsort
SELECT - col1 + 68 AS col2 FROM tab0
----
-13
47
67

query II rowsort
SELECT DISTINCT - col0, + col1 + - 64 AS col1 FROM tab2
----
-46
-13
-64
13
-75
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-134
SELECT ALL + CAST( - col0 AS SIGNED ) * 91 - + col0 * 76 + - + 22 AS col1 FROM tab0
----
-14551
-16221
-2527

skipif mysql # not compatible
query I rowsort label-134
SELECT ALL + CAST ( - col0 AS INTEGER ) * 91 - + col0 * 76 + - + 22 AS col1 FROM tab0
----
-14551
-16221
-2527

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

onlyif mysql # aggregate syntax: 
query I rowsort label-136
SELECT MIN( ALL + + 18 ) FROM tab0 cor0
----
18

skipif mysql # not compatible
query I rowsort label-136
SELECT MIN ( ALL + + 18 ) FROM tab0 cor0
----
18

query I rowsort
SELECT ALL + col1 * + 49 * - + col0 FROM tab1 AS cor0
----
-20825
-209573
-34986

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

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

query I rowsort
SELECT 88 + ( - - col2 ) FROM tab1 AS cor0 WHERE NOT 29 * - col0 * 95 * 80 BETWEEN + + col2 * + - 15 * - col2 AND NULL
----
147
156
184

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( + col2 ) col1, + col1 * - col0 col0 FROM tab2 AS cor0
----
23
-2346
40
-4928
58
-5025

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-141
SELECT DISTINCT COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-141
SELECT DISTINCT COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) FROM tab2
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 68 + - - col1 * - - col0 * col0 IS NULL
----

query I rowsort
SELECT + 20 * - - 4 - - col2 AS col1 FROM tab2 AS cor0
----
103
120
138

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab2 cor0 WHERE NULL < NULL
----

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

query I rowsort
SELECT + + col1 + 60 FROM tab1 AS cor0
----
107
65
74

query I rowsort
SELECT - ( 75 ) FROM tab0 AS cor0
----
-75
-75
-75

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

query I rowsort
SELECT 32 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN NULL AND NULL
----

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

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

query I rowsort
SELECT ALL 18 + ( + - 83 ) FROM tab2 AS cor0
----
-65
-65
-65

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-153
SELECT DISTINCT + - 57 + + CAST( + 17 AS SIGNED ) * + 94 * + 46 col2 FROM tab1 AS cor0
----
73451

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-153
SELECT DISTINCT + - 57 + + CAST ( + 17 AS INTEGER ) * + 94 * + 46 col2 FROM tab1 AS cor0
----
73451

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-156
SELECT ALL + 67 * - ( - + COUNT( + 62 ) ) AS col1 FROM tab1 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-156
SELECT ALL + 67 * - ( - + COUNT ( + 62 ) ) AS col1 FROM tab1 AS cor0
----
201

query I rowsort
SELECT - col2 * + + 14 AS col0 FROM tab2
----
-322
-560
-812

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab1 WHERE NOT - - 86 * - 35 IS NULL
----
14
47
5

query I rowsort
SELECT + 81 * col0 - + col0 FROM tab2
----
3680
5120
6000

query I rowsort
SELECT + col1 - + 90 AS col1 FROM tab0
----
-69
-89
-9

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-161
SELECT DISTINCT - col1 * col0 + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) / - col2 AS col1, - 70 AS col2 FROM tab0
----
NULL
-70

skipif mysql # not compatible
query II rowsort label-161
SELECT DISTINCT - col1 * col0 + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) / - col2 AS col1, - 70 AS col2 FROM tab0
----
NULL
-70

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-162
SELECT 5 DIV COUNT( * ) - + COUNT( * ) AS col2 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-162
SELECT 5 / COUNT ( * ) - + COUNT ( * ) AS col2 FROM tab1
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT + COUNT( ALL + 56 ) + + COUNT( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-163
SELECT + COUNT ( ALL + 56 ) + + COUNT ( DISTINCT + col0 ) AS col0 FROM tab2 AS cor0
----
6

onlyif mysql # DIV for integer division: 
query I rowsort label-164
SELECT ALL + 26 DIV - 60 + - col2 + + + col0 - - 82 FROM tab1 AS cor0
----
105
108
37

skipif mysql # not compatible
query I rowsort label-164
SELECT ALL + 26 / - 60 + - col2 + + + col0 - - 82 FROM tab1 AS cor0
----
105
108
37

query I rowsort
SELECT DISTINCT + 63 * + col2 * col1 - ( + ( + - col2 ) ) FROM tab0 AS cor0
----
13240
239888
6336

query I rowsort
SELECT ALL - col0 * 86 FROM tab2
----
-3956
-5504
-6450

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 4 <= NULL
----

query I rowsort
SELECT - col0 * - - 14 FROM tab1
----
-1190
-1274
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-169
SELECT - - COUNT( * ) * ( - 30 ) * + 15 FROM tab0 AS cor0
----
-1350

skipif mysql # not compatible
query I rowsort label-169
SELECT - - COUNT ( * ) * ( - 30 ) * + 15 FROM tab0 AS cor0
----
-1350

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

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

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

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

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

skipif mysql # not compatible
query III rowsort label-172
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - CAST ( NULL AS INTEGER ) >= NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-175
SELECT - CAST( + col1 AS SIGNED ) AS col2 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-175
SELECT - CAST ( + col1 AS INTEGER ) AS col2 FROM tab2
----
-51
-67
-77

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE - ( + + ( + col2 ) ) IN ( 54 - - + col0, col0 * + - col1, col1 * 74 + + col1 + - col2 * - - col2 * + col2 + + 96 + + - ( + col1 ), + - 98 )
----

query II rowsort
SELECT - ( - col0 ), col1 FROM tab2
----
46
51
64
77
75
67

query I rowsort
SELECT ALL + 10 * - col2 * + + col2 FROM tab0
----
-1000
-22090
-98010

query I rowsort
SELECT DISTINCT 5 * - - col0 FROM tab2
----
230
320
375

query I rowsort
SELECT DISTINCT col1 - + + 84 AS col2 FROM tab2 WHERE NOT col0 * - col2 + - col1 IS NULL
----
-17
-33
-7

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

query II rowsort
SELECT col1 AS col1, col1 + - col2 AS col2 FROM tab2
----
51
28
67
9
77
37

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT COUNT( - 75 ) col0 FROM tab2
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-183
SELECT COUNT ( - 75 ) col0 FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-184
SELECT DISTINCT - MIN( DISTINCT - 23 ) + - 27 col1 FROM tab2
----
-4

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-184
SELECT DISTINCT - MIN ( DISTINCT - 23 ) + - 27 col1 FROM tab2
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-185
SELECT ALL + 53 FROM tab2 AS cor0 WHERE + 93 - - col1 >= + + ( CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-185
SELECT ALL + 53 FROM tab2 AS cor0 WHERE + 93 - - col1 >= + + ( CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-186
SELECT SUM( + col0 ) + - 2 + - - ( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0 WHERE + col1 IS NOT NULL
----
NULL

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 AS cor0 WHERE + col0 + - 56 + + col2 < ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col1 <> NULL
----

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

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

query I rowsort
SELECT ALL + col2 * col1 - 31 AS col2 FROM tab2
----
1142
3049
3855

onlyif mysql # DIV for integer division: 
query I rowsort label-191
SELECT 90 + col1 DIV 92 FROM tab1
----
90
90
90

skipif mysql # not compatible
query I rowsort label-191
SELECT 90 + col1 / 92 FROM tab1
----
90
90
90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-193
SELECT ALL + 98 + - - MIN( DISTINCT - ( - col1 ) ) FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-193
SELECT ALL + 98 + - - MIN ( DISTINCT - ( - col1 ) ) FROM tab0 AS cor0
----
99

query I rowsort
SELECT + col1 - + 51 + - col1 + 42 * + 59 * - 30 AS col2 FROM tab0 AS cor0
----
-74391
-74391
-74391

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 16 IS NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

query I rowsort
SELECT DISTINCT - col0 * + - 71 AS col1 FROM tab0
----
1065
6177
6887

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-198
SELECT DISTINCT - CAST( - col2 AS SIGNED ) * + col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

skipif mysql # not compatible
query II rowsort label-198
SELECT DISTINCT - CAST ( - col2 AS INTEGER ) * + col1 AS col2, col2 AS col0 FROM tab2 AS cor0
----
1173
23
3080
40
3886
58

onlyif mysql # DIV for integer division: 
query II rowsort label-199
SELECT - 78 * + col0 - - col1 AS col0, + col1 FROM tab2 AS cor0 WHERE NOT col1 DIV + 93 IN ( 38 + - 36, - col2 DIV 93 )
----

skipif mysql # not compatible
query II rowsort label-199
SELECT - 78 * + col0 - - col1 AS col0, + col1 FROM tab2 AS cor0 WHERE NOT col1 / + 93 IN ( 38 + - 36, - col2 / 93 )
----

query II rowsort
SELECT - 25 * col0 AS col1, col1 AS col2 FROM tab2 cor0
----
-1150
51
-1600
77
-1875
67

query I rowsort
SELECT - - 84 * - col0 + - col0 + + + 32 + - - 91 + 92 FROM tab2 AS cor0
----
-3695
-5225
-6160

query I rowsort
SELECT DISTINCT + 71 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-203
SELECT + + COUNT( * ) * + 91 FROM tab2 cor0
----
273

skipif mysql # not compatible
query I rowsort label-203
SELECT + + COUNT ( * ) * + 91 FROM tab2 cor0
----
273

query I rowsort
SELECT + + ( + - ( - col1 ) ) AS col2 FROM tab1 AS cor0
----
14
47
5

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

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

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

query II rowsort
SELECT ALL col1 AS col1, + ( 62 ) * - col2 * - - col0 AS col0 FROM tab0
----
1
-595386
21
-53940
81
-43710

query I rowsort
SELECT DISTINCT col0 * - ( 15 ) * + - 73 FROM tab2
----
50370
70080
82125

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-210
SELECT ALL - SUM( DISTINCT - col0 ) + - - COUNT( * ) + - 93 AS col2 FROM tab0
----
109

skipif mysql # not compatible
query I rowsort label-210
SELECT ALL - SUM ( DISTINCT - col0 ) + - - COUNT ( * ) + - 93 AS col2 FROM tab0
----
109

query III rowsort
SELECT ALL * FROM tab0 WHERE + + col0 + - col2 - + + 86 - + col1 BETWEEN ( NULL ) AND NULL
----

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

query I rowsort
SELECT DISTINCT AVG ( + - ( - - 2 ) ) FROM tab2 AS cor0 WHERE NOT 91 IS NOT NULL
----
NULL

query I rowsort
SELECT + 87 + + 85 FROM tab0 AS cor0
----
172
172
172

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

query II rowsort
SELECT ALL - + col1 - - col2 AS col1, - 45 FROM tab0 AS cor0
----
-11
-45
-34
-45
98
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-217
SELECT col2 - - + col2 DIV + col1 FROM tab1
----
102
69
70

skipif mysql # not compatible
query I rowsort label-217
SELECT col2 - - + col2 / + col1 FROM tab1
----
102
69
70

onlyif mysql # aggregate syntax: 
query I rowsort label-218
SELECT ALL + SUM( + 2 ) AS col1 FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-218
SELECT ALL + SUM ( + 2 ) AS col1 FROM tab2
----
6

query I rowsort
SELECT col2 - - - 9 AS col2 FROM tab2
----
14
31
49

query I rowsort
SELECT DISTINCT + col2 FROM tab1 WHERE NOT ( NOT ( NOT col1 * - - 47 IN ( col2 / - col0, ( - col2 ) + col2 + 59 ) ) )
----
59
68
96

query I rowsort
SELECT DISTINCT - col0 + + col1 + + 36 + col2 * + col1 * - + 77 AS col2 FROM tab2
----
-237111
-299194
-90280

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT - COUNT( - 3 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-226
SELECT - COUNT ( - 3 ) FROM tab2
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - 5 * - 66 col2 FROM tab2
----
13200
19140
7590

query I rowsort
SELECT 53 * - col2 * + 13 * - + 88 FROM tab0
----
2849704
6002568
606320

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT ALL + COUNT( * ) * 14 AS col2 FROM tab1
----
42

skipif mysql # not compatible
query I rowsort label-229
SELECT ALL + COUNT ( * ) * 14 AS col2 FROM tab1
----
42

onlyif mysql # aggregate syntax: 
query II rowsort label-230
SELECT DISTINCT + + 69, COUNT( * ) AS col0 FROM tab1 AS cor0
----
69
3

skipif mysql # not compatible
query II rowsort label-230
SELECT DISTINCT + + 69, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
69
3

onlyif mysql # aggregate syntax: 
query I rowsort label-231
SELECT DISTINCT - 98 * AVG ( 79 ) + + COUNT( * ) * COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-231
SELECT DISTINCT - 98 * AVG ( 79 ) + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE + col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-232
SELECT ALL + MAX( - 21 ) FROM tab0 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-232
SELECT ALL + MAX ( - 21 ) FROM tab0 AS cor0
----
-21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 * - + 34 * + + col1 col0 FROM tab1 AS cor0
----
-14756
-49538
-5270

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-235
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-235
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT MAX( DISTINCT 11 ) AS col2 FROM tab0 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-236
SELECT MAX ( DISTINCT 11 ) AS col2 FROM tab0 AS cor0
----
11

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-237
SELECT + 33 * col2 AS col1, col2 * - + CAST( NULL AS SIGNED ) col2 FROM tab1
----
1947
NULL
2244
NULL
3168
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-237
SELECT + 33 * col2 AS col1, col2 * - + CAST ( NULL AS INTEGER ) col2 FROM tab1
----
1947
NULL
2244
NULL
3168
NULL

query II rowsort
SELECT ( - + ( - col0 ) ), + col1 AS col2 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-239
SELECT MIN( DISTINCT - 69 ) AS col1 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-239
SELECT MIN ( DISTINCT - 69 ) AS col1 FROM tab1
----
-69

query I rowsort
SELECT ALL - col1 * + - 93 * - - 68 * - 13 + + - col0 FROM tab2
----
-4192858
-5508279
-6330388

onlyif mysql # DIV for integer division: 
query I rowsort label-241
SELECT DISTINCT - col1 DIV + 79 + + col0 AS col2 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-241
SELECT DISTINCT - col1 / + 79 + + col0 AS col2 FROM tab2
----
46
64
75

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-243
SELECT ALL MIN( 31 ) DIV - COUNT( * ) + - COUNT( * ) AS col1 FROM tab2
----
-13

skipif mysql # not compatible
query I rowsort label-243
SELECT ALL MIN ( 31 ) / - COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab2
----
-13

query I rowsort
SELECT 16 + + ( + - col0 ) - + col2 AS col0 FROM tab1
----
-128
-131
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-245
SELECT DISTINCT 44 + COUNT( * ) AS col2 FROM tab0 cor0
----
47

skipif mysql # not compatible
query I rowsort label-245
SELECT DISTINCT 44 + COUNT ( * ) AS col2 FROM tab0 cor0
----
47

query I rowsort
SELECT DISTINCT - col1 FROM tab2 AS cor0 WHERE - 81 < - - col1
----
-51
-67
-77

query II rowsort
SELECT + - 94 * col1 AS col2, - col2 FROM tab0 AS cor0
----
-1974
-10
-7614
-47
-94
-99

query I rowsort
SELECT DISTINCT - col0 + - - col2 AS col0 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-17
-23
-24

onlyif mysql # DIV for integer division: 
query I rowsort label-249
SELECT DISTINCT + + col0 + + col2 + 72 * col1 DIV col2 FROM tab2 AS cor0
----
216
228
242

skipif mysql # not compatible
query I rowsort label-249
SELECT DISTINCT + + col0 + + col2 + 72 * col1 / col2 FROM tab2 AS cor0
----
216
228
242

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

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT DISTINCT + 4 + - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-251
SELECT DISTINCT + 4 + - COUNT ( * ) FROM tab1 AS cor0
----
1

query II rowsort
SELECT - 6, + col1 FROM tab2 AS cor0 WHERE NULL < col0 + + col0
----

query I rowsort
SELECT + + 49 + + - col2 FROM tab0 AS cor0
----
-50
2
39

onlyif mysql # aggregate syntax: 
query I rowsort label-254
SELECT ALL COUNT( * ) - COUNT( * ) * + ( - + COUNT( * ) ) * 62 * MIN( col0 ) FROM tab2 cor0
----
25671

skipif mysql # not compatible
query I rowsort label-254
SELECT ALL COUNT ( * ) - COUNT ( * ) * + ( - + COUNT ( * ) ) * 62 * MIN ( col0 ) FROM tab2 cor0
----
25671

query I rowsort
SELECT 76 + - col2 FROM tab1 cor0
----
-20
17
8

query I rowsort
SELECT DISTINCT + - 73 + 56 AS col0 FROM tab0 cor0
----
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-257
SELECT DISTINCT - - 74 - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-257
SELECT DISTINCT - - 74 - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
77

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-259
SELECT ALL ( + CAST( NULL AS DECIMAL ) ) FROM tab1 cor0 WHERE NOT - col0 + - + 32 + + col2 * - + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-259
SELECT ALL ( + CAST ( NULL AS REAL ) ) FROM tab1 cor0 WHERE NOT - col0 + - + 32 + + col2 * - + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-260
SELECT - COUNT( * ) + 5 + ( + 53 ) + 71 FROM tab1 cor0
----
126

skipif mysql # not compatible
query I rowsort label-260
SELECT - COUNT ( * ) + 5 + ( + 53 ) + 71 FROM tab1 cor0
----
126

onlyif mysql # DIV for integer division: 
query II rowsort label-261
SELECT 49 + - + ( - col0 ) DIV col0 AS col2, + col0 FROM tab0
----
50
15
50
87
50
97

skipif mysql # not compatible
query II rowsort label-261
SELECT 49 + - + ( - col0 ) / col0 AS col2, + col0 FROM tab0
----
50
15
50
87
50
97

query I rowsort
SELECT - col1 + + + ( col2 ) - + 11 * + col0 AS col0 FROM tab1
----
-479
-881
-980

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

query I rowsort
SELECT DISTINCT - col1 * - - col1 - - - col2 - col1 AS col1 FROM tab0
----
-101
-472
-6689

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-265
SELECT ALL col0 * - CAST( NULL AS SIGNED ) * - - 10 FROM tab0
----
NULL
NULL
NULL

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * - + col1 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

skipif mysql # not compatible
query I rowsort label-268
SELECT - col0 AS col0 FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - col2 NOT BETWEEN ( + 1 ) - + 86 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-269
SELECT ALL MAX( + + CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-269
SELECT ALL MAX ( + + CAST ( NULL AS REAL ) ) AS col2 FROM tab0
----
NULL

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

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

query I rowsort
SELECT + 66 * + - col1 FROM tab2 AS cor0
----
-3366
-4422
-5082

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT + - SUM( ALL - 46 ) FROM tab0 AS cor0
----
138

skipif mysql # not compatible
query I rowsort label-272
SELECT + - SUM ( ALL - 46 ) FROM tab0 AS cor0
----
138

query I rowsort
SELECT + 71 * + - 28 FROM tab2 AS cor0
----
-1988
-1988
-1988

onlyif mysql # aggregate syntax: 
query I rowsort label-274
SELECT COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT - col1 * ( - col1 ) * + - 64 < 88
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-274
SELECT COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - col1 * ( - col1 ) * + - 64 < 88
----
0

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 83 + - + 95 NOT IN ( + - ( - col0 ), + col0, + 59 )
----

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

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

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

skipif mysql # not compatible
query I rowsort label-277
SELECT + COUNT ( * ) * + - 69 + CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + + 57 * col2 AS col2 FROM tab1 cor0
----
3363
3876
5472

query II rowsort
SELECT DISTINCT + col1 AS col0, 97 FROM tab2
----
51
97
67
97
77
97

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE - + col0 * ( + col2 ) * + 4 + - col2 - - 0 - - + 2 IS NULL
----

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

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

query I rowsort
SELECT ALL ( + col0 ) * - 64 AS col1 FROM tab2
----
-2944
-4096
-4800

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-284
SELECT + + MIN( ALL + 34 ) AS col0, 39 AS col2 FROM tab2 AS cor0
----
34
39

skipif mysql # not compatible
query II rowsort label-284
SELECT + + MIN ( ALL + 34 ) AS col0, 39 AS col2 FROM tab2 AS cor0
----
34
39

query I rowsort
SELECT DISTINCT 83 * - 57 * - col1 FROM tab0 AS cor0
----
383211
4731
99351

onlyif mysql # aggregate syntax: 
query I rowsort label-286
SELECT 27 - COUNT( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
18

skipif mysql # not compatible
query I rowsort label-286
SELECT 27 - COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab2 cor1
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-287
SELECT + + col1 * - ( 89 ) + col1 / + 23 col1 FROM tab2 cor0 WHERE CAST( + 44 AS SIGNED ) * - - 28 < + - 42 + col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-287
SELECT + + col1 * - ( 89 ) + col1 / + 23 col1 FROM tab2 cor0 WHERE CAST ( + 44 AS INTEGER ) * - - 28 < + - 42 + col2
----

query II rowsort
SELECT - col2 - + - 19 AS col1, col1 + + col2 AS col1 FROM tab0 AS cor0
----
-28
128
-80
100
9
31

onlyif mysql # DIV for integer division: 
query I rowsort label-289
SELECT ALL - ( + 61 ) DIV col2 + + 96 FROM tab1 AS cor0
----
95
96
96

skipif mysql # not compatible
query I rowsort label-289
SELECT ALL - ( + 61 ) / col2 + + 96 FROM tab1 AS cor0
----
95
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-290
SELECT + COUNT( * ) - 73 FROM tab1
----
-70

skipif mysql # not compatible
query I rowsort label-290
SELECT + COUNT ( * ) - 73 FROM tab1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT DISTINCT - col0 - 16 DIV + col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-291
SELECT DISTINCT - col0 - 16 / + col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - 96 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 42 * + - 95 * + - 17 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * + 17 AS col2 FROM tab2
----
391
680
986

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * + - col1 col2 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT DISTINCT col0 * + 27 FROM tab2
----
1242
1728
2025

query I rowsort
SELECT - col0 * 89 FROM tab1
----
-4539
-7565
-8099

query I rowsort
SELECT + + col0 * col0 + col1 AS col0 FROM tab0 AS cor0
----
306
7590
9410

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 51 * + 29 <= NULL
----

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

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

query I rowsort
SELECT ALL - 75 AS col1 FROM tab0 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-303
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-303
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0, tab0 AS cor0
----
9

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-305
SELECT + + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( + 8, CAST( NULL AS SIGNED ), 57 + - 77 )
----
0

skipif mysql # not compatible
query I rowsort label-305
SELECT + + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT NULL IN ( + 8, CAST ( NULL AS INTEGER ), 57 + - 77 )
----
0

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

skipif mysql # not compatible
query III rowsort label-306
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 + + + CAST ( NULL AS INTEGER ) / 38 * - + 93 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

skipif mysql # not compatible
query I rowsort label-307
SELECT DISTINCT + 29 * - COUNT ( * ) FROM tab1
----
-87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 86 + + - 28 col0 FROM tab2
----
58
58
58

onlyif mysql # aggregate syntax: 
query I rowsort label-309
SELECT ALL SUM( ALL ( - 89 ) ) FROM tab0
----
-267

skipif mysql # not compatible
query I rowsort label-309
SELECT ALL SUM ( ALL ( - 89 ) ) FROM tab0
----
-267

query I rowsort
SELECT col2 * - - col1 + col2 FROM tab2
----
1196
3120
3944

query II rowsort
SELECT DISTINCT - 39 AS col1, - col1 FROM tab0
----
-39
-1
-39
-21
-39
-81

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

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

query I rowsort
SELECT - col1 + - 58 FROM tab0
----
-139
-59
-79

query I rowsort
SELECT - ( - + 65 ) + col0 AS col1 FROM tab1
----
116
150
156

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 > + col2
----

query I rowsort
SELECT ALL + - 59 + col0 FROM tab2 AS cor0
----
-13
16
5

query I rowsort
SELECT DISTINCT 46 - - ( - + 49 ) AS col0 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-318
SELECT 3 * + - 90 * + CAST( - col1 AS SIGNED ) FROM tab2
----
13770
18090
20790

skipif mysql # not compatible
query I rowsort label-318
SELECT 3 * + - 90 * + CAST ( - col1 AS INTEGER ) FROM tab2
----
13770
18090
20790

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 NOT BETWEEN - + 90 * + 94 AND NULL
----

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + ( + col0 ) * + col2 + 93 + - 4 * 74 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + col1 AS col2, 28 FROM tab1 cor0
----
14
28
47
28
5
28

query I rowsort
SELECT ALL - 64 + - - col1 FROM tab0 AS cor0
----
-43
-63
17

query I rowsort
SELECT DISTINCT ( + 17 ) + + 22 * - - col2 AS col1 FROM tab0 AS cor0
----
1051
2195
237

onlyif mysql # aggregate syntax: 
query I rowsort label-325
SELECT DISTINCT + + 96 * + COUNT( * ) FROM tab2 AS cor0 WHERE col0 = - ( - col1 ) / 90 + + 24
----
0

skipif mysql # not compatible
query I rowsort label-325
SELECT DISTINCT + + 96 * + COUNT ( * ) FROM tab2 AS cor0 WHERE col0 = - ( - col1 ) / 90 + + 24
----
0

query I rowsort
SELECT ALL - 35 - + 7 FROM tab2 AS cor0
----
-42
-42
-42

query I rowsort
SELECT ALL - 95 + - 63 FROM tab0 AS cor0
----
-158
-158
-158

query II rowsort
SELECT - col1 + col2 AS col0, - col0 AS col0 FROM tab2 AS cor0
----
-28
-46
-37
-64
-9
-75

query II rowsort
SELECT + col0 + + 45 AS col2, col0 FROM tab0 AS cor0
----
132
87
142
97
60
15

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT SUM( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-330
SELECT DISTINCT SUM ( ALL + + col2 ) AS col0 FROM tab1 AS cor0
----
223

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

query II rowsort
SELECT + col1 AS col0, + 99 + - - col1 FROM tab1 cor0
----
14
113
47
146
5
104

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

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

query I rowsort
SELECT 68 AS col2 FROM tab1 WHERE NOT - col0 + - - 1 >= - 72
----
68
68

query II rowsort
SELECT DISTINCT + 45 * - col2 AS col2, col2 FROM tab0
----
-2115
47
-4455
99
-450
10

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

onlyif mysql # aggregate syntax: 
query II rowsort label-337
SELECT COUNT( * ) * COUNT( * ) AS col2, MIN( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
9
-75

skipif mysql # not compatible
query II rowsort label-337
SELECT COUNT ( * ) * COUNT ( * ) AS col2, MIN ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
9
-75

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-338
SELECT DISTINCT col1 / + col1 col0 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-339
SELECT ALL 10 DIV COUNT( * ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-339
SELECT ALL 10 / COUNT ( * ) AS col2 FROM tab2
----
3

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-342
SELECT 41 * + + 50 + - - COUNT( * ) * - CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
2041

skipif mysql # not compatible
query I rowsort label-342
SELECT 41 * + + 50 + - - COUNT ( * ) * - CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
2041

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 88 col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
88
88
88

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

onlyif mysql # DIV for integer division: 
query II rowsort label-345
SELECT ALL + - col1, - 96 DIV - - 37 col2 FROM tab1 AS cor0
----
-14
-2
-47
-2
-5
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-345
SELECT ALL + - col1, - 96 / - - 37 col2 FROM tab1 AS cor0
----
-14
-2
-47
-2
-5
-2

query I rowsort
SELECT ALL - AVG ( DISTINCT + ( + col2 ) ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 30 AS col0, + 79 * col0 col1 FROM tab1 AS cor0
----
-30
4029
-30
6715
-30
7189

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

query II rowsort
SELECT col2 * - 33, - col0 AS col2 FROM tab0 WHERE - - col0 + + - ( - - col1 ) = + + 41 * + col2 * - + 66
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-352
SELECT ALL - MAX( - 57 ) FROM tab2
----
57

skipif mysql # not compatible
query I rowsort label-352
SELECT ALL - MAX ( - 57 ) FROM tab2
----
57

query I rowsort
SELECT + 44 + - ( + 19 ) FROM tab2 cor0
----
25
25
25

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

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

query I rowsort
SELECT DISTINCT 52 + - + col1 FROM tab0 AS cor0
----
-29
31
51

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( - col0 ), 63 col1 FROM tab0 cor0
----
-15
63
-87
63
-97
63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 + + 91 NOT BETWEEN NULL AND 76 * col2
----

query I rowsort
SELECT col1 * + 70 AS col1 FROM tab2
----
3570
4690
5390

onlyif mysql # DIV for integer division: 
query I rowsort label-361
SELECT DISTINCT + - 6 DIV + + col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-361
SELECT DISTINCT + - 6 / + + col0 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - - 67 * col2 AS col1 FROM tab1 AS cor0
----
3953
4556
6432

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE 32 IS NOT NULL
----
-46
-64
-75

query II rowsort
SELECT 80 AS col1, - 8 AS col0 FROM tab0 AS cor0
----
80
-8
80
-8
80
-8

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

query II rowsort
SELECT ALL 95 AS col2, 85 AS col1 FROM tab0
----
95
85
95
85
95
85

query I rowsort
SELECT ALL 49 * col0 FROM tab0 WHERE col2 * + + col2 <> - col1 + - col0
----
4263
4753
735

query III rowsort
SELECT * FROM tab1 WHERE NOT 5 >= NULL
----

query I rowsort
SELECT ALL + 78 * ( 64 ) AS col1 FROM tab2
----
4992
4992
4992

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-370
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE NOT NULL BETWEEN 39 * + CAST( NULL AS DECIMAL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-370
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE NOT NULL BETWEEN 39 * + CAST ( NULL AS REAL ) AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-371
SELECT DISTINCT - col1 DIV - - 85 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - col1 / - - 85 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-372
SELECT ALL 7 * - col0 * - CAST( + - col2 AS SIGNED ), + col0 col2 FROM tab1
----
-34272
51
-35105
85
-43316
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-372
SELECT ALL 7 * - col0 * - CAST ( + - col2 AS INTEGER ), + col0 col2 FROM tab1
----
-34272
51
-35105
85
-43316
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-373
SELECT ALL 86 AS col0, CAST( + - col2 AS SIGNED ) FROM tab0
----
86
-10
86
-47
86
-99

skipif mysql # not compatible
query II rowsort label-373
SELECT ALL 86 AS col0, CAST ( + - col2 AS INTEGER ) FROM tab0
----
86
-10
86
-47
86
-99

query I rowsort
SELECT 51 * + 66 FROM tab2
----
3366
3366
3366

onlyif mysql # DIV for integer division: 
query I rowsort label-375
SELECT DISTINCT - 85 DIV + 75 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT - 85 / + 75 FROM tab1
----
-1

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

skipif mysql # not compatible
query I rowsort label-376
SELECT - COUNT ( * ) / - 18 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-377
SELECT MIN( 75 ) FROM tab0
----
75

skipif mysql # not compatible
query I rowsort label-377
SELECT MIN ( 75 ) FROM tab0
----
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 30 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 50 >= + + col2
----

query I rowsort
SELECT ALL + + col2 + + 80 FROM tab0 AS cor0 WHERE NOT + col2 * - 82 BETWEEN - col2 AND 5
----
127
179
90

onlyif mysql # aggregate syntax: 
query II rowsort label-381
SELECT DISTINCT + - 19 AS col1, - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 / - - 72 NOT IN ( + + col0, - col2 * + col1 )
----
-19
-3

skipif mysql # not compatible
query II rowsort label-381
SELECT DISTINCT + - 19 AS col1, - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 / - - 72 NOT IN ( + + col0, - col2 * + col1 )
----
-19
-3

query II rowsort
SELECT - - col0 + + col0 AS col0, + col2 AS col0 FROM tab2 AS cor0
----
128
40
150
58
92
23

query I rowsort
SELECT ALL col1 + - col1 + + + col2 AS col2 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - col0 * - - col2 AS col1 FROM tab0 AS cor0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT + COUNT( * ) + + - 68 * - + COUNT( * ) AS col1 FROM tab0 cor0
----
207

skipif mysql # not compatible
query I rowsort label-385
SELECT + COUNT ( * ) + + - 68 * - + COUNT ( * ) AS col1 FROM tab0 cor0
----
207

onlyif mysql # DIV for integer division: 
query I rowsort label-386
SELECT col2 DIV col2 + - 25 AS col0 FROM tab2
----
-24
-24
-24

skipif mysql # not compatible
query I rowsort label-386
SELECT col2 / col2 + - 25 AS col0 FROM tab2
----
-24
-24
-24

query I rowsort
SELECT col2 + - - 86 * 42 FROM tab2
----
3635
3652
3670

query I rowsort
SELECT 80 + + col1 * 37 FROM tab0
----
117
3077
857

onlyif mysql # aggregate syntax: 
query I rowsort label-389
SELECT ALL - 45 + COUNT( * ) + + COUNT( ALL col0 ) AS col0 FROM tab1
----
-39

skipif mysql # not compatible
query I rowsort label-389
SELECT ALL - 45 + COUNT ( * ) + + COUNT ( ALL col0 ) AS col0 FROM tab1
----
-39

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-390
SELECT COUNT ( * ) + - - 71 + + - 10 col1, CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
64
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-391
SELECT DISTINCT COUNT( * ) + 41 + - COUNT( * ) * COUNT( * ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-391
SELECT DISTINCT COUNT ( * ) + 41 + - COUNT ( * ) * COUNT ( * ) FROM tab2
----
35

query I rowsort
SELECT ALL + 39 + col2 FROM tab0 WHERE NOT ( NOT - 70 IS NOT NULL )
----
138
49
86

query I rowsort
SELECT DISTINCT - + ( - 51 ) + + 20 AS col0 FROM tab1 AS cor0
----
71

query I rowsort
SELECT - - col2 - - ( ( col1 ) ) FROM tab0 AS cor0
----
100
128
31

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-396
SELECT DISTINCT + SUM( ALL + CAST( + 43 AS SIGNED ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
129

skipif mysql # not compatible
query I rowsort label-396
SELECT DISTINCT + SUM ( ALL + CAST ( + 43 AS INTEGER ) ) AS col1 FROM tab0 WHERE NULL IS NULL
----
129

query I rowsort
SELECT + col1 AS col2 FROM tab0 WHERE 19 IN ( 87 - - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-398
SELECT DISTINCT 66 * SUM( - col0 ) + 9 * - COUNT( * ) AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
-12237

skipif mysql # not compatible
query I rowsort label-398
SELECT DISTINCT 66 * SUM ( - col0 ) + 9 * - COUNT ( * ) AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
-12237

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-399
SELECT ( CAST( NULL AS DECIMAL ) ) / + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-399
SELECT ( CAST ( NULL AS REAL ) ) / + col1 FROM tab2
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-401
SELECT ALL COUNT( * ) + 21 FROM tab0
----
24

skipif mysql # not compatible
query I rowsort label-401
SELECT ALL COUNT ( * ) + 21 FROM tab0
----
24

query I rowsort
SELECT - col2 + col0 FROM tab0 WHERE NOT - col1 * + col0 IS NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-403
SELECT MAX( + 61 ) col0 FROM tab0
----
61

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 = 90 + - col1 * 71
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE NOT - 65 IS NULL
----
14
47
5

query I rowsort
SELECT ALL - col2 + + 63 / col0 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( - ( 29 ) ) * - 68 + - 72 > - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE NOT 48 <> NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-410
SELECT DISTINCT + CAST( 38 AS SIGNED ) FROM tab2
----
38

skipif mysql # not compatible
query I rowsort label-410
SELECT DISTINCT + CAST ( 38 AS INTEGER ) FROM tab2
----
38

query I rowsort
SELECT DISTINCT col2 + 40 FROM tab1 WHERE ( - col1 / + col0 ) < 73
----
108
136
99

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

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

query I rowsort
SELECT ALL col1 + + 33 AS col1 FROM tab2
----
100
110
84

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

query I rowsort
SELECT ALL 17 * col2 AS col2 FROM tab2 AS cor0
----
391
680
986

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

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

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

query I rowsort
SELECT + col2 FROM tab1 WHERE NULL IN ( col2 * - col0 + + 41 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 5 + - col0 * 5 col0 FROM tab0
----
-430
-480
-70

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-421
SELECT + col2 + + 91 * CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-421
SELECT + col2 + + 91 * CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 71 + - 75 * col0 FROM tab2 AS cor0
----
-3379
-4729
-5554

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-424
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * CAST( NULL AS SIGNED ) AND ( col2 )
----
0

skipif mysql # not compatible
query I rowsort label-424
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NULL BETWEEN col2 * CAST ( NULL AS INTEGER ) AND ( col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-425
SELECT COUNT( * ) * - MAX( DISTINCT + col1 * col0 ) FROM tab0 AS cor0
----
-5481

skipif mysql # not compatible
query I rowsort label-425
SELECT COUNT ( * ) * - MAX ( DISTINCT + col1 * col0 ) FROM tab0 AS cor0
----
-5481

query I rowsort
SELECT + 57 * + col1 AS col0 FROM tab2 AS cor0
----
2907
3819
4389

onlyif mysql # DIV for integer division: 
query I rowsort label-427
SELECT ALL + col0 + + col2 DIV + col1 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-427
SELECT ALL + col0 + + col2 / + col1 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT 29 * COUNT( * ) col0 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-428
SELECT DISTINCT 29 * COUNT ( * ) col0 FROM tab1 AS cor0
----
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col2 FROM tab0 WHERE 97 >= 64 / col1
----
10
47
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 42 BETWEEN 1 - - col1 * col1 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 WHERE NOT NULL <= 69
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-432
SELECT ( CAST( col2 AS SIGNED ) ) DIV + col2 + col1 AS col0 FROM tab2
----
52
68
78

skipif mysql # not compatible
query I rowsort label-432
SELECT ( CAST ( col2 AS INTEGER ) ) / + col2 + col1 AS col0 FROM tab2
----
52
68
78

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col0 <> ( NULL )
----

query I rowsort
SELECT ALL col2 + - - 44 AS col1 FROM tab0
----
143
54
91

onlyif mysql # DIV for integer division: 
query I rowsort label-435
SELECT DISTINCT + 6 DIV col0 + + col1 AS col1 FROM tab0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT + 6 / col0 + + col1 AS col1 FROM tab0
----
1
21
81

query I rowsort
SELECT DISTINCT + + col2 + + 12 AS col2 FROM tab2 AS cor0
----
35
52
70

onlyif mysql # DIV for integer division: 
query I rowsort label-437
SELECT DISTINCT + col1 DIV col2 + - ( + 17 ) AS col2 FROM tab0 AS cor0
----
-15
-16
-17

skipif mysql # not compatible
query I rowsort label-437
SELECT DISTINCT + col1 / col2 + - ( + 17 ) AS col2 FROM tab0 AS cor0
----
-15
-16
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-438
SELECT + 70 + - 18 * - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + col0 ) IN ( 98 + - col0 )
----
124

skipif mysql # not compatible
query I rowsort label-438
SELECT + 70 + - 18 * - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT ( col2 * + col0 ) IN ( 98 + - col0 )
----
124

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-439
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN CAST( + col1 AS SIGNED ) * col2 + 84 * ( - col0 ) AND - col1 * - 58 + + col0
----

skipif mysql # not compatible
query III rowsort label-439
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN CAST ( + col1 AS INTEGER ) * col2 + 84 * ( - col0 ) AND - col1 * - 58 + + col0
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL OR NULL IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query II rowsort
SELECT DISTINCT col1 AS col0, - 46 FROM tab1
----
14
-46
47
-46
5
-46

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

skipif mysql # not compatible
query I rowsort label-442
SELECT ALL MIN ( - 41 ) AS col1 FROM tab1 AS cor0
----
-41

onlyif mysql # aggregate syntax: 
query I rowsort label-443
SELECT - ( - - ( + - SUM( + 93 ) ) ) FROM tab1 AS cor0
----
279

skipif mysql # not compatible
query I rowsort label-443
SELECT - ( - - ( + - SUM ( + 93 ) ) ) FROM tab1 AS cor0
----
279

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 42 + ( ( + col0 ) ) + 86 * col2 <= ( NULL )
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col2 + + ( - 77 ) + - col2 * + 80 ) >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 39 ) IN ( 85 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-449
SELECT ALL - 97 AS col1, + COUNT( * ) col1 FROM tab1 AS cor0
----
-97
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-449
SELECT ALL - 97 AS col1, + COUNT ( * ) col1 FROM tab1 AS cor0
----
-97
3

query I rowsort
SELECT - 95 * col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 * 79 IS NOT NULL
----

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

query I rowsort
SELECT ALL - 57 * - - 15 * - + col2 AS col2 FROM tab0
----
40185
84645
8550

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

skipif mysql # not compatible
query I rowsort label-453
SELECT ( SUM ( DISTINCT + col0 ) ) FROM tab0
----
199

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( - col0 * 88 * col0 * + 99 ) < ( col2 / - 25 + 22 )
----

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 69 * + col2 - + col2 * 1 > ( + col1 * - col2 - col1 )
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-457
SELECT DISTINCT + CAST( + col1 AS SIGNED ) * - - ( - 27 ) AS col2 FROM tab1
----
-1269
-135
-378

skipif mysql # not compatible
query I rowsort label-457
SELECT DISTINCT + CAST ( + col1 AS INTEGER ) * - - ( - 27 ) AS col2 FROM tab1
----
-1269
-135
-378

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

onlyif mysql # DIV for integer division: 
query I rowsort label-459
SELECT ALL col1 DIV + col0 + 30 + + 77 AS col1 FROM tab1
----
107
107
107

skipif mysql # not compatible
query I rowsort label-459
SELECT ALL col1 / + col0 + 30 + + 77 AS col1 FROM tab1
----
107
107
107

onlyif mysql # aggregate syntax: 
query I rowsort label-460
SELECT DISTINCT + 45 + COUNT( * ) * - - COUNT( * ) FROM tab2 cor0
----
54

skipif mysql # not compatible
query I rowsort label-460
SELECT DISTINCT + 45 + COUNT ( * ) * - - COUNT ( * ) FROM tab2 cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-461
SELECT ALL - 95 + + COUNT( * ) FROM tab2 cor0
----
-92

skipif mysql # not compatible
query I rowsort label-461
SELECT ALL - 95 + + COUNT ( * ) FROM tab2 cor0
----
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-462
SELECT COUNT( + col2 ) / + MIN( col0 * col1 + ( - col2 + col2 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( col1 + - + col2 ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-462
SELECT COUNT ( + col2 ) / + MIN ( col0 * col1 + ( - col2 + col2 ) ) FROM tab1 AS cor0 WHERE NULL BETWEEN ( col1 + - + col2 ) AND NULL
----
NULL

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

skipif mysql # not compatible
query I rowsort label-463
SELECT DISTINCT + - COUNT ( * ) + MAX ( + - CAST ( - + col1 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
74

query I rowsort
SELECT - 57 * - 13 FROM tab0 AS cor0 WHERE 57 IN ( + col0 / - col1 + col0 * + col2 )
----

query I rowsort
SELECT ALL + 56 + + 38 AS col2 FROM tab1 AS cor0
----
94
94
94

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

query I rowsort
SELECT + + col1 + - col1 + - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-468
SELECT DISTINCT CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - col2 = - 78 - - col2
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-468
SELECT DISTINCT CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - col2 = - 78 - - col2
----
-15
-87
-97

query I rowsort
SELECT - 26 + + col1 + - 51 FROM tab0 AS cor0
----
-56
-76
4

query I rowsort
SELECT col1 * + col0 + - - 31 + 40 FROM tab1
----
4348
496
785

query I rowsort
SELECT ALL + ( - 41 ) - - + 56 - - col1 * - 81 AS col1 FROM tab2
----
-4116
-5412
-6222

query I rowsort
SELECT - col1 + - + col0 + - 95 AS col2 FROM tab2
----
-192
-236
-237

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

skipif mysql # not compatible
query II rowsort label-473
SELECT DISTINCT + col1, - CAST ( NULL AS INTEGER ) / - 35 / 86 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-474
SELECT 80 * + COUNT( * ) AS col1 FROM tab1
----
240

skipif mysql # not compatible
query I rowsort label-474
SELECT 80 * + COUNT ( * ) AS col1 FROM tab1
----
240

onlyif mysql # aggregate syntax: 
query II rowsort label-475
SELECT + 55 AS col0, + COUNT( * ) FROM tab0
----
55
3

skipif mysql # not compatible
query II rowsort label-475
SELECT + 55 AS col0, + COUNT ( * ) FROM tab0
----
55
3

query I rowsort
SELECT DISTINCT col0 * + 99 AS col2 FROM tab2 WHERE NOT ( col1 * - col1 / + col0 ) IS NULL
----
4554
6336
7425

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

query I rowsort
SELECT + + 47 * col0 FROM tab1 WHERE NOT col1 BETWEEN col0 AND - - col1 + - col1
----
2397
3995
4277

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT ALL + 90 * - + MAX( + + col0 ) * + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-26190

skipif mysql # not compatible
query I rowsort label-480
SELECT ALL + 90 * - + MAX ( + + col0 ) * + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-26190

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

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

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

query II rowsort
SELECT col0 * 50, + col1 * - ( col1 ) + + 87 AS col1 FROM tab1 AS cor0
----
2550
-109
4250
62
4550
-2122

query I rowsort
SELECT - col2 * - ( + + col0 ) * col0 * + - col1 FROM tab1 cor0
----
-2131375
-26466076
-3495744

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

onlyif mysql # aggregate syntax: 
query II rowsort label-486
SELECT - MIN( ALL col1 ), - 49 AS col0 FROM tab0 AS cor0
----
-1
-49

skipif mysql # not compatible
query II rowsort label-486
SELECT - MIN ( ALL col1 ), - 49 AS col0 FROM tab0 AS cor0
----
-1
-49

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-489
SELECT ALL + SUM( 53 ) FROM tab1
----
159

skipif mysql # not compatible
query I rowsort label-489
SELECT ALL + SUM ( 53 ) FROM tab1
----
159

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query III rowsort label-490
SELECT ALL + CAST( - ( COUNT( * ) ) AS SIGNED ) col0, 51 + + + SUM( + + CAST( NULL AS SIGNED ) ) AS col0, COUNT( DISTINCT + + col2 ) - COUNT( * ) * 31 FROM tab1
----
-3
NULL
-90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-490
SELECT ALL + CAST ( - ( COUNT ( * ) ) AS INTEGER ) col0, 51 + + + SUM ( + + CAST ( NULL AS INTEGER ) ) AS col0, COUNT ( DISTINCT + + col2 ) - COUNT ( * ) * 31 FROM tab1
----
-3
NULL
-90

query I rowsort
SELECT + 44 * - + col0 * - - 72 FROM tab0
----
-275616
-307296
-47520

query II rowsort
SELECT col1, + col0 - - col1 FROM tab1
----
14
65
47
138
5
90

onlyif mysql # DIV for integer division: 
query I rowsort label-493
SELECT ALL + 19 DIV 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-493
SELECT ALL + 19 / 69 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-494
SELECT DISTINCT - COUNT( DISTINCT - CAST( NULL AS SIGNED ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-494
SELECT DISTINCT - COUNT ( DISTINCT - CAST ( NULL AS INTEGER ) ) col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) NOT IN ( col1, - 73 + - - col0 )
----

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

skipif mysql # not compatible
query I rowsort label-496
SELECT COUNT ( * ) / 36 + + 7 AS col0 FROM tab2 AS cor0
----
7

query II rowsort
SELECT + + col1 * col0 AS col1, 52 AS col0 FROM tab1 AS cor0
----
425
52
4277
52
714
52

onlyif mysql # DIV for integer division: 
query I rowsort label-498
SELECT col1 DIV 88 * - - 61 AS col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-498
SELECT col1 / 88 * - - 61 AS col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT - col0 * - - col1 + + + col0 AS col0 FROM tab0 cor0
----
-1200
-1740
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 90 - col0 + - 33 * - 27 - - col0 * col1 + + + col2 col0 FROM tab1 AS cor0
----
1380
1740
5235

query I rowsort
SELECT ALL - + 95 * + + col2 FROM tab0 AS cor0 WHERE NOT 30 IN ( - col0 + 52, - col0 * + col1 + - col2 )
----
-4465
-9405
-950

query I rowsort
SELECT ALL col0 - + col1 + - 65 FROM tab1
----
-21
-28
15

query I rowsort
SELECT ALL 7 AS col2 FROM tab0 WHERE NOT NULL BETWEEN + col2 AND ( + - col2 ) AND - 25 BETWEEN + col0 + col1 * - ( + 75 ) / col0 AND ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + + 4 >= NULL AND NOT ( NULL ) NOT IN ( col0, - col0 + + 66 + + + 90 )
----

query I rowsort
SELECT DISTINCT col0 - 16 + - - col0 FROM tab0
----
14
158
178

onlyif mysql # DIV for integer division: 
query I rowsort label-506
SELECT col2 DIV - col0 - col0 AS col1 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-506
SELECT col2 / - col0 - col0 AS col1 FROM tab2
----
-46
-64
-75

query III rowsort
SELECT * FROM tab0 WHERE - - col0 + 51 * - + col0 + col1 + col2 + + - col1 <> NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-508
SELECT 1 DIV 59 + + - MIN( DISTINCT + + col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-508
SELECT 1 / 59 + + - MIN ( DISTINCT + + col2 ) AS col1 FROM tab2
----
-23

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 73 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-510
SELECT ALL CAST( NULL AS DECIMAL ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-510
SELECT ALL CAST ( NULL AS REAL ), col2 AS col1 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL + col2 * col1 + ( + col2 ) AS col2 FROM tab2 cor0 WHERE NOT ( + 64 + - col2 ) NOT BETWEEN col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-512
SELECT - CAST( NULL AS SIGNED ) AS col2, + col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

skipif mysql # not compatible
query II rowsort label-512
SELECT - CAST ( NULL AS INTEGER ) AS col2, + col0 AS col0 FROM tab2
----
NULL
46
NULL
64
NULL
75

query II rowsort
SELECT - 58, col0 AS col1 FROM tab1
----
-58
51
-58
85
-58
91

onlyif mysql # DIV for integer division: 
query I rowsort label-514
SELECT DISTINCT 89 * col1 * col1 DIV col1 DIV + col1 FROM tab1
----
89

skipif mysql # not compatible
query I rowsort label-514
SELECT DISTINCT 89 * col1 * col1 / col1 / + col1 FROM tab1
----
89

onlyif mysql # aggregate syntax: 
query I rowsort label-515
SELECT ( + MAX( 17 ) ) * - + 28 AS col0 FROM tab2
----
-476

skipif mysql # not compatible
query I rowsort label-515
SELECT ( + MAX ( 17 ) ) * - + 28 AS col0 FROM tab2
----
-476

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 84 * + + col2 col0 FROM tab1
----
4956
5712
8064

query I rowsort
SELECT DISTINCT + 33 * + col1 FROM tab1 AS cor0
----
1551
165
462

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

onlyif mysql # DIV for integer division: 
query I rowsort label-519
SELECT ALL + + col2 DIV 33 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-519
SELECT ALL + + col2 / 33 FROM tab0 AS cor0
----
0
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT ALL - SUM( DISTINCT - - 41 ) FROM tab2 AS cor0
----
-41

skipif mysql # not compatible
query I rowsort label-520
SELECT ALL - SUM ( DISTINCT - - 41 ) FROM tab2 AS cor0
----
-41

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-522
SELECT - 67 DIV + - col2 + - 2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-522
SELECT - 67 / + - col2 + - 2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-1
0

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

query I rowsort
SELECT ( + 55 ) * - col0 + - col1 + ( + 71 ) FROM tab2
----
-2510
-3526
-4121

query II rowsort
SELECT - col2 * + col0 + + col2 AS col1, - 66 AS col1 FROM tab1
----
-4800
-66
-4956
-66
-6120
-66

query I rowsort
SELECT 64 * - 96 AS col1 FROM tab2, tab1 AS cor0
----
9 values hashing to 136ac294d4c2c6a7211404253d878873

query I rowsort
SELECT - col1 + 84 + + col0 * + 63 * + col2 * + + col2 FROM tab2
----
1533075
15894917
6451207

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

onlyif mysql # aggregate syntax: 
query I rowsort label-529
SELECT DISTINCT - - COUNT( * ) + MIN( - + col0 ) col0 FROM tab1 AS cor0
----
-88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-529
SELECT DISTINCT - - COUNT ( * ) + MIN ( - + col0 ) col0 FROM tab1 AS cor0
----
-88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-530
SELECT - CAST( 60 AS SIGNED ) AS col1, 61 AS col2 FROM tab2 AS cor0
----
-60
61
-60
61
-60
61

skipif mysql # not compatible
query II rowsort label-530
SELECT - CAST ( 60 AS INTEGER ) AS col1, 61 AS col2 FROM tab2 AS cor0
----
-60
61
-60
61
-60
61

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

onlyif mysql # aggregate syntax: 
query I rowsort label-532
SELECT + MIN( 18 ) * 59 * + COUNT( * ) AS col2 FROM tab0 AS cor0
----
3186

skipif mysql # not compatible
query I rowsort label-532
SELECT + MIN ( 18 ) * 59 * + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
3186

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1, + col0 col2 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT DISTINCT - 28 + + col0 FROM tab1
----
23
57
63

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

skipif mysql # not compatible
query I rowsort label-536
SELECT DISTINCT + CAST ( + ( COUNT ( * ) ) AS INTEGER ) AS col1 FROM tab1
----
3

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 IN ( - + 9, col0, - + col1 )
----

query II rowsort
SELECT + col0, - col0 FROM tab2 AS cor0 WHERE - 63 IS NOT NULL
----
46
-46
64
-64
75
-75

query I rowsort
SELECT - col0 * + - col1 + col1 + - 46 AS col2 FROM tab2 AS cor0
----
2351
4959
5046

query II rowsort
SELECT DISTINCT + col2 AS col0, 97 AS col0 FROM tab2 AS cor0
----
23
97
40
97
58
97

query I rowsort
SELECT ALL + - 15 - - + 71 AS col2 FROM tab2 AS cor0
----
56
56
56

query I rowsort
SELECT + col1 AS col1 FROM tab1 AS cor0 WHERE ( 67 ) > - 79
----
14
47
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-546
SELECT DISTINCT + MIN( + 69 ) AS col2 FROM tab1
----
69

skipif mysql # not compatible
query I rowsort label-546
SELECT DISTINCT + MIN ( + 69 ) AS col2 FROM tab1
----
69

query I rowsort
SELECT ALL + col1 AS col0 FROM tab0 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-548
SELECT DISTINCT COUNT( * ) * - 31 FROM tab2
----
-93

skipif mysql # not compatible
query I rowsort label-548
SELECT DISTINCT COUNT ( * ) * - 31 FROM tab2
----
-93

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

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

query I rowsort
SELECT + + 92 AS col1 FROM tab1 cor0
----
92
92
92

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT BETWEEN - 32 AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-552
SELECT ALL COUNT ( * ) * + - 1 FROM tab0
----
-3

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col2 * col1 + + 34 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col1 + + + col1 AS col0 FROM tab2
----
102
134
154

query II rowsort
SELECT col2 * col2 + 37 + - + col0 * - col2 + - col1 + - 16 + 77, col2 * + col0 AS col2 FROM tab0 AS cor0
----
1047
870
19501
9603
2931
705

onlyif mysql # aggregate syntax: 
query I rowsort label-557
SELECT DISTINCT + 42 + COUNT( * ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-557
SELECT DISTINCT + 42 + COUNT ( * ) FROM tab1 AS cor0
----
45

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 + 42 IS NOT NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-560
SELECT + 80 DIV + + col0 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-560
SELECT + 80 / + + col0 AS col1 FROM tab1
----
0
0
1

query I rowsort
SELECT DISTINCT + 70 * - col0 * + 55 * - + col0 - - col0 + + - col2 - + col0 / ( + 13 ) FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - col1
----

query I rowsort
SELECT DISTINCT + ( - + 8 ) * col2 AS col2 FROM tab2 WHERE col1 + - - col2 >= - col1 * + + 76 / - + 27
----

query I rowsort
SELECT - ( + + col1 ) + + 29 FROM tab2 WHERE NULL IS NULL
----
-22
-38
-48

query I rowsort
SELECT ALL + 78 * + col0 FROM tab1
----
3978
6630
7098

onlyif mysql # aggregate syntax: 
query II rowsort label-565
SELECT - COUNT( * ) AS col0, 90 AS col2 FROM tab2 WHERE + + 62 IS NOT NULL
----
-3
90

skipif mysql # not compatible
query II rowsort label-565
SELECT - COUNT ( * ) AS col0, 90 AS col2 FROM tab2 WHERE + + 62 IS NOT NULL
----
-3
90

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-566
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + MAX( + col0 ) + + + 15 * + + 14 AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-566
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + MAX ( + col0 ) + + + 15 * + + 14 AS col0 FROM tab1
----
NULL

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-569
SELECT - col2 DIV + 42 AS col0 FROM tab1
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-569
SELECT - col2 / + 42 AS col0 FROM tab1
----
-1
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-570
SELECT 83 DIV - - col0 + - - col1 FROM tab1 AS cor0
----
15
47
5

skipif mysql # not compatible
query I rowsort label-570
SELECT 83 / - - col0 + - - col1 FROM tab1 AS cor0
----
15
47
5

query I rowsort
SELECT - 98 + 1 FROM tab0 cor0
----
-97
-97
-97

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-573
SELECT ALL COUNT( + 44 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-573
SELECT ALL COUNT ( + 44 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-574
SELECT DISTINCT + 10 DIV + 14 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-574
SELECT DISTINCT + 10 / + 14 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - 50 - col1 + - col2 + - 47 AS col1 FROM tab2
----
-171
-214
-222

onlyif mysql # aggregate syntax: 
query I rowsort label-576
SELECT - + COUNT( * ) col2 FROM tab1 WHERE + 43 > + 99
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-576
SELECT - + COUNT ( * ) col2 FROM tab1 WHERE + 43 > + 99
----
0

query I rowsort
SELECT - 3 * - 54 FROM tab2
----
162
162
162

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 33 * - - col0 + + 36 ) <> NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - 22 - - + ( 9 ) col2, 6 * - col2 * col1 FROM tab2 AS cor0
----
-13
-18480
-13
-23316
-13
-7038

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

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

query I rowsort
SELECT - col2 * - - 80 * 89 FROM tab2
----
-163760
-284800
-412960

onlyif mysql # aggregate syntax: 
query II rowsort label-584
SELECT - COUNT( * ) * 57, COUNT( * ) FROM tab1 WHERE NOT + + 5 NOT IN ( + ( - - col2 ) + - 4 )
----
0
0

skipif mysql # not compatible
query II rowsort label-584
SELECT - COUNT ( * ) * 57, COUNT ( * ) FROM tab1 WHERE NOT + + 5 NOT IN ( + ( - - col2 ) + - 4 )
----
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-585
SELECT DISTINCT + MIN( ALL - ( 70 ) ) AS col0 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-585
SELECT DISTINCT + MIN ( ALL - ( 70 ) ) AS col0 FROM tab0
----
-70

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 NOT BETWEEN + col1 AND + col1 - - + 57 - - col2
----

query I rowsort
SELECT + ( + - 20 ) FROM tab0 AS cor0
----
-20
-20
-20

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

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

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

query II rowsort
SELECT + 51 + 22, col1 * - - col0 + + col1 * - col1 AS col2 FROM tab1 AS cor0
----
73
2068
73
400
73
518

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

query I rowsort
SELECT ( + col1 ) + + col2 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-593
SELECT DISTINCT 30 DIV - - COUNT( * ) AS col2 FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-593
SELECT DISTINCT 30 / - - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-594
SELECT 84 + COUNT( * ) + + 94 AS col1 FROM tab0
----
181

skipif mysql # not compatible
query I rowsort label-594
SELECT 84 + COUNT ( * ) + + 94 AS col1 FROM tab0
----
181

query I rowsort
SELECT ALL 80 * - 90 FROM tab2
----
-7200
-7200
-7200

onlyif mysql # aggregate syntax: 
query I rowsort label-596
SELECT ALL - COUNT( * ) + ( + + MIN( - col2 ) ) AS col0 FROM tab0
----
-102

skipif mysql # not compatible
query I rowsort label-596
SELECT ALL - COUNT ( * ) + ( + + MIN ( - col2 ) ) AS col0 FROM tab0
----
-102

query I rowsort
SELECT + col1 + - 60 FROM tab2
----
-9
17
7

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-599
SELECT ( + col1 ) + + CAST( col0 AS SIGNED ) AS col0 FROM tab0
----
108
96
98

skipif mysql # not compatible
query I rowsort label-599
SELECT ( + col1 ) + + CAST ( col0 AS INTEGER ) AS col0 FROM tab0
----
108
96
98

onlyif mysql # aggregate syntax: 
query I rowsort label-600
SELECT DISTINCT + MIN( + 11 ) FROM tab0
----
11

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT + MIN ( + 11 ) FROM tab0
----
11

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

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

skipif mysql # not compatible
query I rowsort label-602
SELECT - 56 * + + 75 + - - COUNT ( * ) FROM tab1
----
-4197

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-603
SELECT ALL col2 * - - CAST( - ( + 40 ) AS SIGNED ) FROM tab0
----
-1880
-3960
-400

skipif mysql # not compatible
query I rowsort label-603
SELECT ALL col2 * - - CAST ( - ( + 40 ) AS INTEGER ) FROM tab0
----
-1880
-3960
-400

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

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

query I rowsort
SELECT DISTINCT 14 * + + col0 AS col1 FROM tab2
----
1050
644
896

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

query I rowsort
SELECT - - col2 FROM tab0 AS cor0 WHERE NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-608
SELECT + SUM( ALL + 12 ) AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-608
SELECT + SUM ( ALL + 12 ) AS col1 FROM tab2 AS cor0
----
36

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-610
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - CAST( NULL AS SIGNED ) + 54
----

skipif mysql # not compatible
query III rowsort label-610
SELECT * FROM tab0 AS cor0 WHERE NOT NULL >= - CAST ( NULL AS INTEGER ) + 54
----

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

skipif mysql # not compatible
query I rowsort label-611
SELECT ALL + - col1 * 26 + + CAST ( NULL AS REAL ) AS col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 / + col0 NOT BETWEEN + 63 AND - 77
----

query I rowsort
SELECT DISTINCT 89 + + 13 FROM tab0 AS cor0 WHERE - col0 >= NULL
----

query II rowsort
SELECT DISTINCT + + col0, - 83 FROM tab2 AS cor0
----
46
-83
64
-83
75
-83

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

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

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

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE col1 IS NOT NULL
----
-10
-47
-99

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-619
SELECT DISTINCT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) / + - 14 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-619
SELECT DISTINCT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) / + - 14 IS NOT NULL
----

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

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

query I rowsort
SELECT + + 72 * - + 98 + + 27 AS col1 FROM tab2 cor0
----
-7029
-7029
-7029

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-624
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) AS col0 FROM tab2 WHERE col0 + col2 * - col2 * - col1 NOT BETWEEN col0 AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-624
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab2 WHERE col0 + col2 * - col2 * - col1 NOT BETWEEN col0 AND ( NULL )
----
0

query II rowsort
SELECT DISTINCT col0, col1 + col0 FROM tab0
----
15
96
87
108
97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-626
SELECT ALL + MAX( DISTINCT col0 ) + - SUM( + col2 ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-626
SELECT ALL + MAX ( DISTINCT col0 ) + - SUM ( + col2 ) FROM tab1
----
-132

query I rowsort
SELECT DISTINCT + col2 * - col0 / + col0 FROM tab0 cor0 WHERE NOT + 63 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-628
SELECT * FROM tab2 AS cor0 WHERE + col0 + + 97 * CAST( 6 AS SIGNED ) < + ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-628
SELECT * FROM tab2 AS cor0 WHERE + col0 + + 97 * CAST ( 6 AS INTEGER ) < + ( - col2 )
----

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

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

query I rowsort
SELECT - col2 * 59 * - col2 AS col2 FROM tab1 AS cor0
----
205379
272816
543744

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - - 19 * + col2 * - col2 AS col0, + 67 col1 FROM tab1 AS cor0
----
-175104
67
-66139
67
-87856
67

query II rowsort
SELECT col1 AS col1, 65 AS col1 FROM tab0 AS cor0
----
1
65
21
65
81
65

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-634
SELECT - 29 DIV + col1 - + 14 AS col2 FROM tab1
----
-14
-16
-19

skipif mysql # not compatible
query I rowsort label-634
SELECT - 29 / + col1 - + 14 AS col2 FROM tab1
----
-14
-16
-19

query III rowsort
SELECT * FROM tab0 WHERE ( NOT col2 <= - - 17 )
----
15
81
47
97
1
99

query I rowsort
SELECT col1 * - 95 + - col0 + col1 AS col0 FROM tab0
----
-191
-2061
-7629

query II rowsort
SELECT col1 + + col2 AS col1, ( 20 ) FROM tab1
----
110
20
115
20
64
20

query I rowsort
SELECT DISTINCT - 82 FROM tab2 WHERE ( NULL IS NULL )
----
-82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-640
SELECT - 82 + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-85

skipif mysql # not compatible
query I rowsort label-640
SELECT - 82 + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-85

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-642
SELECT - col1, - col2 * - - CAST( - + 7 AS SIGNED ) + - - 10 col1 FROM tab2
----
-51
171
-67
416
-77
290

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-642
SELECT - col1, - col2 * - - CAST ( - + 7 AS INTEGER ) + - - 10 col1 FROM tab2
----
-51
171
-67
416
-77
290

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

skipif mysql # not compatible
query I rowsort label-643
SELECT + - 34 / + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + + 17 FROM tab1 cor0 WHERE NOT ( NOT ( ( NULL NOT IN ( + ( + 29 ), 7 - - col2, 62 * - ( 66 ), + - col1, + 26 ) ) ) )
----

query I rowsort
SELECT - col1 * + - 28 + - ( + + col0 ) FROM tab2 AS cor0
----
1382
1801
2092

query I rowsort
SELECT ( - 22 ) * - ( - 28 ) * - 20 - + + col1 AS col2 FROM tab0 AS cor0
----
12239
12299
12319

onlyif mysql # aggregate syntax: 
query I rowsort label-647
SELECT DISTINCT - MIN( col2 ) AS col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
query I rowsort label-647
SELECT DISTINCT - MIN ( col2 ) AS col0 FROM tab2 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query II rowsort label-648
SELECT - COUNT( * ) AS col2, 77 FROM tab2
----
-3
77

skipif mysql # not compatible
query II rowsort label-648
SELECT - COUNT ( * ) AS col2, 77 FROM tab2
----
-3
77

onlyif mysql # aggregate syntax: 
query I rowsort label-649
SELECT 75 * COUNT( DISTINCT - col2 ) FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-649
SELECT 75 * COUNT ( DISTINCT - col2 ) FROM tab0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-650
SELECT ALL - MIN( DISTINCT col1 ) * 36 FROM tab0
----
-36

skipif mysql # not compatible
query I rowsort label-650
SELECT ALL - MIN ( DISTINCT col1 ) * 36 FROM tab0
----
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-651
SELECT + ( MIN( ALL col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-651
SELECT + ( MIN ( ALL col1 ) ) AS col0 FROM tab0
----
1

query II rowsort
SELECT - 29 + + + col1, 58 - - 29 AS col2 FROM tab0
----
-28
87
-8
87
52
87

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

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

query I rowsort
SELECT + ( - + col2 ) AS col0 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-655
SELECT + 99 * - col0 FROM tab2 cor0 WHERE NOT - col2 * + CAST( + col0 AS DECIMAL ) >= + ( - col2 )
----
-4554
-6336
-7425

skipif mysql # not compatible
query I rowsort label-655
SELECT + 99 * - col0 FROM tab2 cor0 WHERE NOT - col2 * + CAST ( + col0 AS REAL ) >= + ( - col2 )
----
-4554
-6336
-7425

query II rowsort
SELECT DISTINCT - 5 AS col1, + 43 * + col2 AS col1 FROM tab2 cor0
----
-5
1720
-5
2494
-5
989

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

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

query I rowsort
SELECT DISTINCT + 63 + col1 * - - 87 FROM tab2
----
4500
5892
6762

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 * + 2 + + - col2 BETWEEN - + 97 AND + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-661
SELECT - - 34 * - col0 FROM tab2 AS cor0 WHERE - CAST( + col0 AS SIGNED ) IS NOT NULL
----
-1564
-2176
-2550

skipif mysql # not compatible
query I rowsort label-661
SELECT - - 34 * - col0 FROM tab2 AS cor0 WHERE - CAST ( + col0 AS INTEGER ) IS NOT NULL
----
-1564
-2176
-2550

query I rowsort
SELECT DISTINCT - 19 * - col1 + - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL < col2 - 0
----

query I rowsort
SELECT - 17 + col0 AS col2 FROM tab0
----
-2
70
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-664
SELECT - col2 * - col1 FROM tab0 WHERE + 41 NOT IN ( - ( - + 19 ), 84, - + CAST( NULL AS SIGNED ), - col2 )
----

skipif mysql # not compatible
query I rowsort label-664
SELECT - col2 * - col1 FROM tab0 WHERE + 41 NOT IN ( - ( - + 19 ), 84, - + CAST ( NULL AS INTEGER ), - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-665
SELECT ALL ( col2 ) * col2 DIV - col1 + - col0 FROM tab0
----
-42
-91
-9898

skipif mysql # not compatible
query I rowsort label-665
SELECT ALL ( col2 ) * col2 / - col1 + - col0 FROM tab0
----
-42
-91
-9898

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

query I rowsort
SELECT ALL + - ( - 68 ) * 31 + - col2 * col0 + 1 + 46 * col1 AS col1 FROM tab0 cor0
----
-7448
2205
5130

onlyif mysql # aggregate syntax: 
query I rowsort label-668
SELECT + + MAX( ALL - - col2 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
58

skipif mysql # not compatible
query I rowsort label-668
SELECT + + MAX ( ALL - - col2 ) FROM tab2 AS cor0 WHERE col1 IS NOT NULL
----
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-669
SELECT CAST( + + col1 AS SIGNED ) - + col1 * - col2 FROM tab0 AS cor0
----
100
231
3888

skipif mysql # not compatible
query I rowsort label-669
SELECT CAST ( + + col1 AS INTEGER ) - + col1 * - col2 FROM tab0 AS cor0
----
100
231
3888

onlyif mysql # aggregate syntax: 
query I rowsort label-670
SELECT 16 * COUNT( * ) AS col2 FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-670
SELECT 16 * COUNT ( * ) AS col2 FROM tab0 AS cor0
----
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-671
SELECT - 82 * CAST( + - col1 AS SIGNED ) FROM tab2 AS cor0
----
4182
5494
6314

skipif mysql # not compatible
query I rowsort label-671
SELECT - 82 * CAST ( + - col1 AS INTEGER ) FROM tab2 AS cor0
----
4182
5494
6314

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

skipif mysql # not compatible
query I rowsort label-672
SELECT ALL + AVG ( DISTINCT - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-673
SELECT ALL + SUM( + CAST( col1 AS SIGNED ) ) AS col0 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-673
SELECT ALL + SUM ( + CAST ( col1 AS INTEGER ) ) AS col0 FROM tab0
----
103

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

query I rowsort
SELECT 54 + + ( - + 34 ) FROM tab2, tab2 AS cor0
----
9 values hashing to 2fdd942fe0307a6ff66b63004ef102c4

query I rowsort
SELECT DISTINCT - 0 * + - 97 AS col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-677
SELECT ALL + COUNT( * ) + + COUNT( * ) - - MIN( + 4 ) * - + ( + 61 ) col1 FROM tab2 WHERE NOT + 76 IS NULL
----
-238

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-677
SELECT ALL + COUNT ( * ) + + COUNT ( * ) - - MIN ( + 4 ) * - + ( + 61 ) col1 FROM tab2 WHERE NOT + 76 IS NULL
----
-238

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + - col2 * + + 72 + - - 51 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query III rowsort label-680
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 * 67 * + - col2 * - - col2 * + CAST ( - + 45 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

query II rowsort
SELECT ALL + col0 * + 55 + + ( col1 ), + col2 + + col0 AS col0 FROM tab2 AS cor0 WHERE 39 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-684
SELECT ALL COUNT( * ) - 34 FROM tab2 AS cor0
----
-31

skipif mysql # not compatible
query I rowsort label-684
SELECT ALL COUNT ( * ) - 34 FROM tab2 AS cor0
----
-31

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

query II rowsort
SELECT + ( - 77 ) AS col0, col2 + col2 FROM tab0 AS cor0
----
-77
198
-77
20
-77
94

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-687
SELECT + col2, CAST( NULL AS DECIMAL ) - ( - - col0 ) * - col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-687
SELECT + col2, CAST ( NULL AS REAL ) - ( - - col0 ) * - col0 FROM tab2 cor0
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE 70 > - 99
----
14
47
5

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

query I rowsort
SELECT DISTINCT + 60 - + 59 FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL + 58 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND 89
----

query II rowsort
SELECT ALL - col1 - - col0, col2 AS col1 FROM tab2 AS cor0
----
-13
40
-5
23
8
58

query I rowsort
SELECT + ( + 97 ) - + col2 AS col0 FROM tab0
----
-2
50
87

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

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

query II rowsort
SELECT + col0 + - 80, col0 + + col0 * col1 AS col0 FROM tab0
----
-65
1230
17
194
7
1914

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

onlyif mysql # aggregate syntax: 
query I rowsort label-697
SELECT COUNT( ALL ( + + col1 ) ) + - 85 AS col0 FROM tab2
----
-82

skipif mysql # not compatible
query I rowsort label-697
SELECT COUNT ( ALL ( + + col1 ) ) + - 85 AS col0 FROM tab2
----
-82

query I rowsort
SELECT DISTINCT col2 * + col1 + - col2 + - + col1 FROM tab1
----
1234
231
3081

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

onlyif mysql # aggregate syntax: 
query I rowsort label-700
SELECT DISTINCT COUNT( 6 ) * - 16 FROM tab0 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-700
SELECT DISTINCT COUNT ( 6 ) * - 16 FROM tab0 AS cor0
----
-48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-701
SELECT - + AVG ( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-702
SELECT DISTINCT - + 14 DIV + + col1 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-702
SELECT DISTINCT - + 14 / + + col1 AS col2 FROM tab2 AS cor0
----
0

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

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

query I rowsort
SELECT DISTINCT ( + + 16 ) AS col0 FROM tab0 cor0
----
16

query II rowsort
SELECT DISTINCT + col0, + 44 FROM tab2 AS cor0
----
46
44
64
44
75
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-706
SELECT ALL ( + + MIN( - col1 ) ) * - 66 DIV + 33 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-706
SELECT ALL ( + + MIN ( - col1 ) ) * - 66 / + 33 FROM tab1
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-707
SELECT DISTINCT COUNT( * ) * 89 FROM tab1
----
267

skipif mysql # not compatible
query I rowsort label-707
SELECT DISTINCT COUNT ( * ) * 89 FROM tab1
----
267

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-708
SELECT ALL - 81 * + - 25 AS col2, 0 * - CAST( - COUNT( DISTINCT col0 ) AS SIGNED ) AS col1 FROM tab0
----
2025
0

skipif mysql # not compatible
query II rowsort label-708
SELECT ALL - 81 * + - 25 AS col2, 0 * - CAST ( - COUNT ( DISTINCT col0 ) AS INTEGER ) AS col1 FROM tab0
----
2025
0

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

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

query I rowsort
SELECT ALL - col2 + + 69 FROM tab0
----
-30
22
59

query I rowsort
SELECT - col2 * - + ( col2 ) * + + col1 * col2 + + - col1 FROM tab2
----
13072437
4927923
620466

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

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

query I rowsort
SELECT - - 98 FROM tab2 cor0
----
98
98
98

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

query I rowsort
SELECT col0 * col1 * + + col0 FROM tab2
----
107916
315392
376875

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-716
SELECT 43 DIV - COUNT( * ) AS col1 FROM tab1
----
-14

skipif mysql # not compatible
query I rowsort label-716
SELECT 43 / - COUNT ( * ) AS col1 FROM tab1
----
-14

query I rowsort
SELECT ALL + col1 * + - 35 + - col2 AS col1 FROM tab1 AS cor0
----
-1713
-234
-586

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

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

query I rowsort
SELECT DISTINCT + + col1 - + - 16 AS col2 FROM tab2 AS cor0
----
67
83
93

query I rowsort
SELECT ALL + col0 + 53 FROM tab0 cor0
----
140
150
68

query I rowsort
SELECT + - col1 + - - col1 AS col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col1 * - - col0 + + 95 * + col1 + col2 FROM tab2 AS cor0
----
11448
12283
7214

query I rowsort
SELECT DISTINCT - 53 - - 11 AS col1 FROM tab1 AS cor0
----
-42

onlyif mysql # DIV for integer division: 
query I rowsort label-724
SELECT col2 + + + 14 + - - 60 DIV + col0 FROM tab2 AS cor0
----
38
54
72

skipif mysql # not compatible
query I rowsort label-724
SELECT col2 + + + 14 + - - 60 / + col0 FROM tab2 AS cor0
----
38
54
72

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-725
SELECT CAST ( - 38 AS INTEGER ) col2 FROM tab1
----
-38
-38
-38

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-728
SELECT - CAST( NULL AS DECIMAL ) AS col2, 59 * - + COUNT( * ) FROM tab2
----
NULL
-177

skipif mysql # not compatible
query II rowsort label-728
SELECT - CAST ( NULL AS REAL ) AS col2, 59 * - + COUNT ( * ) FROM tab2
----
NULL
-177

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col1 * + 21 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-731
SELECT DISTINCT AVG ( - - CAST( NULL AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-731
SELECT DISTINCT AVG ( - - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - col2 * + - 12 * col0 FROM tab1 AS cor0
----
58752
60180
74256

query I rowsort
SELECT - col2 * + col0 * - 47 FROM tab1 AS cor0
----
230112
235705
290836

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - - COUNT( * ) * + 50 AS col2 FROM tab1 AS cor0
----
150

skipif mysql # not compatible
query I rowsort label-735
SELECT - - COUNT ( * ) * + 50 AS col2 FROM tab1 AS cor0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-736
SELECT DISTINCT - 19 * COUNT( * ) * 61 AS col2 FROM tab0 AS cor0
----
-3477

skipif mysql # not compatible
query I rowsort label-736
SELECT DISTINCT - 19 * COUNT ( * ) * 61 AS col2 FROM tab0 AS cor0
----
-3477

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-738
SELECT + - 80 * 16 * - + MIN( - col0 ) FROM tab2 AS cor0
----
-96000

skipif mysql # not compatible
query I rowsort label-738
SELECT + - 80 * 16 * - + MIN ( - col0 ) FROM tab2 AS cor0
----
-96000

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

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

query III rowsort
SELECT ALL * FROM tab0 WHERE - 53 * + 32 * col0 * + 3 BETWEEN col0 * - col2 * + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - 4 col2 FROM tab0
----
-101
-19
-91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-742
SELECT + col2, CAST( NULL AS SIGNED ) * - col2 + - col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-742
SELECT + col2, CAST ( NULL AS INTEGER ) * - col2 + - col2 FROM tab0
----
10
NULL
47
NULL
99
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-744
SELECT DISTINCT + ( + SUM( + col0 ) ) + + COUNT( * ) FROM tab1
----
230

skipif mysql # not compatible
query I rowsort label-744
SELECT DISTINCT + ( + SUM ( + col0 ) ) + + COUNT ( * ) FROM tab1
----
230

query I rowsort
SELECT + + col0 + 69 FROM tab1 AS cor0
----
120
154
160

query I rowsort
SELECT DISTINCT - + 64 + - 20 FROM tab2 AS cor0
----
-84

query I rowsort
SELECT ALL + 60 * - + col0 + 96 + - col2 AS col1 FROM tab0
----
-5134
-5823
-851

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-749
SELECT DISTINCT - AVG ( ALL + 91 ) * - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-749
SELECT DISTINCT - AVG ( ALL + 91 ) * - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query I rowsort
SELECT + + col1 - col2 * - + 80 AS col0 FROM tab1 AS cor0
----
4725
5487
7694

query II rowsort
SELECT col1 - col2, + ( + col1 ) FROM tab2 AS cor0
----
28
51
37
77
9
67

onlyif mysql # DIV for integer division: 
query I rowsort label-752
SELECT col2 DIV + 79 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-752
SELECT col2 / + 79 FROM tab2
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-754
SELECT MIN( 29 ) * - 33 AS col1 FROM tab1
----
-957

skipif mysql # not compatible
query I rowsort label-754
SELECT MIN ( 29 ) * - 33 AS col1 FROM tab1
----
-957

onlyif mysql # aggregate syntax: 
query I rowsort label-755
SELECT DISTINCT - MIN( - 95 ) FROM tab2 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-755
SELECT DISTINCT - MIN ( - 95 ) FROM tab2 AS cor0
----
95

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

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

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

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

query I rowsort
SELECT ALL - col0 + + + 57 AS col0 FROM tab0 AS cor0
----
-30
-40
42

query I rowsort
SELECT ALL col2 * + 98 AS col1 FROM tab2 AS cor0
----
2254
3920
5684

query I rowsort
SELECT 33 * - 99 FROM tab1 AS cor0
----
-3267
-3267
-3267

query I rowsort
SELECT - col1 + col0 - - 69 + col0 FROM tab2 AS cor0
----
110
120
152

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

query I rowsort
SELECT col1 * + + col0 + + 43 FROM tab1 AS cor0
----
4320
468
757

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-766
SELECT COUNT( * ) + + ( + + CAST( NULL AS DECIMAL ) ) * + + 28 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-766
SELECT COUNT ( * ) + + ( + + CAST ( NULL AS REAL ) ) * + + 28 FROM tab0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 * + - 75 * + 53 + 39 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-768
SELECT DISTINCT col0 + - col1 * CAST( - 43 AS SIGNED ) FROM tab1
----
2112
300
653

skipif mysql # not compatible
query I rowsort label-768
SELECT DISTINCT col0 + - col1 * CAST ( - 43 AS INTEGER ) FROM tab1
----
2112
300
653

query I rowsort
SELECT - col1 FROM tab1 WHERE NULL < col1
----

query I rowsort
SELECT col2 + - - ( + 77 ) AS col1 FROM tab2
----
100
117
135

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

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

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

query I rowsort
SELECT + 85 * + - col1 + - 54 * - 91 AS col1 FROM tab1 AS cor0
----
3724
4489
919

query I rowsort
SELECT DISTINCT - ( - - col0 ) * - col1 * + + col0 FROM tab2 cor0
----
107916
315392
376875

onlyif mysql # aggregate syntax: 
query I rowsort label-775
SELECT DISTINCT + MIN( + col0 ) AS col2 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-775
SELECT DISTINCT + MIN ( + col0 ) AS col2 FROM tab1 AS cor0
----
51

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-778
SELECT ALL + MIN( ALL + CAST( ( - 39 ) AS SIGNED ) ) * + COUNT( * ) FROM tab1 AS cor0
----
-117

skipif mysql # not compatible
query I rowsort label-778
SELECT ALL + MIN ( ALL + CAST ( ( - 39 ) AS INTEGER ) ) * + COUNT ( * ) FROM tab1 AS cor0
----
-117

query III rowsort
SELECT ALL + col2 AS col0, - 21 + + - col2 + - 65 * - + col0 * + 0 AS col1, + 82 + + - col0 FROM tab2 AS cor0
----
9 values hashing to b348143111e7195685002f688c0c26bf

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

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

query I rowsort
SELECT ALL 2 * + col2 AS col0 FROM tab0
----
198
20
94

query III rowsort
SELECT ALL * FROM tab1 WHERE - - 22 * + col1 >= + col1 * col0
----

query I rowsort
SELECT DISTINCT - 27 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL + col2 * - + col2 AS col2, + 58 FROM tab0
----
-100
58
-2209
58
-9801
58

query I rowsort
SELECT + - 10 AS col0 FROM tab0 WHERE NOT - + 94 <= + 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-786
SELECT ALL - ( - 79 ) * - MIN( col2 ) * - COUNT( * ) - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-786
SELECT ALL - ( - 79 ) * - MIN ( col2 ) * - COUNT ( * ) - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-787
SELECT + 33 * - + col2 * + ( + - 75 ) + - col0 - - col0 * - CAST( NULL AS SIGNED ) * - - 38 / - 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-787
SELECT + 33 * - + col2 * + ( + - 75 ) + - col0 - - col0 * - CAST ( NULL AS INTEGER ) * - - 38 / - 64 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT col0 * - - col0 + + col1 AS col2, 78 FROM tab0 AS cor0
----
306
78
7590
78
9410
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-790
SELECT ALL - + 50 + + CAST( + - col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-101
-135
-141

skipif mysql # not compatible
query I rowsort label-790
SELECT ALL - + 50 + + CAST ( + - col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-101
-135
-141

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-792
SELECT + 79 DIV + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-792
SELECT + 79 / + col0 AS col1 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + + col1 * - col0 + + 98 + - col0 FROM tab0 AS cor0
----
-1132
-1816
-96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - col1 + - col1 + + - 97 * - 79 * + - col1 IN ( + col1, - col2 * col0 + - col1 * - col2, + + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 28 * 23 FROM tab0 WHERE NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-797
SELECT - ( + MAX( - col1 ) ) + + COUNT( * ) FROM tab0
----
4

skipif mysql # not compatible
query I rowsort label-797
SELECT - ( + MAX ( - col1 ) ) + + COUNT ( * ) FROM tab0
----
4

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-798
SELECT COUNT( * ) + CAST( - COUNT( * ) AS SIGNED ) + - COUNT( * ) DIV - + 78 * - + 85 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-798
SELECT COUNT ( * ) + CAST ( - COUNT ( * ) AS INTEGER ) + - COUNT ( * ) / - + 78 * - + 85 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-799
SELECT + 44 + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-799
SELECT + 44 + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 48 + - col2 + - + col2 col1 FROM tab0 AS cor0
----
-142
-246
-68

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 5 / 31 + - - col0 - - - 16 * - col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-802
SELECT ALL 25 + - MIN( - - col2 ) AS col1 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-802
SELECT ALL 25 + - MIN ( - - col2 ) AS col1 FROM tab2 AS cor0
----
2

query I rowsort
SELECT DISTINCT - col1 + - 23 FROM tab1 AS cor0
----
-28
-37
-70

query I rowsort
SELECT DISTINCT col0 * ( + + col1 ) + + col0 - + 25 FROM tab0 AS cor0
----
1205
169
1889

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE 45 > NULL
----

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

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

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

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

query I rowsort
SELECT ALL - col1 * + - col2 * - - 22 * + - col2 FROM tab0 AS cor0
----
-215622
-3936438
-46200

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 95 col1, col2 * + - col1 AS col0 FROM tab1
----
95
-1344
95
-295
95
-3196

query I rowsort
SELECT DISTINCT - 37 * - - 90 FROM tab2
----
-3330

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT DISTINCT + 3 * + ( SUM( + + col2 ) ) FROM tab1
----
669

skipif mysql # not compatible
query I rowsort label-813
SELECT DISTINCT + 3 * + ( SUM ( + + col2 ) ) FROM tab1
----
669

query I rowsort
SELECT DISTINCT 99 * + + col1 FROM tab2
----
5049
6633
7623

query I rowsort
SELECT AVG ( col2 ) AS col0 FROM tab0 WHERE NOT + col0 NOT BETWEEN - col1 AND NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-816
SELECT ALL COUNT( * ) * - 54 FROM tab1
----
-162

skipif mysql # not compatible
query I rowsort label-816
SELECT ALL COUNT ( * ) * - 54 FROM tab1
----
-162

query I rowsort
SELECT - 45 * + + col2 AS col0 FROM tab2
----
-1035
-1800
-2610

onlyif mysql # DIV for integer division: 
query I rowsort label-818
SELECT ALL - col1 DIV - 80 - - 79 + + col0 DIV - + 16 FROM tab1 cor0
----
74
74
76

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL - col1 / - 80 - - 79 + + col0 / - + 16 FROM tab1 cor0
----
74
74
76

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 82 BETWEEN col0 AND col1 / - 9
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-821
SELECT - CAST( col2 AS SIGNED ) + ( + col2 ) * - col2 FROM tab1
----
-3540
-4692
-9312

skipif mysql # not compatible
query I rowsort label-821
SELECT - CAST ( col2 AS INTEGER ) + ( + col2 ) * - col2 FROM tab1
----
-3540
-4692
-9312

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 > + col2 * - 30
----

query I rowsort
SELECT 52 * - 92 AS col1 FROM tab1 WHERE col2 * - 65 = + 39 + - col0
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-825
SELECT ALL - COUNT( * ) + 96 AS col2 FROM tab0
----
93

skipif mysql # not compatible
query I rowsort label-825
SELECT ALL - COUNT ( * ) + 96 AS col2 FROM tab0
----
93

onlyif mysql # aggregate syntax: 
query I rowsort label-826
SELECT - COUNT( * ) AS col2 FROM tab1 WHERE + 22 / col1 = ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-826
SELECT - COUNT ( * ) AS col2 FROM tab1 WHERE + 22 / col1 = ( NULL )
----
0

query I rowsort
SELECT DISTINCT + 85 * - col1 FROM tab0
----
-1785
-6885
-85

query I rowsort
SELECT col2 FROM tab0 WHERE + ( col0 ) * - col2 NOT IN ( - col0 )
----
10
47
99

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

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

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

query I rowsort
SELECT - 0 * - col1 AS col0 FROM tab0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 * col0 col0 FROM tab2
----
-4094
-5696
-6675

query I rowsort
SELECT + ( ( - col1 ) ) + col2 AS col1 FROM tab1 WHERE ( NULL ) IS NULL
----
21
54
82

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

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

query I rowsort
SELECT 94 * + ( + ( col1 ) ) FROM tab0
----
1974
7614
94

onlyif mysql # DIV for integer division: 
query I rowsort label-836
SELECT col2 DIV 63 - col2 col1 FROM tab1
----
-59
-67
-95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-836
SELECT col2 / 63 - col2 col1 FROM tab1
----
-59
-67
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-837
SELECT ( - MIN( col1 ) ) * 65 FROM tab1
----
-325

skipif mysql # not compatible
query I rowsort label-837
SELECT ( - MIN ( col1 ) ) * 65 FROM tab1
----
-325

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) <> ( - 70 + - 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 54 * col2 col1 FROM tab2
----
1242
2160
3132

query I rowsort
SELECT 61 + col1 * + col0 AS col0 FROM tab1
----
4338
486
775

query I rowsort
SELECT 46 * + 64 + + col2 FROM tab0
----
2954
2991
3043

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

onlyif mysql # aggregate syntax: 
query I rowsort label-843
SELECT ALL - 13 - COUNT( DISTINCT 33 + col0 ) AS col0 FROM tab1 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-843
SELECT ALL - 13 - COUNT ( DISTINCT 33 + col0 ) AS col0 FROM tab1 AS cor0
----
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-844
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-844
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2
----
NULL

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-846
SELECT col1 DIV col0 - col1 FROM tab2
----
-50
-67
-76

skipif mysql # not compatible
query I rowsort label-846
SELECT col1 / col0 - col1 FROM tab2
----
-50
-67
-76

onlyif mysql # DIV for integer division: 
query I rowsort label-847
SELECT DISTINCT + 30 - col1 DIV - col0 col1 FROM tab0
----
30
35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-847
SELECT DISTINCT + 30 - col1 / - col0 col1 FROM tab0
----
30
35

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

query I rowsort
SELECT DISTINCT col0 * - col1 FROM tab1 AS cor0 WHERE NOT + 78 NOT IN ( + 13 / - col1 + col1 * col2 )
----

query I rowsort
SELECT + col2 * ( col0 * col1 ) FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
25075
290836
68544

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-852
SELECT - col1 DIV - ( + col0 * col1 ) FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-852
SELECT - col1 / - ( + col0 * col1 ) FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-853
SELECT + 49 * + COUNT( * ) AS col0 FROM tab0 cor0
----
147

skipif mysql # not compatible
query I rowsort label-853
SELECT + 49 * + COUNT ( * ) AS col0 FROM tab0 cor0
----
147

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE - ( + col2 ) + ( + col0 + col2 ) / - col0 BETWEEN NULL AND col0
----

query I rowsort
SELECT ALL - 90 * - 88 AS col1 FROM tab2 AS cor0
----
7920
7920
7920

query I rowsort
SELECT 37 + col1 * ( col0 + col0 ) AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-858
SELECT ALL CAST( NULL AS SIGNED ) * col0 FROM tab2 cor0 WHERE ( 20 ) NOT BETWEEN + 3 - + col1 AND NULL
----

skipif mysql # not compatible
query I rowsort label-858
SELECT ALL CAST ( NULL AS INTEGER ) * col0 FROM tab2 cor0 WHERE ( 20 ) NOT BETWEEN + 3 - + col1 AND NULL
----

query I rowsort
SELECT DISTINCT 63 * col1 AS col0 FROM tab1
----
2961
315
882

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 64 * - ( ( - col1 ) )
----

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

skipif mysql # not compatible
query I rowsort label-861
SELECT DISTINCT + 81 * - COUNT ( * ) FROM tab1
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT + + 99 DIV - - col1 FROM tab1 AS cor0
----
19
2
7

skipif mysql # not compatible
query I rowsort label-862
SELECT + + 99 / - - col1 FROM tab1 AS cor0
----
19
2
7

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 23 - + 68 <= ( NULL )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 19 * col2 <> - 33 * + col1
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL = ( col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-868
SELECT COUNT( * ) + - 14 * 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1209

skipif mysql # not compatible
query I rowsort label-868
SELECT COUNT ( * ) + - 14 * 87 AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-1209

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-869
SELECT + + COUNT( * ) * + COUNT( CAST( 65 AS DECIMAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

skipif mysql # not compatible
query I rowsort label-869
SELECT + + COUNT ( * ) * + COUNT ( CAST ( 65 AS REAL ) ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
81

query I rowsort
SELECT col0 * + 22 + 71 AS col0 FROM tab1 WHERE col2 * 53 = - 47
----

query I rowsort
SELECT - 64 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 601ec439a72fb4786a9cb7a6547ace5e

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-874
SELECT DISTINCT + 94 + - COUNT( * ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-874
SELECT DISTINCT + 94 + - COUNT ( * ) FROM tab1 AS cor0
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, - col0 * + col1 * - col1 col2 FROM tab1 AS cor0
----
59
2125
68
201019
96
9996

query I rowsort
SELECT ALL - col1 * col0 * col2 + + col2 * + col1 + + col1 AS col0 FROM tab0 AS cor0
----
-18039
-53217
-9503

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

query I rowsort
SELECT 88 AS col1 FROM tab1 AS cor0 WHERE NOT + - 1 IS NULL OR ( + col2 * - 61 ) BETWEEN 47 - + col2 * 51 AND col2 * 11
----
88
88
88

query I rowsort
SELECT ALL 40 - - col0 AS col1 FROM tab0 AS cor0
----
127
137
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-881
SELECT DISTINCT + COUNT( * ) - - + 78 AS col0 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-881
SELECT DISTINCT + COUNT ( * ) - - + 78 AS col0 FROM tab2 AS cor0
----
81

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

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( - 94 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col2 FROM tab1 WHERE - 5 IN ( + 4 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-887
SELECT ALL - 74 DIV - - col1 FROM tab2
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-887
SELECT ALL - 74 / - - col1 FROM tab2
----
-1
-1
0

query I rowsort
SELECT - 0 + - 92 FROM tab2
----
-92
-92
-92

query I rowsort
SELECT ALL col1 AS col1 FROM tab2 WHERE ( + 1 / - col0 ) IS NULL AND ( NULL ) = - 27
----

onlyif mysql # DIV for integer division: 
query I rowsort label-890
SELECT DISTINCT col0 DIV - - col2 DIV col2 * 36 * + col2 AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-890
SELECT DISTINCT col0 / - - col2 / col2 * 36 * + col2 AS col2 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-891
SELECT DISTINCT + CAST( col0 AS SIGNED ) + + + col0 DIV col1 + - col0 AS col1 FROM tab0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-891
SELECT DISTINCT + CAST ( col0 AS INTEGER ) + + + col0 / col1 + - col0 AS col1 FROM tab0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-892
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> + + col1 + col2
----
0

skipif mysql # not compatible
query I rowsort label-892
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE ( NULL ) <> + + col1 + col2
----
0

query I rowsort
SELECT ALL - col2 + col1 * - ( - - 48 ) FROM tab1 AS cor0
----
-2324
-299
-768

query I rowsort
SELECT DISTINCT + - col0 + 72 FROM tab1 AS cor0
----
-13
-19
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( col1 ) BETWEEN + 23 AND + col2
----
51
14
96
85
5
59

query I rowsort
SELECT - 27 * + col2 FROM tab0 AS cor0 WHERE NOT col1 * + + col1 > ( + col0 / - col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-897
SELECT - COUNT( * ), + 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
5

skipif mysql # not compatible
query II rowsort label-897
SELECT - COUNT ( * ), + 5 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9
5

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

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 JOIN tab2 cor1 ON NULL IS NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-900
SELECT DISTINCT col1, + CAST( NULL AS SIGNED ) FROM tab1 WHERE ( NULL ) IS NULL
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-900
SELECT DISTINCT col1, + CAST ( NULL AS INTEGER ) FROM tab1 WHERE ( NULL ) IS NULL
----
14
NULL
47
NULL
5
NULL

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-901
SELECT CAST( NULL AS SIGNED ) * - ( + col0 ), - CAST( NULL AS DECIMAL ) * + col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-901
SELECT CAST ( NULL AS INTEGER ) * - ( + col0 ), - CAST ( NULL AS REAL ) * + col2 FROM tab0
----
NULL
NULL
NULL
NULL
NULL
NULL

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

skipif mysql # not compatible
query I rowsort label-902
SELECT - ( - COUNT ( - col1 ) ) FROM tab2
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 59 * + col2 * col0 col2 FROM tab2 AS cor0
----
151040
256650
62422

onlyif mysql # aggregate syntax: 
query I rowsort label-905
SELECT DISTINCT + 31 - + AVG ( col2 ) * - COUNT( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 / + - col0 * - col0 * + 52 * col1 + 95 < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-905
SELECT DISTINCT + 31 - + AVG ( col2 ) * - COUNT ( * ) AS col2 FROM tab0 cor0 WHERE NOT col2 / + - col0 * - col0 * + 52 * col1 + 95 < NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) IN ( 89, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-907
SELECT ALL COUNT( * ) - COUNT( * ) * - ( 46 + 20 ) FROM tab0 AS cor0 WHERE ( ( - col2 ) * - - 46 * + col1 ) IS NOT NULL
----
201

skipif mysql # not compatible
query I rowsort label-907
SELECT ALL COUNT ( * ) - COUNT ( * ) * - ( 46 + 20 ) FROM tab0 AS cor0 WHERE ( ( - col2 ) * - - 46 * + col1 ) IS NOT NULL
----
201

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-909
SELECT + - COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 43 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-909
SELECT + - COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - 43 NOT BETWEEN NULL AND NULL
----
0

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-912
SELECT ALL + 75, + COUNT( * ) * - MAX( ALL - col1 ) AS col2 FROM tab1
----
75
15

skipif mysql # not compatible
query II rowsort label-912
SELECT ALL + 75, + COUNT ( * ) * - MAX ( ALL - col1 ) AS col2 FROM tab1
----
75
15

query I rowsort
SELECT ALL - 85 * + col2 FROM tab0 WHERE NULL NOT IN ( - col2 )
----

query I rowsort
SELECT DISTINCT + 59 + - col2 - 2 AS col0 FROM tab0
----
-42
10
47

onlyif mysql # DIV for integer division: 
query II rowsort label-915
SELECT ( + col2 ) DIV - col0 + - 91 AS col0, - 95 AS col1 FROM tab0
----
-91
-95
-92
-95
-94
-95

skipif mysql # not compatible
query II rowsort label-915
SELECT ( + col2 ) / - col0 + - 91 AS col0, - 95 AS col1 FROM tab0
----
-91
-95
-92
-95
-94
-95

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE NOT NULL < - 9
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col0 FROM tab1 WHERE NULL IS NULL
----
-51
-85
-91

query I rowsort
SELECT DISTINCT 91 * ( 78 ) FROM tab0
----
7098

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-79

query I rowsort
SELECT DISTINCT - ( - 24 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
24

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-921
SELECT - CAST( NULL AS SIGNED ) / + MIN( DISTINCT + - ( col1 ) ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-921
SELECT - CAST ( NULL AS INTEGER ) / + MIN ( DISTINCT + - ( col1 ) ) AS col2 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-922
SELECT ALL - 10 DIV - col2 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-922
SELECT ALL - 10 / - col2 FROM tab0
----
0
0
1

query I rowsort
SELECT DISTINCT - - 28 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
28

query I rowsort
SELECT DISTINCT + 36 + + col2 + - + col2 FROM tab0
----
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * - col1 + - + 82 col1 FROM tab2 cor0
----
2264
4846
4943

query I rowsort
SELECT DISTINCT ( - - col2 ) * + - 40 FROM tab1 AS cor0 WHERE ( NOT col0 IS NULL )
----
-2360
-2720
-3840

onlyif mysql # aggregate syntax: 
query I rowsort label-927
SELECT DISTINCT ( + 76 ) + - + ( COUNT( * ) ) FROM tab1 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-927
SELECT DISTINCT ( + 76 ) + - + ( COUNT ( * ) ) FROM tab1 AS cor0
----
73

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-928
SELECT + + 48 + + 63 + - 69 * + ( + CAST( - - 57 AS SIGNED ) ) - - - 82 + - ( - 63 ) * - col1 col0 FROM tab1 AS cor0
----
-4219
-4786
-6865

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-928
SELECT + + 48 + + 63 + - 69 * + ( + CAST ( - - 57 AS INTEGER ) ) - - - 82 + - ( - 63 ) * - col1 col0 FROM tab1 AS cor0
----
-4219
-4786
-6865

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT 59 IS NULL )
----

query II rowsort
SELECT ALL + col1 - + col0 AS col2, - col2 + - 72 * - - col2 * - 38 FROM tab0 AS cor0
----
-66
27350
-96
270765
66
128545

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 2 * - col2 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-932
SELECT + COUNT ( * ) * - 4 FROM tab1
----
-12

query I rowsort
SELECT + col2 * 91 AS col2 FROM tab2
----
2093
3640
5278

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

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

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

query I rowsort
SELECT ALL + 66 AS col2 FROM tab2 WHERE NOT + + 63 * - - col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - - col1 ) col0 FROM tab2
----
51
67
77

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

query I rowsort
SELECT DISTINCT - 43 * 84 AS col0 FROM tab2 AS cor0
----
-3612

onlyif mysql # DIV for integer division: 
query I rowsort label-940
SELECT + 53 DIV - 76 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-940
SELECT + 53 / - 76 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT ALL + + col1 DIV + 13 FROM tab1 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-941
SELECT ALL + + col1 / + 13 FROM tab1 AS cor0
----
0
1
3

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

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

query I rowsort
SELECT + - 24 AS col0 FROM tab1 cor0
----
-24
-24
-24

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

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

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab2 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT - - 59 * - col2 + - - col2 * - - 16 FROM tab2 AS cor0
----
-1720
-2494
-989

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 83 <> + col2 + - ( + 26 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-950
SELECT + - 5 * col2 DIV + 81 AS col0 FROM tab0 AS cor0
----
-2
-6
0

skipif mysql # not compatible
query I rowsort label-950
SELECT + - 5 * col2 / + 81 AS col0 FROM tab0 AS cor0
----
-2
-6
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-952
SELECT - CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT + col0 - - - col2 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-952
SELECT - CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT + col0 - - - col2 IS NULL
----
NULL
NULL
NULL

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

query I rowsort
SELECT - - 81 AS col1 FROM tab0 cor0
----
81
81
81

query I rowsort
SELECT col2 * + col0 - 31 / - 90 FROM tab2 cor0 WHERE NOT + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-956
SELECT ( 78 ) + - COUNT( * ) FROM tab2 WHERE NOT ( - + col1 ) > NULL
----
78

skipif mysql # not compatible
query I rowsort label-956
SELECT ( 78 ) + - COUNT ( * ) FROM tab2 WHERE NOT ( - + col1 ) > NULL
----
78

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

query I rowsort
SELECT 52 * + + ( + col0 ) AS col1 FROM tab0 AS cor0
----
4524
5044
780

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-959
SELECT ALL - - CAST( NULL AS SIGNED ) * + + ( + + 41 ) + - + col2 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-959
SELECT ALL - - CAST ( NULL AS INTEGER ) * + + ( + + 41 ) + - + col2 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 + + col0 * + col0 FROM tab2 AS cor0
----
2167
4173
5692

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 39 + col2 col0 FROM tab0 cor0
----
138
49
86

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

query I rowsort
SELECT ALL + 77 * ( 0 ) FROM tab0 WHERE NOT - + 27 IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col2 + 63 * + - 4 FROM tab1
----
-311
-320
-348

query I rowsort
SELECT + + 40 * + + col2 * col2 + + 71 * + col0 AS col0 FROM tab1 AS cor0
----
145275
191421
372261

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - 45 * - - ( + + 33 ) > 99 + + 65 * + - 6
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-968
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( ( 79 ) AS DECIMAL ) NOT IN ( - 72 + + col1, 9 + col1 * - 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-968
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( ( 79 ) AS REAL ) NOT IN ( - 72 + + col1, 9 + col1 * - 9 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 93 * - col2 * col1 - - col0 - + col1 FROM tab2 AS cor0
----
-109094
-286453
-361390

query I rowsort
SELECT ALL + - 96 + 28 AS col1 FROM tab0 AS cor0
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-971
SELECT + COUNT( * ) - 14 AS col1 FROM tab2 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-971
SELECT + COUNT ( * ) - 14 AS col1 FROM tab2 AS cor0
----
-11

query I rowsort
SELECT 60 / AVG ( ALL col0 ) AS col1 FROM tab2 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT ALL + 65 * + + COUNT( ALL col0 ) AS col1 FROM tab1
----
195

skipif mysql # not compatible
query I rowsort label-973
SELECT ALL + 65 * + + COUNT ( ALL col0 ) AS col1 FROM tab1
----
195

query I rowsort
SELECT ALL + col0 * + + col2 * 77 FROM tab1
----
376992
386155
476476

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-979
SELECT ALL - + 8 DIV + 13 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-979
SELECT ALL - + 8 / + 13 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 43 IS NOT NULL
----

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

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

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

query I rowsort
SELECT ( + col0 ) * col2 + + 55 + - + col0 AS col1 FROM tab0
----
745
838
9561

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

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

query I rowsort
SELECT - col1 + - 73 - + - col2 AS col2 FROM tab0
----
-107
-84
25

query I rowsort
SELECT + col2 + + col0 + col1 AS col2 FROM tab1
----
149
161
206

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

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - col1 AND - + 81 * + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-989
SELECT DISTINCT - + ( - 96 ) * - - SUM( + 84 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
24192

skipif mysql # not compatible
query I rowsort label-989
SELECT DISTINCT - + ( - 96 ) * - - SUM ( + 84 ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
24192

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

skipif mysql # not compatible
query I rowsort label-990
SELECT - - CAST ( NULL AS INTEGER ) * - SUM ( col1 ) * + ( + + 61 ) - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + - + col1 + + col2 col0 FROM tab1 AS cor0
----
113
178
89

onlyif mysql # DIV for integer division: 
query I rowsort label-992
SELECT col0 DIV - col0 - + col0 DIV ( + - 71 ) AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-992
SELECT col0 / - col0 - + col0 / ( + - 71 ) AS col0 FROM tab0
----
-1
0
0

query I rowsort
SELECT 85 - ( - col2 ) AS col0 FROM tab2
----
108
125
143

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - 95 NOT BETWEEN NULL AND col1 + + + col2 * 51
----

query I rowsort
SELECT - 30 + + col0 FROM tab2
----
16
34
45

query I rowsort
SELECT + col1 * + + 68 FROM tab2 AS cor0 WHERE col2 * + + ( - col0 ) + - col0 IS NOT NULL
----
3468
4556
5236

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

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

query II rowsort
SELECT + 66 AS col2, col2 * col2 FROM tab0 AS cor0
----
66
100
66
2209
66
9801

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - col1 + col2 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1001
SELECT ALL + COUNT( * ) * MAX( DISTINCT col0 ) * + COUNT( col0 ) col0 FROM tab0
----
873

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1002
SELECT ALL 4 * - + CAST( + - AVG ( + + ( - 48 ) ) AS SIGNED ) AS col0 FROM tab0
----
-192

skipif mysql # not compatible
query I rowsort label-1002
SELECT ALL 4 * - + CAST ( + - AVG ( + + ( - 48 ) ) AS INTEGER ) AS col0 FROM tab0
----
-192

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

skipif mysql # not compatible
query I rowsort label-1003
SELECT SUM ( - + ( - col2 ) ) FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - - 87 ) col0 FROM tab0
----
-87

onlyif mysql # aggregate syntax: 
query II rowsort label-1005
SELECT DISTINCT - 38 AS col0, COUNT( * ) FROM tab0
----
-38
3

skipif mysql # not compatible
query II rowsort label-1005
SELECT DISTINCT - 38 AS col0, COUNT ( * ) FROM tab0
----
-38
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1006
SELECT DISTINCT - MAX( ALL 42 ) FROM tab2
----
-42

skipif mysql # not compatible
query I rowsort label-1006
SELECT DISTINCT - MAX ( ALL 42 ) FROM tab2
----
-42

query I rowsort
SELECT ALL - 30 * - + col0 AS col0 FROM tab1
----
1530
2550
2730

onlyif mysql # aggregate syntax: 
query I rowsort label-1008
SELECT DISTINCT + COUNT( * ) * - ( 75 ) FROM tab0
----
-225

skipif mysql # not compatible
query I rowsort label-1008
SELECT DISTINCT + COUNT ( * ) * - ( 75 ) FROM tab0
----
-225

query II rowsort
SELECT ALL col1, - col2 * + 71 FROM tab0 WHERE NOT + col1 + - - col2 * col1 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col0 BETWEEN + col2 + - col0 AND + ( - 12 ) / + col1 * 54
----

query I rowsort
SELECT - - col1 * + col2 * - 5 * - col0 AS col2 FROM tab0 AS cor0
----
285525
48015
91350

onlyif mysql # aggregate syntax: 
query II rowsort label-1012
SELECT ALL 55 AS col2, + SUM( DISTINCT + col2 ) AS col2 FROM tab0 WHERE - col1 <= 65
----
55
156

skipif mysql # not compatible
query II rowsort label-1012
SELECT ALL 55 AS col2, + SUM ( DISTINCT + col2 ) AS col2 FROM tab0 WHERE - col1 <= 65
----
55
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 16 * - col1 + + col0 + + - 37 * + - 84, - col1 col2 FROM tab2
----
1940
-77
2111
-67
2338
-51

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

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

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

query II rowsort
SELECT + col2 * - 45 AS col1, + col0 AS col1 FROM tab0 AS cor0
----
-2115
15
-4455
97
-450
87

query I rowsort
SELECT DISTINCT 48 + + ( - ( + 58 ) ) FROM tab2 AS cor0
----
-10

query III rowsort
SELECT * FROM tab2 WHERE NULL NOT BETWEEN col2 * - col1 AND + 52 / col1
----

query I rowsort
SELECT ALL + col0 * + + 47 FROM tab1
----
2397
3995
4277

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1021
SELECT ALL + COUNT( * ) DIV + 9 * ( - 56 ) DIV COUNT( * ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1021
SELECT ALL + COUNT ( * ) / + 9 * ( - 56 ) / COUNT ( * ) AS col2 FROM tab0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT - 8 + + 68 DIV + COUNT( * ) FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-1022
SELECT - 8 + + 68 / + COUNT ( * ) FROM tab2
----
14

query I rowsort
SELECT - col0 + + 5 AS col2 FROM tab2 AS cor0
----
-41
-59
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-1024
SELECT + 34 * 38 + ( + 56 ) - - col0 DIV - col1 + + 57 FROM tab0 AS cor0
----
1308
1401
1405

skipif mysql # not compatible
query I rowsort label-1024
SELECT + 34 * 38 + ( + 56 ) - - col0 / - col1 + + 57 FROM tab0 AS cor0
----
1308
1401
1405

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

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

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

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

query I rowsort
SELECT + 80 AS col0 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT - col2 * + 58 AS col1 FROM tab0
----
-2726
-5742
-580

query III rowsort
SELECT * FROM tab0 WHERE NOT - 73 BETWEEN - 25 * + - col0 - ( col1 ) AND col2 * 54 * - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1035
SELECT ALL COUNT( * ) AS col1, - 46 AS col1 FROM tab1 cor0
----
3
-46

skipif mysql # not compatible
query II rowsort label-1035
SELECT ALL COUNT ( * ) AS col1, - 46 AS col1 FROM tab1 cor0
----
3
-46

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1037
SELECT ALL 33 * COUNT( * ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-1037
SELECT ALL 33 * COUNT ( * ) AS col2 FROM tab2
----
99

query I rowsort
SELECT 78 * - ( - - col1 ) * 36 FROM tab1
----
-131976
-14040
-39312

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL <= ( NULL )
----

query I rowsort
SELECT DISTINCT 0 + - col1 + - ( + - 58 ) FROM tab0
----
-23
37
57

query I rowsort
SELECT ALL + 2 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( col1, 35, + + 71 + - + 58, + + col2, col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1043
SELECT ALL - COUNT( * ) * - - ( 74 ) AS col1 FROM tab1 cor0
----
-222

skipif mysql # not compatible
query I rowsort label-1043
SELECT ALL - COUNT ( * ) * - - ( 74 ) AS col1 FROM tab1 cor0
----
-222

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 >= - 81
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * + 6 col2 FROM tab0 AS cor0
----
-522
-582
-90

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT ALL + col2 + - 57 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 59 + 4 FROM tab0 AS cor0
----
-55

query I rowsort
SELECT ALL 27 * col0 + + col2 - 90 FROM tab2 AS cor0
----
1175
1678
1993

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1049
SELECT ALL 31 * col2 col2, CAST( + - 65 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
1829
-65
2108
-65
2976
-65

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1049
SELECT ALL 31 * col2 col2, CAST ( + - 65 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
1829
-65
2108
-65
2976
-65

query I rowsort
SELECT + col2 + + 59 * - + col2 FROM tab1
----
-3422
-3944
-5568

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 + ( col0 ) col0 FROM tab1 AS cor0
----
102
170
182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 - - ( - 40 ) col2 FROM tab1 cor0
----
37
37
37

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 81 - + + col2 col1, 74 + - 98 col2 FROM tab0 cor0
----
-128
-24
-180
-24
-91
-24

query I rowsort
SELECT + 48 - - col1 * + 11 FROM tab2 AS cor0
----
609
785
895

query I rowsort
SELECT 28 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE ( NULL ) IS NULL
----
9 values hashing to aad32232c428b3ecb5ada63f7e9b0a97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 99 col2 FROM tab1 AS cor0 WHERE NOT NULL <> - 89 + - 21
----

query I rowsort
SELECT DISTINCT + - 28 FROM tab1 cor0
----
-28

query I rowsort
SELECT - col2 * + + col1 + col2 AS col2 FROM tab0 cor0
----
-200
-3760
0

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL < 77 / + col1
----

query I rowsort
SELECT - - 51 * + - 5 AS col1 FROM tab1 cor0
----
-255
-255
-255

onlyif mysql # DIV for integer division: 
query I rowsort label-1062
SELECT DISTINCT - col2 DIV col1 FROM tab1 WHERE NOT col2 IS NULL
----
-1
-11
-6

skipif mysql # not compatible
query I rowsort label-1062
SELECT DISTINCT - col2 / col1 FROM tab1 WHERE NOT col2 IS NULL
----
-1
-11
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 46 col2, - 79 + col2 / col0 FROM tab1 WHERE NOT + col1 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1065
SELECT ALL MIN( DISTINCT - 80 ) col1, + CAST( NULL AS SIGNED ) FROM tab1
----
-80
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1065
SELECT ALL MIN ( DISTINCT - 80 ) col1, + CAST ( NULL AS INTEGER ) FROM tab1
----
-80
NULL

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

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

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

query I rowsort
SELECT + 39 * col0 * - col0 FROM tab0 AS cor0
----
-295191
-366951
-8775

query I rowsort
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE NOT col1 IS NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1070
SELECT - + col2 * + CAST( - 97 AS SIGNED ) col2 FROM tab1 AS cor0
----
5723
6596
9312

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1070
SELECT - + col2 * + CAST ( - 97 AS INTEGER ) col2 FROM tab1 AS cor0
----
5723
6596
9312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - ( - 11 ) * - col2 col2 FROM tab2 AS cor0
----
253
440
638

query I rowsort
SELECT ALL - 11 + col2 * - - col0 AS col2 FROM tab2 AS cor0
----
1047
2549
4339

query I rowsort
SELECT 96 * + - 36 + + - 5 * - + col0 AS col1 FROM tab2 AS cor0
----
-3081
-3136
-3226

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

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

query I rowsort
SELECT ALL - col0 / 96 AS col2 FROM tab1 AS cor0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1076
SELECT DISTINCT - ( + SUM( DISTINCT + - col2 ) ) + - + SUM( ALL + + col0 ) FROM tab1 cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1076
SELECT DISTINCT - ( + SUM ( DISTINCT + - col2 ) ) + - + SUM ( ALL + + col0 ) FROM tab1 cor0
----
-4

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

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

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

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

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

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

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

query II rowsort
SELECT ALL + col1 + - col1, col1 AS col0 FROM tab2
----
0
51
0
67
0
77

query I rowsort
SELECT - col1 * - col1 + + col1 FROM tab1
----
210
2256
30

query III rowsort
SELECT * FROM tab0 WHERE col0 < + col1
----
15
81
47

query I rowsort
SELECT ( - 72 ) + col0 FROM tab2 cor0
----
-26
-8
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1085
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2, - CAST( NULL AS SIGNED ), 62 )
----

skipif mysql # not compatible
query III rowsort label-1085
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2, - CAST ( NULL AS INTEGER ), 62 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1086
SELECT 55 + - COUNT( * ) FROM tab0 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-1086
SELECT 55 + - COUNT ( * ) FROM tab0 AS cor0
----
52

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1089
SELECT DISTINCT * FROM tab2 WHERE NOT + 0 * CAST( - col2 AS SIGNED ) * + - col0 + + col2 * col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1089
SELECT DISTINCT * FROM tab2 WHERE NOT + 0 * CAST ( - col2 AS INTEGER ) * + - col0 + + col2 * col1 IS NOT NULL
----

query I rowsort
SELECT - col0 * col0 * + 25 FROM tab0
----
-189225
-235225
-5625

query I rowsort
SELECT - - 42 * + col2 + - - col0 + + + col1 FROM tab1 AS cor0
----
2568
2994
4097

onlyif mysql # aggregate syntax: 
query I rowsort label-1092
SELECT ALL COUNT( * ) * - COUNT( * ) * + 30 AS col0 FROM tab1 AS cor0
----
-270

skipif mysql # not compatible
query I rowsort label-1092
SELECT ALL COUNT ( * ) * - COUNT ( * ) * + 30 AS col0 FROM tab1 AS cor0
----
-270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1093
SELECT ALL - AVG ( DISTINCT + CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1093
SELECT ALL - AVG ( DISTINCT + CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 66 FROM tab2 AS cor0 WHERE col0 * + + col1 / 29 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1096
SELECT - COUNT( + col0 ) * COUNT( * ) - + 36 - + 88 FROM tab1 WHERE NOT - + ( col1 ) IS NULL
----
-133

skipif mysql # not compatible
query I rowsort label-1096
SELECT - COUNT ( + col0 ) * COUNT ( * ) - + 36 - + 88 FROM tab1 WHERE NOT - + ( col1 ) IS NULL
----
-133

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1097
SELECT ALL + 89, + CAST( col1 AS SIGNED ) AS col2 FROM tab1
----
89
14
89
47
89
5

skipif mysql # not compatible
query II rowsort label-1097
SELECT ALL + 89, + CAST ( col1 AS INTEGER ) AS col2 FROM tab1
----
89
14
89
47
89
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1098
SELECT - SUM( DISTINCT + ( - + col1 ) ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1098
SELECT - SUM ( DISTINCT + ( - + col1 ) ) AS col1 FROM tab2
----
195

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1099
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + - 64 * - col0 AS col1 FROM tab0 WHERE NULL > - - col2 / - - 16
----

skipif mysql # not compatible
query I rowsort label-1099
SELECT DISTINCT - CAST ( NULL AS REAL ) + - 64 * - col0 AS col1 FROM tab0 WHERE NULL > - - col2 / - - 16
----

query I rowsort
SELECT - 7 * + ( + 42 ) FROM tab0
----
-294
-294
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-1101
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL > + 30
----
0

skipif mysql # not compatible
query I rowsort label-1101
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL > + 30
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1102
SELECT - col2, - col1 + 17 + + col1 DIV - col1 AS col1 FROM tab0
----
-10
-5
-47
-65
-99
15

skipif mysql # not compatible
query II rowsort label-1102
SELECT - col2, - col1 + 17 + + col1 / - col1 AS col1 FROM tab0
----
-10
-5
-47
-65
-99
15

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

query II rowsort
SELECT ALL 53, col1 FROM tab2
----
53
51
53
67
53
77

query I rowsort
SELECT + 74 * + - 92 AS col1 FROM tab0
----
-6808
-6808
-6808

query II rowsort
SELECT 57, col0 AS col1 FROM tab2
----
57
46
57
64
57
75

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 94 + - col2 + - col1 NOT BETWEEN ( - col1 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1108
SELECT DISTINCT - - MIN( DISTINCT - - 72 ) * + 76 FROM tab1 WHERE NOT - col0 < - col0
----
5472

skipif mysql # not compatible
query I rowsort label-1108
SELECT DISTINCT - - MIN ( DISTINCT - - 72 ) * + 76 FROM tab1 WHERE NOT - col0 < - col0
----
5472

onlyif mysql # aggregate syntax: 
query I rowsort label-1109
SELECT ALL - SUM( DISTINCT 0 ) * + - 75 * COUNT( * ) + - 10 AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-1109
SELECT ALL - SUM ( DISTINCT 0 ) * + - 75 * COUNT ( * ) + - 10 AS col2 FROM tab2
----
-10

query I rowsort
SELECT + col2 + col2 - - ( - + col0 ) FROM tab1
----
141
33
45

query I rowsort
SELECT DISTINCT - + col1 + + - col2 FROM tab1 cor0
----
-110
-115
-64

onlyif mysql # DIV for integer division: 
query I rowsort label-1112
SELECT ALL col1 DIV - col0 + - 62 - - col1 + + col1 * 22 + - col1 * 16 AS col0 FROM tab0 AS cor0
----
-55
500
85

skipif mysql # not compatible
query I rowsort label-1112
SELECT ALL col1 / - col0 + - 62 - - col1 + + col1 * 22 + - col1 * 16 AS col0 FROM tab0 AS cor0
----
-55
500
85

query I rowsort
SELECT DISTINCT col0 + + + 68 AS col2 FROM tab0 AS cor0
----
155
165
83

query I rowsort
SELECT 6 + + col0 + + 99 * - - col0 * + - col2 FROM tab2 AS cor0
----
-104690
-253370
-430569

query I rowsort
SELECT DISTINCT - - 73 + - 23 * + + ( - + col0 ) + + 4 + - 9 - - - col1 FROM tab1 AS cor0
----
1227
2018
2114

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1117
SELECT ALL + 91 + COUNT( * ) FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-1117
SELECT ALL + 91 + COUNT ( * ) FROM tab1
----
94

query I rowsort
SELECT ALL 43 + + col0 FROM tab2 AS cor0
----
107
118
89

query I rowsort
SELECT ALL + 57 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT DISTINCT - MAX( col2 ) * COUNT( * ) FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1120
SELECT DISTINCT - MAX ( col2 ) * COUNT ( * ) FROM tab1
----
-288

onlyif mysql # aggregate syntax: 
query I rowsort label-1121
SELECT DISTINCT MIN( DISTINCT 44 ) * + - 9 FROM tab1 AS cor0
----
-396

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT MIN ( DISTINCT 44 ) * + - 9 FROM tab1 AS cor0
----
-396

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1123
SELECT 50 * + MAX( - - col2 ) AS col1 FROM tab2 AS cor0
----
2900

skipif mysql # not compatible
query I rowsort label-1123
SELECT 50 * + MAX ( - - col2 ) AS col1 FROM tab2 AS cor0
----
2900

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 19 NOT BETWEEN 90 AND col2
----

query I rowsort
SELECT - ( - 63 ) * 60 + - - col0 AS col0 FROM tab1 AS cor0
----
3831
3865
3871

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 1 col0, - 83 FROM tab0 AS cor0
----
-1
-83
-1
-83
-1
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT - 88, - 26 AS col1, + 31 col1 FROM tab2 AS cor0
----
9 values hashing to e4619f6475e0495bcae24bcbbd1ae258

query II rowsort
SELECT 46 * + + 73, - col1 AS col1 FROM tab1
----
3358
-14
3358
-47
3358
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1131
SELECT DISTINCT COUNT( DISTINCT CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1131
SELECT DISTINCT COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
0

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1135
SELECT DISTINCT + - MIN( - col2 ), + 60 DIV + - 79 AS col1 FROM tab2 AS cor0
----
58
0

skipif mysql # not compatible
query II rowsort label-1135
SELECT DISTINCT + - MIN ( - col2 ), + 60 / + - 79 AS col1 FROM tab2 AS cor0
----
58
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1138
SELECT + 57 + + SUM( - - col0 ) col0 FROM tab0
----
256

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1138
SELECT + 57 + + SUM ( - - col0 ) col0 FROM tab0
----
256

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1139
SELECT DISTINCT - CAST( 43 AS SIGNED ) * col2 + + col0 * col0 AS col2 FROM tab0
----
-1796
5152
7139

skipif mysql # not compatible
query I rowsort label-1139
SELECT DISTINCT - CAST ( 43 AS INTEGER ) * col2 + + col0 * col0 AS col2 FROM tab0
----
-1796
5152
7139

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT DISTINCT - + 83 - + COUNT( * ) FROM tab1 AS cor0
----
-86

skipif mysql # not compatible
query I rowsort label-1140
SELECT DISTINCT - + 83 - + COUNT ( * ) FROM tab1 AS cor0
----
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-1141
SELECT + + COUNT( ALL + 69 ) FROM tab1 cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-1141
SELECT + + COUNT ( ALL + 69 ) FROM tab1 cor0 WHERE col2 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT ALL - + MIN( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE + 23 IS NOT NULL
----
-5

skipif mysql # not compatible
query I rowsort label-1142
SELECT ALL - + MIN ( DISTINCT + col1 ) FROM tab1 AS cor0 WHERE + 23 IS NOT NULL
----
-5

query III rowsort
SELECT * FROM tab2 WHERE NULL = - col0 - 77
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1144
SELECT * FROM tab2 WHERE + 66 * - CAST( col1 AS SIGNED ) NOT BETWEEN ( ( + col2 ) - - col0 + 20 * + col0 ) AND 27 + + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1144
SELECT * FROM tab2 WHERE + 66 * - CAST ( col1 AS INTEGER ) NOT BETWEEN ( ( + col2 ) - - col0 + 20 * + col0 ) AND 27 + + 98
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - 70 + + ( col0 ) * - - col2 FROM tab0 WHERE - 74 IN ( - col1 )
----

query I rowsort
SELECT DISTINCT - col1 + + ( + 71 ) + - col0 + - + col0 * - + col1 FROM tab2
----
2320
4858
4954

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT ALL - SUM( - - col1 ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1147
SELECT ALL - SUM ( - - col1 ) FROM tab2
----
-195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - col0 col0 FROM tab1
----
-37
-44
-80

query I rowsort
SELECT ALL ( - 97 ) * col2 FROM tab0 WHERE NULL IS NOT NULL
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1152
SELECT + col1 DIV - col2 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST( col0 AS SIGNED ) * - col2 IS NULL
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-1152
SELECT + col1 / - col2 + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT CAST ( col0 AS INTEGER ) * - col2 IS NULL
----
-53
-68
-78

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

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

query I rowsort
SELECT + 65 FROM tab2 AS cor0 WHERE NOT ( NULL ) > + + 59
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1156
SELECT ALL MAX( DISTINCT - + 4 ) FROM tab2
----
-4

skipif mysql # not compatible
query I rowsort label-1156
SELECT ALL MAX ( DISTINCT - + 4 ) FROM tab2
----
-4

query I rowsort
SELECT ALL - 66 * + 95 FROM tab1
----
-6270
-6270
-6270

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

query I rowsort
SELECT 81 + + 77 AS col1 FROM tab2
----
158
158
158

onlyif mysql # aggregate syntax: 
query I rowsort label-1160
SELECT - COUNT( * ) + + 58 AS col0 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-1160
SELECT - COUNT ( * ) + + 58 AS col0 FROM tab1
----
55

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1162
SELECT ALL SUM( - 23 ) + + COUNT( * ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-1162
SELECT ALL SUM ( - 23 ) + + COUNT ( * ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT - col1 + + col0 * col0 * + + col1 + col1 FROM tab2
----
107916
315392
376875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1164
SELECT col2 * + CAST( + - 88 AS SIGNED ) + + col1 + - col1 AS col1 FROM tab0
----
-4136
-8712
-880

skipif mysql # not compatible
query I rowsort label-1164
SELECT col2 * + CAST ( + - 88 AS INTEGER ) + + col1 + - col1 AS col1 FROM tab0
----
-4136
-8712
-880

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1165
SELECT - col2 * - + CAST( - - 38 AS SIGNED ) + col1 DIV col0 DIV 5 FROM tab2
----
1520
2204
874

skipif mysql # not compatible
query I rowsort label-1165
SELECT - col2 * - + CAST ( - - 38 AS INTEGER ) + col1 / col0 / 5 FROM tab2
----
1520
2204
874

query I rowsort
SELECT DISTINCT col0 + 89 AS col0 FROM tab2
----
135
153
164

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT COUNT( * ) * + + 18 FROM tab0 AS cor0 WHERE ( + 77 ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1167
SELECT COUNT ( * ) * + + 18 FROM tab0 AS cor0 WHERE ( + 77 ) IS NULL
----
0

query I rowsort
SELECT + ( col0 ) * 19 FROM tab0 AS cor0
----
1653
1843
285

query I rowsort
SELECT DISTINCT 1 + + col2 FROM tab2
----
24
41
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1170
SELECT ALL + COUNT( + col2 ) DIV COUNT( ( - col1 ) ) - COUNT( * ) * - CAST( - - 96 AS SIGNED ) FROM tab2
----
289

skipif mysql # not compatible
query I rowsort label-1170
SELECT ALL + COUNT ( + col2 ) / COUNT ( ( - col1 ) ) - COUNT ( * ) * - CAST ( - - 96 AS INTEGER ) FROM tab2
----
289

query I rowsort
SELECT col2 + - - col0 * - + 57 FROM tab0
----
-4949
-5430
-808

query I rowsort
SELECT DISTINCT + col1 * 8 * + col1 + - col0 AS col0 FROM tab0 AS cor0
----
-89
3441
52473

query I rowsort
SELECT ALL + col2 * + 66 + - + col1 AS col2 FROM tab2 AS cor0
----
1467
2563
3761

query I rowsort
SELECT DISTINCT + 65 - - col1 + - col2 FROM tab1 AS cor0
----
-17
11
44

query I rowsort
SELECT ALL - 15 + + col1 AS col1 FROM tab1 AS cor0
----
-1
-10
32

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

query I rowsort
SELECT + + 31 * + col0 FROM tab1 AS cor0
----
1581
2635
2821

query I rowsort
SELECT DISTINCT - col0 - - 78 + + 80 AS col0 FROM tab0
----
143
61
71

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1180
SELECT 11 AS col1, + COUNT( * ) FROM tab2
----
11
3

skipif mysql # not compatible
query II rowsort label-1180
SELECT 11 AS col1, + COUNT ( * ) FROM tab2
----
11
3

query I rowsort
SELECT DISTINCT col0 - - col2 - + + col0 * + + col2 AS col0 FROM tab2
----
-2456
-4217
-989

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1182
SELECT ALL + CAST( - - 57 AS SIGNED ) FROM tab1
----
57
57
57

skipif mysql # not compatible
query I rowsort label-1182
SELECT ALL + CAST ( - - 57 AS INTEGER ) FROM tab1
----
57
57
57

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

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

query II rowsort
SELECT ALL - 53 AS col1, - col1 AS col2 FROM tab0 cor0
----
-53
-1
-53
-21
-53
-81

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1186
SELECT CAST( col2 AS SIGNED ) DIV - + col0 FROM tab0 AS cor0
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-1186
SELECT CAST ( col2 AS INTEGER ) / - + col0 FROM tab0 AS cor0
----
-1
-3
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1187
SELECT + + MAX( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1187
SELECT + + MAX ( ALL - col0 ) AS col2 FROM tab1 AS cor0
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT DISTINCT MAX( ALL + col2 ) * - + MAX( + col2 ) AS col0 FROM tab0 AS cor0
----
-9801

skipif mysql # not compatible
query I rowsort label-1188
SELECT DISTINCT MAX ( ALL + col2 ) * - + MAX ( + col2 ) AS col0 FROM tab0 AS cor0
----
-9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * + col2 + + + col2 col1 FROM tab2 AS cor0
----
-1150
-3040
-3828

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1191
SELECT col0 DIV - 37 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

skipif mysql # not compatible
query I rowsort label-1191
SELECT col0 / - 37 AS col1 FROM tab1 AS cor0
----
-1
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + SUM( ALL - - 64 ) * + - 84 * 37 FROM tab2 AS cor0
----
-596736

skipif mysql # not compatible
query I rowsort label-1192
SELECT + SUM ( ALL - - 64 ) * + - 84 * 37 FROM tab2 AS cor0
----
-596736

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT DISTINCT - SUM( ALL col1 ) AS col0 FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-1193
SELECT DISTINCT - SUM ( ALL col1 ) AS col0 FROM tab2
----
-195

query III rowsort
SELECT ALL * FROM tab1 WHERE + 92 * + col0 IS NULL
----

query I rowsort
SELECT ALL col0 * - 19 AS col1 FROM tab0
----
-1653
-1843
-285

query I rowsort
SELECT DISTINCT 78 * + 65 FROM tab1
----
5070

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1197
SELECT * FROM tab2 WHERE - CAST( NULL AS DECIMAL ) * - col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1197
SELECT * FROM tab2 WHERE - CAST ( NULL AS REAL ) * - col0 + + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 WHERE NOT + 61 IS NULL
----
-1
-21
-81

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT DISTINCT - col2 DIV - + 84 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-1199
SELECT DISTINCT - col2 / - + 84 FROM tab0
----
0
1

query I rowsort
SELECT ALL col0 + + 95 AS col1 FROM tab2
----
141
159
170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 1 + + col1 col2 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) < col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1203
SELECT col2 * - col1 + + col2 DIV - col2 FROM tab0 AS cor0
----
-100
-211
-3808

skipif mysql # not compatible
query I rowsort label-1203
SELECT col2 * - col1 + + col2 / - col2 FROM tab0 AS cor0
----
-100
-211
-3808

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1204
SELECT ALL COUNT( * ) DIV - 28 + + - 4 AS col0 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-1204
SELECT ALL COUNT ( * ) / - 28 + + - 4 AS col0 FROM tab0 AS cor0
----
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-1205
SELECT DISTINCT - col2 DIV + 96 + + col0 + + 47 + - + col0 FROM tab2 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-1205
SELECT DISTINCT - col2 / + 96 + + col0 + + 47 + - + col0 FROM tab2 AS cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1206
SELECT DISTINCT - col1 + - CAST( NULL AS SIGNED ) AS col0, + col2 * - - col1 DIV - col1 + + + col2 col2 FROM tab2
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1206
SELECT DISTINCT - col1 + - CAST ( NULL AS INTEGER ) AS col0, + col2 * - - col1 / - col1 + + + col2 col2 FROM tab2
----
NULL
0

query I rowsort
SELECT ALL + - col0 - - col1 + col1 FROM tab0 AS cor0
----
-45
-95
147

query I rowsort
SELECT 87 * - col1 - + 96 AS col2 FROM tab0 AS cor0
----
-183
-1923
-7143

query I rowsort
SELECT ALL + - col2 * - col1 + - 31 * col0 AS col0 FROM tab0 AS cor0
----
-2487
-2908
3342

onlyif mysql # DIV for integer division: 
query I rowsort label-1210
SELECT ALL + col2 DIV col1 - + + col1 * + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-1210
SELECT ALL + col2 / col1 - + + col1 * + col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE ( NULL ) <= NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1213
SELECT ALL + ( + + MAX( - col2 ) ) - - CAST( NULL AS SIGNED ) AS col0, 3 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-1213
SELECT ALL + ( + + MAX ( - col2 ) ) - - CAST ( NULL AS INTEGER ) AS col0, 3 FROM tab1 AS cor0
----
NULL
3

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

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

query II rowsort
SELECT 26 * col0 * col2 + + col0 AS col1, 76 FROM tab0 WHERE NOT col2 IS NOT NULL
----

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

query I rowsort
SELECT + 17 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
17
17
17

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

skipif mysql # not compatible
query I rowsort label-1218
SELECT ALL CAST ( + ( - - COUNT ( * ) ) AS INTEGER ) FROM tab1
----
3

query I rowsort
SELECT - 31 * + col1 FROM tab0
----
-2511
-31
-651

query III rowsort
SELECT * FROM tab2 WHERE NOT + - 51 * col1 + + 78 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * ( + 38 ) AS col0 FROM tab0
----
3078
38
798

query I rowsort
SELECT ALL + col0 * - 10 FROM tab2 AS cor0
----
-460
-640
-750

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

skipif mysql # not compatible
query I rowsort label-1223
SELECT + 76 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1224
SELECT + 80 * ( - COUNT( DISTINCT - - col2 ) ) AS col2 FROM tab1 AS cor0
----
-240

skipif mysql # not compatible
query I rowsort label-1224
SELECT + 80 * ( - COUNT ( DISTINCT - - col2 ) ) AS col2 FROM tab1 AS cor0
----
-240

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-1226
SELECT - col0 * - + 3 + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1226
SELECT - col0 * - + 3 + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1228
SELECT + CAST ( MIN ( ALL - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-77

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

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

query I rowsort
SELECT ALL col0 + - 28 + - col0 AS col2 FROM tab0 AS cor0
----
-28
-28
-28

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1232
SELECT ALL MAX( ALL - + CAST( + col0 AS SIGNED ) ), + 69 AS col1 FROM tab2 cor0
----
-46
69

skipif mysql # not compatible
query II rowsort label-1232
SELECT ALL MAX ( ALL - + CAST ( + col0 AS INTEGER ) ), + 69 AS col1 FROM tab2 cor0
----
-46
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL < + 58
----

query I rowsort
SELECT - col0 + + 89 AS col1 FROM tab0 AS cor0
----
-8
2
74

query I rowsort
SELECT + 54 + 83 + + 97 AS col2 FROM tab1
----
234
234
234

query I rowsort
SELECT ALL - 77 * - ( - ( + ( ( col0 ) ) ) ) FROM tab2 WHERE - col1 IS NOT NULL
----
-3542
-4928
-5775

onlyif mysql # aggregate syntax: 
query II rowsort label-1237
SELECT ALL 33 * COUNT( * ) AS col0, - MAX( col0 ) * + COUNT( * ) FROM tab0
----
99
-291

skipif mysql # not compatible
query II rowsort label-1237
SELECT ALL 33 * COUNT ( * ) AS col0, - MAX ( col0 ) * + COUNT ( * ) FROM tab0
----
99
-291

query I rowsort
SELECT + col0 * - col2 * + col0 + - - ( - - 91 ) AS col0 FROM tab1
----
-249605
-426184
-563017

onlyif mysql # DIV for integer division: 
query I rowsort label-1239
SELECT + col2 DIV 77 + + col2 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1239
SELECT + col2 / 77 + + col2 FROM tab2
----
23
40
58

query I rowsort
SELECT - 22 + + 43 FROM tab2
----
21
21
21

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1242
SELECT ALL * FROM tab2 WHERE + - CAST( + - col0 AS SIGNED ) / - 92 * - - 4 IS NULL
----

skipif mysql # not compatible
query III rowsort label-1242
SELECT ALL * FROM tab2 WHERE + - CAST ( + - col0 AS INTEGER ) / - 92 * - - 4 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1243
SELECT ALL col1 + + col0 DIV - col2 AS col1 FROM tab2
----
49
66
76

skipif mysql # not compatible
query I rowsort label-1243
SELECT ALL col1 + + col0 / - col2 AS col1 FROM tab2
----
49
66
76

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

query I rowsort
SELECT + - 77 AS col2 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1247
SELECT ALL - MAX( - 46 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-1247
SELECT ALL - MAX ( - 46 ) AS col0 FROM tab2 AS cor0
----
46

query I rowsort
SELECT DISTINCT col1 * - - 99 - + - 6 FROM tab1 AS cor0
----
1392
4659
501

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - 54 ) col2 FROM tab1 AS cor0
----
54
54
54

query I rowsort
SELECT ALL col2 * - 47 * - 43 FROM tab1
----
119239
137428
194016

query I rowsort
SELECT DISTINCT + col0 * + ( - - 20 ) AS col2 FROM tab1 AS cor0
----
1020
1700
1820

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1255
SELECT DISTINCT + col0 col2 FROM tab2 WHERE NULL < + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1255
SELECT DISTINCT + col0 col2 FROM tab2 WHERE NULL < + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1256
SELECT col0 DIV - col1, - 26 AS col2 FROM tab2
----
-1
-26
0
-26
0
-26

skipif mysql # not compatible
query II rowsort label-1256
SELECT col0 / - col1, - 26 AS col2 FROM tab2
----
-1
-26
0
-26
0
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 0 + - - col2 * col1 col1 FROM tab2
----
1173
3080
3886

query I rowsort
SELECT ALL - col0 * 42 FROM tab1 AS cor0
----
-2142
-3570
-3822

query I rowsort
SELECT DISTINCT - col1 + - col1 * - 79 FROM tab1 cor0
----
1092
3666
390

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( - 17 ) > + + 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1264
SELECT - 12 * COUNT( ALL - - col1 ) FROM tab1
----
-36

skipif mysql # not compatible
query I rowsort label-1264
SELECT - 12 * COUNT ( ALL - - col1 ) FROM tab1
----
-36

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

query I rowsort
SELECT DISTINCT 85 + - - 46 FROM tab0
----
131

query I rowsort
SELECT ALL 3 + - col1 AS col1 FROM tab2
----
-48
-64
-74

query I rowsort
SELECT 25 + - col2 AS col2 FROM tab0 AS cor0
----
-22
-74
15

query I rowsort
SELECT col0 * + + ( + col2 ) + col2 AS col0 FROM tab0 AS cor0
----
752
880
9702

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1270
SELECT DISTINCT MAX ( ALL 96 ) + + COUNT ( * ) col1 FROM tab1 AS cor0
----
99

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1272
SELECT SUM( - 59 ) + SUM( DISTINCT + - CAST( + 41 AS SIGNED ) ) FROM tab1 cor0
----
-218

skipif mysql # not compatible
query I rowsort label-1272
SELECT SUM ( - 59 ) + SUM ( DISTINCT + - CAST ( + 41 AS INTEGER ) ) FROM tab1 cor0
----
-218

query I rowsort
SELECT + 96 * 92 + - col1 AS col1 FROM tab0
----
8751
8811
8831

query III rowsort
SELECT * FROM tab1 WHERE ( 16 ) - 29 * + 28 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 78 * col1 + + col1 AS col2 FROM tab1
----
1106
3713
395

query I rowsort
SELECT ALL + 75 + col0 AS col2 FROM tab0
----
162
172
90

query I rowsort
SELECT DISTINCT - 19 + col2 AS col0 FROM tab2
----
21
39
4

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + col2 / 74 < ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1279
SELECT ALL SUM( - CAST( NULL AS SIGNED ) ) + - 88 AS col0 FROM tab1
----
NULL

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( 6 * col2 - + col1 * + ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1282
SELECT 96 * COUNT( * ) + COUNT( * ) FROM tab2 WHERE NOT ( NULL ) <> col2 * + col1 + col1 / + col0
----
0

skipif mysql # not compatible
query I rowsort label-1282
SELECT 96 * COUNT ( * ) + COUNT ( * ) FROM tab2 WHERE NOT ( NULL ) <> col2 * + col1 + col1 / + col0
----
0

query I rowsort
SELECT ALL 41 FROM tab0 WHERE NOT NULL NOT IN ( - col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1285
SELECT ALL COUNT( * ) * COUNT( * ) AS col2 FROM tab2 WHERE NOT col0 + col0 < NULL
----
0

skipif mysql # not compatible
query I rowsort label-1285
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col2 FROM tab2 WHERE NOT col0 + col0 < NULL
----
0

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

skipif mysql # not compatible
query III rowsort label-1286
SELECT * FROM tab0 WHERE NOT ( - CAST ( + col0 AS INTEGER ) ) IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1288
SELECT - COUNT( ( - col1 ) ) col0 FROM tab1
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1288
SELECT - COUNT ( ( - col1 ) ) col0 FROM tab1
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-1289
SELECT DISTINCT - 66 DIV col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-1289
SELECT DISTINCT - 66 / col1 FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1290
SELECT DISTINCT col1 DIV col1 + - col1 AS col0 FROM tab2 AS cor0
----
-50
-66
-76

skipif mysql # not compatible
query I rowsort label-1290
SELECT DISTINCT col1 / col1 + - col1 AS col0 FROM tab2 AS cor0
----
-50
-66
-76

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1291
SELECT DISTINCT COUNT( * ) DIV 87 col1 FROM tab0 AS cor0 WHERE NOT - 63 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1291
SELECT DISTINCT COUNT ( * ) / 87 col1 FROM tab0 AS cor0 WHERE NOT - 63 IS NOT NULL
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1293
SELECT + MIN( DISTINCT 45 ) FROM tab1 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-1293
SELECT + MIN ( DISTINCT 45 ) FROM tab1 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1294
SELECT ALL - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( + col2 ) AND col0 / col1
----
0

skipif mysql # not compatible
query I rowsort label-1294
SELECT ALL - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN ( + col2 ) AND col0 / col1
----
0

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

skipif mysql # not compatible
query I rowsort label-1295
SELECT - COUNT ( * ) / 85 FROM tab1
----
0

query I rowsort
SELECT DISTINCT col2 - col1 FROM tab0 WHERE NOT 77 / - 43 >= - col2 * + col0
----

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

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

skipif mysql # not compatible
query III rowsort label-1298
SELECT ALL * FROM tab0 AS cor0 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 71 col1 FROM tab1 AS cor0 WHERE ( - col1 ) IS NOT NULL
----
71
71
71

onlyif mysql # aggregate syntax: 
query I rowsort label-1301
SELECT DISTINCT COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1301
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 AS col0 FROM tab0 WHERE NULL <> NULL
----

query I rowsort
SELECT 48 + col2 FROM tab1
----
107
116
144

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

skipif mysql # not compatible
query I rowsort label-1304
SELECT ALL - CAST ( NULL AS INTEGER ) * col2 * - col1 + + CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT 49 AS col2 FROM tab2 WHERE 66 - col2 >= ( NULL )
----

query I rowsort
SELECT - 49 FROM tab0 WHERE NULL NOT BETWEEN - 4 AND ( col1 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1308
SELECT ALL col2 DIV + 55 FROM tab2 WHERE + 61 > + col0
----
0

skipif mysql # not compatible
query I rowsort label-1308
SELECT ALL col2 / + 55 FROM tab2 WHERE + 61 > + col0
----
0

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

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

query I rowsort
SELECT + 55 + col0 FROM tab2 WHERE col2 * col1 + - col2 NOT IN ( col0 )
----
101
119
130

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1311
SELECT * FROM tab2 AS cor0 WHERE ( + CAST( - 60 AS SIGNED ) ) NOT IN ( - col0 * + 47 + 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1311
SELECT * FROM tab2 AS cor0 WHERE ( + CAST ( - 60 AS INTEGER ) ) NOT IN ( - col0 * + 47 + 81 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 69 IN ( 60 ) AND NOT ( NULL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + 18 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to b95bafa733666df39c5d3f94760d010f

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1315
SELECT * FROM tab2 WHERE NOT ( 87 + + CAST( NULL AS DECIMAL ) ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-1315
SELECT * FROM tab2 WHERE NOT ( 87 + + CAST ( NULL AS REAL ) ) >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( 74 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1318
SELECT DISTINCT ( MIN( + col2 ) ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) <= ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-1318
SELECT DISTINCT ( MIN ( + col2 ) ) AS col1 FROM tab1 cor0 WHERE NOT ( NULL ) <= ( col1 )
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1319
SELECT col0 * 82 DIV - ( col1 ) FROM tab2 AS cor0
----
-68
-73
-91

skipif mysql # not compatible
query I rowsort label-1319
SELECT col0 * 82 / - ( col1 ) FROM tab2 AS cor0
----
-68
-73
-91

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

skipif mysql # not compatible
query I rowsort label-1320
SELECT + MIN ( + ( + + 60 ) ) AS col2 FROM tab2 AS cor0
----
60

query II rowsort
SELECT + - 86 AS col2, - ( + col2 ) FROM tab1 cor0
----
-86
-59
-86
-68
-86
-96

query I rowsort
SELECT ( 97 ) FROM tab0 AS cor0
----
97
97
97

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

query III rowsort
SELECT ALL * FROM tab0 WHERE 36 <> ( ( - col2 ) + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + ( - col2 ) + - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1326
SELECT CAST( NULL AS SIGNED ) / COUNT( * ) + COUNT( * ) FROM tab1 WHERE NOT + + 47 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1326
SELECT CAST ( NULL AS INTEGER ) / COUNT ( * ) + COUNT ( * ) FROM tab1 WHERE NOT + + 47 IS NULL
----
NULL

query I rowsort
SELECT DISTINCT 40 FROM tab2 WHERE - col1 > - ( - 70 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 6 * - + col0 col2 FROM tab1
----
306
510
546

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1330
SELECT DISTINCT + MAX( ALL + ( ( 43 ) ) ) DIV - 24 AS col0 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1330
SELECT DISTINCT + MAX ( ALL + ( ( 43 ) ) ) / - 24 AS col0 FROM tab1
----
-1

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1331
SELECT COUNT ( - + 24 ) col0 FROM tab0
----
3

query I rowsort
SELECT ( + col0 ) * - col1 * col0 + col1 * - col1 AS col1 FROM tab0 AS cor0
----
-159390
-24786
-9410

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1333
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col2 / + 2 ) > + CAST( 96 AS DECIMAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1333
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT ( + col2 / + 2 ) > + CAST ( 96 AS REAL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-1334
SELECT DISTINCT - - MIN( 3 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT - - MIN ( 3 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-1335
SELECT ( - + COUNT( * ) ) * 20 FROM tab1 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-1335
SELECT ( - + COUNT ( * ) ) * 20 FROM tab1 cor0
----
-60

query I rowsort
SELECT + 70 * col2 - + col1 + - 2 FROM tab2 AS cor0
----
1557
2721
3991

onlyif mysql # aggregate syntax: 
query I rowsort label-1337
SELECT - COUNT( * ) + + 26 FROM tab1 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-1337
SELECT - COUNT ( * ) + + 26 FROM tab1 AS cor0
----
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1338
SELECT ALL + COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 / 56 / 61 )
----
0

skipif mysql # not compatible
query I rowsort label-1338
SELECT ALL + COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col2 / 56 / 61 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1339
SELECT ALL col1 * CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( col1 ) )
----

skipif mysql # not compatible
query I rowsort label-1339
SELECT ALL col1 * CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - ( col1 ) )
----

query I rowsort
SELECT DISTINCT 19 * + 11 FROM tab2
----
209

onlyif mysql # aggregate syntax: 
query I rowsort label-1341
SELECT - 2 * - COUNT( * ) - + MAX( 36 ) + COUNT( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-1341
SELECT - 2 * - COUNT ( * ) - + MAX ( 36 ) + COUNT ( * ) AS col0 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-1342
SELECT 12 + 97 + - COUNT( * ) AS col2, 43 + 76 col2 FROM tab2
----
106
119

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1342
SELECT 12 + 97 + - COUNT ( * ) AS col2, 43 + 76 col2 FROM tab2
----
106
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1343
SELECT ALL ( - MAX( col2 ) ) * + 37 AS col0 FROM tab0 WHERE NOT ( + - col0 / col0 ) IN ( - ( - col0 ) - + ( - 36 ) )
----
-3663

skipif mysql # not compatible
query I rowsort label-1343
SELECT ALL ( - MAX ( col2 ) ) * + 37 AS col0 FROM tab0 WHERE NOT ( + - col0 / col0 ) IN ( - ( - col0 ) - + ( - 36 ) )
----
-3663

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

query III rowsort
SELECT * FROM tab2 WHERE ( 0 + - 55 ) IS NULL
----

query I rowsort
SELECT - + ( - 2 ) * + 25 + + 75 AS col1 FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 2973878398e469d83385e7e06bd5af99

query I rowsort
SELECT - 25 * + 80 AS col1 FROM tab1 cor0
----
-2000
-2000
-2000

query I rowsort
SELECT DISTINCT + col2 + 4 AS col0 FROM tab1 AS cor0
----
100
63
72

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

query I rowsort
SELECT ALL + 67 + - - col0 AS col2 FROM tab1 AS cor0
----
118
152
158

query I rowsort
SELECT DISTINCT 5 * - col1 AS col1 FROM tab2 AS cor0
----
-255
-335
-385

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1353
SELECT ALL - + MIN( DISTINCT + - 94 ) * COUNT( * ) AS col2, 33 AS col1 FROM tab0 AS cor0
----
282
33

skipif mysql # not compatible
query II rowsort label-1353
SELECT ALL - + MIN ( DISTINCT + - 94 ) * COUNT ( * ) AS col2, 33 AS col1 FROM tab0 AS cor0
----
282
33

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1354
SELECT + - CAST( NULL AS SIGNED ) AS col0 FROM tab1 cor0 WHERE - col0 <> + + 95 + - col0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1354
SELECT + - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 cor0 WHERE - col0 <> + + 95 + - col0
----
NULL
NULL
NULL

query II rowsort
SELECT col1 - + col0 + + col1 AS col0, col0 FROM tab2 cor0
----
56
46
59
75
90
64

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1356
SELECT + COUNT( ALL + 71 ) + + 34 AS col1 FROM tab2 WHERE ( - col2 ) NOT BETWEEN NULL AND CAST( - col2 AS SIGNED ) / col0
----
34

skipif mysql # not compatible
query I rowsort label-1356
SELECT + COUNT ( ALL + 71 ) + + 34 AS col1 FROM tab2 WHERE ( - col2 ) NOT BETWEEN NULL AND CAST ( - col2 AS INTEGER ) / col0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1357
SELECT DISTINCT 22 col0, - col0 + col2 - + CAST( + + col1 AS SIGNED ) col0 FROM tab2
----
22
-101
22
-74
22
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1357
SELECT DISTINCT 22 col0, - col0 + col2 - + CAST ( + + col1 AS INTEGER ) col0 FROM tab2
----
22
-101
22
-74
22
-84

query I rowsort
SELECT col0 + + + 51 * - col2 AS col0 FROM tab0
----
-2382
-423
-4952

query I rowsort
SELECT ALL 76 AS col2 FROM tab0 WHERE NOT + 21 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1360
SELECT + col2 * + - 52 * CAST( + 11 AS SIGNED ) + - col2 - + + 7 DIV - 86 FROM tab2
----
-13179
-22920
-33234

skipif mysql # not compatible
query I rowsort label-1360
SELECT + col2 * + - 52 * CAST ( + 11 AS INTEGER ) + - col2 - + + 7 / - 86 FROM tab2
----
-13179
-22920
-33234

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

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

query III rowsort
SELECT * FROM tab2 WHERE 66 * - + 90 IS NULL
----

query I rowsort
SELECT DISTINCT + + col2 + + col2 * - col0 * - col0 + + col0 + - + col2 FROM tab2 AS cor0
----
163904
326325
48714

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1364
SELECT ALL + - 56 + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col2 + ( - ( - CAST( NULL AS DECIMAL ) ) ) > NULL
----
-56

skipif mysql # not compatible
query I rowsort label-1364
SELECT ALL + - 56 + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col2 + ( - ( - CAST ( NULL AS REAL ) ) ) > NULL
----
-56

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + + col1 ) + - - 16 > - - col0
----
15
81
47

onlyif mysql # aggregate syntax: 
query I rowsort label-1366
SELECT + 63 * + COUNT( * ) FROM tab1
----
189

skipif mysql # not compatible
query I rowsort label-1366
SELECT + 63 * + COUNT ( * ) FROM tab1
----
189

query I rowsort
SELECT + 30 * - 99 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c7185cd0ab274a507b65229d6f23fb79

query I rowsort
SELECT - 53 FROM tab1 WHERE NOT 30 * ( - col1 ) - - 78 * - + 51 * + 83 IS NULL
----
-53
-53
-53

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( - 36 * + 98 ) IS NOT NULL
----

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

query I rowsort
SELECT DISTINCT - col0 / 53 - col1 FROM tab0 WHERE col1 / - - 32 + + col0 * col0 + - - col1 IS NULL
----

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

query I rowsort
SELECT ALL - 27 AS col1 FROM tab0 WHERE NULL NOT BETWEEN - 74 + + - col1 AND + 65
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1375
SELECT MIN( - col2 ) AS col2 FROM tab2 AS cor0 WHERE - col0 BETWEEN col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1375
SELECT MIN ( - col2 ) AS col2 FROM tab2 AS cor0 WHERE - col0 BETWEEN col1 AND NULL
----
NULL

query I rowsort
SELECT ALL 86 + + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT - col0 < NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1377
SELECT ALL + 31 DIV - col1 FROM tab0 AS cor0
----
-1
-31
0

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + 31 / - col1 FROM tab0 AS cor0
----
-1
-31
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1378
SELECT + CAST( - COUNT( ALL - - ( col2 ) ) AS SIGNED ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-1378
SELECT + CAST ( - COUNT ( ALL - - ( col2 ) ) AS INTEGER ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ALL col1 * - 82 AS col2 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT - 38 FROM tab2 AS cor0 WHERE NULL < ( - col0 + - col0 )
----

query I rowsort
SELECT ALL col1 + - + ( + + 77 ) AS col0 FROM tab2 AS cor0
----
-10
-26
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1382
SELECT ALL + col0 * + col0 + - col2 DIV 34 + + col0 + - ( col1 ) + + 6 FROM tab1 AS cor0 WHERE + 97 NOT IN ( + col0 )
----
2642
7310
8329

skipif mysql # not compatible
query I rowsort label-1382
SELECT ALL + col0 * + col0 + - col2 / 34 + + col0 + - ( col1 ) + + 6 FROM tab1 AS cor0 WHERE + 97 NOT IN ( + col0 )
----
2642
7310
8329

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1383
SELECT DISTINCT - col0 + 40, - col0 * col2 + + + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-24
NULL
-35
NULL
-6
NULL

skipif mysql # not compatible
query II rowsort label-1383
SELECT DISTINCT - col0 + 40, - col0 * col2 + + + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-24
NULL
-35
NULL
-6
NULL

query I rowsort
SELECT ALL col0 - + 19 FROM tab2 AS cor0
----
27
45
56

query I rowsort
SELECT DISTINCT + col0 * 11 FROM tab2 cor0
----
506
704
825

onlyif mysql # DIV for integer division: 
query II rowsort label-1386
SELECT + 98 * col1 col0, - 36 DIV + 39 FROM tab0 AS cor0
----
2058
0
7938
0
98
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1386
SELECT + 98 * col1 col0, - 36 / + 39 FROM tab0 AS cor0
----
2058
0
7938
0
98
0

query III rowsort
SELECT * FROM tab2 WHERE ( + col0 ) + - 79 * - col1 IN ( + ( 56 ) / + + col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN NULL AND + 52
----

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - + col1 NOT IN ( + col2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1391
SELECT DISTINCT COUNT( * ), CAST( NULL AS SIGNED ) + + - SUM( DISTINCT + 14 ) AS col2 FROM tab0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-1391
SELECT DISTINCT COUNT ( * ), CAST ( NULL AS INTEGER ) + + - SUM ( DISTINCT + 14 ) AS col2 FROM tab0
----
3
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1392
SELECT MIN( DISTINCT + - col2 ) * - 82 AS col2 FROM tab0
----
8118

skipif mysql # not compatible
query I rowsort label-1392
SELECT MIN ( DISTINCT + - col2 ) * - 82 AS col2 FROM tab0
----
8118

onlyif mysql # aggregate syntax: 
query I rowsort label-1393
SELECT 55 * COUNT( * ) AS col0 FROM tab1
----
165

skipif mysql # not compatible
query I rowsort label-1393
SELECT 55 * COUNT ( * ) AS col0 FROM tab1
----
165

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1396
SELECT DISTINCT + 93 DIV + + col0 AS col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-1396
SELECT DISTINCT + 93 / + + col0 AS col0 FROM tab2
----
1
2

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

query I rowsort
SELECT DISTINCT - col0 * - + 33 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

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

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

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

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

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

query II rowsort
SELECT - - 44, - 38 AS col1 FROM tab2 AS cor0
----
44
-38
44
-38
44
-38

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + 17
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1404
SELECT - col2 * + col2 + + col0 / - - 6 * + col1 + + col2, - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col0 )
----

skipif mysql # not compatible
query II rowsort label-1404
SELECT - col2 * + col2 + + col0 / - - 6 * + col1 + + col2, - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col1 NOT IN ( col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1405
SELECT + 60 DIV - - 46 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1405
SELECT + 60 / - - 46 FROM tab2 AS cor0
----
1
1
1

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

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

query I rowsort
SELECT + - ( col2 ) * - + col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT + + 60 AS col2 FROM tab1 AS cor0
----
60
60
60

query I rowsort
SELECT ALL - - col0 FROM tab1 WHERE NULL IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1410
SELECT ( + MAX ( col0 ) ) AS col0 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 14 / - 77 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1412
SELECT ALL + - col2 * + + col2 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT + col0 = + col2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1412
SELECT ALL + - col2 * + + col2 * + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT + col0 = + col2
----
NULL
NULL
NULL

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

query I rowsort
SELECT DISTINCT + col0 + - col2 + - 54 FROM tab0 AS cor0
----
-56
-86
23

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT NULL NOT IN ( - col0 * + col1 * - + col2, + col2 * col1 - - ( + 34 ) * 18 ) )
----

query I rowsort
SELECT + - col0 - + - 3 FROM tab0 AS cor0
----
-12
-84
-94

query I rowsort
SELECT - 53 FROM tab2 AS cor0 WHERE col0 NOT IN ( + ( + col0 ), - col0 * + 64 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 66 col2 FROM tab1 AS cor0 WHERE + ( - col0 ) BETWEEN - - col1 AND + - col2
----

query I rowsort
SELECT DISTINCT + 20 + - col1 - + col2 AS col1 FROM tab0 AS cor0
----
-108
-11
-80

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 85 * - - 49 col0, - col1 FROM tab2
----
-4165
-51
-4165
-67
-4165
-77

query I rowsort
SELECT + 51 * col2 AS col0 FROM tab2
----
1173
2040
2958

onlyif mysql # aggregate syntax: 
query I rowsort label-1423
SELECT ALL + MIN( ALL col0 ) * + COUNT( * ) FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-1423
SELECT ALL + MIN ( ALL col0 ) * + COUNT ( * ) FROM tab2
----
138

query I rowsort
SELECT DISTINCT - 28 * + + 78 FROM tab1
----
-2184

query II rowsort
SELECT 22 * - col1 AS col0, + col2 + col2 FROM tab0 AS cor0
----
-1782
94
-22
198
-462
20

query II rowsort
SELECT ALL col0 * - + 65, col1 AS col0 FROM tab1 AS cor0
----
-3315
14
-5525
5
-5915
47

onlyif mysql # DIV for integer division: 
query I rowsort label-1427
SELECT 91 DIV + - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1427
SELECT 91 / + - col1 AS col1 FROM tab2 cor0
----
-1
-1
-1

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

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

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

query I rowsort
SELECT ALL - col1 * - 32 AS col1 FROM tab0 cor0
----
2592
32
672

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 NOT BETWEEN 97 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( - 83 ) col0 FROM tab1 AS cor0
----
-83
-83
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col2, col2 AS col2 FROM tab0 AS cor0
----
1
99
21
10
81
47

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1436
SELECT - 22 + AVG ( DISTINCT CAST( - + 23 AS SIGNED ) ) * CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1436
SELECT - 22 + AVG ( DISTINCT CAST ( - + 23 AS INTEGER ) ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1437
SELECT - COUNT( ALL + 37 ) + COUNT( * ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1437
SELECT - COUNT ( ALL + 37 ) + COUNT ( * ) AS col0 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1438
SELECT ALL - col2, + col1 * col2 DIV + - col1 FROM tab0
----
-10
-10
-47
-47
-99
-99

skipif mysql # not compatible
query II rowsort label-1438
SELECT ALL - col2, + col1 * col2 / + - col1 FROM tab0
----
-10
-10
-47
-47
-99
-99

query I rowsort
SELECT ALL - 10 * - col0 + - + col0 AS col1 FROM tab1
----
459
765
819

query III rowsort
SELECT * FROM tab1 WHERE 61 <= col2
----
51
14
96
91
47
68

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + ( + - col1 ) + - 94 col2 FROM tab1
----
-1438
-3290
-389

query II rowsort
SELECT + col0, ( - col0 ) * + 87 * col2 AS col1 FROM tab1 WHERE - - col2 >= + col2 + 48
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1443
SELECT DISTINCT - + MAX( ALL + 44 ) + - COUNT( * ) + - - 49 * - COUNT( * ) FROM tab0 AS cor0
----
-194

skipif mysql # not compatible
query I rowsort label-1443
SELECT DISTINCT - + MAX ( ALL + 44 ) + - COUNT ( * ) + - - 49 * - COUNT ( * ) FROM tab0 AS cor0
----
-194

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1444
SELECT DISTINCT - col1 * - col0 + col2 + - col0 FROM tab0 AS cor0 WHERE ( NOT - col1 + CAST( NULL AS SIGNED ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-1444
SELECT DISTINCT - col1 * - col0 + col2 + - col0 FROM tab0 AS cor0 WHERE ( NOT - col1 + CAST ( NULL AS INTEGER ) IS NULL )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1446
SELECT + SUM( ALL + - 97 ) FROM tab0 AS cor0
----
-291

skipif mysql # not compatible
query I rowsort label-1446
SELECT + SUM ( ALL + - 97 ) FROM tab0 AS cor0
----
-291

onlyif mysql # aggregate syntax: 
query I rowsort label-1447
SELECT DISTINCT + COUNT( * ) col2 FROM tab0 AS cor0 WHERE NOT - col0 >= - 62
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1447
SELECT DISTINCT + COUNT ( * ) col2 FROM tab0 AS cor0 WHERE NOT - col0 >= - 62
----
2

query III rowsort
SELECT * FROM tab0 WHERE - - col0 <> - col2 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1449
SELECT ALL + MIN( ALL + ( 94 ) ) + + 26 AS col1 FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-1449
SELECT ALL + MIN ( ALL + ( 94 ) ) + + 26 AS col1 FROM tab2 AS cor0
----
120

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 93 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 57 * - 28 AS col0 FROM tab1 AS cor0
----
-1596

onlyif mysql # DIV for integer division: 
query I rowsort label-1455
SELECT - ( - 62 ) + - col1 DIV col2 col0 FROM tab0
----
60
61
62

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1455
SELECT - ( - 62 ) + - col1 / col2 col0 FROM tab0
----
60
61
62

onlyif mysql # aggregate syntax: 
query II rowsort label-1456
SELECT - + ( + + 30 ), COUNT( + - col1 ) AS col1 FROM tab2 AS cor0
----
-30
3

skipif mysql # not compatible
query II rowsort label-1456
SELECT - + ( + + 30 ), COUNT ( + - col1 ) AS col1 FROM tab2 AS cor0
----
-30
3

query I rowsort
SELECT ALL + + col0 + - 78 AS col0 FROM tab0 AS cor0
----
-63
19
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 + + - col0 col2, 83 + - 34 AS col0 FROM tab0 AS cor0
----
-108
49
-96
49
-98
49

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 BETWEEN + 26 AND + col0 * + - 80 + + 13 + + - col1 * + + 11
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col0 AS col0 FROM tab1 AS cor0 WHERE NOT col0 NOT BETWEEN NULL AND - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT DISTINCT SUM( ALL 14 ) FROM tab1 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-1462
SELECT DISTINCT SUM ( ALL 14 ) FROM tab1 AS cor0
----
42

onlyif mysql # aggregate syntax: 
query I rowsort label-1463
SELECT DISTINCT - 54 * - MAX( - 73 ) AS col0 FROM tab2 AS cor0
----
-3942

skipif mysql # not compatible
query I rowsort label-1463
SELECT DISTINCT - 54 * - MAX ( - 73 ) AS col0 FROM tab2 AS cor0
----
-3942

query I rowsort
SELECT col2 * - + 67 FROM tab2
----
-1541
-2680
-3886

query I rowsort
SELECT ALL + 61 * col1 * - 49 FROM tab2
----
-152439
-200263
-230153

query I rowsort
SELECT - col0 FROM tab2 WHERE col0 = col1
----

query II rowsort
SELECT DISTINCT 44 AS col2, - 79 AS col1 FROM tab1
----
44
-79

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 86 + - - col0 col0 FROM tab1 AS cor0
----
137
171
177

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

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

query I rowsort
SELECT DISTINCT + 59 FROM tab2 cor0 WHERE NOT NULL IS NOT NULL
----
59

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

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

query I rowsort
SELECT + col1 * col2 * + 0 FROM tab2 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT + col1 * - col2 * - 25 FROM tab1 AS cor0
----
33600
7375
79900

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1478
SELECT - col1 + + - CAST( NULL AS DECIMAL ), col1 / - + ( col1 ) FROM tab1 WHERE NOT - - 26 * - ( - 92 ) = NULL
----

skipif mysql # not compatible
query II rowsort label-1478
SELECT - col1 + + - CAST ( NULL AS REAL ), col1 / - + ( col1 ) FROM tab1 WHERE NOT - - 26 * - ( - 92 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1479
SELECT * FROM tab0 WHERE NOT + col0 * + 98 + col0 <> - CAST( NULL AS SIGNED ) + + 96
----

skipif mysql # not compatible
query III rowsort label-1479
SELECT * FROM tab0 WHERE NOT + col0 * + 98 + col0 <> - CAST ( NULL AS INTEGER ) + + 96
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL >= NULL
----

skipif mysql # not compatible
query I rowsort label-1480
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL >= NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE NOT - col2 NOT BETWEEN NULL AND + 48
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1483
SELECT DISTINCT COUNT( * ) * 99 AS col1 FROM tab2
----
297

skipif mysql # not compatible
query I rowsort label-1483
SELECT DISTINCT COUNT ( * ) * 99 AS col1 FROM tab2
----
297

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1485
SELECT - + CAST( NULL AS SIGNED ) / 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1485
SELECT - + CAST ( NULL AS INTEGER ) / 62 FROM tab2 AS cor0
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT ALL ( - + col0 ) FROM tab1 AS cor0 WHERE NOT 60 * - 71 * 13 IS NOT NULL
----

query I rowsort
SELECT - col2 * - - 93 * + - col0 FROM tab2 AS cor0
----
238080
404550
98394

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT MAX( ALL ( + - 2 ) ) AS col0 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-1489
SELECT MAX ( ALL ( + - 2 ) ) AS col0 FROM tab0
----
-2

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

query I rowsort
SELECT + col1 * - 64 AS col2 FROM tab0 AS cor0
----
-1344
-5184
-64

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 + + 12 col0 FROM tab1 cor0
----
-2
-35
7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + + ( + - col2 ) <= NULL AND NULL >= col2 * - + col2
----

query I rowsort
SELECT ALL + 91 + + ( + 52 ) AS col2 FROM tab1 cor0
----
143
143
143

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

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

query II rowsort
SELECT DISTINCT - 57 AS col2, - 10 FROM tab2 AS cor0
----
-57
-10

query I rowsort
SELECT col1 + + col1 * - 10 FROM tab1 AS cor0
----
-126
-423
-45

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - ( - 4 ) ) > ( NULL )
----

query I rowsort
SELECT DISTINCT 94 * - 59 * - col0 AS col2 FROM tab1 AS cor0
----
282846
471410
504686

query I rowsort
SELECT ALL + ( col1 ) * + 42 AS col1 FROM tab0 AS cor0
----
3402
42
882

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - + 58 + 84 col2 FROM tab2
----
-2584
-3628
-4266

query I rowsort
SELECT - 53 * + ( + + col1 ) + - col2 * 25 * 25 AS col1 FROM tab2
----
-17078
-29081
-39801

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1505
SELECT - COUNT( * ) * 71 AS col1, + ( COUNT( * ) ) AS col0 FROM tab2
----
-213
3

skipif mysql # not compatible
query II rowsort label-1505
SELECT - COUNT ( * ) * 71 AS col1, + ( COUNT ( * ) ) AS col0 FROM tab2
----
-213
3

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

query I rowsort
SELECT DISTINCT + - col0 - + col1 * - + 19 - - col1 * 86 FROM tab2 AS cor0
----
5309
6960
8021

query I rowsort
SELECT + 62 + - col1 + + - col0 * + + 6 * + 8 FROM tab0
----
-4135
-4595
-739

onlyif mysql # aggregate syntax: 
query I rowsort label-1509
SELECT COUNT( * ) FROM tab2 AS cor0 INNER JOIN tab1 cor1 ON NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-1509
SELECT COUNT ( * ) FROM tab2 AS cor0 INNER JOIN tab1 cor1 ON NOT NULL IS NULL
----
0

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

query I rowsort
SELECT col0 * + col0 * col1 FROM tab0 cor0
----
158949
18225
9409

onlyif mysql # CAST syntax: DECIMAL type: DIV for integer division: 
query II rowsort label-1512
SELECT DISTINCT 70 + - - 20 DIV + + col0 AS col0, - 21 * - + 33 * col1 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
70
35343
70
46431
70
53361

skipif mysql # not compatible
query II rowsort label-1512
SELECT DISTINCT 70 + - - 20 / + + col0 AS col0, - 21 * - + 33 * col1 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) IS NULL
----
70
35343
70
46431
70
53361

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1516
SELECT DISTINCT MIN( ALL 54 ) AS col2 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-1516
SELECT DISTINCT MIN ( ALL 54 ) AS col2 FROM tab2 AS cor0
----
54

query III rowsort
SELECT ALL * FROM tab2 WHERE - 30 BETWEEN + 59 AND NULL
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE col2 BETWEEN NULL AND + col1 * + + 45 + col1 * + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1519
SELECT ALL + SUM( ALL - 14 ) col0, - 18 + COUNT( * ) FROM tab1 cor0
----
-42
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1519
SELECT ALL + SUM ( ALL - 14 ) col0, - 18 + COUNT ( * ) FROM tab1 cor0
----
-42
-15

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 19 * - 58 < + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 8, col0 * - 73 AS col1 FROM tab2 AS cor0
----
8
-3358
8
-4672
8
-5475

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1522
SELECT - - 68 / + + SUM( - - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1522
SELECT - - 68 / + + SUM ( - - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * + - ( + - col0 ) col2 FROM tab2 AS cor0
----
2346
4928
5025

query I rowsort
SELECT - + col0 + col2 * col0 + + - col1 AS col1 FROM tab2 AS cor0
----
2419
4208
961

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + col1 > + 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( + 37 ) + - col2 FROM tab0
----
-10
-62
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1528
SELECT ALL 8 * 55 * CAST( NULL AS SIGNED ) + + col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1528
SELECT ALL 8 * 55 * CAST ( NULL AS INTEGER ) + + col1 FROM tab2
----
NULL
NULL
NULL

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

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

query II rowsort
SELECT + + 73 * + col0, col0 FROM tab0 AS cor0
----
1095
15
6351
87
7081
97

query I rowsort
SELECT ALL - col1 * ( - + col1 ) AS col0 FROM tab0 AS cor0
----
1
441
6561

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN - col1 AND 5 + - 61
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT DISTINCT - col0 DIV - - 9 AS col2 FROM tab1
----
-10
-5
-9

skipif mysql # not compatible
query I rowsort label-1534
SELECT DISTINCT - col0 / - - 9 AS col2 FROM tab1
----
-10
-5
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1535
SELECT ALL MAX( DISTINCT - CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1535
SELECT ALL MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 WHERE NOT - - col1 IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 BETWEEN NULL AND + 85
----

query II rowsort
SELECT - 18 + - - col0 - - - col1, + col0 AS col2 FROM tab2 AS cor0
----
-10
75
-23
46
-31
64

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL <> col0 + - col2 / - 53
----

query I rowsort
SELECT ALL col0 + + - ( - 76 ) FROM tab2 AS cor0
----
122
140
151

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

skipif mysql # not compatible
query I rowsort label-1540
SELECT ALL + 2 * + COUNT ( * ) - COUNT ( * ) FROM tab0 AS cor0
----
3

query II rowsort
SELECT 0 AS col1, 18 FROM tab0 AS cor0
----
0
18
0
18
0
18

onlyif mysql # aggregate syntax: 
query I rowsort label-1542
SELECT DISTINCT + ( MIN( DISTINCT - + col1 ) ) FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-1542
SELECT DISTINCT + ( MIN ( DISTINCT - + col1 ) ) FROM tab0
----
-81

query I rowsort
SELECT DISTINCT + col0 * - 24 AS col0 FROM tab2 AS cor0
----
-1104
-1536
-1800

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1544
SELECT ALL + 35 DIV + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-1544
SELECT ALL + 35 / + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1545
SELECT ALL + col2 * + + ( - + ( 31 ) ) + + 79 + + CAST( + + col2 AS SIGNED ) FROM tab1 AS cor0
----
-1691
-1961
-2801

skipif mysql # not compatible
query I rowsort label-1545
SELECT ALL + col2 * + + ( - + ( 31 ) ) + + 79 + + CAST ( + + col2 AS INTEGER ) FROM tab1 AS cor0
----
-1691
-1961
-2801

query I rowsort
SELECT DISTINCT col0 * + - col0 * 10 FROM tab0 cor0
----
-2250
-75690
-94090

query I rowsort
SELECT ALL - - 66 AS col1 FROM tab1 cor0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1548
SELECT - MIN( DISTINCT - ( col1 ) ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1548
SELECT - MIN ( DISTINCT - ( col1 ) ) col0 FROM tab2
----
77

query III rowsort
SELECT DISTINCT + col2 AS col2, 74 * - 26 AS col1, - col2 AS col0 FROM tab2
----
9 values hashing to 975e4edcf6dde1761d69f27cbbb8e38c

onlyif mysql # aggregate syntax: 
query I rowsort label-1550
SELECT + COUNT( DISTINCT + 27 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-1550
SELECT + COUNT ( DISTINCT + 27 ) FROM tab0
----
1

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1551
SELECT DISTINCT - CAST( NULL AS DECIMAL ) + + 39 * 42 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-1551
SELECT DISTINCT - CAST ( NULL AS REAL ) + + 39 * 42 AS col2, + col0 AS col0 FROM tab0 AS cor0
----
NULL
15
NULL
87
NULL
97

query I rowsort
SELECT ALL - 85 + + col2 * + + col2 FROM tab2 cor0
----
1515
3279
444

onlyif mysql # DIV for integer division: 
query I rowsort label-1553
SELECT ALL + 38 DIV col1 * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
23
50
91

skipif mysql # not compatible
query I rowsort label-1553
SELECT ALL + 38 / col1 * - col1 + + col0 AS col2 FROM tab1 AS cor0
----
23
50
91

query I rowsort
SELECT + col2 + + + col0 + + + col0 + - - col0 AS col0 FROM tab1 AS cor0
----
249
314
341

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col1 + - - col1 AND 82
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT DISTINCT + ( + COUNT( * ) ) + + - MIN( - 39 ) col0 FROM tab1 cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1556
SELECT DISTINCT + ( + COUNT ( * ) ) + + - MIN ( - 39 ) col0 FROM tab1 cor0
----
42

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT + + col0 * - col2 * 45 DIV + + col2 + + col1 FROM tab0 AS cor0
----
-3894
-4364
-594

skipif mysql # not compatible
query I rowsort label-1557
SELECT + + col0 * - col2 * 45 / + + col2 + + col1 FROM tab0 AS cor0
----
-3894
-4364
-594

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col0 ) + + + col2 * + col2 * - - ( 22 ) = NULL
----

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

query I rowsort
SELECT DISTINCT - - col1 - - - col2 * - - col0 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query II rowsort label-1561
SELECT DISTINCT + 30 AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
30
-3

skipif mysql # not compatible
query II rowsort label-1561
SELECT DISTINCT + 30 AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
30
-3

query I rowsort
SELECT ALL - col0 * 79 - col2 + ( + col0 ) FROM tab0 AS cor0
----
-1217
-6796
-7665

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

query I rowsort
SELECT + 50 * + col0 * - ( col1 ) AS col0 FROM tab0
----
-4850
-60750
-91350

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1565
SELECT + col2 * - CAST( NULL AS SIGNED ) AS col0, + 20 - - ( - 42 ) FROM tab2
----
NULL
-22
NULL
-22
NULL
-22

skipif mysql # not compatible
query II rowsort label-1565
SELECT + col2 * - CAST ( NULL AS INTEGER ) AS col0, + 20 - - ( - 42 ) FROM tab2
----
NULL
-22
NULL
-22
NULL
-22

query I rowsort
SELECT - 10 AS col1 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - 16 * + col0 AS col2 FROM tab0
----
-1392
-1552
-240

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1569
SELECT - COUNT( * ) * 16 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-1569
SELECT - COUNT ( * ) * 16 FROM tab0
----
-48

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NOT + col2 * - + 38 + 10 NOT BETWEEN col2 AND - col2
----

query I rowsort
SELECT DISTINCT + 72 FROM tab0 WHERE NOT 86 * - + 75 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1572
SELECT ALL + COUNT( * ) + + 61 FROM tab1 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-1572
SELECT ALL + COUNT ( * ) + + 61 FROM tab1 AS cor0
----
64

query II rowsort
SELECT DISTINCT - + col2 * + col2 AS col1, ( - - 10 ) FROM tab2 AS cor0
----
-1600
10
-3364
10
-529
10

query I rowsort
SELECT ALL - col1 AS col0 FROM tab1 WHERE NOT - + col0 = + + col0 * col1
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-1575
SELECT + 65 DIV + col0 + - 82 + col2 FROM tab2 AS cor0
----
-24
-41
-58

skipif mysql # not compatible
query I rowsort label-1575
SELECT + 65 / + col0 + - 82 + col2 FROM tab2 AS cor0
----
-24
-41
-58

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

query II rowsort
SELECT - col1, + col0 * - + 2 * + 1 * col0 AS col0 FROM tab1 AS cor0
----
-14
-5202
-47
-16562
-5
-14450

query II rowsort
SELECT - 55 AS col2, col0 * - - col2 AS col0 FROM tab0 AS cor0
----
-55
705
-55
870
-55
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-1579
SELECT ALL - ( + MIN( ALL col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-1579
SELECT ALL - ( + MIN ( ALL col1 ) ) AS col2 FROM tab0 AS cor0
----
-1

query II rowsort
SELECT + - 4 * + col0 * - - col0, + 26 * - col1 + - + col2 - - col1 AS col2 FROM tab2 cor0
----
-16384
-1965
-22500
-1733
-8464
-1298

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

query I rowsort
SELECT DISTINCT - col0 + + 6 AS col2 FROM tab2
----
-40
-58
-69

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1584
SELECT DISTINCT - - 95 * + COUNT( * ) DIV + + COUNT( * ) FROM tab2 cor0 WHERE NOT - 64 * + ( - - col1 ) IS NULL
----
95

skipif mysql # not compatible
query I rowsort label-1584
SELECT DISTINCT - - 95 * + COUNT ( * ) / + + COUNT ( * ) FROM tab2 cor0 WHERE NOT - 64 * + ( - - col1 ) IS NULL
----
95

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

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

query II rowsort
SELECT DISTINCT - + ( + col1 ) + 40 AS col0, col1 FROM tab2 AS cor0
----
-11
51
-27
67
-37
77

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 43 * - + 3 BETWEEN - 30 AND - 16
----

query II rowsort
SELECT 85 * - - 28 - - - col2 - - col2 + - col2, + col0 FROM tab0 AS cor0
----
2281
97
2333
15
2370
87

query I rowsort
SELECT - + ( - col1 ) - + 92 * + - 25 FROM tab2 AS cor0
----
2351
2367
2377

onlyif mysql # aggregate syntax: 
query I rowsort label-1592
SELECT ALL - COUNT( * ) - - 62 AS col0 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-1592
SELECT ALL - COUNT ( * ) - - 62 AS col0 FROM tab2 AS cor0
----
59

query I rowsort
SELECT DISTINCT col2 + + col1 * col1 FROM tab0 cor0
----
100
451
6608

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1594
SELECT ALL + - CAST( + col0 AS SIGNED ) - - + 0, col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

skipif mysql # not compatible
query II rowsort label-1594
SELECT ALL + - CAST ( + col0 AS INTEGER ) - - + 0, col1 AS col1 FROM tab2 AS cor0
----
-46
51
-64
77
-75
67

query III rowsort
SELECT ALL * FROM tab0 WHERE + 70 IS NULL
----

query I rowsort
SELECT - 1 + col2 - - 33 * - - 56 * - - 80 FROM tab0
----
147849
147886
147938

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT ALL + COUNT( * ) AS col2, MIN( + - col1 ) FROM tab2
----
3
-77

skipif mysql # not compatible
query II rowsort label-1597
SELECT ALL + COUNT ( * ) AS col2, MIN ( + - col1 ) FROM tab2
----
3
-77

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1599
SELECT DISTINCT CAST( col1 AS SIGNED ) * + col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-1599
SELECT DISTINCT CAST ( col1 AS INTEGER ) * + col1 FROM tab1
----
196
2209
25

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT DISTINCT + ( - - COUNT( * ) ) * - + 79 col0 FROM tab1
----
-237

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1602
SELECT DISTINCT + ( - - COUNT ( * ) ) * - + 79 col0 FROM tab1
----
-237

query II rowsort
SELECT - col0 * col1 AS col0, col0 AS col1 FROM tab2 AS cor0
----
-2346
46
-4928
64
-5025
75

query I rowsort
SELECT DISTINCT + + 21 * + 74 + - - col2 FROM tab1 AS cor0
----
1613
1622
1650

query I rowsort
SELECT col1 + + - 5 FROM tab0 AS cor0 WHERE NOT - col0 + - 88 - + col2 > + 58
----
-4
16
76

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT SUM( + col1 ) + + - 57 AS col2 FROM tab2
----
138

skipif mysql # not compatible
query I rowsort label-1607
SELECT SUM ( + col1 ) + + - 57 AS col2 FROM tab2
----
138

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

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

skipif mysql # not compatible
query II rowsort label-1609
SELECT col1, 63 / - col2 AS col0 FROM tab2
----
51
-2
67
-1
77
-1

query I rowsort
SELECT ALL col0 + 37 * + col1 AS col1 FROM tab2
----
1933
2554
2913

query I rowsort
SELECT ALL - 19 + + col0 FROM tab0
----
-4
68
78

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab0 WHERE NOT - + col1 IS NULL
----
1
21
81

query I rowsort
SELECT ALL 91 + - + col1 FROM tab1
----
44
77
86

query I rowsort
SELECT DISTINCT + - col2 + - - 37 FROM tab0 cor0
----
-10
-62
27

query I rowsort
SELECT DISTINCT - 97 + - col0 * - ( - + col2 ) * - 56 FROM tab2 AS cor0
----
143263
243503
59151

query I rowsort
SELECT ALL - col1 + - 6 * col2 FROM tab2 AS cor0
----
-189
-317
-415

query I rowsort
SELECT ALL + col0 + - - 11 FROM tab1 AS cor0
----
102
62
96

query I rowsort
SELECT ALL - col2 - - col0 + col1 FROM tab1 AS cor0
----
-31
31
70

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

query II rowsort
SELECT col2 AS col0, + col1 AS col0 FROM tab2
----
23
51
40
77
58
67

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

skipif mysql # not compatible
query I rowsort label-1621
SELECT ALL CAST ( NULL AS REAL ) - + MAX ( ALL - CAST ( + + 33 AS INTEGER ) ) + + - MIN ( - - col1 ) FROM tab2
----
NULL

query II rowsort
SELECT col0, - col2 + + 37 FROM tab0
----
15
-10
87
27
97
-62

query I rowsort
SELECT 69 * col2 * - 33 FROM tab1
----
-134343
-154836
-218592

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1624
SELECT CAST( - 42 AS SIGNED ) * col2 * col1 - - + CAST( + + col0 AS SIGNED ) AS col1 FROM tab0
----
-159879
-4061
-8733

skipif mysql # not compatible
query I rowsort label-1624
SELECT CAST ( - 42 AS INTEGER ) * col2 * col1 - - + CAST ( + + col0 AS INTEGER ) AS col1 FROM tab0
----
-159879
-4061
-8733

onlyif mysql # aggregate syntax: 
query I rowsort label-1625
SELECT ALL COUNT( * ) * 83 AS col0 FROM tab2
----
249

skipif mysql # not compatible
query I rowsort label-1625
SELECT ALL COUNT ( * ) * 83 AS col0 FROM tab2
----
249

onlyif mysql # aggregate syntax: 
query I rowsort label-1626
SELECT DISTINCT MIN( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1626
SELECT DISTINCT MIN ( DISTINCT + col1 ) AS col2 FROM tab0 cor0
----
1

query II rowsort
SELECT ALL - 25, col0 FROM tab2
----
-25
46
-25
64
-25
75

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * - col0 col0 FROM tab1 cor0
----
-425
-4277
-714

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1630
SELECT - 6 * - COUNT ( DISTINCT - 25 ) + - COUNT ( - 90 ) col0 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + ( + + col1 ) * - 60 + - + 39 AS col2 FROM tab1 cor0
----
-2859
-339
-879

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT ALL - COUNT( * ) * - - MIN( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-69

skipif mysql # not compatible
query I rowsort label-1633
SELECT ALL - COUNT ( * ) * - - MIN ( DISTINCT + col2 ) AS col2 FROM tab2 AS cor0
----
-69

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1635
SELECT - MAX( + - col1 ) * + + COUNT( * ) FROM tab1 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-1635
SELECT - MAX ( + - col1 ) * + + COUNT ( * ) FROM tab1 AS cor0
----
15

query II rowsort
SELECT DISTINCT col0 * col0 AS col0, col2 * - - col2 AS col1 FROM tab1
----
2601
9216
7225
3481
8281
4624

query I rowsort
SELECT DISTINCT - col2 * - ( - ( - + 9 ) ) FROM tab1
----
531
612
864

query I rowsort
SELECT + col1 AS col1 FROM tab0 WHERE col1 NOT IN ( 19, col0, + col2 )
----
1
21
81

onlyif mysql # DIV for integer division: 
query II rowsort label-1639
SELECT ALL + col0 * + col1 + + 97 DIV col1 * col2, col0 FROM tab0
----
1262
15
1867
87
9700
97

skipif mysql # not compatible
query II rowsort label-1639
SELECT ALL + col0 * + col1 + + 97 / col1 * col2, col0 FROM tab0
----
1262
15
1867
87
9700
97

query I rowsort
SELECT DISTINCT - 90 + - + 68 FROM tab2 AS cor0
----
-158

query I rowsort
SELECT ALL - ( + col2 ) * + 89 FROM tab2
----
-2047
-3560
-5162

onlyif mysql # aggregate syntax: 
query I rowsort label-1642
SELECT ALL + COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1642
SELECT ALL + COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-1643
SELECT DISTINCT SUM( + + 41 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
369

skipif mysql # not compatible
query I rowsort label-1643
SELECT DISTINCT SUM ( + + 41 ) FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
369

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

skipif mysql # not compatible
query I rowsort label-1644
SELECT ( 77 ) - + COUNT ( * ) / - 57 FROM tab1 AS cor0
----
77

query I rowsort
SELECT ALL + + 97 + - 68 FROM tab0 AS cor0
----
29
29
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1646
SELECT ALL ( + - 28 ) * col1 + - col0 + CAST( - col0 AS SIGNED ) + + - 15 * + col0 + + - col0 FROM tab1 AS cor0
----
-1310
-1670
-2954

skipif mysql # not compatible
query I rowsort label-1646
SELECT ALL ( + - 28 ) * col1 + - col0 + CAST ( - col0 AS INTEGER ) + + - 15 * + col0 + + - col0 FROM tab1 AS cor0
----
-1310
-1670
-2954

query I rowsort
SELECT ALL - + col0 FROM tab2 AS cor0 WHERE ( ( NOT col2 + - col0 - + col1 * - 5 IS NOT NULL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL + - MAX( col0 ) - 60 AS col1 FROM tab1 AS cor0
----
-151

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL + - MAX ( col0 ) - 60 AS col1 FROM tab1 AS cor0
----
-151

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1651
SELECT col2 DIV + + 73 + + 47 AS col0 FROM tab2 AS cor0
----
47
47
47

skipif mysql # not compatible
query I rowsort label-1651
SELECT col2 / + + 73 + + 47 AS col0 FROM tab2 AS cor0
----
47
47
47

query I rowsort
SELECT col2 + + 76 AS col0 FROM tab1 WHERE NOT + col1 IS NULL
----
135
144
172

query I rowsort
SELECT + 55 * + - col2 * + col2 + col0 FROM tab0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + + 13 * col2 AS col1 FROM tab1
----
-63648
-65195
-80444

onlyif mysql # aggregate syntax: 
query I rowsort label-1655
SELECT ( + - SUM( - col0 ) ) * + SUM( ALL + col0 ) * - COUNT( * ) * + + COUNT( * ) + + 45 FROM tab0
----
-356364

skipif mysql # not compatible
query I rowsort label-1655
SELECT ( + - SUM ( - col0 ) ) * + SUM ( ALL + col0 ) * - COUNT ( * ) * + + COUNT ( * ) + + 45 FROM tab0
----
-356364

onlyif mysql # aggregate syntax: 
query I rowsort label-1656
SELECT DISTINCT + - COUNT( * ) FROM tab0 WHERE NOT - ( - 80 ) <> - col1
----
0

skipif mysql # not compatible
query I rowsort label-1656
SELECT DISTINCT + - COUNT ( * ) FROM tab0 WHERE NOT - ( - 80 ) <> - col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT ALL + col1 * + CAST( - + 90 AS SIGNED ) AS col2 FROM tab0
----
-1890
-7290
-90

skipif mysql # not compatible
query I rowsort label-1657
SELECT ALL + col1 * + CAST ( - + 90 AS INTEGER ) AS col2 FROM tab0
----
-1890
-7290
-90

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1659
SELECT - MAX( ALL + 57 ) AS col1 FROM tab0
----
-57

skipif mysql # not compatible
query I rowsort label-1659
SELECT - MAX ( ALL + 57 ) AS col1 FROM tab0
----
-57

onlyif mysql # aggregate syntax: 
query II rowsort label-1660
SELECT - 11 col0, SUM( - - 95 ) - - 73 - - SUM( col0 ) FROM tab1
----
-11
585

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1660
SELECT - 11 col0, SUM ( - - 95 ) - - 73 - - SUM ( col0 ) FROM tab1
----
-11
585

onlyif mysql # aggregate syntax: 
query I rowsort label-1661
SELECT 76 * COUNT( * ) FROM tab1
----
228

skipif mysql # not compatible
query I rowsort label-1661
SELECT 76 * COUNT ( * ) FROM tab1
----
228

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1663
SELECT DISTINCT CAST( + - 77 AS SIGNED ) col2 FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1663
SELECT DISTINCT CAST ( + - 77 AS INTEGER ) col2 FROM tab2 AS cor0
----
-77

query I rowsort
SELECT ALL + ( - + 43 ) AS col0 FROM tab2 AS cor0
----
-43
-43
-43

query I rowsort
SELECT + 72 + - col1 AS col0 FROM tab0 AS cor0
----
-9
51
71

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + 14 col0, 16 FROM tab1 AS cor0 WHERE NOT col2 + col2 <= + - col2
----
-14
16
-14
16
-14
16

query I rowsort
SELECT ALL + col1 + + + 20 AS col0 FROM tab1 AS cor0
----
25
34
67

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

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

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

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

query I rowsort
SELECT + 28 AS col0 FROM tab2 AS cor0 WHERE col0 <> NULL
----

query I rowsort
SELECT ALL 24 + + col1 AS col1 FROM tab0 AS cor0
----
105
25
45

onlyif mysql # aggregate syntax: 
query I rowsort label-1674
SELECT DISTINCT - SUM( ALL - col1 ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1674
SELECT DISTINCT - SUM ( ALL - col1 ) AS col0 FROM tab2
----
195

onlyif mysql # aggregate syntax: 
query II rowsort label-1675
SELECT MAX( DISTINCT col2 ) AS col0, 16 + + - ( COUNT( * ) ) FROM tab1 AS cor0
----
96
13

skipif mysql # not compatible
query II rowsort label-1675
SELECT MAX ( DISTINCT col2 ) AS col0, 16 + + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
96
13

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1678
SELECT DISTINCT - 54 col2, COUNT( - col0 ) FROM tab1
----
-54
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1679
SELECT - 59 AS col0, CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
-59
NULL
-59
NULL
-59
NULL

skipif mysql # not compatible
query II rowsort label-1679
SELECT - 59 AS col0, CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
-59
NULL
-59
NULL
-59
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1680
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT - col2 <> 50 + - CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1680
SELECT - - col1 FROM tab0 AS cor0 WHERE NOT - col2 <> 50 + - CAST ( col2 AS INTEGER )
----

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

query I rowsort
SELECT - 25 * - col2 AS col0 FROM tab2
----
1000
1450
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1683
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + col2 FROM tab2 WHERE + col2 * + ( 32 ) + - CAST( NULL AS SIGNED ) = ( ( + col2 ) )
----

skipif mysql # not compatible
query I rowsort label-1683
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + col2 FROM tab2 WHERE + col2 * + ( 32 ) + - CAST ( NULL AS INTEGER ) = ( ( + col2 ) )
----

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

query I rowsort
SELECT ALL - col0 + 99 FROM tab1
----
14
48
8

onlyif mysql # aggregate syntax: 
query I rowsort label-1686
SELECT DISTINCT 21 * ( + COUNT( * ) ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-1686
SELECT DISTINCT 21 * ( + COUNT ( * ) ) FROM tab0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1687
SELECT ALL * FROM tab2 WHERE ( + 16 * - col1 + CAST( - col1 AS SIGNED ) * + col2 ) NOT IN ( + 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-1687
SELECT ALL * FROM tab2 WHERE ( + 16 * - col1 + CAST ( - col1 AS INTEGER ) * + col2 ) NOT IN ( + 16 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT + col1 * col2 AS col2 FROM tab0 WHERE NOT ( - 66 ) IS NULL
----
210
3807
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1691
SELECT ALL + CAST( col2 AS SIGNED ) + 75 AS col1 FROM tab1
----
134
143
171

skipif mysql # not compatible
query I rowsort label-1691
SELECT ALL + CAST ( col2 AS INTEGER ) + 75 AS col1 FROM tab1
----
134
143
171

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1692
SELECT DISTINCT CAST( + ( - col2 ) AS SIGNED ) FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-1692
SELECT DISTINCT CAST ( + ( - col2 ) AS INTEGER ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT ALL ( col2 ) * 13 AS col1 FROM tab0
----
1287
130
611

query I rowsort
SELECT 87 FROM tab1 WHERE 42 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1695
SELECT * FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) + + col1 / + col0 IN ( + 46 )
----

skipif mysql # not compatible
query III rowsort label-1695
SELECT * FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) + + col1 / + col0 IN ( + 46 )
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 11 * + col0 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-1699
SELECT - COUNT ( * ) / 46 AS col2 FROM tab1
----
0

query I rowsort
SELECT ALL 59 + col0 AS col0 FROM tab0
----
146
156
74

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

query I rowsort
SELECT 78 * col2 AS col0 FROM tab2
----
1794
3120
4524

query I rowsort
SELECT DISTINCT + 85 * + 95 AS col1 FROM tab1
----
8075

onlyif mysql # DIV for integer division: 
query I rowsort label-1704
SELECT ALL + col2 + col2 DIV + ( + 98 ) FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-1704
SELECT ALL + col2 + col2 / + ( + 98 ) FROM tab2
----
23
40
58

query I rowsort
SELECT ALL 67 * col1 FROM tab1
----
3149
335
938

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1706
SELECT 71 * + CAST( + 2 AS SIGNED ) FROM tab0
----
142
142
142

skipif mysql # not compatible
query I rowsort label-1706
SELECT 71 * + CAST ( + 2 AS INTEGER ) FROM tab0
----
142
142
142

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

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

query I rowsort
SELECT col1 + col2 * - 58 AS col1 FROM tab0 AS cor0
----
-2645
-559
-5741

onlyif mysql # DIV for integer division: 
query I rowsort label-1709
SELECT ALL - col1 + + 81 DIV - col0 AS col2 FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-1709
SELECT ALL - col1 + + 81 / - col0 AS col2 FROM tab1 AS cor0
----
-15
-47
-5

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

query I rowsort
SELECT ALL + col0 - col0 * 43 AS col2 FROM tab2 AS cor0
----
-1932
-2688
-3150

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

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

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 WHERE ( + 61 ) IS NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - 70 * col1 >= - ( 38 ) * - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

query I rowsort
SELECT ALL col0 * - col0 FROM tab1 WHERE NOT col2 IS NULL
----
-2601
-7225
-8281

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 * + col0 col0 FROM tab0
----
1185
6873
7663

query I rowsort
SELECT ALL + 10 * - col0 FROM tab0 AS cor0
----
-150
-870
-970

query I rowsort
SELECT DISTINCT col1 * + 2 AS col2 FROM tab0 AS cor0
----
162
2
42

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 98 NOT BETWEEN NULL AND NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1724
SELECT ALL - COUNT( * ) col0 FROM tab2 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-1724
SELECT ALL - COUNT ( * ) col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-1726
SELECT DISTINCT MIN( 92 ) * - CAST( NULL AS DECIMAL ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1726
SELECT DISTINCT MIN ( 92 ) * - CAST ( NULL AS REAL ) AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1727
SELECT DISTINCT + 51 * - - MIN( - col2 ) AS col1 FROM tab1
----
-4896

skipif mysql # not compatible
query I rowsort label-1727
SELECT DISTINCT + 51 * - - MIN ( - col2 ) AS col1 FROM tab1
----
-4896

query III rowsort
SELECT ALL * FROM tab1 WHERE ( - col0 * col2 ) = - 75 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1729
SELECT DISTINCT COUNT( DISTINCT + - col1 ) * MIN( DISTINCT 79 ) FROM tab1
----
237

skipif mysql # not compatible
query I rowsort label-1729
SELECT DISTINCT COUNT ( DISTINCT + - col1 ) * MIN ( DISTINCT 79 ) FROM tab1
----
237

query I rowsort
SELECT + 47 * - - col1 FROM tab1
----
2209
235
658

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1731
SELECT ALL ( - 32 ) * COUNT( - col1 + CAST( 1 + + 45 AS SIGNED ) / - col1 ) AS col2 FROM tab0
----
-96

skipif mysql # not compatible
query I rowsort label-1731
SELECT ALL ( - 32 ) * COUNT ( - col1 + CAST ( 1 + + 45 AS INTEGER ) / - col1 ) AS col2 FROM tab0
----
-96

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

query I rowsort
SELECT - 78 * 60 FROM tab2 AS cor0
----
-4680
-4680
-4680

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1734
SELECT ALL - CAST ( + CAST ( COUNT ( * ) AS REAL ) AS INTEGER ) + - COUNT ( * ) col1 FROM tab1 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-1735
SELECT DISTINCT col2 DIV 71 * - 90 FROM tab0 AS cor0
----
-90
0

skipif mysql # not compatible
query I rowsort label-1735
SELECT DISTINCT col2 / 71 * - 90 FROM tab0 AS cor0
----
-90
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1737
SELECT + MAX( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-1737
SELECT + MAX ( + ( col1 ) ) AS col1 FROM tab0 AS cor0
----
81

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1739
SELECT ALL + SUM( DISTINCT + 49 ) AS col0 FROM tab0
----
49

skipif mysql # not compatible
query I rowsort label-1739
SELECT ALL + SUM ( DISTINCT + 49 ) AS col0 FROM tab0
----
49

onlyif mysql # aggregate syntax: 
query I rowsort label-1740
SELECT 59 + COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-1740
SELECT 59 + COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
68

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

query I rowsort
SELECT ALL + 27 + col1 FROM tab2 WHERE + + col2 BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1743
SELECT DISTINCT 99 + + MAX( DISTINCT + 2 ) FROM tab0
----
101

skipif mysql # not compatible
query I rowsort label-1743
SELECT DISTINCT 99 + + MAX ( DISTINCT + 2 ) FROM tab0
----
101

query I rowsort
SELECT DISTINCT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 46 NOT BETWEEN + + col1 AND col1 * 14
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 >= + + ( + 46 ) * - 1
----

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

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

query I rowsort
SELECT 11 * + col2 FROM tab2
----
253
440
638

query I rowsort
SELECT col2 FROM tab0 WHERE NULL BETWEEN ( + + col0 / - col2 + - col1 ) AND + 2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1749
SELECT 3 DIV - COUNT( * ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-1749
SELECT 3 / - COUNT ( * ) FROM tab2
----
-1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT - ( + MIN( ALL - 17 ) ) AS col0 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT - ( + MIN ( ALL - 17 ) ) AS col0 FROM tab2
----
17

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * + 86 IN ( col1 / col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1753
SELECT 44 DIV col2 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-1753
SELECT 44 / col2 FROM tab2
----
0
1
1

query III rowsort
SELECT * FROM tab1 WHERE 86 <> + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1755
SELECT ALL - COUNT( DISTINCT - CAST( + col2 AS SIGNED ) ) AS col1 FROM tab1 WHERE NOT NULL >= - col0
----
0

skipif mysql # not compatible
query I rowsort label-1755
SELECT ALL - COUNT ( DISTINCT - CAST ( + col2 AS INTEGER ) ) AS col1 FROM tab1 WHERE NOT NULL >= - col0
----
0

query I rowsort
SELECT ALL - col0 * - col1 * + 71 + col1 AS col2 FROM tab1
----
30180
303714
50708

query I rowsort
SELECT DISTINCT - + 14 + - + col2 + + col2 FROM tab0 cor0
----
-14

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

query I rowsort
SELECT + col1 + + 62 * 97 FROM tab0 AS cor0 WHERE col2 - + col0 IS NOT NULL
----
6015
6035
6095

onlyif mysql # aggregate syntax: 
query I rowsort label-1760
SELECT DISTINCT 69 - + COUNT( * ) AS col0 FROM tab1 cor0
----
66

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT 69 - + COUNT ( * ) AS col0 FROM tab1 cor0
----
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1761
SELECT ALL CAST( MAX( ALL col2 ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
99

skipif mysql # not compatible
query I rowsort label-1761
SELECT ALL CAST ( MAX ( ALL col2 ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1762
SELECT ALL - COUNT( * ) * COUNT( * ) * - + 21 FROM tab2 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-1762
SELECT ALL - COUNT ( * ) * COUNT ( * ) * - + 21 FROM tab2 AS cor0
----
189

onlyif mysql # aggregate syntax: 
query I rowsort label-1763
SELECT MIN( ALL - + col1 ) AS col0 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-1763
SELECT MIN ( ALL - + col1 ) AS col0 FROM tab1
----
-47

query I rowsort
SELECT DISTINCT + 23 * col2 AS col0 FROM tab2 AS cor0
----
1334
529
920

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

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

query I rowsort
SELECT + col1 AS col2 FROM tab0 cor0 WHERE NOT col2 + col0 + 20 * + col0 IN ( col0 )
----
1
21
81

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

query II rowsort
SELECT 95 AS col0, - ( col1 ) FROM tab1 AS cor0
----
95
-14
95
-47
95
-5

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

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

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

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

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

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE NOT col0 NOT BETWEEN ( - col2 + + - col0 * + - col0 + + col0 ) AND col2 * + 91
----

query I rowsort
SELECT DISTINCT 11 * - 37 AS col0 FROM tab0
----
-407

onlyif mysql # DIV for integer division: 
query I rowsort label-1774
SELECT ALL - col0 DIV + + col1 FROM tab1
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL - col0 / + + col1 FROM tab1
----
-1
-17
-3

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

query I rowsort
SELECT DISTINCT col1 AS col0 FROM tab0 WHERE NULL >= - + 45 + + 47 * + col2
----

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

query I rowsort
SELECT ( + col0 ) * + + col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - ( col1 ) * - col0 + - col0 - - col2 FROM tab0 AS cor0
----
1247
1750
99

query I rowsort
SELECT col1 * col0 + 38 FROM tab2 cor0
----
2384
4966
5063

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

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

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

query I rowsort
SELECT DISTINCT ( ( col2 ) ) FROM tab2 AS cor0 WHERE NOT - 10 IS NULL OR NOT col1 / + ( + col2 ) = NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1784
SELECT DISTINCT COUNT( * ) * + + MIN( ALL - col2 ) AS col2 FROM tab1
----
-288

skipif mysql # not compatible
query I rowsort label-1784
SELECT DISTINCT COUNT ( * ) * + + MIN ( ALL - col2 ) AS col2 FROM tab1
----
-288

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 50 >= + 58
----

query II rowsort
SELECT ALL - col1 + col2, 98 AS col1 FROM tab0 AS cor0
----
-11
98
-34
98
98
98

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

query I rowsort
SELECT - - col0 - + - 92 * - 22 - - col0 FROM tab0 AS cor0
----
-1830
-1850
-1994

query I rowsort
SELECT DISTINCT + + 44 * - 88 FROM tab1 AS cor0 WHERE 60 * - col1 IN ( + 90, - col1 )
----

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

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

query I rowsort
SELECT + - col1 - + 93 - + - ( - - col1 ) AS col0 FROM tab1 AS cor0
----
-93
-93
-93

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

query I rowsort
SELECT 72 + + 92 * + ( + - 55 ) AS col2 FROM tab0
----
-4988
-4988
-4988

query I rowsort
SELECT DISTINCT col1 * - - col1 + + - 25 * col2 AS col1 FROM tab2
----
2026
3039
4929

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1795
SELECT ALL ( + + SUM( ALL - 79 ) ) DIV - - COUNT( * ) FROM tab0
----
-79

skipif mysql # not compatible
query I rowsort label-1795
SELECT ALL ( + + SUM ( ALL - 79 ) ) / - - COUNT ( * ) FROM tab0
----
-79

query III rowsort
SELECT ALL * FROM tab2 WHERE - 62 <= ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT - ( - col1 ) + + 10 AS col2, 71 - col2 FROM tab2
----
61
48
77
13
87
31

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

query I rowsort
SELECT DISTINCT - 55 * col1 + + 31 + - + ( - col1 ) FROM tab2
----
-2723
-3587
-4127

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( + col2 * + ( - - col0 ) * col0 ) < ( + 99 / col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1801
SELECT DISTINCT + 45 + + CAST( + col2 AS SIGNED ) - - + 30 AS col2 FROM tab0 AS cor0 WHERE + col2 / - - 17 IS NOT NULL
----
122
174
85

skipif mysql # not compatible
query I rowsort label-1801
SELECT DISTINCT + 45 + + CAST ( + col2 AS INTEGER ) - - + 30 AS col2 FROM tab0 AS cor0 WHERE + col2 / - - 17 IS NOT NULL
----
122
174
85

onlyif mysql # aggregate syntax: 
query I rowsort label-1802
SELECT SUM( - 99 ) AS col1 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-1802
SELECT SUM ( - 99 ) AS col1 FROM tab0
----
-297

query I rowsort
SELECT ( 54 ) AS col1 FROM tab0
----
54
54
54

query I rowsort
SELECT + 69 * + 72 AS col2 FROM tab2
----
4968
4968
4968

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT ALL - MAX( DISTINCT + - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-1805
SELECT ALL - MAX ( DISTINCT + - col2 ) AS col0 FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-1806
SELECT 63 * + - COUNT( * ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-1806
SELECT 63 * + - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-186

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

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

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 ) >= col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-1811
SELECT DISTINCT - + MAX( + col1 ), - 56 AS col0 FROM tab0 AS cor0
----
-81
-56

skipif mysql # not compatible
query II rowsort label-1811
SELECT DISTINCT - + MAX ( + col1 ), - 56 AS col0 FROM tab0 AS cor0
----
-81
-56

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1813
SELECT ALL - 80 * + CAST( NULL AS SIGNED ) * + - 24 * + 34 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1813
SELECT ALL - 80 * + CAST ( NULL AS INTEGER ) * + - 24 * + 34 * - col2 col1 FROM tab1
----
NULL
NULL
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1815
SELECT DISTINCT CAST( NULL AS SIGNED ) * - ( - 46 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - ( - 46 ) FROM tab1
----
NULL

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

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

skipif mysql # not compatible
query I rowsort label-1817
SELECT DISTINCT - AVG ( + + 69 ) * - - 52 + + ( - ( + - CAST ( NULL AS INTEGER ) ) ) + COUNT ( * ) FROM tab1
----
NULL

query II rowsort
SELECT ALL - 22 AS col2, col0 FROM tab1
----
-22
51
-22
85
-22
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1819
SELECT DISTINCT COUNT( * ) + - 33 AS col2 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-1819
SELECT DISTINCT COUNT ( * ) + - 33 AS col2 FROM tab2
----
-30

query II rowsort
SELECT col1, - col1 + - + 55 FROM tab0
----
1
-56
21
-76
81
-136

query I rowsort
SELECT DISTINCT + 83 * col2 - + + col2 FROM tab2 AS cor0
----
1886
3280
4756

query I rowsort
SELECT ALL + col1 * 32 AS col1 FROM tab1 cor0
----
1504
160
448

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col0 IN ( + col1, - col2 / - - col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 21 * ( - 51 ) FROM tab2
----
1071
1071
1071

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

query I rowsort
SELECT 12 AS col1 FROM tab0 WHERE ( NULL ) IS NULL
----
12
12
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1827
SELECT ALL + col1 DIV + 42 + - - 38 FROM tab0
----
38
38
39

skipif mysql # not compatible
query I rowsort label-1827
SELECT ALL + col1 / + 42 + - - 38 FROM tab0
----
38
38
39

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

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

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

query I rowsort
SELECT ALL col1 + ( - + col0 ) + - col0 + - ( - col2 ) AS col0 FROM tab2 AS cor0
----
-11
-18
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-1831
SELECT DISTINCT + - ( - + COUNT( * ) ) + 8 FROM tab1 cor0
----
11

skipif mysql # not compatible
query I rowsort label-1831
SELECT DISTINCT + - ( - + COUNT ( * ) ) + 8 FROM tab1 cor0
----
11

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT DISTINCT - SUM( + col0 ) - COUNT( * ) AS col2 FROM tab0 cor0
----
-202

skipif mysql # not compatible
query I rowsort label-1832
SELECT DISTINCT - SUM ( + col0 ) - COUNT ( * ) AS col2 FROM tab0 cor0
----
-202

query II rowsort
SELECT ALL + col2 + - col2 * col1 AS col2, + ( + col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND - - col0
----

query I rowsort
SELECT ALL + ( - col2 ) - - + 71 FROM tab2 AS cor0
----
13
31
48

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1835
SELECT DISTINCT ( + + ( + CAST( NULL AS SIGNED ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1835
SELECT DISTINCT ( + + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1836
SELECT ALL + 69 - + - 95 - + COUNT( * ) * - 68 FROM tab2 AS cor0
----
368

skipif mysql # not compatible
query I rowsort label-1836
SELECT ALL + 69 - + - 95 - + COUNT ( * ) * - 68 FROM tab2 AS cor0
----
368

query I rowsort
SELECT DISTINCT - col1 - + + 78 + + col2 AS col0 FROM tab1 AS cor0
----
-24
-57
4

onlyif mysql # aggregate syntax: 
query I rowsort label-1838
SELECT - - COUNT( * ) * + - COUNT( * ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1838
SELECT - - COUNT ( * ) * + - COUNT ( * ) FROM tab0 cor0
----
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 col1 FROM tab1 AS cor0 WHERE - col1 + + + col1 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1840
SELECT CAST( - CAST( - - COUNT( * ) AS DECIMAL ) AS SIGNED ) AS col2 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-1840
SELECT CAST ( - CAST ( - - COUNT ( * ) AS REAL ) AS INTEGER ) AS col2 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-1841
SELECT + MIN( DISTINCT + - col0 ) AS col1 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-1841
SELECT + MIN ( DISTINCT + - col0 ) AS col1 FROM tab2
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - + 18 * col2 col1 FROM tab2
----
-368
-656
-969

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

query II rowsort
SELECT - - col2 * + 38, - col1 AS col1 FROM tab1 AS cor0
----
2242
-5
2584
-47
3648
-14

onlyif mysql # DIV for integer division: 
query I rowsort label-1845
SELECT ALL + + col1 DIV + + 35 FROM tab2 AS cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1845
SELECT ALL + + col1 / + + 35 FROM tab2 AS cor0
----
1
1
2

onlyif mysql # DIV for integer division: 
query I rowsort label-1846
SELECT 69 DIV - col2 - 72 AS col2 FROM tab0 AS cor0
----
-72
-73
-78

skipif mysql # not compatible
query I rowsort label-1846
SELECT 69 / - col2 - 72 AS col2 FROM tab0 AS cor0
----
-72
-73
-78

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT + + MAX( DISTINCT + + 17 ) AS col0 FROM tab2 AS cor0
----
17

skipif mysql # not compatible
query I rowsort label-1847
SELECT + + MAX ( DISTINCT + + 17 ) AS col0 FROM tab2 AS cor0
----
17

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1849
SELECT DISTINCT - MAX( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-1849
SELECT DISTINCT - MAX ( ALL - col1 ) AS col1 FROM tab1 AS cor0
----
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 AS col2, + col1 * - - 18 col2 FROM tab0 AS cor0
----
1
18
21
378
81
1458

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

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

query I rowsort
SELECT + - 30 - - 9 + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-6
66
76

onlyif mysql # aggregate syntax: 
query I rowsort label-1853
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT + col2 + col0 <> col0
----
0

skipif mysql # not compatible
query I rowsort label-1853
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT + col2 + col0 <> col0
----
0

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

query I rowsort
SELECT ALL col1 * col1 + + col2 + + col0 * - 37 * + 94 AS col0 FROM tab0
----
-302135
-337266
-45562

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1856
SELECT DISTINCT + + col0 * + col2 + + CAST( 32 AS SIGNED ) FROM tab2 AS cor0
----
1090
2592
4382

skipif mysql # not compatible
query I rowsort label-1856
SELECT DISTINCT + + col0 * + col2 + + CAST ( 32 AS INTEGER ) FROM tab2 AS cor0
----
1090
2592
4382

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1857
SELECT COUNT( * ) + 31 DIV - ( + COUNT( * ) ) FROM tab0 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-1857
SELECT COUNT ( * ) + 31 / - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
-7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1858
SELECT ALL COUNT( * ) * 88 + COUNT( DISTINCT 83 ) DIV SUM( 50 ) FROM tab2, tab2 AS cor0
----
792

skipif mysql # not compatible
query I rowsort label-1858
SELECT ALL COUNT ( * ) * 88 + COUNT ( DISTINCT 83 ) / SUM ( 50 ) FROM tab2, tab2 AS cor0
----
792

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + 90 col0 FROM tab2 AS cor0
----
113
130
148

query I rowsort
SELECT - + 20 - + col2 FROM tab1 AS cor0
----
-116
-79
-88

query I rowsort
SELECT + 71 - + col0 FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT - COUNT( * ) - + + 51 col0 FROM tab1 AS cor0
----
-54

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

query I rowsort
SELECT ALL 47 - + - 32 FROM tab1 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + col0 * + - col1 - + + col1 FROM tab0 cor0
----
-1296
-1848
-98

onlyif mysql # DIV for integer division: 
query II rowsort label-1866
SELECT + - 32 col1, - col1 DIV col0 AS col0 FROM tab2 AS cor0 WHERE - 96 * + + col1 * col0 IS NOT NULL
----
-32
-1
-32
-1
-32
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1866
SELECT + - 32 col1, - col1 / col0 AS col0 FROM tab2 AS cor0 WHERE - 96 * + + col1 * col0 IS NOT NULL
----
-32
-1
-32
-1
-32
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1867
SELECT ALL - col2 DIV col2 + - col1 - + col2 * - CAST( - + col0 AS SIGNED ) FROM tab2 AS cor0
----
-1110
-2638
-4418

skipif mysql # not compatible
query I rowsort label-1867
SELECT ALL - col2 / col2 + - col1 - + col2 * - CAST ( - + col0 AS INTEGER ) FROM tab2 AS cor0
----
-1110
-2638
-4418

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 76 ) NOT BETWEEN 40 AND + + col0
----
85
5
59
91
47
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1870
SELECT DISTINCT - COUNT( * ) FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN + col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1870
SELECT DISTINCT - COUNT ( * ) FROM tab0 WHERE NOT ( - col1 ) NOT BETWEEN + col0 AND NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1871
SELECT + 88 DIV + - 56 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1871
SELECT + 88 / + - 56 FROM tab0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-1872
SELECT ALL - MIN( + col2 ) * - 26 FROM tab2
----
598

skipif mysql # not compatible
query I rowsort label-1872
SELECT ALL - MIN ( + col2 ) * - 26 FROM tab2
----
598

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1873
SELECT - COUNT( * ) DIV - + ( - 14 ) AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-1873
SELECT - COUNT ( * ) / - + ( - 14 ) AS col0 FROM tab0
----
0

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

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

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

query I rowsort
SELECT + - ( - col1 ) * - + 33 AS col0 FROM tab2 AS cor0
----
-1683
-2211
-2541

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT + - MAX( DISTINCT + 75 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1878
SELECT + - MAX ( DISTINCT + 75 ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-75

query I rowsort
SELECT ALL - 96 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to c89b545346f99713888a7934e4caa539

query I rowsort
SELECT DISTINCT + ( + - 2 ) + col1 FROM tab2 AS cor0
----
49
65
75

query I rowsort
SELECT ALL + col1 + - - 5 AS col1 FROM tab2 AS cor0 WHERE - 65 IS NOT NULL
----
56
72
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1882
SELECT DISTINCT - + COUNT( * ), 60 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + - col2 NOT BETWEEN col0 + - CAST( + col2 AS SIGNED ) AND - - col1
----
0
60

skipif mysql # not compatible
query II rowsort label-1882
SELECT DISTINCT - + COUNT ( * ), 60 AS col2 FROM tab1 AS cor0 WHERE NOT - col0 + - col2 NOT BETWEEN col0 + - CAST ( + col2 AS INTEGER ) AND - - col1
----
0
60

query I rowsort
SELECT 29 + + col1 * - col2 * + + col0 + + + 67 AS col1 FROM tab1 cor0
----
-24979
-290740
-68448

query II rowsort
SELECT ALL + ( - - col0 ), col0 + - 83 AS col2 FROM tab0 AS cor0
----
15
-68
87
4
97
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1885
SELECT ALL + CAST( + - CAST( + - col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-1885
SELECT ALL + CAST ( + - CAST ( + - col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 cor0
----
51
67
77

query I rowsort
SELECT col0 FROM tab2 WHERE ( 36 NOT BETWEEN col0 AND 39 )
----
46
64
75

onlyif mysql # DIV for integer division: 
query II rowsort label-1887
SELECT + col2 DIV - 20 + - col2, + 39 * - + col1 AS col0 FROM tab0
----
-10
-819
-103
-39
-49
-3159

skipif mysql # not compatible
query II rowsort label-1887
SELECT + col2 / - 20 + - col2, + 39 * - + col1 AS col0 FROM tab0
----
-10
-819
-103
-39
-49
-3159

query III rowsort
SELECT ALL * FROM tab0 WHERE - 44 - + 41 = + 29
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1889
SELECT col2, 5 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1889
SELECT col2, 5 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1890
SELECT + COUNT( - ( - - col2 ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1890
SELECT + COUNT ( - ( - - col2 ) ) FROM tab1
----
3

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1892
SELECT DISTINCT 28 DIV - - col2 + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1892
SELECT DISTINCT 28 / - - col2 + col1 FROM tab1
----
14
47
5

onlyif mysql # DIV for integer division: 
query II rowsort label-1893
SELECT ALL - 94 AS col1, 26 DIV + 45 AS col2 FROM tab1
----
-94
0
-94
0
-94
0

skipif mysql # not compatible
query II rowsort label-1893
SELECT ALL - 94 AS col1, 26 / + 45 AS col2 FROM tab1
----
-94
0
-94
0
-94
0

query III rowsort
SELECT * FROM tab1 WHERE NULL <= - + ( + 92 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1895
SELECT DISTINCT col0 + - - 32 * 85 DIV - - col0 AS col1 FROM tab1
----
104
117
120

skipif mysql # not compatible
query I rowsort label-1895
SELECT DISTINCT col0 + - - 32 * 85 / - - col0 AS col1 FROM tab1
----
104
117
120

query I rowsort
SELECT + col0 * + 20 * col1 FROM tab1 AS cor0
----
14280
8500
85540

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1897
SELECT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1897
SELECT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0 WHERE col1 IS NOT NULL
----
NULL
NULL
NULL

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

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

query I rowsort
SELECT DISTINCT + + col0 + + + col2 FROM tab2 WHERE + col0 IS NOT NULL
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 49 * col2 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 AS cor0 WHERE + col1 / col0 / - 70 IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-1902
SELECT + MIN( DISTINCT - + ( - - col2 ) ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-1902
SELECT + MIN ( DISTINCT - + ( - - col2 ) ) FROM tab1 AS cor0
----
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-1903
SELECT ALL + - MIN( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-1903
SELECT ALL + - MIN ( ALL + col0 ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT + MAX( DISTINCT 82 ) FROM tab2
----
82

skipif mysql # not compatible
query I rowsort label-1904
SELECT + MAX ( DISTINCT 82 ) FROM tab2
----
82

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1905
SELECT DISTINCT COUNT( * ) * + + MIN( - col2 ) DIV - 29 AS col1 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-1905
SELECT DISTINCT COUNT ( * ) * + + MIN ( - col2 ) / - 29 AS col1 FROM tab1
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-1906
SELECT - COUNT( * ), + 29 col1 FROM tab0
----
-3
29

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

query III rowsort
SELECT * FROM tab0 WHERE NOT + 71 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= 77
----

query I rowsort
SELECT ALL col2 * - + ( - + 91 ) AS col1 FROM tab1
----
5369
6188
8736

query I rowsort
SELECT + - ( + - 29 ) AS col2 FROM tab0 cor0
----
29
29
29

query I rowsort
SELECT DISTINCT - col1 + 45 * + + col1 AS col1 FROM tab2 AS cor0
----
2244
2948
3388

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1914
SELECT DISTINCT - 66 * COUNT( col1 ) AS col2 FROM tab0 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-1914
SELECT DISTINCT - 66 * COUNT ( col1 ) AS col2 FROM tab0 AS cor0
----
-198

onlyif mysql # DIV for integer division: 
query I rowsort label-1915
SELECT + col1 DIV - - ( + col0 ) FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-1915
SELECT + col1 / - - ( + col0 ) FROM tab0 AS cor0
----
0
0
5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1916
SELECT ALL - - CAST( NULL AS SIGNED ), - col1 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
-100
NULL
-128
NULL
-31

skipif mysql # not compatible
query II rowsort label-1916
SELECT ALL - - CAST ( NULL AS INTEGER ), - col1 + - col2 AS col0 FROM tab0 AS cor0
----
NULL
-100
NULL
-128
NULL
-31

onlyif mysql # DIV for integer division: 
query I rowsort label-1917
SELECT - 37 DIV - col0 AS col1 FROM tab0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-1917
SELECT - 37 / - col0 AS col1 FROM tab0
----
0
0
2

query I rowsort
SELECT DISTINCT ( - 22 ) AS col0 FROM tab1
----
-22

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1919
SELECT ALL * FROM tab0 WHERE col1 + - - CAST( + col0 AS DECIMAL ) IS NULL AND NOT NULL <> 14
----

skipif mysql # not compatible
query III rowsort label-1919
SELECT ALL * FROM tab0 WHERE col1 + - - CAST ( + col0 AS REAL ) IS NULL AND NOT NULL <> 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1920
SELECT - 10 + - MAX( ALL + - 61 ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-1920
SELECT - 10 + - MAX ( ALL + - 61 ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT + COUNT( * ) + + 67 AS col0 FROM tab0
----
70

skipif mysql # not compatible
query I rowsort label-1921
SELECT + COUNT ( * ) + + 67 AS col0 FROM tab0
----
70

query II rowsort
SELECT DISTINCT col1 + 97, + 38 AS col0 FROM tab1
----
102
38
111
38
144
38

query I rowsort
SELECT - 77 + + - col2 FROM tab0 AS cor0
----
-124
-176
-87

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 95 NOT BETWEEN NULL AND col1
----

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

query I rowsort
SELECT ALL 77 AS col1 FROM tab0 cor0
----
77
77
77

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

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

query II rowsort
SELECT - 18, col0 * - 2 AS col0 FROM tab2 AS cor0
----
-18
-128
-18
-150
-18
-92

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

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

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

query I rowsort
SELECT + col0 * - + ( + 43 ) + 58 - + 97 + - col0 * - col0 * - + col0 FROM tab1 AS cor0
----
-134883
-617819
-757523

onlyif mysql # aggregate syntax: 
query I rowsort label-1933
SELECT - + MIN( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
query I rowsort label-1933
SELECT - + MIN ( + + col2 ) AS col1 FROM tab1 AS cor0
----
-59

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

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

query I rowsort
SELECT ( ( + + 51 ) ) AS col1 FROM tab1
----
51
51
51

query I rowsort
SELECT + col2 FROM tab2 WHERE NOT ( NULL <= col1 )
----

query I rowsort
SELECT ALL - - 86 * 37 AS col2 FROM tab0 AS cor0
----
3182
3182
3182

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + ( + col2 ) col1 FROM tab2 AS cor0
----
1173
3080
3886

query I rowsort
SELECT - 10 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f68f33032846e21ee6b2c668fc10355e

onlyif mysql # aggregate syntax: 
query I rowsort label-1941
SELECT MIN( ALL 84 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-1941
SELECT MIN ( ALL 84 ) FROM tab0
----
84

query I rowsort
SELECT 46 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE - 72 + 51 + 68 IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1944
SELECT * FROM tab1 AS cor0 WHERE NULL >= + CAST( - 34 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-1944
SELECT * FROM tab1 AS cor0 WHERE NULL >= + CAST ( - 34 AS REAL )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - - ( - col0 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1946
SELECT - SUM( DISTINCT - 87 ) * - ( + COUNT( DISTINCT - - 29 ) ) AS col2 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-1946
SELECT - SUM ( DISTINCT - 87 ) * - ( + COUNT ( DISTINCT - - 29 ) ) AS col2 FROM tab1
----
-87

query I rowsort
SELECT - col1 * - col2 * + col2 AS col2 FROM tab2
----
123200
225388
26979

onlyif mysql # aggregate syntax: 
query I rowsort label-1948
SELECT DISTINCT COUNT( * ) + + - 26 * - 1 * + 15 FROM tab1
----
393

skipif mysql # not compatible
query I rowsort label-1948
SELECT DISTINCT COUNT ( * ) + + - 26 * - 1 * + 15 FROM tab1
----
393

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

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

query I rowsort
SELECT ALL col1 + + - ( 70 ) + - 22 + - + col2 FROM tab0
----
-190
-58
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-1951
SELECT DISTINCT + SUM( ALL - col0 ) + COUNT( * ) * 2 AS col2, - 34 FROM tab0 AS cor0
----
-193
-34

skipif mysql # not compatible
query II rowsort label-1951
SELECT DISTINCT + SUM ( ALL - col0 ) + COUNT ( * ) * 2 AS col2, - 34 FROM tab0 AS cor0
----
-193
-34

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

query I rowsort
SELECT ALL + - col0 * + col2 - 63 AS col1 FROM tab2 cor0
----
-1121
-2623
-4413

query I rowsort
SELECT DISTINCT + 16 - + col2 FROM tab2 AS cor0
----
-24
-42
-7

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

query I rowsort
SELECT - - 66 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

onlyif mysql # aggregate syntax: 
query I rowsort label-1957
SELECT ALL + MIN( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-1957
SELECT ALL + MIN ( ALL + + col1 ) AS col2 FROM tab2 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1958
SELECT DISTINCT - CAST( NULL AS SIGNED ) + CAST( - ( - col2 ) AS DECIMAL ) AS col1, 87 FROM tab0 AS cor0 WHERE + col0 - - col1 BETWEEN + col0 + + + 65 AND - col2
----

skipif mysql # not compatible
query II rowsort label-1958
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + CAST ( - ( - col2 ) AS REAL ) AS col1, 87 FROM tab0 AS cor0 WHERE + col0 - - col1 BETWEEN + col0 + + + 65 AND - col2
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1960
SELECT 87, COUNT( * ) DIV 5 - - 92 AS col2 FROM tab2
----
87
92

skipif mysql # not compatible
query II rowsort label-1960
SELECT 87, COUNT ( * ) / 5 - - 92 AS col2 FROM tab2
----
87
92

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

query II rowsort
SELECT - col1 + - col0 AS col1, col1 AS col1 FROM tab2
----
-141
77
-142
67
-97
51

query I rowsort
SELECT - 25 + - col2 AS col1 FROM tab2
----
-48
-65
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-1964
SELECT - SUM( ALL 79 ) FROM tab0
----
-237

skipif mysql # not compatible
query I rowsort label-1964
SELECT - SUM ( ALL 79 ) FROM tab0
----
-237

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1965
SELECT MAX( + CAST( NULL AS SIGNED ) ), 58 AS col0 FROM tab1 AS cor0
----
NULL
58

skipif mysql # not compatible
query II rowsort label-1965
SELECT MAX ( + CAST ( NULL AS INTEGER ) ), 58 AS col0 FROM tab1 AS cor0
----
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-1966
SELECT DISTINCT - SUM( - - 24 ) * + 25 FROM tab0 AS cor0
----
-1800

skipif mysql # not compatible
query I rowsort label-1966
SELECT DISTINCT - SUM ( - - 24 ) * + 25 FROM tab0 AS cor0
----
-1800

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

query I rowsort
SELECT ALL + col0 + + - 76 FROM tab1 AS cor0
----
-25
15
9

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1970
SELECT DISTINCT - 82 DIV + 94 * + 30 * + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1970
SELECT DISTINCT - 82 / + 94 * + 30 * + col1 FROM tab1
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1973
SELECT ALL 45 * + SUM( DISTINCT + col2 ) AS col2 FROM tab0
----
7020

skipif mysql # not compatible
query I rowsort label-1973
SELECT ALL 45 * + SUM ( DISTINCT + col2 ) AS col2 FROM tab0
----
7020

onlyif mysql # DIV for integer division: 
query I rowsort label-1974
SELECT col1 * - 97 + 10 + 22 * col2 DIV col0 FROM tab2
----
-4926
-6472
-7446

skipif mysql # not compatible
query I rowsort label-1974
SELECT col1 * - 97 + 10 + 22 * col2 / col0 FROM tab2
----
-4926
-6472
-7446

query I rowsort
SELECT 48 + + col0 + + col1 FROM tab0
----
144
146
156

query I rowsort
SELECT ALL - col1 + + ( + col2 ) AS col2 FROM tab0 AS cor0 WHERE NOT - 93 * + - 79 IS NULL
----
-11
-34
98

query I rowsort
SELECT DISTINCT + + 76 - + col0 + + 26 FROM tab2 AS cor0
----
27
38
56

query I rowsort
SELECT - + col0 AS col1 FROM tab1 AS cor0 WHERE NULL >= col1 * + 30 + col0
----

query II rowsort
SELECT col0 AS col0, col0 + - 33 FROM tab2
----
46
13
64
31
75
42

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

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

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

query I rowsort
SELECT - - col2 * - + 88 FROM tab2 AS cor0
----
-2024
-3520
-5104

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1986
SELECT SUM( + col0 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
199

skipif mysql # not compatible
query I rowsort label-1986
SELECT SUM ( + col0 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
199

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

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

query I rowsort
SELECT - ( + 20 ) AS col2 FROM tab2
----
-20
-20
-20

query I rowsort
SELECT ALL + + col1 FROM tab1 WHERE + - 75 * 26 + + - 54 / col0 + + 5 * 39 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-1990
SELECT DISTINCT + COUNT( * ) + + MAX( DISTINCT col1 ) FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-1990
SELECT DISTINCT + COUNT ( * ) + + MAX ( DISTINCT col1 ) FROM tab1
----
50

query I rowsort
SELECT - ( + 65 ) AS col2 FROM tab2
----
-65
-65
-65

query III rowsort
SELECT * FROM tab1 WHERE NOT - col0 < ( + col2 ) * 75
----

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1996
SELECT + - COUNT( * ) DIV 97 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT DISTINCT + COUNT( * ) * - 81 * - + SUM( DISTINCT + 60 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
43740

skipif mysql # not compatible
query I rowsort label-1997
SELECT DISTINCT + COUNT ( * ) * - 81 * - + SUM ( DISTINCT + 60 ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
43740

query I rowsort
SELECT ALL - col1 * - 90 FROM tab1 WHERE NOT NULL IS NULL
----

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 - - col0 * 50 + col1 * col2 <> - 13
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2001
SELECT ALL - COUNT( * ) - + + 66 AS col0 FROM tab1 cor0
----
-69

skipif mysql # not compatible
query I rowsort label-2001
SELECT ALL - COUNT ( * ) - + + 66 AS col0 FROM tab1 cor0
----
-69

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2004
SELECT col2 * - + col2 * - col2 * + col2 col0, - CAST( - col1 AS SIGNED ) AS col1 FROM tab2
----
11316496
67
2560000
77
279841
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2004
SELECT col2 * - + col2 * - col2 * + col2 col0, - CAST ( - col1 AS INTEGER ) AS col1 FROM tab2
----
11316496
67
2560000
77
279841
51

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

query I rowsort
SELECT 35 - - col1 AS col1 FROM tab0
----
116
36
56

query I rowsort
SELECT ALL + + 56 * col1 * col0 AS col1 FROM tab0 AS cor0
----
102312
5432
68040

query I rowsort
SELECT + col1 * + - col2 AS col0 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( 29 )
----

query I rowsort
SELECT DISTINCT + + col1 * - 91 FROM tab2 AS cor0
----
-4641
-6097
-7007

onlyif mysql # DIV for integer division: 
query II rowsort label-2010
SELECT ALL col0 DIV col2, - col0 AS col2 FROM tab1 AS cor0
----
0
-51
1
-85
1
-91

skipif mysql # not compatible
query II rowsort label-2010
SELECT ALL col0 / col2, - col0 AS col2 FROM tab1 AS cor0
----
0
-51
1
-85
1
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-2011
SELECT DISTINCT - + COUNT( * ) AS col2, 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9
58

skipif mysql # not compatible
query II rowsort label-2011
SELECT DISTINCT - + COUNT ( * ) AS col2, 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9
58

query II rowsort
SELECT + 30 AS col1, col1 FROM tab0
----
30
1
30
21
30
81

query I rowsort
SELECT + + ( + col2 ) * + 55 FROM tab1 AS cor0
----
3245
3740
5280

query I rowsort
SELECT col1 * - col2 AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 36 ) AND - + 1 + + col2 * + - 61
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * 44 * 25 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT DISTINCT col2 DIV 59 AS col2 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2016
SELECT DISTINCT col2 / 59 AS col2 FROM tab0 AS cor0
----
0
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT + 79 DIV 58 * - col2 AS col1 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-2018
SELECT + 79 / 58 * - col2 AS col1 FROM tab0
----
-10
-47
-99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 29 * col2 col2 FROM tab1
----
1711
1972
2784

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2020
SELECT ALL CAST( - + 20 AS SIGNED ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif mysql # not compatible
query I rowsort label-2020
SELECT ALL CAST ( - + 20 AS INTEGER ) AS col0 FROM tab2, tab1 AS cor0
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-2021
SELECT ALL - COUNT( * ) * + 18 + + - 16 FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-2021
SELECT ALL - COUNT ( * ) * + 18 + + - 16 FROM tab2
----
-70

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

skipif mysql # not compatible
query II rowsort label-2022
SELECT COUNT ( * ) AS col0, + 25 * - CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE ( ( + 50 ) BETWEEN + col1 * - - col0 + 61 - - - col0 AND col1 + + col2 )
----

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

query I rowsort
SELECT - 58 + 63 AS col0 FROM tab1 AS cor0
----
5
5
5

query I rowsort
SELECT - 62 + 35 + + 87 FROM tab0 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: 
query I rowsort label-2027
SELECT + COUNT( * ) + - 9 col2 FROM tab1 AS cor0
----
-6

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

query I rowsort
SELECT - 99 AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

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

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

query II rowsort
SELECT + + ( 12 ), col1 AS col0 FROM tab2 AS cor0
----
12
51
12
67
12
77

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

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

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT ( - COUNT ( * ) ) AS col2 FROM tab0 cor0 WHERE NULL IS NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2033
SELECT - COUNT( + col1 ) - + - 16 AS col2 FROM tab1 cor0
----
13

skipif mysql # not compatible
query I rowsort label-2033
SELECT - COUNT ( + col1 ) - + - 16 AS col2 FROM tab1 cor0
----
13

query I rowsort
SELECT + + 43 - col2 AS col0 FROM tab2 AS cor0
----
-15
20
3

query I rowsort
SELECT col1 + - + 3 FROM tab2 cor0
----
48
64
74

query I rowsort
SELECT ALL + 10 * + col1 FROM tab1
----
140
470
50

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2037
SELECT ALL CAST( NULL AS SIGNED ) / - ( COUNT( DISTINCT - col2 ) ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2037
SELECT ALL CAST ( NULL AS INTEGER ) / - ( COUNT ( DISTINCT - col2 ) ) FROM tab0
----
NULL

query II rowsort
SELECT 19 AS col0, - col0 + 0 AS col1 FROM tab2
----
19
-46
19
-64
19
-75

query II rowsort
SELECT DISTINCT + col2 * - - col2 AS col0, 86 AS col2 FROM tab2
----
1600
86
3364
86
529
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2040
SELECT ALL + MAX( - 91 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-2040
SELECT ALL + MAX ( - 91 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-91

query I rowsort
SELECT - col0 * - - col2 * col2 * - col2 AS col0 FROM tab1
----
17457215
28613312
45121536

onlyif mysql # aggregate syntax: 
query I rowsort label-2042
SELECT + 32 * + - COUNT( * ) FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-2042
SELECT + 32 * + - COUNT ( * ) FROM tab1 AS cor0
----
-96

onlyif mysql # DIV for integer division: 
query I rowsort label-2043
SELECT DISTINCT - - col2 DIV - + 42 FROM tab1 AS cor0
----
-1
-2

skipif mysql # not compatible
query I rowsort label-2043
SELECT DISTINCT - - col2 / - + 42 FROM tab1 AS cor0
----
-1
-2

onlyif mysql # DIV for integer division: 
query I rowsort label-2044
SELECT - col1 + + - 5 DIV col0 DIV - col2 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-2044
SELECT - col1 + + - 5 / col0 / - col2 AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 63 col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
63
63
63

query II rowsort
SELECT + - col0 * + 49 * col0 + 91, 73 + - + col2 + + col0 - col1 AS col0 FROM tab1 AS cor0
----
-127358
14
-353934
94
-405678
49

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2048
SELECT COUNT( * ) FROM tab0 WHERE NOT - ( - col2 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-2048
SELECT COUNT ( * ) FROM tab0 WHERE NOT - ( - col2 ) = NULL
----
0

query I rowsort
SELECT + ( - col0 ) + + col1 * - col1 AS col0 FROM tab0
----
-528
-6576
-98

onlyif mysql # aggregate syntax: 
query II rowsort label-2050
SELECT + + COUNT( * ) AS col2, - COUNT( DISTINCT + col2 ) AS col0 FROM tab2 WHERE NULL <> NULL
----
0
0

skipif mysql # not compatible
query II rowsort label-2050
SELECT + + COUNT ( * ) AS col2, - COUNT ( DISTINCT + col2 ) AS col0 FROM tab2 WHERE NULL <> NULL
----
0
0

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

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

query II rowsort
SELECT DISTINCT col0 AS col0, + col2 * col2 + - + col0 AS col1 FROM tab2
----
46
483
64
1536
75
3289

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2053
SELECT SUM( + CAST( col0 AS SIGNED ) ) FROM tab0
----
199

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

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 <> - - 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT + + COUNT( * ) AS col1 FROM tab1 WHERE + col0 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2055
SELECT + + COUNT ( * ) AS col1 FROM tab1 WHERE + col0 <= NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2056
SELECT ALL 28 * - CAST( col2 AS SIGNED ) AS col0 FROM tab1
----
-1652
-1904
-2688

skipif mysql # not compatible
query I rowsort label-2056
SELECT ALL 28 * - CAST ( col2 AS INTEGER ) AS col0 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT ALL - 93 AS col2 FROM ( tab1 cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 38f445d95788c7dc754ff688a62df03b

query I rowsort
SELECT - 74 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5a567947d14593676e3825756f8e6130

query I rowsort
SELECT ALL 75 FROM tab1 WHERE NOT NULL > + 54
----

query I rowsort
SELECT ALL - 59 + - col1 AS col0 FROM tab0 cor0
----
-140
-60
-80

query I rowsort
SELECT ALL - + 94 + col0 FROM tab2 AS cor0
----
-19
-30
-48

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > - 68
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2063
SELECT DISTINCT + 37 * COUNT( * ) AS col1 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-2063
SELECT DISTINCT + 37 * COUNT ( * ) AS col1 FROM tab0
----
111

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2065
SELECT + + col0 * CAST( col0 AS SIGNED ) - - + col0 AS col1 FROM tab2 AS cor0
----
2162
4160
5700

skipif mysql # not compatible
query I rowsort label-2065
SELECT + + col0 * CAST ( col0 AS INTEGER ) - - + col0 AS col1 FROM tab2 AS cor0
----
2162
4160
5700

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 15 * - col1 col0 FROM tab0
----
1215
15
315

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

skipif mysql # not compatible
query I rowsort label-2068
SELECT DISTINCT - col2 + col1 * - - col0 / CAST ( NULL AS INTEGER ) + - 4 AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2069
SELECT DISTINCT - 21 DIV + 50 * + col0 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2069
SELECT DISTINCT - 21 / + 50 * + col0 AS col1 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE col2 <= - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2071
SELECT DISTINCT + MAX( DISTINCT col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-2071
SELECT DISTINCT + MAX ( DISTINCT col0 ) FROM tab1 AS cor0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL > + 33
----

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

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

query I rowsort
SELECT + col0 * 99 AS col1 FROM tab2 AS cor0
----
4554
6336
7425

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2077
SELECT + 57 * + COUNT( * ) FROM tab0 AS cor0
----
171

skipif mysql # not compatible
query I rowsort label-2077
SELECT + 57 * + COUNT ( * ) FROM tab0 AS cor0
----
171

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2078
SELECT 82 * 3 DIV SUM( - ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2078
SELECT 82 * 3 / SUM ( - ( col1 ) ) AS col2 FROM tab1 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2079
SELECT + 62 * + - MIN( + - col0 ) AS col0 FROM tab2 AS cor0
----
4650

skipif mysql # not compatible
query I rowsort label-2079
SELECT + 62 * + - MIN ( + - col0 ) AS col0 FROM tab2 AS cor0
----
4650

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 27 = - col1
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2083
SELECT ALL col1 + - col2 + + - 36 + col0 DIV col1 + - 2 * + col2 * col0 AS col2 FROM tab0
----
-1412
-1761
-19243

skipif mysql # not compatible
query I rowsort label-2083
SELECT ALL col1 + - col2 + + - 36 + col0 / col1 + - 2 * + col2 * col0 AS col2 FROM tab0
----
-1412
-1761
-19243

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2084
SELECT DISTINCT CAST( - + COUNT( * ) AS SIGNED ) + + 89 FROM tab2 AS cor0
----
86

skipif mysql # not compatible
query I rowsort label-2084
SELECT DISTINCT CAST ( - + COUNT ( * ) AS INTEGER ) + + 89 FROM tab2 AS cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 82 + - 26 + col1 * + col2 * col2 col0 FROM tab1 AS cor0
----
129080
17461
217384

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col2 + + + col0 + 94 col2 FROM tab1 AS cor0
----
117
120
49

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

query I rowsort
SELECT col2 * - col0 * 74 AS col0 FROM tab0 AS cor0
----
-52170
-64380
-710622

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2089
SELECT DISTINCT CAST( NULL AS DECIMAL ) + + CAST( + + col2 AS SIGNED ) * 71 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT CAST ( NULL AS REAL ) + + CAST ( + + col2 AS INTEGER ) * 71 FROM tab2
----
NULL

query I rowsort
SELECT ALL 93 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT ALL + col2 + + 44 FROM tab1
----
103
112
140

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2092
SELECT + MIN( 45 ) * CAST( NULL AS DECIMAL ) - + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2092
SELECT + MIN ( 45 ) * CAST ( NULL AS REAL ) - + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2093
SELECT + 72 - - COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2093
SELECT + 72 - - COUNT ( * ) FROM tab1 AS cor0
----
75

query I rowsort
SELECT + col2 - - + 91 FROM tab2 AS cor0
----
114
131
149

query I rowsort
SELECT DISTINCT - + 20 + 59 + + 53 FROM tab0 AS cor0
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2096
SELECT DISTINCT + - CAST( - 73 AS SIGNED ) FROM tab2 AS cor0
----
73

skipif mysql # not compatible
query I rowsort label-2096
SELECT DISTINCT + - CAST ( - 73 AS INTEGER ) FROM tab2 AS cor0
----
73

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 32 * + + 82 col2 FROM tab1
----
2624
2624
2624

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

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

skipif mysql # not compatible
query II rowsort label-2100
SELECT + CAST ( NULL AS INTEGER ) AS col1, + 81 + - COUNT ( * ) FROM tab1
----
NULL
78

query I rowsort
SELECT col0 * + 56 * 25 AS col0 FROM tab0
----
121800
135800
21000

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 col1, - col0 * - col2 AS col2 FROM tab2
----
51
1058
67
4350
77
2560

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 90 <> - ( - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2104
SELECT ALL SUM( 64 ) AS col2 FROM tab1
----
192

skipif mysql # not compatible
query I rowsort label-2104
SELECT ALL SUM ( 64 ) AS col2 FROM tab1
----
192

query I rowsort
SELECT DISTINCT - 54 * col2 FROM tab0
----
-2538
-5346
-540

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

query II rowsort
SELECT DISTINCT col1, col1 FROM tab0 cor0 WHERE + 73 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2108
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-2108
SELECT + col2 FROM tab1 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT col2 * - col2 + + - col0 AS col0 FROM tab2 AS cor0
----
-1664
-3439
-575

onlyif mysql # aggregate syntax: 
query I rowsort label-2110
SELECT - COUNT( * ) + 17 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
17

skipif mysql # not compatible
query I rowsort label-2110
SELECT - COUNT ( * ) + 17 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
17

query II rowsort
SELECT + 31 + col1 AS col2, col2 * col2 AS col1 FROM tab1 AS cor0
----
36
3481
45
9216
78
4624

query I rowsort
SELECT col1 * - col2 * 83 + + col2 FROM tab2
----
-255600
-322480
-97336

query I rowsort
SELECT - ( col0 ) * + - col0 + - + 77 FROM tab1
----
2524
7148
8204

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

query II rowsort
SELECT + 80, col0 FROM tab2
----
80
46
80
64
80
75

query I rowsort
SELECT 58 - 32 FROM tab0 AS cor0
----
26
26
26

query I rowsort
SELECT - col2 * + 56 AS col1 FROM tab2
----
-1288
-2240
-3248

query I rowsort
SELECT + col0 * 39 AS col0 FROM tab0
----
3393
3783
585

onlyif mysql # aggregate syntax: 
query I rowsort label-2119
SELECT 44 - COUNT( * ) col0 FROM tab0
----
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2119
SELECT 44 - COUNT ( * ) col0 FROM tab0
----
41

query I rowsort
SELECT + 2 * - ( 61 * 19 ) FROM tab2
----
-2318
-2318
-2318

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( + col0 ) / col0 + 5 IS NOT NULL
----

query I rowsort
SELECT ALL + col1 * + col2 + 47 FROM tab1 WHERE NOT col2 IS NULL
----
1391
3243
342

query I rowsort
SELECT col1 + 27 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
32
41
74

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

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

query I rowsort
SELECT col0 FROM tab2 WHERE NOT 40 >= NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 76 >= - ( col0 ) * - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 * + col2 + col1 AS col2 FROM tab2
----
1224
3157
3953

query I rowsort
SELECT ALL 60 / ( col2 ) AS col0 FROM tab1 WHERE NULL NOT BETWEEN ( - col0 ) AND - col0
----

query I rowsort
SELECT ALL col1 - - 31 FROM tab1
----
36
45
78

query III rowsort
SELECT ALL * FROM tab0 WHERE col2 - col1 BETWEEN - 88 AND 8 + col2 * - 4
----

query III rowsort
SELECT * FROM tab1 WHERE col1 * - 33 NOT IN ( 61 - - 44 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2133
SELECT - CAST( 12 AS SIGNED ) FROM tab2
----
-12
-12
-12

skipif mysql # not compatible
query I rowsort label-2133
SELECT - CAST ( 12 AS INTEGER ) FROM tab2
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-2134
SELECT ( + COUNT( * ) ) FROM tab2 WHERE NOT ( - 58 ) BETWEEN NULL AND 53
----
0

skipif mysql # not compatible
query I rowsort label-2134
SELECT ( + COUNT ( * ) ) FROM tab2 WHERE NOT ( - 58 ) BETWEEN NULL AND 53
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2135
SELECT COUNT( * ) - + 71 DIV + 74 AS col0 FROM tab1 WHERE ( col1 ) BETWEEN + 22 * + 98 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2135
SELECT COUNT ( * ) - + 71 / + 74 AS col0 FROM tab1 WHERE ( col1 ) BETWEEN + 22 * + 98 AND NULL
----
0

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

query I rowsort
SELECT 9 * 63 AS col1 FROM tab1 AS cor0
----
567
567
567

onlyif mysql # aggregate syntax: 
query I rowsort label-2138
SELECT - COUNT( * ) + ( - 71 ) FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-2138
SELECT - COUNT ( * ) + ( - 71 ) FROM tab2 AS cor0
----
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT + COUNT( * ) * + 72 + SUM( DISTINCT + col2 ) AS col1 FROM tab0
----
372

skipif mysql # not compatible
query I rowsort label-2139
SELECT + COUNT ( * ) * + 72 + SUM ( DISTINCT + col2 ) AS col1 FROM tab0
----
372

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE col2 + 7 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2141
SELECT ALL COUNT( * ) * 85 + - COUNT( * ) DIV + MAX( - ( + col0 ) ) FROM tab2
----
255

skipif mysql # not compatible
query I rowsort label-2141
SELECT ALL COUNT ( * ) * 85 + - COUNT ( * ) / + MAX ( - ( + col0 ) ) FROM tab2
----
255

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

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

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

query I rowsort
SELECT DISTINCT 66 * + col1 - col0 / - 23 AS col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query I rowsort
SELECT ALL - 77 + + 6 FROM tab0 AS cor0
----
-71
-71
-71

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

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

query I rowsort
SELECT DISTINCT 31 - col0 AS col2 FROM tab2 AS cor0 WHERE NOT + 5 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2148
SELECT DISTINCT - + 14 + - COUNT( ALL col0 ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-2148
SELECT DISTINCT - + 14 + - COUNT ( ALL col0 ) FROM tab2 AS cor0
----
-17

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

query I rowsort
SELECT - col1 * 56 AS col0 FROM tab2 AS cor0
----
-2856
-3752
-4312

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 72 ) / col0 IS NOT NULL
----

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 87 ) NOT IN ( - col2 * col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2155
SELECT + col2 * - col0 + col2 DIV ( 87 + 45 ) FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
query I rowsort label-2155
SELECT + col2 * - col0 + col2 / ( 87 + 45 ) FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + 9 + + col0 + + 21 FROM tab1
----
115
121
81

query I rowsort
SELECT col2 + - 96 * col2 AS col0 FROM tab1
----
-5605
-6460
-9120

query I rowsort
SELECT col0 AS col2 FROM tab2 WHERE NULL < - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2159
SELECT ALL + 15 + - 68 - CAST( col2 AS SIGNED ) col1 FROM tab0
----
-100
-152
-63

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2159
SELECT ALL + 15 + - 68 - CAST ( col2 AS INTEGER ) col1 FROM tab0
----
-100
-152
-63

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE + col1 = col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2161
SELECT DISTINCT + col0 + - - 51 DIV - col1 AS col1 FROM tab0
----
15
46
85

skipif mysql # not compatible
query I rowsort label-2161
SELECT DISTINCT + col0 + - - 51 / - col1 AS col1 FROM tab0
----
15
46
85

query I rowsort
SELECT - col0 + 12 * col1 FROM tab2 AS cor0
----
566
729
860

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 13 NOT BETWEEN ( col0 ) AND col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2164
SELECT - 91 * - + COUNT( * ) FROM tab2 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2164
SELECT - 91 * - + COUNT ( * ) FROM tab2 AS cor0
----
273

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

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

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

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL NOT BETWEEN NULL AND 7 + 73
----

query II rowsort
SELECT ALL 11 AS col0, - col1 * col0 * col1 + ( + col0 + - col2 ) AS col2 FROM tab1
----
11
-10041
11
-200996
11
-2099

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1 AS col0, - col1 - col0 col0 FROM tab2 AS cor0
----
51
-97
67
-142
77
-141

onlyif mysql # DIV for integer division: 
query I rowsort label-2170
SELECT DISTINCT - 33 DIV + + 18 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2170
SELECT DISTINCT - 33 / + + 18 FROM tab2 AS cor0
----
-1

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE ( - col1 + + 94 * + col1 ) IS NULL
----

query II rowsort
SELECT ALL - 86, col2 FROM tab1 AS cor0
----
-86
59
-86
68
-86
96

query I rowsort
SELECT ALL + + 26 * + col0 FROM tab1 AS cor0
----
1326
2210
2366

onlyif mysql # aggregate syntax: 
query II rowsort label-2174
SELECT ALL + - 95 AS col2, ( - COUNT( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-95
-3

skipif mysql # not compatible
query II rowsort label-2174
SELECT ALL + - 95 AS col2, ( - COUNT ( + col0 ) ) AS col0 FROM tab0 AS cor0
----
-95
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2176
SELECT + col1 DIV - col1 AS col1 FROM tab2 WHERE NOT ( + - 2 ) > ( col1 )
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2176
SELECT + col1 / - col1 AS col1 FROM tab2 WHERE NOT ( + - 2 ) > ( col1 )
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-2177
SELECT ALL MIN( col1 ) * + COUNT( * ) + COUNT( * ) + + SUM( ALL col1 ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2177
SELECT ALL MIN ( col1 ) * + COUNT ( * ) + COUNT ( * ) + + SUM ( ALL col1 ) FROM tab1
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2178
SELECT ALL COUNT( ALL + col0 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2178
SELECT ALL COUNT ( ALL + col0 ) AS col1 FROM tab2
----
3

query I rowsort
SELECT ALL col0 * - ( + + col0 ) FROM tab2
----
-2116
-4096
-5625

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) IS NULL AND NOT - col2 * 83 < - 89
----

query I rowsort
SELECT DISTINCT - 14 * + - col1 AS col2 FROM tab1
----
196
658
70

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2183
SELECT DISTINCT - - CAST( + col1 AS SIGNED ), 96 AS col0 FROM tab0 AS cor0
----
1
96
21
96
81
96

skipif mysql # not compatible
query II rowsort label-2183
SELECT DISTINCT - - CAST ( + col1 AS INTEGER ), 96 AS col0 FROM tab0 AS cor0
----
1
96
21
96
81
96

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT DISTINCT MAX( ALL + 19 ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-2185
SELECT DISTINCT MAX ( ALL + 19 ) FROM tab0
----
19

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 WHERE ( + col2 ) NOT IN ( 91 + - col2 ) OR + 13 IN ( 87 * col0 + 95 )
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT 23 + COUNT( * ) AS col2 FROM tab0
----
26

skipif mysql # not compatible
query I rowsort label-2187
SELECT 23 + COUNT ( * ) AS col2 FROM tab0
----
26

query I rowsort
SELECT + 57 + - - col0 FROM tab2
----
103
121
132

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2191
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST( + - 90 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2191
SELECT ALL * FROM tab0 AS cor0 WHERE ( CAST ( + - 90 AS REAL ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2192
SELECT ALL - CAST( + COUNT( * ) AS SIGNED ) * + COUNT( * ) - - COUNT( * ) AS col1 FROM tab0 cor0
----
-6

skipif mysql # not compatible
query I rowsort label-2192
SELECT ALL - CAST ( + COUNT ( * ) AS INTEGER ) * + COUNT ( * ) - - COUNT ( * ) AS col1 FROM tab0 cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col0 * + + col0 + 80 + - col0 col1 FROM tab0 cor0
----
290
7562
9392

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 14 col1, ( - col1 ) AS col0 FROM tab2 AS cor0
----
14
-51
14
-67
14
-77

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 40 col1, - 17 FROM tab2
----
40
-17
40
-17
40
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT - MIN( DISTINCT + col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2198
SELECT - MIN ( DISTINCT + col2 ) AS col1 FROM tab2
----
-23

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2200
SELECT ALL + CAST( - MIN( DISTINCT ( 28 ) ) AS DECIMAL ) FROM tab2 WHERE NOT col1 - + col1 + col2 * - col2 - col2 <> 34 + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2200
SELECT ALL + CAST ( - MIN ( DISTINCT ( 28 ) ) AS REAL ) FROM tab2 WHERE NOT col1 - + col1 + col2 * - col2 - col2 <> 34 + col1
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 89 + col1 + - + col0 + col2 <= ( 97 + 87 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2202
SELECT DISTINCT SUM( - + ( + + 1 ) ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2202
SELECT DISTINCT SUM ( - + ( + + 1 ) ) AS col1 FROM tab0
----
-3

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2204
SELECT MAX( - ( - col0 ) ) FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-2204
SELECT MAX ( - ( - col0 ) ) FROM tab1
----
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab2 WHERE ( - 58 * - col1 + - + 20 + + - col0 + - col0 * 19 ) = col1 - 92
----

query I rowsort
SELECT + + 0 - 52 AS col0 FROM tab2 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-2207
SELECT ALL + COUNT( * ) * - + 34 AS col1, - MIN( - col1 ) FROM tab2
----
-102
77

skipif mysql # not compatible
query II rowsort label-2207
SELECT ALL + COUNT ( * ) * - + 34 AS col1, - MIN ( - col1 ) FROM tab2
----
-102
77

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT DISTINCT 98 DIV + 16 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2208
SELECT DISTINCT 98 / + 16 FROM tab1 AS cor0
----
6

query I rowsort
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( ( + col0 ) <> col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2210
SELECT - 83 DIV + col2 - + col0 * + col1 DIV - col1 FROM tab0 AS cor0
----
14
79
97

skipif mysql # not compatible
query I rowsort label-2210
SELECT - 83 / + col2 - + col0 * + col1 / - col1 FROM tab0 AS cor0
----
14
79
97

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

query I rowsort
SELECT + + 73 * - col0 AS col1 FROM tab0 AS cor0
----
-1095
-6351
-7081

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2213
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST( NULL AS SIGNED ) / - + col0 - - - ( col2 ) ) <> + 68
----

skipif mysql # not compatible
query III rowsort label-2213
SELECT * FROM tab2 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) / - + col0 - - - ( col2 ) ) <> + 68
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2214
SELECT col0 DIV - 73 col1 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2214
SELECT col0 / - 73 col1 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2215
SELECT DISTINCT - SUM( ALL col2 ) * 75 + + COUNT( * ) FROM tab0
----
-11697

skipif mysql # not compatible
query I rowsort label-2215
SELECT DISTINCT - SUM ( ALL col2 ) * 75 + + COUNT ( * ) FROM tab0
----
-11697

onlyif mysql # aggregate syntax: 
query II rowsort label-2216
SELECT 7 AS col0, COUNT( * ) FROM tab0
----
7
3

skipif mysql # not compatible
query II rowsort label-2216
SELECT 7 AS col0, COUNT ( * ) FROM tab0
----
7
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2217
SELECT MAX( + 59 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-2217
SELECT MAX ( + 59 ) FROM tab0
----
59

query II rowsort
SELECT DISTINCT + col0, ( - col1 ) AS col1 FROM tab1
----
51
-14
85
-5
91
-47

query I rowsort
SELECT ALL + 53 * ( 56 ) FROM tab1
----
2968
2968
2968

query I rowsort
SELECT ALL - 79 * col1 FROM tab2 WHERE NOT ( col1 ) NOT BETWEEN + col2 + - ( + ( + col1 ) ) AND col0 * col0
----
-4029
-5293
-6083

onlyif mysql # aggregate syntax: 
query II rowsort label-2221
SELECT DISTINCT + COUNT( * ) AS col0, + 7 + + 66 FROM tab1 AS cor0
----
3
73

skipif mysql # not compatible
query II rowsort label-2221
SELECT DISTINCT + COUNT ( * ) AS col0, + 7 + + 66 FROM tab1 AS cor0
----
3
73

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

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

query I rowsort
SELECT + 12 + - col2 AS col0 FROM tab1 AS cor0
----
-47
-56
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-2224
SELECT ALL + - COUNT( * ) * - 19 AS col2 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2224
SELECT ALL + - COUNT ( * ) * - 19 AS col2 FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2225
SELECT col2 DIV col2 * - + CAST( + col0 AS SIGNED ) AS col1, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

skipif mysql # not compatible
query II rowsort label-2225
SELECT col2 / col2 * - + CAST ( + col0 AS INTEGER ) AS col1, - col0 FROM tab0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: 
query II rowsort label-2226
SELECT DISTINCT MAX( ALL col2 ) + - MAX( col2 ) AS col2, + COUNT( * ) * - - 98 AS col1 FROM tab0 AS cor0
----
0
294

skipif mysql # not compatible
query II rowsort label-2226
SELECT DISTINCT MAX ( ALL col2 ) + - MAX ( col2 ) AS col2, + COUNT ( * ) * - - 98 AS col1 FROM tab0 AS cor0
----
0
294

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + 43 + + 19 + + col2 + + - 66 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - - col0 + + 58 + + 92 AS col1 FROM tab2 AS cor0
----
196
214
225

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2229
SELECT + - col2 / + 27 / - CAST( NULL AS SIGNED ) - - 14 * + + col0 AS col2, col1 * 37 FROM tab2 AS cor0
----
NULL
1887
NULL
2479
NULL
2849

skipif mysql # not compatible
query II rowsort label-2229
SELECT + - col2 / + 27 / - CAST ( NULL AS INTEGER ) - - 14 * + + col0 AS col2, col1 * 37 FROM tab2 AS cor0
----
NULL
1887
NULL
2479
NULL
2849

query I rowsort
SELECT ALL + col1 + + - 78 + col2 AS col2 FROM tab2 AS cor0
----
-4
39
47

query I rowsort
SELECT - + col2 - - 37 FROM tab0 AS cor0
----
-10
-62
27

query I rowsort
SELECT DISTINCT + 28 - col1 AS col2 FROM tab1 AS cor0
----
-19
14
23

query I rowsort
SELECT + col2 * - + 98 + - col0 + - col1 AS col2 FROM tab0 cor0
----
-1088
-4702
-9800

query I rowsort
SELECT 15 + + col0 AS col2 FROM tab0 AS cor0
----
102
112
30

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 18 * 68 col2 FROM tab0 WHERE + col0 + - 17 - + ( - col2 ) IS NOT NULL
----
-1224
-1224
-1224

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2237
SELECT - COUNT( ALL + 12 ) + + 68 DIV - MAX( - col2 ) col2 FROM tab0
----
3

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 4 ) col0 FROM tab1 AS cor0 WHERE NULL <= ( + ( + + 37 ) ) * col0 * + - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2240
SELECT - ( + - ( - + CAST( - ( - 37 ) AS SIGNED ) ) ) FROM tab0 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2240
SELECT - ( + - ( - + CAST ( - ( - 37 ) AS INTEGER ) ) ) FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2241
SELECT DISTINCT - MIN( DISTINCT 7 ) FROM tab0 cor0
----
-7

skipif mysql # not compatible
query I rowsort label-2241
SELECT DISTINCT - MIN ( DISTINCT 7 ) FROM tab0 cor0
----
-7

onlyif mysql # DIV for integer division: 
query II rowsort label-2242
SELECT - - 43, + col1 DIV - col2 AS col2 FROM tab1 AS cor0
----
43
0
43
0
43
0

skipif mysql # not compatible
query II rowsort label-2242
SELECT - - 43, + col1 / - col2 AS col2 FROM tab1 AS cor0
----
43
0
43
0
43
0

query II rowsort
SELECT DISTINCT + col1, ( + col2 ) AS col2 FROM tab1 cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: 
query I rowsort label-2244
SELECT ALL + MAX( - - col0 ) AS col0 FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2244
SELECT ALL + MAX ( - - col0 ) AS col0 FROM tab0 cor0
----
97

query I rowsort
SELECT ALL col2 * ( - - col2 ) FROM tab1 AS cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT + 86 * - + 38 * + col2 AS col1 FROM tab2 AS cor0
----
-130720
-189544
-75164

query II rowsort
SELECT - + 89 * + + 65 + - col2, col2 * col0 AS col1 FROM tab2 WHERE NOT - 83 NOT BETWEEN NULL AND - 24
----

query I rowsort
SELECT + 45 * - ( + + col2 ) FROM tab2
----
-1035
-1800
-2610

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT ALL - 75 * + + MAX( - 37 ) AS col2 FROM tab2 AS cor0
----
2775

skipif mysql # not compatible
query I rowsort label-2251
SELECT ALL - 75 * + + MAX ( - 37 ) AS col2 FROM tab2 AS cor0
----
2775

query I rowsort
SELECT DISTINCT - col0 * col2 * - 28 AS col2 FROM tab0 AS cor0
----
19740
24360
268884

query I rowsort
SELECT col0 * col0 + + 48 * + 42 AS col2 FROM tab1
----
10297
4617
9241

onlyif mysql # aggregate syntax: 
query I rowsort label-2254
SELECT ALL - SUM( DISTINCT 89 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

skipif mysql # not compatible
query I rowsort label-2254
SELECT ALL - SUM ( DISTINCT 89 ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-89

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

query I rowsort
SELECT col2 AS col1 FROM tab2 AS cor0 WHERE col2 <> col0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2257
SELECT DISTINCT - + COUNT( * ) - 68 FROM tab2 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-2257
SELECT DISTINCT - + COUNT ( * ) - 68 FROM tab2 AS cor0
----
-71

query I rowsort
SELECT DISTINCT + col2 + 62 AS col2 FROM tab1 cor0
----
121
130
158

onlyif mysql # aggregate syntax: 
query I rowsort label-2259
SELECT DISTINCT - 86 - - + COUNT( DISTINCT + + ( 57 ) ) * 41 AS col0 FROM tab1
----
-45

skipif mysql # not compatible
query I rowsort label-2259
SELECT DISTINCT - 86 - - + COUNT ( DISTINCT + + ( 57 ) ) * 41 AS col0 FROM tab1
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-2260
SELECT - ( - + ( - COUNT( - - ( + col2 ) ) ) ) * 2 * - + MIN( col2 ) FROM tab0
----
60

skipif mysql # not compatible
query I rowsort label-2260
SELECT - ( - + ( - COUNT ( - - ( + col2 ) ) ) ) * 2 * - + MIN ( col2 ) FROM tab0
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 97 ) - - - 38 col2 FROM tab1
----
59
59
59

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

query I rowsort
SELECT + col1 - - 13 FROM tab0
----
14
34
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2264
SELECT + 36 - - SUM( DISTINCT + + 54 ) FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2264
SELECT + 36 - - SUM ( DISTINCT + + 54 ) FROM tab1
----
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2265
SELECT ALL * FROM tab0 WHERE NOT ( + CAST( NULL AS SIGNED ) * + 14 ) = NULL
----

skipif mysql # not compatible
query III rowsort label-2265
SELECT ALL * FROM tab0 WHERE NOT ( + CAST ( NULL AS INTEGER ) * + 14 ) = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL >= 37
----

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 JOIN tab2 cor1 ON NOT NULL < NULL
----

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

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

query I rowsort
SELECT + 41 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 5b18986bb294412b3d9f07b7e6fc821e

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

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

skipif mysql # not compatible
query I rowsort label-2271
SELECT - COUNT ( * ) / + - 14 FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 27 * + 87 * + col0 col1, - col1 FROM tab0 AS cor0
----
204363
-21
227853
-1
35235
-81

query I rowsort
SELECT + col0 * - 88 - - 92 AS col2 FROM tab2 AS cor0
----
-3956
-5540
-6508

query I rowsort
SELECT + col2 * + 57 AS col0 FROM tab0 AS cor0
----
2679
5643
570

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2276
SELECT ALL MAX( DISTINCT + - 49 ) AS col0, - COUNT( * ) FROM tab1
----
-49
-3

skipif mysql # not compatible
query II rowsort label-2276
SELECT ALL MAX ( DISTINCT + - 49 ) AS col0, - COUNT ( * ) FROM tab1
----
-49
-3

query I rowsort
SELECT + col0 * + + col0 AS col0 FROM tab2
----
2116
4096
5625

query I rowsort
SELECT ALL col2 + - + col1 AS col2 FROM tab2
----
-28
-37
-9

query II rowsort
SELECT DISTINCT - - 47 AS col2, + 96 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND col0
----

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2282
SELECT ALL 27 DIV 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-2282
SELECT ALL 27 / 40 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

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

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

query II rowsort
SELECT + 30 - - - col1 AS col1, - col1 FROM tab1 AS cor0
----
-17
-47
16
-14
25
-5

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2285
SELECT COUNT ( * ) - - COUNT ( * ) col0 FROM tab2 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2286
SELECT DISTINCT + 24 + - - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
123
34
71

skipif mysql # not compatible
query I rowsort label-2286
SELECT DISTINCT + 24 + - - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
123
34
71

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

query I rowsort
SELECT DISTINCT 67 * 76 FROM tab2
----
5092

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( 32 ) col2 FROM tab1
----
32

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

query I rowsort
SELECT ALL + - 4 * + + 47 + + col1 AS col0 FROM tab0 AS cor0
----
-107
-167
-187

query I rowsort
SELECT DISTINCT - ( + + col1 ) * - + ( + col0 ) * + - 8 AS col2 FROM tab0 AS cor0
----
-14616
-776
-9720

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2295
SELECT + ( col2 ) * + - CAST( + + ( + + 58 ) AS SIGNED ) AS col2 FROM tab1 cor0
----
-3422
-3944
-5568

skipif mysql # not compatible
query I rowsort label-2295
SELECT + ( col2 ) * + - CAST ( + + ( + + 58 ) AS INTEGER ) AS col2 FROM tab1 cor0
----
-3422
-3944
-5568

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

skipif mysql # not compatible
query I rowsort label-2296
SELECT ALL - ( MAX ( ALL - col1 ) ) AS col2 FROM tab1
----
5

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

query I rowsort
SELECT + + col2 + 2 AS col2 FROM tab1 cor0
----
61
70
98

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 40 * + - 97 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2301
SELECT CAST( - 66 AS SIGNED ) AS col1 FROM tab1
----
-66
-66
-66

skipif mysql # not compatible
query I rowsort label-2301
SELECT CAST ( - 66 AS INTEGER ) AS col1 FROM tab1
----
-66
-66
-66

onlyif mysql # aggregate syntax: 
query II rowsort label-2302
SELECT ALL + + COUNT( * ) * + 48 AS col2, ( - COUNT( * ) ) FROM tab1 WHERE - 42 + - col2 - - 33 IN ( - col1 * col1 * 30, + 34 + - col0 + - + 68 / - - 75, + 65 )
----
0
0

skipif mysql # not compatible
query II rowsort label-2302
SELECT ALL + + COUNT ( * ) * + 48 AS col2, ( - COUNT ( * ) ) FROM tab1 WHERE - 42 + - col2 - - 33 IN ( - col1 * col1 * 30, + 34 + - col0 + - + 68 / - - 75, + 65 )
----
0
0

query II rowsort
SELECT 52 * - - col2 * - col0 AS col1, - col1 * - ( - - col0 ) AS col2 FROM tab2
----
-133120
4928
-226200
5025
-55016
2346

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

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

query II rowsort
SELECT 74 AS col1, + 42 + - 72 FROM tab2
----
74
-30
74
-30
74
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-2306
SELECT ALL + 9 + - + 30 + - SUM( + col2 ) FROM tab2
----
-142

skipif mysql # not compatible
query I rowsort label-2306
SELECT ALL + 9 + - + 30 + - SUM ( + col2 ) FROM tab2
----
-142

query III rowsort
SELECT * FROM tab1 WHERE NULL >= - 51
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2308
SELECT ALL - SUM( DISTINCT + 88 ) + - CAST( 46 AS SIGNED ) FROM tab1 AS cor0
----
-134

skipif mysql # not compatible
query I rowsort label-2308
SELECT ALL - SUM ( DISTINCT + 88 ) + - CAST ( 46 AS INTEGER ) FROM tab1 AS cor0
----
-134

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

query I rowsort
SELECT DISTINCT + 75 FROM tab2 WHERE NOT NULL = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2311
SELECT - CAST( - ( - 20 ) AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

skipif mysql # not compatible
query I rowsort label-2311
SELECT - CAST ( - ( - 20 ) AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT DISTINCT - COUNT( * ) AS col0 FROM tab0 WHERE ( NOT 31 IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-2312
SELECT DISTINCT - COUNT ( * ) AS col0 FROM tab0 WHERE ( NOT 31 IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT - 26 - + + col2 FROM tab2 cor0
----
-49
-66
-84

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col2 * - col1 ) NOT IN ( col1 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2318
SELECT + col1 col2, + col0 / - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2318
SELECT + col1 col2, + col0 / - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT - col0 * - ( 64 ) * + ( - 20 ) + - col2 AS col2 FROM tab0
----
-111370
-124259
-19247

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT ALL 23 * - + SUM( - - col1 ) AS col1 FROM tab1
----
-1518

skipif mysql # not compatible
query I rowsort label-2320
SELECT ALL 23 * - + SUM ( - - col1 ) AS col1 FROM tab1
----
-1518

query I rowsort
SELECT - col2 * - - col2 AS col2 FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-2322
SELECT ALL 96 * - 32, COUNT( * ) AS col2 FROM tab2
----
-3072
3

skipif mysql # not compatible
query II rowsort label-2322
SELECT ALL 96 * - 32, COUNT ( * ) AS col2 FROM tab2
----
-3072
3

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2323
SELECT + CAST( - col2 AS SIGNED ) DIV - col2 + + col0 AS col0 FROM tab0 cor0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-2323
SELECT + CAST ( - col2 AS INTEGER ) / - col2 + + col0 AS col0 FROM tab0 cor0
----
16
88
98

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2325
SELECT DISTINCT - MIN( col1 ) DIV - ( 28 ) FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2325
SELECT DISTINCT - MIN ( col1 ) / - ( 28 ) FROM tab0 cor0
----
0

query I rowsort
SELECT 64 AS col2 FROM tab0 AS cor0 WHERE NOT 52 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2327
SELECT + 4 DIV - - 82 * - col1 + + 12 - - + col0 AS col0 FROM tab2 AS cor0
----
58
76
87

skipif mysql # not compatible
query I rowsort label-2327
SELECT + 4 / - - 82 * - col1 + + 12 - - + col0 AS col0 FROM tab2 AS cor0
----
58
76
87

query I rowsort
SELECT DISTINCT - col2 * - + 21 AS col1 FROM tab0
----
2079
210
987

query I rowsort
SELECT ALL - - col1 + + - 93 AS col0 FROM tab2 AS cor0
----
-16
-26
-42

onlyif mysql # aggregate syntax: 
query I rowsort label-2330
SELECT ALL - + 22 * - MAX( + 96 ) * 12 FROM tab0 WHERE NOT + col2 IN ( + col1, ( - - 10 ) * + col0 )
----
25344

skipif mysql # not compatible
query I rowsort label-2330
SELECT ALL - + 22 * - MAX ( + 96 ) * 12 FROM tab0 WHERE NOT + col2 IN ( + col1, ( - - 10 ) * + col0 )
----
25344

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

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

query II rowsort
SELECT col1 + + col1, + 68 * + + ( + + col2 ) AS col0 FROM tab0
----
162
3196
2
6732
42
680

query I rowsort
SELECT 38 FROM tab0 WHERE ( NOT NULL IS NOT NULL )
----
38
38
38

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

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

query I rowsort
SELECT DISTINCT + 35 * - 90 + - + col1 FROM tab1 AS cor0
----
-3155
-3164
-3197

onlyif mysql # aggregate syntax: 
query I rowsort label-2336
SELECT DISTINCT COUNT( * ) - - - 84 + + COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-2336
SELECT DISTINCT COUNT ( * ) - - - 84 + + COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
-75

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 55 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 20 AS col2 FROM tab0 cor0
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-2339
SELECT DISTINCT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT col0 IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-2339
SELECT DISTINCT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NOT col0 IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2340
SELECT DISTINCT - 55 col1, COUNT( * ) AS col1 FROM tab2 AS cor0
----
-55
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2340
SELECT DISTINCT - 55 col1, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-55
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2341
SELECT - 88 * CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 WHERE NOT + - col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-2341
SELECT - 88 * CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 WHERE NOT + - col1 > NULL
----

query II rowsort
SELECT 81, col2 AS col1 FROM tab1
----
81
59
81
68
81
96

query I rowsort
SELECT DISTINCT col1 * 48 AS col2 FROM tab1
----
2256
240
672

query I rowsort
SELECT col1 * 12 * - col1 AS col1 FROM tab2
----
-31212
-53868
-71148

onlyif mysql # aggregate syntax: 
query I rowsort label-2345
SELECT ALL - MAX( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2345
SELECT ALL - MAX ( DISTINCT - - col1 ) AS col1 FROM tab1 AS cor0
----
-47

query II rowsort
SELECT DISTINCT col0 AS col1, 95 * - 84 FROM tab1 AS cor0
----
51
-7980
85
-7980
91
-7980

query II rowsort
SELECT DISTINCT - col1 AS col1, + 76 AS col0 FROM tab1 AS cor0
----
-14
76
-47
76
-5
76

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT + 74 IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-2349
SELECT - SUM( DISTINCT 6 ) AS col2 FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-2349
SELECT - SUM ( DISTINCT 6 ) AS col2 FROM tab2
----
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-2350
SELECT ( - COUNT( - 35 ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2350
SELECT ( - COUNT ( - 35 ) ) FROM tab0
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2351
SELECT DISTINCT col0 DIV - 10 + + - 42 + + 78 FROM tab1 AS cor0
----
27
28
31

skipif mysql # not compatible
query I rowsort label-2351
SELECT DISTINCT col0 / - 10 + + - 42 + + 78 FROM tab1 AS cor0
----
27
28
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + + + col0, col2 * col1 + col0 * + 74 * + - col2 col1 FROM tab2 cor0
----
141
-186360
142
-318014
97
-77119

query II rowsort
SELECT col1 + col1 AS col2, - col1 + + 32 FROM tab1 AS cor0
----
10
27
28
18
94
-15

query I rowsort
SELECT DISTINCT + col1 + col2 + + col1 + + col0 FROM tab0 cor0
----
139
198
224

query I rowsort
SELECT ALL - col1 * + + 63 + ( - 61 ) AS col2 FROM tab0 cor0
----
-124
-1384
-5164

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 87 + - col1 + - col2 * - + col2 * col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2357
SELECT - COUNT( * ) * SUM( ALL - col1 ) * ( - 20 ) AS col1 FROM tab0
----
-6180

skipif mysql # not compatible
query I rowsort label-2357
SELECT - COUNT ( * ) * SUM ( ALL - col1 ) * ( - 20 ) AS col1 FROM tab0
----
-6180

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2358
SELECT DISTINCT 24 DIV + MIN( - col1 ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2358
SELECT DISTINCT 24 / + MIN ( - col1 ) col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2359
SELECT 11 * - SUM( ALL + col2 ) FROM tab0
----
-1716

skipif mysql # not compatible
query I rowsort label-2359
SELECT 11 * - SUM ( ALL + col2 ) FROM tab0
----
-1716

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2360
SELECT DISTINCT + MIN( ALL + 72 ) DIV + COUNT( ALL - 78 ) FROM tab1
----
24

skipif mysql # not compatible
query I rowsort label-2360
SELECT DISTINCT + MIN ( ALL + 72 ) / + COUNT ( ALL - 78 ) FROM tab1
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-2361
SELECT DISTINCT + MAX( + 46 ) + + 93 FROM tab0
----
139

skipif mysql # not compatible
query I rowsort label-2361
SELECT DISTINCT + MAX ( + 46 ) + + 93 FROM tab0
----
139

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2362
SELECT DISTINCT - col2 * + - CAST( NULL AS SIGNED ) + + 78, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-2362
SELECT DISTINCT - col2 * + - CAST ( NULL AS INTEGER ) + + 78, + col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2363
SELECT ALL + - 52 DIV col1 - - 38 + - + col0 AS col0 FROM tab0 cor0
----
-111
-51
23

skipif mysql # not compatible
query I rowsort label-2363
SELECT ALL + - 52 / col1 - - 38 + - + col0 AS col0 FROM tab0 cor0
----
-111
-51
23

query I rowsort
SELECT DISTINCT + col2 + + col2 + - col1 FROM tab1 AS cor0
----
113
178
89

onlyif mysql # aggregate syntax: 
query II rowsort label-2365
SELECT + COUNT( * ) + + 34 * 32 AS col2, ( - + 59 ) AS col2 FROM tab0 cor0
----
1091
-59

skipif mysql # not compatible
query II rowsort label-2365
SELECT + COUNT ( * ) + + 34 * 32 AS col2, ( - + 59 ) AS col2 FROM tab0 cor0
----
1091
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-2366
SELECT DISTINCT SUM( DISTINCT + + 53 ) FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2366
SELECT DISTINCT SUM ( DISTINCT + + 53 ) FROM tab1 AS cor0
----
53

query I rowsort
SELECT 19 + + col1 FROM tab0 cor0
----
100
20
40

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2368
SELECT ALL * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2368
SELECT ALL * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + 39 AS col0 FROM tab1
----
2301
2652
3744

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 60 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT - col0 = - col0
----

query I rowsort
SELECT DISTINCT 70 AS col2 FROM tab0 AS cor0 WHERE NOT col0 / 70 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-2373
SELECT + - 68 + col1 AS col0 FROM tab2 WHERE NOT col1 NOT BETWEEN + CAST( NULL AS SIGNED ) + + CAST( NULL AS DECIMAL ) AND col1
----

skipif mysql # not compatible
query I rowsort label-2373
SELECT + - 68 + col1 AS col0 FROM tab2 WHERE NOT col1 NOT BETWEEN + CAST ( NULL AS INTEGER ) + + CAST ( NULL AS REAL ) AND col1
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 31 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2375
SELECT DISTINCT - SUM( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-2375
SELECT DISTINCT - SUM ( DISTINCT - + col2 ) AS col0 FROM tab1 AS cor0
----
223

onlyif mysql # aggregate syntax: 
query I rowsort label-2376
SELECT DISTINCT - + MIN( DISTINCT + - col0 ) * - COUNT( * ) * - MAX( - col1 ) AS col0 FROM tab2 cor0
----
-11475

skipif mysql # not compatible
query I rowsort label-2376
SELECT DISTINCT - + MIN ( DISTINCT + - col0 ) * - COUNT ( * ) * - MAX ( - col1 ) AS col0 FROM tab2 cor0
----
-11475

query I rowsort
SELECT DISTINCT 8 * - + col2 FROM tab0 AS cor0
----
-376
-792
-80

query II rowsort
SELECT DISTINCT col2 AS col0, + 80 * - 77 AS col1 FROM tab2
----
23
-6160
40
-6160
58
-6160

query I rowsort
SELECT ALL 64 + - 46 FROM tab2 AS cor0
----
18
18
18

query III rowsort
SELECT * FROM tab2 cor0 WHERE - col2 * + col2 * 20 >= ( + - col2 + - 84 + + ( + col1 ) )
----

query I rowsort
SELECT DISTINCT + col1 * col1 * col1 + - 38 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( + 98 / - + col1, col1 )
----

query I rowsort
SELECT ALL + 74 * + col0 AS col1 FROM tab0 AS cor0
----
1110
6438
7178

query I rowsort
SELECT ALL - col1 * - col0 + - col2 FROM tab0 AS cor0
----
-2
1168
1817

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2384
SELECT DISTINCT + + COUNT( * ) DIV 77 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2384
SELECT DISTINCT + + COUNT ( * ) / 77 FROM tab2 AS cor0
----
0

query I rowsort
SELECT 54 - - - col2 * + - 98 AS col0 FROM tab2 AS cor0
----
2308
3974
5738

onlyif mysql # DIV for integer division: 
query I rowsort label-2386
SELECT DISTINCT + - 55 DIV - + col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-2386
SELECT DISTINCT + - 55 / - + col1 AS col1 FROM tab2 AS cor0
----
0
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 33 * - 15 col0 FROM tab1 AS cor0
----
-495
-495
-495

query I rowsort
SELECT + + col2 + col0 AS col2 FROM tab0 AS cor0 WHERE col0 / ( col1 ) = + col0 * - + 87 - 73 + + - col2
----

query I rowsort
SELECT DISTINCT col1 * + col2 * + 60 AS col1 FROM tab0
----
12600
228420
5940

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2390
SELECT ALL COUNT( * ) DIV - CAST( - - ( - 58 ) AS SIGNED ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2390
SELECT ALL COUNT ( * ) / - CAST ( - - ( - 58 ) AS INTEGER ) AS col1 FROM tab2
----
0

query I rowsort
SELECT DISTINCT + 6 + + 22 FROM tab0
----
28

query II rowsort
SELECT + col1, + col0 AS col2 FROM tab0
----
1
97
21
87
81
15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2393
SELECT ALL col0 * - CAST( NULL AS SIGNED ) * - + CAST( + col2 AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2393
SELECT ALL col0 * - CAST ( NULL AS INTEGER ) * - + CAST ( + col2 AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 35 col2 FROM tab0 AS cor0
----
35
35
35

query I rowsort
SELECT ALL - 88 + - col2 + - 40 AS col0 FROM tab0 cor0 WHERE NOT NULL <> col2 * + + col1 * - - col0
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col0 > + 84 * ( 69 ) * + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-2397
SELECT + 11 DIV + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2397
SELECT + 11 / + - col1 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2398
SELECT DISTINCT - + COUNT( col0 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2398
SELECT DISTINCT - + COUNT ( col0 ) FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2399
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - - col1 * + col0 * 60 - - + CAST( col1 AS SIGNED ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-2399
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 * - - col1 * + col0 * 60 - - + CAST ( col1 AS INTEGER ) <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2400
SELECT + CAST( + col1 AS SIGNED ) * - col0 FROM tab1 AS cor0
----
-425
-4277
-714

skipif mysql # not compatible
query I rowsort label-2400
SELECT + CAST ( + col1 AS INTEGER ) * - col0 FROM tab1 AS cor0
----
-425
-4277
-714

query II rowsort
SELECT - - col2, - col1 AS col1 FROM tab2 AS cor0
----
23
-51
40
-77
58
-67

onlyif mysql # DIV for integer division: 
query I rowsort label-2402
SELECT DISTINCT - + 68 DIV - col0 AS col0 FROM tab0 cor0
----
0
4

skipif mysql # not compatible
query I rowsort label-2402
SELECT DISTINCT - + 68 / - col0 AS col0 FROM tab0 cor0
----
0
4

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-2403
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 46 >= - 65 - CAST( + - 21 AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2403
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 46 >= - 65 - CAST ( + - 21 AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2404
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

skipif mysql # not compatible
query I rowsort label-2404
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2405
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST( + 58 AS SIGNED ) + + 98 + + col1 NOT BETWEEN - - col1 * + - col2 - col1 + + + 17 AND - + col0 * - col0
----

skipif mysql # not compatible
query III rowsort label-2405
SELECT DISTINCT * FROM tab2 AS cor0 WHERE CAST ( + 58 AS INTEGER ) + + 98 + + col1 NOT BETWEEN - - col1 * + - col2 - col1 + + + 17 AND - + col0 * - col0
----

query I rowsort
SELECT ALL - 98 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 22 AS col1 FROM tab1 WHERE col2 * - col0 IS NOT NULL
----
22

onlyif mysql # aggregate syntax: 
query II rowsort label-2408
SELECT + ( 26 ) AS col1, + 55 + MAX( - col1 ) AS col2 FROM tab2
----
26
4

skipif mysql # not compatible
query II rowsort label-2408
SELECT + ( 26 ) AS col1, + 55 + MAX ( - col1 ) AS col2 FROM tab2
----
26
4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2409
SELECT ALL + CAST( - 34 AS SIGNED ) FROM tab1
----
-34
-34
-34

skipif mysql # not compatible
query I rowsort label-2409
SELECT ALL + CAST ( - 34 AS INTEGER ) FROM tab1
----
-34
-34
-34

onlyif mysql # DIV for integer division: 
query I rowsort label-2410
SELECT 43 DIV + - 22 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2410
SELECT 43 / + - 22 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2411
SELECT DISTINCT - 29 + - col2 - 32 + + - 67 + - 92 / + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2411
SELECT DISTINCT - 29 + - col2 - 32 + + - 67 + - 92 / + CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col2 + - col1 + - col2 FROM tab1 AS cor0
----
-123
-183
-206

onlyif mysql # aggregate syntax: 
query I rowsort label-2413
SELECT + COUNT( * ) * + - 34 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2413
SELECT + COUNT ( * ) * + - 34 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2414
SELECT ALL MAX( DISTINCT col1 ) + 45, - COUNT( * ) + 1 DIV 49 AS col0 FROM tab2 AS cor0
----
122
-3

skipif mysql # not compatible
query II rowsort label-2414
SELECT ALL MAX ( DISTINCT col1 ) + 45, - COUNT ( * ) + 1 / 49 AS col0 FROM tab2 AS cor0
----
122
-3

query I rowsort
SELECT + col2 + ( - + col1 ) FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL + 57 + col0 FROM tab2 cor0
----
103
121
132

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 >= + 75 * + - col2 / - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col0 * + 95 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL > col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 * - col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - 88 ) col0 FROM tab0 AS cor0
----
-88
-88
-88

query I rowsort
SELECT + ( col2 ) * + + col1 + + col0 FROM tab0
----
196
297
3822

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + ( + - col0 ) / + 26 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2424
SELECT DISTINCT - ( + COUNT( * ) ) AS col1, - 47 AS col1 FROM tab0
----
-3
-47

skipif mysql # not compatible
query II rowsort label-2424
SELECT DISTINCT - ( + COUNT ( * ) ) AS col1, - 47 AS col1 FROM tab0
----
-3
-47

query I rowsort
SELECT col1 * + 2 - + 18 * + + 99 * - col2 * + 77 FROM tab1
----
13172572
8095636
9330646

query I rowsort
SELECT - 50 - + col2 FROM tab1
----
-109
-118
-146

onlyif mysql # aggregate syntax: 
query II rowsort label-2427
SELECT + 70 AS col0, COUNT( * ) col2 FROM tab0 AS cor0
----
70
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2427
SELECT + 70 AS col0, COUNT ( * ) col2 FROM tab0 AS cor0
----
70
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2428
SELECT MIN( ALL + 98 ) FROM tab0 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-2428
SELECT MIN ( ALL + 98 ) FROM tab0 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT DISTINCT - + COUNT( * ) - MIN( ALL 29 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-38

skipif mysql # not compatible
query I rowsort label-2429
SELECT DISTINCT - + COUNT ( * ) - MIN ( ALL 29 ) FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
-38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 56 IS NOT NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2431
SELECT - CAST( - - 82 AS DECIMAL ) FROM tab1 AS cor0 WHERE NOT - col2 * + ( + + col1 ) * - col1 * 19 >= NULL
----

skipif mysql # not compatible
query I rowsort label-2431
SELECT - CAST ( - - 82 AS REAL ) FROM tab1 AS cor0 WHERE NOT - col2 * + ( + + col1 ) * - col1 * 19 >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2432
SELECT - 37 * + - 93 col1, COUNT( ALL - col0 ) FROM tab0 cor0
----
3441
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2432
SELECT - 37 * + - 93 col1, COUNT ( ALL - col0 ) FROM tab0 cor0
----
3441
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT - col0 - + col2 IS NULL )
----

query I rowsort
SELECT + col2 * - 39 FROM tab0 AS cor0
----
-1833
-3861
-390

onlyif mysql # DIV for integer division: 
query I rowsort label-2435
SELECT ALL - + col2 DIV 56 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL - + col2 / 56 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2436
SELECT + CAST( NULL AS SIGNED ) * + col0 * + 18 * CAST( - - 49 AS SIGNED ) / + 87 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2436
SELECT + CAST ( NULL AS INTEGER ) * + col0 * + 18 * CAST ( - - 49 AS INTEGER ) / + 87 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2437
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / + col0 + + CAST( + col0 AS SIGNED ) + + col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-2437
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / + col0 + + CAST ( + col0 AS INTEGER ) + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2438
SELECT - MIN( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-2438
SELECT - MIN ( DISTINCT - - col2 ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2439
SELECT COUNT( * ) DIV 24 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2439
SELECT COUNT ( * ) / 24 AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2440
SELECT MAX( - col1 ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2440
SELECT MAX ( - col1 ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2441
SELECT - SUM( DISTINCT + - 73 ) AS col2 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-2441
SELECT - SUM ( DISTINCT + - 73 ) AS col2 FROM tab0
----
73

onlyif mysql # DIV for integer division: 
query I rowsort label-2442
SELECT ALL col2 DIV col0 + - col0 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-2442
SELECT ALL col2 / col0 + - col0 FROM tab2
----
-46
-64
-75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2443
SELECT DISTINCT - COUNT( * ) DIV - MIN( ALL + - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2443
SELECT DISTINCT - COUNT ( * ) / - MIN ( ALL + - col1 ) FROM tab0
----
0

query I rowsort
SELECT - col1 FROM tab2 WHERE ( col0 * - - 5 IS NOT NULL )
----
-51
-67
-77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 62 col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
62

query I rowsort
SELECT ALL - col0 AS col0 FROM tab0 WHERE NOT col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2447
SELECT + col2 DIV 48 AS col1 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-2447
SELECT + col2 / 48 AS col1 FROM tab1
----
1
1
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 89 col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-2449
SELECT ALL MIN( DISTINCT - col2 ) - COUNT( * ) AS col2 FROM tab0 cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2449
SELECT ALL MIN ( DISTINCT - col2 ) - COUNT ( * ) AS col2 FROM tab0 cor0
----
-102

query I rowsort
SELECT col1 - - ( - col0 ) AS col1 FROM tab1 cor0
----
-37
-44
-80

query I rowsort
SELECT ALL col1 * + - col1 * + 60 + 90 + col0 AS col1 FROM tab0 AS cor0
----
-26283
-393555
127

query I rowsort
SELECT + - col1 + + - col0 + col0 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL - - col1 - 53 - + - col1 FROM tab2 AS cor0
----
101
49
81

query I rowsort
SELECT DISTINCT + col1 - + col0 * - col2 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

query I rowsort
SELECT DISTINCT + + col2 * - col0 FROM tab1 cor0 WHERE col1 / - - col0 <> - - col2
----
-4896
-5015
-6188

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2456
SELECT - ( - col1 ) * + 10 + - CAST( 1 AS SIGNED ) + + - col0 AS col2 FROM tab0 AS cor0
----
-88
122
794

skipif mysql # not compatible
query I rowsort label-2456
SELECT - ( - col1 ) * + 10 + - CAST ( 1 AS INTEGER ) + + - col0 AS col2 FROM tab0 AS cor0
----
-88
122
794

onlyif mysql # aggregate syntax: 
query I rowsort label-2457
SELECT ALL - - ( + COUNT( * ) ) AS col0 FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL - - ( + COUNT ( * ) ) AS col0 FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2458
SELECT 65 * - COUNT( * ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-2458
SELECT 65 * - COUNT ( * ) FROM tab2
----
-195

onlyif mysql # aggregate syntax: 
query II rowsort label-2459
SELECT 60, COUNT( * ) AS col2 FROM tab0
----
60
3

skipif mysql # not compatible
query II rowsort label-2459
SELECT 60, COUNT ( * ) AS col2 FROM tab0
----
60
3

query I rowsort
SELECT ALL col0 * + ( - col2 ) AS col2 FROM tab2
----
-1058
-2560
-4350

onlyif mysql # aggregate syntax: 
query I rowsort label-2461
SELECT ALL - MIN( + + 70 ) FROM tab0 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-2461
SELECT ALL - MIN ( + + 70 ) FROM tab0 AS cor0
----
-70

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2462
SELECT ALL + MAX( + - 61 ) * + - CAST( NULL AS DECIMAL ) * + 24 col1, - COUNT( DISTINCT + col1 ) FROM tab0
----
NULL
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2462
SELECT ALL + MAX ( + - 61 ) * + - CAST ( NULL AS REAL ) * + 24 col1, - COUNT ( DISTINCT + col1 ) FROM tab0
----
NULL
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2463
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN + 54 * - col1 * + col0 + - 51 AND ( - - 63 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-2463
SELECT * FROM tab0 WHERE NOT col2 NOT BETWEEN + 54 * - col1 * + col0 + - 51 AND ( - - 63 * CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2464
SELECT * FROM tab1 WHERE NOT - col1 * - + 6 BETWEEN NULL AND - - CAST( NULL AS SIGNED ) / col1
----

skipif mysql # not compatible
query III rowsort label-2464
SELECT * FROM tab1 WHERE NOT - col1 * - + 6 BETWEEN NULL AND - - CAST ( NULL AS INTEGER ) / col1
----

query I rowsort
SELECT DISTINCT + 12 * ( ( - + 58 ) ) FROM tab1
----
-696

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2466
SELECT - CAST( ( - - SUM( - col1 ) ) AS SIGNED ) AS col2, + 59 FROM tab1 AS cor0
----
66
59

skipif mysql # not compatible
query II rowsort label-2466
SELECT - CAST ( ( - - SUM ( - col1 ) ) AS INTEGER ) AS col2, + 59 FROM tab1 AS cor0
----
66
59

query I rowsort
SELECT col0 * - ( + - 35 ) AS col2 FROM tab1 AS cor0
----
1785
2975
3185

query II rowsort
SELECT ALL - col2 AS col1, + ( + - 4 ) AS col0 FROM tab2 AS cor0
----
-23
-4
-40
-4
-58
-4

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2469
SELECT ALL + - CAST( NULL AS SIGNED ) * - col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-2469
SELECT ALL + - CAST ( NULL AS INTEGER ) * - col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2470
SELECT DISTINCT 95 - + ( MIN( - col0 ) ) FROM tab0 AS cor0 WHERE NOT - col1 * - 50 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT 95 - + ( MIN ( - col0 ) ) FROM tab0 AS cor0 WHERE NOT - col1 * - 50 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2471
SELECT 97 AS col1, CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * - 92 * + - col1 + col2 = - - col2
----
97
NULL
97
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-2471
SELECT 97 AS col1, CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col1 * - 92 * + - col1 + col2 = - - col2
----
97
NULL
97
NULL
97
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2472
SELECT DISTINCT COUNT( ALL col1 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-2472
SELECT DISTINCT COUNT ( ALL col1 ) AS col2 FROM tab1 WHERE NULL <= NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-2473
SELECT DISTINCT + SUM( 70 ) * CAST( NULL AS DECIMAL ) * + 70 * + + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2473
SELECT DISTINCT + SUM ( 70 ) * CAST ( NULL AS REAL ) * + 70 * + + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2474
SELECT ALL + ( + COUNT( * ) ) + + - 40 + + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2474
SELECT ALL + ( + COUNT ( * ) ) + + - 40 + + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query II rowsort
SELECT DISTINCT + 16 * - + 6 AS col1, col1 - + + 9 AS col1 FROM tab0
----
-96
-8
-96
12
-96
72

query I rowsort
SELECT ALL + col2 + 16 FROM tab2
----
39
56
74

query II rowsort
SELECT ALL 62 * - col2 + - 60 AS col0, + col2 * + - 49 FROM tab1
----
-3718
-2891
-4276
-3332
-6012
-4704

query III rowsort
SELECT * FROM tab1 cor0 WHERE 1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2479
SELECT DISTINCT - SUM( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2479
SELECT DISTINCT - SUM ( - col2 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query II rowsort
SELECT ALL - col0 * + col1, - 19 AS col0 FROM tab1 cor0
----
-425
-19
-4277
-19
-714
-19

query I rowsort
SELECT + col1 + - - col0 - + 33 AS col2 FROM tab0
----
63
65
75

query I rowsort
SELECT 40 + + - col2 AS col1 FROM tab2
----
-18
0
17

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 92 col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT 32 + - 69 FROM tab2
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2485
SELECT DISTINCT + COUNT( * ) + + SUM( ALL - col2 ) FROM tab1 cor0
----
-220

skipif mysql # not compatible
query I rowsort label-2485
SELECT DISTINCT + COUNT ( * ) + + SUM ( ALL - col2 ) FROM tab1 cor0
----
-220

query II rowsort
SELECT - + col2 AS col1, col0 FROM tab0 cor0
----
-10
87
-47
15
-99
97

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 31 BETWEEN col0 AND col0 * - col2 / - - 13 * + col2 * col1
----

query II rowsort
SELECT - 75 AS col2, - 2 * + col1 + - col2 * + col0 AS col2 FROM tab0 AS cor0
----
-75
-867
-75
-912
-75
-9605

query II rowsort
SELECT + col1, + col0 + + 6 FROM tab1 AS cor0
----
14
57
47
97
5
91

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 4 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 96 * + - col2 * 86 FROM tab0
----
-388032
-817344
-82560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * - 48 col2 FROM tab0
----
-2112
-2112
-2112

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col1, - col1 + + - 4 + - + 88 + + col2 FROM tab2 WHERE NOT - col1 <= NULL
----

query II rowsort
SELECT 85 * - col1 AS col2, + col1 AS col0 FROM tab0
----
-1785
21
-6885
81
-85
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2495
SELECT ALL - 58 * - + SUM( ALL - col2 ) FROM tab0 AS cor0
----
-9048

skipif mysql # not compatible
query I rowsort label-2495
SELECT ALL - 58 * - + SUM ( ALL - col2 ) FROM tab0 AS cor0
----
-9048

query I rowsort
SELECT + col0 FROM tab1 cor0 WHERE NOT ( NULL ) >= - col0 * + - col1
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2497
SELECT ALL + SUM( ALL + 21 ) AS col2, + COUNT( * ) DIV 78 + + - MAX( DISTINCT + col2 ) DIV 3 - - 43 FROM tab0 AS cor0
----
63
10

skipif mysql # not compatible
query II rowsort label-2497
SELECT ALL + SUM ( ALL + 21 ) AS col2, + COUNT ( * ) / 78 + + - MAX ( DISTINCT + col2 ) / 3 - - 43 FROM tab0 AS cor0
----
63
10

query I rowsort
SELECT 23 * - - col1 * - + col1 FROM tab2
----
-103247
-136367
-59823

onlyif mysql # DIV for integer division: 
query I rowsort label-2499
SELECT DISTINCT 25 DIV + + col2 FROM tab0
----
0
2

skipif mysql # not compatible
query I rowsort label-2499
SELECT DISTINCT 25 / + + col2 FROM tab0
----
0
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 45 col2 FROM tab2 WHERE - ( - col0 ) <= NULL
----

query I rowsort
SELECT DISTINCT + + ( 22 ) AS col2 FROM tab2 cor0
----
22

query I rowsort
SELECT + col2 * - - col1 + - col1 * - + 15 * + col2 + + - col0 FROM tab1 cor0
----
21453
4635
51045

query I rowsort
SELECT 10 * + - col2 AS col2 FROM tab0 AS cor0
----
-100
-470
-990

query I rowsort
SELECT DISTINCT + col1 AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN 64 * + 37 AND NULL
----

query I rowsort
SELECT - - col1 * - 93 * + ( - ( + col1 ) ) FROM tab0 AS cor0
----
41013
610173
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2506
SELECT ALL + + CAST( NULL AS SIGNED ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + + CAST ( NULL AS INTEGER ) * + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2507
SELECT - 33 DIV col0 col1 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2507
SELECT - 33 / col0 col1 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT DISTINCT - 88 * CAST( NULL AS SIGNED ) FROM tab2 WHERE NULL <> + - 85 * + col0
----

skipif mysql # not compatible
query I rowsort label-2508
SELECT DISTINCT - 88 * CAST ( NULL AS INTEGER ) FROM tab2 WHERE NULL <> + - 85 * + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2509
SELECT ALL - col2 / - - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2509
SELECT ALL - col2 / - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + + 22 col0 FROM tab2 WHERE NULL > - col1
----

query I rowsort
SELECT DISTINCT ( + col0 ) + + - col0 FROM tab0
----
0

query I rowsort
SELECT ALL - col1 + - col1 + + col2 AS col2 FROM tab2
----
-114
-76
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2513
SELECT DISTINCT + COUNT( * ) - + 80 FROM tab1 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-2513
SELECT DISTINCT + COUNT ( * ) - + 80 FROM tab1 AS cor0
----
-77

query I rowsort
SELECT + 45 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + 41 AS col0 FROM tab1 AS cor0 WHERE col1 = ( + col1 )
----
41
41
41

query I rowsort
SELECT - ( - 61 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) = + col1
----

query I rowsort
SELECT 70 - - col2 FROM tab1
----
129
138
166

query III rowsort
SELECT ALL * FROM tab0 WHERE - - col2 + - col2 NOT BETWEEN NULL AND + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * - col0 * + - 75 - 78 col1 FROM tab1 AS cor0
----
367122
376047
464022

onlyif mysql # aggregate syntax: 
query I rowsort label-2520
SELECT ALL + - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 + - ( + col2 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2520
SELECT ALL + - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE - col0 + - ( + col2 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2521
SELECT COUNT( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2521
SELECT COUNT ( * ) AS col2 FROM tab0 WHERE NOT NULL NOT BETWEEN ( - + col1 ) AND NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2522
SELECT ALL CAST( + + col2 AS SIGNED ) AS col0 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2522
SELECT ALL CAST ( + + col2 AS INTEGER ) AS col0 FROM tab1
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2523
SELECT DISTINCT - 40 * - + COUNT( * ) FROM tab0
----
120

skipif mysql # not compatible
query I rowsort label-2523
SELECT DISTINCT - 40 * - + COUNT ( * ) FROM tab0
----
120

query I rowsort
SELECT col1 * 68 AS col2 FROM tab1
----
3196
340
952

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + col0 / - 41
----

query III rowsort
SELECT * FROM tab1 WHERE 65 + + col2 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2527
SELECT MIN( ALL + col2 ) AS col0 FROM tab0 WHERE NULL <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2527
SELECT MIN ( ALL + col2 ) AS col0 FROM tab0 WHERE NULL <> NULL
----
NULL

query I rowsort
SELECT ALL ( - 92 ) FROM tab0
----
-92
-92
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN 91 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2530
SELECT + COUNT( * ) + + 76 col0 FROM tab2
----
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2530
SELECT + COUNT ( * ) + + 76 col0 FROM tab2
----
79

query III rowsort
SELECT * FROM tab1 WHERE NOT + 66 + + 38 BETWEEN - 16 * - 60 + + 86 AND + col1 + + 92
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2532
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( CAST( - col0 AS SIGNED ) * - ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-2532
SELECT * FROM tab2 WHERE ( col2 ) NOT IN ( CAST ( - col0 AS INTEGER ) * - ( col2 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE ( - col0 ) >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2534
SELECT - 29 * MAX( ALL - 64 ) AS col1 FROM tab2
----
1856

skipif mysql # not compatible
query I rowsort label-2534
SELECT - 29 * MAX ( ALL - 64 ) AS col1 FROM tab2
----
1856

query I rowsort
SELECT ALL 74 + col1 FROM tab2
----
125
141
151

query I rowsort
SELECT col0 + + 22 * col1 FROM tab1
----
1125
195
359

query I rowsort
SELECT DISTINCT 93 + + col1 FROM tab1 WHERE col2 * + 35 <> ( - col0 * - col1 )
----
107
140
98

query I rowsort
SELECT ALL + col1 * 21 FROM tab1
----
105
294
987

onlyif mysql # DIV for integer division: 
query I rowsort label-2539
SELECT ALL col1 DIV col2 + + col1 AS col0 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-2539
SELECT ALL col1 / col2 + + col1 AS col0 FROM tab2
----
53
68
78

query I rowsort
SELECT 77 * - col0 AS col2 FROM tab0
----
-1155
-6699
-7469

onlyif mysql # DIV for integer division: 
query I rowsort label-2541
SELECT DISTINCT + 53 + - col2 DIV + col0 FROM tab1
----
52
53

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT + 53 + - col2 / + col0 FROM tab1
----
52
53

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) = col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 2 * col2 FROM tab2
----
116
46
80

query I rowsort
SELECT ALL col2 * 18 FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND 99 + col0
----

query I rowsort
SELECT ALL - col1 * + ( - ( - ( col2 ) ) ) FROM tab2
----
-1173
-3080
-3886

query I rowsort
SELECT ALL + 43 * + col1 FROM tab1
----
2021
215
602

onlyif mysql # aggregate syntax: 
query I rowsort label-2548
SELECT SUM( DISTINCT - ( - col1 ) ) * COUNT( col1 ) - 84 AS col1 FROM tab0
----
225

skipif mysql # not compatible
query I rowsort label-2548
SELECT SUM ( DISTINCT - ( - col1 ) ) * COUNT ( col1 ) - 84 AS col1 FROM tab0
----
225

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE - col1 IN ( 13 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2550
SELECT DISTINCT - col0 DIV - col0 - + col1 col2 FROM tab1 AS cor0
----
-13
-4
-46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2550
SELECT DISTINCT - col0 / - col0 - + col1 col2 FROM tab1 AS cor0
----
-13
-4
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-2551
SELECT MAX( + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> - ( - col2 ) * col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2551
SELECT MAX ( + col1 ) AS col2 FROM tab2 AS cor0 WHERE ( NULL ) <> - ( - col2 ) * col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2552
SELECT DISTINCT COUNT( * ) FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND ( - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-2552
SELECT DISTINCT COUNT ( * ) FROM tab2 WHERE NOT NULL BETWEEN ( col0 ) AND ( - col2 )
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT + 63 = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2554
SELECT + COUNT( * ) + 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IS NOT NULL
----
51

skipif mysql # not compatible
query I rowsort label-2554
SELECT + COUNT ( * ) + 51 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 WHERE ( NULL ) IS NOT NULL
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2555
SELECT CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE 84 IS NULL
----

skipif mysql # not compatible
query I rowsort label-2555
SELECT CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE 84 IS NULL
----

query I rowsort
SELECT ALL 13 * - col2 AS col1 FROM tab0 WHERE NOT - col1 < col1 + col2
----

query I rowsort
SELECT DISTINCT col0 * - 28 AS col2 FROM tab1
----
-1428
-2380
-2548

query I rowsort
SELECT DISTINCT + col1 FROM tab2 AS cor0 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2559
SELECT ALL + + COUNT( + 81 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-2559
SELECT ALL + + COUNT ( + 81 ) FROM tab0 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2560
SELECT MIN( - col2 ) FROM tab2 cor0
----
-58

skipif mysql # not compatible
query I rowsort label-2560
SELECT MIN ( - col2 ) FROM tab2 cor0
----
-58

query I rowsort
SELECT col1 * + col1 FROM tab0 AS cor0 WHERE NOT NULL > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2562
SELECT DISTINCT MIN( DISTINCT col1 ) * 7 FROM tab2 AS cor0
----
357

skipif mysql # not compatible
query I rowsort label-2562
SELECT DISTINCT MIN ( DISTINCT col1 ) * 7 FROM tab2 AS cor0
----
357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2563
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE - col1 * col1 + CAST( NULL AS SIGNED ) * - 16 NOT IN ( col0 + - col2 / + col2 )
----

skipif mysql # not compatible
query I rowsort label-2563
SELECT ALL col0 AS col0 FROM tab1 AS cor0 WHERE - col1 * col1 + CAST ( NULL AS INTEGER ) * - 16 NOT IN ( col0 + - col2 / + col2 )
----

query I rowsort
SELECT DISTINCT 53 AS col0 FROM tab1 AS cor0 WHERE col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL + 89 * - 49 AS col1 FROM tab2 AS cor0
----
-4361
-4361
-4361

onlyif mysql # aggregate syntax: 
query I rowsort label-2566
SELECT - - SUM( col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-2566
SELECT - - SUM ( col0 ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-2567
SELECT - + SUM( 59 ) FROM tab0 cor0
----
-177

skipif mysql # not compatible
query I rowsort label-2567
SELECT - + SUM ( 59 ) FROM tab0 cor0
----
-177

query I rowsort
SELECT ALL + 34 * 61 FROM tab0 WHERE col2 * col1 NOT BETWEEN col2 AND - col2 * col1
----
2074
2074
2074

query I rowsort
SELECT + ( 61 ) FROM tab2
----
61
61
61

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2570
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN 79 * col0 AND col0 + CAST( + col2 AS DECIMAL ) OR NULL >= col0 * ( ( CAST( NULL AS SIGNED ) ) * - col1 )
----

skipif mysql # not compatible
query III rowsort label-2570
SELECT DISTINCT * FROM tab1 WHERE NOT - col0 NOT BETWEEN 79 * col0 AND col0 + CAST ( + col2 AS REAL ) OR NULL >= col0 * ( ( CAST ( NULL AS INTEGER ) ) * - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2571
SELECT ALL + SUM( DISTINCT + col1 ) col2 FROM tab1
----
66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2571
SELECT ALL + SUM ( DISTINCT + col1 ) col2 FROM tab1
----
66

query I rowsort
SELECT DISTINCT col1 FROM tab0 WHERE NOT - col0 >= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col1 * + col1 <> + col2
----

query I rowsort
SELECT DISTINCT + 5 * + - col1 AS col0 FROM tab0
----
-105
-405
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2575
SELECT ALL + - COUNT( ALL 45 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2575
SELECT ALL + - COUNT ( ALL 45 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - col2 * - col0 FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab1 AS cor0 WHERE NOT + col1 <> - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2578
SELECT - COUNT( * ) + - - 52 * + 95 AS col0 FROM tab2 AS cor0
----
4937

skipif mysql # not compatible
query I rowsort label-2578
SELECT - COUNT ( * ) + - - 52 * + 95 AS col0 FROM tab2 AS cor0
----
4937

query II rowsort
SELECT + col0 AS col2, + ( - + col1 ) AS col1 FROM tab2
----
46
-51
64
-77
75
-67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 4 * - 29 col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f3d4bda483c78f538b28a9f609440927

query II rowsort
SELECT col1 AS col1, + 67 + - col2 FROM tab1
----
14
-29
47
-1
5
8

query I rowsort
SELECT ALL - 49 * - 43 AS col0 FROM tab2 AS cor0
----
2107
2107
2107

query I rowsort
SELECT DISTINCT + + 18 * + col0 + + 1 AS col1 FROM tab2 AS cor0
----
1153
1351
829

onlyif mysql # aggregate syntax: 
query I rowsort label-2584
SELECT ALL + 60 * - MAX( - col0 ) + 1 FROM tab1 AS cor0
----
3061

skipif mysql # not compatible
query I rowsort label-2584
SELECT ALL + 60 * - MAX ( - col0 ) + 1 FROM tab1 AS cor0
----
3061

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, col1 col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

query I rowsort
SELECT + 23 AS col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL ( + col1 ) AS col1 FROM tab0 cor0 WHERE NOT ( - col2 ) IN ( col0 )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT + 42 + COUNT( + col0 ) FROM tab0
----
45

skipif mysql # not compatible
query I rowsort label-2588
SELECT + 42 + COUNT ( + col0 ) FROM tab0
----
45

query I rowsort
SELECT DISTINCT 19 * col2 FROM tab2 WHERE NULL NOT BETWEEN - - 47 AND col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2590
SELECT COUNT( * ) + - - COUNT( * ) * + 8 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-2590
SELECT COUNT ( * ) + - - COUNT ( * ) * + 8 FROM tab2
----
27

query I rowsort
SELECT DISTINCT + 72 + - + 38 AS col2 FROM tab2
----
34

query I rowsort
SELECT - col1 + 60 FROM tab1 AS cor0
----
13
46
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2593
SELECT - col2 FROM tab2 AS cor0 WHERE + 28 * + 56 >= CAST( col0 AS SIGNED )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-2593
SELECT - col2 FROM tab2 AS cor0 WHERE + 28 * + 56 >= CAST ( col0 AS INTEGER )
----
-23
-40
-58

query II rowsort
SELECT DISTINCT col0 - col1 AS col2, + 65 + - col1 + col0 FROM tab2 AS cor0
----
-13
52
-5
60
8
73

query I rowsort
SELECT DISTINCT ( - col1 ) FROM tab0 WHERE NOT ( col2 ) = ( col0 )
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT - 95 * COUNT( * ) FROM tab0 AS cor0
----
-285

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT - 95 * COUNT ( * ) FROM tab0 AS cor0
----
-285

onlyif mysql # DIV for integer division: 
query I rowsort label-2597
SELECT ALL - - 31 DIV col1 AS col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2597
SELECT ALL - - 31 / col1 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col2 + + col0 * - col0 AND - col1
----

query I rowsort
SELECT DISTINCT - col1 * + - 91 AS col0 FROM tab1 AS cor0
----
1274
4277
455

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( col0 - 96 + - col1 / + - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + - ( + col2 ) col2 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2602
SELECT ALL - MIN( + 60 ) AS col0 FROM tab0 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-2602
SELECT ALL - MIN ( + 60 ) AS col0 FROM tab0 AS cor0
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2603
SELECT ALL 90 DIV + - COUNT( * ) FROM tab0 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2603
SELECT ALL 90 / + - COUNT ( * ) FROM tab0 AS cor0
----
-30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2604
SELECT DISTINCT + CAST( NULL AS SIGNED ) / 12 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2604
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / 12 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 * 16 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT - COUNT( ALL - col1 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2606
SELECT - COUNT ( ALL - col1 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT ( + + 93 ) FROM tab0
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL + SUM( + 12 ) AS col2 FROM tab2, tab1 cor0
----
108

skipif mysql # not compatible
query I rowsort label-2608
SELECT ALL + SUM ( + 12 ) AS col2 FROM tab2, tab1 cor0
----
108

query I rowsort
SELECT DISTINCT col2 * + 63 AS col1 FROM tab1
----
3717
4284
6048

query I rowsort
SELECT DISTINCT + 62 + - col1 FROM tab2 AS cor0
----
-15
-5
11

query I rowsort
SELECT DISTINCT ( col0 ) FROM tab0 AS cor0 WHERE NOT + col0 BETWEEN - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2612
SELECT + SUM( DISTINCT col1 ) + ( 78 ) AS col1 FROM tab1
----
144

skipif mysql # not compatible
query I rowsort label-2612
SELECT + SUM ( DISTINCT col1 ) + ( 78 ) AS col1 FROM tab1
----
144

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2613
SELECT - col0 + + CAST( + ( - + 25 ) AS SIGNED ) FROM tab0
----
-112
-122
-40

skipif mysql # not compatible
query I rowsort label-2613
SELECT - col0 + + CAST ( + ( - + 25 ) AS INTEGER ) FROM tab0
----
-112
-122
-40

query I rowsort
SELECT DISTINCT - col2 AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 * col1 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 + + 57 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - col0 + - ( 81 ) + col0 FROM tab0 cor0
----
-81
-81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2617
SELECT + - MIN( DISTINCT - + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
96

skipif mysql # not compatible
query I rowsort label-2617
SELECT + - MIN ( DISTINCT - + col2 ) FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2618
SELECT - + 4 * + SUM( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-780

skipif mysql # not compatible
query I rowsort label-2618
SELECT - + 4 * + SUM ( ALL col1 ) AS col2 FROM tab2 AS cor0
----
-780

query II rowsort
SELECT + col1 * - - col0 AS col0, col1 FROM tab1 AS cor0
----
425
5
4277
47
714
14

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 col2 FROM tab0 AS cor0 WHERE ( NOT 4 / - + col1 >= + 34 )
----
-15
-87
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2621
SELECT + CAST( - ( - CAST( - 91 AS SIGNED ) ) AS SIGNED ) AS col1 FROM tab0
----
-91
-91
-91

skipif mysql # not compatible
query I rowsort label-2621
SELECT + CAST ( - ( - CAST ( - 91 AS INTEGER ) ) AS INTEGER ) AS col1 FROM tab0
----
-91
-91
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT ALL + MAX( + + 90 ) AS col2 FROM tab1
----
90

skipif mysql # not compatible
query I rowsort label-2622
SELECT ALL + MAX ( + + 90 ) AS col2 FROM tab1
----
90

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2623
SELECT DISTINCT col1, 9 * - CAST( NULL AS DECIMAL ) * col0 * + 65 * 97 * - 86 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-2623
SELECT DISTINCT col1, 9 * - CAST ( NULL AS REAL ) * col0 * + 65 * 97 * - 86 AS col2 FROM tab0
----
1
NULL
21
NULL
81
NULL

query II rowsort
SELECT - 73 AS col1, col0 AS col2 FROM tab1
----
-73
51
-73
85
-73
91

query I rowsort
SELECT - col2 * + + 31 AS col2 FROM tab2
----
-1240
-1798
-713

onlyif mysql # DIV for integer division: 
query I rowsort label-2626
SELECT + col1 * - - col0 DIV - col0 AS col2 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-2626
SELECT + col1 * - - col0 / - col0 AS col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT + col1 * col1 * + 70 * + - ( + 38 ) AS col0 FROM tab0
----
-1173060
-17452260
-2660

query II rowsort
SELECT + 68 - - col0 * - col0, + col2 * 70 + - - col1 AS col0 FROM tab1
----
-2533
6734
-7157
4135
-8213
4807

query I rowsort
SELECT col2 - + col1 * - col2 * - 86 FROM tab0
----
-18050
-327355
-8415

query I rowsort
SELECT - 86 - - col0 AS col0 FROM tab1
----
-1
-35
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2631
SELECT ALL - 62 + + ( - SUM( ALL - col2 ) ) AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-2631
SELECT ALL - 62 + + ( - SUM ( ALL - col2 ) ) AS col0 FROM tab0
----
94

query I rowsort
SELECT - col1 - + 5 * col1 * col2 FROM tab0 AS cor0
----
-1071
-19116
-496

query II rowsort
SELECT + + 95 AS col0, + col2 * ( + ( - col0 ) ) * - 23 AS col2 FROM tab0 AS cor0
----
95
16215
95
20010
95
220869

query I rowsort
SELECT ( - - col0 ) * - - 45 + + col1 FROM tab2
----
2121
2957
3442

onlyif mysql # aggregate syntax: 
query I rowsort label-2635
SELECT ( + COUNT( * ) ) * - - 25 * + - COUNT( DISTINCT - 47 ) + - + 6 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2635
SELECT ( + COUNT ( * ) ) * - - 25 * + - COUNT ( DISTINCT - 47 ) + - + 6 FROM tab0
----
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL NOT BETWEEN col1 AND ( NULL ) )
----

query I rowsort
SELECT ALL - + AVG ( DISTINCT - 78 ) FROM tab0 AS cor0 WHERE NOT ( NULL ) <> + col0 * col1 * col2
----
NULL

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL IN ( - col2, col0, + col2 / + col2 + - ( - col1 ) )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * - col1 + - col2 col1 FROM tab1 AS cor0
----
-4345
-484
-810

query I rowsort
SELECT + + ( + ( col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query II rowsort label-2641
SELECT DISTINCT + + COUNT( + 23 ), - 95 * + + MAX( ALL - col1 ) * ( + 3 ) col2 FROM tab1 AS cor0
----
3
1425

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2641
SELECT DISTINCT + + COUNT ( + 23 ), - 95 * + + MAX ( ALL - col1 ) * ( + 3 ) col2 FROM tab1 AS cor0
----
3
1425

onlyif mysql # aggregate syntax: 
query I rowsort label-2642
SELECT ALL - - 54 * + MIN( col1 ) + 68 + + 72 FROM tab1 cor0 WHERE NOT ( + col0 ) >= + 95 * - 79 + + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2642
SELECT ALL - - 54 * + MIN ( col1 ) + 68 + + 72 FROM tab1 cor0 WHERE NOT ( + col0 ) >= + 95 * - 79 + + col0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT DISTINCT - - COUNT( * ) * + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2643
SELECT DISTINCT - - COUNT ( * ) * + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
9

query II rowsort
SELECT col2, 84 AS col1 FROM tab0
----
10
84
47
84
99
84

query I rowsort
SELECT DISTINCT 39 * + 3 FROM tab2
----
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2646
SELECT DISTINCT 87 * + - 74 * + ( + COUNT( * ) ) + 19 FROM tab0
----
-19295

skipif mysql # not compatible
query I rowsort label-2646
SELECT DISTINCT 87 * + - 74 * + ( + COUNT ( * ) ) + 19 FROM tab0
----
-19295

query I rowsort
SELECT ALL + 11 * - + col0 AS col0 FROM tab1
----
-1001
-561
-935

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT + COUNT( - - 98 ) + - ( - COUNT( * ) ) AS col1 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT + COUNT ( - - 98 ) + - ( - COUNT ( * ) ) AS col1 FROM tab0
----
6

query I rowsort
SELECT + col0 * - ( - col0 ) * - 59 * + - col1 FROM tab1 WHERE NOT + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2650
SELECT ALL * FROM tab1 WHERE NOT ( 64 + CAST( NULL AS SIGNED ) ) >= + col0
----

skipif mysql # not compatible
query III rowsort label-2650
SELECT ALL * FROM tab1 WHERE NOT ( 64 + CAST ( NULL AS INTEGER ) ) >= + col0
----

query I rowsort
SELECT ALL - 90 + - col1 FROM tab0 AS cor0
----
-111
-171
-91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2652
SELECT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN + CAST( NULL AS SIGNED ) AND col2 )
----

skipif mysql # not compatible
query III rowsort label-2652
SELECT * FROM tab0 AS cor0 WHERE ( NULL BETWEEN + CAST ( NULL AS INTEGER ) AND col2 )
----

query III rowsort
SELECT * FROM tab2 WHERE + col0 <> ( - col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2654
SELECT ALL * FROM tab0 WHERE NOT + ( - 54 ) BETWEEN 64 * + + col0 - - - CAST( + ( + col0 ) AS SIGNED ) + col1 AND + col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2654
SELECT ALL * FROM tab0 WHERE NOT + ( - 54 ) BETWEEN 64 * + + col0 - - - CAST ( + ( + col0 ) AS INTEGER ) + col1 AND + col0 + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2655
SELECT DISTINCT 11 * - - ( - - COUNT( + - 9 ) ) FROM tab1
----
33

skipif mysql # not compatible
query I rowsort label-2655
SELECT DISTINCT 11 * - - ( - - COUNT ( + - 9 ) ) FROM tab1
----
33

query I rowsort
SELECT ALL + col0 - - + col1 * + + col2 * col0 * + 18 * - col1 FROM tab2 cor0
----
-273208256
-351488625
-49533398

onlyif mysql # DIV for integer division: 
query I rowsort label-2657
SELECT + col2 DIV 49 + - col2 - 73 AS col1 FROM tab2 cor0
----
-113
-130
-96

skipif mysql # not compatible
query I rowsort label-2657
SELECT + col2 / 49 + - col2 - 73 AS col1 FROM tab2 cor0
----
-113
-130
-96

query I rowsort
SELECT DISTINCT 89 AS col2 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col1 AND - + col0 AND NULL IS NOT NULL
----

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + col0 / - col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT + - 77 - - + 76 * + - col0 FROM tab1 AS cor0
----
-3953
-6537
-6993

query I rowsort
SELECT - ( + 83 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 61 + + ( + + col1 ) * + - col0 * - 33 AS col0 FROM tab1 AS cor0
----
13964
141080
23501

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2663
SELECT ALL + + CAST( + MAX( 64 ) AS SIGNED ) FROM tab0 AS cor0
----
64

skipif mysql # not compatible
query I rowsort label-2663
SELECT ALL + + CAST ( + MAX ( 64 ) AS INTEGER ) FROM tab0 AS cor0
----
64

query II rowsort
SELECT - col0, col1 AS col2 FROM tab1 AS cor0 WHERE col2 < - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT - col1 + + col0 + - 41 - - CAST( + 55 AS SIGNED ) * + col0 FROM tab0 AS cor0
----
4810
5390
718

skipif mysql # not compatible
query I rowsort label-2665
SELECT - col1 + + col0 + - 41 - - CAST ( + 55 AS INTEGER ) * + col0 FROM tab0 AS cor0
----
4810
5390
718

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( 36 + - col1 ) NOT BETWEEN + 60 AND - - 39
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2667
SELECT CAST( NULL AS SIGNED ) / - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2667
SELECT CAST ( NULL AS INTEGER ) / - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 31 * + 17 FROM tab1
----
527

onlyif mysql # aggregate syntax: 
query I rowsort label-2669
SELECT ALL - ( + + ( + SUM( DISTINCT - col2 ) ) ) + 54 FROM tab0 AS cor0 WHERE - 26 IS NOT NULL
----
210

skipif mysql # not compatible
query I rowsort label-2669
SELECT ALL - ( + + ( + SUM ( DISTINCT - col2 ) ) ) + 54 FROM tab0 AS cor0 WHERE - 26 IS NOT NULL
----
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2670
SELECT + COUNT( * ) DIV - COUNT( - - 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

skipif mysql # not compatible
query I rowsort label-2670
SELECT + COUNT ( * ) / - COUNT ( - - 22 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-1

onlyif mysql # aggregate syntax: 
query II rowsort label-2671
SELECT DISTINCT COUNT( * ) + + SUM( DISTINCT + 54 ) + - 50 AS col1, - 42 FROM tab2 WHERE NOT - + ( - 44 ) IS NOT NULL
----
NULL
-42

skipif mysql # not compatible
query II rowsort label-2671
SELECT DISTINCT COUNT ( * ) + + SUM ( DISTINCT + 54 ) + - 50 AS col1, - 42 FROM tab2 WHERE NOT - + ( - 44 ) IS NOT NULL
----
NULL
-42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * ( - 39 ) * - col1 + + col1 col1 FROM tab1
----
-16570
-166756
-27832

onlyif mysql # DIV for integer division: 
query I rowsort label-2673
SELECT 8 DIV + col0 + + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-2673
SELECT 8 / + col0 + + + col1 AS col1 FROM tab1 AS cor0
----
14
47
5

query I rowsort
SELECT ALL - + 93 + + 15 FROM tab1 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2675
SELECT DISTINCT 46 * - + COUNT( * ) * + 63 AS col2 FROM tab2 AS cor0
----
-8694

skipif mysql # not compatible
query I rowsort label-2675
SELECT DISTINCT 46 * - + COUNT ( * ) * + 63 AS col2 FROM tab2 AS cor0
----
-8694

query I rowsort
SELECT DISTINCT col1 * + 55 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT col0 + + col2 AS col1 FROM tab0 AS cor0 WHERE NOT col1 BETWEEN NULL AND + + col0 + + col2 * + col1
----

query I rowsort
SELECT ALL ( + 57 ) AS col1 FROM tab2 cor0
----
57
57
57

query III rowsort
SELECT * FROM tab2 WHERE NOT - + col2 > + 60
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 28 * + - col0 AS col2 FROM tab2
----
-1288
-1792
-2100

query I rowsort
SELECT ALL + col2 + - ( + + col2 ) FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE ( - + 9 ) IS NULL
----

query I rowsort
SELECT DISTINCT - 68 * + - 8 FROM tab2
----
544

query I rowsort
SELECT ALL ( 90 ) + - + 2 AS col1 FROM tab1
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-2685
SELECT COUNT( * ) * - - MAX( + col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-2685
SELECT COUNT ( * ) * - - MAX ( + col1 ) FROM tab1
----
141

query II rowsort
SELECT DISTINCT 22 + - - 32, col0 FROM tab0
----
54
15
54
87
54
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + + col2 + col1, col1 col0 FROM tab1 AS cor0
----
110
14
115
47
64
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2688
SELECT - COUNT( + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2688
SELECT - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 > + ( + col2 ) * 25 / - + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = - 67 * + 10 + - 60
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT ALL CAST( NULL AS SIGNED ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2691
SELECT ALL CAST ( NULL AS INTEGER ) + col0 FROM tab0 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 66 + - + 65 FROM tab0
----
-131
-131
-131

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT - - COUNT( * ) + - 63 + + MIN( + 14 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT - - COUNT ( * ) + - 63 + + MIN ( + 14 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2694
SELECT DISTINCT col1 + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2694
SELECT DISTINCT col1 + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + + col2 * + col2 - col0 * + col2 FROM tab1 AS cor0
----
-1534
-1564
4320

query II rowsort
SELECT - 66 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
-66
-14
-66
-47
-66
-5

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 9 < NULL
----

query I rowsort
SELECT ALL col2 + + 46 + + col1 FROM tab2 AS cor0
----
120
163
171

query I rowsort
SELECT ALL col2 + + col1 + + - col2 * col1 AS col0 FROM tab2 AS cor0
----
-1099
-2963
-3761

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2700
SELECT DISTINCT + SUM( + + col0 ) - + COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab1 cor0
----
226

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT + SUM ( + + col0 ) - + COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab1 cor0
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-2701
SELECT MIN( ALL + col1 ) AS col1 FROM tab1 cor0 WHERE NULL >= + col0 + + + col2 * - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-2701
SELECT MIN ( ALL + col1 ) AS col1 FROM tab1 cor0 WHERE NULL >= + col0 + + + col2 * - col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2702
SELECT DISTINCT + 62 DIV - + CAST( + - COUNT( * ) AS SIGNED ) FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-2702
SELECT DISTINCT + 62 / - + CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab2
----
20

query II rowsort
SELECT DISTINCT col0 AS col0, + col0 AS col0 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT - 96 AS col2, col2 AS col0 FROM tab1
----
-96
59
-96
68
-96
96

query II rowsort
SELECT DISTINCT ( col1 ) AS col1, - col1 FROM tab0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-2706
SELECT ALL 47, - COUNT( * ) AS col1 FROM tab2
----
47
-3

skipif mysql # not compatible
query II rowsort label-2706
SELECT ALL 47, - COUNT ( * ) AS col1 FROM tab2
----
47
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT DISTINCT + MAX( - + col2 ) * - MIN( - col2 ) FROM tab1
----
-5664

skipif mysql # not compatible
query I rowsort label-2707
SELECT DISTINCT + MAX ( - + col2 ) * - MIN ( - col2 ) FROM tab1
----
-5664

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + col2, - 12 - 70, - 86 + - 82 )
----

query I rowsort
SELECT DISTINCT + 0 + - col2 * - 89 AS col0 FROM tab2 AS cor0
----
2047
3560
5162

onlyif mysql # aggregate syntax: 
query I rowsort label-2710
SELECT ALL - ( + MIN( DISTINCT - + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2710
SELECT ALL - ( + MIN ( DISTINCT - + col2 ) ) AS col2 FROM tab2 AS cor0
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT - SUM( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-2711
SELECT - SUM ( ALL + - col1 ) AS col0 FROM tab1 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + col2 + + + col2 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2713
SELECT + col0 * + CAST( + + col1 AS SIGNED ) - 55 + col0 * col1 - - col1 FROM tab1 cor0
----
1387
800
8546

skipif mysql # not compatible
query I rowsort label-2713
SELECT + col0 * + CAST ( + + col1 AS INTEGER ) - 55 + col0 * col1 - - col1 FROM tab1 cor0
----
1387
800
8546

query II rowsort
SELECT - - ( + ( 56 ) ) AS col0, 42 FROM tab2 AS cor0
----
56
42
56
42
56
42

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + + col1 IN ( - col2 + - col0, + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2717
SELECT - 44 * 65 * + COUNT( * ) FROM tab2
----
-8580

skipif mysql # not compatible
query I rowsort label-2717
SELECT - 44 * 65 * + COUNT ( * ) FROM tab2
----
-8580

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + 31 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 32 * + col2 AS col1 FROM tab1
----
1888
2176
3072

query I rowsort
SELECT col2 * 5 + 66 - - - 75 * + 76 FROM tab1
----
-5154
-5294
-5339

onlyif mysql # aggregate syntax: 
query I rowsort label-2721
SELECT ALL + ( 23 ) - - + 34 - - + COUNT( * ) AS col0 FROM tab2, tab2 cor0
----
66

skipif mysql # not compatible
query I rowsort label-2721
SELECT ALL + ( 23 ) - - + 34 - - + COUNT ( * ) AS col0 FROM tab2, tab2 cor0
----
66

query I rowsort
SELECT DISTINCT - 33 + + + col2 FROM tab1
----
26
35
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2723
SELECT ALL COUNT( * ) * + SUM( + 66 ) * + 66 + + 26 AS col1 FROM tab1 AS cor0
----
39230

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL COUNT ( * ) * + SUM ( + 66 ) * + 66 + + 26 AS col1 FROM tab1 AS cor0
----
39230

query I rowsort
SELECT ALL - col2 + - + col2 - - - col2 FROM tab1 AS cor0
----
-177
-204
-288

query II rowsort
SELECT + 95 AS col2, 65 FROM tab2 AS cor0
----
95
65
95
65
95
65

onlyif mysql # DIV for integer division: 
query I rowsort label-2726
SELECT DISTINCT + + 37 DIV 4 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2726
SELECT DISTINCT + + 37 / 4 FROM tab0 AS cor0
----
9

query II rowsort
SELECT DISTINCT - 50 + + - col2 + + + 69 + - 5, + col0 FROM tab2
----
-26
64
-44
75
-9
46

query I rowsort
SELECT DISTINCT - col1 * + + 67 FROM tab0
----
-1407
-5427
-67

query I rowsort
SELECT ALL 5 * col1 FROM tab2
----
255
335
385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + col0 ) + ( + col0 ) col2, + 74 * 96 + - - col0 * + - col0 AS col0 FROM tab2 AS cor0
----
128
3008
150
1479
92
4988

query I rowsort
SELECT col2 - - + col2 AS col2 FROM tab2 AS cor0
----
116
46
80

query I rowsort
SELECT DISTINCT + col1 + - + col1 AS col1 FROM tab1 AS cor0
----
0

query I rowsort
SELECT - col1 + + 73 FROM tab2 AS cor0
----
-4
22
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 82 - + + col2 col1 FROM tab2 cor0
----
-105
-122
-140

query I rowsort
SELECT + col2 * ( col0 ) AS col0 FROM tab1
----
4896
5015
6188

onlyif mysql # aggregate syntax: 
query I rowsort label-2736
SELECT DISTINCT - COUNT( * ) * - - SUM( - 94 ) FROM tab1
----
846

skipif mysql # not compatible
query I rowsort label-2736
SELECT DISTINCT - COUNT ( * ) * - - SUM ( - 94 ) FROM tab1
----
846

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2737
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - CAST( - ( 66 ) AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2737
SELECT ALL * FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - CAST ( - ( 66 ) AS INTEGER )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2738
SELECT - ( + + MIN( DISTINCT - + col2 ) ) DIV + - 42 FROM tab0
----
-2

skipif mysql # not compatible
query I rowsort label-2738
SELECT - ( + + MIN ( DISTINCT - + col2 ) ) / + - 42 FROM tab0
----
-2

query I rowsort
SELECT DISTINCT col2 * - - ( + col0 ) FROM tab0
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-2740
SELECT + col0 DIV 69 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-2740
SELECT + col0 / 69 FROM tab1 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - 71 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2742
SELECT DISTINCT * FROM tab1 WHERE 23 * + 16 NOT IN ( + col2, - col0 * CAST( + col1 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-2742
SELECT DISTINCT * FROM tab1 WHERE 23 * + 16 NOT IN ( + col2, - col0 * CAST ( + col1 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab0 AS cor1 WHERE NOT + 37 IS NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

onlyif mysql # aggregate syntax: 
query II rowsort label-2744
SELECT DISTINCT - COUNT( * ), 45 AS col1 FROM tab0 AS cor0
----
-3
45

skipif mysql # not compatible
query II rowsort label-2744
SELECT DISTINCT - COUNT ( * ), 45 AS col1 FROM tab0 AS cor0
----
-3
45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col1 + - - col0 col0, col2 FROM tab0 cor0
----
108
10
96
47
98
99

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + 1 )
----

query I rowsort
SELECT - col1 AS col0 FROM tab0 AS cor0 WHERE + 5 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT DISTINCT + - ( - + col1 ) FROM tab1 cor0
----
14
47
5

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2749
SELECT - MIN( DISTINCT col0 ) DIV - - 29 col2 FROM tab1
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2749
SELECT - MIN ( DISTINCT col0 ) / - - 29 col2 FROM tab1
----
-1

query I rowsort
SELECT - ( + col1 ) * col2 + - col0 FROM tab2
----
-1219
-3144
-3961

query I rowsort
SELECT ALL + 59 FROM tab2 WHERE NOT - + col2 IS NULL
----
59
59
59

query I rowsort
SELECT + ( + - 42 ) * - 25 FROM tab0
----
1050
1050
1050

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2753
SELECT ALL + 29 * + 20 + - - col2 + + - col1 * - CAST( + col2 AS SIGNED ) + col0 AS col0 FROM tab2
----
1822
3764
4599

skipif mysql # not compatible
query I rowsort label-2753
SELECT ALL + 29 * + 20 + - - col2 + + - col1 * - CAST ( + col2 AS INTEGER ) + col0 AS col0 FROM tab2
----
1822
3764
4599

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT MIN( + - ( + ( + 51 ) ) ) AS col1 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-2754
SELECT MIN ( + - ( + ( + 51 ) ) ) AS col1 FROM tab0
----
-51

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2756
SELECT - col2 + - col1 - - 24 DIV - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-33

skipif mysql # not compatible
query I rowsort label-2756
SELECT - col2 + - col1 - - 24 / - col2 AS col0 FROM tab0 AS cor0
----
-100
-128
-33

query I rowsort
SELECT col0 * ( + 47 ) + + col1 FROM tab2
----
2213
3085
3592

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT col2 + + 15 * col0 * col2 = ( - col0 / + 37 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 65 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 744531575c1b6461ed2916d4940e4d23

query I rowsort
SELECT ALL + col1 + - col0 FROM tab1 AS cor0 WHERE NULL <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2761
SELECT ALL + MIN( - - 84 ) AS col0 FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-2761
SELECT ALL + MIN ( - - 84 ) AS col0 FROM tab1 AS cor0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2762
SELECT - MAX( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
59

skipif mysql # not compatible
query I rowsort label-2762
SELECT - MAX ( DISTINCT - col2 ) AS col2 FROM tab1 cor0
----
59

onlyif mysql # DIV for integer division: 
query I rowsort label-2763
SELECT ALL - col2 DIV + col2 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

skipif mysql # not compatible
query I rowsort label-2763
SELECT ALL - col2 / + col2 + - col2 FROM tab0 AS cor0
----
-100
-11
-48

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2764
SELECT ALL col0 * + 27, + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
1377
NULL
2295
NULL
2457
NULL

skipif mysql # not compatible
query II rowsort label-2764
SELECT ALL col0 * + 27, + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
1377
NULL
2295
NULL
2457
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT IN ( + col2, - col2, - col0, + + 2 + 12 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * + 96 AS col1 FROM tab1
----
4896
8160
8736

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <= - ( col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT - CAST( - MIN( ALL col2 ) AS SIGNED ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-2768
SELECT - CAST ( - MIN ( ALL col2 ) AS INTEGER ) AS col1 FROM tab1
----
59

query I rowsort
SELECT ALL 41 FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2771
SELECT DISTINCT + ( - 77 ) * ( COUNT( + - CAST( col1 AS SIGNED ) ) ) AS col2 FROM tab0 AS cor0
----
-231

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT + ( - 77 ) * ( COUNT ( + - CAST ( col1 AS INTEGER ) ) ) AS col2 FROM tab0 AS cor0
----
-231

onlyif mysql # aggregate syntax: 
query I rowsort label-2772
SELECT - - 86 * - - COUNT( * ) * + ( 78 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
60372

skipif mysql # not compatible
query I rowsort label-2772
SELECT - - 86 * - - COUNT ( * ) * + ( 78 ) FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
60372

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2773
SELECT ALL + COUNT( * ) DIV - - ( COUNT( * ) ) + - MIN( DISTINCT - + col2 ) + 87 col1 FROM tab2 cor0
----
146

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2773
SELECT ALL + COUNT ( * ) / - - ( COUNT ( * ) ) + - MIN ( DISTINCT - + col2 ) + 87 col1 FROM tab2 cor0
----
146

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, col1 col2 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT + COUNT( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2775
SELECT + COUNT ( * ) AS col1 FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 35 col1 FROM tab2 cor0
----
35
35
35

onlyif mysql # aggregate syntax: 
query I rowsort label-2777
SELECT ALL + + SUM( ALL 80 ) FROM tab2 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-2777
SELECT ALL + + SUM ( ALL 80 ) FROM tab2 AS cor0
----
240

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE NOT + 41 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2779
SELECT 85 + - COUNT( * ) FROM tab1 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-2779
SELECT 85 + - COUNT ( * ) FROM tab1 AS cor0
----
82

query I rowsort
SELECT - 19 + - col2 FROM tab1
----
-115
-78
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2781
SELECT DISTINCT COUNT( * ) + COUNT( - - col1 ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2781
SELECT DISTINCT COUNT ( * ) + COUNT ( - - col1 ) col1 FROM tab0
----
6

query II rowsort
SELECT DISTINCT col0 + + col1 AS col1, - 31 FROM tab0 AS cor0
----
108
-31
96
-31
98
-31

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE ( - col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2784
SELECT ALL - CAST( - - col0 AS SIGNED ) - - + col1 + + col0 AS col1 FROM tab0 AS cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-2784
SELECT ALL - CAST ( - - col0 AS INTEGER ) - - + col1 + + col0 AS col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT DISTINCT MAX( DISTINCT + + 18 ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-2785
SELECT DISTINCT MAX ( DISTINCT + + 18 ) AS col0 FROM tab2 AS cor0
----
18

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab2 cor1 WHERE NOT NULL IS NOT NULL
----
54 values hashing to eaa394f1627c8d5e53406d9ca3b09469

onlyif mysql # aggregate syntax: 
query I rowsort label-2787
SELECT DISTINCT - COUNT( + + 79 ) AS col2 FROM tab2 WHERE + + col1 / col2 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT - COUNT ( + + 79 ) AS col2 FROM tab2 WHERE + + col1 / col2 IS NOT NULL
----
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-2788
SELECT 94 - - col1 DIV 62 AS col1 FROM tab2
----
94
95
95

skipif mysql # not compatible
query I rowsort label-2788
SELECT 94 - - col1 / 62 AS col1 FROM tab2
----
94
95
95

query I rowsort
SELECT DISTINCT + col2 * + - col0 AS col1 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-2790
SELECT + ( + COUNT( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2790
SELECT + ( + COUNT ( - - col1 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 75 * - col1 AS col0 FROM tab2 AS cor0
----
-3825
-5025
-5775

query I rowsort
SELECT ALL + - 24 * + col0 FROM tab1 AS cor0
----
-1224
-2040
-2184

onlyif mysql # aggregate syntax: 
query I rowsort label-2793
SELECT + COUNT( * ) * + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-2793
SELECT + COUNT ( * ) * + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-9

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 30 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL > - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2796
SELECT DISTINCT + SUM( ALL + + 63 ) AS col0 FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-2796
SELECT DISTINCT + SUM ( ALL + + 63 ) AS col0 FROM tab2
----
189

query I rowsort
SELECT col1 AS col1 FROM tab2 WHERE NOT NULL = - 90 * col1
----

query I rowsort
SELECT ALL - ( + col1 ) * + col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT col0 * col1 * - + ( col2 ) FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col2 FROM tab0
----
-22
-22
-22

query I rowsort
SELECT - ( + col0 ) * - col1 AS col2 FROM tab0
----
1215
1827
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2802
SELECT DISTINCT - 63 * COUNT( * ) AS col1 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-2802
SELECT DISTINCT - 63 * COUNT ( * ) AS col1 FROM tab0
----
-189

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 + - + col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 / + col2 * + col1 BETWEEN NULL AND - col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - ( + col0 ) * 7 + - col0 FROM tab2 AS cor0
----
-368
-512
-600

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NOT 81 * 78 + col1 IS NULL )
----

query I rowsort
SELECT DISTINCT + + ( + + col0 ) FROM tab0 cor0
----
15
87
97

query I rowsort
SELECT DISTINCT col1 + + + 33 * - col0 AS col0 FROM tab0
----
-2850
-3200
-414

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 cor0 WHERE NOT + col1 IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2810
SELECT + COUNT( * ) + + + SUM( + col1 ) AS col2 FROM tab0 AS cor0
----
106

skipif mysql # not compatible
query I rowsort label-2810
SELECT + COUNT ( * ) + + + SUM ( + col1 ) AS col2 FROM tab0 AS cor0
----
106

query I rowsort
SELECT ALL + + col2 + + col2 FROM tab0 cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-2812
SELECT DISTINCT - + 87 * COUNT( - col1 ) FROM tab2 AS cor0 WHERE NULL < + 11 - - ( + + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2812
SELECT DISTINCT - + 87 * COUNT ( - col1 ) FROM tab2 AS cor0 WHERE NULL < + 11 - - ( + + col0 )
----
0

query I rowsort
SELECT DISTINCT col2 * col1 * col0 * + col1 * - col1 + + col2 AS col1 FROM tab1 cor0
----
-13434528
-626816
-642456656

query I rowsort
SELECT + 53 + + 28 FROM tab2 AS cor0
----
81
81
81

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 76 NOT BETWEEN NULL AND + col1 * 99
----

query I rowsort
SELECT DISTINCT 32 * col1 FROM tab2 AS cor0
----
1632
2144
2464

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 95 <> 34 * - col0 - + + 57 + - - 99 * + + col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - + col1 * - col1 AS col2 FROM tab2 WHERE NULL < - - col1 + + 34
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2819
SELECT DISTINCT COUNT( * ) DIV ( - MAX( ALL + - col2 ) ) * + 9 + - 1 + + 63 FROM tab0 AS cor0
----
62

skipif mysql # not compatible
query I rowsort label-2819
SELECT DISTINCT COUNT ( * ) / ( - MAX ( ALL + - col2 ) ) * + 9 + - 1 + + 63 FROM tab0 AS cor0
----
62

query I rowsort
SELECT DISTINCT - col2 * - col2 * + + col1 * - + 25 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT - 83 + - COUNT( * ) AS col1 FROM tab0 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-2821
SELECT - 83 + - COUNT ( * ) AS col1 FROM tab0 cor0
----
-86

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 97 * - 46 + + + col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col1, col1 FROM tab0 cor0
----
1
1
21
21
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-2824
SELECT ALL + COUNT( * ) / + MIN( + 24 ) + + COUNT( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2824
SELECT ALL + COUNT ( * ) / + MIN ( + 24 ) + + COUNT ( * ) FROM tab1 AS cor0 WHERE col2 IS NULL
----
NULL

query I rowsort
SELECT col1 AS col2 FROM tab0 cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2826
SELECT DISTINCT - ( + + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2826
SELECT DISTINCT - ( + + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT 68 * + 75 AS col0, 56 AS col2 FROM tab0 AS cor0
----
5100
56
5100
56
5100
56

query I rowsort
SELECT + - 51 * - col1 AS col1 FROM tab0 cor0
----
1071
4131
51

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT - SUM( DISTINCT + + 30 ) AS col0 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-2829
SELECT - SUM ( DISTINCT + + 30 ) AS col0 FROM tab2 AS cor0
----
-30

query II rowsort
SELECT ALL - - 37 AS col0, col0 * + col2 FROM tab1 AS cor0
----
37
4896
37
5015
37
6188

query I rowsort
SELECT ALL 10 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE + col2 <= NULL
----

query I rowsort
SELECT ALL - 2 * + + col1 AS col2 FROM tab2
----
-102
-134
-154

query I rowsort
SELECT DISTINCT + ( - col0 ) * - - col0 AS col2 FROM tab2
----
-2116
-4096
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT + + COUNT( * ) + + 12 FROM tab2 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2835
SELECT + + COUNT ( * ) + + 12 FROM tab2 AS cor0
----
15

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> ( + 69 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2837
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2837
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col2 * - col0 * - - 68 AS col1 FROM tab1 AS cor0
----
332928
341020
420784

onlyif mysql # aggregate syntax: 
query II rowsort label-2839
SELECT DISTINCT - + COUNT( * ), - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

skipif mysql # not compatible
query II rowsort label-2839
SELECT DISTINCT - + COUNT ( * ), - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-2840
SELECT ALL 34 + + + COUNT( * ) FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2840
SELECT ALL 34 + + + COUNT ( * ) FROM tab1 AS cor0
----
37

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * - - col0 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2843
SELECT COUNT( * ) - - COUNT( * ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-2843
SELECT COUNT ( * ) - - COUNT ( * ) FROM tab2 AS cor0
----
6

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col0 * col2 + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2845
SELECT * FROM tab0 WHERE - CAST( NULL AS SIGNED ) + + + 90 * + 33 * + - 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2845
SELECT * FROM tab0 WHERE - CAST ( NULL AS INTEGER ) + + + 90 * + 33 * + - 40 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2846
SELECT DISTINCT - ( + COUNT( * ) ) DIV + - 32 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2846
SELECT DISTINCT - ( + COUNT ( * ) ) / + - 32 AS col1 FROM tab2
----
0

query I rowsort
SELECT 90 * + + 22 AS col2 FROM tab1
----
1980
1980
1980

query I rowsort
SELECT ALL col2 + + - 99 FROM tab0
----
-52
-89
0

query I rowsort
SELECT col1 * - 71 * + 47 FROM tab0
----
-270297
-3337
-70077

query III rowsort
SELECT * FROM tab2 WHERE - + 0 = + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2851
SELECT + - COUNT( + 12 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-2851
SELECT + - COUNT ( + 12 ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL + 87 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
87
87
87

onlyif mysql # DIV for integer division: 
query I rowsort label-2853
SELECT + - ( - col0 ) DIV + - col1 FROM tab1 AS cor0
----
-1
-17
-3

skipif mysql # not compatible
query I rowsort label-2853
SELECT + - ( - col0 ) / + - col1 FROM tab1 AS cor0
----
-1
-17
-3

query I rowsort
SELECT ALL - col2 - + + col2 * col1 * + col2 + col2 AS col2 FROM tab1 AS cor0
----
-129024
-17405
-217328

query I rowsort
SELECT ALL col2 * + 25 / + col0 * + - 81 * - 57 - - 62 FROM tab1 WHERE 50 * - col2 + - col1 <> NULL
----

query I rowsort
SELECT DISTINCT 62 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2857
SELECT 9 * - + COUNT( * ) * + 86 AS col1 FROM tab1 WHERE NOT - col2 * - col2 / col0 * + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2857
SELECT 9 * - + COUNT ( * ) * + 86 AS col1 FROM tab1 WHERE NOT - col2 * - col2 / col0 * + col0 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT COUNT( * ) * + 92 AS col2 FROM tab1 cor0
----
276

skipif mysql # not compatible
query I rowsort label-2858
SELECT COUNT ( * ) * + 92 AS col2 FROM tab1 cor0
----
276

query II rowsort
SELECT + + col0 * col1 + col2 AS col2, col2 FROM tab1 AS cor0
----
4345
68
484
59
810
96

query I rowsort
SELECT col2 * + 53 * col0 + col0 AS col0 FROM tab2 AS cor0
----
135744
230625
56120

query II rowsort
SELECT ALL + col0 AS col2, - 87 * - - col0 FROM tab0 AS cor0
----
15
-1305
87
-7569
97
-8439

query I rowsort
SELECT ALL + - 1 AS col1 FROM tab0 cor0
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 + + col0 + + col2 / - ( + 81 ) IS NOT NULL
----

query II rowsort
SELECT DISTINCT - 64 AS col2, col1 FROM tab1 WHERE + col1 + col2 BETWEEN NULL AND - 53 - - + 75
----

query I rowsort
SELECT DISTINCT 4 * + col2 FROM tab2
----
160
232
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2866
SELECT DISTINCT - SUM( DISTINCT + ( + col1 ) ) FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-2866
SELECT DISTINCT - SUM ( DISTINCT + ( + col1 ) ) FROM tab1
----
-66

query II rowsort
SELECT + 84 AS col1, col0 FROM tab1
----
84
51
84
85
84
91

query I rowsort
SELECT ALL - 68 + col2 FROM tab2
----
-10
-28
-45

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2869
SELECT DISTINCT + - COUNT( * ) * + CAST( - 78 AS SIGNED ) FROM tab2 cor0
----
234

skipif mysql # not compatible
query I rowsort label-2869
SELECT DISTINCT + - COUNT ( * ) * + CAST ( - 78 AS INTEGER ) FROM tab2 cor0
----
234

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT - 9 + - - CAST( NULL AS SIGNED ) * + COUNT( * ) * + - COUNT( * ) col0 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2870
SELECT - 9 + - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + - COUNT ( * ) col0 FROM tab1
----
NULL

query II rowsort
SELECT col2 + + + 13 AS col2, col1 AS col0 FROM tab0
----
112
1
23
21
60
81

query III rowsort
SELECT * FROM tab1 WHERE + ( col0 ) * + - ( - 49 ) + - - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2873
SELECT 49 + - - COUNT( * ) FROM tab0
----
52

skipif mysql # not compatible
query I rowsort label-2873
SELECT 49 + - - COUNT ( * ) FROM tab0
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-2874
SELECT + ( + 81 ) + - - COUNT( * ) FROM tab1
----
84

skipif mysql # not compatible
query I rowsort label-2874
SELECT + ( + 81 ) + - - COUNT ( * ) FROM tab1
----
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT col1 * 43 <= - + 71 AND col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 * + col0 + + + col2 AS col0 FROM tab1
----
4992
5074
6256

query I rowsort
SELECT ALL - - ( col0 ) + - - col2 AS col0 FROM tab2 AS cor0
----
104
133
69

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND + 77
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT DISTINCT MIN( ALL - col2 ) / 15 + + + CAST( NULL AS SIGNED ) / + COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT MIN ( ALL - col2 ) / 15 + + + CAST ( NULL AS INTEGER ) / + COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2880
SELECT ALL - + 93 - - + col1 + + col1 * + CAST( NULL AS DECIMAL ) FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2880
SELECT ALL - + 93 - - + col1 + + col1 * + CAST ( NULL AS REAL ) FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2881
SELECT DISTINCT - col0 - + ( + 96 ) DIV - 5 AS col2 FROM tab0 AS cor0
----
-68
-78
4

skipif mysql # not compatible
query I rowsort label-2881
SELECT DISTINCT - col0 - + ( + 96 ) / - 5 AS col2 FROM tab0 AS cor0
----
-68
-78
4

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2883
SELECT DISTINCT - + col0 - - - CAST( - col1 AS SIGNED ) AS col2, 7 AS col2 FROM tab2 AS cor0
----
-8
7
13
7
5
7

skipif mysql # not compatible
query II rowsort label-2883
SELECT DISTINCT - + col0 - - - CAST ( - col1 AS INTEGER ) AS col2, 7 AS col2 FROM tab2 AS cor0
----
-8
7
13
7
5
7

query I rowsort
SELECT ALL - ( - col1 ) - col1 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab1 WHERE + 5 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2886
SELECT - 93 * + + 60 - - + 15 * CAST( NULL AS SIGNED ) + - ( - col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2886
SELECT - 93 * + + 60 - - + 15 * CAST ( NULL AS INTEGER ) + - ( - col2 ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 44 col0 FROM tab1
----
-44

query I rowsort
SELECT 61 - 81 FROM tab1
----
-20
-20
-20

query I rowsort
SELECT + + 66 FROM tab0 WHERE 73 * - - col2 * - col0 IS NULL
----

query II rowsort
SELECT col2 AS col1, - 70 AS col1 FROM tab1
----
59
-70
68
-70
96
-70

query II rowsort
SELECT DISTINCT - col0 * col0 * col2 AS col1, 25 FROM tab1
----
-249696
25
-426275
25
-563108
25

query I rowsort
SELECT DISTINCT - + 87 * col1 AS col2 FROM tab0 AS cor0
----
-1827
-7047
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-2893
SELECT COUNT( DISTINCT + + ( + ( - 82 ) ) ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2893
SELECT COUNT ( DISTINCT + + ( + ( - 82 ) ) ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT - ( + - 21 ) FROM tab2 AS cor0
----
21
21
21

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 / col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2896
SELECT SUM( ALL - - 27 ) AS col1 FROM tab1 cor0
----
81

skipif mysql # not compatible
query I rowsort label-2896
SELECT SUM ( ALL - - 27 ) AS col1 FROM tab1 cor0
----
81

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2897
SELECT DISTINCT col0 * + + col2 AS col2, col1 / 19 * - 33 + + col2 - - CAST( NULL AS SIGNED ) col0 FROM tab1
----
4896
NULL
5015
NULL
6188
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2897
SELECT DISTINCT col0 * + + col2 AS col2, col1 / 19 * - 33 + + col2 - - CAST ( NULL AS INTEGER ) col0 FROM tab1
----
4896
NULL
5015
NULL
6188
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-2898
SELECT + 43 * COUNT( col1 ) AS col1, + 29 FROM tab0 AS cor0 WHERE NOT 83 * - 41 NOT BETWEEN NULL AND - col0
----
0
29

skipif mysql # not compatible
query II rowsort label-2898
SELECT + 43 * COUNT ( col1 ) AS col1, + 29 FROM tab0 AS cor0 WHERE NOT 83 * - 41 NOT BETWEEN NULL AND - col0
----
0
29

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2899
SELECT DISTINCT - ( - - 68 ) DIV + COUNT( * ) AS col1 FROM tab0 cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2899
SELECT DISTINCT - ( - - 68 ) / + COUNT ( * ) AS col1 FROM tab0 cor0
----
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * 96 + + col1 col2 FROM tab1 AS cor0
----
773
782
815

query I rowsort
SELECT col2 * - + ( - 75 ) FROM tab0 AS cor0
----
3525
7425
750

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2902
SELECT - col2 DIV - + CAST( 19 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1
2
3

skipif mysql # not compatible
query I rowsort label-2902
SELECT - col2 / - + CAST ( 19 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2903
SELECT ALL SUM( + + 95 ) col1 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2903
SELECT ALL SUM ( + + 95 ) col1 FROM tab0 AS cor0
----
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 AS col0, col1 * + col0 col1 FROM tab2
----
46
2346
64
4928
75
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2905
SELECT + SUM( ALL + col0 ) FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-2905
SELECT + SUM ( ALL + col0 ) FROM tab0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-2906
SELECT ALL - COUNT( * ) + COUNT( * ) AS col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2906
SELECT ALL - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * - + 22 <> NULL
----

query I rowsort
SELECT - col2 + + - 27 AS col2 FROM tab0 AS cor0
----
-126
-37
-74

query I rowsort
SELECT - col2 + + - col1 * - col2 * + + 57 * col1 FROM tab1 AS cor0
----
1072416
84016
8562016

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2910
SELECT ALL - - col0 + + 83 + - CAST( + + col2 AS SIGNED ) FROM tab0 AS cor0
----
160
51
81

skipif mysql # not compatible
query I rowsort label-2910
SELECT ALL - - col0 + + 83 + - CAST ( + + col2 AS INTEGER ) FROM tab0 AS cor0
----
160
51
81

query I rowsort
SELECT - - col1 * + 83 FROM tab0 AS cor0
----
1743
6723
83

onlyif mysql # aggregate syntax: 
query I rowsort label-2912
SELECT 18 * + + COUNT( * ) * - + 34 AS col0 FROM tab1
----
-1836

skipif mysql # not compatible
query I rowsort label-2912
SELECT 18 * + + COUNT ( * ) * - + 34 AS col0 FROM tab1
----
-1836

onlyif mysql # aggregate syntax: 
query I rowsort label-2913
SELECT + - ( - - COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-2913
SELECT + - ( - - COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT col2 - + - col0 AS col1 FROM tab1
----
144
147
159

query I rowsort
SELECT ALL - col0 + - + 23 AS col1 FROM tab1 AS cor0
----
-108
-114
-74

query I rowsort
SELECT - col1 - 74 FROM tab1 AS cor0
----
-121
-79
-88

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 - - + 15 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + - + 59 AS col1 FROM tab0 AS cor0
----
-146
-156
-74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2919
SELECT DISTINCT - - COUNT( * ) - + - 91 DIV + COUNT( * ) FROM tab2 AS cor0
----
33

skipif mysql # not compatible
query I rowsort label-2919
SELECT DISTINCT - - COUNT ( * ) - + - 91 / + COUNT ( * ) FROM tab2 AS cor0
----
33

query I rowsort
SELECT - 51 + col2 AS col2 FROM tab2
----
-11
-28
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 7 col2 FROM tab0, tab2 AS cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

query I rowsort
SELECT DISTINCT + ( + ( - + 31 ) ) AS col0 FROM tab2
----
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-2923
SELECT - MIN( DISTINCT - 14 ) AS col2 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-2923
SELECT - MIN ( DISTINCT - 14 ) AS col2 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-2924
SELECT - MIN( + col2 ) * - 47 AS col0 FROM tab1
----
2773

skipif mysql # not compatible
query I rowsort label-2924
SELECT - MIN ( + col2 ) * - 47 AS col0 FROM tab1
----
2773

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 61 IS NOT NULL
----

query I rowsort
SELECT - col0 * 78 * - col0 AS col1 FROM tab0
----
17550
590382
733902

query I rowsort
SELECT ALL + col2 * - - col0 AS col2 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2928
SELECT 66 * - - col0 / 63 * - - CAST( NULL AS SIGNED ) * - - 28 + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2928
SELECT 66 * - - col0 / 63 * - - CAST ( NULL AS INTEGER ) * - - 28 + + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2929
SELECT DISTINCT + 53 DIV - col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-2929
SELECT DISTINCT + 53 / - col0 FROM tab2 AS cor0
----
-1
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2930
SELECT DISTINCT + 84 DIV - col1 FROM tab2 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT + 84 / - col1 FROM tab2 cor0
----
-1

query I rowsort
SELECT + col0 * + col1 + - + ( - 75 ) + col2 * + - col1 - + ( - - col2 ) * 14 AS col0 FROM tab2 cor0
----
1363
402
926

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2933
SELECT DISTINCT - MAX( DISTINCT - + col0 ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-2933
SELECT DISTINCT - MAX ( DISTINCT - + col0 ) FROM tab0 AS cor0
----
15

onlyif mysql # aggregate syntax: 
query II rowsort label-2934
SELECT DISTINCT - + 37, 22 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-37
66

skipif mysql # not compatible
query II rowsort label-2934
SELECT DISTINCT - + 37, 22 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-37
66

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2935
SELECT ALL * FROM tab1 WHERE - CAST( NULL AS SIGNED ) < + col2 * + - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-2935
SELECT ALL * FROM tab1 WHERE - CAST ( NULL AS INTEGER ) < + col2 * + - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2936
SELECT CAST( NULL AS SIGNED ) * 72 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2936
SELECT CAST ( NULL AS INTEGER ) * 72 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 24 * - - col0 AS col2 FROM tab0
----
2088
2328
360

onlyif mysql # DIV for integer division: 
query I rowsort label-2938
SELECT DISTINCT + col1 DIV 61 + - - col1 FROM tab2
----
51
68
78

skipif mysql # not compatible
query I rowsort label-2938
SELECT DISTINCT + col1 / 61 + - - col1 FROM tab2
----
51
68
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2939
SELECT - 16 FROM tab1 WHERE NULL BETWEEN - 49 AND CAST( NULL AS SIGNED ) + + col0
----

skipif mysql # not compatible
query I rowsort label-2939
SELECT - 16 FROM tab1 WHERE NULL BETWEEN - 49 AND CAST ( NULL AS INTEGER ) + + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2940
SELECT MAX( ALL + 76 ) AS col2 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-2940
SELECT MAX ( ALL + 76 ) AS col2 FROM tab0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2941
SELECT ( - - SUM( DISTINCT col1 ) ) AS col0 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2941
SELECT ( - - SUM ( DISTINCT col1 ) ) AS col0 FROM tab2
----
195

query I rowsort
SELECT ALL - 87 * + ( + col1 ) * + col1 + + col1 + 81 FROM tab2 AS cor0
----
-226155
-390395
-515665

onlyif mysql # DIV for integer division: 
query II rowsort label-2943
SELECT DISTINCT - ( - 51 ) AS col0, col2 DIV - col0 AS col2 FROM tab2 AS cor0
----
51
0

skipif mysql # not compatible
query II rowsort label-2943
SELECT DISTINCT - ( - 51 ) AS col0, col2 / - col0 AS col2 FROM tab2 AS cor0
----
51
0

onlyif mysql # aggregate syntax: 
query II rowsort label-2944
SELECT + - 84, + COUNT( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-84
9

skipif mysql # not compatible
query II rowsort label-2944
SELECT + - 84, + COUNT ( * ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-84
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2946
SELECT ALL col0 - 14 - CAST( NULL AS SIGNED ) + - - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2946
SELECT ALL col0 - 14 - CAST ( NULL AS INTEGER ) + - - col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 98 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT 29 * - col1 + - + col1 * + - col2 * + col2 AS col0 FROM tab2 AS cor0
----
120967
223445
25500

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN 33 AND - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2950
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST( + ( + + col0 ) AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2950
SELECT ALL * FROM tab2 AS cor0 WHERE + CAST ( + ( + + col0 ) AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2951
SELECT - MIN( + - col0 ) FROM tab0 cor0
----
97

skipif mysql # not compatible
query I rowsort label-2951
SELECT - MIN ( + - col0 ) FROM tab0 cor0
----
97

onlyif mysql # aggregate syntax: 
query I rowsort label-2952
SELECT MIN( ( ( 87 ) ) ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-2952
SELECT MIN ( ( ( 87 ) ) ) AS col0 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT + ( COUNT( * ) ) * + 62 FROM tab1
----
186

skipif mysql # not compatible
query I rowsort label-2953
SELECT + ( COUNT ( * ) ) * + 62 FROM tab1
----
186

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab1 WHERE 48 BETWEEN col2 AND + 4
----

query I rowsort
SELECT - col0 * + 16 * - - col2 AS col1 FROM tab2
----
-16928
-40960
-69600

query I rowsort
SELECT + col1 - + col2 * + col0 FROM tab2 WHERE NOT + + col2 BETWEEN NULL AND 14
----
-1007
-2483
-4283

query I rowsort
SELECT DISTINCT - - col0 * + col2 * col0 AS col2 FROM tab0 AS cor0
----
10575
75690
931491

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2958
SELECT DISTINCT CAST( 22 AS SIGNED ) FROM tab0 AS cor0
----
22

skipif mysql # not compatible
query I rowsort label-2958
SELECT DISTINCT CAST ( 22 AS INTEGER ) FROM tab0 AS cor0
----
22

onlyif mysql # DIV for integer division: 
query II rowsort label-2959
SELECT + 88 AS col1, - col2 * + - col2 + - + ( - - 29 ) DIV + col0 col1 FROM tab1 AS cor0
----
88
3481
88
4624
88
9216

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2959
SELECT + 88 AS col1, - col2 * + - col2 + - + ( - - 29 ) / + col0 col1 FROM tab1 AS cor0
----
88
3481
88
4624
88
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-2960
SELECT - 0 * SUM( + col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2960
SELECT - 0 * SUM ( + col0 ) FROM tab2 cor0
----
0

query I rowsort
SELECT DISTINCT - + ( + - col2 ) FROM tab0 AS cor0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2962
SELECT DISTINCT + COUNT( ALL - - 19 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2962
SELECT DISTINCT + COUNT ( ALL - - 19 ) AS col2 FROM tab0 AS cor0
----
3

query I rowsort
SELECT + - col0 * - ( + col0 ) + + 15 AS col2 FROM tab0 AS cor0
----
240
7584
9424

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2964
SELECT MIN( - - CAST( 57 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
57

skipif mysql # not compatible
query I rowsort label-2964
SELECT MIN ( - - CAST ( 57 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
57

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2965
SELECT DISTINCT ( - CAST( NULL AS SIGNED ) ) / - COUNT( * ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2965
SELECT DISTINCT ( - CAST ( NULL AS INTEGER ) ) / - COUNT ( * ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT COUNT( * ) DIV - - 76 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2966
SELECT COUNT ( * ) / - - 76 AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2967
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE - 71 IN ( + 0 * + col2 - + col2, col2 * - ( - - col1 ) * - col0 / + 8 + + 26 + 63 - col0 * 39, 5 )
----
0

skipif mysql # not compatible
query I rowsort label-2967
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE - 71 IN ( + 0 * + col2 - + col2, col2 * - ( - - col1 ) * - col0 / + 8 + + 26 + 63 - col0 * 39, 5 )
----
0

query I rowsort
SELECT DISTINCT col1 + + col2 + col1 * 4 FROM tab0 AS cor0
----
104
115
452

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT - + CAST( + ( + COUNT( * ) ) AS SIGNED ) * - - SUM( ALL 3 ) + - COUNT( * ) * - ( - + COUNT( ALL - 58 ) ) AS col0 FROM tab0 AS cor0
----
-36

skipif mysql # not compatible
query I rowsort label-2969
SELECT - + CAST ( + ( + COUNT ( * ) ) AS INTEGER ) * - - SUM ( ALL 3 ) + - COUNT ( * ) * - ( - + COUNT ( ALL - 58 ) ) AS col0 FROM tab0 AS cor0
----
-36

query I rowsort
SELECT ALL + 52 + + col1 AS col0 FROM tab2
----
103
119
129

onlyif mysql # DIV for integer division: 
query I rowsort label-2971
SELECT ALL + 31 DIV - col0 * - 79 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2971
SELECT ALL + 31 / - col0 * - 79 AS col0 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2972
SELECT DISTINCT - COUNT( DISTINCT col1 ) AS col0 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2972
SELECT DISTINCT - COUNT ( DISTINCT col1 ) AS col0 FROM tab0
----
-3

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-2973
SELECT DISTINCT + 92 + - col1 + - + 13, - CAST( NULL AS DECIMAL ) AS col0 FROM tab2
----
12
NULL
2
NULL
28
NULL

skipif mysql # not compatible
query II rowsort label-2973
SELECT DISTINCT + 92 + - col1 + - + 13, - CAST ( NULL AS REAL ) AS col0 FROM tab2
----
12
NULL
2
NULL
28
NULL

query I rowsort
SELECT DISTINCT + col0 + col0 - 54 * - col0 FROM tab2
----
2576
3584
4200

query III rowsort
SELECT * FROM tab2 WHERE - ( + col2 ) IN ( - 81 * + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2976
SELECT DISTINCT + - COUNT( DISTINCT col1 ) - + - 66 AS col0 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2976
SELECT DISTINCT + - COUNT ( DISTINCT col1 ) - + - 66 AS col0 FROM tab0 AS cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-2977
SELECT - + SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2977
SELECT - + SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2978
SELECT ALL 95 * + COUNT( - 39 ) AS col0 FROM tab0 AS cor0
----
285

skipif mysql # not compatible
query I rowsort label-2978
SELECT ALL 95 * + COUNT ( - 39 ) AS col0 FROM tab0 AS cor0
----
285

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + + 58 col2 FROM tab1
----
11
44
53

query I rowsort
SELECT DISTINCT - col2 * col0 AS col0 FROM tab1 WHERE NOT NULL NOT BETWEEN ( col2 + + 25 * + col1 ) AND ( + col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2981
SELECT col0 DIV 68 FROM tab2
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2981
SELECT col0 / 68 FROM tab2
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 NOT IN ( + 57 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - col2 * ( ( - col0 ) ) + + col0 AS col0 FROM tab2
----
1104
2624
4425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT ALL 79 / + 47 - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT ALL 79 / + 47 - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 71 * - col2 FROM tab0
----
-3337
-7029
-710

query I rowsort
SELECT ALL + 44 + + col2 AS col2 FROM tab0
----
143
54
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2987
SELECT - ( MAX( DISTINCT col2 ) ) AS col2 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2987
SELECT - ( MAX ( DISTINCT col2 ) ) AS col2 FROM tab0
----
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2988
SELECT 56 col2 FROM tab2 WHERE ( ( + col1 ) + CAST( NULL AS SIGNED ) / 71 ) < ( NULL )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2988
SELECT 56 col2 FROM tab2 WHERE ( ( + col1 ) + CAST ( NULL AS INTEGER ) / 71 ) < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2989
SELECT DISTINCT + COUNT( * ) * - 40 FROM tab0 WHERE NOT ( col1 + ( col2 + col2 ) * - col0 ) >= - col1 + - col1 * 24
----
-80

skipif mysql # not compatible
query I rowsort label-2989
SELECT DISTINCT + COUNT ( * ) * - 40 FROM tab0 WHERE NOT ( col1 + ( col2 + col2 ) * - col0 ) >= - col1 + - col1 * 24
----
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-2990
SELECT ALL + MAX( - 86 ) FROM tab1 WHERE NOT 84 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2990
SELECT ALL + MAX ( - 86 ) FROM tab1 WHERE NOT 84 IS NOT NULL
----
NULL

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( - col2 ) IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2992
SELECT DISTINCT ( + col1 ) AS col2 FROM tab2 WHERE NOT ( - 11 / CAST( NULL AS SIGNED ) + col0 ) IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2992
SELECT DISTINCT ( + col1 ) AS col2 FROM tab2 WHERE NOT ( - 11 / CAST ( NULL AS INTEGER ) + col0 ) IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2993
SELECT * FROM tab0 WHERE NOT ( - ( + col1 ) + + col2 * CAST( + col0 AS SIGNED ) ) <> - col0 * col0
----

skipif mysql # not compatible
query III rowsort label-2993
SELECT * FROM tab0 WHERE NOT ( - ( + col1 ) + + col2 * CAST ( + col0 AS INTEGER ) ) <> - col0 * col0
----

query I rowsort
SELECT col0 / 93 FROM tab1 WHERE NULL > col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2995
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND col1 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-2995
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN + col2 AND col1 + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 7 FROM tab1 WHERE NULL IS NULL
----
7
7
7

query III rowsort
SELECT * FROM tab0 WHERE NOT 96 BETWEEN col1 AND + 73
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2998
SELECT - COUNT( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-2998
SELECT - COUNT ( * ) FROM tab1 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2999
SELECT + ( + SUM( col1 ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-2999
SELECT + ( + SUM ( col1 ) ) FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + col2 col1 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( + 30 ) = ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3002
SELECT - 93 * COUNT( * ) col1 FROM tab2 AS cor0 WHERE NOT ( col0 + 3 ) < - col0 * 10
----
-279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3002
SELECT - 93 * COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NOT ( col0 + 3 ) < - col0 * 10
----
-279

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 86 >= col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col1 FROM tab0 AS cor0 WHERE 90 + col1 IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT AVG ( 16 ) AS col1 FROM tab0 AS cor0 WHERE NOT ( - ( + col0 ) * - col1 + col1 ) NOT BETWEEN col1 AND ( NULL )
----
NULL

query I rowsort
SELECT ALL + 68 * col0 FROM tab2
----
3128
4352
5100

onlyif mysql # aggregate syntax: 
query I rowsort label-3007
SELECT MAX( - 67 ) col2 FROM tab0
----
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3007
SELECT MAX ( - 67 ) col2 FROM tab0
----
-67

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 WHERE + 51 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query I rowsort label-3009
SELECT ALL - 99 * MAX( col1 * - col1 - + col2 * col0 ) AS col1 FROM tab1 AS cor0
----
498960

skipif mysql # not compatible
query I rowsort label-3009
SELECT ALL - 99 * MAX ( col1 * - col1 - + col2 * col0 ) AS col1 FROM tab1 AS cor0
----
498960

query I rowsort
SELECT - + col2 + 54 AS col2 FROM tab0 AS cor0
----
-45
44
7

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL <> ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3012
SELECT ALL + col2 + - CAST( NULL AS SIGNED ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3012
SELECT ALL + col2 + - CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3013
SELECT COUNT( * ) + 21 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + col0 )
----
21

skipif mysql # not compatible
query I rowsort label-3013
SELECT COUNT ( * ) + 21 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND ( + col0 )
----
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3014
SELECT ALL - col0 * col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - CAST( NULL AS SIGNED ) / - col0 )
----

skipif mysql # not compatible
query I rowsort label-3014
SELECT ALL - col0 * col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> ( - CAST ( NULL AS INTEGER ) / - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3015
SELECT + SUM( CAST( NULL AS SIGNED ) ) + - COUNT( * ) / - 8 col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3015
SELECT + SUM ( CAST ( NULL AS INTEGER ) ) + - COUNT ( * ) / - 8 col0 FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----
NULL

query I rowsort
SELECT DISTINCT - col2 * - col2 AS col0 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT DISTINCT 18 * 94 FROM tab1
----
1692

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3018
SELECT col2 AS col0 FROM tab0 WHERE NOT - col2 * col1 + - CAST( NULL AS SIGNED ) < col0 OR ( - col1 ) <> ( + ( ( col1 ) ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3018
SELECT col2 AS col0 FROM tab0 WHERE NOT - col2 * col1 + - CAST ( NULL AS INTEGER ) < col0 OR ( - col1 ) <> ( + ( ( col1 ) ) )
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3019
SELECT ALL 84 + + col1 AS col2 FROM tab2 WHERE - 96 - + 44 = + col1 + - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3019
SELECT ALL 84 + + col1 AS col2 FROM tab2 WHERE - 96 - + 44 = + col1 + - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 38 * + - col1 * + 37 AS col2 FROM tab2
----
-108262
-71706
-94202

query I rowsort
SELECT ALL - 81 * + 51 AS col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - 91 + - 28 FROM tab0
----
-119
-119
-119

query I rowsort
SELECT col0 * col0 FROM tab1 WHERE col2 IS NOT NULL
----
2601
7225
8281

query I rowsort
SELECT + col2 * - col2 - - 92 FROM tab0 cor0
----
-2117
-8
-9709

onlyif mysql # aggregate syntax: 
query I rowsort label-3025
SELECT DISTINCT - ( + 3 ) - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3025
SELECT DISTINCT - ( + 3 ) - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 95 col2 FROM tab1 AS cor0 WHERE ( col1 + - col1 ) <> - col0
----
95
95
95

query I rowsort
SELECT - col1 + + col2 + col1 * - col0 AS col1 FROM tab2
----
-2374
-4965
-5034

query I rowsort
SELECT ALL col0 - + ( 98 ) + 86 AS col2 FROM tab2
----
34
52
63

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 4 + + - 52 col0 FROM tab2
----
-56
-56
-56

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col0 / - col0 NOT BETWEEN col0 AND col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( 99 * + col1 ) <= 51
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3033
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + col0 * col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3033
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + col0 * col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col1 * 63 AS col1 FROM tab2 AS cor0
----
3213
4221
4851

query II rowsort
SELECT ALL - - col2 AS col0, - col1 AS col1 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3036
SELECT DISTINCT - + col0, - ( + + col2 ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-3036
SELECT DISTINCT - + col0, - ( + + col2 ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
-51
NULL
-85
NULL
-91
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <> ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( col0 ) - - col2 AS col1 FROM tab0 AS cor0 WHERE 17 < - 93
----

query II rowsort
SELECT col0, col2 + - col1 AS col2 FROM tab1 cor0
----
51
82
85
54
91
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3040
SELECT - MAX( 20 ) FROM tab1
----
-20

skipif mysql # not compatible
query I rowsort label-3040
SELECT - MAX ( 20 ) FROM tab1
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT COUNT( + ( + - col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3041
SELECT COUNT ( + ( + - col2 ) ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3042
SELECT * FROM tab0 WHERE NOT ( + col2 + + CAST( NULL AS DECIMAL ) ) NOT IN ( + 62 )
----

skipif mysql # not compatible
query III rowsort label-3042
SELECT * FROM tab0 WHERE NOT ( + col2 + + CAST ( NULL AS REAL ) ) NOT IN ( + 62 )
----

query I rowsort
SELECT DISTINCT + - col0 AS col2 FROM tab1 WHERE NOT - + col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 92 * col1 col2, col1 AS col2 FROM tab2
----
4692
51
6164
67
7084
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + ( 3 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * + - col0 * - + col2 col2 FROM tab0
----
66975
82650
912285

query I rowsort
SELECT + - 90 + - + 66 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - + col2 ) IS NULL
----

query II rowsort
SELECT - col2 + + col0, col1 + - + col2 AS col1 FROM tab2 AS cor0
----
17
9
23
28
24
37

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT - ( - col1 ) - - 8 < ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT COUNT( * ) + - COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3051
SELECT COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3052
SELECT ALL + ( 21 ) + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

skipif mysql # not compatible
query I rowsort label-3052
SELECT ALL + ( 21 ) + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
12

query I rowsort
SELECT ALL ( - + col0 ) + + 93 AS col2 FROM tab0 cor0
----
-4
6
78

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 * - col2 + + 26 BETWEEN ( NULL ) AND + 77
----

query I rowsort
SELECT ( - + 98 ) FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3056
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + CAST( - 86 AS SIGNED ) * + - col1 NOT IN ( col1 * ( - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-3056
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 * + CAST ( - 86 AS INTEGER ) * + - col1 NOT IN ( col1 * ( - col1 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3057
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + + 52 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3057
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + + 52 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3058
SELECT ALL + COUNT( * ) * + 3 AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3058
SELECT ALL + COUNT ( * ) * + 3 AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 / - col1 IS NOT NULL AND NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3060
SELECT + col0 * + 98 + + - CAST( + 88 AS SIGNED ) * + + col2 + - col0 / + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3060
SELECT + col0 * + 98 + + - CAST ( + 88 AS INTEGER ) * + + col2 + - col0 / + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3061
SELECT ALL + col1 / + - CAST( NULL AS DECIMAL ) - + ( + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3061
SELECT ALL + col1 / + - CAST ( NULL AS REAL ) - + ( + col0 ) * col1 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE col0 IS NOT NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-3063
SELECT + SUM( - - 28 ) + 27 * 91 FROM tab1 AS cor0
----
2541

skipif mysql # not compatible
query I rowsort label-3063
SELECT + SUM ( - - 28 ) + 27 * 91 FROM tab1 AS cor0
----
2541

query II rowsort
SELECT ALL + col0, 6 * + 53 AS col2 FROM tab0
----
15
318
87
318
97
318

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col2 BETWEEN - col2 AND col2 + - - 44 + - 70 * - col0
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3066
SELECT ALL 76 AS col2, - COUNT( * ) AS col2 FROM tab0
----
76
-3

skipif mysql # not compatible
query II rowsort label-3066
SELECT ALL 76 AS col2, - COUNT ( * ) AS col2 FROM tab0
----
76
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3067
SELECT COUNT( ALL + ( - - col0 ) ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3067
SELECT COUNT ( ALL + ( - - col0 ) ) FROM tab0
----
3

query I rowsort
SELECT + 96 + - - ( - 84 ) AS col0 FROM tab0 AS cor0 WHERE NULL IN ( col0 * - 98 )
----

query I rowsort
SELECT DISTINCT + 9 - 55 AS col1 FROM tab1 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3070
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 * 11 + + col1 AND + + CAST( NULL AS SIGNED ) + - col0
----

skipif mysql # not compatible
query III rowsort label-3070
SELECT ALL * FROM tab2 AS cor0 WHERE NULL BETWEEN - col2 * 11 + + col1 AND + + CAST ( NULL AS INTEGER ) + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3071
SELECT + COUNT( * ) AS col2 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3071
SELECT + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE - col0 IS NOT NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 78 * - col2 / col1 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 63 col2 FROM tab2 WHERE NOT - 9 IS NULL
----
-63
-63
-63

query I rowsort
SELECT - 86 * + col1 FROM tab1
----
-1204
-4042
-430

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3075
SELECT col2 * + - 3 + CAST( NULL AS DECIMAL ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3075
SELECT col2 * + - 3 + CAST ( NULL AS REAL ) * - col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3076
SELECT + 81 DIV col2 AS col0 FROM tab0 AS cor0
----
0
1
8

skipif mysql # not compatible
query I rowsort label-3076
SELECT + 81 / col2 AS col0 FROM tab0 AS cor0
----
0
1
8

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( ( + col2 ) IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3078
SELECT DISTINCT - - 65 DIV - col2 FROM tab0 AS cor0
----
-1
-6
0

skipif mysql # not compatible
query I rowsort label-3078
SELECT DISTINCT - - 65 / - col2 FROM tab0 AS cor0
----
-1
-6
0

query I rowsort
SELECT 63 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col2 + - - 89 * + col2 IS NULL
----
2961
6237
630

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col1 IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3081
SELECT ALL + - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= + col2
----
0

skipif mysql # not compatible
query I rowsort label-3081
SELECT ALL + - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) >= + col2
----
0

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3083
SELECT DISTINCT - CAST( + 35 AS SIGNED ) FROM tab2
----
-35

skipif mysql # not compatible
query I rowsort label-3083
SELECT DISTINCT - CAST ( + 35 AS INTEGER ) FROM tab2
----
-35

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, 21 AS col0 FROM tab0
----
10
21
47
21
99
21

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 43 col1 FROM tab1
----
-43
-43
-43

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0, - col2 * col1 - - - col0 col0 FROM tab1
----
-51
-1395
-85
-380
-91
-3287

query I rowsort
SELECT ALL col2 * - col0 * + col1 FROM tab2
----
-197120
-291450
-53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3088
SELECT DISTINCT + - ( - col1 ) * + col1 * - 65 + + - col2 / CAST( NULL AS SIGNED ) + 73 col1 FROM tab1 WHERE + - col0 IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3088
SELECT DISTINCT + - ( - col1 ) * + col1 * - 65 + + - col2 / CAST ( NULL AS INTEGER ) + 73 col1 FROM tab1 WHERE + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col0 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> ( - col0 * + col2 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col1 NOT BETWEEN col0 * + + col1 AND - col2 + - - 14
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3092
SELECT DISTINCT - COUNT( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3092
SELECT DISTINCT - COUNT ( + col0 ) AS col0 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT ALL 62 * - - 45 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 ) WHERE NOT 2 IS NOT NULL
----

query II rowsort
SELECT 50 + - + col1, col0 AS col0 FROM tab1
----
3
91
36
51
45
85

query I rowsort
SELECT DISTINCT + 21 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
21

query I rowsort
SELECT DISTINCT + col0 + + col2 AS col1 FROM tab1 cor0
----
144
147
159

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3097
SELECT CAST( + col2 AS SIGNED ) + col0 + + col2 AS col0 FROM tab0 cor0
----
107
109
295

skipif mysql # not compatible
query I rowsort label-3097
SELECT CAST ( + col2 AS INTEGER ) + col0 + + col2 AS col0 FROM tab0 cor0
----
107
109
295

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col1 BETWEEN - col1 AND NULL
----

query I rowsort
SELECT - AVG ( - col2 ) FROM tab1 AS cor0 WHERE - 1 IS NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 - + + col0 col0 FROM tab2 AS cor0
----
-128
-150
-92

query II rowsort
SELECT ALL col0 - col1, + col0 * + 96 + - + col0 AS col2 FROM tab2 AS cor0
----
-13
6080
-5
4370
8
7125

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 27 ) IN ( col2 + - col1 * - + 35 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3103
SELECT * FROM tab1 AS cor0 WHERE CAST( col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3103
SELECT * FROM tab1 AS cor0 WHERE CAST ( col2 AS REAL ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3104
SELECT 27 * - COUNT( * ) AS col2 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-3104
SELECT 27 * - COUNT ( * ) AS col2 FROM tab0
----
-81

query I rowsort
SELECT 18 / - col0 AS col1 FROM tab0 WHERE col2 + + + col0 < ( NULL )
----

query I rowsort
SELECT + 57 - + col0 + - 20 * + col2 FROM tab1
----
-1208
-1394
-1914

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3107
SELECT col2 - - + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3107
SELECT col2 - - + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 - + 61 FROM tab1
----
-2
35
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT DISTINCT COUNT( * ) * + + COUNT( * ) * + AVG ( DISTINCT col2 ) * - COUNT( + 39 ) AS col1, COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE + 64 IS NULL
----
NULL
0

skipif mysql # not compatible
query II rowsort label-3109
SELECT DISTINCT COUNT ( * ) * + + COUNT ( * ) * + AVG ( DISTINCT col2 ) * - COUNT ( + 39 ) AS col1, COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE + 64 IS NULL
----
NULL
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT + CAST( - col1 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3110
SELECT + CAST ( - col1 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3111
SELECT DISTINCT COUNT( + col1 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3111
SELECT DISTINCT COUNT ( + col1 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3112
SELECT DISTINCT + MIN( DISTINCT + + col2 ) AS col0 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-3112
SELECT DISTINCT + MIN ( DISTINCT + + col2 ) AS col0 FROM tab1
----
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3113
SELECT + 51 - + - COUNT( * ) DIV - + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51

skipif mysql # not compatible
query I rowsort label-3113
SELECT + 51 - + - COUNT ( * ) / - + 28 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
51

query I rowsort
SELECT col1 * + col2 * + + col1 AS col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ALL - 8 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3116
SELECT 62 / + + COUNT( * ) + - - CAST( NULL AS SIGNED ) FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3116
SELECT 62 / + + COUNT ( * ) + - - CAST ( NULL AS INTEGER ) FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3117
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST( col2 AS SIGNED ) + + col2 - - CAST( + 12 AS SIGNED ) - + + col2 / + 12 / ( - col1 ) * 73 * + col1 + - CAST( NULL AS SIGNED ) + - col1 <> NULL
----

skipif mysql # not compatible
query III rowsort label-3117
SELECT ALL * FROM tab0 AS cor0 WHERE + CAST ( col2 AS INTEGER ) + + col2 - - CAST ( + 12 AS INTEGER ) - + + col2 / + 12 / ( - col1 ) * 73 * + col1 + - CAST ( NULL AS INTEGER ) + - col1 <> NULL
----

query II rowsort
SELECT DISTINCT col0 AS col1, col0 + - + col1 - - 68 AS col0 FROM tab0 AS cor0
----
15
2
87
134
97
164

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - - 99 ) + col0 > - 79
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3120
SELECT DISTINCT SUM( + - col2 ) AS col0 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-3120
SELECT DISTINCT SUM ( + - col2 ) AS col0 FROM tab2
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT DISTINCT - 80 + - ( SUM( ALL - 5 ) ) + + COUNT( * ) AS col0 FROM tab1
----
-62

skipif mysql # not compatible
query I rowsort label-3121
SELECT DISTINCT - 80 + - ( SUM ( ALL - 5 ) ) + + COUNT ( * ) AS col0 FROM tab1
----
-62

query I rowsort
SELECT - + col0 FROM tab2 WHERE NOT ( ( NULL <> NULL ) )
----

query II rowsort
SELECT DISTINCT - col0 * - 24 AS col0, - col1 AS col1 FROM tab0
----
2088
-21
2328
-1
360
-81

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT IN ( + + col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - - col0, + col1 * + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3126
SELECT DISTINCT COUNT( * ) + 62 + 28 FROM tab2 AS cor0 WHERE NOT ( ( - - col1 ) ) BETWEEN + col0 AND NULL
----
91

skipif mysql # not compatible
query I rowsort label-3126
SELECT DISTINCT COUNT ( * ) + 62 + 28 FROM tab2 AS cor0 WHERE NOT ( ( - - col1 ) ) BETWEEN + col0 AND NULL
----
91

query II rowsort
SELECT col2 AS col2, + 45 FROM tab2
----
23
45
40
45
58
45

query I rowsort
SELECT ALL - col2 + + - 26 AS col2 FROM tab2
----
-49
-66
-84

query I rowsort
SELECT + 38 * + col1 * + - ( + - 63 ) - + col2 AS col2 FROM tab0 AS cor0
----
193867
2295
50264

onlyif mysql # DIV for integer division: 
query II rowsort label-3130
SELECT ALL + col0 - - - col2 - - + 49 DIV col1 * col0 + - 71 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
37
-51
43
-91
720
-85

skipif mysql # not compatible
query II rowsort label-3130
SELECT ALL + col0 - - - col2 - - + 49 / col1 * col0 + - 71 AS col0, - col0 AS col2 FROM tab1 AS cor0
----
37
-51
43
-91
720
-85

query I rowsort
SELECT 6 - - 3 FROM tab1 AS cor0
----
9
9
9

query I rowsort
SELECT - col1 * - - col0 + 96 + - col0 + ( + - col1 ) * col0 + - col1 * + col1 + + col0 AS col0 FROM tab0 AS cor0
----
-3999
-8895
-99

query I rowsort
SELECT DISTINCT - - 7 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3134
SELECT - 49 + - col2 DIV + - col2 - 46 AS col1 FROM tab0 AS cor0
----
-94
-94
-94

skipif mysql # not compatible
query I rowsort label-3134
SELECT - 49 + - col2 / + - col2 - 46 AS col1 FROM tab0 AS cor0
----
-94
-94
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3135
SELECT MIN( DISTINCT - col1 ) * + + 45 + + ( + COUNT( * ) ) FROM tab1 cor0
----
-2112

skipif mysql # not compatible
query I rowsort label-3135
SELECT MIN ( DISTINCT - col1 ) * + + 45 + + ( + COUNT ( * ) ) FROM tab1 cor0
----
-2112

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT - COUNT( * ) + 91 FROM tab1 AS cor0
----
88

skipif mysql # not compatible
query I rowsort label-3136
SELECT - COUNT ( * ) + 91 FROM tab1 AS cor0
----
88

query I rowsort
SELECT 21 + - col0 * ( col2 ) AS col2 FROM tab1 AS cor0
----
-4875
-4994
-6167

query I rowsort
SELECT ALL - - 10 - + - 98 FROM tab2 cor0
----
108
108
108

query I rowsort
SELECT DISTINCT + + col1 AS col1 FROM tab2 AS cor0 WHERE col0 IS NOT NULL
----
51
67
77

query I rowsort
SELECT ALL 14 AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
14
14
14

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE NULL NOT BETWEEN + col0 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 * col2 IN ( 94 + + col0 * col2, + 28 * + ( + 37 ), + col1 + - - 25 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3143
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE NOT + 6 IN ( - - col2 )
----
3

skipif mysql # not compatible
query I rowsort label-3143
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE NOT + 6 IN ( - - col2 )
----
3

query I rowsort
SELECT - 86 * + col1 + + - col1 * - - col0 AS col1 FROM tab0 AS cor0
----
-183
-3633
-8181

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + 43 NOT BETWEEN - col0 AND - col1 + + 56
----

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE + 73 IS NULL
----

query I rowsort
SELECT 51 * 51 AS col0 FROM tab2
----
2601
2601
2601

query I rowsort
SELECT col0 * - + 22 AS col1 FROM tab0
----
-1914
-2134
-330

query I rowsort
SELECT 85 * - + 27 AS col2 FROM tab0 cor0
----
-2295
-2295
-2295

onlyif mysql # aggregate syntax: 
query I rowsort label-3150
SELECT + MAX( 91 ) FROM tab0 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3150
SELECT + MAX ( 91 ) FROM tab0 AS cor0
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3151
SELECT DISTINCT - + MIN( ALL - - col2 ) FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-3151
SELECT DISTINCT - + MIN ( ALL - - col2 ) FROM tab0 AS cor0
----
-10

query I rowsort
SELECT DISTINCT + - 21 AS col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3153
SELECT ALL - SUM( DISTINCT col1 ) * - 30 AS col0 FROM tab0
----
3090

skipif mysql # not compatible
query I rowsort label-3153
SELECT ALL - SUM ( DISTINCT col1 ) * - 30 AS col0 FROM tab0
----
3090

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT DISTINCT + COUNT( * ) * - 92 * 58 AS col2 FROM tab2
----
-16008

skipif mysql # not compatible
query I rowsort label-3154
SELECT DISTINCT + COUNT ( * ) * - 92 * 58 AS col2 FROM tab2
----
-16008

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) col1 FROM tab1 WHERE + col0 * col1 = - col0 - - 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3156
SELECT ALL - 57 * + 67 * - COUNT( * ) FROM tab1
----
11457

skipif mysql # not compatible
query I rowsort label-3156
SELECT ALL - 57 * + 67 * - COUNT ( * ) FROM tab1
----
11457

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3157
SELECT ALL - COUNT( * ) DIV + 24 + MIN( - + 57 ) + - 48 AS col0 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-3157
SELECT ALL - COUNT ( * ) / + 24 + MIN ( - + 57 ) + - 48 AS col0 FROM tab0
----
-105

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 > - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - ( col2 ) * + 85 FROM tab2 AS cor0
----
1955
3400
4930

onlyif mysql # aggregate syntax: 
query I rowsort label-3160
SELECT + MIN( + 59 ) + - - 53 * COUNT( * ) * COUNT( * ) + + - 1 col0 FROM tab1
----
535

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3160
SELECT + MIN ( + 59 ) + - - 53 * COUNT ( * ) * COUNT ( * ) + + - 1 col0 FROM tab1
----
535

onlyif mysql # aggregate syntax: 
query I rowsort label-3161
SELECT ( - 88 ) + - - COUNT( DISTINCT - + 35 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-3161
SELECT ( - 88 ) + - - COUNT ( DISTINCT - + 35 ) FROM tab2
----
-87

query I rowsort
SELECT - - col2 + + + 92 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
102
139
191

onlyif mysql # aggregate syntax: 
query I rowsort label-3163
SELECT ALL COUNT( * ) + + COUNT( * ) * + COUNT( * ) FROM tab2 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3163
SELECT ALL COUNT ( * ) + + COUNT ( * ) * + COUNT ( * ) FROM tab2 AS cor0
----
12

query I rowsort
SELECT DISTINCT + - col0 - - 12 * + 39 AS col2 FROM tab1 AS cor0
----
377
383
417

onlyif mysql # aggregate syntax: 
query I rowsort label-3165
SELECT ALL - 62 - - COUNT( * ) col0 FROM tab0 cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3165
SELECT ALL - 62 - - COUNT ( * ) col0 FROM tab0 cor0
----
-59

onlyif mysql # aggregate syntax: 
query II rowsort label-3166
SELECT - MAX( 15 ) AS col2, 7 AS col1 FROM tab0 AS cor0
----
-15
7

skipif mysql # not compatible
query II rowsort label-3166
SELECT - MAX ( 15 ) AS col2, 7 AS col1 FROM tab0 AS cor0
----
-15
7

query I rowsort
SELECT DISTINCT 33 - col2 FROM tab0
----
-14
-66
23

query II rowsort
SELECT DISTINCT col1 AS col0, col1 + - ( + col0 ) FROM tab1
----
14
-37
47
-44
5
-80

query I rowsort
SELECT - col2 * - - 10 AS col1 FROM tab1
----
-590
-680
-960

query III rowsort
SELECT * FROM tab0 WHERE NOT + 88 <> - ( col0 )
----

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query III rowsort
SELECT * FROM tab0 WHERE NOT + 22 + + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > 58
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3174
SELECT + + COUNT( DISTINCT + 36 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3174
SELECT + + COUNT ( DISTINCT + 36 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL 33 FROM tab0 AS cor0 WHERE NOT 28 IN ( col1, 95, - 65 * col2 + 93 )
----
33
33
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3176
SELECT - + COUNT( * ) DIV 2 AS col2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3176
SELECT - + COUNT ( * ) / 2 AS col2 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 * 69 * + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 = - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3179
SELECT ALL - SUM( ALL + - 6 ) AS col2 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-3179
SELECT ALL - SUM ( ALL + - 6 ) AS col2 FROM tab0
----
18

query I rowsort
SELECT DISTINCT 8 * col2 FROM tab1
----
472
544
768

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT DISTINCT + ( - COUNT( * ) ) + COUNT( * ) * + 75 col1 FROM tab2
----
222

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3181
SELECT DISTINCT + ( - COUNT ( * ) ) + COUNT ( * ) * + 75 col1 FROM tab2
----
222

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT ALL + 99 DIV col1 AS col1 FROM tab0
----
1
4
99

skipif mysql # not compatible
query I rowsort label-3182
SELECT ALL + 99 / col1 AS col1 FROM tab0
----
1
4
99

query I rowsort
SELECT 58 + + col1 AS col2 FROM tab1
----
105
63
72

query I rowsort
SELECT ( col1 ) + + 74 AS col2 FROM tab2 AS cor0
----
125
141
151

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + col1 * + 39 IS NOT NULL
----

query I rowsort
SELECT ( - + col2 ) AS col2 FROM tab0 cor0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-3187
SELECT + 30 - + COUNT( ALL - + 12 ) AS col2 FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-3187
SELECT + 30 - + COUNT ( ALL - + 12 ) AS col2 FROM tab2
----
27

query I rowsort
SELECT DISTINCT + - 43 FROM ( tab2 cor0 CROSS JOIN tab1 AS cor1 )
----
-43

query I rowsort
SELECT - col2 - + col1 - - + 20 AS col1 FROM tab2
----
-105
-54
-97

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE ( NULL ) < NULL
----

query I rowsort
SELECT DISTINCT + 53 + - 26 + + ( + - col1 ) AS col1 FROM tab1 AS cor0
----
-20
13
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3192
SELECT - COUNT( * ) DIV - MIN( + 23 ) + - - 41 AS col0 FROM tab0 AS cor0
----
41

skipif mysql # not compatible
query I rowsort label-3192
SELECT - COUNT ( * ) / - MIN ( + 23 ) + - - 41 AS col0 FROM tab0 AS cor0
----
41

query I rowsort
SELECT ALL 15 + - col0 AS col1 FROM tab0 AS cor0
----
-72
-82
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3194
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - ( + + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3194
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) > - ( + + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3195
SELECT DISTINCT - + col1 * - 58 - + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3195
SELECT DISTINCT - + col1 * - 58 - + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3196
SELECT DISTINCT - 5 DIV - MAX( ALL - 20 ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3196
SELECT DISTINCT - 5 / - MAX ( ALL - 20 ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL IN ( + col2 * - 55 + - col2 - - col2 + + - col2 * + 67 * ( col2 ) / + ( col2 ) + col2 * + col0, 36 * + 70 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 68 * + col0 + - col1 <= - + 85
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + col1 + + 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 67 * col1, col0 AS col0 FROM tab0
----
1407
87
5427
15
67
97

query I rowsort
SELECT + col1 * - col0 * - col2 * 58 FROM tab2
----
11432960
16904100
3129564

query I rowsort
SELECT - ( ( + 76 ) ) AS col2 FROM tab0 AS cor0
----
-76
-76
-76

query I rowsort
SELECT ALL + col0 * - col0 * col0 FROM tab0 cor0 WHERE NULL = - col1 / - 60 + col0 + col2 * + + col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3204
SELECT + COUNT( * ) DIV 62 AS col0, + 94 * + COUNT( * ) FROM tab0 AS cor0
----
0
282

skipif mysql # not compatible
query II rowsort label-3204
SELECT + COUNT ( * ) / 62 AS col0, + 94 * + COUNT ( * ) FROM tab0 AS cor0
----
0
282

onlyif mysql # DIV for integer division: 
query II rowsort label-3205
SELECT col0 DIV - col1, + 64 AS col1 FROM tab0 AS cor0
----
-4
64
-97
64
0
64

skipif mysql # not compatible
query II rowsort label-3205
SELECT col0 / - col1, + 64 AS col1 FROM tab0 AS cor0
----
-4
64
-97
64
0
64

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( ( ( NULL ) NOT BETWEEN NULL AND NULL ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 * - - 63 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + col0 * + col2 + - - col2 AS col0 FROM tab0 AS cor0
----
752
880
9702

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + col0 * - + col1 col1 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 * - 81 AS col1 FROM tab1 cor0
----
-4779
-5508
-7776

query I rowsort
SELECT ALL - + 95 AS col0 FROM tab0 AS cor0
----
-95
-95
-95

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 18 * - - 62 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col1 ) col1 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3214
SELECT - CAST( + col1 AS SIGNED ), col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

skipif mysql # not compatible
query II rowsort label-3214
SELECT - CAST ( + col1 AS INTEGER ), col0 AS col2 FROM tab2
----
-51
46
-67
75
-77
64

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3215
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 * + CAST( NULL AS SIGNED ) / - 99 = NULL
----

skipif mysql # not compatible
query III rowsort label-3215
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 * + CAST ( NULL AS INTEGER ) / - 99 = NULL
----

query I rowsort
SELECT DISTINCT - 30 + - col1 FROM tab2 AS cor0
----
-107
-81
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-3217
SELECT DISTINCT + COUNT( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3217
SELECT DISTINCT + COUNT ( * ) FROM tab0 WHERE NOT + col0 IS NOT NULL
----
0

query II rowsort
SELECT - col0 AS col2, 15 * + 98 AS col1 FROM tab2
----
-46
1470
-64
1470
-75
1470

query III rowsort
SELECT * FROM tab2 WHERE - col0 > + - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3220
SELECT + CAST( NULL AS SIGNED ) * + MAX( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3220
SELECT + CAST ( NULL AS INTEGER ) * + MAX ( DISTINCT + + col2 ) AS col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL - col1 * + + 11 - + - 66 FROM tab1 AS cor0
----
-451
-88
11

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + - ( - - 99 ) >= - - col0 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col2 FROM tab2 AS cor0 WHERE NOT col2 IS NULL
----
23
40
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col0, - col1 col1 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT - - col2 * + - 54 * + col2 FROM tab2 AS cor0
----
-181656
-28566
-86400

query I rowsort
SELECT + + 34 FROM tab0 AS cor0 WHERE NOT - col1 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3227
SELECT ALL + SUM( ALL + + col1 ) AS col1 FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-3227
SELECT ALL + SUM ( ALL + + col1 ) AS col1 FROM tab0
----
103

query II rowsort
SELECT DISTINCT col0 * + 88, + col1 FROM tab2
----
4048
51
5632
77
6600
67

query I rowsort
SELECT DISTINCT + ( col2 ) * - 5 AS col0 FROM tab1
----
-295
-340
-480

onlyif mysql # DIV for integer division: 
query II rowsort label-3230
SELECT DISTINCT + 49 DIV - col1, 20 col1 FROM tab0
----
-2
20
-49
20
0
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3230
SELECT DISTINCT + 49 / - col1, 20 col1 FROM tab0
----
-2
20
-49
20
0
20

query I rowsort
SELECT ALL - + 79 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1b7b0b34fe3431fb409719624d12791f

onlyif mysql # aggregate syntax: 
query I rowsort label-3232
SELECT DISTINCT - MAX( DISTINCT - ( - + col1 ) ) + + SUM( - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-274

skipif mysql # not compatible
query I rowsort label-3232
SELECT DISTINCT - MAX ( DISTINCT - ( - + col1 ) ) + + SUM ( - ( col0 ) ) AS col0 FROM tab1 AS cor0
----
-274

query I rowsort
SELECT - col2 * + 64 * + col2 FROM tab2 AS cor0
----
-102400
-215296
-33856

query I rowsort
SELECT 61 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3235
SELECT DISTINCT 96 * + COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 27 BETWEEN NULL AND - ( + - col1 ) + - + 88
----
288

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT 96 * + COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT + 27 BETWEEN NULL AND - ( + - col1 ) + - + 88
----
288

query II rowsort
SELECT ALL col1, - 59 FROM tab0
----
1
-59
21
-59
81
-59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3237
SELECT ALL - COUNT( col2 ) * + + MIN( - 95 ) + + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3237
SELECT ALL - COUNT ( col2 ) * + + MIN ( - 95 ) + + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3238
SELECT ALL - ( col0 ) + + CAST( + + 10 AS SIGNED ) + CAST( NULL AS SIGNED ) - + 45 + col2 - + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3238
SELECT ALL - ( col0 ) + + CAST ( + + 10 AS INTEGER ) + CAST ( NULL AS INTEGER ) - + 45 + col2 - + col1 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT DISTINCT 30 * - + 9 + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-267

skipif mysql # not compatible
query I rowsort label-3239
SELECT DISTINCT 30 * - + 9 + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-267

query I rowsort
SELECT - - 30 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + + col2 + - ( - - col2 ) + 54 * - col0 FROM tab2 AS cor0
----
-2484
-3456
-4050

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 / col0 * - col0 * - col0 * + 74 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3243
SELECT + SUM( DISTINCT 64 ) DIV + 54 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

skipif mysql # not compatible
query I rowsort label-3243
SELECT + SUM ( DISTINCT 64 ) / + 54 FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
1

query I rowsort
SELECT + - 66 * + + 90 + + + 75 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 64847fc097b3ac67a0331e2a44f0ed6c

onlyif mysql # aggregate syntax: 
query I rowsort label-3245
SELECT - COUNT( * ) * + 29 col1 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3245
SELECT - COUNT ( * ) * + 29 col1 FROM tab0 AS cor0
----
-87

query I rowsort
SELECT + 14 / - col0 FROM tab1 AS cor0 WHERE NOT + col0 + - col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 38 * - col0 - + col0 + - col0 col1 FROM tab0 AS cor0
----
-3480
-3880
-600

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + 12 * 77 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3249
SELECT DISTINCT + + CAST( + + 53 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3249
SELECT DISTINCT + + CAST ( + + 53 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
53

onlyif mysql # aggregate syntax: 
query I rowsort label-3250
SELECT - COUNT( * ) + - - ( 59 ) FROM tab0, tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3250
SELECT - COUNT ( * ) + - - ( 59 ) FROM tab0, tab1 AS cor0
----
50

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL + 21 * + COUNT( * ) FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL + 21 * + COUNT ( * ) FROM tab0
----
63

query III rowsort
SELECT ALL * FROM tab0 WHERE 7 <> col1 + + + 53
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3253
SELECT DISTINCT MIN( DISTINCT - 33 ) DIV 33 * - 23 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-3253
SELECT DISTINCT MIN ( DISTINCT - 33 ) / 33 * - 23 FROM tab2
----
23

query II rowsort
SELECT 9 AS col0, - col2 FROM tab2 AS cor0
----
9
-23
9
-40
9
-58

query I rowsort
SELECT + 72 * + col1 FROM tab0 AS cor0
----
1512
5832
72

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3256
SELECT - - CAST( NULL AS DECIMAL ) * + col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

skipif mysql # not compatible
query I rowsort label-3256
SELECT - - CAST ( NULL AS REAL ) * + col2 FROM tab2 AS cor0 WHERE NOT NULL > ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col1 * + col2 * + col1 IS NOT NULL
----

query I rowsort
SELECT - col0 + 4 + - + col0 FROM tab1
----
-166
-178
-98

query I rowsort
SELECT + col0 * - - col2 + + + col1 FROM tab0 AS cor0
----
786
891
9604

query II rowsort
SELECT ALL + col2 AS col2, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query I rowsort
SELECT DISTINCT + col1 * - col1 - - - 7 FROM tab0 AS cor0
----
-448
-6568
-8

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL <> - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3263
SELECT DISTINCT - CAST( NULL AS SIGNED ) / 98 FROM tab2 AS cor0 WHERE NOT 91 + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3263
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / 98 FROM tab2 AS cor0 WHERE NOT 91 + + col1 IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3265
SELECT COUNT( * ) FROM tab1 WHERE - col2 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3265
SELECT COUNT ( * ) FROM tab1 WHERE - col2 <> NULL
----
0

query I rowsort
SELECT DISTINCT - 20 - - + 59 * - + col2 FROM tab2
----
-1377
-2380
-3442

onlyif mysql # aggregate syntax: 
query II rowsort label-3267
SELECT DISTINCT + COUNT( DISTINCT 10 ) AS col1, + MIN( + 12 ) + + COUNT( * ) FROM tab1
----
1
15

skipif mysql # not compatible
query II rowsort label-3267
SELECT DISTINCT + COUNT ( DISTINCT 10 ) AS col1, + MIN ( + 12 ) + + COUNT ( * ) FROM tab1
----
1
15

query I rowsort
SELECT - + col2 FROM tab1 WHERE + col0 IS NOT NULL OR + 92 / - col1 > - + 7
----
-59
-68
-96

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3269
SELECT 86 DIV ( - - 80 ) AS col1, COUNT( * ) FROM tab0
----
1
3

skipif mysql # not compatible
query II rowsort label-3269
SELECT 86 / ( - - 80 ) AS col1, COUNT ( * ) FROM tab0
----
1
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3270
SELECT ALL + SUM( DISTINCT col0 ) AS col1 FROM tab0
----
199

skipif mysql # not compatible
query I rowsort label-3270
SELECT ALL + SUM ( DISTINCT col0 ) AS col1 FROM tab0
----
199

query I rowsort
SELECT ALL + 55 + + + 82 FROM tab2
----
137
137
137

onlyif mysql # DIV for integer division: 
query I rowsort label-3272
SELECT DISTINCT col0 DIV - + 95 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3272
SELECT DISTINCT col0 / - + 95 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3273
SELECT ALL SUM( DISTINCT CAST( NULL AS DECIMAL ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3273
SELECT ALL SUM ( DISTINCT CAST ( NULL AS REAL ) ) FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + 91 - - col0 FROM tab2
----
137
155
166

query I rowsort
SELECT ALL + col2 + 27 + ( 45 ) FROM tab0 cor0
----
119
171
82

query I rowsort
SELECT DISTINCT + col1 + - ( col2 ) AS col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT ALL + + ( - - 47 ) AS col1 FROM tab0 cor0
----
47
47
47

query I rowsort
SELECT col1 * + col2 / + - 46 FROM tab0 WHERE NOT NULL <> + col2
----

query II rowsort
SELECT DISTINCT + col2 AS col0, - 90 AS col0 FROM tab1
----
59
-90
68
-90
96
-90

query I rowsort
SELECT ALL + - 34 FROM tab1 cor0
----
-34
-34
-34

query II rowsort
SELECT + - col1, + col0 FROM tab1 AS cor0 WHERE NOT col0 IS NULL
----
-14
51
-47
91
-5
85

query I rowsort
SELECT DISTINCT + ( 63 ) FROM tab2 AS cor0
----
63

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 95 * - 27 / - + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3284
SELECT - 76 AS col2, + CAST( NULL AS SIGNED ) * - - col0 FROM tab2 AS cor0
----
-76
NULL
-76
NULL
-76
NULL

skipif mysql # not compatible
query II rowsort label-3284
SELECT - 76 AS col2, + CAST ( NULL AS INTEGER ) * - - col0 FROM tab2 AS cor0
----
-76
NULL
-76
NULL
-76
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL IN ( col2 )
----

query I rowsort
SELECT DISTINCT + 60 * + 17 AS col2 FROM tab0
----
1020

query I rowsort
SELECT DISTINCT + 55 + + 63 AS col1 FROM tab2
----
118

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3288
SELECT + ( col1 ) AS col2 FROM tab2 WHERE NOT NULL IN ( col0 * + col2, 41 + + CAST( col0 AS SIGNED ) + 70 - + 70, + 94 )
----

skipif mysql # not compatible
query I rowsort label-3288
SELECT + ( col1 ) AS col2 FROM tab2 WHERE NOT NULL IN ( col0 * + col2, 41 + + CAST ( col0 AS INTEGER ) + 70 - + 70, + 94 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3289
SELECT DISTINCT + ( + - SUM( - col1 ) ) * - MIN( DISTINCT + - col1 ) AS col1 FROM tab1
----
3102

skipif mysql # not compatible
query I rowsort label-3289
SELECT DISTINCT + ( + - SUM ( - col1 ) ) * - MIN ( DISTINCT + - col1 ) AS col1 FROM tab1
----
3102

onlyif mysql # aggregate syntax: 
query I rowsort label-3290
SELECT DISTINCT MIN( DISTINCT + + col1 ) + 7 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-3290
SELECT DISTINCT MIN ( DISTINCT + + col1 ) + 7 FROM tab2 AS cor0
----
58

query I rowsort
SELECT 5 + - 10 FROM tab2 AS cor0
----
-5
-5
-5

query I rowsort
SELECT DISTINCT - col0 * - 11 AS col0 FROM tab0 AS cor0
----
1067
165
957

query I rowsort
SELECT DISTINCT col0 + + 57 FROM tab0
----
144
154
72

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NULL ) > - - 58 + - 85
----

query I rowsort
SELECT ALL - col0 FROM tab1 cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3296
SELECT ALL + - 74 + + ( CAST( ( - col0 ) AS SIGNED ) ) AS col2, col1 * + col2 FROM tab1 AS cor0
----
-125
1344
-159
295
-165
3196

skipif mysql # not compatible
query II rowsort label-3296
SELECT ALL + - 74 + + ( CAST ( ( - col0 ) AS INTEGER ) ) AS col2, col1 * + col2 FROM tab1 AS cor0
----
-125
1344
-159
295
-165
3196

query II rowsort
SELECT ALL - 91, + col0 AS col0 FROM tab0 AS cor0
----
-91
15
-91
87
-91
97

query III rowsort
SELECT * FROM tab0 cor0 WHERE - ( - - 62 ) IS NOT NULL AND NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT - - col0 + + - 88 FROM tab0 AS cor0
----
-1
-73
9

query I rowsort
SELECT + - col1 - - 52 FROM tab0 AS cor0
----
-29
31
51

onlyif mysql # aggregate syntax: 
query I rowsort label-3301
SELECT SUM( ALL + + col0 ) - 94 + + - COUNT( * ) FROM tab1 AS cor0
----
130

skipif mysql # not compatible
query I rowsort label-3301
SELECT SUM ( ALL + + col0 ) - 94 + + - COUNT ( * ) FROM tab1 AS cor0
----
130

query I rowsort
SELECT ALL - 14 + col1 AS col1 FROM tab0 cor0
----
-13
67
7

onlyif mysql # aggregate syntax: 
query I rowsort label-3303
SELECT - 11 - COUNT( * ) FROM tab2 cor0
----
-14

skipif mysql # not compatible
query I rowsort label-3303
SELECT - 11 - COUNT ( * ) FROM tab2 cor0
----
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3304
SELECT + - col2 * - CAST( NULL AS SIGNED ) / - + col1 + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3304
SELECT + - col2 * - CAST ( NULL AS INTEGER ) / - + col1 + + col0 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 * + + col0 + ( - 82 ) FROM tab1 AS cor0
----
2519
7143
8199

onlyif mysql # aggregate syntax: 
query I rowsort label-3306
SELECT ALL + 55 * - MIN( ALL - - 15 ) FROM tab1 AS cor0
----
-825

skipif mysql # not compatible
query I rowsort label-3306
SELECT ALL + 55 * - MIN ( ALL - - 15 ) FROM tab1 AS cor0
----
-825

query I rowsort
SELECT + + 36 + 87 FROM tab1 AS cor0
----
123
123
123

onlyif mysql # DIV for integer division: 
query I rowsort label-3308
SELECT DISTINCT + col1 DIV - - 71 AS col1 FROM tab0 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3308
SELECT DISTINCT + col1 / - - 71 AS col1 FROM tab0 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3309
SELECT ALL 5 - COUNT( * ) FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-3309
SELECT ALL 5 - COUNT ( * ) FROM tab0
----
2

query II rowsort
SELECT DISTINCT - col2, + col1 + - col1 AS col2 FROM tab0
----
-10
0
-47
0
-99
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT 25 <= NULL )
----

query I rowsort
SELECT DISTINCT + - col1 AS col1 FROM tab0 WHERE NOT - col0 IS NOT NULL
----

query I rowsort
SELECT ALL 90 + - ( - col0 ) FROM tab0
----
105
177
187

onlyif mysql # DIV for integer division: 
query I rowsort label-3314
SELECT DISTINCT - 59 DIV + - 90 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3314
SELECT DISTINCT - 59 / + - 90 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE ( ( NOT - - col2 IS NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - ( + + ( col0 ) ) + 88, col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 75 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 AS col2, + col2 - + col0 col1 FROM tab0 AS cor0
----
-10
-77
-47
32
-99
2

query I rowsort
SELECT DISTINCT col2 * - 95 FROM tab1
----
-5605
-6460
-9120

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 62 IN ( - 1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3320
SELECT col1 DIV + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-3320
SELECT col1 / + col2 + - col0 AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query I rowsort
SELECT + + col0 * + ( - - col2 ) AS col1 FROM tab0 AS cor0
----
705
870
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3322
SELECT DISTINCT - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE - col1 >= + col0 / + col0 + - 74 * - col1
----

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE - col1 >= + col0 / + col0 + - 74 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3323
SELECT ALL 96 * - COUNT( * ) AS col0 FROM tab2
----
-288

skipif mysql # not compatible
query I rowsort label-3323
SELECT ALL 96 * - COUNT ( * ) AS col0 FROM tab2
----
-288

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 93 col2 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( + + 27 ) FROM tab2
----
27
27
27

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 * ( + col2 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * - - 24 FROM tab2
----
1104
1536
1800

onlyif mysql # aggregate syntax: 
query II rowsort label-3328
SELECT - ( - SUM( ALL col1 ) ), - 50 AS col2 FROM tab2
----
195
-50

skipif mysql # not compatible
query II rowsort label-3328
SELECT - ( - SUM ( ALL col1 ) ), - 50 AS col2 FROM tab2
----
195
-50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col0, ( + + col1 ) + + 40 AS col2 FROM tab1 cor0
----
-59
45
-68
87
-96
54

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-3330
SELECT ALL + ( 21 ) DIV CAST( - col2 AS SIGNED ), col0 AS col0 FROM tab2
----
0
46
0
64
0
75

skipif mysql # not compatible
query II rowsort label-3330
SELECT ALL + ( 21 ) / CAST ( - col2 AS INTEGER ), col0 AS col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT ALL 17 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 43298e43365fccb5146ea32003753c92

query I rowsort
SELECT DISTINCT ( - col2 ) + - + col0 AS col1 FROM tab0
----
-196
-62
-97

query II rowsort
SELECT DISTINCT col2 - col1 AS col1, + 95 AS col2 FROM tab0 AS cor0
----
-11
95
-34
95
98
95

query I rowsort
SELECT DISTINCT - col1 + - + col0 - + 83 FROM tab1 AS cor0
----
-148
-173
-221

onlyif mysql # aggregate syntax: 
query I rowsort label-3335
SELECT + ( - COUNT( * ) ) - + - 24 FROM tab1 cor0 WHERE + col2 * - col1 < - col2
----
21

skipif mysql # not compatible
query I rowsort label-3335
SELECT + ( - COUNT ( * ) ) - + - 24 FROM tab1 cor0 WHERE + col2 * - col1 < - col2
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + - MAX( ALL - ( - + col1 ) ) - + ( COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-3336
SELECT + - MAX ( ALL - ( - + col1 ) ) - + ( COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
-80

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - - col2 AND - - col0 - 16 * + - col1
----

query I rowsort
SELECT + col2 * + + col1 * col0 - - - col0 AS col1 FROM tab2
----
197056
291375
53912

query I rowsort
SELECT + 53 - - 93 AS col2 FROM tab1
----
146
146
146

query I rowsort
SELECT 9 - col0 AS col0 FROM tab1
----
-42
-76
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-3341
SELECT ALL - 37 + 43 * + COUNT( ALL + col1 ) FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-3341
SELECT ALL - 37 + 43 * + COUNT ( ALL + col1 ) FROM tab2
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-3342
SELECT 50 * + COUNT( * ) FROM tab1
----
150

skipif mysql # not compatible
query I rowsort label-3342
SELECT 50 * + COUNT ( * ) FROM tab1
----
150

query II rowsort
SELECT ALL + col2, 5 FROM tab0 WHERE NOT NULL IS NOT NULL
----
10
5
47
5
99
5

query I rowsort
SELECT ALL + 10 * - col2 AS col0 FROM tab0
----
-100
-470
-990

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3345
SELECT ALL CAST( NULL AS SIGNED ) * - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3345
SELECT ALL CAST ( NULL AS INTEGER ) * - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3346
SELECT + col0 DIV - - 39 AS col2 FROM tab1 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-3346
SELECT + col0 / - - 39 AS col2 FROM tab1 cor0
----
1
2
2

onlyif mysql # aggregate syntax: 
query II rowsort label-3347
SELECT 49, COUNT( ALL 30 ) AS col2 FROM tab0
----
49
3

skipif mysql # not compatible
query II rowsort label-3347
SELECT 49, COUNT ( ALL 30 ) AS col2 FROM tab0
----
49
3

query II rowsort
SELECT ALL 39 AS col1, col1 AS col1 FROM tab0
----
39
1
39
21
39
81

query I rowsort
SELECT DISTINCT col0 * - + col0 * + col2 FROM tab2
----
-163840
-326250
-48668

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE NOT NULL < col1
----

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - col0 * + 48 AS col0 FROM tab0 AS cor0
----
-4176
-4656
-720

query I rowsort
SELECT + + 29 * - col0 AS col2 FROM tab1 AS cor0
----
-1479
-2465
-2639

onlyif mysql # aggregate syntax: 
query I rowsort label-3354
SELECT MAX( DISTINCT + 37 ) AS col0 FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3354
SELECT MAX ( DISTINCT + 37 ) AS col0 FROM tab2 AS cor0
----
37

onlyif mysql # DIV for integer division: 
query II rowsort label-3355
SELECT + + col0 DIV - 19 AS col2, col0 FROM tab0 AS cor0
----
-4
87
-5
97
0
15

skipif mysql # not compatible
query II rowsort label-3355
SELECT + + col0 / - 19 AS col2, col0 FROM tab0 AS cor0
----
-4
87
-5
97
0
15

query I rowsort
SELECT + col0 * - 85 AS col0 FROM tab2 AS cor0
----
-3910
-5440
-6375

onlyif mysql # DIV for integer division: 
query I rowsort label-3357
SELECT ALL - 92 DIV - col2 col1 FROM tab0
----
0
1
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3357
SELECT ALL - 92 / - col2 col1 FROM tab0
----
0
1
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3358
SELECT - MAX( + 51 ) AS col0 FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-3358
SELECT - MAX ( + 51 ) AS col0 FROM tab0
----
-51

query II rowsort
SELECT ALL 5 + - - col0, ( - ( + col2 ) ) AS col0 FROM tab0
----
102
-99
20
-47
92
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-3360
SELECT COUNT( * ) + 85 + - COUNT( * ) AS col0 FROM tab1
----
85

skipif mysql # not compatible
query I rowsort label-3360
SELECT COUNT ( * ) + 85 + - COUNT ( * ) AS col0 FROM tab1
----
85

query III rowsort
SELECT ALL * FROM tab2 WHERE ( NOT 57 * + 21 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3362
SELECT - COUNT( * ) + + - 25 AS col0 FROM tab0 AS cor0 WHERE col0 < NULL
----
-25

skipif mysql # not compatible
query I rowsort label-3362
SELECT - COUNT ( * ) + + - 25 AS col0 FROM tab0 AS cor0 WHERE col0 < NULL
----
-25

query II rowsort
SELECT ALL - - col2 * - col0 + + col0, col2 FROM tab1 AS cor0
----
-4845
96
-4930
59
-6097
68

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT - 22 + SUM( - col2 ) AS col1 FROM tab2 AS cor0
----
-143

skipif mysql # not compatible
query I rowsort label-3364
SELECT - 22 + SUM ( - col2 ) AS col1 FROM tab2 AS cor0
----
-143

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 + 77, col0 col2 FROM tab1 cor0
----
128
51
162
85
168
91

query I rowsort
SELECT + - 65 * col0 FROM tab1 AS cor0
----
-3315
-5525
-5915

query I rowsort
SELECT DISTINCT col0 + 89 FROM tab0
----
104
176
186

query I rowsort
SELECT + 57 * - col1 FROM tab0
----
-1197
-4617
-57

query III rowsort
SELECT * FROM tab1 WHERE - + 91 >= + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 col1, col1 * 71 * col2 + + col0 * + col0 FROM tab2
----
51
85399
67
281531
77
222776

query II rowsort
SELECT + 66 - + col1 * + - 59 * col2 AS col0, ( + col1 ) AS col0 FROM tab2 AS cor0
----
181786
77
229340
67
69273
51

query I rowsort
SELECT DISTINCT col2 + + 18 FROM tab2 AS cor0
----
41
58
76

query II rowsort
SELECT ( - col2 ) + + col0 AS col2, col0 AS col2 FROM tab0 AS cor0
----
-2
97
-32
15
77
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 42 + + + col0 + + - 41 + - col2 * - - 91 col1 FROM tab0 AS cor0 WHERE col1 * col2 - col2 > NULL
----

query I rowsort
SELECT + col1 + col1 - - - 1 + + - col1 - + + col2 * + - 52 * - col0 + - 50 FROM tab0 AS cor0
----
-36630
-45270
-499406

query I rowsort
SELECT ALL - col2 - - 29 + + col0 AS col0 FROM tab0 cor0
----
-3
106
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3377
SELECT DISTINCT + col0 * - col1 * col0 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + 25 IS NOT NULL
----
-107916
-315392
-376875

skipif mysql # not compatible
query I rowsort label-3377
SELECT DISTINCT + col0 * - col1 * col0 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + 25 IS NOT NULL
----
-107916
-315392
-376875

query I rowsort
SELECT + + col2 * - + col0 * col2 AS col0 FROM tab0 WHERE NOT - - col0 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col0 + col1 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - ( + col1 ), col1 AS col0 FROM tab1
----
-14
14
-47
47
-5
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3381
SELECT ALL CAST( + + col0 AS SIGNED ) AS col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-3381
SELECT ALL CAST ( + + col0 AS INTEGER ) AS col2 FROM tab0
----
15
87
97

query I rowsort
SELECT ALL 96 * + col0 FROM tab2
----
4416
6144
7200

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3383
SELECT 19 * - MAX( ALL CAST( NULL AS SIGNED ) ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT 19 * - MAX ( ALL CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2
----
NULL

query I rowsort
SELECT ALL - - 79 * - col2 * + col1 FROM tab1 AS cor0
----
-106176
-23305
-252484

onlyif mysql # aggregate syntax: 
query I rowsort label-3385
SELECT ALL COUNT( - - 48 ) col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3385
SELECT ALL COUNT ( - - 48 ) col2 FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT + SUM( + col2 ) * + - COUNT( * ) FROM tab2 AS cor0
----
-363

skipif mysql # not compatible
query I rowsort label-3386
SELECT + SUM ( + col2 ) * + - COUNT ( * ) FROM tab2 AS cor0
----
-363

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3387
SELECT DISTINCT COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 52 * - CAST( NULL AS SIGNED ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3387
SELECT DISTINCT COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 52 * - CAST ( NULL AS INTEGER ) IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3388
SELECT AVG ( ALL - CAST( NULL AS SIGNED ) ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3388
SELECT AVG ( ALL - CAST ( NULL AS INTEGER ) ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT 16 * col1 * - 25 AS col0 FROM tab2
----
-20400
-26800
-30800

query I rowsort
SELECT - col2 + + col1 + + - col0 + - 99 + - col0 + 41 * + + 73 FROM tab2 AS cor0
----
2753
2803
2830

query I rowsort
SELECT DISTINCT 35 + + - 34 * col0 AS col0 FROM tab2 AS cor0
----
-1529
-2141
-2515

query I rowsort
SELECT + 91 * + - 95 + col0 FROM tab0 cor0
----
-8548
-8558
-8630

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3393
SELECT DISTINCT 49 * + 72 AS col2, + col2 + - CAST( + col1 AS SIGNED ) FROM tab1
----
3528
21
3528
54
3528
82

skipif mysql # not compatible
query II rowsort label-3393
SELECT DISTINCT 49 * + 72 AS col2, + col2 + - CAST ( + col1 AS INTEGER ) FROM tab1
----
3528
21
3528
54
3528
82

query II rowsort
SELECT col1 AS col0, 43 AS col1 FROM tab1
----
14
43
47
43
5
43

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3395
SELECT ALL + 16 + - col1 + - CAST( + col2 AS SIGNED ) * - - col2 * col0 FROM tab2
----
-102461
-24369
-252351

skipif mysql # not compatible
query I rowsort label-3395
SELECT ALL + 16 + - col1 + - CAST ( + col2 AS INTEGER ) * - - col2 * col0 FROM tab2
----
-102461
-24369
-252351

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3396
SELECT DISTINCT * FROM tab1 WHERE + - CAST( NULL AS SIGNED ) BETWEEN NULL AND + - col2 - + - col1 + + 33 * + ( col1 )
----

skipif mysql # not compatible
query III rowsort label-3396
SELECT DISTINCT * FROM tab1 WHERE + - CAST ( NULL AS INTEGER ) BETWEEN NULL AND + - col2 - + - col1 + + 33 * + ( col1 )
----

query II rowsort
SELECT DISTINCT + col1, + 40 AS col0 FROM tab2
----
51
40
67
40
77
40

query I rowsort
SELECT DISTINCT 88 + + - ( - 13 ) * 19 FROM tab1
----
335

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - + ( + - col0 ) >= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3400
SELECT + 85 AS col1, 4 DIV + - 31 FROM tab0 AS cor0
----
85
0
85
0
85
0

skipif mysql # not compatible
query II rowsort label-3400
SELECT + 85 AS col1, 4 / + - 31 FROM tab0 AS cor0
----
85
0
85
0
85
0

query I rowsort
SELECT col1 * + col1 AS col1 FROM tab2 AS cor0 WHERE 43 IS NOT NULL
----
2601
4489
5929

query I rowsort
SELECT + - col2 AS col2 FROM tab2 cor0 WHERE NULL BETWEEN - col0 - - 12 - + + 56 * + - col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3403
SELECT DISTINCT - MAX( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
59

skipif mysql # not compatible
query I rowsort label-3403
SELECT DISTINCT - MAX ( - col2 ) AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3404
SELECT COUNT( * ) + + - 88 FROM tab2
----
-85

skipif mysql # not compatible
query I rowsort label-3404
SELECT COUNT ( * ) + + - 88 FROM tab2
----
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3405
SELECT ALL + MIN( - + 12 ) FROM tab0
----
-12

skipif mysql # not compatible
query I rowsort label-3405
SELECT ALL + MIN ( - + 12 ) FROM tab0
----
-12

query I rowsort
SELECT DISTINCT - col2 + - - col1 + + 99 FROM tab0
----
1
110
133

query I rowsort
SELECT DISTINCT - col1 + + 37 AS col1 FROM tab2
----
-14
-30
-40

query I rowsort
SELECT ALL - + col2 + - 39 + + + col1 - 32 * - col0 FROM tab1 AS cor0
----
1511
2627
2852

onlyif mysql # DIV for integer division: 
query II rowsort label-3409
SELECT + col2 DIV + + col1, + 56 * ( + 9 ) * - col1 * + col1 AS col0 FROM tab0 cor0
----
0
-222264
0
-3306744
99
-504

skipif mysql # not compatible
query II rowsort label-3409
SELECT + col2 / + + col1, + 56 * ( + 9 ) * - col1 * + col1 AS col0 FROM tab0 cor0
----
0
-222264
0
-3306744
99
-504

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 + + ( col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3411
SELECT DISTINCT - + 7 * + COUNT( * ) AS col2, CAST( 23 AS SIGNED ) FROM tab0 AS cor0
----
-21
23

skipif mysql # not compatible
query II rowsort label-3411
SELECT DISTINCT - + 7 * + COUNT ( * ) AS col2, CAST ( 23 AS INTEGER ) FROM tab0 AS cor0
----
-21
23

query I rowsort
SELECT + - 73 AS col1 FROM tab0 AS cor0
----
-73
-73
-73

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > 10 + col0 * + - col2 * + + col1 + - 43
----

query II rowsort
SELECT DISTINCT + 58, 98 AS col2 FROM tab0
----
58
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3415
SELECT ALL col0 * + CAST( - col1 AS SIGNED ) AS col0 FROM tab2
----
-2346
-4928
-5025

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL col0 * + CAST ( - col1 AS INTEGER ) AS col0 FROM tab2
----
-2346
-4928
-5025

query I rowsort
SELECT ALL - 83 * - col1 FROM tab1
----
1162
3901
415

onlyif mysql # DIV for integer division: 
query I rowsort label-3417
SELECT DISTINCT col2 DIV + + col0 FROM tab0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-3417
SELECT DISTINCT col2 / + + col0 FROM tab0
----
0
1
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3418
SELECT ALL CAST( - col1 AS SIGNED ) FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-3418
SELECT ALL CAST ( - col1 AS INTEGER ) FROM tab1 WHERE NOT ( ( NULL ) IS NOT NULL )
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3419
SELECT DISTINCT + 15 * + COUNT( * ) AS col2 FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-3419
SELECT DISTINCT + 15 * + COUNT ( * ) AS col2 FROM tab2
----
45

query II rowsort
SELECT DISTINCT - col1 * - col2 * + col2, + 11 + 60 AS col2 FROM tab2 cor0
----
123200
71
225388
71
26979
71

query II rowsort
SELECT ALL col0 AS col1, col0 AS col2 FROM tab1 AS cor0
----
51
51
85
85
91
91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col2 * - ( ( col1 ) ) > - 5 * + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 + - col1 <= - col0 * + - 0 + 48
----
91
47
68

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + col2 NOT BETWEEN ( NULL ) AND ( NULL )
----

query I rowsort
SELECT - col1 * col2 AS col2 FROM tab1 WHERE NULL NOT IN ( col1 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + ( + 79 ) + + 86 <= NULL
----

query I rowsort
SELECT ALL col2 FROM tab2 WHERE ( NULL ) = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3428
SELECT DISTINCT MAX( col2 ) * - 23 col0 FROM tab2
----
-1334

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3428
SELECT DISTINCT MAX ( col2 ) * - 23 col0 FROM tab2
----
-1334

query I rowsort
SELECT col2 - - 73 * col0 AS col0 FROM tab1
----
3819
6264
6711

onlyif mysql # aggregate syntax: 
query I rowsort label-3430
SELECT DISTINCT ( + 52 ) * COUNT( * ) FROM tab1
----
156

skipif mysql # not compatible
query I rowsort label-3430
SELECT DISTINCT ( + 52 ) * COUNT ( * ) FROM tab1
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-3431
SELECT ALL - MAX( ALL col2 ) * - COUNT( * ) FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-3431
SELECT ALL - MAX ( ALL col2 ) * - COUNT ( * ) FROM tab0
----
297

query I rowsort
SELECT DISTINCT + 69 AS col0 FROM tab2 WHERE NOT col2 IS NULL
----
69

query I rowsort
SELECT ALL col0 AS col1 FROM tab0 WHERE 91 NOT BETWEEN + col2 AND ( 6 / + col0 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-3434
SELECT ALL MIN( + 73 ) * - 0 - 70 FROM tab2 WHERE - col2 BETWEEN col2 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3434
SELECT ALL MIN ( + 73 ) * - 0 - 70 FROM tab2 WHERE - col2 BETWEEN col2 AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT - 1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3436
SELECT COUNT( * ) * - MIN( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3436
SELECT COUNT ( * ) * - MIN ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT 61 * + 59 AS col0 FROM tab2
----
3599
3599
3599

query I rowsort
SELECT DISTINCT + 64 + 85 FROM tab1
----
149

query I rowsort
SELECT DISTINCT + col0 * 89 - col0 AS col0 FROM tab0
----
1320
7656
8536

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 + - 93 * - col1 col2 FROM tab0 WHERE + col1 * col2 <> NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 = + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 69 * 79 AS col2 FROM tab0
----
5451
5451
5451

query I rowsort
SELECT - col0 * 62 AS col0 FROM tab1
----
-3162
-5270
-5642

query I rowsort
SELECT ALL + 3 * 18 - 5 AS col0 FROM tab0 AS cor0
----
49
49
49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 NOT IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 74 ) / col0 col1 FROM tab1 AS cor0 WHERE ( NULL ) < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE ( col0 ) > ( + 80 * + col2 )
----

query I rowsort
SELECT - 99 * - col2 FROM tab1 AS cor0
----
5841
6732
9504

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN 29 AND ( + col0 / + col1 + col2 )
----

query I rowsort
SELECT DISTINCT + 43 / - 30 FROM tab0 WHERE NOT NULL NOT BETWEEN - 11 AND NULL
----

query I rowsort
SELECT col0 + col1 FROM tab2 WHERE NULL >= + col2 + + 80
----

query I rowsort
SELECT DISTINCT + col0 FROM tab0 WHERE NOT ( col2 ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3453
SELECT ALL - COUNT( * ) * 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
-243

skipif mysql # not compatible
query I rowsort label-3453
SELECT ALL - COUNT ( * ) * 27 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0
----
-243

onlyif mysql # DIV for integer division: 
query I rowsort label-3454
SELECT + - 20 DIV + col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3454
SELECT + - 20 / + col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3455
SELECT 79 DIV col1 AS col0 FROM tab1 AS cor0
----
1
15
5

skipif mysql # not compatible
query I rowsort label-3455
SELECT 79 / col1 AS col0 FROM tab1 AS cor0
----
1
15
5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3456
SELECT MIN( DISTINCT col0 ) - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT CAST( col1 AS SIGNED ) * + CAST( NULL AS SIGNED ) > 28 * 51
----
NULL

skipif mysql # not compatible
query I rowsort label-3456
SELECT MIN ( DISTINCT col0 ) - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT CAST ( col1 AS INTEGER ) * + CAST ( NULL AS INTEGER ) > 28 * 51
----
NULL

query I rowsort
SELECT ALL + ( - 0 ) AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( ( + col1 ) ) <= ( + 11 * - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 = ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL < - col1 * + col2
----

query I rowsort
SELECT DISTINCT - col2 AS col1 FROM tab2 AS cor0 WHERE ( 50 ) BETWEEN ( - col1 ) AND col2 * col1
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT - SUM( ALL - col1 ) AS col1 FROM tab0 WHERE NOT ( - 30 * + col1 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3462
SELECT - SUM ( ALL - col1 ) AS col1 FROM tab0 WHERE NOT ( - 30 * + col1 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3463
SELECT + 24 * - COUNT( * ) * 88 AS col0 FROM tab1
----
-6336

skipif mysql # not compatible
query I rowsort label-3463
SELECT + 24 * - COUNT ( * ) * 88 AS col0 FROM tab1
----
-6336

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 77 col0 FROM tab1
----
77
77
77

query I rowsort
SELECT - col0 * - 95 * 82 FROM tab1 AS cor0
----
397290
662150
708890

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 31 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 50 NOT IN ( - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3468
SELECT + 38 + col1 * + 90 FROM tab2 AS cor0 WHERE NOT NULL >= + ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-3468
SELECT + 38 + col1 * + 90 FROM tab2 AS cor0 WHERE NOT NULL >= + ( - CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 + col0 AS col0 FROM tab1 AS cor0 WHERE NOT col1 * - 82 < col2 - col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3470
SELECT * FROM tab1 AS cor0 WHERE NOT ( 90 * + CAST( 17 AS SIGNED ) ) = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3470
SELECT * FROM tab1 AS cor0 WHERE NOT ( 90 * + CAST ( 17 AS INTEGER ) ) = col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL >= ( col2 )
----

query I rowsort
SELECT + 12 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT col0 * + + col1 + - + col0 + col2 * col2 AS col1 FROM tab2
----
2829
6464
8314

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 / 2 ) >= ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT ALL - - ( + + MAX( ALL + 75 ) ) + 84 AS col1 FROM tab1 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-3475
SELECT ALL - - ( + + MAX ( ALL + 75 ) ) + 84 AS col1 FROM tab1 AS cor0
----
159

onlyif mysql # aggregate syntax: 
query I rowsort label-3476
SELECT DISTINCT - + COUNT( * ) * + 6 AS col0 FROM tab2 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-3476
SELECT DISTINCT - + COUNT ( * ) * + 6 AS col0 FROM tab2 AS cor0
----
-18

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + 39 BETWEEN - col1 * - col0 + col2 AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL IN ( + ( - - 7 ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3479
SELECT ALL + CAST( col0 AS SIGNED ) * - 48 AS col0 FROM tab1 AS cor0
----
-2448
-4080
-4368

skipif mysql # not compatible
query I rowsort label-3479
SELECT ALL + CAST ( col0 AS INTEGER ) * - 48 AS col0 FROM tab1 AS cor0
----
-2448
-4080
-4368

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3480
SELECT ALL - CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-3480
SELECT ALL - CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0 WHERE NOT + col2 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3482
SELECT ALL COUNT( * ) * - COUNT( * ) * 70 * 16 AS col2 FROM tab1 cor0
----
-10080

skipif mysql # not compatible
query I rowsort label-3482
SELECT ALL COUNT ( * ) * - COUNT ( * ) * 70 * 16 AS col2 FROM tab1 cor0
----
-10080

query I rowsort
SELECT DISTINCT + col1 * - - col1 AS col1 FROM tab0
----
1
441
6561

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 10 col1 FROM tab1
----
-10
-10
-10

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT DISTINCT 8 * 21 DIV - col0 AS col1 FROM tab0
----
-1
-11

skipif mysql # not compatible
query I rowsort label-3485
SELECT DISTINCT 8 * 21 / - col0 AS col1 FROM tab0
----
-1
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT DISTINCT + ( - + MAX( DISTINCT - col1 ) ) + - - 29 FROM tab2
----
80

skipif mysql # not compatible
query I rowsort label-3486
SELECT DISTINCT + ( - + MAX ( DISTINCT - col1 ) ) + - - 29 FROM tab2
----
80

query I rowsort
SELECT ALL 96 + - 61 FROM tab1
----
35
35
35

query I rowsort
SELECT ALL col0 + - + ( - + col0 ) AS col0 FROM tab0
----
174
194
30

query I rowsort
SELECT col0 * col1 - + 22 + - + 95 FROM tab1
----
308
4160
597

onlyif mysql # aggregate syntax: 
query I rowsort label-3490
SELECT ALL + 21 + - - MAX( ALL + + col0 ) FROM tab1
----
112

skipif mysql # not compatible
query I rowsort label-3490
SELECT ALL + 21 + - - MAX ( ALL + + col0 ) FROM tab1
----
112

query I rowsort
SELECT ALL 80 + - col1 * - col1 FROM tab0
----
521
6641
81

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - 19 - + 19 >= ( + + col0 )
----
14
47
5

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT 64 NOT BETWEEN ( + ( + 4 ) ) AND - 26
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3494
SELECT + + 20 DIV + 35 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3494
SELECT + + 20 / + 35 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3495
SELECT 86 / CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-3495
SELECT 86 / CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3496
SELECT 35 * + ( - COUNT( * ) ) FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-3496
SELECT 35 * + ( - COUNT ( * ) ) FROM tab0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3497
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - ( - - 22 ) AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3497
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - ( - - 22 ) AS col2 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3498
SELECT - CAST( NULL AS SIGNED ) AS col1, + SUM( - + 96 ) AS col0 FROM tab0
----
NULL
-288

skipif mysql # not compatible
query II rowsort label-3498
SELECT - CAST ( NULL AS INTEGER ) AS col1, + SUM ( - + 96 ) AS col0 FROM tab0
----
NULL
-288

query II rowsort
SELECT DISTINCT col1, 93 FROM tab0
----
1
93
21
93
81
93

query II rowsort
SELECT ALL col0 AS col2, + col2 * + col0 AS col1 FROM tab0
----
15
705
87
870
97
9603

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3501
SELECT ALL * FROM tab1 WHERE NOT col2 * + col0 + + - CAST( NULL AS SIGNED ) + col0 + col0 * col0 BETWEEN ( NULL ) AND ( 39 + - 66 )
----

skipif mysql # not compatible
query III rowsort label-3501
SELECT ALL * FROM tab1 WHERE NOT col2 * + col0 + + - CAST ( NULL AS INTEGER ) + col0 + col0 * col0 BETWEEN ( NULL ) AND ( 39 + - 66 )
----

query II rowsort
SELECT ALL + col2 AS col0, + ( col2 ) * + col0 + - col0 FROM tab0 AS cor0
----
10
783
47
690
99
9506

query I rowsort
SELECT - col2 AS col1 FROM tab1 AS cor0 WHERE NOT col2 * + 91 <= NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3504
SELECT 37 DIV + col1 AS col1, - col0 FROM tab1
----
0
-91
2
-51
7
-85

skipif mysql # not compatible
query II rowsort label-3504
SELECT 37 / + col1 AS col1, - col0 FROM tab1
----
0
-91
2
-51
7
-85

query I rowsort
SELECT DISTINCT - - col0 - - + 45 - - col2 + - 3 * col0 * - 86 AS col2 FROM tab0 WHERE + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3506
SELECT DISTINCT + COUNT( * ) * + - 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-603

skipif mysql # not compatible
query I rowsort label-3506
SELECT DISTINCT + COUNT ( * ) * + - 67 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-603

query I rowsort
SELECT + col0 * - + 42 * col0 AS col1 FROM tab1 AS cor0 WHERE 61 NOT BETWEEN - + col2 AND NULL
----

query I rowsort
SELECT ALL + col0 * - - 41 FROM tab0 AS cor0
----
3567
3977
615

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3509
SELECT + 85 + + 72 + + ( - 59 ) * + 92 AS col2, - CAST( NULL AS SIGNED ) * - 35 + 44 FROM tab1 cor0
----
-5271
NULL
-5271
NULL
-5271
NULL

skipif mysql # not compatible
query II rowsort label-3509
SELECT + 85 + + 72 + + ( - 59 ) * + 92 AS col2, - CAST ( NULL AS INTEGER ) * - 35 + 44 FROM tab1 cor0
----
-5271
NULL
-5271
NULL
-5271
NULL

query I rowsort
SELECT ( 88 ) * 45 + 88 + - col0 + + col2 AS col2 FROM tab1 AS cor0
----
4022
4025
4093

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3511
SELECT 7 + - - CAST( + col2 AS SIGNED ) FROM tab0 AS cor0
----
106
17
54

skipif mysql # not compatible
query I rowsort label-3511
SELECT 7 + - - CAST ( + col2 AS INTEGER ) FROM tab0 AS cor0
----
106
17
54

query I rowsort
SELECT DISTINCT + col2 * 34 FROM tab2
----
1360
1972
782

query I rowsort
SELECT DISTINCT + 82 + + + 33 FROM tab1
----
115

query II rowsort
SELECT col2 + - col0 + - col2 * - ( + col2 ) * col0 AS col2, col0 AS col1 FROM tab1
----
295859
85
420761
91
470061
51

onlyif mysql # DIV for integer division: 
query I rowsort label-3515
SELECT DISTINCT 61 DIV + col1 + - col0 DIV - col0 FROM tab2
----
1
2

skipif mysql # not compatible
query I rowsort label-3515
SELECT DISTINCT 61 / + col1 + - col0 / - col0 FROM tab2
----
1
2

query I rowsort
SELECT + 86 FROM tab0 WHERE - col0 >= ( 91 - + 83 )
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE col1 BETWEEN 10 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3518
SELECT DISTINCT - 56 - - COUNT( * ) + 93 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3518
SELECT DISTINCT - 56 - - COUNT ( * ) + 93 FROM tab2 AS cor0
----
40

query I rowsort
SELECT ALL + + 30 - - - 99 FROM tab1 AS cor0
----
-69
-69
-69

query I rowsort
SELECT + 8 - col1 + - 4 * - 7 AS col1 FROM tab2 AS cor0
----
-15
-31
-41

query I rowsort
SELECT DISTINCT 33 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
33

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3522
SELECT ALL col0 * - col2 * + CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3522
SELECT ALL col0 * - col2 * + CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ( col2 ) * col1 - col1 + + - 21 + - + col0 FROM tab2 AS cor0
----
1055
2918
3723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 20 col0 FROM tab2 cor0
----
-20
-20
-20

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 / + col1 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT ALL MAX( DISTINCT - - 88 ) col1 FROM tab0 cor0
----
88

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3526
SELECT ALL MAX ( DISTINCT - - 88 ) col1 FROM tab0 cor0
----
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3527
SELECT ALL + MAX( ALL - + 96 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3527
SELECT ALL + MAX ( ALL - + 96 ) AS col0 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3528
SELECT - + col1 / + - CAST( NULL AS SIGNED ) - - col0 * - col1 * - col2 / + ( - col2 ) + - - col1 + - - col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3528
SELECT - + col1 / + - CAST ( NULL AS INTEGER ) - - col0 * - col1 * - col2 / + ( - col2 ) + - - col1 + - - col2 * - col2 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3529
SELECT ALL - - CAST( + - COUNT( * ) AS SIGNED ) AS col1 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3529
SELECT ALL - - CAST ( + - COUNT ( * ) AS INTEGER ) AS col1 FROM tab1 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + + 40 ) col0 FROM tab0
----
40

onlyif mysql # DIV for integer division: 
query I rowsort label-3531
SELECT ALL - col2 DIV + - col0 col0 FROM tab1
----
0
0
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3531
SELECT ALL - col2 / + - col0 col0 FROM tab1
----
0
0
1

query III rowsort
SELECT * FROM tab2 WHERE col0 * + col1 IS NULL AND ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 78 + - 7 * - ( - + 84 ) AS col2 FROM tab1
----
-666

query I rowsort
SELECT ALL + col0 + - col0 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col2 col1 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT + col0 AS col0 FROM tab2 AS cor0 WHERE ( - - 23 IS NOT NULL )
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT - 30 + - + COUNT( * ) AS col2 FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-3537
SELECT - 30 + - + COUNT ( * ) AS col2 FROM tab1
----
-33

query I rowsort
SELECT 54 + 88 AS col2 FROM tab2
----
142
142
142

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 5 col2 FROM tab1 AS cor0 WHERE - col0 NOT IN ( col2 )
----
235
25
70

query II rowsort
SELECT + col0, col2 * - - col1 FROM tab2 AS cor0
----
46
1173
64
3080
75
3886

onlyif mysql # aggregate syntax: 
query I rowsort label-3541
SELECT SUM( + - col2 ) AS col0 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3541
SELECT SUM ( + - col2 ) AS col0 FROM tab1 AS cor0
----
-223

query II rowsort
SELECT col1, 85 + - 14 AS col0 FROM tab2 AS cor0
----
51
71
67
71
77
71

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 ) / - col2 IN ( - + 39 * - col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col2, ( 68 ) FROM tab1 AS cor0
----
-59
68
-68
68
-96
68

query II rowsort
SELECT DISTINCT + col2, + 16 FROM tab0 cor0
----
10
16
47
16
99
16

query I rowsort
SELECT - - col2 * - - 70 AS col1 FROM tab0 WHERE NULL IS NULL
----
3290
6930
700

query I rowsort
SELECT - 87 - col2 AS col2 FROM tab2
----
-110
-127
-145

onlyif mysql # aggregate syntax: 
query I rowsort label-3548
SELECT DISTINCT - SUM( ALL - + 59 ) FROM tab1
----
177

skipif mysql # not compatible
query I rowsort label-3548
SELECT DISTINCT - SUM ( ALL - + 59 ) FROM tab1
----
177

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col2 + + col0 * - - col0 * col0 + col2 col1 FROM tab0
----
3550
658544
912872

query I rowsort
SELECT col0 + + 8 * - col2 * col0 FROM tab0
----
-5625
-6873
-76727

query I rowsort
SELECT ALL col2 * - col0 FROM tab2 WHERE NOT ( NOT + col2 + - 72 NOT BETWEEN NULL AND - col0 )
----
-2560
-4350

query I rowsort
SELECT DISTINCT + 76 + 43 * 38 FROM tab2
----
1710

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( + + 17 ) AS col0, col1 * + col2 col1 FROM tab1 AS cor0
----
-17
1344
-17
295
-17
3196

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 BETWEEN col1 AND NULL
----

query I rowsort
SELECT + 60 AS col1 FROM tab1 cor0
----
60
60
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 40 col2 FROM tab2 AS cor0
----
40
40
40

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 88 + 32 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 + + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3559
SELECT DISTINCT + 22 DIV - col0 + 86 FROM tab0
----
85
86

skipif mysql # not compatible
query I rowsort label-3559
SELECT DISTINCT + 22 / - col0 + 86 FROM tab0
----
85
86

onlyif mysql # aggregate syntax: 
query I rowsort label-3560
SELECT DISTINCT - - MIN( - + ( 6 ) ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-3560
SELECT DISTINCT - - MIN ( - + ( 6 ) ) FROM tab2 AS cor0
----
-6

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT - 56 DIV + col0 col0 FROM tab1 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3561
SELECT - 56 / + col0 col0 FROM tab1 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3562
SELECT - SUM( + ( + CAST( NULL AS SIGNED ) ) ) - + MAX( 90 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3562
SELECT - SUM ( + ( + CAST ( NULL AS INTEGER ) ) ) - + MAX ( 90 ) AS col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 93 - + col0 + + 36 col2 FROM tab1
----
38
44
78

query I rowsort
SELECT - + col1 + - col1 + - col1 AS col1 FROM tab1 AS cor0
----
-141
-15
-42

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN - col1 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 68 - - - col2 col2 FROM tab0 AS cor0
----
-115
-167
-78

query I rowsort
SELECT 86 + - + col0 FROM tab0 cor0
----
-1
-11
71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3568
SELECT ALL SUM( ALL col2 ) - - - 42 AS col1, CAST( NULL AS SIGNED ) * - 87 AS col1 FROM tab0 AS cor0
----
114
NULL

skipif mysql # not compatible
query II rowsort label-3568
SELECT ALL SUM ( ALL col2 ) - - - 42 AS col1, CAST ( NULL AS INTEGER ) * - 87 AS col1 FROM tab0 AS cor0
----
114
NULL

query I rowsort
SELECT ALL - + 97 * - col0 * + 79 FROM tab2 AS cor0 WHERE - ( ( col0 ) ) IS NOT NULL
----
352498
490432
574725

query I rowsort
SELECT DISTINCT + ( + 47 ) - + col0 AS col0 FROM tab1
----
-38
-4
-44

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 40 * - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - col0 * 60 * col2 AS col2 FROM tab1
----
-293760
-300900
-371280

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN - col0 AND 63
----

query I rowsort
SELECT + col1 * - col0 * + col2 FROM tab1
----
-25075
-290836
-68544

query III rowsort
SELECT DISTINCT col1 AS col2, + col2 * - col0 * - col2 AS col2, - + col1 FROM tab0 AS cor0
----
9 values hashing to f0ede127224dc5d7215dc0d6bd2ec0cb

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT + col1 / - col0 - + CAST( NULL AS SIGNED ) AS col0 FROM tab0 WHERE NOT NULL < CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3576
SELECT + col1 / - col0 - + CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT NULL < CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT - - 71 * + 46 AS col2 FROM tab2 AS cor0
----
3266
3266
3266

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( col2 - - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col0 + + 10 FROM tab1 AS cor0
----
101
61
95

query I rowsort
SELECT ALL - ( ( + col1 ) ) * - - col1 FROM tab0 cor0
----
-1
-441
-6561

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3581
SELECT COUNT( * ) DIV - 69 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3581
SELECT COUNT ( * ) / - 69 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3582
SELECT col0, col0 * - + CAST( NULL AS SIGNED ) * - - 24 FROM tab2
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-3582
SELECT col0, col0 * - + CAST ( NULL AS INTEGER ) * - - 24 FROM tab2
----
46
NULL
64
NULL
75
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT DISTINCT + COUNT( * ) * CAST( - 39 AS SIGNED ) * COUNT( * ) * 34 FROM tab1
----
-11934

skipif mysql # not compatible
query I rowsort label-3583
SELECT DISTINCT + COUNT ( * ) * CAST ( - 39 AS INTEGER ) * COUNT ( * ) * 34 FROM tab1
----
-11934

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - col0 NOT BETWEEN NULL AND + 67
----

query I rowsort
SELECT ALL ( + 88 ) * + - 97 * - col2 + - col1 AS col0 FROM tab0
----
401111
845063
85339

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT ALL COUNT( * ) + + - 36 FROM tab2
----
-33

skipif mysql # not compatible
query I rowsort label-3586
SELECT ALL COUNT ( * ) + + - 36 FROM tab2
----
-33

query I rowsort
SELECT DISTINCT - col0 + + + 46 AS col1 FROM tab0 AS cor0
----
-41
-51
31

query II rowsort
SELECT ALL 45 * + 82 - - - 30 AS col1, 24 + - col1 FROM tab2 AS cor0
----
3660
-27
3660
-43
3660
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-3589
SELECT ALL - SUM( - col2 ) * 99 AS col0 FROM tab1
----
22077

skipif mysql # not compatible
query I rowsort label-3589
SELECT ALL - SUM ( - col2 ) * 99 AS col0 FROM tab1
----
22077

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * + 27 + + ( + + 95 ) + + 57 + + col1 col0 FROM tab1
----
1750
2035
2758

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3591
SELECT COUNT( * ) AS col1 FROM tab0 WHERE col0 * + col2 + - 96 BETWEEN NULL AND + + CAST( + + CAST( - - col0 AS SIGNED ) AS SIGNED )
----
0

skipif mysql # not compatible
query I rowsort label-3591
SELECT COUNT ( * ) AS col1 FROM tab0 WHERE col0 * + col2 + - 96 BETWEEN NULL AND + + CAST ( + + CAST ( - - col0 AS INTEGER ) AS INTEGER )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3592
SELECT DISTINCT COUNT( * ) + 2 * 29 * - - MIN( + - col2 ) FROM tab1
----
-5565

skipif mysql # not compatible
query I rowsort label-3592
SELECT DISTINCT COUNT ( * ) + 2 * 29 * - - MIN ( + - col2 ) FROM tab1
----
-5565

query I rowsort
SELECT - col2 + + 71 AS col0 FROM tab1
----
-25
12
3

query II rowsort
SELECT ALL + col1 + + 1, col1 * + col2 * 54 AS col2 FROM tab0 AS cor0
----
2
5346
22
11340
82
205578

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + ( + - col0 ) + - + 77 + col0 col1 FROM tab2 cor0 WHERE + 97 + + col1 = + 76 * + col1
----

query I rowsort
SELECT DISTINCT + col2 * + + ( 18 ) * + col1 - - - col0 + + 49 FROM tab1 AS cor0
----
24190
5274
57486

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL < col2
----

query I rowsort
SELECT ( 34 ) * + 20 * + col1 AS col0 FROM tab2 AS cor0
----
34680
45560
52360

query I rowsort
SELECT ALL + col1 FROM tab1 WHERE NOT - + col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3600
SELECT ALL MIN( 40 ) DIV + + 46 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL MIN ( 40 ) / + + 46 AS col0 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3601
SELECT 59, MAX( col1 ) col0 FROM tab0
----
59
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3601
SELECT 59, MAX ( col1 ) col0 FROM tab0
----
59
81

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + 16 * + col1 * + 21 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3603
SELECT - SUM( DISTINCT + + 25 ) FROM tab2
----
-25

skipif mysql # not compatible
query I rowsort label-3603
SELECT - SUM ( DISTINCT + + 25 ) FROM tab2
----
-25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT + ( - col1 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3606
SELECT - COUNT( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3606
SELECT - COUNT ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 81 col0 FROM tab0 AS cor0
----
81
81
81

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3608
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - CAST( NULL AS DECIMAL ) * + col1
----

skipif mysql # not compatible
query III rowsort label-3608
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND - CAST ( NULL AS REAL ) * + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3609
SELECT ALL - COUNT( - - 49 ) * - COUNT( * ) AS col2 FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3609
SELECT ALL - COUNT ( - - 49 ) * - COUNT ( * ) AS col2 FROM tab2
----
9

query I rowsort
SELECT ( + 48 ) AS col1 FROM tab1
----
48
48
48

query I rowsort
SELECT DISTINCT - 79 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-3612
SELECT - - COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 52 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3612
SELECT - - COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NOT - 52 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3613
SELECT DISTINCT MIN( ALL + ( col2 ) ) - - 1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
60

skipif mysql # not compatible
query I rowsort label-3613
SELECT DISTINCT MIN ( ALL + ( col2 ) ) - - 1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
60

onlyif mysql # DIV for integer division: 
query I rowsort label-3614
SELECT - 10 DIV - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3614
SELECT - 10 / - col0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL + col1 - - col1 + - + ( 53 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3616
SELECT DISTINCT + col1, - CAST( NULL AS SIGNED ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-3616
SELECT DISTINCT + col1, - CAST ( NULL AS INTEGER ) AS col0 FROM tab0 AS cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-3617
SELECT ALL - 99, COUNT( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-3617
SELECT ALL - 99, COUNT ( DISTINCT + col2 ) AS col2 FROM tab0 AS cor0
----
-99
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 11 * + + col0, col1 col2 FROM tab0 AS cor0
----
1067
1
165
81
957
21

query I rowsort
SELECT DISTINCT - col1 * - 23 FROM tab2 AS cor0
----
1173
1541
1771

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 31 col2 FROM tab0 cor0
----
31
31
31

query I rowsort
SELECT ALL + + col2 * + - col1 + + col0 FROM tab1 AS cor0
----
-1293
-210
-3105

query I rowsort
SELECT DISTINCT + col2 * + col1 * + col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3623
SELECT DISTINCT - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3623
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT col2 + + 39 AS col0 FROM tab0
----
138
49
86

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 35 / - + col1 / + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3626
SELECT ALL ( - col2 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3626
SELECT ALL ( - col2 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 AS col2 FROM tab1 WHERE col0 IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3628
SELECT DISTINCT - MAX( DISTINCT - col0 ) + + COUNT( * ) FROM tab1
----
54

skipif mysql # not compatible
query I rowsort label-3628
SELECT DISTINCT - MAX ( DISTINCT - col0 ) + + COUNT ( * ) FROM tab1
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3629
SELECT + - 8 FROM tab1 WHERE + col1 * - + CAST( NULL AS SIGNED ) IS NULL
----
-8
-8
-8

skipif mysql # not compatible
query I rowsort label-3629
SELECT + - 8 FROM tab1 WHERE + col1 * - + CAST ( NULL AS INTEGER ) IS NULL
----
-8
-8
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-3630
SELECT + - COUNT( * ) + + 41 FROM tab2 AS cor0
----
38

skipif mysql # not compatible
query I rowsort label-3630
SELECT + - COUNT ( * ) + + 41 FROM tab2 AS cor0
----
38

onlyif mysql # DIV for integer division: 
query I rowsort label-3631
SELECT col2 DIV ( + 78 ) + col0 AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN ( - 68 + + col1 ) AND col1
----
46
64

skipif mysql # not compatible
query I rowsort label-3631
SELECT col2 / ( + 78 ) + col0 AS col0 FROM tab2 AS cor0 WHERE col0 BETWEEN ( - 68 + + col1 ) AND col1
----
46
64

onlyif mysql # aggregate syntax: 
query I rowsort label-3632
SELECT ALL COUNT( * ) * + - 54 + + - 42 AS col1 FROM tab2
----
-204

skipif mysql # not compatible
query I rowsort label-3632
SELECT ALL COUNT ( * ) * + - 54 + + - 42 AS col1 FROM tab2
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT ALL + - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3633
SELECT ALL + - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3634
SELECT - COUNT( * ) * + - COUNT( * ) col0 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3634
SELECT - COUNT ( * ) * + - COUNT ( * ) col0 FROM tab0 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3635
SELECT + SUM( DISTINCT + + col1 ) FROM tab2 AS cor0
----
195

skipif mysql # not compatible
query I rowsort label-3635
SELECT + SUM ( DISTINCT + + col1 ) FROM tab2 AS cor0
----
195

query I rowsort
SELECT ALL - col1 * - col2 * - 17 + col0 FROM tab2 AS cor0 WHERE - 37 <= NULL
----

query II rowsort
SELECT ALL 59, + col1 FROM tab1 AS cor0
----
59
14
59
47
59
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3638
SELECT COUNT( + 24 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3638
SELECT COUNT ( + 24 ) FROM tab2 cor0
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-3639
SELECT - col1, col1 DIV + 53 AS col0 FROM tab2 AS cor0
----
-51
0
-67
1
-77
1

skipif mysql # not compatible
query II rowsort label-3639
SELECT - col1, col1 / + 53 AS col0 FROM tab2 AS cor0
----
-51
0
-67
1
-77
1

query I rowsort
SELECT DISTINCT 39 * col2 + - col2 AS col1 FROM tab0 AS cor0
----
1786
3762
380

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3641
SELECT * FROM tab1 WHERE NOT + 87 * - - col1 IN ( col0 - - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3641
SELECT * FROM tab1 WHERE NOT + 87 * - - col1 IN ( col0 - - CAST ( NULL AS INTEGER ) )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - col0 + col0 FROM tab1 WHERE NOT NULL NOT BETWEEN col2 AND - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 92 + - 99 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col2 * 81 AS col0 FROM tab0 AS cor0
----
-3807
-8019
-810

query I rowsort
SELECT - col1 * - col1 * + 62 AS col2 FROM tab0 AS cor0
----
27342
406782
62

query I rowsort
SELECT + - 6 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e92b2679faac7be63701967e3f0c0934

query I rowsort
SELECT DISTINCT 45 + + 89 + 44 * + 11 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
618

query I rowsort
SELECT + 68 + - 29 FROM tab0 AS cor0
----
39
39
39

query I rowsort
SELECT ALL + 39 FROM tab0 cor0 WHERE NULL IS NULL
----
39
39
39

query I rowsort
SELECT 69 + - col0 * 15 + col1 FROM tab0 AS cor0
----
-1215
-1385
-75

query I rowsort
SELECT 31 + + col1 FROM tab2 AS cor0 WHERE NULL <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3653
SELECT DISTINCT - COUNT( * ) + + COUNT( * ) * + 72 FROM tab2 AS cor0
----
213

skipif mysql # not compatible
query I rowsort label-3653
SELECT DISTINCT - COUNT ( * ) + + COUNT ( * ) * + 72 FROM tab2 AS cor0
----
213

query I rowsort
SELECT + ( - + 17 ) AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 95 * - 53 * + + col2 AND ( col0 )
----

query I rowsort
SELECT ALL - - 21 * - col0 + + + col1 AS col0 FROM tab1 AS cor0
----
-1057
-1780
-1864

query I rowsort
SELECT DISTINCT - - col2 * + - col2 AS col2 FROM tab1 cor0
----
-3481
-4624
-9216

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) IN ( - + 61, - 91 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT col2 - col1 + - col0 / col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3659
SELECT ALL COUNT( * ) + MIN( DISTINCT - col1 ) FROM tab0
----
-78

skipif mysql # not compatible
query I rowsort label-3659
SELECT ALL COUNT ( * ) + MIN ( DISTINCT - col1 ) FROM tab0
----
-78

query II rowsort
SELECT ALL + col0 AS col2, ( - + 48 ) FROM tab1
----
51
-48
85
-48
91
-48

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT - COUNT( - - col2 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT - COUNT ( - - col2 ) AS col0 FROM tab1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT COUNT( * ) * - + 43 AS col0 FROM tab1
----
-129

skipif mysql # not compatible
query I rowsort label-3662
SELECT COUNT ( * ) * - + 43 AS col0 FROM tab1
----
-129

onlyif mysql # aggregate syntax: 
query I rowsort label-3663
SELECT + ( MIN( ALL - + col2 ) ) AS col1 FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-3663
SELECT + ( MIN ( ALL - + col2 ) ) AS col1 FROM tab2
----
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-3664
SELECT + 77 * + MAX( ALL - 39 ) FROM tab0
----
-3003

skipif mysql # not compatible
query I rowsort label-3664
SELECT + 77 * + MAX ( ALL - 39 ) FROM tab0
----
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3665
SELECT DISTINCT CAST( NULL AS SIGNED ) + - + col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3665
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - + col0 FROM tab2
----
NULL

query I rowsort
SELECT - col2 * + - 6 AS col0 FROM tab0
----
282
594
60

query I rowsort
SELECT DISTINCT - col0 + col2 + + + col1 + + col1 + - - col1 + - + col2 * col0 FROM tab1
----
-4809
-5026
-6070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * - - col2 * col0 + 7 * - 72 col2 FROM tab1
----
24571
290332
68040

query I rowsort
SELECT ALL + + ( - + col2 ) AS col2 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3670
SELECT - - CAST( NULL AS SIGNED ) FROM tab0 cor0 WHERE - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-3670
SELECT - - CAST ( NULL AS INTEGER ) FROM tab0 cor0 WHERE - col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 46 + + col2 + + 79 col0 FROM tab0 AS cor0
----
135
172
224

onlyif mysql # aggregate syntax: 
query II rowsort label-3672
SELECT ALL - COUNT( * ) AS col0, 97 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
-3
291

skipif mysql # not compatible
query II rowsort label-3672
SELECT ALL - COUNT ( * ) AS col0, 97 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
291

query I rowsort
SELECT ALL + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT 0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, ( + 90 ), col0, + - col0 * - - 5, - - CAST( NULL AS SIGNED ) * + 45 )
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT 0 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( col0, ( + 90 ), col0, + - col0 * - - 5, - - CAST ( NULL AS INTEGER ) * + 45 )
----

query I rowsort
SELECT DISTINCT + + col1 * + col0 FROM tab1 cor0
----
425
4277
714

query II rowsort
SELECT ALL col1 * 69 AS col2, + col1 FROM tab2 cor0
----
3519
51
4623
67
5313
77

query I rowsort
SELECT DISTINCT + 0 * + col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3678
SELECT - COUNT( * ), COUNT( * ) + - 87 AS col1 FROM tab2
----
-3
-84

skipif mysql # not compatible
query II rowsort label-3678
SELECT - COUNT ( * ), COUNT ( * ) + - 87 AS col1 FROM tab2
----
-3
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3679
SELECT DISTINCT - COUNT( + 41 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3679
SELECT DISTINCT - COUNT ( + 41 ) col2 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3680
SELECT + ( SUM( + 2 ) ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-3680
SELECT + ( SUM ( + 2 ) ) FROM tab1
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3681
SELECT ALL + MAX( col2 ) col2 FROM tab1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3681
SELECT ALL + MAX ( col2 ) col2 FROM tab1
----
96

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN 3 AND NULL
----

query I rowsort
SELECT 19 + - + col2 AS col1 FROM tab2 AS cor0
----
-21
-39
-4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 46 ) NOT IN ( col0 )
----

query I rowsort
SELECT + + col2 AS col1 FROM tab1 AS cor0 WHERE NOT ( col2 IS NOT NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3686
SELECT - CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3686
SELECT - CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3687
SELECT DISTINCT - CAST( - + 30 AS SIGNED ) FROM tab2 cor0
----
30

skipif mysql # not compatible
query I rowsort label-3687
SELECT DISTINCT - CAST ( - + 30 AS INTEGER ) FROM tab2 cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-3688
SELECT DISTINCT MAX( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3688
SELECT DISTINCT MAX ( DISTINCT + col0 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3689
SELECT DISTINCT CAST( - col0 AS SIGNED ) + + 24 + ( 72 ) * 70 FROM tab2 AS cor0
----
4989
5000
5018

skipif mysql # not compatible
query I rowsort label-3689
SELECT DISTINCT CAST ( - col0 AS INTEGER ) + + 24 + ( 72 ) * 70 FROM tab2 AS cor0
----
4989
5000
5018

query I rowsort
SELECT col0 * ( col1 ) * - col1 AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-201019
-2125
-9996

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + ( - + 66 ) col0 FROM tab1 AS cor0
----
66
66
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3692
SELECT + col0 + - col1 col2 FROM tab2 WHERE - CAST( + col1 AS DECIMAL ) NOT BETWEEN - 62 - 99 * - col0 AND NULL
----
-13
-5
8

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3692
SELECT + col0 + - col1 col2 FROM tab2 WHERE - CAST ( + col1 AS REAL ) NOT BETWEEN - 62 - 99 * - col0 AND NULL
----
-13
-5
8

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 <> - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3694
SELECT + 70 * + MIN( DISTINCT 21 ) + + 80 / + CAST( NULL AS SIGNED ) AS col2 FROM tab1 WHERE - ( + + col0 ) BETWEEN - col1 AND + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-3694
SELECT + 70 * + MIN ( DISTINCT 21 ) + + 80 / + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 WHERE - ( + + col0 ) BETWEEN - col1 AND + col1
----
NULL

query I rowsort
SELECT ALL col2 + + - col2 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 97 AND NULL
----

query I rowsort
SELECT DISTINCT + 12 - col0 AS col2 FROM tab1 AS cor0
----
-39
-73
-79

query I rowsort
SELECT ALL - + 61 + 1 FROM tab1 AS cor0
----
-60
-60
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3699
SELECT + MIN( ALL - + 96 ) FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3699
SELECT + MIN ( ALL - + 96 ) FROM tab0 AS cor0
----
-96

query I rowsort
SELECT - - col2 / - col2 AS col1 FROM tab0 AS cor0 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT + col2 - col2 + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT + col2 - col2 + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3702
SELECT DISTINCT + ( 83 ) * CAST( + col1 AS SIGNED ) * ( - + col2 ) AS col2 FROM tab1
----
-111552
-24485
-265268

skipif mysql # not compatible
query I rowsort label-3702
SELECT DISTINCT + ( 83 ) * CAST ( + col1 AS INTEGER ) * ( - + col2 ) AS col2 FROM tab1
----
-111552
-24485
-265268

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT DISTINCT + 7 * + - COUNT( * ) AS col1 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-3703
SELECT DISTINCT + 7 * + - COUNT ( * ) AS col1 FROM tab0
----
-21

query I rowsort
SELECT col1 * col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
425
4277
714

onlyif mysql # DIV for integer division: 
query I rowsort label-3705
SELECT ALL + - 58 DIV - col0 + + col0 AS col0 FROM tab0 AS cor0
----
18
87
97

skipif mysql # not compatible
query I rowsort label-3705
SELECT ALL + - 58 / - col0 + + col0 AS col0 FROM tab0 AS cor0
----
18
87
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3706
SELECT - COUNT( * ) AS col1, + 31 FROM tab0 AS cor0
----
-3
31

skipif mysql # not compatible
query II rowsort label-3706
SELECT - COUNT ( * ) AS col1, + 31 FROM tab0 AS cor0
----
-3
31

query II rowsort
SELECT DISTINCT - col1 AS col2, col0 FROM tab2 AS cor0
----
-51
46
-67
75
-77
64

onlyif mysql # DIV for integer division: 
query I rowsort label-3708
SELECT + 43 DIV col0 + - col2 + + col2 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3708
SELECT + 43 / col0 + - col2 + + col2 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT ( - + 42 * + col1 BETWEEN 67 AND NULL )
----
46
64
75

query I rowsort
SELECT + - 18 * col2 AS col1 FROM tab2 AS cor0
----
-1044
-414
-720

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE 93 BETWEEN - ( col0 ) * + - ( - col1 ) - + col2 AND NULL
----

query II rowsort
SELECT - + 89, 59 + - - ( + - col0 ) AS col2 FROM tab1 AS cor0
----
-89
-26
-89
-32
-89
8

query I rowsort
SELECT DISTINCT + 73 * - col0 AS col0 FROM tab2
----
-3358
-4672
-5475

onlyif mysql # aggregate syntax: 
query I rowsort label-3714
SELECT ALL COUNT( * ) * - 37 * + 35 FROM tab1
----
-3885

skipif mysql # not compatible
query I rowsort label-3714
SELECT ALL COUNT ( * ) * - 37 * + 35 FROM tab1
----
-3885

query I rowsort
SELECT DISTINCT - 46 * + 73 FROM tab0
----
-3358

query I rowsort
SELECT - 66 * - 36 * col0 AS col2 FROM tab1
----
121176
201960
216216

onlyif mysql # aggregate syntax: 
query I rowsort label-3717
SELECT COUNT( * ) * + - COUNT( + + col1 ) FROM tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3717
SELECT COUNT ( * ) * + - COUNT ( + + col1 ) FROM tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT 93 + + col1 FROM tab1 AS cor0
----
107
140
98

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3719
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST( + 37 AS SIGNED ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3719
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT CAST ( + 37 AS INTEGER ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3720
SELECT DISTINCT + 63 * + + 53 + - MIN( - - col1 ) AS col1, + 11 FROM tab1 AS cor0 WHERE NOT - col1 <> 84
----
NULL
11

skipif mysql # not compatible
query II rowsort label-3720
SELECT DISTINCT + 63 * + + 53 + - MIN ( - - col1 ) AS col1, + 11 FROM tab1 AS cor0 WHERE NOT - col1 <> 84
----
NULL
11

query I rowsort
SELECT ALL col0 * + col2 * - ( col0 ) AS col2 FROM tab0
----
-10575
-75690
-931491

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + 11 col1 FROM tab0
----
108
26
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3723
SELECT ALL 22 * CAST( ( 9 ) AS SIGNED ) - ( + col1 ) col0 FROM tab2 AS cor0 WHERE - col2 + + col2 * - + ( - + 46 ) * + - col0 * + CAST( - ( ( + - col1 ) ) AS SIGNED ) IS NOT NULL
----
121
131
147

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3723
SELECT ALL 22 * CAST ( ( 9 ) AS INTEGER ) - ( + col1 ) col0 FROM tab2 AS cor0 WHERE - col2 + + col2 * - + ( - + 46 ) * + - col0 * + CAST ( - ( ( + - col1 ) ) AS INTEGER ) IS NOT NULL
----
121
131
147

onlyif mysql # aggregate syntax: 
query I rowsort label-3724
SELECT DISTINCT + COUNT( * ) + 33 AS col1 FROM tab2 AS cor0
----
36

skipif mysql # not compatible
query I rowsort label-3724
SELECT DISTINCT + COUNT ( * ) + 33 AS col1 FROM tab2 AS cor0
----
36

query I rowsort
SELECT ALL col2 + + 58 FROM tab2 AS cor0
----
116
81
98

query I rowsort
SELECT col1 - + - 16 FROM tab2
----
67
83
93

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3727
SELECT DISTINCT + 45 + - CAST( + + CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3727
SELECT DISTINCT + 45 + - CAST ( + + CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT - col0 + - + col0 AS col1 FROM tab2
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 67 ) * - - col1 + - col2, - col2 col1 FROM tab1 cor0
----
-1034
-96
-3217
-68
-394
-59

query I rowsort
SELECT - ( col0 ) * - 27 * + col1 + 53 AS col1 FROM tab2
----
133109
135728
63395

query I rowsort
SELECT DISTINCT + 46 * + + 44 AS col2 FROM tab0
----
2024

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3732
SELECT DISTINCT + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3732
SELECT DISTINCT + CAST ( + - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT col2 * + 14 * col2 AS col0 FROM tab0 AS cor0
----
137214
1400
30926

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3734
SELECT * FROM tab1 AS cor0 WHERE NOT 57 IN ( - + 43, CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3734
SELECT * FROM tab1 AS cor0 WHERE NOT 57 IN ( - + 43, CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3735
SELECT ALL MIN( + 42 ) * + - SUM( ALL + + col1 ) + - COUNT( * ) AS col1 FROM tab0
----
-4329

skipif mysql # not compatible
query I rowsort label-3735
SELECT ALL MIN ( + 42 ) * + - SUM ( ALL + + col1 ) + - COUNT ( * ) AS col1 FROM tab0
----
-4329

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 27 * - + col2 * - col2 ) > + 80
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3737
SELECT MAX( - CAST( + 35 AS SIGNED ) ) col1 FROM tab0
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3737
SELECT MAX ( - CAST ( + 35 AS INTEGER ) ) col1 FROM tab0
----
-35

onlyif mysql # DIV for integer division: 
query II rowsort label-3738
SELECT col1, 94 DIV col2 DIV + + 11 AS col1 FROM tab2
----
51
0
67
0
77
0

skipif mysql # not compatible
query II rowsort label-3738
SELECT col1, 94 / col2 / + + 11 AS col1 FROM tab2
----
51
0
67
0
77
0

query II rowsort
SELECT DISTINCT + col0 * + col0, col2 AS col1 FROM tab1
----
2601
96
7225
59
8281
68

query II rowsort
SELECT ALL + 47 * - 9 + + col0 + + col0 AS col2, + col1 FROM tab0
----
-229
1
-249
21
-393
81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 col0, - ( + col0 ) FROM tab2
----
-51
-46
-67
-75
-77
-64

query I rowsort
SELECT + 92 AS col1 FROM tab0 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT col0 + + 27 AS col2 FROM tab1
----
112
118
78

query II rowsort
SELECT ALL + 7 + col1, - 83 AS col0 FROM tab1
----
12
-83
21
-83
54
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3745
SELECT DISTINCT + col1 * + 91 + col1 DIV + ( - + col2 ) + 45 AS col1 FROM tab1
----
1319
4322
500

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT + col1 * + 91 + col1 / + ( - + col2 ) + 45 AS col1 FROM tab1
----
1319
4322
500

query I rowsort
SELECT DISTINCT + col0 - col1 + col1 * - ( + - col2 ) AS col2 FROM tab2 cor0
----
1168
3067
3894

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 - + col1 + col1 col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT + col0 * + + 50 + ( + col0 ) - - - 1 FROM tab2 AS cor0
----
2345
3263
3824

query I rowsort
SELECT - 86 + - col1 AS col0 FROM tab0 AS cor0
----
-107
-167
-87

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3750
SELECT ALL AVG ( CAST( NULL AS SIGNED ) ) - + COUNT( * ) / - COUNT( * ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3750
SELECT ALL AVG ( CAST ( NULL AS INTEGER ) ) - + COUNT ( * ) / - COUNT ( * ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3751
SELECT - 96 + - MAX( ALL + col2 ) FROM tab2 AS cor0
----
-154

skipif mysql # not compatible
query I rowsort label-3751
SELECT - 96 + - MAX ( ALL + col2 ) FROM tab2 AS cor0
----
-154

query I rowsort
SELECT DISTINCT - col0 - + + col1 + + 69 FROM tab1 AS cor0
----
-21
-69
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT DISTINCT + MAX( DISTINCT + col2 ) FROM tab2
----
58

skipif mysql # not compatible
query I rowsort label-3753
SELECT DISTINCT + MAX ( DISTINCT + col2 ) FROM tab2
----
58

query II rowsort
SELECT + col2, + 92 AS col1 FROM tab2 WHERE NULL <> NULL
----

query I rowsort
SELECT ALL - - AVG ( - col2 ) AS col2 FROM tab2 WHERE NOT - 95 <= + 48 * + col2 - - col0 + + col2
----
NULL

query I rowsort
SELECT - - col1 AS col0 FROM tab0 WHERE 38 - + + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - 7 col1 FROM tab2
----
-322
-448
-525

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3758
SELECT MIN( ALL CAST( - col2 AS SIGNED ) ) * + MAX( DISTINCT + col2 ) + + COUNT( * ) FROM tab1
----
-9213

skipif mysql # not compatible
query I rowsort label-3758
SELECT MIN ( ALL CAST ( - col2 AS INTEGER ) ) * + MAX ( DISTINCT + col2 ) + + COUNT ( * ) FROM tab1
----
-9213

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 col0, 51 FROM tab1 AS cor0
----
51
51
85
51
91
51

query I rowsort
SELECT + + col1 * 69 FROM tab2 AS cor0
----
3519
4623
5313

onlyif mysql # DIV for integer division: 
query I rowsort label-3761
SELECT + + col0 DIV + 85 AS col2 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3761
SELECT + + col0 / + 85 AS col2 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3762
SELECT DISTINCT - MIN( - - col1 ) FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3762
SELECT DISTINCT - MIN ( - - col1 ) FROM tab0 AS cor0
----
-1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 88 IS NOT NULL
----

query I rowsort
SELECT ALL - 88 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 467301f887614eb7beda22c561b0fad2

onlyif mysql # aggregate syntax: 
query I rowsort label-3765
SELECT DISTINCT - + SUM( + 28 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-252

skipif mysql # not compatible
query I rowsort label-3765
SELECT DISTINCT - + SUM ( + 28 ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
-252

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3766
SELECT - col1 * - CAST( col2 AS SIGNED ) * col1 AS col1 FROM tab1 AS cor0
----
1475
150212
18816

skipif mysql # not compatible
query I rowsort label-3766
SELECT - col1 * - CAST ( col2 AS INTEGER ) * col1 AS col1 FROM tab1 AS cor0
----
1475
150212
18816

query I rowsort
SELECT - 78 * + col0 * - 28 FROM tab2 AS cor0
----
100464
139776
163800

query I rowsort
SELECT - - col0 FROM tab0 AS cor0 WHERE NOT - col0 = + 28 * - 20
----
15
87
97

query I rowsort
SELECT + 83 * + col1 AS col2 FROM tab1 AS cor0
----
1162
3901
415

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3770
SELECT - 92 * + + ( + CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3770
SELECT - 92 * + + ( + CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 * + col0 * 57 FROM tab2 AS cor0
----
-120612
-233472
-320625

onlyif mysql # aggregate syntax: 
query I rowsort label-3772
SELECT COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 63 / + + 69 BETWEEN - col1 AND - 89
----
3

skipif mysql # not compatible
query I rowsort label-3772
SELECT COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + 63 / + + 69 BETWEEN - col1 AND - 89
----
3

query I rowsort
SELECT col2 / + col0 FROM tab2 WHERE NOT + 70 NOT BETWEEN + col2 * + 48 AND - ( col0 )
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE + col0 + - col0 * + 44 - + col1 - + col2 - - col1 * + col1 / - - col2 + + 58 * + col1 * - col0 IS NULL
----

query I rowsort
SELECT ALL - 51 + col0 AS col0 FROM tab2
----
-5
13
24

query I rowsort
SELECT DISTINCT col1 + + ( + ( - - 48 ) ) FROM tab1
----
53
62
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3777
SELECT DISTINCT + CAST( - 16 AS SIGNED ) + - - col1 FROM tab0 AS cor0
----
-15
5
65

skipif mysql # not compatible
query I rowsort label-3777
SELECT DISTINCT + CAST ( - 16 AS INTEGER ) + - - col1 FROM tab0 AS cor0
----
-15
5
65

query II rowsort
SELECT DISTINCT - + col1 AS col2, + 87 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 * + col0 IS NULL )
----
-1
87
-21
87
-81
87

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * - + col0 / - col1 <> NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 97 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3781
SELECT DISTINCT 6 DIV COUNT( * ) FROM tab1
----
2

skipif mysql # not compatible
query I rowsort label-3781
SELECT DISTINCT 6 / COUNT ( * ) FROM tab1
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * + ( - 89 ) + + 8 col2 FROM tab0 WHERE 6 IS NULL
----

query I rowsort
SELECT col0 * + - col0 + - + col1 AS col2 FROM tab2
----
-2167
-4173
-5692

query I rowsort
SELECT ALL - 46 FROM tab1 AS cor0 WHERE + 15 IS NULL
----

query I rowsort
SELECT ALL + col2 + + 41 FROM tab0 AS cor0
----
140
51
88

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3786
SELECT DISTINCT CAST( - 57 AS SIGNED ) DIV - col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3786
SELECT DISTINCT CAST ( - 57 AS INTEGER ) / - col1 FROM tab2 AS cor0
----
0
1

query I rowsort
SELECT DISTINCT - 10 * 60 * - col1 * + + col1 - - col1 * col0 * + 92 - - - 22 AS col2 FROM tab2 cor0
----
1776410
3155678
4010754

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3788
SELECT ALL - CAST( - CAST( + 0 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3788
SELECT ALL - CAST ( - CAST ( + 0 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3789
SELECT DISTINCT + col1 * col0 / - 18 - - + 15 * CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3789
SELECT DISTINCT + col1 * col0 / - 18 - - + 15 * CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3790
SELECT 16 DIV - col1 AS col1 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3790
SELECT 16 / - col1 AS col1 FROM tab1
----
-1
-3
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 34 * + col1 col0 FROM tab2
----
1734
2278
2618

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT ( + - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT ( + - col1 ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 16 FROM tab0 WHERE NOT NULL IS NOT NULL
----
16

onlyif mysql # aggregate syntax: 
query I rowsort label-3794
SELECT + SUM( DISTINCT + - col0 ) * - 81 - + COUNT( * ) col1 FROM tab1
----
18384

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3794
SELECT + SUM ( DISTINCT + - col0 ) * - 81 - + COUNT ( * ) col1 FROM tab1
----
18384

query I rowsort
SELECT 68 FROM tab2 WHERE NOT ( 94 IS NULL )
----
68
68
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL < 34 * col0
----

query I rowsort
SELECT + col0 * + col0 AS col0 FROM tab1 AS cor0 WHERE NOT - col2 * col2 < - col2 + + col1 * + col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 <> - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3799
SELECT ALL + col2, 89 + - CAST( - col2 AS SIGNED ) FROM tab2
----
23
112
40
129
58
147

skipif mysql # not compatible
query II rowsort label-3799
SELECT ALL + col2, 89 + - CAST ( - col2 AS INTEGER ) FROM tab2
----
23
112
40
129
58
147

query I rowsort
SELECT DISTINCT - 39 * + col0 AS col1 FROM tab2
----
-1794
-2496
-2925

query I rowsort
SELECT 10 * + 26 FROM tab2
----
260
260
260

query II rowsort
SELECT DISTINCT 80, 14 AS col0 FROM tab0 AS cor0
----
80
14

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( col2 * col0 BETWEEN NULL AND NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3804
SELECT - CAST( - 72 AS SIGNED ) * + col2 * + col1 * col2 - - 64 + + + 2 + col1 FROM tab0 AS cor0
----
12883035
151287
705739

skipif mysql # not compatible
query I rowsort label-3804
SELECT - CAST ( - 72 AS INTEGER ) * + col2 * + col1 * col2 - - 64 + + + 2 + col1 FROM tab0 AS cor0
----
12883035
151287
705739

query I rowsort
SELECT 17 * col1 * 54 FROM tab0
----
19278
74358
918

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3806
SELECT col0 + + 10 + - - CAST( col2 AS SIGNED ), ( + + col0 ) col2 FROM tab0
----
107
87
206
97
72
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3806
SELECT col0 + + 10 + - - CAST ( col2 AS INTEGER ), ( + + col0 ) col2 FROM tab0
----
107
87
206
97
72
15

query II rowsort
SELECT DISTINCT + + ( + - col2 ) AS col1, - col2 FROM tab0 WHERE 77 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( col0 ) <= + col1 * ( + + col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col1 + + - col1 AS col2 FROM tab2 AS cor0
----
-102
-134
-154

onlyif mysql # aggregate syntax: 
query I rowsort label-3810
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE 37 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3810
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE 37 <= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3811
SELECT - ( - - col0 ) * + col2 DIV ( + col2 ) * - 31 + + col1 * - col1 - + col2 FROM tab0 AS cor0
----
-6143
2246
2907

skipif mysql # not compatible
query I rowsort label-3811
SELECT - ( - - col0 ) * + col2 / ( + col2 ) * - 31 + + col1 * - col1 - + col2 FROM tab0 AS cor0
----
-6143
2246
2907

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - 10 AND NULL
----

query I rowsort
SELECT ALL 44 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to ab2bc2b9f8baa300df7755e5980a319d

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3814
SELECT * FROM tab2 AS cor0 WHERE + CAST( - 82 AS DECIMAL ) NOT BETWEEN 89 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3814
SELECT * FROM tab2 AS cor0 WHERE + CAST ( - 82 AS REAL ) NOT BETWEEN 89 AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + + - col1 AS col1 FROM tab0 AS cor0
----
-66
66
96

query I rowsort
SELECT 80 + 81 FROM tab1 AS cor0
----
161
161
161

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col1 IN ( + + col2, - 61 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 7 * + 1 FROM tab0
----
-7

query I rowsort
SELECT DISTINCT col0 * + 30 * col0 FROM tab1
----
216750
248430
78030

query I rowsort
SELECT - col0 * + ( + 13 ) AS col0 FROM tab0
----
-1131
-1261
-195

query II rowsort
SELECT + + col0 AS col2, col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT DISTINCT - col2 + col0 FROM tab1 AS cor0 WHERE col1 - - col0 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col0 BETWEEN - col2 AND - 62 * - 71 + - 61
----

query I rowsort
SELECT col2 * - - 60 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3540
4080
5760

query I rowsort
SELECT DISTINCT + - 15 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-15

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + 2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 <= 80 * - 91
----

query I rowsort
SELECT ALL + - col2 AS col2 FROM tab1 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT ALL col1 - - 69 AS col0 FROM tab1 AS cor0 WHERE NOT ( + 27 ) < NULL
----

query I rowsort
SELECT ALL ( - 32 ) FROM tab0 AS cor0
----
-32
-32
-32

onlyif mysql # DIV for integer division: 
query II rowsort label-3831
SELECT ALL + col2 DIV + 40 AS col1, + col0 FROM tab0 AS cor0
----
0
87
1
15
2
97

skipif mysql # not compatible
query II rowsort label-3831
SELECT ALL + col2 / + 40 AS col1, + col0 FROM tab0 AS cor0
----
0
87
1
15
2
97

onlyif mysql # aggregate syntax: 
query II rowsort label-3832
SELECT + COUNT( * ) * 57, + 13 * + - COUNT( * ) AS col1 FROM tab2 cor0
----
171
-39

skipif mysql # not compatible
query II rowsort label-3832
SELECT + COUNT ( * ) * 57, + 13 * + - COUNT ( * ) AS col1 FROM tab2 cor0
----
171
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3833
SELECT - SUM( - col2 ) FROM tab0 AS cor0 WHERE + 84 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3833
SELECT - SUM ( - col2 ) FROM tab0 AS cor0 WHERE + 84 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3834
SELECT DISTINCT col1 DIV + + 15 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-3834
SELECT DISTINCT col1 / + + 15 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3835
SELECT ALL - MIN( + + 73 ) FROM tab0
----
-73

skipif mysql # not compatible
query I rowsort label-3835
SELECT ALL - MIN ( + + 73 ) FROM tab0
----
-73

query I rowsort
SELECT ALL 93 + - col0 FROM tab1
----
2
42
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3837
SELECT MIN( - col2 ) AS col0 FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-3837
SELECT MIN ( - col2 ) AS col0 FROM tab0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-3838
SELECT - 11 DIV 58 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3838
SELECT - 11 / 58 AS col2 FROM tab1
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE + 72 BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3840
SELECT ALL ( CAST( AVG ( ALL - 60 ) AS SIGNED ) ) FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3840
SELECT ALL ( CAST ( AVG ( ALL - 60 ) AS INTEGER ) ) FROM tab0 cor0
----
-60

query I rowsort
SELECT ALL + 46 - + + col0 FROM tab0 AS cor0
----
-41
-51
31

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3842
SELECT + COUNT( * ) + + - ( 20 ) DIV 64 AS col2, + 66 AS col1 FROM tab1 AS cor0
----
3
66

skipif mysql # not compatible
query II rowsort label-3842
SELECT + COUNT ( * ) + + - ( 20 ) / 64 AS col2, + 66 AS col1 FROM tab1 AS cor0
----
3
66

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3843
SELECT + MAX( DISTINCT CAST( NULL AS SIGNED ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3843
SELECT + MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) FROM tab2 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3844
SELECT + 18 DIV - 22 - - col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3844
SELECT + 18 / - 22 - - col0 FROM tab1
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3845
SELECT DISTINCT + CAST( NULL AS SIGNED ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3845
SELECT DISTINCT + CAST ( NULL AS INTEGER ) col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT ( SUM( 21 ) ) / 45 AS col0 FROM tab1 WHERE NULL BETWEEN + col1 AND ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3846
SELECT ( SUM ( 21 ) ) / 45 AS col0 FROM tab1 WHERE NULL BETWEEN + col1 AND ( NULL )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3847
SELECT ALL - COUNT( * ) * + CAST( + 86 AS SIGNED ) AS col1 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-3847
SELECT ALL - COUNT ( * ) * + CAST ( + 86 AS INTEGER ) AS col1 FROM tab1
----
-258

onlyif mysql # aggregate syntax: 
query I rowsort label-3848
SELECT - COUNT( * ) + COUNT( * ) col1 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3848
SELECT - COUNT ( * ) + COUNT ( * ) col1 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3849
SELECT ALL * FROM tab2 WHERE col0 - col0 * - col2 NOT IN ( + CAST( NULL AS SIGNED ) * 15 + 12 )
----

skipif mysql # not compatible
query III rowsort label-3849
SELECT ALL * FROM tab2 WHERE col0 - col0 * - col2 NOT IN ( + CAST ( NULL AS INTEGER ) * 15 + 12 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3850
SELECT + COUNT( * ) + 26 * - COUNT( * ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-3850
SELECT + COUNT ( * ) + 26 * - COUNT ( * ) FROM tab2
----
-75

query I rowsort
SELECT ALL 53 + 32 FROM tab1
----
85
85
85

query I rowsort
SELECT ALL - col1 * 31 - col0 * col2 FROM tab0
----
-1521
-3216
-9634

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3853
SELECT * FROM tab1 WHERE NOT - CAST( + col0 AS SIGNED ) + col2 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3853
SELECT * FROM tab1 WHERE NOT - CAST ( + col0 AS INTEGER ) + col2 IN ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE ( NULL ) NOT IN ( - col1 * + 67 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * - col0 BETWEEN NULL AND + col0
----

query I rowsort
SELECT ( - col2 ) - + col1 AS col2 FROM tab1
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3857
SELECT DISTINCT col2 * - 16 + + CAST( 81 AS SIGNED ) FROM tab2 WHERE NOT ( 12 / - CAST( - 64 / - col2 AS DECIMAL ) + col1 ) NOT BETWEEN - col1 AND + col1 * + col0 + col0 * + col0
----
-287
-559
-847

skipif mysql # not compatible
query I rowsort label-3857
SELECT DISTINCT col2 * - 16 + + CAST ( 81 AS INTEGER ) FROM tab2 WHERE NOT ( 12 / - CAST ( - 64 / - col2 AS REAL ) + col1 ) NOT BETWEEN - col1 AND + col1 * + col0 + col0 * + col0
----
-287
-559
-847

query I rowsort
SELECT col0 FROM tab0 WHERE - 48 * col2 + 70 IS NOT NULL
----
15
87
97

query I rowsort
SELECT + 10 FROM tab2 WHERE NULL IS NULL
----
10
10
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3860
SELECT + COUNT( col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3860
SELECT + COUNT ( col0 ) FROM tab0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT - 71 * - 61 - - COUNT( * ) col2 FROM tab1 WHERE NULL IS NULL
----
4334

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3861
SELECT - 71 * - 61 - - COUNT ( * ) col2 FROM tab1 WHERE NULL IS NULL
----
4334

query I rowsort
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + col2 <= ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3863
SELECT DISTINCT COUNT( * ) * 22 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-3863
SELECT DISTINCT COUNT ( * ) * 22 FROM tab2 AS cor0
----
66

onlyif mysql # aggregate syntax: 
query I rowsort label-3864
SELECT DISTINCT - MIN( 84 ) FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-3864
SELECT DISTINCT - MIN ( 84 ) FROM tab0 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT COUNT( * ) AS col1 FROM tab0 WHERE ( NULL ) IN ( - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT COUNT ( * ) AS col1 FROM tab0 WHERE ( NULL ) IN ( - col1 )
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 < 48 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3867
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 49 )
----
0

skipif mysql # not compatible
query I rowsort label-3867
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( 49 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3868
SELECT - 8 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3868
SELECT - 8 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-24

query I rowsort
SELECT col2 FROM tab2 AS cor0 WHERE ( - col0 ) IS NOT NULL
----
23
40
58

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 * col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( col1 + + 60 ) AND NULL
----

query I rowsort
SELECT DISTINCT + 2 * - 69 AS col1 FROM tab0 AS cor0 WHERE NOT + 68 / + col1 IS NULL
----
-138

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT ( - COUNT( * ) ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-3873
SELECT ( - COUNT ( * ) ) FROM tab0 AS cor0 WHERE NULL <> NULL
----
0

query I rowsort
SELECT col0 + 99 FROM tab1 AS cor0
----
150
184
190

query I rowsort
SELECT + + 24 + 64 FROM tab2 AS cor0
----
88
88
88

onlyif mysql # aggregate syntax: 
query I rowsort label-3876
SELECT + 5 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-3876
SELECT + 5 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
8

query I rowsort
SELECT col0 + - col1 * + 40 AS col0 FROM tab2
----
-1994
-2605
-3016

onlyif mysql # aggregate syntax: 
query I rowsort label-3878
SELECT COUNT( * ) FROM tab0 WHERE + col0 - + col1 <= col0
----
3

skipif mysql # not compatible
query I rowsort label-3878
SELECT COUNT ( * ) FROM tab0 WHERE + col0 - + col1 <= col0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT ALL COUNT( * ) + 64 AS col0 FROM tab0
----
67

skipif mysql # not compatible
query I rowsort label-3879
SELECT ALL COUNT ( * ) + 64 AS col0 FROM tab0
----
67

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-3880
SELECT - CAST( NULL AS SIGNED ) + CAST( col0 AS DECIMAL ) col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3880
SELECT - CAST ( NULL AS INTEGER ) + CAST ( col0 AS REAL ) col2 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col0 + + col1 * + 47 AS col0 FROM tab2
----
2443
3224
3683

query I rowsort
SELECT col1 FROM tab1 WHERE - col1 BETWEEN ( col1 ) * + col2 + - col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3883
SELECT ALL col0 + - + col2 / + CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3883
SELECT ALL col0 + - + col2 / + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 56 * - 65 + + col2 AS col2 FROM tab2
----
3663
3680
3698

query I rowsort
SELECT ALL - col1 FROM tab2 WHERE ( NULL ) IN ( col2 )
----

query I rowsort
SELECT ALL col2 + + 5 AS col0 FROM tab2
----
28
45
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3887
SELECT COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3887
SELECT COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
3

query I rowsort
SELECT ALL col2 + - 45 + col0 * - col1 AS col2 FROM tab1 AS cor0
----
-411
-4254
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col2 col2 FROM tab2 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 - + 27 - - col1 * + 43 col2 FROM tab1 AS cor0
----
183
1947
561

query I rowsort
SELECT col1 - + - col2 * - col1 FROM tab2 cor0
----
-1122
-3003
-3819

query I rowsort
SELECT ALL - 75 - + - col0 AS col2 FROM tab0 AS cor0
----
-60
12
22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3893
SELECT + + COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

skipif mysql # not compatible
query I rowsort label-3893
SELECT + + COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
1

query I rowsort
SELECT - 55 - col1 * + - 17 FROM tab1
----
183
30
744

query I rowsort
SELECT DISTINCT - - ( + + 77 ) AS col0 FROM tab1 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3896
SELECT ALL - CAST( NULL AS SIGNED ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-3896
SELECT ALL - CAST ( NULL AS INTEGER ), + col1 AS col2 FROM tab2 AS cor0
----
NULL
51
NULL
67
NULL
77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3897
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 NOT IN ( + ( - col1 ) + - col2 * ( CAST( NULL AS SIGNED ) / - col1 ) )
----

skipif mysql # not compatible
query III rowsort label-3897
SELECT DISTINCT * FROM tab0 cor0 WHERE + col2 NOT IN ( + ( - col1 ) + - col2 * ( CAST ( NULL AS INTEGER ) / - col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3898
SELECT - + MIN( - - 21 ) FROM tab2 cor0
----
-21

skipif mysql # not compatible
query I rowsort label-3898
SELECT - + MIN ( - - 21 ) FROM tab2 cor0
----
-21

query II rowsort
SELECT col2 AS col0, col1 AS col0 FROM tab1 AS cor0
----
59
5
68
47
96
14

query II rowsort
SELECT DISTINCT + - col0 AS col2, 17 + - - 59 FROM tab2 AS cor0
----
-46
76
-64
76
-75
76

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL MIN( col0 ) AS col2 FROM tab2 cor0
----
46

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL MIN ( col0 ) AS col2 FROM tab2 cor0
----
46

query I rowsort
SELECT DISTINCT - - col2 * + col1 * - col1 * col0 FROM tab0 AS cor0
----
-383670
-4625505
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-3903
SELECT DISTINCT 60 * + 14 + COUNT( * ) FROM tab1 WHERE ( + 95 + - col1 ) BETWEEN 49 * + col1 AND NULL
----
840

skipif mysql # not compatible
query I rowsort label-3903
SELECT DISTINCT 60 * + 14 + COUNT ( * ) FROM tab1 WHERE ( + 95 + - col1 ) BETWEEN 49 * + col1 AND NULL
----
840

query I rowsort
SELECT ALL + 7 FROM tab2 WHERE NOT NULL BETWEEN - col1 AND - 20 + col0
----

query I rowsort
SELECT ALL ( - - ( - + ( + col2 ) ) ) FROM tab0
----
-10
-47
-99

query I rowsort
SELECT col0 * 4 AS col1 FROM tab1
----
204
340
364

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= - col1 * - - 75 + + col1 * - 21
----

query I rowsort
SELECT 77 * 70 FROM tab0
----
5390
5390
5390

query I rowsort
SELECT ALL + 85 * - 13 AS col1 FROM tab0
----
-1105
-1105
-1105

query I rowsort
SELECT ( 53 ) + col1 FROM tab0 AS cor0 WHERE NOT 81 * + - 23 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NOT ( - 44 + col0 ) NOT BETWEEN ( + col1 ) AND + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3912
SELECT - + COUNT( * ) DIV + - COUNT( * ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-3912
SELECT - + COUNT ( * ) / + - COUNT ( * ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3913
SELECT DISTINCT col0 * + ( CAST( NULL AS SIGNED ) ) col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3913
SELECT DISTINCT col0 * + ( CAST ( NULL AS INTEGER ) ) col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3914
SELECT DISTINCT + COUNT( * ) * - - 92 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-3914
SELECT DISTINCT + COUNT ( * ) * - - 92 FROM tab1
----
276

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 * ( - ( - col0 ) ) col1 FROM tab0
----
1215
1827
97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 <= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 79 + + - 96 FROM tab0 AS cor0 WHERE NULL = col1 * - col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + 24 * col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3919
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE ( col0 ) <= ( col0 * - col2 )
----
0

skipif mysql # not compatible
query I rowsort label-3919
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE ( col0 ) <= ( col0 * - col2 )
----
0

query I rowsort
SELECT ALL 94 * 91 * col0 FROM tab1 AS cor0
----
436254
727090
778414

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3921
SELECT CAST( - - 36 AS SIGNED ) * 42 * - COUNT( * ) AS col1 FROM tab1
----
-4536

skipif mysql # not compatible
query I rowsort label-3921
SELECT CAST ( - - 36 AS INTEGER ) * 42 * - COUNT ( * ) AS col1 FROM tab1
----
-4536

query I rowsort
SELECT ALL 18 * + col2 * - 61 FROM tab2
----
-25254
-43920
-63684

query I rowsort
SELECT ALL col2 + + - ( col0 ) FROM tab1
----
-23
-26
45

onlyif mysql # DIV for integer division: 
query I rowsort label-3924
SELECT + col0 DIV + - 85 - + col0 FROM tab0
----
-15
-88
-98

skipif mysql # not compatible
query I rowsort label-3924
SELECT + col0 / + - 85 - + col0 FROM tab0
----
-15
-88
-98

query I rowsort
SELECT DISTINCT col2 + + - 10 + - ( - 81 ) - - 41 FROM tab0
----
122
159
211

onlyif mysql # DIV for integer division: 
query I rowsort label-3926
SELECT ALL 20 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3926
SELECT ALL 20 / col0 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + col2 + col1 AS col0 FROM tab1 WHERE NOT ( 89 - 85 IS NULL )
----
110
115
64

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 BETWEEN - 83 AND col2
----
87
21
10

onlyif mysql # aggregate syntax: 
query I rowsort label-3929
SELECT DISTINCT - COUNT( * ) + - + 24 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-3929
SELECT DISTINCT - COUNT ( * ) + - + 24 FROM tab2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3930
SELECT - 31 / + + col1 / 48 AS col1 FROM tab1 cor0 WHERE - col1 = + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3930
SELECT - 31 / + + col1 / 48 AS col1 FROM tab1 cor0 WHERE - col1 = + CAST ( + col2 AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 / - col0, - col0 col2 FROM tab1 AS cor0 WHERE NULL >= col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT + 47 * + - COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( - 29 )
----
0

skipif mysql # not compatible
query I rowsort label-3932
SELECT + 47 * + - COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( - 29 )
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3933
SELECT + 25 + + CAST( NULL AS DECIMAL ) * 21 AS col0 FROM tab1 WHERE NOT - - col0 * col1 IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query I rowsort label-3933
SELECT + 25 + + CAST ( NULL AS REAL ) * 21 AS col0 FROM tab1 WHERE NOT - - col0 * col1 IN ( + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT - col0 * - 52 AS col0 FROM tab2
----
2392
3328
3900

query I rowsort
SELECT + 71 * - col1 FROM tab2
----
-3621
-4757
-5467

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3936
SELECT ALL + CAST( - COUNT( * ) AS SIGNED ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3936
SELECT ALL + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab1
----
-3

query II rowsort
SELECT ALL + 42, - 22 * + col1 * + col1 FROM tab2 AS cor0 WHERE NOT 94 * 43 NOT IN ( - - 43 )
----

query II rowsort
SELECT DISTINCT col1, 81 AS col1 FROM tab0 AS cor0 WHERE ( NULL IN ( + col1 ) )
----

query II rowsort
SELECT DISTINCT + 24 AS col0, col2 * col2 + + - col2 FROM tab1
----
24
3422
24
4556
24
9120

query I rowsort
SELECT ( + + 28 ) FROM tab2
----
28
28
28

query I rowsort
SELECT - ( - - 41 ) FROM tab1
----
-41
-41
-41

query II rowsort
SELECT col0 AS col0, col0 AS col2 FROM tab2
----
46
46
64
64
75
75

query II rowsort
SELECT + col0, col2 + + + col2 * - col2 FROM tab0
----
15
-2162
87
-90
97
-9702

query I rowsort
SELECT - 37 * col1 AS col2 FROM tab2
----
-1887
-2479
-2849

query III rowsort
SELECT * FROM tab1 WHERE NOT - - 84 + + col1 >= NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - col1 * - 43 * + col2 * + col2 IN ( - + col1 * + 57 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3947
SELECT ALL + 42 + - - MAX( ALL + 23 ) AS col1 FROM tab1 AS cor0
----
65

skipif mysql # not compatible
query I rowsort label-3947
SELECT ALL + 42 + - - MAX ( ALL + 23 ) AS col1 FROM tab1 AS cor0
----
65

query I rowsort
SELECT DISTINCT col1 + col0 * + 36 AS col1 FROM tab0 AS cor0 WHERE NOT 77 * col1 - - 38 + + + col2 * + + col2 IN ( 63 )
----
3153
3493
621

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 80 + + col2 IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3950
SELECT - 11 / + MAX( + ( + - 82 ) ) + - 11 + COUNT( * ) + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3950
SELECT - 11 / + MAX ( + ( + - 82 ) ) + - 11 + COUNT ( * ) + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( ( + 14 ) IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3952
SELECT DISTINCT + COUNT( ALL - 13 ), - 71 DIV - 11 AS col1 FROM tab2
----
3
6

skipif mysql # not compatible
query II rowsort label-3952
SELECT DISTINCT + COUNT ( ALL - 13 ), - 71 / - 11 AS col1 FROM tab2
----
3
6

query I rowsort
SELECT DISTINCT col2 + + 18 + 56 AS col1 FROM tab0
----
121
173
84

onlyif mysql # DIV for integer division: 
query II rowsort label-3954
SELECT DISTINCT - col0 + + col0 AS col0, - col0 - - col0 DIV - 37 + + col1 FROM tab2 cor0
----
0
-10
0
12
0
4

skipif mysql # not compatible
query II rowsort label-3954
SELECT DISTINCT - col0 + + col0 AS col0, - col0 - - col0 / - 37 + + col1 FROM tab2 cor0
----
0
-10
0
12
0
4

query I rowsort
SELECT DISTINCT + col1 - + - col0 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT - + col1 + + - col2 AS col1 FROM tab1 AS cor0
----
-110
-115
-64

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 63 * 88 + ( col0 ) AS col2, + col0 * - col0 col1 FROM tab0 cor0
----
-5447
-9409
-5457
-7569
-5529
-225

query I rowsort
SELECT - col2 + ( 27 ) FROM tab2 AS cor0
----
-13
-31
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT + 69 * - COUNT( * ) FROM tab2 AS cor0
----
-207

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT + 69 * - COUNT ( * ) FROM tab2 AS cor0
----
-207

query I rowsort
SELECT 87 + col1 AS col0 FROM tab0 cor0
----
108
168
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3961
SELECT ALL CAST( + col0 AS SIGNED ) * 81 AS col1 FROM tab1 AS cor0
----
4131
6885
7371

skipif mysql # not compatible
query I rowsort label-3961
SELECT ALL CAST ( + col0 AS INTEGER ) * 81 AS col1 FROM tab1 AS cor0
----
4131
6885
7371

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3962
SELECT + CAST( - - COUNT( * ) AS SIGNED ) * - 43 + 67 FROM tab2
----
-62

skipif mysql # not compatible
query I rowsort label-3962
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) * - 43 + 67 FROM tab2
----
-62

query III rowsort
SELECT * FROM tab1 WHERE - 14 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3964
SELECT 38 + - COUNT( * ) FROM tab2
----
35

skipif mysql # not compatible
query I rowsort label-3964
SELECT 38 + - COUNT ( * ) FROM tab2
----
35

query III rowsort
SELECT * FROM tab2 WHERE - - col2 = NULL
----

query I rowsort
SELECT ALL - ( + 11 ) + - col1 + col0 AS col1 FROM tab0 AS cor0
----
-77
55
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3967
SELECT - + COUNT( * ) * + COUNT( col0 ) + + 62 AS col0 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-3967
SELECT - + COUNT ( * ) * + COUNT ( col0 ) + + 62 AS col0 FROM tab1 AS cor0
----
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN - col0 AND 10 * - + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3969
SELECT * FROM tab0 cor0 WHERE CAST( + 12 AS SIGNED ) - + + col0 IN ( + col2, col1 )
----

skipif mysql # not compatible
query III rowsort label-3969
SELECT * FROM tab0 cor0 WHERE CAST ( + 12 AS INTEGER ) - + + col0 IN ( + col2, col1 )
----

query I rowsort
SELECT + + 79 - col2 FROM tab0 AS cor0
----
-20
32
69

onlyif mysql # aggregate syntax: 
query I rowsort label-3971
SELECT DISTINCT ( - - COUNT( * ) ) * + ( + SUM( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
585

skipif mysql # not compatible
query I rowsort label-3971
SELECT DISTINCT ( - - COUNT ( * ) ) * + ( + SUM ( ALL + col1 ) ) AS col1 FROM tab2 AS cor0
----
585

query I rowsort
SELECT + col2 * 10 AS col0 FROM tab2 AS cor0
----
230
400
580

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 - - ( - - col1 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-3974
SELECT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 cor1 )
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3975
SELECT - COUNT( * ) * - ( - COUNT( * ) ) FROM tab0 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-3975
SELECT - COUNT ( * ) * - ( - COUNT ( * ) ) FROM tab0 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-3976
SELECT MAX( + 37 ) AS col2 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-3976
SELECT MAX ( + 37 ) AS col2 FROM tab0 AS cor0
----
37

query II rowsort
SELECT ALL + 50, + col2 FROM tab1 AS cor0
----
50
59
50
68
50
96

query II rowsort
SELECT DISTINCT - 65 * + - 39 AS col2, + col2 AS col1 FROM tab2 AS cor0
----
2535
23
2535
40
2535
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT + ( COUNT( * ) ) FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + ( COUNT ( * ) ) FROM tab1 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3980
SELECT MIN( - + 83 ) AS col0 FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-3980
SELECT MIN ( - + 83 ) AS col0 FROM tab0 AS cor0
----
-83

onlyif mysql # DIV for integer division: 
query I rowsort label-3981
SELECT ALL + - col1 DIV col1 + + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

skipif mysql # not compatible
query I rowsort label-3981
SELECT ALL + - col1 / col1 + + col1 AS col0 FROM tab2 AS cor0
----
50
66
76

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 < - col0
----

query I rowsort
SELECT ALL - 67 + - + col0 + - 42 * + col0 + - col2 + - col2 AS col2 FROM tab0
----
-3828
-4436
-806

query I rowsort
SELECT - col0 * + col0 * - col2 * - col2 AS col0 FROM tab2
----
-1119364
-18922500
-6553600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3985
SELECT + CAST( + 83 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
83
83
83

skipif mysql # not compatible
query I rowsort label-3985
SELECT + CAST ( + 83 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
83
83
83

query I rowsort
SELECT ALL - ( + + col0 ) AS col2 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 98 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE - col0 + + + 23 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - ( + col2 ) - col0 / + + col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, + col0 + + col2 AS col0 FROM tab0 AS cor0 WHERE col0 IS NOT NULL
----
-1
196
-21
97
-81
62

query III rowsort
SELECT * FROM tab2 WHERE 28 IS NULL AND NOT - col2 <> - 17
----

query I rowsort
SELECT - 20 + - col0 FROM tab1
----
-105
-111
-71

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3993
SELECT CAST( + - ( - + COUNT( * ) ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3993
SELECT CAST ( + - ( - + COUNT ( * ) ) AS INTEGER ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3994
SELECT ALL + + MAX( ALL - CAST( NULL AS SIGNED ) ) + + + ( - AVG ( DISTINCT col0 ) ) col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3994
SELECT ALL + + MAX ( ALL - CAST ( NULL AS INTEGER ) ) + + + ( - AVG ( DISTINCT col0 ) ) col1 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT DISTINCT - col0, - col2 AS col1 FROM tab1 AS cor0
----
-51
-96
-85
-59
-91
-68

query I rowsort
SELECT DISTINCT 60 - + + col2 FROM tab1 AS cor0 WHERE NOT col1 < - col0
----
-36
-8
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3997
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 13 * + CAST( NULL AS SIGNED ) / - col2 IS NULL
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3997
SELECT ALL + col0 FROM tab1 AS cor0 WHERE 13 * + CAST ( NULL AS INTEGER ) / - col2 IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - + col0 col2 FROM tab0 cor0
----
0
0
0

query I rowsort
SELECT DISTINCT col0 - - col1 AS col1 FROM tab2
----
141
142
97

query I rowsort
SELECT col2 - + col2 * 29 FROM tab1
----
-1652
-1904
-2688

query I rowsort
SELECT + col1 + - 56 + + col2 AS col1 FROM tab2
----
18
61
69

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col1 < + 82 * - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4003
SELECT DISTINCT col0 DIV 38 col2, + col2 + + ( col1 ) + - 77 * 96 AS col0 FROM tab2 AS cor0
----
1
-7267
1
-7275
1
-7318

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4003
SELECT DISTINCT col0 / 38 col2, + col2 + + ( col1 ) + - 77 * 96 AS col0 FROM tab2 AS cor0
----
1
-7267
1
-7275
1
-7318

onlyif mysql # aggregate syntax: 
query I rowsort label-4004
SELECT DISTINCT - + 49 + - - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

skipif mysql # not compatible
query I rowsort label-4004
SELECT DISTINCT - + 49 + - - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4005
SELECT - MIN( DISTINCT - + 24 ) + + 32 AS col0 FROM tab0, tab0 AS cor0
----
56

skipif mysql # not compatible
query I rowsort label-4005
SELECT - MIN ( DISTINCT - + 24 ) + + 32 AS col0 FROM tab0, tab0 AS cor0
----
56

query I rowsort
SELECT DISTINCT - ( - 95 ) FROM tab2 AS cor0
----
95

query I rowsort
SELECT DISTINCT + + 76 * - + 12 FROM tab1 AS cor0
----
-912

onlyif mysql # DIV for integer division: 
query II rowsort label-4008
SELECT - col0 DIV + 91 + - col1 AS col1, col0 * - col2 AS col0 FROM tab2 AS cor0
----
-51
-1058
-67
-4350
-77
-2560

skipif mysql # not compatible
query II rowsort label-4008
SELECT - col0 / + 91 + - col1 AS col1, col0 * - col2 AS col0 FROM tab2 AS cor0
----
-51
-1058
-67
-4350
-77
-2560

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4009
SELECT CAST( 70 AS SIGNED ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4009
SELECT CAST ( 70 AS INTEGER ) AS col0 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT DISTINCT 4 AS col2, + 80 * + col1 FROM tab2 AS cor0
----
4
4080
4
5360
4
6160

query I rowsort
SELECT + - 74 * - 58 AS col1 FROM tab0 AS cor0
----
4292
4292
4292

onlyif mysql # DIV for integer division: 
query I rowsort label-4012
SELECT - col0 DIV + - col1 + - col2 AS col2 FROM tab2
----
-23
-40
-57

skipif mysql # not compatible
query I rowsort label-4012
SELECT - col0 / + - col1 + - col2 AS col2 FROM tab2
----
-23
-40
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4013
SELECT ALL ( CAST( NULL AS SIGNED ) ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4013
SELECT ALL ( CAST ( NULL AS INTEGER ) ) * - col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 31 + 72 AS col2 FROM tab1
----
103

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - - col0 IS NULL )
----

query I rowsort
SELECT + - col2 AS col1 FROM tab2 AS cor0 WHERE + col0 + + + 17 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4017
SELECT * FROM tab0 AS cor0 WHERE - CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4017
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL COUNT( ALL - + col0 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL COUNT ( ALL - + col0 ) FROM tab0 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + 78 col0, + col1 * col1 AS col0 FROM tab0 AS cor0
----
-78
1
-78
441
-78
6561

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4020
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 + + 37 + CAST( NULL AS SIGNED ) * + col0 * + - col1 NOT IN ( col2 )
----

skipif mysql # not compatible
query III rowsort label-4020
SELECT ALL * FROM tab2 cor0 WHERE NOT - col0 + + 37 + CAST ( NULL AS INTEGER ) * + col0 * + - col1 NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4021
SELECT ALL + MAX( ALL - - col1 ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-4021
SELECT ALL + MAX ( ALL - - col1 ) FROM tab0 AS cor0
----
81

onlyif mysql # DIV for integer division: 
query I rowsort label-4022
SELECT DISTINCT + 5 DIV - 76 * 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-4022
SELECT DISTINCT + 5 / - 76 * 27 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL IN ( ( - - 81 ), col0 )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4025
SELECT + SUM( 85 ) + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
252

skipif mysql # not compatible
query I rowsort label-4025
SELECT + SUM ( 85 ) + - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
252

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT DISTINCT - col0 * - 9 * 48 - + col0 DIV col0 FROM tab2 AS cor0
----
19871
27647
32399

skipif mysql # not compatible
query I rowsort label-4026
SELECT DISTINCT - col0 * - 9 * 48 - + col0 / col0 FROM tab2 AS cor0
----
19871
27647
32399

onlyif mysql # DIV for integer division: 
query I rowsort label-4027
SELECT + - ( - + col0 ) + - col1 DIV ( + 91 ) * col1 AS col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4027
SELECT + - ( - + col0 ) + - col1 / ( + 91 ) * col1 AS col1 FROM tab1 cor0
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4028
SELECT + - CAST( NULL AS SIGNED ) + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4028
SELECT + - CAST ( NULL AS INTEGER ) + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4029
SELECT 34 * CAST( NULL AS DECIMAL ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4029
SELECT 34 * CAST ( NULL AS REAL ) + - col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4030
SELECT DISTINCT + + COUNT( * ) - 54 + COUNT( - col0 ) AS col1 FROM tab2 AS cor0
----
-48

skipif mysql # not compatible
query I rowsort label-4030
SELECT DISTINCT + + COUNT ( * ) - 54 + COUNT ( - col0 ) AS col1 FROM tab2 AS cor0
----
-48

query I rowsort
SELECT + - 84 + 17 AS col1 FROM tab1 AS cor0
----
-67
-67
-67

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + - + col2 + - col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1 - - + col2, - col0 col1 FROM tab2 AS cor0
----
-28
-46
-37
-64
-9
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 - + col0 col0 FROM tab1 AS cor0
----
-138
-65
-90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 76 >= NULL
----

query I rowsort
SELECT + 83 AS col0 FROM tab1, tab2 cor0
----
9 values hashing to 18f405c31a0fb47ce3cc9f7effa8855c

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT COUNT( * ) DIV + 44 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4037
SELECT COUNT ( * ) / + 44 AS col0 FROM tab2
----
0

query I rowsort
SELECT ALL - col2 * - - ( + col0 ) FROM tab0
----
-705
-870
-9603

query II rowsort
SELECT + col2, + 38 AS col0 FROM tab0
----
10
38
47
38
99
38

query I rowsort
SELECT + + col2 AS col0 FROM tab2 AS cor0 WHERE NOT 47 * col0 + - ( - 24 ) + - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4041
SELECT + + COUNT( * ) AS col0, + COUNT( 78 ) AS col0 FROM tab0 cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4041
SELECT + + COUNT ( * ) AS col0, + COUNT ( 78 ) AS col0 FROM tab0 cor0
----
3
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 99 * col2 * - 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 36 * + 23 col2 FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 8cd0cb28502924528a7168f879163b5a

query I rowsort
SELECT 84 + - + 72 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d4f5a8e032294c3b9342821617800972

query I rowsort
SELECT + col1 * - col2 + + col2 + col1 + - 54 + + col2 FROM tab2 AS cor0
----
-1130
-2977
-3757

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 20 * + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( - + col2, + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4048
SELECT + + 91 DIV + col2 col2 FROM tab0 AS cor0
----
0
1
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4048
SELECT + + 91 / + col2 col2 FROM tab0 AS cor0
----
0
1
9

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN - 20 * + col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4050
SELECT CAST( NULL AS SIGNED ) AS col0, + 79 + col0 FROM tab0
----
NULL
166
NULL
176
NULL
94

skipif mysql # not compatible
query II rowsort label-4050
SELECT CAST ( NULL AS INTEGER ) AS col0, + 79 + col0 FROM tab0
----
NULL
166
NULL
176
NULL
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4051
SELECT + 47 * SUM( DISTINCT + col0 ) DIV - COUNT( * ) AS col2 FROM tab1
----
-3556

skipif mysql # not compatible
query I rowsort label-4051
SELECT + 47 * SUM ( DISTINCT + col0 ) / - COUNT ( * ) AS col2 FROM tab1
----
-3556

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4052
SELECT * FROM tab0 WHERE + col2 * + 20 * + ( 89 ) * + 64 - CAST( NULL AS SIGNED ) * + + col1 + + col0 IN ( - - 52, + 56, - col1 * - - col1 )
----

skipif mysql # not compatible
query III rowsort label-4052
SELECT * FROM tab0 WHERE + col2 * + 20 * + ( 89 ) * + 64 - CAST ( NULL AS INTEGER ) * + + col1 + + col0 IN ( - - 52, + 56, - col1 * - - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4053
SELECT COUNT( * ) * - 6 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-4053
SELECT COUNT ( * ) * - 6 FROM tab0
----
-18

query I rowsort
SELECT ALL - 49 * - 92 + - col0 AS col2 FROM tab1
----
4417
4423
4457

onlyif mysql # DIV for integer division: 
query I rowsort label-4055
SELECT 35 DIV + - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4055
SELECT 35 / + - col0 AS col0 FROM tab1 WHERE NULL IS NULL
----
0
0
0

query I rowsort
SELECT col1 * + col1 * + + 76 * - col1 AS col1 FROM tab0
----
-40389516
-703836
-76

query I rowsort
SELECT 99 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 25 + - col1 + - col1 * - 67 FROM tab1 AS cor0
----
3127
355
949

onlyif mysql # DIV for integer division: 
query I rowsort label-4059
SELECT ALL + 32 DIV col2 + - col1 FROM tab0 AS cor0
----
-1
-18
-81

skipif mysql # not compatible
query I rowsort label-4059
SELECT ALL + 32 / col2 + - col1 FROM tab0 AS cor0
----
-1
-18
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - + COUNT( * ) + + 13 FROM tab2 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4060
SELECT - + COUNT ( * ) + + 13 FROM tab2 AS cor0
----
10

query III rowsort
SELECT * FROM tab1 WHERE col2 BETWEEN ( + col0 ) AND + col1 * col1
----
51
14
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - 32 col1 FROM tab0 AS cor0 WHERE + 76 > NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + 51 / 79 AND + 52
----

query II rowsort
SELECT ALL - 53, col2 AS col0 FROM tab2 AS cor0
----
-53
23
-53
40
-53
58

onlyif mysql # DIV for integer division: 
query I rowsort label-4065
SELECT DISTINCT col2 DIV 81 * + - 48 FROM tab1
----
-48
0

skipif mysql # not compatible
query I rowsort label-4065
SELECT DISTINCT col2 / 81 * + - 48 FROM tab1
----
-48
0

query I rowsort
SELECT - col0 * + + 39 FROM tab0
----
-3393
-3783
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-4067
SELECT - COUNT( * ) FROM tab0 WHERE NOT + + 30 NOT IN ( col0 + + 30 )
----
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + + 30 NOT IN ( col0 + + 30 )
----
0

query I rowsort
SELECT 99 * - col1 FROM tab1
----
-1386
-4653
-495

onlyif mysql # aggregate syntax: 
query I rowsort label-4069
SELECT ALL - SUM( DISTINCT + 88 ) AS col1 FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-4069
SELECT ALL - SUM ( DISTINCT + 88 ) AS col1 FROM tab1
----
-88

query I rowsort
SELECT ( col2 ) * - 80 + + col1 AS col2 FROM tab2
----
-1789
-3123
-4573

query I rowsort
SELECT DISTINCT - 29 FROM tab0 AS cor0 WHERE NOT - 9 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4072
SELECT COUNT( ALL + + col2 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4072
SELECT COUNT ( ALL + + col2 ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT - COUNT( * ) - + 52 FROM tab1 WHERE NOT - col1 <> NULL
----
-52

skipif mysql # not compatible
query I rowsort label-4073
SELECT - COUNT ( * ) - + 52 FROM tab1 WHERE NOT - col1 <> NULL
----
-52

query I rowsort
SELECT - ( - 49 ) FROM tab2
----
49
49
49

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) <= col1 / - - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 49 / - + 49 <= 56
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4077
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) * CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4077
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) * CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
9

query I rowsort
SELECT - col1 * - + ( col1 ) FROM tab2 AS cor0
----
2601
4489
5929

query II rowsort
SELECT ALL - 79, - 72 AS col1 FROM tab2 AS cor0
----
-79
-72
-79
-72
-79
-72

query I rowsort
SELECT + 72 + + + col1 FROM tab1 AS cor0
----
119
77
86

query II rowsort
SELECT ALL - col0 * + 50 AS col2, + 18 FROM tab0
----
-4350
18
-4850
18
-750
18

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4082
SELECT 82 + + CAST( col2 AS SIGNED ) FROM tab0
----
129
181
92

skipif mysql # not compatible
query I rowsort label-4082
SELECT 82 + + CAST ( col2 AS INTEGER ) FROM tab0
----
129
181
92

query I rowsort
SELECT DISTINCT 90 * + 22 * col2 AS col2 FROM tab0
----
196020
19800
93060

query I rowsort
SELECT DISTINCT - col0 * - - 42 FROM tab2
----
-1932
-2688
-3150

query I rowsort
SELECT + col2 FROM tab2 WHERE ( NOT ( NULL ) IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4086
SELECT col0 DIV col1 + - + col2 AS col2 FROM tab0
----
-2
-47
-6

skipif mysql # not compatible
query I rowsort label-4086
SELECT col0 / col1 + - + col2 AS col2 FROM tab0
----
-2
-47
-6

query I rowsort
SELECT DISTINCT col1 + - - ( - col0 ) AS col0 FROM tab0 AS cor0
----
-66
-96
66

query I rowsort
SELECT DISTINCT - + 54 FROM tab2 AS cor0 WHERE 31 < NULL
----

query I rowsort
SELECT 65 * - - col2 FROM tab1 cor0
----
3835
4420
6240

query II rowsort
SELECT DISTINCT + col2 + - ( - 19 ) * 45 AS col2, 61 * - col1 FROM tab1 AS cor0
----
914
-305
923
-2867
951
-854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT DISTINCT - + 65 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 = - CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query I rowsort label-4091
SELECT DISTINCT - + 65 * col1 AS col1 FROM tab2 AS cor0 WHERE NOT col1 = - CAST ( NULL AS INTEGER ) + - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4092
SELECT DISTINCT col0 DIV col2 + + - col2 AS col0 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-4092
SELECT DISTINCT col0 / col2 + + - col2 AS col0 FROM tab2 AS cor0
----
-21
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4093
SELECT ALL CAST( NULL AS SIGNED ) / - 32 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL CAST ( NULL AS INTEGER ) / - 32 AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4094
SELECT ALL - MIN( + 88 ) FROM tab2 AS cor0
----
-88

skipif mysql # not compatible
query I rowsort label-4094
SELECT ALL - MIN ( + 88 ) FROM tab2 AS cor0
----
-88

query II rowsort
SELECT DISTINCT col1, col0 * col0 + col2 FROM tab0 AS cor0
----
1
9508
21
7579
81
272

onlyif mysql # aggregate syntax: 
query I rowsort label-4096
SELECT MAX( + col0 ) AS col1 FROM tab1 cor0
----
91

skipif mysql # not compatible
query I rowsort label-4096
SELECT MAX ( + col0 ) AS col1 FROM tab1 cor0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-4097
SELECT DISTINCT + col2 DIV + - 82 col1 FROM tab2 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4097
SELECT DISTINCT + col2 / + - 82 col1 FROM tab2 cor0
----
0

query II rowsort
SELECT DISTINCT col2 AS col2, + col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT DISTINCT 91, col1 FROM tab2
----
91
51
91
67
91
77

query II rowsort
SELECT ALL - col0 AS col0, 3 AS col0 FROM tab2
----
-46
3
-64
3
-75
3

query II rowsort
SELECT - 81 AS col0, col0 + - 90 FROM tab0
----
-81
-3
-81
-75
-81
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 59 col2, - col1 + + col0 AS col1 FROM tab2
----
59
-13
59
-5
59
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4103
SELECT DISTINCT - 90 * col0 DIV + 95 AS col0 FROM tab1
----
-48
-80
-86

skipif mysql # not compatible
query I rowsort label-4103
SELECT DISTINCT - 90 * col0 / + 95 AS col0 FROM tab1
----
-48
-80
-86

query II rowsort
SELECT DISTINCT col0, + 88 AS col2 FROM tab2
----
46
88
64
88
75
88

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4105
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST( - + col1 AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4105
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + CAST ( - + col1 AS REAL ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4106
SELECT ALL + SUM( + CAST( + 79 AS SIGNED ) ) AS col2 FROM tab0 AS cor0
----
237

skipif mysql # not compatible
query I rowsort label-4106
SELECT ALL + SUM ( + CAST ( + 79 AS INTEGER ) ) AS col2 FROM tab0 AS cor0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT - + COUNT( DISTINCT + col0 ) * - 75 FROM tab1 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4107
SELECT - + COUNT ( DISTINCT + col0 ) * - 75 FROM tab1 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4108
SELECT DISTINCT - MAX( - 1 ) + COUNT( * ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-4108
SELECT DISTINCT - MAX ( - 1 ) + COUNT ( * ) AS col1 FROM tab2
----
4

query I rowsort
SELECT DISTINCT + - 50 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-50

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4110
SELECT + 42 DIV - - COUNT( - - 24 ) + + 3 + + + MAX( + 55 ) FROM tab1 AS cor0
----
72

skipif mysql # not compatible
query I rowsort label-4110
SELECT + 42 / - - COUNT ( - - 24 ) + + 3 + + + MAX ( + 55 ) FROM tab1 AS cor0
----
72

query II rowsort
SELECT ALL col1 + - - col0, + ( col2 ) AS col2 FROM tab2 AS cor0
----
141
40
142
58
97
23

onlyif mysql # aggregate syntax: 
query I rowsort label-4112
SELECT MAX( + 77 ) FROM tab1 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-4112
SELECT MAX ( + 77 ) FROM tab1 AS cor0
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4113
SELECT DISTINCT - - 46 + - - COUNT( * ) FROM tab2 AS cor0
----
49

skipif mysql # not compatible
query I rowsort label-4113
SELECT DISTINCT - - 46 + - - COUNT ( * ) FROM tab2 AS cor0
----
49

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 BETWEEN - col1 AND - + col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND + col1
----

query I rowsort
SELECT DISTINCT - 98 + col0 FROM tab2
----
-23
-34
-52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 - - col0 col1 FROM tab2
----
105
123
134

onlyif mysql # DIV for integer division: 
query I rowsort label-4118
SELECT DISTINCT - col0 DIV 45 * - + col1 + + 93 col1 FROM tab1
----
107
187
98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4118
SELECT DISTINCT - col0 / 45 * - + col1 + + 93 col1 FROM tab1
----
107
187
98

query I rowsort
SELECT col2 - + 62 FROM tab1
----
-3
34
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4120
SELECT + CAST( NULL AS SIGNED ) * - col1 + - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4120
SELECT + CAST ( NULL AS INTEGER ) * - col1 + - col0 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT 64, - col1 FROM tab0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4122
SELECT CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) * - col2 * + + CAST( NULL AS DECIMAL ) * col2 AS col2 FROM tab0 cor0 WHERE + col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4122
SELECT CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) * - col2 * + + CAST ( NULL AS REAL ) * col2 AS col2 FROM tab0 cor0 WHERE + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4123
SELECT DISTINCT col2 - + CAST( + col1 AS SIGNED ) AS col1, 13 FROM tab1 AS cor0
----
21
13
54
13
82
13

skipif mysql # not compatible
query II rowsort label-4123
SELECT DISTINCT col2 - + CAST ( + col1 AS INTEGER ) AS col1, 13 FROM tab1 AS cor0
----
21
13
54
13
82
13

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT DISTINCT + + COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

skipif mysql # not compatible
query I rowsort label-4124
SELECT DISTINCT + + COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE ( NULL IS NULL )
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-4125
SELECT DISTINCT MAX( ALL - col2 ) AS col2, - COUNT( * ) AS col1 FROM tab2
----
-23
-3

skipif mysql # not compatible
query II rowsort label-4125
SELECT DISTINCT MAX ( ALL - col2 ) AS col2, - COUNT ( * ) AS col1 FROM tab2
----
-23
-3

onlyif mysql # DIV for integer division: 
query I rowsort label-4126
SELECT DISTINCT col0 * 47 DIV - col1 FROM tab2 cor0
----
-39
-42
-52

skipif mysql # not compatible
query I rowsort label-4126
SELECT DISTINCT col0 * 47 / - col1 FROM tab2 cor0
----
-39
-42
-52

query II rowsort
SELECT + ( + 97 ) * col2 * - col0, - col0 AS col1 FROM tab0 AS cor0
----
-68385
-15
-84390
-87
-931491
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4128
SELECT + + 21 AS col1 FROM tab2 AS cor0 WHERE NOT CAST( 99 AS SIGNED ) <= 22
----
21
21
21

skipif mysql # not compatible
query I rowsort label-4128
SELECT + + 21 AS col1 FROM tab2 AS cor0 WHERE NOT CAST ( 99 AS INTEGER ) <= 22
----
21
21
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4129
SELECT DISTINCT + 58 * - MAX( ALL + + col1 ) + + - 2 + COUNT( * ) FROM tab0 cor0
----
-4697

skipif mysql # not compatible
query I rowsort label-4129
SELECT DISTINCT + 58 * - MAX ( ALL + + col1 ) + + - 2 + COUNT ( * ) FROM tab0 cor0
----
-4697

query I rowsort
SELECT ALL - 8 * + - col0 + - col1 FROM tab0 cor0
----
39
675
775

onlyif mysql # aggregate syntax: 
query I rowsort label-4131
SELECT ALL - COUNT( + - col2 ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4131
SELECT ALL - COUNT ( + - col2 ) FROM tab2
----
-3

query I rowsort
SELECT - ( + ( - 7 ) ) FROM tab1
----
7
7
7

query III rowsort
SELECT * FROM tab1 WHERE NOT - ( + col1 ) <= - 93
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT 16 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4135
SELECT ALL - MAX( DISTINCT - ( - col0 ) ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-4135
SELECT ALL - MAX ( DISTINCT - ( - col0 ) ) FROM tab2 cor0
----
-75

query I rowsort
SELECT ALL - col2 * + col1 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1344
-295
-3196

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 56 * - + col1 * - 24 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4138
SELECT DISTINCT + - MAX( - + col1 ) FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-4138
SELECT DISTINCT + - MAX ( - + col1 ) FROM tab2 AS cor0
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 0, - col0 col2 FROM tab1
----
0
-51
0
-85
0
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-4140
SELECT - col1 + + - ( - col2 ) + + + col0 DIV - + col0 FROM tab1 AS cor0
----
20
53
81

skipif mysql # not compatible
query I rowsort label-4140
SELECT - col1 + + - ( - col2 ) + + + col0 / - + col0 FROM tab1 AS cor0
----
20
53
81

query I rowsort
SELECT ALL + col1 + ( + col0 ) AS col2 FROM tab2 AS cor0
----
141
142
97

query I rowsort
SELECT + col1 FROM tab2 AS cor0 WHERE + 50 IS NOT NULL
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4143
SELECT + col0 * 98 DIV col1 * - + 9 * col2 - CAST( + col2 AS SIGNED ) * + + col1 FROM tab0 AS cor0 WHERE + 64 NOT BETWEEN + col2 AND col1
----
-36750
-8469945

skipif mysql # not compatible
query I rowsort label-4143
SELECT + col0 * 98 / col1 * - + 9 * col2 - CAST ( + col2 AS INTEGER ) * + + col1 FROM tab0 AS cor0 WHERE + 64 NOT BETWEEN + col2 AND col1
----
-36750
-8469945

onlyif mysql # aggregate syntax: 
query I rowsort label-4144
SELECT DISTINCT - SUM( - 18 ) AS col0 FROM tab0 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-4144
SELECT DISTINCT - SUM ( - 18 ) AS col0 FROM tab0 AS cor0
----
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4145
SELECT ( + CAST( NULL AS SIGNED ) ) + 33 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4145
SELECT ( + CAST ( NULL AS INTEGER ) ) + 33 AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col0 FROM tab1 WHERE NOT NULL IS NOT NULL OR NOT ( NULL ) = NULL
----
51
85
91

query I rowsort
SELECT ALL 55 + + col2 FROM tab1 AS cor0
----
114
123
151

query II rowsort
SELECT DISTINCT + col0 - - - col2, + 48 AS col0 FROM tab0 AS cor0
----
-2
48
-32
48
77
48

onlyif mysql # aggregate syntax: 
query II rowsort label-4149
SELECT + 72 - - COUNT( * ), + 9 AS col1 FROM tab0 AS cor0
----
75
9

skipif mysql # not compatible
query II rowsort label-4149
SELECT + 72 - - COUNT ( * ), + 9 AS col1 FROM tab0 AS cor0
----
75
9

query II rowsort
SELECT + + 85 - col0 AS col1, col0 FROM tab2 AS cor0
----
10
75
21
64
39
46

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 73 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4152
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT col1 * - + ( - - 90 ) * - CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4152
SELECT ALL - col0 AS col0 FROM tab1 WHERE NOT col1 * - + ( - - 90 ) * - CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4153
SELECT + COUNT( * ) DIV + 48 - - 12 + - 67 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-55

skipif mysql # not compatible
query I rowsort label-4153
SELECT + COUNT ( * ) / + 48 - - 12 + - 67 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-55

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + - + 28 BETWEEN col0 AND NULL
----
87
21
10
97
1
99

query I rowsort
SELECT DISTINCT ( 48 ) AS col0 FROM tab1 AS cor0
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-4156
SELECT + 10 * - COUNT( * ) - 15 AS col1 FROM tab0 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-4156
SELECT + 10 * - COUNT ( * ) - 15 AS col1 FROM tab0 AS cor0
----
-45

onlyif mysql # aggregate syntax: 
query I rowsort label-4157
SELECT ALL - 40 * + - COUNT( * ) FROM tab2 AS cor0
----
120

skipif mysql # not compatible
query I rowsort label-4157
SELECT ALL - 40 * + - COUNT ( * ) FROM tab2 AS cor0
----
120

query I rowsort
SELECT 16 * - + col2 * - col2 + col0 AS col1 FROM tab0 AS cor0
----
156913
1687
35359

query I rowsort
SELECT DISTINCT - 21 FROM tab1 AS cor0 WHERE col1 / - - col2 + + - 88 IS NOT NULL
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-4160
SELECT ALL 55 col2, + COUNT( * ) col0 FROM tab0 AS cor0
----
55
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4160
SELECT ALL 55 col2, + COUNT ( * ) col0 FROM tab0 AS cor0
----
55
3

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4161
SELECT col1 FROM tab2 cor0 WHERE NOT ( + col2 * - CAST( NULL AS SIGNED ) + col0 * col2 * CAST( - + 83 AS DECIMAL ) * - 34 + - - col0 + 83 * - col0 ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4161
SELECT col1 FROM tab2 cor0 WHERE NOT ( + col2 * - CAST ( NULL AS INTEGER ) + col0 * col2 * CAST ( - + 83 AS REAL ) * - 34 + - - col0 + 83 * - col0 ) IS NULL
----

query II rowsort
SELECT DISTINCT - ( ( + - col2 ) ) AS col2, - 25 AS col0 FROM tab0 AS cor0
----
10
-25
47
-25
99
-25

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4163
SELECT ALL - + col1 AS col0 FROM tab2 AS cor0 WHERE - CAST( NULL AS SIGNED ) * col0 + + 15 BETWEEN col0 AND + col0 * - 39
----

skipif mysql # not compatible
query I rowsort label-4163
SELECT ALL - + col1 AS col0 FROM tab2 AS cor0 WHERE - CAST ( NULL AS INTEGER ) * col0 + + 15 BETWEEN col0 AND + col0 * - 39
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT - MAX( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4164
SELECT - MAX ( DISTINCT + + col2 ) AS col0 FROM tab2 AS cor0
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 WHERE NOT NULL = col0 + + + 92
----

query I rowsort
SELECT DISTINCT - col0 * - + ( - col1 ) FROM tab1
----
-425
-4277
-714

query I rowsort
SELECT ALL 3 * - + ( col2 ) FROM tab2
----
-120
-174
-69

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4168
SELECT 52 * - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4168
SELECT 52 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4169
SELECT DISTINCT - 2 DIV - col0 * - + 40 + - - col0 + ( col1 ) * + col1 AS col2 FROM tab1
----
110
2300
247

skipif mysql # not compatible
query I rowsort label-4169
SELECT DISTINCT - 2 / - col0 * - + 40 + - - col0 + ( col1 ) * + col1 AS col2 FROM tab1
----
110
2300
247

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4170
SELECT + + 80 FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-4170
SELECT + + 80 FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

query I rowsort
SELECT col2 + - col2 * - col2 + col0 AS col0 FROM tab2
----
1704
3497
598

query I rowsort
SELECT - col0 + - ( - - col0 ) * - col0 AS col1 FROM tab1
----
2550
7140
8190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( - 25 ) col2 FROM tab1 AS cor0
----
-25
-25
-25

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4175
SELECT 37 AS col0, - COUNT( * ) AS col0 FROM tab2 cor0
----
37
-3

skipif mysql # not compatible
query II rowsort label-4175
SELECT 37 AS col0, - COUNT ( * ) AS col0 FROM tab2 cor0
----
37
-3

query I rowsort
SELECT DISTINCT 85 + - col0 FROM tab1 AS cor0
----
-6
0
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4177
SELECT CAST( - 20 AS SIGNED ) AS col0 FROM tab2 AS cor0 WHERE + col1 + col2 / - col0 * 71 + + - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4177
SELECT CAST ( - 20 AS INTEGER ) AS col0 FROM tab2 AS cor0 WHERE + col1 + col2 / - col0 * 71 + + - col2 IS NULL
----

query I rowsort
SELECT ALL + 97 + - + col1 FROM tab0 AS cor0
----
16
76
96

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( - col0 * + + col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4180
SELECT DISTINCT - MIN( + 52 ) - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-4180
SELECT DISTINCT - MIN ( + 52 ) - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-55

query III rowsort
SELECT * FROM tab1 cor0 WHERE col1 >= NULL
----

query I rowsort
SELECT + col1 - ( + + 53 ) AS col1 FROM tab0
----
-32
-52
28

query I rowsort
SELECT col1 - + col0 - - col1 FROM tab2
----
56
59
90

query I rowsort
SELECT + ( + 48 ) - - col1 - - + col1 FROM tab0
----
210
50
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4185
SELECT COUNT( * ) + + MAX( + col1 ) col0 FROM tab0
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4185
SELECT COUNT ( * ) + + MAX ( + col1 ) col0 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-4186
SELECT DISTINCT COUNT( DISTINCT col1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-4186
SELECT DISTINCT COUNT ( DISTINCT col1 ) AS col2 FROM tab2
----
3

query I rowsort
SELECT DISTINCT - 69 + col2 + + col1 AS col0 FROM tab1
----
-5
41
46

query I rowsort
SELECT ( + 43 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
43
43
43

onlyif mysql # aggregate syntax: 
query II rowsort label-4189
SELECT ALL + + 44 + - 68, + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-24
3

skipif mysql # not compatible
query II rowsort label-4189
SELECT ALL + + 44 + - 68, + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-24
3

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > - col0 + - - 79 * + col0 + + 8 + + 85 * - col2
----

query I rowsort
SELECT + col1 + col1 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4192
SELECT - CAST( NULL AS SIGNED ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT - CAST ( NULL AS INTEGER ) * - + col2 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4193
SELECT ALL COUNT( * ) * - 3 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4193
SELECT ALL COUNT ( * ) * - 3 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-4194
SELECT - COUNT( * ) AS col2, 29 FROM tab1 AS cor0 WHERE NOT - col1 / + + 4 + ( + col1 ) - - 7 > NULL
----
0
29

skipif mysql # not compatible
query II rowsort label-4194
SELECT - COUNT ( * ) AS col2, 29 FROM tab1 AS cor0 WHERE NOT - col1 / + + 4 + ( + col1 ) - - 7 > NULL
----
0
29

onlyif mysql # aggregate syntax: 
query II rowsort label-4195
SELECT DISTINCT + - MAX( 22 ), - SUM( - col2 ) AS col1 FROM tab1 AS cor0
----
-22
223

skipif mysql # not compatible
query II rowsort label-4195
SELECT DISTINCT + - MAX ( 22 ), - SUM ( - col2 ) AS col1 FROM tab1 AS cor0
----
-22
223

query I rowsort
SELECT ALL 68 * - + 81 * - 70 * - col0 FROM tab0 AS cor0
----
-33543720
-37399320
-5783400

query I rowsort
SELECT ALL + - ( + col2 ) * col2 FROM tab0 cor0
----
-100
-2209
-9801

query II rowsort
SELECT 27, 19 + col2 + col1 AS col2 FROM tab0
----
27
119
27
147
27
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT ALL ( + CAST( NULL AS SIGNED ) ) * 68 + 16 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4199
SELECT ALL ( + CAST ( NULL AS INTEGER ) ) * 68 + 16 AS col1 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 + + 50 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4201
SELECT + col2 + 53 + - CAST( 65 AS SIGNED ) AS col2 FROM tab2
----
11
28
46

skipif mysql # not compatible
query I rowsort label-4201
SELECT + col2 + 53 + - CAST ( 65 AS INTEGER ) AS col2 FROM tab2
----
11
28
46

query I rowsort
SELECT DISTINCT - 69 + col0 AS col0 FROM tab0
----
-54
18
28

query II rowsort
SELECT DISTINCT - 14, + col1 * 66 AS col1 FROM tab0
----
-14
1386
-14
5346
-14
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4204
SELECT - MIN( DISTINCT 50 ) + - COUNT( * ) AS col1 FROM tab2
----
-53

skipif mysql # not compatible
query I rowsort label-4204
SELECT - MIN ( DISTINCT 50 ) + - COUNT ( * ) AS col1 FROM tab2
----
-53

query I rowsort
SELECT - 46 + - 72 AS col0 FROM tab0
----
-118
-118
-118

onlyif mysql # aggregate syntax: 
query I rowsort label-4206
SELECT ALL + - COUNT( * ) FROM tab0 WHERE NULL >= - - col0 + - - col1 * - col2
----
0

skipif mysql # not compatible
query I rowsort label-4206
SELECT ALL + - COUNT ( * ) FROM tab0 WHERE NULL >= - - col0 + - - col1 * - col2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4207
SELECT - ( 43 ) + ( CAST( NULL AS SIGNED ) ) * - COUNT( * ) + - - MIN( col2 ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4207
SELECT - ( 43 ) + ( CAST ( NULL AS INTEGER ) ) * - COUNT ( * ) + - - MIN ( col2 ) AS col0 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 AS col2, + col2 * - - col2 * - 49 + + + col0 col1 FROM tab2 cor0
----
23
-25875
40
-78336
58
-164761

query I rowsort
SELECT - 18 * 76 * - - col2 * + 50 + 95 * - col1 + col0 AS col1 FROM tab1 AS cor0
----
-4035990
-4655574
-6567679

onlyif mysql # aggregate syntax: 
query II rowsort label-4210
SELECT MIN( DISTINCT - + col2 ) * 70 AS col2, + COUNT( * ) * - - COUNT( * ) FROM tab2 AS cor0
----
-4060
9

skipif mysql # not compatible
query II rowsort label-4210
SELECT MIN ( DISTINCT - + col2 ) * 70 AS col2, + COUNT ( * ) * - - COUNT ( * ) FROM tab2 AS cor0
----
-4060
9

query III rowsort
SELECT * FROM tab2 WHERE NULL >= - + col0
----

query I rowsort
SELECT ALL 29 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 1e7120ba8e9191084172ddced17e5eb2

query I rowsort
SELECT - 77 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 3a24155cb91ceff1e67bb51c07b72107

query II rowsort
SELECT - 14, + 37 AS col1 FROM tab0 WHERE + + col1 IS NOT NULL
----
-14
37
-14
37
-14
37

onlyif mysql # DIV for integer division: 
query I rowsort label-4215
SELECT DISTINCT 99 DIV col1 + col2 FROM tab0
----
14
198
48

skipif mysql # not compatible
query I rowsort label-4215
SELECT DISTINCT 99 / col1 + col2 FROM tab0
----
14
198
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 + - 4 - 19 * + col1, - 2 * - col1 + + col0 col1 FROM tab0 AS cor0
----
-122
99
-1590
177
-413
129

onlyif mysql # aggregate syntax: 
query I rowsort label-4217
SELECT 94 + - 83 * - COUNT( * ) FROM tab1 cor0
----
343

skipif mysql # not compatible
query I rowsort label-4217
SELECT 94 + - 83 * - COUNT ( * ) FROM tab1 cor0
----
343

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT ALL - MAX( DISTINCT - 34 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-4218
SELECT ALL - MAX ( DISTINCT - 34 ) FROM tab1 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-4219
SELECT DISTINCT + MAX( DISTINCT - 5 ) AS col0 FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-4219
SELECT DISTINCT + MAX ( DISTINCT - 5 ) AS col0 FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT + - ( - 52 ) * col2 FROM tab2 AS cor0
----
1196
2080
3016

onlyif mysql # DIV for integer division: 
query I rowsort label-4221
SELECT DISTINCT ( - 74 ) DIV - + 59 AS col0 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4221
SELECT DISTINCT ( - 74 ) / - + 59 AS col0 FROM tab1
----
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4222
SELECT - col1 DIV 72 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-4222
SELECT - col1 / 72 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-4223
SELECT + col0 DIV + + col1 AS col2 FROM tab1 AS cor0
----
1
17
3

skipif mysql # not compatible
query I rowsort label-4223
SELECT + col0 / + + col1 AS col2 FROM tab1 AS cor0
----
1
17
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4224
SELECT ALL - 0 + + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - ( + col2 ) >= - col2 * col0
----
0

skipif mysql # not compatible
query I rowsort label-4224
SELECT ALL - 0 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - ( + col2 ) >= - col2 * col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4225
SELECT + COUNT( * ) * - 66 * ( + 22 ) col0 FROM tab1 AS cor0
----
-4356

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4225
SELECT + COUNT ( * ) * - 66 * ( + 22 ) col0 FROM tab1 AS cor0
----
-4356

query I rowsort
SELECT + + ( 91 ) FROM tab2 cor0
----
91
91
91

query I rowsort
SELECT - 55 * - - 11 AS col2 FROM tab0 AS cor0
----
-605
-605
-605

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * 4 col2 FROM tab1 AS cor0
----
204
340
364

query I rowsort
SELECT - ( + + 34 ) AS col0 FROM tab1 AS cor0
----
-34
-34
-34

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4230
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > + - 98 + - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4230
SELECT * FROM tab0 AS cor0 WHERE NOT col2 > + - 98 + - + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4231
SELECT DISTINCT COUNT( DISTINCT col2 ) * + + 54 AS col0 FROM tab0
----
162

skipif mysql # not compatible
query I rowsort label-4231
SELECT DISTINCT COUNT ( DISTINCT col2 ) * + + 54 AS col0 FROM tab0
----
162

query I rowsort
SELECT DISTINCT + 91 FROM tab0 WHERE - col0 IS NOT NULL
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4233
SELECT SUM( ALL - 72 ) AS col0 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-4233
SELECT SUM ( ALL - 72 ) AS col0 FROM tab1
----
-216

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT DISTINCT - SUM( DISTINCT col0 ) + + + 88 AS col2 FROM tab2
----
-97

skipif mysql # not compatible
query I rowsort label-4234
SELECT DISTINCT - SUM ( DISTINCT col0 ) + + + 88 AS col2 FROM tab2
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4235
SELECT DISTINCT 98 * - COUNT( ALL - ( 50 ) ) FROM tab2
----
-294

skipif mysql # not compatible
query I rowsort label-4235
SELECT DISTINCT 98 * - COUNT ( ALL - ( 50 ) ) FROM tab2
----
-294

onlyif mysql # aggregate syntax: 
query I rowsort label-4236
SELECT + MAX( DISTINCT col1 ) col1 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4236
SELECT + MAX ( DISTINCT col1 ) col1 FROM tab2
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4237
SELECT ALL + 13 / CAST( NULL AS SIGNED ) * - + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4237
SELECT ALL + 13 / CAST ( NULL AS INTEGER ) * - + col2 col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col2 + - 46 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT 85 - + 85 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT ALL + col1 * - + 83 * - + col2 FROM tab1
----
111552
24485
265268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 95 * col2 col2 FROM tab0
----
4465
9405
950

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT + SUM( + - 99 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4242
SELECT + SUM ( + - 99 ) FROM tab0 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-4243
SELECT - - MIN( - - col1 ) - - - 93 AS col2 FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-4243
SELECT - - MIN ( - - col1 ) - - - 93 AS col2 FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4244
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - col0 * - - col0 + + + CAST( + col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4244
SELECT col1 AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <> - col0 * - - col0 + + + CAST ( + col2 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4245
SELECT DISTINCT - 49 - + COUNT( DISTINCT - col0 ) * - COUNT( * ) FROM tab1 AS cor0
----
-40

skipif mysql # not compatible
query I rowsort label-4245
SELECT DISTINCT - 49 - + COUNT ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab1 AS cor0
----
-40

query I rowsort
SELECT 82 * - 62 FROM tab2
----
-5084
-5084
-5084

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 25 * - - 26 col0 FROM tab0
----
650
650
650

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT col0 * col0 * - - col1 * 8, + 58 AS col1, + col0 * - 38 * - col1 col0 FROM tab1
----
9 values hashing to 95857bfcfc33eec7b8007041e90724ba

onlyif mysql # aggregate syntax: 
query I rowsort label-4249
SELECT MIN( DISTINCT - 2 ) AS col1 FROM tab0 cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4249
SELECT MIN ( DISTINCT - 2 ) AS col1 FROM tab0 cor0
----
-2

query I rowsort
SELECT 71 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

onlyif mysql # DIV for integer division: 
query I rowsort label-4251
SELECT ALL + 36 DIV 45 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4251
SELECT ALL + 36 / 45 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT MIN( DISTINCT 87 ) AS col1 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-4252
SELECT MIN ( DISTINCT 87 ) AS col1 FROM tab2
----
87

onlyif mysql # aggregate syntax: 
query II rowsort label-4253
SELECT - 86 AS col1, COUNT( * ) col1 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----
-86
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4253
SELECT - 86 AS col1, COUNT ( * ) col1 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----
-86
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 67 col0 FROM tab2 cor0
----
67
67
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT + - 10 * + + ( - + SUM( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-2230

skipif mysql # not compatible
query I rowsort label-4255
SELECT + - 10 * + + ( - + SUM ( DISTINCT - col2 ) ) AS col0 FROM tab1 AS cor0
----
-2230

query I rowsort
SELECT col1 + + 75 AS col1 FROM tab0 cor0
----
156
76
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4257
SELECT - 23 * + - CAST( col0 AS SIGNED ) + - col2 FROM tab2 AS cor0
----
1035
1432
1667

skipif mysql # not compatible
query I rowsort label-4257
SELECT - 23 * + - CAST ( col0 AS INTEGER ) + - col2 FROM tab2 AS cor0
----
1035
1432
1667

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4258
SELECT + col1 * + 79 * - col1 / 87 + - CAST( NULL AS SIGNED ) - 33 * + col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4258
SELECT + col1 * + 79 * - col1 / 87 + - CAST ( NULL AS INTEGER ) - 33 * + col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 + + ( + 59 ) * + + col2 * + 26 - + col2 FROM tab2
----
35282
61360
88972

query I rowsort
SELECT 73 + - 39 AS col2 FROM tab2
----
34
34
34

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4261
SELECT col0 + col2, - ( - col1 ) + CAST( NULL AS SIGNED ) * 76 col0 FROM tab2
----
104
NULL
133
NULL
69
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4261
SELECT col0 + col2, - ( - col1 ) + CAST ( NULL AS INTEGER ) * 76 col0 FROM tab2
----
104
NULL
133
NULL
69
NULL

query III rowsort
SELECT * FROM tab2 WHERE - col2 = + col1
----

query I rowsort
SELECT DISTINCT + + col0 - col1 FROM tab0 cor0
----
-66
66
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE 13 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4265
SELECT ALL + + 14 * + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-4265
SELECT ALL + + 14 * + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4266
SELECT + CAST( NULL AS SIGNED ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4266
SELECT + CAST ( NULL AS INTEGER ) * ( col0 ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 74 - + + 27 AS col1 FROM tab2 AS cor0
----
47
47
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4268
SELECT DISTINCT + - CAST( NULL AS SIGNED ) * - COUNT( DISTINCT + + col1 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4268
SELECT DISTINCT + - CAST ( NULL AS INTEGER ) * - COUNT ( DISTINCT + + col1 ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + col1 + + col1 col0 FROM tab0 AS cor0
----
101
209
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4270
SELECT DISTINCT COUNT( * ) + + 33 + 70 AS col2 FROM tab1 cor0
----
106

skipif mysql # not compatible
query I rowsort label-4270
SELECT DISTINCT COUNT ( * ) + + 33 + 70 AS col2 FROM tab1 cor0
----
106

query I rowsort
SELECT ALL + col1 - 2 AS col1 FROM tab0 AS cor0
----
-1
19
79

query I rowsort
SELECT - 18 + + col1 + ( col1 ) AS col0 FROM tab1 AS cor0
----
-8
10
76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4273
SELECT DISTINCT col2 * CAST( NULL AS SIGNED ) - + - ( + col2 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4273
SELECT DISTINCT col2 * CAST ( NULL AS INTEGER ) - + - ( + col2 ) FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4274
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) <> - col0 + col1
----

skipif mysql # not compatible
query III rowsort label-4274
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) <> - col0 + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4275
SELECT + + MIN( + - col2 ) FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4275
SELECT + + MIN ( + - col2 ) FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT ALL + ( COUNT( * ) ) col0 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4276
SELECT ALL + ( COUNT ( * ) ) col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4277
SELECT SUM( + - 98 ) + COUNT( * ) FROM tab2, tab2 cor0
----
-873

skipif mysql # not compatible
query I rowsort label-4277
SELECT SUM ( + - 98 ) + COUNT ( * ) FROM tab2, tab2 cor0
----
-873

onlyif mysql # aggregate syntax: 
query I rowsort label-4278
SELECT 91 * + COUNT( * ) FROM tab1, tab2 AS cor0
----
819

skipif mysql # not compatible
query I rowsort label-4278
SELECT 91 * + COUNT ( * ) FROM tab1, tab2 AS cor0
----
819

query II rowsort
SELECT ALL 24 AS col1, - 86 AS col1 FROM tab0
----
24
-86
24
-86
24
-86

query I rowsort
SELECT DISTINCT + + col2 * + 59 FROM tab0 AS cor0
----
2773
5841
590

onlyif mysql # DIV for integer division: 
query I rowsort label-4281
SELECT ALL + 91 DIV + - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL + 91 / + - col1 AS col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4282
SELECT ( - - CAST( - col0 AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4282
SELECT ( - - CAST ( - col0 AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-46
-64
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 45 * col0 col0 FROM tab0 AS cor0
----
3915
4365
675

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4284
SELECT + - col0 - - 73 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST( + - col0 AS SIGNED ) IS NULL
----
118
47
50

skipif mysql # not compatible
query I rowsort label-4284
SELECT + - col0 - - 73 + col2 AS col2 FROM tab1 AS cor0 WHERE NOT + CAST ( + - col0 AS INTEGER ) IS NULL
----
118
47
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + 64 col0 FROM tab1
----
111
69
78

query I rowsort
SELECT + col1 * 3 + col1 * + col1 FROM tab1 WHERE + col0 NOT IN ( col0 * + col0 )
----
2350
238
40

query I rowsort
SELECT col1 * 26 AS col2 FROM tab1 WHERE - col1 NOT BETWEEN ( - 90 ) AND + col0 + col0 * - 18
----
1222
130
364

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT DISTINCT - COUNT( - col1 ) + - COUNT( * ) FROM tab1
----
-6

skipif mysql # not compatible
query I rowsort label-4288
SELECT DISTINCT - COUNT ( - col1 ) + - COUNT ( * ) FROM tab1
----
-6

query I rowsort
SELECT - col1 AS col2 FROM tab0 WHERE - ( 86 ) / col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4290
SELECT COUNT( * ) FROM tab1 WHERE NOT + col2 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4290
SELECT COUNT ( * ) FROM tab1 WHERE NOT + col2 IS NULL
----
3

query I rowsort
SELECT - col2 FROM tab1 WHERE NOT col0 * col1 NOT IN ( - ( col0 ) * + col1 )
----

query I rowsort
SELECT ALL col1 + + 24 FROM tab2
----
101
75
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT ALL MIN( 42 ) + 9 AS col1 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4293
SELECT ALL MIN ( 42 ) + 9 AS col1 FROM tab1
----
51

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( ( col1 ) ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4295
SELECT - COUNT( + 81 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4295
SELECT - COUNT ( + 81 ) FROM tab1
----
-3

query I rowsort
SELECT ALL - ( col1 ) * + col2 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4297
SELECT ALL + 60 * + CAST( + col2 AS SIGNED ) FROM tab1
----
3540
4080
5760

skipif mysql # not compatible
query I rowsort label-4297
SELECT ALL + 60 * + CAST ( + col2 AS INTEGER ) FROM tab1
----
3540
4080
5760

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4299
SELECT ALL col0 DIV col0 - - col0 AS col2 FROM tab2
----
47
65
76

skipif mysql # not compatible
query I rowsort label-4299
SELECT ALL col0 / col0 - - col0 AS col2 FROM tab2
----
47
65
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT ALL - 75 DIV col2 FROM tab2
----
-1
-1
-3

skipif mysql # not compatible
query I rowsort label-4300
SELECT ALL - 75 / col2 FROM tab2
----
-1
-1
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4301
SELECT ALL - CAST( + ( col0 ) AS SIGNED ) * 11 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * 53 )
----

skipif mysql # not compatible
query I rowsort label-4301
SELECT ALL - CAST ( + ( col0 ) AS INTEGER ) * 11 AS col0 FROM tab1 AS cor0 WHERE NULL NOT IN ( col2 * 53 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col1 FROM tab1 AS cor0 WHERE + 79 IS NOT NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4303
SELECT - CAST( NULL AS SIGNED ) * 82 + + AVG ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4303
SELECT - CAST ( NULL AS INTEGER ) * 82 + + AVG ( col2 ) AS col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE - col1 * - col2 + - col1 = ( NULL )
----

query I rowsort
SELECT DISTINCT 3 - 12 AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4306
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST( col0 AS SIGNED ) - + col2 ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4306
SELECT * FROM tab1 AS cor0 WHERE NOT ( CAST ( col0 AS INTEGER ) - + col2 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT DISTINCT + + MIN( ALL - col2 ) * COUNT( * ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-4307
SELECT DISTINCT + + MIN ( ALL - col2 ) * COUNT ( * ) FROM tab0 AS cor0
----
-297

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT ( ( - col2 ) ) * col0 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4309
SELECT ALL ( CAST( NULL AS SIGNED ) ) - + col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-4309
SELECT ALL ( CAST ( NULL AS INTEGER ) ) - + col2 * col2 AS col1 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT ALL col2 / - col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 + col2 ) <> + 48
----

query I rowsort
SELECT col2 AS col0 FROM tab2 AS cor0 WHERE NOT col2 + + col2 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN ( NULL ) AND ( 25 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4313
SELECT ALL - ( + MIN( DISTINCT col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4313
SELECT ALL - ( + MIN ( DISTINCT col0 ) ) AS col2 FROM tab0 AS cor0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT ALL CAST( - col2 AS SIGNED ) * + col1 AS col2 FROM tab2 AS cor0 WHERE ( - col2 * + col2 ) >= col1
----

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL CAST ( - col2 AS INTEGER ) * + col1 AS col2 FROM tab2 AS cor0 WHERE ( - col2 * + col2 ) >= col1
----

query I rowsort
SELECT + 41 * - col2 FROM tab0
----
-1927
-4059
-410

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + 98 * + COUNT( * ) AS col2 FROM tab2
----
294

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + 98 * + COUNT ( * ) AS col2 FROM tab2
----
294

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 24 col2 FROM tab2 WHERE NOT + col2 * + col0 = NULL
----

query I rowsort
SELECT - col1 * - col1 * 43 AS col2 FROM tab1
----
1075
8428
94987

query I rowsort
SELECT ALL 8 * + + ( + ( + col0 ) ) AS col1 FROM tab0
----
120
696
776

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL IN ( + 34 )
----

query I rowsort
SELECT DISTINCT - col1 * + 21 FROM tab2
----
-1071
-1407
-1617

onlyif mysql # aggregate syntax: 
query I rowsort label-4322
SELECT ALL + COUNT( * ) * + MAX( ALL - col2 ) * 96 AS col1 FROM tab1
----
-16992

skipif mysql # not compatible
query I rowsort label-4322
SELECT ALL + COUNT ( * ) * + MAX ( ALL - col2 ) * 96 AS col1 FROM tab1
----
-16992

query I rowsort
SELECT DISTINCT - col1 * - + col1 * 78 FROM tab0 AS cor0
----
34398
511758
78

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT DISTINCT MAX( + 28 ) + 30 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 * + 64 ) NOT BETWEEN ( col0 / + col1 ) AND ( - col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4324
SELECT DISTINCT MAX ( + 28 ) + 30 AS col2 FROM tab0 AS cor0 WHERE NOT ( col0 * + 64 ) NOT BETWEEN ( col0 / + col1 ) AND ( - col1 )
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col0 * col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 85 * + col0 + - col1 FROM tab2 AS cor0 WHERE NOT ( 41 + + col0 ) BETWEEN + 84 AND ( NULL )
----

query I rowsort
SELECT ALL - 26 * + col0 * + col1 AS col1 FROM tab0
----
-2522
-31590
-47502

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4328
SELECT + col0 * - CAST( NULL AS SIGNED ) + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2
----

skipif mysql # not compatible
query I rowsort label-4328
SELECT + col0 * - CAST ( NULL AS INTEGER ) + col2 AS col1 FROM tab0 WHERE NOT NULL BETWEEN NULL AND + col2
----

query I rowsort
SELECT - col2 - col1 FROM tab1 WHERE NULL NOT IN ( - col1 + + 59 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE 35 * + col0 - - col2 IN ( ( 98 ) )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( 57 ) IN ( + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 col1 FROM tab1 cor0 WHERE NOT - 15 NOT BETWEEN NULL AND + 59
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 22 col0, ( - col0 ) * - 82 + - 15 FROM tab0 AS cor0
----
22
1215
22
7119
22
7939

query I rowsort
SELECT - col1 + - - col0 AS col0 FROM tab0 cor0
----
-66
66
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + 93 col1, col0 * - - col2 FROM tab0 AS cor0
----
-93
705
-93
870
-93
9603

query I rowsort
SELECT ALL + col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4337
SELECT + + SUM( + col2 ) + + 18 AS col2 FROM tab0 AS cor0
----
174

skipif mysql # not compatible
query I rowsort label-4337
SELECT + + SUM ( + col2 ) + + 18 AS col2 FROM tab0 AS cor0
----
174

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4338
SELECT DISTINCT - col2 * - col1 col0 FROM tab2 AS cor0 WHERE NOT - 6 * CAST( + ( 29 ) AS SIGNED ) + + col0 IS NULL
----
1173
3080
3886

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4338
SELECT DISTINCT - col2 * - col1 col0 FROM tab2 AS cor0 WHERE NOT - 6 * CAST ( + ( 29 ) AS INTEGER ) + + col0 IS NULL
----
1173
3080
3886

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 73 + - - col1 * - 1 col2 FROM tab2 AS cor0
----
-124
-140
-150

query I rowsort
SELECT 35 * col2 FROM tab0 AS cor0 WHERE 12 * - col2 > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4341
SELECT DISTINCT col1 + + 27 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query I rowsort label-4341
SELECT DISTINCT col1 + + 27 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col0 AND - CAST ( NULL AS INTEGER ) * + col1
----

query II rowsort
SELECT - 27 + - col2 AS col0, col2 AS col2 FROM tab1
----
-123
96
-86
59
-95
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4343
SELECT DISTINCT SUM( ALL + 13 ) * 80 FROM tab0
----
3120

skipif mysql # not compatible
query I rowsort label-4343
SELECT DISTINCT SUM ( ALL + 13 ) * 80 FROM tab0
----
3120

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + - col2 col0, + 44 FROM tab0
----
-2
44
-32
44
77
44

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + + ( - col0 ) BETWEEN ( NULL ) AND NULL
----

query I rowsort
SELECT - col1 + + col2 AS col0 FROM tab1 WHERE + col0 * - - col2 NOT BETWEEN 75 AND col1 / col1
----
21
54
82

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN NULL AND - ( - 14 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4348
SELECT ALL - 79 * - + COUNT( col1 ) + - - COUNT( * ) DIV COUNT( * ) AS col1 FROM tab1
----
238

skipif mysql # not compatible
query I rowsort label-4348
SELECT ALL - 79 * - + COUNT ( col1 ) + - - COUNT ( * ) / COUNT ( * ) AS col1 FROM tab1
----
238

query I rowsort
SELECT ALL col2 + + col1 + + col2 AS col1 FROM tab1
----
123
183
206

query I rowsort
SELECT + + ( 20 ) FROM tab2 AS cor0
----
20
20
20

onlyif mysql # aggregate syntax: 
query II rowsort label-4351
SELECT - MAX( - col2 ) col2, + 74 AS col0 FROM tab1 AS cor0
----
59
74

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4351
SELECT - MAX ( - col2 ) col2, + 74 AS col0 FROM tab1 AS cor0
----
59
74

query I rowsort
SELECT ALL - 22 AS col2 FROM tab0 AS cor0 WHERE NOT ( - 84 ) + + col1 >= - col2 + col2
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-4353
SELECT COUNT( * ) col2 FROM tab1 AS cor0 WHERE ( + - 24 ) * - col0 + col0 + col2 <= - col2 + - col1 * col1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4353
SELECT COUNT ( * ) col2 FROM tab1 AS cor0 WHERE ( + - 24 ) * - col0 + col0 + col2 <= - col2 + - col1 * col1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4354
SELECT - + CAST( NULL AS SIGNED ) / + ( - - 97 ) - 60 + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4354
SELECT - + CAST ( NULL AS INTEGER ) / + ( - - 97 ) - 60 + + col2 FROM tab0 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 53 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( 29 ) col1 FROM tab2 WHERE col2 + - col2 >= + 86 + + col1
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - ( col2 ) + - col0 + - col2 ) = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 82 col0, col1 AS col2 FROM tab0
----
-82
1
-82
21
-82
81

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-4359
SELECT + - CAST( NULL AS SIGNED ), - col2 DIV + col0 AS col2 FROM tab0 AS cor0
----
NULL
-1
NULL
-3
NULL
0

skipif mysql # not compatible
query II rowsort label-4359
SELECT + - CAST ( NULL AS INTEGER ), - col2 / + col0 AS col2 FROM tab0 AS cor0
----
NULL
-1
NULL
-3
NULL
0

query I rowsort
SELECT col1 AS col1 FROM tab0 cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

query II rowsort
SELECT + 66 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
66
-59
66
-68
66
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4362
SELECT + 64 * - COUNT( * ) AS col1 FROM tab0 AS cor0
----
-192

skipif mysql # not compatible
query I rowsort label-4362
SELECT + 64 * - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-192

query I rowsort
SELECT ALL col1 + col2 FROM tab1 AS cor0 WHERE col0 + - col2 IN ( + + col2 )
----

query II rowsort
SELECT + 87, col1 FROM tab0 AS cor0
----
87
1
87
21
87
81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4365
SELECT DISTINCT 18 * 74 FROM tab2 WHERE ( NOT ( NOT NULL <= col1 * CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-4365
SELECT DISTINCT 18 * 74 FROM tab2 WHERE ( NOT ( NOT NULL <= col1 * CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 99 + col1 * + col2 ) NOT BETWEEN NULL AND 1
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NULL = ( NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4368
SELECT ALL + col2 * - + CAST( - 17 AS SIGNED ) FROM tab1
----
1003
1156
1632

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL + col2 * - + CAST ( - 17 AS INTEGER ) FROM tab1
----
1003
1156
1632

onlyif mysql # aggregate syntax: 
query I rowsort label-4369
SELECT DISTINCT - COUNT( - ( + col2 ) ) FROM tab2 WHERE NOT - col0 * + - col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4369
SELECT DISTINCT - COUNT ( - ( + col2 ) ) FROM tab2 WHERE NOT - col0 * + - col1 <= NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 54 col1, col0 FROM tab0
----
54
15
54
87
54
97

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT NULL IN ( - 82, col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4372
SELECT - + COUNT( DISTINCT 35 ) col1 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4372
SELECT - + COUNT ( DISTINCT 35 ) col1 FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col1 * 39 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 IN ( + col2 )
----

query I rowsort
SELECT col2 AS col2 FROM tab2 WHERE + + col0 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4376
SELECT DISTINCT + + COUNT( * ) + 71 FROM tab1 WHERE NULL <= + + CAST( NULL AS SIGNED ) + 47
----
71

skipif mysql # not compatible
query I rowsort label-4376
SELECT DISTINCT + + COUNT ( * ) + 71 FROM tab1 WHERE NULL <= + + CAST ( NULL AS INTEGER ) + 47
----
71

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col2 * + 11 - + col0 - - - col1 * - col2 + + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col0 * + + col2 >= + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4379
SELECT DISTINCT col1 * CAST( + col1 AS SIGNED ) AS col2 FROM tab2 AS cor0 WHERE + 34 NOT IN ( + col0 )
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-4379
SELECT DISTINCT col1 * CAST ( + col1 AS INTEGER ) AS col2 FROM tab2 AS cor0 WHERE + 34 NOT IN ( + col0 )
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT + + MAX( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4380
SELECT + + MAX ( DISTINCT + - col0 ) FROM tab0 AS cor0
----
-15

query I rowsort
SELECT + 81 * + col1 AS col1 FROM tab1 AS cor0 WHERE - col1 < ( NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL IN ( col0, col2 ) )
----

query III rowsort
SELECT * FROM tab1 WHERE 7 + - + 80 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4384
SELECT ALL col0 DIV - + ( + 9 ) AS col2, + col1 FROM tab1
----
-10
47
-5
14
-9
5

skipif mysql # not compatible
query II rowsort label-4384
SELECT ALL col0 / - + ( + 9 ) AS col2, + col1 FROM tab1
----
-10
47
-5
14
-9
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <= ( + 16 )
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4386
SELECT ALL - + col1 AS col1 FROM tab1 WHERE NOT NULL <> + CAST( - + col2 AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-4386
SELECT ALL - + col1 AS col1 FROM tab1 WHERE NOT NULL <> + CAST ( - + col2 AS INTEGER ) * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4387
SELECT + 92 * - 50 * - MIN( ALL - - 79 ) + + SUM( - col1 ) AS col0 FROM tab2
----
363205

skipif mysql # not compatible
query I rowsort label-4387
SELECT + 92 * - 50 * - MIN ( ALL - - 79 ) + + SUM ( - col1 ) AS col0 FROM tab2
----
363205

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4388
SELECT - ( - col1 ) + + CAST( + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
102
134
154

skipif mysql # not compatible
query I rowsort label-4388
SELECT - ( - col1 ) + + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
102
134
154

query III rowsort
SELECT * FROM tab0 cor0 WHERE col2 / + + col1 * + col2 + + col1 + 33 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4390
SELECT DISTINCT - 11 AS col1 FROM tab1 AS cor0 WHERE CAST( CAST( - + col0 AS DECIMAL ) AS SIGNED ) IS NOT NULL
----
-11

skipif mysql # not compatible
query I rowsort label-4390
SELECT DISTINCT - 11 AS col1 FROM tab1 AS cor0 WHERE CAST ( CAST ( - + col0 AS REAL ) AS INTEGER ) IS NOT NULL
----
-11

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col0 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4392
SELECT DISTINCT + COUNT( - 73 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4392
SELECT DISTINCT + COUNT ( - 73 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT + 80 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

onlyif mysql # DIV for integer division: 
query I rowsort label-4394
SELECT + 49 * col2 DIV 94 FROM tab2
----
11
20
30

skipif mysql # not compatible
query I rowsort label-4394
SELECT + 49 * col2 / 94 FROM tab2
----
11
20
30

query I rowsort
SELECT ALL - 95 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL = + 77 - - 37
----

query I rowsort
SELECT ALL col0 * + + col0 AS col1 FROM tab1 AS cor0
----
2601
7225
8281

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 >= + 77 * + ( col2 ) + + + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - 91 AS col1 FROM tab0 cor0
----
-91
-91
-91

query II rowsort
SELECT DISTINCT col1 + + 96 / - - col2, - col1 * - 37 AS col0 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND ( NULL )
----

query II rowsort
SELECT ALL col1 AS col1, 68 FROM tab1
----
14
68
47
68
5
68

onlyif mysql # aggregate syntax: 
query I rowsort label-4402
SELECT ALL MIN( ALL 99 ) AS col2 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-4402
SELECT ALL MIN ( ALL 99 ) AS col2 FROM tab2
----
99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 + + - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - ( - ( col1 ) ) FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4405
SELECT 48 + - - COUNT( * ) AS col2 FROM tab0
----
51

skipif mysql # not compatible
query I rowsort label-4405
SELECT 48 + - - COUNT ( * ) AS col2 FROM tab0
----
51

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + col2
----

query II rowsort
SELECT - - col0 AS col2, col1 * col0 + + col0 FROM tab2 AS cor0
----
46
2392
64
4992
75
5100

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 51 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + col0 * col2 + - 85 + + ( + - col0 ) FROM tab1 cor0
----
4760
4845
6012

onlyif mysql # aggregate syntax: 
query II rowsort label-4410
SELECT + ( - 31 ) * - - COUNT( * ) AS col1, + 46 FROM tab2 cor0
----
-93
46

skipif mysql # not compatible
query II rowsort label-4410
SELECT + ( - 31 ) * - - COUNT ( * ) AS col1, + 46 FROM tab2 cor0
----
-93
46

query I rowsort
SELECT ALL 1 FROM tab0 AS cor0 WHERE - - 59 BETWEEN + 90 AND NULL AND NOT NULL IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NULL > - ( - - col2 ) + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4413
SELECT - - COUNT( * ) + - + 14 AS col0 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-4413
SELECT - - COUNT ( * ) + - + 14 AS col0 FROM tab1 AS cor0
----
-11

query II rowsort
SELECT DISTINCT + col1 * + col0, 64 - - col1 AS col0 FROM tab2 AS cor0
----
2346
115
4928
141
5025
131

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL > + col1 - - col2
----

query I rowsort
SELECT - ( 24 ) + col0 + col2 AS col1 FROM tab1 cor0
----
120
123
135

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( col0 ) * + col0 col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
2116
4096
5625

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4418
SELECT DISTINCT - ( + MIN( ALL - col0 ) ) DIV - COUNT( * ) AS col0 FROM tab1
----
-30

skipif mysql # not compatible
query I rowsort label-4418
SELECT DISTINCT - ( + MIN ( ALL - col0 ) ) / - COUNT ( * ) AS col0 FROM tab1
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4419
SELECT ALL + COUNT( * ) DIV + 91 * 62 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4419
SELECT ALL + COUNT ( * ) / + 91 * 62 AS col1 FROM tab0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col1 * col0 IS NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 * - col1 - + 93 AS col2 FROM tab2 AS cor0
----
-2439
-5021
-5118

query I rowsort
SELECT DISTINCT 2 FROM tab1 cor0 WHERE NULL NOT IN ( + col0, col2 )
----

query II rowsort
SELECT ALL + col2 AS col1, - col0 AS col0 FROM tab0
----
10
-87
47
-15
99
-97

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 * - 19 + - ( - col0 ) BETWEEN + col2 * + col0 + - + col0 AND - + col2 - col2 * - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL <> + col2 * + col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4426
SELECT ALL - SUM( + + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4426
SELECT ALL - SUM ( + + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4427
SELECT ALL - - col0 * + - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4427
SELECT ALL - - col0 * + - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * - col0 + + - col2 FROM tab0 AS cor0
----
-752
-880
-9702

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( + col0 + - col2 * 22 - col2, col2 * - col0 + - + ( - col1 ) + + + 10 + 26 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4430
SELECT DISTINCT - - MAX( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-4430
SELECT DISTINCT - - MAX ( - col0 ) AS col1 FROM tab1 AS cor0
----
-51

query II rowsort
SELECT DISTINCT col2 AS col0, col2 FROM tab1 cor0
----
59
59
68
68
96
96

query I rowsort
SELECT DISTINCT - ( + + 31 ) * + 14 FROM tab1 WHERE + col2 IS NOT NULL
----
-434

query I rowsort
SELECT DISTINCT 26 + - - 16 * - col2 + + 44 FROM tab0
----
-1514
-682
-90

query I rowsort
SELECT 76 * - - col0 AS col2 FROM tab1
----
3876
6460
6916

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL BETWEEN + col0 * - 18 + - col2 * + col0 AND - + col1
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 66 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4437
SELECT - - COUNT( * ) + - 61 AS col1 FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-4437
SELECT - - COUNT ( * ) + - 61 AS col1 FROM tab1 AS cor0
----
-58

query III rowsort
SELECT * FROM tab1 WHERE col1 / + 42 * + col0 * col0 + + col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4439
SELECT + - col2 / + 83 * + CAST( NULL AS DECIMAL ), + col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

skipif mysql # not compatible
query II rowsort label-4439
SELECT + - col2 / + 83 * + CAST ( NULL AS REAL ), + col0 AS col1 FROM tab0 cor0
----
NULL
15
NULL
87
NULL
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4440
SELECT + 20 * - COUNT( - + ( + - 86 ) ) AS col2 FROM tab0 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4440
SELECT + 20 * - COUNT ( - + ( + - 86 ) ) AS col2 FROM tab0 cor0
----
-60

query I rowsort
SELECT + - 32 FROM tab0 AS cor0 WHERE NULL BETWEEN ( + 56 ) AND - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4442
SELECT + - ( - - COUNT( * ) ) * + 35 - - 95 * 66 col1 FROM tab2 AS cor0
----
6165

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4442
SELECT + - ( - - COUNT ( * ) ) * + 35 - - 95 * 66 col1 FROM tab2 AS cor0
----
6165

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL < + 51 - + 38
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4444
SELECT + 48 * COUNT( * ) * + + SUM( - col2 ) - - - 92 + + 4 / - COUNT( * ) + - CAST( NULL AS SIGNED ) / - AVG ( + 17 ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4444
SELECT + 48 * COUNT ( * ) * + + SUM ( - col2 ) - - - 92 + + 4 / - COUNT ( * ) + - CAST ( NULL AS INTEGER ) / - AVG ( + 17 ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT ALL + 49 * col2 * + + col0 + - 49 * col0 * ( col2 ) AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ( - 22 ) + - 3 AS col2 FROM tab0
----
-25
-25
-25

onlyif mysql # DIV for integer division: 
query I rowsort label-4447
SELECT ALL - col0 DIV + + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-4447
SELECT ALL - col0 / + + col0 AS col1 FROM tab0 AS cor0
----
-1
-1
-1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 86 ) >= + col0
----
51
14
96
85
5
59

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 - - col2 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 16 * - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col2 * 83 * + col0 FROM tab1 AS cor0
----
-406368
-416245
-513604

onlyif mysql # DIV for integer division: 
query II rowsort label-4452
SELECT ALL 7 DIV - + col0 AS col1, + 43 DIV 67 * - + 83 FROM tab1 AS cor0
----
0
0
0
0
0
0

skipif mysql # not compatible
query II rowsort label-4452
SELECT ALL 7 / - + col0 AS col1, + 43 / 67 * - + 83 FROM tab1 AS cor0
----
0
0
0
0
0
0

query I rowsort
SELECT ALL col1 AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4454
SELECT - col2 DIV - - CAST( - col1 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4454
SELECT - col2 / - - CAST ( - col1 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT - ( col0 ) AS col0, - 81 * + 54 + - col0 - - col0 * col2 FROM tab1 AS cor0
----
-51
471
-85
556
-91
1723

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 81 col2, + 83 FROM tab0 AS cor0 WHERE - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4457
SELECT col1 + col0 - - - CAST( 32 AS SIGNED ) * - 20 FROM tab1
----
705
730
778

skipif mysql # not compatible
query I rowsort label-4457
SELECT col1 + col0 - - - CAST ( 32 AS INTEGER ) * - 20 FROM tab1
----
705
730
778

query I rowsort
SELECT + 69 + - col2 + - 99 - + + 55 FROM tab0
----
-132
-184
-95

query I rowsort
SELECT DISTINCT col1 + + + 63 AS col0 FROM tab2
----
114
130
140

onlyif mysql # DIV for integer division: 
query I rowsort label-4460
SELECT - col0 DIV ( + 92 ) + + col2 col0 FROM tab2
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4460
SELECT - col0 / ( + 92 ) + + col2 col0 FROM tab2
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4461
SELECT ALL 10 * + - ( + + CAST( NULL AS SIGNED ) ) + + COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4461
SELECT ALL 10 * + - ( + + CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT col0 + + ( - 72 ) AS col1 FROM tab0
----
-57
15
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4463
SELECT ALL col0 + - col0 DIV col2 DIV + 86 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4463
SELECT ALL col0 + - col0 / col2 / + 86 FROM tab2
----
46
64
75

query I rowsort
SELECT ALL + col1 + - 73 AS col0 FROM tab1
----
-26
-59
-68

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4465
SELECT ALL CAST( NULL AS SIGNED ) * + 81 + + col1 * + - col0 * + ( 42 ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4465
SELECT ALL CAST ( NULL AS INTEGER ) * + 81 + + col1 * + - col0 * + ( 42 ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4466
SELECT - AVG ( + CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4466
SELECT - AVG ( + CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - + 16 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to be22ac76b42c6f7212ecc0ba7c89eb34

query I rowsort
SELECT DISTINCT + 14 AS col2 FROM ( tab0 cor0 CROSS JOIN tab0 AS cor1 )
----
14

query I rowsort
SELECT - 80 + col0 AS col2 FROM tab0 AS cor0
----
-65
17
7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col0 NOT BETWEEN NULL AND - + 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 41 * col0 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - col2 + 29 FROM tab2 AS cor0
----
-11
-29
6

query I rowsort
SELECT DISTINCT col0 - col2 + + col2 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT + ( + 88 ) - - 65 AS col1 FROM tab1 AS cor0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-4475
SELECT ALL - ( - ( ( COUNT( col1 ) ) ) ) AS col2 FROM tab1 AS cor0 WHERE col2 * col1 - + - 59 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4475
SELECT ALL - ( - ( ( COUNT ( col1 ) ) ) ) AS col2 FROM tab1 AS cor0 WHERE col2 * col1 - + - 59 IS NOT NULL
----
3

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 + + 17 * col2 * - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4477
SELECT + + MIN( ALL + col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-4477
SELECT + + MIN ( ALL + col2 ) FROM tab0 cor0
----
10

query I rowsort
SELECT ALL col2 * - - col2 AS col2 FROM tab0
----
100
2209
9801

onlyif mysql # aggregate syntax: 
query I rowsort label-4479
SELECT + 47 * - COUNT( * ) FROM tab1
----
-141

skipif mysql # not compatible
query I rowsort label-4479
SELECT + 47 * - COUNT ( * ) FROM tab1
----
-141

query I rowsort
SELECT DISTINCT + col1 * - - col2 AS col2 FROM tab2
----
1173
3080
3886

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4481
SELECT DISTINCT MIN( + 53 ) DIV - COUNT( * ) + - 8 * - MAX( DISTINCT + col0 ) AS col0, - 42 AS col0 FROM tab1 AS cor0
----
711
-42

skipif mysql # not compatible
query II rowsort label-4481
SELECT DISTINCT MIN ( + 53 ) / - COUNT ( * ) + - 8 * - MAX ( DISTINCT + col0 ) AS col0, - 42 AS col0 FROM tab1 AS cor0
----
711
-42

query I rowsort
SELECT + - ( - + 56 ) FROM tab2 AS cor0
----
56
56
56

onlyif mysql # aggregate syntax: 
query I rowsort label-4483
SELECT ALL - ( - COUNT( * ) ) * 34 col1 FROM tab0
----
102

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4483
SELECT ALL - ( - COUNT ( * ) ) * 34 col1 FROM tab0
----
102

onlyif mysql # DIV for integer division: 
query II rowsort label-4484
SELECT col1, 30 DIV 36 AS col2 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-4484
SELECT col1, 30 / 36 AS col2 FROM tab0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4485
SELECT COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-4485
SELECT COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
9

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( NULL ) IN ( + 77, 29 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4487
SELECT CAST( 7 AS SIGNED ) + - ( + col0 ) AS col1 FROM tab0
----
-8
-80
-90

skipif mysql # not compatible
query I rowsort label-4487
SELECT CAST ( 7 AS INTEGER ) + - ( + col0 ) AS col1 FROM tab0
----
-8
-80
-90

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 11 - - col0 BETWEEN col2 AND - 70 + - ( - - 74 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 4 * - col2 AS col2 FROM tab2 AS cor0
----
-160
-232
-92

onlyif mysql # DIV for integer division: 
query I rowsort label-4490
SELECT ALL ( - 56 ) DIV - + col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-4490
SELECT ALL ( - 56 ) / - + col0 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-4491
SELECT col2 DIV - 30 FROM tab1 cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-4491
SELECT col2 / - 30 FROM tab1 cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-4492
SELECT ALL COUNT( * ) AS col0, - COUNT( * ) AS col0 FROM tab0 AS cor0
----
3
-3

skipif mysql # not compatible
query II rowsort label-4492
SELECT ALL COUNT ( * ) AS col0, - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
3
-3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4493
SELECT DISTINCT + COUNT( - col1 ) * + - CAST( NULL AS SIGNED ) * - - ( + - 64 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4493
SELECT DISTINCT + COUNT ( - col1 ) * + - CAST ( NULL AS INTEGER ) * - - ( + - 64 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ( col2 ) * + 57, - col0 col0 FROM tab2
----
1311
-46
2280
-64
3306
-75

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 <= NULL
----

query I rowsort
SELECT ALL + col0 * + 71 AS col2 FROM tab0
----
1065
6177
6887

query I rowsort
SELECT DISTINCT 55 AS col1 FROM tab2 WHERE NULL <> ( NULL )
----

query I rowsort
SELECT ( - 13 ) * + 84 - col2 AS col2 FROM tab0
----
-1102
-1139
-1191

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4500
SELECT - + ( 75 ) + 65 + - - 65 + + - col1 DIV col1 FROM tab1 AS cor0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-4500
SELECT - + ( 75 ) + 65 + - - 65 + + - col1 / col1 FROM tab1 AS cor0
----
54
54
54

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4501
SELECT 45 DIV + - COUNT( * ) FROM tab2
----
-15

skipif mysql # not compatible
query I rowsort label-4501
SELECT 45 / + - COUNT ( * ) FROM tab2
----
-15

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT + ( + + 49 ) IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + - 98 / 49 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4504
SELECT ( 60 ) - - col1 * + col1 * CAST( + col1 AS SIGNED ) FROM tab2 AS cor0
----
132711
300823
456593

skipif mysql # not compatible
query I rowsort label-4504
SELECT ( 60 ) - - col1 * + col1 * CAST ( + col1 AS INTEGER ) FROM tab2 AS cor0
----
132711
300823
456593

onlyif mysql # aggregate syntax: 
query I rowsort label-4505
SELECT DISTINCT - COUNT( * ) + + 95 AS col2 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-4505
SELECT DISTINCT - COUNT ( * ) + + 95 AS col2 FROM tab2 AS cor0
----
92

query I rowsort
SELECT ALL - 51 * + col0 * + 96 * - 50 - - col2 AS col0 FROM tab1 AS cor0
----
12484896
20808059
22276868

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4507
SELECT DISTINCT 27 / + col1 + - 35 + - CAST( NULL AS SIGNED ) * 4 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4507
SELECT DISTINCT 27 / + col1 + - 35 + - CAST ( NULL AS INTEGER ) * 4 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT 95 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 97 * col1 * - - ( + 34 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col0 * + 88 AS col2, + col0 AS col1 FROM tab2
----
4048
46
5632
64
6600
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4511
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( ( NOT - - 37 + - - CAST( + 65 AS SIGNED ) >= - - 99 ) )
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT col0 FROM tab2 WHERE NOT ( ( NOT - - 37 + - - CAST ( + 65 AS INTEGER ) >= - - 99 ) )
----
46
64
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4512
SELECT ALL CAST( NULL AS DECIMAL ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4512
SELECT ALL CAST ( NULL AS REAL ) * + col1 AS col1 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 * + col1 * - col1 + + col0 + + - col1 - + 7 * - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4514
SELECT ALL COUNT( + 98 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4514
SELECT ALL COUNT ( + 98 ) FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4515
SELECT ALL SUM( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4515
SELECT ALL SUM ( DISTINCT - + col2 ) FROM tab2 AS cor0
----
-121

onlyif mysql # aggregate syntax: 
query II rowsort label-4516
SELECT ALL MAX( - 42 ) AS col1, - COUNT( * ) FROM tab0 cor0
----
-42
-3

skipif mysql # not compatible
query II rowsort label-4516
SELECT ALL MAX ( - 42 ) AS col1, - COUNT ( * ) FROM tab0 cor0
----
-42
-3

query II rowsort
SELECT - col2 * col1 AS col2, + col0 AS col2 FROM tab1 AS cor0
----
-1344
51
-295
85
-3196
91

query I rowsort
SELECT - 61 + - + 34 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1c7934db0632c123332c43f17b661d6c

onlyif mysql # aggregate syntax: 
query I rowsort label-4519
SELECT COUNT( * ) * + - 15 AS col1 FROM tab0
----
-45

skipif mysql # not compatible
query I rowsort label-4519
SELECT COUNT ( * ) * + - 15 AS col1 FROM tab0
----
-45

query I rowsort
SELECT ALL - ( + col1 ) + - col2 FROM tab0
----
-100
-128
-31

query I rowsort
SELECT DISTINCT - 99 + - 5 AS col1 FROM tab2
----
-104

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4522
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + col1 - + col0 + + - ( - 37 ) + - 37, col2, - CAST( NULL AS SIGNED ), 76 + - 37 + col2 * - + CAST( NULL AS SIGNED ) + ( + + 53 ) * + - col2, - 22 * 5 / - col1 )
----

skipif mysql # not compatible
query III rowsort label-4522
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col2 + col1 - + col0 + + - ( - 37 ) + - 37, col2, - CAST ( NULL AS INTEGER ), 76 + - 37 + col2 * - + CAST ( NULL AS INTEGER ) + ( + + 53 ) * + - col2, - 22 * 5 / - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4523
SELECT ALL - MIN( DISTINCT 83 ) FROM tab0 AS cor0
----
-83

skipif mysql # not compatible
query I rowsort label-4523
SELECT ALL - MIN ( DISTINCT 83 ) FROM tab0 AS cor0
----
-83

query I rowsort
SELECT DISTINCT + col0 FROM tab2 AS cor0 WHERE NOT - col2 * + ( col0 ) BETWEEN - + col1 * + col1 AND - - col0
----

query I rowsort
SELECT + 30 + + 92 FROM tab2 AS cor0
----
122
122
122

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 BETWEEN NULL AND 45
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col1 col1 FROM tab0 AS cor0
----
1
441
6561

query I rowsort
SELECT - col2 + + + 70 FROM tab1 cor0
----
-26
11
2

query I rowsort
SELECT DISTINCT - col0 + + 3 - + + col2 * + col0 AS col1 FROM tab2
----
-1101
-2621
-4422

query I rowsort
SELECT - 80 * 74 + 55 + + ( 80 ) AS col2 FROM tab2
----
-5785
-5785
-5785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4531
SELECT ( + + col2 ) + - col1 + + col1 * - CAST( 33 AS SIGNED ) * 52 AS col2 FROM tab0
----
-139030
-1618
-36047

skipif mysql # not compatible
query I rowsort label-4531
SELECT ( + + col2 ) + - col1 + + col1 * - CAST ( 33 AS INTEGER ) * 52 AS col2 FROM tab0
----
-139030
-1618
-36047

onlyif mysql # DIV for integer division: 
query I rowsort label-4532
SELECT DISTINCT col0 DIV + + 84 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4532
SELECT DISTINCT col0 / + + 84 FROM tab2
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4533
SELECT + CAST( NULL AS DECIMAL ) + CAST( + + COUNT( * ) AS SIGNED ) col1 FROM tab0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4533
SELECT + CAST ( NULL AS REAL ) + CAST ( + + COUNT ( * ) AS INTEGER ) col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT - col0 + - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4535
SELECT - 0 * + SUM( ALL + 2 ) FROM tab2 WHERE - col2 / col0 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4535
SELECT - 0 * + SUM ( ALL + 2 ) FROM tab2 WHERE - col2 / col0 IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 70 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4537
SELECT ALL CAST( NULL AS SIGNED ) * + - 58 + + 15 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4537
SELECT ALL CAST ( NULL AS INTEGER ) * + - 58 + + 15 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + col0 FROM tab0 AS cor0 WHERE NULL = 42
----

query I rowsort
SELECT - 5 * col1 AS col1 FROM tab2 AS cor0
----
-255
-335
-385

query II rowsort
SELECT - col2 AS col0, - 12 + + + col1 FROM tab0 AS cor0
----
-10
9
-47
69
-99
-11

query I rowsort
SELECT 46 * - col2 * - 79 AS col2 FROM tab0 AS cor0
----
170798
359766
36340

query I rowsort
SELECT DISTINCT - 59 * 85 AS col1 FROM tab1
----
-5015

onlyif mysql # DIV for integer division: 
query I rowsort label-4543
SELECT DISTINCT 0 DIV 7 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4543
SELECT DISTINCT 0 / 7 FROM tab2
----
0

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT + 19 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4545
SELECT 23 - - COUNT( * ) - 66 * 71 AS col2 FROM tab2 AS cor0 WHERE NOT col2 + col0 <= NULL
----
-4663

skipif mysql # not compatible
query I rowsort label-4545
SELECT 23 - - COUNT ( * ) - 66 * 71 AS col2 FROM tab2 AS cor0 WHERE NOT col2 + col0 <= NULL
----
-4663

query II rowsort
SELECT - - col2 * - col0, + col2 FROM tab0 AS cor0
----
-705
47
-870
10
-9603
99

query I rowsort
SELECT ALL - - ( + col0 ) * - col0 + - col2 - - col2 FROM tab1 AS cor0
----
-2601
-7225
-8281

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4548
SELECT ( + CAST( + col0 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-4548
SELECT ( + CAST ( + col0 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
46
64
75

query II rowsort
SELECT 73, - col2 AS col1 FROM tab2
----
73
-23
73
-40
73
-58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col2 * + col1 BETWEEN - + 41 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4551
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( 78 AS SIGNED ) NOT BETWEEN NULL AND - col2 * col2
----

skipif mysql # not compatible
query III rowsort label-4551
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( 78 AS INTEGER ) NOT BETWEEN NULL AND - col2 * col2
----

query II rowsort
SELECT ALL col0 AS col2, + col2 - col1 AS col0 FROM tab0
----
15
-34
87
-11
97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-4553
SELECT + MIN( ALL + col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4553
SELECT + MIN ( ALL + col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT DISTINCT MIN( - - 73 ) FROM tab2
----
73

skipif mysql # not compatible
query I rowsort label-4554
SELECT DISTINCT MIN ( - - 73 ) FROM tab2
----
73

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 / + 55 * + 23 >= NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 + - - 50 = - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-4557
SELECT + col0 DIV col1 * col0, - col0 - - col1 + - - col2 * col1 AS col1 FROM tab1 AS cor0
----
1445
215
153
1307
91
3152

skipif mysql # not compatible
query II rowsort label-4557
SELECT + col0 / col1 * col0, - col0 - - col1 + - - col2 * col1 AS col1 FROM tab1 AS cor0
----
1445
215
153
1307
91
3152

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 + - col2 col2 FROM tab2
----
16
34
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4559
SELECT MIN( - col2 ) + + 80 AS col2 FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-4559
SELECT MIN ( - col2 ) + + 80 AS col2 FROM tab0
----
-19

onlyif mysql # DIV for integer division: 
query I rowsort label-4560
SELECT col1 DIV + col0 + - 63 + - col0 + col0 FROM tab2
----
-62
-62
-63

skipif mysql # not compatible
query I rowsort label-4560
SELECT col1 / + col0 + - 63 + - col0 + col0 FROM tab2
----
-62
-62
-63

onlyif mysql # aggregate syntax: 
query I rowsort label-4561
SELECT ALL - 33 + + COUNT( col1 ) col2 FROM tab0
----
-30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4561
SELECT ALL - 33 + + COUNT ( col1 ) col2 FROM tab0
----
-30

query I rowsort
SELECT + col1 * col2 + + col0 AS col0 FROM tab1
----
1395
3287
380

onlyif mysql # aggregate syntax: 
query II rowsort label-4563
SELECT - MIN( DISTINCT - col2 ), - 52 + - 10 AS col0 FROM tab2 AS cor0
----
58
-62

skipif mysql # not compatible
query II rowsort label-4563
SELECT - MIN ( DISTINCT - col2 ), - 52 + - 10 AS col0 FROM tab2 AS cor0
----
58
-62

query I rowsort
SELECT - 69 FROM tab2 AS cor0 WHERE NULL NOT IN ( - 57 / + col1, + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4565
SELECT DISTINCT + COUNT( - + 19 ) * + 83 AS col2 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-4565
SELECT DISTINCT + COUNT ( - + 19 ) * + 83 AS col2 FROM tab2 AS cor0
----
249

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - ( - col1 ) IS NULL
----

query I rowsort
SELECT ALL - + 35 FROM tab1 AS cor0 WHERE NOT + 23 * - + col1 * - 17 * + col2 = - + col0 + - - col0 * - col0
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4568
SELECT DISTINCT CAST( NULL AS SIGNED ) + - - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4568
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT ALL * FROM tab2 WHERE ( + col1 - + - col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4570
SELECT DISTINCT - + CAST( - COUNT( ALL + col0 ) AS SIGNED ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4570
SELECT DISTINCT - + CAST ( - COUNT ( ALL + col0 ) AS INTEGER ) AS col0 FROM tab1 WHERE NULL IS NULL
----
3

query I rowsort
SELECT ALL 25 + 32 AS col1 FROM tab1
----
57
57
57

query I rowsort
SELECT - col0 + 35 AS col2 FROM tab2
----
-11
-29
-40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4573
SELECT DISTINCT - col2 FROM tab1 WHERE NOT + - CAST( - ( - col1 ) AS SIGNED ) NOT BETWEEN + 41 AND - + 44 + col2
----

skipif mysql # not compatible
query I rowsort label-4573
SELECT DISTINCT - col2 FROM tab1 WHERE NOT + - CAST ( - ( - col1 ) AS INTEGER ) NOT BETWEEN + 41 AND - + 44 + col2
----

query I rowsort
SELECT ALL 91 + col2 AS col1 FROM tab2 AS cor0
----
114
131
149

query I rowsort
SELECT 50 + - ( - - 68 ) AS col1 FROM tab0 AS cor0
----
-18
-18
-18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4576
SELECT DISTINCT + CAST( NULL AS SIGNED ), + col2 AS col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

skipif mysql # not compatible
query II rowsort label-4576
SELECT DISTINCT + CAST ( NULL AS INTEGER ), + col2 AS col1 FROM tab1 AS cor0 WHERE NULL < ( NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4577
SELECT * FROM tab1 AS cor0 WHERE + CAST( NULL AS DECIMAL ) / - - col0 / - - ( + col0 ) - + col2 * 73 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4577
SELECT * FROM tab1 AS cor0 WHERE + CAST ( NULL AS REAL ) / - - col0 / - - ( + col0 ) - + col2 * 73 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4578
SELECT + MIN( ALL + ( + - col2 ) ) FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4578
SELECT + MIN ( ALL + ( + - col2 ) ) FROM tab1
----
-96

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT + 79 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4580
SELECT - col0 DIV + + ( + + 1 ) FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-4580
SELECT - col0 / + + ( + + 1 ) FROM tab2
----
-46
-64
-75

query I rowsort
SELECT - + 9 * 41 - + + 16 + - + col0 AS col2 FROM tab2 WHERE NOT + + 35 IS NULL
----
-431
-449
-460

query I rowsort
SELECT DISTINCT + + 79 * + ( + 98 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
7742

query I rowsort
SELECT + 36 * col2 AS col1 FROM tab1 AS cor0
----
2124
2448
3456

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4584
SELECT ALL - + COUNT( * ) * MIN( - col1 ) * + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4584
SELECT ALL - + COUNT ( * ) * MIN ( - col1 ) * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4585
SELECT DISTINCT - col1 * - col1 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4585
SELECT DISTINCT - col1 * - col1 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 45 / + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - 18 FROM tab1 AS cor0 WHERE NOT col1 * - col1 = NULL
----

query I rowsort
SELECT DISTINCT - ( 61 ) AS col2 FROM tab0
----
-61

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4589
SELECT - CAST( 39 AS SIGNED ) FROM tab0
----
-39
-39
-39

skipif mysql # not compatible
query I rowsort label-4589
SELECT - CAST ( 39 AS INTEGER ) FROM tab0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query I rowsort label-4590
SELECT - + col1 + - - 31 + + + 51 * - col0 + col2 DIV 39 AS col2 FROM tab2 WHERE NOT + - 70 BETWEEN ( + + col0 ) + 8 AND NULL
----
-2366
-3309
-3860

skipif mysql # not compatible
query I rowsort label-4590
SELECT - + col1 + - - 31 + + + 51 * - col0 + col2 / 39 AS col2 FROM tab2 WHERE NOT + - 70 BETWEEN ( + + col0 ) + 8 AND NULL
----
-2366
-3309
-3860

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) < - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col1 * 99 AS col2, col0 col2 FROM tab1 AS cor0
----
-1386
51
-4653
91
-495
85

query III rowsort
SELECT * FROM tab1 WHERE - - col2 * + - col0 + - col1 <> 52
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-4594
SELECT ALL COUNT( * ), + 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
42

skipif mysql # not compatible
query II rowsort label-4594
SELECT ALL COUNT ( * ), + 42 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4595
SELECT + + 50 * COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
450

skipif mysql # not compatible
query I rowsort label-4595
SELECT + + 50 * COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
450

query I rowsort
SELECT DISTINCT + + 35 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
35

query I rowsort
SELECT - - col0 + + 66 + 77 * + + 61 AS col0 FROM tab1 AS cor0
----
4814
4848
4854

onlyif mysql # aggregate syntax: 
query I rowsort label-4598
SELECT - + COUNT( * ) + 36 FROM tab1 cor0
----
33

skipif mysql # not compatible
query I rowsort label-4598
SELECT - + COUNT ( * ) + 36 FROM tab1 cor0
----
33

query I rowsort
SELECT ALL + col1 - + 21 AS col1 FROM tab1 AS cor0
----
-16
-7
26

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4600
SELECT + ( + 38 ) * - col1 * col0 + - CAST( NULL AS SIGNED ) * - 94 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-4600
SELECT + ( + 38 ) * - col1 * col0 + - CAST ( NULL AS INTEGER ) * - 94 col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT col1 + + col0 - + 56 AS col1 FROM tab2
----
41
85
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 - col2 col1, col1 * - col0 * - col1 AS col2 FROM tab2 AS cor0
----
0
119646
0
336675
0
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-4603
SELECT DISTINCT + MIN( - + ( + + col1 ) ) AS col1 FROM tab2
----
-77

skipif mysql # not compatible
query I rowsort label-4603
SELECT DISTINCT + MIN ( - + ( + + col1 ) ) AS col1 FROM tab2
----
-77

query I rowsort
SELECT ALL - 8 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 47f43f23dcd23959d97d8e3b0aab692e

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4605
SELECT + COUNT( * ) DIV - + 90 * 93 * + 50 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4605
SELECT + COUNT ( * ) / - + 90 * 93 * + 50 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4606
SELECT ALL + MAX( ALL - col0 ) AS col2 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-4606
SELECT ALL + MAX ( ALL - col0 ) AS col2 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT 7 * - col2 AS col1 FROM tab2
----
-161
-280
-406

onlyif mysql # aggregate syntax: 
query I rowsort label-4608
SELECT ALL - 42 * + COUNT( * ) AS col1 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-4608
SELECT ALL - 42 * + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-126

query I rowsort
SELECT - + 2 * + col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4610
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - CAST( NULL AS SIGNED ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4610
SELECT * FROM tab1 AS cor0 WHERE NOT ( + - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL ( + - 74 ) FROM tab2 AS cor0
----
-74
-74
-74

query II rowsort
SELECT ALL - col2, + 56 * col0 AS col1 FROM tab2 AS cor0
----
-23
2576
-40
3584
-58
4200

onlyif mysql # aggregate syntax: 
query I rowsort label-4613
SELECT + + SUM( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4613
SELECT + + SUM ( DISTINCT + col2 ) AS col2 FROM tab1 AS cor0
----
223

query II rowsort
SELECT ALL - col2 AS col2, + 59 AS col2 FROM tab2
----
-23
59
-40
59
-58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT + COUNT( DISTINCT + + 82 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT + COUNT ( DISTINCT + + 82 ) FROM tab1
----
1

query II rowsort
SELECT DISTINCT col0 * + col0 AS col2, - col1 - + col2 FROM tab2
----
2116
-74
4096
-117
5625
-125

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4618
SELECT DISTINCT 95 * - COUNT( * ) AS col2 FROM tab2
----
-285

skipif mysql # not compatible
query I rowsort label-4618
SELECT DISTINCT 95 * - COUNT ( * ) AS col2 FROM tab2
----
-285

query II rowsort
SELECT ALL 13 + + col1 AS col2, 73 AS col0 FROM tab2
----
64
73
80
73
90
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 93 col1, - col1 FROM tab0
----
93
-1
93
-21
93
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 67 + - col0 col2 FROM tab1
----
-18
-24
16

query II rowsort
SELECT col1, - ( + col0 ) * - col2 * col2 AS col2 FROM tab0
----
1
950697
21
8700
81
33135

query I rowsort
SELECT + 55 * - - col2 AS col0 FROM tab2 AS cor0
----
1265
2200
3190

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 + col1 AS col1, - col0 col0 FROM tab0 AS cor0
----
162
-15
2
-97
42
-87

query I rowsort
SELECT col0 + - 84 FROM tab0 AS cor0 WHERE - col2 + + - col0 IS NOT NULL
----
-69
13
3

query I rowsort
SELECT - 40 * - ( + col1 ) FROM tab0 AS cor0
----
3240
40
840

onlyif mysql # DIV for integer division: 
query I rowsort label-4627
SELECT col0 DIV col1 DIV - + 5 AS col0 FROM tab1 cor0
----
-3
0
0

skipif mysql # not compatible
query I rowsort label-4627
SELECT col0 / col1 / - + 5 AS col0 FROM tab1 cor0
----
-3
0
0

query I rowsort
SELECT + 84 AS col2 FROM tab1 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - - col0 - + + col1 * col1 AS col1 FROM tab1 AS cor0
----
-145
-2118
60

query I rowsort
SELECT ALL + 29 + + - col1 AS col0 FROM tab1 AS cor0
----
-18
15
24

onlyif mysql # DIV for integer division: 
query I rowsort label-4631
SELECT DISTINCT - col1 DIV ( col1 ) + 15 + + col0 + 26 AS col2 FROM tab0 AS cor0
----
127
137
55

skipif mysql # not compatible
query I rowsort label-4631
SELECT DISTINCT - col1 / ( col1 ) + 15 + + col0 + 26 AS col2 FROM tab0 AS cor0
----
127
137
55

onlyif mysql # aggregate syntax: 
query I rowsort label-4632
SELECT ALL SUM( - + col2 ) AS col2 FROM tab2 AS cor0
----
-121

skipif mysql # not compatible
query I rowsort label-4632
SELECT ALL SUM ( - + col2 ) AS col2 FROM tab2 AS cor0
----
-121

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE + col0 * - - col0 + + col0 * + col2 IS NULL
----

query I rowsort
SELECT + 26 FROM tab1 AS cor0 WHERE 25 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4635
SELECT DISTINCT MAX( ALL + - col0 ) FROM tab0 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT MAX ( ALL + - col0 ) FROM tab0 AS cor0
----
-15

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col1 + + ( 78 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4637
SELECT DISTINCT + COUNT( + + col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4637
SELECT DISTINCT + COUNT ( + + col2 ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT + 98 + COUNT( * ) col1 FROM tab1
----
101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4638
SELECT + 98 + COUNT ( * ) col1 FROM tab1
----
101

query I rowsort
SELECT col2 + + col0 + + ( 71 ) FROM tab2
----
140
175
204

query I rowsort
SELECT - col0 + + - ( + + col2 ) AS col2 FROM tab0
----
-196
-62
-97

query I rowsort
SELECT 43 + + 87 AS col0 FROM tab1
----
130
130
130

onlyif mysql # aggregate syntax: 
query I rowsort label-4642
SELECT - COUNT( * ) + + ( - - MIN( + col1 ) ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-4642
SELECT - COUNT ( * ) + + ( - - MIN ( + col1 ) ) AS col1 FROM tab2
----
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + 10 col2 FROM tab0
----
109
20
57

onlyif mysql # aggregate syntax: 
query I rowsort label-4644
SELECT 39 * + 42 + ( - MIN( + col0 ) ) AS col2 FROM tab2
----
1592

skipif mysql # not compatible
query I rowsort label-4644
SELECT 39 * + 42 + ( - MIN ( + col0 ) ) AS col2 FROM tab2
----
1592

onlyif mysql # aggregate syntax: 
query I rowsort label-4645
SELECT ALL 31 + + - SUM( ALL + col0 ) - - + SUM( ALL - col1 ) FROM tab0
----
-271

skipif mysql # not compatible
query I rowsort label-4645
SELECT ALL 31 + + - SUM ( ALL + col0 ) - - + SUM ( ALL - col1 ) FROM tab0
----
-271

onlyif mysql # aggregate syntax: 
query I rowsort label-4646
SELECT - COUNT( * ) + MIN( ALL + col2 ) FROM tab2 WHERE - 60 IS NOT NULL
----
20

skipif mysql # not compatible
query I rowsort label-4646
SELECT - COUNT ( * ) + MIN ( ALL + col2 ) FROM tab2 WHERE - 60 IS NOT NULL
----
20

onlyif mysql # aggregate syntax: 
query I rowsort label-4647
SELECT DISTINCT + COUNT( 57 ) + + COUNT( * ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-4647
SELECT DISTINCT + COUNT ( 57 ) + + COUNT ( * ) FROM tab2
----
6

query I rowsort
SELECT ALL - col0 + 0 AS col2 FROM tab2 AS cor0
----
-46
-64
-75

query I rowsort
SELECT + col0 + + col0 AS col1 FROM tab0 AS cor0 WHERE NOT + 57 * + col2 * + 52 + col0 + col2 + - col2 * - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4650
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE - 60 * - CAST( NULL AS SIGNED ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4650
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE - 60 * - CAST ( NULL AS INTEGER ) IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT + + 60 * - 76 * + - col0 AS col2 FROM tab0 WHERE NOT - 37 < + 49
----

query I rowsort
SELECT col2 * 79 + - - col0 + + + col0 FROM tab0 AS cor0
----
3743
8015
964

query I rowsort
SELECT ALL + - ( - + ( - col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

query II rowsort
SELECT ALL - - col1 AS col2, - col1 * - ( - - col1 ) FROM tab2 AS cor0 WHERE NOT - 97 * + 95 < NULL
----

query II rowsort
SELECT + 27 * - + col1 * + 38 - + col0 - - - ( + col1 ) AS col2, 40 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-14429
40
-48360
40
-5220
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4656
SELECT col1 * - - CAST( col1 AS SIGNED ) * 42 FROM tab0 AS cor0
----
18522
275562
42

skipif mysql # not compatible
query I rowsort label-4656
SELECT col1 * - - CAST ( col1 AS INTEGER ) * 42 FROM tab0 AS cor0
----
18522
275562
42

onlyif mysql # aggregate syntax: 
query I rowsort label-4657
SELECT + COUNT( * ) * - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4657
SELECT + COUNT ( * ) * - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
9

query II rowsort
SELECT ( + ( - 52 ) ) AS col2, + 47 * - col0 AS col2 FROM tab1
----
-52
-2397
-52
-3995
-52
-4277

query I rowsort
SELECT ALL + 33 * - ( col0 ) AS col2 FROM tab2
----
-1518
-2112
-2475

query II rowsort
SELECT + 63, - 16 AS col0 FROM tab2 WHERE NOT + col2 BETWEEN - ( - col0 ) * 22 AND - col2
----
63
-16
63
-16
63
-16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4661
SELECT 80 + - CAST( col2 AS SIGNED ) FROM tab0
----
-19
33
70

skipif mysql # not compatible
query I rowsort label-4661
SELECT 80 + - CAST ( col2 AS INTEGER ) FROM tab0
----
-19
33
70

query I rowsort
SELECT ALL - 6 * - col2 AS col0 FROM tab0
----
282
594
60

onlyif mysql # aggregate syntax: 
query I rowsort label-4663
SELECT + MAX( col1 ) + + COUNT( * ) AS col1 FROM tab1
----
50

skipif mysql # not compatible
query I rowsort label-4663
SELECT + MAX ( col1 ) + + COUNT ( * ) AS col1 FROM tab1
----
50

query I rowsort
SELECT + col1 * + - col1 AS col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-1
-441
-6561

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT 60 < col1 )
----
46
51
23

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND + ( 1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col0, - col2 AS col1 FROM tab0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT 38 AS col0, 70 * col1 FROM tab0
----
38
1470
38
5670
38
70

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT + - ( MIN( ALL - 5 ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
5

skipif mysql # not compatible
query I rowsort label-4669
SELECT + - ( MIN ( ALL - 5 ) ) AS col1 FROM tab2 cor0 CROSS JOIN tab2 cor1
----
5

query I rowsort
SELECT DISTINCT - 22 + - col2 * 29 + col2 FROM tab2
----
-1142
-1646
-666

query I rowsort
SELECT ALL - col1 FROM tab0 WHERE NULL <= - 96
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 - col0 + + col2 * - 18 col1 FROM tab2 AS cor0
----
-1044
-414
-720

onlyif mysql # DIV for integer division: 
query I rowsort label-4673
SELECT DISTINCT + + col1 + - + col0 + - - col0 DIV 33 AS col1 FROM tab2 AS cor0
----
-6
14
6

skipif mysql # not compatible
query I rowsort label-4673
SELECT DISTINCT + + col1 + - + col0 + - - col0 / 33 AS col1 FROM tab2 AS cor0
----
-6
14
6

query I rowsort
SELECT ALL - 52 + + 8 * col2 AS col2 FROM tab1 AS cor0
----
420
492
716

query I rowsort
SELECT DISTINCT 26 - 5 AS col1 FROM tab0 AS cor0
----
21

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) >= - - col0 + - col0 - - - 82 * col0 * + col0 * col1 * + + col0 * + - 70
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4677
SELECT DISTINCT - 58 + + MAX( col0 ) AS col1, 39 FROM tab2 cor0 WHERE NOT col2 <> 26
----
NULL
39

skipif mysql # not compatible
query II rowsort label-4677
SELECT DISTINCT - 58 + + MAX ( col0 ) AS col1, 39 FROM tab2 cor0 WHERE NOT col2 <> 26
----
NULL
39

query I rowsort
SELECT - col0 + 30 FROM tab1 AS cor0
----
-21
-55
-61

query II rowsort
SELECT - 37 AS col0, - col1 AS col0 FROM tab0 AS cor0
----
-37
-1
-37
-21
-37
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4680
SELECT - COUNT( ALL + 44 ) AS col0 FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4680
SELECT - COUNT ( ALL + 44 ) AS col0 FROM tab1
----
-3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 / + 38 * ( - 7 ) + - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 6 FROM tab1, tab1 AS cor0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4683
SELECT AVG ( 26 ) * CAST( NULL AS SIGNED ) FROM tab0, tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4683
SELECT AVG ( 26 ) * CAST ( NULL AS INTEGER ) FROM tab0, tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 14 AS col1 FROM tab2 cor0 WHERE ( NULL ) >= - + 84
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4685
SELECT ( MIN( col1 ) ) * + 45 AS col1 FROM tab1
----
225

skipif mysql # not compatible
query I rowsort label-4685
SELECT ( MIN ( col1 ) ) * + 45 AS col1 FROM tab1
----
225

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4686
SELECT - CAST( NULL AS SIGNED ) / - 81 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4686
SELECT - CAST ( NULL AS INTEGER ) / - 81 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 / col0 + col0 * col0 * + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4688
SELECT ALL - - COUNT( * ) + 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

skipif mysql # not compatible
query I rowsort label-4688
SELECT ALL - - COUNT ( * ) + 75 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
84

query II rowsort
SELECT ALL + col2 AS col0, 43 FROM tab1 AS cor0
----
59
43
68
43
96
43

query I rowsort
SELECT - + col1 * + col2 + 67 AS col1 FROM tab2 AS cor0
----
-1106
-3013
-3819

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4691
SELECT + 37 AS col1, col2 + - CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0
----
37
NULL
37
NULL
37
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4691
SELECT + 37 AS col1, col2 + - CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0
----
37
NULL
37
NULL
37
NULL

query I rowsort
SELECT col1 * - 4 FROM tab2 AS cor0
----
-204
-268
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-4693
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4693
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 NOT IN ( + col2 / - col1, - col0 * col0 + + + 99 * 55 / - col0 - + - col2, - col2 * + col2, col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT - col0 * - col1 - - + 21 + - - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4696
SELECT ALL * FROM tab2 WHERE - + CAST( - col1 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4696
SELECT ALL * FROM tab2 WHERE - + CAST ( - col1 AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4697
SELECT DISTINCT ( - COUNT( * ) ) DIV + + 41 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4697
SELECT DISTINCT ( - COUNT ( * ) ) / + + 41 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4698
SELECT - COUNT( DISTINCT col0 ) AS col2, MIN( + + 7 ) FROM tab2
----
-3
7

skipif mysql # not compatible
query II rowsort label-4698
SELECT - COUNT ( DISTINCT col0 ) AS col2, MIN ( + + 7 ) FROM tab2
----
-3
7

query I rowsort
SELECT DISTINCT + 65 + - ( + col2 ) AS col2 FROM tab1
----
-3
-31
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4700
SELECT - - CAST( NULL AS SIGNED ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4700
SELECT - - CAST ( NULL AS INTEGER ) + + col0 FROM tab0 cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4701
SELECT - col0 + col1 + - + ( + - 97 ) DIV 34 AS col1 FROM tab1 AS cor0
----
-35
-42
-78

skipif mysql # not compatible
query I rowsort label-4701
SELECT - col0 + col1 + - + ( + - 97 ) / 34 AS col1 FROM tab1 AS cor0
----
-35
-42
-78

query I rowsort
SELECT col1 + + 67 + - col1 AS col2 FROM tab2 AS cor0
----
67
67
67

query I rowsort
SELECT DISTINCT + + col2 * + col2 * - 49 FROM tab0 AS cor0
----
-108241
-480249
-4900

onlyif mysql # aggregate syntax: 
query I rowsort label-4704
SELECT DISTINCT + COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4704
SELECT DISTINCT + COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 + - col1 <> - - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL > + 7
----

query II rowsort
SELECT ALL - 88 + - ( - 8 ), + col2 AS col2 FROM tab0
----
-80
10
-80
47
-80
99

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 * 53 NOT BETWEEN + col2 AND - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NULL BETWEEN NULL AND 33
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4710
SELECT ALL + + ( + COUNT( + ( + 60 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4710
SELECT ALL + + ( + COUNT ( + ( + 60 ) ) ) FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4711
SELECT + COUNT( ALL + - 4 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4711
SELECT + COUNT ( ALL + - 4 ) FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4712
SELECT - COUNT( * ) - - 46 FROM tab0 AS cor0
----
43

skipif mysql # not compatible
query I rowsort label-4712
SELECT - COUNT ( * ) - - 46 FROM tab0 AS cor0
----
43

query I rowsort
SELECT DISTINCT + col1 - + 95 + - 50 AS col1 FROM tab2 AS cor0
----
-68
-78
-94

query I rowsort
SELECT ALL col1 - - col1 + - col2 AS col2 FROM tab1 cor0
----
-49
-68
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT DISTINCT - - 72 * + 25 - + COUNT( * ) AS col0 FROM tab1 AS cor0
----
1797

skipif mysql # not compatible
query I rowsort label-4715
SELECT DISTINCT - - 72 * + 25 - + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1797

query I rowsort
SELECT DISTINCT - + col0 * + - 40 + + col0 AS col2 FROM tab2 cor0
----
1886
2624
3075

query I rowsort
SELECT + col0 - + col0 AS col0 FROM tab1 cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4718
SELECT ALL + - ( COUNT( * ) ) - MIN( DISTINCT - col0 ) * + + CAST( COUNT( * ) AS SIGNED ) - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4718
SELECT ALL + - ( COUNT ( * ) ) - MIN ( DISTINCT - col0 ) * + + CAST ( COUNT ( * ) AS INTEGER ) - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4719
SELECT + MIN( + col1 ) - + COUNT( * ) * - 79 AS col0 FROM tab1 AS cor0
----
242

skipif mysql # not compatible
query I rowsort label-4719
SELECT + MIN ( + col1 ) - + COUNT ( * ) * - 79 AS col0 FROM tab1 AS cor0
----
242

query II rowsort
SELECT ALL + ( col1 ), + col2 * + col2 FROM tab0 WHERE + col1 / + col0 * 67 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4721
SELECT DISTINCT - SUM( ALL - + col2 ) AS col1 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-4721
SELECT DISTINCT - SUM ( ALL - + col2 ) AS col1 FROM tab2
----
121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( 26 ), - col0 * + + col2 col1 FROM tab1
----
26
-4896
26
-5015
26
-6188

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 47 NOT BETWEEN + col0 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4724
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-4724
SELECT * FROM tab1 WHERE NOT - col0 NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4725
SELECT ALL 78 DIV col1 AS col2 FROM tab1
----
1
15
5

skipif mysql # not compatible
query I rowsort label-4725
SELECT ALL 78 / col1 AS col2 FROM tab1
----
1
15
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * 94 * 6 col1 FROM tab0
----
-11844
-45684
-564

query II rowsort
SELECT ALL + - col0 AS col1, col1 FROM tab1 AS cor0
----
-51
14
-85
5
-91
47

query II rowsort
SELECT DISTINCT - + 68 AS col2, 14 FROM tab0 AS cor0
----
-68
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4729
SELECT - col1 * + CAST( NULL AS SIGNED ) / + + ( + 9 ) col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4729
SELECT - col1 * + CAST ( NULL AS INTEGER ) / + + ( + 9 ) col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4730
SELECT ALL - - MAX( - - 53 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
53

skipif mysql # not compatible
query I rowsort label-4730
SELECT ALL - - MAX ( - - 53 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
53

query II rowsort
SELECT DISTINCT - 75, + 56 AS col1 FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-75
56

query I rowsort
SELECT ALL - + col1 AS col0 FROM tab2 AS cor0 WHERE NOT 77 IS NOT NULL
----

query I rowsort
SELECT ALL - col1 AS col1 FROM tab0 AS cor0 WHERE col0 * + - 56 - + col1 BETWEEN NULL AND + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4734
SELECT DISTINCT 43 + - col0 * 43 DIV col2 FROM tab2 AS cor0
----
-12
-25
-43

skipif mysql # not compatible
query I rowsort label-4734
SELECT DISTINCT 43 + - col0 * 43 / col2 FROM tab2 AS cor0
----
-12
-25
-43

query I rowsort
SELECT - col0 * - - col1 AS col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 18 + + - 9 * - - col1 col0 FROM tab1 AS cor0
----
-144
-441
-63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4737
SELECT DISTINCT - 48 + 49 * 9 + + 52 - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - 48 + 49 * 9 + + 52 - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4738
SELECT DISTINCT + MIN( - + col0 ) * + 24 AS col0 FROM tab1
----
-2184

skipif mysql # not compatible
query I rowsort label-4738
SELECT DISTINCT + MIN ( - + col0 ) * + 24 AS col0 FROM tab1
----
-2184

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT - CAST( - - MAX( ALL - col0 ) AS SIGNED ) AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT - CAST ( - - MAX ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab1
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-4740
SELECT DISTINCT 12 + - COUNT( col2 ) col2 FROM tab0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4740
SELECT DISTINCT 12 + - COUNT ( col2 ) col2 FROM tab0
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4741
SELECT DISTINCT * FROM tab2 WHERE col1 >= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4741
SELECT DISTINCT * FROM tab2 WHERE col1 >= - + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ALL - + 76 + + - col0 AS col1 FROM tab1 cor0
----
-127
-161
-167

query I rowsort
SELECT DISTINCT col2 - - col1 - - + 97 FROM tab1 AS cor0
----
161
207
212

onlyif mysql # DIV for integer division: 
query I rowsort label-4744
SELECT - 49 DIV 22 FROM tab2
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4744
SELECT - 49 / 22 FROM tab2
----
-2
-2
-2

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4745
SELECT * FROM tab2 WHERE CAST( + ( + 52 ) AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4745
SELECT * FROM tab2 WHERE CAST ( + ( + 52 ) AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4746
SELECT 62 DIV 89 AS col1 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4746
SELECT 62 / 89 AS col1 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL 77 AS col2 FROM tab2 WHERE ( NULL ) <= + 74
----

query I rowsort
SELECT ALL col2 - col0 AS col2 FROM tab1 WHERE col0 - + col1 * 80 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 + col2 BETWEEN ( 90 ) AND 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4750
SELECT COUNT( * ) + ( COUNT( * ) ) AS col0 FROM tab0 WHERE NOT col1 * col2 + ( - col0 ) = NULL
----
0

skipif mysql # not compatible
query I rowsort label-4750
SELECT COUNT ( * ) + ( COUNT ( * ) ) AS col0 FROM tab0 WHERE NOT col1 * col2 + ( - col0 ) = NULL
----
0

query I rowsort
SELECT 73 * + col0 FROM tab1
----
3723
6205
6643

query I rowsort
SELECT + 30 * ( - 48 ) FROM tab2
----
-1440
-1440
-1440

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4753
SELECT DISTINCT COUNT( ALL - 67 ) DIV + ( - MAX( - col2 ) ) col0 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4753
SELECT DISTINCT COUNT ( ALL - 67 ) / + ( - MAX ( - col2 ) ) col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4754
SELECT - CAST( NULL AS SIGNED ) * 18 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4754
SELECT - CAST ( NULL AS INTEGER ) * 18 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - col2 col1 FROM tab0 WHERE NOT + col2 BETWEEN + col1 AND - 80
----
100
2209
9801

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT + 34 * col1 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col0 FROM tab0 WHERE NOT ( col1 ) NOT BETWEEN - col1 AND col0 * - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4758
SELECT DISTINCT MIN( DISTINCT - ( + 27 ) ) FROM tab0
----
-27

skipif mysql # not compatible
query I rowsort label-4758
SELECT DISTINCT MIN ( DISTINCT - ( + 27 ) ) FROM tab0
----
-27

query I rowsort
SELECT DISTINCT - 45 - col0 AS col2 FROM tab1
----
-130
-136
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4760
SELECT + ( + MIN( ( + col0 ) ) ) AS col2 FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-4760
SELECT + ( + MIN ( ( + col0 ) ) ) AS col2 FROM tab2
----
46

query I rowsort
SELECT DISTINCT + col2 FROM tab0 WHERE + 68 NOT BETWEEN col0 AND - 94
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4762
SELECT DISTINCT - COUNT( * ) * 80 + 48 FROM tab1
----
-192

skipif mysql # not compatible
query I rowsort label-4762
SELECT DISTINCT - COUNT ( * ) * 80 + 48 FROM tab1
----
-192

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4763
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) NOT BETWEEN NULL AND - col2
----

skipif mysql # not compatible
query III rowsort label-4763
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * - ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) NOT BETWEEN NULL AND - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4764
SELECT DISTINCT COUNT( DISTINCT 75 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4764
SELECT DISTINCT COUNT ( DISTINCT 75 ) AS col0 FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4765
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( col2 * CAST( NULL AS SIGNED ) ) < col0 * - 41
----

skipif mysql # not compatible
query I rowsort label-4765
SELECT DISTINCT + col0 FROM tab1 AS cor0 WHERE ( col2 * CAST ( NULL AS INTEGER ) ) < col0 * - 41
----

query I rowsort
SELECT ALL 88 * + 41 AS col0 FROM tab1 AS cor0
----
3608
3608
3608

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 / + 5 + + col2 * col0 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - 95 >= 6 + 33
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4769
SELECT SUM( ALL 78 ) AS col2 FROM tab0 cor0
----
234

skipif mysql # not compatible
query I rowsort label-4769
SELECT SUM ( ALL 78 ) AS col2 FROM tab0 cor0
----
234

query I rowsort
SELECT - col0 * 9 AS col0 FROM tab1 AS cor0
----
-459
-765
-819

query I rowsort
SELECT + col1 + + col1 FROM tab1 cor0 WHERE - col2 > NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - 31 ) NOT IN ( - col2 - + 97 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 col2 FROM tab0 cor0 WHERE NULL IS NULL
----
15
87
97

query I rowsort
SELECT - col1 * + 9 FROM tab1 AS cor0
----
-126
-423
-45

onlyif mysql # DIV for integer division: 
query I rowsort label-4775
SELECT col2 DIV - 7 FROM tab2
----
-3
-5
-8

skipif mysql # not compatible
query I rowsort label-4775
SELECT col2 / - 7 FROM tab2
----
-3
-5
-8

query I rowsort
SELECT 9 * + 15 - ( col2 ) * col2 FROM tab1
----
-3346
-4489
-9081

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col2 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4778
SELECT ( 53 ) + MIN( col0 ) FROM tab0
----
68

skipif mysql # not compatible
query I rowsort label-4778
SELECT ( 53 ) + MIN ( col0 ) FROM tab0
----
68

query I rowsort
SELECT ALL 27 + - col1 FROM tab0
----
-54
26
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 44 ) + 94 col2 FROM tab2
----
138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4781
SELECT * FROM tab1 WHERE + CAST( col0 AS DECIMAL ) * + col2 <> ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-4781
SELECT * FROM tab1 WHERE + CAST ( col0 AS REAL ) * + col2 <> ( + col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT 41 + + 70 AS col2 FROM tab2
----
111
111
111

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4783
SELECT DISTINCT - COUNT( * ) * - + SUM( ALL + col1 ) + - 38 DIV COUNT( * ) AS col1 FROM tab0
----
297

skipif mysql # not compatible
query I rowsort label-4783
SELECT DISTINCT - COUNT ( * ) * - + SUM ( ALL + col1 ) + - 38 / COUNT ( * ) AS col1 FROM tab0
----
297

onlyif mysql # DIV for integer division: 
query I rowsort label-4784
SELECT + 1 DIV + col2 + col0 AS col0 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-4784
SELECT + 1 / + col2 + col0 AS col0 FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4785
SELECT col0 - - ( - 28 ) * 32 AS col0 FROM tab0 WHERE 80 * col0 NOT IN ( CAST( + ( - col1 ) AS SIGNED ) )
----
-799
-809
-881

skipif mysql # not compatible
query I rowsort label-4785
SELECT col0 - - ( - 28 ) * 32 AS col0 FROM tab0 WHERE 80 * col0 NOT IN ( CAST ( + ( - col1 ) AS INTEGER ) )
----
-799
-809
-881

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( 3 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4787
SELECT ALL - - 1 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-4787
SELECT ALL - - 1 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT + + SUM( ALL - col1 ) * 52 AS col0 FROM tab2 AS cor0
----
-10140

skipif mysql # not compatible
query I rowsort label-4788
SELECT + + SUM ( ALL - col1 ) * 52 AS col0 FROM tab2 AS cor0
----
-10140

query I rowsort
SELECT ALL - 42 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9894093f29c0defae91347934f060329

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 - 38 col0 FROM tab0 WHERE NOT - col0 * - col1 < ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT ALL + CAST( NULL AS SIGNED ) * + col0 * ( + col1 ) + col0 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4791
SELECT ALL + CAST ( NULL AS INTEGER ) * + col0 * ( + col1 ) + col0 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4792
SELECT CAST( NULL AS SIGNED ) * + col1 / - col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4792
SELECT CAST ( NULL AS INTEGER ) * + col1 / - col2 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4793
SELECT - 13 - - COUNT( * ) * - + 66 - 89 AS col0 FROM tab0
----
-300

skipif mysql # not compatible
query I rowsort label-4793
SELECT - 13 - - COUNT ( * ) * - + 66 - 89 AS col0 FROM tab0
----
-300

query I rowsort
SELECT + 4 * col0 AS col2 FROM tab2 WHERE NOT col0 * 14 NOT IN ( col2 / col2 )
----

query I rowsort
SELECT DISTINCT + ( + col0 ) + col2 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT col0 + + 32 FROM tab1 AS cor0 WHERE + col2 * - + 72 * col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT ALL - - SUM( DISTINCT - - col0 ) * + COUNT( * ) * COUNT( * ) - - SUM( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
1860

skipif mysql # not compatible
query I rowsort label-4797
SELECT ALL - - SUM ( DISTINCT - - col0 ) * + COUNT ( * ) * COUNT ( * ) - - SUM ( DISTINCT + col1 ) AS col2 FROM tab2 AS cor0
----
1860

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4798
SELECT ALL + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4798
SELECT ALL + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4799
SELECT ALL + + 74 DIV - + COUNT( * ) FROM tab1 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-4799
SELECT ALL + + 74 / - + COUNT ( * ) FROM tab1 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT MAX( - - 2 ) col2 FROM tab0
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4800
SELECT MAX ( - - 2 ) col2 FROM tab0
----
2

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <> + 78
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4802
SELECT 32 * COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-4802
SELECT 32 * COUNT ( * ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4803
SELECT DISTINCT 18 * + + MIN( ALL - col1 ) FROM tab0
----
-1458

skipif mysql # not compatible
query I rowsort label-4803
SELECT DISTINCT 18 * + + MIN ( ALL - col1 ) FROM tab0
----
-1458

query I rowsort
SELECT + 67 * + + col0 AS col2 FROM tab1
----
3417
5695
6097

onlyif mysql # DIV for integer division: 
query I rowsort label-4805
SELECT DISTINCT 45 DIV col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4805
SELECT DISTINCT 45 / col0 FROM tab2
----
0

query II rowsort
SELECT DISTINCT 85 * col1, col1 AS col1 FROM tab2
----
4335
51
5695
67
6545
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4807
SELECT ALL MAX( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT + col0 * + - CAST( NULL AS SIGNED ) IN ( 2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4807
SELECT ALL MAX ( DISTINCT + col0 ) AS col0 FROM tab1 WHERE NOT + col0 * + - CAST ( NULL AS INTEGER ) IN ( 2 )
----
NULL

query I rowsort
SELECT + - ( + - ( - 45 ) ) AS col2 FROM tab2 AS cor0
----
-45
-45
-45

query III rowsort
SELECT * FROM tab2 WHERE + + col2 NOT BETWEEN NULL AND + + col2 + - - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4810
SELECT ALL - + col0 + + - CAST( col2 AS SIGNED ) FROM tab1 cor0
----
-144
-147
-159

skipif mysql # not compatible
query I rowsort label-4810
SELECT ALL - + col0 + + - CAST ( col2 AS INTEGER ) FROM tab1 cor0
----
-144
-147
-159

query I rowsort
SELECT DISTINCT - ( + + col1 ) + - col0 * + - col0 FROM tab0 AS cor0
----
144
7548
9408

onlyif mysql # aggregate syntax: 
query I rowsort label-4812
SELECT DISTINCT + + SUM( - + col1 ) AS col2 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-4812
SELECT DISTINCT + + SUM ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-195

query I rowsort
SELECT + 84 * - + col1 + - col0 AS col1 FROM tab2 AS cor0
----
-4330
-5703
-6532

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4814
SELECT CAST( NULL AS SIGNED ) + - - ( MIN( + 88 ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4814
SELECT CAST ( NULL AS INTEGER ) + - - ( MIN ( + 88 ) ) FROM tab1 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 82 + - col1 col1 FROM tab2 AS cor0
----
15
31
5

onlyif mysql # aggregate syntax: 
query I rowsort label-4816
SELECT ALL COUNT( * ) * + + 47 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-4816
SELECT ALL COUNT ( * ) * + + 47 FROM tab1 AS cor0
----
141

query I rowsort
SELECT DISTINCT col1 + + 64 FROM tab2
----
115
131
141

query I rowsort
SELECT col2 + col1 + - + 33 * - col2 FROM tab2
----
1437
2039
833

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 NOT IN ( - + 63, col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL >= ( + 31 * + - 37 )
----

query II rowsort
SELECT + - col1 AS col0, - 33 AS col1 FROM tab1 AS cor0
----
-14
-33
-47
-33
-5
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 - + col2 col2 FROM tab1 AS cor0
----
-117
-126
-154

onlyif mysql # DIV for integer division: 
query I rowsort label-4823
SELECT + + col2 - + col2 DIV + + col0 - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4823
SELECT + + col2 - + col2 / + + col0 - + col2 AS col2 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT - + col1 - + + col2 * ( + 66 ) AS col1 FROM tab2 AS cor0
----
-1569
-2717
-3895

query II rowsort
SELECT ALL + col2 AS col0, 78 FROM tab2 AS cor0
----
23
78
40
78
58
78

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - 58 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT ( col0 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-4828
SELECT + COUNT( DISTINCT col0 ) AS col0, 53 AS col0 FROM tab2 AS cor0
----
3
53

skipif mysql # not compatible
query II rowsort label-4828
SELECT + COUNT ( DISTINCT col0 ) AS col0, 53 AS col0 FROM tab2 AS cor0
----
3
53

onlyif mysql # aggregate syntax: 
query II rowsort label-4829
SELECT + ( COUNT( * ) ) AS col2, COUNT( * ) FROM tab0 AS cor0
----
3
3

skipif mysql # not compatible
query II rowsort label-4829
SELECT + ( COUNT ( * ) ) AS col2, COUNT ( * ) FROM tab0 AS cor0
----
3
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 52 col2 FROM tab2 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT - + MAX( - 28 ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4831
SELECT - + MAX ( - 28 ) FROM tab2 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-4832
SELECT MAX( + + 28 ) FROM tab2 AS cor0
----
28

skipif mysql # not compatible
query I rowsort label-4832
SELECT MAX ( + + 28 ) FROM tab2 AS cor0
----
28

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + col1 )
----

query I rowsort
SELECT ALL col1 * - + 27 FROM tab2
----
-1377
-1809
-2079

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4835
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + CAST( col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4835
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( + + CAST ( col2 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT + col2 * - ( - col1 ) FROM tab1
----
1344
295
3196

query I rowsort
SELECT 1 * + + col0 AS col0 FROM tab0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 36 col0, + col0 AS col0 FROM tab0
----
36
15
36
87
36
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 42 * + - 58 * + ( - - col0 ) col0 FROM tab0
----
-211932
-236292
-36540

onlyif mysql # aggregate syntax: 
query I rowsort label-4840
SELECT DISTINCT - 14 + ( - COUNT( * ) ) FROM tab2 AS cor0
----
-17

skipif mysql # not compatible
query I rowsort label-4840
SELECT DISTINCT - 14 + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
-17

query II rowsort
SELECT 57, - col1 AS col1 FROM tab2 AS cor0
----
57
-51
57
-67
57
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-4842
SELECT COUNT( * ) + + + COUNT( - 85 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-4842
SELECT COUNT ( * ) + + + COUNT ( - 85 ) FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4843
SELECT DISTINCT + col2 / CAST( NULL AS SIGNED ) * + col1 + col1 + - + col0 + + 94 * + + 92 AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4843
SELECT DISTINCT + col2 / CAST ( NULL AS INTEGER ) * + col1 + col1 + - + col0 + + 94 * + + 92 AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 * + 69 * + 2 AS col2 FROM tab1 cor0
----
-1932
-6486
-690

query I rowsort
SELECT DISTINCT - - col0 * + 54 FROM tab0 AS cor0
----
4698
5238
810

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * - - col1 col2 FROM tab2 cor0
----
4386
5762
6622

query I rowsort
SELECT ALL + 91 * col1 + + - col2 AS col1 FROM tab0 AS cor0
----
-8
1901
7324

query I rowsort
SELECT DISTINCT + col1 * ( col0 ) * 56 + - 22 AS col2 FROM tab0 AS cor0
----
102290
5410
68018

query III rowsort
SELECT * FROM tab2 WHERE + + col2 / + + 46 NOT IN ( + - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT col1 + col0 + - col1 * - 67 + - col2 AS col2, 79 AS col0 FROM tab2
----
3491
79
4573
79
5260
79

query I rowsort
SELECT - col0 + 45 - - col0 + + col0 * - col2 * - ( + - col2 ) FROM tab2
----
-102355
-24289
-252255

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4852
SELECT + ( - 3 ) + - 77 DIV COUNT( * ) * - 16 FROM tab2
----
397

skipif mysql # not compatible
query I rowsort label-4852
SELECT + ( - 3 ) + - 77 / COUNT ( * ) * - 16 FROM tab2
----
397

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4853
SELECT + CAST( + - ( + - 76 ) AS SIGNED ) AS col0 FROM tab0 WHERE + 54 IS NULL AND NOT 67 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4853
SELECT + CAST ( + - ( + - 76 ) AS INTEGER ) AS col0 FROM tab0 WHERE + 54 IS NULL AND NOT 67 IS NULL
----

query I rowsort
SELECT 41 + - - col1 FROM tab1
----
46
55
88

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT ALL + COUNT( * ) + + COUNT( * ) * + 42 AS col2 FROM tab2
----
129

skipif mysql # not compatible
query I rowsort label-4855
SELECT ALL + COUNT ( * ) + + COUNT ( * ) * + 42 AS col2 FROM tab2
----
129

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4856
SELECT ALL + + CAST( + + 68 AS SIGNED ) * - + col0 + col0 FROM tab1 AS cor0
----
-3417
-5695
-6097

skipif mysql # not compatible
query I rowsort label-4856
SELECT ALL + + CAST ( + + 68 AS INTEGER ) * - + col0 + col0 FROM tab1 AS cor0
----
-3417
-5695
-6097

query I rowsort
SELECT - + 75 + col0 FROM tab0 AS cor0
----
-60
12
22

query I rowsort
SELECT col0 * + col2 + col0 * col0 FROM tab2 AS cor0
----
3174
6656
9975

query I rowsort
SELECT ALL - + col0 - + 83 FROM tab1 cor0
----
-134
-168
-174

onlyif mysql # DIV for integer division: 
query I rowsort label-4860
SELECT DISTINCT col1 DIV + - col1 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4860
SELECT DISTINCT col1 / + - col1 FROM tab0 cor0
----
-1

query II rowsort
SELECT DISTINCT col2 AS col1, + 11 AS col2 FROM tab0
----
10
11
47
11
99
11

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 13 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 43 >= + col1
----
15
81
47

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4864
SELECT col1 AS col1, + CAST( + 64 AS SIGNED ) FROM tab2 AS cor0
----
51
64
67
64
77
64

skipif mysql # not compatible
query II rowsort label-4864
SELECT col1 AS col1, + CAST ( + 64 AS INTEGER ) FROM tab2 AS cor0
----
51
64
67
64
77
64

query I rowsort
SELECT + col2 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 = NULL
----

query II rowsort
SELECT DISTINCT - + col2, ( 76 ) AS col0 FROM tab2 AS cor0
----
-23
76
-40
76
-58
76

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + - ( - col1 ) >= - + col1 + + col1 * col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4868
SELECT - 61 + + MIN( 75 ) AS col0 FROM tab1 WHERE NOT + 78 / + - col2 NOT BETWEEN col2 * - ( + + col1 ) AND col1 * + 51 * col2
----
14

skipif mysql # not compatible
query I rowsort label-4868
SELECT - 61 + + MIN ( 75 ) AS col0 FROM tab1 WHERE NOT + 78 / + - col2 NOT BETWEEN col2 * - ( + + col1 ) AND col1 * + 51 * col2
----
14

query II rowsort
SELECT + col1 + - + 26 AS col2, col0 + - + 92 AS col0 FROM tab2
----
25
-46
41
-17
51
-28

query I rowsort
SELECT + col2 * + + col0 + - + col0 FROM tab0
----
690
783
9506

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4871
SELECT ALL - MIN( + CAST( + - CAST( + col0 AS SIGNED ) AS SIGNED ) ) FROM tab0
----
97

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL - MIN ( + CAST ( + - CAST ( + col0 AS INTEGER ) AS INTEGER ) ) FROM tab0
----
97

query I rowsort
SELECT ALL + ( - - col1 ) AS col2 FROM tab2 cor0
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-4873
SELECT ALL MIN( DISTINCT + col0 ) * - 66 AS col2 FROM tab1 AS cor0
----
-3366

skipif mysql # not compatible
query I rowsort label-4873
SELECT ALL MIN ( DISTINCT + col0 ) * - 66 AS col2 FROM tab1 AS cor0
----
-3366

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 78 + - col2 / + 61 >= ( + col1 )
----

query I rowsort
SELECT + + col1 AS col2 FROM tab2 WHERE + - col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE - col0 - col2 NOT IN ( + col0 + + 61 / - col1, 17 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 0 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT + col1 FROM tab1 WHERE + 48 * + col2 + + - col2 IN ( + - col1, ( + - 91 ) )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-4879
SELECT DISTINCT - - col2 AS col2, col2 DIV - col1 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
0
47
0
99
-99

skipif mysql # not compatible
query II rowsort label-4879
SELECT DISTINCT - - col2 AS col2, col2 / - col1 AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
10
0
47
0
99
-99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4880
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST( col0 AS SIGNED ), CAST( NULL AS SIGNED ), - - 1 + 90 * col1 )
----

skipif mysql # not compatible
query III rowsort label-4880
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL IN ( + CAST ( col0 AS INTEGER ), CAST ( NULL AS INTEGER ), - - 1 + 90 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4881
SELECT DISTINCT - 13 + + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-10

skipif mysql # not compatible
query I rowsort label-4881
SELECT DISTINCT - 13 + + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-4882
SELECT COUNT( * ) + 77 FROM tab2 AS cor0
----
80

skipif mysql # not compatible
query I rowsort label-4882
SELECT COUNT ( * ) + 77 FROM tab2 AS cor0
----
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4883
SELECT - 1 AS col0 FROM tab1 AS cor0 WHERE - col0 + + + col2 < ( + + CAST( - 46 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-4883
SELECT - 1 AS col0 FROM tab1 AS cor0 WHERE - col0 + + + col2 < ( + + CAST ( - 46 AS INTEGER ) )
----

query I rowsort
SELECT col0 + col1 + + + col0 + - - col0 * col0 * + - col0 + + + ( + - col0 ) FROM tab2 cor0
----
-262003
-421733
-97239

query I rowsort
SELECT + col2 + - col0 + 80 * - col0 - - 84 * + - col1 FROM tab1 cor0
----
-11251
-5211
-7246

onlyif mysql # DIV for integer division: 
query I rowsort label-4886
SELECT ALL - col1 DIV 59 + + 4 AS col2 FROM tab0 AS cor0
----
3
4
4

skipif mysql # not compatible
query I rowsort label-4886
SELECT ALL - col1 / 59 + + 4 AS col2 FROM tab0 AS cor0
----
3
4
4

query I rowsort
SELECT ALL col1 * + 10 * 85 AS col0 FROM tab2
----
43350
56950
65450

query I rowsort
SELECT + ( + col1 ) + + + col2 FROM tab0 WHERE + + col0 IS NOT NULL
----
100
128
31

query III rowsort
SELECT ALL * FROM tab0 WHERE col0 BETWEEN + + col0 + - col0 AND - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * col1 - + 63 col0 FROM tab2
----
-1236
-3143
-3949

onlyif mysql # DIV for integer division: 
query I rowsort label-4891
SELECT ALL + 46 DIV - col0 - + 97 AS col2 FROM tab2
----
-97
-97
-98

skipif mysql # not compatible
query I rowsort label-4891
SELECT ALL + 46 / - col0 - + 97 AS col2 FROM tab2
----
-97
-97
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - ( + - col1 ) ) col1 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4893
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST( col2 AS SIGNED ) ) > col2 * col0 * + + 82 - + 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-4893
SELECT * FROM tab0 AS cor0 WHERE NOT ( CAST ( col2 AS INTEGER ) ) > col2 * col0 * + + 82 - + 55
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + col2 * ( - 17 ) FROM tab2 AS cor0
----
391
680
986

onlyif mysql # aggregate syntax: 
query I rowsort label-4895
SELECT ALL + ( - + COUNT( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-4895
SELECT ALL + ( - + COUNT ( * ) ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query II rowsort
SELECT - + col0 + 77, - col1 FROM tab2 WHERE NOT - + col0 >= - col0
----

query I rowsort
SELECT DISTINCT 99 AS col0 FROM tab1, tab1 AS cor0
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4898
SELECT DISTINCT - 69 * - CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4898
SELECT DISTINCT - 69 * - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 84 NOT BETWEEN ( NULL ) AND ( NULL )
----

query II rowsort
SELECT 99, col1 AS col0 FROM tab2 AS cor0
----
99
51
99
67
99
77

query I rowsort
SELECT - col0 * - col0 + - 9 AS col0 FROM tab2 AS cor0
----
2107
4087
5616

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4902
SELECT + CAST( - col2 AS SIGNED ) + + CAST( + 49 AS SIGNED ) * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 + - ( + col1 ) * col1, 60 - + - col1 )
----

skipif mysql # not compatible
query I rowsort label-4902
SELECT + CAST ( - col2 AS INTEGER ) + + CAST ( + 49 AS INTEGER ) * col1 AS col2 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col2 + - ( + col1 ) * col1, 60 - + - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4903
SELECT + - col2 * + col1 - - + col2 AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
-1150
NULL
-3040
NULL
-3828
NULL

skipif mysql # not compatible
query II rowsort label-4903
SELECT + - col2 * + col1 - - + col2 AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
-1150
NULL
-3040
NULL
-3828
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4904
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST( 58 AS SIGNED ) <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4904
SELECT * FROM tab2 AS cor0 WHERE NOT + CAST ( 58 AS INTEGER ) <= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 + col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
108
96
98

onlyif mysql # aggregate syntax: 
query II rowsort label-4906
SELECT DISTINCT - MIN( ALL - ( + + col0 ) ), + COUNT( * ) * + 23 AS col1 FROM tab0 AS cor0
----
97
69

skipif mysql # not compatible
query II rowsort label-4906
SELECT DISTINCT - MIN ( ALL - ( + + col0 ) ), + COUNT ( * ) * + 23 AS col1 FROM tab0 AS cor0
----
97
69

query II rowsort
SELECT ALL col2 AS col1, + col1 + + - col0 FROM tab2
----
23
5
40
13
58
-8

query I rowsort
SELECT DISTINCT ( + 19 ) + + - col0 AS col1 FROM tab1
----
-32
-66
-72

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND - + 3
----

query I rowsort
SELECT + + col0 * - + col0 - - col2 AS col1 FROM tab1 AS cor0
----
-2505
-7166
-8213

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4911
SELECT DISTINCT col0 - + col1 + + col2 FROM tab0 AS cor0 WHERE NOT - 86 / + + col1 + - col2 NOT IN ( + col0 * + - 61, + ( - CAST( NULL AS SIGNED ) ) * - + 90 )
----

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT col0 - + col1 + + col2 FROM tab0 AS cor0 WHERE NOT - 86 / + + col1 + - col2 NOT IN ( + col0 * + - 61, + ( - CAST ( NULL AS INTEGER ) ) * - + 90 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4912
SELECT ALL CAST( COUNT( * ) AS SIGNED ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL CAST ( COUNT ( * ) AS INTEGER ) AS col0 FROM tab1 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4913
SELECT ALL - CAST( - + ( + col2 ) AS SIGNED ) AS col1 FROM tab2
----
23
40
58

skipif mysql # not compatible
query I rowsort label-4913
SELECT ALL - CAST ( - + ( + col2 ) AS INTEGER ) AS col1 FROM tab2
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col0 * ( - 74 ) + + 49 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4915
SELECT ALL 7 - COUNT( * ) AS col2 FROM tab1 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-4915
SELECT ALL 7 - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-4916
SELECT DISTINCT + - COUNT( * ) + + - 59 AS col1 FROM tab2 AS cor0
----
-62

skipif mysql # not compatible
query I rowsort label-4916
SELECT DISTINCT + - COUNT ( * ) + + - 59 AS col1 FROM tab2 AS cor0
----
-62

query I rowsort
SELECT DISTINCT - col2 - - + 92 - col1 AS col1 FROM tab1 AS cor0
----
-18
-23
28

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 * col2 BETWEEN - col2 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4919
SELECT ALL + - ( col2 ) AS col1 FROM tab1 cor0 WHERE 60 + - - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4919
SELECT ALL + - ( col2 ) AS col1 FROM tab1 cor0 WHERE 60 + - - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL >= 97
----

query II rowsort
SELECT + col0 - 47, col2 AS col2 FROM tab1 AS cor0
----
38
59
4
96
44
68

query I rowsort
SELECT 23 + - 54 AS col1 FROM tab2 AS cor0 WHERE - 44 * + 51 IS NULL
----

query I rowsort
SELECT DISTINCT ( ( col1 ) ) - + 20 * - 34 + col2 FROM tab1 cor0
----
744
790
795

query II rowsort
SELECT ALL - col0, col2 AS col2 FROM tab1
----
-51
96
-85
59
-91
68

onlyif mysql # aggregate syntax: 
query II rowsort label-4925
SELECT COUNT( * ) AS col2, - ( - 83 ) AS col0 FROM tab1
----
3
83

skipif mysql # not compatible
query II rowsort label-4925
SELECT COUNT ( * ) AS col2, - ( - 83 ) AS col0 FROM tab1
----
3
83

query I rowsort
SELECT DISTINCT col1 / 70 - + col1 * + 14 - + 60 AS col1 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4927
SELECT ALL + col1 DIV - + col0 AS col0 FROM tab0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-4927
SELECT ALL + col1 / - + col0 AS col0 FROM tab0
----
-5
0
0

query I rowsort
SELECT ALL col2 * - 14 AS col2 FROM tab1 AS cor0
----
-1344
-826
-952

query I rowsort
SELECT 69 * - + col0 * - 10 FROM tab2
----
31740
44160
51750

onlyif mysql # DIV for integer division: 
query I rowsort label-4930
SELECT ALL + 12 DIV - col2 AS col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4930
SELECT ALL + 12 / - col2 AS col0 FROM tab1
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col1 + - col2 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4932
SELECT - 17 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST( - 51 AS DECIMAL ) + - CAST( - col0 AS SIGNED ) + + col1, - col0 )
----

skipif mysql # not compatible
query I rowsort label-4932
SELECT - 17 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + CAST ( - 51 AS REAL ) + - CAST ( - col0 AS INTEGER ) + + col1, - col0 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 31 - + - col0 < ( + col0 + - col0 - col1 + col0 / + - 53 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 * + 46 AS col0 FROM tab2 AS cor0
----
-1058
-1840
-2668

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4935
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) * - - ( - 54 ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4935
SELECT * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) * - - ( - 54 ) IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-4936
SELECT - + 59 DIV + + COUNT( * ) AS col1, 3 FROM tab1 AS cor0
----
-19
3

skipif mysql # not compatible
query II rowsort label-4936
SELECT - + 59 / + + COUNT ( * ) AS col1, 3 FROM tab1 AS cor0
----
-19
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * col0 + + 23 col0 FROM tab0 cor0
----
248
7592
9432

query I rowsort
SELECT + + col2 * + - col0 FROM tab2 AS cor0 WHERE NOT - col2 * + col1 IS NULL
----
-1058
-2560
-4350

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4939
SELECT DISTINCT + - col1, ( - + col0 ) * + col2 * + col2 + - 53 + - col1 FROM tab2 WHERE - col2 + - CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query II rowsort label-4939
SELECT DISTINCT + - col1, ( - + col0 ) * + col2 * + col2 + - 53 + - col1 FROM tab2 WHERE - col2 + - CAST ( NULL AS REAL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4940
SELECT - COUNT( * ) + COUNT( col2 ) * - COUNT( * ) AS col1 FROM tab1
----
-12

skipif mysql # not compatible
query I rowsort label-4940
SELECT - COUNT ( * ) + COUNT ( col2 ) * - COUNT ( * ) AS col1 FROM tab1
----
-12

query II rowsort
SELECT DISTINCT + 22 AS col2, + col1 + + 77 FROM tab1
----
22
124
22
82
22
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT ALL COUNT( * ) + - ( 25 ) + MIN( DISTINCT - 13 ) FROM tab0
----
-35

skipif mysql # not compatible
query I rowsort label-4942
SELECT ALL COUNT ( * ) + - ( 25 ) + MIN ( DISTINCT - 13 ) FROM tab0
----
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4943
SELECT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) * - 39 + MAX( DISTINCT + + col1 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4943
SELECT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) * - 39 + MAX ( DISTINCT + + col1 ) AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT - 97 + + 27 AS col0 FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-4945
SELECT ALL COUNT( * ) + - COUNT( * ) * + COUNT( * ) + - + COUNT( * ) FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-4945
SELECT ALL COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) + - + COUNT ( * ) FROM tab2
----
-9

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT + 53 BETWEEN 76 + + col0 AND + 75
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4947
SELECT DISTINCT COUNT( ALL - - col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4947
SELECT DISTINCT COUNT ( ALL - - col2 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT DISTINCT col1 + + - col2 + + 21 * - col0 AS col1 FROM tab1
----
-1153
-1839
-1932

onlyif mysql # DIV for integer division: 
query I rowsort label-4949
SELECT + col1 + - col1 * - col2 DIV - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4949
SELECT + col1 + - col1 * - col2 / - col2 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL ( + col1 ) + + - 79 * - col1 + - col2 AS col1 FROM tab0 AS cor0
----
-19
1670
6433

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + col2 ) - + col1 + - col0 * 8 * col0 col2 FROM tab2 AS cor0
----
-17002
-32885
-45125

query I rowsort
SELECT ALL - 13 AS col0 FROM tab2 AS cor0 WHERE + 46 * + 83 / + - col1 IS NOT NULL
----
-13
-13
-13

query I rowsort
SELECT - - ( - + col1 ) FROM tab2 cor0
----
-51
-67
-77

query I rowsort
SELECT - col0 * - 84 AS col1 FROM tab2 AS cor0
----
3864
5376
6300

onlyif mysql # aggregate syntax: 
query I rowsort label-4955
SELECT - COUNT( + 29 ) * + 78 FROM tab1 WHERE NOT - col1 <> ( - col1 + + 63 * - col2 * - - 86 - + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-4955
SELECT - COUNT ( + 29 ) * + 78 FROM tab1 WHERE NOT - col1 <> ( - col1 + + 63 * - col2 * - - 86 - + col1 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 col1 FROM tab0 WHERE NOT + - col0 * col0 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 90 * 39 AS col2 FROM tab0
----
3510
3510
3510

onlyif mysql # DIV for integer division: 
query I rowsort label-4958
SELECT ( + - col1 ) DIV + 96 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4958
SELECT ( + - col1 ) / + 96 FROM tab2
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4959
SELECT - SUM( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-4959
SELECT - SUM ( DISTINCT - + col1 ) AS col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT + + ( 37 ) FROM tab2 AS cor0
----
37
37
37

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4961
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-4961
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * + CAST ( NULL AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + col2 * 67 AS col0 FROM tab0 AS cor0
----
3149
6633
670

query I rowsort
SELECT ALL 39 * col0 / col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT DISTINCT + ( - col2 ) + - - 12 AS col1, - col1 + + col0 FROM tab0
----
-35
-66
-87
96
2
66

query I rowsort
SELECT ALL col0 + + col0 / - col2 AS col2 FROM tab2 AS cor0 WHERE NOT - 18 * + col1 * - 64 + - - ( - 87 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4966
SELECT CAST( NULL AS SIGNED ) * - + col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4966
SELECT CAST ( NULL AS INTEGER ) * - + col0 + - col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4967
SELECT + MAX( ALL + 3 ) AS col0 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4967
SELECT + MAX ( ALL + 3 ) AS col0 FROM tab0 AS cor0
----
3

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT + 91 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - - col0 * + 13 FROM tab2 cor0
----
598
832
975

query III rowsort
SELECT ALL * FROM tab0 WHERE ( + + col1 ) = 50
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 > - - 26
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4972
SELECT SUM( col1 ) + + COUNT( * ) FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-4972
SELECT SUM ( col1 ) + + COUNT ( * ) FROM tab2
----
198

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4973
SELECT ALL 3 DIV 1 + + MAX( + col1 ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-4973
SELECT ALL 3 / 1 + + MAX ( + col1 ) FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query II rowsort label-4974
SELECT DISTINCT COUNT( * ) + - 44 AS col1, 31 col2 FROM tab0
----
-41
31

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4974
SELECT DISTINCT COUNT ( * ) + - 44 AS col1, 31 col2 FROM tab0
----
-41
31

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4975
SELECT - AVG ( col1 ) + - 88 * - - 32 + + - 55 + - + CAST( NULL AS DECIMAL ) * 56 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4975
SELECT - AVG ( col1 ) + - 88 * - - 32 + + - 55 + - + CAST ( NULL AS REAL ) * 56 AS col2 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4976
SELECT DISTINCT - SUM( ALL - + col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-4976
SELECT DISTINCT - SUM ( ALL - + col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query II rowsort label-4977
SELECT ALL + MAX( ALL + 27 ) AS col2, + 22 FROM tab2 cor0
----
27
22

skipif mysql # not compatible
query II rowsort label-4977
SELECT ALL + MAX ( ALL + 27 ) AS col2, + 22 FROM tab2 cor0
----
27
22

query II rowsort
SELECT 84 AS col2, - col1 + - - ( - col1 ) + col0 FROM tab1
----
84
-3
84
23
84
75

query I rowsort
SELECT DISTINCT col1 + ( + - col0 ) AS col0 FROM tab1 AS cor0
----
-37
-44
-80

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col2 + + + ( col1 ) * - + col0 + - col2 - - 27 * + col0 * + 95 col2 FROM tab0 cor0
----
221308
248510
37166

onlyif mysql # aggregate syntax: 
query I rowsort label-4981
SELECT DISTINCT + COUNT( + 60 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4981
SELECT DISTINCT + COUNT ( + 60 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT ALL + 27 AS col0, col0 AS col0 FROM tab0 AS cor0
----
27
15
27
87
27
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT DISTINCT - - COUNT( DISTINCT col0 ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-4983
SELECT DISTINCT - - COUNT ( DISTINCT col0 ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT - 35 * + COUNT( * ) FROM tab0 AS cor0
----
-105

skipif mysql # not compatible
query I rowsort label-4984
SELECT - 35 * + COUNT ( * ) FROM tab0 AS cor0
----
-105

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, col2 + 93 + col2 col1 FROM tab2
----
51
139
67
209
77
173

query I rowsort
SELECT ALL - 80 * - col1 FROM tab2
----
4080
5360
6160

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4987
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4987
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + col1 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 15, + col2 col0 FROM tab1
----
15
59
15
68
15
96

query II rowsort
SELECT + col0, - 27 AS col1 FROM tab0
----
15
-27
87
-27
97
-27

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - ( - col2 ) + - + 96 NOT IN ( + + 86 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4991
SELECT + CAST( - 74 AS SIGNED ) * - SUM( ALL + - 99 ) AS col2 FROM tab2
----
-21978

skipif mysql # not compatible
query I rowsort label-4991
SELECT + CAST ( - 74 AS INTEGER ) * - SUM ( ALL + - 99 ) AS col2 FROM tab2
----
-21978

query III rowsort
SELECT * FROM tab2 WHERE NOT - 99 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-4993
SELECT 53 DIV + 47 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-4993
SELECT 53 / + 47 FROM tab1
----
1
1
1

query I rowsort
SELECT + 88 * - 85 FROM tab2 AS cor0
----
-7480
-7480
-7480

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 2 col2 FROM tab0 AS cor0 WHERE 74 - col1 * + 79 + + col0 + + 43 NOT BETWEEN NULL AND 80 + ( 94 ) + - col0 * + + 51
----
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4996
SELECT DISTINCT - col2 col1, ( - col1 ) + + CAST( + - col2 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-10
-31
-47
-128
-99
-100

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4996
SELECT DISTINCT - col2 col1, ( - col1 ) + + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-10
-31
-47
-128
-99
-100

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( col0 ) * col1 * + - col0 + - 42 BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL - + col0 AS col2, 88 FROM tab2 cor0
----
-46
88
-64
88
-75
88

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 53 ) col0 FROM tab1 AS cor0
----
53
53
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5000
SELECT ALL + COUNT( * ) + - 28 * + 10 AS col2 FROM tab2
----
-277

skipif mysql # not compatible
query I rowsort label-5000
SELECT ALL + COUNT ( * ) + - 28 * + 10 AS col2 FROM tab2
----
-277

query I rowsort
SELECT ALL - 69 AS col1 FROM tab0 WHERE ( NOT NULL < - 88 + col2 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> + 96
----

query I rowsort
SELECT DISTINCT - - 54 AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5004
SELECT DISTINCT + 4 + - COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5004
SELECT DISTINCT + 4 + - COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5005
SELECT 67 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5005
SELECT 67 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + + 97 + col2 * + + 71 FROM tab0 cor0
----
3353
7125
786

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 85 * - + col2 + - - 62 - + 71 AND + + col2 * + - 15
----

query I rowsort
SELECT ALL 18 * 19 AS col2 FROM tab2
----
342
342
342

query I rowsort
SELECT col2 + col0 + + - col2 AS col2 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT SUM( + - col1 ) + COUNT( * ) * + 78 DIV + 68 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-5010
SELECT SUM ( + - col1 ) + COUNT ( * ) * + 78 / + 68 FROM tab2
----
-192

query I rowsort
SELECT col2 + - + 4 AS col2 FROM tab0
----
43
6
95

onlyif mysql # aggregate syntax: 
query I rowsort label-5012
SELECT MAX( - col2 ) + + 77 FROM tab1 WHERE NULL NOT BETWEEN col2 AND col1
----
NULL

skipif mysql # not compatible
query I rowsort label-5012
SELECT MAX ( - col2 ) + + 77 FROM tab1 WHERE NULL NOT BETWEEN col2 AND col1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5013
SELECT DISTINCT 52 + + 49 + CAST( + + ( + - col0 ) AS SIGNED ) + - col0 * + col1 AS col2 FROM tab0
----
-1129
-1813
-93

skipif mysql # not compatible
query I rowsort label-5013
SELECT DISTINCT 52 + + 49 + CAST ( + + ( + - col0 ) AS INTEGER ) + - col0 * + col1 AS col2 FROM tab0
----
-1129
-1813
-93

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 36 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5015
SELECT ALL - COUNT( * ) + 48 + + SUM( + + 13 ) col2 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5015
SELECT ALL - COUNT ( * ) + 48 + + SUM ( + + 13 ) col2 FROM tab1
----
84

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 <= - - 86
----
51
14
96
85
5
59

query I rowsort
SELECT ALL + col1 * col0 - + + col2 AS col2 FROM tab0 AS cor0
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-5018
SELECT DISTINCT + MAX( + + col1 ) + - COUNT( * ) AS col0 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5018
SELECT DISTINCT + MAX ( + + col1 ) + - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5019
SELECT - COUNT( * ) - + 56 FROM tab1 cor0
----
-59

skipif mysql # not compatible
query I rowsort label-5019
SELECT - COUNT ( * ) - + 56 FROM tab1 cor0
----
-59

onlyif mysql # DIV for integer division: 
query I rowsort label-5020
SELECT DISTINCT 25 DIV + + col2 col1 FROM tab0
----
0
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5020
SELECT DISTINCT 25 / + + col2 col1 FROM tab0
----
0
2

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5021
SELECT - SUM( DISTINCT col0 ) + + COUNT( * ) FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5021
SELECT - SUM ( DISTINCT col0 ) + + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 * + col2 + + ( + + ( + 83 ) ) * - col2 * - col0 IS NOT NULL
----

query I rowsort
SELECT + - 11 AS col1 FROM tab2 cor0
----
-11
-11
-11

query II rowsort
SELECT ALL - ( col0 ), - ( - col0 ) * + - col2 AS col1 FROM tab2 AS cor0
----
-46
-1058
-64
-2560
-75
-4350

query I rowsort
SELECT DISTINCT - 18 FROM tab1 WHERE ( NULL IS NULL )
----
-18

query I rowsort
SELECT 49 AS col2 FROM tab2, tab1 AS cor0
----
9 values hashing to cb40783c0fff72e8802cdf0682e7cb55

onlyif mysql # DIV for integer division: 
query I rowsort label-5027
SELECT ALL col2 DIV + - col0 AS col2 FROM tab1
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5027
SELECT ALL col2 / + - col0 AS col2 FROM tab1
----
-1
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT 23 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 81 AS col0 FROM tab1, tab0 AS cor0
----
9 values hashing to 205b3ff2d7b1817c98d7980b8c17e6c1

onlyif mysql # aggregate syntax: 
query I rowsort label-5030
SELECT ALL + SUM( ALL - col0 ) AS col0 FROM tab0
----
-199

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + SUM ( ALL - col0 ) AS col0 FROM tab0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5031
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST( - + 7 AS DECIMAL ) < - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5031
SELECT DISTINCT * FROM tab0 WHERE NOT - - CAST ( - + 7 AS REAL ) < - + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + col2 NOT BETWEEN 64 + - col2 AND - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5033
SELECT + COUNT( - 66 ) DIV + COUNT( * ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5033
SELECT + COUNT ( - 66 ) / + COUNT ( * ) FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5034
SELECT - 62 * - COUNT( ALL + 46 ) FROM tab0 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-5034
SELECT - 62 * - COUNT ( ALL + 46 ) FROM tab0 AS cor0
----
186

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - 66 * + COUNT( * ) FROM tab2 AS cor0
----
-198

skipif mysql # not compatible
query I rowsort label-5035
SELECT - 66 * + COUNT ( * ) FROM tab2 AS cor0
----
-198

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5036
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5036
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT DISTINCT + ( + ( ( 23 ) ) ) FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL 71 * + col0 + 0 FROM tab0
----
1065
6177
6887

query I rowsort
SELECT + col0 * + - 53 + - col1 FROM tab0 cor0
----
-4632
-5142
-876

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col1 > col1
----

query I rowsort
SELECT ALL - col2 * + 30 + - - 78 * + + col1 + - + col0 + col0 FROM tab0 cor0
----
-2892
1338
4908

query I rowsort
SELECT DISTINCT + 87 * + col1 * - + 26 AS col1 FROM tab2 AS cor0
----
-115362
-151554
-174174

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5043
SELECT DISTINCT - - col2 DIV col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + CAST( - - 34 AS SIGNED ) <= - + col0
----
0

skipif mysql # not compatible
query I rowsort label-5043
SELECT DISTINCT - - col2 / col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + CAST ( - - 34 AS INTEGER ) <= - + col0
----
0

query I rowsort
SELECT DISTINCT + 18 * + + 91 + - 12 AS col1 FROM tab2 AS cor0
----
1626

onlyif mysql # aggregate syntax: 
query II rowsort label-5045
SELECT COUNT( * ) - 11 AS col2, - 80 FROM tab0
----
-8
-80

skipif mysql # not compatible
query II rowsort label-5045
SELECT COUNT ( * ) - 11 AS col2, - 80 FROM tab0
----
-8
-80

query I rowsort
SELECT ALL + 81 FROM tab2 WHERE NOT + 41 * - col0 IS NULL
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT + 49 + - 10 - - + col2 DIV + + col1 AS col1 FROM tab1
----
40
45
50

skipif mysql # not compatible
query I rowsort label-5047
SELECT + 49 + - 10 - - + col2 / + + col1 AS col1 FROM tab1
----
40
45
50

query I rowsort
SELECT ALL col2 * - - 92 + col0 AS col0 FROM tab0
----
1007
4339
9205

onlyif mysql # aggregate syntax: 
query I rowsort label-5049
SELECT ALL - 91 + + + MAX( DISTINCT - col2 ) col1 FROM tab0
----
-101

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5049
SELECT ALL - 91 + + + MAX ( DISTINCT - col2 ) col1 FROM tab0
----
-101

onlyif mysql # aggregate syntax: 
query I rowsort label-5050
SELECT - COUNT( * ) + - COUNT( * ) * 51 FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-5050
SELECT - COUNT ( * ) + - COUNT ( * ) * 51 FROM tab0 AS cor0
----
-156

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 54 < NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5052
SELECT - + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5052
SELECT - + CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5053
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + + col2 + - CAST( - + col1 AS SIGNED ) * - - 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-5053
SELECT DISTINCT * FROM tab2 WHERE NOT col1 + + col2 + - CAST ( - + col1 AS INTEGER ) * - - 96 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 35 * + col0 AS col2 FROM tab0
----
3045
3395
525

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT DISTINCT + ( - MAX( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

skipif mysql # not compatible
query I rowsort label-5055
SELECT DISTINCT + ( - MAX ( DISTINCT + col0 ) ) AS col2 FROM tab1 AS cor0
----
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5056
SELECT - 8 * - COUNT( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
24

skipif mysql # not compatible
query I rowsort label-5056
SELECT - 8 * - COUNT ( DISTINCT + col2 ) AS col0 FROM tab0 cor0
----
24

query I rowsort
SELECT ALL - + col2 * - - col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5058
SELECT + + 19 FROM tab0 AS cor0 WHERE NOT col0 * col0 NOT IN ( col2 + + + CAST( NULL AS DECIMAL ), col2 )
----

skipif mysql # not compatible
query I rowsort label-5058
SELECT + + 19 FROM tab0 AS cor0 WHERE NOT col0 * col0 NOT IN ( col2 + + + CAST ( NULL AS REAL ), col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5059
SELECT - - COUNT( * ) AS col1, - 88 AS col2 FROM tab0 AS cor0
----
3
-88

skipif mysql # not compatible
query II rowsort label-5059
SELECT - - COUNT ( * ) AS col1, - 88 AS col2 FROM tab0 AS cor0
----
3
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-5060
SELECT ALL + SUM( DISTINCT + + col0 ) FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL + SUM ( DISTINCT + + col0 ) FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-5061
SELECT + MIN( DISTINCT 77 ) AS col1 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-5061
SELECT + MIN ( DISTINCT 77 ) AS col1 FROM tab2
----
77

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 89 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5063
SELECT + ( + MAX( ALL - 71 ) ) AS col1 FROM tab1
----
-71

skipif mysql # not compatible
query I rowsort label-5063
SELECT + ( + MAX ( ALL - 71 ) ) AS col1 FROM tab1
----
-71

query I rowsort
SELECT DISTINCT - 58 + + - 23 FROM tab2
----
-81

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - 64 - ( + 60 ) / - 60 * + col1 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5066
SELECT - col2 DIV - + 93 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-5066
SELECT - col2 / - + 93 + + col2 AS col0 FROM tab2 AS cor0
----
23
40
58

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT ( NOT ( NOT + col1 + + 75 IS NOT NULL ) )
----

query I rowsort
SELECT 58 * + + 32 FROM tab0 AS cor0
----
1856
1856
1856

query I rowsort
SELECT ALL - 98 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f17b7008a7deae1eb5a2e707ec237638

onlyif mysql # aggregate syntax: 
query I rowsort label-5070
SELECT - MAX( ALL - col2 ) AS col1 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-5070
SELECT - MAX ( ALL - col2 ) AS col1 FROM tab2
----
23

onlyif mysql # DIV for integer division: 
query I rowsort label-5071
SELECT + 5 DIV - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5071
SELECT + 5 / - col2 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT ALL COUNT( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5072
SELECT ALL COUNT ( * ) col0 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col1 * - + col0 col1 FROM tab1 cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-5074
SELECT DISTINCT + SUM( + 17 ) + - COUNT( * ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-5074
SELECT DISTINCT + SUM ( + 17 ) + - COUNT ( * ) FROM tab2 AS cor0
----
48

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) > + + 19
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5076
SELECT + ( + CAST( NULL AS DECIMAL ) ) + - + col2 * col0 - + ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5076
SELECT + ( + CAST ( NULL AS REAL ) ) + - + col2 * col0 - + ( - col1 ) FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ( + + 2 ) + + col2 * + - col1 FROM tab2 AS cor0
----
-1171
-3078
-3884

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5078
SELECT - col1 FROM tab0 WHERE 16 / + - col2 - - + 35 < - CAST( NULL AS SIGNED ) + + 84 - - - 24 * - 50 / - 40
----

skipif mysql # not compatible
query I rowsort label-5078
SELECT - col1 FROM tab0 WHERE 16 / + - col2 - - + 35 < - CAST ( NULL AS INTEGER ) + + 84 - - - 24 * - 50 / - 40
----

query I rowsort
SELECT - 26 * col1 FROM tab1
----
-1222
-130
-364

query I rowsort
SELECT DISTINCT + + col0 AS col0 FROM tab0 WHERE NOT col2 * 70 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5081
SELECT ALL ( - col2 ) * + col1 * + ( col2 ) + CAST( - ( - - 19 ) AS SIGNED ) * - 30 AS col2 FROM tab1
----
-128454
-16835
-216758

skipif mysql # not compatible
query I rowsort label-5081
SELECT ALL ( - col2 ) * + col1 * + ( col2 ) + CAST ( - ( - - 19 ) AS INTEGER ) * - 30 AS col2 FROM tab1
----
-128454
-16835
-216758

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5082
SELECT 11 + - AVG ( 19 ) FROM tab0 WHERE CAST( NULL AS SIGNED ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5082
SELECT 11 + - AVG ( 19 ) FROM tab0 WHERE CAST ( NULL AS INTEGER ) = NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE + col1 * 52 * ( - col1 ) = - ( + + col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT ( + col2 * - col0 IS NULL ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 - - 28 FROM tab0 cor0
----
127
38
75

query I rowsort
SELECT DISTINCT + ( col1 ) AS col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5087
SELECT - COUNT( * ) - - 5 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5087
SELECT - COUNT ( * ) - - 5 FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT - 7 - + 48 - - - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-5088
SELECT - 7 - + 48 - - - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-58

query II rowsort
SELECT + 17 * - + col1 AS col1, + col2 AS col0 FROM tab2 AS cor0
----
-1139
58
-1309
40
-867
23

query I rowsort
SELECT DISTINCT + 75 FROM tab1 AS cor0 WHERE 87 BETWEEN + 83 * 99 - + 20 AND NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + 9 + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( - + 54 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
54

onlyif mysql # aggregate syntax: 
query I rowsort label-5093
SELECT DISTINCT + COUNT( * ) AS col2 FROM tab1 WHERE NOT + 3 > col2 * - col2 + - 19 + + - 17
----
0

skipif mysql # not compatible
query I rowsort label-5093
SELECT DISTINCT + COUNT ( * ) AS col2 FROM tab1 WHERE NOT + 3 > col2 * - col2 + - 19 + + - 17
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5094
SELECT DISTINCT - col2 DIV col1 * - + 22 * col2 AS col1 FROM tab1 AS cor0
----
12672
14278
1496

skipif mysql # not compatible
query I rowsort label-5094
SELECT DISTINCT - col2 / col1 * - + 22 * col2 AS col1 FROM tab1 AS cor0
----
12672
14278
1496

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5095
SELECT * FROM tab2 AS cor0 WHERE NOT 71 NOT IN ( + col1, CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-5095
SELECT * FROM tab2 AS cor0 WHERE NOT 71 NOT IN ( + col1, CAST ( NULL AS REAL ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5096
SELECT DISTINCT + + 22 DIV ( + - MIN( ALL + + 29 ) ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5096
SELECT DISTINCT + + 22 / ( + - MIN ( ALL + + 29 ) ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( col1 <= NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5098
SELECT - - ( SUM( ALL - + col0 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-5098
SELECT - - ( SUM ( ALL - + col0 ) ) FROM tab2 AS cor0
----
-185

query I rowsort
SELECT + col2 - - 0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5100
SELECT - COUNT( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5100
SELECT - COUNT ( DISTINCT + col0 ) AS col0 FROM tab1 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( - - 46 ) AND col1 * + col1
----

query I rowsort
SELECT ALL - col0 * - - 68 FROM tab0
----
-1020
-5916
-6596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5103
SELECT - + SUM( DISTINCT + col1 ) DIV + - 12 AS col0 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-5103
SELECT - + SUM ( DISTINCT + col1 ) / + - 12 AS col0 FROM tab2 AS cor0
----
16

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5104
SELECT ALL - - 57 * - CAST( NULL AS SIGNED ) + - col0 - + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5104
SELECT ALL - - 57 * - CAST ( NULL AS INTEGER ) + - col0 - + + col2 AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5105
SELECT - 11 + + + CAST( - 27 AS SIGNED ) * col2 FROM tab1 AS cor0
----
-1604
-1847
-2603

skipif mysql # not compatible
query I rowsort label-5105
SELECT - 11 + + + CAST ( - 27 AS INTEGER ) * col2 FROM tab1 AS cor0
----
-1604
-1847
-2603

onlyif mysql # aggregate syntax: 
query I rowsort label-5106
SELECT DISTINCT - - MAX( DISTINCT - + col0 ) FROM tab1 cor0
----
-51

skipif mysql # not compatible
query I rowsort label-5106
SELECT DISTINCT - - MAX ( DISTINCT - + col0 ) FROM tab1 cor0
----
-51

query I rowsort
SELECT - ( 32 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 LEFT OUTER JOIN tab2 AS cor1 ON NOT ( NULL ) IS NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

query I rowsort
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE - + ( + col2 ) + + + 77 < + + col0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-5110
SELECT - 60 + + COUNT( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-51

skipif mysql # not compatible
query I rowsort label-5110
SELECT - 60 + + COUNT ( * ) FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT ALL - COUNT( * ) AS col0 FROM tab0, tab1 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5111
SELECT ALL - COUNT ( * ) AS col0 FROM tab0, tab1 cor0
----
-9

query I rowsort
SELECT DISTINCT + col2 + + col0 FROM tab2 WHERE NULL < - - 97
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5113
SELECT + - 54 - - + COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

skipif mysql # not compatible
query I rowsort label-5113
SELECT + - 54 - - + COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-45

query I rowsort
SELECT DISTINCT - 53 * - + col1 FROM tab2 WHERE + + col0 = NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + col1 + - ( + 3 ) <> - col0 * - - 52
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL + + col2 + - col2 + + + 93 * - + col0, col1 FROM tab0 AS cor0
----
-1395
81
-8091
21
-9021
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5117
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST( + + col2 AS SIGNED ) > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-5117
SELECT DISTINCT * FROM tab0 AS cor0 WHERE CAST ( + + col2 AS INTEGER ) > CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5118
SELECT ALL + MAX( + - CAST( 30 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL + MAX ( + - CAST ( 30 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT - ( + 99 ) * - 83 - - col1 * - 88 - - 38 + - col2 AS col2 FROM tab0 AS cor0
----
1080
6397
8068

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 > + + col2 * col0 - - + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5121
SELECT - col2 + - + ( 2 ), + CAST( NULL AS SIGNED ) * + + col0 AS col0 FROM tab0
----
-101
NULL
-12
NULL
-49
NULL

skipif mysql # not compatible
query II rowsort label-5121
SELECT - col2 + - + ( 2 ), + CAST ( NULL AS INTEGER ) * + + col0 AS col0 FROM tab0
----
-101
NULL
-12
NULL
-49
NULL

query I rowsort
SELECT 50 + - 47 AS col1 FROM tab1
----
3
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5123
SELECT DISTINCT + SUM( ALL + - col0 ) FROM tab2
----
-185

skipif mysql # not compatible
query I rowsort label-5123
SELECT DISTINCT + SUM ( ALL + - col0 ) FROM tab2
----
-185

query I rowsort
SELECT - col0 + - 10 + + col0 * + 69 FROM tab1
----
3458
5770
6178

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5125
SELECT * FROM tab0 WHERE + ( 15 ) - + col2 <> - CAST( ( - CAST( + col2 AS SIGNED ) ) AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5125
SELECT * FROM tab0 WHERE + ( 15 ) - + col2 <> - CAST ( ( - CAST ( + col2 AS INTEGER ) ) AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 80 col0 FROM tab0
----
80
80
80

query II rowsort
SELECT 20 AS col1, + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
20
10
20
47
20
99

query I rowsort
SELECT ALL col0 AS col2 FROM tab1 AS cor0 WHERE + 24 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5129
SELECT DISTINCT - MIN( + 9 ) AS col1 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5129
SELECT DISTINCT - MIN ( + 9 ) AS col1 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5130
SELECT ALL + COUNT( ALL - 49 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5130
SELECT ALL + COUNT ( ALL - 49 ) FROM tab2
----
3

query I rowsort
SELECT ALL col2 * - col1 * + 63 AS col2 FROM tab1
----
-18585
-201348
-84672

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5132
SELECT DISTINCT COUNT( * ) / + ( - - ( + CAST( NULL AS SIGNED ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5132
SELECT DISTINCT COUNT ( * ) / + ( - - ( + CAST ( NULL AS INTEGER ) ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + - 97 * + 65 AS col2 FROM tab2 AS cor0
----
-6305

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT IN ( - 38 )
----

query I rowsort
SELECT ALL + 57 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5136
SELECT ALL + 29 AS col1, - 43 / - MAX( DISTINCT CAST( NULL AS SIGNED ) ) + + - 49 + - - 68 AS col2 FROM tab0 AS cor0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-5136
SELECT ALL + 29 AS col1, - 43 / - MAX ( DISTINCT CAST ( NULL AS INTEGER ) ) + + - 49 + - - 68 AS col2 FROM tab0 AS cor0
----
29
NULL

query I rowsort
SELECT - - col0 + + col1 + col2 FROM tab2 AS cor0
----
120
181
200

query II rowsort
SELECT DISTINCT - 58 * - + 61, col2 FROM tab2
----
3538
23
3538
40
3538
58

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col0 < + 73 * + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT ( - - 14 ) FROM tab0
----
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5141
SELECT DISTINCT - ( SUM( - + col1 ) ) + - CAST( + CAST( + + COUNT( * ) AS SIGNED ) AS SIGNED ) + - COUNT( * ) + - - COUNT( * ) + ( COUNT( * ) ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5141
SELECT DISTINCT - ( SUM ( - + col1 ) ) + - CAST ( + CAST ( + + COUNT ( * ) AS INTEGER ) AS INTEGER ) + - COUNT ( * ) + - - COUNT ( * ) + ( COUNT ( * ) ) FROM tab0
----
103

query I rowsort
SELECT + col0 AS col2 FROM tab1 WHERE ( + col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5143
SELECT ALL + - ( + 56 ) + - MIN( ALL col1 ) * - + 58 AS col1 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5143
SELECT ALL + - ( + 56 ) + - MIN ( ALL col1 ) * - + 58 AS col1 FROM tab0 AS cor0
----
2

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 BETWEEN 74 AND 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5145
SELECT ALL + - MIN( - - col0 ), - 59 AS col0 FROM tab1 AS cor0
----
-51
-59

skipif mysql # not compatible
query II rowsort label-5145
SELECT ALL + - MIN ( - - col0 ), - 59 AS col0 FROM tab1 AS cor0
----
-51
-59

query II rowsort
SELECT DISTINCT 78 AS col1, + col2 * 88 AS col0 FROM tab1
----
78
5192
78
5984
78
8448

query I rowsort
SELECT DISTINCT + 69 + + + col1 AS col2 FROM tab2 AS cor0
----
120
136
146

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5148
SELECT DISTINCT - COUNT( * ) DIV + COUNT( * ) + + 38 col1 FROM tab0 AS cor0
----
37

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5148
SELECT DISTINCT - COUNT ( * ) / + COUNT ( * ) + + 38 col1 FROM tab0 AS cor0
----
37

onlyif mysql # aggregate syntax: 
query I rowsort label-5149
SELECT DISTINCT + + COUNT( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5149
SELECT DISTINCT + + COUNT ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL col0 - + 94 FROM tab0 AS cor0
----
-7
-79
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( + 25 ) col2 FROM tab1 AS cor0
----
-25

query II rowsort
SELECT DISTINCT col0, col0 + + col1 FROM tab1 AS cor0
----
51
65
85
90
91
138

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - MAX( 30 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5153
SELECT - MAX ( 30 ) FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5154
SELECT + MIN( + col2 ) DIV 82 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5154
SELECT + MIN ( + col2 ) / 82 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5155
SELECT ALL COUNT( - + col1 ) - 22 FROM tab1
----
-19

skipif mysql # not compatible
query I rowsort label-5155
SELECT ALL COUNT ( - + col1 ) - 22 FROM tab1
----
-19

query I rowsort
SELECT - - 54 FROM tab0 WHERE NOT NULL NOT BETWEEN - 47 * + col1 + + ( 71 ) * 37 * + col0 AND - 5
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN - col1 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL + - COUNT( DISTINCT 51 ) * - + 58 - - + 87 AS col1 FROM tab0 AS cor0
----
145

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL + - COUNT ( DISTINCT 51 ) * - + 58 - - + 87 AS col1 FROM tab0 AS cor0
----
145

query I rowsort
SELECT ALL 18 AS col0 FROM tab1 WHERE NOT NULL NOT IN ( + col0 + - + 95, col1 )
----

query I rowsort
SELECT + + col1 * - col1 * - col2 AS col1 FROM tab0 cor0
----
308367
4410
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5161
SELECT - - col2 DIV + - col0 AS col1 FROM tab1 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5161
SELECT - - col2 / + - col0 AS col1 FROM tab1 cor0
----
-1
0
0

query I rowsort
SELECT - - 56 * col2 + + 43 FROM tab0 AS cor0
----
2675
5587
603

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5163
SELECT DISTINCT + ( CAST( + 66 AS SIGNED ) ) col1, + col0 AS col0 FROM tab0 AS cor0
----
66
15
66
87
66
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5163
SELECT DISTINCT + ( CAST ( + 66 AS INTEGER ) ) col1, + col0 AS col0 FROM tab0 AS cor0
----
66
15
66
87
66
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5164
SELECT ALL + - MAX( - 14 ) FROM tab0 AS cor0
----
14

skipif mysql # not compatible
query I rowsort label-5164
SELECT ALL + - MAX ( - 14 ) FROM tab0 AS cor0
----
14

query I rowsort
SELECT - - 87 * - col0 FROM tab1 AS cor0
----
-4437
-7395
-7917

onlyif mysql # aggregate syntax: 
query I rowsort label-5166
SELECT DISTINCT + COUNT( 55 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5166
SELECT DISTINCT + COUNT ( 55 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT ALL 84 AS col1, + col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT ALL - 37 * COUNT( * ) * - 42 AS col0 FROM tab1 AS cor0
----
4662

skipif mysql # not compatible
query I rowsort label-5168
SELECT ALL - 37 * COUNT ( * ) * - 42 AS col0 FROM tab1 AS cor0
----
4662

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * - col2 NOT BETWEEN + - 82 AND col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - ( - col1 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5171
SELECT DISTINCT - COUNT( * ) FROM tab2 WHERE + - ( - - 20 ) NOT IN ( - col2, + col0 * + col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-5171
SELECT DISTINCT - COUNT ( * ) FROM tab2 WHERE + - ( - - 20 ) NOT IN ( - col2, + col0 * + col1 )
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5172
SELECT DISTINCT CAST( NULL AS SIGNED ) + - AVG ( + 25 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5172
SELECT DISTINCT CAST ( NULL AS INTEGER ) + - AVG ( + 25 ) AS col0 FROM tab1
----
NULL

query I rowsort
SELECT ALL 97 * + col1 FROM tab1
----
1358
4559
485

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5174
SELECT - + 26 * - - col2 FROM tab2 WHERE - col0 + CAST( - + col2 AS SIGNED ) IS NOT NULL
----
-1040
-1508
-598

skipif mysql # not compatible
query I rowsort label-5174
SELECT - + 26 * - - col2 FROM tab2 WHERE - col0 + CAST ( - + col2 AS INTEGER ) IS NOT NULL
----
-1040
-1508
-598

query II rowsort
SELECT + 25 AS col0, + col0 AS col1 FROM tab0
----
25
15
25
87
25
97

query I rowsort
SELECT ALL 24 + - col0 FROM tab0
----
-63
-73
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5177
SELECT CAST( NULL AS SIGNED ) * + - 70 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5177
SELECT CAST ( NULL AS INTEGER ) * + - 70 + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col2 * 80 < + col2
----

query I rowsort
SELECT col1 + - col0 + - col0 AS col2 FROM tab2 AS cor0
----
-41
-51
-83

query I rowsort
SELECT ALL col0 - - + ( - - col2 ) AS col1 FROM tab0 AS cor0
----
196
62
97

query I rowsort
SELECT DISTINCT - + 95 * col1 AS col1 FROM tab2 AS cor0
----
-4845
-6365
-7315

query I rowsort
SELECT DISTINCT + 13 + + col1 - - col2 AS col1 FROM tab0
----
113
141
44

query I rowsort
SELECT + 16 * 39 AS col1 FROM tab1
----
624
624
624

query I rowsort
SELECT DISTINCT - 65 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-65

query I rowsort
SELECT DISTINCT + + col2 - - 0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col2 - - 55 * + col2 AS col0 FROM tab1 AS cor0
----
3304
3808
5376

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + col0 + col2 - + ( - col0 ) col1 FROM tab0 AS cor0
----
196
62
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5188
SELECT ALL + + MIN( - - col1 ) - + 70 FROM tab1 AS cor0
----
-65

skipif mysql # not compatible
query I rowsort label-5188
SELECT ALL + + MIN ( - - col1 ) - + 70 FROM tab1 AS cor0
----
-65

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5189
SELECT 78 DIV COUNT( * ) - 44 - COUNT( * ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-5189
SELECT 78 / COUNT ( * ) - 44 - COUNT ( * ) FROM tab2 AS cor0
----
-21

onlyif mysql # aggregate syntax: 
query II rowsort label-5190
SELECT ( - + 47 ), COUNT( * ) AS col1 FROM tab2 AS cor0
----
-47
3

skipif mysql # not compatible
query II rowsort label-5190
SELECT ( - + 47 ), COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-47
3

query I rowsort
SELECT 9 * + col2 * + col2 * ( + col0 ) AS col2 FROM tab0
----
298215
78300
8556273

query I rowsort
SELECT ( col0 ) * - + 23 FROM tab0
----
-2001
-2231
-345

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5193
SELECT ALL col1 + - col2 + - col1 AS col0 FROM tab0 WHERE NOT - + col0 * - ( + + 26 ) - - + 46 + + col1 * col1 * col0 BETWEEN - CAST( NULL AS SIGNED ) + + col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5193
SELECT ALL col1 + - col2 + - col1 AS col0 FROM tab0 WHERE NOT - + col0 * - ( + + 26 ) - - + 46 + + col1 * col1 * col0 BETWEEN - CAST ( NULL AS INTEGER ) + + col2 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL + COUNT( - - col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL + COUNT ( - - col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT ( - col2 ) * 94 FROM tab1
----
-5546
-6392
-9024

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5196
SELECT - COUNT( * ) AS col1, - COUNT( ALL + - 63 ) + CAST( + COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
-3
0

skipif mysql # not compatible
query II rowsort label-5196
SELECT - COUNT ( * ) AS col1, - COUNT ( ALL + - 63 ) + CAST ( + COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
-3
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5197
SELECT ALL + COUNT( * ) col0, 7 FROM tab1 WHERE NOT + col1 IS NULL
----
3
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5197
SELECT ALL + COUNT ( * ) col0, 7 FROM tab1 WHERE NOT + col1 IS NULL
----
3
7

query I rowsort
SELECT 98 * col0 * - col2 FROM tab1
----
-479808
-491470
-606424

query I rowsort
SELECT ALL + 43 AS col1 FROM tab0 cor0
----
43
43
43

query II rowsort
SELECT DISTINCT col1 AS col2, - col0 AS col1 FROM tab1 AS cor0
----
14
-51
47
-91
5
-85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 < + col1 + - - col0 + + ( col1 )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5202
SELECT ALL ( - - ( - 66 ) ) AS col2, 0 * - 96 * + ( + 63 ) DIV - - col1 - - ( + col2 ) FROM tab2 AS cor0
----
-66
23
-66
40
-66
58

skipif mysql # not compatible
query II rowsort label-5202
SELECT ALL ( - - ( - 66 ) ) AS col2, 0 * - 96 * + ( + 63 ) / - - col1 - - ( + col2 ) FROM tab2 AS cor0
----
-66
23
-66
40
-66
58

query II rowsort
SELECT col2, - 67 * col2 AS col0 FROM tab0 AS cor0
----
10
-670
47
-3149
99
-6633

onlyif mysql # DIV for integer division: 
query II rowsort label-5204
SELECT DISTINCT + col0 AS col2, col2 DIV 60 FROM tab0 AS cor0
----
15
0
87
0
97
1

skipif mysql # not compatible
query II rowsort label-5204
SELECT DISTINCT + col0 AS col2, col2 / 60 FROM tab0 AS cor0
----
15
0
87
0
97
1

query I rowsort
SELECT 95 * col1 + - col2 AS col2 FROM tab2
----
4822
6307
7275

query I rowsort
SELECT 59 + + 50 FROM tab0
----
109
109
109

query I rowsort
SELECT col2 * col0 FROM tab0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 IN ( + 54 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( + 85 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5210
SELECT COUNT( * ) AS col0 FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5210
SELECT COUNT ( * ) AS col0 FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( col0 ) BETWEEN NULL AND 27 + - col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-5212
SELECT - CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5212
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS REAL ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col2 ) * col1 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * + 85 AS col1 FROM tab1
----
5015
5780
8160

onlyif mysql # aggregate syntax: 
query I rowsort label-5215
SELECT ALL COUNT( ALL + 73 ) FROM tab0 WHERE ( + 2 ) < NULL
----
0

skipif mysql # not compatible
query I rowsort label-5215
SELECT ALL COUNT ( ALL + 73 ) FROM tab0 WHERE ( + 2 ) < NULL
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT - 65 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 98 AS col1 FROM tab2 WHERE + 59 IS NOT NULL
----
98
98
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5218
SELECT COUNT( * ) - COUNT( col0 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5218
SELECT COUNT ( * ) - COUNT ( col0 ) FROM tab1
----
0

query I rowsort
SELECT + col0 + col2 * ( 61 ) AS col1 FROM tab2
----
1449
2504
3613

query I rowsort
SELECT ALL col1 FROM tab2 WHERE ( - 95 * 8 ) IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT COUNT( * ) * + MIN( ALL col2 ) AS col1 FROM tab0
----
30

skipif mysql # not compatible
query I rowsort label-5221
SELECT COUNT ( * ) * + MIN ( ALL col2 ) AS col1 FROM tab0
----
30

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5222
SELECT * FROM tab1 WHERE ( CAST( NULL AS SIGNED ) ) < ( NULL )
----

skipif mysql # not compatible
query III rowsort label-5222
SELECT * FROM tab1 WHERE ( CAST ( NULL AS INTEGER ) ) < ( NULL )
----

query I rowsort
SELECT ALL + col0 AS col0 FROM tab2 WHERE NULL BETWEEN col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT DISTINCT + 19 * COUNT( * ) FROM tab0 WHERE - col1 * col2 NOT BETWEEN col2 AND + 35 - + col1
----
57

skipif mysql # not compatible
query I rowsort label-5224
SELECT DISTINCT + 19 * COUNT ( * ) FROM tab0 WHERE - col1 * col2 NOT BETWEEN col2 AND + 35 - + col1
----
57

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - ( COUNT( * ) ) * COUNT( * ) FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-5225
SELECT - ( COUNT ( * ) ) * COUNT ( * ) FROM tab1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5226
SELECT SUM( - 29 ) FROM tab2
----
-87

skipif mysql # not compatible
query I rowsort label-5226
SELECT SUM ( - 29 ) FROM tab2
----
-87

query I rowsort
SELECT DISTINCT - 30 * + 86 FROM tab2
----
-2580

query I rowsort
SELECT DISTINCT col0 / col0 FROM tab1 WHERE NOT + 33 IS NOT NULL
----

query I rowsort
SELECT ALL ( col1 ) + ( 19 ) FROM tab1
----
24
33
66

query I rowsort
SELECT + col0 - col1 * + col0 AS col1 FROM tab1
----
-340
-4186
-663

onlyif mysql # aggregate syntax: 
query I rowsort label-5231
SELECT ALL MAX( ALL - 32 ) * 21 AS col0 FROM tab1
----
-672

skipif mysql # not compatible
query I rowsort label-5231
SELECT ALL MAX ( ALL - 32 ) * 21 AS col0 FROM tab1
----
-672

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5232
SELECT ALL * FROM tab1 WHERE NOT + col2 + - CAST( NULL AS SIGNED ) >= - 99
----

skipif mysql # not compatible
query III rowsort label-5232
SELECT ALL * FROM tab1 WHERE NOT + col2 + - CAST ( NULL AS INTEGER ) >= - 99
----

query I rowsort
SELECT 92 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5234
SELECT DISTINCT - 79 * COUNT( * ) AS col1 FROM tab1 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5234
SELECT DISTINCT - 79 * COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-237

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * 16 - col0 col0 FROM tab1 AS cor0
----
-5
173
661

onlyif mysql # aggregate syntax: 
query I rowsort label-5236
SELECT ALL + COUNT( DISTINCT 7 ) * COUNT( * ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5236
SELECT ALL + COUNT ( DISTINCT 7 ) * COUNT ( * ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT 76 - col2 AS col0 FROM tab1 AS cor0
----
-20
17
8

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 + ( col0 ) > NULL
----

query I rowsort
SELECT ALL 95 + - col2 FROM tab0
----
-4
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-5240
SELECT DISTINCT COUNT( * ) + 91 FROM tab2 WHERE col1 IS NULL
----
91

skipif mysql # not compatible
query I rowsort label-5240
SELECT DISTINCT COUNT ( * ) + 91 FROM tab2 WHERE col1 IS NULL
----
91

query I rowsort
SELECT + 69 * col1 + + 40 * + 34 AS col1 FROM tab0
----
1429
2809
6949

query I rowsort
SELECT DISTINCT + 15 + 95 AS col0 FROM tab1 cor0
----
110

query I rowsort
SELECT AVG ( ALL 32 ) FROM tab0 cor0 WHERE NULL > ( NULL )
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + col2 ) NOT IN ( 48 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5245
SELECT ALL - - COUNT( * ) DIV + COUNT( * ) FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5245
SELECT ALL - - COUNT ( * ) / + COUNT ( * ) FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT MAX( DISTINCT 32 ) FROM tab2 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-5246
SELECT MAX ( DISTINCT 32 ) FROM tab2 AS cor0
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 85 col0 FROM tab0 AS cor0 WHERE NOT ( - col0 * - col0 ) IN ( - 34 )
----
85
85
85

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND ( 2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5249
SELECT DISTINCT 68 * COUNT( * ) AS col1 FROM tab2 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-5249
SELECT DISTINCT 68 * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
204

query I rowsort
SELECT DISTINCT col0 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col1 / 3 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5251
SELECT DISTINCT 25 / + CAST( ( - CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5251
SELECT DISTINCT 25 / + CAST ( ( - CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5253
SELECT ALL + SUM( ALL 80 ) FROM tab0
----
240

skipif mysql # not compatible
query I rowsort label-5253
SELECT ALL + SUM ( ALL 80 ) FROM tab0
----
240

query I rowsort
SELECT ALL 42 + + col2 * - 30 AS col0 FROM tab2 WHERE NOT col1 IS NOT NULL
----

query I rowsort
SELECT ALL col1 * + - ( - 4 ) FROM tab1 AS cor0
----
188
20
56

query I rowsort
SELECT DISTINCT - 39 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT SUM( + col0 ) * - 22 FROM tab2 AS cor0
----
-4070

skipif mysql # not compatible
query I rowsort label-5257
SELECT SUM ( + col0 ) * - 22 FROM tab2 AS cor0
----
-4070

onlyif mysql # aggregate syntax: 
query I rowsort label-5258
SELECT + COUNT( ALL + + 52 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5258
SELECT + COUNT ( ALL + + 52 ) AS col0 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( 9 ) > ( + col1 / + 92 - + 77 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 57 + - + col0 AS col1 FROM tab2
----
-18
-7
11

query I rowsort
SELECT col2 * - 96 + col1 + + col1 AS col2 FROM tab0
----
-4350
-918
-9502

query I rowsort
SELECT + 81 FROM tab2, tab0 AS cor0 WHERE NOT NULL > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + col1 col1 FROM tab0 AS cor0
----
100
128
31

onlyif mysql # DIV for integer division: 
query II rowsort label-5264
SELECT DISTINCT - 56 col0, - col2 DIV + col1 AS col2 FROM tab2 AS cor0
----
-56
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5264
SELECT DISTINCT - 56 col0, - col2 / + col1 AS col2 FROM tab2 AS cor0
----
-56
0

query I rowsort
SELECT col0 * 88 AS col0 FROM tab1 AS cor0
----
4488
7480
8008

query II rowsort
SELECT DISTINCT + + col2, - col1 AS col0 FROM tab1 AS cor0
----
59
-5
68
-47
96
-14

onlyif mysql # aggregate syntax: 
query I rowsort label-5267
SELECT - 62 * + + SUM( DISTINCT col1 ) + COUNT( * ) AS col0 FROM tab1 cor0
----
-4089

skipif mysql # not compatible
query I rowsort label-5267
SELECT - 62 * + + SUM ( DISTINCT col1 ) + COUNT ( * ) AS col0 FROM tab1 cor0
----
-4089

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT ALL + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-5268
SELECT ALL + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col1 * + - col1 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5270
SELECT - ( + COUNT( DISTINCT + 2 ) ) * 71 AS col2 FROM tab2 cor0
----
-71

skipif mysql # not compatible
query I rowsort label-5270
SELECT - ( + COUNT ( DISTINCT + 2 ) ) * 71 AS col2 FROM tab2 cor0
----
-71

onlyif mysql # aggregate syntax: 
query I rowsort label-5271
SELECT + COUNT( * ) - 69 AS col2 FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-5271
SELECT + COUNT ( * ) - 69 AS col2 FROM tab2
----
-66

query I rowsort
SELECT ALL 42 AS col0 FROM tab0 WHERE NULL = NULL AND - - col1 * col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 51 <> col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL IS NULL AND NOT NULL NOT BETWEEN ( NULL ) AND + 73
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5275
SELECT - 85 + CAST( col0 AS SIGNED ) AS col2 FROM tab0
----
-70
12
2

skipif mysql # not compatible
query I rowsort label-5275
SELECT - 85 + CAST ( col0 AS INTEGER ) AS col2 FROM tab0
----
-70
12
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5276
SELECT DISTINCT - ( + 8 ) + + - 83 * + COUNT( * ) AS col0 FROM tab2
----
-257

skipif mysql # not compatible
query I rowsort label-5276
SELECT DISTINCT - ( + 8 ) + + - 83 * + COUNT ( * ) AS col0 FROM tab2
----
-257

query I rowsort
SELECT 58 + 11 FROM tab2
----
69
69
69

query III rowsort
SELECT * FROM tab0 WHERE + 90 <= ( + + col0 )
----
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT SUM( DISTINCT - col1 ) + COUNT( * ) FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-5279
SELECT SUM ( DISTINCT - col1 ) + COUNT ( * ) FROM tab2
----
-192

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5280
SELECT ALL - COUNT( * ) DIV 91 + SUM( CAST( col1 AS SIGNED ) ) AS col1 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-5280
SELECT ALL - COUNT ( * ) / 91 + SUM ( CAST ( col1 AS INTEGER ) ) AS col1 FROM tab2
----
195

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 94 + - - col0 * + 65 col0 FROM tab0 cor0
----
5551
6112
834

onlyif mysql # DIV for integer division: 
query I rowsort label-5282
SELECT DISTINCT + - col1 - - col0 * + col2 DIV - col2 FROM tab1 AS cor0
----
-138
-65
-90

skipif mysql # not compatible
query I rowsort label-5282
SELECT DISTINCT + - col1 - - col0 * + col2 / - col2 FROM tab1 AS cor0
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-5283
SELECT ALL + ( - - COUNT( * ) ) - - - 24 + + + 5 FROM tab1
----
-16

skipif mysql # not compatible
query I rowsort label-5283
SELECT ALL + ( - - COUNT ( * ) ) - - - 24 + + + 5 FROM tab1
----
-16

query I rowsort
SELECT 94 - - 34 * + col2 FROM tab2
----
1454
2066
876

onlyif mysql # aggregate syntax: 
query I rowsort label-5285
SELECT ALL COUNT( DISTINCT + 88 ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-5285
SELECT ALL COUNT ( DISTINCT + 88 ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL - - 28 * col1 + - ( + 96 ) * ( col0 ) FROM tab2 AS cor0
----
-2988
-3988
-5324

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5287
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - CAST( - 54 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5287
SELECT - col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) <> - CAST ( - 54 AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5288
SELECT - + col2 DIV - col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5288
SELECT - + col2 / - col1 + - col1 FROM tab2 AS cor0
----
-51
-67
-77

query I rowsort
SELECT - col1 * ( col0 ) AS col2 FROM tab2 AS cor0 WHERE NOT col2 NOT BETWEEN - col0 AND + col2 + + col1 * + 44
----
-2346
-4928
-5025

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + col2 >= - 84 + + 85 - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT DISTINCT + COUNT( + - ( - - ( + + 69 ) ) ) * SUM( ALL 82 ) AS col1 FROM tab0 cor0
----
738

skipif mysql # not compatible
query I rowsort label-5291
SELECT DISTINCT + COUNT ( + - ( - - ( + + 69 ) ) ) * SUM ( ALL 82 ) AS col1 FROM tab0 cor0
----
738

onlyif mysql # aggregate syntax: 
query I rowsort label-5292
SELECT DISTINCT MIN( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-5292
SELECT DISTINCT MIN ( DISTINCT - - col2 ) AS col0 FROM tab2 AS cor0
----
23

query I rowsort
SELECT ALL - 36 FROM tab0 AS cor0 WHERE 30 * - col0 + - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 + + 35 ) NOT BETWEEN NULL AND ( + 88 * col2 )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT IN ( - col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 < - + col1 + - + col1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL 10 * - + 18 * 36 FROM tab0
----
-6480
-6480
-6480

onlyif mysql # aggregate syntax: 
query I rowsort label-5298
SELECT - MAX( ALL 8 ) FROM tab1
----
-8

skipif mysql # not compatible
query I rowsort label-5298
SELECT - MAX ( ALL 8 ) FROM tab1
----
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5299
SELECT + CAST( + col0 AS SIGNED ) * + col1 FROM tab2
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-5299
SELECT + CAST ( + col0 AS INTEGER ) * + col1 FROM tab2
----
2346
4928
5025

query I rowsort
SELECT ALL 76 * - col2 FROM tab0
----
-3572
-7524
-760

query II rowsort
SELECT col1 AS col0, - 4 * + col0 + col2 - col0 AS col1 FROM tab2
----
51
-207
67
-317
77
-280

query I rowsort
SELECT ALL + 7 AS col2 FROM tab2, tab1 cor0
----
9 values hashing to 3362c0cb2b2c663037159d0699d46b76

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5303
SELECT - CAST( NULL AS SIGNED ) * + 26 / + col2 * + + col1, + 40 AS col2 FROM tab2
----
NULL
40
NULL
40
NULL
40

skipif mysql # not compatible
query II rowsort label-5303
SELECT - CAST ( NULL AS INTEGER ) * + 26 / + col2 * + + col1, + 40 AS col2 FROM tab2
----
NULL
40
NULL
40
NULL
40

onlyif mysql # aggregate syntax: 
query I rowsort label-5304
SELECT + COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) BETWEEN - col0 AND + 29
----
2

skipif mysql # not compatible
query I rowsort label-5304
SELECT + COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE NOT + ( - col2 ) BETWEEN - col0 AND + 29
----
2

query I rowsort
SELECT - ( - col0 ) - + col1 * - ( + col0 * 69 ) AS col1 FROM tab0 WHERE + col1 BETWEEN + col1 + - 22 AND + - col0 + col2
----
6790

onlyif mysql # DIV for integer division: 
query I rowsort label-5306
SELECT ALL - ( + col1 ) DIV + - col0 + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5306
SELECT ALL - ( + col1 ) / + - col0 + col0 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT - col1 * + 67 AS col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT DISTINCT 47 + + 20 * - ( + col1 ) FROM tab1 cor0
----
-233
-53
-893

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5309
SELECT + ( + 72 ) DIV + - 99 + + + ( + - COUNT( * ) ) + - + MAX( - - col1 ) AS col1 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-5309
SELECT + ( + 72 ) / + - 99 + + + ( + - COUNT ( * ) ) + - + MAX ( - - col1 ) AS col1 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT DISTINCT col0 + - col1 FROM tab1 AS cor0 WHERE NOT + col2 IS NOT NULL
----

query I rowsort
SELECT - 41 + - + col0 AS col0 FROM tab1 cor0
----
-126
-132
-92

query I rowsort
SELECT - - 52 + + + 41 FROM tab0 cor0
----
93
93
93

onlyif mysql # aggregate syntax: 
query II rowsort label-5313
SELECT + COUNT( * ) AS col1, SUM( - col0 ) AS col1 FROM tab0
----
3
-199

skipif mysql # not compatible
query II rowsort label-5313
SELECT + COUNT ( * ) AS col1, SUM ( - col0 ) AS col1 FROM tab0
----
3
-199

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5314
SELECT + 93 DIV + COUNT( + ( - col0 ) ) DIV - 1 FROM tab2
----
-31

skipif mysql # not compatible
query I rowsort label-5314
SELECT + 93 / + COUNT ( + ( - col0 ) ) / - 1 FROM tab2
----
-31

query III rowsort
SELECT ALL * FROM tab1 WHERE - ( + + col1 ) * + 30 - + + col2 = col2
----

query I rowsort
SELECT ALL + + 59 - - col2 FROM tab0 AS cor0
----
106
158
69

query I rowsort
SELECT - + 93 + + - col0 FROM tab0 AS cor0
----
-108
-180
-190

query I rowsort
SELECT - 20 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to f1cccb95c90889319e7a51e4ae9475bb

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT 58 IS NOT NULL )
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT col0 + - 88 - + 78 - + + col1 * + - col2 * col1 + - col0 BETWEEN + 85 + col0 AND NULL
----
97
1
99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5321
SELECT - - COUNT( * ) DIV + + 97 * + COUNT( * ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5321
SELECT - - COUNT ( * ) / + + 97 * + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5322
SELECT ALL - CAST( - col1 AS SIGNED ) col1 FROM tab2 cor0 WHERE NOT - col2 / - col2 > NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5322
SELECT ALL - CAST ( - col1 AS INTEGER ) col1 FROM tab2 cor0 WHERE NOT - col2 / - col2 > NULL
----

query I rowsort
SELECT ALL 86 * - + col2 AS col1 FROM tab1 cor0 WHERE NULL NOT BETWEEN col1 * - col1 AND + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5324
SELECT DISTINCT - ( MIN( DISTINCT + - col0 ) ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-5324
SELECT DISTINCT - ( MIN ( DISTINCT + - col0 ) ) AS col0 FROM tab0 AS cor0
----
97

query I rowsort
SELECT - - 5 AS col2 FROM tab0 cor0
----
5
5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5326
SELECT + COUNT( ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5326
SELECT + COUNT ( ( + - col2 ) ) AS col1 FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT 22 + + col0 FROM tab2 AS cor0 WHERE ( NULL ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5328
SELECT ALL - 28 * CAST( NULL AS DECIMAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5328
SELECT ALL - 28 * CAST ( NULL AS REAL ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5329
SELECT DISTINCT + COUNT( * ) * + 42 FROM tab1
----
126

skipif mysql # not compatible
query I rowsort label-5329
SELECT DISTINCT + COUNT ( * ) * + 42 FROM tab1
----
126

query II rowsort
SELECT DISTINCT + 44, col2 AS col2 FROM tab2
----
44
23
44
40
44
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5331
SELECT + SUM( - col0 ) FROM tab1 WHERE NOT + col2 BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5331
SELECT + SUM ( - col0 ) FROM tab1 WHERE NOT + col2 BETWEEN NULL AND NULL
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT - 85 + 38 - - 12 IS NOT NULL
----

query I rowsort
SELECT - 37 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5334
SELECT - - col0 DIV 40 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5334
SELECT - - col0 / 40 AS col2 FROM tab2 AS cor0
----
1
1
1

query II rowsort
SELECT ALL 88, col1 FROM tab0 AS cor0
----
88
1
88
21
88
81

query I rowsort
SELECT 63 + + col1 AS col2 FROM tab2 AS cor0
----
114
130
140

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5337
SELECT * FROM tab2 cor0 WHERE CAST( 43 AS SIGNED ) BETWEEN NULL AND - + 51
----

skipif mysql # not compatible
query III rowsort label-5337
SELECT * FROM tab2 cor0 WHERE CAST ( 43 AS INTEGER ) BETWEEN NULL AND - + 51
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5338
SELECT DISTINCT - COUNT( DISTINCT - 99 ) FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5338
SELECT DISTINCT - COUNT ( DISTINCT - 99 ) FROM tab2 AS cor0
----
-1

query I rowsort
SELECT + 33 FROM tab0 AS cor0 WHERE + col1 / + col1 IS NOT NULL
----
33
33
33

query I rowsort
SELECT ALL + col2 + - 0 AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - - 43 * - col2 AS col1 FROM tab0 AS cor0
----
-2021
-4257
-430

onlyif mysql # aggregate syntax: 
query I rowsort label-5342
SELECT DISTINCT - - 72 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
69

skipif mysql # not compatible
query I rowsort label-5342
SELECT DISTINCT - - 72 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-5343
SELECT DISTINCT 24 - COUNT( * ) * - 94 FROM tab1 cor0
----
306

skipif mysql # not compatible
query I rowsort label-5343
SELECT DISTINCT 24 - COUNT ( * ) * - 94 FROM tab1 cor0
----
306

query I rowsort
SELECT ALL + col1 * - + col2 * + col0 AS col0 FROM tab0 AS cor0
----
-18270
-57105
-9603

query I rowsort
SELECT ALL col0 * - 45 AS col1 FROM tab0 AS cor0
----
-3915
-4365
-675

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col1 ) = ( NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE - ( + 84 ) NOT IN ( - + col1 / - col0, - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col0 + - col2 * - 40 AS col2 FROM tab2
----
1664
2395
966

onlyif mysql # aggregate syntax: 
query I rowsort label-5349
SELECT DISTINCT - MAX( + + 34 ) * COUNT( * ) + - COUNT( * ) AS col1 FROM tab0
----
-105

skipif mysql # not compatible
query I rowsort label-5349
SELECT DISTINCT - MAX ( + + 34 ) * COUNT ( * ) + - COUNT ( * ) AS col1 FROM tab0
----
-105

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5350
SELECT ALL 68 * + - CAST( - ( + col0 ) AS SIGNED ) + + col0 * - 5 FROM tab2
----
2898
4032
4725

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL 68 * + - CAST ( - ( + col0 ) AS INTEGER ) + + col0 * - 5 FROM tab2
----
2898
4032
4725

query I rowsort
SELECT 81 + - + col2 FROM tab0
----
-18
34
71

query I rowsort
SELECT - col0 + ( - col2 ) * + - col0 * - col0 AS col2 FROM tab2
----
-163904
-326325
-48714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 88 col2 FROM tab0
----
-67
-7
-87

query I rowsort
SELECT ( - - 6 ) FROM tab2, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

query I rowsort
SELECT ALL + ( - col2 ) + + col0 FROM tab0 AS cor0
----
-2
-32
77

query I rowsort
SELECT ALL - col1 AS col1 FROM tab2 AS cor0 WHERE NULL < 53 / col1 * + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * - col0 * - - 29 BETWEEN ( - col1 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT DISTINCT col0, col2 AS col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query I rowsort
SELECT col1 + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5360
SELECT ALL - ( - + MIN( ALL col2 ) ) AS col0 FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-5360
SELECT ALL - ( - + MIN ( ALL col2 ) ) AS col0 FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5361
SELECT DISTINCT + MAX( CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5361
SELECT DISTINCT + MAX ( CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT - 5 * - col1 FROM tab2 AS cor0
----
255
335
385

query II rowsort
SELECT - 80, col0 AS col0 FROM tab0 AS cor0
----
-80
15
-80
87
-80
97

query I rowsort
SELECT + 10 * col2 + + 0 - + col1 FROM tab2
----
179
323
513

query I rowsort
SELECT DISTINCT - - col1 FROM tab0 WHERE + + col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - - 83 * + 46 - 6 * col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 21 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5368
SELECT DISTINCT + SUM( col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-5368
SELECT DISTINCT + SUM ( col1 ) FROM tab0
----
103

onlyif mysql # aggregate syntax: 
query I rowsort label-5369
SELECT ALL COUNT( * ) + 28 FROM tab0
----
31

skipif mysql # not compatible
query I rowsort label-5369
SELECT ALL COUNT ( * ) + 28 FROM tab0
----
31

query I rowsort
SELECT DISTINCT + 39 + - + 29 FROM tab0 cor0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-5371
SELECT - col2 DIV - ( 27 ) FROM tab1
----
2
2
3

skipif mysql # not compatible
query I rowsort label-5371
SELECT - col2 / - ( 27 ) FROM tab1
----
2
2
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5372
SELECT + COUNT( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5372
SELECT + COUNT ( * ) AS col2 FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query I rowsort
SELECT 82 * - col2 AS col1 FROM tab1 WHERE + col2 IS NOT NULL
----
-4838
-5576
-7872

query I rowsort
SELECT - + ( 25 ) + - col2 * + 43 - - col1 * + 18 * + col0 AS col1 FROM tab0 AS cor0
----
-2536
19824
32431

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5375
SELECT DISTINCT - - CAST( NULL AS SIGNED ) * + COUNT( * ) * + COUNT( * ) + 13 + + 37 + + MIN( ALL - - col0 ) * - COUNT( * ) - + COUNT( ALL col1 ) + - ( + COUNT( * ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5375
SELECT DISTINCT - - CAST ( NULL AS INTEGER ) * + COUNT ( * ) * + COUNT ( * ) + 13 + + 37 + + MIN ( ALL - - col0 ) * - COUNT ( * ) - + COUNT ( ALL col1 ) + - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT + col0 - + - 51 AS col2 FROM tab2 cor0
----
115
126
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5377
SELECT DISTINCT - col1 DIV + col2 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-5377
SELECT DISTINCT - col1 / + col2 - col2 AS col1 FROM tab1 AS cor0
----
-59
-68
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5378
SELECT - CAST( NULL AS SIGNED ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5378
SELECT - CAST ( NULL AS INTEGER ) + - col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT ALL - - CAST( NULL AS SIGNED ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT ALL - - CAST ( NULL AS INTEGER ) - col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5380
SELECT - col0 * - col0 + - CAST( NULL AS SIGNED ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5380
SELECT - col0 * - col0 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5381
SELECT - ( col2 ) FROM tab2 cor0 WHERE ( - - col0 ) >= - CAST( + + 56 AS SIGNED )
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5381
SELECT - ( col2 ) FROM tab2 cor0 WHERE ( - - col0 ) >= - CAST ( + + 56 AS INTEGER )
----
-23
-40
-58

query I rowsort
SELECT ( 99 ) AS col1 FROM tab1 AS cor0
----
99
99
99

query I rowsort
SELECT + col2 * + col2 + - + col0 + - + col1 AS col2 FROM tab2 AS cor0
----
1459
3222
432

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - 57 * 83 NOT IN ( + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 7 + - + ( - - 88 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-5386
SELECT 8, ( - MAX( + col2 ) ) + COUNT( * ) AS col0 FROM tab1
----
8
-93

skipif mysql # not compatible
query II rowsort label-5386
SELECT 8, ( - MAX ( + col2 ) ) + COUNT ( * ) AS col0 FROM tab1
----
8
-93

query I rowsort
SELECT ALL - col1 + - 12 + - + 51 AS col1 FROM tab0
----
-144
-64
-84

query I rowsort
SELECT col1 / col1 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5389
SELECT ALL - MIN( ALL col2 ) * + 21 AS col2 FROM tab0 AS cor0
----
-210

skipif mysql # not compatible
query I rowsort label-5389
SELECT ALL - MIN ( ALL col2 ) * + 21 AS col2 FROM tab0 AS cor0
----
-210

query II rowsort
SELECT - 32 AS col1, col2 AS col0 FROM tab2 AS cor0
----
-32
23
-32
40
-32
58

query I rowsort
SELECT + + col0 * + - col2 FROM tab1 AS cor0
----
-4896
-5015
-6188

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col2 = - 61 - + 56
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 18 * col2 AS col0 FROM tab2 AS cor0
----
1044
414
720

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5394
SELECT MIN( CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5394
SELECT MIN ( CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5395
SELECT DISTINCT + - 16 FROM tab2 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-5395
SELECT DISTINCT + - 16 FROM tab2 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5396
SELECT ALL - MIN( - 26 ) AS col0, + 60 AS col2 FROM tab2
----
26
60

skipif mysql # not compatible
query II rowsort label-5396
SELECT ALL - MIN ( - 26 ) AS col0, + 60 AS col2 FROM tab2
----
26
60

onlyif mysql # aggregate syntax: 
query I rowsort label-5397
SELECT - COUNT( DISTINCT + + col0 ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-5397
SELECT - COUNT ( DISTINCT + + col0 ) AS col2 FROM tab2
----
-3

query I rowsort
SELECT 84 * + ( - col0 ) * + - col2 AS col2 FROM tab0 AS cor0
----
59220
73080
806652

query I rowsort
SELECT - col1 * 11 - - - col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND - + 59
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5400
SELECT + col0 DIV - 2 + ( - - 87 ) DIV - col2 col0 FROM tab2 AS cor0
----
-26
-34
-38

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5400
SELECT + col0 / - 2 + ( - - 87 ) / - col2 col0 FROM tab2 AS cor0
----
-26
-34
-38

query II rowsort
SELECT ( + col1 ) AS col1, col1 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN NULL AND - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5403
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 > + CAST( NULL AS SIGNED ) - col0
----

skipif mysql # not compatible
query III rowsort label-5403
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT col0 > + CAST ( NULL AS INTEGER ) - col0
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 52 NOT BETWEEN + 87 AND NULL
----

query I rowsort
SELECT col0 * + 18 AS col0 FROM tab1
----
1530
1638
918

query II rowsort
SELECT - col2 AS col1, + 12 AS col1 FROM tab0
----
-10
12
-47
12
-99
12

onlyif mysql # aggregate syntax: 
query I rowsort label-5407
SELECT DISTINCT COUNT( * ) - 61 FROM tab0, tab0 AS cor0
----
-52

skipif mysql # not compatible
query I rowsort label-5407
SELECT DISTINCT COUNT ( * ) - 61 FROM tab0, tab0 AS cor0
----
-52

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 + - col0 * col1 * + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 99 + + + col2 * col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 + 99 FROM tab1
----
158
167
195

query I rowsort
SELECT + 83 FROM tab0 AS cor0 WHERE ( NULL ) NOT BETWEEN + col0 AND col1 * + 28
----

query I rowsort
SELECT 40 + - col2 FROM tab0 cor0
----
-59
-7
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5413
SELECT + 60 * + CAST( NULL AS SIGNED ) FROM tab1 cor0 WHERE col1 * - + 53 - 83 BETWEEN col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5413
SELECT + 60 * + CAST ( NULL AS INTEGER ) FROM tab1 cor0 WHERE col1 * - + 53 - 83 BETWEEN col2 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5414
SELECT + 32 DIV 71 col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5414
SELECT + 32 / 71 col1 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 - - - 34 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 / + 44 AS col1 FROM tab2 cor0 WHERE NULL NOT BETWEEN NULL AND - col1 * + 4
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5417
SELECT SUM( DISTINCT + 21 ) - 56 AS col1 FROM tab2 AS cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5417
SELECT SUM ( DISTINCT + 21 ) - 56 AS col1 FROM tab2 AS cor0
----
-35

query I rowsort
SELECT - + 3 - + col0 * - + col0 AS col1 FROM tab1 cor0
----
2598
7222
8278

query I rowsort
SELECT ( - 99 ) - col1 FROM tab0 cor0
----
-100
-120
-180

query I rowsort
SELECT ALL - col0 - + 27 FROM tab0 AS cor0
----
-114
-124
-42

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT col2 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 4 * + + ( col1 ) + 49 + - + col0 FROM tab1 AS cor0
----
-16
146
54

query I rowsort
SELECT + 92 - + col2 FROM tab0 AS cor0
----
-7
45
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 28 col1 FROM tab0 AS cor0
----
28

query III rowsort
SELECT * FROM tab1 WHERE - + 46 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 WHERE NOT - 36 * - - 55 * 96 + + 84 = 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-5427
SELECT 30 DIV - col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5427
SELECT 30 / - col0 FROM tab2
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5428
SELECT + col1 DIV - 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5428
SELECT + col1 / - 99 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + ( - col0 ) * ( - 32 ) FROM tab0
----
2784
3104
480

query I rowsort
SELECT ALL + 88 * col2 * col0 * - 39 * + - 30 AS col2 FROM tab1
----
504092160
516344400
637116480

onlyif mysql # aggregate syntax: 
query I rowsort label-5431
SELECT ALL - MIN( + 22 ) AS col0 FROM tab1
----
-22

skipif mysql # not compatible
query I rowsort label-5431
SELECT ALL - MIN ( + 22 ) AS col0 FROM tab1
----
-22

query I rowsort
SELECT ALL 19 * 33 * + col2 FROM tab2
----
14421
25080
36366

onlyif mysql # DIV for integer division: 
query I rowsort label-5433
SELECT ALL col1 DIV 61 - col1 DIV col2 DIV - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5433
SELECT ALL col1 / 61 - col1 / col2 / - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT - SUM( - col0 ) col0 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5434
SELECT - SUM ( - col0 ) col0 FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - 77 FROM tab2 WHERE + col1 + - + 16 <> - + col2
----
-77

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5436
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5436
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col0 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5437
SELECT DISTINCT + MAX( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-5437
SELECT DISTINCT + MAX ( ALL col1 ) AS col2 FROM tab1 AS cor0
----
47

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5438
SELECT ALL + - 45 DIV - MIN( DISTINCT - 43 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5438
SELECT ALL + - 45 / - MIN ( DISTINCT - 43 ) FROM tab1 cor0
----
-1

query II rowsort
SELECT DISTINCT + 53 AS col2, - col2 AS col0 FROM tab1 AS cor0
----
53
-59
53
-68
53
-96

query I rowsort
SELECT + col0 + + + 8 AS col0 FROM tab1 AS cor0
----
59
93
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5441
SELECT MIN( - 75 ) FROM tab0 WHERE - ( + 98 ) + + 57 IN ( + - col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5441
SELECT MIN ( - 75 ) FROM tab0 WHERE - ( + 98 ) + + 57 IN ( + - col0 )
----
NULL

query II rowsort
SELECT - 37 + - col1 AS col1, + col2 * - col2 FROM tab2
----
-104
-3364
-114
-1600
-88
-529

query I rowsort
SELECT + 12 * + col2 + + col1 FROM tab0
----
1189
141
645

query I rowsort
SELECT DISTINCT - 82 + + col1 FROM tab2
----
-15
-31
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5445
SELECT ALL COUNT( * ) + + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5445
SELECT ALL COUNT ( * ) + + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5446
SELECT col2 * + - CAST( + col2 AS SIGNED ) AS col0 FROM tab0
----
-100
-2209
-9801

skipif mysql # not compatible
query I rowsort label-5446
SELECT col2 * + - CAST ( + col2 AS INTEGER ) AS col0 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5447
SELECT DISTINCT - col2 + col2 col2, - CAST( NULL AS SIGNED ) * col1 FROM tab0
----
0
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5447
SELECT DISTINCT - col2 + col2 col2, - CAST ( NULL AS INTEGER ) * col1 FROM tab0
----
0
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5448
SELECT DISTINCT - MIN( ALL + + 1 ) FROM tab1 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5448
SELECT DISTINCT - MIN ( ALL + + 1 ) FROM tab1 cor0
----
-1

query II rowsort
SELECT - 91 - + 8, col1 FROM tab0 AS cor0
----
-99
1
-99
21
-99
81

query I rowsort
SELECT ALL - 6 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-6
-6
-6

query I rowsort
SELECT - 23 + col1 FROM tab1
----
-18
-9
24

onlyif mysql # aggregate syntax: 
query I rowsort label-5452
SELECT + COUNT( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

skipif mysql # not compatible
query I rowsort label-5452
SELECT + COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-5453
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE col1 / - - col1 + + col0 <> + + col1 + col0
----
-3

skipif mysql # not compatible
query I rowsort label-5453
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE col1 / - - col1 + + col0 <> + + col1 + col0
----
-3

query I rowsort
SELECT - col0 AS col1 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5455
SELECT DISTINCT 21 * - + SUM( + + 4 ) / - MIN( col0 ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5455
SELECT DISTINCT 21 * - + SUM ( + + 4 ) / - MIN ( col0 ) FROM tab0 cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5456
SELECT ALL + CAST( NULL AS SIGNED ) - col2 + + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5456
SELECT ALL + CAST ( NULL AS INTEGER ) - col2 + + - col2 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 19 / + ( + col0 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5458
SELECT DISTINCT - - 5 * + COUNT( * ) + - COUNT( * ) DIV + + 26 * - COUNT( * ) AS col0 FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-5458
SELECT DISTINCT - - 5 * + COUNT ( * ) + - COUNT ( * ) / + + 26 * - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
15

query I rowsort
SELECT + col2 * - 1 * + 26 AS col2 FROM tab1 AS cor0
----
-1534
-1768
-2496

onlyif mysql # aggregate syntax: 
query I rowsort label-5460
SELECT - COUNT( DISTINCT + 83 ) FROM tab2
----
-1

skipif mysql # not compatible
query I rowsort label-5460
SELECT - COUNT ( DISTINCT + 83 ) FROM tab2
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-5461
SELECT ALL + SUM( + 71 ) FROM tab1
----
213

skipif mysql # not compatible
query I rowsort label-5461
SELECT ALL + SUM ( + 71 ) FROM tab1
----
213

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5462
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( ( - 38 ) * - CAST( + col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5462
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NULL ) IN ( ( - 38 ) * - CAST ( + col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT - 96 AS col1 FROM tab0 AS cor0 WHERE NOT col0 + 0 / + - col2 IS NULL
----
-96

query I rowsort
SELECT - + 1 FROM tab2 cor0
----
-1
-1
-1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 29 + + + 19 col0 FROM tab2 cor0 WHERE NOT ( NULL ) IS NOT NULL
----
48
48
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 13 * + col2 * + ( - + col0 ) col2 FROM tab2
----
-13754
-33280
-56550

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5467
SELECT DISTINCT * FROM tab1 WHERE + CAST( - CAST( NULL AS DECIMAL ) AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5467
SELECT DISTINCT * FROM tab1 WHERE + CAST ( - CAST ( NULL AS REAL ) AS INTEGER ) IS NOT NULL
----

query I rowsort
SELECT + col2 * 51 FROM tab2 AS cor0
----
1173
2040
2958

onlyif mysql # DIV for integer division: 
query I rowsort label-5469
SELECT DISTINCT ( 7 ) DIV - col0 + + col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5469
SELECT DISTINCT ( 7 ) / - col0 + + col0 FROM tab1 AS cor0
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 60 IS NULL
----

query I rowsort
SELECT DISTINCT ( + + ( - + col0 ) ) FROM tab1
----
-51
-85
-91

query I rowsort
SELECT - col0 FROM tab0 WHERE - - col0 + - col1 >= col1 * - + col1 + col2 - + - 44
----
-15
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-5473
SELECT DISTINCT COUNT( * ) + ( + MIN( DISTINCT + 80 ) ) AS col0 FROM tab2
----
83

skipif mysql # not compatible
query I rowsort label-5473
SELECT DISTINCT COUNT ( * ) + ( + MIN ( DISTINCT + 80 ) ) AS col0 FROM tab2
----
83

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5474
SELECT col0 * + - col1 * 7 / - col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - 35 * + col2 + CAST( NULL AS SIGNED ) + 63 AND NULL
----

skipif mysql # not compatible
query I rowsort label-5474
SELECT col0 * + - col1 * 7 / - col1 AS col0 FROM tab2 WHERE NULL NOT BETWEEN - 35 * + col2 + CAST ( NULL AS INTEGER ) + 63 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5475
SELECT DISTINCT - COUNT( * ) * + + 18 FROM tab2
----
-54

skipif mysql # not compatible
query I rowsort label-5475
SELECT DISTINCT - COUNT ( * ) * + + 18 FROM tab2
----
-54

query I rowsort
SELECT DISTINCT + col0 * - + 63 + - col1 * col2 AS col2 FROM tab1
----
-4557
-5650
-8929

query I rowsort
SELECT 33 + + - col2 AS col0 FROM tab0
----
-14
-66
23

query I rowsort
SELECT - 19 + - 4 * + col0 FROM tab1
----
-223
-359
-383

query I rowsort
SELECT - 81 * - 36 + 63 - col0 * 37 * + - col1 FROM tab0
----
47934
6568
70578

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( ( + col2 ) ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - col1 ) - 27 AS col2 FROM tab1 AS cor0
----
-32
-41
-74

query I rowsort
SELECT 42 FROM tab1 WHERE NULL IS NULL
----
42
42
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5483
SELECT + 41 col2 FROM tab1 cor0 WHERE NOT ( col0 / + col2 * + 5 + + CAST( NULL AS SIGNED ) * - col2 * 98 ) IS NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5483
SELECT + 41 col2 FROM tab1 cor0 WHERE NOT ( col0 / + col2 * + 5 + + CAST ( NULL AS INTEGER ) * - col2 * 98 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5484
SELECT DISTINCT - MIN( - ( 91 ) ) AS col0 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-5484
SELECT DISTINCT - MIN ( - ( 91 ) ) AS col0 FROM tab1 AS cor0
----
91

query I rowsort
SELECT ALL - col1 FROM tab2 AS cor0 WHERE - 61 * col2 IS NULL
----

query I rowsort
SELECT ALL - col2 * col1 AS col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5487
SELECT MIN( + 82 ) AS col0, COUNT( * ) + SUM( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
82
-196

skipif mysql # not compatible
query II rowsort label-5487
SELECT MIN ( + 82 ) AS col0, COUNT ( * ) + SUM ( ALL - + col0 ) AS col2 FROM tab0 AS cor0
----
82
-196

onlyif mysql # aggregate syntax: 
query I rowsort label-5488
SELECT ALL + COUNT( * ) * + 89 AS col2 FROM tab2
----
267

skipif mysql # not compatible
query I rowsort label-5488
SELECT ALL + COUNT ( * ) * + 89 AS col2 FROM tab2
----
267

query I rowsort
SELECT 14 * - 72 AS col0 FROM tab0
----
-1008
-1008
-1008

query I rowsort
SELECT 68 FROM tab0 WHERE NOT NULL = + - col2 * - col2 + col0
----

query I rowsort
SELECT ALL - col1 * + + 92 AS col2 FROM tab0
----
-1932
-7452
-92

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5492
SELECT CAST( + + COUNT( * ) AS SIGNED ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5492
SELECT CAST ( + + COUNT ( * ) AS INTEGER ) AS col0 FROM tab2
----
3

query III rowsort
SELECT * FROM tab0 WHERE NOT - 99 NOT BETWEEN + + 38 + + col2 * - col1 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5494
SELECT DISTINCT SUM( ALL col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-5494
SELECT DISTINCT SUM ( ALL col0 ) AS col2 FROM tab2
----
185

query I rowsort
SELECT col0 * + 60 * + col0 AS col0 FROM tab1 AS cor0
----
156060
433500
496860

query I rowsort
SELECT ALL + + 2 / - col2 + col0 FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( - col1 + 61, 28, 54 )
----

query I rowsort
SELECT col0 * + col2 + + 67 * col1 AS col0 FROM tab1 AS cor0
----
5350
5834
9337

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5498
SELECT DISTINCT * FROM tab0 WHERE - + ( - 25 ) + - col1 * CAST( NULL AS SIGNED ) * + col1 / 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-5498
SELECT DISTINCT * FROM tab0 WHERE - + ( - 25 ) + - col1 * CAST ( NULL AS INTEGER ) * + col1 / 9 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-5499
SELECT DISTINCT + col1 DIV - + col0 + + col1 * - 53 * + col1 * - - 80 FROM tab0 cor0
----
-1869840
-27818645
-4240

skipif mysql # not compatible
query I rowsort label-5499
SELECT DISTINCT + col1 / - + col0 + + col1 * - 53 * + col1 * - - 80 FROM tab0 cor0
----
-1869840
-27818645
-4240

query I rowsort
SELECT ALL - 17 * + + col1 AS col1 FROM tab0 AS cor0
----
-1377
-17
-357

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5501
SELECT - - ( col1 ) + + col1 + + CAST( - - 82 AS SIGNED ) FROM tab0 AS cor0
----
124
244
84

skipif mysql # not compatible
query I rowsort label-5501
SELECT - - ( col1 ) + + col1 + + CAST ( - - 82 AS INTEGER ) FROM tab0 AS cor0
----
124
244
84

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5502
SELECT - CAST( - + COUNT( * ) AS SIGNED ) col1 FROM tab0 AS cor0 WHERE - 99 NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5502
SELECT - CAST ( - + COUNT ( * ) AS INTEGER ) col1 FROM tab0 AS cor0 WHERE - 99 NOT BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT col0 * - - col2 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
705
870
9603

onlyif mysql # DIV for integer division: 
query I rowsort label-5504
SELECT ALL - col0 + + col1 DIV + 78 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-5504
SELECT ALL - col0 + + col1 / + 78 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT - COUNT( * ) * 67 FROM tab1
----
-201

skipif mysql # not compatible
query I rowsort label-5505
SELECT - COUNT ( * ) * 67 FROM tab1
----
-201

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5506
SELECT - col1 AS col1 FROM tab2 WHERE + + CAST( NULL AS SIGNED ) * - col2 + + 3 IS NULL
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-5506
SELECT - col1 AS col1 FROM tab2 WHERE + + CAST ( NULL AS INTEGER ) * - col2 + + 3 IS NULL
----
-51
-67
-77

query I rowsort
SELECT ALL + ( + col2 ) * 14 + 53 FROM tab0
----
1439
193
711

query I rowsort
SELECT ALL - col0 FROM tab2 WHERE - col0 * - + col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT ALL 98 - - + col0 FROM tab1
----
149
183
189

query I rowsort
SELECT - col0 + - col0 FROM tab0 WHERE ( col0 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5511
SELECT + MAX( DISTINCT + 19 ) col2 FROM tab2, tab2 AS cor0
----
19

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5511
SELECT + MAX ( DISTINCT + 19 ) col2 FROM tab2, tab2 AS cor0
----
19

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT - + 40 * - COUNT( * ) - + 42 FROM tab0 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-5512
SELECT - + 40 * - COUNT ( * ) - + 42 FROM tab0 AS cor0
----
78

query I rowsort
SELECT 2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 84dbfaf9bc17dd097f15bc36b4186261

query I rowsort
SELECT col0 FROM tab0 AS cor0 WHERE NOT ( NOT - 72 + - - 65 * + - col0 IS NOT NULL )
----
15
87
97

query II rowsort
SELECT ALL col0 AS col1, - col1 AS col0 FROM tab2 AS cor0
----
46
-51
64
-77
75
-67

query I rowsort
SELECT + 89 * + col0 FROM tab1 AS cor0
----
4539
7565
8099

onlyif mysql # CAST syntax: SIGNED