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 type: 
query III rowsort label-5517
SELECT * FROM tab0 AS cor0 WHERE NOT col1 > - CAST( NULL AS SIGNED ) - + 68
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5519
SELECT + MAX( - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5519
SELECT + MAX ( - ( col1 ) ) AS col0 FROM tab1 AS cor0
----
-5

query II rowsort
SELECT DISTINCT col0, + col0 * - 91 FROM tab2 AS cor0
----
46
-4186
64
-5824
75
-6825

query I rowsort
SELECT DISTINCT + col2 AS col1 FROM tab1 WHERE col1 - - + ( + 12 ) IS NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5522
SELECT + col0 + col0 * - CAST ( - - col0 AS INTEGER ) col1, - 24 AS col2 FROM tab2 WHERE NOT - 15 IS NOT NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5524
SELECT ALL + COUNT( * ) AS col1 FROM tab0 WHERE - col1 + - - ( + 17 ) * - - 6 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-5524
SELECT ALL + COUNT ( * ) AS col1 FROM tab0 WHERE - col1 + - - ( + 17 ) * - - 6 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT - COUNT( * ) - - - 98 + - 93 FROM tab0 WHERE NOT - col1 * - col0 * ( + + 38 ) IS NULL
----
-194

skipif mysql # not compatible
query I rowsort label-5525
SELECT - COUNT ( * ) - - - 98 + - 93 FROM tab0 WHERE NOT - col1 * - col0 * ( + + 38 ) IS NULL
----
-194

onlyif mysql # aggregate syntax: 
query II rowsort label-5526
SELECT DISTINCT 2 * - COUNT( * ) AS col0, - COUNT( * ) + - + 48 + + - 95 FROM tab2
----
-6
-146

skipif mysql # not compatible
query II rowsort label-5526
SELECT DISTINCT 2 * - COUNT ( * ) AS col0, - COUNT ( * ) + - + 48 + + - 95 FROM tab2
----
-6
-146

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

skipif mysql # not compatible
query I rowsort label-5527
SELECT ALL - CAST ( - 20 AS INTEGER ) FROM tab0
----
20
20
20

query I rowsort
SELECT DISTINCT + 44 AS col0 FROM tab2 AS cor0 WHERE NOT - 48 = NULL
----

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

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

query I rowsort
SELECT + col2 * ( col0 ) * - - 82 FROM tab2 AS cor0
----
209920
356700
86756

query I rowsort
SELECT col1 AS col2 FROM tab0 AS cor0 WHERE NOT NULL < ( - col1 * - + col2 )
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5534
SELECT - - COUNT( * ) / MIN( + + CAST( NULL AS DECIMAL ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT - - COUNT ( * ) / MIN ( + + CAST ( NULL AS REAL ) ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5535
SELECT DISTINCT 69 * CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT 69 * CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
NULL

query I rowsort
SELECT + 38 AS col1 FROM tab2 cor0
----
38
38
38

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5538
SELECT ALL 84 * - SUM( DISTINCT + col1 ) * COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
-77868

skipif mysql # not compatible
query I rowsort label-5538
SELECT ALL 84 * - SUM ( DISTINCT + col1 ) * COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
-77868

onlyif mysql # aggregate syntax: 
query I rowsort label-5539
SELECT + SUM( ALL + 37 ) FROM tab0 cor0
----
111

skipif mysql # not compatible
query I rowsort label-5539
SELECT + SUM ( ALL + 37 ) FROM tab0 cor0
----
111

query I rowsort
SELECT - ( - 72 ) * 42 + - col0 AS col0 FROM tab1 AS cor0 WHERE - col1 * - col2 / - ( 75 ) BETWEEN col2 AND - col0
----

query I rowsort
SELECT - 80 - + + col1 FROM tab2 AS cor0
----
-131
-147
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5542
SELECT 67 + COUNT( DISTINCT - 90 ) DIV - COUNT( * ) + + 74 AS col0 FROM tab2
----
141

skipif mysql # not compatible
query I rowsort label-5542
SELECT 67 + COUNT ( DISTINCT - 90 ) / - COUNT ( * ) + + 74 AS col0 FROM tab2
----
141

query II rowsort
SELECT 75 + + 23 AS col2, col0 FROM tab0
----
98
15
98
87
98
97

onlyif mysql # DIV for integer division: 
query I rowsort label-5544
SELECT 15 + + - 31 DIV + - col1 col2 FROM tab0
----
15
16
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5544
SELECT 15 + + - 31 / + - col1 col2 FROM tab0
----
15
16
46

onlyif mysql # DIV for integer division: 
query I rowsort label-5545
SELECT col0 DIV col1 + + col2 AS col1 FROM tab2
----
23
40
59

skipif mysql # not compatible
query I rowsort label-5545
SELECT col0 / col1 + + col2 AS col1 FROM tab2
----
23
40
59

query I rowsort
SELECT ALL ( col2 ) - + 94 + col1 * + - col1 AS col1 FROM tab2
----
-2672
-4525
-5983

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + - col1 < NULL
----

query II rowsort
SELECT ALL - col2 AS col2, - 61 + + ( 63 ) AS col1 FROM tab2 AS cor0
----
-23
2
-40
2
-58
2

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

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

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

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5555
SELECT DISTINCT + COUNT( * ) * - 56 AS col2 FROM tab2
----
-168

skipif mysql # not compatible
query I rowsort label-5555
SELECT DISTINCT + COUNT ( * ) * - 56 AS col2 FROM tab2
----
-168

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * ( - ( + col2 ) ) + + - 66 col0 FROM tab2 AS cor0
----
-1239
-3146
-3952

onlyif mysql # DIV for integer division: 
query I rowsort label-5559
SELECT DISTINCT + col0 * + col1 DIV + col1 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5559
SELECT DISTINCT + col0 * + col1 / + col1 FROM tab1 cor0
----
51
85
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN + col1 + - 81 + 16 AND col0
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 * 8 + + + col1 col0 FROM tab0 AS cor0
----
-39
-675
-775

onlyif mysql # DIV for integer division: 
query II rowsort label-5563
SELECT + + 92 + + col2 AS col2, + col1 DIV + - col2 * col1 AS col1 FROM tab1 AS cor0
----
151
0
160
0
188
0

skipif mysql # not compatible
query II rowsort label-5563
SELECT + + 92 + + col2 AS col2, + col1 / + - col2 * col1 AS col1 FROM tab1 AS cor0
----
151
0
160
0
188
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5564
SELECT CAST( - - 96 AS SIGNED ) + + 87 + - + col2 - - col0 + + col1 + + 6 AS col2 FROM tab0 AS cor0
----
188
238
287

skipif mysql # not compatible
query I rowsort label-5564
SELECT CAST ( - - 96 AS INTEGER ) + + 87 + - + col2 - - col0 + + col1 + + 6 AS col2 FROM tab0 AS cor0
----
188
238
287

onlyif mysql # aggregate syntax: 
query I rowsort label-5565
SELECT SUM( ALL col2 ) * - COUNT( * ) * - - 75 FROM tab1 AS cor0
----
-50175

skipif mysql # not compatible
query I rowsort label-5565
SELECT SUM ( ALL col2 ) * - COUNT ( * ) * - - 75 FROM tab1 AS cor0
----
-50175

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

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

query I rowsort
SELECT ( col1 ) * 66 AS col1 FROM tab1
----
3102
330
924

onlyif mysql # DIV for integer division: 
query I rowsort label-5568
SELECT ALL - 87 + - col0 DIV - 63 + + + 99 FROM tab1 cor0
----
12
13
13

skipif mysql # not compatible
query I rowsort label-5568
SELECT ALL - 87 + - col0 / - 63 + + + 99 FROM tab1 cor0
----
12
13
13

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5569
SELECT * FROM tab2 AS cor0 WHERE + col0 * ( + col0 ) <= - CAST( NULL AS SIGNED ) + - col1
----

skipif mysql # not compatible
query III rowsort label-5569
SELECT * FROM tab2 AS cor0 WHERE + col0 * ( + col0 ) <= - CAST ( NULL AS INTEGER ) + - col1
----

query I rowsort
SELECT + col2 * - col1 - - + col2 FROM tab1 AS cor0
----
-1248
-236
-3128

onlyif mysql # DIV for integer division: 
query I rowsort label-5571
SELECT ALL - 18 DIV + - 94 AS col1 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5571
SELECT ALL - 18 / + - 94 AS col1 FROM tab1 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-5572
SELECT DISTINCT - + 0 DIV - ( + 28 ) AS col1, - col0 AS col0 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

skipif mysql # not compatible
query II rowsort label-5572
SELECT DISTINCT - + 0 / - ( + 28 ) AS col1, - col0 AS col0 FROM tab0 AS cor0
----
0
-15
0
-87
0
-97

query I rowsort
SELECT 96 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 22c5141a629f0ef396738ee2c8be6303

query I rowsort
SELECT DISTINCT ( + col0 ) * + - col2 FROM tab0
----
-705
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5575
SELECT - COUNT( * ) * - 89 AS col0 FROM tab1 cor0
----
267

skipif mysql # not compatible
query I rowsort label-5575
SELECT - COUNT ( * ) * - 89 AS col0 FROM tab1 cor0
----
267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col1 * + col0, - col1 col2 FROM tab0 AS cor0
----
-1215
-81
-1827
-21
-97
-1

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

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

query I rowsort
SELECT + - ( + ( col2 ) ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-5579
SELECT - SUM( DISTINCT - + 90 ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5579
SELECT - SUM ( DISTINCT - + 90 ) FROM tab0 cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - - col2 ) col1 FROM tab1
----
59
68
96

query I rowsort
SELECT ALL col2 FROM tab2 WHERE - - 34 * + ( 24 ) IS NULL
----

query I rowsort
SELECT ALL + ( + col0 ) * - col1 * col2 AS col2 FROM tab0
----
-18270
-57105
-9603

query I rowsort
SELECT + 61 * + 16 FROM tab1
----
976
976
976

query I rowsort
SELECT ALL + 81 + + 33 AS col1 FROM tab0
----
114
114
114

query II rowsort
SELECT ALL ( + col2 ) + 52, col0 FROM tab1 AS cor0
----
111
85
120
91
148
51

query II rowsort
SELECT ALL - col2, 72 FROM tab0 AS cor0 WHERE NOT col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col1 FROM tab0
----
78

query I rowsort
SELECT ( - - 6 ) FROM tab1
----
6
6
6

query I rowsort
SELECT - + col0 * + col2 - 70 FROM tab2 AS cor0
----
-1128
-2630
-4420

query I rowsort
SELECT DISTINCT ( - + 29 ) - - col1 * 51 AS col0 FROM tab1 AS cor0
----
226
2368
685

onlyif mysql # aggregate syntax: 
query I rowsort label-5591
SELECT MAX( 97 ) + - 32 AS col0 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-5591
SELECT MAX ( 97 ) + - 32 AS col0 FROM tab0
----
65

query I rowsort
SELECT ALL col1 * col0 * - 90 * col0 + - - col2 FROM tab2 WHERE ( NOT NULL BETWEEN - 39 AND NULL )
----

query II rowsort
SELECT - 0 * col1, + 49 + - col2 AS col1 FROM tab1
----
0
-10
0
-19
0
-47

query I rowsort
SELECT DISTINCT + 67 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
67

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-5595
SELECT ALL + SUM( DISTINCT + col2 ) AS col1, + 0 DIV + 77 AS col1 FROM tab1 cor0
----
223
0

skipif mysql # not compatible
query II rowsort label-5595
SELECT ALL + SUM ( DISTINCT + col2 ) AS col1, + 0 / + 77 AS col1 FROM tab1 cor0
----
223
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5596
SELECT ALL - MAX( - + 93 ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
102

skipif mysql # not compatible
query I rowsort label-5596
SELECT ALL - MAX ( - + 93 ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
102

query I rowsort
SELECT 51 * + col1 FROM tab0
----
1071
4131
51

onlyif mysql # DIV for integer division: 
query I rowsort label-5598
SELECT DISTINCT 6 DIV - col1 FROM tab0
----
-6
0

skipif mysql # not compatible
query I rowsort label-5598
SELECT DISTINCT 6 / - col1 FROM tab0
----
-6
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5599
SELECT DISTINCT SUM( DISTINCT 20 ) col0 FROM tab1 AS cor0
----
20

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

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

skipif mysql # not compatible
query II rowsort label-5600
SELECT DISTINCT - COUNT ( * ), + 40 AS col0 FROM tab0 AS cor0
----
-3
40

onlyif mysql # aggregate syntax: 
query II rowsort label-5601
SELECT - 4 + - 84 AS col0, SUM( + 15 ) AS col2 FROM tab0
----
-88
45

skipif mysql # not compatible
query II rowsort label-5601
SELECT - 4 + - 84 AS col0, SUM ( + 15 ) AS col2 FROM tab0
----
-88
45

query I rowsort
SELECT col2 FROM tab2 WHERE NULL = - col0
----

query I rowsort
SELECT DISTINCT + 21 + - 68 FROM tab2
----
-47

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5605
SELECT + - 61 AS col0, - COUNT( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-61
-9

skipif mysql # not compatible
query II rowsort label-5605
SELECT + - 61 AS col0, - COUNT ( * ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-61
-9

query III rowsort
SELECT * FROM tab2 WHERE - - 84 >= NULL
----

query IIIIII rowsort
SELECT * FROM tab2, tab1 cor0 WHERE NOT - 40 IS NOT NULL
----

query I rowsort
SELECT ALL + 37 - + - col2 AS col0 FROM tab1
----
105
133
96

query I rowsort
SELECT ALL + col0 * - 22 + + + col1 FROM tab1 cor0
----
-1108
-1865
-1955

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

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

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

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

query I rowsort
SELECT ALL - - ( - col0 ) + - col0 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT ALL + 29 + + - 84 FROM tab0 AS cor0 WHERE - 37 IS NOT NULL
----
-55
-55
-55

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

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

query I rowsort
SELECT - + col0 * col2 + + 90 FROM tab2 AS cor0 WHERE + 90 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5616
SELECT DISTINCT + CAST( NULL AS SIGNED ) - - 24 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5616
SELECT DISTINCT + CAST ( NULL AS INTEGER ) - - 24 AS col0 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-5617
SELECT - + 96 AS col1, - col0 DIV 80 AS col0 FROM tab0 AS cor0
----
-96
-1
-96
-1
-96
0

skipif mysql # not compatible
query II rowsort label-5617
SELECT - + 96 AS col1, - col0 / 80 AS col0 FROM tab0 AS cor0
----
-96
-1
-96
-1
-96
0

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5621
SELECT + 85 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) = - col0
----

skipif mysql # not compatible
query I rowsort label-5621
SELECT + 85 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) = - col0
----

query III rowsort
SELECT ALL * FROM tab1 WHERE 19 + + col0 NOT BETWEEN 44 AND + + 95 * + - ( + col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5623
SELECT ALL - 59 DIV - + COUNT( * ) FROM tab0
----
19

skipif mysql # not compatible
query I rowsort label-5623
SELECT ALL - 59 / - + COUNT ( * ) FROM tab0
----
19

query I rowsort
SELECT DISTINCT - + 75 AS col2 FROM tab0 WHERE NOT - 68 IS NOT NULL
----

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

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

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

skipif mysql # not compatible
query I rowsort label-5626
SELECT DISTINCT ( SUM ( - col0 ) ) FROM tab2
----
-185

onlyif mysql # aggregate syntax: 
query I rowsort label-5627
SELECT ALL + ( MIN( + ( col0 ) ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-5627
SELECT ALL + ( MIN ( + ( col0 ) ) ) FROM tab1
----
51

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

query II rowsort
SELECT ALL col0, 91 FROM tab1 AS cor0
----
51
91
85
91
91
91

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5633
SELECT DISTINCT - 60 * col0 + + + CAST( NULL AS SIGNED ) AS col0, 56 + col2 + col1 AS col1 FROM tab1 AS cor0
----
NULL
120
NULL
166
NULL
171

skipif mysql # not compatible
query II rowsort label-5633
SELECT DISTINCT - 60 * col0 + + + CAST ( NULL AS INTEGER ) AS col0, 56 + col2 + col1 AS col1 FROM tab1 AS cor0
----
NULL
120
NULL
166
NULL
171

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col2 BETWEEN - 21 AND - col0
----

query I rowsort
SELECT - col0 FROM tab2 AS cor0 WHERE 58 NOT BETWEEN + col1 * + + col0 AND - - col1
----
-46
-64
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5636
SELECT + 22 + - COUNT( * ) FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-5636
SELECT + 22 + - COUNT ( * ) FROM tab1
----
19

query I rowsort
SELECT DISTINCT 0 + 53 AS col1 FROM tab0
----
53

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

skipif mysql # not compatible
query I rowsort label-5638
SELECT ALL COUNT ( * ) + + 76 FROM tab2
----
79

onlyif mysql # aggregate syntax: 
query I rowsort label-5639
SELECT COUNT( * ) + + 28 * + + 12 + - 28 FROM tab2 AS cor0
----
311

skipif mysql # not compatible
query I rowsort label-5639
SELECT COUNT ( * ) + + 28 * + + 12 + - 28 FROM tab2 AS cor0
----
311

query I rowsort
SELECT ALL - - 21 * col1 AS col0 FROM tab2 AS cor0 WHERE NOT col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 + col2 <> - 11 + - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - + ( + col1 ) * col2 * - - col1 FROM tab2 AS cor0
----
-237160
-260362
-59823

onlyif mysql # aggregate syntax: 
query I rowsort label-5643
SELECT DISTINCT MIN( DISTINCT 49 ) * MAX( ALL - + ( + + col0 ) ) FROM tab1 AS cor0
----
-2499

skipif mysql # not compatible
query I rowsort label-5643
SELECT DISTINCT MIN ( DISTINCT 49 ) * MAX ( ALL - + ( + + col0 ) ) FROM tab1 AS cor0
----
-2499

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL > ( - 53 ) + - 15
----

query I rowsort
SELECT col0 * + 4 FROM tab2 WHERE NOT ( NULL ) < ( - 29 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 77 <= col1
----
87
21
10
97
1
99

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

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

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 WHERE NOT 28 * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5649
SELECT + 13 + + COUNT( DISTINCT - col1 ) col2 FROM tab0
----
16

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5649
SELECT + 13 + + COUNT ( DISTINCT - col1 ) col2 FROM tab0
----
16

query I rowsort
SELECT col1 + + col1 FROM tab2 WHERE NOT ( NULL ) >= ( - col1 + - 64 * - 71 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col0 AND NULL
----

query I rowsort
SELECT 83 + - 3 FROM tab2
----
80
80
80

onlyif mysql # aggregate syntax: 
query I rowsort label-5653
SELECT ALL COUNT( * ) - - COUNT( * ) FROM tab1
----
6

skipif mysql # not compatible
query I rowsort label-5653
SELECT ALL COUNT ( * ) - - COUNT ( * ) FROM tab1
----
6

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5655
SELECT + COUNT( * ) - + 96 * 50 AS col2 FROM tab2
----
-4797

skipif mysql # not compatible
query I rowsort label-5655
SELECT + COUNT ( * ) - + 96 * 50 AS col2 FROM tab2
----
-4797

onlyif mysql # aggregate syntax: 
query I rowsort label-5656
SELECT - COUNT( * ) - + 79 FROM tab1
----
-82

skipif mysql # not compatible
query I rowsort label-5656
SELECT - COUNT ( * ) - + 79 FROM tab1
----
-82

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5658
SELECT ALL * FROM tab1 WHERE ( + col1 ) < ( + col2 + CAST( 55 AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5658
SELECT ALL * FROM tab1 WHERE ( + col1 ) < ( + col2 + CAST ( 55 AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE col0 IS NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5663
SELECT DISTINCT MAX( ALL col1 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5663
SELECT DISTINCT MAX ( ALL col1 ) FROM tab1 WHERE NOT ( NULL ) IS NULL
----
NULL

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab0 WHERE NOT ( + col1 ) >= + col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5667
SELECT DISTINCT - COUNT( * ) * SUM( - 54 ) AS col1 FROM tab0 AS cor0
----
486

skipif mysql # not compatible
query I rowsort label-5667
SELECT DISTINCT - COUNT ( * ) * SUM ( - 54 ) AS col1 FROM tab0 AS cor0
----
486

query I rowsort
SELECT ALL ( - col2 ) * col0 + + col2 AS col2 FROM tab1 AS cor0 WHERE col0 >= - 19
----
-4800
-4956
-6120

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( - 86 * col0 ) <= - col2 * col2
----
15
81
47
97
1
99

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

query I rowsort
SELECT + col1 / col0 AS col1 FROM tab2 AS cor0 WHERE NOT NULL < NULL
----

query I rowsort
SELECT DISTINCT - col1 * - 55 + + col2 AS col0 FROM tab1 AS cor0
----
2653
334
866

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

query I rowsort
SELECT - 6 FROM tab2 AS cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT - 7 + col0 AS col1 FROM tab0 AS cor0 WHERE NOT ( + 84 * + ( + 33 ) ) >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 88 + col0 * col1 col1 FROM tab1 AS cor0
----
337
4189
626

query I rowsort
SELECT ALL col2 FROM tab2 AS cor0 WHERE NOT col0 NOT IN ( ( + col0 ) )
----
23
40
58

query I rowsort
SELECT ( - col0 ) + col2 FROM tab1 AS cor0 WHERE + col2 >= + col1
----
-23
-26
45

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

query I rowsort
SELECT + - col0 + 56 AS col1 FROM tab1 AS cor0
----
-29
-35
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5682
SELECT + col0 + - 69 DIV - col0 AS col2 FROM tab0 AS cor0
----
19
87
97

skipif mysql # not compatible
query I rowsort label-5682
SELECT + col0 + - 69 / - col0 AS col2 FROM tab0 AS cor0
----
19
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5683
SELECT 88 + COUNT( * ) FROM tab0
----
91

skipif mysql # not compatible
query I rowsort label-5683
SELECT 88 + COUNT ( * ) FROM tab0
----
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5684
SELECT 78 + 42 + - col2 DIV - col1 AS col0 FROM tab1
----
121
126
131

skipif mysql # not compatible
query I rowsort label-5684
SELECT 78 + 42 + - col2 / - col1 AS col0 FROM tab1
----
121
126
131

query I rowsort
SELECT ALL + 38 + + col2 - + col2 FROM tab2
----
38
38
38

query I rowsort
SELECT ALL - col1 - col0 FROM tab2 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 - col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + 5 col2 FROM tab2
----
115
200
290

onlyif mysql # aggregate syntax: 
query I rowsort label-5689
SELECT ALL COUNT( * ) + + + 23 AS col1 FROM tab1
----
26

skipif mysql # not compatible
query I rowsort label-5689
SELECT ALL COUNT ( * ) + + + 23 AS col1 FROM tab1
----
26

query I rowsort
SELECT col1 + col0 AS col2 FROM tab0 WHERE NULL > - ( - 36 ) * - col2
----

query I rowsort
SELECT ALL + 24 AS col2 FROM tab0 WHERE ( 42 ) IS NOT NULL
----
24
24
24

onlyif mysql # DIV for integer division: 
query I rowsort label-5692
SELECT DISTINCT col2 * 8 + col0 DIV col1 col1 FROM tab0
----
376
84
889

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5692
SELECT DISTINCT col2 * 8 + col0 / col1 col1 FROM tab0
----
376
84
889

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5694
SELECT + - SUM( ALL 79 ) FROM tab0 AS cor0
----
-237

skipif mysql # not compatible
query I rowsort label-5694
SELECT + - SUM ( ALL 79 ) FROM tab0 AS cor0
----
-237

query I rowsort
SELECT col1 - - + ( col1 ) AS col2 FROM tab0 AS cor0
----
162
2
42

onlyif mysql # aggregate syntax: 
query I rowsort label-5696
SELECT + AVG ( ALL 26 ) + COUNT( * ) * 75 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5696
SELECT + AVG ( ALL 26 ) + COUNT ( * ) * 75 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5697
SELECT - col2 DIV - 23 AS col2 FROM tab1 WHERE ( NOT - 22 + 64 * - col1 IS NULL )
----
2
2
4

skipif mysql # not compatible
query I rowsort label-5697
SELECT - col2 / - 23 AS col2 FROM tab1 WHERE ( NOT - 22 + 64 * - col1 IS NULL )
----
2
2
4

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5699
SELECT + - CAST( NULL AS SIGNED ) + + 78 * 75 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5699
SELECT + - CAST ( NULL AS INTEGER ) + + 78 * 75 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 82 < col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5703
SELECT DISTINCT - - ( - col0 ) * - ( - CAST( NULL AS SIGNED ) ) * - 76 AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5703
SELECT DISTINCT - - ( - col0 ) * - ( - CAST ( NULL AS INTEGER ) ) * - 76 AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + col1 * + ( + - col0 ) * 55 AS col2 FROM tab1 AS cor0
----
-23375
-235235
-39270

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE col2 >= NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5706
SELECT DISTINCT - MIN( DISTINCT 67 ) DIV + 57 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5706
SELECT DISTINCT - MIN ( DISTINCT 67 ) / + 57 FROM tab1 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query I rowsort label-5707
SELECT ALL 43 DIV - col2 FROM tab0 AS cor0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-5707
SELECT ALL 43 / - col2 FROM tab0 AS cor0
----
-4
0
0

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( + - col2 * + col0 + col2 ) IS NULL
----

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

query I rowsort
SELECT ALL col2 + - 26 AS col1 FROM tab2 WHERE NOT ( + col1 ) NOT BETWEEN 46 + - 27 AND NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5714
SELECT + col2 DIV - col0 + - + col0 FROM tab0 cor0
----
-18
-87
-98

skipif mysql # not compatible
query I rowsort label-5714
SELECT + col2 / - col0 + - + col0 FROM tab0 cor0
----
-18
-87
-98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5715
SELECT col1 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * - 77 >= + - 54 / 70
----

skipif mysql # not compatible
query I rowsort label-5715
SELECT col1 * col0 AS col1 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * - 77 >= + - 54 / 70
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col2 * + col1 + 42 IN ( col2 )
----

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5719
SELECT DISTINCT + 74 * + 56 * + CAST( NULL AS SIGNED ) - COUNT( * ) - ( - 46 ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5719
SELECT DISTINCT + 74 * + 56 * + CAST ( NULL AS INTEGER ) - COUNT ( * ) - ( - 46 ) AS col2 FROM tab2 AS cor0
----
NULL

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

skipif mysql # not compatible
query II rowsort label-5720
SELECT DISTINCT + + COUNT ( * ) AS col1, 70 FROM tab1 AS cor0
----
3
70

query I rowsort
SELECT ALL col2 + + + 8 + - 59 FROM tab2 AS cor0
----
-11
-28
7

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 IN ( - 98 + + col0 + - + col2 * col2 / 63 )
----

query I rowsort
SELECT DISTINCT 63 / 48 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + 38 / col1 + - col2 ) AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 6 * + ( - - col0 ) col2 FROM tab0 AS cor0
----
522
582
90

query I rowsort
SELECT - ( + - col0 ) AS col1 FROM tab0 AS cor0
----
15
87
97

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL NOT IN ( - ( - col2 ) * 6 )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5728
SELECT CAST( + ( + 32 ) AS SIGNED ) * COUNT( * ) + - + 89 + 2 FROM tab2, tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-5728
SELECT CAST ( + ( + 32 ) AS INTEGER ) * COUNT ( * ) + - + 89 + 2 FROM tab2, tab2 AS cor0
----
201

query I rowsort
SELECT + 48 * 96 + - col1 AS col2 FROM tab2
----
4531
4541
4557

query I rowsort
SELECT DISTINCT - col1 * + 31 + col0 + col1 * - 61 FROM tab2 WHERE - col1 * col0 IS NULL
----

query II rowsort
SELECT ALL col1 AS col1, + ( col2 ) + - col1 AS col2 FROM tab0
----
1
98
21
-11
81
-34

query I rowsort
SELECT col2 + - 11 * + col2 FROM tab1
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-5733
SELECT - MIN( DISTINCT + col1 ) + - 57 FROM tab0
----
-58

skipif mysql # not compatible
query I rowsort label-5733
SELECT - MIN ( DISTINCT + col1 ) + - 57 FROM tab0
----
-58

query I rowsort
SELECT + 89 + col0 FROM tab2
----
135
153
164

query I rowsort
SELECT DISTINCT - ( col0 ) + - - 89 AS col0 FROM tab0 cor0
----
-8
2
74

onlyif mysql # aggregate syntax: 
query I rowsort label-5736
SELECT DISTINCT - - COUNT( * ) - - ( 55 ) AS col0 FROM tab1 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-5736
SELECT DISTINCT - - COUNT ( * ) - - ( 55 ) AS col0 FROM tab1 AS cor0
----
58

query I rowsort
SELECT ALL + 39 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) < + col2
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5739
SELECT + 48 * - SUM( + + col2 ) * + MAX( DISTINCT + col2 ) FROM tab2
----
-336864

skipif mysql # not compatible
query I rowsort label-5739
SELECT + 48 * - SUM ( + + col2 ) * + MAX ( DISTINCT + col2 ) FROM tab2
----
-336864

query I rowsort
SELECT ALL col2 FROM tab2 WHERE NOT NULL >= col1
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5742
SELECT ALL - 47 * - COUNT( * ) - - COUNT( * ) AS col0 FROM tab0 cor0
----
144

skipif mysql # not compatible
query I rowsort label-5742
SELECT ALL - 47 * - COUNT ( * ) - - COUNT ( * ) AS col0 FROM tab0 cor0
----
144

query I rowsort
SELECT + + col2 AS col1 FROM tab0 WHERE NOT + - col0 < col2 - + 91
----
47

query II rowsort
SELECT - 64 AS col2, - col0 FROM tab0
----
-64
-15
-64
-87
-64
-97

query II rowsort
SELECT + 64 AS col0, - col1 AS col1 FROM tab0
----
64
-1
64
-21
64
-81

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

skipif mysql # not compatible
query I rowsort label-5746
SELECT ALL + 70 * COUNT ( * ) FROM tab1
----
210

query III rowsort
SELECT ALL * FROM tab2 WHERE 12 + - 73 >= ( + 60 )
----

query I rowsort
SELECT col0 * 91 AS col0 FROM tab0
----
1365
7917
8827

query II rowsort
SELECT DISTINCT col1 AS col1, - 88 FROM tab2
----
51
-88
67
-88
77
-88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5750
SELECT DISTINCT + CAST( + 56 AS SIGNED ) FROM tab2 WHERE NOT - - col2 IS NULL
----
56

skipif mysql # not compatible
query I rowsort label-5750
SELECT DISTINCT + CAST ( + 56 AS INTEGER ) FROM tab2 WHERE NOT - - col2 IS NULL
----
56

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

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

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

query I rowsort
SELECT - ( 63 ) AS col0 FROM tab1
----
-63
-63
-63

query I rowsort
SELECT DISTINCT - col0 * - + 27 / col1 - - 58 * - 15 + ( + 82 ) AS col0 FROM tab0 WHERE - col2 * - 14 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5755
SELECT DISTINCT + 69 * - COUNT( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-621

skipif mysql # not compatible
query I rowsort label-5755
SELECT DISTINCT + 69 * - COUNT ( * ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-621

onlyif mysql # DIV for integer division: 
query I rowsort label-5756
SELECT + 99 + - col0 DIV - - col1 AS col0 FROM tab2
----
98
99
99

skipif mysql # not compatible
query I rowsort label-5756
SELECT + 99 + - col0 / - - col1 AS col0 FROM tab2
----
98
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5757
SELECT ALL + SUM( + - col1 ) + 74 AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5757
SELECT ALL + SUM ( + - col1 ) + 74 AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5758
SELECT DISTINCT 86 + + CAST( + ( - 13 ) AS SIGNED ) - - + 67 * - CAST( NULL AS SIGNED ) / - col2 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5758
SELECT DISTINCT 86 + + CAST ( + ( - 13 ) AS INTEGER ) - - + 67 * - CAST ( NULL AS INTEGER ) / - col2 AS col2 FROM tab2
----
NULL

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 + col1 IS NULL
----

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

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-5764
SELECT + 67 DIV + ( + + col1 ) col1, 84 * + col1 AS col1 FROM tab0
----
0
6804
3
1764
67
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5764
SELECT + 67 / + ( + + col1 ) col1, 84 * + col1 AS col1 FROM tab0
----
0
6804
3
1764
67
84

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5766
SELECT DISTINCT - SUM( ALL + col2 ) * - + SUM( col0 ) FROM tab2
----
22385

skipif mysql # not compatible
query I rowsort label-5766
SELECT DISTINCT - SUM ( ALL + col2 ) * - + SUM ( col0 ) FROM tab2
----
22385

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col1 ) * - - 23 * - ( col2 ) col1 FROM tab1
----
-30912
-6785
-73508

query I rowsort
SELECT DISTINCT 92 + - - col2 FROM tab1 AS cor0
----
151
160
188

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5769
SELECT - MAX( + col2 ) - - COUNT( DISTINCT + 7 ) DIV - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-5769
SELECT - MAX ( + col2 ) - - COUNT ( DISTINCT + 7 ) / - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 65 IS NULL
----

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

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 69 IS NULL
----

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

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

query II rowsort
SELECT DISTINCT + - 24 AS col1, col0 * + 35 * + col2 + + col1 FROM tab1 AS cor0
----
-24
171374
-24
175530
-24
216627

onlyif mysql # aggregate syntax: 
query II rowsort label-5776
SELECT - + COUNT( * ) AS col1, 13 col1 FROM tab0 AS cor0
----
-3
13

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col0 AS col1, - ( ( - - 36 ) ) col0, + + 80 AS col0 FROM tab0 AS cor0
----
9 values hashing to 12476e7262c9990f7f8d98eff9d260a9

onlyif mysql # aggregate syntax: 
query I rowsort label-5778
SELECT ALL + COUNT( * ) * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5778
SELECT ALL + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + ( - 79 ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5780
SELECT ALL + col2 + col1 + - col2 * - + col0 * + col2 * CAST( NULL AS SIGNED ) * 30 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5780
SELECT ALL + col2 + col1 + - col2 * - + col0 * + col2 * CAST ( NULL AS INTEGER ) * 30 AS col2 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5781
SELECT + 63 * MAX( - col2 ) AS col0 FROM tab1
----
-3717

skipif mysql # not compatible
query I rowsort label-5781
SELECT + 63 * MAX ( - col2 ) AS col0 FROM tab1
----
-3717

query I rowsort
SELECT DISTINCT - - 78 + col0 FROM tab1 AS cor0
----
129
163
169

onlyif mysql # aggregate syntax: 
query I rowsort label-5783
SELECT ALL - - 82 * COUNT( * ) col2 FROM tab2 AS cor0
----
246

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

query I rowsort
SELECT - 35 * - col1 + + - col2 AS col2 FROM tab1 AS cor0
----
116
1577
394

onlyif mysql # aggregate syntax: 
query I rowsort label-5785
SELECT 13 * + COUNT( * ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-5785
SELECT 13 * + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
39

query I rowsort
SELECT + 15 * 73 FROM tab0 AS cor0
----
1095
1095
1095

query I rowsort
SELECT 28 AS col2 FROM tab0 AS cor0 WHERE - 1 + col1 IS NULL
----

query I rowsort
SELECT ALL + - 45 + + col2 FROM tab1 AS cor0
----
14
23
51

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5791
SELECT DISTINCT - col0 * col0 DIV - col0 AS col0 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5791
SELECT DISTINCT - col0 * col0 / - col0 AS col0 FROM tab1 AS cor0
----
51
85
91

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

query I rowsort
SELECT DISTINCT col2 * - + col2 * + 57 AS col1 FROM tab1
----
-198417
-263568
-525312

query I rowsort
SELECT ALL col0 * col2 * 18 AS col2 FROM tab0
----
12690
15660
172854

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5795
SELECT 47 + - CAST( NULL AS SIGNED ) * + - 6 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5795
SELECT 47 + - CAST ( NULL AS INTEGER ) * + - 6 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5796
SELECT ALL - 24 * + - 9 + - ( + MIN( - col0 ) ) FROM tab1
----
307

skipif mysql # not compatible
query I rowsort label-5796
SELECT ALL - 24 * + - 9 + - ( + MIN ( - col0 ) ) FROM tab1
----
307

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * + col1 - - + 94 col2 FROM tab0
----
1309
191
1921

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - col1 <= + 8
----

query I rowsort
SELECT - ( 50 ) AS col0 FROM tab0
----
-50
-50
-50

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

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

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

query I rowsort
SELECT ALL 56 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL IS NOT NULL
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query I rowsort
SELECT - col2 * - 0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col1 + col2 col2, + col0 FROM tab0 cor0 WHERE NOT 51 NOT IN ( - col0, 26 * - col1 / - col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5805
SELECT - col0 DIV 17 FROM tab2 AS cor0
----
-2
-3
-4

skipif mysql # not compatible
query I rowsort label-5805
SELECT - col0 / 17 FROM tab2 AS cor0
----
-2
-3
-4

query II rowsort
SELECT DISTINCT - col0 * - col1 * + 34, 64 AS col0 FROM tab1 cor0
----
14450
64
145418
64
24276
64

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

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

query I rowsort
SELECT DISTINCT col0 * + col0 * col2 FROM tab2
----
163840
326250
48668

query I rowsort
SELECT col0 + + + col2 * + 2 FROM tab0
----
107
109
295

query I rowsort
SELECT DISTINCT + ( 26 ) * - col2 FROM tab2
----
-1040
-1508
-598

query I rowsort
SELECT DISTINCT col0 + - col0 + - col2 + + 17 * - 34 AS col1 FROM tab1
----
-637
-646
-674

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5814
SELECT DISTINCT COUNT( * ) + + COUNT( DISTINCT + + col2 ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-5814
SELECT DISTINCT COUNT ( * ) + + COUNT ( DISTINCT + + col2 ) FROM tab0
----
6

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * - col0 BETWEEN - col0 * col2 * - col0 AND NULL
----

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

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

query I rowsort
SELECT - 31 * - col2 + 2 * + - col0 FROM tab0
----
136
1427
2875

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5819
SELECT - CAST( 85 AS SIGNED ) * - col0 + col1 FROM tab2 AS cor0
----
3961
5517
6442

skipif mysql # not compatible
query I rowsort label-5819
SELECT - CAST ( 85 AS INTEGER ) * - col0 + col1 FROM tab2 AS cor0
----
3961
5517
6442

query I rowsort
SELECT + 87 + + col1 FROM tab0 AS cor0
----
108
168
88

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

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

query I rowsort
SELECT ALL - 26 FROM tab0 AS cor0 WHERE NOT ( + col1 ) <> - col1
----

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

query I rowsort
SELECT ALL - col0 - + 12 FROM tab1 AS cor0
----
-103
-63
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col2, col1 col1 FROM tab0 cor0 WHERE NULL < NULL
----

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * - 54 <= - 34 * - col1 + - col2 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5828
SELECT MAX( DISTINCT + - 92 ) AS col0 FROM tab2
----
-92

skipif mysql # not compatible
query I rowsort label-5828
SELECT MAX ( DISTINCT + - 92 ) AS col0 FROM tab2
----
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col0 * col0 + - col2 + + - col1 col1 FROM tab2 WHERE NOT - 14 IS NULL
----
-2190
-4213
-5750

onlyif mysql # aggregate syntax: 
query I rowsort label-5830
SELECT ALL + COUNT( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-5830
SELECT ALL + COUNT ( * ) AS col0 FROM tab0, tab1 AS cor0
----
9

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

skipif mysql # not compatible
query I rowsort label-5831
SELECT + COUNT ( * ) / + 3 AS col2 FROM tab2
----
1

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5832
SELECT DISTINCT COUNT( * ), - CAST( 23 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
3
-23

skipif mysql # not compatible
query II rowsort label-5832
SELECT DISTINCT COUNT ( * ), - CAST ( 23 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
3
-23

query I rowsort
SELECT ALL + 29 * + 61 + + + col2 - 84 * + + 30 AS col2 FROM tab1 cor0 WHERE col0 * + + ( - col0 ) IS NULL
----

query I rowsort
SELECT - col0 * - col1 * + + 31 AS col1 FROM tab0 cor0
----
3007
37665
56637

onlyif mysql # DIV for integer division: 
query I rowsort label-5835
SELECT - col1 DIV + - 24 col2 FROM tab0 AS cor0
----
0
0
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5835
SELECT - col1 / + - 24 col2 FROM tab0 AS cor0
----
0
0
3

onlyif mysql # DIV for integer division: 
query I rowsort label-5836
SELECT + + 40 DIV - + col1 FROM tab2 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5836
SELECT + + 40 / - + col1 FROM tab2 cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-5837
SELECT - col2 DIV + 65 col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5837
SELECT - col2 / + 65 col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5838
SELECT + col2 * - CAST( 68 AS SIGNED ) FROM tab1 AS cor0
----
-4012
-4624
-6528

skipif mysql # not compatible
query I rowsort label-5838
SELECT + col2 * - CAST ( 68 AS INTEGER ) FROM tab1 AS cor0
----
-4012
-4624
-6528

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col1 + + 56 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT + - col1 AS col0 FROM tab0 WHERE NULL >= col2
----

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-5844
SELECT * FROM tab0 WHERE NOT CAST( + CAST( NULL AS SIGNED ) AS DECIMAL ) + + - 70 IS NULL
----

skipif mysql # not compatible
query III rowsort label-5844
SELECT * FROM tab0 WHERE NOT CAST ( + CAST ( NULL AS INTEGER ) AS REAL ) + + - 70 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5845
SELECT DISTINCT - MAX( DISTINCT - - col2 ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-5845
SELECT DISTINCT - MAX ( DISTINCT - - col2 ) FROM tab2
----
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col1 FROM tab1 WHERE - + 42 <> + ( col1 )
----
-59
-68
-96

query I rowsort
SELECT ALL + ( - - 39 ) FROM tab0
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-5848
SELECT + COUNT( * ) FROM tab1 WHERE NULL <> + col2
----
0

skipif mysql # not compatible
query I rowsort label-5848
SELECT + COUNT ( * ) FROM tab1 WHERE NULL <> + col2
----
0

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5850
SELECT ALL - - MAX( DISTINCT - col1 ) + - MIN( DISTINCT 4 ) FROM tab0 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-5850
SELECT ALL - - MAX ( DISTINCT - col1 ) + - MIN ( DISTINCT 4 ) FROM tab0 AS cor0
----
-5

query I rowsort
SELECT DISTINCT - 71 + + col2 FROM tab2 AS cor0
----
-13
-31
-48

query I rowsort
SELECT DISTINCT ( + col0 ) * + 10 FROM tab1 AS cor0
----
510
850
910

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

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

query I rowsort
SELECT ALL + col0 FROM tab1 WHERE NOT - col0 + - 61 / - col1 * + 17 * + col1 + col0 >= NULL
----

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

query I rowsort
SELECT DISTINCT + ( + col0 ) + - 19 FROM tab2
----
27
45
56

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

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

query I rowsort
SELECT + col1 FROM tab0 WHERE NULL NOT BETWEEN col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5859
SELECT + + COUNT( col0 ) - + COUNT( * ) AS col1 FROM tab2 cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5860
SELECT - CAST( - col0 AS SIGNED ) FROM tab0 AS cor0 WHERE 3 + + 28 * col1 >= ( + 70 + - 18 + + col0 * - col2 / col2 * + col2 )
----
15
87
97

skipif mysql # not compatible
query I rowsort label-5860
SELECT - CAST ( - col0 AS INTEGER ) FROM tab0 AS cor0 WHERE 3 + + 28 * col1 >= ( + 70 + - 18 + + col0 * - col2 / col2 * + col2 )
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5861
SELECT - 50 - SUM( DISTINCT + 86 ) FROM tab1 AS cor0
----
-136

skipif mysql # not compatible
query I rowsort label-5861
SELECT - 50 - SUM ( DISTINCT + 86 ) FROM tab1 AS cor0
----
-136

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5863
SELECT ALL + - SUM( ALL - 98 ) - - COUNT( * ) + + 2 * + + 41 FROM tab2 AS cor0
----
379

skipif mysql # not compatible
query I rowsort label-5863
SELECT ALL + - SUM ( ALL - 98 ) - - COUNT ( * ) + + 2 * + + 41 FROM tab2 AS cor0
----
379

onlyif mysql # aggregate syntax: 
query II rowsort label-5864
SELECT ALL + 38 - - 86, COUNT( * ) AS col0 FROM tab1 AS cor0
----
124
3

skipif mysql # not compatible
query II rowsort label-5864
SELECT ALL + 38 - - 86, COUNT ( * ) AS col0 FROM tab1 AS cor0
----
124
3

query I rowsort
SELECT DISTINCT ( - 62 ) - + - col0 FROM tab1 AS cor0
----
-11
23
29

onlyif mysql # aggregate syntax: 
query II rowsort label-5866
SELECT + MIN( ALL - col2 ) AS col2, - COUNT( + + 14 ) AS col0 FROM tab2
----
-58
-3

skipif mysql # not compatible
query II rowsort label-5866
SELECT + MIN ( ALL - col2 ) AS col2, - COUNT ( + + 14 ) AS col0 FROM tab2
----
-58
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5867
SELECT - SUM( ALL + ( - 32 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
96

skipif mysql # not compatible
query I rowsort label-5867
SELECT - SUM ( ALL + ( - 32 ) ) FROM tab1 WHERE NOT NULL IS NOT NULL
----
96

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT BETWEEN + col2 * col1 AND + 5
----

query I rowsort
SELECT ( + col0 ) * + 74 * - - col2 AS col2 FROM tab2
----
189440
321900
78292

onlyif mysql # aggregate syntax: 
query I rowsort label-5870
SELECT COUNT( * ) * - 59 FROM tab2
----
-177

skipif mysql # not compatible
query I rowsort label-5870
SELECT COUNT ( * ) * - 59 FROM tab2
----
-177

onlyif mysql # aggregate syntax: 
query II rowsort label-5871
SELECT DISTINCT + MIN( 42 ), 40 * 73 AS col2 FROM tab0
----
42
2920

skipif mysql # not compatible
query II rowsort label-5871
SELECT DISTINCT + MIN ( 42 ), 40 * 73 AS col2 FROM tab0
----
42
2920

query II rowsort
SELECT ALL 77 * 30 AS col1, 11 FROM tab0
----
2310
11
2310
11
2310
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 6 * + col0 col1 FROM tab2 AS cor0
----
-276
-384
-450

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

skipif mysql # not compatible
query I rowsort label-5874
SELECT DISTINCT - - col1 / + + col1 FROM tab1 AS cor0
----
1

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5877
SELECT ( SUM( ALL 97 ) ) FROM tab1
----
291

skipif mysql # not compatible
query I rowsort label-5877
SELECT ( SUM ( ALL 97 ) ) FROM tab1
----
291

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

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

query I rowsort
SELECT + + 13 + - 46 + - - col1 * 21 FROM tab1 AS cor0
----
261
72
954

query I rowsort
SELECT 61 + col0 AS col2 FROM tab1
----
112
146
152

onlyif mysql # aggregate syntax: 
query I rowsort label-5882
SELECT DISTINCT + 57 + + MIN( + - col0 ) col2 FROM tab0
----
-40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5882
SELECT DISTINCT + 57 + + MIN ( + - col0 ) col2 FROM tab0
----
-40

query I rowsort
SELECT col0 * - 69 * col2 FROM tab1
----
-337824
-346035
-426972

query I rowsort
SELECT ALL + col1 + col0 * + col2 AS col2 FROM tab0
----
786
891
9604

onlyif mysql # aggregate syntax: 
query I rowsort label-5885
SELECT DISTINCT + COUNT( * ) + 22 FROM tab1 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-5885
SELECT DISTINCT + COUNT ( * ) + 22 FROM tab1 AS cor0
----
25

query I rowsort
SELECT ALL col0 + - + 84 FROM tab0 cor0
----
-69
13
3

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

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

query I rowsort
SELECT DISTINCT 17 FROM tab2 AS cor0 WHERE NOT 74 IS NULL
----
17

query I rowsort
SELECT 53 - + + col2 FROM tab1 AS cor0
----
-15
-43
-6

onlyif mysql # aggregate syntax: 
query I rowsort label-5890
SELECT DISTINCT 45 + - COUNT( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
36

skipif mysql # not compatible
query I rowsort label-5890
SELECT DISTINCT 45 + - COUNT ( * ) AS col0 FROM tab1 cor0 CROSS JOIN tab2 AS cor1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-5891
SELECT ALL - 29 + + ( + + 50 ) + + COUNT( * ) FROM tab2 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-5891
SELECT ALL - 29 + + ( + + 50 ) + + COUNT ( * ) FROM tab2 AS cor0
----
24

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5894
SELECT - MAX( DISTINCT + ( + col1 ) ) * 5 col2 FROM tab0 AS cor0
----
-405

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5894
SELECT - MAX ( DISTINCT + ( + col1 ) ) * 5 col2 FROM tab0 AS cor0
----
-405

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

query II rowsort
SELECT + 99, col0 FROM tab2
----
99
46
99
64
99
75

query I rowsort
SELECT DISTINCT 32 * + col1 * - col2 FROM tab2
----
-124352
-37536
-98560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5898
SELECT 8 DIV + MIN( DISTINCT + col2 ) col1 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5898
SELECT 8 / + MIN ( DISTINCT + col2 ) col1 FROM tab2
----
0

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

query I rowsort
SELECT ALL - - col1 * 57 FROM tab1 AS cor0
----
2679
285
798

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5901
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 7 * + CAST( - 56 AS SIGNED ) AND - col0
----

skipif mysql # not compatible
query III rowsort label-5901
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN + 7 * + CAST ( - 56 AS INTEGER ) AND - col0
----

query I rowsort
SELECT ALL + ( - 36 ) AS col1 FROM tab2 AS cor0
----
-36
-36
-36

onlyif mysql # DIV for integer division: 
query I rowsort label-5903
SELECT + col2 DIV + + col1 * - 5 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5903
SELECT + col2 / + + col1 * - 5 FROM tab2 AS cor0
----
0
0
0

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5907
SELECT + COUNT( - col2 ) DIV - MIN( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5907
SELECT + COUNT ( - col2 ) / - MIN ( ALL + - col1 ) AS col1 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5908
SELECT 37 * - SUM( + + col2 ) AS col1 FROM tab2 AS cor0
----
-4477

skipif mysql # not compatible
query I rowsort label-5908
SELECT 37 * - SUM ( + + col2 ) AS col1 FROM tab2 AS cor0
----
-4477

onlyif mysql # aggregate syntax: 
query I rowsort label-5909
SELECT - + COUNT( * ) FROM tab1 WHERE 30 > + 62
----
0

skipif mysql # not compatible
query I rowsort label-5909
SELECT - + COUNT ( * ) FROM tab1 WHERE 30 > + 62
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-5910
SELECT DISTINCT 78 + - - ( + 85 ) AS col0, - COUNT( * ) FROM tab0
----
163
-3

skipif mysql # not compatible
query II rowsort label-5910
SELECT DISTINCT 78 + - - ( + 85 ) AS col0, - COUNT ( * ) FROM tab0
----
163
-3

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

query I rowsort
SELECT DISTINCT + col2 * 34 AS col0 FROM tab2
----
1360
1972
782

query I rowsort
SELECT DISTINCT col0 + 52 + - 53 AS col2 FROM tab0
----
14
86
96

query I rowsort
SELECT col2 + - col0 * + col1 + + col1 FROM tab0
----
-1087
-1796
3

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

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

query I rowsort
SELECT DISTINCT - 95 - + 36 FROM tab2
----
-131

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col0 - + ( + 12 ) col2, col0 FROM tab1 AS cor0
----
39
51
73
85
79
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5918
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL >= - - CAST( - 28 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5918
SELECT ALL * FROM tab1 AS cor0 WHERE ( NOT NULL >= - - CAST ( - 28 AS INTEGER ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5920
SELECT + 30 - + COUNT( * ) AS col1 FROM tab1
----
27

skipif mysql # not compatible
query I rowsort label-5920
SELECT + 30 - + COUNT ( * ) AS col1 FROM tab1
----
27

query I rowsort
SELECT + ( + col2 ) * + + col0 FROM tab2
----
1058
2560
4350

onlyif mysql # aggregate syntax: 
query I rowsort label-5922
SELECT DISTINCT SUM( DISTINCT - - 21 ) AS col0 FROM tab0 AS cor0 WHERE + 73 IS NOT NULL
----
21

skipif mysql # not compatible
query I rowsort label-5922
SELECT DISTINCT SUM ( DISTINCT - - 21 ) AS col0 FROM tab0 AS cor0 WHERE + 73 IS NOT NULL
----
21

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5924
SELECT DISTINCT - 89 FROM tab2 WHERE NOT ( col0 NOT IN ( - CAST( - + col1 AS SIGNED ), + 28, - + ( 10 ) ) )
----

skipif mysql # not compatible
query I rowsort label-5924
SELECT DISTINCT - 89 FROM tab2 WHERE NOT ( col0 NOT IN ( - CAST ( - + col1 AS INTEGER ), + 28, - + ( 10 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5925
SELECT MIN( DISTINCT 87 ) AS col0 FROM tab2
----
87

skipif mysql # not compatible
query I rowsort label-5925
SELECT MIN ( DISTINCT 87 ) AS col0 FROM tab2
----
87

query I rowsort
SELECT + col2 * - 97 AS col2 FROM tab1
----
-5723
-6596
-9312

query I rowsort
SELECT DISTINCT + 95 * + 90 FROM tab1
----
8550

query I rowsort
SELECT - col0 * - - 48 AS col1 FROM tab1
----
-2448
-4080
-4368

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5929
SELECT ALL - CAST( - - 45 AS SIGNED ) * col2 DIV col2 AS col1 FROM tab0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-5929
SELECT ALL - CAST ( - - 45 AS INTEGER ) * col2 / col2 AS col1 FROM tab0
----
-45
-45
-45

onlyif mysql # DIV for integer division: 
query II rowsort label-5930
SELECT ALL - col0, 17 + + 56 + - 12 DIV + 50 col1 FROM tab2
----
-46
73
-64
73
-75
73

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5930
SELECT ALL - col0, 17 + + 56 + - 12 / + 50 col1 FROM tab2
----
-46
73
-64
73
-75
73

query I rowsort
SELECT DISTINCT - 68 * - + col1 FROM tab2
----
3468
4556
5236

onlyif mysql # aggregate syntax: 
query I rowsort label-5932
SELECT - - 99 * + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-5932
SELECT - - 99 * + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-297

onlyif mysql # aggregate syntax: 
query I rowsort label-5933
SELECT ALL - - 59 * + - MAX( ALL - + ( - - col0 ) ) FROM tab1 AS cor0
----
3009

skipif mysql # not compatible
query I rowsort label-5933
SELECT ALL - - 59 * + - MAX ( ALL - + ( - - col0 ) ) FROM tab1 AS cor0
----
3009

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

query I rowsort
SELECT - col0 FROM tab2 WHERE - + col0 NOT BETWEEN + 67 AND NULL
----
-46
-64
-75

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - 58 * + + 49 > NULL
----

query I rowsort
SELECT ALL - col1 * 40 AS col2 FROM tab1 AS cor0
----
-1880
-200
-560

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - ( col2 ), + 56 col0 FROM tab0 AS cor0
----
-10
56
-47
56
-99
56

query I rowsort
SELECT ALL 79 * - + col2 + - - col1 + + 51 AS col0 FROM tab2 AS cor0
----
-1715
-3032
-4464

onlyif mysql # aggregate syntax: 
query I rowsort label-5940
SELECT ALL + - COUNT( * ) * - - 70 AS col0 FROM tab2 cor0
----
-210

skipif mysql # not compatible
query I rowsort label-5940
SELECT ALL + - COUNT ( * ) * - - 70 AS col0 FROM tab2 cor0
----
-210

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5941
SELECT + CAST( - + 52 AS SIGNED ) * col0 FROM tab0
----
-4524
-5044
-780

skipif mysql # not compatible
query I rowsort label-5941
SELECT + CAST ( - + 52 AS INTEGER ) * col0 FROM tab0
----
-4524
-5044
-780

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

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

query I rowsort
SELECT DISTINCT col0 * ( col0 ) * + - 43 FROM tab1
----
-111843
-310675
-356083

query II rowsort
SELECT 61 * - - col2, col0 * + 51 AS col0 FROM tab0
----
2867
765
6039
4947
610
4437

onlyif mysql # aggregate syntax: 
query I rowsort label-5945
SELECT COUNT( + 30 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5945
SELECT COUNT ( + 30 ) FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5946
SELECT col0 DIV - 54, 52 AS col0 FROM tab2
----
-1
52
-1
52
0
52

skipif mysql # not compatible
query II rowsort label-5946
SELECT col0 / - 54, 52 AS col0 FROM tab2
----
-1
52
-1
52
0
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5947
SELECT ALL col0 * - 74 AS col0 FROM tab0 WHERE NOT CAST( - col0 AS SIGNED ) IS NULL
----
-1110
-6438
-7178

skipif mysql # not compatible
query I rowsort label-5947
SELECT ALL col0 * - 74 AS col0 FROM tab0 WHERE NOT CAST ( - col0 AS INTEGER ) IS NULL
----
-1110
-6438
-7178

onlyif mysql # aggregate syntax: 
query I rowsort label-5948
SELECT ALL 20 + MIN( ALL + 82 ) FROM tab2
----
102

skipif mysql # not compatible
query I rowsort label-5948
SELECT ALL 20 + MIN ( ALL + 82 ) FROM tab2
----
102

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5950
SELECT - + 64 - COUNT( * ) FROM tab1 AS cor0
----
-67

skipif mysql # not compatible
query I rowsort label-5950
SELECT - + 64 - COUNT ( * ) FROM tab1 AS cor0
----
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-5951
SELECT ALL + + COUNT( * ) - + 30 AS col1, 97 * + ( + 72 ) * - - COUNT( * ) + 92 + SUM( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-27
21243

skipif mysql # not compatible
query II rowsort label-5951
SELECT ALL + + COUNT ( * ) - + 30 AS col1, 97 * + ( + 72 ) * - - COUNT ( * ) + 92 + SUM ( DISTINCT col0 ) AS col0 FROM tab0 AS cor0
----
-27
21243

onlyif mysql # aggregate syntax: 
query I rowsort label-5952
SELECT + - 71 + - 46 * 18 * - SUM( DISTINCT - 24 ) AS col2 FROM tab0 cor0
----
-19943

skipif mysql # not compatible
query I rowsort label-5952
SELECT + - 71 + - 46 * 18 * - SUM ( DISTINCT - 24 ) AS col2 FROM tab0 cor0
----
-19943

query I rowsort
SELECT DISTINCT + 13 - col0 AS col0 FROM tab0
----
-2
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5954
SELECT + 45 - - SUM( + - 15 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

skipif mysql # not compatible
query I rowsort label-5954
SELECT + 45 - - SUM ( + - 15 ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-90

query I rowsort
SELECT DISTINCT + + 78 AS col2 FROM tab1 AS cor0
----
78

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5957
SELECT CAST( 79 AS SIGNED ) col1 FROM tab1 AS cor0
----
79
79
79

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5957
SELECT CAST ( 79 AS INTEGER ) col1 FROM tab1 AS cor0
----
79
79
79

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5958
SELECT - col2 col1 FROM tab1 cor0 WHERE NOT + CAST ( NULL AS REAL ) NOT BETWEEN col2 * col1 AND + + col0
----

query I rowsort
SELECT ALL - col1 * col0 FROM tab0 WHERE NULL IS NOT NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5961
SELECT DISTINCT CAST( - ( - 7 ) AS SIGNED ) col0 FROM tab1
----
7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5961
SELECT DISTINCT CAST ( - ( - 7 ) AS INTEGER ) col0 FROM tab1
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-5962
SELECT DISTINCT + + SUM( ALL + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5962
SELECT DISTINCT + + SUM ( ALL + col1 ) FROM tab0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT - - 75 * - 83 FROM tab1 AS cor0
----
-6225
-6225
-6225

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5964
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 25 * - CAST( 52 AS SIGNED ) / - col2
----

skipif mysql # not compatible
query III rowsort label-5964
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL > 25 * - CAST ( 52 AS INTEGER ) / - col2
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-5966
SELECT DISTINCT + ( 68 ) + + COUNT( * ) col0, MIN( col2 ) FROM tab0
----
71
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5966
SELECT DISTINCT + ( 68 ) + + COUNT ( * ) col0, MIN ( col2 ) FROM tab0
----
71
10

query I rowsort
SELECT DISTINCT + 94 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
94

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

skipif mysql # not compatible
query I rowsort label-5968
SELECT ALL 12 + CAST ( NULL AS REAL ) + + 57 * - col0 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col1 * - col2 - + col2 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query I rowsort
SELECT - ( - + 12 ) * - ( ( - 75 ) ) * ( + col0 ) + + col2 AS col2 FROM tab0 cor0
----
13547
78310
87399

query I rowsort
SELECT DISTINCT - col2 * + - ( + 60 ) * - col2 FROM tab2 AS cor0
----
-201840
-31740
-96000

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

query I rowsort
SELECT ALL - 2 * + - col0 * - + ( - col1 ) + + col2 AS col1 FROM tab2 AS cor0
----
10108
4715
9896

onlyif mysql # DIV for integer division: 
query I rowsort label-5974
SELECT ALL col0 DIV col0 * - col2 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-5974
SELECT ALL col0 / col0 * - col2 AS col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-5975
SELECT DISTINCT COUNT( * ) + SUM( DISTINCT - ( 67 ) ), - COUNT( * ) AS col1 FROM tab1
----
-64
-3

skipif mysql # not compatible
query II rowsort label-5975
SELECT DISTINCT COUNT ( * ) + SUM ( DISTINCT - ( 67 ) ), - COUNT ( * ) AS col1 FROM tab1
----
-64
-3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-5977
SELECT col1 * ( - 1 ) DIV + 91 * col0 + col0 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-5977
SELECT col1 * ( - 1 ) / + 91 * col0 + col0 FROM tab1
----
51
85
91

onlyif mysql # DIV for integer division: 
query I rowsort label-5978
SELECT - col1 DIV - 26 + + 18 DIV + col0 AS col2 FROM tab0
----
0
0
4

skipif mysql # not compatible
query I rowsort label-5978
SELECT - col1 / - 26 + + 18 / + col0 AS col2 FROM tab0
----
0
0
4

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col2 / - col0 - + 11 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5980
SELECT + col0 / CAST( NULL AS SIGNED ) + + + col2, col0 + col0 col1 FROM tab1 AS cor0 WHERE NOT 84 * - 9 = NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5980
SELECT + col0 / CAST ( NULL AS INTEGER ) + + + col2, col0 + col0 col1 FROM tab1 AS cor0 WHERE NOT 84 * - 9 = NULL
----

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

skipif mysql # not compatible
query I rowsort label-5981
SELECT COUNT ( - 65 ) FROM tab2 AS cor0
----
3

query II rowsort
SELECT DISTINCT ( - col2 ) AS col0, 95 FROM tab2
----
-23
95
-40
95
-58
95

query I rowsort
SELECT 45 * - - 19 AS col0 FROM tab1
----
855
855
855

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

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

query I rowsort
SELECT ALL + - col2 * + + 75 FROM tab2 AS cor0
----
-1725
-3000
-4350

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( NULL >= NULL )
----

query I rowsort
SELECT + col0 * + col0 + + col1 AS col0 FROM tab1 AS cor0
----
2615
7230
8328

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

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 + + + col2 >= - col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5992
SELECT MIN( DISTINCT 72 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5992
SELECT MIN ( DISTINCT 72 ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-5993
SELECT DISTINCT COUNT( * ), + MIN( + 36 ) AS col2 FROM tab1
----
3
36

skipif mysql # not compatible
query II rowsort label-5993
SELECT DISTINCT COUNT ( * ), + MIN ( + 36 ) AS col2 FROM tab1
----
3
36

query III rowsort
SELECT * FROM tab1 WHERE NOT - col2 * - + ( - 56 ) + col1 + col1 IS NOT NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-5996
SELECT COUNT( - - col0 ) * - - 12 + - + MIN( - 45 ) AS col1 FROM tab1
----
81

skipif mysql # not compatible
query I rowsort label-5996
SELECT COUNT ( - - col0 ) * - - 12 + - + MIN ( - 45 ) AS col1 FROM tab1
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-5997
SELECT ALL + 99 + + COUNT( * ) FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-5997
SELECT ALL + 99 + + COUNT ( * ) FROM tab0
----
102

onlyif mysql # aggregate syntax: 
query I rowsort label-5998
SELECT - SUM( + + 31 ) AS col1 FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-5998
SELECT - SUM ( + + 31 ) AS col1 FROM tab1
----
-93

query I rowsort
SELECT DISTINCT + 6 + + col2 AS col0 FROM tab2
----
29
46
64

onlyif mysql # aggregate syntax: 
query II rowsort label-6000
SELECT - COUNT( * ) col2, + 75 AS col0 FROM tab1
----
-3
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6000
SELECT - COUNT ( * ) col2, + 75 AS col0 FROM tab1
----
-3
75

query I rowsort
SELECT ALL - 73 + - - col1 AS col1 FROM tab1
----
-26
-59
-68

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

skipif mysql # not compatible
query II rowsort label-6002
SELECT ALL - COUNT ( * ), COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-3
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( + 77 * col0 ) BETWEEN - col1 AND NULL
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6006
SELECT + COUNT( - + col1 ) FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-6006
SELECT + COUNT ( - + col1 ) FROM tab2 WHERE NULL IS NULL
----
3

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL BETWEEN - + 79 AND - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6008
SELECT DISTINCT - COUNT( * ) + + SUM( - + 7 ) AS col1 FROM tab1 AS cor0 WHERE - 40 NOT BETWEEN + ( 3 ) AND + col2 * - 47 + + + ( - col0 ) / - col0 - + col2
----
-24

skipif mysql # not compatible
query I rowsort label-6008
SELECT DISTINCT - COUNT ( * ) + + SUM ( - + 7 ) AS col1 FROM tab1 AS cor0 WHERE - 40 NOT BETWEEN + ( 3 ) AND + col2 * - 47 + + + ( - col0 ) / - col0 - + col2
----
-24

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - - col2 - + 76 col0, - col0 AS col0 FROM tab1 AS cor0
----
-17
-85
-8
-91
20
-51

query I rowsort
SELECT - 27 * - col0 * 86 AS col1 FROM tab2
----
106812
148608
174150

query I rowsort
SELECT col0 * - - col0 FROM tab1 WHERE NULL IS NULL
----
2601
7225
8281

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6015
SELECT ALL SUM( + + col1 ) * - COUNT( * ) + + + 62 AS col2 FROM tab2
----
-523

skipif mysql # not compatible
query I rowsort label-6015
SELECT ALL SUM ( + + col1 ) * - COUNT ( * ) + + + 62 AS col2 FROM tab2
----
-523

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

query I rowsort
SELECT ALL - + 25 FROM tab0 WHERE NULL >= ( + + 88 ) AND NULL <= col2
----

query I rowsort
SELECT DISTINCT + 76 + - col0 + - + col0 * - + 93 FROM tab0 AS cor0 WHERE NOT NULL <> 70
----

query I rowsort
SELECT - col2 + + - 56 * + + col1 AS col0 FROM tab1 AS cor0 WHERE NOT + 16 BETWEEN NULL AND col1
----
-339
-880

query II rowsort
SELECT 84 AS col1, 71 AS col1 FROM tab2 AS cor0
----
84
71
84
71
84
71

query II rowsort
SELECT + ( + 65 ) * + - col2 + - + 97 / + col0 / - - 31 + - - 47, 11 * + + 1 / 62 AS col2 FROM tab1 AS cor0 WHERE NOT col1 >= - col1
----

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6025
SELECT DISTINCT - SUM( DISTINCT - 53 ) * + 11 FROM tab0
----
583

skipif mysql # not compatible
query I rowsort label-6025
SELECT DISTINCT - SUM ( DISTINCT - 53 ) * + 11 FROM tab0
----
583

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 88 col0 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6027
SELECT + CAST( 79 AS SIGNED ) * - - 22 * - 78 FROM tab2
----
-135564
-135564
-135564

skipif mysql # not compatible
query I rowsort label-6027
SELECT + CAST ( 79 AS INTEGER ) * - - 22 * - 78 FROM tab2
----
-135564
-135564
-135564

query I rowsort
SELECT + col1 * + 32 FROM tab0
----
2592
32
672

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6032
SELECT DISTINCT 30 DIV col0 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6032
SELECT DISTINCT 30 / col0 AS col0 FROM tab1 AS cor0
----
0

query II rowsort
SELECT ALL - col0 AS col2, ( - 79 ) * - col2 FROM tab0 cor0
----
-15
3713
-87
790
-97
7821

query II rowsort
SELECT - ( 18 ) AS col1, + col0 FROM tab0 cor0
----
-18
15
-18
87
-18
97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6035
SELECT - CAST( - col1 AS SIGNED ), - col2 + + - col0 + 10 AS col2 FROM tab1
----
14
-137
47
-149
5
-134

skipif mysql # not compatible
query II rowsort label-6035
SELECT - CAST ( - col1 AS INTEGER ), - col2 + + - col0 + 10 AS col2 FROM tab1
----
14
-137
47
-149
5
-134

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6036
SELECT DISTINCT + 33 + AVG ( + col2 ) + + COUNT( + + col1 ) * + CAST( NULL AS SIGNED ) * + + ( 64 ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6036
SELECT DISTINCT + 33 + AVG ( + col2 ) + + COUNT ( + + col1 ) * + CAST ( NULL AS INTEGER ) * + + ( 64 ) AS col0 FROM tab1
----
NULL

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 43 / - - col2 * - - col1 >= + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 9 + + col2 AS col0 FROM tab1 WHERE - col2 <= ( - - col1 + + col1 / - col2 )
----
50
59
87

onlyif mysql # aggregate syntax: 
query I rowsort label-6040
SELECT + + 71 + - COUNT( DISTINCT - - 57 ) FROM tab2 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-6040
SELECT + + 71 + - COUNT ( DISTINCT - - 57 ) FROM tab2 AS cor0
----
70

query I rowsort
SELECT - col2 * + - col1 * - col1 + + col2 FROM tab0 cor0
----
-308320
-4400
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + + 45 + - 7 col1 FROM tab0 AS cor0
----
137
48
85

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

skipif mysql # not compatible
query I rowsort label-6043
SELECT 53 * + + col0 FROM tab2 AS cor0 WHERE + CAST ( - ( + col0 ) AS INTEGER ) IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= + 47 - - ( 96 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6045
SELECT DISTINCT col0 DIV 27 + ( + - col2 ) FROM tab2
----
-22
-38
-56

skipif mysql # not compatible
query I rowsort label-6045
SELECT DISTINCT col0 / 27 + ( + - col2 ) FROM tab2
----
-22
-38
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-6046
SELECT ALL - ( COUNT( * ) ) * COUNT( * ) + - 40 - MAX( DISTINCT + 93 ) FROM tab2
----
-142

skipif mysql # not compatible
query I rowsort label-6046
SELECT ALL - ( COUNT ( * ) ) * COUNT ( * ) + - 40 - MAX ( DISTINCT + 93 ) FROM tab2
----
-142

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6047
SELECT ALL * FROM tab1 WHERE + col0 IN ( CAST( NULL AS SIGNED ) + - + 99, + 66 )
----

skipif mysql # not compatible
query III rowsort label-6047
SELECT ALL * FROM tab1 WHERE + col0 IN ( CAST ( NULL AS INTEGER ) + - + 99, + 66 )
----

query I rowsort
SELECT - + col1 AS col1 FROM tab1 WHERE NULL < 28
----

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT col0 BETWEEN + col0 + col0 AND NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-6050
SELECT COUNT( * ) + + MAX( col1 ) FROM tab2 AS cor0 WHERE col0 NOT IN ( + col1, - col2 )
----
80

skipif mysql # not compatible
query I rowsort label-6050
SELECT COUNT ( * ) + + MAX ( col1 ) FROM tab2 AS cor0 WHERE col0 NOT IN ( + col1, - col2 )
----
80

query I rowsort
SELECT + - col2 - - 29 AS col1 FROM tab2 AS cor0
----
-11
-29
6

query I rowsort
SELECT DISTINCT - 54 * - 79 + 17 + + - 23 AS col1 FROM tab2 AS cor0
----
4260

onlyif mysql # aggregate syntax: 
query I rowsort label-6053
SELECT ALL - COUNT( * ) AS col0 FROM tab1 cor0 WHERE ( - 80 = NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6053
SELECT ALL - COUNT ( * ) AS col0 FROM tab1 cor0 WHERE ( - 80 = NULL )
----
0

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

query II rowsort
SELECT ALL + col2 AS col2, + 22 * - + col2 FROM tab0 AS cor0
----
10
-220
47
-1034
99
-2178

onlyif mysql # aggregate syntax: 
query I rowsort label-6056
SELECT ALL + 13 - COUNT( * ) FROM tab1 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-6056
SELECT ALL + 13 - COUNT ( * ) FROM tab1 AS cor0
----
10

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 IN ( - col0, + col1, - 9, + + 24 / + 65, 49 - + + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 11 AS col2 FROM tab2 AS cor0 WHERE NOT col2 / - - col1 IS NULL
----
11
11
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6059
SELECT DISTINCT - CAST( NULL AS SIGNED ) - - 40 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6059
SELECT DISTINCT - CAST ( NULL AS INTEGER ) - - 40 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6060
SELECT ALL + 39 - - COUNT( * ) - - 83 AS col1 FROM tab2
----
125

skipif mysql # not compatible
query I rowsort label-6060
SELECT ALL + 39 - - COUNT ( * ) - - 83 AS col1 FROM tab2
----
125

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6061
SELECT CAST( + SUM( DISTINCT - + col0 ) AS SIGNED ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-6061
SELECT CAST ( + SUM ( DISTINCT - + col0 ) AS INTEGER ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT ALL col1 * + - 40 FROM tab1
----
-1880
-200
-560

query I rowsort
SELECT DISTINCT - 29 * - 85 FROM tab2
----
2465

query I rowsort
SELECT ALL ( - + 88 ) * - col2 FROM tab1
----
5192
5984
8448

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6066
SELECT ALL + COUNT( * ) * - + 66 AS col1 FROM tab2
----
-198

skipif mysql # not compatible
query I rowsort label-6066
SELECT ALL + COUNT ( * ) * - + 66 AS col1 FROM tab2
----
-198

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6068
SELECT + CAST( col2 AS SIGNED ) * + 14, + ( col1 ) AS col1 FROM tab2
----
322
51
560
77
812
67

skipif mysql # not compatible
query II rowsort label-6068
SELECT + CAST ( col2 AS INTEGER ) * + 14, + ( col1 ) AS col1 FROM tab2
----
322
51
560
77
812
67

query I rowsort
SELECT DISTINCT - 28 * - + col2 FROM tab2
----
1120
1624
644

query I rowsort
SELECT ALL 41 * - ( + 53 ) AS col0 FROM tab2 AS cor0
----
-2173
-2173
-2173

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 85 >= NULL
----

query I rowsort
SELECT DISTINCT + + 33 * - col1 FROM tab2 cor0
----
-1683
-2211
-2541

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

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

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

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

query II rowsort
SELECT ( + col1 ) + + 62 + - col2 AS col2, 22 AS col0 FROM tab2
----
71
22
90
22
99
22

query I rowsort
SELECT ALL + 73 * + 7 FROM tab0
----
511
511
511

query I rowsort
SELECT DISTINCT + 23 + + ( col0 ) AS col1 FROM tab2
----
69
87
98

query II rowsort
SELECT col0, + 71 FROM tab0
----
15
71
87
71
97
71

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

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

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

query I rowsort
SELECT - col1 + - + 34 - col0 AS col2 FROM tab2 AS cor0
----
-131
-175
-176

query I rowsort
SELECT - col0 + 88 FROM tab1
----
-3
3
37

onlyif mysql # aggregate syntax: 
query I rowsort label-6085
SELECT + MAX( - 69 ) FROM tab2 WHERE + col2 * + - 50 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6085
SELECT + MAX ( - 69 ) FROM tab2 WHERE + col2 * + - 50 IS NULL
----
NULL

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

skipif mysql # not compatible
query II rowsort label-6086
SELECT DISTINCT - COUNT ( * ) + - - COUNT ( * ) AS col1, COUNT ( DISTINCT col0 ) FROM tab2
----
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6087
SELECT DISTINCT + 35 * - - 75 - - + 90 * - COUNT( * ) * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
3435

skipif mysql # not compatible
query I rowsort label-6087
SELECT DISTINCT + 35 * - - 75 - - + 90 * - COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
3435

query I rowsort
SELECT col0 - col2 + - col1 * - 84 AS col0 FROM tab0 AS cor0
----
1841
6772
82

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 94 * - + col0 * + col0 AS col0, + 1 col2 FROM tab2
----
-198904
1
-385024
1
-528750
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6091
SELECT COUNT( * ) * - 2 AS col2 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-6091
SELECT COUNT ( * ) * - 2 AS col2 FROM tab0
----
-6

query II rowsort
SELECT ALL col1, col0 * - 59 AS col0 FROM tab1
----
14
-3009
47
-5369
5
-5015

onlyif mysql # DIV for integer division: 
query I rowsort label-6093
SELECT col1 * - col0 DIV + + col0 AS col0 FROM tab2
----
-51
-67
-77

skipif mysql # not compatible
query I rowsort label-6093
SELECT col1 * - col0 / + + col0 AS col0 FROM tab2
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query II rowsort label-6094
SELECT 37, - COUNT( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
37
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6094
SELECT 37, - COUNT ( * ) col0 FROM tab0 WHERE NOT NULL IS NULL
----
37
0

query II rowsort
SELECT DISTINCT + 9 AS col2, + col0 FROM tab2
----
9
46
9
64
9
75

query II rowsort
SELECT ALL + + 34, col0 FROM tab1 AS cor0
----
34
51
34
85
34
91

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6098
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT ( CAST( col0 AS DECIMAL ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6098
SELECT DISTINCT col0 AS col0 FROM tab1 WHERE NOT ( CAST ( col0 AS REAL ) ) IS NOT NULL
----

query I rowsort
SELECT ( - 65 ) FROM tab2 WHERE col2 NOT BETWEEN + col2 * - 1 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN ( 95 + - 42 ) AND ( - 35 )
----

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

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

query I rowsort
SELECT ALL 8 * ( col1 ) + + 69 * + 43 FROM tab2
----
3375
3503
3583

query I rowsort
SELECT DISTINCT 40 / + col1 AS col0 FROM tab1 WHERE NULL > col0 - col2
----

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

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

skipif mysql # not compatible
query I rowsort label-6106
SELECT + MAX ( + 70 ) AS col2 FROM tab2
----
70

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6107
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS DECIMAL ) / col1 + + col1 BETWEEN ( ( - 59 ) ) AND - 85
----

skipif mysql # not compatible
query III rowsort label-6107
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS REAL ) / col1 + + col1 BETWEEN ( ( - 59 ) ) AND - 85
----

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

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

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

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

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

query I rowsort
SELECT ALL col0 * - 47 AS col2 FROM tab1
----
-2397
-3995
-4277

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + 75 col0 FROM tab1
----
126
160
166

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 62 col2 FROM tab2
----
-2852
-3968
-4650

onlyif mysql # aggregate syntax: 
query I rowsort label-6115
SELECT - AVG ( ALL col0 ) * COUNT( * ) AS col2 FROM tab2 WHERE - col1 < ( NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6115
SELECT - AVG ( ALL col0 ) * COUNT ( * ) AS col2 FROM tab2 WHERE - col1 < ( NULL )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6116
SELECT - MIN( col0 ) - 27 col1 FROM tab0
----
-42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6116
SELECT - MIN ( col0 ) - 27 col1 FROM tab0
----
-42

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

query III rowsort
SELECT * FROM tab1 WHERE ( + col2 ) IN ( - 60 * 90 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6119
SELECT ALL 92 + CAST( col0 AS SIGNED ) FROM tab1
----
143
177
183

skipif mysql # not compatible
query I rowsort label-6119
SELECT ALL 92 + CAST ( col0 AS INTEGER ) FROM tab1
----
143
177
183

onlyif mysql # aggregate syntax: 
query I rowsort label-6120
SELECT + ( COUNT( * ) ) * + COUNT( ALL 2 ) AS col2 FROM tab1
----
9

skipif mysql # not compatible
query I rowsort label-6120
SELECT + ( COUNT ( * ) ) * + COUNT ( ALL 2 ) AS col2 FROM tab1
----
9

query I rowsort
SELECT 14 * + 32 + col1 AS col1 FROM tab0 AS cor0
----
449
469
529

onlyif mysql # DIV for integer division: 
query I rowsort label-6122
SELECT 9 DIV + col1 + - 12 col1 FROM tab1 AS cor0
----
-11
-12
-12

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6122
SELECT 9 / + col1 + - 12 col1 FROM tab1 AS cor0
----
-11
-12
-12

query I rowsort
SELECT ALL - 88 * 14 + col0 AS col1 FROM tab1 AS cor0
----
-1141
-1147
-1181

onlyif mysql # aggregate syntax: 
query I rowsort label-6124
SELECT DISTINCT 14 * + COUNT( * ) FROM tab2 AS cor0
----
42

skipif mysql # not compatible
query I rowsort label-6124
SELECT DISTINCT 14 * + COUNT ( * ) FROM tab2 AS cor0
----
42

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE 1 NOT IN ( - col1 - col2 / - 80 )
----
51
67
77

query I rowsort
SELECT - col1 * 79 FROM tab1 AS cor0
----
-1106
-3713
-395

query I rowsort
SELECT + 91 * + 29 AS col0 FROM tab2 AS cor0
----
2639
2639
2639

onlyif mysql # DIV for integer division: 
query I rowsort label-6128
SELECT ALL col1 + - col0 DIV 82 FROM tab2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-6128
SELECT ALL col1 + - col0 / 82 FROM tab2
----
51
67
77

query I rowsort
SELECT ALL + AVG ( DISTINCT - col0 ) FROM tab0 WHERE NULL > - col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6130
SELECT COUNT( * ) FROM tab0 WHERE NULL BETWEEN + col1 * 59 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6130
SELECT COUNT ( * ) FROM tab0 WHERE NULL BETWEEN + col1 * 59 AND NULL
----
0

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

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

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

query I rowsort
SELECT - col1 - + col2 * col0 AS col2 FROM tab1 AS cor0
----
-4910
-5020
-6235

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6134
SELECT DISTINCT col2 - CAST( NULL AS DECIMAL ) col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6134
SELECT DISTINCT col2 - CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE - col1 * col1 > ( + 18 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6136
SELECT DISTINCT - - 80 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-6136
SELECT DISTINCT - - 80 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
240

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

query I rowsort
SELECT ALL + + 83 * - 78 FROM tab2 AS cor0
----
-6474
-6474
-6474

query I rowsort
SELECT + 44 FROM tab0 AS cor0 WHERE NOT + 99 * 22 = ( - col1 )
----
44
44
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6140
SELECT ALL + + CAST( 4 AS SIGNED ) FROM tab1 cor0
----
4
4
4

skipif mysql # not compatible
query I rowsort label-6140
SELECT ALL + + CAST ( 4 AS INTEGER ) FROM tab1 cor0
----
4
4
4

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6141
SELECT col0 col1 FROM tab2 WHERE NOT - CAST ( - 99 AS INTEGER ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 96 col2 FROM tab0
----
96
96
96

query I rowsort
SELECT - 32 * - - col0 * + col1 FROM tab2
----
-157696
-160800
-75072

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6144
SELECT CAST( + + 17 AS SIGNED ) col2 FROM tab0
----
17
17
17

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6144
SELECT CAST ( + + 17 AS INTEGER ) col2 FROM tab0
----
17
17
17

query I rowsort
SELECT - 98 * col1 FROM tab2
----
-4998
-6566
-7546

query I rowsort
SELECT col2 * 36 AS col1 FROM tab1
----
2124
2448
3456

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6148
SELECT DISTINCT MIN( ALL + col0 ) + + 85 FROM tab1 AS cor0 WHERE col1 >= col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6148
SELECT DISTINCT MIN ( ALL + col0 ) + + 85 FROM tab1 AS cor0 WHERE col1 >= col2
----
NULL

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

query I rowsort
SELECT ( - 1 ) AS col0 FROM tab1 AS cor0
----
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) <= + col2
----

query II rowsort
SELECT + 48 AS col1, - col2 + - - 94 * col0 FROM tab2
----
48
4301
48
5976
48
6992

onlyif mysql # aggregate syntax: 
query I rowsort label-6153
SELECT + 92 * COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
828

skipif mysql # not compatible
query I rowsort label-6153
SELECT + 92 * COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
828

onlyif mysql # aggregate syntax: 
query I rowsort label-6154
SELECT 98 * - - COUNT( * ) FROM tab1
----
294

skipif mysql # not compatible
query I rowsort label-6154
SELECT 98 * - - COUNT ( * ) FROM tab1
----
294

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6155
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 31 / + col2 * + CAST( 92 AS SIGNED ) NOT IN ( col1 )
----

skipif mysql # not compatible
query III rowsort label-6155
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + 31 / + col2 * + CAST ( 92 AS INTEGER ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6156
SELECT DISTINCT - COUNT( * ) * ( + ( COUNT( + col0 ) ) ) * - COUNT( ALL 29 ) FROM tab1 cor0
----
27

skipif mysql # not compatible
query I rowsort label-6156
SELECT DISTINCT - COUNT ( * ) * ( + ( COUNT ( + col0 ) ) ) * - COUNT ( ALL 29 ) FROM tab1 cor0
----
27

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 col1 FROM tab1 AS cor0 WHERE col1 >= - col0
----
14
47
5

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6159
SELECT ALL COUNT( * ) * - + MIN( + col1 ) * + COUNT( + col1 ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-6159
SELECT ALL COUNT ( * ) * - + MIN ( + col1 ) * + COUNT ( + col1 ) AS col1 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-6160
SELECT MAX( DISTINCT + + col1 ) AS col0 FROM tab2
----
77

skipif mysql # not compatible
query I rowsort label-6160
SELECT MAX ( DISTINCT + + col1 ) AS col0 FROM tab2
----
77

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6166
SELECT DISTINCT CAST( NULL AS SIGNED ) - 48 + 66 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6166
SELECT DISTINCT CAST ( NULL AS INTEGER ) - 48 + 66 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-6167
SELECT DISTINCT - 97 * - MIN( ALL + + col1 ) FROM tab2 AS cor0
----
4947

skipif mysql # not compatible
query I rowsort label-6167
SELECT DISTINCT - 97 * - MIN ( ALL + + col1 ) FROM tab2 AS cor0
----
4947

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 93 + 10 col2, + 85 FROM tab0 AS cor0
----
103
85
103
85
103
85

query I rowsort
SELECT ALL + - 10 * 34 + - col0 * col1 * - col1 FROM tab1 AS cor0
----
1785
200679
9656

query I rowsort
SELECT ALL - col0 * - 44 FROM tab1
----
2244
3740
4004

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6171
SELECT - 84 * + - COUNT( * ) + + 79 DIV COUNT( * ) + COUNT( * ) FROM tab1
----
281

skipif mysql # not compatible
query I rowsort label-6171
SELECT - 84 * + - COUNT ( * ) + + 79 / COUNT ( * ) + COUNT ( * ) FROM tab1
----
281

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 + + col1 + + col0 + - ( + col2 ) col0 FROM tab1
----
120
159
58

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

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

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

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

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

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NOT - 96 > col2 + + col0 + col2
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6178
SELECT ALL CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE ( NULL ) < - 75 - + - 8 + + 32 * 71
----

skipif mysql # not compatible
query I rowsort label-6178
SELECT ALL CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE ( NULL ) < - 75 - + - 8 + + 32 * 71
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6179
SELECT ALL + + MAX( col0 ) * - COUNT( * ) FROM tab2 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-6179
SELECT ALL + + MAX ( col0 ) * - COUNT ( * ) FROM tab2 AS cor0
----
-225

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

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 10 * + col0 + + col2 > - col0
----

query I rowsort
SELECT ALL - col2 + + col2 AS col2 FROM tab0 AS cor0 WHERE col2 <> - col1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6183
SELECT MAX( DISTINCT - 27 ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-6183
SELECT MAX ( DISTINCT - 27 ) FROM tab2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6184
SELECT - 34 * + + col2 FROM tab0 WHERE NOT ( - col1 ) IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6184
SELECT - 34 * + + col2 FROM tab0 WHERE NOT ( - col1 ) IN ( - CAST ( NULL AS INTEGER ) )
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6186
SELECT ALL col0 AS col0 FROM tab1 WHERE NULL <> ( + - col1 - + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-6186
SELECT ALL col0 AS col0 FROM tab1 WHERE NULL <> ( + - col1 - + CAST ( NULL AS INTEGER ) )
----

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

query II rowsort
SELECT ALL 85, col0 FROM tab1
----
85
51
85
85
85
91

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6192
SELECT col0 AS col1, + CAST( - ( - col2 ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-6192
SELECT col0 AS col1, + CAST ( - ( - col2 ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
46
23
64
40
75
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6193
SELECT ( + 35 ) DIV + 45 AS col0 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6193
SELECT ( + 35 ) / + 45 AS col0 FROM tab0 AS cor0
----
0
0
0

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

query I rowsort
SELECT ALL + + col2 FROM tab0 WHERE NOT 61 IS NOT NULL
----

query I rowsort
SELECT + 26 * - + 30 FROM tab0 AS cor0
----
-780
-780
-780

query I rowsort
SELECT ALL + col1 * - col0 * - 79 FROM tab2 cor0
----
185334
389312
396975

query II rowsort
SELECT ALL - col2 * + col1 AS col2, col1 * + - col0 AS col2 FROM tab2 AS cor0
----
-1173
-2346
-3080
-4928
-3886
-5025

onlyif mysql # DIV for integer division: 
query I rowsort label-6199
SELECT + col2 + - col0 DIV - col2 FROM tab2 AS cor0
----
25
41
59

skipif mysql # not compatible
query I rowsort label-6199
SELECT + col2 + - col0 / - col2 FROM tab2 AS cor0
----
25
41
59

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

skipif mysql # not compatible
query I rowsort label-6200
SELECT ALL COUNT ( * ) + + + 45 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-6201
SELECT + 51 + + COUNT( * ) + 48 * + - 33 FROM tab1
----
-1530

skipif mysql # not compatible
query I rowsort label-6201
SELECT + 51 + + COUNT ( * ) + 48 * + - 33 FROM tab1
----
-1530

query I rowsort
SELECT DISTINCT - + col1 * col1 + + + ( + 36 ) FROM tab2 AS cor0
----
-2565
-4453
-5893

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 * col0 AND - + 7 + + col1 + - 84 * + col1 * - 90 * - 71
----

query I rowsort
SELECT ALL - col2 * col1 + + col1 FROM tab1 AS cor0
----
-1330
-290
-3149

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

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

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

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

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

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

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

query I rowsort
SELECT + 58 * col1 AS col0 FROM tab0
----
1218
4698
58

onlyif mysql # DIV for integer division: 
query I rowsort label-6211
SELECT DISTINCT - 66 + + - 98 DIV col0 * col0 FROM tab1 WHERE NOT + 78 IS NULL
----
-117
-151
-157

skipif mysql # not compatible
query I rowsort label-6211
SELECT DISTINCT - 66 + + - 98 / col0 * col0 FROM tab1 WHERE NOT + 78 IS NULL
----
-117
-151
-157

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

skipif mysql # not compatible
query I rowsort label-6212
SELECT DISTINCT COUNT ( * ) * - 94 * + ( + COUNT ( * ) ) FROM tab1
----
-846

onlyif mysql # DIV for integer division: 
query I rowsort label-6213
SELECT ALL - col2 DIV 59 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-6213
SELECT ALL - col2 / 59 FROM tab0
----
-1
0
0

query I rowsort
SELECT - 24 * - col2 FROM tab0
----
1128
2376
240

query I rowsort
SELECT DISTINCT - col2 - col2 FROM tab1 WHERE NULL NOT BETWEEN + col2 AND + + col0 * + + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * col1 + - col2 col0 FROM tab0 WHERE NOT + + col2 IS NULL
----
-2
1168
1817

onlyif mysql # aggregate syntax: 
query I rowsort label-6217
SELECT ALL ( - SUM( ALL col2 ) ) AS col1 FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-6217
SELECT ALL ( - SUM ( ALL col2 ) ) AS col1 FROM tab2 cor0
----
-121

onlyif mysql # aggregate syntax: 
query I rowsort label-6218
SELECT DISTINCT - ( COUNT( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-6218
SELECT DISTINCT - ( COUNT ( * ) ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN ( NULL ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6219
SELECT ALL 90 * COUNT( * ) * - 18 * COUNT( * ) + COUNT( * ) AS col2 FROM tab2
----
-14577

skipif mysql # not compatible
query I rowsort label-6219
SELECT ALL 90 * COUNT ( * ) * - 18 * COUNT ( * ) + COUNT ( * ) AS col2 FROM tab2
----
-14577

query I rowsort
SELECT + - 55 + - col1 * - + col2 * + col1 + + - col1 FROM tab1 AS cor0
----
1415
150110
18747

query II rowsort
SELECT ALL + col0 AS col2, + 6 AS col2 FROM tab0 cor0
----
15
6
87
6
97
6

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

query II rowsort
SELECT ( - col0 ) + - - col0, + 16 + - 41 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6226
SELECT ALL + + MAX( ALL + CAST( NULL AS SIGNED ) ) col1 FROM tab0 AS cor0
----
NULL

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

query I rowsort
SELECT ALL - 78 * - col2 + + col1 AS col1 FROM tab2 cor0
----
1845
3197
4591

query II rowsort
SELECT - - 4, 2 AS col0 FROM tab1 AS cor0
----
4
2
4
2
4
2

onlyif mysql # aggregate syntax: 
query I rowsort label-6229
SELECT + 13 * - - 38 * + MIN( - - ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
25194

skipif mysql # not compatible
query I rowsort label-6229
SELECT + 13 * - - 38 * + MIN ( - - ( + + col0 ) ) AS col0 FROM tab1 AS cor0
----
25194

query I rowsort
SELECT col2 AS col1 FROM tab1 cor0 WHERE ( NULL ) IS NULL
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6231
SELECT 91 AS col0 FROM tab0 WHERE ( NOT ( NOT col0 <> ( + + 38 * col1 - - + 36 * + CAST( - col2 AS SIGNED ) * - col2 ) ) )
----
91
91
91

skipif mysql # not compatible
query I rowsort label-6231
SELECT 91 AS col0 FROM tab0 WHERE ( NOT ( NOT col0 <> ( + + 38 * col1 - - + 36 * + CAST ( - col2 AS INTEGER ) * - col2 ) ) )
----
91
91
91

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6233
SELECT CAST( NULL AS DECIMAL ) * - + 49 AS col0, col2 * 67 AS col0 FROM tab2
----
NULL
1541
NULL
2680
NULL
3886

skipif mysql # not compatible
query II rowsort label-6233
SELECT CAST ( NULL AS REAL ) * - + 49 AS col0, col2 * 67 AS col0 FROM tab2
----
NULL
1541
NULL
2680
NULL
3886

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

query I rowsort
SELECT col0 - - ( + col2 ) AS col0 FROM tab2
----
104
133
69

query I rowsort
SELECT col0 + 72 FROM tab0 AS cor0
----
159
169
87

query I rowsort
SELECT - col2 + - - 36 + + + 1 * col2 * 50 AS col2 FROM tab2 AS cor0 WHERE NULL NOT IN ( 77 * + col2, + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6238
SELECT - CAST( - col0 AS SIGNED ) + col0 FROM tab0 AS cor0
----
174
194
30

skipif mysql # not compatible
query I rowsort label-6238
SELECT - CAST ( - col0 AS INTEGER ) + col0 FROM tab0 AS cor0
----
174
194
30

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 2 * - col0 col2 FROM tab2 AS cor0
----
128
150
92

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6244
SELECT - - col0 DIV + col1 FROM tab2 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-6244
SELECT - - col0 / + col1 FROM tab2 cor0
----
0
0
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6246
SELECT + col1 AS col1, - CAST( - - ( 85 ) AS SIGNED ) FROM tab1 AS cor0
----
14
-85
47
-85
5
-85

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6247
SELECT + - SUM( col1 ) col0 FROM tab0 AS cor0
----
-103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6247
SELECT + - SUM ( col1 ) col0 FROM tab0 AS cor0
----
-103

query I rowsort
SELECT ALL - ( + ( - col1 ) ) AS col2 FROM tab0 AS cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6249
SELECT - + SUM( - 55 ) AS col2 FROM tab2 AS cor0
----
165

skipif mysql # not compatible
query I rowsort label-6249
SELECT - + SUM ( - 55 ) AS col2 FROM tab2 AS cor0
----
165

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - 59 / - col1 * - - 84 + 87 IN ( + + col0 / - - col1 + 54 * - col1 + - col0, - 76 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6251
SELECT ALL + col2 DIV 90 + col1 AS col0 FROM tab0
----
2
21
81

skipif mysql # not compatible
query I rowsort label-6251
SELECT ALL + col2 / 90 + col1 AS col0 FROM tab0
----
2
21
81

query III rowsort
SELECT ALL * FROM tab1 WHERE + + 92 > - 88
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT ALL 49 * - col0 * - + col2 FROM tab0
----
34545
42630
470547

onlyif mysql # aggregate syntax: 
query I rowsort label-6255
SELECT 65 * + ( - COUNT( * ) ) FROM tab2
----
-195

skipif mysql # not compatible
query I rowsort label-6255
SELECT 65 * + ( - COUNT ( * ) ) FROM tab2
----
-195

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL IS NULL AND NULL IS NOT NULL
----

query I rowsort
SELECT + 35 + - col0 * + 40 FROM tab2 AS cor0
----
-1805
-2525
-2965

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6260
SELECT - 7 * + CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6260
SELECT - 7 * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6261
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col0 < col2
----
51
14
96

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

query I rowsort
SELECT 73 - + - col2 * + col2 + col1 FROM tab1 AS cor0
----
3559
4744
9303

query II rowsort
SELECT ALL 96 - col2 * + col2 AS col1, + 85 FROM tab2 AS cor0
----
-1504
85
-3268
85
-433
85

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6266
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 9 NOT IN ( + - col2, col2, col2 * CAST( + col2 AS SIGNED ) * + col1 + 7 + + col2 * + + 14 / - + col1 )
----

skipif mysql # not compatible
query III rowsort label-6266
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 9 NOT IN ( + - col2, col2, col2 * CAST ( + col2 AS INTEGER ) * + col1 + 7 + + col2 * + + 14 / - + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6267
SELECT + COUNT( + 16 ) * - 62 - - COUNT( * ) - - 93 + - - 73 * - - 20 * ( + COUNT( * ) ) FROM tab0 AS cor0
----
4290

skipif mysql # not compatible
query I rowsort label-6267
SELECT + COUNT ( + 16 ) * - 62 - - COUNT ( * ) - - 93 + - - 73 * - - 20 * ( + COUNT ( * ) ) FROM tab0 AS cor0
----
4290

query I rowsort
SELECT ALL + col2 - - 79 AS col0 FROM tab2 AS cor0
----
102
119
137

onlyif mysql # aggregate syntax: 
query I rowsort label-6269
SELECT ALL ( 91 ) * + MIN( ALL col2 ) FROM tab1 AS cor0
----
5369

skipif mysql # not compatible
query I rowsort label-6269
SELECT ALL ( 91 ) * + MIN ( ALL col2 ) FROM tab1 AS cor0
----
5369

onlyif mysql # aggregate syntax: 
query I rowsort label-6270
SELECT COUNT( * ) + + 95 * COUNT( * ) col1 FROM tab2
----
288

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6271
SELECT ALL 66 * + 35 * + + CAST( - 63 AS SIGNED ) + col1 * - 20 FROM tab0
----
-145550
-145950
-147150

skipif mysql # not compatible
query I rowsort label-6271
SELECT ALL 66 * + 35 * + + CAST ( - 63 AS INTEGER ) + col1 * - 20 FROM tab0
----
-145550
-145950
-147150

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

query I rowsort
SELECT DISTINCT - 98 + - - 76 FROM tab1
----
-22

onlyif mysql # DIV for integer division: 
query II rowsort label-6274
SELECT - col1 AS col2, - col2 DIV + 83 AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-6274
SELECT - col1 AS col2, - col2 / + 83 AS col0 FROM tab2 AS cor0
----
-51
0
-67
0
-77
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6275
SELECT + 46 * - COUNT( * ) * + 47 AS col2 FROM tab0
----
-6486

skipif mysql # not compatible
query I rowsort label-6275
SELECT + 46 * - COUNT ( * ) * + 47 AS col2 FROM tab0
----
-6486

onlyif mysql # aggregate syntax: 
query II rowsort label-6276
SELECT DISTINCT COUNT( - col0 ), COUNT( * ) * + + MAX( DISTINCT - - 94 ) AS col1 FROM tab0
----
3
282

skipif mysql # not compatible
query II rowsort label-6276
SELECT DISTINCT COUNT ( - col0 ), COUNT ( * ) * + + MAX ( DISTINCT - - 94 ) AS col1 FROM tab0
----
3
282

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

skipif mysql # not compatible
query I rowsort label-6277
SELECT DISTINCT ( MAX ( DISTINCT 96 ) ) AS col1 FROM tab0
----
96

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 / - col2 <> NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 62 > + ( - col0 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - + 37 * 23 IS NOT NULL AND NOT NULL = col1
----

query I rowsort
SELECT + + col2 + ( - + col1 ) FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT ALL + - col1 FROM tab0 AS cor0 WHERE col1 + - + col2 * - 2 + + + 75 IS NOT NULL
----
-1
-21
-81

query II rowsort
SELECT ( + col2 ) + - + col2 * - 38 AS col1, 24 * + col0 FROM tab2
----
1560
1536
2262
1800
897
1104

query I rowsort
SELECT DISTINCT - 91 + - col1 AS col2 FROM tab1
----
-105
-138
-96

query I rowsort
SELECT DISTINCT 98 + 35 AS col1 FROM tab1
----
133

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

query I rowsort
SELECT 55 * - col2 * ( + - col2 ) AS col0 FROM tab1
----
191455
254320
506880

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6288
SELECT ALL - CAST( NULL AS SIGNED ) * + - col0 + + ( - 6 ) col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6288
SELECT ALL - CAST ( NULL AS INTEGER ) * + - col0 + + ( - 6 ) col1, col2 FROM tab0
----
NULL
10
NULL
47
NULL
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6289
SELECT ALL COUNT( * ) + + + SUM( ALL col2 ) + + + COUNT( * ) * - - 66 FROM tab0
----
357

skipif mysql # not compatible
query I rowsort label-6289
SELECT ALL COUNT ( * ) + + + SUM ( ALL col2 ) + + + COUNT ( * ) * - - 66 FROM tab0
----
357

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6290
SELECT - COUNT( * ) DIV - + 68 FROM tab1 WHERE ( NOT + col2 + - 23 IS NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6290
SELECT - COUNT ( * ) / - + 68 FROM tab1 WHERE ( NOT + col2 + - 23 IS NULL )
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-6291
SELECT DISTINCT - COUNT( * ), 80 AS col1 FROM tab2
----
-3
80

skipif mysql # not compatible
query II rowsort label-6291
SELECT DISTINCT - COUNT ( * ), 80 AS col1 FROM tab2
----
-3
80

query I rowsort
SELECT ALL - 62 + - col1 AS col2 FROM tab0
----
-143
-63
-83

query I rowsort
SELECT DISTINCT - col0 AS col1 FROM tab1 WHERE NOT NULL <= col0 * - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6294
SELECT DISTINCT MAX( ALL 23 ) AS col2 FROM tab1
----
23

skipif mysql # not compatible
query I rowsort label-6294
SELECT DISTINCT MAX ( ALL 23 ) AS col2 FROM tab1
----
23

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6295
SELECT - 23 DIV - COUNT( * ) AS col0 FROM tab0 cor0
----
7

skipif mysql # not compatible
query I rowsort label-6295
SELECT - 23 / - COUNT ( * ) AS col0 FROM tab0 cor0
----
7

query I rowsort
SELECT ( 34 ) + + 39 FROM tab2
----
73
73
73

query I rowsort
SELECT DISTINCT + 26 FROM tab0 WHERE + 28 >= col0 / col2
----
26

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6299
SELECT ALL - COUNT( * ) + - 1 * - MIN( col1 ) FROM tab2 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-6299
SELECT ALL - COUNT ( * ) + - 1 * - MIN ( col1 ) FROM tab2 AS cor0
----
48

query I rowsort
SELECT DISTINCT + - 89 * - 2 + + col0 FROM tab0 cor0
----
193
265
275

query I rowsort
SELECT col1 * + 67 * + col2 + - + ( + + col2 ) AS col0 FROM tab1 cor0
----
19706
214064
89952

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6303
SELECT - + ( + - COUNT( * ) ) * + COUNT( * ) * - 58 FROM tab1 AS cor0
----
-522

skipif mysql # not compatible
query I rowsort label-6303
SELECT - + ( + - COUNT ( * ) ) * + COUNT ( * ) * - 58 FROM tab1 AS cor0
----
-522

onlyif mysql # aggregate syntax: 
query I rowsort label-6304
SELECT + SUM( - 22 ) AS col0 FROM tab2 AS cor0
----
-66

skipif mysql # not compatible
query I rowsort label-6304
SELECT + SUM ( - 22 ) AS col0 FROM tab2 AS cor0
----
-66

query I rowsort
SELECT + + 98 * + ( - - col0 ) AS col2 FROM tab1 cor0
----
4998
8330
8918

query I rowsort
SELECT ALL + col2 - + col1 + + col0 AS col1 FROM tab2 AS cor0
----
18
27
66

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

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

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

query I rowsort
SELECT - col2 - - - col0 AS col1 FROM tab2
----
-104
-133
-69

query I rowsort
SELECT - col1 * col1 - + + 79 AS col1 FROM tab0
----
-520
-6640
-80

query II rowsort
SELECT ALL col1 * - col2 * + col1, + 58 + - + ( + ( - col2 ) ) + + 65 + + col1 AS col2 FROM tab0
----
-308367
251
-4410
154
-99
223

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6315
SELECT + MIN( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-6315
SELECT + MIN ( DISTINCT + col0 ) FROM tab2 AS cor0
----
46

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6317
SELECT + 10 DIV col0 * + - 90, col2 + - + col1 AS col2 FROM tab2 AS cor0
----
0
-28
0
-37
0
-9

skipif mysql # not compatible
query II rowsort label-6317
SELECT + 10 / col0 * + - 90, col2 + - + col1 AS col2 FROM tab2 AS cor0
----
0
-28
0
-37
0
-9

query II rowsort
SELECT + 29 AS col1, 62 + - col1 FROM tab2 cor0
----
29
-15
29
-5
29
11

query III rowsort
SELECT * FROM tab2 WHERE NOT ( 14 <> NULL )
----

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

query I rowsort
SELECT col2 * + col0 - - + col0 FROM tab0 AS cor0
----
720
957
9700

query II rowsort
SELECT col2 AS col1, + col2 * col2 AS col2 FROM tab0 AS cor0
----
10
100
47
2209
99
9801

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - col0 col2 FROM tab0 cor0
----
15
-15
87
-87
97
-97

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

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

query II rowsort
SELECT DISTINCT - + col0 AS col2, - col2 * + - 22 * col1 FROM tab0 AS cor0
----
-15
83754
-87
4620
-97
2178

onlyif mysql # aggregate syntax: 
query I rowsort label-6326
SELECT + + COUNT( DISTINCT + 39 ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6326
SELECT + + COUNT ( DISTINCT + 39 ) col2 FROM tab1 AS cor0
----
1

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 30 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-6328
SELECT DISTINCT - SUM( ALL col1 ) * - CAST( NULL AS SIGNED ) / COUNT( * ) AS col1, + ( + COUNT( * ) ) AS col1 FROM tab1 AS cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-6328
SELECT DISTINCT - SUM ( ALL col1 ) * - CAST ( NULL AS INTEGER ) / COUNT ( * ) AS col1, + ( + COUNT ( * ) ) AS col1 FROM tab1 AS cor0
----
NULL
3

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 31 * + col2 col2 FROM tab1
----
-1829
-2108
-2976

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT BETWEEN col1 + + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6332
SELECT 17 * + ( COUNT( * ) ) FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-6332
SELECT 17 * + ( COUNT ( * ) ) FROM tab1
----
51

query I rowsort
SELECT - 54 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6334
SELECT ( + + col2 ) DIV + col2 + + col2 FROM tab2
----
24
41
59

skipif mysql # not compatible
query I rowsort label-6334
SELECT ( + + col2 ) / + col2 + + col2 FROM tab2
----
24
41
59

query III rowsort
SELECT * FROM tab2 WHERE - + 81 IS NULL
----

query I rowsort
SELECT DISTINCT - 35 + + 82 AS col0 FROM tab1
----
47

query I rowsort
SELECT + col2 AS col1 FROM tab0 AS cor0 WHERE NULL <> + col1
----

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6339
SELECT + 12 AS col2, COUNT( * ) + - COUNT( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
12
0

skipif mysql # not compatible
query II rowsort label-6339
SELECT + 12 AS col2, COUNT ( * ) + - COUNT ( * ) AS col0 FROM tab0 WHERE NULL IS NULL
----
12
0

query I rowsort
SELECT col0 * - 89 AS col0 FROM tab0
----
-1335
-7743
-8633

query I rowsort
SELECT DISTINCT ( + col2 ) * col1 + - col0 * - - col1 FROM tab1
----
-1081
-130
630

query I rowsort
SELECT - + col2 - - - col1 + + 96 + + col2 AS col0 FROM tab0 cor0
----
15
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6343
SELECT - COUNT( * ) - + - COUNT( * ) AS col0 FROM tab2 AS cor0
----
0

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

query I rowsort
SELECT - 22 + 6 FROM tab0 AS cor0
----
-16
-16
-16

onlyif mysql # DIV for integer division: 
query I rowsort label-6345
SELECT DISTINCT - - col0 * + col0 - + col1 + col0 DIV col2 FROM tab2 cor0
----
2067
4020
5559

skipif mysql # not compatible
query I rowsort label-6345
SELECT DISTINCT - - col0 * + col0 - + col1 + col0 / col2 FROM tab2 cor0
----
2067
4020
5559

query I rowsort
SELECT ALL + 70 + ( col0 ) AS col1 FROM tab2 AS cor0
----
116
134
145

onlyif mysql # DIV for integer division: 
query III rowsort label-6347
SELECT col0 + - 42 + - - 25 AS col1, ( ( - col0 ) ) col1, + + col1 DIV col1 DIV col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to bef9e9bea818003d3e01b136e55e373f

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-6347
SELECT col0 + - 42 + - - 25 AS col1, ( ( - col0 ) ) col1, + + col1 / col1 / col2 AS col0 FROM tab0 AS cor0
----
9 values hashing to bef9e9bea818003d3e01b136e55e373f

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6348
SELECT ALL col0 * - col2 + - 63 / - col0 - - 70 + col0 - CAST( NULL AS SIGNED ) * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6348
SELECT ALL col0 * - col2 + - 63 / - col0 - - 70 + col0 - CAST ( NULL AS INTEGER ) * + + col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

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

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

skipif mysql # not compatible
query I rowsort label-6350
SELECT DISTINCT + - col2 FROM tab2 WHERE NOT + CAST ( + - col2 AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6351
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE NULL = NULL
----
0

skipif mysql # not compatible
query I rowsort label-6351
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE NULL = NULL
----
0

query I rowsort
SELECT ALL + 97 AS col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # DIV for integer division: 
query I rowsort label-6353
SELECT - 99 DIV - - col0 FROM tab2
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-6353
SELECT - 99 / - - col0 FROM tab2
----
-1
-1
-2

query I rowsort
SELECT - 52 AS col0 FROM tab2 WHERE NOT ( col2 * - col0 NOT BETWEEN NULL AND 2 * + - col2 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6356
SELECT ALL - SUM( ALL - ( + - 49 ) ) FROM tab2
----
-147

skipif mysql # not compatible
query I rowsort label-6356
SELECT ALL - SUM ( ALL - ( + - 49 ) ) FROM tab2
----
-147

query I rowsort
SELECT col1 + - 59 FROM tab0 AS cor0
----
-38
-58
22

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-6358
SELECT ALL + col1 AS col0, CAST( NULL AS DECIMAL ) * col2 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 47 IS NULL
----
14
NULL
47
NULL
5
NULL

skipif mysql # not compatible
query II rowsort label-6358
SELECT ALL + col1 AS col0, CAST ( NULL AS REAL ) * col2 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT + 47 IS NULL
----
14
NULL
47
NULL
5
NULL

query I rowsort
SELECT 59 + col1 FROM tab0 cor0
----
140
60
80

query I rowsort
SELECT DISTINCT - col0 * + 37 + + col0 FROM tab0 AS cor0
----
-3132
-3492
-540

query I rowsort
SELECT + 68 FROM tab0 AS cor0 WHERE + col0 + - col0 IS NOT NULL
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6362
SELECT + 71 * - - COUNT( * ) AS col2 FROM tab2
----
213

skipif mysql # not compatible
query I rowsort label-6362
SELECT + 71 * - - COUNT ( * ) AS col2 FROM tab2
----
213

query II rowsort
SELECT - 97 AS col0, 48 - - col2 + - col0 + + col2 AS col1 FROM tab0
----
-97
-19
-97
127
-97
149

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 86 * - + col2 col2 FROM tab1
----
-5074
-5848
-8256

query I rowsort
SELECT DISTINCT 17 + - col2 * + 89 FROM tab2
----
-2030
-3543
-5145

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6367
SELECT - 25 + COUNT( * ) + + 23 AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-6367
SELECT - 25 + COUNT ( * ) + + 23 AS col1 FROM tab0
----
1

query I rowsort
SELECT col2 * - col1 + + ( - ( - + col1 ) ) FROM tab2
----
-1122
-3003
-3819

query I rowsort
SELECT DISTINCT + col1 - + + 53 FROM tab1 AS cor0
----
-39
-48
-6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6370
SELECT ALL - SUM( - 68 ) col1 FROM tab1 AS cor0 WHERE - col2 * + col1 - + CAST( NULL AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6370
SELECT ALL - SUM ( - 68 ) col1 FROM tab1 AS cor0 WHERE - col2 * + col1 - + CAST ( NULL AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-6371
SELECT ALL - 62 DIV - col2, - col1 AS col1 FROM tab0 AS cor0
----
0
-1
1
-81
6
-21

skipif mysql # not compatible
query II rowsort label-6371
SELECT ALL - 62 / - col2, - col1 AS col1 FROM tab0 AS cor0
----
0
-1
1
-81
6
-21

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 * - col2 / + col2 + + + col1 + col1 * col0 IS NULL
----

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

query I rowsort
SELECT 90 * + 98 AS col2 FROM tab0 AS cor0
----
8820
8820
8820

onlyif mysql # aggregate syntax: 
query I rowsort label-6375
SELECT ALL COUNT( * ) * - 64 AS col1 FROM tab2
----
-192

skipif mysql # not compatible
query I rowsort label-6375
SELECT ALL COUNT ( * ) * - 64 AS col1 FROM tab2
----
-192

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-6378
SELECT DISTINCT + 53 DIV col1 * - - col0 col1, + col2 * - col1 AS col0 FROM tab2
----
0
-3080
0
-3886
46
-1173

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-6378
SELECT DISTINCT + 53 / col1 * - - col0 col1, + col2 * - col1 AS col0 FROM tab2
----
0
-3080
0
-3886
46
-1173

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + col0 BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 59 AS col1 FROM tab0 cor0
----
59
59
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6381
SELECT - - SUM( - ( - + 66 ) ), - COUNT( * ) AS col2 FROM tab2 AS cor0
----
198
-3

skipif mysql # not compatible
query II rowsort label-6381
SELECT - - SUM ( - ( - + 66 ) ), - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
198
-3

query I rowsort
SELECT + - col2 * - 42 AS col0 FROM tab2 AS cor0
----
1680
2436
966

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 + - col1 > + col2
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + + ( - 22 ) <= + 17
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT ( + col1 ) AS col0, - col2 + - col0 * - - col2 FROM tab0 AS cor0
----
1
-9702
21
-880
81
-752

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6388
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / - CAST( NULL AS DECIMAL ) + 38 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6388
SELECT ALL * FROM tab0 AS cor0 WHERE col1 / - CAST ( NULL AS REAL ) + 38 IS NOT NULL
----

query I rowsort
SELECT + col0 AS col0 FROM tab1 WHERE ( NOT NULL = 79 + 28 + col0 )
----

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

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

skipif mysql # not compatible
query I rowsort label-6391
SELECT DISTINCT 48 + - + COUNT ( * ) * - + 98 + COUNT ( * ) * - 98 FROM tab1
----
48

query II rowsort
SELECT col0 + + col0 + - 10 * col1 * + 93 + col0, col1 AS col0 FROM tab2
----
-47292
51
-62085
67
-71418
77

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

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

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

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

query I rowsort
SELECT - col2 * + col2 * + + 45 AS col1 FROM tab0 cor0
----
-441045
-4500
-99405

query II rowsort
SELECT - + col0 * - col1 / - col0, + ( col2 ) AS col2 FROM tab2 cor0 WHERE NULL <> - col1 OR + col0 IS NULL
----

query I rowsort
SELECT - - col2 FROM tab1 AS cor0 WHERE - 28 IS NOT NULL
----
59
68
96

query I rowsort
SELECT ALL + ( + + col0 ) - + col1 AS col2 FROM tab2 AS cor0
----
-13
-5
8

query I rowsort
SELECT ALL - - ( - - col2 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
23
40
58

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6401
SELECT COUNT( * ) * CAST( + + 30 AS SIGNED ) AS col1 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-6401
SELECT COUNT ( * ) * CAST ( + + 30 AS INTEGER ) AS col1 FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 * - - 42 col2 FROM tab0 AS cor0
----
3402
42
882

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

query I rowsort
SELECT DISTINCT - col1 * + - 53 * col1 * - col1 FROM tab2 AS cor0
----
-15940439
-24196249
-7030503

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

query III rowsort
SELECT DISTINCT 17, col0, col0 AS col2 FROM tab0 cor0
----
9 values hashing to 3b03606fa696967389cd950b80770967

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

query I rowsort
SELECT - + 44 AS col2 FROM tab2 AS cor0
----
-44
-44
-44

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 53 * + + 21 col0 FROM tab1
----
-1113

query I rowsort
SELECT ALL - col0 * 53 FROM tab0
----
-4611
-5141
-795

onlyif mysql # aggregate syntax: 
query I rowsort label-6412
SELECT DISTINCT 21 * + COUNT( * ) AS col2 FROM tab1
----
63

skipif mysql # not compatible
query I rowsort label-6412
SELECT DISTINCT 21 * + COUNT ( * ) AS col2 FROM tab1
----
63

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6413
SELECT DISTINCT COUNT( ALL + + col0 ) * CAST( - 90 AS SIGNED ) FROM tab0
----
-270

skipif mysql # not compatible
query I rowsort label-6413
SELECT DISTINCT COUNT ( ALL + + col0 ) * CAST ( - 90 AS INTEGER ) FROM tab0
----
-270

onlyif mysql # aggregate syntax: 
query I rowsort label-6414
SELECT COUNT( * ) * - 82 * - + 42 * + 72 AS col2 FROM tab0
----
743904

skipif mysql # not compatible
query I rowsort label-6414
SELECT COUNT ( * ) * - 82 * - + 42 * + 72 AS col2 FROM tab0
----
743904

query III rowsort
SELECT * FROM tab0 WHERE NOT + 25 >= + col2 * ( - col1 ) - - 33
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6416
SELECT COUNT( * ) DIV - MIN( ALL - - 69 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-6416
SELECT COUNT ( * ) / - MIN ( ALL - - 69 ) AS col1 FROM tab0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6417
SELECT MAX( + ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-6417
SELECT MAX ( + ( + - col0 ) ) AS col0 FROM tab1 AS cor0
----
-51

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6419
SELECT ALL + 16 + - + col2 DIV 2 + + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - 50 ) * - col0 + 25 IS NULL
----
-130
-22
-76

skipif mysql # not compatible
query I rowsort label-6419
SELECT ALL + 16 + - + col2 / 2 + + - col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( - - 50 ) * - col0 + 25 IS NULL
----
-130
-22
-76

query I rowsort
SELECT DISTINCT + + col2 + + 68 AS col0 FROM tab1 AS cor0
----
127
136
164

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6421
SELECT ALL - ( col1 ) + - col2 + + + CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NOT + col1 / - 39 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-6421
SELECT ALL - ( col1 ) + - col2 + + + CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NOT + col1 / - 39 IS NULL
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6422
SELECT + col2 DIV - 93 - + - col1 FROM tab0 AS cor0
----
0
21
81

skipif mysql # not compatible
query I rowsort label-6422
SELECT + col2 / - 93 - + - col1 FROM tab0 AS cor0
----
0
21
81

query I rowsort
SELECT DISTINCT + 48 * - col0 FROM tab1 AS cor0
----
-2448
-4080
-4368

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6424
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 33 + + - CAST( NULL AS SIGNED ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-6424
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - 33 + + - CAST ( NULL AS INTEGER ) * - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-6425
SELECT DISTINCT - 25 * 44 DIV col0 FROM tab1
----
-12
-21

skipif mysql # not compatible
query I rowsort label-6425
SELECT DISTINCT - 25 * 44 / col0 FROM tab1
----
-12
-21

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

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

query I rowsort
SELECT - col2 * - col0 * - - 84 FROM tab2
----
215040
365400
88872

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6428
SELECT ALL 10 + CAST( NULL AS SIGNED ) / - + 59 * - 21 + - 72 + - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6428
SELECT ALL 10 + CAST ( NULL AS INTEGER ) / - + 59 * - 21 + - 72 + - + COUNT ( * ) FROM tab1
----
NULL

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

skipif mysql # not compatible
query I rowsort label-6429
SELECT DISTINCT - 48 / COUNT ( * ) + + COUNT ( * ) AS col0 FROM tab1
----
-13

query I rowsort
SELECT ALL - 44 * + + col1 + - col1 FROM tab0 cor0
----
-3645
-45
-945

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) <> col2
----

query I rowsort
SELECT DISTINCT + col2 - + - col0 * 43 AS col2 FROM tab1 AS cor0
----
2289
3714
3981

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6434
SELECT COUNT( * ) + - COUNT( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-6434
SELECT COUNT ( * ) + - COUNT ( ALL + col1 ) AS col0 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + 99 + - 79 AS col1 FROM tab1 AS cor0
----
20
20
20

query I rowsort
SELECT ALL - ( + 37 ) * - 9 FROM tab1 AS cor0
----
333
333
333

query I rowsort
SELECT + col0 * + + col2 FROM tab2 cor0
----
1058
2560
4350

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6438
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - CAST( - 10 AS SIGNED ) >= + 63 * + col1 + - - col0 + - col0
----
-3

skipif mysql # not compatible
query I rowsort label-6438
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - CAST ( - 10 AS INTEGER ) >= + 63 * + col1 + - - col0 + - col0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL <= + 16
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6440
SELECT ALL 3 * 63 * + SUM( DISTINCT + 76 ) * COUNT( * ) FROM tab2
----
43092

skipif mysql # not compatible
query I rowsort label-6440
SELECT ALL 3 * 63 * + SUM ( DISTINCT + 76 ) * COUNT ( * ) FROM tab2
----
43092

onlyif mysql # DIV for integer division: 
query I rowsort label-6441
SELECT col1 DIV - ( + + col2 ) AS col0 FROM tab0
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-6441
SELECT col1 / - ( + + col2 ) AS col0 FROM tab0
----
-1
-2
0

query I rowsort
SELECT - + col1 + 5 FROM tab1 AS cor0
----
-42
-9
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6444
SELECT 98 + + MIN( + 47 ) FROM tab0 WHERE NULL BETWEEN ( NULL ) AND 40 + + 71 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6444
SELECT 98 + + MIN ( + 47 ) FROM tab0 WHERE NULL BETWEEN ( NULL ) AND 40 + + 71 + col2
----
NULL

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6447
SELECT DISTINCT + COUNT( ALL + CAST( + + col2 AS SIGNED ) ) + + 83 AS col0 FROM tab0 cor0
----
86

skipif mysql # not compatible
query I rowsort label-6447
SELECT DISTINCT + COUNT ( ALL + CAST ( + + col2 AS INTEGER ) ) + + 83 AS col0 FROM tab0 cor0
----
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 * + - col0 col0 FROM tab2 AS cor0
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - - col0 * 22 + - + col1 AS col0 FROM tab1 cor0 WHERE NULL = 84
----

query I rowsort
SELECT col2 + + 35 AS col2 FROM tab0 AS cor0
----
134
45
82

query I rowsort
SELECT DISTINCT - col0 * + 23 AS col1 FROM tab0 cor0
----
-2001
-2231
-345

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6453
SELECT DISTINCT + 90 * - COUNT( * ) * + COUNT( * ) AS col2 FROM tab1
----
-810

skipif mysql # not compatible
query I rowsort label-6453
SELECT DISTINCT + 90 * - COUNT ( * ) * + COUNT ( * ) AS col2 FROM tab1
----
-810

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6454
SELECT DISTINCT COUNT( * ) + AVG ( DISTINCT - 98 ) / + ( CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-6454
SELECT DISTINCT COUNT ( * ) + AVG ( DISTINCT - 98 ) / + ( CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6455
SELECT DISTINCT - col0 FROM tab0 WHERE NOT col2 * col2 + CAST( NULL AS SIGNED ) - - - col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-6455
SELECT DISTINCT - col0 FROM tab0 WHERE NOT col2 * col2 + CAST ( NULL AS INTEGER ) - - - col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 58 + + - 96 AS col2 FROM tab1
----
-154

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6458
SELECT DISTINCT ( col1 ) - - 88 + + - col1 DIV - 59 FROM tab0 AS cor0
----
109
170
89

skipif mysql # not compatible
query I rowsort label-6458
SELECT DISTINCT ( col1 ) - - 88 + + - col1 / - 59 FROM tab0 AS cor0
----
109
170
89

query I rowsort
SELECT ALL + col1 * + col2 + + col1 + - col1 * + 21 FROM tab0 AS cor0
----
-210
2187
79

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

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

skipif mysql # not compatible
query I rowsort label-6461
SELECT - + MIN ( 67 ) FROM tab1 AS cor0
----
-67

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

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

query I rowsort
SELECT + + ( + col0 ) * + col2 AS col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT NULL > + col1 + - col1
----

query I rowsort
SELECT + ( - col1 ) * + - 52 * - ( + col1 ) * 70 + - col2 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-16340093
-21581664
-9467709

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + col2 NOT BETWEEN + 52 + + col0 + + - col1 AND NULL
----

query II rowsort
SELECT col0 AS col1, 17 AS col1 FROM tab2
----
46
17
64
17
75
17

query I rowsort
SELECT ALL 68 AS col0 FROM tab2 WHERE - col0 + col1 IS NOT NULL
----
68
68
68

query I rowsort
SELECT ALL - 31 + 52 AS col0 FROM tab2
----
21
21
21

query I rowsort
SELECT + 76 + - 26 - - col2 + + col2 FROM tab1 WHERE NOT - ( + - col0 ) <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN col0 / col0 AND NULL
----

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

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

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

query II rowsort
SELECT ALL - 24 AS col1, 65 * - col2 AS col2 FROM tab1 AS cor0
----
-24
-3835
-24
-4420
-24
-6240

query I rowsort
SELECT ALL col1 AS col2 FROM tab0 AS cor0 WHERE NOT ( - ( + col2 ) ) / + + 66 * - col2 <= - col0 + - col1
----
1
21
81

query I rowsort
SELECT DISTINCT + 79 FROM tab2 WHERE + col1 IS NOT NULL
----
79

query I rowsort
SELECT DISTINCT - + col1 * + + col0 - + 50 FROM tab1 AS cor0
----
-4327
-475
-764

query I rowsort
SELECT DISTINCT - - 20 + + 14 FROM tab0 cor0
----
34

query I rowsort
SELECT ALL - 62 - + col2 FROM tab0 AS cor0
----
-109
-161
-72

query I rowsort
SELECT - - col1 * 75 FROM tab1 AS cor0
----
1050
3525
375

query I rowsort
SELECT - 10 * - 27 AS col1 FROM tab1 AS cor0
----
270
270
270

onlyif mysql # DIV for integer division: 
query II rowsort label-6482
SELECT ALL - col1 DIV col0 AS col0, 11 + ( + col0 ) FROM tab1 AS cor0
----
0
102
0
62
0
96

skipif mysql # not compatible
query II rowsort label-6482
SELECT ALL - col1 / col0 AS col0, 11 + ( + col0 ) FROM tab1 AS cor0
----
0
102
0
62
0
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6483
SELECT + + MAX( ALL - + 67 ) * - COUNT( * ) FROM tab2 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-6483
SELECT + + MAX ( ALL - + 67 ) * - COUNT ( * ) FROM tab2 AS cor0
----
201

query I rowsort
SELECT - col2 + + col1 + - col0 AS col0 FROM tab1 WHERE ( NOT ( + + 88 ) NOT BETWEEN col0 + - + col2 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6485
SELECT + SUM( ALL - col0 ) * + COUNT( * ) * - COUNT( * ) AS col0 FROM tab2
----
1665

skipif mysql # not compatible
query I rowsort label-6485
SELECT + SUM ( ALL - col0 ) * + COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab2
----
1665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6486
SELECT MIN( col0 ) / CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-6486
SELECT MIN ( col0 ) / CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-6487
SELECT ALL - MAX( - 99 ) AS col0, - ( - 64 ) FROM tab2
----
99
64

skipif mysql # not compatible
query II rowsort label-6487
SELECT ALL - MAX ( - 99 ) AS col0, - ( - 64 ) FROM tab2
----
99
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6488
SELECT DISTINCT CAST( + ( + - 54 ) AS SIGNED ) * 87 + + 95 FROM tab0
----
-4603

skipif mysql # not compatible
query I rowsort label-6488
SELECT DISTINCT CAST ( + ( + - 54 ) AS INTEGER ) * 87 + + 95 FROM tab0
----
-4603

query III rowsort
SELECT * FROM tab1 WHERE - 40 * 43 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - + col0 * + col1 * - col2 IS NOT NULL
----

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

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

query II rowsort
SELECT DISTINCT - col1 * + - col2 AS col0, + col0 AS col1 FROM tab1 AS cor0
----
1344
51
295
85
3196
91

query I rowsort
SELECT ALL - + col2 * + - 60 FROM tab1 AS cor0
----
3540
4080
5760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + col2 + + 89 col0 FROM tab1 AS cor0
----
3570
4713
9305

query II rowsort
SELECT DISTINCT + col1 * - col1 AS col0, + ( col2 ) FROM tab0 AS cor0
----
-1
99
-441
10
-6561
47

onlyif mysql # DIV for integer division: 
query II rowsort label-6496
SELECT ALL + - 91 DIV + - 3 AS col1, 29 FROM tab2 AS cor0
----
30
29
30
29
30
29

skipif mysql # not compatible
query II rowsort label-6496
SELECT ALL + - 91 / + - 3 AS col1, 29 FROM tab2 AS cor0
----
30
29
30
29
30
29

onlyif mysql # aggregate syntax: 
query I rowsort label-6497
SELECT DISTINCT 23 * - + 25 * + COUNT( * ) * + + 1 FROM tab1
----
-1725

skipif mysql # not compatible
query I rowsort label-6497
SELECT DISTINCT 23 * - + 25 * + COUNT ( * ) * + + 1 FROM tab1
----
-1725

query I rowsort
SELECT col1 * - 3 AS col1 FROM tab2 AS cor0
----
-153
-201
-231

query II rowsort
SELECT + 85, col0 AS col2 FROM tab1 AS cor0
----
85
51
85
85
85
91

query II rowsort
SELECT ALL - - col1 AS col1, - 5 * col2 - + col1 FROM tab0 cor0
----
1
-496
21
-71
81
-316

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

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

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 44 * + col1 col1 FROM tab2 WHERE NOT NULL <> + 62
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6505
SELECT COUNT( 5 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-6505
SELECT COUNT ( 5 ) AS col0 FROM tab2
----
3

query I rowsort
SELECT + col0 + - col1 + 52 FROM tab0
----
-14
118
148

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

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

query I rowsort
SELECT ALL col0 + - - 2 FROM tab2
----
48
66
77

query I rowsort
SELECT - 95 + col1 AS col1 FROM tab0
----
-14
-74
-94

query I rowsort
SELECT 95 + + - ( col0 ) AS col2 FROM tab0 AS cor0
----
-2
8
80

query I rowsort
SELECT ALL - col2 FROM tab1 cor0 WHERE NOT + 45 * - col0 IS NULL
----
-59
-68
-96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( + col2 / - 38 + + col1 * - 95, + 27 * - col1 * + + col0 - + - col1 - + + col0 + + col1 )
----

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

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

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

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

query I rowsort
SELECT - + 11 + + 22 AS col1 FROM tab2 AS cor0
----
11
11
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 - - col2 col0 FROM tab2 AS cor0
----
104
133
69

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

query I rowsort
SELECT DISTINCT + col1 FROM tab0 WHERE NOT NULL >= - + 36 * - col2 * - col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6519
SELECT + CAST( - col1 AS SIGNED ) * - + col1 FROM tab0
----
1
441
6561

skipif mysql # not compatible
query I rowsort label-6519
SELECT + CAST ( - col1 AS INTEGER ) * - + col1 FROM tab0
----
1
441
6561

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

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

query I rowsort
SELECT + 68 * - col0 FROM tab0
----
-1020
-5916
-6596

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

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

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

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN - col1 AND ( + + 80 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6526
SELECT + + 8 + - 40 * - SUM( DISTINCT + + 83 ) AS col1 FROM tab2 AS cor0
----
3328

skipif mysql # not compatible
query I rowsort label-6526
SELECT + + 8 + - 40 * - SUM ( DISTINCT + + 83 ) AS col1 FROM tab2 AS cor0
----
3328

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6529
SELECT - 91 * + COUNT( * ) FROM tab0 WHERE - col2 <= + - 92 * col1
----
-91

skipif mysql # not compatible
query I rowsort label-6529
SELECT - 91 * + COUNT ( * ) FROM tab0 WHERE - col2 <= + - 92 * col1
----
-91

query I rowsort
SELECT col0 * 99 AS col0 FROM tab2
----
4554
6336
7425

query II rowsort
SELECT 47, col2 AS col2 FROM tab0
----
47
10
47
47
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6532
SELECT DISTINCT + SUM( DISTINCT + + col2 ) + 22 AS col0 FROM tab1
----
245

skipif mysql # not compatible
query I rowsort label-6532
SELECT DISTINCT + SUM ( DISTINCT + + col2 ) + 22 AS col0 FROM tab1
----
245

query I rowsort
SELECT col1 FROM tab0 WHERE ( - 7 ) NOT BETWEEN col2 AND 12
----
1
21
81

query I rowsort
SELECT ALL - 35 + - col2 FROM tab1
----
-103
-131
-94

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col1 * + 47 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6536
SELECT COUNT( * ) + - 32 FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-6536
SELECT COUNT ( * ) + - 32 FROM tab1 AS cor0
----
-29

onlyif mysql # DIV for integer division: 
query I rowsort label-6537
SELECT DISTINCT - col2 * col1 + col1 DIV col2 AS col2 FROM tab0
----
-208
-3806
-99

skipif mysql # not compatible
query I rowsort label-6537
SELECT DISTINCT - col2 * col1 + col1 / col2 AS col2 FROM tab0
----
-208
-3806
-99

query I rowsort
SELECT col1 * 86 FROM tab1
----
1204
4042
430

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

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

query I rowsort
SELECT ALL - 4 * + col1 FROM tab0
----
-324
-4
-84

query I rowsort
SELECT + 17 * 69 AS col1 FROM tab1 WHERE ( + col1 * col0 ) <= + 88 / - col2 + - col2
----

query I rowsort
SELECT DISTINCT + col2 * - ( 56 ) AS col0 FROM tab0
----
-2632
-5544
-560

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6544
SELECT ALL - MAX( col2 ) DIV 88 FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-6544
SELECT ALL - MAX ( col2 ) / 88 FROM tab1
----
-1

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 91 / 6 > col1
----
91
47
68

onlyif mysql # aggregate syntax: 
query I rowsort label-6547
SELECT MIN( + 76 ) AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-6547
SELECT MIN ( + 76 ) AS col0 FROM tab0
----
76

query I rowsort
SELECT ALL col0 + + 9 FROM tab1 WHERE NOT NULL IS NOT NULL
----
100
60
94

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6549
SELECT DISTINCT 30 DIV - COUNT( * ) AS col2 FROM tab1
----
-10

skipif mysql # not compatible
query I rowsort label-6549
SELECT DISTINCT 30 / - COUNT ( * ) AS col2 FROM tab1
----
-10

query I rowsort
SELECT ALL 36 + col1 * col0 AS col2 FROM tab1
----
4313
461
750

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

query III rowsort
SELECT * FROM tab0 WHERE 33 * col0 - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6553
SELECT DISTINCT + MAX( ALL - 31 ) FROM tab2 WHERE NULL BETWEEN col2 AND col2
----
NULL

skipif mysql # not compatible
query I rowsort label-6553
SELECT DISTINCT + MAX ( ALL - 31 ) FROM tab2 WHERE NULL BETWEEN col2 AND col2
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6555
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + col0 + - CAST( col1 AS SIGNED ) * 70 IS NOT NULL
----
10
47
99

skipif mysql # not compatible
query I rowsort label-6555
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + col0 + - CAST ( col1 AS INTEGER ) * 70 IS NOT NULL
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-6556
SELECT ALL + COUNT( * ) * - MIN( DISTINCT 43 ) FROM tab0 cor0 WHERE ( NULL ) <> - 39
----
NULL

skipif mysql # not compatible
query I rowsort label-6556
SELECT ALL + COUNT ( * ) * - MIN ( DISTINCT 43 ) FROM tab0 cor0 WHERE ( NULL ) <> - 39
----
NULL

query I rowsort
SELECT DISTINCT + col1 + col2 AS col2 FROM tab2 AS cor0 WHERE 52 BETWEEN - col0 * 70 AND NULL
----

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

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

skipif mysql # not compatible
query I rowsort label-6559
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT + ( col1 ) > + col1 - 31
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6560
SELECT ALL CAST( + 31 AS SIGNED ) AS col2 FROM tab2 AS cor0
----
31
31
31

skipif mysql # not compatible
query I rowsort label-6560
SELECT ALL CAST ( + 31 AS INTEGER ) AS col2 FROM tab2 AS cor0
----
31
31
31

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6562
SELECT col2 FROM tab2 WHERE NOT - ( - col1 ) * - 44 BETWEEN CAST( NULL AS DECIMAL ) AND ( col0 )
----

skipif mysql # not compatible
query I rowsort label-6562
SELECT col2 FROM tab2 WHERE NOT - ( - col1 ) * - 44 BETWEEN CAST ( NULL AS REAL ) AND ( col0 )
----

query I rowsort
SELECT DISTINCT - 31 FROM tab1 AS cor0 CROSS JOIN tab1
----
-31

query I rowsort
SELECT 79 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query IIIIII rowsort
SELECT * FROM tab1 cor0 LEFT OUTER JOIN tab1 ON NULL < NULL
----
18 values hashing to d882cc47988b8673bd5cc0da3b69bcc6

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

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

query I rowsort
SELECT ALL + + 81 AS col0 FROM tab1 AS cor0
----
81
81
81

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

query I rowsort
SELECT - 57 * + 44 FROM tab2 AS cor0
----
-2508
-2508
-2508

query I rowsort
SELECT + + 30 * + 55 AS col1 FROM tab0 cor0
----
1650
1650
1650

query I rowsort
SELECT ALL - col1 * - 74 FROM tab2 AS cor0
----
3774
4958
5698

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col2 > col2 * 99
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - 33 IS NOT NULL
----

query I rowsort
SELECT ALL 17 + + col0 * + col0 FROM tab1
----
2618
7242
8298

query III rowsort
SELECT * FROM tab2 WHERE 30 * - col1 NOT BETWEEN - col0 + col2 AND 41
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-6577
SELECT ALL - 13 + + COUNT( * ) AS col2 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-6577
SELECT ALL - 13 + + COUNT ( * ) AS col2 FROM tab2
----
-10

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

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

query I rowsort
SELECT col0 + 49 AS col2 FROM tab1 WHERE + ( + col0 ) + 60 NOT BETWEEN - col0 AND - col0
----
100
134
140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 3 + - 84 col0 FROM tab2
----
-87
-87
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-6581
SELECT + COUNT( * ) col1 FROM tab0 WHERE - 20 IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6581
SELECT + COUNT ( * ) col1 FROM tab0 WHERE - 20 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-6582
SELECT 93 + 1 * - MIN( ( col1 ) * + 96 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6582
SELECT 93 + 1 * - MIN ( ( col1 ) * + 96 ) FROM tab1 WHERE - col2 IS NULL
----
NULL

query I rowsort
SELECT + 27 + + 80 + - 18 AS col1 FROM tab0 AS cor0
----
89
89
89

onlyif mysql # DIV for integer division: 
query I rowsort label-6584
SELECT ALL + 13 DIV + + 83 + - 16 FROM tab0 AS cor0
----
-16
-16
-16

skipif mysql # not compatible
query I rowsort label-6584
SELECT ALL + 13 / + + 83 + - 16 FROM tab0 AS cor0
----
-16
-16
-16

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 33 <= NULL
----

query I rowsort
SELECT col0 * + 31 * 55 FROM tab0 AS cor0
----
148335
165385
25575

query I rowsort
SELECT DISTINCT + 77 * + col1 + - 76 FROM tab0 cor0
----
1
1541
6161

query I rowsort
SELECT + 43 + col2 AS col0 FROM tab0 AS cor0
----
142
53
90

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

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE col1 / - col1 > NULL
----

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

skipif mysql # not compatible
query I rowsort label-6591
SELECT DISTINCT - - ( ( COUNT ( * ) ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + + 33 AS col1 FROM tab0 AS cor0
----
33
33
33

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

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT 16 + + - 20 BETWEEN col1 AND ( NULL )
----
-23
-40
-58

query I rowsort
SELECT - 10 * col2 AS col2 FROM tab1
----
-590
-680
-960

onlyif mysql # aggregate syntax: 
query I rowsort label-6596
SELECT + 41 * + MAX( - - col1 ) FROM tab2
----
3157

skipif mysql # not compatible
query I rowsort label-6596
SELECT + 41 * + MAX ( - - col1 ) FROM tab2
----
3157

query I rowsort
SELECT DISTINCT - ( - + 87 ) FROM tab1
----
87

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 57 IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 74 * - - 67 FROM tab0
----
4958
4958
4958

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6601
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE ( - col1 ) IN ( + 29 )
----
0

skipif mysql # not compatible
query I rowsort label-6601
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE ( - col1 ) IN ( + 29 )
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 / - + col1 * + + col1 * - 85 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6603
SELECT 69 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( - CAST( + + col1 AS SIGNED ) AS SIGNED ) * - col2 <= 7
----

skipif mysql # not compatible
query I rowsort label-6603
SELECT 69 AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( - CAST ( + + col1 AS INTEGER ) AS INTEGER ) * - col2 <= 7
----

query I rowsort
SELECT ALL - - 65 AS col2 FROM tab2 AS cor0
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-6605
SELECT ALL + COUNT( * ) * - 82 FROM tab1
----
-246

skipif mysql # not compatible
query I rowsort label-6605
SELECT ALL + COUNT ( * ) * - 82 FROM tab1
----
-246

query I rowsort
SELECT DISTINCT - 56 FROM tab2 WHERE col0 + - 25 BETWEEN + col0 - + 10 / col1 AND 46
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + - 37 col0 FROM tab1 cor0
----
22
31
59

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6610
SELECT ALL - + CAST( NULL AS SIGNED ) + - CAST( NULL AS SIGNED ) / - COUNT( * ) / + 38 col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6610
SELECT ALL - + CAST ( NULL AS INTEGER ) + - CAST ( NULL AS INTEGER ) / - COUNT ( * ) / + 38 col1 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT - ( - col0 ) / - + col1 * col1 + - col2 AS col1 FROM tab1 AS cor0 WHERE ( col0 ) >= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN ( 91 * + 61 ) AND + col1
----

query I rowsort
SELECT DISTINCT - - 38 AS col2 FROM tab1 cor0
----
38

query I rowsort
SELECT DISTINCT + col0 * col0 * 26 AS col0 FROM tab0 AS cor0
----
196794
244634
5850

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6616
SELECT ALL - 54 * - COUNT( * ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-6616
SELECT ALL - 54 * - COUNT ( * ) FROM tab1 AS cor0
----
162

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6618
SELECT - col2 DIV - 29 AS col1 FROM tab0 AS cor0
----
0
1
3

skipif mysql # not compatible
query I rowsort label-6618
SELECT - col2 / - 29 AS col1 FROM tab0 AS cor0
----
0
1
3

query I rowsort
SELECT DISTINCT - + 25 * - 37 FROM tab0 AS cor0
----
925

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6621
SELECT DISTINCT - - COUNT( - ( col1 ) ) FROM tab2 WHERE ( NULL <> ( NULL ) )
----
0

skipif mysql # not compatible
query I rowsort label-6621
SELECT DISTINCT - - COUNT ( - ( col1 ) ) FROM tab2 WHERE ( NULL <> ( NULL ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6622
SELECT ALL 28 * COUNT( * ) FROM tab2
----
84

skipif mysql # not compatible
query I rowsort label-6622
SELECT ALL 28 * COUNT ( * ) FROM tab2
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-6623
SELECT ALL MAX( DISTINCT + col2 ) + - COUNT( * ) + - 75 FROM tab1
----
18

skipif mysql # not compatible
query I rowsort label-6623
SELECT ALL MAX ( DISTINCT + col2 ) + - COUNT ( * ) + - 75 FROM tab1
----
18

query I rowsort
SELECT col2 FROM tab0 WHERE + - 79 * + - col1 + + + col1 * - col0 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6625
SELECT ALL - CAST( NULL AS SIGNED ) * COUNT( * ) AS col2 FROM tab0 WHERE ( + + col2 * - + ( - 55 ) ) BETWEEN + col0 + col1 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6625
SELECT ALL - CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col2 FROM tab0 WHERE ( + + col2 * - + ( - 55 ) ) BETWEEN + col0 + col1 AND NULL
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6627
SELECT DISTINCT - MAX( ALL - col0 ) * - 11 FROM tab1
----
-561

skipif mysql # not compatible
query I rowsort label-6627
SELECT DISTINCT - MAX ( ALL - col0 ) * - 11 FROM tab1
----
-561

query II rowsort
SELECT + col2, col1 + + + col1 + + + 68 AS col1 FROM tab1
----
59
78
68
162
96
96

query I rowsort
SELECT DISTINCT col1 / col0 + col1 FROM tab2 WHERE ( NULL ) BETWEEN col2 AND - + 17 + - col2 + - + ( col0 ) + ( 5 + - col0 / - col1 ) * - col2
----

query II rowsort
SELECT - 99 AS col0, - 70 - + col1 * - - 34 AS col1 FROM tab1
----
-99
-1668
-99
-240
-99
-546

onlyif mysql # aggregate syntax: 
query I rowsort label-6631
SELECT ALL + MIN( + 43 ) + - COUNT( * ) * + SUM( ALL col0 ) FROM tab1 AS cor0 WHERE col1 <> NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-6631
SELECT ALL + MIN ( + 43 ) + - COUNT ( * ) * + SUM ( ALL col0 ) FROM tab1 AS cor0 WHERE col1 <> NULL
----
NULL

query I rowsort
SELECT - col0 - + 74 FROM tab2 cor0
----
-120
-138
-149

query I rowsort
SELECT col2 + + 69 AS col1 FROM tab2 AS cor0
----
109
127
92

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

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

query I rowsort
SELECT + + 42 FROM tab1 AS cor0 WHERE + 4 >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE + 49 IS NULL
----

query I rowsort
SELECT 55 + 81 AS col2 FROM tab1
----
136
136
136

query I rowsort
SELECT ALL - + 44 AS col0 FROM tab0 cor0
----
-44
-44
-44

query I rowsort
SELECT + ( 39 ) AS col2 FROM tab2 AS cor0 WHERE NOT ( ( - 88 * col1 + - col2 ) NOT BETWEEN - 60 * col1 AND ( + col2 * + ( - 89 * col0 ) ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6640
SELECT ALL COUNT( DISTINCT - + 53 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6640
SELECT ALL COUNT ( DISTINCT - + 53 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT ALL - col2 FROM tab0 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6642
SELECT + col1 * - + col2 * CAST( - col1 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 35 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-6642
SELECT + col1 * - + col2 * CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 35 IS NOT NULL
----

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

skipif mysql # not compatible
query I rowsort label-6643
SELECT DISTINCT col0 / - - CAST ( NULL AS INTEGER ) AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 58 * - col2 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - + 31 IN ( col2, col1 - - - col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6646
SELECT DISTINCT ( - - 7 ) / - col1 / CAST( NULL AS DECIMAL ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-6646
SELECT DISTINCT ( - - 7 ) / - col1 / CAST ( NULL AS REAL ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-6647
SELECT ALL 19 DIV + - col2 * col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6647
SELECT ALL 19 / + - col2 * col2 FROM tab1
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-6648
SELECT col1 AS col2, - col2 DIV - ( col2 ) FROM tab2
----
51
1
67
1
77
1

skipif mysql # not compatible
query II rowsort label-6648
SELECT col1 AS col2, - col2 / - ( col2 ) FROM tab2
----
51
1
67
1
77
1

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

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

query I rowsort
SELECT 1 + + ( + col0 ) + - col1 AS col2 FROM tab0 AS cor0
----
-65
67
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6651
SELECT ALL + MAX( 39 ) AS col0 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-6651
SELECT ALL + MAX ( 39 ) AS col0 FROM tab1 AS cor0
----
39

query I rowsort
SELECT - ( - - ( + 45 ) ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 71160abf09589695379a70558726f0ba

query I rowsort
SELECT + - 30 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 56fa25f9fb8040460fe3c894000ea8fb

query I rowsort
SELECT DISTINCT + - col2 AS col1 FROM tab0 WHERE - 54 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + + col0 - - col1 * + + 33 * + col0 * - col1 col1 FROM tab0
----
-1265937
-3007
-3247665

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6656
SELECT ALL + + SUM( ALL + + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT + - 20 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-6656
SELECT ALL + + SUM ( ALL + + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NOT + - 20 IS NOT NULL )
----
NULL

query I rowsort
SELECT - - 60 * - ( + col1 ) * 75 - 37 AS col2 FROM tab0 cor0
----
-364537
-4537
-94537

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6660
SELECT - MIN( - 47 ) * COUNT( * ) FROM tab2 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-6660
SELECT - MIN ( - 47 ) * COUNT ( * ) FROM tab2 AS cor0
----
141

query I rowsort
SELECT + col1 + col0 - - 12 AS col2 FROM tab0 cor0
----
108
110
120

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT - col2 < - + 87
----
85
5
59
91
47
68

query I rowsort
SELECT col2 + ( col0 ) FROM tab1 cor0
----
144
147
159

onlyif mysql # aggregate syntax: 
query I rowsort label-6664
SELECT ALL + - COUNT( * ) FROM tab2 WHERE NOT - - 8 < 9 * - 18 + col1
----
-3

skipif mysql # not compatible
query I rowsort label-6664
SELECT ALL + - COUNT ( * ) FROM tab2 WHERE NOT - - 8 < 9 * - 18 + col1
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-6665
SELECT ALL + COUNT( * ) + - 16 AS col0 FROM tab1
----
-13

skipif mysql # not compatible
query I rowsort label-6665
SELECT ALL + COUNT ( * ) + - 16 AS col0 FROM tab1
----
-13

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6666
SELECT CAST ( NULL AS INTEGER ) + - col2 col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - 91 + - 31 AS col0 FROM tab0
----
-122
-122
-122

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 22 + - 66 NOT BETWEEN NULL AND + 41 * - col2 - + 19
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col1 + col1 AS col1 FROM tab0 AS cor0 WHERE + col2 <= + + 9
----

query I rowsort
SELECT - col1 * 69 FROM tab2 AS cor0 WHERE NULL BETWEEN 87 + + - col2 - ( col2 ) AND NULL
----

query I rowsort
SELECT - + ( 90 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query II rowsort
SELECT ALL col2 AS col0, + 41 * + col2 FROM tab1
----
59
2419
68
2788
96
3936

query I rowsort
SELECT + col0 * 9 * - 27 FROM tab2
----
-11178
-15552
-18225

query I rowsort
SELECT ( + + 25 ) * col0 + - 31 AS col2 FROM tab2
----
1119
1569
1844

query I rowsort
SELECT DISTINCT - col0 * + + 82 * + - col1 FROM tab1
----
34850
350714
58548

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

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6678
SELECT col1 DIV - + col2 - - ( + col2 ) * 15 + 54 FROM tab0 AS cor0
----
1539
202
758

skipif mysql # not compatible
query I rowsort label-6678
SELECT col1 / - + col2 - - ( + col2 ) * 15 + 54 FROM tab0 AS cor0
----
1539
202
758

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-6679
SELECT * FROM tab1 cor0 WHERE NOT CAST( 61 AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-6679
SELECT * FROM tab1 cor0 WHERE NOT CAST ( 61 AS REAL ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6680
SELECT DISTINCT + 52 DIV + CAST( - 47 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-6680
SELECT DISTINCT + 52 / + CAST ( - 47 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
-1

onlyif mysql # DIV for integer division: 
query II rowsort label-6681
SELECT ALL - col0, 26 DIV + col1 AS col2 FROM tab0 AS cor0
----
-15
0
-87
1
-97
26

skipif mysql # not compatible
query II rowsort label-6681
SELECT ALL - col0, 26 / + col1 AS col2 FROM tab0 AS cor0
----
-15
0
-87
1
-97
26

onlyif mysql # aggregate syntax: 
query I rowsort label-6682
SELECT 31 * COUNT( * ) AS col1 FROM tab1
----
93

skipif mysql # not compatible
query I rowsort label-6682
SELECT 31 * COUNT ( * ) AS col1 FROM tab1
----
93

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

skipif mysql # not compatible
query I rowsort label-6683
SELECT ALL + CAST ( - 61 AS INTEGER ) FROM tab1
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-6684
SELECT COUNT( - 0 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-6684
SELECT COUNT ( - 0 ) FROM tab1
----
3

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6686
SELECT DISTINCT + COUNT( * ) DIV + CAST( COUNT( * ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-6686
SELECT DISTINCT + COUNT ( * ) / + CAST ( COUNT ( * ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1

onlyif mysql # DIV for integer division: 
query II rowsort label-6687
SELECT DISTINCT + col1 DIV - col2, + col1 * - + col2 AS col2 FROM tab0 AS cor0
----
-1
-3807
-2
-210
0
-99

skipif mysql # not compatible
query II rowsort label-6687
SELECT DISTINCT + col1 / - col2, + col1 * - + col2 AS col2 FROM tab0 AS cor0
----
-1
-3807
-2
-210
0
-99

query III rowsort
SELECT ALL * FROM tab0 WHERE + col1 IN ( + col1 * col1, 57 )
----
97
1
99

query I rowsort
SELECT col2 + 22 - + 51 FROM tab2
----
-6
11
29

query I rowsort
SELECT + col1 + + + col0 AS col1 FROM tab1
----
138
65
90

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

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

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

query I rowsort
SELECT 47 AS col0 FROM tab0 AS cor0 WHERE + col1 IN ( + ( - 78 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6694
SELECT 47 * ( - + MAX( DISTINCT 62 ) ) AS col0 FROM tab0 AS cor0
----
-2914

skipif mysql # not compatible
query I rowsort label-6694
SELECT 47 * ( - + MAX ( DISTINCT 62 ) ) AS col0 FROM tab0 AS cor0
----
-2914

onlyif mysql # DIV for integer division: 
query I rowsort label-6695
SELECT + col2 DIV + + col2 + + ( 64 ) FROM tab0 AS cor0
----
65
65
65

skipif mysql # not compatible
query I rowsort label-6695
SELECT + col2 / + + col2 + + ( 64 ) FROM tab0 AS cor0
----
65
65
65

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

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

query I rowsort
SELECT - 33 * + - 28 FROM tab1
----
924
924
924

query I rowsort
SELECT ALL col0 * col1 + + col1 AS col2 FROM tab2
----
2397
5005
5092

onlyif mysql # aggregate syntax: 
query I rowsort label-6699
SELECT - COUNT( * ) FROM tab2 WHERE NULL < + col0
----
0

skipif mysql # not compatible
query I rowsort label-6699
SELECT - COUNT ( * ) FROM tab2 WHERE NULL < + col0
----
0

query I rowsort
SELECT ALL + col1 + - - col1 FROM tab0 cor0
----
162
2
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6702
SELECT - SUM( ALL - 88 ) col2 FROM tab2 AS cor0
----
264

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6702
SELECT - SUM ( ALL - 88 ) col2 FROM tab2 AS cor0
----
264

query I rowsort
SELECT DISTINCT - ( col2 ) * - 58 AS col2 FROM tab2
----
1334
2320
3364

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6705
SELECT 76 DIV + col2 FROM tab0 AS cor0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-6705
SELECT 76 / + col2 FROM tab0 AS cor0
----
0
1
7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6706
SELECT COUNT( * ) DIV + COUNT( * ) AS col0 FROM tab0 cor0
----
1

skipif mysql # not compatible
query I rowsort label-6706
SELECT COUNT ( * ) / + COUNT ( * ) AS col0 FROM tab0 cor0
----
1

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

query I rowsort
SELECT 96 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6709
SELECT - MIN( + col2 ) DIV - SUM( ALL col0 ) AS col1 FROM tab1 AS cor0
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6710
SELECT ALL 47, + CAST( 91 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
47
91
47
91
47
91

skipif mysql # not compatible
query II rowsort label-6710
SELECT ALL 47, + CAST ( 91 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
47
91
47
91
47
91

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6712
SELECT + 75, col1 * 2 + CAST( + - CAST( NULL AS SIGNED ) AS SIGNED ) * - - col1 col2 FROM tab2 AS cor0
----
75
NULL
75
NULL
75
NULL

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

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6716
SELECT + COUNT( * ) AS col0, MIN( ALL + 85 ) FROM tab0
----
3
85

skipif mysql # not compatible
query II rowsort label-6716
SELECT + COUNT ( * ) AS col0, MIN ( ALL + 85 ) FROM tab0
----
3
85

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

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

query I rowsort
SELECT - 40 FROM tab2 WHERE NOT + col0 > - - col2 * - ( + 63 )
----

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

query II rowsort
SELECT ALL - 31, 20 * - - col0 - - + 4 AS col0 FROM tab0
----
-31
1744
-31
1944
-31
304

onlyif mysql # aggregate syntax: 
query I rowsort label-6721
SELECT ALL + 89 + MAX( - col0 ) AS col0 FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-6721
SELECT ALL + 89 + MAX ( - col0 ) AS col0 FROM tab2
----
43

onlyif mysql # aggregate syntax: 
query I rowsort label-6722
SELECT DISTINCT + MAX( DISTINCT + 2 ) * - - COUNT( * ) + - MIN( - 86 ) AS col1 FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-6722
SELECT DISTINCT + MAX ( DISTINCT + 2 ) * - - COUNT ( * ) + - MIN ( - 86 ) AS col1 FROM tab1
----
92

query I rowsort
SELECT + col1 + + 74 + 63 + + - col2 AS col1 FROM tab2
----
146
165
174

onlyif mysql # DIV for integer division: 
query I rowsort label-6724
SELECT ALL 93 DIV + col2 AS col0 FROM tab0
----
0
1
9

skipif mysql # not compatible
query I rowsort label-6724
SELECT ALL 93 / + col2 AS col0 FROM tab0
----
0
1
9

query I rowsort
SELECT DISTINCT col1 + - + 70 FROM tab0 cor0
----
-49
-69
11

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6727
SELECT 10 DIV 65 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6727
SELECT 10 / 65 FROM tab2
----
0
0
0

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

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

query I rowsort
SELECT DISTINCT col0 + col1 * - 5 FROM tab2
----
-209
-260
-321

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6731
SELECT - + CAST( NULL AS DECIMAL ) - - + 6 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6731
SELECT - + CAST ( NULL AS REAL ) - - + 6 col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6733
SELECT ALL - COUNT( * ) * + COUNT( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6733
SELECT ALL - COUNT ( * ) * + COUNT ( * ) FROM tab1 WHERE NOT col2 IS NOT NULL
----
0

query II rowsort
SELECT ALL - 45 AS col0, + ( 17 ) AS col2 FROM tab2
----
-45
17
-45
17
-45
17

query III rowsort
SELECT * FROM tab0 WHERE - col1 > - + ( + col0 )
----
87
21
10
97
1
99

query I rowsort
SELECT - 95 FROM tab1 WHERE - 37 - col2 * + - 91 + - + col2 IS NULL
----

query I rowsort
SELECT ALL - col2 + + + ( - 20 ) AS col0 FROM tab0
----
-119
-30
-67

query II rowsort
SELECT DISTINCT col0 AS col1, - col2 FROM tab1
----
51
-96
85
-59
91
-68

query III rowsort
SELECT * FROM tab2 WHERE NOT - 76 + col1 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col2 + + col2 IS NULL
----

query I rowsort
SELECT DISTINCT + + ( - ( + - col2 ) ) AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT NULL <= + 14 - - ( + - 12 ) / 99
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6745
SELECT ALL - MAX( - 82 ) AS col0 FROM tab2 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-6745
SELECT ALL - MAX ( - 82 ) AS col0 FROM tab2 AS cor0
----
82

query I rowsort
SELECT DISTINCT - col1 + + - col2 + + col2 FROM tab2 AS cor0
----
-51
-67
-77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6747
SELECT DISTINCT + ( CAST( NULL AS SIGNED ) ) * - - col1 AS col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

skipif mysql # not compatible
query II rowsort label-6747
SELECT DISTINCT + ( CAST ( NULL AS INTEGER ) ) * - - col1 AS col2, - col1 FROM tab2
----
NULL
-51
NULL
-67
NULL
-77

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

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

query I rowsort
SELECT DISTINCT 89 * + col2 AS col1 FROM tab1
----
5251
6052
8544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 * - col0 * + 56 col1 FROM tab1
----
-159936
-266560
-285376

query I rowsort
SELECT DISTINCT - col1 + - - 45 FROM tab0
----
-36
24
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6752
SELECT + 54 * + + ( + - COUNT( * ) ) FROM tab0
----
-162

skipif mysql # not compatible
query I rowsort label-6752
SELECT + 54 * + + ( + - COUNT ( * ) ) FROM tab0
----
-162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6755
SELECT - 32 DIV 46 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif mysql # not compatible
query I rowsort label-6755
SELECT - 32 / 46 AS col0 FROM tab1 cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-6756
SELECT ALL + + COUNT( * ) - CAST( NULL AS DECIMAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-6756
SELECT ALL + + COUNT ( * ) - CAST ( NULL AS REAL ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 62 + - col1 * - - col2 / - col1 - col0 = NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( NOT - col0 + - col2 NOT BETWEEN - col2 * + - 24 / + col0 + - 37 + - - col1 AND ( col2 ) ) OR ( - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 56 * + + col0 FROM tab2 cor0
----
2576
3584
4200

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 * + col1 + + 98 col2 FROM tab2 AS cor0
----
1271
3178
3984

onlyif mysql # aggregate syntax: 
query I rowsort label-6761
SELECT DISTINCT + MAX( DISTINCT - - 18 ) AS col0 FROM tab2 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-6761
SELECT DISTINCT + MAX ( DISTINCT - - 18 ) AS col0 FROM tab2 AS cor0
----
18

query I rowsort
SELECT ( - + col0 ) - + 37 FROM tab2 AS cor0
----
-101
-112
-83

onlyif mysql # aggregate syntax: 
query I rowsort label-6763
SELECT COUNT( * ) - - - ( - 15 ) col1 FROM tab2 AS cor0
----
18

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6764
SELECT MIN( col1 ) - + + COUNT( * ) FROM tab0 AS cor0
----
-2

skipif mysql # not compatible
query I rowsort label-6764
SELECT MIN ( col1 ) - + + COUNT ( * ) FROM tab0 AS cor0
----
-2

query I rowsort
SELECT - 16 - - - col0 AS col0 FROM tab2 AS cor0
----
-62
-80
-91

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

query I rowsort
SELECT col2 - + 80 FROM tab0
----
-33
-70
19

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

skipif mysql # not compatible
query I rowsort label-6768
SELECT - col0 / + 49 AS col1 FROM tab0
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6769
SELECT DISTINCT - col2 col0 FROM tab0 WHERE col2 * - - col0 BETWEEN + CAST( - 73 AS SIGNED ) AND + col0 - col2
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6769
SELECT DISTINCT - col2 col0 FROM tab0 WHERE col2 * - - col0 BETWEEN + CAST ( - 73 AS INTEGER ) AND + col0 - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6770
SELECT ALL + + COUNT( * ) col0 FROM tab0 WHERE NULL < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6770
SELECT ALL + + COUNT ( * ) col0 FROM tab0 WHERE NULL < NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 * - 49 IS NOT NULL
----

query II rowsort
SELECT + ( col0 ), - col2 * col0 FROM tab0 AS cor0
----
15
-705
87
-870
97
-9603

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT IN ( - 49, 83 + - col2, - col2 + - col2 )
----

query II rowsort
SELECT ALL - col1 AS col0, - 43 + + 18 + + col1 AS col1 FROM tab1
----
-14
-11
-47
22
-5
-20

query I rowsort
SELECT ( + 38 ) AS col2 FROM tab0 WHERE NOT NULL IN ( + 93 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 <> - - 39
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6777
SELECT + col1 DIV + 87 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6777
SELECT + col1 / + 87 AS col2 FROM tab0 AS cor0
----
0
0
0

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-6779
SELECT DISTINCT + 47 * - CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6779
SELECT DISTINCT + 47 * - CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6781
SELECT - 16 DIV col2 FROM tab1 cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6781
SELECT - 16 / col2 FROM tab1 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6782
SELECT MAX( 59 ) FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-6782
SELECT MAX ( 59 ) FROM tab0
----
59

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

skipif mysql # not compatible
query I rowsort label-6783
SELECT 64 + COUNT ( * ) * - + COUNT ( * ) FROM tab0
----
55

query I rowsort
SELECT DISTINCT + col0 + + col1 AS col1 FROM tab2 WHERE ( NOT - col1 IS NULL )
----
141
142
97

query I rowsort
SELECT ALL + 93 + + ( + col0 ) FROM tab1
----
144
178
184

query I rowsort
SELECT ALL col1 AS col0 FROM tab0 WHERE col0 IS NOT NULL
----
1
21
81

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6788
SELECT - col0 + col0 col0 FROM tab2 WHERE - CAST ( CAST ( + col2 AS INTEGER ) AS INTEGER ) * ( col0 ) * 86 * - + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6789
SELECT 18 - - ( + - 28 ) + + + COUNT( * ) FROM tab1
----
-7

skipif mysql # not compatible
query I rowsort label-6789
SELECT 18 - - ( + - 28 ) + + + COUNT ( * ) FROM tab1
----
-7

query I rowsort
SELECT - - 76 AS col0 FROM tab1 WHERE 1 * + 98 * + - 96 IS NOT NULL
----
76
76
76

query I rowsort
SELECT + col0 * - col2 * - col0 FROM tab1 WHERE NULL >= - 9
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6792
SELECT DISTINCT CAST( NULL AS SIGNED ) - - col0 * - 16 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6792
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - col0 * - 16 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - - col2 - - col2 AS col1 FROM tab2 cor0
----
116
46
80

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-6794
SELECT - - 32 + - 66 * - col2 + + - ( + CAST( + col2 AS SIGNED ) ) DIV + + 35 FROM tab1 AS cor0
----
3925
4519
6366

skipif mysql # not compatible
query I rowsort label-6794
SELECT - - 32 + - 66 * - col2 + + - ( + CAST ( + col2 AS INTEGER ) ) / + + 35 FROM tab1 AS cor0
----
3925
4519
6366

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

query II rowsort
SELECT DISTINCT col0 * - col0 + - col0 AS col1, 90 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT 24 AS col1 FROM tab1 cor0 WHERE NOT + col1 NOT IN ( + - col1 )
----

query I rowsort
SELECT DISTINCT + col1 * ( 5 ) FROM tab0 cor0
----
105
405
5

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

onlyif mysql # DIV for integer division: 
query I rowsort label-6800
SELECT DISTINCT 91 DIV 83 * + - col2 col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6800
SELECT DISTINCT 91 / 83 * + - col2 col1 FROM tab1
----
-59
-68
-96

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6802
SELECT DISTINCT + CAST( - + 50 AS SIGNED ) * - SUM( col1 ) FROM tab2
----
9750

skipif mysql # not compatible
query I rowsort label-6802
SELECT DISTINCT + CAST ( - + 50 AS INTEGER ) * - SUM ( col1 ) FROM tab2
----
9750

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6804
SELECT + 71 * - COUNT( * ) AS col1 FROM tab0
----
-213

skipif mysql # not compatible
query I rowsort label-6804
SELECT + 71 * - COUNT ( * ) AS col1 FROM tab0
----
-213

query II rowsort
SELECT - col1 AS col1, - col1 + 53 AS col0 FROM tab0
----
-1
52
-21
32
-81
-28

query I rowsort
SELECT - 37 * - col1 FROM tab0
----
2997
37
777

onlyif mysql # aggregate syntax: 
query I rowsort label-6807
SELECT ALL + - MAX( - 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
20

skipif mysql # not compatible
query I rowsort label-6807
SELECT ALL + - MAX ( - 20 ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
20

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-6809
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST( NULL AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query IIIIII rowsort label-6809
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT CAST ( NULL AS INTEGER ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 39 + + + col1 AS col1, + 16 + + + 90 col0 FROM tab0 AS cor0
----
120
106
40
106
60
106

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL <> - - 59
----

query I rowsort
SELECT ALL + 71 + - col1 AS col1 FROM tab2
----
-6
20
4

onlyif mysql # DIV for integer division: 
query I rowsort label-6814
SELECT + col1 DIV 81 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-6814
SELECT + col1 / 81 FROM tab2
----
0
0
0

query I rowsort
SELECT ALL + - col2 + 48 FROM tab0 WHERE + col1 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6816
SELECT ALL - 45 + - + 9 * - + COUNT( * ) FROM tab1
----
-18

skipif mysql # not compatible
query I rowsort label-6816
SELECT ALL - 45 + - + 9 * - + COUNT ( * ) FROM tab1
----
-18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 62 col2 FROM tab1
----
113
147
153

query I rowsort
SELECT DISTINCT + col2 - + ( - col0 ) + + + col2 * - col0 * col1 AS col0 FROM tab2 AS cor0
----
-197016
-291317
-53889

onlyif mysql # aggregate syntax: 
query I rowsort label-6819
SELECT COUNT( * ) * + COUNT( * ) - + MAX( ALL + col2 ) * - MAX( DISTINCT + + 14 ) - - - COUNT( * ) + - + 91 AS col1 FROM tab0 AS cor0 WHERE 31 / + 63 NOT BETWEEN + col2 * - - col2 AND - 1
----
1301

skipif mysql # not compatible
query I rowsort label-6819
SELECT COUNT ( * ) * + COUNT ( * ) - + MAX ( ALL + col2 ) * - MAX ( DISTINCT + + 14 ) - - - COUNT ( * ) + - + 91 AS col1 FROM tab0 AS cor0 WHERE 31 / + 63 NOT BETWEEN + col2 * - - col2 AND - 1
----
1301

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6820
SELECT ALL * FROM tab2 WHERE NOT col1 NOT IN ( col2 + ( - CAST( NULL AS SIGNED ) ) - + col2 / - col1, 89 )
----

skipif mysql # not compatible
query III rowsort label-6820
SELECT ALL * FROM tab2 WHERE NOT col1 NOT IN ( col2 + ( - CAST ( NULL AS INTEGER ) ) - + col2 / - col1, 89 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6821
SELECT DISTINCT - col2 * - col2 DIV - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-6821
SELECT DISTINCT - col2 * - col2 / - + col2 AS col2 FROM tab1 AS cor0
----
-59
-68
-96

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

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

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

query I rowsort
SELECT DISTINCT col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-6825
SELECT ALL + + MIN( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-6825
SELECT ALL + + MIN ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
59

onlyif mysql # aggregate syntax: 
query II rowsort label-6826
SELECT MIN( - - col0 ), - 78 AS col2 FROM tab1 AS cor0
----
51
-78

skipif mysql # not compatible
query II rowsort label-6826
SELECT MIN ( - - col0 ), - 78 AS col2 FROM tab1 AS cor0
----
51
-78

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

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

query I rowsort
SELECT - + 36 AS col1 FROM tab0 AS cor0
----
-36
-36
-36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 6 col0 FROM tab1, tab1 AS cor0
----
9 values hashing to 5d1cb90ed58fa7573895d2f95b211821

onlyif mysql # aggregate syntax: 
query I rowsort label-6830
SELECT DISTINCT COUNT( * ) * 65 FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-6830
SELECT DISTINCT COUNT ( * ) * 65 FROM tab2
----
195

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

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

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NOT ( - col1 * + 98 ) BETWEEN + 45 AND NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6833
SELECT COUNT( * ) * + 36 AS col0 FROM tab0
----
108

skipif mysql # not compatible
query I rowsort label-6833
SELECT COUNT ( * ) * + 36 AS col0 FROM tab0
----
108

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col1 * + 98 col0 FROM tab2 cor0
----
-4998
-6566
-7546

query I rowsort
SELECT ALL - 0 * - + col2 FROM tab2 AS cor0
----
0
0
0

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

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

query II rowsort
SELECT ALL + col2, - col2 * - 8 FROM tab0
----
10
80
47
376
99
792

query I rowsort
SELECT DISTINCT + 15 * col2 AS col1 FROM tab2
----
345
600
870

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL > 75
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6840
SELECT 91, + CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
91
NULL
91
NULL
91
NULL

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

query II rowsort
SELECT ALL col2, col0 AS col2 FROM tab0 cor0
----
10
87
47
15
99
97

query I rowsort
SELECT ALL + 5 * - col1 AS col1 FROM tab2 AS cor0 WHERE NOT + col0 + - - col2 / - + col0 * + 80 IS NULL
----
-255
-335
-385

onlyif mysql # aggregate syntax: 
query II rowsort label-6843
SELECT DISTINCT - 74 AS col2, - MIN( ALL - + 1 ) AS col1 FROM tab2 AS cor0
----
-74
1

skipif mysql # not compatible
query II rowsort label-6843
SELECT DISTINCT - 74 AS col2, - MIN ( ALL - + 1 ) AS col1 FROM tab2 AS cor0
----
-74
1

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( ( NULL ) > ( NULL ) )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6847
SELECT ALL SUM( + - 39 ) DIV 52 col2 FROM tab2 AS cor0
----
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6847
SELECT ALL SUM ( + - 39 ) / 52 col2 FROM tab2 AS cor0
----
-2

query II rowsort
SELECT DISTINCT 98, col2 FROM tab1 AS cor0
----
98
59
98
68
98
96

onlyif mysql # aggregate syntax: 
query I rowsort label-6849
SELECT MAX( DISTINCT + - 43 ) + - COUNT( * ) - + 17 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-6849
SELECT MAX ( DISTINCT + - 43 ) + - COUNT ( * ) - + 17 FROM tab2
----
-63

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL > - col0 + - col1 - + col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE + col0 <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6852
SELECT col2 + CAST( NULL AS SIGNED ) AS col1, ( col1 ) AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-6852
SELECT col2 + CAST ( NULL AS INTEGER ) AS col1, ( col1 ) AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6853
SELECT DISTINCT - 49 + - 43 - COUNT( * ) FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-6853
SELECT DISTINCT - 49 + - 43 - COUNT ( * ) FROM tab2
----
-95

query I rowsort
SELECT DISTINCT col0 - + - 98 AS col2 FROM tab1
----
149
183
189

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

skipif mysql # not compatible
query I rowsort label-6855
SELECT + MAX ( + 25 ) FROM tab0 AS cor0
----
25

query I rowsort
SELECT DISTINCT + - col0 - col2 + 12 * col1 AS col0 FROM tab0 AS cor0
----
-184
155
910

query I rowsort
SELECT DISTINCT col1 - 61 FROM tab2 cor0
----
-10
16
6

query I rowsort
SELECT DISTINCT - 51 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 51 * 21 + col1 col1 FROM tab2 AS cor0 WHERE NOT NULL IN ( - 84, 38 * - col0, + + col0, col0 * 54 + - col1, + 22 )
----

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6862
SELECT * FROM tab1 WHERE NOT + + CAST( NULL AS SIGNED ) + + + col1 * - col1 + - + col0 + - 64 * + col0 <> - ( col1 ) * 53 * - ( - + col2 ) + col1 + + col0 - - col2 * - col0 * - col1 + + - col2
----

skipif mysql # not compatible
query III rowsort label-6862
SELECT * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) + + + col1 * - col1 + - + col0 + - 64 * + col0 <> - ( col1 ) * 53 * - ( - + col2 ) + col1 + + col0 - - col2 * - col0 * - col1 + + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6863
SELECT DISTINCT col0 * col2 DIV + col1 FROM tab0
----
41
8
9603

skipif mysql # not compatible
query I rowsort label-6863
SELECT DISTINCT col0 * col2 / + col1 FROM tab0
----
41
8
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-6864
SELECT ALL + MIN( - col2 ) * + COUNT( * ) AS col2 FROM tab0
----
-297

skipif mysql # not compatible
query I rowsort label-6864
SELECT ALL + MIN ( - col2 ) * + COUNT ( * ) AS col2 FROM tab0
----
-297

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-6865
SELECT CAST( NULL AS SIGNED ) * - ( - 74 ) FROM tab0
----
NULL
NULL
NULL

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

query I rowsort
SELECT ALL - - 55 * - 2 AS col2 FROM tab1 WHERE NOT + - col1 - col0 - 53 * ( col1 ) <= - col1
----

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

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

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

query I rowsort
SELECT DISTINCT ( + - col0 ) * col2 * - col2 FROM tab2
----
102400
24334
252300

onlyif mysql # aggregate syntax: 
query I rowsort label-6870
SELECT - COUNT( * ) + + 4 AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-6870
SELECT - COUNT ( * ) + + 4 AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-6871
SELECT ALL 4 + - MIN( ALL + 65 ) + + COUNT( * ) * 58 FROM tab1
----
113

skipif mysql # not compatible
query I rowsort label-6871
SELECT ALL 4 + - MIN ( ALL + 65 ) + + COUNT ( * ) * 58 FROM tab1
----
113

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6872
SELECT ALL + CAST( NULL AS SIGNED ) + - MAX( col0 ) * 98 / + 30 * 88 + + MAX( + + 14 ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-6872
SELECT ALL + CAST ( NULL AS INTEGER ) + - MAX ( col0 ) * 98 / + 30 * 88 + + MAX ( + + 14 ) FROM tab2 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT + col2 * - col2 / - col1 + + - 99 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - 37 + col0
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 44 col2 FROM tab2 cor0
----
44

query I rowsort
SELECT + col2 - - ( + col2 ) / - 7 AS col0 FROM tab1 cor0 WHERE col0 * col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6878
SELECT COUNT( 92 ) * 30 FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-6878
SELECT COUNT ( 92 ) * 30 FROM tab0
----
90

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - col0 / + - 61 NOT BETWEEN NULL AND col2 * col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-6880
SELECT ALL + ( - - COUNT( * ) ) + + 65 + - 8 AS col2, + 59 DIV 96 - + 32 FROM tab1
----
60
-32

skipif mysql # not compatible
query II rowsort label-6880
SELECT ALL + ( - - COUNT ( * ) ) + + 65 + - 8 AS col2, + 59 / 96 - + 32 FROM tab1
----
60
-32

query I rowsort
SELECT - ( ( - ( - 23 ) ) ) * 69 - col2 + ( + col1 ) * + - 69 AS col2 FROM tab2
----
-5129
-6268
-6940

query I rowsort
SELECT DISTINCT + 49 + - 75 FROM tab0
----
-26

query I rowsort
SELECT ALL - - col1 - + col2 * + + 7 FROM tab1 AS cor0
----
-408
-429
-658

query I rowsort
SELECT - ( col2 ) + - col2 AS col1 FROM tab0 AS cor0
----
-198
-20
-94

query I rowsort
SELECT ALL + + col1 * - + col1 - + col2 FROM tab1 AS cor0
----
-2277
-292
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-6886
SELECT ALL + - COUNT( * ) AS col2 FROM tab2 cor0 WHERE NOT - 3 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-6886
SELECT ALL + - COUNT ( * ) AS col2 FROM tab2 cor0 WHERE NOT - 3 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-6887
SELECT DISTINCT - SUM( ALL 51 ) AS col0 FROM tab1
----
-153

skipif mysql # not compatible
query I rowsort label-6887
SELECT DISTINCT - SUM ( ALL 51 ) AS col0 FROM tab1
----
-153

query I rowsort
SELECT ALL 22 * col2 * + 75 AS col0 FROM tab2
----
37950
66000
95700

query I rowsort
SELECT - + 94 FROM tab1 AS cor0 WHERE NOT - ( - 42 ) BETWEEN ( - col2 - 88 ) AND col1 * + col0 * + - col0
----
-94
-94
-94

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6891
SELECT - 50 AS col2, + COUNT( ALL + col2 ) FROM tab2 WHERE NOT NULL <= NULL
----
-50
0

skipif mysql # not compatible
query II rowsort label-6891
SELECT - 50 AS col2, + COUNT ( ALL + col2 ) FROM tab2 WHERE NOT NULL <= NULL
----
-50
0

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 39 IS NOT NULL
----

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-6894
SELECT ALL * FROM tab0 WHERE NOT col2 * - 82 + col0 + col1 + col2 * + + CAST( + col2 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-6894
SELECT ALL * FROM tab0 WHERE NOT col2 * - 82 + col0 + col1 + col2 * + + CAST ( + col2 AS INTEGER ) IS NOT NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6897
SELECT MIN( DISTINCT + 98 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
95

skipif mysql # not compatible
query I rowsort label-6897
SELECT MIN ( DISTINCT + 98 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-6898
SELECT DISTINCT - MIN( DISTINCT + col2 ) * - 88 FROM tab0
----
880

skipif mysql # not compatible
query I rowsort label-6898
SELECT DISTINCT - MIN ( DISTINCT + col2 ) * - 88 FROM tab0
----
880

onlyif mysql # aggregate syntax: 
query I rowsort label-6899
SELECT ALL - 45 + + 10 + - MAX( - 23 ) FROM tab2
----
-12

skipif mysql # not compatible
query I rowsort label-6899
SELECT ALL - 45 + + 10 + - MAX ( - 23 ) FROM tab2
----
-12

query I rowsort
SELECT - 44 * col2 * + - 1 FROM tab0 AS cor0
----
2068
4356
440

query II rowsort
SELECT ALL col1 * + + col2 - col1 + - 65 AS col1, 84 FROM tab2 AS cor0
----
1057
84
2938
84
3754
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - col1 ) * - - col0 col1 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT + + col1 + - 94 AS col0 FROM tab2 AS cor0
----
-17
-27
-43

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

query I rowsort
SELECT DISTINCT - 19 * - 8 FROM tab2 AS cor0
----
152

query I rowsort
SELECT ALL + ( col2 ) + col2 FROM tab1 cor0
----
118
136
192

onlyif mysql # aggregate syntax: 
query I rowsort label-6907
SELECT ALL - 49 * COUNT( + - col2 ) FROM tab1
----
-147

skipif mysql # not compatible
query I rowsort label-6907
SELECT ALL - 49 * COUNT ( + - col2 ) FROM tab1
----
-147

query I rowsort
SELECT + 37 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-6909
SELECT + ( - + COUNT( * ) ) + + - 69 AS col2 FROM tab1
----
-72

skipif mysql # not compatible
query I rowsort label-6909
SELECT + ( - + COUNT ( * ) ) + + - 69 AS col2 FROM tab1
----
-72

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

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

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

query I rowsort
SELECT ALL - 89 + col1 + - col2 AS col2 FROM tab2
----
-52
-61
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-6913
SELECT COUNT( - 10 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-6913
SELECT COUNT ( - 10 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-6914
SELECT DISTINCT 53 * - COUNT( * ) DIV - COUNT( * ) col1 FROM tab1 AS cor0
----
53

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6914
SELECT DISTINCT 53 * - COUNT ( * ) / - COUNT ( * ) col1 FROM tab1 AS cor0
----
53

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 > + - 8 * + col1 + col2
----

query I rowsort
SELECT ALL col2 AS col1 FROM tab1 AS cor0 WHERE - col0 IS NOT NULL
----
59
68
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 col1 FROM tab0 cor0 WHERE NOT - 94 BETWEEN NULL AND col1 + - col0
----
99

query I rowsort
SELECT 48 * + 63 * + + 97 AS col1 FROM tab2
----
293328
293328
293328

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6920
SELECT - COUNT( * ), 40 AS col1 FROM tab0 AS cor0
----
-3
40

skipif mysql # not compatible
query II rowsort label-6920
SELECT - COUNT ( * ), 40 AS col1 FROM tab0 AS cor0
----
-3
40

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

onlyif mysql # aggregate syntax: 
query II rowsort label-6922
SELECT 88, + COUNT( * ) AS col1 FROM tab0 cor0
----
88
3

skipif mysql # not compatible
query II rowsort label-6922
SELECT 88, + COUNT ( * ) AS col1 FROM tab0 cor0
----
88
3

query I rowsort
SELECT ALL - + 24 AS col1 FROM tab0 AS cor0
----
-24
-24
-24

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6924
SELECT DISTINCT col0 AS col0, CAST( NULL AS SIGNED ) + + 24 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-6924
SELECT DISTINCT col0 AS col0, CAST ( NULL AS INTEGER ) + + 24 FROM tab0 cor0
----
15
NULL
87
NULL
97
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 31 / + col2 <> - col1
----

query I rowsort
SELECT ALL + 31 AS col2 FROM tab0 cor0
----
31
31
31

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-6928
SELECT DISTINCT + - col1, CAST( NULL AS SIGNED ) / - - col0 AS col2 FROM tab1 cor0
----
-14
NULL
-47
NULL
-5
NULL

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

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 87 / col2 * - + ( col0 ) BETWEEN NULL AND + ( col2 )
----

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

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

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

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

skipif mysql # not compatible
query I rowsort label-6932
SELECT + SUM ( DISTINCT + - ( + col1 ) ) FROM tab1
----
-66

query I rowsort
SELECT DISTINCT + 52 * 16 + 45 + - col2 + - col2 AS col0 FROM tab2 AS cor0
----
761
797
831

onlyif mysql # aggregate syntax: 
query I rowsort label-6934
SELECT DISTINCT 11 * MAX( ALL - - col0 ) AS col0 FROM tab0
----
1067

skipif mysql # not compatible
query I rowsort label-6934
SELECT DISTINCT 11 * MAX ( ALL - - col0 ) AS col0 FROM tab0
----
1067

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 40 NOT BETWEEN - 30 - + + col0 AND 15
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6936
SELECT ALL + col2 - - + ( - + col0 ) DIV + + col0 AS col0 FROM tab2 AS cor0
----
22
39
57

skipif mysql # not compatible
query I rowsort label-6936
SELECT ALL + col2 - - + ( - + col0 ) / + + col0 AS col0 FROM tab2 AS cor0
----
22
39
57

query II rowsort
SELECT col2, - 27 / - - 78 AS col0 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col2 * + col1 * ( + 60 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6938
SELECT DISTINCT + + ( + SUM( DISTINCT + col0 ) ) - + CAST( + ( ( - - 23 ) ) AS SIGNED ) + COUNT( * ) - COUNT( * ) FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-6938
SELECT DISTINCT + + ( + SUM ( DISTINCT + col0 ) ) - + CAST ( + ( ( - - 23 ) ) AS INTEGER ) + COUNT ( * ) - COUNT ( * ) FROM tab1 AS cor0
----
204

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-6939
SELECT DISTINCT MIN ( - + 60 ) col1 FROM tab0 AS cor0
----
-60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 59 - + 8 col2, - col1 + + col1 AS col1 FROM tab0
----
51
0
51
0
51
0

query I rowsort
SELECT ALL + col1 * + 34 * + ( - col0 ) FROM tab0
----
-3298
-41310
-62118

query I rowsort
SELECT col2 AS col1 FROM tab2 WHERE 42 IS NOT NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 96 * col0 AS col2 FROM tab2
----
4416
6144
7200

onlyif mysql # aggregate syntax: 
query I rowsort label-6945
SELECT ALL 41 + COUNT( * ) FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-6945
SELECT ALL 41 + COUNT ( * ) FROM tab1
----
44

onlyif mysql # aggregate syntax: 
query I rowsort label-6946
SELECT - 45 * + 97 - + - MIN( ALL col1 ) * + 87 - - + 40 FROM tab1
----
-3890

skipif mysql # not compatible
query I rowsort label-6946
SELECT - 45 * + 97 - + - MIN ( ALL col1 ) * + 87 - - + 40 FROM tab1
----
-3890

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL NOT BETWEEN - col1 + + - col0 AND ( - - col2 * + 63 * - - 61 * + col1 + + + 11 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-6948
SELECT col1 DIV + 87 + + col1 FROM tab0 cor0
----
1
21
81

skipif mysql # not compatible
query I rowsort label-6948
SELECT col1 / + 87 + + col1 FROM tab0 cor0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-6949
SELECT - - 92 * + - 48 * COUNT( * ) FROM tab2 AS cor0
----
-13248

skipif mysql # not compatible
query I rowsort label-6949
SELECT - - 92 * + - 48 * COUNT ( * ) FROM tab2 AS cor0
----
-13248

onlyif mysql # aggregate syntax: 
query I rowsort label-6950
SELECT DISTINCT + + MIN( 13 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
13

skipif mysql # not compatible
query I rowsort label-6950
SELECT DISTINCT + + MIN ( 13 ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
13

query I rowsort
SELECT ALL - 44 * col0 * - col0 FROM tab1
----
114444
317900
364364

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) )
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

onlyif mysql # aggregate syntax: 
query I rowsort label-6953
SELECT ALL - SUM( - 83 ) FROM tab0 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-6953
SELECT ALL - SUM ( - 83 ) FROM tab0 AS cor0
----
249

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6955
SELECT ALL + - SUM( - col0 ) FROM tab1 AS cor0 WHERE NULL = col1 * - col1 + + + 92
----
NULL

skipif mysql # not compatible
query I rowsort label-6955
SELECT ALL + - SUM ( - col0 ) FROM tab1 AS cor0 WHERE NULL = col1 * - col1 + + + 92
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 9 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - 7 AS col1 FROM tab2 cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6958
SELECT ALL + MIN( - CAST( - + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
15

skipif mysql # not compatible
query I rowsort label-6958
SELECT ALL + MIN ( - CAST ( - + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
15

query I rowsort
SELECT ALL col0 + - 11 AS col2 FROM tab1 AS cor0
----
40
74
80

query I rowsort
SELECT - + col2 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL > + - 51
----

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

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

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

query III rowsort
SELECT * FROM tab0 WHERE 78 IS NULL AND + col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - 54 + ( - - 67 ) AS col2 FROM tab2
----
13

query I rowsort
SELECT col2 + 75 AS col0 FROM tab1
----
134
143
171

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 88 + + col0 * + col2 col2 FROM tab2
----
1146
2648
4438

query I rowsort
SELECT - col0 FROM tab1 WHERE + col0 <> NULL
----

query I rowsort
SELECT ALL - 18 FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN ( + 99 + + col0 ) AND NULL
----
-18
-18
-18

query I rowsort
SELECT - 42 + + col0 AS col0 FROM tab1 AS cor0
----
43
49
9

query I rowsort
SELECT col0 + - - 96 + - - col0 FROM tab0 AS cor0
----
126
270
290

onlyif mysql # aggregate syntax: 
query I rowsort label-6973
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE ( ( NOT - col2 + + - col2 <= + col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-6973
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE ( ( NOT - col2 + + - col2 <= + col1 ) )
----
0

query I rowsort
SELECT ALL col0 + + col0 * 92 * + col0 FROM tab1
----
239343
664785
761943

onlyif mysql # aggregate syntax: 
query I rowsort label-6975
SELECT ALL - COUNT( * ) FROM tab0 WHERE NULL BETWEEN - ( + + col0 ) AND ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-6975
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NULL BETWEEN - ( + + col0 ) AND ( NULL )
----
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-6977
SELECT SUM( - 52 ) - - COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-6977
SELECT SUM ( - 52 ) - - COUNT ( * ) FROM tab0 AS cor0
----
-153

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

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

query II rowsort
SELECT DISTINCT col1 - + col1 AS col1, 92 * - col2 FROM tab1 AS cor0
----
0
-5428
0
-6256
0
-8832

query I rowsort
SELECT - - col0 + - col1 * + col1 FROM tab0 AS cor0
----
-354
-6546
96

query I rowsort
SELECT ALL + 33 - - ( ( + + 37 ) ) AS col2 FROM tab0 AS cor0
----
70
70
70

query I rowsort
SELECT DISTINCT - - 68 AS col1 FROM tab2 AS cor0
----
68

query I rowsort
SELECT DISTINCT - col0 - - + col1 * + col1 * col2 FROM tab0 cor0
----
2
308352
4323

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

query I rowsort
SELECT DISTINCT - col2 - - 65 + - col2 * - 37 FROM tab2 AS cor0
----
1505
2153
893

query I rowsort
SELECT DISTINCT + + 26 - - - col0 FROM tab1 WHERE - + col0 < NULL
----

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

query II rowsort
SELECT 20 AS col2, col0 AS col2 FROM tab0
----
20
15
20
87
20
97

onlyif mysql # aggregate syntax: 
query I rowsort label-6989
SELECT + + SUM( DISTINCT + 30 ) AS col1 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-6989
SELECT + + SUM ( DISTINCT + 30 ) AS col1 FROM tab2 AS cor0
----
30

query I rowsort
SELECT ALL + 83 FROM tab2 cor0
----
83
83
83

query I rowsort
SELECT DISTINCT - 51 + - - col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-5
13
24

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

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

query I rowsort
SELECT ALL col2 / - 72 AS col0 FROM tab1 WHERE NOT + 97 NOT BETWEEN NULL AND 50
----

query I rowsort
SELECT - col1 FROM tab2 WHERE NOT col0 NOT BETWEEN - col1 / + 63 AND col1
----
-51
-77

query III rowsort
SELECT * FROM tab0 WHERE col0 IN ( 2 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-6996
SELECT COUNT( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( col2 + + CAST( NULL AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-6996
SELECT COUNT ( * ) AS col0 FROM tab1 WHERE NULL NOT IN ( col2 + + CAST ( NULL AS INTEGER ) )
----
0

query I rowsort
SELECT col1 + + 73 AS col1 FROM tab2
----
124
140
150

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

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

query I rowsort
SELECT ALL col2 * ( - 98 ) + col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( - 66 )
----

query I rowsort
SELECT DISTINCT + 14 - + 4 AS col1 FROM tab0
----
10

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

query III rowsort
SELECT * FROM tab2 WHERE NOT - col1 * ( 34 ) IS NOT NULL
----

query I rowsort
SELECT - 88 + - col2 FROM tab0
----
-135
-187
-98

query I rowsort
SELECT + 1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN + col1 AND ( 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7005
SELECT + SUM( col1 ) AS col2 FROM tab0 WHERE col2 * 42 + - 5 < - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-7005
SELECT + SUM ( col1 ) AS col2 FROM tab0 WHERE col2 * 42 + - 5 < - col1
----
NULL

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7007
SELECT DISTINCT - SUM( + 42 ) * + CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-7007
SELECT DISTINCT - SUM ( + 42 ) * + CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query I rowsort
SELECT ALL + ( - col1 ) * col1 AS col1 FROM tab1
----
-196
-2209
-25

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

query I rowsort
SELECT ALL - 19 * 89 AS col1 FROM tab1
----
-1691
-1691
-1691

query III rowsort
SELECT * FROM tab1 WHERE NULL IN ( + 74 * + 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7012
SELECT COUNT( * ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 + - 78 )
----
0

skipif mysql # not compatible
query I rowsort label-7012
SELECT COUNT ( * ) AS col1 FROM tab2 WHERE NOT NULL NOT IN ( - col0 + - 78 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7013
SELECT DISTINCT - CAST( - col1 AS SIGNED ) * col0 AS col2 FROM tab0
----
1215
1827
97

skipif mysql # not compatible
query I rowsort label-7013
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) * col0 AS col2 FROM tab0
----
1215
1827
97

query I rowsort
SELECT col0 * col1 AS col0 FROM tab1 WHERE NOT + col0 + col2 NOT BETWEEN + ( 9 ) AND ( col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7015
SELECT ALL - col0 - + CAST( - col1 AS SIGNED ) FROM tab0 AS cor0
----
-66
-96
66

skipif mysql # not compatible
query I rowsort label-7015
SELECT ALL - col0 - + CAST ( - col1 AS INTEGER ) FROM tab0 AS cor0
----
-66
-96
66

onlyif mysql # aggregate syntax: 
query I rowsort label-7016
SELECT DISTINCT MAX( 92 ) AS col1 FROM tab1 WHERE NOT NULL IN ( - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7016
SELECT DISTINCT MAX ( 92 ) AS col1 FROM tab1 WHERE NOT NULL IN ( - col2 )
----
NULL

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

skipif mysql # not compatible
query I rowsort label-7017
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col0 FROM tab0 WHERE NOT col1 BETWEEN NULL AND + col2
----
NULL

query I rowsort
SELECT col0 - + col1 AS col0 FROM tab2 WHERE NULL > col2 * + 7
----

query I rowsort
SELECT ALL col1 + + col2 * - 46 AS col1 FROM tab2
----
-1007
-1763
-2601

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7020
SELECT COUNT( * ) DIV COUNT( col0 * col0 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-7020
SELECT COUNT ( * ) / COUNT ( col0 * col0 ) FROM tab0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7021
SELECT DISTINCT col2 / - col0 AS col1 FROM tab1 WHERE + col0 = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-7021
SELECT DISTINCT col2 / - col0 AS col1 FROM tab1 WHERE + col0 = - CAST ( NULL AS INTEGER )
----

query IIIIII rowsort
SELECT * FROM tab0 cor0 CROSS JOIN tab0 WHERE NULL >= ( NULL )
----

query I rowsort
SELECT DISTINCT 91 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2
----
91

onlyif mysql # aggregate syntax: 
query I rowsort label-7024
SELECT - COUNT( * ) + + 85 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
76

skipif mysql # not compatible
query I rowsort label-7024
SELECT - COUNT ( * ) + + 85 FROM tab2 AS cor0 CROSS JOIN tab0 WHERE NOT ( NULL ) IS NOT NULL
----
76

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

query I rowsort
SELECT ALL col0 + 50 * col0 FROM tab2 AS cor0
----
2346
3264
3825

onlyif mysql # DIV for integer division: 
query I rowsort label-7027
SELECT ALL + col1 - col0 DIV 68 AS col1 FROM tab1 AS cor0
----
14
4
46

skipif mysql # not compatible
query I rowsort label-7027
SELECT ALL + col1 - col0 / 68 AS col1 FROM tab1 AS cor0
----
14
4
46

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7029
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) col2 FROM tab1 cor0
----
3

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7031
SELECT + COUNT ( * ) * 91 col0 FROM tab2 AS cor0
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-7032
SELECT + + MIN( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

skipif mysql # not compatible
query I rowsort label-7032
SELECT + + MIN ( ALL col1 ) AS col0 FROM tab1 AS cor0
----
5

query I rowsort
SELECT 67 * + col0 AS col0 FROM tab0
----
1005
5829
6499

query I rowsort
SELECT col1 * + 81 FROM tab1
----
1134
3807
405

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

query III rowsort
SELECT * FROM tab0 WHERE NOT 28 * col2 <> - col0
----

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

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

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

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col0 < + 86 + col2 * + col0
----

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7042
SELECT - COUNT( + 35 ) * 35 AS col0 FROM tab1, tab1 AS cor0
----
-315

skipif mysql # not compatible
query I rowsort label-7042
SELECT - COUNT ( + 35 ) * 35 AS col0 FROM tab1, tab1 AS cor0
----
-315

query I rowsort
SELECT DISTINCT - 94 AS col2 FROM tab1 cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-7044
SELECT - COUNT( * ) * + + MAX( - ( 59 ) ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-7044
SELECT - COUNT ( * ) * + + MAX ( - ( 59 ) ) FROM tab2 AS cor0
----
177

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

query II rowsort
SELECT ALL + 29 AS col1, + col2 AS col1 FROM tab0 AS cor0
----
29
10
29
47
29
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + col0 + 16 ) NOT IN ( col2 * - col0 )
----

query I rowsort
SELECT - + ( - 14 ) FROM tab2 cor0
----
14
14
14

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7049
SELECT - 62 * COUNT( * ) + - + CAST( COUNT( + col0 ) AS SIGNED ) FROM tab2 AS cor0
----
-189

skipif mysql # not compatible
query I rowsort label-7049
SELECT - 62 * COUNT ( * ) + - + CAST ( COUNT ( + col0 ) AS INTEGER ) FROM tab2 AS cor0
----
-189

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

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7053
SELECT ALL - SUM( ALL - col2 ) * COUNT( * ) DIV 76 AS col1 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-7053
SELECT ALL - SUM ( ALL - col2 ) * COUNT ( * ) / 76 AS col1 FROM tab2 AS cor0
----
4

query I rowsort
SELECT 25 + + ( + - 68 ) + - col1 AS col2 FROM tab2 AS cor0
----
-110
-120
-94

query I rowsort
SELECT DISTINCT col1 * + + col2 AS col2 FROM tab1 AS cor0
----
1344
295
3196

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7056
SELECT * FROM tab2 WHERE CAST( NULL AS SIGNED ) <> + 19
----

skipif mysql # not compatible
query III rowsort label-7056
SELECT * FROM tab2 WHERE CAST ( NULL AS INTEGER ) <> + 19
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT IN ( + col2 ) AND NOT ( + 74 ) IS NOT NULL
----

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

query I rowsort
SELECT - col2 + + + col2 + + + col1 FROM tab0
----
1
21
81

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

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

query I rowsort
SELECT ALL - col0 * col0 + 89 FROM tab1
----
-2512
-7136
-8192

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7064
SELECT ALL ( + 38 ) + - CAST( - col2 AS SIGNED ) + col1 * 51 FROM tab1
----
2503
352
848

skipif mysql # not compatible
query I rowsort label-7064
SELECT ALL ( + 38 ) + - CAST ( - col2 AS INTEGER ) + col1 * 51 FROM tab1
----
2503
352
848

onlyif mysql # aggregate syntax: 
query I rowsort label-7065
SELECT + COUNT( DISTINCT - col1 ) + + + 81 FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-7065
SELECT + COUNT ( DISTINCT - col1 ) + + + 81 FROM tab0
----
84

onlyif mysql # aggregate syntax: 
query I rowsort label-7066
SELECT DISTINCT - - COUNT( * ) AS col0 FROM tab0 WHERE NULL <> - col2
----
0

skipif mysql # not compatible
query I rowsort label-7066
SELECT DISTINCT - - COUNT ( * ) AS col0 FROM tab0 WHERE NULL <> - col2
----
0

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7068
SELECT - 97 * - + col1 AS col2, 54 DIV - - col2 + - col1 * CAST( + 62 * - 85 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
1358
73780
4559
247690
485
26350

skipif mysql # not compatible
query II rowsort label-7068
SELECT - 97 * - + col1 AS col2, 54 / - - col2 + - col1 * CAST ( + 62 * - 85 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
1358
73780
4559
247690
485
26350

onlyif mysql # aggregate syntax: 
query II rowsort label-7069
SELECT + MAX( ALL 80 ), - 7 AS col2 FROM tab2 AS cor0
----
80
-7

skipif mysql # not compatible
query II rowsort label-7069
SELECT + MAX ( ALL 80 ), - 7 AS col2 FROM tab2 AS cor0
----
80
-7

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NOT ( ( NOT ( - col2 * 39 ) <> - col1 ) )
----
51
67
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + + col1 + - col1 col1 FROM tab2
----
23
40
58

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

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

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

query I rowsort
SELECT ALL - + col2 FROM tab2 AS cor0 WHERE - col0 * - 67 IS NULL
----

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

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

query I rowsort
SELECT - - 35 * - + col1 FROM tab2 cor0
----
-1785
-2345
-2695

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7077
SELECT + CAST( NULL AS DECIMAL ) FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7077
SELECT + CAST ( NULL AS REAL ) FROM tab0 WHERE NOT + + col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT + col2 AS col0, col1 FROM tab2
----
23
51
40
77
58
67

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7079
SELECT ALL MIN ( ALL + col2 ) col2 FROM tab2 WHERE NOT ( NOT ( col1 ) IS NULL )
----
NULL

query II rowsort
SELECT - 99 * + col0, + 94 * - + 23 AS col2 FROM tab1
----
-5049
-2162
-8415
-2162
-9009
-2162

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7083
SELECT col2 DIV + 92 AS col1 FROM tab1
----
0
0
1

skipif mysql # not compatible
query I rowsort label-7083
SELECT col2 / + 92 AS col1 FROM tab1
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7084
SELECT DISTINCT - COUNT( * ) * 20 FROM tab0
----
-60

skipif mysql # not compatible
query I rowsort label-7084
SELECT DISTINCT - COUNT ( * ) * 20 FROM tab0
----
-60

query I rowsort
SELECT - + 89 * col1 FROM tab2 AS cor0
----
-4539
-5963
-6853

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

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT NULL IN ( 22 + + col1 )
----

query I rowsort
SELECT ALL - - col2 * + col2 FROM tab1 cor0
----
3481
4624
9216

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7090
SELECT + MIN( DISTINCT 55 ) FROM tab2
----
55

skipif mysql # not compatible
query I rowsort label-7090
SELECT + MIN ( DISTINCT 55 ) FROM tab2
----
55

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7092
SELECT DISTINCT - ( + CAST( ( 68 ) AS DECIMAL ) ) FROM tab1 WHERE NOT - 84 * col2 <> 88 + + col1
----

skipif mysql # not compatible
query I rowsort label-7092
SELECT DISTINCT - ( + CAST ( ( 68 ) AS REAL ) ) FROM tab1 WHERE NOT - 84 * col2 <> 88 + + col1
----

query I rowsort
SELECT col2 + col1 + - col0 * - + col1 * - col0 AS col1 FROM tab2 AS cor0
----
-107842
-315275
-376750

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - ( 79 ) > ( + ( - 98 ) + - 79 )
----

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col2 * + + 67 + - 91 col2, 57 AS col0 FROM tab1 AS cor0
----
3862
57
4465
57
6341
57

query I rowsort
SELECT 40 FROM tab2 AS cor0 WHERE NULL IN ( 91 * 63 )
----

query I rowsort
SELECT DISTINCT + col0 * 83 * + + 51 + 7 * + 57 AS col2 FROM tab2 AS cor0
----
195117
271311
317874

query I rowsort
SELECT ( - 30 ) AS col0 FROM tab1
----
-30
-30
-30

query I rowsort
SELECT DISTINCT col0 * - - 39 FROM tab2
----
1794
2496
2925

query I rowsort
SELECT ALL + col1 * - ( col0 ) AS col2 FROM tab1
----
-425
-4277
-714

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + col0 + + 21 col0 FROM tab0 WHERE + - 47 NOT IN ( + col0 )
----
-56
23
53

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

query I rowsort
SELECT DISTINCT + 40 - col0 AS col0 FROM tab0 cor0
----
-47
-57
25

query I rowsort
SELECT - ( col0 ) + - - 46 FROM tab2 AS cor0
----
-18
-29
0

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

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

query I rowsort
SELECT 56 + + + 24 AS col2 FROM tab2 AS cor0
----
80
80
80

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( - col2 ) NOT IN ( 54 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT ( NULL BETWEEN NULL AND NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7110
SELECT + + 57 DIV - ( - + ( - - 23 ) ) + col1 * col2 * - + col1 FROM tab0 cor0
----
-308365
-4408
-97

skipif mysql # not compatible
query I rowsort label-7110
SELECT + + 57 / - ( - + ( - - 23 ) ) + col1 * col2 * - + col1 FROM tab0 cor0
----
-308365
-4408
-97

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7111
SELECT DISTINCT - col0 / ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) ) AS col0, - col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

skipif mysql # not compatible
query II rowsort label-7111
SELECT DISTINCT - col0 / ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) ) AS col0, - col0 FROM tab2 AS cor0
----
NULL
-46
NULL
-64
NULL
-75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7112
SELECT CAST( - + col1 AS SIGNED ) AS col1 FROM tab0
----
-1
-21
-81

skipif mysql # not compatible
query I rowsort label-7112
SELECT CAST ( - + col1 AS INTEGER ) AS col1 FROM tab0
----
-1
-21
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 col2, + col0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT col2 * col1 * 77 FROM tab0
----
16170
293139
7623

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7116
SELECT + 72 + - 4 DIV + - 70 FROM tab1 AS cor0
----
72
72
72

skipif mysql # not compatible
query I rowsort label-7116
SELECT + 72 + - 4 / + - 70 FROM tab1 AS cor0
----
72
72
72

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + 17 + + 33 * + 5 col1 FROM tab0 AS cor0
----
158
195
247

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

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

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

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

query I rowsort
SELECT - + col1 + + + col0 FROM tab1 cor0
----
37
44
80

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

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7122
SELECT DISTINCT 31 FROM tab0 cor0 WHERE ( + + CAST( + col0 AS DECIMAL ) BETWEEN + 68 AND ( - - 25 + - col0 ) )
----

skipif mysql # not compatible
query I rowsort label-7122
SELECT DISTINCT 31 FROM tab0 cor0 WHERE ( + + CAST ( + col0 AS REAL ) BETWEEN + 68 AND ( - - 25 + - col0 ) )
----

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

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

query I rowsort
SELECT ALL - col0 + 36 AS col0 FROM tab2
----
-10
-28
-39

query I rowsort
SELECT 43 * 3 FROM tab1
----
129
129
129

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7127
SELECT ALL 83 * + 61 + + CAST( ( - col1 ) AS SIGNED ) FROM tab0 cor0
----
4982
5042
5062

skipif mysql # not compatible
query I rowsort label-7127
SELECT ALL 83 * + 61 + + CAST ( ( - col1 ) AS INTEGER ) FROM tab0 cor0
----
4982
5042
5062

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7130
SELECT ALL + + 3 * - SUM( ALL - - CAST( NULL AS SIGNED ) ) * MIN( - 37 ) + + - 29 + COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7130
SELECT ALL + + 3 * - SUM ( ALL - - CAST ( NULL AS INTEGER ) ) * MIN ( - 37 ) + + - 29 + COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7131
SELECT SUM( col1 ) + 56 AS col0 FROM tab2 AS cor0
----
251

skipif mysql # not compatible
query I rowsort label-7131
SELECT SUM ( col1 ) + 56 AS col0 FROM tab2 AS cor0
----
251

onlyif mysql # aggregate syntax: 
query I rowsort label-7132
SELECT SUM( + 5 ) FROM tab2 AS cor0 WHERE col0 = + - 78
----
NULL

skipif mysql # not compatible
query I rowsort label-7132
SELECT SUM ( + 5 ) FROM tab2 AS cor0 WHERE col0 = + - 78
----
NULL

query I rowsort
SELECT DISTINCT - ( - col0 ) - - 88 FROM tab2 AS cor0
----
134
152
163

query II rowsort
SELECT DISTINCT - ( - col1 ), + 12 AS col0 FROM tab1 AS cor0
----
14
12
47
12
5
12

query I rowsort
SELECT + - col1 + - - 25 AS col0 FROM tab2 AS cor0
----
-26
-42
-52

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-7137
SELECT - COUNT( * ) + 99 AS col1 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-7137
SELECT - COUNT ( * ) + 99 AS col1 FROM tab0 AS cor0
----
96

query I rowsort
SELECT ALL col0 + - + col2 + - + col1 + - - col2 * + col1 AS col1 FROM tab2
----
1145
3027
3836

onlyif mysql # aggregate syntax: 
query I rowsort label-7139
SELECT DISTINCT COUNT( * ) + MAX( - 14 ) col2 FROM tab2
----
-11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7139
SELECT DISTINCT COUNT ( * ) + MAX ( - 14 ) col2 FROM tab2
----
-11

query I rowsort
SELECT + col1 + + 29 - + col1 * + col0 FROM tab2
----
-2266
-4822
-4929

query I rowsort
SELECT 22 + - 97 AS col0 FROM tab0
----
-75
-75
-75

query I rowsort
SELECT ALL 43 + col2 + + col1 AS col2 FROM tab1 AS cor0
----
107
153
158

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7143
SELECT DISTINCT - CAST( + col1 AS SIGNED ) FROM tab0 AS cor0 WHERE - col0 BETWEEN col2 AND - col2 * col1 * + col2 * col2 - - ( + 16 ) OR - + 91 < ( NULL )
----

skipif mysql # not compatible
query I rowsort label-7143
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) FROM tab0 AS cor0 WHERE - col0 BETWEEN col2 AND - col2 * col1 * + col2 * col2 - - ( + 16 ) OR - + 91 < ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7144
SELECT 61 - + COUNT( * ) + 74 * - - COUNT( * ) AS col0 FROM tab1 AS cor0
----
280

skipif mysql # not compatible
query I rowsort label-7144
SELECT 61 - + COUNT ( * ) + 74 * - - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
280

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7145
SELECT CAST( - + MIN( DISTINCT - 52 ) AS SIGNED ) FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
52

skipif mysql # not compatible
query I rowsort label-7145
SELECT CAST ( - + MIN ( DISTINCT - 52 ) AS INTEGER ) FROM tab0 AS cor0 WHERE NOT 72 IS NULL
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-7146
SELECT ALL COUNT( DISTINCT - 68 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7146
SELECT ALL COUNT ( DISTINCT - 68 ) FROM tab2
----
1

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7148
SELECT col1, - 4 + - col0 + - - col1 * - CAST( - ( + col2 ) AS SIGNED ) * - - ( - 99 ) FROM tab2 AS cor0
----
51
-116177
67
-384793
77
-304988

skipif mysql # not compatible
query II rowsort label-7148
SELECT col1, - 4 + - col0 + - - col1 * - CAST ( - ( + col2 ) AS INTEGER ) * - - ( - 99 ) FROM tab2 AS cor0
----
51
-116177
67
-384793
77
-304988

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 90 * + 32 * + 89 col2 FROM tab2 AS cor0
----
256320
256320
256320

onlyif mysql # DIV for integer division: 
query I rowsort label-7150
SELECT ALL 95 DIV col2 AS col1 FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7150
SELECT ALL 95 / col2 AS col1 FROM tab1 AS cor0
----
0
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-7151
SELECT ALL + 50 DIV - col2 + + col0 AS col2, - col0 FROM tab1 cor0
----
51
-51
85
-85
91
-91

skipif mysql # not compatible
query II rowsort label-7151
SELECT ALL + 50 / - col2 + + col0 AS col2, - col0 FROM tab1 cor0
----
51
-51
85
-85
91
-91

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7153
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT + CAST( + 37 AS SIGNED ) <= - 69 + - col0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-7153
SELECT DISTINCT + col1 AS col1 FROM tab1 WHERE NOT + CAST ( + 37 AS INTEGER ) <= - 69 + - col0
----
14
47
5

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

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

query II rowsort
SELECT DISTINCT col2 + - + 53, + col0 AS col0 FROM tab0
----
-43
87
-6
15
46
97

query I rowsort
SELECT ALL - col2 * - 66 * + col1 FROM tab2
----
203280
256476
77418

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7157
SELECT + AVG ( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-7157
SELECT + AVG ( DISTINCT - CAST ( NULL AS REAL ) ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - - col1 FROM tab0 AS cor0 WHERE - col2 * 33 * 13 + - 38 IS NOT NULL
----
1
21
81

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

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

query I rowsort
SELECT 46 AS col2 FROM tab2 AS cor0 WHERE + 19 IS NULL
----

query I rowsort
SELECT - 92 + col1 AS col0 FROM tab2
----
-15
-25
-41

query I rowsort
SELECT ( 74 ) + + col1 AS col2 FROM tab1
----
121
79
88

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 97 NOT BETWEEN + + col2 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + col1 AS col2, + 30 col2 FROM tab0 AS cor0
----
1
30
21
30
81
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7165
SELECT DISTINCT - - 27 / col0 - + CAST( NULL AS SIGNED ) + + col0 + - - 35 / col1 AS col0 FROM tab1 AS cor0
----
NULL

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

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

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7169
SELECT - CAST( 63 AS SIGNED ) DIV - - 78 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7169
SELECT - CAST ( 63 AS INTEGER ) / - - 78 FROM tab1 AS cor0
----
0
0
0

query II rowsort
SELECT ALL 58, 53 + + 12 AS col2 FROM tab1
----
58
65
58
65
58
65

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7172
SELECT ALL - MIN( + - 57 ), - 79 AS col2 FROM tab0
----
57
-79

skipif mysql # not compatible
query II rowsort label-7172
SELECT ALL - MIN ( + - 57 ), - 79 AS col2 FROM tab0
----
57
-79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 - - 7 * - col0 col2 FROM tab2
----
-299
-408
-467

query I rowsort
SELECT 42 - 44 AS col2 FROM tab2
----
-2
-2
-2

query I rowsort
SELECT ALL - ( col0 ) * - + 69 - col0 FROM tab2 cor0
----
3128
4352
5100

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7177
SELECT DISTINCT + 80 col2, MAX( DISTINCT - col2 ) * + ( 32 ) AS col2 FROM tab0 cor0
----
80
-320

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7177
SELECT DISTINCT + 80 col2, MAX ( DISTINCT - col2 ) * + ( 32 ) AS col2 FROM tab0 cor0
----
80
-320

onlyif mysql # DIV for integer division: 
query I rowsort label-7178
SELECT DISTINCT 22 DIV 4 - col1 + - col0 FROM tab1 AS cor0
----
-133
-60
-85

skipif mysql # not compatible
query I rowsort label-7178
SELECT DISTINCT 22 / 4 - col1 + - col0 FROM tab1 AS cor0
----
-133
-60
-85

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - + col0 * - 37 - - col1 + + - col1
----

query I rowsort
SELECT ALL + 24 * - 91 FROM tab0
----
-2184
-2184
-2184

onlyif mysql # DIV for integer division: 
query I rowsort label-7181
SELECT DISTINCT col0 DIV + ( + 58 ) FROM tab1
----
0
1

skipif mysql # not compatible
query I rowsort label-7181
SELECT DISTINCT col0 / + ( + 58 ) FROM tab1
----
0
1

onlyif mysql # aggregate syntax: 
query II rowsort label-7182
SELECT ALL COUNT( * ) * 46 AS col1, - 40 FROM tab1 AS cor0
----
138
-40

skipif mysql # not compatible
query II rowsort label-7182
SELECT ALL COUNT ( * ) * 46 AS col1, - 40 FROM tab1 AS cor0
----
138
-40

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 42 col1 FROM tab0 cor0
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-7184
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE + 18 * - + col1 + + - col1 + - + col0 + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7184
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE + 18 * - + col1 + + - col1 + - + col0 + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7185
SELECT + MAX( + 47 ) AS col1 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
query I rowsort label-7185
SELECT + MAX ( + 47 ) AS col1 FROM tab1 AS cor0
----
47

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7187
SELECT COUNT( - ( + 2 ) ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-7187
SELECT COUNT ( - ( + 2 ) ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-7188
SELECT + + COUNT( * ) + + 68 + - COUNT( * ) * 60 - + COUNT( * ) FROM tab1 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-7188
SELECT + + COUNT ( * ) + + 68 + - COUNT ( * ) * 60 - + COUNT ( * ) FROM tab1 AS cor0
----
-112

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7190
SELECT DISTINCT - - SUM( DISTINCT + - 63 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-7190
SELECT DISTINCT - - SUM ( DISTINCT + - 63 ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-63

query I rowsort
SELECT - 45 - + col1 * - - col1 + col1 FROM tab2 AS cor0
----
-2595
-4467
-5897

query I rowsort
SELECT DISTINCT + - col2 - + col1 AS col2 FROM tab0 AS cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7193
SELECT ALL - - ( - MAX( DISTINCT 4 ) ) + + - COUNT( * ) FROM tab0 cor0 WHERE NULL < - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-7193
SELECT ALL - - ( - MAX ( DISTINCT 4 ) ) + + - COUNT ( * ) FROM tab0 cor0 WHERE NULL < - col2
----
NULL

query I rowsort
SELECT + ( - 46 ) + - - col0 AS col2 FROM tab2 AS cor0
----
0
18
29

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL > col0 * - col1 + + 12
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7196
SELECT DISTINCT + + col0 - - - ( - col2 ) DIV + col2 col1 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7196
SELECT DISTINCT + + col0 - - - ( - col2 ) / + col2 col1 FROM tab1 AS cor0
----
52
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 - - col1 col0 FROM tab0 AS cor0
----
-98
11
34

query I rowsort
SELECT ( - 50 ) + + - col0 + + col1 AS col2 FROM tab2
----
-37
-45
-58

query I rowsort
SELECT ALL 34 * - col0 + - col0 FROM tab1
----
-1785
-2975
-3185

onlyif mysql # aggregate syntax: 
query I rowsort label-7200
SELECT 88 * COUNT( * ) AS col2 FROM tab0
----
264

skipif mysql # not compatible
query I rowsort label-7200
SELECT 88 * COUNT ( * ) AS col2 FROM tab0
----
264

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

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 >= - 23
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7203
SELECT - COUNT( * ) * + 7 * - 53 FROM tab2
----
1113

skipif mysql # not compatible
query I rowsort label-7203
SELECT - COUNT ( * ) * + 7 * - 53 FROM tab2
----
1113

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7206
SELECT ALL + MIN( col1 ) AS col0 FROM tab2 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-7206
SELECT ALL + MIN ( col1 ) AS col0 FROM tab2 AS cor0
----
51

query I rowsort
SELECT col1 * - 22 AS col0 FROM tab1
----
-1034
-110
-308

onlyif mysql # aggregate syntax: 
query I rowsort label-7208
SELECT DISTINCT + COUNT( 46 ) AS col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7208
SELECT DISTINCT + COUNT ( 46 ) AS col0 FROM tab1 AS cor0
----
3

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

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

query I rowsort
SELECT ALL + 90 AS col2 FROM tab0 cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 col0 FROM tab2 AS cor0 WHERE NOT ( NOT - col2 IS NOT NULL ) OR NOT col1 - + + col2 * - - col0 IS NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - ( + col0 ) BETWEEN - 35 AND + col1
----
87
21
10
97
1
99

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

query I rowsort
SELECT DISTINCT + col2 + col0 * 7 FROM tab2
----
345
488
583

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE + - col0 IS NOT NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-7216
SELECT - SUM( col2 ) AS col0, 26 FROM tab0 AS cor0
----
-156
26

skipif mysql # not compatible
query II rowsort label-7216
SELECT - SUM ( col2 ) AS col0, 26 FROM tab0 AS cor0
----
-156
26

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7218
SELECT ALL - MAX( + col0 ) * 42 DIV - MIN( DISTINCT - col2 ) col1 FROM tab0 AS cor0
----
-41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7218
SELECT ALL - MAX ( + col0 ) * 42 / - MIN ( DISTINCT - col2 ) col1 FROM tab0 AS cor0
----
-41

query I rowsort
SELECT + + 13 + + - col0 FROM tab1 AS cor0
----
-38
-72
-78

query I rowsort
SELECT - - col1 + + - 57 - - col2 AS col0 FROM tab0 AS cor0
----
-26
43
71

onlyif mysql # aggregate syntax: 
query I rowsort label-7221
SELECT + 65 + + COUNT( * ) AS col1 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-7221
SELECT + 65 + + COUNT ( * ) AS col1 FROM tab2
----
68

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7223
SELECT DISTINCT - 22 - MIN( ALL 61 ) + CAST( - 57 AS SIGNED ) * - 16 col1 FROM tab0 AS cor0
----
829

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7223
SELECT DISTINCT - 22 - MIN ( ALL 61 ) + CAST ( - 57 AS INTEGER ) * - 16 col1 FROM tab0 AS cor0
----
829

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7225
SELECT + 12 - col2 DIV col2 + + 37 DIV + 61 FROM tab1 AS cor0
----
11
11
11

skipif mysql # not compatible
query I rowsort label-7225
SELECT + 12 - col2 / col2 + + 37 / + 61 FROM tab1 AS cor0
----
11
11
11

onlyif mysql # DIV for integer division: 
query I rowsort label-7226
SELECT DISTINCT col0 DIV 78 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-7226
SELECT DISTINCT col0 / 78 FROM tab0
----
0
1

query I rowsort
SELECT ALL - 7 FROM tab1, tab0 cor0
----
9 values hashing to ba940cd66e21e94e95aada5f28e1faf5

query I rowsort
SELECT DISTINCT ( 59 ) AS col2 FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-7229
SELECT ALL COUNT( ALL - 90 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7229
SELECT ALL COUNT ( ALL - 90 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - col1 * + 69 AS col0 FROM tab0 AS cor0
----
-1449
-5589
-69

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE - 55 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7232
SELECT DISTINCT + + SUM( col0 ) + + 32 * - 91 AS col1 FROM tab1 AS cor0
----
-2685

skipif mysql # not compatible
query I rowsort label-7232
SELECT DISTINCT + + SUM ( col0 ) + + 32 * - 91 AS col1 FROM tab1 AS cor0
----
-2685

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col2 * - col2 col2 FROM tab0 AS cor0
----
-100
-2209
-9801

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

skipif mysql # not compatible
query I rowsort label-7235
SELECT MIN ( + 58 ) FROM tab2 cor0
----
58

query I rowsort
SELECT DISTINCT 2 * + 91 AS col2 FROM tab1 AS cor0
----
182

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7237
SELECT + col2 DIV + - col0 + col2 * + - 13 * + CAST( - CAST( - 50 AS SIGNED ) AS SIGNED ) col0 FROM tab0 AS cor0
----
-30553
-64351
-6500

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7237
SELECT + col2 / + - col0 + col2 * + - 13 * + CAST ( - CAST ( - 50 AS INTEGER ) AS INTEGER ) col0 FROM tab0 AS cor0
----
-30553
-64351
-6500

onlyif mysql # aggregate syntax: 
query II rowsort label-7238
SELECT COUNT( * ) AS col0, - 42 FROM tab1 AS cor0
----
3
-42

skipif mysql # not compatible
query II rowsort label-7238
SELECT COUNT ( * ) AS col0, - 42 FROM tab1 AS cor0
----
3
-42

query I rowsort
SELECT DISTINCT + 45 * + col1 FROM tab2
----
2295
3015
3465

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col2 * col2 col2 FROM tab2
----
102400
24334
252300

query I rowsort
SELECT ALL + 51 * + col1 AS col1 FROM tab1
----
2397
255
714

query I rowsort
SELECT DISTINCT col2 * - col2 + + col1 - col2 FROM tab1
----
-3535
-4645
-9298

query I rowsort
SELECT col1 * - col1 * - col0 + 20 AS col2 FROM tab1
----
10016
201039
2145

query I rowsort
SELECT + 94 * - col0 + + - col2 - 90 AS col2 FROM tab0
----
-1547
-8278
-9307

query I rowsort
SELECT ALL 44 * - - 86 + + col0 * + col2 * - col0 FROM tab2
----
-160056
-322466
-44884

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col0 >= + - col1
----
75
67
58

query III rowsort
SELECT * FROM tab1 WHERE ( - 64 < NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7249
SELECT ALL COUNT( * ) * 82 FROM tab2
----
246

skipif mysql # not compatible
query I rowsort label-7249
SELECT ALL COUNT ( * ) * 82 FROM tab2
----
246

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7251
SELECT ALL + + COUNT( 3 ) * - 75 - - COUNT( ALL - 59 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-666

skipif mysql # not compatible
query I rowsort label-7251
SELECT ALL + + COUNT ( 3 ) * - 75 - - COUNT ( ALL - 59 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
-666

query II rowsort
SELECT - col2 + - 94, ( col0 ) FROM tab1 AS cor0
----
-153
85
-162
91
-190
51

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

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

query I rowsort
SELECT DISTINCT + col1 + + 29 FROM tab0 AS cor0 WHERE col0 + - col2 >= + 51 * + col2 + + col2
----

query I rowsort
SELECT ALL + col1 * 72 * col2 * + 21 AS col0 FROM tab0 AS cor0
----
149688
317520
5756184

query I rowsort
SELECT DISTINCT + col0 * col2 * + col1 FROM tab0 cor0
----
18270
57105
9603

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

query II rowsort
SELECT - 9, col1 + - - col2 FROM tab1 WHERE NOT 54 IS NOT NULL
----

query I rowsort
SELECT - ( - + col1 ) AS col0 FROM tab2
----
51
67
77

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

query I rowsort
SELECT + - col1 + - 43 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-48
-57
-90

onlyif mysql # aggregate syntax: 
query II rowsort label-7262
SELECT DISTINCT 7, + ( + COUNT( DISTINCT col0 ) ) AS col2 FROM tab0
----
7
3

skipif mysql # not compatible
query II rowsort label-7262
SELECT DISTINCT 7, + ( + COUNT ( DISTINCT col0 ) ) AS col2 FROM tab0
----
7
3

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

query I rowsort
SELECT + 47 * - + col1 * 90 FROM tab1
----
-198810
-21150
-59220

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7266
SELECT - col2 DIV - - col2 AS col0 FROM tab0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-7266
SELECT - col2 / - - col2 AS col0 FROM tab0
----
-1
-1
-1

query I rowsort
SELECT ALL ( 67 ) AS col1 FROM tab1 cor0
----
67
67
67

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7269
SELECT ALL CAST( AVG ( - col2 ) AS SIGNED ) FROM tab2
----
-40

skipif mysql # not compatible
query I rowsort label-7269
SELECT ALL CAST ( AVG ( - col2 ) AS INTEGER ) FROM tab2
----
-40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7271
SELECT MIN( DISTINCT ( + col1 ) ) + - - 37 FROM tab0 cor0
----
38

skipif mysql # not compatible
query I rowsort label-7271
SELECT MIN ( DISTINCT ( + col1 ) ) + - - 37 FROM tab0 cor0
----
38

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7273
SELECT - 90 + + + COUNT( * ) AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-7273
SELECT - 90 + + + COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-87

query III rowsort
SELECT * FROM tab1 cor0 WHERE 68 <= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7275
SELECT - - col2 * col0 DIV - 55 FROM tab0 AS cor0
----
-12
-15
-174

skipif mysql # not compatible
query I rowsort label-7275
SELECT - - col2 * col0 / - 55 FROM tab0 AS cor0
----
-12
-15
-174

onlyif mysql # aggregate syntax: 
query I rowsort label-7276
SELECT + ( - + 91 ) + + COUNT( ALL - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-88

skipif mysql # not compatible
query I rowsort label-7276
SELECT + ( - + 91 ) + + COUNT ( ALL - col1 ) AS col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-88

query I rowsort
SELECT ALL col0 * + 57 + + col0 FROM tab2
----
2668
3712
4350

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

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

query I rowsort
SELECT DISTINCT + col0 + - - col2 + - col1 FROM tab0
----
-19
195
76

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

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

query I rowsort
SELECT ALL col0 + + + col2 + + - 72 FROM tab1
----
72
75
87

query I rowsort
SELECT col2 * col2 - + col0 * 38 - + - 61 FROM tab2
----
-1158
-771
575

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

query I rowsort
SELECT - 22 + + col0 AS col1 FROM tab0 cor0
----
-7
65
75

query I rowsort
SELECT - - 9 + 83 - + - 14 AS col2 FROM tab2 AS cor0
----
106
106
106

onlyif mysql # aggregate syntax: 
query I rowsort label-7286
SELECT ALL 53 + + MAX( DISTINCT 0 ) + - 54 + - 89 * - - 20 col1 FROM tab2
----
-1781

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7286
SELECT ALL 53 + + MAX ( DISTINCT 0 ) + - 54 + - 89 * - - 20 col1 FROM tab2
----
-1781

query II rowsort
SELECT col0 * - 70, + col1 + + col2 + + 63 + + - ( 90 ) AS col1 FROM tab2
----
-3220
47
-4480
90
-5250
98

query I rowsort
SELECT - + col1 FROM tab2 WHERE 50 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * col0 AS col1 FROM tab0 cor0
----
225
7569
9409

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

query I rowsort
SELECT ALL + + 25 * + 88 FROM tab2 AS cor0
----
2200
2200
2200

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

query I rowsort
SELECT DISTINCT - col1 - - ( - 31 ) AS col2 FROM tab0 AS cor0 WHERE NOT col2 * 77 <> - + col1
----

query I rowsort
SELECT + col0 * 60 FROM tab1 AS cor0
----
3060
5100
5460

query II rowsort
SELECT DISTINCT - ( - col1 ), 31 + - + col1 AS col0 FROM tab0 AS cor0
----
1
30
21
10
81
-50

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7297
SELECT - SUM( DISTINCT col2 ) FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-7297
SELECT - SUM ( DISTINCT col2 ) FROM tab0
----
-156

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > col1 * 9 + - ( col0 ) + + - col2 * - 38
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7299
SELECT DISTINCT + + COUNT( * ) col2, COUNT( * ) AS col0 FROM tab0 WHERE NOT NULL <> + - col2 + col0
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7299
SELECT DISTINCT + + COUNT ( * ) col2, COUNT ( * ) AS col0 FROM tab0 WHERE NOT NULL <> + - col2 + col0
----
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7300
SELECT ALL CAST( NULL AS SIGNED ) * - 3 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7300
SELECT ALL CAST ( NULL AS INTEGER ) * - 3 AS col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7302
SELECT ALL - CAST( col1 AS SIGNED ) * - col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-7302
SELECT ALL - CAST ( col1 AS INTEGER ) * - col1 FROM tab2
----
2601
4489
5929

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7304
SELECT SUM( DISTINCT - - col2 ) * + 27 AS col1 FROM tab0 AS cor0
----
4212

skipif mysql # not compatible
query I rowsort label-7304
SELECT SUM ( DISTINCT - - col2 ) * + 27 AS col1 FROM tab0 AS cor0
----
4212

query II rowsort
SELECT 74, + ( - - col0 ) * 37 + + col1 FROM tab2 AS cor0 WHERE NOT - + col1 + col1 + - 90 * col2 IS NOT NULL AND NOT NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7306
SELECT - - COUNT( - col2 ) col1, + 80 * + 42 AS col2 FROM tab2 AS cor0
----
3
3360

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7306
SELECT - - COUNT ( - col2 ) col1, + 80 * + 42 AS col2 FROM tab2 AS cor0
----
3
3360

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

skipif mysql # not compatible
query II rowsort label-7307
SELECT - 93, - CAST ( col0 AS INTEGER ) AS col0 FROM tab2
----
-93
-46
-93
-64
-93
-75

query I rowsort
SELECT + 98 - - 92 AS col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 2d37350b255ef21d1c45b9bd894205c8

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7309
SELECT + + col0 DIV + CAST( - col2 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
-1
-1
0

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

query I rowsort
SELECT ALL - col0 * 13 + - + 21 * col2 AS col1 FROM tab0 AS cor0
----
-1182
-1341
-3340

query I rowsort
SELECT + - col2 + - 33 FROM tab2 AS cor0
----
-56
-73
-91

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-7312
SELECT - col2 * - - 61 + col1 * col2 DIV - CAST( + + col1 AS SIGNED ) AS col1, col1 AS col2 FROM tab1 AS cor0
----
-3658
5
-4216
47
-5952
14

skipif mysql # not compatible
query II rowsort label-7312
SELECT - col2 * - - 61 + col1 * col2 / - CAST ( + + col1 AS INTEGER ) AS col1, col1 AS col2 FROM tab1 AS cor0
----
-3658
5
-4216
47
-5952
14

query I rowsort
SELECT - - col1 + - - 47 AS col0 FROM tab0 AS cor0
----
128
48
68

onlyif mysql # aggregate syntax: 
query I rowsort label-7314
SELECT DISTINCT COUNT( DISTINCT - 13 ) AS col0 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-7314
SELECT DISTINCT COUNT ( DISTINCT - 13 ) AS col0 FROM tab2 AS cor0
----
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col1 * - 8 * + ( + + 96 ) + - 73 + - + col1 < NULL
----

query I rowsort
SELECT ALL col0 - + + col1 AS col2 FROM tab2
----
-13
-5
8

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

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

query I rowsort
SELECT ALL 18 - + + col1 FROM tab2 AS cor0
----
-33
-49
-59

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

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

query I rowsort
SELECT - col0 * + + col1 AS col1 FROM tab1
----
-425
-4277
-714

onlyif mysql # DIV for integer division: 
query I rowsort label-7321
SELECT 65 DIV - + col0 AS col1 FROM tab0
----
-4
0
0

skipif mysql # not compatible
query I rowsort label-7321
SELECT 65 / - + col0 AS col1 FROM tab0
----
-4
0
0

query I rowsort
SELECT DISTINCT + col1 * + ( col2 ) FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT DISTINCT + col1 FROM tab0 AS cor0 WHERE col2 * - - col1 * - - 77 IS NOT NULL
----
1
21
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7324
SELECT ALL + - 59 DIV - col2 FROM tab0 AS cor0
----
0
1
5

skipif mysql # not compatible
query I rowsort label-7324
SELECT ALL + - 59 / - col2 FROM tab0 AS cor0
----
0
1
5

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7325
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-7325
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + CAST ( NULL AS REAL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT 34 AS col2 FROM tab0, tab0 AS cor0
----
34

query I rowsort
SELECT ALL - 40 * col1 AS col2 FROM tab1
----
-1880
-200
-560

query I rowsort
SELECT - col1 * - 84 * + col0 AS col0 FROM tab2
----
197064
413952
422100

query I rowsort
SELECT ALL 14 * - col0 AS col2 FROM tab2 cor0
----
-1050
-644
-896

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 25 BETWEEN + col2 AND col1 * - 33 * + 72
----

query II rowsort
SELECT - 15, col1 + - - col0 AS col1 FROM tab0 AS cor0
----
-15
108
-15
96
-15
98

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7333
SELECT DISTINCT - 62 / - CAST( NULL AS SIGNED ), COUNT( * ) col0 FROM tab1
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7333
SELECT DISTINCT - 62 / - CAST ( NULL AS INTEGER ), COUNT ( * ) col0 FROM tab1
----
NULL
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7335
SELECT DISTINCT COUNT( DISTINCT + 72 ) col2 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7335
SELECT DISTINCT COUNT ( DISTINCT + 72 ) col2 FROM tab1 AS cor0
----
1

query I rowsort
SELECT - 41 * + col1 + + 0 AS col1 FROM tab0 cor0
----
-3321
-41
-861

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7337
SELECT + - 28 DIV + - COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-7337
SELECT + - 28 / + - COUNT ( * ) FROM tab0 AS cor0
----
9

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

query I rowsort
SELECT DISTINCT col0 + ( - col1 ) * - col0 + col2 FROM tab2
----
2415
5032
5158

onlyif mysql # aggregate syntax: 
query I rowsort label-7340
SELECT ALL + 34 + - COUNT( * ) AS col2 FROM tab2
----
31

skipif mysql # not compatible
query I rowsort label-7340
SELECT ALL + 34 + - COUNT ( * ) AS col2 FROM tab2
----
31

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

query I rowsort
SELECT DISTINCT 93 * + col0 AS col0 FROM tab2
----
4278
5952
6975

query I rowsort
SELECT col2 - - 77 * - col1 + 86 FROM tab0
----
-1521
-6104
108

query I rowsort
SELECT + col1 - 32 AS col0 FROM tab1
----
-18
-27
15

onlyif mysql # aggregate syntax: 
query I rowsort label-7345
SELECT 33 - + COUNT( * ) + - 99 FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-7345
SELECT 33 - + COUNT ( * ) + - 99 FROM tab0
----
-69

query I rowsort
SELECT DISTINCT ( + col2 ) + col2 + - + 97 + - 56 + + 10 * + - col0 FROM tab1
----
-471
-885
-927

query I rowsort
SELECT ALL col0 * - 88 + - 26 FROM tab0
----
-1346
-7682
-8562

query III rowsort
SELECT ALL * FROM tab0 WHERE - 38 > + 24 / + col2 + - 72
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

skipif mysql # not compatible
query I rowsort label-7351
SELECT DISTINCT - 18 * + ( col1 ) * CAST ( NULL AS INTEGER ) + + 22 + + 37 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-7352
SELECT + col2 * + col2 AS col2, col2 + 48 DIV - + col2 AS col2 FROM tab2 AS cor0
----
1600
39
3364
58
529
21

skipif mysql # not compatible
query II rowsort label-7352
SELECT + col2 * + col2 AS col2, col2 + 48 / - + col2 AS col2 FROM tab2 AS cor0
----
1600
39
3364
58
529
21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7353
SELECT ALL - - CAST( + col2 AS SIGNED ) AS col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-7353
SELECT ALL - - CAST ( + col2 AS INTEGER ) AS col0 FROM tab2 cor0
----
23
40
58

query I rowsort
SELECT - + col0 * + col1 * - - col2 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-7355
SELECT + 33 * + - COUNT( - - 42 ) FROM tab2 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-7355
SELECT + 33 * + - COUNT ( - - 42 ) FROM tab2 AS cor0
----
-99

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

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

query I rowsort
SELECT DISTINCT + 49 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 77 + - 14 IS NULL
----

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

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

query I rowsort
SELECT DISTINCT + - 39 FROM tab0 WHERE - col0 IS NOT NULL
----
-39

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7361
SELECT DISTINCT 5 DIV + CAST( + col0 AS SIGNED ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-7361
SELECT DISTINCT 5 / + CAST ( + col0 AS INTEGER ) FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 71 + - + col0 col1 FROM tab2
----
-4
25
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7363
SELECT DISTINCT - + CAST( - 8 AS SIGNED ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7363
SELECT DISTINCT - + CAST ( - 8 AS INTEGER ) FROM tab0 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-7364
SELECT DISTINCT + + COUNT( * ) * SUM( DISTINCT col0 ) FROM tab1 AS cor0
----
681

skipif mysql # not compatible
query I rowsort label-7364
SELECT DISTINCT + + COUNT ( * ) * SUM ( DISTINCT col0 ) FROM tab1 AS cor0
----
681

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7365
SELECT - ( CAST( + - MIN( DISTINCT 47 ) AS SIGNED ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
47

skipif mysql # not compatible
query I rowsort label-7365
SELECT - ( CAST ( + - MIN ( DISTINCT 47 ) AS INTEGER ) ) AS col1 FROM tab0 cor0 CROSS JOIN tab1 AS cor1
----
47

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

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-7367
SELECT + CAST( NULL AS SIGNED ) AS col2, CAST( NULL AS DECIMAL ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

skipif mysql # not compatible
query II rowsort label-7367
SELECT + CAST ( NULL AS INTEGER ) AS col2, CAST ( NULL AS REAL ) FROM tab2
----
NULL
NULL
NULL
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7368
SELECT 18 - - COUNT( * ) AS col2 FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-7368
SELECT 18 - - COUNT ( * ) AS col2 FROM tab1
----
21

query I rowsort
SELECT ALL - col2 + col0 + + - col0 + - col2 FROM tab2 AS cor0
----
-116
-46
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7370
SELECT - 94 + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7370
SELECT - 94 + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( - 40 ) + - col0 FROM tab1 AS cor0
----
-11
-45
-51

query II rowsort
SELECT DISTINCT 16 AS col1, 95 FROM tab0 AS cor0
----
16
95

query I rowsort
SELECT ALL - col1 - + col1 * - - col0 FROM tab0 AS cor0
----
-1296
-1848
-98

query I rowsort
SELECT 62 + - - 94 + - - 46 AS col2 FROM tab0 AS cor0
----
202
202
202

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7376
SELECT COUNT ( * ) * ( 93 ) col1 FROM tab0
----
279

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7377
SELECT ALL - + CAST( - col1 AS SIGNED ) FROM tab2 WHERE NOT + col1 * - col2 IS NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-7377
SELECT ALL - + CAST ( - col1 AS INTEGER ) FROM tab2 WHERE NOT + col1 * - col2 IS NULL
----
51
67
77

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7379
SELECT DISTINCT - 77 * - ( - + col1 ) - + + col0 DIV + + col2 FROM tab0
----
-1625
-6237
-77

skipif mysql # not compatible
query I rowsort label-7379
SELECT DISTINCT - 77 * - ( - + col1 ) - + + col0 / + + col2 FROM tab0
----
-1625
-6237
-77

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7381
SELECT DISTINCT - SUM( ALL - + 1 ) AS col2 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-7381
SELECT DISTINCT - SUM ( ALL - + 1 ) AS col2 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col1, - col2 col2 FROM tab0 AS cor0
----
1
-99
21
-10
81
-47

onlyif mysql # DIV for integer division: 
query II rowsort label-7383
SELECT col1 AS col2, col2 + - 77 DIV - 92 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif mysql # not compatible
query II rowsort label-7383
SELECT col1 AS col2, col2 + - 77 / - 92 FROM tab1 AS cor0
----
14
96
47
68
5
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 43 col0, col1 AS col2 FROM tab0 AS cor0 WHERE NOT col0 + - 43 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7385
SELECT DISTINCT + + COUNT( DISTINCT - 4 ) col0 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7385
SELECT DISTINCT + + COUNT ( DISTINCT - 4 ) col0 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT ( - 43 ) AS col0 FROM tab2 AS cor0 WHERE ( NOT NULL IS NOT NULL )
----
-43

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 AS col2, col0 col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query II rowsort
SELECT DISTINCT - 45 + - col2 AS col1, col0 FROM tab0
----
-144
97
-55
87
-92
15

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

query I rowsort
SELECT DISTINCT + - ( - 38 ) * col1 FROM tab2 AS cor0
----
1938
2546
2926

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 cor0 WHERE NOT + 0 IS NOT NULL
----

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

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

query I rowsort
SELECT col1 + + 3 + 68 AS col2 FROM tab0
----
152
72
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7395
SELECT - 41 * - col1 * + ( - col1 ) + - col0, col1 col2, - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
9 values hashing to 316aa1cf953de8c60c453f0ffcfc6a90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort label-7395
SELECT - 41 * - col1 * + ( - col1 ) + - col0, col1 col2, - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
9 values hashing to 316aa1cf953de8c60c453f0ffcfc6a90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + 54 - - col1 col0 FROM tab2 AS cor0
----
-3
13
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 * - col1 - col0 col1 FROM tab1 AS cor0
----
-1143
-3757
-475

onlyif mysql # aggregate syntax: 
query I rowsort label-7398
SELECT DISTINCT COUNT( * ) * - - 67 FROM tab0 AS cor0
----
201

skipif mysql # not compatible
query I rowsort label-7398
SELECT DISTINCT COUNT ( * ) * - - 67 FROM tab0 AS cor0
----
201

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

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

query I rowsort
SELECT - 73 * 10 - + ( - col0 ) AS col2 FROM tab0
----
-633
-643
-715

query I rowsort
SELECT col1 - ( 92 ) FROM tab0
----
-11
-71
-91

query I rowsort
SELECT 84 - - + col0 FROM tab1
----
135
169
175

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

skipif mysql # not compatible
query I rowsort label-7403
SELECT + COUNT ( * ) * + CAST ( NULL AS INTEGER ) - - - 69 AS col1 FROM tab2
----
NULL

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

query I rowsort
SELECT DISTINCT + ( col0 ) * - 55 FROM tab1 cor0
----
-2805
-4675
-5005

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7406
SELECT 21 AS col1, - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
21
NULL
21
NULL
21
NULL

skipif mysql # not compatible
query II rowsort label-7406
SELECT 21 AS col1, - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
21
NULL
21
NULL
21
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7407
SELECT - col1 * + + col0 - + + CAST( NULL AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - 5
----

skipif mysql # not compatible
query I rowsort label-7407
SELECT - col1 * + + col0 - + + CAST ( NULL AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT NULL >= - 5
----

query II rowsort
SELECT DISTINCT col2 * + 44, - 22 AS col0 FROM tab2 AS cor0
----
1012
-22
1760
-22
2552
-22

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

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

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

skipif mysql # not compatible
query I rowsort label-7410
SELECT + ( + - SUM ( col0 ) ) FROM tab0 AS cor0
----
-199

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7412
SELECT - + 36 DIV + 64 AS col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7412
SELECT - + 36 / + 64 AS col1 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-7413
SELECT DISTINCT + col2 AS col0, + 23 DIV + col1 AS col0 FROM tab1
----
59
4
68
0
96
1

skipif mysql # not compatible
query II rowsort label-7413
SELECT DISTINCT + col2 AS col0, + 23 / + col1 AS col0 FROM tab1
----
59
4
68
0
96
1

query I rowsort
SELECT DISTINCT + + ( - col2 ) + - ( + 13 ) FROM tab0 AS cor0
----
-112
-23
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7415
SELECT + 78 DIV - COUNT( ALL + 52 ) + ( + 30 ) AS col1 FROM tab2
----
4

skipif mysql # not compatible
query I rowsort label-7415
SELECT + 78 / - COUNT ( ALL + 52 ) + ( + 30 ) AS col1 FROM tab2
----
4

query I rowsort
SELECT + col1 * 70 + 77 FROM tab1
----
1057
3367
427

query I rowsort
SELECT DISTINCT 71 * col1 FROM tab1
----
3337
355
994

onlyif mysql # DIV for integer division: 
query I rowsort label-7418
SELECT + col1 DIV - col0 + - 18 AS col0 FROM tab2
----
-18
-19
-19

skipif mysql # not compatible
query I rowsort label-7418
SELECT + col1 / - col0 + - 18 AS col0 FROM tab2
----
-18
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7419
SELECT ALL COUNT( * ) FROM tab0 WHERE + 62 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7419
SELECT ALL COUNT ( * ) FROM tab0 WHERE + 62 IS NOT NULL
----
3

query I rowsort
SELECT ALL col0 + 20 AS col2 FROM tab2 WHERE + 15 < ( NULL )
----

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

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

query I rowsort
SELECT DISTINCT 60 * 5 AS col2 FROM tab0 WHERE col0 * + col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7423
SELECT COUNT( * ) + 4 FROM tab1
----
7

skipif mysql # not compatible
query I rowsort label-7423
SELECT COUNT ( * ) + 4 FROM tab1
----
7

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

query I rowsort
SELECT + col0 - + 73 AS col1 FROM tab2
----
-27
-9
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7426
SELECT - 40 + MAX( + 38 ) * + COUNT( DISTINCT + 0 * col0 + - col0 ) FROM tab1
----
74

skipif mysql # not compatible
query I rowsort label-7426
SELECT - 40 + MAX ( + 38 ) * + COUNT ( DISTINCT + 0 * col0 + - col0 ) FROM tab1
----
74

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7427
SELECT ALL + 74 DIV SUM( + 56 ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-7427
SELECT ALL + 74 / SUM ( + 56 ) FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7428
SELECT 33 + + SUM( DISTINCT col1 + col2 ) FROM tab2
----
349

skipif mysql # not compatible
query I rowsort label-7428
SELECT 33 + + SUM ( DISTINCT col1 + col2 ) FROM tab2
----
349

onlyif mysql # aggregate syntax: 
query I rowsort label-7429
SELECT ALL - SUM( DISTINCT col0 ) FROM tab0 WHERE + 35 NOT IN ( col2 )
----
-199

skipif mysql # not compatible
query I rowsort label-7429
SELECT ALL - SUM ( DISTINCT col0 ) FROM tab0 WHERE + 35 NOT IN ( col2 )
----
-199

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

query III rowsort
SELECT * FROM tab1 WHERE NOT 49 IS NOT NULL
----

query I rowsort
SELECT 12 AS col0 FROM tab0 WHERE NOT + 62 IS NULL
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-7433
SELECT + ( MIN( - col2 ) ) FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7433
SELECT + ( MIN ( - col2 ) ) FROM tab1 WHERE ( NULL ) NOT IN ( col1 )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7434
SELECT + SUM( ALL - 65 ) AS col2 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-7434
SELECT + SUM ( ALL - 65 ) AS col2 FROM tab0
----
-195

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7436
SELECT COUNT( * ) col2 FROM tab1 WHERE NOT - 73 * + col1 + + col2 IS NOT NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7436
SELECT COUNT ( * ) col2 FROM tab1 WHERE NOT - 73 * + col1 + + col2 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT - 14 * + 37 AS col1 FROM tab2 WHERE NOT NULL NOT IN ( + col1 )
----

query I rowsort
SELECT DISTINCT 4 FROM tab1 WHERE NOT ( - col0 ) IN ( - ( 40 ) )
----
4

query I rowsort
SELECT + ( + 49 ) AS col1 FROM tab1
----
49
49
49

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7441
SELECT ( - 90 ) DIV COUNT( * ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-7441
SELECT ( - 90 ) / COUNT ( * ) FROM tab1 AS cor0
----
-30

query I rowsort
SELECT ALL col2 * + 12 - ( 94 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
1094
26
470

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7443
SELECT ALL CAST( col2 AS SIGNED ) * CAST( + 28 + + col0 / col1 AS SIGNED ) FROM tab0 AS cor0
----
12375
1316
320

skipif mysql # not compatible
query I rowsort label-7443
SELECT ALL CAST ( col2 AS INTEGER ) * CAST ( + 28 + + col0 / col1 AS INTEGER ) FROM tab0 AS cor0
----
12375
1316
320

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

query I rowsort
SELECT ALL col2 FROM tab1 WHERE col2 * - col1 IS NOT NULL
----
59
68
96

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7447
SELECT DISTINCT COUNT( * ) AS col0 FROM tab2 WHERE NOT - col0 NOT IN ( + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-7447
SELECT DISTINCT COUNT ( * ) AS col0 FROM tab2 WHERE NOT - col0 NOT IN ( + 37 )
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 17 * col1 col1 FROM tab0
----
-1377
-17
-357

query I rowsort
SELECT - 50 + col2 FROM tab2 AS cor0
----
-10
-27
8

onlyif mysql # DIV for integer division: 
query I rowsort label-7450
SELECT DISTINCT - + 95 DIV - col0 AS col0 FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7450
SELECT DISTINCT - + 95 / - col0 AS col0 FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7451
SELECT ( MAX( DISTINCT 20 ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 81 * col2 ) AND - 29
----
NULL

skipif mysql # not compatible
query I rowsort label-7451
SELECT ( MAX ( DISTINCT 20 ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( 81 * col2 ) AND - 29
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7452
SELECT ALL - col2 DIV + 80 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7452
SELECT ALL - col2 / + 80 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT col1 AS col1 FROM tab0 AS cor0 WHERE NOT col0 / 86 + - 62 NOT BETWEEN + 79 * - col2 AND ( + col0 )
----
1
21
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7454
SELECT - COUNT( DISTINCT - 88 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST( - col0 AS SIGNED ) * col1 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-7454
SELECT - COUNT ( DISTINCT - 88 ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( CAST ( - col0 AS INTEGER ) * col1 + col2 )
----
0

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7457
SELECT ALL COUNT ( col2 ) * COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN ( + col1 ) AND ( + col2 )
----
0

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7459
SELECT - COUNT ( * ) col1 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7460
SELECT COUNT( * ) FROM tab2 cor0 WHERE NULL IN ( + 42 )
----
0

skipif mysql # not compatible
query I rowsort label-7460
SELECT COUNT ( * ) FROM tab2 cor0 WHERE NULL IN ( + 42 )
----
0

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 89 * 99 < ( col2 * + col2 )
----

query I rowsort
SELECT DISTINCT - col1 + + - col1 - - col1 AS col0 FROM tab1
----
-14
-47
-5

query I rowsort
SELECT ALL 35 + - + col0 AS col1 FROM tab1
----
-16
-50
-56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7465
SELECT ALL - 35 / - + CAST( NULL AS SIGNED ) / ( 64 ) + col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7465
SELECT ALL - 35 / - + CAST ( NULL AS INTEGER ) / ( 64 ) + col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7466
SELECT 17 FROM tab1 WHERE + col0 - + col0 NOT BETWEEN col1 + - CAST( + col2 - - 40 AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-7466
SELECT 17 FROM tab1 WHERE + col0 - + col0 NOT BETWEEN col1 + - CAST ( + col2 - - 40 AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7467
SELECT DISTINCT COUNT( * ) * - 42 + 43 AS col1 FROM tab2
----
-83

skipif mysql # not compatible
query I rowsort label-7467
SELECT DISTINCT COUNT ( * ) * - 42 + 43 AS col1 FROM tab2
----
-83

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 col1 FROM tab2 WHERE NULL IN ( - col1 )
----

query I rowsort
SELECT ALL - - col1 + - 56 FROM tab1 AS cor0
----
-42
-51
-9

query I rowsort
SELECT 84 * - 62 + col2 FROM tab2 AS cor0
----
-5150
-5168
-5185

onlyif mysql # aggregate syntax: 
query I rowsort label-7471
SELECT SUM( 90 ) * 46 + 0 * + COUNT( * ) FROM tab2 cor0
----
12420

skipif mysql # not compatible
query I rowsort label-7471
SELECT SUM ( 90 ) * 46 + 0 * + COUNT ( * ) FROM tab2 cor0
----
12420

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

query I rowsort
SELECT ALL + col2 + - - col1 - 28 + - col0 AS col1 FROM tab1
----
-4
-49
31

onlyif mysql # aggregate syntax: 
query I rowsort label-7474
SELECT DISTINCT - ( + + COUNT( * ) ) + - - 54 AS col0 FROM tab1
----
51

skipif mysql # not compatible
query I rowsort label-7474
SELECT DISTINCT - ( + + COUNT ( * ) ) + - - 54 AS col0 FROM tab1
----
51

onlyif mysql # DIV for integer division: 
query I rowsort label-7475
SELECT + 65 DIV 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

skipif mysql # not compatible
query I rowsort label-7475
SELECT + 65 / 40 AS col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 001554c2952f1a80506b182ee04686f5

query I rowsort
SELECT + col1 * - col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-1
-441
-6561

query I rowsort
SELECT DISTINCT + + 62 * - 93 * - col1 AS col1 FROM tab1 AS cor0
----
271002
28830
80724

query I rowsort
SELECT ALL ( 26 ) AS col2 FROM tab1
----
26
26
26

query I rowsort
SELECT DISTINCT col2 + + ( col0 ) FROM tab1 WHERE NULL NOT BETWEEN ( + - 46 * - + col0 ) AND + 40
----

query I rowsort
SELECT + col1 * + + 36 AS col1 FROM tab1
----
1692
180
504

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

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

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

skipif mysql # not compatible
query I rowsort label-7482
SELECT ALL MAX ( ALL - col0 ) AS col1 FROM tab0
----
-15

query I rowsort
SELECT DISTINCT col0 * - + col2 * + col0 * - 59 * col0 AS col0 FROM tab2
----
132084952
1443656250
618659840

onlyif mysql # aggregate syntax: 
query I rowsort label-7484
SELECT DISTINCT COUNT( * ) + SUM( DISTINCT - col0 + 3 ) FROM tab1 WHERE NOT NULL IN ( - - col1 * + col0 )
----
NULL

skipif mysql # not compatible
query I rowsort label-7484
SELECT DISTINCT COUNT ( * ) + SUM ( DISTINCT - col0 + 3 ) FROM tab1 WHERE NOT NULL IN ( - - col1 * + col0 )
----
NULL

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7487
SELECT DISTINCT + COUNT( * ) DIV + ( + 34 ) AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7487
SELECT DISTINCT + COUNT ( * ) / + ( + 34 ) AS col1 FROM tab0
----
0

query I rowsort
SELECT col0 * + 87 FROM tab0 AS cor0 WHERE NOT col2 + - 97 IS NOT NULL
----

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

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

query I rowsort
SELECT ALL col0 * - ( col1 ) FROM tab2
----
-2346
-4928
-5025

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 84 * - col2 * col2 col2 FROM tab0 WHERE NOT + - col0 < NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < - 87
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7497
SELECT - ( - + 3 ) * + 26 + + MAX( + ( + col0 ) + + col0 ) AS col1 FROM tab2 cor0 WHERE 31 / - + 73 IS NOT NULL
----
228

skipif mysql # not compatible
query I rowsort label-7497
SELECT - ( - + 3 ) * + 26 + + MAX ( + ( + col0 ) + + col0 ) AS col1 FROM tab2 cor0 WHERE 31 / - + 73 IS NOT NULL
----
228

query I rowsort
SELECT + 20 * col1 FROM tab1 cor0
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-7499
SELECT DISTINCT COUNT( * ) * + 95 FROM tab0 AS cor0 WHERE NOT ( + ( - col1 ) * + + 88 + - col0 ) IS NULL
----
285

skipif mysql # not compatible
query I rowsort label-7499
SELECT DISTINCT COUNT ( * ) * + 95 FROM tab0 AS cor0 WHERE NOT ( + ( - col1 ) * + + 88 + - col0 ) IS NULL
----
285

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

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

query I rowsort
SELECT - 29 * + col0 AS col2 FROM tab2 AS cor0
----
-1334
-1856
-2175

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 85 * - col2 <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7503
SELECT 96 DIV 99 + col1 + - 39 * + col1 + col0 * col1 FROM tab1 AS cor0
----
182
235
2491

skipif mysql # not compatible
query I rowsort label-7503
SELECT 96 / 99 + col1 + - 39 * + col1 + col0 * col1 FROM tab1 AS cor0
----
182
235
2491

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL AND NOT ( NULL ) BETWEEN ( + col0 ) AND ( - col2 + + 58 )
----

query I rowsort
SELECT DISTINCT - col0 * + 22 + - ( 93 ) AS col1 FROM tab2
----
-1105
-1501
-1743

query III rowsort
SELECT * FROM tab1 WHERE ( ( NOT ( NOT NULL = ( NULL ) ) ) )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7507
SELECT DISTINCT + MIN( ALL + 2 ) col2 FROM tab1 WHERE ( NOT - col2 + 35 BETWEEN - + 12 AND - CAST( - 88 AS DECIMAL ) + + 29 )
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7507
SELECT DISTINCT + MIN ( ALL + 2 ) col2 FROM tab1 WHERE ( NOT - col2 + 35 BETWEEN - + 12 AND - CAST ( - 88 AS REAL ) + + 29 )
----
2

query I rowsort
SELECT ALL - col2 + col1 * - col2 AS col2 FROM tab1
----
-1440
-3264
-354

query I rowsort
SELECT DISTINCT - col1 + - + 5 FROM tab1
----
-10
-19
-52

onlyif mysql # DIV for integer division: 
query I rowsort label-7510
SELECT DISTINCT - - 75 - col2 + + col2 * - col0 + + - col0 DIV - col0 col1 FROM tab2 AS cor0
----
-1005
-2524
-4332

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7510
SELECT DISTINCT - - 75 - col2 + + col2 * - col0 + + - col0 / - col0 col1 FROM tab2 AS cor0
----
-1005
-2524
-4332

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

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

query I rowsort
SELECT ALL - col0 - + + col1 AS col0 FROM tab1 AS cor0
----
-138
-65
-90

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

skipif mysql # not compatible
query II rowsort label-7513
SELECT DISTINCT - COUNT ( * ) AS col1, 45 AS col2 FROM tab2 AS cor0
----
-3
45

query I rowsort
SELECT DISTINCT - col2 * + ( - col1 ) * - - col1 - col0 FROM tab0 AS cor0
----
2
308352
4323

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

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

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7518
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST( col0 AS DECIMAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-7518
SELECT DISTINCT * FROM tab2 WHERE NOT + CAST ( col0 AS REAL ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * ( - 55 ) FROM tab0
----
-1155
-4455
-55

query I rowsort
SELECT DISTINCT col2 * 39 * - + 74 FROM tab1
----
-170274
-196248
-277056

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7521
SELECT ALL + COUNT( + + col2 ) * + + COUNT( DISTINCT + col2 ) DIV + ( - CAST( + + MIN( - 28 ) AS SIGNED ) ) + + SUM( + ( - 5 ) ) col1 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7521
SELECT ALL + COUNT ( + + col2 ) * + + COUNT ( DISTINCT + col2 ) / + ( - CAST ( + + MIN ( - 28 ) AS INTEGER ) ) + + SUM ( + ( - 5 ) ) col1 FROM tab0
----
-15

query I rowsort
SELECT col0 * + col0 * 45 FROM tab0
----
10125
340605
423405

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

query I rowsort
SELECT ALL + ( ( - - col1 ) ) * + - col1 FROM tab2
----
-2601
-4489
-5929

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7526
SELECT MIN( DISTINCT 80 ) AS col0 FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-7526
SELECT MIN ( DISTINCT 80 ) AS col0 FROM tab0
----
80

query I rowsort
SELECT 7 + - col0 FROM tab2 AS cor0 WHERE NOT NULL > col2
----

query I rowsort
SELECT ALL - ( + 40 ) * + 88 * - col1 + 53 * + col1 FROM tab0 AS cor0
----
289413
3573
75033

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

skipif mysql # not compatible
query I rowsort label-7529
SELECT + - 21 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-30

query I rowsort
SELECT ALL + col1 + col0 * + + col1 + col1 AS col0 FROM tab1
----
435
4371
742

query I rowsort
SELECT DISTINCT - - col1 + - col0 - - col2 + + col0 AS col2 FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT ALL - + 74 AS col0 FROM tab0 cor0 WHERE - 62 <> NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NULL ) < ( + 58 + - 82 )
----

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7535
SELECT DISTINCT + + 7 * - + COUNT( * ) AS col0, + 92 AS col1 FROM tab0 AS cor0
----
-21
92

skipif mysql # not compatible
query II rowsort label-7535
SELECT DISTINCT + + 7 * - + COUNT ( * ) AS col0, + 92 AS col1 FROM tab0 AS cor0
----
-21
92

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

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

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

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

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

query I rowsort
SELECT DISTINCT + 84 + + ( + 74 ) FROM tab1 AS cor0
----
158

onlyif mysql # DIV for integer division: 
query I rowsort label-7540
SELECT 78 DIV - col0 FROM tab0 AS cor0
----
-5
0
0

skipif mysql # not compatible
query I rowsort label-7540
SELECT 78 / - col0 FROM tab0 AS cor0
----
-5
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * + + 69 col1 FROM tab1
----
-4071
-4692
-6624

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

skipif mysql # not compatible
query I rowsort label-7542
SELECT CAST ( + - 62 AS INTEGER ) FROM tab2
----
-62
-62
-62

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7544
SELECT DISTINCT COUNT( * ) * 60 * COUNT( * ) AS col0 FROM tab1
----
540

skipif mysql # not compatible
query I rowsort label-7544
SELECT DISTINCT COUNT ( * ) * 60 * COUNT ( * ) AS col0 FROM tab1
----
540

onlyif mysql # aggregate syntax: 
query I rowsort label-7545
SELECT COUNT( * ) AS col0 FROM tab0 WHERE - + 80 NOT IN ( + 38, - 51 * + col2 - - 79 )
----
3

skipif mysql # not compatible
query I rowsort label-7545
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE - + 80 NOT IN ( + 38, - 51 * + col2 - - 79 )
----
3

query I rowsort
SELECT ALL col2 + + - col0 + col0 - + - col1 * - 16 AS col1 FROM tab1
----
-128
-21
-684

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7547
SELECT ALL CAST( NULL AS SIGNED ) col2 FROM tab0 AS cor0 WHERE ( 23 * col1 * + + col2 ) IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7547
SELECT ALL CAST ( NULL AS INTEGER ) col2 FROM tab0 AS cor0 WHERE ( 23 * col1 * + + col2 ) IS NOT NULL
----
NULL
NULL
NULL

query I rowsort
SELECT - - col0 + - 66 FROM tab1 cor0
----
-15
19
25

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

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

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

skipif mysql # not compatible
query I rowsort label-7550
SELECT CAST ( + ( - 51 ) AS INTEGER ) FROM tab2
----
-51
-51
-51

query I rowsort
SELECT - + 54 * + ( 75 ) FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7552
SELECT + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 >= + col1
----
2

skipif mysql # not compatible
query I rowsort label-7552
SELECT + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT col0 >= + col1
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7553
SELECT DISTINCT + 19 * - + SUM( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1957

skipif mysql # not compatible
query I rowsort label-7553
SELECT DISTINCT + 19 * - + SUM ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-1957

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7554
SELECT - - CAST( NULL AS DECIMAL ) / + AVG ( ALL - 87 ) AS col0 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7554
SELECT - - CAST ( NULL AS REAL ) / + AVG ( ALL - 87 ) AS col0 FROM tab0 cor0
----
NULL

query II rowsort
SELECT ALL col2, 0 - - col2 FROM tab1 cor0
----
59
59
68
68
96
96

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

onlyif mysql # aggregate syntax: 
query II rowsort label-7557
SELECT COUNT( * ) AS col1, COUNT( * ) - 90 FROM tab2 AS cor0
----
3
-87

skipif mysql # not compatible
query II rowsort label-7557
SELECT COUNT ( * ) AS col1, COUNT ( * ) - 90 FROM tab2 AS cor0
----
3
-87

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NULL <> - 43 * - col0
----

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

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

query I rowsort
SELECT col1 * + 89 AS col2 FROM tab2
----
4539
5963
6853

query I rowsort
SELECT - - 75 + - col0 AS col0 FROM tab0 AS cor0
----
-12
-22
60

query I rowsort
SELECT 43 + - - 51 AS col0 FROM tab2 AS cor0
----
94
94
94

query I rowsort
SELECT DISTINCT 15 * + + 97 AS col1 FROM tab0 AS cor0
----
1455

onlyif mysql # aggregate syntax: 
query I rowsort label-7565
SELECT + COUNT( ALL + + 67 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7565
SELECT + COUNT ( ALL + + 67 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7566
SELECT ALL - SUM( DISTINCT + 78 ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-78

skipif mysql # not compatible
query I rowsort label-7566
SELECT ALL - SUM ( DISTINCT + 78 ) FROM tab2 cor0 CROSS JOIN tab1 cor1
----
-78

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + col0 - col0 col1 FROM tab0 AS cor0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-7569
SELECT + COUNT( - 13 ) + - ( + + COUNT( * ) ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7569
SELECT + COUNT ( - 13 ) + - ( + + COUNT ( * ) ) FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7570
SELECT DISTINCT 42, COUNT( * ) AS col1 FROM tab2 AS cor0
----
42
3

skipif mysql # not compatible
query II rowsort label-7570
SELECT DISTINCT 42, COUNT ( * ) AS col1 FROM tab2 AS cor0
----
42
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7571
SELECT 47 + + COUNT( * ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-7571
SELECT 47 + + COUNT ( * ) FROM tab1 AS cor0
----
50

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - 74 ) + col1 col1 FROM tab0 AS cor0
----
-53
-73
7

query I rowsort
SELECT ALL - - 35 * + - col0 * - col0 + - - col2 FROM tab0 AS cor0
----
264925
329414
7922

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col1 * + col0 * + 96 col2 FROM tab1 AS cor0
----
40800
410592
68544

query I rowsort
SELECT + col0 + + col2 + + col0 * + col0 + + - 85 AS col0 FROM tab2 AS cor0
----
2100
4115
5673

query I rowsort
SELECT 88 + + ( - 31 ) + col2 + - 90 AS col2 FROM tab1
----
26
35
63

query I rowsort
SELECT + col0 FROM tab2 WHERE - col2 * + col2 IS NOT NULL
----
46
64
75

query III rowsort
SELECT * FROM tab1 WHERE - col1 * + - 75 * + - col1 + + 46 + + + 55 * + 10 * + 45 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

skipif mysql # not compatible
query I rowsort label-7579
SELECT DISTINCT + 46 * - COUNT ( * ) - COUNT ( * ) FROM tab2
----
-141

onlyif mysql # aggregate syntax: 
query I rowsort label-7580
SELECT COUNT( DISTINCT - - 11 ) FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7580
SELECT COUNT ( DISTINCT - - 11 ) FROM tab2
----
1

query I rowsort
SELECT DISTINCT 39 + - - 31 * + + col1 FROM tab2
----
1620
2116
2426

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + 69 + + + 49 - 93 * + col2 + + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-7583
SELECT - + COUNT( * ) * COUNT( - + 95 ) FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-7583
SELECT - + COUNT ( * ) * COUNT ( - + 95 ) FROM tab1 AS cor0
----
-9

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

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7585
SELECT DISTINCT COUNT ( * ) * + CAST ( NULL AS INTEGER ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL + 87 * - col1 * + ( col0 ) FROM tab1
----
-36975
-372099
-62118

query I rowsort
SELECT + + col1 * 73 AS col0 FROM tab2 WHERE NOT ( + col2 NOT BETWEEN + - col0 AND - col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7588
SELECT COUNT( * ) * 74 - ( - + MIN( ALL + col1 ) ) AS col1 FROM tab0 cor0
----
223

skipif mysql # not compatible
query I rowsort label-7588
SELECT COUNT ( * ) * 74 - ( - + MIN ( ALL + col1 ) ) AS col1 FROM tab0 cor0
----
223

query I rowsort
SELECT ALL 85 * + 8 * - ( - 81 ) FROM tab2 AS cor0
----
55080
55080
55080

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7591
SELECT 26 DIV - + col1 + 14, + col1 AS col2 FROM tab0 AS cor0
----
-12
1
13
21
14
81

skipif mysql # not compatible
query II rowsort label-7591
SELECT 26 / - + col1 + 14, + col1 AS col2 FROM tab0 AS cor0
----
-12
1
13
21
14
81

onlyif mysql # DIV for integer division: 
query I rowsort label-7592
SELECT DISTINCT + ( - - col2 ) DIV 36 FROM tab1 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-7592
SELECT DISTINCT + ( - - col2 ) / 36 FROM tab1 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-7593
SELECT ALL COUNT( * ) * + + 68 FROM tab1 AS cor0
----
204

skipif mysql # not compatible
query I rowsort label-7593
SELECT ALL COUNT ( * ) * + + 68 FROM tab1 AS cor0
----
204

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

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

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

query II rowsort
SELECT DISTINCT + col2, col2 - + col0 FROM tab0 WHERE NOT + - col1 IS NULL
----
10
-77
47
32
99
2

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

onlyif mysql # DIV for integer division: 
query II rowsort label-7599
SELECT DISTINCT col1 AS col0, + col2 DIV col0 DIV + col0 FROM tab0
----
1
0
21
0
81
0

skipif mysql # not compatible
query II rowsort label-7599
SELECT DISTINCT col1 AS col0, + col2 / col0 / + col0 FROM tab0
----
1
0
21
0
81
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7600
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab0 WHERE - ( + col2 ) + + col1 BETWEEN col0 / + col2 + + 87 * + col0 * 59 * + col1 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7600
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab0 WHERE - ( + col2 ) + + col1 BETWEEN col0 / + col2 + + 87 * + col0 * 59 * + col1 AND NULL
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7601
SELECT - COUNT( * ) AS col1, - MIN( col2 ) + - 42 FROM tab0
----
-3
-52

skipif mysql # not compatible
query II rowsort label-7601
SELECT - COUNT ( * ) AS col1, - MIN ( col2 ) + - 42 FROM tab0
----
-3
-52

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 col2, col2 + - 64 AS col1 FROM tab2 AS cor0
----
-51
-41
-67
-6
-77
-24

query I rowsort
SELECT + - 7 * col0 FROM tab1 cor0
----
-357
-595
-637

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

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT 2 * + + 65 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7607
SELECT ALL SUM( + 12 ) AS col0 FROM tab1 cor0
----
36

skipif mysql # not compatible
query I rowsort label-7607
SELECT ALL SUM ( + 12 ) AS col0 FROM tab1 cor0
----
36

query I rowsort
SELECT + ( - - col0 ) FROM tab1 WHERE - col2 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT col2 + - 99 * + 15 AS col2 FROM tab2
----
-1427
-1445
-1462

query I rowsort
SELECT DISTINCT + col1 - - ( + 84 ) FROM tab0 cor0
----
105
165
85

query III rowsort
SELECT * FROM tab0 cor0 WHERE + 30 - - 56 * - - 23 * - - 30 BETWEEN NULL AND + col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7614
SELECT - ( - SUM( ALL - 57 ) ) - - + 78 FROM tab0 AS cor0
----
-93

skipif mysql # not compatible
query I rowsort label-7614
SELECT - ( - SUM ( ALL - 57 ) ) - - + 78 FROM tab0 AS cor0
----
-93

query II rowsort
SELECT 43 * + + col2 * - col0 - + ( col2 ) - 58 AS col0, - col1 AS col2 FROM tab1
----
-210682
-14
-215762
-5
-266210
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-7616
SELECT + 68 + - 80 + COUNT( * ) AS col1 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-7616
SELECT + 68 + - 80 + COUNT ( * ) AS col1 FROM tab0
----
-9

query I rowsort
SELECT ALL - 18 AS col1 FROM tab1, tab2 AS cor0
----
9 values hashing to 09afafec657a5e9f082beb6a16ec85de

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

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

query I rowsort
SELECT + col1 * + col0 + - col1 - col1 AS col1 FROM tab0 WHERE NOT + 44 / 82 + + 79 * + - col2 <> + col0
----

query I rowsort
SELECT + 34 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT DISTINCT + 4 + + 90 FROM tab0 AS cor0 WHERE NULL IS NULL
----
94

onlyif mysql # DIV for integer division: 
query II rowsort label-7622
SELECT - col2 DIV ( + col2 ) * - - col2 AS col0, + 89 AS col2 FROM tab1 AS cor0
----
-59
89
-68
89
-96
89

skipif mysql # not compatible
query II rowsort label-7622
SELECT - col2 / ( + col2 ) * - - col2 AS col0, + 89 AS col2 FROM tab1 AS cor0
----
-59
89
-68
89
-96
89

query II rowsort
SELECT DISTINCT + - 7 * + 94 AS col2, col0 FROM tab0 AS cor0
----
-658
15
-658
87
-658
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7624
SELECT + 29 * + COUNT( DISTINCT - col0 ) * + + COUNT( * ) col0 FROM tab1 cor0
----
261

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

query I rowsort
SELECT + + col0 * + + col1 FROM tab0 AS cor0
----
1215
1827
97

onlyif mysql # DIV for integer division: 
query II rowsort label-7626
SELECT + 34 DIV col1, + 28 DIV + - col0 AS col2 FROM tab1 AS cor0
----
0
0
2
0
6
0

skipif mysql # not compatible
query II rowsort label-7626
SELECT + 34 / col1, + 28 / + - col0 AS col2 FROM tab1 AS cor0
----
0
0
2
0
6
0

query I rowsort
SELECT - col1 + - col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-110
-115
-64

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

query I rowsort
SELECT - 55 + 88 AS col0 FROM tab1
----
33
33
33

onlyif mysql # DIV for integer division: 
query I rowsort label-7630
SELECT ALL 94 DIV + 99 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7630
SELECT ALL 94 / + 99 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7631
SELECT ALL - + SUM( - ( + + 4 ) ) * COUNT( * ) FROM tab2 WHERE NOT NULL >= CAST( NULL AS DECIMAL ) * - 61 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-7631
SELECT ALL - + SUM ( - ( + + 4 ) ) * COUNT ( * ) FROM tab2 WHERE NOT NULL >= CAST ( NULL AS REAL ) * - 61 + col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7632
SELECT ALL + col0 DIV + + col0 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-7632
SELECT ALL + col0 / + + col0 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # DIV for integer division: 
query III rowsort label-7633
SELECT col2 DIV - col0 + + col1 + - col0 DIV - col2 AS col2, col2, + - col1 FROM tab0 AS cor0
----
9 values hashing to 7613ce4785a54c284d7c4a10033b9687

skipif mysql # not compatible
query III rowsort label-7633
SELECT col2 / - col0 + + col1 + - col0 / - col2 AS col2, col2, + - col1 FROM tab0 AS cor0
----
9 values hashing to 7613ce4785a54c284d7c4a10033b9687

query I rowsort
SELECT ALL - - 23 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 38 col1, + col0 + + - 24 + - - 51 FROM tab0
----
38
114
38
124
38
42

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

query I rowsort
SELECT col0 - + 85 AS col1 FROM tab2
----
-10
-21
-39

query IIIIII rowsort
SELECT ALL * FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN + 85 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7639
SELECT DISTINCT - 16 * 93 DIV COUNT( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-165

skipif mysql # not compatible
query I rowsort label-7639
SELECT DISTINCT - 16 * 93 / COUNT ( * ) FROM ( tab0 cor0 CROSS JOIN tab1 AS cor1 )
----
-165

query I rowsort
SELECT ALL - - 67 - col2 FROM tab2 AS cor0
----
27
44
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7641
SELECT DISTINCT + COUNT( * ) * - 5 + - MIN( ALL - + col1 ) + AVG ( ALL + - col2 ) - CAST( NULL AS SIGNED ) * + + MIN( - col1 ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7641
SELECT DISTINCT + COUNT ( * ) * - 5 + - MIN ( ALL - + col1 ) + AVG ( ALL + - col2 ) - CAST ( NULL AS INTEGER ) * + + MIN ( - col1 ) FROM tab2 AS cor0
----
NULL

query II rowsort
SELECT ALL - col2, - col0 AS col2 FROM tab1 AS cor0
----
-59
-85
-68
-91
-96
-51

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7644
SELECT ALL col2, col1, - - CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
9 values hashing to b41fc6c3d3779be43444214af77801f8

skipif mysql # not compatible
query III rowsort label-7644
SELECT ALL col2, col1, - - CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
9 values hashing to b41fc6c3d3779be43444214af77801f8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7645
SELECT + MIN( DISTINCT + 43 ) DIV - ( - + 22 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-7645
SELECT + MIN ( DISTINCT + 43 ) / - ( - + 22 ) FROM tab1
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7646
SELECT CAST( - 36 AS SIGNED ) * - col2 FROM tab0
----
1692
3564
360

skipif mysql # not compatible
query I rowsort label-7646
SELECT CAST ( - 36 AS INTEGER ) * - col2 FROM tab0
----
1692
3564
360

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

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

query I rowsort
SELECT DISTINCT 93 + + + col1 * + - col0 + 39 FROM tab2 AS cor0 WHERE NULL < NULL
----

query II rowsort
SELECT DISTINCT - 60 * col2 * - + col2, col0 * col1 AS col1 FROM tab1
----
208860
425
277440
4277
552960
714

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7651
SELECT ALL + + CAST( COUNT( * ) AS SIGNED ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 25 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7651
SELECT ALL + + CAST ( COUNT ( * ) AS INTEGER ) AS col1 FROM tab0 cor0 CROSS JOIN tab0 AS cor1 WHERE 25 IS NULL
----
0

query I rowsort
SELECT DISTINCT - 98 * + col2 FROM tab2 AS cor0
----
-2254
-3920
-5684

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

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

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

query I rowsort
SELECT DISTINCT ( + col0 ) + - col1 + 22 * + + col1 AS col1 FROM tab1 cor0
----
1078
190
345

query I rowsort
SELECT + 6 * + 95 AS col0 FROM tab1 AS cor0 WHERE NOT col2 + + col1 + + 85 + - col0 <> - + col2 * col2 * - col2
----

query III rowsort
SELECT * FROM tab0 WHERE NULL < 44
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - ( - 43 ) * - 44 col0 FROM tab1
----
-1892

query I rowsort
SELECT - 31 * - - 87 FROM tab2, tab0 cor0
----
9 values hashing to 60df2a523a055b8613acd6aa2ef6e9bf

query II rowsort
SELECT col2 * col2, 27 * + 5 AS col2 FROM tab2
----
1600
135
3364
135
529
135

onlyif mysql # DIV for integer division: 
query I rowsort label-7661
SELECT ALL col2 * - - 91 + + + col0 - - + col1 DIV + col0 FROM tab1
----
5454
6279
8787

skipif mysql # not compatible
query I rowsort label-7661
SELECT ALL col2 * - - 91 + + + col0 - - + col1 / + col0 FROM tab1
----
5454
6279
8787

query I rowsort
SELECT ALL 91 + + col0 FROM tab2
----
137
155
166

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-7663
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col0, + col0, - CAST( NULL AS DECIMAL ), col0 )
----

skipif mysql # not compatible
query III rowsort label-7663
SELECT ALL * FROM tab0 WHERE NOT NULL NOT IN ( col0, + col0, - CAST ( NULL AS REAL ), col0 )
----

query I rowsort
SELECT ALL + col1 + + ( + 24 ) FROM tab1
----
29
38
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - 99 * - col2 col1, - col0 FROM tab0 AS cor0
----
4653
-15
9801
-97
990
-87

query II rowsort
SELECT ALL 58 - + col2, col0 AS col1 FROM tab1 AS cor0
----
-1
85
-10
91
-38
51

query I rowsort
SELECT DISTINCT - col1 * - col0 + + - ( - 97 ) FROM tab2
----
2443
5025
5122

query I rowsort
SELECT + ( col1 ) * + col1 AS col0 FROM tab2
----
2601
4489
5929

onlyif mysql # aggregate syntax: 
query I rowsort label-7669
SELECT DISTINCT - 4 - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-7

skipif mysql # not compatible
query I rowsort label-7669
SELECT DISTINCT - 4 - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-7

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 * + ( - 20 ) + + col0 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL = 1 * + - 19
----

query I rowsort
SELECT DISTINCT - - 52 + col0 FROM tab0 cor0
----
139
149
67

query I rowsort
SELECT DISTINCT - - col1 * + - col1 AS col0 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT ALL col1 - + col1 AS col2 FROM tab2 AS cor0
----
0
0
0

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

query II rowsort
SELECT 11, - col1 AS col0 FROM tab0
----
11
-1
11
-21
11
-81

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

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

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

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

query I rowsort
SELECT 49 * - col2 FROM tab1
----
-2891
-3332
-4704

query I rowsort
SELECT col0 * + col2 * + 88 FROM tab1
----
430848
441320
544544

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7682
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IN ( + + col2, - CAST( NULL AS SIGNED ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-7682
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col2 IN ( + + col2, - CAST ( NULL AS INTEGER ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + col1 AS col1, ( - + col1 ) AS col0 FROM tab1 AS cor0
----
14
-14
47
-47
5
-5

query I rowsort
SELECT + col0 * + - col1 - - - col1 FROM tab1 AS cor0
----
-430
-4324
-728

query I rowsort
SELECT ALL + - 3 AS col0 FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7686
SELECT + COUNT( * ) + + - ( - 36 ) AS col2 FROM tab1 AS cor0
----
39

skipif mysql # not compatible
query I rowsort label-7686
SELECT + COUNT ( * ) + + - ( - 36 ) AS col2 FROM tab1 AS cor0
----
39

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7689
SELECT ALL 1 * - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7689
SELECT ALL 1 * - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 10 * + 88 FROM tab2
----
-880
-880
-880

onlyif mysql # aggregate syntax: 
query I rowsort label-7691
SELECT + COUNT( * ) AS col2 FROM tab0 WHERE ( - col0 ) BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-7691
SELECT + COUNT ( * ) AS col2 FROM tab0 WHERE ( - col0 ) BETWEEN NULL AND NULL
----
0

query I rowsort
SELECT DISTINCT 46 + - col0 + + col2 * + 53 * - 45 AS col1 FROM tab1
----
-140754
-162225
-228965

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col2 BETWEEN NULL AND + col1
----

query I rowsort
SELECT ALL - 85 * - + 67 + + ( + + col0 ) FROM tab0
----
5710
5782
5792

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 87 + + col2 + + col0 col1, - col2 - col0 * ( - + col0 ) FROM tab2
----
156
2093
191
4056
220
5567

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7696
SELECT ALL + COUNT( * ) + COUNT( DISTINCT + 88 ) AS col1, COUNT( * ) + - - CAST( NULL AS SIGNED ) AS col0 FROM tab1 AS cor0
----
4
NULL

skipif mysql # not compatible
query II rowsort label-7696
SELECT ALL + COUNT ( * ) + COUNT ( DISTINCT + 88 ) AS col1, COUNT ( * ) + - - CAST ( NULL AS INTEGER ) AS col0 FROM tab1 AS cor0
----
4
NULL

query I rowsort
SELECT ALL + col1 * 36 FROM tab0 AS cor0
----
2916
36
756

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <> - col1 * + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - 95 col2 FROM tab1 AS cor0
----
-4845
-8075
-8645

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + ( + col1 ) - col0 col1 FROM tab0 AS cor0
----
-66
-96
66

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL BETWEEN + col0 * - - 37 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 col2, + ( + col1 ) FROM tab0 AS cor0
----
10
21
47
81
99
1

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

query I rowsort
SELECT DISTINCT - - 28 - - + col0 FROM tab2 AS cor0
----
103
74
92

onlyif mysql # DIV for integer division: 
query I rowsort label-7705
SELECT DISTINCT - col0 * - - col0 + col0 DIV col2 + + col2 + + col1 * - 61 AS col0 FROM tab0 AS cor0
----
-5119
-8832
-9371

skipif mysql # not compatible
query I rowsort label-7705
SELECT DISTINCT - col0 * - - col0 + col0 / col2 + + col2 + + col1 * - 61 AS col0 FROM tab0 AS cor0
----
-5119
-8832
-9371

query I rowsort
SELECT 69 AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 85d9b90a03b9def161891b13085271f7

onlyif mysql # aggregate syntax: 
query I rowsort label-7707
SELECT + 49 * COUNT( * ) + + + MIN( 56 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
497

skipif mysql # not compatible
query I rowsort label-7707
SELECT + 49 * COUNT ( * ) + + + MIN ( 56 ) FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
497

query II rowsort
SELECT + ( col2 ) - + col2 * - - col2, col1 AS col2 FROM tab1
----
-3422
5
-4556
47
-9120
14

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

query II rowsort
SELECT DISTINCT - + col0 - - - col2 + + - 60 - - col1 AS col2, col0 AS col2 FROM tab2 cor0
----
-126
75
-78
46
-87
64

onlyif mysql # DIV for integer division: 
query I rowsort label-7711
SELECT ALL - col2 * - 29 + - + col0 - + col0 DIV - 97 AS col0 FROM tab0 AS cor0
----
1348
203
2775

skipif mysql # not compatible
query I rowsort label-7711
SELECT ALL - col2 * - 29 + - + col0 - + col0 / - 97 AS col0 FROM tab0 AS cor0
----
1348
203
2775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 28 * - - 62 - col1 col1 FROM tab1 AS cor0
----
-1741
-1750
-1783

query I rowsort
SELECT DISTINCT 67 * col1 * + ( + 21 ) + - ( + + col1 ) FROM tab0 AS cor0
----
113886
1406
29526

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

query I rowsort
SELECT DISTINCT - col2 * - 59 AS col1 FROM tab0 AS cor0
----
2773
5841
590

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-7716
SELECT DISTINCT + + ( COUNT( + col2 ) ) DIV - + COUNT( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST( 20 AS SIGNED ) BETWEEN ( - - col2 ) AND col0
----
-1

skipif mysql # not compatible
query I rowsort label-7716
SELECT DISTINCT + + ( COUNT ( + col2 ) ) / - + COUNT ( * ) AS col0 FROM tab2 AS cor0 WHERE NOT - CAST ( 20 AS INTEGER ) BETWEEN ( - - col2 ) AND col0
----
-1

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

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 2 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7719
SELECT - 39 * + COUNT( * ) AS col0 FROM tab2
----
-117

skipif mysql # not compatible
query I rowsort label-7719
SELECT - 39 * + COUNT ( * ) AS col0 FROM tab2
----
-117

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL IN ( - + 65 - 81 )
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7723
SELECT SUM( - - 86 ) DIV + + 37 + + ( - COUNT( * ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7723
SELECT SUM ( - - 86 ) / + + 37 + + ( - COUNT ( * ) ) FROM tab1
----
3

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7725
SELECT 55 * 63 DIV col2 AS col1 FROM tab0 AS cor0
----
346
35
73

skipif mysql # not compatible
query I rowsort label-7725
SELECT 55 * 63 / col2 AS col1 FROM tab0 AS cor0
----
346
35
73

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

skipif mysql # not compatible
query I rowsort label-7726
SELECT DISTINCT + COUNT ( ALL + + col1 ) * + COUNT ( * ) FROM tab0 cor0
----
9

query I rowsort
SELECT DISTINCT col0 - + 92 AS col2 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT col0 * 75 * + col2 AS col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 / col2 / 49 AND + - col2 * col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7729
SELECT ALL - + CAST( - COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-7729
SELECT ALL - + CAST ( - COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

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

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-7731
SELECT MIN( - CAST( NULL AS DECIMAL ) ) + - + 26 * - 54 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-7731
SELECT MIN ( - CAST ( NULL AS REAL ) ) + - + 26 * - 54 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL - col2 FROM tab0 cor0 WHERE NOT ( NULL ) BETWEEN NULL AND - - 52
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7733
SELECT ALL - CAST( - MAX( ALL 0 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7733
SELECT ALL - CAST ( - MAX ( ALL 0 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7734
SELECT ALL - - COUNT( * ) AS col2, CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
3
NULL

skipif mysql # not compatible
query II rowsort label-7734
SELECT ALL - - COUNT ( * ) AS col2, CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
3
NULL

query I rowsort
SELECT ALL - + 67 FROM tab0 cor0
----
-67
-67
-67

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

query I rowsort
SELECT 1 * - + 31 FROM tab0
----
-31
-31
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-7738
SELECT ALL - MAX( 48 ) * + 22 AS col2 FROM tab0
----
-1056

skipif mysql # not compatible
query I rowsort label-7738
SELECT ALL - MAX ( 48 ) * + 22 AS col2 FROM tab0
----
-1056

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 + + + col0 + col2 col1, - 91 FROM tab2
----
115
-91
168
-91
208
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-7740
SELECT + 65 DIV col1 FROM tab0
----
0
3
65

skipif mysql # not compatible
query I rowsort label-7740
SELECT + 65 / col1 FROM tab0
----
0
3
65

query I rowsort
SELECT ALL 11 + col0 AS col0 FROM tab0
----
108
26
98

onlyif mysql # aggregate syntax: 
query I rowsort label-7742
SELECT ALL MAX( + col0 ) * ( - 86 ) col2 FROM tab2
----
-6450

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7742
SELECT ALL MAX ( + col0 ) * ( - 86 ) col2 FROM tab2
----
-6450

query I rowsort
SELECT DISTINCT - - col1 * + col1 * col1 + + col0 FROM tab1 AS cor0
----
103914
210
2795

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7745
SELECT ALL + 86 * MIN( col1 ) col1 FROM tab2 AS cor0
----
4386

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7745
SELECT ALL + 86 * MIN ( col1 ) col1 FROM tab2 AS cor0
----
4386

query I rowsort
SELECT + + col0 + + 6 + - col1 * + + col0 AS col1 FROM tab1 AS cor0
----
-334
-4180
-657

query II rowsort
SELECT col1 + 40, - col2 AS col0 FROM tab0 AS cor0
----
121
-47
41
-99
61
-10

query I rowsort
SELECT ALL - 21 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 631fbd1fd929405aba54a22c2a06c757

onlyif mysql # aggregate syntax: 
query I rowsort label-7749
SELECT DISTINCT + COUNT( ALL - - col0 ) * + 32 FROM tab2 cor0
----
96

skipif mysql # not compatible
query I rowsort label-7749
SELECT DISTINCT + COUNT ( ALL - - col0 ) * + 32 FROM tab2 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7750
SELECT - SUM( col0 ) col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7750
SELECT - SUM ( col0 ) col1 FROM tab0 cor0
----
-199

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7751
SELECT DISTINCT CAST( + 8 AS SIGNED ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-7751
SELECT DISTINCT CAST ( + 8 AS INTEGER ) FROM tab0 AS cor0
----
8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7754
SELECT ALL + - col2 + 58 col1 FROM tab2 WHERE NOT CAST( - 19 AS SIGNED ) + ( - 89 ) + + + ( col1 ) + + col1 + - 81 + - 5 * + ( col1 ) - + col2 * + col2 / - - 50 * - col2 IN ( - + 48, - col1 + + 44 + - col0 + col0 * col0 + 8 - CAST( NULL AS SIGNED ) - 11 + + + 9 * 52 * - + 24 * - 97 * col0 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7754
SELECT ALL + - col2 + 58 col1 FROM tab2 WHERE NOT CAST ( - 19 AS INTEGER ) + ( - 89 ) + + + ( col1 ) + + col1 + - 81 + - 5 * + ( col1 ) - + col2 * + col2 / - - 50 * - col2 IN ( - + 48, - col1 + + 44 + - col0 + col0 * col0 + 8 - CAST ( NULL AS INTEGER ) - 11 + + + 9 * 52 * - + 24 * - 97 * col0 )
----

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7756
SELECT - COUNT( * ) DIV + 99 AS col0 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7756
SELECT - COUNT ( * ) / + 99 AS col0 FROM tab0
----
0

query I rowsort
SELECT DISTINCT 2 * - - 67 AS col0 FROM tab2
----
134

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

onlyif mysql # DIV for integer division: 
query I rowsort label-7759
SELECT - 85 DIV + - col1 FROM tab0 AS cor0
----
1
4
85

skipif mysql # not compatible
query I rowsort label-7759
SELECT - 85 / + - col1 FROM tab0 AS cor0
----
1
4
85

query I rowsort
SELECT + - 55 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ac76841ceecd2311e80c621d15bacdd3

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

query II rowsort
SELECT ALL + + col2 AS col0, - 45 FROM tab1 AS cor0
----
59
-45
68
-45
96
-45

query I rowsort
SELECT - + 67 + - col1 + - 33 FROM tab2 cor0
----
-151
-167
-177

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7764
SELECT ALL - CAST( NULL AS SIGNED ) col2, + 84 * + col2 * + 71 FROM tab0 AS cor0
----
NULL
280308
NULL
590436
NULL
59640

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7764
SELECT ALL - CAST ( NULL AS INTEGER ) col2, + 84 * + col2 * + 71 FROM tab0 AS cor0
----
NULL
280308
NULL
590436
NULL
59640

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7766
SELECT 11 * - 37 + MAX( ALL - ( 46 ) ) - 99 + MIN( - col1 ) * - 94 FROM tab0
----
7062

skipif mysql # not compatible
query I rowsort label-7766
SELECT 11 * - 37 + MAX ( ALL - ( 46 ) ) - 99 + MIN ( - col1 ) * - 94 FROM tab0
----
7062

query II rowsort
SELECT ALL - col0 + + + col0 AS col1, + col1 AS col1 FROM tab0
----
0
1
0
21
0
81

query II rowsort
SELECT DISTINCT - 29, + col2 FROM tab1
----
-29
59
-29
68
-29
96

onlyif mysql # aggregate syntax: 
query I rowsort label-7769
SELECT DISTINCT COUNT( + 43 ) + COUNT( * ) FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-7769
SELECT DISTINCT COUNT ( + 43 ) + COUNT ( * ) FROM tab0
----
6

query I rowsort
SELECT - col2 AS col0 FROM tab1 AS cor0 WHERE 70 IS NOT NULL
----
-59
-68
-96

query I rowsort
SELECT - col1 - - 96 AS col0 FROM tab0 AS cor0
----
15
75
95

onlyif mysql # aggregate syntax: 
query I rowsort label-7772
SELECT ALL + SUM( - 7 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

skipif mysql # not compatible
query I rowsort label-7772
SELECT ALL + SUM ( - 7 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-63

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col1 <> col0 * 88
----

query I rowsort
SELECT DISTINCT + - 16 * 8 AS col0 FROM tab0 AS cor0
----
-128

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7776
SELECT ALL col0 * + col0 + col1 + + CAST( NULL AS SIGNED ) AS col2 FROM tab0 cor0 WHERE ( NOT ( - col1 + + col2 ) NOT BETWEEN col2 AND + + 85 )
----

skipif mysql # not compatible
query I rowsort label-7776
SELECT ALL col0 * + col0 + col1 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 cor0 WHERE ( NOT ( - col1 + + col2 ) NOT BETWEEN col2 AND + + 85 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-7777
SELECT DISTINCT SUM( - 65 ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
-195
-3

skipif mysql # not compatible
query II rowsort label-7777
SELECT DISTINCT SUM ( - 65 ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
-195
-3

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

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 45 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7780
SELECT ALL - 92 * - CAST( NULL AS SIGNED ) col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7780
SELECT ALL - 92 * - CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

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

skipif mysql # not compatible
query II rowsort label-7781
SELECT + COUNT ( * ) AS col2, + 77 * - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2
----
3
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7782
SELECT 97 AS col0, CAST( NULL AS SIGNED ) + col0 * + 66 * + col0 AS col1 FROM tab0
----
97
NULL
97
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-7782
SELECT 97 AS col0, CAST ( NULL AS INTEGER ) + col0 * + 66 * + col0 AS col1 FROM tab0
----
97
NULL
97
NULL
97
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-7783
SELECT col0 * 88 * col0 * col2 DIV - - col0 col2 FROM tab2
----
225280
382800
93104

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7783
SELECT col0 * 88 * col0 * col2 / - - col0 col2 FROM tab2
----
225280
382800
93104

onlyif mysql # DIV for integer division: 
query I rowsort label-7784
SELECT + col2 DIV + 8 AS col2 FROM tab1
----
12
7
8

skipif mysql # not compatible
query I rowsort label-7784
SELECT + col2 / + 8 AS col2 FROM tab1
----
12
7
8

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-7787
SELECT DISTINCT - 54 + + - 24 - - - 86 * + + ( + COUNT( * ) ) - - 55 * - 48 * + COUNT( * ) AS col2 FROM tab1 AS cor0
----
-8256

skipif mysql # not compatible
query I rowsort label-7787
SELECT DISTINCT - 54 + + - 24 - - - 86 * + + ( + COUNT ( * ) ) - - 55 * - 48 * + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-8256

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 88 / - 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7789
SELECT + 4 DIV MAX( + + col0 ) DIV - ( + - 15 ) FROM tab1 cor0
----
0

skipif mysql # not compatible
query I rowsort label-7789
SELECT + 4 / MAX ( + + col0 ) / - ( + - 15 ) FROM tab1 cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-7790
SELECT col0 DIV + ( + col2 ) FROM tab1 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-7790
SELECT col0 / + ( + col2 ) FROM tab1 AS cor0
----
0
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-7791
SELECT DISTINCT COUNT( DISTINCT - col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7791
SELECT DISTINCT COUNT ( DISTINCT - col0 ) AS col2 FROM tab0
----
3

query I rowsort
SELECT col0 - - 92 AS col1 FROM tab2
----
138
156
167

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7793
SELECT 9 - CAST( - col0 AS SIGNED ) FROM tab0
----
106
24
96

skipif mysql # not compatible
query I rowsort label-7793
SELECT 9 - CAST ( - col0 AS INTEGER ) FROM tab0
----
106
24
96

query I rowsort
SELECT - 18 - - ( 87 ) AS col1 FROM tab1
----
69
69
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 - + + col0 col0 FROM tab1
----
-138
-65
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-7796
SELECT COUNT( * ) + COUNT( * ) + + 14 col0 FROM tab0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7796
SELECT COUNT ( * ) + COUNT ( * ) + + 14 col0 FROM tab0
----
20

query I rowsort
SELECT + 67 AS col2 FROM tab1 AS cor0 WHERE col2 IS NOT NULL
----
67
67
67

query I rowsort
SELECT 85 * - ( - + 0 ) FROM tab0
----
0
0
0

query IIIIII rowsort
SELECT ALL * FROM tab0 cor0 INNER JOIN tab2 AS cor1 ON NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 * + 37 + - 17 + - + 97 col0 FROM tab0 AS cor0
----
3105
3475
441

onlyif mysql # DIV for integer division: 
query II rowsort label-7801
SELECT - - col1 AS col2, 2 DIV - 73 AS col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

skipif mysql # not compatible
query II rowsort label-7801
SELECT - - col1 AS col2, 2 / - 73 AS col1 FROM tab1 AS cor0
----
14
0
47
0
5
0

query II rowsort
SELECT DISTINCT - - col1 AS col2, col2 * - col2 FROM tab2 AS cor0
----
51
-529
67
-3364
77
-1600

query II rowsort
SELECT col0 AS col0, col0 - + col2 FROM tab2 AS cor0
----
46
23
64
24
75
17

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 + + col0 > + - col2
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col0 AND + - col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7806
SELECT + CAST( + COUNT( DISTINCT col2 ) AS SIGNED ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7806
SELECT + CAST ( + COUNT ( DISTINCT col2 ) AS INTEGER ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7807
SELECT CAST( COUNT( DISTINCT + col1 ) AS SIGNED ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-7807
SELECT CAST ( COUNT ( DISTINCT + col1 ) AS INTEGER ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7808
SELECT * FROM tab0 WHERE NOT col1 * + - ( + col0 ) * + CAST( + col0 AS SIGNED ) + col0 = + + col1 * + 98 / col2 - + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7808
SELECT * FROM tab0 WHERE NOT col1 * + - ( + col0 ) * + CAST ( + col0 AS INTEGER ) + col0 = + + col1 * + 98 / col2 - + 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + - col1 IN ( col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 WHERE ( ( col2 + + + col1 IS NOT NULL ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-7811
SELECT DISTINCT - 69 + COUNT( * ) FROM tab2
----
-66

skipif mysql # not compatible
query I rowsort label-7811
SELECT DISTINCT - 69 + COUNT ( * ) FROM tab2
----
-66

query I rowsort
SELECT - 41 * ( + col1 ) AS col2 FROM tab0 AS cor0
----
-3321
-41
-861

query II rowsort
SELECT 55 AS col2, 77 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
18 values hashing to c4b1a4972575dd740912be3b6984ce08

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 82 - + + ( - - col1 ) * + col0 * + col1 col0 FROM tab1 AS cor0
----
-200937
-2043
-9914

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 54 * + ( + col1 ) + - col0 col0 FROM tab1 AS cor0
----
185
2447
705

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7816
SELECT - 55 * - col1 + - CAST( col0 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
190
2494
719

skipif mysql # not compatible
query I rowsort label-7816
SELECT - 55 * - col1 + - CAST ( col0 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
190
2494
719

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7817
SELECT DISTINCT + COUNT( * ) DIV - COUNT( * ) - + COUNT( * ) AS col1 FROM tab0 AS cor0
----
-4

skipif mysql # not compatible
query I rowsort label-7817
SELECT DISTINCT + COUNT ( * ) / - COUNT ( * ) - + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-4

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7818
SELECT col0 + - CAST( NULL AS SIGNED ) 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-7818
SELECT col0 + - CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col1 * col0 + col2 * + 52 FROM tab2 AS cor0
----
3542
7008
8041

onlyif mysql # DIV for integer division: 
query I rowsort label-7820
SELECT + col2 DIV + ( - 17 ) + col0 - + - ( 52 ) + - - col0 FROM tab2 AS cor0
----
143
178
199

skipif mysql # not compatible
query I rowsort label-7820
SELECT + col2 / + ( - 17 ) + col0 - + - ( 52 ) + - - col0 FROM tab2 AS cor0
----
143
178
199

query I rowsort
SELECT ALL col1 * + 92 * col0 AS col0 FROM tab1 AS cor0
----
39100
393484
65688

query III rowsort
SELECT * FROM tab2 WHERE + col0 BETWEEN - - 39 + - 87 AND ( - + 44 )
----

query II rowsort
SELECT ALL 28 - + 66 AS col2, col2 FROM tab0
----
-38
10
-38
47
-38
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-7824
SELECT ( - + CAST( NULL AS SIGNED ) ) / + COUNT( + + 72 ) col0, + ( - + 71 ) * CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7824
SELECT ( - + CAST ( NULL AS INTEGER ) ) / + COUNT ( + + 72 ) col0, + ( - + 71 ) * CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 68 + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 WHERE NOT + 22 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-7827
SELECT + COUNT( * ) AS col0, 5 DIV - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
0

skipif mysql # not compatible
query II rowsort label-7827
SELECT + COUNT ( * ) AS col0, 5 / - 65 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9
0

query I rowsort
SELECT ALL + - 2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ec11209ab257030053484fc13a1f6d17

query I rowsort
SELECT DISTINCT + 47 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
47

query I rowsort
SELECT + - col0 * - 84 FROM tab0 cor0
----
1260
7308
8148

onlyif mysql # aggregate syntax: 
query I rowsort label-7831
SELECT DISTINCT - COUNT( + col1 ) col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7831
SELECT DISTINCT - COUNT ( + col1 ) col1 FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-7832
SELECT ALL - SUM( - col1 ) AS col1 FROM tab1 WHERE - - col1 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-7832
SELECT ALL - SUM ( - col1 ) AS col1 FROM tab1 WHERE - - col1 IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-7833
SELECT DISTINCT + COUNT( * ) + + MAX( col0 ) AS col2 FROM tab1
----
94

skipif mysql # not compatible
query I rowsort label-7833
SELECT DISTINCT + COUNT ( * ) + + MAX ( col0 ) AS col2 FROM tab1
----
94

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7834
SELECT CAST( - AVG ( - 39 ) AS SIGNED ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-7834
SELECT CAST ( - AVG ( - 39 ) AS INTEGER ) FROM tab2
----
39

onlyif mysql # aggregate syntax: 
query II rowsort label-7835
SELECT + 29 AS col1, 24 * + COUNT( * ) FROM tab1
----
29
72

skipif mysql # not compatible
query II rowsort label-7835
SELECT + 29 AS col1, 24 * + COUNT ( * ) FROM tab1
----
29
72

onlyif mysql # aggregate syntax: 
query I rowsort label-7836
SELECT - COUNT( DISTINCT - 75 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-7836
SELECT - COUNT ( DISTINCT - 75 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-7837
SELECT COUNT( + 67 ) FROM tab2 WHERE - 58 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-7837
SELECT COUNT ( + 67 ) FROM tab2 WHERE - 58 IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-7838
SELECT + CAST( + - 11 AS SIGNED ) AS col0, 52 FROM tab0
----
-11
52
-11
52
-11
52

skipif mysql # not compatible
query II rowsort label-7838
SELECT + CAST ( + - 11 AS INTEGER ) AS col0, 52 FROM tab0
----
-11
52
-11
52
-11
52

query II rowsort
SELECT DISTINCT + + 32 AS col0, - col1 * - ( col2 ) * + 60 + col1 FROM tab1 AS cor0
----
32
17705
32
191807
32
80654

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NOT NULL <= NULL )
----

query I rowsort
SELECT ALL - 1 * col0 - - col0 FROM tab0 cor0
----
0
0
0

query II rowsort
SELECT - col1 AS col0, col0 FROM tab1 AS cor0 WHERE ( NULL ) NOT BETWEEN col0 / + 78 - + col2 AND NULL
----

query II rowsort
SELECT ALL - col2, + 4 * - 35 AS col0 FROM tab2 cor0
----
-23
-140
-40
-140
-58
-140

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + - 51 col2 FROM tab0 AS cor0
----
-30
-50
30

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7845
SELECT + 44 * + + 95 + - - ( + 99 ) / - CAST( NULL AS SIGNED ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7845
SELECT + 44 * + + 95 + - - ( + 99 ) / - CAST ( NULL AS INTEGER ) AS col2 FROM tab0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 + - col1 col0, col1 * + col2 FROM tab1
----
-138
3196
-65
1344
-90
295

onlyif mysql # aggregate syntax: 
query II rowsort label-7847
SELECT - ( + + 12 ) AS col0, COUNT( * ) + + COUNT( * ) + + COUNT( * ) FROM tab1
----
-12
9

skipif mysql # not compatible
query II rowsort label-7847
SELECT - ( + + 12 ) AS col0, COUNT ( * ) + + COUNT ( * ) + + COUNT ( * ) FROM tab1
----
-12
9

onlyif mysql # aggregate syntax: 
query I rowsort label-7848
SELECT DISTINCT - + MAX( ALL - col1 ) + COUNT( * ) AS col0 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-7848
SELECT DISTINCT - + MAX ( ALL - col1 ) + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
54

query II rowsort
SELECT DISTINCT 92 + col1, col2 FROM tab2 cor0
----
143
23
159
58
169
40

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 83 = - 60 + + - 59 * + col2 * - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-7851
SELECT DISTINCT col2 DIV col0 - col1 FROM tab1 AS cor0
----
-13
-47
-5

skipif mysql # not compatible
query I rowsort label-7851
SELECT DISTINCT col2 / col0 - col1 FROM tab1 AS cor0
----
-13
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-7852
SELECT MIN( - 60 ) - - - ( - 74 ) FROM tab2 cor0
----
14

skipif mysql # not compatible
query I rowsort label-7852
SELECT MIN ( - 60 ) - - - ( - 74 ) FROM tab2 cor0
----
14

onlyif mysql # DIV for integer division: 
query II rowsort label-7853
SELECT DISTINCT - col2 - + + 44, col0 DIV - 64 AS col1 FROM tab0 AS cor0
----
-143
-1
-54
-1
-91
0

skipif mysql # not compatible
query II rowsort label-7853
SELECT DISTINCT - col2 - + + 44, col0 / - 64 AS col1 FROM tab0 AS cor0
----
-143
-1
-54
-1
-91
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( + col2 ) ) >= - col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7855
SELECT + col2 - - 95 * + - col1 + + col1 * + + col1 * + CAST( NULL AS SIGNED ) * - col2 + + - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7855
SELECT + col2 - - 95 * + - col1 + + col1 * + + col1 * + CAST ( NULL AS INTEGER ) * - col2 + + - 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7856
SELECT DISTINCT COUNT( * ) DIV + 38 col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7856
SELECT DISTINCT COUNT ( * ) / + 38 col2 FROM tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-7857
SELECT DISTINCT - COUNT( * ) AS col0, - COUNT( * ) col2 FROM tab1
----
-3
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-7857
SELECT DISTINCT - COUNT ( * ) AS col0, - COUNT ( * ) col2 FROM tab1
----
-3
-3

query I rowsort
SELECT col0 * - + 30 AS col2 FROM tab1
----
-1530
-2550
-2730

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + + col2 NOT BETWEEN NULL AND + 37 + 59
----

query II rowsort
SELECT ALL col0 AS col0, - ( - col2 ) + + 42 FROM tab2
----
46
65
64
82
75
100

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + + 43 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - 33 col2 FROM tab0 AS cor0
----
-33
-33
-33

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT + 30 * + 92 IS NOT NULL
----

query II rowsort
SELECT col1 AS col1, + col1 * + col2 AS col0 FROM tab2 AS cor0
----
51
1173
67
3886
77
3080

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN ( ( - col0 ) ) AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7866
SELECT ALL - CAST( 19 AS SIGNED ) FROM tab2
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-7866
SELECT ALL - CAST ( 19 AS INTEGER ) FROM tab2
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-7867
SELECT - MIN( ( 8 ) ) FROM tab0
----
-8

skipif mysql # not compatible
query I rowsort label-7867
SELECT - MIN ( ( 8 ) ) FROM tab0
----
-8

onlyif mysql # aggregate syntax: 
query I rowsort label-7868
SELECT ALL + COUNT( DISTINCT 83 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-7868
SELECT ALL + COUNT ( DISTINCT 83 ) AS col1 FROM tab2
----
1

query I rowsort
SELECT ALL col2 + - 22 * col0 FROM tab1
----
-1026
-1811
-1934

query I rowsort
SELECT + col1 AS col1 FROM tab1 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7871
SELECT - CAST( NULL AS SIGNED ) * col1 - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7871
SELECT - CAST ( NULL AS INTEGER ) * col1 - + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL IN ( + col2 + + 44 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * col2 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 23 AS col0 FROM tab2 WHERE NOT - col1 - - 46 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7875
SELECT - 43 * + 87 + - COUNT( * ) * 75 FROM tab2
----
-3966

skipif mysql # not compatible
query I rowsort label-7875
SELECT - 43 * + 87 + - COUNT ( * ) * 75 FROM tab2
----
-3966

query I rowsort
SELECT DISTINCT col1 * col0 AS col1 FROM tab1 WHERE NOT + col2 * + 24 IS NULL
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( 62 + - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7878
SELECT COUNT( * ) col0 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7878
SELECT COUNT ( * ) col0 FROM tab2 WHERE ( col0 ) IS NOT NULL
----
3

query I rowsort
SELECT + 62 + - col0 AS col2 FROM tab1
----
-23
-29
11

query I rowsort
SELECT + col2 + ( - 58 ) FROM tab0
----
-11
-48
41

query I rowsort
SELECT col0 + col1 * col1 AS col0 FROM tab2
----
2647
4564
5993

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 8 * - col2 col0 FROM tab1
----
-472
-544
-768

onlyif mysql # aggregate syntax: 
query I rowsort label-7883
SELECT - 36 + MIN( - 48 ) AS col1 FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-7883
SELECT - 36 + MIN ( - 48 ) AS col1 FROM tab1
----
-84

query I rowsort
SELECT - 43 * + col2 + - ( 94 ) AS col1 FROM tab0
----
-2115
-4351
-524

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7885
SELECT * FROM tab0 WHERE - CAST( ( + col0 ) AS SIGNED ) * - col0 + + col0 IN ( - col2 )
----

skipif mysql # not compatible
query III rowsort label-7885
SELECT * FROM tab0 WHERE - CAST ( ( + col0 ) AS INTEGER ) * - col0 + + col0 IN ( - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7886
SELECT ALL * FROM tab0 WHERE 50 * col2 >= - CAST( + 5 AS SIGNED )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-7886
SELECT ALL * FROM tab0 WHERE 50 * col2 >= - CAST ( + 5 AS INTEGER )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + col0 * + 99 FROM tab2 WHERE NULL IS NULL
----
4554
6336
7425

query I rowsort
SELECT col2 FROM tab2 WHERE NULL BETWEEN NULL AND + col1 * - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 15 + - 38 col0 FROM tab2
----
-23
-23
-23

query I rowsort
SELECT + col0 * + 11 FROM tab1
----
1001
561
935

onlyif mysql # aggregate syntax: 
query I rowsort label-7891
SELECT - COUNT( * ) * 8 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-7891
SELECT - COUNT ( * ) * 8 FROM tab1
----
-24

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - col2 ) + - col1 col2 FROM tab2
----
-28
-37
-9

query I rowsort
SELECT - col1 * + col1 FROM tab1 WHERE NOT 29 * - col1 - + col0 IN ( + col0 )
----
-196
-2209
-25

query III rowsort
SELECT * FROM tab0 WHERE NOT ( - 81 ) BETWEEN 94 AND col2 + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col0 + - col0 * ( - ( + col2 ) ) AS col0 FROM tab1
----
4947
5100
6279

query I rowsort
SELECT ALL col0 + + 43 AS col1 FROM tab0 AS cor0
----
130
140
58

onlyif mysql # aggregate syntax: 
query I rowsort label-7897
SELECT ALL SUM( DISTINCT ( col1 ) ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-7897
SELECT ALL SUM ( DISTINCT ( col1 ) ) AS col1 FROM tab1 AS cor0
----
66

query I rowsort
SELECT + 83 * - col0 AS col0 FROM tab2 AS cor0
----
-3818
-5312
-6225

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col0 ) col1 FROM tab2 WHERE col0 IS NOT NULL
----
104
133
69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 64 col2 FROM ( tab2 cor0 CROSS JOIN tab0 )
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7902
SELECT MIN( - CAST( 89 AS SIGNED ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
-89

skipif mysql # not compatible
query I rowsort label-7902
SELECT MIN ( - CAST ( 89 AS INTEGER ) ) FROM ( tab0 AS cor0 CROSS JOIN tab0 )
----
-89

onlyif mysql # DIV for integer division: 
query I rowsort label-7903
SELECT - ( - 62 ) DIV + 12 + col0 AS col0 FROM tab0 AS cor0
----
102
20
92

skipif mysql # not compatible
query I rowsort label-7903
SELECT - ( - 62 ) / + 12 + col0 AS col0 FROM tab0 AS cor0
----
102
20
92

onlyif mysql # aggregate syntax: 
query I rowsort label-7904
SELECT + + 88 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-7904
SELECT + + 88 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
85

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-7906
SELECT 73 - + COUNT( * ) AS col2 FROM tab0 cor0 WHERE col0 * - 8 <= ( + 66 ) + 75
----
70

skipif mysql # not compatible
query I rowsort label-7906
SELECT 73 - + COUNT ( * ) AS col2 FROM tab0 cor0 WHERE col0 * - 8 <= ( + 66 ) + 75
----
70

query I rowsort
SELECT ALL - 8 - + 42 FROM tab2 AS cor0
----
-50
-50
-50

query I rowsort
SELECT - ( 99 ) + col1 AS col1 FROM tab2 AS cor0
----
-22
-32
-48

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT col1 IN ( - col2 )
----
59
68
96

query I rowsort
SELECT DISTINCT ( + col1 ) - 81 FROM tab2 AS cor0
----
-14
-30
-4

onlyif mysql # DIV for integer division: 
query I rowsort label-7911
SELECT ALL - 0 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-7911
SELECT ALL - 0 / col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) < - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7913
SELECT DISTINCT - - SUM( DISTINCT + 24 ) FROM tab0 AS cor0
----
24

skipif mysql # not compatible
query I rowsort label-7913
SELECT DISTINCT - - SUM ( DISTINCT + 24 ) FROM tab0 AS cor0
----
24

onlyif mysql # aggregate syntax: 
query I rowsort label-7914
SELECT SUM( - 16 ) + 59 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
11

skipif mysql # not compatible
query I rowsort label-7914
SELECT SUM ( - 16 ) + 59 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
11

query I rowsort
SELECT DISTINCT 8 * - + 38 AS col2 FROM tab0
----
-304

query III rowsort
SELECT * FROM tab1 WHERE NOT + 5 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 55 FROM tab0 WHERE NOT + 85 * + 15 IS NOT NULL
----

query I rowsort
SELECT + col2 + + 28 FROM tab1 WHERE NOT ( ( + 7 ) / + col1 ) < ( - 29 )
----
124
87
96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL BETWEEN 28 * col0 - 75 * col2 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7920
SELECT DISTINCT 8 * - - MIN( ALL col2 ) FROM tab0
----
80

skipif mysql # not compatible
query I rowsort label-7920
SELECT DISTINCT 8 * - - MIN ( ALL col2 ) FROM tab0
----
80

onlyif mysql # aggregate syntax: 
query I rowsort label-7921
SELECT COUNT( * ) FROM tab2 WHERE NOT NULL > ( NULL )
----
0

skipif mysql # not compatible
query I rowsort label-7921
SELECT COUNT ( * ) FROM tab2 WHERE NOT NULL > ( NULL )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7922
SELECT ALL COUNT( DISTINCT - + col0 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-7922
SELECT ALL COUNT ( DISTINCT - + col0 ) FROM tab0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-7923
SELECT - col0 DIV 19 FROM tab1
----
-2
-4
-4

skipif mysql # not compatible
query I rowsort label-7923
SELECT - col0 / 19 FROM tab1
----
-2
-4
-4

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 77 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * + - col2 + col1 * + ( - col2 ) col1 FROM tab1 AS cor0
----
-10560
-3776
-7820

query I rowsort
SELECT ALL + col2 * - + 8 FROM tab0 AS cor0
----
-376
-792
-80

query I rowsort
SELECT DISTINCT - 60 * col2 FROM tab0 AS cor0 WHERE - col0 + - col0 IS NOT NULL
----
-2820
-5940
-600

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 IN ( - col1 * - 94 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT ( - col2 ) FROM tab2 AS cor0 WHERE NULL NOT IN ( col2 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7930
SELECT DISTINCT - SUM( DISTINCT + 53 ) DIV - COUNT( * ) FROM tab2 cor0
----
17

skipif mysql # not compatible
query I rowsort label-7930
SELECT DISTINCT - SUM ( DISTINCT + 53 ) / - COUNT ( * ) FROM tab2 cor0
----
17

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col2 ) IN ( - 78 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-7932
SELECT + CAST( ( COUNT( * ) ) AS SIGNED ) + - COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-7932
SELECT + CAST ( ( COUNT ( * ) ) AS INTEGER ) + - COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT - 4 * - col2 AS col1 FROM tab1
----
236
272
384

query I rowsort
SELECT + + col1 + ( col1 ) - - col0 FROM tab2 AS cor0
----
148
209
218

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT + 28 BETWEEN + - col1 * + col2 AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT NULL <= + 68
----

query II rowsort
SELECT ALL - 78, + col2 FROM tab1 cor0
----
-78
59
-78
68
-78
96

query I rowsort
SELECT DISTINCT + + 42 AS col1 FROM tab0 cor0
----
42

query I rowsort
SELECT ALL + + 45 FROM tab2 cor0
----
45
45
45

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( - 8 * + + 2 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-7941
SELECT DISTINCT - 1 DIV - 36 AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-7941
SELECT DISTINCT - 1 / - 36 AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col2 AS col1 FROM tab0 AS cor0 WHERE ( + col2 * - - col2 ) IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7943
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + + CAST( NULL AS SIGNED ) < ( + 51 )
----

skipif mysql # not compatible
query III rowsort label-7943
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col1 * + + CAST ( NULL AS INTEGER ) < ( + 51 )
----

query I rowsort
SELECT DISTINCT + 20 + col1 * - col0 + - 66 FROM tab1
----
-4323
-471
-760

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 90 * - col0 + col2 col1 FROM tab1 WHERE ( + 99 * - col0 + col2 ) NOT IN ( col2 )
----
-4494
-7591
-8122

onlyif mysql # aggregate syntax: 
query I rowsort label-7946
SELECT ALL + COUNT( * ) + 47 AS col2 FROM tab0
----
50

skipif mysql # not compatible
query I rowsort label-7946
SELECT ALL + COUNT ( * ) + 47 AS col2 FROM tab0
----
50

query I rowsort
SELECT ALL col2 + - 67 FROM tab2
----
-27
-44
-9

query I rowsort
SELECT 11 * + col0 - - + col2 FROM tab2
----
529
744
883

query I rowsort
SELECT ALL - col2 - - col2 FROM tab0 cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7950
SELECT COUNT( * ) * - - COUNT( * ) + - MAX( 90 ) FROM tab1
----
-81

skipif mysql # not compatible
query I rowsort label-7950
SELECT COUNT ( * ) * - - COUNT ( * ) + - MAX ( 90 ) FROM tab1
----
-81

query II rowsort
SELECT DISTINCT 45 + col2 * + + col0 AS col0, col1 AS col2 FROM tab0
----
750
81
915
21
9648
1

query III rowsort
SELECT * FROM tab1 WHERE - + col0 = - - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7953
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - 93 )
----
0

skipif mysql # not compatible
query I rowsort label-7953
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT IN ( - 93 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7954
SELECT DISTINCT - 91 * + COUNT( * ) FROM tab2 AS cor0
----
-273

skipif mysql # not compatible
query I rowsort label-7954
SELECT DISTINCT - 91 * + COUNT ( * ) FROM tab2 AS cor0
----
-273

onlyif mysql # aggregate syntax: 
query I rowsort label-7955
SELECT DISTINCT + COUNT( ALL - - col2 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7955
SELECT DISTINCT + COUNT ( ALL - - col2 ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-7956
SELECT ALL MAX( col1 ) col2 FROM tab2 cor0
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-7956
SELECT ALL MAX ( col1 ) col2 FROM tab2 cor0
----
77

onlyif mysql # aggregate syntax: 
query II rowsort label-7957
SELECT DISTINCT COUNT( * ) AS col2, 7 + + ( + 35 ) AS col0 FROM tab2 AS cor0
----
3
42

skipif mysql # not compatible
query II rowsort label-7957
SELECT DISTINCT COUNT ( * ) AS col2, 7 + + ( + 35 ) AS col0 FROM tab2 AS cor0
----
3
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7958
SELECT + CAST( NULL AS SIGNED ) + - col0 - col1 FROM tab0 AS cor0 WHERE NOT - ( - + 19 ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-7958
SELECT + CAST ( NULL AS INTEGER ) + - col0 - col1 FROM tab0 AS cor0 WHERE NOT - ( - + 19 ) IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col1, - col0 AS col0 FROM tab1
----
14
-51
47
-91
5
-85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7960
SELECT DISTINCT + CAST( NULL AS SIGNED ) + + 14 * col1 AS col2 FROM tab2 WHERE NOT + col2 NOT IN ( + ( - - ( + + ( - 43 ) ) ) )
----

skipif mysql # not compatible
query I rowsort label-7960
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + + 14 * col1 AS col2 FROM tab2 WHERE NOT + col2 NOT IN ( + ( - - ( + + ( - 43 ) ) ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-7961
SELECT + 99 * - CAST( NULL AS DECIMAL ) / ( - col0 ) * + 0 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-7961
SELECT + 99 * - CAST ( NULL AS REAL ) / ( - col0 ) * + 0 AS col0 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NOT col1 * + 7 <> NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7963
SELECT ALL + MAX( 92 ) AS col0 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-7963
SELECT ALL + MAX ( 92 ) AS col0 FROM tab2 AS cor0
----
92

query I rowsort
SELECT DISTINCT + 60 FROM tab2 AS cor0 WHERE ( - col1 ) * col1 + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-7965
SELECT DISTINCT - 3 + COUNT( * ) FROM tab2 WHERE - + col1 NOT BETWEEN ( col1 * + 30 + col1 ) AND ( 28 ) / + col2
----
0

skipif mysql # not compatible
query I rowsort label-7965
SELECT DISTINCT - 3 + COUNT ( * ) FROM tab2 WHERE - + col1 NOT BETWEEN ( col1 * + 30 + col1 ) AND ( 28 ) / + col2
----
0

query I rowsort
SELECT ALL col0 + + col2 - 69 FROM tab0
----
-7
127
28

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT ( - ( + - col0 ) IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL - - ( + - col1 ) AS col1 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-7970
SELECT - - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE col2 + col1 - 89 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-7970
SELECT - - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE col2 + col1 - 89 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-7971
SELECT ALL MIN( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

skipif mysql # not compatible
query I rowsort label-7971
SELECT ALL MIN ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7972
SELECT 31 + - CAST( + col1 AS SIGNED ) + + - 35 AS col2 FROM tab0 AS cor0
----
-25
-5
-85

skipif mysql # not compatible
query I rowsort label-7972
SELECT 31 + - CAST ( + col1 AS INTEGER ) + + - 35 AS col2 FROM tab0 AS cor0
----
-25
-5
-85

onlyif mysql # DIV for integer division: 
query I rowsort label-7973
SELECT col2 DIV 71 DIV 41 * - col2 + 75 * - col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

skipif mysql # not compatible
query I rowsort label-7973
SELECT col2 / 71 / 41 * - col2 + 75 * - col0 FROM tab2 AS cor0
----
-3450
-4800
-5625

onlyif mysql # aggregate syntax: 
query I rowsort label-7974
SELECT - MAX( - 85 ) + - COUNT( * ) AS col1 FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-7974
SELECT - MAX ( - 85 ) + - COUNT ( * ) AS col1 FROM tab0 AS cor0
----
82

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + 11 col0 FROM tab1 AS cor0
----
107
70
79

query I rowsort
SELECT - ( - - col2 ) + + col1 * col2 FROM tab0 AS cor0
----
0
200
3760

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7977
SELECT DISTINCT - CAST( - + AVG ( ALL - - col1 ) AS SIGNED ) AS col2 FROM tab0
----
34

skipif mysql # not compatible
query I rowsort label-7977
SELECT DISTINCT - CAST ( - + AVG ( ALL - - col1 ) AS INTEGER ) AS col2 FROM tab0
----
34

query I rowsort
SELECT ALL 6 * + col1 + - - col1 FROM tab2
----
357
469
539

query I rowsort
SELECT - col0 + - 82 FROM tab2 WHERE col0 NOT BETWEEN NULL AND col2
----
-128
-146
-157

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-7980
SELECT ALL COUNT( * ) * COUNT( * ) * + 78 * 26 + + - 83 DIV - + ( + - COUNT( * ) ) FROM tab2
----
18225

skipif mysql # not compatible
query I rowsort label-7980
SELECT ALL COUNT ( * ) * COUNT ( * ) * + 78 * 26 + + - 83 / - + ( + - COUNT ( * ) ) FROM tab2
----
18225

query I rowsort
SELECT ALL col2 * + 82 AS col1 FROM tab1 WHERE + col2 IN ( - 10 - 44 + + + 39 + - col2 / + 83 * col1 )
----

query I rowsort
SELECT ALL - col1 FROM tab1 WHERE ( - - col2 ) <> NULL
----

query I rowsort
SELECT ALL col2 + col0 * + col2 * + col2 * + col1 AS col2 FROM tab1
----
1479484
19776916
6580320

onlyif mysql # aggregate syntax: 
query I rowsort label-7984
SELECT DISTINCT + SUM( ALL 11 ) - + - 61 AS col1 FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-7984
SELECT DISTINCT + SUM ( ALL 11 ) - + - 61 AS col1 FROM tab2
----
94

query I rowsort
SELECT ALL - col2 * - 51 + + col1 * - + 36 * + 21 AS col0 FROM tab0
----
-15366
-58839
4293

onlyif mysql # DIV for integer division: 
query I rowsort label-7986
SELECT DISTINCT 84 * - 37 + + 39 DIV - - 82 FROM tab2
----
-3108

skipif mysql # not compatible
query I rowsort label-7986
SELECT DISTINCT 84 * - 37 + + 39 / - - 82 FROM tab2
----
-3108

query II rowsort
SELECT - col2 AS col1, + col1 + - col1 + + col0 FROM tab0 AS cor0
----
-10
87
-47
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-7988
SELECT DISTINCT + COUNT( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-7988
SELECT DISTINCT + COUNT ( DISTINCT - col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT + col1 FROM tab0 WHERE ( NOT ( 25 / - + 62 * + col1 IS NULL ) )
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-7990
SELECT COUNT( * ) + - - COUNT( + 42 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-7990
SELECT COUNT ( * ) + - - COUNT ( + 42 ) FROM tab2
----
6

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col0 NOT BETWEEN NULL AND col1 / + col0 / - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-7992
SELECT ALL + + 29 FROM tab0 AS cor0 WHERE NULL IN ( CAST( NULL AS SIGNED ), + col2 / - col1 - - col1 )
----

skipif mysql # not compatible
query I rowsort label-7992
SELECT ALL + + 29 FROM tab0 AS cor0 WHERE NULL IN ( CAST ( NULL AS INTEGER ), + col2 / - col1 - - col1 )
----

query I rowsort
SELECT DISTINCT + + 47 * - col1 AS col2 FROM tab0 AS cor0
----
-3807
-47
-987

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-7994
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( - + 16 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-7994
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( - + 16 AS INTEGER ) > NULL
----

query I rowsort
SELECT + col0 * - col2 + - 81 FROM tab0 AS cor0
----
-786
-951
-9684

query I rowsort
SELECT - 19 FROM tab0 AS cor0 WHERE NOT col1 = + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - col2 ) col1, + col0 FROM tab2 AS cor0
----
-23
46
-40
64
-58
75

query I rowsort
SELECT ALL - col2 + + 89 FROM tab2 WHERE NULL IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - col2 col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 81 * col1 AS col1 FROM tab2
----
4131
5427
6237

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 7 * + + col2 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8002
SELECT col2 DIV col2 * - col0 FROM tab1
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-8002
SELECT col2 / col2 * - col0 FROM tab1
----
-51
-85
-91

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 / - 51 * - col0 * + 32 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8004
SELECT + 65 DIV + + SUM( - - 92 ) AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8004
SELECT + 65 / + + SUM ( - - 92 ) AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8005
SELECT + col1 DIV - + 82 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8005
SELECT + col1 / - + 82 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT 90 + - 93 AS col2 FROM tab2
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8007
SELECT ALL - MIN( col0 ) FROM tab1 WHERE - - 79 IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-8007
SELECT ALL - MIN ( col0 ) FROM tab1 WHERE - - 79 IS NOT NULL
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-8008
SELECT COUNT( * ) + - 95 - COUNT( * ) AS col2 FROM tab0
----
-95

skipif mysql # not compatible
query I rowsort label-8008
SELECT COUNT ( * ) + - 95 - COUNT ( * ) AS col2 FROM tab0
----
-95

query I rowsort
SELECT + 96 * + - 35 AS col2 FROM tab0 cor0
----
-3360
-3360
-3360

query I rowsort
SELECT ALL - - col2 + + 25 + - col1 + - col1 * + - 95 FROM tab1 cor0
----
1437
4511
554

onlyif mysql # aggregate syntax: 
query I rowsort label-8011
SELECT DISTINCT - SUM( DISTINCT 45 ) FROM tab1 AS cor0
----
-45

skipif mysql # not compatible
query I rowsort label-8011
SELECT DISTINCT - SUM ( DISTINCT 45 ) FROM tab1 AS cor0
----
-45

query I rowsort
SELECT DISTINCT + + col2 * + 47 AS col1 FROM tab2 AS cor0
----
1081
1880
2726

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col0 * + + col0 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 <= col0 / - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8015
SELECT DISTINCT + 47 * - SUM( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-5687

skipif mysql # not compatible
query I rowsort label-8015
SELECT DISTINCT + 47 * - SUM ( ALL col2 ) AS col0 FROM tab2 AS cor0
----
-5687

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 * - - 14, 49 * + - ( + - col1 ) col0 FROM tab1
----
1190
245
1274
2303
714
686

query I rowsort
SELECT DISTINCT 73 + + col0 + + col1 AS col0 FROM tab2
----
170
214
215

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8018
SELECT ALL + SUM( ALL - col2 ) + - - CAST( NULL AS SIGNED ) * - + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8018
SELECT ALL + SUM ( ALL - col2 ) + - - CAST ( NULL AS INTEGER ) * - + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT + col1 - - 62 * + 76 FROM tab0
----
4713
4733
4793

query I rowsort
SELECT DISTINCT + col1 + - 28 FROM tab2
----
23
39
49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8021
SELECT 15 + ( + CAST( NULL AS SIGNED ) ) * SUM( ALL - - 84 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8021
SELECT 15 + ( + CAST ( NULL AS INTEGER ) ) * SUM ( ALL - - 84 ) FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 66 * - + col0 * col0 <= NULL
----

query I rowsort
SELECT DISTINCT - ( + + col0 ) * - ( + 11 ) - + - col2 + - 83 AS col1 FROM tab2 cor0
----
446
661
800

onlyif mysql # DIV for integer division: 
query I rowsort label-8024
SELECT DISTINCT + 83 DIV 64 AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8024
SELECT DISTINCT + 83 / 64 AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT 13 * ( - + col1 ) FROM tab1 AS cor0
----
-182
-611
-65

query II rowsort
SELECT ALL - col2, col0 AS col2 FROM tab0
----
-10
87
-47
15
-99
97

query I rowsort
SELECT DISTINCT 84 * 80 FROM tab1 AS cor0
----
6720

query II rowsort
SELECT + + 85 AS col0, ( + 13 ) AS col2 FROM tab0 AS cor0
----
85
13
85
13
85
13

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8029
SELECT - + CAST( - MIN( DISTINCT 91 ) AS SIGNED ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8029
SELECT - + CAST ( - MIN ( DISTINCT 91 ) AS INTEGER ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) >= NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-8030
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( - 17 AS DECIMAL ) BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query III rowsort label-8030
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( - 17 AS REAL ) BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col2 FROM tab2 AS cor0 WHERE NULL = NULL
----

query II rowsort
SELECT 97, + col0 AS col2 FROM tab0 cor0
----
97
15
97
87
97
97

query II rowsort
SELECT ALL col0, 77 FROM tab1 cor0
----
51
77
85
77
91
77

query II rowsort
SELECT DISTINCT 6 * col1, + 82 AS col2 FROM tab0
----
126
82
486
82
6
82

onlyif mysql # DIV for integer division: 
query I rowsort label-8035
SELECT DISTINCT + col0 * ( - col2 ) DIV col0 - + 27 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-123
-86
-95

skipif mysql # not compatible
query I rowsort label-8035
SELECT DISTINCT + col0 * ( - col2 ) / col0 - + 27 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-123
-86
-95

query I rowsort
SELECT ( + 94 ) FROM tab1 AS cor0
----
94
94
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8037
SELECT 39 DIV + col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8037
SELECT 39 / + col0 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT DISTINCT + - 44 * + - 34 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
1496

onlyif mysql # aggregate syntax: 
query II rowsort label-8039
SELECT ALL - - 84 * - COUNT( 90 ), - COUNT( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-756
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8039
SELECT ALL - - 84 * - COUNT ( 90 ), - COUNT ( * ) col1 FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
-756
-9

onlyif mysql # aggregate syntax: 
query II rowsort label-8040
SELECT DISTINCT ( + - COUNT( * ) ) + 36 AS col0, MAX( ALL col1 ) col1 FROM tab1
----
33
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8040
SELECT DISTINCT ( + - COUNT ( * ) ) + 36 AS col0, MAX ( ALL col1 ) col1 FROM tab1
----
33
47

query II rowsort
SELECT DISTINCT + 74, 85 + col2 + - 43 AS col0 FROM tab0 AS cor0
----
74
141
74
52
74
89

query I rowsort
SELECT + + 88 + 96 FROM tab1 AS cor0
----
184
184
184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8043
SELECT ALL + CAST( + + col1 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8043
SELECT ALL + CAST ( + + col1 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8044
SELECT - col0 + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8044
SELECT - col0 + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 69 + + col2 FROM tab0 AS cor0
----
116
168
79

query I rowsort
SELECT ALL + + col2 - + + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL <> 70
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( NULL ) < + + 10
----

query I rowsort
SELECT + - 95 + col1 * - ( 58 ) AS col0 FROM tab2 cor0
----
-3053
-3981
-4561

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8050
SELECT DISTINCT - CAST( - 99 AS SIGNED ) * + 18 + - - COUNT( * ) AS col1 FROM tab1
----
1785

skipif mysql # not compatible
query I rowsort label-8050
SELECT DISTINCT - CAST ( - 99 AS INTEGER ) * + 18 + - - COUNT ( * ) AS col1 FROM tab1
----
1785

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8051
SELECT ALL col0 + 49 * CAST( NULL AS SIGNED ) * - + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8051
SELECT ALL col0 + 49 * CAST ( NULL AS INTEGER ) * - + col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8052
SELECT col0 DIV - CAST( col0 AS SIGNED ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-8052
SELECT col0 / - CAST ( col0 AS INTEGER ) FROM tab1
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8053
SELECT ALL COUNT( ALL - - col2 ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8053
SELECT ALL COUNT ( ALL - - col2 ) AS col1 FROM tab0
----
3

query I rowsort
SELECT ALL + 22 + - col0 - - col0 + col2 FROM tab2
----
45
62
80

query I rowsort
SELECT DISTINCT 97 + - 74 FROM tab2
----
23

query I rowsort
SELECT ALL col0 + - - col2 + col0 * 78 * + col0 - + col2 FROM tab2
----
165094
319552
438825

onlyif mysql # aggregate syntax: 
query I rowsort label-8057
SELECT ALL 31 - - 23 * COUNT( * ) AS col0 FROM tab0 AS cor0
----
100

skipif mysql # not compatible
query I rowsort label-8057
SELECT ALL 31 - - 23 * COUNT ( * ) AS col0 FROM tab0 AS cor0
----
100

query I rowsort
SELECT + 2 - + - 94 + col0 AS col1 FROM tab1 cor0
----
147
181
187

query II rowsort
SELECT DISTINCT 32 AS col1, + col0 FROM tab0 AS cor0
----
32
15
32
87
32
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8060
SELECT ALL COUNT( * ) * + MAX( DISTINCT + - col2 ) FROM tab1
----
-177

skipif mysql # not compatible
query I rowsort label-8060
SELECT ALL COUNT ( * ) * + MAX ( DISTINCT + - col2 ) FROM tab1
----
-177

query I rowsort
SELECT ( - + 41 ) FROM tab1 AS cor0 WHERE NOT + ( - col1 ) BETWEEN NULL AND col2 + + 2 * + + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8062
SELECT ALL 56 DIV + 38 + + col0 FROM tab1 AS cor0
----
52
86
92

skipif mysql # not compatible
query I rowsort label-8062
SELECT ALL 56 / + 38 + + col0 FROM tab1 AS cor0
----
52
86
92

onlyif mysql # DIV for integer division: 
query II rowsort label-8063
SELECT - col0 DIV + col0 AS col1, 92 FROM tab1 AS cor0
----
-1
92
-1
92
-1
92

skipif mysql # not compatible
query II rowsort label-8063
SELECT - col0 / + col0 AS col1, 92 FROM tab1 AS cor0
----
-1
92
-1
92
-1
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8064
SELECT DISTINCT MIN( + 79 ) FROM tab0 AS cor0
----
79

skipif mysql # not compatible
query I rowsort label-8064
SELECT DISTINCT MIN ( + 79 ) FROM tab0 AS cor0
----
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8065
SELECT - 80 + + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 < - CAST( NULL AS SIGNED ) + col1
----
-80

skipif mysql # not compatible
query I rowsort label-8065
SELECT - 80 + + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 < - CAST ( NULL AS INTEGER ) + col1
----
-80

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( col1 ) >= + + col0
----
75
67
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - 24 * col1 BETWEEN ( - 40 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col2 * + col1 + + col2 - col0 AS col1 FROM tab0
----
101
133
3839

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8069
SELECT DISTINCT col2, + col0 * - 49 + + + CAST( NULL AS SIGNED ) FROM tab1
----
59
NULL
68
NULL
96
NULL

skipif mysql # not compatible
query II rowsort label-8069
SELECT DISTINCT col2, + col0 * - 49 + + + CAST ( NULL AS INTEGER ) FROM tab1
----
59
NULL
68
NULL
96
NULL

query II rowsort
SELECT 10 AS col1, col1 AS col2 FROM tab0
----
10
1
10
21
10
81

query I rowsort
SELECT + col2 + - col2 * + ( + col0 ) FROM tab0
----
-658
-860
-9504

query I rowsort
SELECT DISTINCT - - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
24

query I rowsort
SELECT ALL + + 63 AS col1 FROM tab1 WHERE NULL <= NULL
----

query II rowsort
SELECT ALL + - col0 / + 38, 66 AS col0 FROM tab0 WHERE + + col0 = NULL
----

query I rowsort
SELECT DISTINCT ( - 25 ) FROM tab1
----
-25

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NOT col2 / + + col0 <> + 73 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col1 * + col2 - + ( + - col2 ) * + 10 * - col2 AS col2 FROM tab2 cor0
----
-19080
-37526
-6463

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8078
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + - CAST( NULL AS SIGNED ) + - 79 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8078
SELECT ALL * FROM tab0 AS cor0 WHERE col0 * + - CAST ( NULL AS INTEGER ) + - 79 * - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col2 FROM tab2 AS cor0 WHERE NULL <= 25 * col0
----

query I rowsort
SELECT + col2 * - ( + 89 ) FROM tab1 AS cor0
----
-5251
-6052
-8544

query I rowsort
SELECT - 62 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND - col2 + + 67
----

query I rowsort
SELECT DISTINCT + - col0 * 53 * + col1 * + ( col2 ) AS col2 FROM tab2 AS cor0
----
-10447360
-15446850
-2859774

query I rowsort
SELECT 50 FROM tab2 AS cor0 WHERE ( col1 <= ( + col2 ) )
----

query I rowsort
SELECT - 80 - + + col1 + col1 AS col0 FROM tab2
----
-80
-80
-80

query I rowsort
SELECT - 7 - + col1 FROM tab0
----
-28
-8
-88

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8086
SELECT ( + 37 ) DIV - 9 + + COUNT( * ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-8086
SELECT ( + 37 ) / - 9 + + COUNT ( * ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-8087
SELECT DISTINCT COUNT( ALL + 0 ) * - SUM( DISTINCT col2 ) AS col0 FROM tab0
----
-468

skipif mysql # not compatible
query I rowsort label-8087
SELECT DISTINCT COUNT ( ALL + 0 ) * - SUM ( DISTINCT col2 ) AS col0 FROM tab0
----
-468

onlyif mysql # aggregate syntax: 
query I rowsort label-8088
SELECT ALL - 68 * SUM( + 70 ) FROM tab0
----
-14280

skipif mysql # not compatible
query I rowsort label-8088
SELECT ALL - 68 * SUM ( + 70 ) FROM tab0
----
-14280

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - 77 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 71 col2 FROM tab0 AS cor0
----
71
71
71

query I rowsort
SELECT ALL 60 FROM tab0 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8092
SELECT MAX( DISTINCT - col1 ) * + 87 AS col1 FROM tab2
----
-4437

skipif mysql # not compatible
query I rowsort label-8092
SELECT MAX ( DISTINCT - col1 ) * + 87 AS col1 FROM tab2
----
-4437

onlyif mysql # DIV for integer division: 
query I rowsort label-8093
SELECT ALL col0 DIV + 90 AS col0 FROM tab0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-8093
SELECT ALL col0 / + 90 AS col0 FROM tab0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-8094
SELECT DISTINCT SUM( DISTINCT - 75 ) FROM tab2 cor0
----
-75

skipif mysql # not compatible
query I rowsort label-8094
SELECT DISTINCT SUM ( DISTINCT - 75 ) FROM tab2 cor0
----
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col2 col0 FROM tab0 AS cor0 WHERE NOT col0 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( + ( + col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8097
SELECT COUNT( * ) * - - 7 FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-8097
SELECT COUNT ( * ) * - - 7 FROM tab1 AS cor0
----
21

query I rowsort
SELECT DISTINCT - 23 * col2 * col0 FROM tab2 AS cor0
----
-100050
-24334
-58880

query II rowsort
SELECT ALL + 60 AS col2, col1 + - 11 FROM tab1 AS cor0
----
60
-6
60
3
60
36

query I rowsort
SELECT ( - 90 ) FROM tab2 AS cor0
----
-90
-90
-90

query I rowsort
SELECT + - ( - + col1 ) AS col2 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8102
SELECT - col0 FROM tab2 WHERE NOT + col1 NOT IN ( + 4 + + CAST( - col1 AS SIGNED ), + 51 + - col2 / - ( - col2 ) + - + col1 + + + 99, - 77 ) AND NOT ( NOT col0 NOT BETWEEN - CAST( NULL AS SIGNED ) AND - 51 )
----

skipif mysql # not compatible
query I rowsort label-8102
SELECT - col0 FROM tab2 WHERE NOT + col1 NOT IN ( + 4 + + CAST ( - col1 AS INTEGER ), + 51 + - col2 / - ( - col2 ) + - + col1 + + + 99, - 77 ) AND NOT ( NOT col0 NOT BETWEEN - CAST ( NULL AS INTEGER ) AND - 51 )
----

query I rowsort
SELECT col1 / col2 FROM tab2 WHERE NULL <= ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN ( - + col0 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - col0 BETWEEN + col1 AND + col0
----

query II rowsort
SELECT + ( - col1 ) AS col0, col0 AS col2 FROM tab0 AS cor0
----
-1
97
-21
87
-81
15

query I rowsort
SELECT DISTINCT - 34 + + + col0 - ( 49 ) FROM tab2 AS cor0
----
-19
-37
-8

query I rowsort
SELECT ALL + + 2 * - col2 - + + col2 AS col2 FROM tab1 AS cor0
----
-177
-204
-288

query I rowsort
SELECT DISTINCT col0 + - + 0 + + - col2 + 63 FROM tab2 AS cor0
----
80
86
87

query I rowsort
SELECT ALL + ( - 65 ) AS col0 FROM tab2 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8111
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 20 * CAST( 96 AS SIGNED ) + col2 + - 0 / + 12 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-8111
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 20 * CAST ( 96 AS INTEGER ) + col2 + - 0 / + 12 IS NOT NULL
----

query I rowsort
SELECT - 0 + + col1 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8113
SELECT - 49 DIV CAST( + + col0 AS SIGNED ) + + - CAST( col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-50
-99

skipif mysql # not compatible
query I rowsort label-8113
SELECT - 49 / CAST ( + + col0 AS INTEGER ) + + - CAST ( col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-50
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8114
SELECT ALL - + CAST( NULL AS SIGNED ) - + ( - ( - + col2 ) ) / CAST( - col2 AS SIGNED ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8114
SELECT ALL - + CAST ( NULL AS INTEGER ) - + ( - ( - + col2 ) ) / CAST ( - col2 AS INTEGER ) + + + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - col1 * - col0 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + 97 FROM tab1, tab0 AS cor0
----
9 values hashing to 5e0d31ac41981bcdf6a665538a71a09c

onlyif mysql # aggregate syntax: 
query I rowsort label-8117
SELECT + COUNT( * ) * - 29 AS col1 FROM tab1
----
-87

skipif mysql # not compatible
query I rowsort label-8117
SELECT + COUNT ( * ) * - 29 AS col1 FROM tab1
----
-87

query I rowsort
SELECT ALL 10 * 47 FROM tab2
----
470
470
470

onlyif mysql # aggregate syntax: 
query I rowsort label-8119
SELECT ALL - SUM( ALL - 97 ) FROM tab0
----
291

skipif mysql # not compatible
query I rowsort label-8119
SELECT ALL - SUM ( ALL - 97 ) FROM tab0
----
291

query I rowsort
SELECT ALL + col0 FROM tab0 AS cor0 WHERE - col1 * - - 14 + + 45 >= - 20
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + ( - 36 ) col1, + col2 + + col2 + - 81 * + col2 FROM tab2 AS cor0
----
-36
-1817
-36
-3160
-36
-4582

query I rowsort
SELECT DISTINCT - + col2 * - - ( + col0 ) * - col1 AS col0 FROM tab2 AS cor0
----
197120
291450
53958

onlyif mysql # aggregate syntax: 
query I rowsort label-8123
SELECT + MIN( ALL - + 73 ) FROM tab2 cor0
----
-73

skipif mysql # not compatible
query I rowsort label-8123
SELECT + MIN ( ALL - + 73 ) FROM tab2 cor0
----
-73

query I rowsort
SELECT ALL + col2 FROM tab2 AS cor0 WHERE NOT col0 IS NULL
----
23
40
58

query III rowsort
SELECT * FROM tab1 WHERE NOT - 53 >= col1 * - 15
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8126
SELECT ALL COUNT( * ) * + + MIN( + 51 ) FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-8126
SELECT ALL COUNT ( * ) * + + MIN ( + 51 ) FROM tab0
----
153

onlyif mysql # aggregate syntax: 
query I rowsort label-8127
SELECT ALL - COUNT( - 30 ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8127
SELECT ALL - COUNT ( - 30 ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT - col0, - col2 * - col0 + + + col0 + + 27 AS col1 FROM tab2 cor0 WHERE NOT + col0 / + 98 * - + col0 * 18 IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 83 NOT BETWEEN NULL AND col1
----

query I rowsort
SELECT ALL + + 7 AS col2 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT DISTINCT col0 + col0 * - col1 + + 56 FROM tab1 AS cor0
----
-284
-4130
-607

onlyif mysql # aggregate syntax: 
query II rowsort label-8132
SELECT + 56, MIN( ALL + 9 ) AS col2 FROM tab2 AS cor0
----
56
9

skipif mysql # not compatible
query II rowsort label-8132
SELECT + 56, MIN ( ALL + 9 ) AS col2 FROM tab2 AS cor0
----
56
9

query I rowsort
SELECT DISTINCT 24 AS col0 FROM tab1 AS cor0 WHERE + col0 + - col2 IS NOT NULL
----
24

query I rowsort
SELECT DISTINCT + 1 * + col0 FROM tab0
----
15
87
97

query II rowsort
SELECT + 90, 99 AS col1 FROM tab2
----
90
99
90
99
90
99

query II rowsort
SELECT 77, - col2 AS col2 FROM tab1
----
77
-59
77
-68
77
-96

query I rowsort
SELECT + col1 * 31 FROM tab1
----
1457
155
434

query I rowsort
SELECT ALL col0 + 18 FROM tab1
----
103
109
69

query II rowsort
SELECT ALL - col2, + ( col0 ) FROM tab0
----
-10
87
-47
15
-99
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8140
SELECT DISTINCT CAST( - MAX( col0 ) AS SIGNED ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-8140
SELECT DISTINCT CAST ( - MAX ( col0 ) AS INTEGER ) FROM tab2
----
-75

query I rowsort
SELECT col2 + - ( - 5 ) + - + col0 AS col0 FROM tab1
----
-18
-21
50

query I rowsort
SELECT DISTINCT col2 + - col1 + - 67 AS col2 FROM tab0
----
-101
-78
31

onlyif mysql # aggregate syntax: 
query II rowsort label-8143
SELECT DISTINCT + - 71, ( COUNT( * ) ) col1 FROM tab2 AS cor0
----
-71
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8143
SELECT DISTINCT + - 71, ( COUNT ( * ) ) col1 FROM tab2 AS cor0
----
-71
3

query I rowsort
SELECT - col1 * + + 31 + + col1 FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # aggregate syntax: 
query I rowsort label-8145
SELECT - - 48 + + COUNT( * ) AS col0 FROM tab0 cor0
----
51

skipif mysql # not compatible
query I rowsort label-8145
SELECT - - 48 + + COUNT ( * ) AS col0 FROM tab0 cor0
----
51

query I rowsort
SELECT DISTINCT - 83 * - col2 AS col0 FROM tab1 AS cor0
----
4897
5644
7968

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 AS col1 FROM tab2 AS cor0
----
51
23
67
58
77
40

onlyif mysql # DIV for integer division: 
query I rowsort label-8148
SELECT ALL - 22 * + 89 * col2 DIV - col2 AS col2 FROM tab1
----
1958
1958
1958

skipif mysql # not compatible
query I rowsort label-8148
SELECT ALL - 22 * + 89 * col2 / - col2 AS col2 FROM tab1
----
1958
1958
1958

onlyif mysql # aggregate syntax: 
query II rowsort label-8149
SELECT COUNT( * ), + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
9

skipif mysql # not compatible
query II rowsort label-8149
SELECT COUNT ( * ), + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9
9

query I rowsort
SELECT ALL - col2 + col0 AS col1 FROM tab2 WHERE ( NULL >= + col1 * - ( + + col2 ) )
----

query I rowsort
SELECT DISTINCT - + 33 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-33

query I rowsort
SELECT DISTINCT col1 FROM tab2 AS cor0 WHERE NULL BETWEEN ( NULL ) AND ( + col0 )
----

query I rowsort
SELECT ALL + 85 * 93 - - + col2 AS col0 FROM tab2 cor0
----
7928
7945
7963

query I rowsort
SELECT DISTINCT + col1 - + col1 AS col2 FROM tab2 cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( - col2 + - ( col1 ) + + col2 / - 30 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8156
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST( NULL AS SIGNED ) <= + - 26
----

skipif mysql # not compatible
query III rowsort label-8156
SELECT * FROM tab0 AS cor0 WHERE NOT + CAST ( NULL AS INTEGER ) <= + - 26
----

query I rowsort
SELECT + ( + col0 ) * col1 FROM tab2
----
2346
4928
5025

query II rowsort
SELECT 38, col1 - - + col0 + - col0 AS col1 FROM tab2
----
38
51
38
67
38
77

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - col1 ) <> - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8160
SELECT 89 * - MIN( DISTINCT - col0 ) * - COUNT( * ) FROM tab0
----
-25899

skipif mysql # not compatible
query I rowsort label-8160
SELECT 89 * - MIN ( DISTINCT - col0 ) * - COUNT ( * ) FROM tab0
----
-25899

query II rowsort
SELECT DISTINCT 97 AS col1, col2 AS col1 FROM tab1
----
97
59
97
68
97
96

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - - ( 17 ) < - + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 75 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8164
SELECT DISTINCT - - SUM( ALL + 96 ) AS col0 FROM tab1 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-8164
SELECT DISTINCT - - SUM ( ALL + 96 ) AS col0 FROM tab1 AS cor0
----
288

query I rowsort
SELECT ALL + ( 39 ) * - + 30 AS col1 FROM tab0 AS cor0
----
-1170
-1170
-1170

onlyif mysql # aggregate syntax: 
query I rowsort label-8166
SELECT - COUNT( * ) + 28 FROM tab2 AS cor0
----
25

skipif mysql # not compatible
query I rowsort label-8166
SELECT - COUNT ( * ) + 28 FROM tab2 AS cor0
----
25

query I rowsort
SELECT 88 + - - 56 AS col1 FROM tab0 AS cor0
----
144
144
144

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col0 * - 11 BETWEEN ( NULL ) AND - col1
----

query I rowsort
SELECT DISTINCT col2 * col0 + - col1 - - ( - col0 ) + - col2 FROM tab1 AS cor0
----
4735
4866
5982

query I rowsort
SELECT ALL 6 + - col2 FROM tab2
----
-17
-34
-52

query III rowsort
SELECT * FROM tab0 WHERE - 58 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + - col0 + + col2 + - col1 * + + 93 FROM tab2
----
-4720
-6173
-7121

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8173
SELECT DISTINCT - CAST( - - col2 AS SIGNED ) - + + col0 * 26 * col0 * - - col1 + - col0 FROM tab1
----
-10119541
-939394
-946911

skipif mysql # not compatible
query I rowsort label-8173
SELECT DISTINCT - CAST ( - - col2 AS INTEGER ) - + + col0 * 26 * col0 * - - col1 + - col0 FROM tab1
----
-10119541
-939394
-946911

query I rowsort
SELECT ALL + col0 + - 23 FROM tab1
----
28
62
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8175
SELECT DISTINCT + COUNT( * ) + + COUNT( * ) - 76 AS col1 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-8175
SELECT DISTINCT + COUNT ( * ) + + COUNT ( * ) - 76 AS col1 FROM tab0
----
-70

query I rowsort
SELECT ALL 9 * 61 FROM tab0
----
549
549
549

query I rowsort
SELECT - ( - 52 ) FROM tab0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-8178
SELECT ALL SUM( - col0 ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-8178
SELECT ALL SUM ( - col0 ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8179
SELECT DISTINCT CAST( NULL AS SIGNED ), - col2 * col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-8179
SELECT DISTINCT CAST ( NULL AS INTEGER ), - col2 * col2 FROM tab2 cor0 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT + - col0 AS col1, col2 FROM tab0 AS cor0
----
-15
47
-87
10
-97
99

query I rowsort
SELECT ALL - col1 * - col1 * + col1 AS col0 FROM tab1 AS cor0
----
103823
125
2744

query I rowsort
SELECT + col0 AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8183
SELECT - + COUNT( ALL - 3 ) AS col1 FROM tab0 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8183
SELECT - + COUNT ( ALL - 3 ) AS col1 FROM tab0 cor0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 * col2 * 14 col1 FROM tab2 AS cor0
----
-19964
-34720
-50344

query I rowsort
SELECT ALL + + col0 + + + ( - + col1 ) + - col0 AS col0 FROM tab1 AS cor0 WHERE + 42 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col2, col1 FROM tab0 AS cor0
----
-1
1
-21
21
-81
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8187
SELECT + + CAST( NULL AS SIGNED ) - - - ( + COUNT( * ) ) * - 46 * + MIN( ALL 75 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < 53
----
NULL

skipif mysql # not compatible
query I rowsort label-8187
SELECT + + CAST ( NULL AS INTEGER ) - - - ( + COUNT ( * ) ) * - 46 * + MIN ( ALL 75 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL < 53
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL <> 44
----

query I rowsort
SELECT ALL + col2 FROM tab0 WHERE NOT + - col1 * + - col0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-8190
SELECT ALL col0 DIV - col2 AS col1, + 9 - + col0 FROM tab0
----
-8
-78
0
-6
0
-88

skipif mysql # not compatible
query II rowsort label-8190
SELECT ALL col0 / - col2 AS col1, + 9 - + col0 FROM tab0
----
-8
-78
0
-6
0
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-8191
SELECT - MIN( DISTINCT + col2 ) FROM tab2 WHERE NOT + col1 * + + col1 * - col0 + + 47 / col2 - - - col2 + - col1 IS NULL
----
-23

skipif mysql # not compatible
query I rowsort label-8191
SELECT - MIN ( DISTINCT + col2 ) FROM tab2 WHERE NOT + col1 * + + col1 * - col0 + + 47 / col2 - - - col2 + - col1 IS NULL
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8192
SELECT 27 * MAX( DISTINCT + col1 ) FROM tab1
----
1269

skipif mysql # not compatible
query I rowsort label-8192
SELECT 27 * MAX ( DISTINCT + col1 ) FROM tab1
----
1269

query I rowsort
SELECT ALL + - 17 AS col1 FROM tab0 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-8194
SELECT DISTINCT - + COUNT( + + col1 ) col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8194
SELECT DISTINCT - + COUNT ( + + col1 ) col2 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8195
SELECT ALL - 23 + 34 + - CAST( - col1 AS SIGNED ) AS col0 FROM tab1
----
16
25
58

skipif mysql # not compatible
query I rowsort label-8195
SELECT ALL - 23 + 34 + - CAST ( - col1 AS INTEGER ) AS col0 FROM tab1
----
16
25
58

query I rowsort
SELECT ALL 2 + + col2 AS col0 FROM tab1
----
61
70
98

onlyif mysql # DIV for integer division: 
query I rowsort label-8197
SELECT col1 + + 17 DIV 88 col2 FROM tab0
----
1
21
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8197
SELECT col1 + + 17 / 88 col2 FROM tab0
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8198
SELECT DISTINCT - SUM( DISTINCT + col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8198
SELECT DISTINCT - SUM ( DISTINCT + col0 ) AS col0 FROM tab1
----
-227

onlyif mysql # aggregate syntax: 
query I rowsort label-8199
SELECT ALL - COUNT( + 56 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8199
SELECT ALL - COUNT ( + 56 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8200
SELECT + COUNT( * ) + - 26 col0 FROM tab1 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8200
SELECT + COUNT ( * ) + - 26 col0 FROM tab1 AS cor0
----
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-8201
SELECT + ( - SUM( - 80 ) ) FROM tab0 AS cor0
----
240

skipif mysql # not compatible
query I rowsort label-8201
SELECT + ( - SUM ( - 80 ) ) FROM tab0 AS cor0
----
240

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - 71
----

query I rowsort
SELECT - + col2 * 78 AS col1 FROM tab0 AS cor0
----
-3666
-7722
-780

query I rowsort
SELECT - 15 * + 89 FROM tab1 AS cor0
----
-1335
-1335
-1335

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 59, + 93 * + col2 / col2 * + col0, + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8206
SELECT ALL 34 + - + COUNT( * ) * - 76 FROM tab2
----
262

skipif mysql # not compatible
query I rowsort label-8206
SELECT ALL 34 + - + COUNT ( * ) * - 76 FROM tab2
----
262

onlyif mysql # DIV for integer division: 
query I rowsort label-8207
SELECT + col1 DIV + 88 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8207
SELECT + col1 / + 88 AS col1 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8208
SELECT + MIN( + col0 ) col2 FROM tab1
----
51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8208
SELECT + MIN ( + col0 ) col2 FROM tab1
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - 15 col2 FROM tab2
----
25
43
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 69 + + - col1 - + col1 col1 FROM tab1
----
-25
41
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8211
SELECT ALL - 4 * CAST( NULL AS SIGNED ) * col0 - col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8211
SELECT ALL - 4 * CAST ( NULL AS INTEGER ) * col0 - col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 63 * col1 FROM tab0 cor0
----
-1323
-5103
-63

query II rowsort
SELECT col2 + + - col0, col2 FROM tab2 AS cor0
----
-17
58
-23
23
-24
40

query I rowsort
SELECT DISTINCT + col0 + + + col1 + + col1 - - - col1 * col0 FROM tab0
----
-1038
-1698
2

onlyif mysql # DIV for integer division: 
query I rowsort label-8215
SELECT 2 DIV + + 21 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8215
SELECT 2 / + + 21 AS col2 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8216
SELECT DISTINCT + 95 + + COUNT( * ) * + - 79 * + 90 col2 FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
95

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8216
SELECT DISTINCT + 95 + + COUNT ( * ) * + - 79 * + 90 col2 FROM tab0 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----
95

onlyif mysql # aggregate syntax: 
query I rowsort label-8217
SELECT ALL + SUM( ALL col2 ) AS col2 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-8217
SELECT ALL + SUM ( ALL col2 ) AS col2 FROM tab1
----
223

query I rowsort
SELECT DISTINCT - col2 * - + 94 FROM tab2 AS cor0
----
2162
3760
5452

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + ( + col1 ) * - col2 col1 FROM tab0 cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-8220
SELECT ALL + COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8220
SELECT ALL + COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0 AS cor0
----
-9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < 21
----

query I rowsort
SELECT 69 * + 66 AS col1 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8223
SELECT - SUM( DISTINCT + - col2 ) col2 FROM tab0 cor0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8223
SELECT - SUM ( DISTINCT + - col2 ) col2 FROM tab0 cor0
----
156

query I rowsort
SELECT ALL + + col1 FROM tab1 AS cor0 WHERE - 63 + col2 IS NOT NULL
----
14
47
5

query I rowsort
SELECT DISTINCT 47 * - + col0 + - 70 AS col2 FROM tab0 cor0
----
-4159
-4629
-775

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 81 col0 FROM tab1
----
81
81
81

query II rowsort
SELECT DISTINCT - col2, - col2 * - col0 * + col0 AS col0 FROM tab1
----
-59
426275
-68
563108
-96
249696

query I rowsort
SELECT DISTINCT col0 * - 61 FROM tab0
----
-5307
-5917
-915

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 74 <= col2 * 5 - ( - - col0 ) * + + ( + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col1, 24 FROM tab2
----
-51
24
-67
24
-77
24

onlyif mysql # aggregate syntax: 
query II rowsort label-8231
SELECT ALL - COUNT( * ), + ( - - COUNT( * ) ) AS col0 FROM tab1
----
-3
3

skipif mysql # not compatible
query II rowsort label-8231
SELECT ALL - COUNT ( * ), + ( - - COUNT ( * ) ) AS col0 FROM tab1
----
-3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8232
SELECT DISTINCT - 94 + + COUNT( - 90 ) + + 55 FROM tab2
----
-36

skipif mysql # not compatible
query I rowsort label-8232
SELECT DISTINCT - 94 + + COUNT ( - 90 ) + + 55 FROM tab2
----
-36

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8233
SELECT ALL + COUNT( * ) + 26 - - CAST( - 9 AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
26

skipif mysql # not compatible
query I rowsort label-8233
SELECT ALL + COUNT ( * ) + 26 - - CAST ( - 9 AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab1 cor1
----
26

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8234
SELECT + - COUNT( * ) + - CAST( NULL AS SIGNED ), + ( COUNT( * ) ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-8234
SELECT + - COUNT ( * ) + - CAST ( NULL AS INTEGER ), + ( COUNT ( * ) ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT ALL col2 * + + 12 FROM tab1 cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + - col0 + col2 - - 45 + - 4 * + col1 + ( - col1 ) col0, - 71 FROM tab1 AS cor0
----
-213
-71
-6
-71
20
-71

query I rowsort
SELECT ALL - 44 * + ( - col0 ) FROM tab0 AS cor0
----
3828
4268
660

query I rowsort
SELECT - + col2 + - - col0 AS col2 FROM tab0 cor0
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-8239
SELECT 40 * + + 89 * SUM( DISTINCT + 13 ) + SUM( DISTINCT - + 38 ) * + COUNT( - 7 ) AS col2 FROM tab1 AS cor0
----
46166

skipif mysql # not compatible
query I rowsort label-8239
SELECT 40 * + + 89 * SUM ( DISTINCT + 13 ) + SUM ( DISTINCT - + 38 ) * + COUNT ( - 7 ) AS col2 FROM tab1 AS cor0
----
46166

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8240
SELECT * FROM tab1 cor0 WHERE CAST( NULL AS SIGNED ) - + 46 + + col2 + - 30 BETWEEN NULL AND - col1
----

skipif mysql # not compatible
query III rowsort label-8240
SELECT * FROM tab1 cor0 WHERE CAST ( NULL AS INTEGER ) - + 46 + + col2 + - 30 BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8241
SELECT + + COUNT( * ) + - 97 FROM tab1 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-8241
SELECT + + COUNT ( * ) + - 97 FROM tab1 AS cor0
----
-94

query I rowsort
SELECT col2 * + ( col2 ) + 94 FROM tab1 AS cor0
----
3575
4718
9310

query I rowsort
SELECT + + 82 * 73 * + col1 + col2 AS col0 FROM tab0 AS cor0
----
125716
484913
6085

onlyif mysql # DIV for integer division: 
query I rowsort label-8244
SELECT + 65 DIV col0 + - - 95 FROM tab1
----
95
95
96

skipif mysql # not compatible
query I rowsort label-8244
SELECT + 65 / col0 + - - 95 FROM tab1
----
95
95
96

query I rowsort
SELECT ALL - col2 AS col1 FROM tab0 WHERE NOT col2 * 15 * col0 <> - col2 + col0 + col1
----

query III rowsort
SELECT * FROM tab0 WHERE ( - col1 * col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8247
SELECT ALL - col2 * col2 - 30 + 81 + + + col0 FROM tab1 WHERE NULL < NULL OR NULL NOT BETWEEN ( NULL ) AND - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-8247
SELECT ALL - col2 * col2 - 30 + 81 + + + col0 FROM tab1 WHERE NULL < NULL OR NULL NOT BETWEEN ( NULL ) AND - - CAST ( NULL AS INTEGER )
----

query II rowsort
SELECT col1 AS col0, + 40 + 83 AS col0 FROM tab1 AS cor0
----
14
123
47
123
5
123

query I rowsort
SELECT DISTINCT - - ( - 80 ) + + - col1 * + 57 AS col2 FROM tab2 AS cor0
----
-2987
-3899
-4469

query I rowsort
SELECT + + col2 - col2 * + col2 FROM tab2 AS cor0
----
-1560
-3306
-506

query III rowsort
SELECT * FROM tab1 WHERE NOT - + 65 + + + 74 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + - 39 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 70 * + col0, 17 col1 FROM tab0
----
1050
17
6090
17
6790
17

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8254
SELECT + col1 * - - 63 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8254
SELECT + col1 * - - 63 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 79 AS col1 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8256
SELECT ALL - + 41 * 66 DIV - COUNT( * ) AS col1 FROM tab2 AS cor0
----
902

skipif mysql # not compatible
query I rowsort label-8256
SELECT ALL - + 41 * 66 / - COUNT ( * ) AS col1 FROM tab2 AS cor0
----
902

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8257
SELECT DISTINCT + - SUM( ALL + CAST( NULL AS DECIMAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8257
SELECT DISTINCT + - SUM ( ALL + CAST ( NULL AS REAL ) ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 24 ) >= + col2
----
15
81
47
97
1
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col1 + + 31 + - - col0 col1 FROM tab1
----
121
169
96

query III rowsort
SELECT * FROM tab0 WHERE NOT NULL NOT IN ( + 67, 29 * + + col0 / + + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8261
SELECT ALL - CAST( NULL AS SIGNED ) * ( - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8261
SELECT ALL - CAST ( NULL AS INTEGER ) * ( - col2 ) AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8262
SELECT DISTINCT 22 * - MAX( + col1 ) FROM tab0
----
-1782

skipif mysql # not compatible
query I rowsort label-8262
SELECT DISTINCT 22 * - MAX ( + col1 ) FROM tab0
----
-1782

onlyif mysql # aggregate syntax: 
query I rowsort label-8263
SELECT + + COUNT( * ) FROM tab1 AS cor0 WHERE NOT col1 / 80 - + col0 + - 26 * + col1 * - col2 * col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8263
SELECT + + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT col1 / 80 - + col0 + - 26 * + col1 * - col2 * col0 IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( col0 ) col1 FROM tab0 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - col2 FROM tab2 AS cor0 WHERE ( NULL < NULL )
----

query I rowsort
SELECT col1 + + - col2 * + - col1 * + col2 * - col2 AS col2 FROM tab2
----
-13072437
-4927923
-620466

query I rowsort
SELECT ALL + 57 + - + ( + col0 ) FROM tab2
----
-18
-7
11

onlyif mysql # aggregate syntax: 
query I rowsort label-8268
SELECT COUNT( - 91 ) + + - 55 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-55

skipif mysql # not compatible
query I rowsort label-8268
SELECT COUNT ( - 91 ) + + - 55 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
-55

query I rowsort
SELECT ALL - col2 + 17 AS col2 FROM tab1 AS cor0 WHERE NOT + ( 3 ) + + - col2 IN ( col1 * - col1 / 37 + + col2 )
----
-42
-51
-79

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 82 - col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + 72 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8272
SELECT ALL - SUM( ALL - - 41 ) FROM tab0 cor0
----
-123

skipif mysql # not compatible
query I rowsort label-8272
SELECT ALL - SUM ( ALL - - 41 ) FROM tab0 cor0
----
-123

query I rowsort
SELECT col2 - - col0 * + col1 AS col2 FROM tab1 AS cor0
----
4345
484
810

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8274
SELECT - CAST( + ( col1 ) AS SIGNED ) * + col0 - - - col2 * - - col0 AS col2 FROM tab1
----
-10465
-5440
-5610

skipif mysql # not compatible
query I rowsort label-8274
SELECT - CAST ( + ( col1 ) AS INTEGER ) * + col0 - - - col2 * - - col0 AS col2 FROM tab1
----
-10465
-5440
-5610

query I rowsort
SELECT + 14 - + 49 AS col1 FROM tab0
----
-35
-35
-35

query I rowsort
SELECT col1 - 33 FROM tab2
----
18
34
44

query III rowsort
SELECT * FROM tab1 WHERE - col1 / + + col0 = NULL
----

query II rowsort
SELECT - 8 + + col1, 86 AS col2 FROM tab1
----
-3
86
39
86
6
86

query I rowsort
SELECT col0 + 60 + + col1 * - col0 FROM tab1
----
-280
-4126
-603

query I rowsort
SELECT ALL col2 + col0 + + + col2 FROM tab2
----
144
191
92

onlyif mysql # aggregate syntax: 
query I rowsort label-8281
SELECT DISTINCT COUNT( - col0 ) * - COUNT( * ) - 42 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-8281
SELECT DISTINCT COUNT ( - col0 ) * - COUNT ( * ) - 42 FROM tab1
----
-51

query I rowsort
SELECT + ( - - col2 ) * col1 FROM tab0 WHERE 81 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col2 FROM tab2 AS cor0 WHERE - col0 IS NOT NULL
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 79 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col2 / + 12 NOT BETWEEN + col2 AND + col1 + - 19
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) < + col0 + - col1
----

query II rowsort
SELECT col0 AS col2, + col2 AS col1 FROM tab0 AS cor0
----
15
47
87
10
97
99

query II rowsort
SELECT - 22, + col1 + - + col0 AS col1 FROM tab1 AS cor0
----
-22
-37
-22
-44
-22
-80

onlyif mysql # aggregate syntax: 
query I rowsort label-8289
SELECT - MAX( ALL - + col0 ) AS col2 FROM tab2 cor0 WHERE NOT ( NOT NULL = NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-8289
SELECT - MAX ( ALL - + col0 ) AS col2 FROM tab2 cor0 WHERE NOT ( NOT NULL = NULL )
----
NULL

query I rowsort
SELECT + - 44 AS col0 FROM tab1 cor0
----
-44
-44
-44

query II rowsort
SELECT ALL - col1, 95 * - - 77 AS col1 FROM tab0 AS cor0
----
-1
7315
-21
7315
-81
7315

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8292
SELECT ALL 85, + 1 DIV COUNT( * ) col0 FROM tab0 AS cor0
----
85
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8292
SELECT ALL 85, + 1 / COUNT ( * ) col0 FROM tab0 AS cor0
----
85
0

query II rowsort
SELECT col1 AS col0, col1 FROM tab2 cor0
----
51
51
67
67
77
77

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8294
SELECT ALL - CAST( 58 AS SIGNED ), col0 * + col0 AS col1 FROM tab1 AS cor0
----
-58
2601
-58
7225
-58
8281

skipif mysql # not compatible
query II rowsort label-8294
SELECT ALL - CAST ( 58 AS INTEGER ), col0 * + col0 AS col1 FROM tab1 AS cor0
----
-58
2601
-58
7225
-58
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8295
SELECT + ( ( - COUNT( * ) ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8295
SELECT + ( ( - COUNT ( * ) ) ) FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-8296
SELECT + - 26 * + ( - COUNT( * ) ) col2 FROM tab2 AS cor0
----
78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8296
SELECT + - 26 * + ( - COUNT ( * ) ) col2 FROM tab2 AS cor0
----
78

onlyif mysql # aggregate syntax: 
query II rowsort label-8297
SELECT ALL - COUNT( * ) AS col0, 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9
85

skipif mysql # not compatible
query II rowsort label-8297
SELECT ALL - COUNT ( * ) AS col0, 85 AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
-9
85

onlyif mysql # aggregate syntax: 
query I rowsort label-8298
SELECT DISTINCT - COUNT( * ) + + - 52 - + COUNT( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-70

skipif mysql # not compatible
query I rowsort label-8298
SELECT DISTINCT - COUNT ( * ) + + - 52 - + COUNT ( * ) FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-70

onlyif mysql # DIV for integer division: 
query I rowsort label-8299
SELECT + col0 DIV - col2 + 46 + + - ( - + 84 ) + + 17 AS col1 FROM tab2 AS cor0
----
145
146
146

skipif mysql # not compatible
query I rowsort label-8299
SELECT + col0 / - col2 + 46 + + - ( - + 84 ) + + 17 AS col1 FROM tab2 AS cor0
----
145
146
146

query I rowsort
SELECT - + 54 * - + col0 + col1 AS col1 FROM tab2 cor0
----
2535
3533
4117

query I rowsort
SELECT 24 + + col0 + + + col1 FROM tab2 AS cor0
----
121
165
166

onlyif mysql # DIV for integer division: 
query I rowsort label-8302
SELECT + + 3 * + col2 + - col1 + - col2 + + col2 DIV + col2 col1 FROM tab0 AS cor0
----
0
14
198

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8302
SELECT + + 3 * + col2 + - col1 + - col2 + + col2 / + col2 col1 FROM tab0 AS cor0
----
0
14
198

query I rowsort
SELECT ALL + col0 * - 3 AS col2 FROM tab2 AS cor0
----
-138
-192
-225

onlyif mysql # DIV for integer division: 
query I rowsort label-8304
SELECT col2 * + col1 - - col0 DIV - - col2 FROM tab0 AS cor0
----
218
3807
99

skipif mysql # not compatible
query I rowsort label-8304
SELECT col2 * + col1 - - col0 / - - col2 FROM tab0 AS cor0
----
218
3807
99

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - 75 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col1 AS col0, 44 FROM tab0 AS cor0
----
-1
44
-21
44
-81
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8307
SELECT ALL - 61 + - + CAST( NULL AS SIGNED ) * + col2 * - 35 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8307
SELECT ALL - 61 + - + CAST ( NULL AS INTEGER ) * + col2 * - 35 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8308
SELECT + col1 * + - col0 DIV - - CAST( + - col0 AS SIGNED ) col0 FROM tab1
----
14
47
5

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8308
SELECT + col1 * + - col0 / - - CAST ( + - col0 AS INTEGER ) col0 FROM tab1
----
14
47
5

query II rowsort
SELECT ALL col2, col0 AS col0 FROM tab0
----
10
87
47
15
99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8310
SELECT DISTINCT COUNT( - + col0 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8310
SELECT DISTINCT COUNT ( - + col0 ) FROM tab2 AS cor0
----
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 <> + + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8312
SELECT + CAST( 80 AS SIGNED ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

skipif mysql # not compatible
query I rowsort label-8312
SELECT + CAST ( 80 AS INTEGER ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 878f012d707aab113cedaf56e6c52e94

query I rowsort
SELECT ALL - + 72 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 + + col0 <> - - col0 * col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8315
SELECT DISTINCT + COUNT( - + 17 ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8315
SELECT DISTINCT + COUNT ( - + 17 ) AS col2 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8316
SELECT * FROM tab0 AS cor0 WHERE NOT CAST( - + col0 AS SIGNED ) > NULL
----

skipif mysql # not compatible
query III rowsort label-8316
SELECT * FROM tab0 AS cor0 WHERE NOT CAST ( - + col0 AS INTEGER ) > NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8317
SELECT ALL + col1 AS col0, CAST( NULL AS DECIMAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

skipif mysql # not compatible
query II rowsort label-8317
SELECT ALL + col1 AS col0, CAST ( NULL AS REAL ) FROM tab2
----
51
NULL
67
NULL
77
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8318
SELECT DISTINCT + COUNT( * ) + ( COUNT( * ) ) col1 FROM tab0
----
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8318
SELECT DISTINCT + COUNT ( * ) + ( COUNT ( * ) ) col1 FROM tab0
----
6

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8319
SELECT ALL ( COUNT( DISTINCT + col2 ) ) * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8319
SELECT ALL ( COUNT ( DISTINCT + col2 ) ) * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT - 40 AS col2 FROM tab2 WHERE col1 + col1 IS NOT NULL
----
-40

query I rowsort
SELECT DISTINCT - 11 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT + + 39 AS col0 FROM tab0 WHERE ( + col1 ) IS NOT NULL
----
39
39
39

query I rowsort
SELECT col1 * + ( col0 ) * + - col1 AS col1 FROM tab1
----
-201019
-2125
-9996

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE NOT - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8325
SELECT ALL + COUNT( - ( - 81 ) ) + MIN( 34 ) * - 50 AS col1 FROM tab1 AS cor0
----
-1697

skipif mysql # not compatible
query I rowsort label-8325
SELECT ALL + COUNT ( - ( - 81 ) ) + MIN ( 34 ) * - 50 AS col1 FROM tab1 AS cor0
----
-1697

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8326
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 99 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8326
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 99 FROM tab1 cor0
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8327
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - 68 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8327
SELECT DISTINCT CAST ( NULL AS REAL ) * - 68 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + ( - - 33 ) - - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8329
SELECT ALL + + MIN( ALL + col2 ) * + - ( - - 90 ) + - + 55 AS col1 FROM tab1 cor0
----
-5365

skipif mysql # not compatible
query I rowsort label-8329
SELECT ALL + + MIN ( ALL + col2 ) * + - ( - - 90 ) + - + 55 AS col1 FROM tab1 cor0
----
-5365

query III rowsort
SELECT * FROM tab2 WHERE col2 * + col0 + col0 <> NULL
----

query I rowsort
SELECT col0 - - col1 * col1 FROM tab2
----
2647
4564
5993

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8332
SELECT + 1 + - CAST( NULL AS DECIMAL ) * - col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8332
SELECT + 1 + - CAST ( NULL AS REAL ) * - col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT col2 FROM tab2 WHERE ( col2 + col2 ) <= 51 + + 84
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8334
SELECT DISTINCT 19 * - COUNT( * ) AS col2 FROM tab1
----
-57

skipif mysql # not compatible
query I rowsort label-8334
SELECT DISTINCT 19 * - COUNT ( * ) AS col2 FROM tab1
----
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + - 58 col1 FROM tab1
----
-11
-44
-53

onlyif mysql # aggregate syntax: 
query I rowsort label-8336
SELECT 90 - - MAX( col1 - col1 ) AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8336
SELECT 90 - - MAX ( col1 - col1 ) AS col2 FROM tab1 WHERE NOT col1 NOT IN ( + col2 )
----
NULL

query I rowsort
SELECT col1 AS col0 FROM tab1 WHERE ( 75 ) < ( NULL )
----

query I rowsort
SELECT ALL 9 * col0 FROM tab0
----
135
783
873

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8339
SELECT ALL - COUNT( * ) DIV + 74 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8339
SELECT ALL - COUNT ( * ) / + 74 FROM tab1
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8340
SELECT + 98 + + CAST( MIN( + col0 ) AS SIGNED ) * 78 FROM tab2
----
3686

skipif mysql # not compatible
query I rowsort label-8340
SELECT + 98 + + CAST ( MIN ( + col0 ) AS INTEGER ) * 78 FROM tab2
----
3686

query III rowsort
SELECT * FROM tab2 WHERE NOT - 53 * col0 - + col2 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( col0 + col2 ) NOT BETWEEN + ( col2 ) * col1 AND col2 + col0
----
97
1
99

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 * - 28 + 36 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8344
SELECT ALL 49 DIV col0 FROM tab0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-8344
SELECT ALL 49 / col0 FROM tab0
----
0
0
3

query I rowsort
SELECT ALL + 17 + - 27 AS col0 FROM tab2 WHERE + 12 IS NULL
----

query I rowsort
SELECT ALL + 82 AS col0 FROM tab2 WHERE ( NULL ) IS NULL
----
82
82
82

query I rowsort
SELECT DISTINCT 74 - col0 * - col1 FROM tab2 WHERE NULL <> ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8348
SELECT 73 DIV col1 AS col2 FROM tab0
----
0
3
73

skipif mysql # not compatible
query I rowsort label-8348
SELECT 73 / col1 AS col2 FROM tab0
----
0
3
73

onlyif mysql # aggregate syntax: 
query I rowsort label-8349
SELECT ALL COUNT( * ) + - 35 FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-8349
SELECT ALL COUNT ( * ) + - 35 FROM tab0
----
-32

query III rowsort
SELECT * FROM tab2 WHERE NOT 85 + ( 33 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8351
SELECT - col1 * - col0 - col1 DIV - col0 AS col0 FROM tab1
----
425
4277
714

skipif mysql # not compatible
query I rowsort label-8351
SELECT - col1 * - col0 - col1 / - col0 AS col0 FROM tab1
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-8352
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 WHERE NOT + 86 IN ( col1 )
----
-3

skipif mysql # not compatible
query I rowsort label-8352
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 WHERE NOT + 86 IN ( col1 )
----
-3

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL <> col0 - + col0 * col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8354
SELECT col2 AS col2 FROM tab1 WHERE ( + col1 ) >= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query I rowsort label-8354
SELECT col2 AS col2 FROM tab1 WHERE ( + col1 ) >= CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col2 FROM tab1 WHERE NOT + 42 + - col2 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8356
SELECT DISTINCT + MAX( col0 ) * 64 AS col2 FROM tab2 AS cor0
----
4800

skipif mysql # not compatible
query I rowsort label-8356
SELECT DISTINCT + MAX ( col0 ) * 64 AS col2 FROM tab2 AS cor0
----
4800

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8357
SELECT ALL - COUNT( - col1 ) * AVG ( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8357
SELECT ALL - COUNT ( - col1 ) * AVG ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL 36 * + 90 AS col0 FROM tab1 AS cor0
----
3240
3240
3240

query I rowsort
SELECT col1 + + col2 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
110
115
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8360
SELECT ALL ( col0 ) / 55 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( CAST( NULL AS SIGNED ) - col2 )
----

skipif mysql # not compatible
query I rowsort label-8360
SELECT ALL ( col0 ) / 55 AS col2 FROM tab2 WHERE ( NULL ) NOT IN ( CAST ( NULL AS INTEGER ) - col2 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col2 + + col2 = col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT ( NULL ) <= + col0
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT ( - col2 + 34 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ( 79 ) AS col1 FROM tab2 AS cor0
----
79
79
79

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 < 79
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-8366
SELECT + - col1 DIV - 19 FROM tab2 AS cor0
----
2
3
4

skipif mysql # not compatible
query I rowsort label-8366
SELECT + - col1 / - 19 FROM tab2 AS cor0
----
2
3
4

onlyif mysql # aggregate syntax: 
query I rowsort label-8367
SELECT DISTINCT + - ( - SUM( 81 ) ) AS col1 FROM tab2 AS cor0
----
243

skipif mysql # not compatible
query I rowsort label-8367
SELECT DISTINCT + - ( - SUM ( 81 ) ) AS col1 FROM tab2 AS cor0
----
243

query I rowsort
SELECT - col1 + - col1 * col2 AS col1 FROM tab2 AS cor0
----
-1224
-3157
-3953

onlyif mysql # aggregate syntax: 
query I rowsort label-8369
SELECT DISTINCT - MAX( + col0 ) * - 3 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8369
SELECT DISTINCT - MAX ( + col0 ) * - 3 AS col1 FROM tab1 AS cor0 WHERE NULL > NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8370
SELECT 81 * - CAST( NULL AS SIGNED ) + - 32 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8370
SELECT 81 * - CAST ( NULL AS INTEGER ) + - 32 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= - 83 - 99
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8372
SELECT ALL 6 + - col0 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8372
SELECT ALL 6 + - col0 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col2 - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8374
SELECT DISTINCT 26 + + ( + COUNT( * ) ) FROM tab0
----
29

skipif mysql # not compatible
query I rowsort label-8374
SELECT DISTINCT 26 + + ( + COUNT ( * ) ) FROM tab0
----
29

query III rowsort
SELECT ALL * FROM tab1 WHERE col1 * 56 < - 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8376
SELECT DISTINCT 93 + + - 73 - + COUNT( * ) FROM tab0
----
17

skipif mysql # not compatible
query I rowsort label-8376
SELECT DISTINCT 93 + + - 73 - + COUNT ( * ) FROM tab0
----
17

query I rowsort
SELECT ALL 87 AS col2 FROM tab2 WHERE ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8378
SELECT ALL CAST( NULL AS DECIMAL ) * + SUM( ALL col2 ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8378
SELECT ALL CAST ( NULL AS REAL ) * + SUM ( ALL col2 ) AS col2 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 * - col1 + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8380
SELECT * FROM tab0 AS cor0 WHERE + ( - ( CAST( col1 AS SIGNED ) ) ) + col1 NOT BETWEEN NULL AND ( + CAST( col1 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8380
SELECT * FROM tab0 AS cor0 WHERE + ( - ( CAST ( col1 AS INTEGER ) ) ) + col1 NOT BETWEEN NULL AND ( + CAST ( col1 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 - - col2 AS col0 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ALL + 71 + - ( col0 ) FROM tab0 AS cor0
----
-16
-26
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8383
SELECT col2 + - col2 + + col1 / CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8383
SELECT col2 + - col2 + + col1 / CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + ( col0 ) * - + col1 FROM tab0 AS cor0
----
-1215
-1827
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-8385
SELECT + MIN( DISTINCT - + 54 ) FROM tab0 AS cor0
----
-54

skipif mysql # not compatible
query I rowsort label-8385
SELECT + MIN ( DISTINCT - + 54 ) FROM tab0 AS cor0
----
-54

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + 90 / + 86 * ( 11 ) ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8387
SELECT DISTINCT CAST( NULL AS SIGNED ) * - MIN( + - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8387
SELECT DISTINCT CAST ( NULL AS INTEGER ) * - MIN ( + - col1 ) AS col2 FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT - col0 AS col1, + col1 * + - col1 + ( + ( col1 ) - 83 ) FROM tab1 AS cor0
----
-51
-265
-85
-103
-91
-2245

onlyif mysql # aggregate syntax: 
query I rowsort label-8389
SELECT - MAX( 55 ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-8389
SELECT - MAX ( 55 ) FROM tab2 AS cor0
----
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8390
SELECT COUNT( * ) * 27 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
81

skipif mysql # not compatible
query I rowsort label-8390
SELECT COUNT ( * ) * 27 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8391
SELECT - COUNT( col0 ) col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8391
SELECT - COUNT ( col0 ) col1 FROM tab2 WHERE NOT + col2 IS NULL
----
-3

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT IN ( - - 38 )
----

query I rowsort
SELECT ALL 97 * + col2 FROM tab2
----
2231
3880
5626

query I rowsort
SELECT - 21 AS col0 FROM tab0 AS cor0 WHERE NOT 79 - - col0 <= col2
----
-21
-21
-21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8395
SELECT ALL + - ( - col2 ) * CAST( NULL AS DECIMAL ) 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-8395
SELECT ALL + - ( - col2 ) * CAST ( NULL AS REAL ) col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col1 NOT BETWEEN + 64 * - + col0 / - col1 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 28 * col0 + + 1 * 33 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL BETWEEN + 80 AND NULL
----

query I rowsort
SELECT + col0 * col2 + + col1 - + col2 FROM tab1
----
4814
4961
6167

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 + + col0 <= + 90
----
64
77
40
75
67
58

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( - - ( - col0 ) ) IN ( + + ( + 77 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8402
SELECT DISTINCT + 3 DIV + col2 AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8402
SELECT DISTINCT + 3 / + col2 AS col1 FROM tab0 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8403
SELECT SUM( - + 92 ) FROM tab0 AS cor0
----
-276

skipif mysql # not compatible
query I rowsort label-8403
SELECT SUM ( - + 92 ) FROM tab0 AS cor0
----
-276

query I rowsort
SELECT DISTINCT - 10 * - + 11 + col2 AS col0 FROM tab0
----
120
157
209

onlyif mysql # aggregate syntax: 
query I rowsort label-8405
SELECT DISTINCT + COUNT( + col1 ) FROM tab2 WHERE + col1 * + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-8405
SELECT DISTINCT + COUNT ( + col1 ) FROM tab2 WHERE + col1 * + + col1 IS NOT NULL
----
3

query II rowsort
SELECT col2, 59 FROM tab2
----
23
59
40
59
58
59

onlyif mysql # aggregate syntax: 
query I rowsort label-8407
SELECT DISTINCT - COUNT( + col2 ) + - - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-8407
SELECT DISTINCT - COUNT ( + col2 ) + - - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT 36 * + + 57 + col0 AS col2 FROM tab2
----
2098
2116
2127

query I rowsort
SELECT ALL col0 + + col1 * + col0 AS col1 FROM tab2
----
2392
4992
5100

query I rowsort
SELECT DISTINCT 37 + - + col1 AS col0 FROM tab1
----
-10
23
32

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8411
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NULL IN ( - col0 / - + col2 - - CAST( NULL AS SIGNED ) * - col2 * - 8 * col2 + - col2 * col0 )
----
0

skipif mysql # not compatible
query I rowsort label-8411
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL IN ( - col0 / - + col2 - - CAST ( NULL AS INTEGER ) * - col2 * - 8 * col2 + - col2 * col0 )
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-8412
SELECT DISTINCT COUNT( * ) - 12, 72 + + 2 + ( - - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) AS col1 FROM tab1 AS cor0
----
-9
NULL

skipif mysql # not compatible
query II rowsort label-8412
SELECT DISTINCT COUNT ( * ) - 12, 72 + + 2 + ( - - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) AS col1 FROM tab1 AS cor0
----
-9
NULL

query I rowsort
SELECT + + col2 AS col1 FROM tab0 AS cor0 WHERE - 50 + + 36 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8414
SELECT * FROM tab0 WHERE 5 NOT BETWEEN - CAST( - col1 AS SIGNED ) * - + 3 AND NULL
----

skipif mysql # not compatible
query III rowsort label-8414
SELECT * FROM tab0 WHERE 5 NOT BETWEEN - CAST ( - col1 AS INTEGER ) * - + 3 AND NULL
----

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND 85
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IN ( - 15 )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 81 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-8418
SELECT ALL + MIN( DISTINCT ( + 98 ) ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-8418
SELECT ALL + MIN ( DISTINCT ( + 98 ) ) FROM tab2 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8419
SELECT DISTINCT SUM( - 73 ) AS col2 FROM tab0 AS cor0
----
-219

skipif mysql # not compatible
query I rowsort label-8419
SELECT DISTINCT SUM ( - 73 ) AS col2 FROM tab0 AS cor0
----
-219

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8420
SELECT 82 * - ( - col0 ), - CAST( col1 AS SIGNED ) AS col2 FROM tab2
----
3772
-51
5248
-77
6150
-67

skipif mysql # not compatible
query II rowsort label-8420
SELECT 82 * - ( - col0 ), - CAST ( col1 AS INTEGER ) AS col2 FROM tab2
----
3772
-51
5248
-77
6150
-67

query I rowsort
SELECT col0 * + 70 FROM tab0
----
1050
6090
6790

query III rowsort
SELECT * FROM tab0 WHERE NOT + 99 * + 15 <= + + 82
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col1 * + 2 + 91 <> + + col2
----

query I rowsort
SELECT ALL - + ( - + col2 ) * + ( - + col1 ) FROM tab2 AS cor0
----
-1173
-3080
-3886

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 IS NOT NULL AND NULL BETWEEN NULL AND ( + + 64 )
----

query II rowsort
SELECT + + col1 AS col0, + 82 AS col2 FROM tab0 AS cor0
----
1
82
21
82
81
82

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 5 - - - 10 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8428
SELECT DISTINCT 28 + CAST( + 88 AS SIGNED ) FROM tab0
----
116

skipif mysql # not compatible
query I rowsort label-8428
SELECT DISTINCT 28 + CAST ( + 88 AS INTEGER ) FROM tab0
----
116

query I rowsort
SELECT col0 * - 10 AS col0 FROM tab2 WHERE + - 60 NOT BETWEEN + col1 AND NULL
----
-460
-640
-750

query I rowsort
SELECT + + 54 * + 43 AS col2 FROM tab2 AS cor0
----
2322
2322
2322

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8431
SELECT ALL - + col1 col2 FROM tab0 AS cor0 WHERE NOT col1 + + + col2 BETWEEN + - col0 AND CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8431
SELECT ALL - + col1 col2 FROM tab0 AS cor0 WHERE NOT col1 + + + col2 BETWEEN + - col0 AND CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8432
SELECT DISTINCT + AVG ( DISTINCT + - 33 ) + - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8432
SELECT DISTINCT + AVG ( DISTINCT + - 33 ) + - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT 49 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8434
SELECT ALL col1 DIV - 45 AS col0 FROM tab0 cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8434
SELECT ALL col1 / - 45 AS col0 FROM tab0 cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8435
SELECT ALL + ( - CAST( NULL AS SIGNED ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8435
SELECT ALL + ( - CAST ( NULL AS INTEGER ) ) col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col1 * - + col2 + col0 * - col2 + - + 66 * + col0 + 16 AS col1 FROM tab1 AS cor0
----
-10314
-6902
-8982

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8437
SELECT CAST( NULL AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( NOT col0 * 92 IN ( - + col1 + + 26, - col1 ) ) OR col0 + 17 IS NULL
----

skipif mysql # not compatible
query I rowsort label-8437
SELECT CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( NOT col0 * 92 IN ( - + col1 + + 26, - col1 ) ) OR col0 + 17 IS NULL
----

query I rowsort
SELECT + col1 + 20 FROM tab1 cor0
----
25
34
67

query I rowsort
SELECT DISTINCT 90 - + col2 + - 44 / - 29 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) IN ( + col1 * + + col0 / - col1 * - col0 )
----

query II rowsort
SELECT ALL 85 + 83 AS col1, col2 FROM tab2 AS cor0
----
168
23
168
40
168
58

query I rowsort
SELECT ALL - - col2 + + - col0 FROM tab2 WHERE NOT + col1 IS NULL
----
-17
-23
-24

query I rowsort
SELECT ALL - ( - - col0 ) + + col0 * - ( - - col0 ) * - col2 * - - ( + 87 ) FROM tab2
----
14254016
28383675
4234070

query III rowsort
SELECT ALL * FROM tab2 WHERE + col1 NOT IN ( - 22, - col2 / - ( + + col0 ), - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 col1 FROM tab1 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8445
SELECT DISTINCT + COUNT( - + 28 ) * - COUNT( * ) * COUNT( * ) FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-8445
SELECT DISTINCT + COUNT ( - + 28 ) * - COUNT ( * ) * COUNT ( * ) FROM tab2
----
-27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8446
SELECT ALL 34 * + - col1 * - col2 + + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8446
SELECT ALL 34 * + - col1 * - col2 + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8447
SELECT + 98 * + + MIN( DISTINCT + + col0 ) FROM tab2 WHERE col1 IN ( + - col2 )
----
NULL

skipif mysql # not compatible
query I rowsort label-8447
SELECT + 98 * + + MIN ( DISTINCT + + col0 ) FROM tab2 WHERE col1 IN ( + - col2 )
----
NULL

query I rowsort
SELECT ALL + col1 + + - 16 FROM tab0
----
-15
5
65

onlyif mysql # aggregate syntax: 
query I rowsort label-8449
SELECT COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + 37 )
----
0

skipif mysql # not compatible
query I rowsort label-8449
SELECT COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE NULL IN ( + 37 )
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE 22 - - + 2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8451
SELECT ALL - ( + MIN( ALL col2 ) ) FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-8451
SELECT ALL - ( + MIN ( ALL col2 ) ) FROM tab2
----
-23

query III rowsort
SELECT * FROM tab2 WHERE NOT - 95 + - - col1 <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + + col1 NOT IN ( + col0 )
----

query II rowsort
SELECT + col0, col1 AS col1 FROM tab0 AS cor0
----
15
81
87
21
97
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8455
SELECT + + 41 col1, CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
41
NULL
41
NULL
41
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8455
SELECT + + 41 col1, CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
41
NULL
41
NULL
41
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE col1 * col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT - + col1 AS col0, 43 FROM tab0 AS cor0
----
-1
43
-21
43
-81
43

onlyif mysql # aggregate syntax: 
query I rowsort label-8458
SELECT - MAX( + 98 ) col1 FROM tab2 AS cor0
----
-98

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8458
SELECT - MAX ( + 98 ) col1 FROM tab2 AS cor0
----
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-8459
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2, tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-8459
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2, tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8460
SELECT DISTINCT SUM( ALL + - col0 ) AS col0 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-8460
SELECT DISTINCT SUM ( ALL + - col0 ) AS col0 FROM tab1
----
-227

query I rowsort
SELECT 92 * + col2 AS col0 FROM tab2
----
2116
3680
5336

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8462
SELECT DISTINCT - ( + CAST( NULL AS SIGNED ) ) * - MIN( + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8462
SELECT DISTINCT - ( + CAST ( NULL AS INTEGER ) ) * - MIN ( + col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8463
SELECT 42 * - - MAX( DISTINCT - col2 ) FROM tab1 cor0
----
-2478

skipif mysql # not compatible
query I rowsort label-8463
SELECT 42 * - - MAX ( DISTINCT - col2 ) FROM tab1 cor0
----
-2478

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8464
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 NOT IN ( - col0 * + + col2, col2 + col2 + + CAST( NULL AS SIGNED ) * + col1 * + - 98 * col1 + + 27 )
----

skipif mysql # not compatible
query III rowsort label-8464
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 29 NOT IN ( - col0 * + + col2, col2 + col2 + + CAST ( NULL AS INTEGER ) * + col1 * + - 98 * col1 + + 27 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8465
SELECT ALL + + col2 * + - col0 * + col0 + + CAST( NULL AS SIGNED ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8465
SELECT ALL + + col2 * + - col0 * + col0 + + CAST ( NULL AS INTEGER ) * col1 AS col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8466
SELECT + CAST( NULL AS SIGNED ) + - COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8466
SELECT + CAST ( NULL AS INTEGER ) + - COUNT ( * ) FROM tab0 cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL NOT BETWEEN ( NULL ) AND + col0 + - 30 + + - col0 / + col2 * + col2 + - col0
----

query I rowsort
SELECT DISTINCT - col2 + - - col2 AS col2 FROM tab1 cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8469
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + ( + - col0 ), + ( col2 ) FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-8469
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + ( + - col0 ), + ( col2 ) FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

onlyif mysql # aggregate syntax: 
query I rowsort label-8470
SELECT DISTINCT COUNT( * ) * COUNT( * ) + 21 AS col0 FROM tab2 AS cor0
----
30

skipif mysql # not compatible
query I rowsort label-8470
SELECT DISTINCT COUNT ( * ) * COUNT ( * ) + 21 AS col0 FROM tab2 AS cor0
----
30

onlyif mysql # aggregate syntax: 
query I rowsort label-8471
SELECT SUM( ALL col2 ) FROM tab0 WHERE + col0 + + col0 NOT IN ( + 92, 97 * 58, col1 )
----
156

skipif mysql # not compatible
query I rowsort label-8471
SELECT SUM ( ALL col2 ) FROM tab0 WHERE + col0 + + col0 NOT IN ( + 92, 97 * 58, col1 )
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-8472
SELECT + COUNT( * ) + - MAX( + - ( - col2 ) ) AS col1 FROM tab0 WHERE NULL < + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-8472
SELECT + COUNT ( * ) + - MAX ( + - ( - col2 ) ) AS col1 FROM tab0 WHERE NULL < + col0
----
NULL

query I rowsort
SELECT - col0 - - 30 * + col2 - - 80 + - col0 FROM tab1
----
1680
1938
2858

query I rowsort
SELECT 91 + + col1 AS col2 FROM tab0
----
112
172
92

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8475
SELECT DISTINCT * FROM tab1 WHERE NULL <= - + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8475
SELECT DISTINCT * FROM tab1 WHERE NULL <= - + CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8476
SELECT - col1 + col1 * + 11 * + col2 AS col2, col0 DIV + col0 + + - col0 AS col0 FROM tab2
----
12852
-45
33803
-63
42679
-74

skipif mysql # not compatible
query II rowsort label-8476
SELECT - col1 + col1 * + 11 * + col2 AS col2, col0 / + col0 + + - col0 AS col0 FROM tab2
----
12852
-45
33803
-63
42679
-74

query I rowsort
SELECT ALL + col2 - - col2 * col2 AS col1 FROM tab2 cor0
----
1640
3422
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8478
SELECT col2 - CAST( + col2 AS SIGNED ) - + col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8478
SELECT col2 - CAST ( + col2 AS INTEGER ) - + col2 col1 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8479
SELECT DISTINCT + ( + SUM( DISTINCT + - col2 ) ) col1 FROM tab1
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8479
SELECT DISTINCT + ( + SUM ( DISTINCT + - col2 ) ) col1 FROM tab1
----
-223

onlyif mysql # aggregate syntax: 
query I rowsort label-8480
SELECT ALL + ( - - COUNT( * ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8480
SELECT ALL + ( - - COUNT ( * ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - ( 19 ) AS col0 FROM tab2 cor0
----
-19

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 * - + 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT + col2 < + + col1
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8484
SELECT - col0, + CAST( NULL AS SIGNED ) * + 75 AS col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

skipif mysql # not compatible
query II rowsort label-8484
SELECT - col0, + CAST ( NULL AS INTEGER ) * + 75 AS col2 FROM tab1 cor0
----
-51
NULL
-85
NULL
-91
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8485
SELECT COUNT( DISTINCT + 95 ) FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-8485
SELECT COUNT ( DISTINCT + 95 ) FROM tab0 AS cor0
----
1

query I rowsort
SELECT + col1 * + 32 * + + 78 AS col1 FROM tab1
----
117312
12480
34944

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8487
SELECT CAST( - ( - - COUNT( * ) ) AS SIGNED ) FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8487
SELECT CAST ( - ( - - COUNT ( * ) ) AS INTEGER ) FROM tab2
----
-3

query II rowsort
SELECT DISTINCT + col0 AS col2, - col1 AS col1 FROM tab2
----
46
-51
64
-77
75
-67

onlyif mysql # aggregate syntax: 
query II rowsort label-8489
SELECT ALL - COUNT( * ) AS col2, 50 AS col0 FROM tab1
----
-3
50

skipif mysql # not compatible
query II rowsort label-8489
SELECT ALL - COUNT ( * ) AS col2, 50 AS col0 FROM tab1
----
-3
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8490
SELECT + col2 + - - col1 / CAST( + col2 AS SIGNED ) * CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8490
SELECT + col2 + - - col1 / CAST ( + col2 AS INTEGER ) * CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( col0 ) + ( - + col0 ) * - - col0 FROM tab1
----
-2550
-7140
-8190

query II rowsort
SELECT ALL col0, + 66 AS col2 FROM tab2
----
46
66
64
66
75
66

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8493
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + col1 BETWEEN + CAST( - - col1 AS DECIMAL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-8493
SELECT DISTINCT + col1 FROM tab2 WHERE NOT + col1 BETWEEN + CAST ( - - col1 AS REAL ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8494
SELECT DISTINCT + CAST( COUNT( * ) AS SIGNED ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8494
SELECT DISTINCT + CAST ( COUNT ( * ) AS INTEGER ) FROM tab2 cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8495
SELECT + COUNT( * ) * COUNT( DISTINCT col2 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8495
SELECT + COUNT ( * ) * COUNT ( DISTINCT col2 ) FROM tab2 AS cor0
----
9

query II rowsort
SELECT ALL + 67 AS col2, 29 - - 21 FROM tab2 AS cor0
----
67
50
67
50
67
50

onlyif mysql # aggregate syntax: 
query I rowsort label-8497
SELECT DISTINCT ( + - COUNT( * ) ) * + + 37 col1 FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8497
SELECT DISTINCT ( + - COUNT ( * ) ) * + + 37 col1 FROM tab1 AS cor0
----
-111

query I rowsort
SELECT + 4 * + 73 + + + col2 AS col1 FROM tab0 AS cor0
----
302
339
391

onlyif mysql # DIV for integer division: 
query I rowsort label-8499
SELECT DISTINCT - col1 + col0 - + ( - col1 ) DIV - col2 col1 FROM tab0 AS cor0
----
-67
64
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8499
SELECT DISTINCT - col1 + col0 - + ( - col1 ) / - col2 col1 FROM tab0 AS cor0
----
-67
64
96

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8500
SELECT ALL + - col1 * 7, CAST( NULL AS SIGNED ) + + 21 col1 FROM tab2 cor0
----
-357
NULL
-469
NULL
-539
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8500
SELECT ALL + - col1 * 7, CAST ( NULL AS INTEGER ) + + 21 col1 FROM tab2 cor0
----
-357
NULL
-469
NULL
-539
NULL

query I rowsort
SELECT col0 + + - col1 + - col2 * - col1 * + + col1 FROM tab2 AS cor0
----
237147
260370
59818

query I rowsort
SELECT DISTINCT ( + 3 ) + - col0 * + 35 FROM tab0 AS cor0
----
-3042
-3392
-522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8503
SELECT ALL CAST( + col0 AS SIGNED ) * - CAST( NULL AS SIGNED ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8503
SELECT ALL CAST ( + col0 AS INTEGER ) * - CAST ( NULL AS INTEGER ) * + col1 AS col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8504
SELECT + col1 + + - col2 * col2 DIV 41 AS col2 FROM tab2 AS cor0
----
-15
38
39

skipif mysql # not compatible
query I rowsort label-8504
SELECT + col1 + + - col2 * col2 / 41 AS col2 FROM tab2 AS cor0
----
-15
38
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8505
SELECT ALL + + CAST( + + col0 AS SIGNED ) FROM tab0 AS cor0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-8505
SELECT ALL + + CAST ( + + col0 AS INTEGER ) FROM tab0 AS cor0
----
15
87
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, + ( 10 ) col1 FROM tab2
----
46
10
64
10
75
10

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE col1 * col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + ( - + ( + col0 ) ) + + col2 - - - ( 10 ) AS col2 FROM tab0
----
-8
-87
22

query I rowsort
SELECT DISTINCT - col1 - + - ( + - 33 ) + + col1 FROM tab2
----
-33

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 61 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - col2 * 54 AS col0 FROM tab2 AS cor0
----
-1242
-2160
-3132

query I rowsort
SELECT 70 / - + col1 AS col2 FROM tab2 cor0 WHERE NOT col2 IS NOT NULL
----

query I rowsort
SELECT + 63 * - ( + col1 ) FROM tab2 cor0
----
-3213
-4221
-4851

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8514
SELECT DISTINCT MIN( - + CAST( NULL AS DECIMAL ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8514
SELECT DISTINCT MIN ( - + CAST ( NULL AS REAL ) ) FROM tab1 AS cor0
----
NULL

query II rowsort
SELECT ALL 68 AS col1, - 39 * col0 FROM tab2 AS cor0
----
68
-1794
68
-2496
68
-2925

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8516
SELECT CAST( NULL AS SIGNED ) / - col2 AS col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

skipif mysql # not compatible
query II rowsort label-8516
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col0, col0 FROM tab1
----
NULL
51
NULL
85
NULL
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8517
SELECT - + CAST( - - COUNT( + - 47 ) AS SIGNED ) + + + 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86

skipif mysql # not compatible
query I rowsort label-8517
SELECT - + CAST ( - - COUNT ( + - 47 ) AS INTEGER ) + + + 95 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
86

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col1 + + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8519
SELECT ALL - MAX( - 82 ) FROM tab0 AS cor0
----
82

skipif mysql # not compatible
query I rowsort label-8519
SELECT ALL - MAX ( - 82 ) FROM tab0 AS cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8520
SELECT ALL ( COUNT( * ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8520
SELECT ALL ( COUNT ( * ) ) FROM tab1 cor0 WHERE NOT ( NULL ) IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 23 * - col0 col0 FROM tab1 AS cor0
----
1173
1955
2093

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - AVG ( DISTINCT col2 ) col2 FROM tab0 AS cor0 WHERE ( NULL NOT IN ( + col2, - col2 * - col0 ) )
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8523
SELECT COUNT( * ) DIV + MIN( DISTINCT 45 ) col0 FROM tab0 cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8523
SELECT COUNT ( * ) / + MIN ( DISTINCT 45 ) col0 FROM tab0 cor0
----
0

query I rowsort
SELECT + + ( + col2 ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( col0 * - 2 * - - col2 / - - col2, 89 )
----

query II rowsort
SELECT - col2, 14 * + col2 * + - col2 + - col1 AS col1 FROM tab1
----
-59
-48739
-68
-64783
-96
-129038

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8526
SELECT 51 DIV MAX( DISTINCT - col2 ) AS col1 FROM tab0
----
-5

skipif mysql # not compatible
query I rowsort label-8526
SELECT 51 / MAX ( DISTINCT - col2 ) AS col1 FROM tab0
----
-5

query II rowsort
SELECT - col2 * ( - - col1 ) AS col1, - col2 FROM tab2
----
-1173
-23
-3080
-40
-3886
-58

query II rowsort
SELECT DISTINCT 41 AS col1, ( - 62 ) FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8529
SELECT - COUNT( * ) AS col2, 60 FROM tab2 AS cor0
----
-3
60

skipif mysql # not compatible
query II rowsort label-8529
SELECT - COUNT ( * ) AS col2, 60 FROM tab2 AS cor0
----
-3
60

query I rowsort
SELECT - ( - col2 ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8531
SELECT + col1 + - col2 DIV - col2 FROM tab0 AS cor0
----
2
22
82

skipif mysql # not compatible
query I rowsort label-8531
SELECT + col1 + - col2 / - col2 FROM tab0 AS cor0
----
2
22
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8532
SELECT DISTINCT 84 + COUNT( * ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-8532
SELECT DISTINCT 84 + COUNT ( * ) FROM tab1
----
87

query I rowsort
SELECT DISTINCT - 95 AS col1 FROM tab1 WHERE NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + col2 / + col1 * - 20 * + col1 + col2 * - - ( - + 67 ) + + 92 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 - + - 98 + - col1 + col2 FROM tab1
----
210
231
237

onlyif mysql # DIV for integer division: 
query I rowsort label-8536
SELECT ALL - 63 - + col1 DIV - + col1 FROM tab1 AS cor0
----
-62
-62
-62

skipif mysql # not compatible
query I rowsort label-8536
SELECT ALL - 63 - + col1 / - + col1 FROM tab1 AS cor0
----
-62
-62
-62

query I rowsort
SELECT ALL - + ( - col0 ) + col2 FROM tab0 AS cor0
----
196
62
97

query II rowsort
SELECT ALL - col1 AS col2, 26 FROM tab1 cor0
----
-14
26
-47
26
-5
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col2 * - + col1 * + + 52 >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8540
SELECT + 50 / - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8540
SELECT + 50 / - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 WHERE NOT + col1 + 42 <= col0
----
51
14
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8542
SELECT ALL - COUNT( * ) * ( - COUNT( * ) ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8542
SELECT ALL - COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2 AS cor0
----
9

query I rowsort
SELECT DISTINCT 90 FROM tab1 cor0 WHERE ( NOT ( ( + + 8 ) > - col2 * col1 ) )
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> + col0 * + + 13
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8545
SELECT + SUM( - 30 ) AS col0 FROM tab0 WHERE NOT 43 IS NULL
----
-90

skipif mysql # not compatible
query I rowsort label-8545
SELECT + SUM ( - 30 ) AS col0 FROM tab0 WHERE NOT 43 IS NULL
----
-90

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND 13
----

query II rowsort
SELECT - - 15 * + - col2 * col0 AS col2, - 91 AS col0 FROM tab1 AS cor0
----
-73440
-91
-75225
-91
-92820
-91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8548
SELECT + + col1 * CAST( CAST( + col0 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

skipif mysql # not compatible
query I rowsort label-8548
SELECT + + col1 * CAST ( CAST ( + col0 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 AS cor0
----
2346
4928
5025

query II rowsort
SELECT - col1, + col1 + - col2 AS col0 FROM tab0 cor0
----
-1
-98
-21
11
-81
34

onlyif mysql # aggregate syntax: 
query II rowsort label-8550
SELECT + 26, COUNT( * ) col0 FROM tab2 cor0
----
26
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8550
SELECT + 26, COUNT ( * ) col0 FROM tab2 cor0
----
26
3

query I rowsort
SELECT + 10 * col0 * - col0 + + - col1 AS col1 FROM tab0 AS cor0
----
-2331
-75711
-94091

query II rowsort
SELECT ALL + 74 AS col2, - col2 AS col0 FROM tab0 AS cor0
----
74
-10
74
-47
74
-99

query I rowsort
SELECT 5 + + col0 + - + col2 FROM tab2
----
22
28
29

query I rowsort
SELECT ALL - 19 + - - col2 * + - 58 + col0 * + + col2 + + col1 AS col2 FROM tab1
----
-677
1579
2272

query III rowsort
SELECT ALL * FROM tab1 WHERE + - col2 BETWEEN + + col2 * - col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 72 col0 FROM tab1
----
-72
-72
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-8557
SELECT DISTINCT MIN( ALL - + 15 ) AS col0 FROM tab0, tab1 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-8557
SELECT DISTINCT MIN ( ALL - + 15 ) AS col0 FROM tab0, tab1 AS cor0
----
-15

query I rowsort
SELECT ALL + 18 + + 94 + - col1 + ( + col1 ) * - - col0 FROM tab2
----
2407
4963
5070

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + + - col0 col0, - col0 * + 94 + col1 AS col2 FROM tab1
----
-23
-8507
-26
-7985
45
-4780

onlyif mysql # DIV for integer division: 
query I rowsort label-8560
SELECT - 51 DIV + col2 + + col1 FROM tab1 AS cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-8560
SELECT - 51 / + col2 + + col1 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 * + 98 FROM tab2 AS cor0
----
2254
3920
5684

query I rowsort
SELECT DISTINCT col2 - + 97 AS col0 FROM tab2
----
-39
-57
-74

onlyif mysql # aggregate syntax: 
query I rowsort label-8564
SELECT ALL - ( - + 85 ) + - COUNT( * ) AS col2 FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-8564
SELECT ALL - ( - + 85 ) + - COUNT ( * ) AS col2 FROM tab2 cor0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-8565
SELECT - + COUNT( * ) + - + MAX( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-78

skipif mysql # not compatible
query I rowsort label-8565
SELECT - + COUNT ( * ) + - + MAX ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-78

query I rowsort
SELECT 46 + + + ( - - col1 ) AS col2 FROM tab0 AS cor0
----
127
47
67

query I rowsort
SELECT col2 FROM tab0 cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT DISTINCT ( + 34 ) + + + col0 - + col2 * - - col2 FROM tab1 AS cor0
----
-3362
-4499
-9131

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE col2 * col2 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + - col1, + col1 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

onlyif mysql # aggregate syntax: 
query I rowsort label-8571
SELECT DISTINCT MAX( 64 ) FROM tab0
----
64

skipif mysql # not compatible
query I rowsort label-8571
SELECT DISTINCT MAX ( 64 ) FROM tab0
----
64

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT IN ( - col1 * - ( - col2 ) * + col2 / - 81 )
----

query I rowsort
SELECT - col1 AS col1 FROM tab1 WHERE NOT - col1 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8574
SELECT ALL * FROM tab2 WHERE NOT col0 >= - + col0 * - col0 + - + col0 * + 94 * - + CAST( - col2 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8574
SELECT ALL * FROM tab2 WHERE NOT col0 >= - + col0 * - col0 + - + col0 * + 94 * - + CAST ( - col2 AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8575
SELECT ( + CAST( + 42 AS SIGNED ) ) AS col0 FROM tab1
----
42
42
42

skipif mysql # not compatible
query I rowsort label-8575
SELECT ( + CAST ( + 42 AS INTEGER ) ) AS col0 FROM tab1
----
42
42
42

onlyif mysql # aggregate syntax: 
query I rowsort label-8576
SELECT DISTINCT COUNT( * ) * + - COUNT( - col2 ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8576
SELECT DISTINCT COUNT ( * ) * + - COUNT ( - col2 ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8577
SELECT - COUNT( * ) * + 27 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-8577
SELECT - COUNT ( * ) * + 27 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-8578
SELECT - + 21 AS col2, + COUNT( * ) * + COUNT( * ) AS col0 FROM tab2 AS cor0
----
-21
9

skipif mysql # not compatible
query II rowsort label-8578
SELECT - + 21 AS col2, + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-21
9

onlyif mysql # aggregate syntax: 
query I rowsort label-8579
SELECT DISTINCT + COUNT( * ) FROM tab1 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-8579
SELECT DISTINCT + COUNT ( * ) FROM tab1 WHERE - col2 IS NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8580
SELECT DISTINCT - 48 DIV + + col2 AS col0 FROM tab2
----
-1
-2
0

skipif mysql # not compatible
query I rowsort label-8580
SELECT DISTINCT - 48 / + + col2 AS col0 FROM tab2
----
-1
-2
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8581
SELECT 90 * - + 56 + 70, COUNT( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4970
9

skipif mysql # not compatible
query II rowsort label-8581
SELECT 90 * - + 56 + 70, COUNT ( * ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
-4970
9

query I rowsort
SELECT 93 * - 9 FROM tab0 AS cor0
----
-837
-837
-837

onlyif mysql # aggregate syntax: 
query I rowsort label-8583
SELECT - SUM( - 6 ) AS col1 FROM tab2 cor0
----
18

skipif mysql # not compatible
query I rowsort label-8583
SELECT - SUM ( - 6 ) AS col1 FROM tab2 cor0
----
18

query I rowsort
SELECT DISTINCT + col0 * + - col1 FROM tab1 AS cor0 WHERE NOT - col2 NOT IN ( - col2, col0 )
----
-425
-4277
-714

query I rowsort
SELECT DISTINCT - + 3 AS col1 FROM tab2 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8586
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST( col2 AS SIGNED ) - + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-8586
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + CAST ( col2 AS INTEGER ) - + 68 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8587
SELECT ALL - + SUM( - col0 ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8587
SELECT ALL - + SUM ( - col0 ) FROM tab1 AS cor0
----
227

query I rowsort
SELECT DISTINCT - - 55 AS col0 FROM tab1 AS cor0
----
55

query I rowsort
SELECT DISTINCT col2 + + col2 + + - 85 FROM tab2
----
-39
-5
31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 99 AS col2, - col0 col0 FROM tab2
----
99
-46
99
-64
99
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8591
SELECT ALL - MIN( 44 ) AS col0 FROM tab0
----
-44

skipif mysql # not compatible
query I rowsort label-8591
SELECT ALL - MIN ( 44 ) AS col0 FROM tab0
----
-44

query I rowsort
SELECT col0 + 67 FROM tab2
----
113
131
142

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8593
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - 4 + col2 AS col0, 19 + - col2 - col2 - + col0 FROM tab0
----
NULL
-276
NULL
-88
NULL
-90

skipif mysql # not compatible
query II rowsort label-8593
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - 4 + col2 AS col0, 19 + - col2 - col2 - + col0 FROM tab0
----
NULL
-276
NULL
-88
NULL
-90

query I rowsort
SELECT + 75 + + + col0 AS col0 FROM tab2 WHERE + col1 IS NULL
----

query I rowsort
SELECT DISTINCT + 68 AS col2 FROM tab2 cor0 WHERE + col0 = NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( - + 30 ) NOT BETWEEN NULL AND NULL )
----

query II rowsort
SELECT ( col2 ), col2 + - col0 + + 10 FROM tab2
----
23
-13
40
-14
58
-7

onlyif mysql # aggregate syntax: 
query I rowsort label-8598
SELECT + 67 * + MAX( ALL + 61 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
4087

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8598
SELECT + 67 * + MAX ( ALL + 61 ) col2 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
4087

query I rowsort
SELECT DISTINCT + + ( - - ( 21 ) ) * + col0 + + - 99 FROM tab0 AS cor0
----
1728
1938
216

query I rowsort
SELECT DISTINCT - + 82 - 70 FROM tab2 cor0
----
-152

query I rowsort
SELECT - col1 * + 30 FROM tab0 AS cor0
----
-2430
-30
-630

query I rowsort
SELECT - + 57 * col0 * + + 73 FROM tab0 AS cor0
----
-362007
-403617
-62415

query III rowsort
SELECT * FROM tab1 WHERE NOT + 17 + + 31 + - - col0 * - col0 * col1 = NULL
----

query II rowsort
SELECT col0 AS col0, 4 * - col0 FROM tab0
----
15
-60
87
-348
97
-388

onlyif mysql # DIV for integer division: 
query I rowsort label-8605
SELECT 3 DIV col2 AS col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8605
SELECT 3 / col2 AS col2 FROM tab0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8606
SELECT ALL + CAST( NULL AS SIGNED ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8606
SELECT ALL + CAST ( NULL AS INTEGER ) * + col2 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + - col1 AS col2, - ( col1 ) * - ( - col2 ) AS col1 FROM tab2 AS cor0
----
-51
-1173
-67
-3886
-77
-3080

onlyif mysql # aggregate syntax: 
query I rowsort label-8608
SELECT + COUNT( - col1 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8608
SELECT + COUNT ( - col1 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col0 * - - col0 IS NULL
----

query II rowsort
SELECT DISTINCT + + 1 AS col2, col1 * 96 * 17 + + col1 AS col2 FROM tab1 AS cor0
----
1
22862
1
76751
1
8165

query I rowsort
SELECT DISTINCT col0 * + + col1 * + + col1 FROM tab2
----
119646
336675
379456

onlyif mysql # aggregate syntax: 
query I rowsort label-8612
SELECT + SUM( ALL + 30 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
270

skipif mysql # not compatible
query I rowsort label-8612
SELECT + SUM ( ALL + 30 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
270

onlyif mysql # aggregate syntax: 
query I rowsort label-8613
SELECT - ( - ( + COUNT( * ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8613
SELECT - ( - ( + COUNT ( * ) ) ) AS col0 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8614
SELECT - COUNT( * ) + + 95 * - ( 94 ) AS col0 FROM tab1 AS cor0
----
-8933

skipif mysql # not compatible
query I rowsort label-8614
SELECT - COUNT ( * ) + + 95 * - ( 94 ) AS col0 FROM tab1 AS cor0
----
-8933

query I rowsort
SELECT col2 + - + col1 AS col1 FROM tab2 cor0
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col1 + - col1 * col0 col2 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT DISTINCT col2 * + + col2 AS col0 FROM tab2 AS cor0
----
1600
3364
529

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8618
SELECT - col1 * + col1 + - CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8618
SELECT - col1 * + col1 + - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8619
SELECT DISTINCT + 24 * + COUNT( * ) AS col2 FROM tab1
----
72

skipif mysql # not compatible
query I rowsort label-8619
SELECT DISTINCT + 24 * + COUNT ( * ) AS col2 FROM tab1
----
72

query I rowsort
SELECT 12 + - col1 AS col0 FROM tab1
----
-2
-35
7

query III rowsort
SELECT * FROM tab0 WHERE - 8 + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT DISTINCT col0 + - + ( + col1 ) * + col1 + col0, + col2 AS col0 FROM tab2
----
-2509
23
-4339
58
-5801
40

onlyif mysql # aggregate syntax: 
query II rowsort label-8623
SELECT - MAX( col2 ) AS col0, ( + 19 ) AS col1 FROM tab1 AS cor0
----
-96
19

skipif mysql # not compatible
query II rowsort label-8623
SELECT - MAX ( col2 ) AS col0, ( + 19 ) AS col1 FROM tab1 AS cor0
----
-96
19

onlyif mysql # aggregate syntax: 
query I rowsort label-8624
SELECT COUNT( * ) - - 25 + 77 AS col2 FROM tab2 AS cor0
----
105

skipif mysql # not compatible
query I rowsort label-8624
SELECT COUNT ( * ) - - 25 + 77 AS col2 FROM tab2 AS cor0
----
105

query I rowsort
SELECT ALL col0 * - col0 * + + col0 AS col1 FROM tab0 AS cor0
----
-3375
-658503
-912673

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE 39 * - 77 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8627
SELECT + - MIN( ALL 67 ) AS col2 FROM tab1 cor0
----
-67

skipif mysql # not compatible
query I rowsort label-8627
SELECT + - MIN ( ALL 67 ) AS col2 FROM tab1 cor0
----
-67

query II rowsort
SELECT + + col1 AS col2, + 75 * + col2 AS col0 FROM tab0 cor0
----
1
7425
21
750
81
3525

onlyif mysql # aggregate syntax: 
query I rowsort label-8629
SELECT - + MIN( ALL + - col2 ) FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8629
SELECT - + MIN ( ALL + - col2 ) FROM tab1 cor0
----
96

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col2 * col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8631
SELECT - - col0, col1 + CAST( NULL AS SIGNED ) col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8631
SELECT - - col0, col1 + CAST ( NULL AS INTEGER ) col0 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 14 * + - 21 + 95 col1 FROM tab1 AS cor0
----
389

onlyif mysql # aggregate syntax: 
query I rowsort label-8633
SELECT DISTINCT + ( 61 ) * + SUM( DISTINCT col2 ) FROM tab1 AS cor0
----
13603

skipif mysql # not compatible
query I rowsort label-8633
SELECT DISTINCT + ( 61 ) * + SUM ( DISTINCT col2 ) FROM tab1 AS cor0
----
13603

query I rowsort
SELECT DISTINCT - col1 AS col1 FROM tab0 WHERE NOT - - col0 - - 66 - - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT col1 * 42 IS NOT NULL
----

query I rowsort
SELECT - ( 50 ) * - + col0 * col1 * - + col2 FROM tab2
----
-14572500
-2697900
-9856000

query I rowsort
SELECT ALL - col0 * - - 90 FROM tab2
----
-4140
-5760
-6750

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8638
SELECT 72 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8638
SELECT 72 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8639
SELECT - COUNT( * ) DIV SUM( DISTINCT - 23 ) + - 82 FROM tab0
----
-82

skipif mysql # not compatible
query I rowsort label-8639
SELECT - COUNT ( * ) / SUM ( DISTINCT - 23 ) + - 82 FROM tab0
----
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-8640
SELECT ( + col1 ) DIV + col0 + - 19 FROM tab2
----
-18
-18
-19

skipif mysql # not compatible
query I rowsort label-8640
SELECT ( + col1 ) / + col0 + - 19 FROM tab2
----
-18
-18
-19

query I rowsort
SELECT + col1 AS col0 FROM tab2 AS cor0 WHERE NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8642
SELECT + - COUNT( ALL + - col1 ) FROM tab2 AS cor0 WHERE 40 * - col1 <= + 5
----
-3

skipif mysql # not compatible
query I rowsort label-8642
SELECT + - COUNT ( ALL + - col1 ) FROM tab2 AS cor0 WHERE 40 * - col1 <= + 5
----
-3

query I rowsort
SELECT - - 98 + + 63 AS col0 FROM tab1 AS cor0 WHERE + 42 IS NOT NULL
----
161
161
161

onlyif mysql # aggregate syntax: 
query I rowsort label-8644
SELECT DISTINCT - COUNT( * ) * ( - COUNT( * ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-8644
SELECT DISTINCT - COUNT ( * ) * ( - COUNT ( * ) ) FROM tab2
----
9

query I rowsort
SELECT ALL - 81 + col2 FROM tab1
----
-13
-22
15

query I rowsort
SELECT + col1 + 70 - col0 * ( col2 ) FROM tab2
----
-2413
-4213
-937

query I rowsort
SELECT ALL 13 + - 95 AS col1 FROM tab0
----
-82
-82
-82

query I rowsort
SELECT + 91 + + col0 * - 49 AS col0 FROM tab1
----
-2408
-4074
-4368

query I rowsort
SELECT + ( - 35 ) + + 53 + + 34 * 17 FROM tab2
----
596
596
596

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8650
SELECT ALL + 54 + + 21 DIV - COUNT( * ) FROM tab0
----
47

skipif mysql # not compatible
query I rowsort label-8650
SELECT ALL + 54 + + 21 / - COUNT ( * ) FROM tab0
----
47

query II rowsort
SELECT ALL - 74 - - 80 AS col2, col2 * col1 AS col0 FROM tab1
----
6
1344
6
295
6
3196

query I rowsort
SELECT DISTINCT col1 * - 23 + - col1 AS col1 FROM tab1
----
-1128
-120
-336

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8653
SELECT ALL + 70 * col0 + + - CAST( NULL AS SIGNED ) / 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8653
SELECT ALL + 70 * col0 + + - CAST ( NULL AS INTEGER ) / 4 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8654
SELECT - - ( - col1 ) DIV + - CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
0
1
1

skipif mysql # not compatible
query I rowsort label-8654
SELECT - - ( - col1 ) / + - CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
0
1
1

query I rowsort
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE col0 + 81 / - col1 IS NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8656
SELECT ALL - 85 * COUNT( * ) DIV ( 26 ) AS col0 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-8656
SELECT ALL - 85 * COUNT ( * ) / ( 26 ) AS col0 FROM tab0
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8657
SELECT DISTINCT CAST( + - COUNT( * ) AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-8657
SELECT DISTINCT CAST ( + - COUNT ( * ) AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-9

query I rowsort
SELECT col1 FROM tab1 AS cor0 WHERE NOT - col0 < col0
----

query II rowsort
SELECT - - 87, 47 AS col0 FROM tab0 AS cor0 WHERE NOT - col2 = col2 / col2 - + col2 * - 25
----
87
47
87
47
87
47

query I rowsort
SELECT DISTINCT - 60 AS col1 FROM tab1 cor0
----
-60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - + col2 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8662
SELECT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-8662
SELECT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL >= NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8663
SELECT DISTINCT 10 DIV + col2 + - col0 * - col2 AS col2 FROM tab0 cor0
----
705
871
9603

skipif mysql # not compatible
query I rowsort label-8663
SELECT DISTINCT 10 / + col2 + - col0 * - col2 AS col2 FROM tab0 cor0
----
705
871
9603

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8664
SELECT - col1 * col0 - + CAST( NULL AS SIGNED ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8664
SELECT - col1 * col0 - + CAST ( NULL AS INTEGER ) + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT ( NULL IS NULL ) )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8666
SELECT + ( - CAST( + col1 AS SIGNED ) ), col1 FROM tab0
----
-1
1
-21
21
-81
81

skipif mysql # not compatible
query II rowsort label-8666
SELECT + ( - CAST ( + col1 AS INTEGER ) ), col1 FROM tab0
----
-1
1
-21
21
-81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-8667
SELECT ALL + MIN( ALL - ( + 59 ) ) AS col0 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-8667
SELECT ALL + MIN ( ALL - ( + 59 ) ) AS col0 FROM tab1
----
-59

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL >= 57 OR NOT NULL > - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8669
SELECT + ( MAX( + - col2 ) ) AS col0 FROM tab0
----
-10

skipif mysql # not compatible
query I rowsort label-8669
SELECT + ( MAX ( + - col2 ) ) AS col0 FROM tab0
----
-10

onlyif mysql # aggregate syntax: 
query I rowsort label-8670
SELECT - MIN( DISTINCT ( - 99 ) ) FROM tab0
----
99

skipif mysql # not compatible
query I rowsort label-8670
SELECT - MIN ( DISTINCT ( - 99 ) ) FROM tab0
----
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - col2 col0 FROM tab2 WHERE NOT NULL NOT BETWEEN + + ( + col1 ) AND col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8672
SELECT + 26 AS col1, + COUNT( * ) DIV - MIN( col1 ) FROM tab0 AS cor0
----
26
-3

skipif mysql # not compatible
query II rowsort label-8672
SELECT + 26 AS col1, + COUNT ( * ) / - MIN ( col1 ) FROM tab0 AS cor0
----
26
-3

query I rowsort
SELECT + 7 FROM tab1 AS cor0 WHERE NOT NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8674
SELECT ALL SUM( + 18 ) AS col1 FROM tab2 AS cor0
----
54

skipif mysql # not compatible
query I rowsort label-8674
SELECT ALL SUM ( + 18 ) AS col1 FROM tab2 AS cor0
----
54

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-8675
SELECT 64 AS col2, col2 + + 32 * - - col0 - - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query II rowsort label-8675
SELECT 64 AS col2, col2 + + 32 * - - col0 - - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0 WHERE NOT col1 BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - + 58 ) col1 FROM tab2 AS cor0
----
-58
-58
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8677
SELECT - + 12 * - COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-8677
SELECT - + 12 * - COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0
----
-108

query I rowsort
SELECT - col0 * - 47 FROM tab2
----
2162
3008
3525

query I rowsort
SELECT ALL 94 * - 22 FROM tab0, tab0 AS cor0
----
9 values hashing to 5dcb2b44f46dfa1bd36261238e9bb8df

query I rowsort
SELECT ALL + - col2 + - col0 FROM tab2 cor0
----
-104
-133
-69

query I rowsort
SELECT ALL col0 * + 99 * + 53 AS col2 FROM tab1 AS cor0
----
267597
445995
477477

onlyif mysql # aggregate syntax: 
query I rowsort label-8682
SELECT - COUNT( ALL col1 ) + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8682
SELECT - COUNT ( ALL col1 ) + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col0 / - 32 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8684
SELECT ALL + SUM( ALL + 26 ) AS col0 FROM tab0 cor0
----
78

skipif mysql # not compatible
query I rowsort label-8684
SELECT ALL + SUM ( ALL + 26 ) AS col0 FROM tab0 cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8685
SELECT + + 31 * + 81 + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8685
SELECT + + 31 * + 81 + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + + col1 FROM tab0 AS cor0 WHERE col1 IS NULL
----

query I rowsort
SELECT - col1 + - + 95 * + + col0 * + + 19 + + + col0 AS col2 FROM tab2 AS cor0
----
-115533
-135367
-83035

query I rowsort
SELECT - - 48 + - 14 AS col1 FROM tab1 AS cor0
----
34
34
34

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 33 + + col1 - col2 col2 FROM tab0 AS cor0
----
-65
44
67

onlyif mysql # aggregate syntax: 
query I rowsort label-8690
SELECT + 11 * - COUNT( * ) + - + ( + COUNT( * ) ) + - - ( - 59 ) + - COUNT( ALL - 13 ) AS col0 FROM tab1 cor0
----
-98

skipif mysql # not compatible
query I rowsort label-8690
SELECT + 11 * - COUNT ( * ) + - + ( + COUNT ( * ) ) + - - ( - 59 ) + - COUNT ( ALL - 13 ) AS col0 FROM tab1 cor0
----
-98

query I rowsort
SELECT + + col2 + col1 + + col0 * + - col2 AS col0 FROM tab1 WHERE + 22 / - col1 IS NOT NULL
----
-4786
-4951
-6073

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( 21 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8693
SELECT CAST( NULL AS SIGNED ) - ( + 16 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8693
SELECT CAST ( NULL AS INTEGER ) - ( + 16 ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8694
SELECT ALL + MIN( 43 ) + - MIN( ALL col0 ) col1 FROM tab0 AS cor0
----
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8694
SELECT ALL + MIN ( 43 ) + - MIN ( ALL col0 ) col1 FROM tab0 AS cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-8695
SELECT - 37 * + COUNT( * ) FROM tab1 AS cor0
----
-111

skipif mysql # not compatible
query I rowsort label-8695
SELECT - 37 * + COUNT ( * ) FROM tab1 AS cor0
----
-111

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8696
SELECT DISTINCT AVG ( - + CAST( NULL AS DECIMAL ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-8696
SELECT DISTINCT AVG ( - + CAST ( NULL AS REAL ) ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8697
SELECT ALL COUNT( * ) FROM tab0 WHERE col0 + + col0 NOT BETWEEN - col1 AND + col1 * col0
----
1

skipif mysql # not compatible
query I rowsort label-8697
SELECT ALL COUNT ( * ) FROM tab0 WHERE col0 + + col0 NOT BETWEEN - col1 AND + col1 * col0
----
1

query I rowsort
SELECT ALL + col1 * 53 AS col1 FROM tab1
----
2491
265
742

onlyif mysql # aggregate syntax: 
query II rowsort label-8699
SELECT 2 AS col0, - COUNT( * ) FROM tab1 AS cor0
----
2
-3

skipif mysql # not compatible
query II rowsort label-8699
SELECT 2 AS col0, - COUNT ( * ) FROM tab1 AS cor0
----
2
-3

query II rowsort
SELECT + 56 AS col0, 1 * - - 57 FROM tab2 AS cor0
----
56
57
56
57
56
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 >= - 12
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8702
SELECT - COUNT( * ) AS col1, 38 AS col1 FROM tab1 AS cor0
----
-3
38

skipif mysql # not compatible
query II rowsort label-8702
SELECT - COUNT ( * ) AS col1, 38 AS col1 FROM tab1 AS cor0
----
-3
38

onlyif mysql # aggregate syntax: 
query I rowsort label-8703
SELECT ALL + + COUNT( * ) * + 20 FROM tab2 AS cor0
----
60

skipif mysql # not compatible
query I rowsort label-8703
SELECT ALL + + COUNT ( * ) * + 20 FROM tab2 AS cor0
----
60

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - 18 BETWEEN NULL AND - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8705
SELECT ALL - col1 DIV col1 DIV - col2 * - col1 * + col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8705
SELECT ALL - col1 / col1 / - col2 * - col1 * + col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query II rowsort label-8706
SELECT DISTINCT + COUNT( * ) AS col0, ( 15 ) FROM tab2 AS cor0
----
3
15

skipif mysql # not compatible
query II rowsort label-8706
SELECT DISTINCT + COUNT ( * ) AS col0, ( 15 ) FROM tab2 AS cor0
----
3
15

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE NOT NULL > + ( 74 ) * + ( + + 4 ) + + col0
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 + + col2 < - - col1 * - 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8709
SELECT DISTINCT - COUNT( * ) * + 19 * + 31 AS col1 FROM tab0
----
-1767

skipif mysql # not compatible
query I rowsort label-8709
SELECT DISTINCT - COUNT ( * ) * + 19 * + 31 AS col1 FROM tab0
----
-1767

query II rowsort
SELECT ( + col2 ) AS col0, 63 FROM tab1
----
59
63
68
63
96
63

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + ( col1 ) + + - 11 + - col2 + - col1 <= NULL )
----

query II rowsort
SELECT 75 * + col2 AS col0, 33 FROM tab0
----
3525
33
7425
33
750
33

query III rowsort
SELECT * FROM tab1 WHERE NOT - + col2 / + 80 <> NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-8715
SELECT - col2 DIV 52 AS col0 FROM tab0 AS cor0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-8715
SELECT - col2 / 52 AS col0 FROM tab0 AS cor0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
-1
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8716
SELECT ALL - + CAST( - MAX( ALL - col0 ) AS SIGNED ) AS col0 FROM tab2 cor0
----
-46

skipif mysql # not compatible
query I rowsort label-8716
SELECT ALL - + CAST ( - MAX ( ALL - col0 ) AS INTEGER ) AS col0 FROM tab2 cor0
----
-46

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 74 + + - col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8718
SELECT + CAST( NULL AS SIGNED ) * + - 13 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8718
SELECT + CAST ( NULL AS INTEGER ) * + - 13 AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8719
SELECT ALL + ( - 2 ) DIV COUNT( * ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8719
SELECT ALL + ( - 2 ) / COUNT ( * ) FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN + ( 4 ) * + + 48 AND - col2 * + + col2
----

query I rowsort
SELECT + + 60 AS col0 FROM tab2 AS cor0
----
60
60
60

query III rowsort
SELECT * FROM tab1 cor0 WHERE ( - 66 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-8723
SELECT DISTINCT - MAX( + col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-8723
SELECT DISTINCT - MAX ( + col2 ) AS col2 FROM tab1 cor0
----
-96

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col2 + col0 IS NOT NULL
----

query II rowsort
SELECT ALL + - col1 AS col1, - col2 FROM tab0 AS cor0
----
-1
-99
-21
-10
-81
-47

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( 97 <= NULL )
----

query I rowsort
SELECT DISTINCT - ( + - 35 ) AS col1 FROM tab0 AS cor0
----
35

query I rowsort
SELECT 24 * - 89 FROM tab2 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8729
SELECT ALL - + 83 - + COUNT( * ) FROM tab0 cor0
----
-86

skipif mysql # not compatible
query I rowsort label-8729
SELECT ALL - + 83 - + COUNT ( * ) FROM tab0 cor0
----
-86

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-8730
SELECT DISTINCT + + 85, 99 DIV - - COUNT( * ) AS col2 FROM tab2 AS cor0
----
85
33

skipif mysql # not compatible
query II rowsort label-8730
SELECT DISTINCT + + 85, 99 / - - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
85
33

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8731
SELECT - - COUNT( DISTINCT + + 40 ) DIV 34 DIV + COUNT( * ) - COUNT( * ) AS col0 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8731
SELECT - - COUNT ( DISTINCT + + 40 ) / 34 / + COUNT ( * ) - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
-3

query I rowsort
SELECT 17 - + - 62 AS col0 FROM tab2
----
79
79
79

query I rowsort
SELECT - 19 - 66 FROM tab0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 5 + + col2 col2 FROM tab2
----
28
45
63

query I rowsort
SELECT DISTINCT 32 + - col1 + - + col0 FROM tab1
----
-106
-33
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-8736
SELECT ALL MAX( DISTINCT - + 54 ) + + 30 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-8736
SELECT ALL MAX ( DISTINCT - + 54 ) + + 30 FROM tab1
----
-24

query I rowsort
SELECT DISTINCT - col1 - - 41 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-10
-26
-36

query I rowsort
SELECT ALL - ( + col1 ) AS col1 FROM tab1 cor0
----
-14
-47
-5

query III rowsort
SELECT * FROM tab1 WHERE NOT ( + col2 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8740
SELECT DISTINCT + 11 * COUNT( * ) FROM tab1 cor0
----
33

skipif mysql # not compatible
query I rowsort label-8740
SELECT DISTINCT + 11 * COUNT ( * ) FROM tab1 cor0
----
33

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8741
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( NULL AS SIGNED ) <= + + 56
----

skipif mysql # not compatible
query III rowsort label-8741
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( NULL AS INTEGER ) <= + + 56
----

query I rowsort
SELECT DISTINCT + 31 AS col0 FROM tab0 AS cor0 WHERE NOT ( + 76 ) = col2
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-8743
SELECT DISTINCT + MAX( + col0 ) AS col0 FROM tab0 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-8743
SELECT DISTINCT + MAX ( + col0 ) AS col0 FROM tab0 AS cor0
----
97

query II rowsort
SELECT + + 59 AS col2, col0 + col0 + + col1 * + ( - col1 ) AS col2 FROM tab0 AS cor0
----
59
-267
59
-6531
59
193

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - + col0 ) col1 FROM tab1 AS cor0
----
51
85
91

query I rowsort
SELECT DISTINCT - + 51 * - - col1 * + 73 FROM tab1 AS cor0
----
-174981
-18615
-52122

onlyif mysql # aggregate syntax: 
query II rowsort label-8747
SELECT ALL COUNT( * ) AS col1, COUNT( * ) * + + COUNT( * ) FROM tab0
----
3
9

skipif mysql # not compatible
query II rowsort label-8747
SELECT ALL COUNT ( * ) AS col1, COUNT ( * ) * + + COUNT ( * ) FROM tab0
----
3
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8748
SELECT DISTINCT COUNT( * ) * - - CAST( NULL AS SIGNED ) * + 77 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8748
SELECT DISTINCT COUNT ( * ) * - - CAST ( NULL AS INTEGER ) * + 77 FROM tab2
----
NULL

query II rowsort
SELECT + col2 + - col2 AS col2, - col1 AS col2 FROM tab1
----
0
-14
0
-47
0
-5

onlyif mysql # aggregate syntax: 
query II rowsort label-8750
SELECT DISTINCT - 52 + - - COUNT( * ) AS col0, + 7 * - + 54 FROM tab0
----
-49
-378

skipif mysql # not compatible
query II rowsort label-8750
SELECT DISTINCT - 52 + - - COUNT ( * ) AS col0, + 7 * - + 54 FROM tab0
----
-49
-378

query I rowsort
SELECT ALL col2 + + 68 AS col1 FROM tab2
----
108
126
91

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8752
SELECT ALL CAST( NULL AS DECIMAL ) * - + 9 col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8752
SELECT ALL CAST ( NULL AS REAL ) * - + 9 col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8753
SELECT ALL - COUNT( * ) + + 89 * - MAX( + col2 ) col0 FROM tab1
----
-8547

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8753
SELECT ALL - COUNT ( * ) + + 89 * - MAX ( + col2 ) col0 FROM tab1
----
-8547

query II rowsort
SELECT ALL ( - + 93 ) AS col0, - 4 + + - col0 * col1 FROM tab0
----
-93
-101
-93
-1219
-93
-1831

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8755
SELECT DISTINCT + MIN( - 14 ) DIV + COUNT( * ) FROM tab0
----
-4

skipif mysql # not compatible
query I rowsort label-8755
SELECT DISTINCT + MIN ( - 14 ) / + COUNT ( * ) FROM tab0
----
-4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + + 32, + 62, - + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8757
SELECT + COUNT( * ) * 44 * + + COUNT( * ) AS col1 FROM tab1 AS cor0
----
396

skipif mysql # not compatible
query I rowsort label-8757
SELECT + COUNT ( * ) * 44 * + + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
396

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 18 col1 FROM tab1 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8759
SELECT CAST( NULL AS SIGNED ) AS col2, + col0 * + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

skipif mysql # not compatible
query II rowsort label-8759
SELECT CAST ( NULL AS INTEGER ) AS col2, + col0 * + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
NULL
-425
NULL
-4277
NULL
-714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8760
SELECT CAST( NULL AS SIGNED ) + - + col0, 79 FROM tab0 WHERE NULL <= - col2
----

skipif mysql # not compatible
query II rowsort label-8760
SELECT CAST ( NULL AS INTEGER ) + - + col0, 79 FROM tab0 WHERE NULL <= - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8761
SELECT 59 DIV 84 - - ( - + COUNT( * ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-8761
SELECT 59 / 84 - - ( - + COUNT ( * ) ) AS col2 FROM tab2
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - + col1 NOT BETWEEN NULL AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 + + col2 col0, - col2 + - + 39 FROM tab1 AS cor0
----
118
-98
136
-107
192
-135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8764
SELECT - col0 + CAST( NULL AS SIGNED ) * + - 84 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8764
SELECT - col0 + CAST ( NULL AS INTEGER ) * + - 84 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 48 + - - col0 * - col0 FROM tab0 AS cor0
----
-273
-7617
-9457

onlyif mysql # DIV for integer division: 
query I rowsort label-8766
SELECT DISTINCT col2 - + 2 DIV ( + col1 ) AS col1 FROM tab0 AS cor0
----
10
47
97

skipif mysql # not compatible
query I rowsort label-8766
SELECT DISTINCT col2 - + 2 / ( + col1 ) AS col1 FROM tab0 AS cor0
----
10
47
97

onlyif mysql # aggregate syntax: 
query I rowsort label-8767
SELECT + + 9 + - - COUNT( * ) FROM tab2 cor0
----
12

skipif mysql # not compatible
query I rowsort label-8767
SELECT + + 9 + - - COUNT ( * ) FROM tab2 cor0
----
12

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8768
SELECT - CAST( - - COUNT( * ) AS SIGNED ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-8768
SELECT - CAST ( - - COUNT ( * ) AS INTEGER ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-8769
SELECT + 48 DIV + col1 + 61 * - - 51 - - + 76 * - 22 AS col1 FROM tab1 AS cor0
----
1440
1442
1448

skipif mysql # not compatible
query I rowsort label-8769
SELECT + 48 / + col1 + 61 * - - 51 - - + 76 * - 22 AS col1 FROM tab1 AS cor0
----
1440
1442
1448

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 24 * - 13 col2 FROM tab2 AS cor0
----
-312
-312
-312

query I rowsort
SELECT DISTINCT - 85 * + 36 + col0 * + col0 FROM tab0 cor0
----
-2835
4509
6349

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8772
SELECT DISTINCT + + 64 + - 68 - + 69 DIV - COUNT( * ) FROM tab2 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-8772
SELECT DISTINCT + + 64 + - 68 - + 69 / - COUNT ( * ) FROM tab2 AS cor0
----
19

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8773
SELECT ALL - SUM( + - CAST( NULL AS DECIMAL ) ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8773
SELECT ALL - SUM ( + - CAST ( NULL AS REAL ) ) AS col2 FROM tab1
----
NULL

query II rowsort
SELECT + col1, - 80 + - col2 AS col2 FROM tab2
----
51
-103
67
-138
77
-120

query II rowsort
SELECT ALL 60 AS col1, - col0 FROM tab2 WHERE + + col2 * - ( + col2 ) + + - ( - col2 ) >= 73
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8776
SELECT DISTINCT COUNT( DISTINCT + - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8776
SELECT DISTINCT COUNT ( DISTINCT + - col1 ) FROM tab0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE NOT - col0 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8778
SELECT 43 / + - 54 * + + CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8778
SELECT 43 / + - 54 * + + CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8779
SELECT - MAX( + + col0 ) col2 FROM tab0 cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8779
SELECT - MAX ( + + col0 ) col2 FROM tab0 cor0
----
-97

query I rowsort
SELECT + ( - 50 ) AS col0 FROM tab0 AS cor0
----
-50
-50
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-8781
SELECT DISTINCT MIN( - ( - col0 ) ) AS col2 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-8781
SELECT DISTINCT MIN ( - ( - col0 ) ) AS col2 FROM tab0
----
15

query III rowsort
SELECT * FROM tab2 WHERE col2 + col2 BETWEEN + col0 - - col0 / + ( + 94 ) AND NULL
----

query I rowsort
SELECT + col1 + - 28 * - col1 AS col0 FROM tab2
----
1479
1943
2233

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( + col2 * 12 ) < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8785
SELECT * FROM tab2 WHERE NULL IN ( - CAST( ( col2 ) AS SIGNED ) * - col0 )
----

skipif mysql # not compatible
query III rowsort label-8785
SELECT * FROM tab2 WHERE NULL IN ( - CAST ( ( col2 ) AS INTEGER ) * - col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8786
SELECT - MIN( col1 ) * 93 + + COUNT( * ) AS col0 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-8786
SELECT - MIN ( col1 ) * 93 + + COUNT ( * ) AS col0 FROM tab0
----
-90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8787
SELECT ALL * FROM tab2 WHERE NOT ( - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-8787
SELECT ALL * FROM tab2 WHERE NOT ( - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8788
SELECT ALL - 22 - - COUNT( * ) * 22 col1 FROM tab1
----
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8788
SELECT ALL - 22 - - COUNT ( * ) * 22 col1 FROM tab1
----
44

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8789
SELECT col0 * CAST( - col1 AS DECIMAL ) FROM tab2 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-8789
SELECT col0 * CAST ( - col1 AS REAL ) FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8790
SELECT + MAX( DISTINCT - 44 ) FROM tab2
----
-44

skipif mysql # not compatible
query I rowsort label-8790
SELECT + MAX ( DISTINCT - 44 ) FROM tab2
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-8791
SELECT + COUNT( 58 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-8791
SELECT + COUNT ( 58 ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8792
SELECT ALL 34 * + CAST( + ( - 99 ) AS SIGNED ) + - COUNT( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
-3369

skipif mysql # not compatible
query I rowsort label-8792
SELECT ALL 34 * + CAST ( + ( - 99 ) AS INTEGER ) + - COUNT ( * ) FROM tab1 WHERE - col1 IS NOT NULL
----
-3369

query I rowsort
SELECT - 91 + - col0 * col2 FROM tab2
----
-1149
-2651
-4441

query III rowsort
SELECT ALL * FROM tab1 WHERE - col0 > - col1 * + 12
----
51
14
96
91
47
68

query I rowsort
SELECT - col0 FROM tab2 WHERE NOT NULL BETWEEN ( 43 ) + + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT BETWEEN ( NULL ) AND ( 66 + 11 * - col2 )
----

query I rowsort
SELECT - 82 * + 53 - + col2 FROM tab0 WHERE NOT col1 >= col0 * - col0
----

query I rowsort
SELECT DISTINCT + col0 * + 11 AS col1 FROM tab2
----
506
704
825

onlyif mysql # aggregate syntax: 
query I rowsort label-8799
SELECT SUM( + ( col0 ) ) + 93 FROM tab0
----
292

skipif mysql # not compatible
query I rowsort label-8799
SELECT SUM ( + ( col0 ) ) + 93 FROM tab0
----
292

query I rowsort
SELECT ALL + col2 * 68 FROM tab1
----
4012
4624
6528

query III rowsort
SELECT * FROM tab0 WHERE col2 + + col1 NOT BETWEEN + col0 * + col0 - + ( col0 ) AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col2 < 37 + col2
----

query I rowsort
SELECT + 44 + col0 / col2 AS col1 FROM tab1 WHERE NOT NULL NOT IN ( ( col2 ) * col0 )
----

query I rowsort
SELECT - 34 - col1 FROM tab0
----
-115
-35
-55

onlyif mysql # aggregate syntax: 
query I rowsort label-8805
SELECT DISTINCT ( - COUNT( ( col2 ) ) ) * + 79 FROM tab2
----
-237

skipif mysql # not compatible
query I rowsort label-8805
SELECT DISTINCT ( - COUNT ( ( col2 ) ) ) * + 79 FROM tab2
----
-237

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8806
SELECT + ( CAST( col0 AS SIGNED ) ) AS col0 FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND - col0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-8806
SELECT + ( CAST ( col0 AS INTEGER ) ) AS col0 FROM tab1 WHERE ( col0 ) NOT BETWEEN NULL AND - col0
----
51
85
91

query I rowsort
SELECT DISTINCT 95 * 6 AS col1 FROM tab2
----
570

query I rowsort
SELECT ALL - col2 FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( col2 / + 98 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8809
SELECT SUM( DISTINCT + 98 ) FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-8809
SELECT SUM ( DISTINCT + 98 ) FROM tab2
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-8810
SELECT ( - MAX( + 12 ) ) FROM tab2 WHERE NOT col0 + col2 * 67 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8810
SELECT ( - MAX ( + 12 ) ) FROM tab2 WHERE NOT col0 + col2 * 67 IS NOT NULL
----
NULL

query I rowsort
SELECT - col2 AS col1 FROM tab1 cor0 WHERE col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8812
SELECT DISTINCT COUNT( * ) * - SUM( - col1 * 43 ) FROM tab1 cor0
----
8514

skipif mysql # not compatible
query I rowsort label-8812
SELECT DISTINCT COUNT ( * ) * - SUM ( - col1 * 43 ) FROM tab1 cor0
----
8514

query I rowsort
SELECT ALL - col1 * - ( + col1 ) FROM tab1 AS cor0
----
196
2209
25

query I rowsort
SELECT DISTINCT col0 * - 25 + - col1 AS col2 FROM tab0 AS cor0
----
-2196
-2426
-456

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8815
SELECT * FROM tab0 AS cor0 WHERE + 27 < ( - col0 + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-8815
SELECT * FROM tab0 AS cor0 WHERE + 27 < ( - col0 + CAST ( NULL AS INTEGER ) )
----

query IIIIII rowsort
SELECT ALL * FROM ( tab0 AS cor0 CROSS JOIN tab2 ) WHERE ( NULL ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL + 66 + - col2 FROM tab1
----
-2
-30
7

query III rowsort
SELECT * FROM tab0 WHERE + 21 + 85 IN ( - 72 * + col2 )
----

query I rowsort
SELECT ALL col0 AS col0 FROM tab0 WHERE NOT ( col0 ) BETWEEN - col1 + - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - col0 FROM tab2 cor0 WHERE 34 * - col1 < ( - col1 )
----
-46
-64
-75

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) NOT IN ( 44 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE NOT ( col1 + col1 ) <= NULL
----

query I rowsort
SELECT DISTINCT - - ( col0 ) - 72 * 96 FROM tab0 AS cor0
----
-6815
-6825
-6897

query I rowsort
SELECT DISTINCT + col1 AS col1 FROM tab2 AS cor0 WHERE NOT 75 * + col2 <= NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 NOT IN ( - ( col1 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 + + 18 AS col1 FROM tab2 AS cor0
----
41
58
76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - 88 * col2 col2 FROM tab2 AS cor0
----
2024
3520
5104

query I rowsort
SELECT ALL - 88 * - col2 FROM tab1 AS cor0
----
5192
5984
8448

query I rowsort
SELECT 99 * + col1 * col1 AS col1 FROM tab2
----
257499
444411
586971

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + ( + ( col1 ) ) * ( col2 * 15 ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 66 NOT IN ( - 49 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8832
SELECT ALL + COUNT( * ) DIV - 48 * + COUNT( * ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-8832
SELECT ALL + COUNT ( * ) / - 48 * + COUNT ( * ) FROM tab0
----
0

query I rowsort
SELECT 48 * col0 AS col1 FROM tab0
----
4176
4656
720

query I rowsort
SELECT ALL - 2 * - col0 * - col0 AS col2 FROM tab0
----
-15138
-18818
-450

query I rowsort
SELECT DISTINCT - 61 AS col2 FROM tab2 cor0
----
-61

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 IN ( + col1 )
----

query I rowsort
SELECT ALL - col0 FROM tab1 AS cor0 WHERE NOT col0 BETWEEN 45 AND ( NULL )
----

query II rowsort
SELECT DISTINCT + + 35 AS col2, col2 + + 27 FROM tab2 cor0
----
35
50
35
67
35
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8839
SELECT + - col2 + - col1 + - CAST( NULL AS SIGNED ) + 98 / col1 * 5 * 42 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8839
SELECT + - col2 + - col1 + - CAST ( NULL AS INTEGER ) + 98 / col1 * 5 * 42 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8840
SELECT + col2 + ( - col2 ) DIV + col1 FROM tab0 AS cor0
----
0
10
47

skipif mysql # not compatible
query I rowsort label-8840
SELECT + col2 + ( - col2 ) / + col1 FROM tab0 AS cor0
----
0
10
47

query I rowsort
SELECT - 11 + - + 65 * col1 AS col1 FROM tab1 AS cor0
----
-3066
-336
-921

onlyif mysql # aggregate syntax: 
query I rowsort label-8842
SELECT ALL + - SUM( - col0 ) AS col1 FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-8842
SELECT ALL + - SUM ( - col0 ) AS col1 FROM tab1 AS cor0
----
227

query I rowsort
SELECT ALL col1 + col1 * - + 32 AS col0 FROM tab0 AS cor0
----
-2511
-31
-651

query I rowsort
SELECT + 17 + - col0 AS col0 FROM tab2 AS cor0
----
-29
-47
-58

query I rowsort
SELECT col0 + + col2 + - 63 FROM tab1
----
81
84
96

query I rowsort
SELECT ALL + col0 * + col0 + 79 AS col1 FROM tab2 WHERE - + col2 IS NOT NULL
----
2195
4175
5704

query I rowsort
SELECT DISTINCT - col0 * - 97 FROM tab2
----
4462
6208
7275

onlyif mysql # aggregate syntax: 
query I rowsort label-8848
SELECT DISTINCT - COUNT( * ) + + 38 FROM tab0
----
35

skipif mysql # not compatible
query I rowsort label-8848
SELECT DISTINCT - COUNT ( * ) + + 38 FROM tab0
----
35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8849
SELECT DISTINCT ( + 12 ) + COUNT( * ) / - CAST( NULL AS SIGNED ) * - 51 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-8849
SELECT DISTINCT ( + 12 ) + COUNT ( * ) / - CAST ( NULL AS INTEGER ) * - 51 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8850
SELECT - COUNT( DISTINCT ( - - col2 ) ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8850
SELECT - COUNT ( DISTINCT ( - - col2 ) ) FROM tab2 AS cor0
----
-3

query I rowsort
SELECT DISTINCT 66 * col2 + - 76 FROM tab2 AS cor0
----
1442
2564
3752

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 80 * - col2 * + - col2 < ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 * - - ( - - 79 ) AS col1 FROM tab0
----
3713
7821
790

query I rowsort
SELECT DISTINCT 16 + + - col2 + col2 + 44 * + col1 AS col0 FROM tab2
----
2260
2964
3404

onlyif mysql # aggregate syntax: 
query I rowsort label-8855
SELECT DISTINCT - MIN( ALL ( - col2 ) ) col2 FROM tab0
----
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8855
SELECT DISTINCT - MIN ( ALL ( - col2 ) ) col2 FROM tab0
----
99

query I rowsort
SELECT - 42 + - col2 * - col1 AS col2 FROM tab1 WHERE ( + col2 ) IS NOT NULL
----
1302
253
3154

query I rowsort
SELECT ALL col0 + - ( + 46 ) AS col0 FROM tab1
----
39
45
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + + - col0 col2 FROM tab1
----
-102
-170
-182

query I rowsort
SELECT ALL 93 - col1 + + col2 * + 62 AS col0 FROM tab2 AS cor0
----
1468
2496
3622

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8860
SELECT * FROM tab0 AS cor0 WHERE NOT + 80 <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-8860
SELECT * FROM tab0 AS cor0 WHERE NOT + 80 <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - col0 ) * - - 67 FROM tab1 AS cor0
----
-3417
-5695
-6097

query I rowsort
SELECT ALL + col2 * - 92 + + col1 * - + col0 AS col1 FROM tab0 AS cor0
----
-2747
-5539
-9205

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8863
SELECT ALL ( - + ( - - COUNT( * ) ) ) * + COUNT( ALL - + col2 ) DIV + MIN( + 76 ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8863
SELECT ALL ( - + ( - - COUNT ( * ) ) ) * + COUNT ( ALL - + col2 ) / + MIN ( + 76 ) FROM tab0 AS cor0
----
0

query I rowsort
SELECT ALL - col1 AS col2 FROM tab2 AS cor0 WHERE NOT NULL IN ( + col0 + col1 )
----

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 65 + + ( - col0 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8866
SELECT 76 * + CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8866
SELECT 76 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT + col2 * - - 15 AS col2 FROM tab1 WHERE NOT + 37 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( col2 ) + - col1 IN ( - col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ( col0 ) * - col0 FROM tab1
----
-2601
-7225
-8281

onlyif mysql # aggregate syntax: 
query I rowsort label-8870
SELECT DISTINCT - COUNT( * ) + COUNT( * ) FROM tab1, tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-8870
SELECT DISTINCT - COUNT ( * ) + COUNT ( * ) FROM tab1, tab2 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8871
SELECT 23 + + COUNT( * ) FROM tab0 WHERE NOT + col1 > + 80 * 35
----
26

skipif mysql # not compatible
query I rowsort label-8871
SELECT 23 + + COUNT ( * ) FROM tab0 WHERE NOT + col1 > + 80 * 35
----
26

query I rowsort
SELECT DISTINCT - + 76 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-8873
SELECT COUNT( * ) + - MAX( ( - - col0 ) ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-8873
SELECT COUNT ( * ) + - MAX ( ( - - col0 ) ) FROM tab1
----
-88

query I rowsort
SELECT 93 * - 28 AS col1 FROM tab1
----
-2604
-2604
-2604

onlyif mysql # aggregate syntax: 
query I rowsort label-8875
SELECT ALL COUNT( * ) * COUNT( * ) AS col1 FROM tab1 cor0 WHERE NOT ( ( NULL IN ( col2 + - + col2 ) ) )
----
0

skipif mysql # not compatible
query I rowsort label-8875
SELECT ALL COUNT ( * ) * COUNT ( * ) AS col1 FROM tab1 cor0 WHERE NOT ( ( NULL IN ( col2 + - + col2 ) ) )
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 AS cor0 WHERE ( - 67 ) IS NOT NULL
----
-23
-40
-58

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col0 IN ( + col1 + + + 30 )
----

query I rowsort
SELECT - col1 AS col2 FROM tab1 cor0 WHERE col2 + col2 > + col0
----
-14
-47
-5

query I rowsort
SELECT + + ( - 30 ) FROM tab0 AS cor0 WHERE 64 IS NOT NULL
----
-30
-30
-30

query I rowsort
SELECT ALL ( - - 59 ) FROM tab2 cor0
----
59
59
59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 6 col1 FROM tab1 AS cor0
----
6
6
6

onlyif mysql # aggregate syntax: 
query II rowsort label-8882
SELECT + 38 AS col2, + MIN( + col0 ) FROM tab1
----
38
51

skipif mysql # not compatible
query II rowsort label-8882
SELECT + 38 AS col2, + MIN ( + col0 ) FROM tab1
----
38
51

onlyif mysql # aggregate syntax: 
query I rowsort label-8883
SELECT MIN( DISTINCT + 74 ) AS col1 FROM tab2
----
74

skipif mysql # not compatible
query I rowsort label-8883
SELECT MIN ( DISTINCT + 74 ) AS col1 FROM tab2
----
74

query I rowsort
SELECT + col2 - + 29 FROM tab1
----
30
39
67

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - - 0 + col2 col0 FROM tab1
----
59
68
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8886
SELECT + col1 + - 96 * - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8886
SELECT + col1 + - 96 * - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8887
SELECT DISTINCT SUM( DISTINCT - col0 ) - - 75 FROM tab1
----
-152

skipif mysql # not compatible
query I rowsort label-8887
SELECT DISTINCT SUM ( DISTINCT - col0 ) - - 75 FROM tab1
----
-152

onlyif mysql # DIV for integer division: 
query I rowsort label-8888
SELECT + col2 DIV + col0 + col0 * - col0 * col1 * - 88 FROM tab2
----
27754496
33165000
9496608

skipif mysql # not compatible
query I rowsort label-8888
SELECT + col2 / + col0 + col0 * - col0 * col1 * - 88 FROM tab2
----
27754496
33165000
9496608

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8889
SELECT - 95 + CAST( NULL AS SIGNED ) + + col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8889
SELECT - 95 + CAST ( NULL AS INTEGER ) + + col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 AS col2 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-8891
SELECT 10 DIV - col0 * - col1 * 10 AS col2, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-8891
SELECT 10 / - col0 * - col1 * 10 AS col2, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT - 68 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 5febf382d36d6e0191889c41b928786f

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8893
SELECT * FROM tab0 cor0 WHERE NOT + col1 + - 23 * + - col2 * col1 BETWEEN + CAST( - 33 AS SIGNED ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-8893
SELECT * FROM tab0 cor0 WHERE NOT + col1 + - 23 * + - col2 * col1 BETWEEN + CAST ( - 33 AS INTEGER ) AND - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8894
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-8894
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
NULL
59
NULL
68
NULL
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8895
SELECT ALL MIN( ALL - - col2 ) FROM tab1 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-8895
SELECT ALL MIN ( ALL - - col2 ) FROM tab1 AS cor0
----
59

query I rowsort
SELECT ( col1 ) * + col0 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-8897
SELECT DISTINCT - CAST( 65 AS SIGNED ), + col1, - col1 AS col2 FROM tab0 WHERE + col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-8897
SELECT DISTINCT - CAST ( 65 AS INTEGER ), + col1, - col1 AS col2 FROM tab0 WHERE + col1 IS NULL
----

query I rowsort
SELECT ALL ( - + 8 ) FROM tab0
----
-8
-8
-8

query I rowsort
SELECT col0 * ( + col0 ) * + 22 * + - col2 + - 28 * + col1 FROM tab2
----
-1072124
-3606636
-7179376

onlyif mysql # aggregate syntax: 
query I rowsort label-8900
SELECT - COUNT( * ) * - 88 FROM tab1
----
264

skipif mysql # not compatible
query I rowsort label-8900
SELECT - COUNT ( * ) * - 88 FROM tab1
----
264

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + 98 col1 FROM tab0
----
2058
7938
98

query I rowsort
SELECT + 98 * col0 AS col1 FROM tab1
----
4998
8330
8918

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT NULL NOT BETWEEN col0 AND NULL
----

query I rowsort
SELECT ALL - col1 * + 88 * - 23 AS col2 FROM tab2
----
103224
135608
155848

query I rowsort
SELECT ALL 4 * - col0 FROM tab0
----
-348
-388
-60

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) NOT BETWEEN + col2 AND - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8907
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE NOT col0 + + 95 / + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-8907
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT col0 + + 95 / + col1 IS NOT NULL
----
0

query I rowsort
SELECT DISTINCT 13 + + col1 FROM tab0 WHERE NULL IS NULL
----
14
34
94

query I rowsort
SELECT ALL col0 + - col0 FROM tab0 WHERE - - col1 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8910
SELECT col0 + - col0 FROM tab2 AS cor0 WHERE + ( + col0 ) + + col0 BETWEEN ( - col1 / - CAST( NULL AS DECIMAL ) * + col1 * col2 ) AND ( - ( - - 96 ) )
----

skipif mysql # not compatible
query I rowsort label-8910
SELECT col0 + - col0 FROM tab2 AS cor0 WHERE + ( + col0 ) + + col0 BETWEEN ( - col1 / - CAST ( NULL AS REAL ) * + col1 * col2 ) AND ( - ( - - 96 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8911
SELECT + + COUNT( * ) + - ( SUM( + col0 ) ) - - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-221

skipif mysql # not compatible
query I rowsort label-8911
SELECT + + COUNT ( * ) + - ( SUM ( + col0 ) ) - - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-221

query I rowsort
SELECT ALL 63 + + + 63 + + col0 - - 86 * - 1 * + 56 + - - col2 FROM tab2 AS cor0
----
-4557
-4586
-4621

query I rowsort
SELECT + - col0 + - col2 * + 5 AS col1 FROM tab0 AS cor0
----
-137
-250
-592

onlyif mysql # aggregate syntax: 
query I rowsort label-8914
SELECT 8 - + COUNT( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-8914
SELECT 8 - + COUNT ( * ) AS col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col2, col1 col0 FROM tab1 AS cor0
----
-14
14
-47
47
-5
5

query I rowsort
SELECT - - col1 + + + col1 FROM tab1 AS cor0
----
10
28
94

onlyif mysql # DIV for integer division: 
query I rowsort label-8917
SELECT - - col2 + col2 DIV 17 + + 60 col2 FROM tab2 AS cor0
----
102
121
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8917
SELECT - - col2 + col2 / 17 + + 60 col2 FROM tab2 AS cor0
----
102
121
84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8918
SELECT + - col2 + + + CAST( NULL AS SIGNED ) 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-8918
SELECT + - col2 + + + CAST ( NULL AS INTEGER ) col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + ( + 33 ) FROM tab2 AS cor0
----
33

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * - - col1 * + col0 = col0
----

query I rowsort
SELECT ALL col2 + - + col0 AS col2 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-8922
SELECT ALL COUNT( * ) + + 32 FROM tab1 WHERE NOT - + col1 + - col2 IS NOT NULL
----
32

skipif mysql # not compatible
query I rowsort label-8922
SELECT ALL COUNT ( * ) + + 32 FROM tab1 WHERE NOT - + col1 + - col2 IS NOT NULL
----
32

query III rowsort
SELECT * FROM tab2 WHERE 25 * - - col2 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-8924
SELECT ALL + - MIN( ALL + col1 ) AS col1, 62 + - - COUNT( * ) FROM tab0 AS cor0
----
-1
65

skipif mysql # not compatible
query II rowsort label-8924
SELECT ALL + - MIN ( ALL + col1 ) AS col1, 62 + - - COUNT ( * ) FROM tab0 AS cor0
----
-1
65

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( NULL ) >= + col0
----

query II rowsort
SELECT ALL - + col2 AS col1, col0 AS col2 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query I rowsort
SELECT ALL + col2 FROM tab1 AS cor0 WHERE + col0 <> NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 45 col1, col1 AS col1 FROM tab2 cor0
----
45
51
45
67
45
77

query I rowsort
SELECT ALL + - 57 * - 72 + - + col0 AS col0 FROM tab2 AS cor0
----
4029
4040
4058

query I rowsort
SELECT ALL - ( ( 11 ) ) AS col2 FROM tab2 cor0
----
-11
-11
-11

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 * col1 * - + col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8932
SELECT col1 FROM tab2 WHERE NOT CAST( + col0 AS SIGNED ) * + - col1 + + col0 + col1 + + 50 = + CAST( 10 AS SIGNED ) / col2
----
51
67
77

skipif mysql # not compatible
query I rowsort label-8932
SELECT col1 FROM tab2 WHERE NOT CAST ( + col0 AS INTEGER ) * + - col1 + + col0 + col1 + + 50 = + CAST ( 10 AS INTEGER ) / col2
----
51
67
77

query I rowsort
SELECT DISTINCT col0 * + 69 FROM tab2
----
3174
4416
5175

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-8934
SELECT DISTINCT + CAST( NULL AS DECIMAL ) * + - 13 AS col2 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8934
SELECT DISTINCT + CAST ( NULL AS REAL ) * + - 13 AS col2 FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( - 82 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8936
SELECT - 83 * AVG ( - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8936
SELECT - 83 * AVG ( - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-8937
SELECT ALL + 11 DIV 82 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-8937
SELECT ALL + 11 / 82 FROM tab1
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-8938
SELECT - + COUNT( - + 71 ) AS col1 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-8938
SELECT - + COUNT ( - + 71 ) AS col1 FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col2 IS NULL AND ( 28 ) < NULL
----

query I rowsort
SELECT ALL + 95 FROM tab1 AS cor0 WHERE NOT - col1 < NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-8941
SELECT ALL - 77 + + ( + CAST( NULL AS SIGNED ) ) AS col1, col2 col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8941
SELECT ALL - 77 + + ( + CAST ( NULL AS INTEGER ) ) AS col1, col2 col1 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT ALL col0 * - 27 AS col0 FROM tab2
----
-1242
-1728
-2025

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE 12 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT DISTINCT - 83 + - 45 AS col0 FROM tab1
----
-128

onlyif mysql # aggregate syntax: 
query I rowsort label-8945
SELECT + COUNT( * ) + + + COUNT( * ) + - COUNT( ALL + - 33 ) * - COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
99

skipif mysql # not compatible
query I rowsort label-8945
SELECT + COUNT ( * ) + + + COUNT ( * ) + - COUNT ( ALL + - 33 ) * - COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
99

query I rowsort
SELECT ALL - + col2 + - + col2 * 71 FROM tab1 AS cor0
----
-4248
-4896
-6912

query I rowsort
SELECT DISTINCT col2 - 28 FROM tab1 cor0
----
31
40
68

onlyif mysql # aggregate syntax: 
query I rowsort label-8948
SELECT + - COUNT( * ) * COUNT( * ) AS col0 FROM tab2 cor0
----
-9

skipif mysql # not compatible
query I rowsort label-8948
SELECT + - COUNT ( * ) * COUNT ( * ) AS col0 FROM tab2 cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-8949
SELECT ALL MIN( ALL - + col2 ) / COUNT( ALL + - col2 ) * 49 + + 4 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 / - + col0 + - + 84 - + + col1 * - 58 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-8949
SELECT ALL MIN ( ALL - + col2 ) / COUNT ( ALL + - col2 ) * 49 + + 4 AS col0 FROM tab0 AS cor0 WHERE NOT + col2 / - + col0 + - + 84 - + + col1 * - 58 IS NOT NULL
----
NULL

query II rowsort
SELECT DISTINCT - 24 AS col1, - ( + - 34 ) + + 41 FROM tab2 AS cor0 WHERE NOT + col2 + col2 + + col2 NOT IN ( + + 80 )
----

query I rowsort
SELECT ALL + - 44 AS col1 FROM tab2 AS cor0
----
-44
-44
-44

query I rowsort
SELECT - ( 80 ) AS col1 FROM tab0 AS cor0
----
-80
-80
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8953
SELECT DISTINCT - col2 + col2 + - + col0 + + + CAST( NULL AS SIGNED ) * - 12 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-8953
SELECT DISTINCT - col2 + col2 + - + col0 + + + CAST ( NULL AS INTEGER ) * - 12 FROM tab2
----
NULL

query I rowsort
SELECT ALL 14 * - + 55 FROM tab0
----
-770
-770
-770

query I rowsort
SELECT 31 + - 58 FROM tab2
----
-27
-27
-27

query I rowsort
SELECT ALL - 4 + - - 28 FROM tab1
----
24
24
24

query I rowsort
SELECT - 20 + + + 85 FROM tab2
----
65
65
65

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 IS NOT NULL AND NOT 93 * - col1 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-8959
SELECT + CAST( ( + COUNT( * ) ) AS SIGNED ) * + - COUNT( * ) * - MIN( 16 ) + - COUNT( * ) AS col0 FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-8959
SELECT + CAST ( ( + COUNT ( * ) ) AS INTEGER ) * + - COUNT ( * ) * - MIN ( 16 ) + - COUNT ( * ) AS col0 FROM tab1
----
141

query I rowsort
SELECT DISTINCT + col2 + - + ( - col1 ) - - 21 * col0 FROM tab1
----
1181
1849
2026

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + + col2 col0 FROM tab0
----
100
128
31

query III rowsort
SELECT * FROM tab0 WHERE + - ( + - ( 26 ) ) * + + col1 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-8963
SELECT ALL - ( + col0 ) + + col1 DIV - col2 col2 FROM tab2
----
-48
-65
-76

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8963
SELECT ALL - ( + col0 ) + + col1 / - col2 col2 FROM tab2
----
-48
-65
-76

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col0 AND NULL
----

query II rowsort
SELECT ALL + 32, - col1 AS col0 FROM tab2 AS cor0
----
32
-51
32
-67
32
-77

query I rowsort
SELECT ALL - ( - 47 ) AS col0 FROM tab2 AS cor0
----
47
47
47

query III rowsort
SELECT * FROM tab0 WHERE NOT - - col2 + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + + 50 AS col2 FROM tab0 AS cor0
----
50

query I rowsort
SELECT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT col0 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8970
SELECT DISTINCT COUNT( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-8970
SELECT DISTINCT COUNT ( DISTINCT col2 ) AS col2 FROM tab0 AS cor0
----
3

query II rowsort
SELECT + col0 AS col0, col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT - col1 = - + 75 + col0 + + col0 / + 73
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-8973
SELECT - - COUNT( + 49 ) FROM tab0 cor0
----
3

skipif mysql # not compatible
query I rowsort label-8973
SELECT - - COUNT ( + 49 ) FROM tab0 cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 73 col0 FROM tab2 cor0
----
73
73
73

onlyif mysql # aggregate syntax: 
query II rowsort label-8975
SELECT DISTINCT COUNT( * ) col2, 44 col2 FROM tab2
----
3
44

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8975
SELECT DISTINCT COUNT ( * ) col2, 44 col2 FROM tab2
----
3
44

query I rowsort
SELECT DISTINCT - 25 + - 6 FROM tab1 WHERE ( NOT ( NULL ) >= + - 31 * 73 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-8977
SELECT ALL + CAST( NULL AS DECIMAL ) * MIN( - - 38 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-8977
SELECT ALL + CAST ( NULL AS REAL ) * MIN ( - - 38 ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col0, col2 * + 61 col1 FROM tab2
----
51
1403
67
3538
77
2440

onlyif mysql # aggregate syntax: 
query II rowsort label-8979
SELECT ALL + - 77 AS col1, COUNT( * ) col0 FROM tab1 AS cor0
----
-77
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-8979
SELECT ALL + - 77 AS col1, COUNT ( * ) col0 FROM tab1 AS cor0
----
-77
3

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col0 * + + col1 IS NULL OR col2 + 97 <= col1
----

query I rowsort
SELECT - + ( - col2 ) FROM tab0 AS cor0 WHERE + col1 * - col2 * + col0 <> - col0
----
10
47
99

onlyif mysql # aggregate syntax: 
query I rowsort label-8982
SELECT ALL MIN( + col0 ) * 95 + + 2 FROM tab1
----
4847

skipif mysql # not compatible
query I rowsort label-8982
SELECT ALL MIN ( + col0 ) * 95 + + 2 FROM tab1
----
4847

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8983
SELECT DISTINCT - - 23 * + + CAST( NULL AS SIGNED ) col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8983
SELECT DISTINCT - - 23 * + + CAST ( NULL AS INTEGER ) col2 FROM tab2 cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8984
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT 64 IN ( - col0, + col0, + col0 )
----
3

skipif mysql # not compatible
query I rowsort label-8984
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 64 IN ( - col0, + col0, + col0 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-8985
SELECT ( 47 ) + COUNT( * ) AS col2 FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-8985
SELECT ( 47 ) + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
50

query I rowsort
SELECT - col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) >= + 65 * - - ( col1 ) - + ( + - 76 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-8987
SELECT - SUM( ALL - 13 ) + + ( 57 ) AS col0 FROM tab1 cor0
----
96

skipif mysql # not compatible
query I rowsort label-8987
SELECT - SUM ( ALL - 13 ) + + ( 57 ) AS col0 FROM tab1 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-8988
SELECT 79 + SUM( - col2 ) FROM tab2 AS cor0
----
-42

skipif mysql # not compatible
query I rowsort label-8988
SELECT 79 + SUM ( - col2 ) FROM tab2 AS cor0
----
-42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8989
SELECT - - col1 + - 82 + + 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-8989
SELECT - - col1 + - 82 + + CAST ( NULL AS INTEGER ) + col1 col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8990
SELECT - MAX( + col0 ) FROM tab2 WHERE NULL IS NULL
----
-75

skipif mysql # not compatible
query I rowsort label-8990
SELECT - MAX ( + col0 ) FROM tab2 WHERE NULL IS NULL
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-8991
SELECT ALL 45 * - COUNT( * ) FROM tab1
----
-135

skipif mysql # not compatible
query I rowsort label-8991
SELECT ALL 45 * - COUNT ( * ) FROM tab1
----
-135

onlyif mysql # DIV for integer division: 
query I rowsort label-8992
SELECT ALL col0 + 78 DIV 59 AS col2 FROM tab0
----
16
88
98

skipif mysql # not compatible
query I rowsort label-8992
SELECT ALL col0 + 78 / 59 AS col2 FROM tab0
----
16
88
98

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-8993
SELECT COUNT( col1 ) DIV - 41 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8993
SELECT COUNT ( col1 ) / - 41 AS col0 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-8994
SELECT DISTINCT + 44 DIV - col2 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-8994
SELECT DISTINCT + 44 / - col2 AS col1 FROM tab1
----
0

query II rowsort
SELECT + 66 + 38 AS col0, - col1 + 45 + - col1 * + col2 / + col1 FROM tab1 WHERE col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-8996
SELECT ALL + CAST( NULL AS SIGNED ) / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-8996
SELECT ALL + CAST ( NULL AS INTEGER ) / + col0 AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-8997
SELECT ALL + 5 + + ( - ( + COUNT( * ) ) ) col0 FROM tab2
----
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8997
SELECT ALL + 5 + + ( - ( + COUNT ( * ) ) ) col0 FROM tab2
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-8998
SELECT ALL 30 + - COUNT( * ) col1 FROM tab1
----
27

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-8998
SELECT ALL 30 + - COUNT ( * ) col1 FROM tab1
----
27

query I rowsort
SELECT col0 - + col1 + 92 * 60 AS col2 FROM tab1
----
5557
5564
5600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9000
SELECT col0 * + CAST( + - CAST( col2 AS SIGNED ) AS SIGNED ) - - col2 + + 96 AS col2 FROM tab0
----
-562
-764
-9408

skipif mysql # not compatible
query I rowsort label-9000
SELECT col0 * + CAST ( + - CAST ( col2 AS INTEGER ) AS INTEGER ) - - col2 + + 96 AS col2 FROM tab0
----
-562
-764
-9408

onlyif mysql # aggregate syntax: 
query I rowsort label-9001
SELECT ALL + ( + ( + COUNT( * ) ) ) * MIN( + 73 ) AS col0 FROM tab0
----
219

skipif mysql # not compatible
query I rowsort label-9001
SELECT ALL + ( + ( + COUNT ( * ) ) ) * MIN ( + 73 ) AS col0 FROM tab0
----
219

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( - 20 ) col2 FROM tab0 AS cor0
----
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-9003
SELECT - COUNT( DISTINCT + + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9003
SELECT - COUNT ( DISTINCT + + ( col0 ) ) AS col2 FROM tab2 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9004
SELECT COUNT( * ) + + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
68

skipif mysql # not compatible
query I rowsort label-9004
SELECT COUNT ( * ) + + 59 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
68

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col2 + - 55 / + - col1 ) NOT IN ( + col0, + ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9006
SELECT DISTINCT - COUNT( * ) col0 FROM tab0, tab0 AS cor0
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9006
SELECT DISTINCT - COUNT ( * ) col0 FROM tab0, tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9007
SELECT + + COUNT( + + ( - 14 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9007
SELECT + + COUNT ( + + ( - 14 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT + col2 * + + 26 FROM tab0 cor0
----
1222
2574
260

onlyif mysql # aggregate syntax: 
query I rowsort label-9009
SELECT MIN( + col2 ) * + 98 col0 FROM tab0 AS cor0
----
980

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9009
SELECT MIN ( + col2 ) * + 98 col0 FROM tab0 AS cor0
----
980

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9010
SELECT col0 * 21 FROM tab1 WHERE NOT 18 + + - CAST( NULL AS SIGNED ) IS NOT NULL
----
1071
1785
1911

skipif mysql # not compatible
query I rowsort label-9010
SELECT col0 * 21 FROM tab1 WHERE NOT 18 + + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
1071
1785
1911

onlyif mysql # aggregate syntax: 
query I rowsort label-9011
SELECT ALL + 11 * - COUNT( * ) FROM tab0
----
-33

skipif mysql # not compatible
query I rowsort label-9011
SELECT ALL + 11 * - COUNT ( * ) FROM tab0
----
-33

query I rowsort
SELECT DISTINCT + ( - 43 ) + - ( + ( + 88 ) ) AS col0 FROM tab1
----
-131

query I rowsort
SELECT col0 * ( - col0 ) AS col2 FROM tab1
----
-2601
-7225
-8281

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 31 / + 10 IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - 61 * - col0 FROM tab2 AS cor0
----
2806
3904
4575

query I rowsort
SELECT DISTINCT + ( - col1 ) + 68 FROM tab1 AS cor0
----
21
54
63

query I rowsort
SELECT ALL - col2 + + - col2 AS col2 FROM tab1 AS cor0 WHERE NULL > - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9018
SELECT DISTINCT - 1 + + COUNT( * ) FROM tab1 cor0
----
2

skipif mysql # not compatible
query I rowsort label-9018
SELECT DISTINCT - 1 + + COUNT ( * ) FROM tab1 cor0
----
2

query I rowsort
SELECT + col0 - + + col0 AS col2 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 IN ( + 60 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9021
SELECT ALL - COUNT( * ) * + ( + + 99 ) FROM tab0 AS cor0
----
-297

skipif mysql # not compatible
query I rowsort label-9021
SELECT ALL - COUNT ( * ) * + ( + + 99 ) FROM tab0 AS cor0
----
-297

query II rowsort
SELECT + col2 + col2 * + - 81 + - + col0 - - - 69 AS col1, - col0 + 37 AS col2 FROM tab2
----
-1955
-9
-3333
-27
-4784
-38

query I rowsort
SELECT col0 AS col0 FROM tab2 WHERE + + col1 IS NOT NULL
----
46
64
75

query I rowsort
SELECT DISTINCT 21 * + 20 + - col1 AS col1 FROM tab1
----
373
406
415

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9025
SELECT SUM( ALL - col2 ) / + - CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9025
SELECT SUM ( ALL - col2 ) / + - CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 19 * - - col0 / - col0 / + 38 col2 FROM tab1 WHERE - + col1 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * 56 * 2 col2 FROM tab1 cor0
----
-10752
-6608
-7616

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL BETWEEN col0 * col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9029
SELECT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-9029
SELECT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query II rowsort label-9030
SELECT COUNT( * ), - COUNT( * ) + 74 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) IS NULL
----
3
71

skipif mysql # not compatible
query II rowsort label-9030
SELECT COUNT ( * ), - COUNT ( * ) + 74 AS col2 FROM tab1 AS cor0 WHERE NOT - ( + col0 ) IS NULL
----
3
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9031
SELECT ALL + 8 DIV + COUNT( * ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9031
SELECT ALL + 8 / + COUNT ( * ) FROM tab1 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-9032
SELECT col0 DIV - 62 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9032
SELECT col0 / - 62 AS col2 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 47 * - - col2 col0 FROM tab0 AS cor0
----
2209
4653
470

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9034
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-9034
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( NULL AS INTEGER ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9035
SELECT + + 0 + - + col0 * + col2 / - + ( - + CAST( NULL AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9035
SELECT + + 0 + - + col0 * + col2 / - + ( - + CAST ( NULL AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9036
SELECT + 92 + SUM( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-9036
SELECT + 92 + SUM ( ALL + - col1 ) AS col1 FROM tab0 AS cor0
----
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-9037
SELECT 14 * COUNT( * ) + - COUNT( * ) * + 59 FROM tab0
----
-135

skipif mysql # not compatible
query I rowsort label-9037
SELECT 14 * COUNT ( * ) + - COUNT ( * ) * + 59 FROM tab0
----
-135

query I rowsort
SELECT DISTINCT col1 * - col1 * 9 + + - ( + col0 ) AS col1 FROM tab2
----
-23455
-40476
-53425

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9039
SELECT ALL 7 / CAST( NULL AS SIGNED ) * 74 + 66 + + col1 * + + col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9039
SELECT ALL 7 / CAST ( NULL AS INTEGER ) * 74 + 66 + + col1 * + + col2 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + - ( - col0 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - 46 * 79 - - col0 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) NOT IN ( + col0, col1, col1 / - col1 * + col1 - + col1 + - ( col2 ) * col0 / + col2 )
----

query I rowsort
SELECT DISTINCT + 64 - + + col2 AS col0 FROM tab0 AS cor0
----
-35
17
54

query I rowsort
SELECT ALL - 41 * + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - col1 * + + ( col1 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT - - col1 - + col1 - - ( 87 ) - col1 AS col0 FROM tab0 AS cor0
----
6
66
86

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 30 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 - - - col2 + - - col0 AS col2 FROM tab2 AS cor0
----
46
64
75

query I rowsort
SELECT ALL + - col1 * 43 AS col1 FROM tab2 AS cor0
----
-2193
-2881
-3311

onlyif mysql # aggregate syntax: 
query I rowsort label-9048
SELECT DISTINCT - MIN( ALL + - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9048
SELECT DISTINCT - MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT ALL col0 * - col2 AS col2 FROM tab1 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT DISTINCT + 60 * - 76 * - col1 FROM tab0
----
369360
4560
95760

query I rowsort
SELECT + ( + col1 ) * - 96 + ( - col2 ) FROM tab1
----
-1440
-4580
-539

query II rowsort
SELECT col1 AS col0, 75 FROM tab0
----
1
75
21
75
81
75

query I rowsort
SELECT DISTINCT col1 * - 7 FROM tab0
----
-147
-567
-7

onlyif mysql # DIV for integer division: 
query I rowsort label-9054
SELECT - - col0 DIV - col0 FROM tab1 cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9054
SELECT - - col0 / - col0 FROM tab1 cor0
----
-1
-1
-1

query I rowsort
SELECT ALL - col1 - - 74 AS col2 FROM tab2 AS cor0 WHERE ( NOT 94 * - col0 IS NOT NULL )
----

query I rowsort
SELECT DISTINCT - + 30 * col1 FROM tab0 AS cor0
----
-2430
-30
-630

onlyif mysql # DIV for integer division: 
query I rowsort label-9057
SELECT ALL - col0 DIV ( - - col2 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9057
SELECT ALL - col0 / ( - - col2 ) AS col0 FROM tab2 AS cor0
----
-1
-1
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 55 + + 95 * 29 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9059
SELECT ALL + + ( - COUNT( - 28 ) ) * 6 AS col0 FROM tab1 AS cor0
----
-18

skipif mysql # not compatible
query I rowsort label-9059
SELECT ALL + + ( - COUNT ( - 28 ) ) * 6 AS col0 FROM tab1 AS cor0
----
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-9060
SELECT ALL - - MIN( ALL - col0 ) col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9060
SELECT ALL - - MIN ( ALL - col0 ) col2 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + - col0 AS col1 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51
-85
-91

onlyif mysql # DIV for integer division: 
query I rowsort label-9062
SELECT col1 + - + col1 DIV - 21 col0 FROM tab2
----
53
70
80

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9062
SELECT col1 + - + col1 / - 21 col0 FROM tab2
----
53
70
80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9063
SELECT ALL CAST( NULL AS SIGNED ) * + 35 * + 52 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9063
SELECT ALL CAST ( NULL AS INTEGER ) * + 35 * + 52 FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT - 22 * + col1 AS col0, col2 FROM tab2
----
-1122
23
-1474
58
-1694
40

query I rowsort
SELECT ALL col1 FROM tab1 AS cor0 WHERE NOT col1 / - col0 * col0 IS NOT NULL
----

query I rowsort
SELECT col2 AS col2 FROM tab1 AS cor0 WHERE 0 IS NULL
----

query I rowsort
SELECT DISTINCT ( col1 ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
21
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9068
SELECT + MAX( DISTINCT - ( - col2 ) ) FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-9068
SELECT + MAX ( DISTINCT - ( - col2 ) ) FROM tab2 AS cor0
----
58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col1 FROM tab1 WHERE + col2 BETWEEN - col2 AND - + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + + - col0 - col2 + - col0 * col1 + + - col1 + col0 col1 FROM tab0
----
-1296
-1848
-98

query I rowsort
SELECT DISTINCT + 87 + - + 11 + col1 * 17 FROM tab1 AS cor0
----
161
314
875

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND 12 / + 58
----

query I rowsort
SELECT - - 26 AS col1 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d1c3129ed17fd721d4876b21c035584

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col1 ) col1 FROM tab1
----
14
47
5

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9076
SELECT DISTINCT + - col0 * + col1 AS col1, CAST( NULL AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IN ( - col0, + col0, - + col0 )
----

skipif mysql # not compatible
query II rowsort label-9076
SELECT DISTINCT + - col0 * + col1 AS col1, CAST ( NULL AS REAL ) FROM tab2 AS cor0 WHERE NULL IN ( - col0, + col0, - + col0 )
----

query II rowsort
SELECT DISTINCT 52 AS col1, col2 AS col2 FROM tab1 AS cor0
----
52
59
52
68
52
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - 71 * col2 < - 7
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9079
SELECT ALL - - COUNT( - - col2 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9079
SELECT ALL - - COUNT ( - - col2 ) AS col0 FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL ( - - 50 ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
50
50
50

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE ( NULL ) = col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9082
SELECT DISTINCT - CAST( 56 AS SIGNED ), + col0 + + col1 AS col2 FROM tab1
----
-56
138
-56
65
-56
90

skipif mysql # not compatible
query II rowsort label-9082
SELECT DISTINCT - CAST ( 56 AS INTEGER ), + col0 + + col1 AS col2 FROM tab1
----
-56
138
-56
65
-56
90

query I rowsort
SELECT + 81 * + col2 AS col0 FROM tab2
----
1863
3240
4698

onlyif mysql # aggregate syntax: 
query I rowsort label-9084
SELECT 13 * - COUNT( * ) AS col0 FROM tab0
----
-39

skipif mysql # not compatible
query I rowsort label-9084
SELECT 13 * - COUNT ( * ) AS col0 FROM tab0
----
-39

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( NULL ) <> + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9086
SELECT SUM( - CAST( - col0 AS SIGNED ) ) FROM tab1 AS cor0
----
227

skipif mysql # not compatible
query I rowsort label-9086
SELECT SUM ( - CAST ( - col0 AS INTEGER ) ) FROM tab1 AS cor0
----
227

onlyif mysql # aggregate syntax: 
query I rowsort label-9087
SELECT ALL - ( + + 30 ) + 68 * - COUNT( * ) FROM tab2 AS cor0
----
-234

skipif mysql # not compatible
query I rowsort label-9087
SELECT ALL - ( + + 30 ) + 68 * - COUNT ( * ) FROM tab2 AS cor0
----
-234

query I rowsort
SELECT col1 * + - 45 * - - 21 * + col2 FROM tab2
----
-1108485
-2910600
-3672270

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9089
SELECT + COUNT( * ) + - + CAST( NULL AS SIGNED ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-9089
SELECT + COUNT ( * ) + - + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query I rowsort
SELECT ALL 20 + + - col0 + 13 * - col0 + + col2 FROM tab1
----
-1111
-1186
-598

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col0 + - 95 col2 FROM tab2 AS cor0
----
-20
-31
-49

query II rowsort
SELECT + + ( + + col0 ) + - col2 AS col0, + col1 AS col1 FROM tab0 AS cor0
----
-2
1
-32
81
77
21

onlyif mysql # aggregate syntax: 
query I rowsort label-9093
SELECT DISTINCT ( + MAX( ALL 37 ) ) FROM tab2 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-9093
SELECT DISTINCT ( + MAX ( ALL 37 ) ) FROM tab2 AS cor0
----
37

query I rowsort
SELECT + 17 + - col2 AS col2 FROM tab0 AS cor0
----
-30
-82
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9095
SELECT DISTINCT - CAST( - 71 AS SIGNED ) FROM tab2 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-9095
SELECT DISTINCT - CAST ( - 71 AS INTEGER ) FROM tab2 AS cor0
----
71

query II rowsort
SELECT - 22 + + + 66 + - col0 AS col2, + col1 * - 20 FROM tab2 AS cor0
----
-2
-1020
-20
-1540
-31
-1340

onlyif mysql # aggregate syntax: 
query I rowsort label-9097
SELECT DISTINCT 20 * - COUNT( * ) * + COUNT( * ) col2 FROM tab1
----
-180

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9097
SELECT DISTINCT 20 * - COUNT ( * ) * + COUNT ( * ) col2 FROM tab1
----
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 + 93, col2 col2 FROM tab2
----
139
23
157
40
168
58

query II rowsort
SELECT + 72 + + 90 AS col0, + col1 FROM tab1
----
162
14
162
47
162
5

query I rowsort
SELECT ALL 74 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9101
SELECT DISTINCT 92 + + CAST( + col0 AS SIGNED ) FROM tab1
----
143
177
183

skipif mysql # not compatible
query I rowsort label-9101
SELECT DISTINCT 92 + + CAST ( + col0 AS INTEGER ) FROM tab1
----
143
177
183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9102
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9102
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - col2 AS col2 FROM tab2 WHERE NULL IS NULL
----
NULL

query I rowsort
SELECT - col2 - col0 AS col2 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT - col0 * - col2 * 67 AS col1 FROM tab2
----
171520
291450
70886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9105
SELECT col2 - - CAST( + col2 AS SIGNED ) + + col1 AS col2 FROM tab0 AS cor0
----
175
199
41

skipif mysql # not compatible
query I rowsort label-9105
SELECT col2 - - CAST ( + col2 AS INTEGER ) + + col1 AS col2 FROM tab0 AS cor0
----
175
199
41

onlyif mysql # aggregate syntax: 
query I rowsort label-9106
SELECT DISTINCT ( + SUM( ALL - col0 ) ) * + COUNT( * ) FROM tab0 AS cor0
----
-597

skipif mysql # not compatible
query I rowsort label-9106
SELECT DISTINCT ( + SUM ( ALL - col0 ) ) * + COUNT ( * ) FROM tab0 AS cor0
----
-597

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 78 col0 FROM tab0 AS cor0
----
78

query I rowsort
SELECT 65 + 96 AS col1 FROM tab1
----
161
161
161

query I rowsort
SELECT DISTINCT - col0 * - 89 - col1 AS col0 FROM tab1 WHERE NOT - - col0 + + col1 = + - col0 * col2
----
4525
7560
8052

query I rowsort
SELECT ALL 35 FROM tab1 cor0
----
35
35
35

query I rowsort
SELECT + 54 * + col1 AS col0 FROM tab1 AS cor0
----
2538
270
756

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col0 * col1 IS NOT NULL
----

query II rowsort
SELECT - - col1 AS col2, - col0 FROM tab0 AS cor0 WHERE NOT + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9114
SELECT DISTINCT 4 * + MAX( - + col0 ) AS col1, 88 AS col1 FROM tab1 AS cor0
----
-204
88

skipif mysql # not compatible
query II rowsort label-9114
SELECT DISTINCT 4 * + MAX ( - + col0 ) AS col1, 88 AS col1 FROM tab1 AS cor0
----
-204
88

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9115
SELECT DISTINCT COUNT( CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9115
SELECT DISTINCT COUNT ( CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
0

query II rowsort
SELECT ALL 43, col0 AS col2 FROM tab2
----
43
46
43
64
43
75

query II rowsort
SELECT col1 AS col1, 54 * + col0 * - col1 + + 82 AS col2 FROM tab2
----
51
-126602
67
-271268
77
-266030

onlyif mysql # aggregate syntax: 
query I rowsort label-9118
SELECT DISTINCT + - SUM( ALL - col0 ) FROM tab1 WHERE NOT col0 IS NULL
----
227

skipif mysql # not compatible
query I rowsort label-9118
SELECT DISTINCT + - SUM ( ALL - col0 ) FROM tab1 WHERE NOT col0 IS NULL
----
227

onlyif mysql # DIV for integer division: 
query I rowsort label-9119
SELECT col1 DIV col2 * - 25 FROM tab0
----
-25
-50
0

skipif mysql # not compatible
query I rowsort label-9119
SELECT col1 / col2 * - 25 FROM tab0
----
-25
-50
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9120
SELECT - CAST( NULL AS SIGNED ) AS col2, - col0 * - col0 FROM tab2
----
NULL
2116
NULL
4096
NULL
5625

skipif mysql # not compatible
query II rowsort label-9120
SELECT - CAST ( NULL AS INTEGER ) AS col2, - col0 * - col0 FROM tab2
----
NULL
2116
NULL
4096
NULL
5625

onlyif mysql # aggregate syntax: 
query I rowsort label-9121
SELECT COUNT( * ) * + 91 AS col1 FROM tab1
----
273

skipif mysql # not compatible
query I rowsort label-9121
SELECT COUNT ( * ) * + 91 AS col1 FROM tab1
----
273

onlyif mysql # aggregate syntax: 
query I rowsort label-9122
SELECT + MAX( ALL ( - 39 ) ) AS col2 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-9122
SELECT + MAX ( ALL ( - 39 ) ) AS col2 FROM tab2
----
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * + 14 col0 FROM tab2
----
1078
714
938

onlyif mysql # aggregate syntax: 
query II rowsort label-9124
SELECT + COUNT( * ) col0, - 67 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-67

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9124
SELECT + COUNT ( * ) col0, - 67 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3
-67

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT NULL <> 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9126
SELECT DISTINCT - COUNT( * ) * - COUNT( * ) + - - 3 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9126
SELECT DISTINCT - COUNT ( * ) * - COUNT ( * ) + - - 3 FROM tab1 AS cor0
----
12

query I rowsort
SELECT ALL + 83 + - + 13 FROM tab0 cor0
----
70
70
70

query I rowsort
SELECT DISTINCT + 37 + - 31 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9129
SELECT ALL CAST( NULL AS SIGNED ) * - col0 + - col1 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9129
SELECT ALL CAST ( NULL AS INTEGER ) * - col0 + - col1 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 78 col0 FROM tab2 AS cor0
----
-78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9131
SELECT ALL CAST( NULL AS SIGNED ) + + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9131
SELECT ALL CAST ( NULL AS INTEGER ) + + + col1 AS col1 FROM tab2 cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9132
SELECT 24 - + + COUNT( * ) FROM tab2
----
21

skipif mysql # not compatible
query I rowsort label-9132
SELECT 24 - + + COUNT ( * ) FROM tab2
----
21

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + 73 BETWEEN NULL AND + + 59
----

query I rowsort
SELECT DISTINCT - 70 + - col0 FROM tab0
----
-157
-167
-85

query II rowsort
SELECT + 4 * + + col1 + - col1 + + - col1, col0 + + col1 AS col1 FROM tab1
----
10
90
28
65
94
138

onlyif mysql # aggregate syntax: 
query I rowsort label-9136
SELECT DISTINCT COUNT( * ) + + 38 FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-9136
SELECT DISTINCT COUNT ( * ) + + 38 FROM tab2
----
41

query I rowsort
SELECT ( + col1 ) + + col0 AS col1 FROM tab2 AS cor0
----
141
142
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( + 8 ) * 46 + + 75 col2 FROM tab1 AS cor0
----
443
443
443

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL >= col2 / + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9140
SELECT ALL - COUNT( * ) * + 13 FROM tab2 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-9140
SELECT ALL - COUNT ( * ) * + 13 FROM tab2 AS cor0
----
-39

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 90 * - - 3 >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col0 <> + 7
----

query II rowsort
SELECT - col1 + - 99 AS col1, 1 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( + col1 * col1 - - col2 * + col1 + col0, 59 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9144
SELECT ALL + COUNT( * ) - - COUNT( ( 17 ) ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-9144
SELECT ALL + COUNT ( * ) - - COUNT ( ( 17 ) ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-9145
SELECT - ( - MAX( col2 ) ) AS col2 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-9145
SELECT - ( - MAX ( col2 ) ) AS col2 FROM tab1
----
96

query I rowsort
SELECT ALL + - col1 * + - ( + + col2 ) AS col2 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9147
SELECT ALL + MAX( DISTINCT + + 2 ) FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9147
SELECT ALL + MAX ( DISTINCT + + 2 ) FROM tab1 AS cor0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-9148
SELECT ( - - MIN( DISTINCT col1 ) ) AS col1 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-9148
SELECT ( - - MIN ( DISTINCT col1 ) ) AS col1 FROM tab2
----
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col1 AS col0, col1 col1 FROM tab2
----
-51
51
-67
67
-77
77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9150
SELECT DISTINCT + SUM( + CAST( NULL AS SIGNED ) ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9150
SELECT DISTINCT + SUM ( + CAST ( NULL AS INTEGER ) ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9151
SELECT ALL + MAX( - - 26 ) FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9151
SELECT ALL + MAX ( - - 26 ) FROM tab0 AS cor0
----
26

query I rowsort
SELECT DISTINCT + + 19 + - + col0 + + - 15 FROM tab0 cor0
----
-11
-83
-93

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 57 + - - 1 + - col0 + + 47 BETWEEN - + ( col2 ) AND col1 + + 4
----
64
77
40
75
67
58

query II rowsort
SELECT ALL - 69 AS col0, + col1 FROM tab2
----
-69
51
-69
67
-69
77

query I rowsort
SELECT ALL + col2 * - + col1 FROM tab1 WHERE - + col1 / + - 16 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 * + 61 + 14 col0 FROM tab1
----
4711

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9157
SELECT DISTINCT 84 * + CAST( NULL AS SIGNED ) + - - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-9157
SELECT DISTINCT 84 * + CAST ( NULL AS INTEGER ) + - - col1 FROM tab2
----
NULL

query I rowsort
SELECT - col2 AS col2 FROM tab2 WHERE col0 = NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - col1 + - 1 + - - 5 col0 FROM tab0 AS cor0
----
-17
-77
3

query I rowsort
SELECT DISTINCT - col0 + - + 26 AS col1 FROM tab0 AS cor0
----
-113
-123
-41

query I rowsort
SELECT ALL - 86 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND + 70 + + ( - 57 )
----

query I rowsort
SELECT ALL + + ( + + 34 ) - - ( + col2 ) FROM tab0 AS cor0
----
133
44
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9163
SELECT + + COUNT( * ) + - - ( + 90 ) AS col1 FROM tab1 AS cor0
----
93

skipif mysql # not compatible
query I rowsort label-9163
SELECT + + COUNT ( * ) + - - ( + 90 ) AS col1 FROM tab1 AS cor0
----
93

query I rowsort
SELECT 35 + col1 AS col1 FROM tab1 AS cor0
----
40
49
82

query I rowsort
SELECT DISTINCT + 56 * + 97 AS col1 FROM tab1 AS cor0
----
5432

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 1 col0 FROM tab2 cor0 WHERE col0 IS NOT NULL
----
1
1
1

query I rowsort
SELECT col2 + - col0 * 64 AS col1 FROM tab2 AS cor0
----
-2921
-4056
-4742

query I rowsort
SELECT DISTINCT + - 33 * - 11 FROM tab1 AS cor0
----
363

query III rowsort
SELECT * FROM tab1 WHERE ( + - col1 ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 23 + - 11 + - 98 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE col2 < + 25 - - col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 99 - + col2 * + - 34 FROM tab0
----
1499
241
3267

query I rowsort
SELECT DISTINCT col2 + + ( - col1 ) * col0 AS col2 FROM tab2
----
-2323
-4888
-4967

query I rowsort
SELECT 40 - 2 FROM tab2 AS cor0
----
38
38
38

query I rowsort
SELECT - col2 - + - col2 + + 43 FROM tab0 AS cor0
----
43
43
43

query II rowsort
SELECT ALL - 5 * - - 63 - + col2 + - col2 - 87 * + col2 * col1 AS col0, col1 AS col1 FROM tab1 AS cor0
----
-117435
14
-26098
5
-278503
47

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE + 52 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9178
SELECT DISTINCT + + MAX( - col2 ) * - COUNT( * ) AS col0 FROM tab2 WHERE NOT col1 <= + 84 + col0 * + 77
----
NULL

skipif mysql # not compatible
query I rowsort label-9178
SELECT DISTINCT + + MAX ( - col2 ) * - COUNT ( * ) AS col0 FROM tab2 WHERE NOT col1 <= + 84 + col0 * + 77
----
NULL

query I rowsort
SELECT - 5 * col0 FROM tab0
----
-435
-485
-75

query I rowsort
SELECT + + 70 * + ( col0 ) AS col2 FROM tab0 cor0
----
1050
6090
6790

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9181
SELECT DISTINCT + + 80 * - CAST( - 60 AS SIGNED ) * col0 AS col2 FROM tab2 AS cor0
----
220800
307200
360000

skipif mysql # not compatible
query I rowsort label-9181
SELECT DISTINCT + + 80 * - CAST ( - 60 AS INTEGER ) * col0 AS col2 FROM tab2 AS cor0
----
220800
307200
360000

query I rowsort
SELECT + col1 FROM tab2 cor0 WHERE NOT col2 IN ( + 66, col0 * - 24 )
----
51
67
77

onlyif mysql # aggregate syntax: 
query I rowsort label-9183
SELECT DISTINCT - + COUNT( ALL + 30 ) AS col2 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9183
SELECT DISTINCT - + COUNT ( ALL + 30 ) AS col2 FROM tab2 AS cor0
----
-3

query I rowsort
SELECT - ( + 12 ) FROM tab2 AS cor0
----
-12
-12
-12

onlyif mysql # aggregate syntax: 
query I rowsort label-9185
SELECT ALL MAX( DISTINCT - 70 ) FROM tab2
----
-70

skipif mysql # not compatible
query I rowsort label-9185
SELECT ALL MAX ( DISTINCT - 70 ) FROM tab2
----
-70

query I rowsort
SELECT DISTINCT + 38 * + + col1 FROM tab0
----
3078
38
798

query I rowsort
SELECT ALL ( + 62 ) AS col2 FROM tab1
----
62
62
62

onlyif mysql # DIV for integer division: 
query I rowsort label-9188
SELECT ALL + col1 - - col2 DIV - + 36 col2 FROM tab1 WHERE NOT - col0 IS NULL
----
12
4
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9188
SELECT ALL + col1 - - col2 / - + 36 col2 FROM tab1 WHERE NOT - col0 IS NULL
----
12
4
46

query I rowsort
SELECT DISTINCT - 11 * ( + col1 ) * + col1 * - ( + - col2 ) + + col0 * 70 FROM tab1
----
-10275
-1645962
-203406

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9190
SELECT * FROM tab1 AS cor0 WHERE CAST( NULL AS SIGNED ) / - - ( + - col2 ) - - + 75 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-9190
SELECT * FROM tab1 AS cor0 WHERE CAST ( NULL AS INTEGER ) / - - ( + - col2 ) - - + 75 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9191
SELECT 20 DIV + col1 AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9191
SELECT 20 / + col1 AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT + 70 AS col0 FROM tab1 AS cor0 WHERE + 11 * - col1 IS NULL
----

query I rowsort
SELECT ALL - 16 * col0 + col1 AS col0 FROM tab1 AS cor0
----
-1355
-1409
-802

query I rowsort
SELECT DISTINCT - + ( + + col2 ) FROM tab0 AS cor0
----
-10
-47
-99

query I rowsort
SELECT DISTINCT - 82 * - col2 * col0 - col2 + + col0 + + col2 * - 80 FROM tab1 AS cor0
----
393747
406536
501999

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col0 + + + 74 > - 28 + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9197
SELECT - COUNT( * ) - - COUNT( + ( + 55 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9197
SELECT - COUNT ( * ) - - COUNT ( + ( + 55 ) ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + - + col0 col0 FROM tab1 cor0
----
-23
-26
45

query I rowsort
SELECT col0 + + - 0 AS col2 FROM tab2
----
46
64
75

query I rowsort
SELECT col0 + - + 35 FROM tab0
----
-20
52
62

onlyif mysql # aggregate syntax: 
query II rowsort label-9201
SELECT DISTINCT - 55 AS col2, COUNT( * ) FROM tab2
----
-55
3

skipif mysql # not compatible
query II rowsort label-9201
SELECT DISTINCT - 55 AS col2, COUNT ( * ) FROM tab2
----
-55
3

query I rowsort
SELECT ALL - + col1 FROM tab2 WHERE NOT + - col2 >= NULL
----

query I rowsort
SELECT DISTINCT + col0 AS col0 FROM tab0 WHERE + col2 IS NULL
----

query I rowsort
SELECT DISTINCT col0 * 83 FROM tab1
----
4233
7055
7553

onlyif mysql # aggregate syntax: 
query I rowsort label-9205
SELECT DISTINCT COUNT( * ) * - 76 AS col0 FROM tab1
----
-228

skipif mysql # not compatible
query I rowsort label-9205
SELECT DISTINCT COUNT ( * ) * - 76 AS col0 FROM tab1
----
-228

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9206
SELECT + CAST( + - CAST( - col0 AS DECIMAL ) AS SIGNED ), + ( col2 ) FROM tab1
----
51
96
85
59
91
68

skipif mysql # not compatible
query II rowsort label-9206
SELECT + CAST ( + - CAST ( - col0 AS REAL ) AS INTEGER ), + ( col2 ) FROM tab1
----
51
96
85
59
91
68

onlyif mysql # DIV for integer division: 
query II rowsort label-9207
SELECT - 30 DIV + col2, col0 FROM tab1
----
0
51
0
85
0
91

skipif mysql # not compatible
query II rowsort label-9207
SELECT - 30 / + col2, col0 FROM tab1
----
0
51
0
85
0
91

query I rowsort
SELECT ALL + col1 * - - col2 + + col0 * - col2 FROM tab1 cor0
----
-2992
-3552
-4720

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT 51 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col0 + 31 + + col0 AS col1 FROM tab2 AS cor0 WHERE NULL NOT BETWEEN col2 AND - - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9211
SELECT + + MIN( + - 3 ) AS col1 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9211
SELECT + + MIN ( + - 3 ) AS col1 FROM tab0 AS cor0
----
-3

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT ( 20 ) IS NOT NULL
----

query I rowsort
SELECT + 37 AS col0 FROM tab0, tab2 cor0
----
9 values hashing to a10b03e72860b949bdff53827700a9a8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9214
SELECT - - col2 * + 40 * CAST( NULL AS SIGNED ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9214
SELECT - - col2 * + 40 * CAST ( NULL AS INTEGER ) + col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 WHERE + col2 > NULL
----

query I rowsort
SELECT ALL - col0 FROM tab1 WHERE ( NULL ) = ( col1 )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9217
SELECT * FROM tab1 WHERE + CAST( + 44 AS DECIMAL ) NOT BETWEEN ( + col1 + - col2 ) AND + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9217
SELECT * FROM tab1 WHERE + CAST ( + 44 AS REAL ) NOT BETWEEN ( + col1 + - col2 ) AND + 27
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + col2 * - 88 AS col2 FROM tab0
----
-4136
-8712
-880

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9219
SELECT CAST( NULL AS SIGNED ) * COUNT( * ) FROM tab0 WHERE NOT NULL <> col0 + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-9219
SELECT CAST ( NULL AS INTEGER ) * COUNT ( * ) FROM tab0 WHERE NOT NULL <> col0 + col2
----
NULL

query I rowsort
SELECT DISTINCT - 7 - col2 FROM tab0
----
-106
-17
-54

onlyif mysql # aggregate syntax: 
query I rowsort label-9221
SELECT 73 * SUM( 13 * - col2 ) AS col2 FROM tab2
----
-114829

skipif mysql # not compatible
query I rowsort label-9221
SELECT 73 * SUM ( 13 * - col2 ) AS col2 FROM tab2
----
-114829

query III rowsort
SELECT * FROM tab2 WHERE ( 49 + + ( 45 ) ) NOT IN ( col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + col1 ) IN ( col1 * col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-9224
SELECT DISTINCT ( COUNT( * ) ) * ( + 29 ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9224
SELECT DISTINCT ( COUNT ( * ) ) * ( + 29 ) FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9225
SELECT DISTINCT COUNT( - col0 ) + MIN( DISTINCT ( + col2 ) ) AS col2 FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-9225
SELECT DISTINCT COUNT ( - col0 ) + MIN ( DISTINCT ( + col2 ) ) AS col2 FROM tab0
----
13

onlyif mysql # DIV for integer division: 
query I rowsort label-9226
SELECT ALL 86 DIV - col0 FROM tab1 WHERE col1 + 82 IS NOT NULL
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9226
SELECT ALL 86 / - col0 FROM tab1 WHERE col1 + 82 IS NOT NULL
----
-1
-1
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9227
SELECT DISTINCT - CAST( col1 AS SIGNED ) * col1 FROM tab1
----
-196
-2209
-25

skipif mysql # not compatible
query I rowsort label-9227
SELECT DISTINCT - CAST ( col1 AS INTEGER ) * col1 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT col1 * - col0 + col1 / col0 AS col0 FROM tab0 WHERE + col1 = - ( col1 )
----

query I rowsort
SELECT + 89 * col0 FROM tab0
----
1335
7743
8633

onlyif mysql # DIV for integer division: 
query I rowsort label-9230
SELECT DISTINCT 34 DIV 69 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9230
SELECT DISTINCT 34 / 69 FROM tab1
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9231
SELECT ALL 23 DIV col0 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9231
SELECT ALL 23 / col0 FROM tab1
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9232
SELECT ALL + 17 * - CAST( COUNT( * ) AS SIGNED ) + SUM( DISTINCT col0 ) FROM tab0 WHERE NOT NULL <= 87
----
NULL

skipif mysql # not compatible
query I rowsort label-9232
SELECT ALL + 17 * - CAST ( COUNT ( * ) AS INTEGER ) + SUM ( DISTINCT col0 ) FROM tab0 WHERE NOT NULL <= 87
----
NULL

query I rowsort
SELECT + 58 * col0 FROM tab0 WHERE + 73 + - col1 IS NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab2 WHERE NOT 93 IS NOT NULL
----

query I rowsort
SELECT ALL - 83 + - 99 FROM tab0
----
-182
-182
-182

query I rowsort
SELECT 64 FROM tab0 WHERE NOT NULL IS NOT NULL
----
64
64
64

onlyif mysql # DIV for integer division: 
query I rowsort label-9237
SELECT DISTINCT + 76 DIV - 84 + - 61 AS col1 FROM tab0
----
-61

skipif mysql # not compatible
query I rowsort label-9237
SELECT DISTINCT + 76 / - 84 + - 61 AS col1 FROM tab0
----
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-9238
SELECT + SUM( col2 ) - - 12 FROM tab0
----
168

skipif mysql # not compatible
query I rowsort label-9238
SELECT + SUM ( col2 ) - - 12 FROM tab0
----
168

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - 10 <= - col0
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9240
SELECT ALL 22 DIV + ( + COUNT( * ) ) FROM tab1 WHERE ( 3 ) IS NOT NULL
----
7

skipif mysql # not compatible
query I rowsort label-9240
SELECT ALL 22 / + ( + COUNT ( * ) ) FROM tab1 WHERE ( 3 ) IS NOT NULL
----
7

onlyif mysql # aggregate syntax: 
query I rowsort label-9241
SELECT - SUM( DISTINCT - 8 ) FROM tab0 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9241
SELECT - SUM ( DISTINCT - 8 ) FROM tab0 AS cor0
----
8

query I rowsort
SELECT DISTINCT 17 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0
----
17

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9243
SELECT * FROM tab1 WHERE NOT 58 NOT BETWEEN NULL AND CAST( + col0 AS SIGNED ) * - 43
----

skipif mysql # not compatible
query III rowsort label-9243
SELECT * FROM tab1 WHERE NOT 58 NOT BETWEEN NULL AND CAST ( + col0 AS INTEGER ) * - 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9244
SELECT + COUNT( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9

skipif mysql # not compatible
query I rowsort label-9244
SELECT + COUNT ( * ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 )
----
9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9245
SELECT 11 DIV + COUNT( * ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-9245
SELECT 11 / + COUNT ( * ) FROM tab2
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9246
SELECT COUNT( ALL + col2 ) * 17 AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-9246
SELECT COUNT ( ALL + col2 ) * 17 AS col0 FROM tab1 AS cor0
----
51

onlyif mysql # aggregate syntax: 
query I rowsort label-9247
SELECT MAX( ALL col0 ) FROM tab0 AS cor0 WHERE NOT - col0 * col0 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9247
SELECT MAX ( ALL col0 ) FROM tab0 AS cor0 WHERE NOT - col0 * col0 IS NOT NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 3 <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 34 col1 FROM tab0 AS cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-9250
SELECT ALL + - COUNT( ALL col2 ) FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9250
SELECT ALL + - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-3

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NULL ) > col1 + + col1
----

query I rowsort
SELECT DISTINCT col1 FROM tab2 WHERE NOT col2 IS NULL
----
51
67
77

query I rowsort
SELECT ALL col0 AS col2 FROM tab0 WHERE ( col2 ) IS NOT NULL
----
15
87
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9254
SELECT DISTINCT col1 * - col2 + col2 DIV + col1 FROM tab2
----
-1173
-3080
-3886

skipif mysql # not compatible
query I rowsort label-9254
SELECT DISTINCT col1 * - col2 + col2 / + col1 FROM tab2
----
-1173
-3080
-3886

onlyif mysql # aggregate syntax: 
query I rowsort label-9255
SELECT SUM( ALL - - col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9255
SELECT SUM ( ALL - - col2 ) FROM tab0
----
156

query I rowsort
SELECT ALL col2 + + - 92 - - col1 AS col0 FROM tab0
----
-61
36
8

query I rowsort
SELECT 13 * col2 + - col1 AS col1 FROM tab0
----
109
1286
530

query I rowsort
SELECT + 65 + + col2 FROM tab1
----
124
133
161

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9259
SELECT DISTINCT col0 * + col2 FROM tab1 WHERE NULL BETWEEN + CAST( col1 AS SIGNED ) + 71 AND - col0
----

skipif mysql # not compatible
query I rowsort label-9259
SELECT DISTINCT col0 * + col2 FROM tab1 WHERE NULL BETWEEN + CAST ( col1 AS INTEGER ) + 71 AND - col0
----

query I rowsort
SELECT - col2 * + + 18 * - 61 + 3 AS col0 FROM tab2
----
25257
43923
63687

onlyif mysql # aggregate syntax: 
query I rowsort label-9261
SELECT DISTINCT + SUM( DISTINCT + col0 ) col1 FROM tab0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9261
SELECT DISTINCT + SUM ( DISTINCT + col0 ) col1 FROM tab0
----
199

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN ( NULL ) AND ( + 29 ) AND NOT 92 * col2 + - col0 BETWEEN ( - col1 ) AND + col1
----

query I rowsort
SELECT DISTINCT col2 * 92 AS col1 FROM tab1 AS cor0 WHERE NOT - 92 NOT IN ( col2 + + col2 )
----

query I rowsort
SELECT - 49 AS col0 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NOT NULL NOT IN ( - col2 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9266
SELECT DISTINCT + ( + CAST( NULL AS DECIMAL ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9266
SELECT DISTINCT + ( + CAST ( NULL AS REAL ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
NULL

query I rowsort
SELECT 17 - - col0 * - + col2 * - 92 + - 24 * ( + col0 ) FROM tab2
----
234001
398417
96249

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9268
SELECT ALL + COUNT( * ) * + MAX( ALL - col0 ) + - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + + 25 * + col1 BETWEEN ( + CAST( NULL AS DECIMAL ) * ( col2 / - col1 ) ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9268
SELECT ALL + COUNT ( * ) * + MAX ( ALL - col0 ) + - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col0 + + 25 * + col1 BETWEEN ( + CAST ( NULL AS REAL ) * ( col2 / - col1 ) ) AND NULL
----
NULL

query I rowsort
SELECT ALL - col0 FROM tab0 AS cor0 WHERE 29 / - + 4 * - ( - col2 ) IS NULL
----

query I rowsort
SELECT - + col1 * - 73 AS col1 FROM tab0 AS cor0
----
1533
5913
73

query II rowsort
SELECT DISTINCT - 82 AS col2, 22 FROM tab1 AS cor0
----
-82
22

onlyif mysql # aggregate syntax: 
query I rowsort label-9272
SELECT DISTINCT SUM( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9272
SELECT DISTINCT SUM ( ALL - - col1 ) AS col0 FROM tab0 AS cor0
----
103

query II rowsort
SELECT ALL - - 92 AS col1, col1 FROM tab0 AS cor0
----
92
1
92
21
92
81

query I rowsort
SELECT + 35 * - 89 FROM tab1
----
-3115
-3115
-3115

query I rowsort
SELECT ALL + 75 FROM tab0 WHERE NOT - col0 IS NULL
----
75
75
75

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9276
SELECT * FROM tab1 WHERE NOT ( - col1 * + col2 + + 67 + CAST( 48 AS DECIMAL ) ) NOT BETWEEN ( NULL ) AND col1
----

skipif mysql # not compatible
query III rowsort label-9276
SELECT * FROM tab1 WHERE NOT ( - col1 * + col2 + + 67 + CAST ( 48 AS REAL ) ) NOT BETWEEN ( NULL ) AND col1
----

query I rowsort
SELECT + col2 FROM tab0 WHERE NOT 61 * + col1 - + col2 BETWEEN ( NULL ) AND 38
----
10
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9278
SELECT DISTINCT + SUM( DISTINCT + + col2 ) FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-9278
SELECT DISTINCT + SUM ( DISTINCT + + col2 ) FROM tab0
----
156

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col0 * - col2 * ( col2 ) BETWEEN ( + 54 ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9280
SELECT 79 + - COUNT( * ) * - 65 FROM tab1 WHERE NOT ( col0 ) * - col0 IS NULL
----
274

skipif mysql # not compatible
query I rowsort label-9280
SELECT 79 + - COUNT ( * ) * - 65 FROM tab1 WHERE NOT ( col0 ) * - col0 IS NULL
----
274

query I rowsort
SELECT DISTINCT + col1 + col1 FROM tab2 WHERE NOT - ( + - col1 ) + col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9282
SELECT ALL + col1 DIV 73 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9282
SELECT ALL + col1 / 73 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 + + col0 * col2 FROM tab1 WHERE NOT - 0 + - 76 + 14 / + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9284
SELECT DISTINCT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9284
SELECT DISTINCT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----
0

query I rowsort
SELECT - ( - 99 ) AS col0 FROM tab0 AS cor0
----
99
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9286
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - + col1 * + - CAST( - 8 AS SIGNED ) IN ( 99 )
----

skipif mysql # not compatible
query III rowsort label-9286
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 + - + col1 * + - CAST ( - 8 AS INTEGER ) IN ( 99 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9287
SELECT - 84 + + MIN( - col0 ) AS col2 FROM tab1 AS cor0
----
-175

skipif mysql # not compatible
query I rowsort label-9287
SELECT - 84 + + MIN ( - col0 ) AS col2 FROM tab1 AS cor0
----
-175

onlyif mysql # DIV for integer division: 
query I rowsort label-9288
SELECT 42 + + 66 DIV - col0 FROM tab0 AS cor0
----
38
42
42

skipif mysql # not compatible
query I rowsort label-9288
SELECT 42 + + 66 / - col0 FROM tab0 AS cor0
----
38
42
42

query I rowsort
SELECT + 87 - ( + 28 ) * + col2 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ( - - col1 ) + - - col1 * - - 63 FROM tab1 AS cor0
----
3008
320
896

query I rowsort
SELECT DISTINCT col2 * + col2 + - + col1 FROM tab2
----
1523
3297
478

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9292
SELECT DISTINCT CAST( NULL AS SIGNED ) + + - 4 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-9292
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + - 4 FROM tab1
----
NULL

query I rowsort
SELECT + 88 + + 8 * + col1 AS col1 FROM tab0
----
256
736
96

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT col1 / - - col0 + + col1 IS NOT NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9295
SELECT 87 DIV - col0 AS col1 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-9295
SELECT 87 / - col0 AS col1 FROM tab1
----
-1
-1
0

query I rowsort
SELECT ALL + 86 / + - col2 AS col0 FROM tab1 WHERE ( + 99 ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-9297
SELECT DISTINCT * FROM tab1 WHERE CAST( NULL AS DECIMAL ) >= NULL
----

skipif mysql # not compatible
query III rowsort label-9297
SELECT DISTINCT * FROM tab1 WHERE CAST ( NULL AS REAL ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9298
SELECT DISTINCT COUNT( * ) + + 44 FROM tab2
----
47

skipif mysql # not compatible
query I rowsort label-9298
SELECT DISTINCT COUNT ( * ) + + 44 FROM tab2
----
47

onlyif mysql # aggregate syntax: 
query I rowsort label-9299
SELECT DISTINCT + COUNT( * ) * + + 92 + + COUNT( * ) FROM tab0
----
279

skipif mysql # not compatible
query I rowsort label-9299
SELECT DISTINCT + COUNT ( * ) * + + 92 + + COUNT ( * ) FROM tab0
----
279

query I rowsort
SELECT + + ( + col0 ) FROM tab2 WHERE ( + 0 ) >= - col2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-9301
SELECT - 54 - + COUNT( ALL col2 ) FROM tab2 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-9301
SELECT - 54 - + COUNT ( ALL col2 ) FROM tab2 AS cor0
----
-57

query I rowsort
SELECT - col2 - - + col2 AS col1 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9303
SELECT + - MAX( - col2 ) - + COUNT( * ) col2 FROM tab2 AS cor0
----
20

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9303
SELECT + - MAX ( - col2 ) - + COUNT ( * ) col2 FROM tab2 AS cor0
----
20

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - ( + 92 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9305
SELECT ALL - ( - SUM( DISTINCT + 52 ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9305
SELECT ALL - ( - SUM ( DISTINCT + 52 ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9306
SELECT DISTINCT - MAX( DISTINCT + 21 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-21

skipif mysql # not compatible
query I rowsort label-9306
SELECT DISTINCT - MAX ( DISTINCT + 21 ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-21

query I rowsort
SELECT DISTINCT - - 69 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
69

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE - col1 BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9309
SELECT + CAST( + 77 AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - 45
----

skipif mysql # not compatible
query I rowsort label-9309
SELECT + CAST ( + 77 AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) <= - 45
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9310
SELECT - ( - COUNT( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 75 )
----
0

skipif mysql # not compatible
query I rowsort label-9310
SELECT - ( - COUNT ( * ) ) FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + 75 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9311
SELECT ALL + - col2 DIV + - col0 * ( - col0 ) FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9311
SELECT ALL + - col2 / + - col0 * ( - col0 ) FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9312
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NOT ( col2 + - CAST( NULL AS SIGNED ) ) IS NULL )
----

skipif mysql # not compatible
query I rowsort label-9312
SELECT ALL col0 FROM tab0 AS cor0 WHERE ( NOT ( col2 + - CAST ( NULL AS INTEGER ) ) IS NULL )
----

query I rowsort
SELECT 67 * - 24 FROM tab0 AS cor0
----
-1608
-1608
-1608

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9314
SELECT - CAST( + ( COUNT( * ) ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9314
SELECT - CAST ( + ( COUNT ( * ) ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9315
SELECT col1 + col0 col0 FROM tab0 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) NOT IN ( + - col2 / + 71 / + + 66 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9315
SELECT col1 + col0 col0 FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) NOT IN ( + - col2 / + 71 / + + 66 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT 13 NOT BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9317
SELECT DISTINCT COUNT( * ) DIV 39 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-9317
SELECT DISTINCT COUNT ( * ) / 39 AS col1 FROM tab1
----
0

query II rowsort
SELECT DISTINCT - 34 AS col2, col2 AS col2 FROM tab0
----
-34
10
-34
47
-34
99

query I rowsort
SELECT ALL 99 * + col2 FROM tab2
----
2277
3960
5742

query I rowsort
SELECT - 0 * + 92 AS col0 FROM tab0
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9321
SELECT 93 DIV - 1 AS col1 FROM tab2
----
-93
-93
-93

skipif mysql # not compatible
query I rowsort label-9321
SELECT 93 / - 1 AS col1 FROM tab2
----
-93
-93
-93

query I rowsort
SELECT DISTINCT col2 * + - 96 AS col0 FROM tab1
----
-5664
-6528
-9216

onlyif mysql # DIV for integer division: 
query I rowsort label-9323
SELECT + 53 DIV + col1 col2 FROM tab1 AS cor0
----
1
10
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9323
SELECT + 53 / + col1 col2 FROM tab1 AS cor0
----
1
10
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9324
SELECT DISTINCT - 9 DIV - ( + COUNT( ALL - col0 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9324
SELECT DISTINCT - 9 / - ( + COUNT ( ALL - col0 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT - col2 + + 92 FROM tab2 AS cor0 WHERE NOT ( + 88 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 56 col2 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 9c4523312174730bbc525b9977aa99fa

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 INNER JOIN tab0 AS cor1 ON NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9328
SELECT + col2 + - col2 FROM tab1 WHERE NOT ( NOT + col1 * - CAST( + + 91 AS SIGNED ) IS NOT NULL )
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9328
SELECT + col2 + - col2 FROM tab1 WHERE NOT ( NOT + col1 * - CAST ( + + 91 AS INTEGER ) IS NOT NULL )
----
0
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 56 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + + 43 * - + 4 AS col1 FROM tab2 AS cor0
----
-172
-172
-172

onlyif mysql # aggregate syntax: 
query I rowsort label-9331
SELECT ALL ( MIN( DISTINCT - + 99 ) ) col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9331
SELECT ALL ( MIN ( DISTINCT - + 99 ) ) col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9332
SELECT DISTINCT ( MAX( - col0 ) ) * 17 DIV + 61 AS col0 FROM tab2 cor0
----
-12

skipif mysql # not compatible
query I rowsort label-9332
SELECT DISTINCT ( MAX ( - col0 ) ) * 17 / + 61 AS col0 FROM tab2 cor0
----
-12

query III rowsort
SELECT * FROM tab1 WHERE + 91 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9334
SELECT ALL MIN( ALL col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9334
SELECT ALL MIN ( ALL col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9335
SELECT SUM( - col1 ) + - COUNT( * ) + SUM( + 56 ) AS col1 FROM tab2
----
-30

skipif mysql # not compatible
query I rowsort label-9335
SELECT SUM ( - col1 ) + - COUNT ( * ) + SUM ( + 56 ) AS col1 FROM tab2
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-9336
SELECT COUNT( * ) + 65 AS col0 FROM tab2
----
68

skipif mysql # not compatible
query I rowsort label-9336
SELECT COUNT ( * ) + 65 AS col0 FROM tab2
----
68

query I rowsort
SELECT ALL + 12 + + 42 FROM tab1
----
54
54
54

onlyif mysql # DIV for integer division: 
query I rowsort label-9338
SELECT DISTINCT col0 * + + col2 DIV - col2 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9338
SELECT DISTINCT col0 * + + col2 / - col2 AS col2 FROM tab2
----
-46
-64
-75

query I rowsort
SELECT DISTINCT - 98 - + + 72 AS col0 FROM tab2 AS cor0
----
-170

query I rowsort
SELECT 65 + + col0 + col1 / 11 AS col1 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN + col0 AND ( - ( + col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9341
SELECT ALL - 28 + + 87 * - + COUNT( * ) FROM tab1
----
-289

skipif mysql # not compatible
query I rowsort label-9341
SELECT ALL - 28 + + 87 * - + COUNT ( * ) FROM tab1
----
-289

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9342
SELECT DISTINCT * FROM tab1 WHERE NOT + 86 BETWEEN CAST( col2 AS SIGNED ) * col0 + + + 11 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9342
SELECT DISTINCT * FROM tab1 WHERE NOT + 86 BETWEEN CAST ( col2 AS INTEGER ) * col0 + + + 11 AND NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 23 + col2 FROM tab0
----
122
33
70

query I rowsort
SELECT + col2 * + col1 - 55 AS col0 FROM tab2
----
1118
3025
3831

query I rowsort
SELECT ALL - + 82 * - + 65 * - - col2 FROM tab0 cor0
----
250510
527670
53300

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN + col2 AND ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9347
SELECT ALL - SUM( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-9347
SELECT ALL - SUM ( DISTINCT col2 ) AS col1 FROM tab1 AS cor0
----
-223

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + 94 + col0 IN ( + - col1, col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) = ( - + 57 )
----

query I rowsort
SELECT + ( + + col0 ) AS col0 FROM tab2
----
46
64
75

query I rowsort
SELECT 55 * + col2 FROM tab2
----
1265
2200
3190

onlyif mysql # aggregate syntax: 
query I rowsort label-9352
SELECT + SUM( ALL col2 ) * 45 FROM tab1
----
10035

skipif mysql # not compatible
query I rowsort label-9352
SELECT + SUM ( ALL col2 ) * 45 FROM tab1
----
10035

query I rowsort
SELECT DISTINCT + 23 * + col0 * ( - col0 ) AS col1 FROM tab0
----
-174087
-216407
-5175

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9354
SELECT * FROM tab0 WHERE NOT ( NOT col1 * + col0 * CAST( col1 AS SIGNED ) - - col0 + + 4 IS NULL )
----

skipif mysql # not compatible
query III rowsort label-9354
SELECT * FROM tab0 WHERE NOT ( NOT col1 * + col0 * CAST ( col1 AS INTEGER ) - - col0 + + 4 IS NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 22 >= - col1 - - col0 + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 42 * - col2 + + col2 FROM tab1 cor0
----
-2419
-2788
-3936

onlyif mysql # DIV for integer division: 
query II rowsort label-9357
SELECT col2 + + 84 DIV + - col2 + - col1, col0 * + col2 AS col0 FROM tab0 AS cor0
----
-19
870
-35
705
98
9603

skipif mysql # not compatible
query II rowsort label-9357
SELECT col2 + + 84 / + - col2 + - col1, col0 * + col2 AS col0 FROM tab0 AS cor0
----
-19
870
-35
705
98
9603

onlyif mysql # aggregate syntax: 
query I rowsort label-9358
SELECT + COUNT( * ) + - 93 AS col1 FROM tab2 AS cor0
----
-90

skipif mysql # not compatible
query I rowsort label-9358
SELECT + COUNT ( * ) + - 93 AS col1 FROM tab2 AS cor0
----
-90

query II rowsort
SELECT DISTINCT col0, + 77 AS col1 FROM tab0 AS cor0
----
15
77
87
77
97
77

query I rowsort
SELECT DISTINCT 49 + + + 27 AS col0 FROM tab2 AS cor0
----
76

query I rowsort
SELECT DISTINCT - 78 AS col2 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT - 57 * 36 AS col2 FROM tab0 AS cor0
----
-2052
-2052
-2052

query I rowsort
SELECT DISTINCT + ( - col0 ) + + col0 FROM tab1
----
0

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NULL = col1 * - col1
----

query I rowsort
SELECT DISTINCT col2 + - ( - + 99 ) AS col2 FROM tab1
----
158
167
195

onlyif mysql # aggregate syntax: 
query I rowsort label-9366
SELECT ALL + - COUNT( + - col0 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9366
SELECT ALL + - COUNT ( + - col0 ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9367
SELECT - SUM( ALL + col2 ) - + - COUNT( * ) FROM tab0 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-9367
SELECT - SUM ( ALL + col2 ) - + - COUNT ( * ) FROM tab0 AS cor0
----
-153

onlyif mysql # aggregate syntax: 
query I rowsort label-9368
SELECT ALL - 57 - - - MAX( + col0 ) FROM tab2 AS cor0
----
-132

skipif mysql # not compatible
query I rowsort label-9368
SELECT ALL - 57 - - - MAX ( + col0 ) FROM tab2 AS cor0
----
-132

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - - 73 >= ( - - col0 )
----
85
5
59
91
47
68

query I rowsort
SELECT + 59 * ( col1 ) * - col1 AS col0 FROM tab1 AS cor0
----
-11564
-130331
-1475

query II rowsort
SELECT DISTINCT + 10 AS col1, col2 AS col2 FROM tab0 AS cor0
----
10
10
10
47
10
99

query I rowsort
SELECT ALL + ( - 23 ) FROM tab0 AS cor0
----
-23
-23
-23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + + col0 col2 FROM tab0 AS cor0 WHERE ( + col2 + - + 51 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9374
SELECT DISTINCT COUNT( * ) AS col2, + SUM( + col0 ) FROM tab2 AS cor0
----
3
185

skipif mysql # not compatible
query II rowsort label-9374
SELECT DISTINCT COUNT ( * ) AS col2, + SUM ( + col0 ) FROM tab2 AS cor0
----
3
185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9375
SELECT DISTINCT + CAST( ( col2 ) AS SIGNED ) col0 FROM tab2 cor0
----
23
40
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9375
SELECT DISTINCT + CAST ( ( col2 ) AS INTEGER ) col0 FROM tab2 cor0
----
23
40
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9376
SELECT ALL + col2 AS col2, - 17 * - CAST( + 21 AS SIGNED ) FROM tab1 AS cor0
----
59
357
68
357
96
357

skipif mysql # not compatible
query II rowsort label-9376
SELECT ALL + col2 AS col2, - 17 * - CAST ( + 21 AS INTEGER ) FROM tab1 AS cor0
----
59
357
68
357
96
357

query I rowsort
SELECT col1 * + - 39 * col2 FROM tab2
----
-120120
-151554
-45747

query I rowsort
SELECT DISTINCT - ( + col1 ) * + col1 FROM tab1
----
-196
-2209
-25

query II rowsort
SELECT DISTINCT 55 AS col0, + 34 FROM tab1
----
55
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9380
SELECT + CAST( NULL AS SIGNED ) / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9380
SELECT + CAST ( NULL AS INTEGER ) / col0 AS col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + ( 6 ) * - 29 AS col1 FROM tab0
----
-174
-174
-174

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - col2 * - col2 col2 FROM tab2 AS cor0
----
-1600
-3364
-529

query I rowsort
SELECT ALL - + 83 * - col2 AS col2 FROM tab2 cor0
----
1909
3320
4814

onlyif mysql # aggregate syntax: 
query I rowsort label-9384
SELECT DISTINCT + 66 + + + MIN( - col1 ) AS col2 FROM tab1
----
19

skipif mysql # not compatible
query I rowsort label-9384
SELECT DISTINCT + 66 + + + MIN ( - col1 ) AS col2 FROM tab1
----
19

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9385
SELECT + MIN( - CAST( NULL AS SIGNED ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9385
SELECT + MIN ( - CAST ( NULL AS INTEGER ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9386
SELECT DISTINCT + + COUNT( + + col0 ) + - COUNT( DISTINCT col0 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9386
SELECT DISTINCT + + COUNT ( + + col0 ) + - COUNT ( DISTINCT col0 ) FROM tab1 AS cor0
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + col2 - + + col1 col1 FROM tab0 AS cor0
----
-11
-34
98

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT - col2 + - 8 >= ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9389
SELECT - + CAST( NULL AS SIGNED ) - + col0, - col0 AS col0 FROM tab2 cor0 WHERE NULL >= - ( + 82 )
----

skipif mysql # not compatible
query II rowsort label-9389
SELECT - + CAST ( NULL AS INTEGER ) - + col0, - col0 AS col0 FROM tab2 cor0 WHERE NULL >= - ( + 82 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9390
SELECT - MIN( - col0 ) - + + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9390
SELECT - MIN ( - col0 ) - + + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 * + col0 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9392
SELECT COUNT( * ) + + 67 FROM tab2
----
70

skipif mysql # not compatible
query I rowsort label-9392
SELECT COUNT ( * ) + + 67 FROM tab2
----
70

onlyif mysql # aggregate syntax: 
query I rowsort label-9393
SELECT 97 + + 43 * COUNT( * ) FROM tab2
----
226

skipif mysql # not compatible
query I rowsort label-9393
SELECT 97 + + 43 * COUNT ( * ) FROM tab2
----
226

onlyif mysql # aggregate syntax: 
query I rowsort label-9394
SELECT ALL COUNT( * ) + - + COUNT( * ) * + COUNT( * ) FROM tab2
----
-6

skipif mysql # not compatible
query I rowsort label-9394
SELECT ALL COUNT ( * ) + - + COUNT ( * ) * + COUNT ( * ) FROM tab2
----
-6

query I rowsort
SELECT col0 + + - 62 FROM tab0
----
-47
25
35

query I rowsort
SELECT DISTINCT - 29 + + 13 AS col2 FROM tab1
----
-16

query I rowsort
SELECT DISTINCT - + 35 * - - col2 AS col0 FROM tab2 WHERE NOT + 11 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 + col2 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NULL NOT IN ( + + col0, - col2 / - + col1 * + + 95 )
----

query I rowsort
SELECT - ( + + 15 ) FROM tab2 WHERE - - col1 + + + col0 IS NULL
----

query I rowsort
SELECT - col1 + col1 + - - col2 + - col0 AS col0 FROM tab0
----
-77
2
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9402
SELECT DISTINCT + COUNT( * ) - - - COUNT( * ) col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9402
SELECT DISTINCT + COUNT ( * ) - - - COUNT ( * ) col2 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT col2 - - col0 FROM tab0 AS cor0 WHERE + 27 >= col0
----
62

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col0 + + - 33 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 68 * + col0 * col0 - - - col0 * col2 + + 0 AS col2 FROM tab0 AS cor0
----
14595
513822
630209

query I rowsort
SELECT - ( - 14 ) AS col2 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 83e5779d2487d12495e7d816c797264f

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NOT 67 = + col2 * - 93 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-9408
SELECT + - COUNT( * ) + + 87 AS col0 FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9408
SELECT + - COUNT ( * ) + + 87 AS col0 FROM tab2 AS cor0
----
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 96 * col0 col1 FROM tab0
----
-1440
-8352
-9312

onlyif mysql # aggregate syntax: 
query I rowsort label-9410
SELECT ALL - COUNT( * ) * - MAX( ( + 47 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
141

skipif mysql # not compatible
query I rowsort label-9410
SELECT ALL - COUNT ( * ) * - MAX ( ( + 47 ) ) AS col1 FROM tab0 WHERE NOT NULL IS NOT NULL
----
141

query I rowsort
SELECT + 29 AS col0 FROM tab1 WHERE NOT - 71 IS NOT NULL
----

query II rowsort
SELECT ALL - col1 AS col0, 36 FROM tab0
----
-1
36
-21
36
-81
36

query I rowsort
SELECT DISTINCT + - ( + - col1 ) AS col0 FROM tab2 AS cor0
----
51
67
77

onlyif mysql # DIV for integer division: 
query I rowsort label-9414
SELECT col2 DIV - + col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-9414
SELECT col2 / - + col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-9415
SELECT SUM( - col2 ) * - 84 + - 51 AS col0 FROM tab1 AS cor0
----
18681

skipif mysql # not compatible
query I rowsort label-9415
SELECT SUM ( - col2 ) * - 84 + - 51 AS col0 FROM tab1 AS cor0
----
18681

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9416
SELECT - - col2 col2 FROM tab2 WHERE col2 / - CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9416
SELECT - - col2 col2 FROM tab2 WHERE col2 / - CAST ( NULL AS REAL ) IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( 81 / col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 31 + - 97 AS col0 FROM tab0
----
-66
-66
-66

query I rowsort
SELECT + col1 + + - 93 + + col0 FROM tab2 AS cor0
----
4
48
49

query I rowsort
SELECT ALL - 31 - + col1 FROM tab2 AS cor0
----
-108
-82
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-9421
SELECT DISTINCT + MAX( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-9421
SELECT DISTINCT + MAX ( - col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-9422
SELECT - 5 + - COUNT( * ) * - + COUNT( * ) AS col2 FROM tab2 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-9422
SELECT - 5 + - COUNT ( * ) * - + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
4

query I rowsort
SELECT ALL - col0 * - + ( ( + 16 ) ) FROM tab0 AS cor0
----
1392
1552
240

query I rowsort
SELECT + - col1 * - - col2 FROM tab2 AS cor0
----
-1173
-3080
-3886

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9425
SELECT DISTINCT + - CAST( + col0 AS SIGNED ) * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

skipif mysql # not compatible
query I rowsort label-9425
SELECT DISTINCT + - CAST ( + col0 AS INTEGER ) * - - col0 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT DISTINCT - col0 * + col1 + + col2 * col2 AS col2 FROM tab2 AS cor0
----
-1661
-1817
-3328

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9427
SELECT DISTINCT + COUNT( * ) * - CAST( NULL AS SIGNED ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9427
SELECT DISTINCT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9428
SELECT + COUNT( * ) AS col0 FROM tab1 WHERE + 33 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9428
SELECT + COUNT ( * ) AS col0 FROM tab1 WHERE + 33 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9429
SELECT DISTINCT - COUNT( + + 1 ) col1 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9429
SELECT DISTINCT - COUNT ( + + 1 ) col1 FROM tab0
----
-3

query I rowsort
SELECT DISTINCT + 95 + col0 AS col1 FROM tab1
----
146
180
186

onlyif mysql # aggregate syntax: 
query I rowsort label-9431
SELECT COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9431
SELECT COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NOT NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9433
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ) / - + 49 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9433
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ) / - + 49 FROM tab2 cor0
----
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) <> - 50
----

query II rowsort
SELECT DISTINCT - 14, col0 FROM tab1
----
-14
51
-14
85
-14
91

query I rowsort
SELECT ALL - ( + + 44 ) FROM tab1
----
-44
-44
-44

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - + col0 col0 FROM tab0 WHERE NOT NULL >= NULL OR NOT ( NULL ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9438
SELECT - COUNT( ALL col2 ) * - 18 * - - COUNT( col1 ) FROM tab1 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-9438
SELECT - COUNT ( ALL col2 ) * - 18 * - - COUNT ( col1 ) FROM tab1 AS cor0
----
162

query II rowsort
SELECT + col2, - 28 FROM tab0 AS cor0
----
10
-28
47
-28
99
-28

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL <= 54
----

query II rowsort
SELECT DISTINCT + ( - col1 ) * + 58 AS col1, 13 FROM tab0 AS cor0
----
-1218
13
-4698
13
-58
13

onlyif mysql # aggregate syntax: 
query I rowsort label-9442
SELECT - COUNT( * ) AS col2 FROM tab0 WHERE NOT 71 + - 52 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9442
SELECT - COUNT ( * ) AS col2 FROM tab0 WHERE NOT 71 + - 52 IS NOT NULL
----
0

query I rowsort
SELECT ALL col0 * 55 - col2 FROM tab1 WHERE NULL IS NULL
----
2709
4616
4937

query II rowsort
SELECT DISTINCT + col2 + + 69, + 19 * + col0 AS col1 FROM tab1
----
128
1615
137
1729
165
969

query I rowsort
SELECT + col0 * - col0 * 38 FROM tab2
----
-155648
-213750
-80408

query I rowsort
SELECT col1 + + ( + - col0 ) FROM tab0
----
-66
-96
66

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 - 60 * col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9448
SELECT DISTINCT COUNT( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-9448
SELECT DISTINCT COUNT ( DISTINCT + col0 ) AS col2 FROM tab2 cor0
----
3

query I rowsort
SELECT + - 99 - - + col0 FROM tab1 AS cor0
----
-14
-48
-8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9450
SELECT ALL + col1 - + - CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9450
SELECT ALL + col1 - + - CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-9451
SELECT ALL + + col2 DIV + - col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-9451
SELECT ALL + + col2 / + - col1 FROM tab0 AS cor0
----
-99
0
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL <> 92
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9453
SELECT ALL - COUNT( - 52 ) - + CAST( 52 AS SIGNED ) FROM tab0 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9453
SELECT ALL - COUNT ( - 52 ) - + CAST ( 52 AS INTEGER ) FROM tab0 AS cor0
----
-55

query I rowsort
SELECT col0 + col2 + + col1 * - + col1 FROM tab0
----
-344
-6499
195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9455
SELECT ALL * FROM tab1 WHERE NOT + - CAST( NULL AS SIGNED ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9455
SELECT ALL * FROM tab1 WHERE NOT + - CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT col0 * 23 AS col0, + 53 AS col1 FROM tab2
----
1058
53
1472
53
1725
53

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9457
SELECT ALL * FROM tab1 WHERE NOT CAST( NULL AS SIGNED ) = - + col0
----

skipif mysql # not compatible
query III rowsort label-9457
SELECT ALL * FROM tab1 WHERE NOT CAST ( NULL AS INTEGER ) = - + col0
----

query I rowsort
SELECT 89 * - + col2 FROM tab1
----
-5251
-6052
-8544

onlyif mysql # DIV for integer division: 
query I rowsort label-9459
SELECT col0 * - col2 DIV col2 AS col2 FROM tab2
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-9459
SELECT col0 * - col2 / col2 AS col2 FROM tab2
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9460
SELECT + ( col2 ), + 97 / - CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-9460
SELECT + ( col2 ), + 97 / - CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
10
NULL
47
NULL
99
NULL

query I rowsort
SELECT ALL + 94 + 35 FROM tab2 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9462
SELECT ALL - CAST( + + 65 AS SIGNED ) * 32 col0 FROM tab2
----
-2080
-2080
-2080

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9462
SELECT ALL - CAST ( + + 65 AS INTEGER ) * 32 col0 FROM tab2
----
-2080
-2080
-2080

onlyif mysql # aggregate syntax: 
query I rowsort label-9463
SELECT DISTINCT + MAX( - - 32 ) AS col0 FROM tab2
----
32

skipif mysql # not compatible
query I rowsort label-9463
SELECT DISTINCT + MAX ( - - 32 ) AS col0 FROM tab2
----
32

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT + col2 > ( NULL )
----

query I rowsort
SELECT ALL - 7 * - col0 * + - col2 FROM tab2
----
-17920
-30450
-7406

onlyif mysql # aggregate syntax: 
query I rowsort label-9466
SELECT ALL - MAX( + + col0 ) * - 69 col2 FROM tab1
----
6279

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9466
SELECT ALL - MAX ( + + col0 ) * - 69 col2 FROM tab1
----
6279

query I rowsort
SELECT + col2 AS col2 FROM tab0 WHERE NOT col1 = - col0
----
10
47
99

query II rowsort
SELECT DISTINCT - col0, - col0 FROM tab0 AS cor0
----
-15
-15
-87
-87
-97
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9469
SELECT ALL - + COUNT( * ) DIV COUNT( * ) FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-9469
SELECT ALL - + COUNT ( * ) / COUNT ( * ) FROM tab1 AS cor0
----
-1

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL > + - col0
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-9471
SELECT DISTINCT + col0 / - CAST( NULL AS DECIMAL ) AS col0, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

skipif mysql # not compatible
query II rowsort label-9471
SELECT DISTINCT + col0 / - CAST ( NULL AS REAL ) AS col0, col1 AS col0 FROM tab0
----
NULL
1
NULL
21
NULL
81

query I rowsort
SELECT ( col1 ) AS col1 FROM tab0 WHERE NOT + col0 / + col2 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9473
SELECT ALL - COUNT( * ) FROM tab1 WHERE NOT CAST( - col2 AS SIGNED ) DIV + + col0 * - col2 + + - col0 <= - + 71
----
-1

skipif mysql # not compatible
query I rowsort label-9473
SELECT ALL - COUNT ( * ) FROM tab1 WHERE NOT CAST ( - col2 AS INTEGER ) / + + col0 * - col2 + + - col0 <= - + 71
----
-1

query I rowsort
SELECT ALL - 61 * 22 FROM tab0
----
-1342
-1342
-1342

onlyif mysql # DIV for integer division: 
query I rowsort label-9475
SELECT + ( + + 28 ) DIV - ( 44 ) col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9475
SELECT + ( + + 28 ) / - ( 44 ) col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - + col1 * - + 32 * - col1 AS col2 FROM tab1 AS cor0 WHERE + col0 IS NOT NULL
----
-6272
-70688
-800

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col2 IN ( 91 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query II rowsort label-9478
SELECT ALL + - 3 DIV + 17, - col2 + + col1 col0 FROM tab2 AS cor0
----
0
28
0
37
0
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9478
SELECT ALL + - 3 / + 17, - col2 + + col1 col0 FROM tab2 AS cor0
----
0
28
0
37
0
9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9479
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE CAST( 44 AS SIGNED ) IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-9479
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE CAST ( 44 AS INTEGER ) IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9480
SELECT DISTINCT + MIN( 8 ) FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-9480
SELECT DISTINCT + MIN ( 8 ) FROM tab1 AS cor0
----
8

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9481
SELECT + 8 AS col2 FROM tab0 WHERE CAST( NULL AS DECIMAL ) IS NULL
----
8
8
8

skipif mysql # not compatible
query I rowsort label-9481
SELECT + 8 AS col2 FROM tab0 WHERE CAST ( NULL AS REAL ) IS NULL
----
8
8
8

query II rowsort
SELECT col0 * - col2 + 76, 79 - + col1 AS col2 FROM tab1
----
-4820
65
-4939
74
-6112
32

onlyif mysql # aggregate syntax: 
query I rowsort label-9483
SELECT ALL + 1 + + - COUNT( * ) AS col2 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-9483
SELECT ALL + 1 + + - COUNT ( * ) AS col2 FROM tab2
----
-2

query I rowsort
SELECT DISTINCT + + 45 AS col0 FROM tab2 WHERE ( NULL ) NOT BETWEEN ( - col0 ) AND ( NULL )
----

query II rowsort
SELECT ALL col1, + 9 + - + col0 AS col1 FROM tab1
----
14
-42
47
-82
5
-76

onlyif mysql # aggregate syntax: 
query I rowsort label-9486
SELECT ALL 10 + - COUNT( * ) AS col1 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-9486
SELECT ALL 10 + - COUNT ( * ) AS col1 FROM tab2
----
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 * - col1 * - ( col0 ) * col2 * + + col1 + col1 * - - col1 col1 FROM tab0 WHERE NOT 13 IS NOT NULL
----

query II rowsort
SELECT ALL + ( - 22 ) + + 79, + col1 AS col2 FROM tab0 AS cor0
----
57
1
57
21
57
81

onlyif mysql # aggregate syntax: 
query I rowsort label-9489
SELECT + MIN( DISTINCT + 75 ) AS col1 FROM tab2 AS cor0 WHERE + 75 / + - ( col2 ) < col2 + + - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-9489
SELECT + MIN ( DISTINCT + 75 ) AS col1 FROM tab2 AS cor0 WHERE + 75 / + - ( col2 ) < col2 + + - col1
----
NULL

query I rowsort
SELECT + ( - + 60 ) FROM tab0 AS cor0
----
-60
-60
-60

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 95 = NULL
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( + 36 * - + col1 < 76 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + ( + col0 ) FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9494
SELECT CAST( - - 31 AS SIGNED ) + + - col2 - - col0 * + col2 col1 FROM tab2
----
1066
2551
4323

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9494
SELECT CAST ( - - 31 AS INTEGER ) + + - col2 - - col0 * + col2 col1 FROM tab2
----
1066
2551
4323

query III rowsort
SELECT * FROM tab2 WHERE 12 <= + ( + col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + + 68 * + col0 AS col2 FROM tab2 AS cor0
----
3128
4352
5100

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 22 col2 FROM tab1 cor0
----
-22
-22
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-9498
SELECT DISTINCT MIN( + - 3 ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-9498
SELECT DISTINCT MIN ( + - 3 ) FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0, - 23 * + + ( + col2 ) col0 FROM tab2
----
-46
-529
-64
-920
-75
-1334

query I rowsort
SELECT ALL + col2 * + + col1 * + col2 AS col1 FROM tab0
----
178929
2100
9801

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 BETWEEN + col0 AND + - ( - - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-9502
SELECT - - SUM( + + ( + col2 ) ) AS col1, COUNT( * ) AS col2 FROM tab2 cor0
----
121
3

skipif mysql # not compatible
query II rowsort label-9502
SELECT - - SUM ( + + ( + col2 ) ) AS col1, COUNT ( * ) AS col2 FROM tab2 cor0
----
121
3

query I rowsort
SELECT ALL 85 * - col0 * + col2 FROM tab1 AS cor0
----
-416160
-426275
-525980

onlyif mysql # DIV for integer division: 
query II rowsort label-9504
SELECT DISTINCT + 8 AS col1, ( col0 ) DIV 92 - col2 AS col1 FROM tab2 AS cor0
----
8
-23
8
-40
8
-58

skipif mysql # not compatible
query II rowsort label-9504
SELECT DISTINCT + 8 AS col1, ( col0 ) / 92 - col2 AS col1 FROM tab2 AS cor0
----
8
-23
8
-40
8
-58

query II rowsort
SELECT + ( col0 ), 7 AS col2 FROM tab1
----
51
7
85
7
91
7

onlyif mysql # DIV for integer division: 
query I rowsort label-9506
SELECT DISTINCT + 63 DIV + + col1 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-9506
SELECT DISTINCT + 63 / + + col1 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9507
SELECT - SUM( - 36 ) * + - COUNT( * ) col2 FROM tab1 AS cor0
----
-324

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9507
SELECT - SUM ( - 36 ) * + - COUNT ( * ) col2 FROM tab1 AS cor0
----
-324

onlyif mysql # aggregate syntax: 
query I rowsort label-9508
SELECT COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9508
SELECT COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
0

query II rowsort
SELECT + 45 * - + col0 AS col1, col1 FROM tab1 AS cor0
----
-2295
14
-3825
5
-4095
47

query I rowsort
SELECT ALL + - col0 + ( 88 ) FROM tab2 AS cor0
----
13
24
42

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( + ( + - col2 ) > - 89 )
----
15
81
47
87
21
10

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9512
SELECT DISTINCT - ( - MIN( ALL + CAST( NULL AS DECIMAL ) ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9512
SELECT DISTINCT - ( - MIN ( ALL + CAST ( NULL AS REAL ) ) ) FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9513
SELECT - 76 * - SUM( 18 ) * - 85 + 61 AS col0 FROM tab1
----
-348779

skipif mysql # not compatible
query I rowsort label-9513
SELECT - 76 * - SUM ( 18 ) * - 85 + 61 AS col0 FROM tab1
----
-348779

onlyif mysql # DIV for integer division: 
query I rowsort label-9514
SELECT ALL - 91 + + col1 DIV - 14 AS col2 FROM tab1
----
-91
-92
-94

skipif mysql # not compatible
query I rowsort label-9514
SELECT ALL - 91 + + col1 / - 14 AS col2 FROM tab1
----
-91
-92
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-9515
SELECT MIN( DISTINCT + 89 ) + - - 10 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-9515
SELECT MIN ( DISTINCT + 89 ) + - - 10 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9516
SELECT ALL CAST( NULL AS SIGNED ) + + CAST( NULL AS SIGNED ) + + 57 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9516
SELECT ALL CAST ( NULL AS INTEGER ) + + CAST ( NULL AS INTEGER ) + + 57 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 * + + col2 + 31 FROM tab2
----
1631
3395
560

onlyif mysql # aggregate syntax: 
query I rowsort label-9518
SELECT 90 + - COUNT( * ) AS col1 FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-9518
SELECT 90 + - COUNT ( * ) AS col1 FROM tab1
----
87

onlyif mysql # aggregate syntax: 
query I rowsort label-9519
SELECT ALL - MIN( - 59 ) + - MIN( ALL + col1 ) col2 FROM tab0
----
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9519
SELECT ALL - MIN ( - 59 ) + - MIN ( ALL + col1 ) col2 FROM tab0
----
58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + AVG ( 3 ) col2 FROM tab0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT + col2 + - ( col1 ) + col0 - + - 43 AS col0 FROM tab2
----
109
61
70

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) IN ( - - col2, col0, col0, col2 )
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 29 * col1 + - col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL > NULL
----

query I rowsort
SELECT + ( - + col0 ) * - 51 AS col2 FROM tab1
----
2601
4335
4641

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9526
SELECT ALL + col1 + CAST( NULL AS SIGNED ) + + + 90, 39 col0 FROM tab0
----
NULL
39
NULL
39
NULL
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9526
SELECT ALL + col1 + CAST ( NULL AS INTEGER ) + + + 90, 39 col0 FROM tab0
----
NULL
39
NULL
39
NULL
39

query IIIIII rowsort
SELECT * FROM tab2 cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 60 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9528
SELECT - MIN( - 26 ) AS col0 FROM tab0 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9528
SELECT - MIN ( - 26 ) AS col0 FROM tab0 AS cor0
----
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9529
SELECT DISTINCT - + MAX( ALL + col2 ) FROM tab2 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-9529
SELECT DISTINCT - + MAX ( ALL + col2 ) FROM tab2 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9530
SELECT + + 29 AS col1, AVG ( - CAST( NULL AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
29
NULL

skipif mysql # not compatible
query II rowsort label-9530
SELECT + + 29 AS col1, AVG ( - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
29
NULL

query II rowsort
SELECT DISTINCT col2, + col2 * + col1 * + col2 FROM tab1 AS cor0
----
59
17405
68
217328
96
129024

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col1 * - col1 * + - 13 - col1 + col2 BETWEEN - col1 + + - col2 AND col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col1 * - - col2 * + col1 * - - col0 FROM tab0
----
383670
4625505
9603

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - + col0 * - col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9535
SELECT ALL - SUM( col1 ) * + SUM( col2 ) FROM tab2
----
-23595

skipif mysql # not compatible
query I rowsort label-9535
SELECT ALL - SUM ( col1 ) * + SUM ( col2 ) FROM tab2
----
-23595

query II rowsort
SELECT ALL + ( - col0 ), col1 FROM tab1
----
-51
14
-85
5
-91
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9537
SELECT ALL 3 * + CAST( NULL AS SIGNED ) + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9537
SELECT ALL 3 * + CAST ( NULL AS INTEGER ) + ( + col0 ) AS col1 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9538
SELECT DISTINCT + COUNT( + + col1 ) DIV - 19 * - 11 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9538
SELECT DISTINCT + COUNT ( + + col1 ) / - 19 * - 11 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9539
SELECT - 83 * + COUNT( + col0 ) + - + 53 col2 FROM tab0 AS cor0
----
-302

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9539
SELECT - 83 * + COUNT ( + col0 ) + - + 53 col2 FROM tab0 AS cor0
----
-302

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-9540
SELECT - col1 / 78 AS col0, + col0 AS col2 FROM tab2 cor0 WHERE CAST( NULL AS SIGNED ) * col1 * CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-9540
SELECT - col1 / 78 AS col0, + col0 AS col2 FROM tab2 cor0 WHERE CAST ( NULL AS INTEGER ) * col1 * CAST ( NULL AS INTEGER ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9541
SELECT - 35 * COUNT( * ) + - 60 + COUNT( * ) FROM tab1 AS cor0
----
-162

skipif mysql # not compatible
query I rowsort label-9541
SELECT - 35 * COUNT ( * ) + - 60 + COUNT ( * ) FROM tab1 AS cor0
----
-162

onlyif mysql # aggregate syntax: 
query I rowsort label-9542
SELECT SUM( ALL + + col0 ) + + 1 AS col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-9542
SELECT SUM ( ALL + + col0 ) + + 1 AS col0 FROM tab2 AS cor0
----
186

query I rowsort
SELECT - - 58 + + col0 * + + col2 FROM tab0 AS cor0
----
763
928
9661

onlyif mysql # aggregate syntax: 
query I rowsort label-9544
SELECT - MAX( + col0 ) + - MAX( + col1 ) AS col1 FROM tab0 AS cor0
----
-178

skipif mysql # not compatible
query I rowsort label-9544
SELECT - MAX ( + col0 ) + - MAX ( + col1 ) AS col1 FROM tab0 AS cor0
----
-178

onlyif mysql # DIV for integer division: 
query I rowsort label-9545
SELECT DISTINCT - col0 * col2 DIV col0 FROM tab0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-9545
SELECT DISTINCT - col0 * col2 / col0 FROM tab0
----
-10
-47
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-9546
SELECT ALL - COUNT( * ) + - COUNT( * ) col0 FROM tab2
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9546
SELECT ALL - COUNT ( * ) + - COUNT ( * ) col0 FROM tab2
----
-6

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + - col2 + - 38 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT 89, + col1 FROM tab1
----
89
14
89
47
89
5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9549
SELECT 55 * + ( + col1 ) * + ( + col1 ) + col0 + - + CAST( NULL AS SIGNED ) + + col2 * 13 AS col0 FROM tab0 WHERE + col1 / + 72 IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9549
SELECT 55 * + ( + col1 ) * + ( + col1 ) + col0 + - + CAST ( NULL AS INTEGER ) + + col2 * 13 AS col0 FROM tab0 WHERE + col1 / + 72 IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9550
SELECT - - COUNT( * ) - + + CAST( + 64 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-9550
SELECT - - COUNT ( * ) - + + CAST ( + 64 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-61

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NULL ) >= - 15 * 36
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9552
SELECT DISTINCT CAST( - - col2 AS SIGNED ) * - + col0 col2 FROM tab1
----
-4896
-5015
-6188

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9552
SELECT DISTINCT CAST ( - - col2 AS INTEGER ) * - + col0 col2 FROM tab1
----
-4896
-5015
-6188

onlyif mysql # DIV for integer division: 
query I rowsort label-9553
SELECT - + col0 DIV - + col2 FROM tab2 cor0
----
1
1
2

skipif mysql # not compatible
query I rowsort label-9553
SELECT - + col0 / - + col2 FROM tab2 cor0
----
1
1
2

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-9554
SELECT ALL - CAST( - MAX( ALL + col1 ) AS DECIMAL ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9554
SELECT ALL - CAST ( - MAX ( ALL + col1 ) AS REAL ) AS col2 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----
NULL

query II rowsort
SELECT DISTINCT 69, 46 FROM tab0 cor0 WHERE NOT NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9556
SELECT DISTINCT + SUM( col0 ) AS col1 FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9556
SELECT DISTINCT + SUM ( col0 ) AS col1 FROM tab2 AS cor0
----
185

query I rowsort
SELECT - col0 FROM tab1 AS cor0 WHERE NOT 52 >= - col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9558
SELECT - ( + + MIN( + - col1 ) ) FROM tab0 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-9558
SELECT - ( + + MIN ( + - col1 ) ) FROM tab0 AS cor0
----
81

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9559
SELECT + CAST( - - 31 AS SIGNED ) AS col0, ( + COUNT( * ) ) * COUNT( * ) * + + AVG ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
31
NULL

skipif mysql # not compatible
query II rowsort label-9559
SELECT + CAST ( - - 31 AS INTEGER ) AS col0, ( + COUNT ( * ) ) * COUNT ( * ) * + + AVG ( + col2 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL <= NULL
----
31
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9560
SELECT SUM( + + 44 ) FROM tab1 AS cor0
----
132

skipif mysql # not compatible
query I rowsort label-9560
SELECT SUM ( + + 44 ) FROM tab1 AS cor0
----
132

query III rowsort
SELECT * FROM tab2 WHERE NOT + ( + + col1 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + - 99 + + - col2 AS col1 FROM tab2 WHERE NOT NULL <> NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9563
SELECT + - col0 AS col1 FROM tab0 WHERE NOT + + col0 * CAST( NULL AS SIGNED ) IS NOT NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-9563
SELECT + - col0 AS col1 FROM tab0 WHERE NOT + + col0 * CAST ( NULL AS INTEGER ) IS NOT NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9564
SELECT ALL + COUNT( * ) + - 41 FROM tab2
----
-38

skipif mysql # not compatible
query I rowsort label-9564
SELECT ALL + COUNT ( * ) + - 41 FROM tab2
----
-38

query I rowsort
SELECT 54 * - + 74 * - + col2 AS col0 FROM tab2 AS cor0
----
159840
231768
91908

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - 46 <> - col0
----

query I rowsort
SELECT + - col2 * + 84 + - col2 FROM tab1 AS cor0
----
-5015
-5780
-8160

query I rowsort
SELECT ALL 83 + + col1 * + - col1 FROM tab2 cor0
----
-2518
-4406
-5846

query I rowsort
SELECT DISTINCT - col0 * - - 55 AS col0 FROM tab2 cor0
----
-2530
-3520
-4125

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 * - col2 * - 26 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9571
SELECT + + CAST( + - MIN( - + col1 ) AS SIGNED ) AS col0 FROM tab1 WHERE + + col1 IS NOT NULL
----
47

skipif mysql # not compatible
query I rowsort label-9571
SELECT + + CAST ( + - MIN ( - + col1 ) AS INTEGER ) AS col0 FROM tab1 WHERE + + col1 IS NOT NULL
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9572
SELECT col2 + - - col1 + + CAST( NULL AS SIGNED ) * + - 23 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9572
SELECT col2 + - - col1 + + CAST ( NULL AS INTEGER ) * + - 23 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT - ( + col0 ) * + + col1 * - col1 + 73 AS col2 FROM tab2
----
119719
336748
379529

query I rowsort
SELECT 49 + col0 AS col2 FROM tab0
----
136
146
64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9575
SELECT DISTINCT CAST( NULL AS SIGNED ) * + col0 + - col2 AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9575
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + col0 + - col2 AS col0 FROM tab0
----
NULL

query I rowsort
SELECT - col1 + + - 37 AS col2 FROM tab0
----
-118
-38
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-9577
SELECT ALL - COUNT( * ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9577
SELECT ALL - COUNT ( * ) FROM tab1 WHERE - col0 IS NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 - 54 * - col2 col2, col1 FROM tab1
----
3127
5
3604
47
5088
14

onlyif mysql # aggregate syntax: 
query II rowsort label-9579
SELECT DISTINCT - 68 + - ( - - ( - SUM( - col2 ) ) ) AS col0, ( + 79 ) FROM tab1
----
-291
79

skipif mysql # not compatible
query II rowsort label-9579
SELECT DISTINCT - 68 + - ( - - ( - SUM ( - col2 ) ) ) AS col0, ( + 79 ) FROM tab1
----
-291
79

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col1 ) + col2 * 73 + col0 col1 FROM tab1
----
4397
5102
7073

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9581
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9581
SELECT * FROM tab2 AS cor0 WHERE NULL <= - CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9582
SELECT DISTINCT + COUNT( ALL - CAST( col2 AS SIGNED ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-9582
SELECT DISTINCT + COUNT ( ALL - CAST ( col2 AS INTEGER ) ) AS col0 FROM tab2 WHERE NULL IS NULL
----
3

query II rowsort
SELECT ALL 74, col0 FROM tab2
----
74
46
74
64
74
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9584
SELECT col2 * + + 99 + + col1 + + - CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9584
SELECT col2 * + + 99 + + col1 + + - CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9585
SELECT ALL + SUM( + col2 ) FROM tab2 cor0
----
121

skipif mysql # not compatible
query I rowsort label-9585
SELECT ALL + SUM ( + col2 ) FROM tab2 cor0
----
121

query I rowsort
SELECT + - ( + 40 ) AS col1 FROM tab0 AS cor0
----
-40
-40
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-9587
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 <> + + 11 / - col0
----
0

skipif mysql # not compatible
query I rowsort label-9587
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col0 <> + + 11 / - col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9588
SELECT DISTINCT + MAX( + col1 ) AS col1 FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-9588
SELECT DISTINCT + MAX ( + col1 ) AS col1 FROM tab2 AS cor0
----
77

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9589
SELECT DISTINCT + + CAST( - 96 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-9589
SELECT DISTINCT + + CAST ( - 96 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9590
SELECT * FROM tab2 WHERE NOT - CAST( NULL AS SIGNED ) / + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9590
SELECT * FROM tab2 WHERE NOT - CAST ( NULL AS INTEGER ) / + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9591
SELECT COUNT( * ) * - + MIN( ( + - col0 ) ) * COUNT( * ) FROM tab1
----
819

skipif mysql # not compatible
query I rowsort label-9591
SELECT COUNT ( * ) * - + MIN ( ( + - col0 ) ) * COUNT ( * ) FROM tab1
----
819

query I rowsort
SELECT ALL - 62 + - 56 AS col1 FROM tab2
----
-118
-118
-118

query I rowsort
SELECT - - col0 + + col0 + + - col2 AS col2 FROM tab2 WHERE NOT 45 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9594
SELECT ALL COUNT( * ) + + 58 FROM tab0, tab0 AS cor0
----
67

skipif mysql # not compatible
query I rowsort label-9594
SELECT ALL COUNT ( * ) + + 58 FROM tab0, tab0 AS cor0
----
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9595
SELECT ALL MAX( DISTINCT + 43 ) FROM tab2
----
43

skipif mysql # not compatible
query I rowsort label-9595
SELECT ALL MAX ( DISTINCT + 43 ) FROM tab2
----
43

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 51 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9597
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 + - CAST( + col1 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9597
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col2 + - CAST ( + col1 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9598
SELECT DISTINCT + MIN( ALL col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-9598
SELECT DISTINCT + MIN ( ALL col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-9599
SELECT + SUM( ALL - ( - col0 ) ) FROM tab2 AS cor0
----
185

skipif mysql # not compatible
query I rowsort label-9599
SELECT + SUM ( ALL - ( - col0 ) ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT DISTINCT - col2 + - - 65 AS col2 FROM tab2 cor0 WHERE NULL > ( NULL )
----

query I rowsort
SELECT DISTINCT + + col2 + - col0 + + 84 + + - ( col2 ) AS col2 FROM tab1 cor0
----
-1
-7
33

onlyif mysql # aggregate syntax: 
query I rowsort label-9602
SELECT DISTINCT - MAX( DISTINCT - - 23 ) col0 FROM tab2 AS cor0
----
-23

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9602
SELECT DISTINCT - MAX ( DISTINCT - - 23 ) col0 FROM tab2 AS cor0
----
-23

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9603
SELECT * FROM tab2 AS cor0 WHERE col1 <> - col1 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9603
SELECT * FROM tab2 AS cor0 WHERE col1 <> - col1 * CAST ( NULL AS INTEGER )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9604
SELECT + col0 + - - col2 DIV - col0 FROM tab0 AS cor0
----
12
87
96

skipif mysql # not compatible
query I rowsort label-9604
SELECT + col0 + - - col2 / - col0 FROM tab0 AS cor0
----
12
87
96

onlyif mysql # aggregate syntax: 
query I rowsort label-9605
SELECT ALL - COUNT( + - col1 ) * + 29 AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-9605
SELECT ALL - COUNT ( + - col1 ) * + 29 AS col0 FROM tab1 AS cor0
----
-87

query I rowsort
SELECT - - col1 * - col1 + col0 + - col1 FROM tab2 cor0
----
-2606
-4481
-5942

query I rowsort
SELECT ALL + col2 + - 29 FROM tab1
----
30
39
67

onlyif mysql # aggregate syntax: 
query I rowsort label-9608
SELECT DISTINCT - ( + + 33 ) + - 27 + + COUNT( * ) AS col2 FROM tab2
----
-57

skipif mysql # not compatible
query I rowsort label-9608
SELECT DISTINCT - ( + + 33 ) + - 27 + + COUNT ( * ) AS col2 FROM tab2
----
-57

query I rowsort
SELECT - col1 - + 79 * - - col0 + - + 40 * - col1 FROM tab0 AS cor0
----
-6054
-7624
1974

query I rowsort
SELECT DISTINCT + 84 * + 74 * col1 + ( - + col0 ) AS col2 FROM tab0 AS cor0
----
130449
503481
6119

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NULL < 7
----

query II rowsort
SELECT col1 AS col2, - col1 FROM tab2 WHERE NOT ( NOT 28 * + col2 + - col2 < - col0 )
----

query I rowsort
SELECT DISTINCT + 24 * - - col1 AS col0 FROM tab0
----
1944
24
504

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE + 10 + - 74 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9615
SELECT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NOT - col0 = + col0 * - + ( CAST( NULL AS SIGNED ) ) - - col0
----

skipif mysql # not compatible
query I rowsort label-9615
SELECT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NOT - col0 = + col0 * - + ( CAST ( NULL AS INTEGER ) ) - - col0
----

query I rowsort
SELECT + 53 * + ( - 22 ) AS col0 FROM tab2 AS cor0
----
-1166
-1166
-1166

onlyif mysql # DIV for integer division: 
query I rowsort label-9617
SELECT col2 DIV + 59 FROM tab0 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-9617
SELECT col2 / + 59 FROM tab0 AS cor0
----
0
0
1

query I rowsort
SELECT - 61 * + - col2 FROM tab0 AS cor0
----
2867
6039
610

onlyif mysql # DIV for integer division: 
query I rowsort label-9619
SELECT + 65 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

skipif mysql # not compatible
query I rowsort label-9619
SELECT + 65 / - col2 AS col1 FROM tab2 AS cor0
----
-1
-1
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9620
SELECT - - ( + + SUM( + col1 ) ) FROM tab0 AS cor0 WHERE NOT 25 * - - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9620
SELECT - - ( + + SUM ( + col1 ) ) FROM tab0 AS cor0 WHERE NOT 25 * - - col1 IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 84 col1 FROM tab1
----
84
84
84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1, 67 col0 FROM tab2
----
51
67
67
67
77
67

query I rowsort
SELECT + col2 + + 44 * col2 FROM tab1
----
2655
3060
4320

query I rowsort
SELECT + col2 + ( - col1 ) AS col2 FROM tab2
----
-28
-37
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + ( + - col1 ) + 69 + 36 col0 FROM tab2 AS cor0
----
28
38
54

query I rowsort
SELECT ALL 12 * - + col2 FROM tab0 cor0
----
-1188
-120
-564

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - - col1 * - 21 IS NOT NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9628
SELECT ALL + ( SUM( + col2 ) ) col1 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9628
SELECT ALL + ( SUM ( + col2 ) ) col1 FROM tab1 AS cor0
----
223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 + - 52 * col0 col2 FROM tab0
----
-4437
-4947
-765

onlyif mysql # DIV for integer division: 
query I rowsort label-9630
SELECT DISTINCT col0 + col0 + col2 DIV + - col1 AS col2 FROM tab2
----
128
150
92

skipif mysql # not compatible
query I rowsort label-9630
SELECT DISTINCT col0 + col0 + col2 / + - col1 AS col2 FROM tab2
----
128
150
92

query I rowsort
SELECT DISTINCT + - col0 - + + col2 AS col2 FROM tab1 AS cor0
----
-144
-147
-159

query I rowsort
SELECT - ( + 19 ) AS col2 FROM tab1 AS cor0
----
-19
-19
-19

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query I rowsort label-9633
SELECT ALL + CAST( CAST( - ( 94 ) AS DECIMAL ) AS SIGNED ) + - CAST( - ( - 41 ) AS SIGNED ) FROM tab2 AS cor0
----
-135
-135
-135

skipif mysql # not compatible
query I rowsort label-9633
SELECT ALL + CAST ( CAST ( - ( 94 ) AS REAL ) AS INTEGER ) + - CAST ( - ( - 41 ) AS INTEGER ) FROM tab2 AS cor0
----
-135
-135
-135

query I rowsort
SELECT DISTINCT col2 - + col0 + + + 61 AS col0 FROM tab1 AS cor0
----
106
35
38

query I rowsort
SELECT DISTINCT - col0 - - - 33 + - ( - col0 ) FROM tab0 AS cor0
----
-33

query I rowsort
SELECT ALL - ( 0 ) AS col1 FROM tab1 AS cor0
----
0
0
0

query I rowsort
SELECT + 75 FROM tab2 WHERE NULL IS NULL
----
75
75
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9638
SELECT ALL CAST( NULL AS SIGNED ) + - + col1 * - - col2 / - ( col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9638
SELECT ALL CAST ( NULL AS INTEGER ) + - + col1 * - - col2 / - ( col1 ) AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT 80 + col0 - col2 * - col1 AS col1 FROM tab0
----
276
377
3902

query III rowsort
SELECT * FROM tab0 WHERE + ( - col1 ) >= - + col0
----
87
21
10
97
1
99

onlyif mysql # aggregate syntax: 
query I rowsort label-9641
SELECT + MIN( ALL + 21 ) FROM tab0
----
21

skipif mysql # not compatible
query I rowsort label-9641
SELECT + MIN ( ALL + 21 ) FROM tab0
----
21

onlyif mysql # aggregate syntax: 
query II rowsort label-9642
SELECT 81 AS col0, - COUNT( * ) FROM tab0
----
81
-3

skipif mysql # not compatible
query II rowsort label-9642
SELECT 81 AS col0, - COUNT ( * ) FROM tab0
----
81
-3

query III rowsort
SELECT * FROM tab0 WHERE NOT + - 84 + col2 IS NOT NULL
----

query I rowsort
SELECT ALL 36 AS col1 FROM tab2 WHERE 80 IS NOT NULL
----
36
36
36

query I rowsort
SELECT DISTINCT - ( - + col2 ) AS col2 FROM tab0 cor0
----
10
47
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9646
SELECT DISTINCT MAX( ALL - col2 ) * 82 + CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9646
SELECT DISTINCT MAX ( ALL - col2 ) * 82 + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9647
SELECT ALL - MAX( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE + 42 BETWEEN + col0 AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9647
SELECT ALL - MAX ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE + 42 BETWEEN + col0 AND NULL
----
NULL

query I rowsort
SELECT DISTINCT ( + 37 ) + - col2 AS col0 FROM tab2
----
-21
-3
14

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / + col2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 6 AS col1 FROM tab0 WHERE - ( + 0 ) = ( + col2 )
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE ( NULL ) < + 79 / col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9652
SELECT 96 + + COUNT( * ) AS col0 FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-9652
SELECT 96 + + COUNT ( * ) AS col0 FROM tab1
----
99

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN col2 AND ( - 49 + col2 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 79 col2 FROM tab0 WHERE NOT 71 BETWEEN 2 / + 78 AND ( NULL )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col2 + col1 IS NOT NULL
----

query I rowsort
SELECT ALL 10 - col1 FROM tab2
----
-41
-57
-67

query III rowsort
SELECT * FROM tab2 WHERE ( + 61 * + 14 ) BETWEEN ( NULL ) AND ( - 78 )
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE 68 NOT BETWEEN col2 * col2 AND + ( ( ( 50 ) ) ) * - 24 + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9659
SELECT ALL - 65 FROM tab0 WHERE col1 NOT BETWEEN ( NULL ) AND col1 * CAST( col2 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9659
SELECT ALL - 65 FROM tab0 WHERE col1 NOT BETWEEN ( NULL ) AND col1 * CAST ( col2 AS INTEGER )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9660
SELECT ALL + CAST( NULL AS DECIMAL ) + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9660
SELECT ALL + CAST ( NULL AS REAL ) + col2 AS col0 FROM tab0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( 99 ) NOT IN ( + 32 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9662
SELECT 43 * - COUNT( * ) FROM tab0
----
-129

skipif mysql # not compatible
query I rowsort label-9662
SELECT 43 * - COUNT ( * ) FROM tab0
----
-129

query I rowsort
SELECT ALL 20 * - ( 44 ) + col2 FROM tab0
----
-781
-833
-870

onlyif mysql # aggregate syntax: 
query I rowsort label-9664
SELECT - COUNT( + col1 ) FROM tab0 WHERE NOT - col0 * col2 NOT IN ( + col1 + col1 )
----
0

skipif mysql # not compatible
query I rowsort label-9664
SELECT - COUNT ( + col1 ) FROM tab0 WHERE NOT - col0 * col2 NOT IN ( + col1 + col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL - col2 FROM tab0 WHERE ( ( + 46 ) ) IS NOT NULL
----
-10
-47
-99

query I rowsort
SELECT DISTINCT + 94 * col1 FROM tab0
----
1974
7614
94

onlyif mysql # DIV for integer division: 
query I rowsort label-9668
SELECT DISTINCT + 51 DIV col0 + + col2 DIV - col2 AS col0 FROM tab1 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-9668
SELECT DISTINCT + 51 / col0 + + col2 / - col2 AS col0 FROM tab1 AS cor0
----
-1
0

query I rowsort
SELECT DISTINCT 26 * 65 AS col2 FROM tab0
----
1690

onlyif mysql # aggregate syntax: 
query I rowsort label-9670
SELECT + - COUNT( * ) + 62 AS col1 FROM tab2 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-9670
SELECT + - COUNT ( * ) + 62 AS col1 FROM tab2 AS cor0
----
59

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 AS cor0 WHERE NULL IN ( 57 )
----

query I rowsort
SELECT ALL 25 - col2 FROM tab2 cor0
----
-15
-33
2

query I rowsort
SELECT ALL - 48 - 29 FROM tab2 AS cor0
----
-77
-77
-77

query I rowsort
SELECT DISTINCT + + 37 * col0 + - col2 FROM tab2 AS cor0
----
1679
2328
2717

onlyif mysql # aggregate syntax: 
query I rowsort label-9675
SELECT DISTINCT - COUNT( * ) - 61 * COUNT( * ) FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-9675
SELECT DISTINCT - COUNT ( * ) - 61 * COUNT ( * ) FROM tab0 AS cor0
----
-186

onlyif mysql # aggregate syntax: 
query I rowsort label-9676
SELECT MIN( col2 ) * - 29 AS col2 FROM tab2 AS cor0
----
-667

skipif mysql # not compatible
query I rowsort label-9676
SELECT MIN ( col2 ) * - 29 AS col2 FROM tab2 AS cor0
----
-667

query I rowsort
SELECT - col2 / - 33 + 53 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9678
SELECT + col1 AS col1 FROM tab1 WHERE NOT col1 <= - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-9678
SELECT + col1 AS col1 FROM tab1 WHERE NOT col1 <= - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT + ( - col2 ) * + ( 78 + - 73 ) FROM tab0
----
-235
-495
-50

query I rowsort
SELECT 33 AS col0 FROM tab0 WHERE NOT col0 NOT BETWEEN - col0 AND ( NULL )
----

query I rowsort
SELECT DISTINCT - ( + + 1 ) FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) BETWEEN ( - col2 ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9683
SELECT MAX( - 42 ) FROM tab0
----
-42

skipif mysql # not compatible
query I rowsort label-9683
SELECT MAX ( - 42 ) FROM tab0
----
-42

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 BETWEEN NULL AND 61
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9685
SELECT ALL + SUM( ALL + col2 ) AS col0 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-9685
SELECT ALL + SUM ( ALL + col2 ) AS col0 FROM tab1
----
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - 87 / + 86 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9687
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + col0 > + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-9687
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 * + col0 > + CAST ( NULL AS INTEGER )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + - 80 col1 FROM tab0 AS cor0 WHERE col2 IS NOT NULL
----
-33
-70
19

query I rowsort
SELECT + 88 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 6be17b82ecb3e8b268fcb4ba610ddb37

query I rowsort
SELECT + 9 FROM ( tab1 cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to 03b93b53107e36cf7d524e48c509b17b

query I rowsort
SELECT ALL col2 FROM tab0 WHERE NOT ( ( NULL ) IS NOT NULL )
----
10
47
99

query I rowsort
SELECT + col1 * col2 * + + col2 AS col0 FROM tab2
----
123200
225388
26979

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 23 * 61 / + col1 + + col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - col2 * 24 AS col2 FROM tab1 AS cor0 WHERE NOT 94 IS NOT NULL
----

query I rowsort
SELECT ALL - 3 * 64 + col2 FROM tab2 cor0 WHERE NULL IS NULL
----
-134
-152
-169

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-9696
SELECT DISTINCT - 97 AS col0, CAST( + + CAST( NULL AS SIGNED ) AS DECIMAL ) / col0 AS col2 FROM tab0 AS cor0
----
-97
NULL

skipif mysql # not compatible
query II rowsort label-9696
SELECT DISTINCT - 97 AS col0, CAST ( + + CAST ( NULL AS INTEGER ) AS REAL ) / col0 AS col2 FROM tab0 AS cor0
----
-97
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9697
SELECT DISTINCT + MIN( DISTINCT + + CAST( ( - 28 ) AS SIGNED ) ) col2 FROM tab2 AS cor0
----
-28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9697
SELECT DISTINCT + MIN ( DISTINCT + + CAST ( ( - 28 ) AS INTEGER ) ) col2 FROM tab2 AS cor0
----
-28

query III rowsort
SELECT * FROM tab1 cor0 WHERE NULL > col2 * + 63
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9699
SELECT ALL - 59 + - col1 + + col2 + - 70 DIV + col0 AS col1 FROM tab0
----
-70
-97
39

skipif mysql # not compatible
query I rowsort label-9699
SELECT ALL - 59 + - col1 + + col2 + - 70 / + col0 AS col1 FROM tab0
----
-70
-97
39

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 + + - ( - col2 ) AND ( col2 )
----

query I rowsort
SELECT ALL - col0 FROM tab0 WHERE NULL <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9702
SELECT col1 + - CAST( NULL AS SIGNED ) FROM tab1 WHERE - 85 * - col0 NOT BETWEEN ( col2 * - col0 ) AND ( col2 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9702
SELECT col1 + - CAST ( NULL AS INTEGER ) FROM tab1 WHERE - 85 * - col0 NOT BETWEEN ( col2 * - col0 ) AND ( col2 )
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9703
SELECT COUNT( * ) * 66 + - COUNT( 15 ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-9703
SELECT COUNT ( * ) * 66 + - COUNT ( 15 ) FROM tab2
----
195

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9704
SELECT DISTINCT 35 + + - MIN( DISTINCT + + ( + col0 ) ) DIV ( + 19 * SUM( DISTINCT - col2 ) ) AS col2 FROM tab1
----
35

skipif mysql # not compatible
query I rowsort label-9704
SELECT DISTINCT 35 + + - MIN ( DISTINCT + + ( + col0 ) ) / ( + 19 * SUM ( DISTINCT - col2 ) ) AS col2 FROM tab1
----
35

query I rowsort
SELECT 71 + - - col1 + + col0 AS col2 FROM tab0
----
167
169
179

query I rowsort
SELECT - 50 + 44 FROM tab0
----
-6
-6
-6

query I rowsort
SELECT DISTINCT - col1 + col0 * 79 + + + 71 AS col2 FROM tab0 AS cor0
----
1175
6923
7733

query I rowsort
SELECT DISTINCT - 51 * col1 AS col0 FROM tab0 AS cor0
----
-1071
-4131
-51

query I rowsort
SELECT + col1 * col1 * - + col0 FROM tab0 AS cor0
----
-38367
-97
-98415

query I rowsort
SELECT DISTINCT col2 * - 11 + - ( col0 ) FROM tab2 cor0
----
-299
-504
-713

onlyif mysql # aggregate syntax: 
query I rowsort label-9711
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE col0 NOT IN ( col2 - + col1 / 72 )
----
3

skipif mysql # not compatible
query I rowsort label-9711
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE col0 NOT IN ( col2 - + col1 / 72 )
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9712
SELECT - + COUNT( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9712
SELECT - + COUNT ( * ) col1 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
-9

onlyif mysql # DIV for integer division: 
query I rowsort label-9713
SELECT ALL col2 DIV - 6 FROM tab1
----
-11
-16
-9

skipif mysql # not compatible
query I rowsort label-9713
SELECT ALL col2 / - 6 FROM tab1
----
-11
-16
-9

query I rowsort
SELECT ALL 92 - - ( - + col0 ) - - ( + col2 ) AS col2 FROM tab0 AS cor0
----
124
15
94

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL <> - 4 + + 43
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9716
SELECT ( COUNT( ALL + ( col2 ) ) ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9716
SELECT ( COUNT ( ALL + ( col2 ) ) ) col2 FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col1 + + col1 col1 FROM tab0 AS cor0
----
-1134
-1806
-96

query I rowsort
SELECT col1 * + 66 * - col1 AS col0 FROM tab2
----
-171666
-296274
-391314

onlyif mysql # DIV for integer division: 
query I rowsort label-9719
SELECT DISTINCT - 24 DIV - 52 * - col0 * + col2 * col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-9719
SELECT DISTINCT - 24 / - 52 * - col0 * + col2 * col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9720
SELECT 72 * - + COUNT( * ) FROM tab0
----
-216

skipif mysql # not compatible
query I rowsort label-9720
SELECT 72 * - + COUNT ( * ) FROM tab0
----
-216

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9721
SELECT - COUNT( * ) DIV - - 37 * ( + SUM( DISTINCT col0 ) ) col2 FROM tab0
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9721
SELECT - COUNT ( * ) / - - 37 * ( + SUM ( DISTINCT col0 ) ) col2 FROM tab0
----
0

query II rowsort
SELECT + 73 AS col2, col2 FROM tab2
----
73
23
73
40
73
58

query I rowsort
SELECT ALL col2 AS col2 FROM tab2 WHERE NOT ( - col0 ) IS NULL
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-9724
SELECT - SUM( ALL 22 ) AS col1 FROM tab0
----
-66

skipif mysql # not compatible
query I rowsort label-9724
SELECT - SUM ( ALL 22 ) AS col1 FROM tab0
----
-66

query I rowsort
SELECT DISTINCT + col1 / + 28 AS col1 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----

query II rowsort
SELECT ALL + col0, + col0 AS col0 FROM tab0 AS cor0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 IN ( ( - col0 ) + - ( - ( col1 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 52 col1, col1 + + col1 AS col1 FROM tab1 AS cor0
----
52
10
52
28
52
94

query I rowsort
SELECT - 27 * - col2 FROM tab0
----
1269
2673
270

onlyif mysql # aggregate syntax: 
query I rowsort label-9730
SELECT ALL - MIN( - 1 ) FROM tab1 WHERE NOT - - 36 * ( - col1 ) IS NULL
----
1

skipif mysql # not compatible
query I rowsort label-9730
SELECT ALL - MIN ( - 1 ) FROM tab1 WHERE NOT - - 36 * ( - col1 ) IS NULL
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-9731
SELECT DISTINCT - COUNT( * ) / + + MAX( col1 ) / 72 FROM tab0 WHERE NOT NULL <> - 5 + + + 26
----
NULL

skipif mysql # not compatible
query I rowsort label-9731
SELECT DISTINCT - COUNT ( * ) / + + MAX ( col1 ) / 72 FROM tab0 WHERE NOT NULL <> - 5 + + + 26
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9732
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST( + 67 AS SIGNED ) / - - col2 = + - col0 / 67 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-9732
SELECT * FROM tab1 AS cor0 WHERE NOT ( - CAST ( + 67 AS INTEGER ) / - - col2 = + - col0 / 67 + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col0 + - - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-9734
SELECT - 70 DIV - col2 + + col0 FROM tab1 AS cor0
----
51
86
92

skipif mysql # not compatible
query I rowsort label-9734
SELECT - 70 / - col2 + + col0 FROM tab1 AS cor0
----
51
86
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 0 col2 FROM tab2 AS cor0
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( - 30 IN ( 86 ) )
----

query II rowsort
SELECT + col1 + + + col0, - col2 AS col0 FROM tab2 AS cor0
----
141
-40
142
-58
97
-23

query III rowsort
SELECT * FROM tab2 cor0 WHERE NULL >= col0 + 35 + + 87 * - col2
----

query I rowsort
SELECT ALL - + col2 * + 11 AS col0 FROM tab0 AS cor0
----
-1089
-110
-517

onlyif mysql # aggregate syntax: 
query I rowsort label-9740
SELECT DISTINCT - - SUM( ALL col1 ) FROM tab0 AS cor0
----
103

skipif mysql # not compatible
query I rowsort label-9740
SELECT DISTINCT - - SUM ( ALL col1 ) FROM tab0 AS cor0
----
103

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9741
SELECT + + CAST( NULL AS SIGNED ) + + + 11 + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9741
SELECT + + CAST ( NULL AS INTEGER ) + + + 11 + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9742
SELECT 21 + - - CAST( NULL AS SIGNED ) AS col2, + 58 DIV + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
NULL
-19

skipif mysql # not compatible
query II rowsort label-9742
SELECT 21 + - - CAST ( NULL AS INTEGER ) AS col2, + 58 / + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
NULL
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-9743
SELECT + COUNT( * ) AS col2 FROM tab1 WHERE + col1 = - + col2
----
0

skipif mysql # not compatible
query I rowsort label-9743
SELECT + COUNT ( * ) AS col2 FROM tab1 WHERE + col1 = - + col2
----
0

query I rowsort
SELECT DISTINCT + - 40 AS col1 FROM tab2 WHERE NULL IS NULL
----
-40

query I rowsort
SELECT DISTINCT - - 42 * + - col1 * - ( col2 ) * col0 + + 67 - 33 * - col2 * + col1 FROM tab1 AS cor0
----
1062952
12320647
2923267

query I rowsort
SELECT ALL - 72 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to ad521144c976ff25e77cdf10a84d1dc6

onlyif mysql # aggregate syntax: 
query I rowsort label-9747
SELECT DISTINCT - + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE - 94 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9747
SELECT DISTINCT - + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE - 94 IS NULL
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) >= - + col2
----

query I rowsort
SELECT DISTINCT - col2 * + 12 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) = ( NULL )
----

query I rowsort
SELECT ALL - 1 * col0 * - col1 FROM tab1 AS cor0
----
425
4277
714

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 33 * - ( + col2 ) IS NOT NULL
----

query I rowsort
SELECT - ( - 17 ) * col1 * - - col2 FROM tab2
----
19941
52360
66062

onlyif mysql # aggregate syntax: 
query I rowsort label-9753
SELECT COUNT( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-9753
SELECT COUNT ( DISTINCT col0 ) AS col2 FROM tab2 WHERE NOT NULL IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9754
SELECT DISTINCT + SUM( col0 ) AS col1 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9754
SELECT DISTINCT + SUM ( col0 ) AS col1 FROM tab1
----
227

query I rowsort
SELECT - 51 * - + 90 + - 42 FROM tab2 AS cor0
----
4548
4548
4548

query I rowsort
SELECT ALL col1 + - + 22 FROM tab2
----
29
45
55

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9757
SELECT * FROM tab2 WHERE + CAST( - 41 AS SIGNED ) - + col2 >= NULL
----

skipif mysql # not compatible
query III rowsort label-9757
SELECT * FROM tab2 WHERE + CAST ( - 41 AS INTEGER ) - + col2 >= NULL
----

query I rowsort
SELECT DISTINCT - + ( + 71 ) AS col2 FROM tab1 AS cor0
----
-71

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT col0 + - - 54 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9760
SELECT DISTINCT CAST( + 26 AS SIGNED ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-9760
SELECT DISTINCT CAST ( + 26 AS INTEGER ) FROM tab2 AS cor0
----
26

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( + 24 + - col0 ) IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, col0 * - - 32 FROM tab1 cor0
----
51
1632
85
2720
91
2912

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9763
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = + CAST( NULL AS SIGNED ) + + col1 - - - col2 / - col0 * + col2 / + + col2
----

skipif mysql # not compatible
query III rowsort label-9763
SELECT DISTINCT * FROM tab2 WHERE NOT col0 = + CAST ( NULL AS INTEGER ) + + col1 - - - col2 / - col0 * + col2 / + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9764
SELECT - COUNT( * ) + - - 86 AS col2 FROM tab0
----
83

skipif mysql # not compatible
query I rowsort label-9764
SELECT - COUNT ( * ) + - - 86 AS col2 FROM tab0
----
83

query II rowsort
SELECT ALL - col2 + + col1 + + ( + col2 ) * + col0, col2 FROM tab1
----
4814
96
4961
59
6167
68

query I rowsort
SELECT DISTINCT col0 + - 90 AS col1 FROM tab1
----
-39
-5
1

query II rowsort
SELECT + 76 + - col1 AS col0, col2 AS col1 FROM tab1
----
29
68
62
96
71
59

onlyif mysql # aggregate syntax: 
query I rowsort label-9768
SELECT - COUNT( + - col2 ) * - COUNT( * ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-9768
SELECT - COUNT ( + - col2 ) * - COUNT ( * ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-9769
SELECT ALL - - MAX( DISTINCT - - 78 ) FROM tab1 AS cor0
----
78

skipif mysql # not compatible
query I rowsort label-9769
SELECT ALL - - MAX ( DISTINCT - - 78 ) FROM tab1 AS cor0
----
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9770
SELECT - col1 * + - CAST( NULL AS SIGNED ) * 91 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9770
SELECT - col1 * + - CAST ( NULL AS INTEGER ) * 91 * col0 AS col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 1 * - + col1 col2 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT - 43 * 61 FROM tab1
----
-2623
-2623
-2623

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col1, + col2 * ( ( + + col0 ) ) FROM tab0
----
10
870
47
705
99
9603

query I rowsort
SELECT DISTINCT + + col1 + col1 AS col2 FROM tab2 AS cor0 WHERE + col1 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9775
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST( NULL AS SIGNED ) NOT BETWEEN col1 / + 50 * 7 + - + 67 AND + 13 )
----

skipif mysql # not compatible
query III rowsort label-9775
SELECT DISTINCT * FROM tab2 AS cor0 WHERE ( + CAST ( NULL AS INTEGER ) NOT BETWEEN col1 / + 50 * 7 + - + 67 AND + 13 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9776
SELECT + + CAST( NULL AS SIGNED ), COUNT( * ) + - + 9 DIV - 69 col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9776
SELECT + + CAST ( NULL AS INTEGER ), COUNT ( * ) + - + 9 / - 69 col1 FROM tab1 AS cor0 WHERE NOT + col1 IS NULL
----
NULL
3

query I rowsort
SELECT DISTINCT + 83 * + 57 FROM tab1 AS cor0
----
4731

query I rowsort
SELECT + col1 * - ( - col1 ) AS col0 FROM tab2
----
2601
4489
5929

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( + 78 ) * - ( - col1 ) col1 FROM tab1
----
1092
3666
390

onlyif mysql # aggregate syntax: 
query I rowsort label-9780
SELECT - COUNT( * ) * COUNT( - - col2 ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-9780
SELECT - COUNT ( * ) * COUNT ( - - col2 ) FROM tab0
----
-9

query II rowsort
SELECT - col0 * - 0 AS col1, col0 FROM tab2
----
0
46
0
64
0
75

query I rowsort
SELECT + col1 * - + 81 * + + col0 AS col0 FROM tab1
----
-34425
-346437
-57834

query III rowsort
SELECT * FROM tab1 WHERE NOT + col2 * + 44 + - + col0 - 93 NOT BETWEEN - 98 AND + - 0 + + - col0
----

query II rowsort
SELECT DISTINCT - col2 * - - col0 AS col0, 43 AS col0 FROM tab1
----
-4896
43
-5015
43
-6188
43

onlyif mysql # aggregate syntax: 
query I rowsort label-9785
SELECT COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-9785
SELECT COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT col2 IS NOT NULL
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9786
SELECT col2 DIV + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9786
SELECT col2 / + + col0 AS col0 FROM tab2 AS cor0
----
0
0
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + + col0 ) AS col2, + col1 col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query I rowsort
SELECT ALL - 0 FROM tab0 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-9789
SELECT DISTINCT COUNT( * ) + - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

skipif mysql # not compatible
query I rowsort label-9789
SELECT DISTINCT COUNT ( * ) + - 24 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-15

query II rowsort
SELECT + - 51 * col2 + + 60 AS col1, col2 FROM tab1 AS cor0
----
-2949
59
-3408
68
-4836
96

query II rowsort
SELECT - 76 * 55 + - 4 + + 8 * - 16, col2 + col0 AS col2 FROM tab0 AS cor0
----
-4312
196
-4312
62
-4312
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9792
SELECT ALL + col1 DIV + 83 * col1 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9792
SELECT ALL + col1 / + 83 * col1 FROM tab0 AS cor0
----
0
0
0

query II rowsort
SELECT DISTINCT + 97, + 11 AS col2 FROM tab2 AS cor0
----
97
11

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * + col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9795
SELECT - - col2 + col0 + - ( + col2 ) + - - CAST( + CAST( - 23 AS SIGNED ) AS SIGNED ) FROM tab2 AS cor0
----
23
41
52

skipif mysql # not compatible
query I rowsort label-9795
SELECT - - col2 + col0 + - ( + col2 ) + - - CAST ( + CAST ( - 23 AS INTEGER ) AS INTEGER ) FROM tab2 AS cor0
----
23
41
52

onlyif mysql # aggregate syntax: 
query I rowsort label-9796
SELECT + MAX( 96 ) FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-9796
SELECT + MAX ( 96 ) FROM tab0 AS cor0
----
96

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL <= - col2 * + + 92
----

query I rowsort
SELECT + 23 * - + col1 FROM tab2 AS cor0 WHERE col2 IS NOT NULL
----
-1173
-1541
-1771

onlyif mysql # aggregate syntax: 
query I rowsort label-9799
SELECT ALL - + SUM( col0 ) + + + COUNT( * ) - - - 34 AS col1 FROM tab1 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-9799
SELECT ALL - + SUM ( col0 ) + + + COUNT ( * ) - - - 34 AS col1 FROM tab1 AS cor0
----
-258

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9800
SELECT + 86 DIV - SUM( - - 48 ) col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9800
SELECT + 86 / - SUM ( - - 48 ) col1 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-9801
SELECT - col1 DIV + - 94 AS col1, CAST( + ( - ( col0 ) ) AS SIGNED ) AS col0 FROM tab2
----
0
-46
0
-64
0
-75

skipif mysql # not compatible
query II rowsort label-9801
SELECT - col1 / + - 94 AS col1, CAST ( + ( - ( col0 ) ) AS INTEGER ) AS col0 FROM tab2
----
0
-46
0
-64
0
-75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 - + col2 col1, - col1 FROM tab2
----
28
-51
37
-77
9
-67

query I rowsort
SELECT col0 * + col1 - + 94 AS col1 FROM tab2
----
2252
4834
4931

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 - - col1 * - 20 col2 FROM tab0 cor0
----
-1539
-19
-399

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9805
SELECT DISTINCT AVG ( DISTINCT col1 ) - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9805
SELECT DISTINCT AVG ( DISTINCT col1 ) - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 10 * - - col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL + 30 - col1 AS col0 FROM tab1 AS cor0
----
-17
16
25

onlyif mysql # aggregate syntax: 
query I rowsort label-9808
SELECT - - COUNT( ALL - 89 ) + + 66 col0 FROM tab2 AS cor0
----
69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9808
SELECT - - COUNT ( ALL - 89 ) + + 66 col0 FROM tab2 AS cor0
----
69

query II rowsort
SELECT DISTINCT + 71, - 20 AS col2 FROM tab2 AS cor0
----
71
-20

query I rowsort
SELECT DISTINCT - + ( + col1 ) * + - col2 FROM tab1 AS cor0
----
1344
295
3196

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT ALL - 59 * + 44, - col0 col1, col0 + - 22 * - col1 * - - 94 * - ( - + col1 ) + - - col1 + + - col1 AS col2 FROM tab1 cor0
----
9 values hashing to d0bf5bf1e73e5a82352cb34a3e7d053f

onlyif mysql # aggregate syntax: 
query I rowsort label-9812
SELECT + COUNT( ( col2 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9812
SELECT + COUNT ( ( col2 ) ) FROM tab0 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9813
SELECT ALL + - MAX( col0 ) AS col2 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9813
SELECT ALL + - MAX ( col0 ) AS col2 FROM tab0 AS cor0
----
-97

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE + 48 + 57 IS NULL
----

query I rowsort
SELECT ALL - 16 * col0 / col1 + 86 AS col1 FROM tab0 WHERE + + col1 NOT BETWEEN + - col2 + col1 + + - col1 * 8 AND NULL
----

query II rowsort
SELECT - col0, 56 * - col2 AS col2 FROM tab0 WHERE NOT NULL > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9817
SELECT ( + COUNT( * ) ) * 92 + - - 52 FROM tab1
----
328

skipif mysql # not compatible
query I rowsort label-9817
SELECT ( + COUNT ( * ) ) * 92 + - - 52 FROM tab1
----
328

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9818
SELECT ALL MIN( ALL + 72 ) DIV + - SUM( DISTINCT - col1 ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-9818
SELECT ALL MIN ( ALL + 72 ) / + - SUM ( DISTINCT - col1 ) FROM tab1
----
1

query I rowsort
SELECT ( + + col2 ) * - 55 AS col2 FROM tab2
----
-1265
-2200
-3190

query I rowsort
SELECT col2 AS col0 FROM tab1 WHERE NOT - col0 IS NOT NULL
----

query II rowsort
SELECT 67 AS col0, 89 * + ( + 73 ) FROM tab1
----
67
6497
67
6497
67
6497

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + - + col0 + col1 * + col0 col0 FROM tab1 AS cor0
----
425
4277
714

onlyif mysql # aggregate syntax: 
query I rowsort label-9823
SELECT DISTINCT 46 * 54 + + 41 + - COUNT( * ) FROM tab2 WHERE - 2 * - - col1 IS NULL
----
2525

skipif mysql # not compatible
query I rowsort label-9823
SELECT DISTINCT 46 * 54 + + 41 + - COUNT ( * ) FROM tab2 WHERE - 2 * - - col1 IS NULL
----
2525

query II rowsort
SELECT ( + col0 ) AS col2, col1 FROM tab0
----
15
81
87
21
97
1

query I rowsort
SELECT DISTINCT + + col2 + 31 FROM tab0 AS cor0
----
130
41
78

query I rowsort
SELECT + col0 AS col1 FROM tab1 AS cor0 WHERE ( NULL < NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-9827
SELECT ALL ( - 21 ) AS col2, COUNT( * ) FROM tab1 AS cor0
----
-21
3

skipif mysql # not compatible
query II rowsort label-9827
SELECT ALL ( - 21 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
-21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-9828
SELECT - MAX( + col0 ) + - - COUNT( * ) AS col0 FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-9828
SELECT - MAX ( + col0 ) + - - COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-94

query I rowsort
SELECT DISTINCT col0 * - col0 * + ( - 6 ) AS col1 FROM tab1
----
15606
43350
49686

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9830
SELECT ALL ( - - CAST( - + col1 AS SIGNED ) ) + + + 44 AS col0 FROM tab1
----
-3
30
39

skipif mysql # not compatible
query I rowsort label-9830
SELECT ALL ( - - CAST ( - + col1 AS INTEGER ) ) + + + 44 AS col0 FROM tab1
----
-3
30
39

query I rowsort
SELECT ALL - col2 + + ( - col2 ) - - ( col2 ) AS col0 FROM tab2
----
-23
-40
-58

query I rowsort
SELECT DISTINCT 16 + + 63 + + - 56 * 72 + col1 AS col1 FROM tab0
----
-3872
-3932
-3952

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - 1 * + 13 * - - 97 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9834
SELECT DISTINCT - 92 + - - COUNT( * ) AS col2 FROM tab2
----
-89

skipif mysql # not compatible
query I rowsort label-9834
SELECT DISTINCT - 92 + - - COUNT ( * ) AS col2 FROM tab2
----
-89

query I rowsort
SELECT ALL + - col0 * 47 - 51 AS col1 FROM tab1 cor0
----
-2448
-4046
-4328

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col0 / - 86 < - col2 * + col1 * ( - col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9837
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) * + - col1 IS NULL
----

skipif mysql # not compatible
query III rowsort label-9837
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) * + - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9838
SELECT COUNT( * ) * COUNT( * ) * - COUNT( * ) AS col1 FROM tab2
----
-27

skipif mysql # not compatible
query I rowsort label-9838
SELECT COUNT ( * ) * COUNT ( * ) * - COUNT ( * ) AS col1 FROM tab2
----
-27

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT ( col2 ) IS NULL )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * + + col0 IS NOT NULL
----

query I rowsort
SELECT - col1 + col2 + + 56 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9842
SELECT ALL + - COUNT( DISTINCT - col0 ) FROM tab2 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-9842
SELECT ALL + - COUNT ( DISTINCT - col0 ) FROM tab2 cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-9843
SELECT + SUM( ALL - + col0 ) FROM tab2 AS cor0 WHERE NOT col0 <> + - 64
----
NULL

skipif mysql # not compatible
query I rowsort label-9843
SELECT + SUM ( ALL - + col0 ) FROM tab2 AS cor0 WHERE NOT col0 <> + - 64
----
NULL

query II rowsort
SELECT ALL - - 80, + col2 FROM tab0 cor0
----
80
10
80
47
80
99

query II rowsort
SELECT DISTINCT 38 AS col2, + 11 AS col0 FROM tab2 AS cor0
----
38
11

query I rowsort
SELECT ALL col0 + + - col2 FROM tab1
----
-45
23
26

onlyif mysql # aggregate syntax: 
query I rowsort label-9847
SELECT SUM( ( col0 ) ) FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9847
SELECT SUM ( ( col0 ) ) FROM tab1
----
227

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( - ( - 42 ) ) * - 94 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL - 86 * + + col1 AS col2 FROM tab2
----
-4386
-5762
-6622

onlyif mysql # aggregate syntax: 
query I rowsort label-9850
SELECT DISTINCT - ( + 13 ) + - MAX( - 71 ) * - 7 AS col2 FROM tab0
----
-510

skipif mysql # not compatible
query I rowsort label-9850
SELECT DISTINCT - ( + 13 ) + - MAX ( - 71 ) * - 7 AS col2 FROM tab0
----
-510

query I rowsort
SELECT ALL 7 + 27 AS col1 FROM tab2
----
34
34
34

onlyif mysql # DIV for integer division: 
query I rowsort label-9852
SELECT + + col1 DIV + + col0 AS col0 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-9852
SELECT + + col1 / + + col0 AS col0 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE col2 < NULL
----

query I rowsort
SELECT - 66 FROM tab2 AS cor0 WHERE + 7 BETWEEN NULL AND 21
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9855
SELECT ALL - - COUNT( * ) * - + COUNT( * ) FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-9855
SELECT ALL - - COUNT ( * ) * - + COUNT ( * ) FROM tab2 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-9856
SELECT DISTINCT + MIN( ALL - - 97 ) FROM tab1 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-9856
SELECT DISTINCT + MIN ( ALL - - 97 ) FROM tab1 AS cor0
----
97

onlyif mysql # DIV for integer division: 
query I rowsort label-9857
SELECT ALL col2 * col0 DIV + col2 FROM tab0
----
15
87
97

skipif mysql # not compatible
query I rowsort label-9857
SELECT ALL col2 * col0 / + col2 FROM tab0
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-9858
SELECT + SUM( ( - - col0 ) ) AS col2 FROM tab1
----
227

skipif mysql # not compatible
query I rowsort label-9858
SELECT + SUM ( ( - - col0 ) ) AS col2 FROM tab1
----
227

query I rowsort
SELECT ALL + + 47 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 4fe192f296791e1e40ea00a68aa8dab7

onlyif mysql # aggregate syntax: 
query I rowsort label-9860
SELECT MIN( - + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-9860
SELECT MIN ( - + col0 ) FROM tab0 AS cor0
----
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-9861
SELECT ALL COUNT( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-9861
SELECT ALL COUNT ( DISTINCT + + col0 ) AS col0 FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9862
SELECT CAST( + col1 AS SIGNED ) * + 70 FROM tab1 AS cor0
----
3290
350
980

skipif mysql # not compatible
query I rowsort label-9862
SELECT CAST ( + col1 AS INTEGER ) * + 70 FROM tab1 AS cor0
----
3290
350
980

query I rowsort
SELECT col2 * - ( 73 ) - - ( - + col0 ) + col0 + col1 + 52 FROM tab0 cor0
----
-3298
-657
-7174

query I rowsort
SELECT col2 * + ( col0 ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN col0 AND + - col0
----

query I rowsort
SELECT ALL - col0 + col0 FROM tab2 WHERE - + 62 IS NOT NULL
----
0
0
0

query I rowsort
SELECT ALL 5 + - 44 FROM tab1
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-9867
SELECT + COUNT( ALL col2 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9867
SELECT + COUNT ( ALL col2 ) AS col0 FROM tab1
----
3

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9868
SELECT - col2 * + - col1 + - - col2 - + 69 + - CAST( NULL AS DECIMAL ) * + col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9868
SELECT - col2 * + - col1 + - - col2 - + 69 + - CAST ( NULL AS REAL ) * + col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 98 + col2 + - col0 * + 57 * + col0 AS col1 FROM tab0
----
-12680
-431325
-536116

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 52 + ( - 53 ) <= - + col0 + 64
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - - 66 + col0 FROM tab0 AS cor0
----
153
163
81

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + col2 * + col0 <= - - col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL < 43
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9874
SELECT + 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST( CAST( NULL AS SIGNED ) AS SIGNED ) NOT BETWEEN + 66 + 3 AND NULL
----

skipif mysql # not compatible
query I rowsort label-9874
SELECT + 2 AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) NOT BETWEEN + 66 + 3 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9875
SELECT col2 DIV col0 + - 48 - col0 FROM tab0 AS cor0
----
-135
-144
-60

skipif mysql # not compatible
query I rowsort label-9875
SELECT col2 / col0 + - 48 - col0 FROM tab0 AS cor0
----
-135
-144
-60

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - 50 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9877
SELECT - COUNT( * ) - + ( - COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-9877
SELECT - COUNT ( * ) - + ( - COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
0

query I rowsort
SELECT 82 AS col0 FROM tab0 AS cor0 WHERE 61 NOT IN ( col0, + 39 * - 62 - col1 )
----
82
82
82

query I rowsort
SELECT - col2 - - 87 AS col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-12
40
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - 55, - 58 col2 FROM tab1
----
-55
-58

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + 77 col1, - col1 FROM tab1
----
77
-14
77
-47
77
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-9882
SELECT DISTINCT 11 DIV col1 FROM tab0
----
0
11

skipif mysql # not compatible
query I rowsort label-9882
SELECT DISTINCT 11 / col1 FROM tab0
----
0
11

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9883
SELECT - ( - + col1 ) * - - CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9883
SELECT - ( - + col1 ) * - - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9884
SELECT DISTINCT 97 * CAST( NULL AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-9884
SELECT DISTINCT 97 * CAST ( NULL AS INTEGER ) FROM tab0
----
NULL

query I rowsort
SELECT - 2 + col0 AS col0 FROM tab0 cor0 WHERE NOT - ( + - col0 ) > 41 * - + col0
----

query I rowsort
SELECT + + col2 * + col1 - + 34 FROM tab1 cor0
----
1310
261
3162

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-9887
SELECT col2 DIV + CAST( - col1 AS SIGNED ) AS col2 FROM tab2 WHERE NOT ( - 21 ) IS NULL
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9887
SELECT col2 / + CAST ( - col1 AS INTEGER ) AS col2 FROM tab2 WHERE NOT ( - 21 ) IS NULL
----
0
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-9888
SELECT 90 DIV + col2 AS col2 FROM tab2
----
1
2
3

skipif mysql # not compatible
query I rowsort label-9888
SELECT 90 / + col2 AS col2 FROM tab2
----
1
2
3

query II rowsort
SELECT ALL + 86 * + col1 AS col1, - col1 FROM tab2
----
4386
-51
5762
-67
6622
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9890
SELECT COUNT( * ) DIV - + SUM( col0 ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-9890
SELECT COUNT ( * ) / - + SUM ( col0 ) FROM tab2 cor0
----
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( + col1 ) + + 7 + col1 * - + col2 > NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 <> 71
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + + col2 + + - col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-9894
SELECT + - COUNT( * ) + + COUNT( * ) + 5 * + COUNT( * ) * - SUM( col0 ) AS col1 FROM tab1 AS cor0
----
-3405

skipif mysql # not compatible
query I rowsort label-9894
SELECT + - COUNT ( * ) + + COUNT ( * ) + 5 * + COUNT ( * ) * - SUM ( col0 ) AS col1 FROM tab1 AS cor0
----
-3405

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 41 + 30 col1 FROM tab0 AS cor0 WHERE NOT ( - col0 ) * - 13 IS NULL
----
71
71
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9896
SELECT DISTINCT - + col1 / + CAST( NULL AS DECIMAL ) - + 51 AS col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9896
SELECT DISTINCT - + col1 / + CAST ( NULL AS REAL ) - + 51 AS col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT + - col0 + col2 * 89 FROM tab0 AS cor0
----
4168
803
8714

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9898
SELECT + CAST( + 3 AS SIGNED ) + - 22 AS col1 FROM tab1 cor0
----
-19
-19
-19

skipif mysql # not compatible
query I rowsort label-9898
SELECT + CAST ( + 3 AS INTEGER ) + - 22 AS col1 FROM tab1 cor0
----
-19
-19
-19

query I rowsort
SELECT DISTINCT 59 FROM tab0 WHERE + col0 BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9900
SELECT + CAST( col1 AS SIGNED ) + col1 FROM tab2
----
102
134
154

skipif mysql # not compatible
query I rowsort label-9900
SELECT + CAST ( col1 AS INTEGER ) + col1 FROM tab2
----
102
134
154

onlyif mysql # aggregate syntax: 
query I rowsort label-9901
SELECT DISTINCT - COUNT( * ) + + 17 FROM tab2
----
14

skipif mysql # not compatible
query I rowsort label-9901
SELECT DISTINCT - COUNT ( * ) + + 17 FROM tab2
----
14

onlyif mysql # aggregate syntax: 
query I rowsort label-9902
SELECT - MAX( DISTINCT + + 51 ) AS col2 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-9902
SELECT - MAX ( DISTINCT + + 51 ) AS col2 FROM tab2
----
-51

query I rowsort
SELECT DISTINCT + 88 + - col1 - col0 FROM tab1
----
-2
-50
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9904
SELECT ALL - CAST( + ( - 68 ) AS SIGNED ) FROM tab0 AS cor0
----
68
68
68

skipif mysql # not compatible
query I rowsort label-9904
SELECT ALL - CAST ( + ( - 68 ) AS INTEGER ) FROM tab0 AS cor0
----
68
68
68

onlyif mysql # aggregate syntax: 
query I rowsort label-9905
SELECT + MAX( ALL - ( - col1 ) ) + + 44 AS col2 FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-9905
SELECT + MAX ( ALL - ( - col1 ) ) + + 44 AS col2 FROM tab1 AS cor0
----
91

query I rowsort
SELECT DISTINCT + + col2 * + + col2 AS col2 FROM tab2 AS cor0
----
1600
3364
529

query I rowsort
SELECT DISTINCT 33 + + 3 FROM tab1
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-9908
SELECT ALL ( COUNT( * ) ) AS col1 FROM tab2 WHERE NOT col2 * + + col0 NOT IN ( - col0 * - col1, + 0 * col2 ) AND col0 * col1 / - col0 BETWEEN NULL AND + col0
----
0

skipif mysql # not compatible
query I rowsort label-9908
SELECT ALL ( COUNT ( * ) ) AS col1 FROM tab2 WHERE NOT col2 * + + col0 NOT IN ( - col0 * - col1, + 0 * col2 ) AND col0 * col1 / - col0 BETWEEN NULL AND + col0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9909
SELECT ALL * FROM tab0 WHERE + CAST( NULL AS SIGNED ) IS NOT NULL AND NULL BETWEEN - col1 + 35 AND + 22 * + 5 * + + col1
----

skipif mysql # not compatible
query III rowsort label-9909
SELECT ALL * FROM tab0 WHERE + CAST ( NULL AS INTEGER ) IS NOT NULL AND NULL BETWEEN - col1 + 35 AND + 22 * + 5 * + + col1
----

query I rowsort
SELECT - 32 AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to ef8f93119983b962f4c81381ebf4b1e6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col1, col2 * - - 2 * + + col2 AS col1 FROM tab2
----
51
1058
67
6728
77
3200

onlyif mysql # aggregate syntax: 
query II rowsort label-9912
SELECT 43, MAX( col0 ) col1 FROM tab0 AS cor0
----
43
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-9912
SELECT 43, MAX ( col0 ) col1 FROM tab0 AS cor0
----
43
97

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-9913
SELECT DISTINCT - COUNT( * ) / - 32 - - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-9913
SELECT DISTINCT - COUNT ( * ) / - 32 - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT col0 * - 36 + - col2 AS col2 FROM tab0 AS cor0
----
-3142
-3591
-587

query I rowsort
SELECT + 24 + + + col1 AS col1 FROM tab1 AS cor0 WHERE NOT + 46 * + col0 IS NULL
----
29
38
71

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-9916
SELECT ALL - + CAST( NULL AS DECIMAL ) * - - ( - col1 ) + - + col0 + ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-9916
SELECT ALL - + CAST ( NULL AS REAL ) * - - ( - col1 ) + - + col0 + ( + col2 ) FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-9917
SELECT COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - ( col1 ) / - 4 + + 87
----
0

skipif mysql # not compatible
query I rowsort label-9917
SELECT COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND - ( col1 ) / - 4 + + 87
----
0

query II rowsort
SELECT + col2 AS col0, 78 FROM tab2 AS cor0
----
23
78
40
78
58
78

query I rowsort
SELECT - 17 * col1 * + 39 FROM tab1 AS cor0
----
-31161
-3315
-9282

query II rowsort
SELECT ALL + + col2, + col1 FROM tab0 AS cor0
----
10
21
47
81
99
1

query I rowsort
SELECT DISTINCT - - col1 * + col0 AS col0 FROM tab1 cor0
----
425
4277
714

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT 77 = col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + - col2 AS col2 FROM tab2 WHERE NOT col2 + + col0 <> ( + col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-9924
SELECT DISTINCT + CAST( + - 18 AS SIGNED ) AS col1, + ( SUM( ALL col1 ) ) FROM tab1
----
-18
66

skipif mysql # not compatible
query II rowsort label-9924
SELECT DISTINCT + CAST ( + - 18 AS INTEGER ) AS col1, + ( SUM ( ALL col1 ) ) FROM tab1
----
-18
66

query I rowsort
SELECT DISTINCT - col2 * - col0 * col1 * - col0 AS col1 FROM tab0
----
-1589490
-856575
-931491

onlyif mysql # DIV for integer division: 
query II rowsort label-9926
SELECT - col0 DIV + + col0 AS col0, - 1 FROM tab0
----
-1
-1
-1
-1
-1
-1

skipif mysql # not compatible
query II rowsort label-9926
SELECT - col0 / + + col0 AS col0, - 1 FROM tab0
----
-1
-1
-1
-1
-1
-1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + 47 * col1 * - - 43 + - - 42 + - col2 <= + + col1 + - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 39 * - col0 AS col2 FROM tab1
----
-1989
-3315
-3549

query I rowsort
SELECT - 6 * - 17 * + 36 AS col1 FROM tab2
----
3672
3672
3672

query II rowsort
SELECT DISTINCT - - col0 * col2 AS col0, + col1 AS col1 FROM tab1 AS cor0
----
4896
14
5015
5
6188
47

query I rowsort
SELECT ALL - - 43 FROM tab0 AS cor0 WHERE ( col2 * col2 ) BETWEEN + 3 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9932
SELECT DISTINCT col0 DIV - - col2 + + - col2 FROM tab2 AS cor0
----
-21
-39
-57

skipif mysql # not compatible
query I rowsort label-9932
SELECT DISTINCT col0 / - - col2 + + - col2 FROM tab2 AS cor0
----
-21
-39
-57

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-9933
SELECT ALL * FROM tab2 cor0 WHERE CAST( - col1 AS SIGNED ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-9933
SELECT ALL * FROM tab2 cor0 WHERE CAST ( - col1 AS INTEGER ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + 61 AS col1 FROM tab2 WHERE NULL NOT IN ( + col2 + - - col1 + - col0, 15 )
----

query II rowsort
SELECT 68, col1 + - col0 AS col1 FROM tab0
----
68
-66
68
-96
68
66

query I rowsort
SELECT - col1 * + + 7 FROM tab2 AS cor0
----
-357
-469
-539

onlyif mysql # aggregate syntax: 
query I rowsort label-9937
SELECT ALL 28 * + COUNT( * ) FROM tab2 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-9937
SELECT ALL 28 * + COUNT ( * ) FROM tab2 AS cor0
----
84

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + col0 + - 93 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-9939
SELECT DISTINCT + 71 DIV + - ( - 32 ) AS col0 FROM tab1 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-9939
SELECT DISTINCT + 71 / + - ( - 32 ) AS col0 FROM tab1 AS cor0
----
2

query I rowsort
SELECT - + ( 2 ) FROM tab0 AS cor0
----
-2
-2
-2

onlyif mysql # aggregate syntax: 
query I rowsort label-9941
SELECT ALL ( + COUNT( * ) ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9941
SELECT ALL ( + COUNT ( * ) ) col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT DISTINCT - - col1 AS col2, + 39 FROM tab0 AS cor0 WHERE NOT NULL > col0 + - col2 - + - col2 + - col0
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - ( - - col2 ) < - - col0 OR col1 * - - 71 * - - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-9944
SELECT DISTINCT col2 * - col1 + - - col2 DIV - 19 + + col1 DIV - 37, col1 FROM tab2 AS cor0
----
-1175
51
-3084
77
-3890
67

skipif mysql # not compatible
query II rowsort label-9944
SELECT DISTINCT col2 * - col1 + - - col2 / - 19 + + col1 / - 37, col1 FROM tab2 AS cor0
----
-1175
51
-3084
77
-3890
67

query I rowsort
SELECT ALL + col1 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN NULL AND ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + ( 49 ) col2 FROM tab2 AS cor0
----
49
49
49

query I rowsort
SELECT ALL - col2 + 55 AS col0 FROM tab0
----
-44
45
8

query I rowsort
SELECT col1 * + + col0 + - col0 FROM tab1 WHERE + - 64 IN ( + 8 * col0, - col0, 0 * col1, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9949
SELECT DISTINCT + 53 + + COUNT( * ) AS col2 FROM tab1
----
56

skipif mysql # not compatible
query I rowsort label-9949
SELECT DISTINCT + 53 + + COUNT ( * ) AS col2 FROM tab1
----
56

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - col2 >= ( col0 * + col1 + - col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9951
SELECT ALL - CAST( NULL AS SIGNED ) FROM tab0 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-9951
SELECT ALL - CAST ( NULL AS INTEGER ) FROM tab0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT + 42 AS col2, - 3 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to ab8e9ac88b1ead56e9253b09de9bee0e

query I rowsort
SELECT DISTINCT + - 33 AS col2 FROM tab1 cor0
----
-33

query I rowsort
SELECT + - ( + 12 ) AS col0 FROM tab2 AS cor0
----
-12
-12
-12

query I rowsort
SELECT 27 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9956
SELECT CAST( - AVG ( DISTINCT - - 90 ) AS SIGNED ) AS col1 FROM tab1
----
-90

skipif mysql # not compatible
query I rowsort label-9956
SELECT CAST ( - AVG ( DISTINCT - - 90 ) AS INTEGER ) AS col1 FROM tab1
----
-90

query I rowsort
SELECT col2 * - ( - col1 ) AS col0 FROM tab0
----
210
3807
99

onlyif mysql # DIV for integer division: 
query I rowsort label-9958
SELECT - col2 DIV + - col0 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-9958
SELECT - col2 / + - col0 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab0 WHERE NOT ( + - 78 ) / - col0 - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9960
SELECT - MAX( + col1 ) FROM tab0 AS cor0 WHERE NOT 51 - col1 * - ( col2 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-9960
SELECT - MAX ( + col1 ) FROM tab0 AS cor0 WHERE NOT 51 - col1 * - ( col2 ) IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - + col0, + col2 col0 FROM tab1 AS cor0
----
-51
96
-85
59
-91
68

query II rowsort
SELECT + 23 AS col1, 68 FROM tab2 AS cor0
----
23
68
23
68
23
68

query I rowsort
SELECT ALL + - 17 + col1 FROM tab2 AS cor0
----
34
50
60

query I rowsort
SELECT DISTINCT 70 AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
70

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( 63 + - + col1 ) IS NULL
----

query I rowsort
SELECT ALL - + col2 * + 21 + - col2 * - + col1 FROM tab1 AS cor0
----
-672
-944
1768

onlyif mysql # aggregate syntax: 
query I rowsort label-9967
SELECT DISTINCT - + SUM( + 61 ) FROM tab2 AS cor0
----
-183

skipif mysql # not compatible
query I rowsort label-9967
SELECT DISTINCT - + SUM ( + 61 ) FROM tab2 AS cor0
----
-183

query I rowsort
SELECT col1 * + 36 + - + 83 * 15 + + - 57 + col2 FROM tab2 AS cor0
----
1168
1510
557

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col2 + - 26 IS NOT NULL
----

query I rowsort
SELECT ( col2 ) * col0 + 54 AS col1 FROM tab2 AS cor0
----
1112
2614
4404

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + - col2 ) * + 23 >= + col0 + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - + col2 * + col2 * 83 AS col2 FROM tab1 AS cor0
----
-288923
-383792
-764928

onlyif mysql # DIV for integer division: 
query I rowsort label-9973
SELECT col1 DIV + + 30 FROM tab2 cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-9973
SELECT col1 / + + 30 FROM tab2 cor0
----
1
2
2

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9974
SELECT - CAST( - 95 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
95
95
95

skipif mysql # not compatible
query I rowsort label-9974
SELECT - CAST ( - 95 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
95
95
95

onlyif mysql # aggregate syntax: 
query I rowsort label-9975
SELECT + + 11 * + + ( + + COUNT( * ) ) + 0 col2 FROM tab2 cor0
----
33

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-9975
SELECT + + 11 * + + ( + + COUNT ( * ) ) + 0 col2 FROM tab2 cor0
----
33

query I rowsort
SELECT - col2 * - - 67 AS col0 FROM tab1
----
-3953
-4556
-6432

query I rowsort
SELECT DISTINCT col1 + - col1 * + col0 - + col0 AS col0 FROM tab2
----
-2341
-4915
-5033

query III rowsort
SELECT * FROM tab2 WHERE ( - col2 ) NOT IN ( - + ( 56 ), + col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - col2 / - + 98 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, - 76 col1 FROM tab0
----
15
-76
87
-76
97
-76

query I rowsort
SELECT ALL 22 + + + col1 AS col0 FROM tab1
----
27
36
69

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-9982
SELECT ALL MIN( col0 ) - + - 43 DIV - + COUNT( * ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-9982
SELECT ALL MIN ( col0 ) - + - 43 / - + COUNT ( * ) AS col2 FROM tab0
----
1

query II rowsort
SELECT DISTINCT col2 - 71 * + 7 AS col1, + col0 FROM tab2
----
-439
75
-457
64
-474
46

onlyif mysql # aggregate syntax: 
query I rowsort label-9984
SELECT DISTINCT + COUNT( * ) + - + 58 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-9984
SELECT DISTINCT + COUNT ( * ) + - + 58 FROM tab2 AS cor0
----
-55

query I rowsort
SELECT + col0 - + 53 FROM tab2 cor0
----
-7
11
22

query I rowsort
SELECT ALL - - col0 - 37 AS col0 FROM tab1 AS cor0
----
14
48
54

query I rowsort
SELECT DISTINCT + col0 * + - 15 AS col0 FROM tab1 AS cor0
----
-1275
-1365
-765

query III rowsort
SELECT * FROM tab2 WHERE NOT ( ( + col2 * + - 16 IS NOT NULL ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( NOT + 94 * + col1 IS NOT NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-9990
SELECT DISTINCT + SUM( DISTINCT + 87 ) AS col1 FROM tab1 AS cor0
----
87

skipif mysql # not compatible
query I rowsort label-9990
SELECT DISTINCT + SUM ( DISTINCT + 87 ) AS col1 FROM tab1 AS cor0
----
87

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> 35
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-9992
SELECT - - CAST( - 77 AS SIGNED ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

skipif mysql # not compatible
query I rowsort label-9992
SELECT - - CAST ( - 77 AS INTEGER ) AS col0 FROM tab1 AS cor0
----
-77
-77
-77

query I rowsort
SELECT 62 FROM tab1 AS cor0 WHERE NOT ( col0 ) <> 95
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 55 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 36 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-9996
SELECT DISTINCT + COUNT( DISTINCT + col0 ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-9996
SELECT DISTINCT + COUNT ( DISTINCT + col0 ) AS col1 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-9997
SELECT col2 DIV - - col2 AS col1 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-9997
SELECT col2 / - - col2 AS col1 FROM tab2
----
1
1
1

query I rowsort
SELECT ALL + 60 * + ( col2 ) AS col2 FROM tab0
----
2820
5940
600

query I rowsort
SELECT DISTINCT - ( + - ( + 2 ) ) FROM tab2
----
2

