sqllogictest
Artifact Content
Not logged in

Artifact 4605d852f519c626ee697d9f4fd2b7b518a79383:


hash-threshold 8

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

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

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

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

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

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

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

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

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

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

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

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT 48 * 0 + col0 BETWEEN - 25 AND + 91
----
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2
SELECT DISTINCT + 41 AS col1, + col1 - CAST( - 79 AS SIGNED ) FROM tab0 AS cor0
----
41
100
41
160
41
80

skipif mysql # not compatible
query II rowsort label-2
SELECT DISTINCT + 41 AS col1, + col1 - CAST ( - 79 AS INTEGER ) FROM tab0 AS cor0
----
41
100
41
160
41
80

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

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

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

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 = - + col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

query I rowsort
SELECT + col2 + col2 AS col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
116
46
80

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

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

query I rowsort
SELECT ALL - 37 + - ( + col0 ) AS col1 FROM tab2 AS cor0
----
-101
-112
-83

query II rowsort
SELECT - 85, 28 FROM tab2 AS cor0 WHERE - 24 * col0 IN ( - 13 + + 21 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-11
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 / + col1 * + 80 BETWEEN + CAST( NULL AS SIGNED ) + col1 AND NULL
----

skipif mysql # not compatible
query III rowsort label-11
SELECT DISTINCT * FROM tab2 cor0 WHERE col1 / + col1 * + 80 BETWEEN + CAST ( NULL AS INTEGER ) + col1 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - + col1 + - + col0 col0 FROM tab0 AS cor0
----
-108
-96
-98

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-14
SELECT + - col1 AS col0, + col2 DIV + - ( - col1 ) FROM tab2 cor0
----
-51
0
-67
0
-77
0

skipif mysql # not compatible
query II rowsort label-14
SELECT + - col1 AS col0, + col2 / + - ( - col1 ) FROM tab2 cor0
----
-51
0
-67
0
-77
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-15
SELECT - CAST( NULL AS SIGNED ) AS col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-15
SELECT - CAST ( NULL AS INTEGER ) AS col0, - col2 AS col0 FROM tab0 AS cor0
----
NULL
-10
NULL
-47
NULL
-99

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

onlyif mysql # DIV for integer division: 
query I rowsort label-17
SELECT col1 DIV + col0 + + 56 FROM tab2
----
56
57
57

skipif mysql # not compatible
query I rowsort label-17
SELECT col1 / + col0 + + 56 FROM tab2
----
56
57
57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + 62 col0 FROM tab1
----
-34
-6
3

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + 74 + + col1 * - - 17 IS NULL
----

query I rowsort
SELECT ALL 24 + - col1 FROM tab1
----
-23
10
19

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

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-24
SELECT ALL + COUNT( DISTINCT + col0 ) * + + MAX( - + 28 ) + - 6 AS col1 FROM tab0
----
-90

skipif mysql # not compatible
query I rowsort label-24
SELECT ALL + COUNT ( DISTINCT + col0 ) * + + MAX ( - + 28 ) + - 6 AS col1 FROM tab0
----
-90

query II rowsort
SELECT col0 + + - 17, + col0 AS col2 FROM tab0
----
-2
15
70
87
80
97

query I rowsort
SELECT ALL col2 * - ( + + 18 ) AS col2 FROM tab2
----
-1044
-414
-720

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

onlyif mysql # aggregate syntax: 
query I rowsort label-28
SELECT - MIN( ALL + col2 ) AS col1 FROM tab1
----
-59

skipif mysql # not compatible
query I rowsort label-28
SELECT - MIN ( ALL + col2 ) AS col1 FROM tab1
----
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-29
SELECT DISTINCT + COUNT( + + col2 ) - 93 * + 85 FROM tab2
----
-7902

skipif mysql # not compatible
query I rowsort label-29
SELECT DISTINCT + COUNT ( + + col2 ) - 93 * + 85 FROM tab2
----
-7902

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-30
SELECT - 81 DIV + CAST( 48 AS SIGNED ) - 67 AS col0 FROM tab2
----
-68
-68
-68

skipif mysql # not compatible
query I rowsort label-30
SELECT - 81 / + CAST ( 48 AS INTEGER ) - 67 AS col0 FROM tab2
----
-68
-68
-68

onlyif mysql # aggregate syntax: 
query I rowsort label-31
SELECT MAX( + col2 ) AS col0 FROM tab2 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-31
SELECT MAX ( + col2 ) AS col0 FROM tab2 WHERE NULL <= NULL
----
NULL

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-33
SELECT DISTINCT col2 + - + col0 + - col0 * + CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-35
SELECT COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - 9 * 75 - - ( + col0 ) * - - col1 IS NOT NULL )
----
3

skipif mysql # not compatible
query I rowsort label-35
SELECT COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NOT - 9 * 75 - - ( + col0 ) * - - col1 IS NOT NULL )
----
3

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

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

query I rowsort
SELECT col2 * - 53 FROM tab0
----
-2491
-5247
-530

query II rowsort
SELECT ALL col0 * - - 74, + ( + - col1 ) AS col0 FROM tab1
----
3774
-14
6290
-5
6734
-47

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

query I rowsort
SELECT ALL ( - + col2 ) * - - 36 AS col2 FROM tab1
----
-2124
-2448
-3456

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-41
SELECT ALL + 18 DIV + 22, + COUNT( * ) + + - COUNT( * ) AS col1 FROM tab0
----
0
0

skipif mysql # not compatible
query II rowsort label-41
SELECT ALL + 18 / + 22, + COUNT ( * ) + + - COUNT ( * ) AS col1 FROM tab0
----
0
0

onlyif mysql # DIV for integer division: 
query I rowsort label-42
SELECT ( + col2 ) DIV col1 col0 FROM tab0
----
0
0
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-42
SELECT ( + col2 ) / col1 col0 FROM tab0
----
0
0
99

query I rowsort
SELECT ALL col2 * - col1 FROM tab2 WHERE + 68 IS NOT NULL
----
-1173
-3080
-3886

query II rowsort
SELECT DISTINCT ( + col1 ) AS col2, ( - col1 ) - + + col2 FROM tab1
----
14
-110
47
-115
5
-64

onlyif mysql # aggregate syntax: 
query I rowsort label-45
SELECT + MIN( - col2 ) AS col2 FROM tab1 cor0
----
-96

skipif mysql # not compatible
query I rowsort label-45
SELECT + MIN ( - col2 ) AS col2 FROM tab1 cor0
----
-96

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 74 IS NOT NULL
----

query I rowsort
SELECT + 0 FROM tab2 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

onlyif mysql # aggregate syntax: 
query I rowsort label-48
SELECT COUNT( * ) + - 23 AS col1 FROM tab2
----
-20

skipif mysql # not compatible
query I rowsort label-48
SELECT COUNT ( * ) + - 23 AS col1 FROM tab2
----
-20

query I rowsort
SELECT ALL - - col1 + - + col0 AS col0 FROM tab1 AS cor0
----
-37
-44
-80

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

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

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

query I rowsort
SELECT - - ( - 28 ) FROM tab2 cor0
----
-28
-28
-28

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT 33 * col1 AS col0 FROM tab2
----
1683
2211
2541

query I rowsort
SELECT ALL col2 * + - col2 * - col2 AS col0 FROM tab2
----
12167
195112
64000

onlyif mysql # aggregate syntax: 
query II rowsort label-59
SELECT ALL - COUNT( * ), 1 col2 FROM tab1
----
-3
1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-60
SELECT + col2 * 7 * - 59 * + + col1 DIV - col1 - + col0 + 16 * - col2 FROM tab0
----
18644
3883
39206

skipif mysql # not compatible
query I rowsort label-60
SELECT + col2 * 7 * - 59 * + + col1 / - col1 - + col0 + 16 * - col2 FROM tab0
----
18644
3883
39206

query I rowsort
SELECT + col2 + ( col1 ) AS col0 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-62
SELECT ALL - 36 + - ( COUNT( * ) ) FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-62
SELECT ALL - 36 + - ( COUNT ( * ) ) FROM tab1 AS cor0
----
-39

query I rowsort
SELECT ALL 66 AS col1 FROM tab2 WHERE NULL NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT col0 * + 65 AS col1 FROM tab2
----
2990
4160
4875

onlyif mysql # aggregate syntax: 
query I rowsort label-65
SELECT MAX( ALL col2 ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-65
SELECT MAX ( ALL col2 ) FROM tab2 cor0 WHERE NOT ( col0 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-66
SELECT + SUM( DISTINCT + 46 ) FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-66
SELECT + SUM ( DISTINCT + 46 ) FROM tab2 AS cor0
----
46

query I rowsort
SELECT - 12 * 32 AS col0 FROM tab1 cor0
----
-384
-384
-384

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-68
SELECT + MAX( col1 ) DIV 59 + COUNT( * ) FROM tab0 AS cor0
----
4

skipif mysql # not compatible
query I rowsort label-68
SELECT + MAX ( col1 ) / 59 + COUNT ( * ) FROM tab0 AS cor0
----
4

onlyif mysql # aggregate syntax: 
query I rowsort label-69
SELECT + MAX( ALL - col0 ) * + COUNT( * ) * 49 AS col0 FROM tab2 AS cor0
----
-6762

skipif mysql # not compatible
query I rowsort label-69
SELECT + MAX ( ALL - col0 ) * + COUNT ( * ) * 49 AS col0 FROM tab2 AS cor0
----
-6762

onlyif mysql # DIV for integer division: 
query I rowsort label-70
SELECT col0 DIV + 31 col1 FROM tab0 AS cor0
----
0
2
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-70
SELECT col0 / + 31 col1 FROM tab0 AS cor0
----
0
2
3

query I rowsort
SELECT ALL col1 AS col0 FROM tab1 cor0 WHERE NOT ( col2 * - col2 + + - 93 ) IS NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL < - + 26
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-73
SELECT ALL - CAST( + - 19 AS SIGNED ) * - ( MIN( col0 ) ) AS col2 FROM tab1
----
-969

skipif mysql # not compatible
query I rowsort label-73
SELECT ALL - CAST ( + - 19 AS INTEGER ) * - ( MIN ( col0 ) ) AS col2 FROM tab1
----
-969

query I rowsort
SELECT DISTINCT - 95 * - col1 FROM tab0
----
1995
7695
95

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

skipif mysql # not compatible
query II rowsort label-75
SELECT ALL + - COUNT ( * ), 54 AS col1 FROM tab2 AS cor0
----
-3
54

query I rowsort
SELECT 65 + - 44 FROM tab2 cor0
----
21
21
21

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-77
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col2 * + + CAST( NULL AS SIGNED ) + + 53 OR NOT NULL IS NULL
----

skipif mysql # not compatible
query III rowsort label-77
SELECT * FROM tab0 AS cor0 WHERE NOT NULL = + col2 * + + CAST ( NULL AS INTEGER ) + + 53 OR NOT NULL IS NULL
----

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

query I rowsort
SELECT 17 * - col0 FROM tab0 WHERE NOT col1 IS NULL
----
-1479
-1649
-255

query I rowsort
SELECT DISTINCT - col2 + + col0 FROM tab1 WHERE NOT - col0 BETWEEN ( 94 + + 87 ) AND NULL
----
-45
23
26

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

query I rowsort
SELECT ( 68 ) AS col2 FROM tab2
----
68
68
68

query III rowsort
SELECT * FROM tab2 WHERE - col0 <= - col1
----
75
67
58

query I rowsort
SELECT - col1 + 91 * - 22 AS col1 FROM tab1
----
-2007
-2016
-2049

onlyif mysql # aggregate syntax: 
query I rowsort label-85
SELECT DISTINCT COUNT( ALL - ( - 27 ) ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-85
SELECT DISTINCT COUNT ( ALL - ( - 27 ) ) FROM tab2
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-87
SELECT 65 + SUM( - col1 ) FROM tab1 WHERE ( + 47 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-87
SELECT 65 + SUM ( - col1 ) FROM tab1 WHERE ( + 47 ) < NULL
----
NULL

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

query I rowsort
SELECT 52 * 39 AS col1 FROM tab0
----
2028
2028
2028

query I rowsort
SELECT ALL - 34 * - col1 - - 96 FROM tab2
----
1830
2374
2714

onlyif mysql # aggregate syntax: 
query I rowsort label-91
SELECT + COUNT( * ) * - 44 AS col1 FROM tab2
----
-132

skipif mysql # not compatible
query I rowsort label-91
SELECT + COUNT ( * ) * - 44 AS col1 FROM tab2
----
-132

query I rowsort
SELECT col0 FROM tab1 WHERE 83 < ( col2 )
----
51

query I rowsort
SELECT ALL + ( + ( + col0 ) ) * - col1 AS col0 FROM tab1
----
-425
-4277
-714

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

onlyif mysql # aggregate syntax: 
query I rowsort label-95
SELECT 76 * SUM( + col0 * - col1 ) AS col1 FROM tab0
----
-238564

skipif mysql # not compatible
query I rowsort label-95
SELECT 76 * SUM ( + col0 * - col1 ) AS col1 FROM tab0
----
-238564

onlyif mysql # aggregate syntax: 
query I rowsort label-96
SELECT - COUNT( * ) AS col1 FROM tab0 WHERE NULL = + col0
----
0

skipif mysql # not compatible
query I rowsort label-96
SELECT - COUNT ( * ) AS col1 FROM tab0 WHERE NULL = + col0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-97
SELECT SUM( + col0 ) - - 50 FROM tab2
----
235

skipif mysql # not compatible
query I rowsort label-97
SELECT SUM ( + col0 ) - - 50 FROM tab2
----
235

query I rowsort
SELECT - col2 * 41 + col0 FROM tab0
----
-1912
-323
-3962

query I rowsort
SELECT DISTINCT + 83 * 29 FROM tab0
----
2407

onlyif mysql # DIV for integer division: 
query I rowsort label-100
SELECT col0 - + 5 DIV col1 AS col0 FROM tab0
----
15
87
92

skipif mysql # not compatible
query I rowsort label-100
SELECT col0 - + 5 / col1 AS col0 FROM tab0
----
15
87
92

query I rowsort
SELECT col0 * 86 FROM tab1
----
4386
7310
7826

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

onlyif mysql # DIV for integer division: 
query I rowsort label-103
SELECT DISTINCT - 89 DIV - col2 + col2 AS col1 FROM tab1
----
60
69
96

skipif mysql # not compatible
query I rowsort label-103
SELECT DISTINCT - 89 / - col2 + col2 AS col1 FROM tab1
----
60
69
96

query I rowsort
SELECT col2 * + 81 AS col0 FROM tab1
----
4779
5508
7776

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-105
SELECT ALL + MAX( ALL col1 ) DIV SUM( + col1 ) AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-105
SELECT ALL + MAX ( ALL col1 ) / SUM ( + col1 ) AS col2 FROM tab0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-106
SELECT ALL * FROM tab2 WHERE NOT col0 * - 20 > ( - CAST( + col0 AS SIGNED ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-106
SELECT ALL * FROM tab2 WHERE NOT col0 * - 20 > ( - CAST ( + col0 AS INTEGER ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-109
SELECT 98 * + CAST( + 23 AS SIGNED ) AS col2 FROM tab0 cor0
----
2254
2254
2254

skipif mysql # not compatible
query I rowsort label-109
SELECT 98 * + CAST ( + 23 AS INTEGER ) AS col2 FROM tab0 cor0
----
2254
2254
2254

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-110
SELECT ALL - CAST( AVG ( - col1 ) AS SIGNED ) FROM tab0 cor0
----
34

skipif mysql # not compatible
query I rowsort label-110
SELECT ALL - CAST ( AVG ( - col1 ) AS INTEGER ) FROM tab0 cor0
----
34

onlyif mysql # aggregate syntax: 
query I rowsort label-111
SELECT ( COUNT( * ) ) - 90 FROM tab0 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-111
SELECT ( COUNT ( * ) ) - 90 FROM tab0 AS cor0
----
-87

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

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

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

query I rowsort
SELECT + 59 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to a9b9966d749d1b2ce5955ed12394f9bc

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL IN ( 73 )
----

query I rowsort
SELECT - ( 51 ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN - 43 + - col0 AND 78
----

query I rowsort
SELECT DISTINCT col0 * - 43 AS col2 FROM tab2 AS cor0
----
-1978
-2752
-3225

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

query I rowsort
SELECT col0 AS col0 FROM tab1 AS cor0 WHERE NOT + 40 BETWEEN 65 + 83 AND NULL
----
51
85
91

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

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

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

skipif mysql # not compatible
query I rowsort label-121
SELECT DISTINCT COUNT ( * ) * 26 * + COUNT ( * ) FROM tab1
----
234

query I rowsort
SELECT - 88 * 58 AS col0 FROM tab0
----
-5104
-5104
-5104

onlyif mysql # aggregate syntax: 
query I rowsort label-123
SELECT + ( MAX( DISTINCT col1 ) ) FROM tab0
----
81

skipif mysql # not compatible
query I rowsort label-123
SELECT + ( MAX ( DISTINCT col1 ) ) FROM tab0
----
81

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-124
SELECT ALL COUNT ( ALL + col2 ) col2 FROM tab0
----
3

query I rowsort
SELECT ALL 8 * - + col0 FROM tab0
----
-120
-696
-776

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-127
SELECT DISTINCT 51 + - COUNT( * ) AS col2 FROM tab2 cor0
----
48

skipif mysql # not compatible
query I rowsort label-127
SELECT DISTINCT 51 + - COUNT ( * ) AS col2 FROM tab2 cor0
----
48

query I rowsort
SELECT DISTINCT + 90 * 99 - + col0 + - col1 AS col1 FROM tab1 AS cor0
----
8772
8820
8845

onlyif mysql # DIV for integer division: 
query I rowsort label-129
SELECT ALL + col1 DIV - + 30 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-83

skipif mysql # not compatible
query I rowsort label-129
SELECT ALL + col1 / - + 30 + - col1 AS col2 FROM tab0 AS cor0
----
-1
-21
-83

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

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

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

query I rowsort
SELECT ALL + + col1 * 36 FROM tab1 AS cor0
----
1692
180
504

query I rowsort
SELECT DISTINCT + ( col1 ) * + + 58 + col0 FROM tab0 AS cor0
----
1305
155
4713

onlyif mysql # aggregate syntax: 
query I rowsort label-134
SELECT ALL - + MIN( ALL + 28 ) + + COUNT( DISTINCT + col0 ) col1 FROM tab2 cor0
----
-25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-134
SELECT ALL - + MIN ( ALL + 28 ) + + COUNT ( DISTINCT + col0 ) col1 FROM tab2 cor0
----
-25

onlyif mysql # aggregate syntax: 
query I rowsort label-135
SELECT DISTINCT COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 65 * + ( 51 ) )
----
0

skipif mysql # not compatible
query I rowsort label-135
SELECT DISTINCT COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT IN ( 65 * + ( 51 ) )
----
0

query I rowsort
SELECT DISTINCT 70 * - col1 * ( 32 ) AS col1 FROM tab0 cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-137
SELECT 2 AS col2, - CAST( NULL AS DECIMAL ) AS col1 FROM tab0 AS cor0
----
2
NULL
2
NULL
2
NULL

skipif mysql # not compatible
query II rowsort label-137
SELECT 2 AS col2, - CAST ( NULL AS REAL ) AS col1 FROM tab0 AS cor0
----
2
NULL
2
NULL
2
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-138
SELECT COUNT( * ) col0, - 31 * - + 97 * 58 AS col1 FROM tab0 AS cor0
----
3
174406

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-138
SELECT COUNT ( * ) col0, - 31 * - + 97 * 58 AS col1 FROM tab0 AS cor0
----
3
174406

query I rowsort
SELECT DISTINCT col0 - - 58 FROM tab2
----
104
122
133

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-140
SELECT DISTINCT - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT + + ( col1 ) * col1 + 96 * CAST( NULL AS SIGNED ) NOT IN ( 25 )
----
0

skipif mysql # not compatible
query I rowsort label-140
SELECT DISTINCT - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL IS NOT NULL AND NOT + + ( col1 ) * col1 + 96 * CAST ( NULL AS INTEGER ) NOT IN ( 25 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-141
SELECT ALL COUNT( * ) - - 14 FROM tab1
----
17

skipif mysql # not compatible
query I rowsort label-141
SELECT ALL COUNT ( * ) - - 14 FROM tab1
----
17

onlyif mysql # aggregate syntax: 
query I rowsort label-142
SELECT ALL COUNT( * ) * - 99 * + SUM( - + col0 ) - + COUNT( * ) FROM tab1
----
67416

skipif mysql # not compatible
query I rowsort label-142
SELECT ALL COUNT ( * ) * - 99 * + SUM ( - + col0 ) - + COUNT ( * ) FROM tab1
----
67416

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

onlyif mysql # DIV for integer division: 
query I rowsort label-144
SELECT col1 DIV + col0 + + col2 + + 56 AS col2 FROM tab2
----
114
80
97

skipif mysql # not compatible
query I rowsort label-144
SELECT col1 / + col0 + + col2 + + 56 AS col2 FROM tab2
----
114
80
97

onlyif mysql # aggregate syntax: 
query I rowsort label-145
SELECT DISTINCT COUNT( * ) - 17 AS col0 FROM tab0
----
-14

skipif mysql # not compatible
query I rowsort label-145
SELECT DISTINCT COUNT ( * ) - 17 AS col0 FROM tab0
----
-14

query I rowsort
SELECT col0 * + - 17 + + - 93 + + 10 AS col1 FROM tab2 cor0
----
-1171
-1358
-865

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-147
SELECT - - col0 + + CAST( col1 AS SIGNED ) col1 FROM tab1 AS cor0
----
138
65
90

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-147
SELECT - - col0 + + CAST ( col1 AS INTEGER ) col1 FROM tab1 AS cor0
----
138
65
90

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

query I rowsort
SELECT 33 * 83 AS col2 FROM tab0 cor0
----
2739
2739
2739

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-151
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 <> ( - CAST( NULL AS SIGNED ) - - col0 )
----

skipif mysql # not compatible
query III rowsort label-151
SELECT * FROM tab1 AS cor0 WHERE NOT - 46 <> ( - CAST ( NULL AS INTEGER ) - - col0 )
----

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

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

query I rowsort
SELECT DISTINCT + ( 63 ) * - 95 FROM tab1 AS cor0
----
-5985

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-155
SELECT - 23 * - - CAST( - AVG ( + col1 ) AS SIGNED ) FROM tab2 AS cor0
----
1495

skipif mysql # not compatible
query I rowsort label-155
SELECT - 23 * - - CAST ( - AVG ( + col1 ) AS INTEGER ) FROM tab2 AS cor0
----
1495

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-156
SELECT DISTINCT + CAST( + - col2 AS SIGNED ) FROM tab0 AS cor0
----
-10
-47
-99

skipif mysql # not compatible
query I rowsort label-156
SELECT DISTINCT + CAST ( + - col2 AS INTEGER ) FROM tab0 AS cor0
----
-10
-47
-99

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 96 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-159
SELECT ALL + col0 + + ( 43 ) FROM tab1 WHERE + + col2 * + col0 / - - 57 NOT IN ( + + CAST( 86 AS SIGNED ) )
----
128
134
94

skipif mysql # not compatible
query I rowsort label-159
SELECT ALL + col0 + + ( 43 ) FROM tab1 WHERE + + col2 * + col0 / - - 57 NOT IN ( + + CAST ( 86 AS INTEGER ) )
----
128
134
94

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

query I rowsort
SELECT 10 + + col0 * + col1 FROM tab2
----
2356
4938
5035

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-162
SELECT DISTINCT CAST( NULL AS SIGNED ) * + 9 FROM tab0, tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-162
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + 9 FROM tab0, tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-163
SELECT 17 + + ( COUNT( * ) ) FROM tab0
----
20

skipif mysql # not compatible
query I rowsort label-163
SELECT 17 + + ( COUNT ( * ) ) FROM tab0
----
20

query II rowsort
SELECT DISTINCT + col1, 0 - - 93 FROM tab0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND + col1
----

query I rowsort
SELECT - 32 + - 82 AS col0 FROM tab2
----
-114
-114
-114

onlyif mysql # aggregate syntax: 
query I rowsort label-166
SELECT + 54 * 74 + + SUM( DISTINCT + 64 + 35 ) * + COUNT( * ) AS col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN + col0 AND - + ( 98 )
----
NULL

skipif mysql # not compatible
query I rowsort label-166
SELECT + 54 * 74 + + SUM ( DISTINCT + 64 + 35 ) * + COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col2 NOT BETWEEN + col0 AND - + ( 98 )
----
NULL

query I rowsort
SELECT ALL - ( 2 ) - col2 AS col1 FROM tab1 cor0 WHERE NOT - 45 * - col2 * - col2 * - - 86 + col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-168
SELECT DISTINCT col0 + + ( + - 0 ) + + + col0 DIV + col0 + - col1 * col1 FROM tab1 AS cor0
----
-144
-2117
61

skipif mysql # not compatible
query I rowsort label-168
SELECT DISTINCT col0 + + ( + - 0 ) + + + col0 / + col0 + - col1 * col1 FROM tab1 AS cor0
----
-144
-2117
61

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

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

query I rowsort
SELECT + 68 + 74 AS col0 FROM tab1 AS cor0
----
142
142
142

query I rowsort
SELECT DISTINCT - - 89 * - 28 * 77 FROM tab1 AS cor0
----
-191884

query I rowsort
SELECT 16 + col2 FROM tab1 AS cor0
----
112
75
84

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-176
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE col1 * + CAST( NULL AS SIGNED ) / col1 + 42 IS NULL
----
-51
-85
-91

skipif mysql # not compatible
query I rowsort label-176
SELECT ALL - + col0 FROM tab1 AS cor0 WHERE col1 * + CAST ( NULL AS INTEGER ) / col1 + 42 IS NULL
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query II rowsort label-177
SELECT MAX( DISTINCT + 29 ) + + ( 35 ) + 96 AS col1, MAX( - + col2 ) * - 2 AS col1 FROM tab2 AS cor0
----
160
46

skipif mysql # not compatible
query II rowsort label-177
SELECT MAX ( DISTINCT + 29 ) + + ( 35 ) + 96 AS col1, MAX ( - + col2 ) * - 2 AS col1 FROM tab2 AS cor0
----
160
46

query I rowsort
SELECT col2 FROM tab1 WHERE ( + - 73 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT - col1 AS col1 FROM tab2 WHERE 31 * - col1 + col1 + col1 - - col1 <= ( col1 )
----
-51
-67
-77

query I rowsort
SELECT DISTINCT - col1 * col1 + 31 + - col2 FROM tab1
----
-2246
-261
-53

query I rowsort
SELECT ALL 90 - - + col2 AS col0 FROM tab0
----
100
137
189

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL >= - 61 * + + 58 / + ( - - col0 ) * - ( col2 ) * - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-183
SELECT - + 7 * COUNT( * ) FROM tab2 WHERE NOT NULL IS NULL OR 92 IS NOT NULL
----
-21

skipif mysql # not compatible
query I rowsort label-183
SELECT - + 7 * COUNT ( * ) FROM tab2 WHERE NOT NULL IS NULL OR 92 IS NOT NULL
----
-21

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab0 WHERE + col2 NOT BETWEEN NULL AND - - 60
----
-1

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

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 * - - col0 col1 FROM tab1
----
4896
5015
6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col0, col0 + col1 AS col2 FROM tab2
----
23
97
40
141
58
142

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

query I rowsort
SELECT DISTINCT + + col1 * - 17 + - - col2 FROM tab0 AS cor0
----
-1330
-347
82

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-191
SELECT CAST( NULL AS SIGNED ) col0 FROM tab2 AS cor0 WHERE NOT 63 + - - 58 / - col1 + + 11 NOT BETWEEN ( - 8 + - col2 ) AND ( col2 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-191
SELECT CAST ( NULL AS INTEGER ) col0 FROM tab2 AS cor0 WHERE NOT 63 + - - 58 / - col1 + + 11 NOT BETWEEN ( - 8 + - col2 ) AND ( col2 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-192
SELECT DISTINCT 5 AS col1, - ( ( + MAX( ( - col2 ) ) ) ) AS col2 FROM tab1 AS cor0
----
5
59

skipif mysql # not compatible
query II rowsort label-192
SELECT DISTINCT 5 AS col1, - ( ( + MAX ( ( - col2 ) ) ) ) AS col2 FROM tab1 AS cor0
----
5
59

query I rowsort
SELECT ALL - 57 * - - col0 FROM tab0
----
-4959
-5529
-855

onlyif mysql # aggregate syntax: 
query I rowsort label-194
SELECT + COUNT( DISTINCT 25 ) FROM tab1 WHERE NOT ( ( - 4 ) IS NOT NULL )
----
0

skipif mysql # not compatible
query I rowsort label-194
SELECT + COUNT ( DISTINCT 25 ) FROM tab1 WHERE NOT ( ( - 4 ) IS NOT NULL )
----
0

query I rowsort
SELECT DISTINCT + 11 * + col0 * - - col1 * col2 AS col1 FROM tab0 cor0
----
105633
200970
628155

onlyif mysql # aggregate syntax: 
query II rowsort label-196
SELECT DISTINCT MIN( + 19 ) AS col2, COUNT( * ) AS col0 FROM tab2 AS cor0
----
19
3

skipif mysql # not compatible
query II rowsort label-196
SELECT DISTINCT MIN ( + 19 ) AS col2, COUNT ( * ) AS col0 FROM tab2 AS cor0
----
19
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col0 * + col2 * - + col1 col1 FROM tab1 AS cor0
----
25075
290836
68544

query I rowsort
SELECT ALL - - col1 AS col1 FROM tab1 WHERE - col0 IS NULL
----

query I rowsort
SELECT ALL 64 * - col0 FROM tab2 WHERE NOT + 17 * - + col2 NOT BETWEEN ( - - 9 + - 13 * - ( + ( col2 ) ) ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-200
SELECT 79 * + + COUNT( * ) AS col1 FROM tab0
----
237

skipif mysql # not compatible
query I rowsort label-200
SELECT 79 * + + COUNT ( * ) AS col1 FROM tab0
----
237

onlyif mysql # aggregate syntax: 
query I rowsort label-201
SELECT - MAX( - - 67 ) AS col0 FROM tab2
----
-67

skipif mysql # not compatible
query I rowsort label-201
SELECT - MAX ( - - 67 ) AS col0 FROM tab2
----
-67

onlyif mysql # aggregate syntax: 
query I rowsort label-202
SELECT DISTINCT SUM( DISTINCT + col2 ) AS col1 FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-202
SELECT DISTINCT SUM ( DISTINCT + col2 ) AS col1 FROM tab1
----
223

query I rowsort
SELECT DISTINCT + ( - col0 ) * - + col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT ALL + 62 AS col0, + col2 AS col2 FROM tab0 AS cor0
----
62
10
62
47
62
99

query I rowsort
SELECT DISTINCT ( + col1 ) + + + 74 - col2 * + ( + col0 ) - + - ( - col2 ) + col1 * - col1 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-5020
-5100
-8344

query I rowsort
SELECT ALL + col1 * + 4 + - - 11 AS col1 FROM tab1 AS cor0
----
199
31
67

query I rowsort
SELECT ALL + col2 + - - col2 AS col1 FROM tab0 cor0
----
198
20
94

onlyif mysql # aggregate syntax: 
query I rowsort label-208
SELECT COUNT( * ) + MIN( - col2 ) AS col2 FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-208
SELECT COUNT ( * ) + MIN ( - col2 ) AS col2 FROM tab2 AS cor0
----
-55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-209
SELECT + - ( + - CAST( NULL AS SIGNED ) ) + + 25 / - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-209
SELECT + - ( + - CAST ( NULL AS INTEGER ) ) + + 25 / - col0 AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-211
SELECT ALL - COUNT( + col2 ) + + - 62 * + 89 * - - 32 FROM tab1
----
-176579

skipif mysql # not compatible
query I rowsort label-211
SELECT ALL - COUNT ( + col2 ) + + - 62 * + 89 * - - 32 FROM tab1
----
-176579

onlyif mysql # aggregate syntax: 
query I rowsort label-212
SELECT 16 + - COUNT( * ) FROM tab1
----
13

skipif mysql # not compatible
query I rowsort label-212
SELECT 16 + - COUNT ( * ) FROM tab1
----
13

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

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

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

query I rowsort
SELECT ALL - 25 FROM tab1 AS cor0 WHERE NOT + col1 / 53 <> NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT - col0 * + 37 AS col2 FROM tab0 AS cor0
----
-3219
-3589
-555

query I rowsort
SELECT DISTINCT + ( + col2 ) + - 69 + - col0 + - col1 + col1 AS col0 FROM tab2 AS cor0
----
-86
-92
-93

query I rowsort
SELECT ALL col2 + - 48 AS col1 FROM tab1 AS cor0
----
11
20
48

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

onlyif mysql # aggregate syntax: 
query I rowsort label-222
SELECT DISTINCT - COUNT( * ) * 66 * - COUNT( * ) + - COUNT( * ) FROM tab1 AS cor0
----
591

skipif mysql # not compatible
query I rowsort label-222
SELECT DISTINCT - COUNT ( * ) * 66 * - COUNT ( * ) + - COUNT ( * ) FROM tab1 AS cor0
----
591

query II rowsort
SELECT + ( - - col0 ) * 72 - + col2, col2 FROM tab2 AS cor0
----
3289
23
4568
40
5342
58

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

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-225
SELECT - CAST( NULL AS DECIMAL ) - col0 AS col2, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-225
SELECT - CAST ( NULL AS REAL ) - col0 AS col2, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-226
SELECT + COUNT( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - ( + - col1 ), + 47, + 64 )
----
0

skipif mysql # not compatible
query I rowsort label-226
SELECT + COUNT ( * ) AS col2 FROM tab2 WHERE NOT NULL NOT IN ( + - ( + - col1 ), + 47, + 64 )
----
0

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

skipif mysql # not compatible
query I rowsort label-227
SELECT DISTINCT 87 * COUNT ( * ) FROM tab1
----
261

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

onlyif mysql # aggregate syntax: 
query I rowsort label-229
SELECT - MAX( ( - 2 ) ) FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-229
SELECT - MAX ( ( - 2 ) ) FROM tab2 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 18 * - col1 col2 FROM tab2
----
-1206
-1386
-918

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT - col2 col1, - col0 FROM tab0 AS cor0
----
-10
-87
-47
-15
-99
-97

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 2 ) col2 FROM tab2 AS cor0
----
2
2
2

onlyif mysql # aggregate syntax: 
query I rowsort label-234
SELECT + 8 * - + 35 - - 90 + COUNT( * ) FROM tab1 AS cor0
----
-187

skipif mysql # not compatible
query I rowsort label-234
SELECT + 8 * - + 35 - - 90 + COUNT ( * ) FROM tab1 AS cor0
----
-187

query I rowsort
SELECT DISTINCT + - 28 + + + col0 + + col2 FROM tab1 AS cor0
----
116
119
131

onlyif mysql # aggregate syntax: 
query I rowsort label-236
SELECT ALL - ( 92 ) + - COUNT( * ) + + + 17 col0 FROM tab0 AS cor0
----
-78

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-236
SELECT ALL - ( 92 ) + - COUNT ( * ) + + + 17 col0 FROM tab0 AS cor0
----
-78

query I rowsort
SELECT ALL col1 + - 65 FROM tab1 WHERE NOT col2 + + - col0 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 48 col2 FROM tab0
----
48
48
48

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-239
SELECT DISTINCT COUNT( * ) DIV + - 74 * 99 col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-239
SELECT DISTINCT COUNT ( * ) / + - 74 * 99 col2 FROM tab2
----
0

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

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

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

query I rowsort
SELECT + 23 AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to d94fadcc1c8cc4fc51b78b83e04795f2

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

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

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-247
SELECT ALL - col0 AS col1, col2 DIV + + col0 - 64 FROM tab1 cor0
----
-51
-63
-85
-64
-91
-64

skipif mysql # not compatible
query II rowsort label-247
SELECT ALL - col0 AS col1, col2 / + + col0 - 64 FROM tab1 cor0
----
-51
-63
-85
-64
-91
-64

query I rowsort
SELECT ALL + ( + col1 ) * + - col0 + + - col2 + 96 FROM tab0 AS cor0
----
-100
-1166
-1741

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL <= 86
----

onlyif mysql # aggregate syntax: 
query II rowsort label-250
SELECT ALL COUNT( * ) col2, 25 AS col0 FROM tab2 cor0
----
3
25

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-250
SELECT ALL COUNT ( * ) col2, 25 AS col0 FROM tab2 cor0
----
3
25

onlyif mysql # aggregate syntax: 
query I rowsort label-251
SELECT ALL + ( 62 ) * + COUNT( * ) * - + COUNT( + - col2 ) AS col2 FROM tab0
----
-558

skipif mysql # not compatible
query I rowsort label-251
SELECT ALL + ( 62 ) * + COUNT ( * ) * - + COUNT ( + - col2 ) AS col2 FROM tab0
----
-558

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-252
SELECT ALL + 87 col0 FROM tab0 WHERE CAST( NULL AS SIGNED ) IS NULL
----
87
87
87

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-252
SELECT ALL + 87 col0 FROM tab0 WHERE CAST ( NULL AS INTEGER ) IS NULL
----
87
87
87

query I rowsort
SELECT ALL col1 * - 90 FROM tab0
----
-1890
-7290
-90

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

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

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

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

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

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

query II rowsort
SELECT - 90, col0 FROM tab1
----
-90
51
-90
85
-90
91

query I rowsort
SELECT DISTINCT col2 * - + col2 AS col1 FROM tab0 cor0
----
-100
-2209
-9801

onlyif mysql # DIV for integer division: 
query I rowsort label-260
SELECT + 64 DIV + + col2 col1 FROM tab0
----
0
1
6

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

query I rowsort
SELECT ALL + col1 + + col1 + + col1 + - col1 + - + col1 * - 43 FROM tab2 AS cor0
----
2295
3015
3465

onlyif mysql # aggregate syntax: 
query I rowsort label-262
SELECT ALL - COUNT( DISTINCT + ( + col2 ) ) * - MIN( - - ( col0 ) ) + 40 AS col1 FROM tab2 AS cor0
----
178

skipif mysql # not compatible
query I rowsort label-262
SELECT ALL - COUNT ( DISTINCT + ( + col2 ) ) * - MIN ( - - ( col0 ) ) + 40 AS col1 FROM tab2 AS cor0
----
178

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-264
SELECT ALL 57 DIV 91 * COUNT( * ) FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-264
SELECT ALL 57 / 91 * COUNT ( * ) FROM tab0 AS cor0
----
0

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

skipif mysql # not compatible
query III rowsort label-265
SELECT * FROM tab0 WHERE - - col0 * - CAST ( - - col2 AS INTEGER ) * - 56 + col0 + col2 / + CAST ( + 46 AS INTEGER ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - 86 * col0 + + col2 AS col0 FROM tab2
----
-3933
-5464
-6392

query I rowsort
SELECT DISTINCT 25 AS col1 FROM tab2 WHERE ( NOT col1 - + ( + 65 ) <> + 84 )
----

query I rowsort
SELECT ALL 22 + + 28 FROM tab1
----
50
50
50

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

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

query II rowsort
SELECT - 37 + + + col2 + - 30, - col2 / + + 94 FROM tab2 WHERE ( NULL IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT + col1 NOT BETWEEN - - col1 AND + col1 + + - ( + col1 ) + - - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-272
SELECT DISTINCT COUNT( DISTINCT - 60 ) + + 17 col0 FROM tab2, tab2 AS cor0
----
18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-272
SELECT DISTINCT COUNT ( DISTINCT - 60 ) + + 17 col0 FROM tab2, tab2 AS cor0
----
18

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-273
SELECT - CAST( - col1 AS SIGNED ) + - 6 AS col1, - col2 * - + col1 * - + col1 FROM tab0 cor0
----
-5
-99
15
-4410
75
-308367

skipif mysql # not compatible
query II rowsort label-273
SELECT - CAST ( - col1 AS INTEGER ) + - 6 AS col1, - col2 * - + col1 * - + col1 FROM tab0 cor0
----
-5
-99
15
-4410
75
-308367

query I rowsort
SELECT col1 + + 8 FROM tab2 AS cor0
----
59
75
85

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-276
SELECT ALL + 13 - - col0 - + col2 * + - col2 AS col1, - CAST( NULL AS SIGNED ) * 43 - - col2 - + + col0 + - 97 * col1 FROM tab0
----
200
NULL
2237
NULL
9911
NULL

skipif mysql # not compatible
query II rowsort label-276
SELECT ALL + 13 - - col0 - + col2 * + - col2 AS col1, - CAST ( NULL AS INTEGER ) * 43 - - col2 - + + col0 + - 97 * col1 FROM tab0
----
200
NULL
2237
NULL
9911
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-277
SELECT DISTINCT + + CAST( NULL AS SIGNED ) * + col2 + + 92 + + col0 - - + col1 + - 44 AS col0 FROM tab1 WHERE + + col0 * + - CAST( + col1 AS SIGNED ) / - - col2 + CAST( NULL AS SIGNED ) * + col1 * - ( - col2 ) + + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-277
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) * + col2 + + 92 + + col0 - - + col1 + - 44 AS col0 FROM tab1 WHERE + + col0 * + - CAST ( + col1 AS INTEGER ) / - - col2 + CAST ( NULL AS INTEGER ) * + col1 * - ( - col2 ) + + + col1 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col2 * col2 col0, 36 col0 FROM tab0
----
100
36
2209
36
9801
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col2 * col1 col2 FROM tab0 AS cor0 WHERE NULL BETWEEN - col2 / - col0 * + col0 + + 33 AND - - col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 74 * + col1 + + 8 col0 FROM tab0 AS cor0
----
1562
6002
82

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

onlyif mysql # aggregate syntax: 
query II rowsort label-282
SELECT 29 * - + 2 * - SUM( col2 ) AS col2, COUNT( * ) AS col2 FROM tab1 cor0
----
12934
3

skipif mysql # not compatible
query II rowsort label-282
SELECT 29 * - + 2 * - SUM ( col2 ) AS col2, COUNT ( * ) AS col2 FROM tab1 cor0
----
12934
3

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-284
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST( NULL AS DECIMAL ) + - col0 <= NULL
----

skipif mysql # not compatible
query III rowsort label-284
SELECT ALL * FROM tab0 AS cor0 WHERE NOT CAST ( NULL AS REAL ) + - col0 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-285
SELECT CAST( NULL AS SIGNED ) / - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-285
SELECT CAST ( NULL AS INTEGER ) / - 89 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + 15 * + 99 AS col2 FROM tab2
----
1485

query II rowsort
SELECT DISTINCT - ( - 34 ), col1 AS col0 FROM tab1 WHERE + 6 > col2 * - + 92 * - col2
----

query I rowsort
SELECT + + col2 FROM tab1 WHERE NOT + 89 IS NOT NULL
----

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

skipif mysql # not compatible
query II rowsort label-289
SELECT + 75 AS col2, COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
75
-1

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

onlyif mysql # DIV for integer division: 
query I rowsort label-291
SELECT 48 DIV + - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

skipif mysql # not compatible
query I rowsort label-291
SELECT 48 / + - 4 AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to e698dd57d3aac30af14ce35da434bb45

query I rowsort
SELECT col1 * - 74 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT ALL + + 92 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 516fa45c8b06f9f67d6e500bfd435c1a

query I rowsort
SELECT DISTINCT - + 15 AS col1 FROM tab1 AS cor0 WHERE - col1 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-295
SELECT - COUNT( * ) * COUNT( * ) + COUNT( + - 2 ) FROM tab2 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-295
SELECT - COUNT ( * ) * COUNT ( * ) + COUNT ( + - 2 ) FROM tab2 AS cor0
----
-6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 27, + col1 * - + col2 col1 FROM tab0 cor0
----
27
-210
27
-3807
27
-99

query I rowsort
SELECT ALL - - ( - - 39 ) + + 13 AS col1 FROM tab1 AS cor0
----
52
52
52

onlyif mysql # aggregate syntax: 
query I rowsort label-298
SELECT MAX( - 63 ) FROM tab1 AS cor0
----
-63

skipif mysql # not compatible
query I rowsort label-298
SELECT MAX ( - 63 ) FROM tab1 AS cor0
----
-63

query I rowsort
SELECT DISTINCT - col1 * + + ( - 22 ) AS col1 FROM tab1 cor0
----
1034
110
308

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-302
SELECT DISTINCT * FROM tab0 WHERE NOT CAST( NULL AS SIGNED ) IS NOT NULL AND NOT + col0 * col0 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-302
SELECT DISTINCT * FROM tab0 WHERE NOT CAST ( NULL AS INTEGER ) IS NOT NULL AND NOT + col0 * col0 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-303
SELECT col0 * + col2 + + col0 DIV + + 44 FROM tab1
----
4897
5016
6190

skipif mysql # not compatible
query I rowsort label-303
SELECT col0 * + col2 + + col0 / + + 44 FROM tab1
----
4897
5016
6190

query II rowsort
SELECT DISTINCT - 75 * - - 20 AS col1, + ( + col1 ) * - + col2 FROM tab1
----
-1500
-1344
-1500
-295
-1500
-3196

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-305
SELECT - MIN( - col2 ) DIV ( 14 ) + MIN( col2 ) FROM tab2
----
27

skipif mysql # not compatible
query I rowsort label-305
SELECT - MIN ( - col2 ) / ( 14 ) + MIN ( col2 ) FROM tab2
----
27

query I rowsort
SELECT DISTINCT col0 * 3 AS col2 FROM tab1
----
153
255
273

query I rowsort
SELECT - 85 * + 11 AS col0 FROM tab1
----
-935
-935
-935

query I rowsort
SELECT + ( col1 ) - ( - 44 ) + - - col2 FROM tab2
----
118
161
169

onlyif mysql # DIV for integer division: 
query I rowsort label-309
SELECT 59 * col0 DIV 81 - 31 AS col2 FROM tab2
----
15
2
23

skipif mysql # not compatible
query I rowsort label-309
SELECT 59 * col0 / 81 - 31 AS col2 FROM tab2
----
15
2
23

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col0 * - 16 col2 FROM tab1
----
-1360
-1456
-816

onlyif mysql # aggregate syntax: 
query I rowsort label-311
SELECT ALL + + COUNT( * ) * + COUNT( * ) / + MIN( + col1 ) FROM tab2 WHERE NULL NOT IN ( + col1, col0 - 28 * + col2 + + 8, + - col1 - 29 )
----
NULL

skipif mysql # not compatible
query I rowsort label-311
SELECT ALL + + COUNT ( * ) * + COUNT ( * ) / + MIN ( + col1 ) FROM tab2 WHERE NULL NOT IN ( + col1, col0 - 28 * + col2 + + 8, + - col1 - 29 )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 col2, col0 + col1 + - col2 - - 13 FROM tab0 cor0
----
1
12
21
111
81
62

query II rowsort
SELECT - 62, + col1 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN + col1 AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT - col0 * col0 NOT IN ( - col0 * + + col2, - 19 * + 85, + + 19 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-317
SELECT - col1 DIV col2 DIV 70 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-317
SELECT - col1 / col2 / 70 AS col2 FROM tab0 AS cor0
----
0
0
0

query I rowsort
SELECT ALL - ( + 44 ) AS col2 FROM tab1
----
-44
-44
-44

query I rowsort
SELECT DISTINCT 2 * + - col2 AS col2 FROM tab0 WHERE + + 90 NOT BETWEEN col1 AND - col2
----
-198
-20
-94

query I rowsort
SELECT - + 60 AS col1 FROM tab0 WHERE NOT + col2 > 77
----
-60
-60

query I rowsort
SELECT ALL ( - 75 ) FROM tab0, tab1 AS cor0
----
9 values hashing to 258bc565c64924d905a55eaaa6e57547

query I rowsort
SELECT DISTINCT - 81 * + - 53 - - 54 FROM tab1 AS cor0 WHERE NULL BETWEEN col2 * - col1 AND NULL
----

query I rowsort
SELECT - 49 * - + col0 FROM tab2 cor0
----
2254
3136
3675

query I rowsort
SELECT ALL - 39 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 504d14939d58aeb4a14f31c80de5b53e

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

query I rowsort
SELECT ALL - + ( - - 77 ) * col2 + 38 FROM tab2 cor0
----
-1733
-3042
-4428

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 17 + col2 + + col2 + col0 col0 FROM tab1 AS cor0
----
186
210
226

query II rowsort
SELECT + col0 AS col1, - col2 FROM tab0 cor0
----
15
-47
87
-10
97
-99

query I rowsort
SELECT ALL - col2 - - col0 - + col2 * col2 FROM tab2 AS cor0
----
-1576
-3347
-506

onlyif mysql # aggregate syntax: 
query I rowsort label-330
SELECT DISTINCT 8 + + COUNT( * ) col1 FROM tab2
----
11

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-330
SELECT DISTINCT 8 + + COUNT ( * ) col1 FROM tab2
----
11

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 47 - + col1 col0 FROM tab1
----
-52
-61
-94

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-332
SELECT * FROM tab1 WHERE CAST( NULL AS SIGNED ) < - + ( + + 23 ) + col2
----

skipif mysql # not compatible
query III rowsort label-332
SELECT * FROM tab1 WHERE CAST ( NULL AS INTEGER ) < - + ( + + 23 ) + col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-333
SELECT COUNT( - col1 ) - - COUNT( * ) + - + COUNT( * ) * - 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-333
SELECT COUNT ( - col1 ) - - COUNT ( * ) + - + COUNT ( * ) * - CAST ( NULL AS INTEGER ) col2 FROM tab0
----
NULL

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

query II rowsort
SELECT DISTINCT + col0 * - + 26, col2 AS col1 FROM tab2
----
-1196
23
-1664
40
-1950
58

query I rowsort
SELECT ALL - col2 * + ( - + col2 ) FROM tab2
----
1600
3364
529

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

skipif mysql # not compatible
query I rowsort label-337
SELECT DISTINCT - COUNT ( * ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-338
SELECT COUNT( * ) col1 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-338
SELECT COUNT ( * ) col1 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-339
SELECT - MAX( 23 ) FROM tab1 cor0
----
-23

skipif mysql # not compatible
query I rowsort label-339
SELECT - MAX ( 23 ) FROM tab1 cor0
----
-23

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT - 84 <= NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-341
SELECT MAX( + col0 ) col0, + 75 FROM tab2
----
75
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-341
SELECT MAX ( + col0 ) col0, + 75 FROM tab2
----
75
75

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 * + col1 * - ( + col0 ) col1 FROM tab0 AS cor0
----
-18270
-57105
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-343
SELECT SUM( DISTINCT + 8 ) FROM tab2 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-343
SELECT SUM ( DISTINCT + 8 ) FROM tab2 AS cor0
----
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-344
SELECT CAST( + 52 AS SIGNED ) col0, 28 FROM tab1 AS cor0
----
52
28
52
28
52
28

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-344
SELECT CAST ( + 52 AS INTEGER ) col0, 28 FROM tab1 AS cor0
----
52
28
52
28
52
28

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

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

query III rowsort
SELECT - col2 * - 34, col2, 68 AS col0 FROM tab0 AS cor0
----
9 values hashing to a6ed3bac00183f8ab904d55dc9d07be4

onlyif mysql # aggregate syntax: 
query II rowsort label-347
SELECT + SUM( DISTINCT ( + + 50 ) ) AS col1, - 12 * COUNT( * ) FROM tab1 AS cor0
----
50
-36

skipif mysql # not compatible
query II rowsort label-347
SELECT + SUM ( DISTINCT ( + + 50 ) ) AS col1, - 12 * COUNT ( * ) FROM tab1 AS cor0
----
50
-36

query I rowsort
SELECT DISTINCT col0 * - 51 AS col0 FROM tab1
----
-2601
-4335
-4641

onlyif mysql # aggregate syntax: 
query II rowsort label-349
SELECT - 90 AS col2, ( - COUNT( * ) ) FROM tab1
----
-90
-3

skipif mysql # not compatible
query II rowsort label-349
SELECT - 90 AS col2, ( - COUNT ( * ) ) FROM tab1
----
-90
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-350
SELECT DISTINCT - COUNT( * ) col0 FROM tab1 WHERE - col2 < NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-350
SELECT DISTINCT - COUNT ( * ) col0 FROM tab1 WHERE - col2 < NULL
----
0

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( 10 * + col2 ) IS NOT NULL
----

query I rowsort
SELECT - 64 * + col1 AS col0 FROM tab0 cor0
----
-1344
-5184
-64

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT ( + 26 ) IS NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT col2 * 68 AS col2 FROM tab1
----
4012
4624
6528

query I rowsort
SELECT 89 * col1 * - + col0 - - - col1 AS col2 FROM tab2 AS cor0
----
-208845
-438669
-447292

query I rowsort
SELECT ALL - col2 + - - col2 AS col2 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-359
SELECT DISTINCT MIN( + 73 ) FROM tab1 AS cor0 WHERE + CAST( - 62 AS SIGNED ) * + + ( - 53 ) + + col0 IS NOT NULL
----
73

skipif mysql # not compatible
query I rowsort label-359
SELECT DISTINCT MIN ( + 73 ) FROM tab1 AS cor0 WHERE + CAST ( - 62 AS INTEGER ) * + + ( - 53 ) + + col0 IS NOT NULL
----
73

query I rowsort
SELECT DISTINCT col2 - - + 60 + + col0 - + col2 * + 87 * - 79 AS col2 FROM tab0 AS cor0
----
323153
680683
68887

query III rowsort
SELECT * FROM tab1 WHERE 92 * + col2 = - 87 + + + col0
----

query I rowsort
SELECT col2 + + 33 FROM tab0
----
132
43
80

query I rowsort
SELECT ALL 92 - 43 AS col2 FROM tab2
----
49
49
49

query I rowsort
SELECT - ( - 32 ) AS col0 FROM tab2
----
32
32
32

onlyif mysql # aggregate syntax: 
query I rowsort label-365
SELECT MIN( DISTINCT 94 ) FROM tab2
----
94

skipif mysql # not compatible
query I rowsort label-365
SELECT MIN ( DISTINCT 94 ) FROM tab2
----
94

onlyif mysql # aggregate syntax: 
query I rowsort label-366
SELECT COUNT( * ) * + - 63 AS col0 FROM tab0
----
-189

skipif mysql # not compatible
query I rowsort label-366
SELECT COUNT ( * ) * + - 63 AS col0 FROM tab0
----
-189

onlyif mysql # aggregate syntax: 
query I rowsort label-367
SELECT COUNT( * ) FROM tab1 WHERE ( ( NULL > col1 ) )
----
0

skipif mysql # not compatible
query I rowsort label-367
SELECT COUNT ( * ) FROM tab1 WHERE ( ( NULL > col1 ) )
----
0

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

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

query II rowsort
SELECT ALL col0 - + 88 + col0 AS col2, + col1 + 60 AS col1 FROM tab0
----
-58
141
106
61
86
81

onlyif mysql # aggregate syntax: 
query I rowsort label-370
SELECT - MAX( DISTINCT - - 52 ) AS col1 FROM tab2
----
-52

skipif mysql # not compatible
query I rowsort label-370
SELECT - MAX ( DISTINCT - - 52 ) AS col1 FROM tab2
----
-52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-371
SELECT DISTINCT - 86 * + CAST( 25 AS SIGNED ) AS col0 FROM tab2
----
-2150

skipif mysql # not compatible
query I rowsort label-371
SELECT DISTINCT - 86 * + CAST ( 25 AS INTEGER ) AS col0 FROM tab2
----
-2150

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

query II rowsort
SELECT ALL + 39, - col0 AS col0 FROM tab0 cor0
----
39
-15
39
-87
39
-97

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-375
SELECT DISTINCT 11 DIV + COUNT( * ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-375
SELECT DISTINCT 11 / + COUNT ( * ) AS col1 FROM tab1
----
3

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

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

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT - + 36 * 74 + + col0 + - + col0 * col1 AS col0 FROM tab0 AS cor0
----
-2664
-3864
-4404

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

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

query II rowsort
SELECT ALL + col0 * + 19 AS col1, + col2 FROM tab2
----
1216
40
1425
58
874
23

onlyif mysql # aggregate syntax: 
query I rowsort label-385
SELECT - 9 * - COUNT( * ) AS col0 FROM tab0
----
27

skipif mysql # not compatible
query I rowsort label-385
SELECT - 9 * - COUNT ( * ) AS col0 FROM tab0
----
27

query I rowsort
SELECT ALL + col0 + + 29 / + 49 / + 96 + + - col0 FROM tab1 WHERE NOT NULL BETWEEN + col1 * - + col2 / - col2 + 93 + 70 AND - ( + 24 ) * - - col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-387
SELECT 21 DIV + 26 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-387
SELECT 21 / + 26 FROM tab2
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 52 = - col0 / col0
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-389
SELECT - + MIN( ALL + + col0 ) + - MAX( DISTINCT - CAST( NULL AS DECIMAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-389
SELECT - + MIN ( ALL + + col0 ) + - MAX ( DISTINCT - CAST ( NULL AS REAL ) ) AS col1 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL - - 52 + + col2 - - - col0 FROM tab2 cor0
----
28
29
35

query I rowsort
SELECT DISTINCT col1 + + col1 + col1 * - - col1 * - + 34 FROM tab2 AS cor0
----
-152492
-201432
-88332

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-395
SELECT + MAX( ALL 59 ) DIV + - 8 AS col1, + 93 col2 FROM tab2 cor0
----
-7
93

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-395
SELECT + MAX ( ALL 59 ) / + - 8 AS col1, + 93 col2 FROM tab2 cor0
----
-7
93

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-397
SELECT col0 AS col0, + col2 DIV - + 71 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif mysql # not compatible
query II rowsort label-397
SELECT col0 AS col0, + col2 / - + 71 FROM tab2 AS cor0
----
46
0
64
0
75
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 - col2 * - - col2 * ( col0 ) + col0 col0 FROM tab0 AS cor0
----
-33105
-8526
-950503

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-399
SELECT - CAST( NULL AS SIGNED ) - + col1, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

skipif mysql # not compatible
query II rowsort label-399
SELECT - CAST ( NULL AS INTEGER ) - + col1, - col2 AS col1 FROM tab0
----
NULL
-10
NULL
-47
NULL
-99

query I rowsort
SELECT - 49 - + col0 AS col0 FROM tab2
----
-113
-124
-95

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-402
SELECT MAX( DISTINCT - ( - 54 ) ) FROM tab2
----
54

skipif mysql # not compatible
query I rowsort label-402
SELECT MAX ( DISTINCT - ( - 54 ) ) FROM tab2
----
54

query I rowsort
SELECT ALL ( + + 61 ) AS col2 FROM tab2
----
61
61
61

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-404
SELECT ALL + CAST( MAX( ALL + col0 ) AS SIGNED ) AS col1 FROM tab1
----
91

skipif mysql # not compatible
query I rowsort label-404
SELECT ALL + CAST ( MAX ( ALL + col0 ) AS INTEGER ) AS col1 FROM tab1
----
91

query I rowsort
SELECT col2 * - col2 * - - ( - 70 ) AS col2 FROM tab0 AS cor0
----
154630
686070
7000

onlyif mysql # aggregate syntax: 
query I rowsort label-406
SELECT ALL 21 * - + COUNT( ALL - + 34 ) * - + COUNT( * ) FROM tab2
----
189

skipif mysql # not compatible
query I rowsort label-406
SELECT ALL 21 * - + COUNT ( ALL - + 34 ) * - + COUNT ( * ) FROM tab2
----
189

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 61 * - + col0 col1 FROM tab2 AS cor0
----
-2806
-3904
-4575

query I rowsort
SELECT - 57 FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL
----

query II rowsort
SELECT + - 44 AS col0, + 9 FROM tab0 AS cor0
----
-44
9
-44
9
-44
9

query I rowsort
SELECT 33 * + + col0 AS col0 FROM tab1 cor0
----
1683
2805
3003

query I rowsort
SELECT ALL - + 60 * + col0 + col1 AS col0 FROM tab2 AS cor0
----
-2709
-3763
-4433

query I rowsort
SELECT DISTINCT col2 * + - col0 * + - col0 * - 33 FROM tab1 AS cor0
----
-14067075
-18582564
-8239968

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-414
SELECT DISTINCT ( + CAST( NULL AS SIGNED ) ), - col0 + + col1 AS col0 FROM tab2
----
NULL
-8
NULL
13
NULL
5

skipif mysql # not compatible
query II rowsort label-414
SELECT DISTINCT ( + CAST ( NULL AS INTEGER ) ), - col0 + + col1 AS col0 FROM tab2
----
NULL
-8
NULL
13
NULL
5

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

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

query I rowsort
SELECT - 18 + col1 AS col2 FROM tab2 WHERE - 24 NOT BETWEEN - col2 * - col1 AND - 3
----
33
49
59

onlyif mysql # aggregate syntax: 
query I rowsort label-417
SELECT + MIN( + + col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
46

skipif mysql # not compatible
query I rowsort label-417
SELECT + MIN ( + + col0 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
46

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

query I rowsort
SELECT 82 + + col2 AS col1 FROM tab0
----
129
181
92

query I rowsort
SELECT - - 59 + 71 AS col2 FROM tab1 AS cor0
----
130
130
130

query II rowsort
SELECT - col1 + col0, + 96 AS col1 FROM tab2 AS cor0
----
-13
96
-5
96
8
96

onlyif mysql # aggregate syntax: 
query I rowsort label-422
SELECT DISTINCT - COUNT( * ) * - ( - 79 ) + - COUNT( * ) + + 4 * + - SUM( + col1 ) FROM tab1 AS cor0
----
-504

skipif mysql # not compatible
query I rowsort label-422
SELECT DISTINCT - COUNT ( * ) * - ( - 79 ) + - COUNT ( * ) + + 4 * + - SUM ( + col1 ) FROM tab1 AS cor0
----
-504

query II rowsort
SELECT 12 AS col2, + ( + 60 ) * + - ( + col2 ) AS col1 FROM tab0 AS cor0
----
12
-2820
12
-5940
12
-600

onlyif mysql # DIV for integer division: 
query I rowsort label-424
SELECT DISTINCT + col1 DIV - 26 + + 41 + 56 * 32 FROM tab0 AS cor0
----
1830
1833

skipif mysql # not compatible
query I rowsort label-424
SELECT DISTINCT + col1 / - 26 + + 41 + 56 * 32 FROM tab0 AS cor0
----
1830
1833

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 2 >= + - 24 + + col0 * + col1
----

query I rowsort
SELECT + 31 + + + col0 AS col2 FROM tab0 AS cor0 WHERE 70 / - - 10 * - 68 * + + ( - + col1 ) - + 98 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-428
SELECT DISTINCT - MAX( col1 ) + - 58 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-428
SELECT DISTINCT - MAX ( col1 ) + - 58 FROM tab2 AS cor0
----
-135

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * - col0 col2 FROM tab0 WHERE - col2 IS NOT NULL
----
-705
-870
-9603

query II rowsort
SELECT 85, + 84 AS col0 FROM tab0
----
85
84
85
84
85
84

onlyif mysql # aggregate syntax: 
query I rowsort label-432
SELECT - COUNT( DISTINCT 93 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-432
SELECT - COUNT ( DISTINCT 93 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-433
SELECT + col0, CAST( + col2 AS SIGNED ) AS col1 FROM tab2
----
46
23
64
40
75
58

skipif mysql # not compatible
query II rowsort label-433
SELECT + col0, CAST ( + col2 AS INTEGER ) AS col1 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-434
SELECT + 65 * - 85 * 97 * COUNT( ALL + CAST( NULL AS SIGNED ) ) col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-434
SELECT + 65 * - 85 * 97 * COUNT ( ALL + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-435
SELECT DISTINCT COUNT( * ) + - - SUM( ALL - 47 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-435
SELECT DISTINCT COUNT ( * ) + - - SUM ( ALL - 47 ) AS col0 FROM tab0 AS cor0 WHERE NOT - col1 IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-436
SELECT + CAST( - COUNT( * ) AS SIGNED ) * + ( - - SUM( ALL - 58 ) ) AS col1, + COUNT( * ) FROM tab2 cor0 WHERE NOT ( NULL ) <= - + 83
----
NULL
0

skipif mysql # not compatible
query II rowsort label-436
SELECT + CAST ( - COUNT ( * ) AS INTEGER ) * + ( - - SUM ( ALL - 58 ) ) AS col1, + COUNT ( * ) FROM tab2 cor0 WHERE NOT ( NULL ) <= - + 83
----
NULL
0

onlyif mysql # aggregate syntax: 
query II rowsort label-437
SELECT + 61 AS col0, COUNT( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
61
3

skipif mysql # not compatible
query II rowsort label-437
SELECT + 61 AS col0, COUNT ( ALL + col1 ) AS col2 FROM tab0 AS cor0
----
61
3

query I rowsort
SELECT + 93 FROM ( tab1 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to e64105dfaa9fbd201adbb1f3f6968bde

query I rowsort
SELECT DISTINCT + - col2 + 10 * + - col2 + - 39 FROM tab0 AS cor0
----
-1128
-149
-556

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <> + 49
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-441
SELECT CAST( + 84 AS SIGNED ) * + SUM( DISTINCT + col0 ) + MIN( - col0 ) AS col2 FROM tab2
----
15465

skipif mysql # not compatible
query I rowsort label-441
SELECT CAST ( + 84 AS INTEGER ) * + SUM ( DISTINCT + col0 ) + MIN ( - col0 ) AS col2 FROM tab2
----
15465

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-442
SELECT + AVG ( DISTINCT - - CAST( NULL AS SIGNED ) ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-442
SELECT + AVG ( DISTINCT - - CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( col2 ) col0 FROM tab2 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-444
SELECT - CAST( col2 AS SIGNED ) DIV + 87 col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-444
SELECT - CAST ( col2 AS INTEGER ) / + 87 col0 FROM tab2
----
0
0
0

query III rowsort
SELECT * FROM tab2 WHERE - col2 = NULL
----

query I rowsort
SELECT 10 + - 99 FROM tab0 AS cor0
----
-89
-89
-89

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

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

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

query I rowsort
SELECT ALL - col2 * - col2 * + 14 - ( - 44 ) AS col1 FROM tab2
----
22444
47140
7450

onlyif mysql # aggregate syntax: 
query I rowsort label-450
SELECT ALL - COUNT( ALL + + 52 ) + - + ( ( - 87 ) ) FROM tab0
----
84

skipif mysql # not compatible
query I rowsort label-450
SELECT ALL - COUNT ( ALL + + 52 ) + - + ( ( - 87 ) ) FROM tab0
----
84

query I rowsort
SELECT - - 23 * col0 AS col0 FROM tab2 cor0
----
1058
1472
1725

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

onlyif mysql # aggregate syntax: 
query I rowsort label-453
SELECT DISTINCT AVG ( - col1 ) / 62 / SUM( DISTINCT ( - ( - + col1 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-453
SELECT DISTINCT AVG ( - col1 ) / 62 / SUM ( DISTINCT ( - ( - + col1 ) ) ) AS col2 FROM tab2 AS cor0 WHERE NULL <= NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 69 * col2 col0 FROM tab2 AS cor0
----
-1587
-2760
-4002

onlyif mysql # aggregate syntax: 
query I rowsort label-455
SELECT - COUNT( ALL - 22 ) AS col0 FROM tab2 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-455
SELECT - COUNT ( ALL - 22 ) AS col0 FROM tab2 AS cor0
----
-3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-457
SELECT - CAST( NULL AS SIGNED ) * - col1 / col0, - col0 + + - 30 AS col2, col2 FROM tab1
----
9 values hashing to 802bb6c1e07fc6ee485a3b933063dd02

skipif mysql # not compatible
query III rowsort label-457
SELECT - CAST ( NULL AS INTEGER ) * - col1 / col0, - col0 + + - 30 AS col2, col2 FROM tab1
----
9 values hashing to 802bb6c1e07fc6ee485a3b933063dd02

query I rowsort
SELECT DISTINCT col0 + + 60 + 41 FROM tab0 WHERE ( NOT col0 IS NULL )
----
116
188
198

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 * + col0 col2 FROM tab2
----
2116
4096
5625

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-460
SELECT ALL - ( + MAX( ALL + - CAST( 96 AS SIGNED ) ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-460
SELECT ALL - ( + MAX ( ALL + - CAST ( 96 AS INTEGER ) ) ) col1 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
96

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

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

query I rowsort
SELECT DISTINCT + + 50 FROM tab0 AS cor0 WHERE + col1 >= NULL
----

query I rowsort
SELECT DISTINCT + 76 + 55 AS col2 FROM tab1 AS cor0
----
131

query I rowsort
SELECT + - 52 / - 41 * - col2 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-465
SELECT ALL + - COUNT( * ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-465
SELECT ALL + - COUNT ( * ) AS col2 FROM tab1 WHERE NOT NULL <= NULL
----
0

query I rowsort
SELECT 33 + + ( 11 ) AS col2 FROM tab0
----
44
44
44

query I rowsort
SELECT col2 + + 64 FROM tab0
----
111
163
74

query II rowsort
SELECT - 14 + + + col1 AS col2, - 83 AS col1 FROM tab2
----
37
-83
53
-83
63
-83

query I rowsort
SELECT + 53 + + col2 AS col2 FROM tab1
----
112
121
149

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE 68 NOT IN ( - + col2, 31 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 92 ) * + - col1 + - col0 * - + col2 + ( + + ( - col1 ) ) col2 FROM tab2 AS cor0
----
-1881
-3685
-4601

query I rowsort
SELECT ( - 6 ) AS col1 FROM tab1 AS cor0 WHERE ( NULL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 cor0 WHERE + col2 + - col1 + 16 < 20 + + + col0 * - col1 * col0 + + col1
----

query I rowsort
SELECT - + col1 - + 48 FROM tab0 AS cor0
----
-129
-49
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-475
SELECT DISTINCT COUNT( * ) + - - 33 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-475
SELECT DISTINCT COUNT ( * ) + - - 33 FROM tab0
----
36

query I rowsort
SELECT - 19 + col0 AS col1 FROM tab1
----
32
66
72

onlyif mysql # DIV for integer division: 
query I rowsort label-477
SELECT DISTINCT + 56 DIV - col1 col1 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-477
SELECT DISTINCT + 56 / - col1 col1 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT - col0 * + 80 AS col2 FROM tab1 AS cor0
----
-4080
-6800
-7280

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-479
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, - ( + col2 ), + - 47, + CAST( + 58 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-479
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL NOT IN ( + col2, - ( + col2 ), + - 47, + CAST ( + 58 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-480
SELECT + MIN( - 11 ) AS col2 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-480
SELECT + MIN ( - 11 ) AS col2 FROM tab1 AS cor0
----
-11

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * + 40 * + + col2 + + + 26 * col0 / + ( - ( 57 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 FROM tab1 WHERE + 31 + - + col2 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT ALL col0 * + 80 * - 47 * - - col1 FROM tab1
----
-1598000
-16081520
-2684640

query II rowsort
SELECT col1, - 40 FROM tab2
----
51
-40
67
-40
77
-40

query II rowsort
SELECT col2 AS col0, + col2 * - col2 + + - ( - 96 ) AS col0 FROM tab0
----
10
-4
47
-2113
99
-9705

onlyif mysql # DIV for integer division: 
query I rowsort label-487
SELECT ALL + 81 DIV - + col1 FROM tab0
----
-1
-3
-81

skipif mysql # not compatible
query I rowsort label-487
SELECT ALL + 81 / - + col1 FROM tab0
----
-1
-3
-81

query I rowsort
SELECT AVG ( 74 ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT ALL - 89 * col2 + + col1 FROM tab1 AS cor0
----
-5246
-6005
-8530

query II rowsort
SELECT ALL - col0 * col2 AS col0, 96 + ( 74 ) + col1 AS col2 FROM tab2
----
-1058
221
-2560
247
-4350
237

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND NULL OR NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE 13 BETWEEN - col2 - + col1 AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-493
SELECT + + col2 * - col0 FROM tab0 AS cor0 WHERE 29 IN ( + + col2, + col2, CAST( + 87 AS SIGNED ) + 95, ( - - col2 ) )
----

skipif mysql # not compatible
query I rowsort label-493
SELECT + + col2 * - col0 FROM tab0 AS cor0 WHERE 29 IN ( + + col2, + col2, CAST ( + 87 AS INTEGER ) + 95, ( - - col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-494
SELECT ALL - - COUNT( * ) FROM tab0 AS cor0 WHERE 36 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-494
SELECT ALL - - COUNT ( * ) FROM tab0 AS cor0 WHERE 36 IS NOT NULL
----
3

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

onlyif mysql # aggregate syntax: 
query I rowsort label-496
SELECT DISTINCT MIN( + 34 ) FROM tab1
----
34

skipif mysql # not compatible
query I rowsort label-496
SELECT DISTINCT MIN ( + 34 ) FROM tab1
----
34

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-498
SELECT ALL + ( + + COUNT( * ) ) col0 FROM tab1 WHERE NOT ( NOT - col2 = 52 + - col2 )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-498
SELECT ALL + ( + + COUNT ( * ) ) col0 FROM tab1 WHERE NOT ( NOT - col2 = 52 + - col2 )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-499
SELECT + 54 + - col2 DIV - col2 col2 FROM tab2 AS cor0
----
55
55
55

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-499
SELECT + 54 + - col2 / - col2 col2 FROM tab2 AS cor0
----
55
55
55

onlyif mysql # aggregate syntax: 
query I rowsort label-500
SELECT DISTINCT SUM( DISTINCT + col2 ) + + + SUM( - + col1 ) AS col2 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-500
SELECT DISTINCT SUM ( DISTINCT + col2 ) + + + SUM ( - + col1 ) AS col2 FROM tab2 AS cor0
----
-74

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

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + 67 ) NOT IN ( 4 )
----

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

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT IN ( 21 )
----

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab0 WHERE NOT ( - 22 ) < ( - col1 )
----
81

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( NULL ) BETWEEN col1 * col2 + + 62 * - col0 AND - col1
----

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

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

query I rowsort
SELECT 86 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

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

query I rowsort
SELECT 59 - - 34 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * + col1 + 64 * col2 FROM tab2 WHERE NOT ( col2 * 67 ) NOT IN ( + col1 )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-514
SELECT ALL COUNT( * ) + 29 * - SUM( ALL ( col2 ) * - 58 ) FROM tab0
----
262395

skipif mysql # not compatible
query I rowsort label-514
SELECT ALL COUNT ( * ) + 29 * - SUM ( ALL ( col2 ) * - 58 ) FROM tab0
----
262395

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 44 col1 FROM tab2
----
-44
-44
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-517
SELECT ALL + COUNT( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-517
SELECT ALL + COUNT ( * ) FROM tab1 WHERE ( NULL ) IS NOT NULL
----
0

query I rowsort
SELECT ALL 55 + col0 AS col0 FROM tab1
----
106
140
146

onlyif mysql # aggregate syntax: 
query I rowsort label-519
SELECT 99 - COUNT( * ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-519
SELECT 99 - COUNT ( * ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-520
SELECT SUM( ( - col2 ) ) * + COUNT( * ) - - COUNT( * ) FROM tab1
----
-666

skipif mysql # not compatible
query I rowsort label-520
SELECT SUM ( ( - col2 ) ) * + COUNT ( * ) - - COUNT ( * ) FROM tab1
----
-666

onlyif mysql # aggregate syntax: 
query I rowsort label-521
SELECT ALL SUM( DISTINCT + 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-521
SELECT ALL SUM ( DISTINCT + 92 ) FROM tab1
----
92

query I rowsort
SELECT ALL - ( + 3 ) AS col0 FROM tab1 WHERE NOT ( col0 ) <= ( - 87 + + 61 )
----
-3
-3
-3

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

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL NOT BETWEEN NULL AND + 21
----

query I rowsort
SELECT col0 * - col0 FROM tab2 WHERE NOT col2 / col1 > - ( + col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT NULL BETWEEN - 53 * + 38 AND ( - col1 / col0 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NULL = ( - col0 + col1 )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-529
SELECT ALL COUNT( DISTINCT + 49 ) * ( COUNT( * ) + 1 * 48 ) + - COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-529
SELECT ALL COUNT ( DISTINCT + 49 ) * ( COUNT ( * ) + 1 * 48 ) + - COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
50

onlyif mysql # DIV for integer division: 
query I rowsort label-530
SELECT ALL ( + col0 ) DIV + 3 FROM tab2
----
15
21
25

skipif mysql # not compatible
query I rowsort label-530
SELECT ALL ( + col0 ) / + 3 FROM tab2
----
15
21
25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( 34 ) col1 FROM tab0 AS cor0 CROSS JOIN tab1
----
9 values hashing to 1146d159f0b9b4378a8b738b963f7039

query I rowsort
SELECT ALL - col1 * col1 + + col1 AS col2 FROM tab0
----
-420
-6480
0

query III rowsort
SELECT * FROM tab1 WHERE 24 + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-534
SELECT + COUNT( * ) + + 48 AS col0 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-534
SELECT + COUNT ( * ) + + 48 AS col0 FROM tab1 AS cor0
----
51

query I rowsort
SELECT col2 * + col0 + col1 AS col1 FROM tab1 AS cor0
----
4910
5020
6235

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

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

query I rowsort
SELECT ALL + col1 + 63 AS col1 FROM tab1 cor0
----
110
68
77

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-540
SELECT + COUNT( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE ( + 28 ) NOT BETWEEN ( + 43 - + col1 ) AND - 40
----
3

skipif mysql # not compatible
query I rowsort label-540
SELECT + COUNT ( DISTINCT col1 ) AS col1 FROM tab1 AS cor0 WHERE ( + 28 ) NOT BETWEEN ( + 43 - + col1 ) AND - 40
----
3

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE 76 BETWEEN + col1 AND col2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-542
SELECT CAST( NULL AS SIGNED ) / + col2 AS col2 FROM tab1 WHERE NULL >= col0 * 63
----

skipif mysql # not compatible
query I rowsort label-542
SELECT CAST ( NULL AS INTEGER ) / + col2 AS col2 FROM tab1 WHERE NULL >= col0 * 63
----

query I rowsort
SELECT col2 FROM tab0 WHERE - col1 = - col0 - 35 * col1
----

query I rowsort
SELECT + 96 * 23 * + col1 + 17 AS col0 FROM tab2
----
112625
147953
170033

query III rowsort
SELECT * FROM tab2 WHERE col1 BETWEEN + col1 AND - col1 * + col1 + - col1
----

query I rowsort
SELECT DISTINCT 8 + 24 + col1 * col2 FROM tab1
----
1376
3228
327

query I rowsort
SELECT DISTINCT AVG ( ALL - 96 ) * 81 AS col2 FROM tab1 WHERE NULL IN ( + col0 )
----
NULL

query I rowsort
SELECT ALL + col1 - - + col2 AS col2 FROM tab0
----
100
128
31

onlyif mysql # aggregate syntax: 
query I rowsort label-549
SELECT + MAX( ALL - - 41 ) FROM tab2
----
41

skipif mysql # not compatible
query I rowsort label-549
SELECT + MAX ( ALL - - 41 ) FROM tab2
----
41

query I rowsort
SELECT - 55 * + + 34 FROM tab1
----
-1870
-1870
-1870

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

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

query I rowsort
SELECT DISTINCT + 71 AS col1 FROM tab1 AS cor0 WHERE ( 75 ) IS NOT NULL AND NOT - col2 IS NOT NULL
----

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

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

query I rowsort
SELECT + + 46 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 31818c9d4d325eb248735c97cb1dce39

query I rowsort
SELECT + - 4 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5784540a5af6ca2be84399d314acd2fd

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

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

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

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

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

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

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

query I rowsort
SELECT ALL + 8 * + - 85 FROM tab2 cor0
----
-680
-680
-680

onlyif mysql # aggregate syntax: 
query I rowsort label-565
SELECT + ( MAX( - col1 ) ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
-153

skipif mysql # not compatible
query I rowsort label-565
SELECT + ( MAX ( - col1 ) ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
-153

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-568
SELECT - MIN( ALL 33 ) FROM tab1
----
-33

skipif mysql # not compatible
query I rowsort label-568
SELECT - MIN ( ALL 33 ) FROM tab1
----
-33

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col1 + col0 <= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + 96 BETWEEN NULL AND ( NULL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-572
SELECT ALL MIN( ALL - col0 ) AS col2, + CAST( NULL AS SIGNED ) / - MAX( ALL - 94 ) FROM tab2
----
-75
NULL

skipif mysql # not compatible
query II rowsort label-572
SELECT ALL MIN ( ALL - col0 ) AS col2, + CAST ( NULL AS INTEGER ) / - MAX ( ALL - 94 ) FROM tab2
----
-75
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - ( + col0 ) ) col0 FROM tab0
----
-15
-87
-97

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-575
SELECT ( - CAST( - - MIN( + col0 ) AS SIGNED ) ) AS col1 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-575
SELECT ( - CAST ( - - MIN ( + col0 ) AS INTEGER ) ) AS col1 FROM tab2 AS cor0
----
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-576
SELECT - CAST( NULL AS SIGNED ) col2 FROM tab1 cor0 WHERE NULL <= - col0
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-576
SELECT - CAST ( NULL AS INTEGER ) col2 FROM tab1 cor0 WHERE NULL <= - col0
----

query I rowsort
SELECT DISTINCT 83 AS col1 FROM tab0 AS cor0 WHERE NOT - ( - 87 ) - - - col0 >= ( NULL )
----

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-579
SELECT ALL * FROM tab0 AS cor0 WHERE CAST( NULL AS DECIMAL ) NOT IN ( 85 + + 97 )
----

skipif mysql # not compatible
query III rowsort label-579
SELECT ALL * FROM tab0 AS cor0 WHERE CAST ( NULL AS REAL ) NOT IN ( 85 + + 97 )
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-581
SELECT DISTINCT COUNT( col1 ) + - 98 AS col0 FROM tab2
----
-95

skipif mysql # not compatible
query I rowsort label-581
SELECT DISTINCT COUNT ( col1 ) + - 98 AS col0 FROM tab2
----
-95

query I rowsort
SELECT ALL + 33 * col1 + 38 + + col1 FROM tab0 AS cor0
----
2792
72
752

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE 27 <> NULL
----

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

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

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

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

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE col2 BETWEEN NULL AND ( col2 * col2 )
----

query I rowsort
SELECT ALL + col1 + + ( 35 ) FROM tab0 AS cor0
----
116
36
56

onlyif mysql # aggregate syntax: 
query I rowsort label-588
SELECT + - 60 - MIN( - + 69 ) FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-588
SELECT + - 60 - MIN ( - + 69 ) FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-589
SELECT DISTINCT + - COUNT( * ) + COUNT( ALL col2 ) FROM tab1 AS cor0
----
0

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 16 - + col1 col0 FROM tab0
----
-17
-37
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-591
SELECT ALL COUNT( * ) FROM tab1 WHERE - - 87 <> NULL
----
0

skipif mysql # not compatible
query I rowsort label-591
SELECT ALL COUNT ( * ) FROM tab1 WHERE - - 87 <> NULL
----
0

query III rowsort
SELECT * FROM tab1 WHERE - col2 + 31 * 63 * + col2 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-593
SELECT ALL + 98 DIV - col1 + col0 FROM tab2
----
45
63
74

skipif mysql # not compatible
query I rowsort label-593
SELECT ALL + 98 / - col1 + col0 FROM tab2
----
45
63
74

query I rowsort
SELECT ALL col1 * + - 43 FROM tab2 WHERE NOT + + col0 NOT BETWEEN - col2 AND NULL
----

query I rowsort
SELECT - col2 + col1 + + 5 * 13 FROM tab1
----
-17
11
44

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 27 * 98 ) < + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 60 col1 FROM tab1 AS cor0 WHERE NOT NULL <= col1 / - - 49
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-599
SELECT - - 41 * - 29 + + + ( + - MIN( ALL col0 ) ) AS col0 FROM tab1 cor0
----
-1240

skipif mysql # not compatible
query I rowsort label-599
SELECT - - 41 * - 29 + + + ( + - MIN ( ALL col0 ) ) AS col0 FROM tab1 cor0
----
-1240

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-600
SELECT DISTINCT ( CAST( NULL AS DECIMAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-600
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) AS col2 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-601
SELECT + col0 + + CAST( + 2 AS SIGNED ) + - col1 AS col0 FROM tab2 AS cor0 WHERE NOT ( NOT ( NOT ( NULL ) <= NULL ) )
----

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

query I rowsort
SELECT 32 * - 56 + + - col1 FROM tab0
----
-1793
-1813
-1873

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

query I rowsort
SELECT - 35 * - col2 FROM tab2 WHERE NOT ( + col2 ) IS NULL
----
1400
2030
805

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-607
SELECT + MAX( + CAST( NULL AS SIGNED ) ) FROM tab1 cor0 WHERE + col2 * + + col2 * - col2 > + col2 + - col1 * - CAST( NULL AS DECIMAL )
----
NULL

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0, + col0 col1 FROM tab1 AS cor0
----
51
51
85
85
91
91

query I rowsort
SELECT col0 FROM tab2 AS cor0 WHERE + col0 * + + col1 + + col2 NOT IN ( 95 + - col1 + + 12 )
----
46
64
75

query II rowsort
SELECT - 87 AS col1, col1 * - col1 AS col0 FROM tab1 AS cor0
----
-87
-196
-87
-2209
-87
-25

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + col0 col1 FROM tab2 WHERE NOT - 10 / + 95 + 83 + + col2 - - + col2 NOT IN ( + + 68 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-613
SELECT ALL - MIN( + + 40 ) + COUNT( * ) FROM tab2
----
-37

skipif mysql # not compatible
query I rowsort label-613
SELECT ALL - MIN ( + + 40 ) + COUNT ( * ) FROM tab2
----
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-614
SELECT + COUNT( DISTINCT - - col0 ) - 32 FROM tab2
----
-29

skipif mysql # not compatible
query I rowsort label-614
SELECT + COUNT ( DISTINCT - - col0 ) - 32 FROM tab2
----
-29

query II rowsort
SELECT - + col0 + + + 61 AS col1, col0 AS col1 FROM tab1 AS cor0
----
-24
85
-30
91
10
51

query I rowsort
SELECT DISTINCT 46 * - col1 * + - 75 AS col1 FROM tab1 cor0
----
162150
17250
48300

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

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

skipif mysql # not compatible
query I rowsort label-618
SELECT + 64 * + 46 + + + CAST ( NULL AS REAL ) + + col1 + + col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-620
SELECT + + MAX( + - col0 ) + + + 15 * - - ( 79 ) * 27 + + 7 * - + COUNT( * ) FROM tab2 AS cor0
----
31928

skipif mysql # not compatible
query I rowsort label-620
SELECT + + MAX ( + - col0 ) + + + 15 * - - ( 79 ) * 27 + + 7 * - + COUNT ( * ) FROM tab2 AS cor0
----
31928

onlyif mysql # aggregate syntax: 
query II rowsort label-621
SELECT DISTINCT + + 33 col2, + COUNT( * ) FROM tab1 AS cor0 WHERE col1 * + 40 IS NOT NULL
----
33
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-621
SELECT DISTINCT + + 33 col2, + COUNT ( * ) FROM tab1 AS cor0 WHERE col1 * + 40 IS NOT NULL
----
33
3

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

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

query I rowsort
SELECT DISTINCT + col2 - - 46 AS col0 FROM tab0
----
145
56
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - 17 col0 FROM tab2
----
-1139
-1309
-867

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-625
SELECT ALL - COUNT( * ) - - CAST( 18 AS SIGNED ) col1 FROM tab2
----
15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-625
SELECT ALL - COUNT ( * ) - - CAST ( 18 AS INTEGER ) col1 FROM tab2
----
15

query I rowsort
SELECT - + 76 + + col0 FROM tab1 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT ALL - 12 * + + col1 AS col1 FROM tab0 WHERE + 37 * + + 15 + + col0 >= NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-628
SELECT ALL col2 DIV - 90 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-628
SELECT ALL col2 / - 90 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + col2 * + + 49 AS col2 FROM tab2
----
1127
1960
2842

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

query I rowsort
SELECT ALL - 38 AS col0 FROM tab0 cor0
----
-38
-38
-38

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

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

query III rowsort
SELECT ALL col2 AS col2, col0 AS col2, + col1 + - 75 AS col1 FROM tab1 AS cor0
----
9 values hashing to 75be9f1171582753f1f867f980bc2067

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - + col2 col1, + col1 * 1 FROM tab0 AS cor0
----
-10
21
-47
81
-99
1

query I rowsort
SELECT ALL + + ( col1 ) + - 45 FROM tab1 AS cor0
----
-31
-40
2

query II rowsort
SELECT DISTINCT + col1, - col0 - + col2 FROM tab0 AS cor0
----
1
-196
21
-97
81
-62

query II rowsort
SELECT DISTINCT col0, + col1 + col0 AS col2 FROM tab0 AS cor0
----
15
96
87
108
97
98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-639
SELECT - COUNT( * ) + + - COUNT( + CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-639
SELECT - COUNT ( * ) + + - COUNT ( + CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-9

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - 94 col1 FROM tab2 AS cor0 WHERE ( - - col0 IS NOT NULL )
----
117
134
152

onlyif mysql # aggregate syntax: 
query I rowsort label-642
SELECT ALL - ( + 87 ) * + + COUNT( * ) col0 FROM tab2 AS cor0
----
-261

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-642
SELECT ALL - ( + 87 ) * + + COUNT ( * ) col0 FROM tab2 AS cor0
----
-261

query II rowsort
SELECT DISTINCT - 34 AS col1, 57 FROM tab2 AS cor0
----
-34
57

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-646
SELECT ( - + SUM( ALL - + col2 ) ) - + 40 AS col1 FROM tab0 AS cor0
----
116

skipif mysql # not compatible
query I rowsort label-646
SELECT ( - + SUM ( ALL - + col2 ) ) - + 40 AS col1 FROM tab0 AS cor0
----
116

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-649
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 - + 33 + 49 / + col2 AND - - 3 * CAST( + col1 AS SIGNED ) + + col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-649
SELECT * FROM tab2 WHERE NOT NULL NOT BETWEEN - col2 - + 33 + 49 / + col2 AND - - 3 * CAST ( + col1 AS INTEGER ) + + col2 + - col2
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-651
SELECT ALL col1 / - 30 + 20 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 * + CAST( - col2 AS SIGNED ), + CAST( - 58 AS SIGNED ), + - col2 - - col1 * ( - CAST( NULL AS SIGNED ) ) )
----

skipif mysql # not compatible
query I rowsort label-651
SELECT ALL col1 / - 30 + 20 FROM tab1 AS cor0 WHERE ( NULL ) IN ( col2 * + CAST ( - col2 AS INTEGER ), + CAST ( - 58 AS INTEGER ), + - col2 - - col1 * ( - CAST ( NULL AS INTEGER ) ) )
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - col1 * + col2 NOT IN ( - 15 / + col1, 28 + + col0 )
----

query I rowsort
SELECT - 40 * - 58 FROM tab2 AS cor0
----
2320
2320
2320

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

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

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

query I rowsort
SELECT + col2 * + + col2 AS col1 FROM tab0
----
100
2209
9801

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

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

query I rowsort
SELECT DISTINCT + - col1 * - col1 + col0 FROM tab1 AS cor0 WHERE 44 IS NOT NULL
----
110
2300
247

onlyif mysql # DIV for integer division: 
query I rowsort label-659
SELECT DISTINCT - + col0 DIV - - col0 + + - 78 FROM tab1 AS cor0
----
-79

skipif mysql # not compatible
query I rowsort label-659
SELECT DISTINCT - + col0 / - - col0 + + - 78 FROM tab1 AS cor0
----
-79

query I rowsort
SELECT DISTINCT col1 * - 27 AS col1 FROM tab2 AS cor0
----
-1377
-1809
-2079

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( NULL ) < - ( - col0 ) * - col1
----

query I rowsort
SELECT DISTINCT + + 13 + + + 61 * col2 * + col0 FROM tab2 cor0
----
156173
265363
64551

query I rowsort
SELECT DISTINCT + 75 * + + col0 * 63 FROM tab0
----
411075
458325
70875

onlyif mysql # DIV for integer division: 
query I rowsort label-664
SELECT + col1 + + col1 + + 20 DIV 4 AS col1 FROM tab0
----
167
47
7

skipif mysql # not compatible
query I rowsort label-664
SELECT + col1 + + col1 + + 20 / 4 AS col1 FROM tab0
----
167
47
7

onlyif mysql # DIV for integer division: 
query II rowsort label-665
SELECT - col2 DIV col0 AS col1, col2 FROM tab0 AS cor0
----
-1
99
-3
47
0
10

skipif mysql # not compatible
query II rowsort label-665
SELECT - col2 / col0 AS col1, col2 FROM tab0 AS cor0
----
-1
99
-3
47
0
10

query I rowsort
SELECT DISTINCT + 87 + col0 - + 21 * - - col1 AS col1 FROM tab0 AS cor0
----
-1599
-267
163

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

onlyif mysql # DIV for integer division: 
query I rowsort label-668
SELECT 99 DIV - col0 - - col0 FROM tab1
----
50
84
90

skipif mysql # not compatible
query I rowsort label-668
SELECT 99 / - col0 - - col0 FROM tab1
----
50
84
90

onlyif mysql # DIV for integer division: 
query I rowsort label-669
SELECT ALL col2 DIV ( col1 ) DIV - 46 - + col1 - + col1 FROM tab1
----
-10
-28
-94

skipif mysql # not compatible
query I rowsort label-669
SELECT ALL col2 / ( col1 ) / - 46 - + col1 - + col1 FROM tab1
----
-10
-28
-94

query I rowsort
SELECT ALL - col2 - col1 * 52 AS col1 FROM tab2 AS cor0
----
-2675
-3542
-4044

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

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

skipif mysql # not compatible
query I rowsort label-672
SELECT DISTINCT MIN ( DISTINCT 66 ) AS col0 FROM tab2 AS cor0
----
66

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 25 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-674
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - 49 * + - col1 <> + col1
----
0

skipif mysql # not compatible
query I rowsort label-674
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT + col0 + - 49 * + - col1 <> + col1
----
0

query I rowsort
SELECT ALL col2 * + 25 + - col1 FROM tab1 AS cor0
----
1470
1653
2386

query I rowsort
SELECT ALL AVG ( ALL - - 92 ) FROM tab0 AS cor0 WHERE NOT 8 + - col2 * + 34 * 86 + col2 < - col0 + + + col2 * - ( + col1 )
----
NULL

query I rowsort
SELECT - - 39 FROM tab0 WHERE NOT ( - col1 / + + col1 + col0 + col0 ) = + col1
----
39
39
39

onlyif mysql # aggregate syntax: 
query I rowsort label-678
SELECT - MAX( DISTINCT - col2 ) AS col0 FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-678
SELECT - MAX ( DISTINCT - col2 ) AS col0 FROM tab0
----
10

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

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

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

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

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

query I rowsort
SELECT DISTINCT 7 * - 96 AS col1 FROM tab1
----
-672

query I rowsort
SELECT 25 + col2 FROM tab1
----
121
84
93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-685
SELECT ALL - COUNT( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-685
SELECT ALL - COUNT ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 cor0
----
0

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

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

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

query I rowsort
SELECT ALL + 94 + + - col1 AS col1 FROM tab2 AS cor0
----
17
27
43

query I rowsort
SELECT DISTINCT + col2 + - 97 FROM tab1 cor0
----
-1
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-690
SELECT DISTINCT + COUNT( * ) * - - 3 + + 57 FROM tab2 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-690
SELECT DISTINCT + COUNT ( * ) * - - 3 + + 57 FROM tab2 AS cor0
----
66

query I rowsort
SELECT ALL col2 + + + 10 FROM tab0
----
109
20
57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-692
SELECT DISTINCT + CAST( + + 14 AS SIGNED ) AS col1 FROM tab1
----
14

skipif mysql # not compatible
query I rowsort label-692
SELECT DISTINCT + CAST ( + + 14 AS INTEGER ) AS col1 FROM tab1
----
14

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab0 WHERE NOT - - col1 IS NULL
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-694
SELECT DISTINCT - - COUNT( * ) FROM tab2 WHERE NOT - - col0 * - 84 / - + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-694
SELECT DISTINCT - - COUNT ( * ) FROM tab2 WHERE NOT - - col0 * - 84 / - + col1 IS NOT NULL
----
0

query I rowsort
SELECT ALL - 70 + - 60 * col2 FROM tab0 AS cor0
----
-2890
-6010
-670

query I rowsort
SELECT - 3 + col1 + - 7 + - col0 FROM tab0 AS cor0
----
-106
-76
56

query I rowsort
SELECT DISTINCT ( + 9 ) AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

query I rowsort
SELECT DISTINCT - col0 * - + col2 - + - col1 FROM tab1
----
4910
5020
6235

query I rowsort
SELECT DISTINCT - col0 + - col1 + + - col0 + + col2 * - - 36 * - col0 FROM tab0 WHERE NULL IS NULL
----
-25491
-31515
-345903

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

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

query II rowsort
SELECT + 59, col0 * col1 * + 32 AS col1 FROM tab0 AS cor0
----
59
3104
59
38880
59
58464

query I rowsort
SELECT col1 * + + col0 FROM tab0 AS cor0
----
1215
1827
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 46 col0, col2 FROM tab1 AS cor0
----
46
59
46
68
46
96

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

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

skipif mysql # not compatible
query II rowsort label-705
SELECT DISTINCT + COUNT ( DISTINCT - 36 ) AS col1, COUNT ( * ) AS col1 FROM tab1
----
1
3

query I rowsort
SELECT DISTINCT - ( + col1 ) * + - 54 * - col0 FROM tab0
----
-5238
-65610
-98658

query I rowsort
SELECT DISTINCT - 47 FROM tab2 WHERE - + ( - - col0 ) - - 62 IS NOT NULL
----
-47

onlyif mysql # aggregate syntax: 
query I rowsort label-708
SELECT - MIN( ALL col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-708
SELECT - MIN ( ALL col1 ) FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-709
SELECT DISTINCT ( - ( - ( ( + + MAX( DISTINCT 87 ) ) ) ) ) FROM tab1
----
87

skipif mysql # not compatible
query I rowsort label-709
SELECT DISTINCT ( - ( - ( ( + + MAX ( DISTINCT 87 ) ) ) ) ) FROM tab1
----
87

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-711
SELECT + CAST( col1 AS SIGNED ) AS col1, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

skipif mysql # not compatible
query II rowsort label-711
SELECT + CAST ( col1 AS INTEGER ) AS col1, col0 AS col0 FROM tab1
----
14
51
47
91
5
85

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-713
SELECT ALL COUNT( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-713
SELECT ALL COUNT ( * ) FROM tab0 AS cor0 WHERE NULL NOT BETWEEN NULL AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-714
SELECT ALL + MIN( - col0 ) * - - ( SUM( 14 ) ) col1 FROM tab2 cor0
----
-3150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-714
SELECT ALL + MIN ( - col0 ) * - - ( SUM ( 14 ) ) col1 FROM tab2 cor0
----
-3150

query I rowsort
SELECT DISTINCT + col2 + - 5 FROM tab0 AS cor0
----
42
5
94

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

onlyif mysql # aggregate syntax: 
query I rowsort label-717
SELECT DISTINCT - - 10 + + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-717
SELECT DISTINCT - - 10 + + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 10 NOT BETWEEN - 93 + - col0 + - + 57 AND - ( + col0 ) * + col0 * - 86
----

query II rowsort
SELECT col0 * + 65, - col1 AS col2 FROM tab1 AS cor0 WHERE 63 IS NOT NULL
----
3315
-14
5525
-5
5915
-47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * + col2 + 79 col2 FROM tab1
----
1423
3275
374

query I rowsort
SELECT - col2 + col0 * - - col1 FROM tab2
----
2323
4888
4967

onlyif mysql # DIV for integer division: 
query I rowsort label-722
SELECT DISTINCT col1 DIV 18 - col1 AS col1 FROM tab1
----
-14
-45
-5

skipif mysql # not compatible
query I rowsort label-722
SELECT DISTINCT col1 / 18 - col1 AS col1 FROM tab1
----
-14
-45
-5

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 87 NOT BETWEEN - 90 * - - 36 + - 43 - + - col2 + - - 76 AND NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-727
SELECT col0 * col2 / CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-727
SELECT col0 * col2 / CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - + 32 AS col0 FROM tab0 AS cor0
----
-32
-32
-32

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

onlyif mysql # DIV for integer division: 
query I rowsort label-730
SELECT ALL - 38 DIV - col2 + col2 col2 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-730
SELECT ALL - 38 / - col2 + col2 col2 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT ALL - 98 * + 47 AS col0 FROM tab2 cor0
----
-4606
-4606
-4606

onlyif mysql # aggregate syntax: 
query II rowsort label-732
SELECT + COUNT( * ) AS col0, + 84 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL > NULL ) )
----
0
84

skipif mysql # not compatible
query II rowsort label-732
SELECT + COUNT ( * ) AS col0, + 84 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( NOT NULL > NULL ) )
----
0
84

onlyif mysql # aggregate syntax: 
query I rowsort label-733
SELECT SUM( DISTINCT 78 ) FROM tab2 cor0
----
78

skipif mysql # not compatible
query I rowsort label-733
SELECT SUM ( DISTINCT 78 ) FROM tab2 cor0
----
78

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

onlyif mysql # aggregate syntax: 
query I rowsort label-735
SELECT - 28 * + COUNT( * ) FROM tab1
----
-84

skipif mysql # not compatible
query I rowsort label-735
SELECT - 28 * + COUNT ( * ) FROM tab1
----
-84

onlyif mysql # aggregate syntax: 
query II rowsort label-736
SELECT - 59 col2, - COUNT( * ) FROM tab0
----
-59
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-736
SELECT - 59 col2, - COUNT ( * ) FROM tab0
----
-59
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-737
SELECT col1 * + CAST( + col1 AS SIGNED ) AS col1 FROM tab2
----
2601
4489
5929

skipif mysql # not compatible
query I rowsort label-737
SELECT col1 * + CAST ( + col1 AS INTEGER ) AS col1 FROM tab2
----
2601
4489
5929

query II rowsort
SELECT DISTINCT - col0 AS col0, - col1 - + col0 + + - col2 FROM tab0
----
-15
-143
-87
-118
-97
-197

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

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

query I rowsort
SELECT + 62 * - col1 * + + 53 FROM tab2
----
-167586
-220162
-253022

query II rowsort
SELECT - 59 AS col0, col1 * + col0 FROM tab0 AS cor0
----
-59
1215
-59
1827
-59
97

query I rowsort
SELECT - 26 + + - col2 AS col1 FROM tab0 cor0 WHERE 29 IS NULL
----

query I rowsort
SELECT - col2 * - + col1 + - col0 AS col0 FROM tab1
----
1293
210
3105

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

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-745
SELECT DISTINCT - 79 * + - SUM( 7 ) / - CAST( NULL AS DECIMAL ) FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-745
SELECT DISTINCT - 79 * + - SUM ( 7 ) / - CAST ( NULL AS REAL ) FROM tab2 cor0
----
NULL

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

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

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

query I rowsort
SELECT DISTINCT + col2 - - + 49 FROM tab2 AS cor0
----
107
72
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 - + + 43 + - col0 + + col2 + col1 col2 FROM tab2
----
36
74
87

onlyif mysql # aggregate syntax: 
query I rowsort label-750
SELECT ALL - 72 - - COUNT( * ) AS col2 FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-750
SELECT ALL - 72 - - COUNT ( * ) AS col2 FROM tab1
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-751
SELECT ALL - SUM( DISTINCT - col2 ) AS col2 FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-751
SELECT ALL - SUM ( DISTINCT - col2 ) AS col2 FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-752
SELECT ALL COUNT( * ) - 17 FROM tab2
----
-14

skipif mysql # not compatible
query I rowsort label-752
SELECT ALL COUNT ( * ) - 17 FROM tab2
----
-14

query III rowsort
SELECT * FROM tab1 WHERE + col2 * - col0 - - ( - 36 ) * + col0 / + - col0 BETWEEN - - 46 + ( col0 ) AND + - 43
----

query I rowsort
SELECT + col2 + - 33 AS col2 FROM tab2 AS cor0
----
-10
25
7

query I rowsort
SELECT - ( + 0 ) * ( 22 ) + - col0 + + + 53 * + col1 FROM tab0 AS cor0
----
-44
1026
4278

query I rowsort
SELECT DISTINCT - col1 * col1 + + col1 * + 81 FROM tab1 cor0
----
1598
380
938

query I rowsort
SELECT - 48 * 83 FROM tab0 cor0
----
-3984
-3984
-3984

query II rowsort
SELECT + + col1, - col2 AS col0 FROM tab1 AS cor0
----
14
-96
47
-68
5
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-759
SELECT ALL + - MIN( + - 90 ) AS col0 FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-759
SELECT ALL + - MIN ( + - 90 ) AS col0 FROM tab2 AS cor0
----
90

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

query I rowsort
SELECT DISTINCT - col1 + + 48 AS col0 FROM tab1 AS cor0 WHERE - 93 <> NULL
----

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

skipif mysql # not compatible
query I rowsort label-762
SELECT DISTINCT + col0 / + ( col2 ) AS col1 FROM tab0 AS cor0
----
0
8

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-763
SELECT + CAST( - col0 AS SIGNED ) AS col0, 18 AS col1 FROM tab1 AS cor0
----
-51
18
-85
18
-91
18

skipif mysql # not compatible
query II rowsort label-763
SELECT + CAST ( - col0 AS INTEGER ) AS col0, 18 AS col1 FROM tab1 AS cor0
----
-51
18
-85
18
-91
18

query I rowsort
SELECT col0 * - col0 + + col2 FROM tab1 cor0
----
-2505
-7166
-8213

query II rowsort
SELECT DISTINCT + col1 - + col1 * + col1 AS col2, - 81 * + col2 + - 82 * col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT NULL > 6
----

onlyif mysql # aggregate syntax: 
query II rowsort label-768
SELECT - COUNT( * ) AS col2, - 22 * + 44 FROM tab1
----
-3
-968

skipif mysql # not compatible
query II rowsort label-768
SELECT - COUNT ( * ) AS col2, - 22 * + 44 FROM tab1
----
-3
-968

query I rowsort
SELECT col2 FROM tab1 WHERE NOT ( NOT 24 + col2 IS NOT NULL )
----
59
68
96

query I rowsort
SELECT DISTINCT + 71 * + col2 FROM tab2
----
1633
2840
4118

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + + col2 * - - col2 * + + col2 * + col1 * 18 + + col1
----

query I rowsort
SELECT 99 + col2 * col1 AS col0 FROM tab1
----
1443
3295
394

onlyif mysql # aggregate syntax: 
query I rowsort label-773
SELECT ALL 31 + + + COUNT( ALL + + col0 ) FROM tab1 AS cor0
----
34

skipif mysql # not compatible
query I rowsort label-773
SELECT ALL 31 + + + COUNT ( ALL + + col0 ) FROM tab1 AS cor0
----
34

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-774
SELECT DISTINCT - CAST( + col1 AS SIGNED ) + col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-774
SELECT DISTINCT - CAST ( + col1 AS INTEGER ) + col1 FROM tab1
----
0

query II rowsort
SELECT - + col1 + + col2 AS col2, col1 * - + col1 * - col0 AS col2 FROM tab2 cor0
----
-28
119646
-37
379456
-9
336675

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE ( col0 * 33 * - + 68 ) > - 99 * + 74
----

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

query I rowsort
SELECT ALL col1 * + col2 * - col1 * - col1 + - 54 + - + col2 - + 16 FROM tab2 AS cor0
----
17444126
18261210
3050880

query I rowsort
SELECT - 85 + 32 + + + 38 FROM tab2 AS cor0
----
-15
-15
-15

onlyif mysql # aggregate syntax: 
query I rowsort label-780
SELECT ALL + - ( - + COUNT( * ) ) + SUM( ALL col2 ) + + + 89 FROM tab1 AS cor0
----
315

skipif mysql # not compatible
query I rowsort label-780
SELECT ALL + - ( - + COUNT ( * ) ) + SUM ( ALL col2 ) + + + 89 FROM tab1 AS cor0
----
315

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

skipif mysql # not compatible
query III rowsort label-781
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 + + + CAST ( - CAST ( + col2 AS INTEGER ) AS INTEGER ) / col2 * + col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + 28 AS col2 FROM tab2 WHERE NULL IS NULL
----
28
28
28

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

onlyif mysql # aggregate syntax: 
query I rowsort label-784
SELECT DISTINCT COUNT( DISTINCT + col1 ) * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-784
SELECT DISTINCT COUNT ( DISTINCT + col1 ) * COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-785
SELECT MIN( + + 60 ) AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-785
SELECT MIN ( + + 60 ) AS col1 FROM tab2
----
60

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

query I rowsort
SELECT DISTINCT col0 * 39 AS col1 FROM tab2
----
1794
2496
2925

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

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

query I rowsort
SELECT ALL ( + 29 ) * - + 38 FROM tab2
----
-1102
-1102
-1102

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 31 - col0 + - + col1 col2 FROM tab0
----
-65
-67
-77

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

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

query I rowsort
SELECT DISTINCT + 28 FROM tab1 AS cor0 WHERE NULL IS NULL
----
28

query I rowsort
SELECT + col1 * - 38 AS col1 FROM tab0
----
-3078
-38
-798

query I rowsort
SELECT DISTINCT 70 FROM tab2 WHERE ( + col1 < - col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - 0, 72 col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
18 values hashing to 33daa902a68b8d9291119247231ca4e8

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-797
SELECT DISTINCT - CAST( NULL AS SIGNED ) * + 54 * + - 45 AS col2 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-797
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * + 54 * + - 45 AS col2 FROM tab0
----
NULL

query II rowsort
SELECT ALL 85 AS col0, - col0 - col0 AS col2 FROM tab1 cor0
----
85
-102
85
-170
85
-182

query II rowsort
SELECT - + 54 AS col1, - 76 AS col2 FROM tab1 AS cor0
----
-54
-76
-54
-76
-54
-76

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 89 * - - col0 col2 FROM tab1
----
4539
7565
8099

query I rowsort
SELECT ALL + col0 * + ( + col2 ) AS col2 FROM tab1
----
4896
5015
6188

query II rowsort
SELECT DISTINCT - ( col0 ) * - ( + col2 ), 71 AS col1 FROM tab0
----
705
71
870
71
9603
71

query I rowsort
SELECT col1 * + - 83 * + col2 AS col1 FROM tab1
----
-111552
-24485
-265268

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT + col0 NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-805
SELECT COUNT( * ) DIV - COUNT( - col1 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-805
SELECT COUNT ( * ) / - COUNT ( - col1 ) FROM tab0
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-806
SELECT CAST( + + col1 AS SIGNED ) * - 74 FROM tab2
----
-3774
-4958
-5698

skipif mysql # not compatible
query I rowsort label-806
SELECT CAST ( + + col1 AS INTEGER ) * - 74 FROM tab2
----
-3774
-4958
-5698

query I rowsort
SELECT + col1 + 37 + + + col1 * + - col2 * + - 61 FROM tab2 AS cor0
----
187994
237150
71641

query I rowsort
SELECT + 86 + col0 + - col0 AS col0 FROM tab2 AS cor0
----
86
86
86

query I rowsort
SELECT - col1 + - - col2 AS col1 FROM tab0
----
-11
-34
98

query I rowsort
SELECT DISTINCT 94 * + 50 AS col1 FROM tab0
----
4700

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-812
SELECT DISTINCT - 99 + - col1 DIV + col1 AS col1 FROM tab2
----
-100

skipif mysql # not compatible
query I rowsort label-812
SELECT DISTINCT - 99 + - col1 / + col1 AS col1 FROM tab2
----
-100

onlyif mysql # aggregate syntax: 
query I rowsort label-813
SELECT ALL - - MIN( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 92 * + 8 <> - 90
----
NULL

skipif mysql # not compatible
query I rowsort label-813
SELECT ALL - - MIN ( DISTINCT col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT 92 * + 8 <> - 90
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 55 AS col2, ( - col0 ) - + - col0 col1 FROM tab2 AS cor0
----
-55
0
-55
0
-55
0

onlyif mysql # aggregate syntax: 
query I rowsort label-815
SELECT ALL - SUM( DISTINCT 12 ) AS col0 FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-815
SELECT ALL - SUM ( DISTINCT 12 ) AS col0 FROM tab0 AS cor0
----
-12

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-818
SELECT ALL + + CAST( col2 AS SIGNED ) + + 62 FROM tab1 AS cor0
----
121
130
158

skipif mysql # not compatible
query I rowsort label-818
SELECT ALL + + CAST ( col2 AS INTEGER ) + + 62 FROM tab1 AS cor0
----
121
130
158

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

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

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab0 WHERE col0 BETWEEN 79 AND col0
----
1
21

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

skipif mysql # not compatible
query I rowsort label-821
SELECT DISTINCT ( CAST ( NULL AS REAL ) ) - - col2 * - col2 AS col1 FROM tab0
----
NULL

query I rowsort
SELECT DISTINCT 83 AS col0 FROM tab2 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT col2 * - col0 + + - col0 * 22 + 13 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-824
SELECT DISTINCT + COUNT( * ) * - MIN( - col1 ) FROM tab1
----
141

skipif mysql # not compatible
query I rowsort label-824
SELECT DISTINCT + COUNT ( * ) * - MIN ( - col1 ) FROM tab1
----
141

onlyif mysql # aggregate syntax: 
query II rowsort label-825
SELECT - 97, 58 - + COUNT( * ) + - 11 - COUNT( * ) * + 70 * - 81 AS col0 FROM tab2
----
-97
17054

skipif mysql # not compatible
query II rowsort label-825
SELECT - 97, 58 - + COUNT ( * ) + - 11 - COUNT ( * ) * + 70 * - 81 AS col0 FROM tab2
----
-97
17054

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

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

query I rowsort
SELECT + col0 * + 87 FROM tab2 AS cor0
----
4002
5568
6525

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-829
SELECT + 0 DIV + + ( - SUM( ALL - col0 ) ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-829
SELECT + 0 / + + ( - SUM ( ALL - col0 ) ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL + - col0 AS col0 FROM tab0 AS cor0 WHERE NOT col1 + - col0 >= - col2
----
-87

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

skipif mysql # not compatible
query I rowsort label-831
SELECT DISTINCT + + COUNT ( * ) * - - MAX ( - col0 ) AS col2 FROM tab2 AS cor0
----
-138

query I rowsort
SELECT ALL + 98 * - col0 FROM tab2 AS cor0
----
-4508
-6272
-7350

query I rowsort
SELECT ALL col0 * + 21 * + 7 FROM tab1
----
12495
13377
7497

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

query I rowsort
SELECT DISTINCT + - 92 / - col0 - + 38 FROM tab1 cor0 WHERE col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-836
SELECT DISTINCT ( COUNT( * ) ) * MIN( DISTINCT + col1 ) FROM tab2 AS cor0
----
153

skipif mysql # not compatible
query I rowsort label-836
SELECT DISTINCT ( COUNT ( * ) ) * MIN ( DISTINCT + col1 ) FROM tab2 AS cor0
----
153

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-837
SELECT DISTINCT - MAX( - - 70 ) + - + CAST( - - 87 AS SIGNED ) FROM tab2 AS cor0
----
-157

skipif mysql # not compatible
query I rowsort label-837
SELECT DISTINCT - MAX ( - - 70 ) + - + CAST ( - - 87 AS INTEGER ) FROM tab2 AS cor0
----
-157

query I rowsort
SELECT ALL col0 * + ( + 23 ) AS col2 FROM tab2
----
1058
1472
1725

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-839
SELECT ALL col2 + CAST( + - CAST( + col1 AS SIGNED ) AS SIGNED ) AS col2 FROM tab0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-839
SELECT ALL col2 + CAST ( + - CAST ( + col1 AS INTEGER ) AS INTEGER ) AS col2 FROM tab0
----
-11
-34
98

onlyif mysql # DIV for integer division: 
query I rowsort label-840
SELECT DISTINCT 31 DIV col1 AS col0 FROM tab1
----
0
2
6

skipif mysql # not compatible
query I rowsort label-840
SELECT DISTINCT 31 / col1 AS col0 FROM tab1
----
0
2
6

onlyif mysql # aggregate syntax: 
query I rowsort label-841
SELECT - ( + 73 ) + - + COUNT( - 26 ) FROM tab2
----
-76

skipif mysql # not compatible
query I rowsort label-841
SELECT - ( + 73 ) + - + COUNT ( - 26 ) FROM tab2
----
-76

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-842
SELECT + MAX( DISTINCT - col0 ) / + CAST( NULL AS DECIMAL ) + 41 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-842
SELECT + MAX ( DISTINCT - col0 ) / + CAST ( NULL AS REAL ) + 41 FROM tab2
----
NULL

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

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

query II rowsort
SELECT col2 AS col0, 42 FROM tab2 AS cor0
----
23
42
40
42
58
42

onlyif mysql # aggregate syntax: 
query I rowsort label-845
SELECT - COUNT( * ) FROM tab0 AS cor0 WHERE - col2 + 66 + - 75 <> - col0
----
-3

skipif mysql # not compatible
query I rowsort label-845
SELECT - COUNT ( * ) FROM tab0 AS cor0 WHERE - col2 + 66 + - 75 <> - col0
----
-3

query I rowsort
SELECT DISTINCT col1 FROM tab1 AS cor0 WHERE ( NULL ) = - 7
----

query I rowsort
SELECT ALL + 45 + - col0 * + col0 AS col1 FROM tab1
----
-2556
-7180
-8236

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

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

query I rowsort
SELECT col0 * col2 + - col1 + 3 AS col1 FROM tab0
----
627
852
9605

query II rowsort
SELECT col2 + col1 + col1 * + col2 AS col0, + col1 FROM tab2 AS cor0
----
1247
51
3197
77
4011
67

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

skipif mysql # not compatible
query I rowsort label-851
SELECT + CAST ( - - col0 AS REAL ) + col0 FROM tab1 AS cor0 WHERE NOT col2 - + - 66 + - ( - + col1 ) NOT BETWEEN NULL AND + col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-852
SELECT ALL - CAST( 42 AS SIGNED ) AS col2 FROM tab2
----
-42
-42
-42

skipif mysql # not compatible
query I rowsort label-852
SELECT ALL - CAST ( 42 AS INTEGER ) AS col2 FROM tab2
----
-42
-42
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-853
SELECT + 47 AS col1, + SUM( + + 64 ) * + - COUNT( DISTINCT col0 ) col2 FROM tab0
----
47
-576

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-853
SELECT + 47 AS col1, + SUM ( + + 64 ) * + - COUNT ( DISTINCT col0 ) col2 FROM tab0
----
47
-576

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - - col2 + - + col2 col1, - col0 AS col2 FROM tab0 WHERE NOT col2 BETWEEN NULL AND + ( ( - + 92 ) )
----
0
-15
0
-87
0
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-855
SELECT SUM( DISTINCT col2 ) col2 FROM tab0
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-855
SELECT SUM ( DISTINCT col2 ) col2 FROM tab0
----
156

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + - col2 ) * + col0 col0 FROM tab2
----
-1058
-2560
-4350

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-859
SELECT DISTINCT SUM( ALL ( + 54 ) ) AS col1 FROM tab2
----
162

skipif mysql # not compatible
query I rowsort label-859
SELECT DISTINCT SUM ( ALL ( + 54 ) ) AS col1 FROM tab2
----
162

query II rowsort
SELECT DISTINCT col1 AS col2, 22 + + + 62 AS col0 FROM tab2
----
51
84
67
84
77
84

query II rowsort
SELECT col1, col0 * - col0 * - - col2 * - col0 * 66 FROM tab1 cor0 WHERE NOT 26 * + - col1 NOT BETWEEN 49 * + + col0 + 57 AND - 59 * - ( - - ( col2 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-862
SELECT ALL - 90 DIV + - 5 AS col2 FROM tab0 AS cor0
----
18
18
18

skipif mysql # not compatible
query I rowsort label-862
SELECT ALL - 90 / + - 5 AS col2 FROM tab0 AS cor0
----
18
18
18

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 / - 28 + - - col0 + - + col0 col0 FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-864
SELECT DISTINCT col0 DIV - col2 + + col0 + - - col0 + + col0 FROM tab2 cor0
----
136
191
224

skipif mysql # not compatible
query I rowsort label-864
SELECT DISTINCT col0 / - col2 + + col0 + - - col0 + + col0 FROM tab2 cor0
----
136
191
224

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-865
SELECT + CAST( NULL AS SIGNED ) AS col0, - col1 DIV + - 38 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
2

skipif mysql # not compatible
query II rowsort label-865
SELECT + CAST ( NULL AS INTEGER ) AS col0, - col1 / + - 38 AS col0 FROM tab0 AS cor0
----
NULL
0
NULL
0
NULL
2

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

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

query II rowsort
SELECT + 7 * - 15 AS col2, col2 * - col2 + 48 FROM tab1
----
-105
-3433
-105
-4576
-105
-9168

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - 12 NOT IN ( ( - col0 ) )
----

query I rowsort
SELECT DISTINCT - ( 36 ) AS col1 FROM tab1 AS cor0
----
-36

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 31 NOT BETWEEN NULL AND NULL
----

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

skipif mysql # not compatible
query I rowsort label-871
SELECT + + CAST ( - col2 AS INTEGER ) + - + col0 AS col2 FROM tab0 AS cor0
----
-196
-62
-97

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-873
SELECT ALL + + col0 * + - col1 - - - ( col2 ) * - col2 - + 91 AS col0, - ( CAST( + - col0 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
256
91
2965
85
8411
51

skipif mysql # not compatible
query II rowsort label-873
SELECT ALL + + col0 * + - col1 - - - ( col2 ) * - col2 - + 91 AS col0, - ( CAST ( + - col0 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
256
91
2965
85
8411
51

query I rowsort
SELECT ALL ( + - 34 ) AS col2 FROM tab0 AS cor0
----
-34
-34
-34

query I rowsort
SELECT + + 55 * - + col1 FROM tab0 AS cor0 WHERE NOT - 29 = col0
----
-1155
-4455
-55

query I rowsort
SELECT - col1 * 80 AS col2 FROM tab1 AS cor0
----
-1120
-3760
-400

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: DIV for integer division: 
query I rowsort label-877
SELECT + 11 DIV + CAST( - CAST( + + col2 AS DECIMAL ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-877
SELECT + 11 / + CAST ( - CAST ( + + col2 AS REAL ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-878
SELECT DISTINCT - CAST( - ( + col1 ) AS SIGNED ) DIV - col0 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-878
SELECT DISTINCT - CAST ( - ( + col1 ) AS INTEGER ) / - col0 FROM tab2 AS cor0
----
-1
0

query I rowsort
SELECT + ( 56 ) * - col0 + + - 93 FROM tab1 AS cor0
----
-2949
-4853
-5189

onlyif mysql # DIV for integer division: 
query I rowsort label-880
SELECT DISTINCT - 12 DIV + - 25 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-880
SELECT DISTINCT - 12 / + - 25 FROM tab2 AS cor0
----
0

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

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

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-883
SELECT DISTINCT - 43, COUNT( * ) AS col1 FROM tab0 AS cor0
----
-43
3

skipif mysql # not compatible
query II rowsort label-883
SELECT DISTINCT - 43, COUNT ( * ) AS col1 FROM tab0 AS cor0
----
-43
3

query III rowsort
SELECT * FROM tab1 WHERE NOT - 24 * col0 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE - - col2 <= + 44
----

onlyif mysql # DIV for integer division: 
query I rowsort label-886
SELECT ALL col0 DIV + 56 FROM tab2
----
0
1
1

skipif mysql # not compatible
query I rowsort label-886
SELECT ALL col0 / + 56 FROM tab2
----
0
1
1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-888
SELECT DISTINCT - MAX( 55 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-55

skipif mysql # not compatible
query I rowsort label-888
SELECT DISTINCT - MAX ( 55 ) FROM tab1 cor0 CROSS JOIN tab1 AS cor1
----
-55

query I rowsort
SELECT ( - 35 ) AS col1 FROM tab1 cor0
----
-35
-35
-35

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

query I rowsort
SELECT ALL ( - + col0 ) AS col2 FROM tab1 AS cor0 WHERE 55 * col1 IS NOT NULL
----
-51
-85
-91

query I rowsort
SELECT + 71 FROM tab1 AS cor0 WHERE col2 IS NULL
----

query I rowsort
SELECT ALL - - 48 + - 58 + - + col1 FROM tab0 AS cor0
----
-11
-31
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-894
SELECT ALL 52 * + + SUM( DISTINCT + col1 ) AS col2 FROM tab0
----
5356

skipif mysql # not compatible
query I rowsort label-894
SELECT ALL 52 * + + SUM ( DISTINCT + col1 ) AS col2 FROM tab0
----
5356

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-895
SELECT ALL 5 + + - CAST( + MIN( DISTINCT - 24 ) AS SIGNED ) * + COUNT( * ) col1 FROM tab1
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-895
SELECT ALL 5 + + - CAST ( + MIN ( DISTINCT - 24 ) AS INTEGER ) * + COUNT ( * ) col1 FROM tab1
----
77

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

onlyif mysql # aggregate syntax: 
query I rowsort label-897
SELECT ALL + MIN( ( - + 91 ) ) FROM tab2
----
-91

skipif mysql # not compatible
query I rowsort label-897
SELECT ALL + MIN ( ( - + 91 ) ) FROM tab2
----
-91

query III rowsort
SELECT * FROM tab1 WHERE - col2 - - 87 NOT BETWEEN - ( + + ( col1 ) ) AND + - 10
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col0 * + - 28 AS col0 FROM tab0
----
-2436
-2716
-420

onlyif mysql # aggregate syntax: 
query I rowsort label-900
SELECT - COUNT( * ) * 21 FROM tab2
----
-63

skipif mysql # not compatible
query I rowsort label-900
SELECT - COUNT ( * ) * 21 FROM tab2
----
-63

query III rowsort
SELECT * FROM tab2 WHERE + - col2 >= ( col1 )
----

query II rowsort
SELECT DISTINCT - - col1 * - 38 + - col0 AS col1, - col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL IS NULL )
----
-135
-99
-3093
-47
-885
-10

query I rowsort
SELECT ALL 44 * + 26 + + col1 - ( + 40 ) AS col1 FROM tab2 AS cor0
----
1155
1171
1181

query I rowsort
SELECT ALL ( + - col1 ) * - col1 + - col2 * - 72 * - 77 FROM tab2 AS cor0
----
-124911
-215831
-317063

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - col2 * + 13 / - + col2 <> - + 3
----

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-909
SELECT - + 0 * - - 3, col1 DIV - CAST( + 34 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
0
-2
0
0
0
0

skipif mysql # not compatible
query II rowsort label-909
SELECT - + 0 * - - 3, col1 / - CAST ( + 34 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
0
-2
0
0
0
0

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

skipif mysql # not compatible
query I rowsort label-910
SELECT ALL COUNT ( * ) * + 26 FROM tab2
----
78

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-911
SELECT 13 DIV + ( COUNT( * ) ) col1, 50 col0 FROM tab1
----
4
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-911
SELECT 13 / + ( COUNT ( * ) ) col1, 50 col0 FROM tab1
----
4
50

query I rowsort
SELECT - 98 * 39 FROM tab1
----
-3822
-3822
-3822

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0, col0 col0 FROM tab1
----
51
51
85
85
91
91

query I rowsort
SELECT DISTINCT - 41 + col0 * + ( col2 ) AS col0 FROM tab1 AS cor0
----
4855
4974
6147

onlyif mysql # aggregate syntax: 
query I rowsort label-915
SELECT MAX( ALL 79 ) FROM tab2 AS cor0 WHERE NOT col1 * 47 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-915
SELECT MAX ( ALL 79 ) FROM tab2 AS cor0 WHERE NOT col1 * 47 IS NOT NULL
----
NULL

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

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

query I rowsort
SELECT ALL + col0 FROM tab2 WHERE ( + col0 / 99 ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 54 + col0 col1 FROM tab2
----
100
118
129

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 * 7 col0 FROM tab2
----
357
469
539

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-920
SELECT DISTINCT - 12 AS col1 FROM tab2 WHERE NULL <= - ( + CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-920
SELECT DISTINCT - 12 AS col1 FROM tab2 WHERE NULL <= - ( + CAST ( NULL AS INTEGER ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-921
SELECT DISTINCT * FROM tab1 WHERE ( CAST( - col0 AS DECIMAL ) ) < ( col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-921
SELECT DISTINCT * FROM tab1 WHERE ( CAST ( - col0 AS REAL ) ) < ( col0 * col0 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col0 * - col2 - 0 FROM tab1
----
-4896
-5015
-6188

query I rowsort
SELECT DISTINCT + col0 - + col1 * col0 AS col2 FROM tab1 WHERE NULL IS NULL
----
-340
-4186
-663

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 89 * col0 col1 FROM tab2
----
4094
5696
6675

query I rowsort
SELECT ALL - 0 + - col1 AS col0 FROM tab0
----
-1
-21
-81

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + 88 IN ( + col1 )
----

query I rowsort
SELECT col1 * + 52 FROM tab1
----
2444
260
728

query I rowsort
SELECT 56 + ( col1 ) AS col2 FROM tab0
----
137
57
77

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-929
SELECT ALL * FROM tab1 WHERE CAST( NULL AS DECIMAL ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-929
SELECT ALL * FROM tab1 WHERE CAST ( NULL AS REAL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-930
SELECT ALL - COUNT( * ) + + 12 FROM tab1 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-930
SELECT ALL - COUNT ( * ) + + 12 FROM tab1 WHERE ( NULL ) IS NULL
----
9

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

onlyif mysql # DIV for integer division: 
query I rowsort label-932
SELECT DISTINCT col0 DIV - col0 AS col0 FROM tab1 WHERE NOT col1 NOT BETWEEN + 38 AND col1 * col0
----
-1

skipif mysql # not compatible
query I rowsort label-932
SELECT DISTINCT col0 / - col0 AS col0 FROM tab1 WHERE NOT col1 NOT BETWEEN + 38 AND col1 * col0
----
-1

query I rowsort
SELECT ALL - col1 AS col2 FROM tab1 WHERE NOT col1 NOT IN ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-934
SELECT + 37 + ( COUNT( * ) ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-934
SELECT + 37 + ( COUNT ( * ) ) FROM tab1
----
40

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

query I rowsort
SELECT ALL 87 + 74 FROM tab1 WHERE NOT + col0 > 94 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-937
SELECT ALL 26 DIV - col0 AS col0 FROM tab0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-937
SELECT ALL 26 / - col0 AS col0 FROM tab0
----
-1
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-938
SELECT DISTINCT CAST( col0 AS SIGNED ) * + col0 FROM tab0
----
225
7569
9409

skipif mysql # not compatible
query I rowsort label-938
SELECT DISTINCT CAST ( col0 AS INTEGER ) * + col0 FROM tab0
----
225
7569
9409

query I rowsort
SELECT DISTINCT 32 * ( + 30 ) AS col2 FROM tab0
----
960

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-940
SELECT CAST( - 31 AS SIGNED ) / CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-940
SELECT CAST ( - 31 AS INTEGER ) / CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-941
SELECT DISTINCT + col1 DIV - 14 FROM tab2
----
-3
-4
-5

skipif mysql # not compatible
query I rowsort label-941
SELECT DISTINCT + col1 / - 14 FROM tab2
----
-3
-4
-5

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE 40 * ( - col2 * + 55 ) BETWEEN col1 / - col1 AND - col2 * 48 + - 53
----

onlyif mysql # DIV for integer division: 
query I rowsort label-944
SELECT col0 * - col1 + ( + ( 70 ) ) DIV - col1 col1 FROM tab2
----
-2347
-4928
-5026

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-944
SELECT col0 * - col1 + ( + ( 70 ) ) / - col1 col1 FROM tab2
----
-2347
-4928
-5026

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

query I rowsort
SELECT ALL - col0 - + 89 FROM tab1
----
-140
-174
-180

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + 85 * - 88 col0 FROM tab2
----
-7405
-7416
-7434

onlyif mysql # aggregate syntax: 
query I rowsort label-948
SELECT - COUNT( * ) * MAX( - col0 ) AS col2 FROM tab1
----
153

skipif mysql # not compatible
query I rowsort label-948
SELECT - COUNT ( * ) * MAX ( - col0 ) AS col2 FROM tab1
----
153

query I rowsort
SELECT ALL 57 + + col2 FROM tab0
----
104
156
67

query I rowsort
SELECT - col2 * + 12 FROM tab0
----
-1188
-120
-564

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT col1 NOT BETWEEN 73 AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-952
SELECT COUNT( * ) * - 86 + - MAX( DISTINCT 73 ) AS col1 FROM tab2 AS cor0
----
-331

skipif mysql # not compatible
query I rowsort label-952
SELECT COUNT ( * ) * - 86 + - MAX ( DISTINCT 73 ) AS col1 FROM tab2 AS cor0
----
-331

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-953
SELECT - col1 / 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-953
SELECT - col1 / CAST ( NULL AS INTEGER ) col0 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 9 AS col2 FROM tab0 AS cor0 WHERE ( 24 ) < NULL
----

query I rowsort
SELECT ALL + 28 + 99 * 39 FROM tab1 AS cor0
----
3889
3889
3889

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

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

query I rowsort
SELECT + 38 AS col2 FROM tab1 AS cor0 CROSS JOIN tab0
----
9 values hashing to afaddad0a4e3a1683a1c8cbe6eb522a7

query I rowsort
SELECT ALL col1 FROM tab2 WHERE - col2 * col0 IS NULL
----

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-960
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST( - ( 81 ) AS DECIMAL ) + - ( - col2 ) * - ( + 52 * + 10 ) <> 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-960
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + CAST ( - ( 81 ) AS REAL ) + - ( - col2 ) * - ( + 52 * + 10 ) <> 52
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-961
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( - 51 + + col1 * CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-961
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL > ( - 51 + + col1 * CAST ( NULL AS INTEGER ) )
----

query I rowsort
SELECT col0 * - 88 AS col1 FROM tab2 AS cor0
----
-4048
-5632
-6600

onlyif mysql # DIV for integer division: 
query I rowsort label-963
SELECT + 51 DIV col0 AS col0 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-963
SELECT + 51 / col0 AS col0 FROM tab0 cor0
----
0
0
3

onlyif mysql # aggregate syntax: 
query I rowsort label-964
SELECT DISTINCT + ( + COUNT( * ) ) * COUNT( ALL 91 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-964
SELECT DISTINCT + ( + COUNT ( * ) ) * COUNT ( ALL 91 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
0

query I rowsort
SELECT DISTINCT + 58 * col1 FROM tab1 AS cor0
----
2726
290
812

query I rowsort
SELECT - - ( 92 ) * + col0 AS col1 FROM tab1 AS cor0
----
4692
7820
8372

query I rowsort
SELECT ALL col0 + + col1 FROM tab1 AS cor0 WHERE NOT - 33 < ( + col0 )
----

query I rowsort
SELECT ALL - col1 * 65 AS col1 FROM tab0 AS cor0
----
-1365
-5265
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-969
SELECT ALL - COUNT( * ) + COUNT( * ) * 16 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
45

skipif mysql # not compatible
query I rowsort label-969
SELECT ALL - COUNT ( * ) + COUNT ( * ) * 16 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
45

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-972
SELECT col1 * CAST( ( 50 ) AS SIGNED ) AS col0 FROM tab0
----
1050
4050
50

skipif mysql # not compatible
query I rowsort label-972
SELECT col1 * CAST ( ( 50 ) AS INTEGER ) AS col0 FROM tab0
----
1050
4050
50

onlyif mysql # aggregate syntax: 
query I rowsort label-973
SELECT DISTINCT - 5 * - 77 * ( - COUNT( * ) ) FROM tab2
----
-1155

skipif mysql # not compatible
query I rowsort label-973
SELECT DISTINCT - 5 * - 77 * ( - COUNT ( * ) ) FROM tab2
----
-1155

query I rowsort
SELECT 89 * + 51 AS col2 FROM tab1 WHERE NOT ( col2 ) NOT IN ( - 21 * - 91 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-975
SELECT ALL - MIN( DISTINCT - col2 ) * 17 col1 FROM tab1
----
1632

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-975
SELECT ALL - MIN ( DISTINCT - col2 ) * 17 col1 FROM tab1
----
1632

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL <= + col2 / col1
----

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

query I rowsort
SELECT 69 + + 84 FROM tab0 WHERE NOT NULL NOT IN ( col0 * + col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( + col1 ) < ( col0 - col0 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 / - ( - col0 ) BETWEEN col1 + + col2 * 60 AND NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ( + col0 ) + + col1 AS col2 FROM tab1
----
138
65
90

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-983
SELECT - - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-983
SELECT - - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT DISTINCT - col2 + - 84 FROM tab2 AS cor0
----
-107
-124
-142

onlyif mysql # aggregate syntax: 
query I rowsort label-985
SELECT - MAX( ALL col1 ) * - MIN( DISTINCT + col2 + + col0 * + col1 ) FROM tab1 cor0
----
22748

skipif mysql # not compatible
query I rowsort label-985
SELECT - MAX ( ALL col1 ) * - MIN ( DISTINCT + col2 + + col0 * + col1 ) FROM tab1 cor0
----
22748

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-988
SELECT ALL + 0 DIV + col2 * - col1 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-988
SELECT ALL + 0 / + col2 * - col1 AS col2 FROM tab1
----
0
0
0

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

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

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

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

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

skipif mysql # not compatible
query I rowsort label-991
SELECT DISTINCT SUM ( ALL - col0 ) AS col0 FROM tab0
----
-199

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

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

query I rowsort
SELECT 31 + - 97 - - - 30 AS col1 FROM tab2 AS cor0
----
-96
-96
-96

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col1 * + + ( - ( 89 ) ) + 68 ) IN ( + col1 + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-995
SELECT 46 + + MIN( ALL + + 19 ) + - 26 FROM tab2 cor0
----
39

skipif mysql # not compatible
query I rowsort label-995
SELECT 46 + + MIN ( ALL + + 19 ) + - 26 FROM tab2 cor0
----
39

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

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

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col0 + + col1 + + 85 * 91 AS col0 FROM tab1 AS cor0
----
7800
7825
7873

query III rowsort
SELECT * FROM tab1 WHERE - 16 <= ( NULL )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 25 * 27 - - + 1 col1 FROM tab0
----
-674
-674
-674

query I rowsort
SELECT - col0 AS col0 FROM tab2 WHERE - 91 NOT BETWEEN ( NULL ) AND ( 24 )
----

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

query II rowsort
SELECT DISTINCT - + ( - 8 ) AS col2, col1 * col0 FROM tab2 AS cor0
----
8
2346
8
4928
8
5025

query I rowsort
SELECT ALL + - 92 AS col0 FROM tab0 AS cor0
----
-92
-92
-92

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

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

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

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

query I rowsort
SELECT DISTINCT + + 52 * - col2 FROM tab2 AS cor0
----
-1196
-2080
-3016

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 BETWEEN + - col1 AND - - col0 + - ( ( + col0 ) ) - - col0 / col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1014
SELECT DISTINCT COUNT( DISTINCT - - 18 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1014
SELECT DISTINCT COUNT ( DISTINCT - - 18 ) AS col1 FROM tab1 AS cor0
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1016
SELECT ALL + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT - 3 = NULL
----
0

skipif mysql # not compatible
query I rowsort label-1016
SELECT ALL + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT - 3 = NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1017
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 / - col2 + - - 58 * + - col1 IN ( 61 )
----
3

skipif mysql # not compatible
query I rowsort label-1017
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT - col0 / - col2 + - - 58 * + - col1 IN ( 61 )
----
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1019
SELECT col0 * + col0 AS col0, - CAST( - col0 AS SIGNED ) - - col0 FROM tab0
----
225
30
7569
174
9409
194

skipif mysql # not compatible
query II rowsort label-1019
SELECT col0 * + col0 AS col0, - CAST ( - col0 AS INTEGER ) - - col0 FROM tab0
----
225
30
7569
174
9409
194

query II rowsort
SELECT - col1, - 88 AS col2 FROM tab1
----
-14
-88
-47
-88
-5
-88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1021
SELECT ALL col0, CAST( NULL AS SIGNED ) AS col1, - - col2 AS col2 FROM tab1
----
9 values hashing to ae3ca97e87b94fbfbc82884d857cfdf4

skipif mysql # not compatible
query III rowsort label-1021
SELECT ALL col0, CAST ( NULL AS INTEGER ) AS col1, - - col2 AS col2 FROM tab1
----
9 values hashing to ae3ca97e87b94fbfbc82884d857cfdf4

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1022
SELECT DISTINCT 3 DIV + MAX( + 51 ) DIV - + COUNT( - 90 ) AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1022
SELECT DISTINCT 3 / + MAX ( + 51 ) / - + COUNT ( - 90 ) AS col0 FROM tab2
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, + col2 col2 FROM tab0 cor0
----
1
99
21
10
81
47

query I rowsort
SELECT - 99 + + col2 * + col2 AS col1 FROM tab1 AS cor0
----
3382
4525
9117

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

query I rowsort
SELECT + col1 + + 39 FROM tab1 AS cor0
----
44
53
86

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1030
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col2 * - + 68 + - - CAST( + + 15 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-1030
SELECT DISTINCT * FROM tab0 WHERE NOT NULL = col2 * - + 68 + - - CAST ( + + 15 AS INTEGER )
----

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

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

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

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

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 11 >= ( - col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL - 23 - 48 AS col0, 51 - col1 AS col1 FROM tab2 AS cor0
----
-71
-16
-71
-26
-71
0

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

query I rowsort
SELECT - col2 * + + ( + 67 ) - + col0 + + col2 AS col0 FROM tab0 AS cor0
----
-3117
-6631
-747

query I rowsort
SELECT + 61 - + col0 + - col1 * - col2 AS col2 FROM tab0
----
184
3853
63

query I rowsort
SELECT ( - col1 ) - - - col2 FROM tab2
----
-117
-125
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1039
SELECT ALL - CAST( NULL AS SIGNED ) * + 69 * 0 - 78 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1039
SELECT ALL - CAST ( NULL AS INTEGER ) * + 69 * 0 - 78 AS col0 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT 94 + + 95 FROM tab2
----
189
189
189

query I rowsort
SELECT 12 + + + 29 FROM tab0
----
41
41
41

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( - col2 - + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1043
SELECT + col2 * - CAST( 9 AS SIGNED ) + - 79 AS col2 FROM tab0
----
-169
-502
-970

skipif mysql # not compatible
query I rowsort label-1043
SELECT + col2 * - CAST ( 9 AS INTEGER ) + - 79 AS col2 FROM tab0
----
-169
-502
-970

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1045
SELECT 79 * + col0 FROM tab2 WHERE NOT ( NOT - ( + CAST( + col2 AS SIGNED ) ) + - col2 IS NOT NULL )
----
3634
5056
5925

skipif mysql # not compatible
query I rowsort label-1045
SELECT 79 * + col0 FROM tab2 WHERE NOT ( NOT - ( + CAST ( + col2 AS INTEGER ) ) + - col2 IS NOT NULL )
----
3634
5056
5925

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

skipif mysql # not compatible
query I rowsort label-1046
SELECT DISTINCT + 51 * COUNT ( * ) FROM tab0 WHERE + ( col2 ) <> NULL
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT col1 <= ( - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-1048
SELECT COUNT( DISTINCT - col0 ) AS col2 FROM tab0 cor0 WHERE + 90 * - + col1 + + col1 * - - col0 + - col1 IS NULL OR ( - + 78 ) <> 77
----
3

skipif mysql # not compatible
query I rowsort label-1048
SELECT COUNT ( DISTINCT - col0 ) AS col2 FROM tab0 cor0 WHERE + 90 * - + col1 + + col1 * - - col0 + - col1 IS NULL OR ( - + 78 ) <> 77
----
3

query I rowsort
SELECT col1 * + col1 + + + col2 AS col1 FROM tab2 AS cor0
----
2624
4547
5969

query I rowsort
SELECT ALL ( - + 33 ) AS col0 FROM tab1 AS cor0 WHERE NULL BETWEEN NULL AND ( col2 - 96 )
----

query II rowsort
SELECT ALL 74 AS col0, + col2 FROM tab0
----
74
10
74
47
74
99

onlyif mysql # aggregate syntax: 
query I rowsort label-1052
SELECT ALL + SUM( ALL - 90 ) FROM tab2
----
-270

skipif mysql # not compatible
query I rowsort label-1052
SELECT ALL + SUM ( ALL - 90 ) FROM tab2
----
-270

query II rowsort
SELECT DISTINCT + col1 AS col0, col2 FROM tab1
----
14
96
47
68
5
59

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1055
SELECT CAST( + 78 AS SIGNED ) + + col1 FROM tab0
----
159
79
99

skipif mysql # not compatible
query I rowsort label-1055
SELECT CAST ( + 78 AS INTEGER ) + + col1 FROM tab0
----
159
79
99

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

query II rowsort
SELECT - - col0, col1 FROM tab1 AS cor0
----
51
14
85
5
91
47

query III rowsort
SELECT * FROM tab2 cor0 WHERE ( ( + 49 ) IS NULL )
----

query I rowsort
SELECT + 79 AS col1 FROM tab2 AS cor0 WHERE + 38 * + 11 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1060
SELECT - + MIN( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE + 94 - 55 * - - ( - col0 ) = - - col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1060
SELECT - + MIN ( DISTINCT + col1 ) FROM tab0 AS cor0 WHERE + 94 - 55 * - - ( - col0 ) = - - col1
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 * + - 83 <> + 75
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1062
SELECT col2 + CAST( + 36 AS SIGNED ) FROM tab2 cor0
----
59
76
94

skipif mysql # not compatible
query I rowsort label-1062
SELECT col2 + CAST ( + 36 AS INTEGER ) FROM tab2 cor0
----
59
76
94

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE + col1 NOT BETWEEN + 8 AND + + col0
----
46
51
23
64
77
40

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1065
SELECT + 3 + - MIN( + 28 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-25

skipif mysql # not compatible
query I rowsort label-1065
SELECT + 3 + - MIN ( + 28 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
-25

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 * + + col2 col1 FROM tab2 AS cor0
----
-1173
-3080
-3886

query I rowsort
SELECT DISTINCT + 70 FROM tab1 AS cor0 WHERE col1 + - col1 * 71 < NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( - col0 ) + + + col2 col0 FROM tab1 AS cor0
----
144
147
159

query I rowsort
SELECT DISTINCT - 35 + + col2 - + col0 AS col0 FROM tab0
----
-112
-3
-33

query I rowsort
SELECT DISTINCT + 48 AS col1 FROM tab0 WHERE NULL IS NULL
----
48

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1071
SELECT + COUNT( * ) FROM tab2 WHERE CAST( NULL AS SIGNED ) / - col2 > + 24 * - 55
----
0

skipif mysql # not compatible
query I rowsort label-1071
SELECT + COUNT ( * ) FROM tab2 WHERE CAST ( NULL AS INTEGER ) / - col2 > + 24 * - 55
----
0

query II rowsort
SELECT - ( + - 1 ), ( - - 86 ) AS col2 FROM tab1
----
1
86
1
86
1
86

query III rowsort
SELECT ALL * FROM tab1 WHERE - 21 + - 50 = - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1074
SELECT ALL - COUNT( * ) * - + 39 * COUNT( ALL col1 ) FROM tab1
----
351

skipif mysql # not compatible
query I rowsort label-1074
SELECT ALL - COUNT ( * ) * - + 39 * COUNT ( ALL col1 ) FROM tab1
----
351

query I rowsort
SELECT + 71 * + col1 AS col0 FROM tab2
----
3621
4757
5467

onlyif mysql # DIV for integer division: 
query I rowsort label-1076
SELECT ALL col1 DIV - col0 + + 77 FROM tab0 AS cor0
----
72
77
77

skipif mysql # not compatible
query I rowsort label-1076
SELECT ALL col1 / - col0 + + 77 FROM tab0 AS cor0
----
72
77
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1077
SELECT DISTINCT - SUM( - 50 ) col0 FROM tab0
----
150

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1077
SELECT DISTINCT - SUM ( - 50 ) col0 FROM tab0
----
150

onlyif mysql # aggregate syntax: 
query I rowsort label-1078
SELECT - COUNT( DISTINCT + 37 ) col2 FROM tab0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1078
SELECT - COUNT ( DISTINCT + 37 ) col2 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - + 3 * - - 49 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
-147

query I rowsort
SELECT ALL 75 * col2 * + col1 FROM tab0 AS cor0 WHERE + 43 * + col0 * + + col1 NOT IN ( + - col1 )
----
15750
285525
7425

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1083
SELECT DISTINCT 3 DIV + 8 AS col1, col0 + + - col0 + col0 - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1083
SELECT DISTINCT 3 / + 8 AS col1, col0 + + - col0 + col0 - col0 col0 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
0
0

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col0 * - + 65 * + 18 NOT IN ( + + col0 )
----

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( - col1 ) + - col1 + - - col0 * - - col0 + - + col2 col1 FROM tab0
----
16
7517
9308

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1088
SELECT ALL - - col2 AS col1 FROM tab1 WHERE CAST( NULL AS SIGNED ) = NULL
----

skipif mysql # not compatible
query I rowsort label-1088
SELECT ALL - - col2 AS col1 FROM tab1 WHERE CAST ( NULL AS INTEGER ) = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1089
SELECT + 86 FROM tab0 AS cor0 WHERE col2 / col0 + - col1 * - 87 * + - 12 * + - CAST( NULL AS SIGNED ) * + col1 NOT IN ( + col2 + - - 30 )
----

skipif mysql # not compatible
query I rowsort label-1089
SELECT + 86 FROM tab0 AS cor0 WHERE col2 / col0 + - col1 * - 87 * + - 12 * + - CAST ( NULL AS INTEGER ) * + col1 NOT IN ( + col2 + - - 30 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1090
SELECT DISTINCT + col0 DIV col0 - col1 + + 3 FROM tab0 AS cor0
----
-17
-77
3

skipif mysql # not compatible
query I rowsort label-1090
SELECT DISTINCT + col0 / col0 - col1 + + 3 FROM tab0 AS cor0
----
-17
-77
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1091
SELECT - 59 DIV - 17 + + + col2 col2 FROM tab0 AS cor0
----
102
13
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1091
SELECT - 59 / - 17 + + + col2 col2 FROM tab0 AS cor0
----
102
13
50

query I rowsort
SELECT ALL + ( - 50 ) + - + col2 + - col1 FROM tab1
----
-114
-160
-165

onlyif mysql # aggregate syntax: 
query I rowsort label-1093
SELECT DISTINCT + COUNT( - col1 ) + - 41 FROM tab0
----
-38

skipif mysql # not compatible
query I rowsort label-1093
SELECT DISTINCT + COUNT ( - col1 ) + - 41 FROM tab0
----
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-1094
SELECT ALL + COUNT( * ) + - 42 FROM tab1 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-1094
SELECT ALL + COUNT ( * ) + - 42 FROM tab1 AS cor0
----
-39

query III rowsort
SELECT * FROM tab2 cor0 WHERE col0 - - col1 IS NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1098
SELECT + + 68 DIV 66 AS col2 FROM tab1 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-1098
SELECT + + 68 / 66 AS col2 FROM tab1 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query II rowsort label-1099
SELECT DISTINCT + + 18 * SUM( - - ( 80 ) ) - + - 31 AS col1, COUNT( * ) FROM tab2 AS cor0
----
4351
3

skipif mysql # not compatible
query II rowsort label-1099
SELECT DISTINCT + + 18 * SUM ( - - ( 80 ) ) - + - 31 AS col1, COUNT ( * ) FROM tab2 AS cor0
----
4351
3

onlyif mysql # DIV for integer division: 
query I rowsort label-1100
SELECT + 65 DIV 26 FROM tab0 AS cor0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1100
SELECT + 65 / 26 FROM tab0 AS cor0
----
2
2
2

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - - 6 * + 11 col2 FROM tab2 WHERE + 80 <= + col2 * ( + 12 )
----
66

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col2 >= + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - 74 AS col0 FROM tab0 WHERE NOT NULL <> - 62 * + col2 / - - col2
----

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

query I rowsort
SELECT col1 * + col0 + + - 39 AS col0 FROM tab1 AS cor0
----
386
4238
675

onlyif mysql # aggregate syntax: 
query I rowsort label-1107
SELECT + + SUM( ALL + 64 ) * - MIN( + + col2 ) * COUNT( * ) FROM tab1 AS cor0
----
-33984

skipif mysql # not compatible
query I rowsort label-1107
SELECT + + SUM ( ALL + 64 ) * - MIN ( + + col2 ) * COUNT ( * ) FROM tab1 AS cor0
----
-33984

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

query I rowsort
SELECT ALL - col0 + col1 * - col2 AS col1 FROM tab1 AS cor0
----
-1395
-3287
-380

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - 72 col1 FROM tab2 AS cor0
----
72
72
72

query I rowsort
SELECT DISTINCT + - 56 AS col2 FROM tab2 AS cor0
----
-56

query I rowsort
SELECT + - col0 * + col1 + - col0 FROM tab1 AS cor0
----
-4368
-510
-765

query I rowsort
SELECT - - ( ( 89 ) ) AS col1 FROM tab0 AS cor0 WHERE 35 < - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1114
SELECT DISTINCT MAX( col0 ) col2 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1114
SELECT DISTINCT MAX ( col0 ) col2 FROM tab2 WHERE NOT NULL = NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL ( - 62 ) col2 FROM tab0
----
-62
-62
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-1116
SELECT 8 + 87 + - + ( MIN( DISTINCT - 11 ) ) FROM tab0
----
106

skipif mysql # not compatible
query I rowsort label-1116
SELECT 8 + 87 + - + ( MIN ( DISTINCT - 11 ) ) FROM tab0
----
106

query I rowsort
SELECT 79 * - 64 + - col1 AS col1 FROM tab2
----
-5107
-5123
-5133

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

query I rowsort
SELECT - - 38 FROM tab0 WHERE + 27 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1120
SELECT ( - MIN( ALL - 20 ) ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-1120
SELECT ( - MIN ( ALL - 20 ) ) AS col1 FROM tab2
----
20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1121
SELECT DISTINCT - + col2 * col2 AS col0 FROM tab0 WHERE NOT + col0 > - CAST( + + 25 AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1121
SELECT DISTINCT - + col2 * col2 AS col0 FROM tab0 WHERE NOT + col0 > - CAST ( + + 25 AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1122
SELECT DISTINCT - 87 * - - MAX( + col1 ) - ( + - 27 ) FROM tab2 AS cor0
----
-6672

skipif mysql # not compatible
query I rowsort label-1122
SELECT DISTINCT - 87 * - - MAX ( + col1 ) - ( + - 27 ) FROM tab2 AS cor0
----
-6672

query I rowsort
SELECT - col0 + + + col1 AS col1 FROM tab0
----
-66
-96
66

query I rowsort
SELECT - col1 * - 47 * + + col1 FROM tab2 AS cor0
----
122247
210983
278663

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

query II rowsort
SELECT ALL 83, col0 AS col1 FROM tab2 WHERE - col0 + 40 IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1127
SELECT col2, CAST( NULL AS DECIMAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

skipif mysql # not compatible
query II rowsort label-1127
SELECT col2, CAST ( NULL AS REAL ) FROM tab0
----
10
NULL
47
NULL
99
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1128
SELECT DISTINCT 60 * - COUNT( - col1 ) AS col2 FROM tab1
----
-180

skipif mysql # not compatible
query I rowsort label-1128
SELECT DISTINCT 60 * - COUNT ( - col1 ) AS col2 FROM tab1
----
-180

query I rowsort
SELECT ALL - 79 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1130
SELECT ALL - CAST( col1 AS SIGNED ) * col2 AS col1 FROM tab1
----
-1344
-295
-3196

skipif mysql # not compatible
query I rowsort label-1130
SELECT ALL - CAST ( col1 AS INTEGER ) * col2 AS col1 FROM tab1
----
-1344
-295
-3196

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1131
SELECT ALL COUNT( * ) * - CAST( + COUNT( * ) AS SIGNED ) * + MIN( DISTINCT - 53 ) AS col0, 11 + - - 21 FROM tab1
----
477
32

skipif mysql # not compatible
query II rowsort label-1131
SELECT ALL COUNT ( * ) * - CAST ( + COUNT ( * ) AS INTEGER ) * + MIN ( DISTINCT - 53 ) AS col0, 11 + - - 21 FROM tab1
----
477
32

onlyif mysql # DIV for integer division: 
query I rowsort label-1132
SELECT DISTINCT - 63 DIV + col1 AS col0 FROM tab0
----
-3
-63
0

skipif mysql # not compatible
query I rowsort label-1132
SELECT DISTINCT - 63 / + col1 AS col0 FROM tab0
----
-3
-63
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1133
SELECT DISTINCT + col0 - - col0 col1 FROM tab2 WHERE col0 * + ( + + 33 ) + ( + + CAST ( - col0 AS INTEGER ) ) BETWEEN NULL AND - 84
----

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1136
SELECT DISTINCT + 36 DIV COUNT( * ) * + + COUNT( * ) AS col2 FROM tab0
----
36

skipif mysql # not compatible
query I rowsort label-1136
SELECT DISTINCT + 36 / COUNT ( * ) * + + COUNT ( * ) AS col2 FROM tab0
----
36

query I rowsort
SELECT - 45 + 44 + 29 FROM tab1
----
28
28
28

query II rowsort
SELECT ALL - 83 AS col1, - ( ( + - col1 ) ) FROM tab1
----
-83
14
-83
47
-83
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + - 19 col1 FROM ( tab2 cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 339c9d62143bf2f7566b89a1b56eeeb4

onlyif mysql # aggregate syntax: 
query I rowsort label-1140
SELECT ( - COUNT( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-1140
SELECT ( - COUNT ( * ) ) AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-3

query I rowsort
SELECT ALL - + col2 + + - 97 AS col0 FROM tab2 AS cor0
----
-120
-137
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-1142
SELECT - MIN( 44 ) AS col2 FROM tab1 cor0
----
-44

skipif mysql # not compatible
query I rowsort label-1142
SELECT - MIN ( 44 ) AS col2 FROM tab1 cor0
----
-44

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - + ( - - 2 ) < - + 48
----
87
21
10
97
1
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1144
SELECT col2 * - + 52 + - ( col1 ) + - CAST( col2 AS SIGNED ) + - ( col2 ) + - 2 * - col1 * col0 FROM tab2 AS cor0
----
3399
6851
7619

skipif mysql # not compatible
query I rowsort label-1144
SELECT col2 * - + 52 + - ( col1 ) + - CAST ( col2 AS INTEGER ) + - ( col2 ) + - 2 * - col1 * col0 FROM tab2 AS cor0
----
3399
6851
7619

query I rowsort
SELECT ALL - 32 * + + 77 + + - col2 FROM tab0 AS cor0
----
-2474
-2511
-2563

onlyif mysql # aggregate syntax: 
query I rowsort label-1146
SELECT - SUM( DISTINCT + 24 ) AS col1 FROM tab0 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-1146
SELECT - SUM ( DISTINCT + 24 ) AS col1 FROM tab0 AS cor0
----
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-1147
SELECT MAX( - + 5 ) * - - 78 / - MIN( 16 ) FROM tab2 WHERE NULL BETWEEN - + col2 AND + col2
----
NULL

skipif mysql # not compatible
query I rowsort label-1147
SELECT MAX ( - + 5 ) * - - 78 / - MIN ( 16 ) FROM tab2 WHERE NULL BETWEEN - + col2 AND + col2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1148
SELECT DISTINCT 17 - + COUNT( * ) * COUNT( * ) FROM tab0
----
8

skipif mysql # not compatible
query I rowsort label-1148
SELECT DISTINCT 17 - + COUNT ( * ) * COUNT ( * ) FROM tab0
----
8

query I rowsort
SELECT 57 * col0 FROM tab1 WHERE NULL IS NULL
----
2907
4845
5187

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

query I rowsort
SELECT col0 * col2 + + - col2 FROM tab2 cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-1152
SELECT DISTINCT + MIN( + 91 ) + + 7 FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-1152
SELECT DISTINCT + MIN ( + 91 ) + + 7 FROM tab2 AS cor0
----
98

onlyif mysql # aggregate syntax: 
query I rowsort label-1153
SELECT + 71 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-1153
SELECT + 71 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
74

query I rowsort
SELECT + - ( + + col2 ) + + ( + col1 ) AS col0 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT DISTINCT col1 + 52 FROM tab1 AS cor0
----
57
66
99

query III rowsort
SELECT * FROM tab2 WHERE + 62 + + 79 <= NULL
----

query I rowsort
SELECT DISTINCT - col0 - + 20 FROM tab2
----
-66
-84
-95

onlyif mysql # aggregate syntax: 
query I rowsort label-1158
SELECT DISTINCT ( MIN( + 7 ) ) FROM tab0
----
7

skipif mysql # not compatible
query I rowsort label-1158
SELECT DISTINCT ( MIN ( + 7 ) ) FROM tab0
----
7

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - 66 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1160
SELECT ALL ( - ( + CAST( NULL AS SIGNED ) ) ) AS col2, - col0 DIV + - col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
1

skipif mysql # not compatible
query II rowsort label-1160
SELECT ALL ( - ( + CAST ( NULL AS INTEGER ) ) ) AS col2, - col0 / + - col1 AS col2 FROM tab2
----
NULL
0
NULL
0
NULL
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * col2 * + 40 * + - col1 * - col0 col2 FROM tab0 cor0
----
-34263000
-37259640
-63579600

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1162
SELECT DISTINCT - CAST( - col1 AS SIGNED ) FROM tab1 cor0
----
14
47
5

skipif mysql # not compatible
query I rowsort label-1162
SELECT DISTINCT - CAST ( - col1 AS INTEGER ) FROM tab1 cor0
----
14
47
5

query II rowsort
SELECT - 26 AS col1, 7 * + col0 AS col0 FROM tab1 AS cor0
----
-26
357
-26
595
-26
637

onlyif mysql # aggregate syntax: 
query I rowsort label-1164
SELECT COUNT( * ) * - - 53 + + 20 AS col0 FROM tab1 AS cor0
----
179

skipif mysql # not compatible
query I rowsort label-1164
SELECT COUNT ( * ) * - - 53 + + 20 AS col0 FROM tab1 AS cor0
----
179

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1165
SELECT CAST( - - MAX( - col1 ) AS SIGNED ) FROM tab2 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-1165
SELECT CAST ( - - MAX ( - col1 ) AS INTEGER ) FROM tab2 AS cor0
----
-51

query II rowsort
SELECT DISTINCT + + 22 AS col2, col2 * col1 * - col1 AS col2 FROM tab0 AS cor0
----
22
-308367
22
-4410
22
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1167
SELECT ALL - + SUM( - 56 ) AS col0 FROM tab1 AS cor0
----
168

skipif mysql # not compatible
query I rowsort label-1167
SELECT ALL - + SUM ( - 56 ) AS col0 FROM tab1 AS cor0
----
168

query I rowsort
SELECT 23 * + 39 FROM tab1 AS cor0
----
897
897
897

query I rowsort
SELECT ALL - 29 * + col1 AS col0 FROM tab1
----
-1363
-145
-406

query I rowsort
SELECT ALL ( - ( - col0 ) ) FROM tab0
----
15
87
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1171
SELECT DISTINCT + CAST( + 83 AS SIGNED ) * col2 FROM tab0
----
3901
8217
830

skipif mysql # not compatible
query I rowsort label-1171
SELECT DISTINCT + CAST ( + 83 AS INTEGER ) * col2 FROM tab0
----
3901
8217
830

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1173
SELECT + 82 * + COUNT( * ) AS col1 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-1173
SELECT + 82 * + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
246

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col1 col2 FROM tab1 AS cor0
----
1344
295
3196

query I rowsort
SELECT - col1 FROM tab0 AS cor0 WHERE NOT - 22 IS NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1178
SELECT DISTINCT + + MIN( ALL - col0 ) + - MAX( col2 ) AS col1 FROM tab2 AS cor0
----
-133

skipif mysql # not compatible
query I rowsort label-1178
SELECT DISTINCT + + MIN ( ALL - col0 ) + - MAX ( col2 ) AS col1 FROM tab2 AS cor0
----
-133

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 74 + - col1 col1 FROM tab2 AS cor0
----
-125
-141
-151

query I rowsort
SELECT - col1 AS col0 FROM tab1 AS cor0 WHERE NULL >= ( NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 21 + - col1 col2 FROM tab0 cor0
----
-60
0
20

onlyif mysql # aggregate syntax: 
query I rowsort label-1183
SELECT COUNT( * ) + - COUNT( 47 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1183
SELECT COUNT ( * ) + - COUNT ( 47 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - 96 + - + 73 - col2 AS col1 FROM tab0
----
-179
-216
-268

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 - col0 AS col1, + ( - 32 ) * - col1 * col0 col0 FROM tab2 WHERE - col0 NOT BETWEEN - col0 * + col1 AND NULL
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1186
SELECT DISTINCT + CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) - col2 col0 FROM tab2
----
NULL

query I rowsort
SELECT col1 + - 7 AS col2 FROM tab0
----
-6
14
74

onlyif mysql # aggregate syntax: 
query I rowsort label-1188
SELECT COUNT( * ) * - 8 AS col1 FROM tab1
----
-24

skipif mysql # not compatible
query I rowsort label-1188
SELECT COUNT ( * ) * - 8 AS col1 FROM tab1
----
-24

query I rowsort
SELECT ALL - ( + col0 ) - + - col0 FROM tab1
----
0
0
0

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1190
SELECT - ( SUM ( ALL col0 ) ) col0 FROM tab1
----
-227

query II rowsort
SELECT + col0 AS col1, - 39 * - col2 + col1 * - + col1 FROM tab2
----
46
-1704
64
-4369
75
-2227

onlyif mysql # aggregate syntax: 
query I rowsort label-1192
SELECT + SUM( col2 ) FROM tab0 WHERE 53 IS NOT NULL
----
156

skipif mysql # not compatible
query I rowsort label-1192
SELECT + SUM ( col2 ) FROM tab0 WHERE 53 IS NOT NULL
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-1193
SELECT ALL - COUNT( * ) * - + MIN( ALL 76 ) * - 54 - SUM( + col2 ) FROM tab2 AS cor0
----
-12433

skipif mysql # not compatible
query I rowsort label-1193
SELECT ALL - COUNT ( * ) * - + MIN ( ALL 76 ) * - 54 - SUM ( + col2 ) FROM tab2 AS cor0
----
-12433

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 * - + 57 IS NOT NULL AND + 74 - - col2 NOT IN ( - - ( - 64 ), + col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT + 74 * - + 71 + - 20 * 15 AS col2 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
-5554

query I rowsort
SELECT ALL + + 82 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f318fd9dac2de7af4b82cc7574bbca2c

onlyif mysql # aggregate syntax: 
query I rowsort label-1197
SELECT DISTINCT - SUM( DISTINCT 93 ) FROM tab1
----
-93

skipif mysql # not compatible
query I rowsort label-1197
SELECT DISTINCT - SUM ( DISTINCT 93 ) FROM tab1
----
-93

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1198
SELECT CAST( - SUM( + - col0 ) AS SIGNED ) col0 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1198
SELECT CAST ( - SUM ( + - col0 ) AS INTEGER ) col0 FROM tab0 AS cor0
----
199

onlyif mysql # DIV for integer division: 
query I rowsort label-1199
SELECT ( ( 57 ) ) DIV + - 84 * - col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1199
SELECT ( ( 57 ) ) / + - 84 * - col0 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1200
SELECT - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 + + - 89 IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1200
SELECT - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT col2 + + - 89 IS NULL
----
NULL
NULL
NULL

query II rowsort
SELECT ALL 9 AS col1, col1 FROM tab1
----
9
14
9
47
9
5

query I rowsort
SELECT ALL + ( + - col1 ) AS col0 FROM tab1
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-1203
SELECT ALL + COUNT( * ) * - 17 AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

skipif mysql # not compatible
query I rowsort label-1203
SELECT ALL + COUNT ( * ) * - 17 AS col2 FROM tab0 WHERE NOT NULL > NULL
----
0

query I rowsort
SELECT - col1 * + 58 FROM tab0
----
-1218
-4698
-58

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col2 * 11 * - 20 + - 3 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1206
SELECT CAST( - col2 AS SIGNED ) * col0 FROM tab0
----
-705
-870
-9603

skipif mysql # not compatible
query I rowsort label-1206
SELECT CAST ( - col2 AS INTEGER ) * col0 FROM tab0
----
-705
-870
-9603

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + col1 * - 10 * + col1 + + + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1208
SELECT DISTINCT - SUM( + 72 ) AS col0 FROM tab1
----
-216

skipif mysql # not compatible
query I rowsort label-1208
SELECT DISTINCT - SUM ( + 72 ) AS col0 FROM tab1
----
-216

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1210
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + CAST( + col2 AS SIGNED ) * + col2, CAST( NULL AS SIGNED ), - 6 / CAST( - - col2 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-1210
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) IN ( + CAST ( + col2 AS INTEGER ) * + col2, CAST ( NULL AS INTEGER ), - 6 / CAST ( - - col2 AS INTEGER ) )
----

query I rowsort
SELECT - - 93 + - 1 AS col0 FROM tab0 AS cor0
----
92
92
92

query I rowsort
SELECT - col1 * + col0 + col2 AS col0 FROM tab1 AS cor0
----
-366
-4209
-618

query I rowsort
SELECT + col2 * - + 55 + 71 FROM tab0 AS cor0
----
-2514
-479
-5374

onlyif mysql # DIV for integer division: 
query I rowsort label-1214
SELECT - col1 + - ( col2 ) DIV col0 + + col1 * + col2 FROM tab1
----
1329
290
3149

skipif mysql # not compatible
query I rowsort label-1214
SELECT - col1 + - ( col2 ) / col0 + + col1 * + col2 FROM tab1
----
1329
290
3149

onlyif mysql # aggregate syntax: 
query I rowsort label-1215
SELECT 83 + SUM( ALL + ( - ( col0 ) ) ) + + + COUNT( * ) + MIN( + 62 ) FROM tab0
----
-51

skipif mysql # not compatible
query I rowsort label-1215
SELECT 83 + SUM ( ALL + ( - ( col0 ) ) ) + + + COUNT ( * ) + MIN ( + 62 ) FROM tab0
----
-51

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( NULL ) BETWEEN col0 * 72 + + + col1 AND NULL
----

query I rowsort
SELECT ALL - + 96 + - - col2 AS col2 FROM tab2 AS cor0
----
-38
-56
-73

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

query I rowsort
SELECT DISTINCT - col1 + - + 86 + 25 FROM tab0 AS cor0
----
-142
-62
-82

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1221
SELECT col0 - + 98 + - 93 DIV + 4 AS col0 FROM tab2 AS cor0
----
-46
-57
-75

skipif mysql # not compatible
query I rowsort label-1221
SELECT col0 - + 98 + - 93 / + 4 AS col0 FROM tab2 AS cor0
----
-46
-57
-75

query I rowsort
SELECT - + 29 - col2 FROM tab0 AS cor0
----
-128
-39
-76

query II rowsort
SELECT ALL - 54 * - col0 AS col1, + col2 * + col0 FROM tab0 WHERE NULL <= - col0 + - - col1 - 42 * - - col0 * ( col2 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1224
SELECT DISTINCT col0 DIV + 15 + - + 90 - - - col0 AS col1 FROM tab1
----
-138
-170
-175

skipif mysql # not compatible
query I rowsort label-1224
SELECT DISTINCT col0 / + 15 + - + 90 - - - col0 AS col1 FROM tab1
----
-138
-170
-175

query I rowsort
SELECT ALL + 48 * + - 56 FROM tab0
----
-2688
-2688
-2688

onlyif mysql # aggregate syntax: 
query I rowsort label-1226
SELECT ALL + 62 - COUNT( * ) AS col2 FROM tab0
----
59

skipif mysql # not compatible
query I rowsort label-1226
SELECT ALL + 62 - COUNT ( * ) AS col2 FROM tab0
----
59

query I rowsort
SELECT + col2 * + + 98 * - col2 + col2 - + + 0 AS col1 FROM tab1
----
-341079
-453084
-903072

onlyif mysql # aggregate syntax: 
query I rowsort label-1228
SELECT ALL 10 - + COUNT( 3 ) + 95 + COUNT( * ) * + COUNT( * ) AS col0 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-1228
SELECT ALL 10 - + COUNT ( 3 ) + 95 + COUNT ( * ) * + COUNT ( * ) AS col0 FROM tab0
----
111

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

query I rowsort
SELECT DISTINCT + col0 * 74 * 46 AS col0 FROM tab1
----
173604
289340
309764

query I rowsort
SELECT DISTINCT + col2 * + + col0 * - col2 * col0 + - col0 FROM tab0 AS cor0
----
-497040
-756987
-92217706

onlyif mysql # aggregate syntax: 
query II rowsort label-1232
SELECT ALL COUNT( * ) col2, - COUNT( * ) FROM tab1 AS cor0
----
3
-3

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col0 + + + col2 NOT BETWEEN + 55 AND + + col1
----

query I rowsort
SELECT - + ( col1 ) * - 37 + + + 46 - 70 * 17 + col2 + + col0 FROM tab0 AS cor0
----
-270
-911
1915

query I rowsort
SELECT ALL + 65 * + - col0 FROM tab1 AS cor0
----
-3315
-5525
-5915

query III rowsort
SELECT col0 AS col1, - 93 + - - col0 + + col2 AS col0, - 81 FROM tab0
----
9 values hashing to 10f76d583d958835a9e07cd1fa707d3a

onlyif mysql # DIV for integer division: 
query I rowsort label-1237
SELECT ALL - ( col2 ) DIV - 1 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-1237
SELECT ALL - ( col2 ) / - 1 FROM tab0 AS cor0
----
10
47
99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IN ( 41, 57 + col2 )
----

query II rowsort
SELECT + col0, 32 AS col2 FROM tab2 AS cor0
----
46
32
64
32
75
32

query II rowsort
SELECT DISTINCT - + ( 80 ), - col1 + + col2 AS col0 FROM tab2 AS cor0
----
-80
-28
-80
-37
-80
-9

query I rowsort
SELECT + - ( - ( - col2 ) ) AS col1 FROM tab0 AS cor0
----
-10
-47
-99

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - col0 IS NOT NULL
----

query II rowsort
SELECT ALL + col0 AS col2, - col2 * - col0 FROM tab1 AS cor0
----
51
4896
85
5015
91
6188

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

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

onlyif mysql # DIV for integer division: 
query II rowsort label-1245
SELECT + 95 DIV col0, - col1 AS col0 FROM tab1
----
1
-14
1
-47
1
-5

skipif mysql # not compatible
query II rowsort label-1245
SELECT + 95 / col0, - col1 AS col0 FROM tab1
----
1
-14
1
-47
1
-5

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 29 * + + 16 col1, col1 col1 FROM tab2
----
464
51
464
67
464
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1248
SELECT MIN( + + ( - col0 ) ) + - COUNT( ALL 67 ) AS col0 FROM tab0 WHERE NOT - + col1 / + - 62 * + - 81 * - col1 * + col0 * col1 <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1248
SELECT MIN ( + + ( - col0 ) ) + - COUNT ( ALL 67 ) AS col0 FROM tab0 WHERE NOT - + col1 / + - 62 * + - 81 * - col1 * + col0 * col1 <= NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1249
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND CAST( NULL AS SIGNED ) * + - col0 * ( - - 52 ) * + 51 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-1249
SELECT * FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL AND CAST ( NULL AS INTEGER ) * + - col0 * ( - - 52 ) * + 51 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 51 + - - col2 * col0 * - col1 AS col2 FROM tab1 AS cor0
----
-25024
-290785
-68493

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

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1254
SELECT + CAST( - col0 AS SIGNED ) * - col0 + - col0 - + + col1 * col1 FROM tab0
----
-6351
7041
9311

skipif mysql # not compatible
query I rowsort label-1254
SELECT + CAST ( - col0 AS INTEGER ) * - col0 + - col0 - + + col1 * col1 FROM tab0
----
-6351
7041
9311

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

query I rowsort
SELECT 52 + - 32 FROM tab1
----
20
20
20

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1258
SELECT 53 + + + COUNT( * ) col2 FROM tab0 AS cor0
----
56

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1258
SELECT 53 + + + COUNT ( * ) col2 FROM tab0 AS cor0
----
56

query I rowsort
SELECT + col0 * - ( + + col1 ) * + 93 + col1 FROM tab2 AS cor0
----
-218127
-458227
-467258

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

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

query II rowsort
SELECT col2 + ( + 63 ) AS col2, col2 AS col0 FROM tab2 AS cor0
----
103
40
121
58
86
23

onlyif mysql # aggregate syntax: 
query I rowsort label-1262
SELECT ALL COUNT( * ) * 99 col0 FROM tab2 AS cor0
----
297

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1262
SELECT ALL COUNT ( * ) * 99 col0 FROM tab2 AS cor0
----
297

query I rowsort
SELECT ALL 25 * - + 47 + col1 FROM tab1 AS cor0
----
-1128
-1161
-1170

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

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE + 51 = col0
----

query I rowsort
SELECT ALL col0 - col0 + - 18 * - - col1 AS col1 FROM tab2
----
-1206
-1386
-918

onlyif mysql # aggregate syntax: 
query I rowsort label-1267
SELECT + COUNT( DISTINCT ( 77 ) ) FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-1267
SELECT + COUNT ( DISTINCT ( 77 ) ) FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1268
SELECT - 7 - + COUNT( * ) AS col1 FROM tab2
----
-10

skipif mysql # not compatible
query I rowsort label-1268
SELECT - 7 - + COUNT ( * ) AS col1 FROM tab2
----
-10

query I rowsort
SELECT col0 * 59 * 47 FROM tab1
----
141423
235705
252343

query II rowsort
SELECT ALL + col2 * + col1 AS col0, + col0 AS col2 FROM tab2
----
1173
46
3080
64
3886
75

query III rowsort
SELECT * FROM tab0 WHERE NULL IS NOT NULL AND + + col0 + + + col0 > - 27 / + 81 * - col0 + + 68
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1272
SELECT DISTINCT col1 DIV CAST( - 77 AS SIGNED ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1272
SELECT DISTINCT col1 / CAST ( - 77 AS INTEGER ) FROM tab1 AS cor0
----
0

query II rowsort
SELECT - ( col1 ) AS col2, 32 * + 36 FROM tab2 cor0
----
-51
1152
-67
1152
-77
1152

query I rowsort
SELECT DISTINCT col2 * + col0 - - + col0 FROM tab0 AS cor0
----
720
957
9700

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1275
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - 76 * + col0 / + CAST( NULL AS DECIMAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1275
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col2 / - 76 * + col0 / + CAST ( NULL AS REAL ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1276
SELECT ALL + 2 + + 21 * CAST( NULL AS SIGNED ) - + - 47 * + 97 * + col1 + - col0 AS col2, 84 AS col2 FROM tab2 AS cor0 WHERE - 72 <> 69
----
NULL
84
NULL
84
NULL
84

skipif mysql # not compatible
query II rowsort label-1276
SELECT ALL + 2 + + 21 * CAST ( NULL AS INTEGER ) - + - 47 * + 97 * + col1 + - col0 AS col2, 84 AS col2 FROM tab2 AS cor0 WHERE - 72 <> 69
----
NULL
84
NULL
84
NULL
84

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1278
SELECT DISTINCT + 6 DIV + col1 AS col0 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-1278
SELECT DISTINCT + 6 / + col1 AS col0 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1279
SELECT - col0 + - col0 AS col1, - CAST( NULL AS SIGNED ) * - + col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-102
NULL
-170
NULL
-182
NULL

skipif mysql # not compatible
query II rowsort label-1279
SELECT - col0 + - col0 AS col1, - CAST ( NULL AS INTEGER ) * - + col2 FROM tab1 cor0 WHERE NOT NULL IS NOT NULL
----
-102
NULL
-170
NULL
-182
NULL

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

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

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

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

query I rowsort
SELECT ALL 35 + - ( - + col1 ) FROM tab2 AS cor0
----
102
112
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1283
SELECT ALL - 68 * - - COUNT( * ) FROM tab1
----
-204

skipif mysql # not compatible
query I rowsort label-1283
SELECT ALL - 68 * - - COUNT ( * ) FROM tab1
----
-204

onlyif mysql # aggregate syntax: 
query I rowsort label-1284
SELECT 22 * COUNT( * ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-1284
SELECT 22 * COUNT ( * ) FROM tab0
----
66

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1286
SELECT col0 DIV + 15 FROM tab0
----
1
5
6

skipif mysql # not compatible
query I rowsort label-1286
SELECT col0 / + 15 FROM tab0
----
1
5
6

query II rowsort
SELECT ALL col2, col2 + col0 AS col0 FROM tab0
----
10
97
47
62
99
196

query II rowsort
SELECT DISTINCT - 88, + col2 + - col0 AS col2 FROM tab0
----
-88
-77
-88
2
-88
32

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

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

query II rowsort
SELECT col1 AS col1, col1 * - - 28 AS col0 FROM tab2
----
51
1428
67
1876
77
2156

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1292
SELECT ALL + COUNT( * ) DIV COUNT( * ) AS col2 FROM tab1 cor0
----
1

skipif mysql # not compatible
query I rowsort label-1292
SELECT ALL + COUNT ( * ) / COUNT ( * ) AS col2 FROM tab1 cor0
----
1

query I rowsort
SELECT DISTINCT col1 + - 66 FROM tab1 cor0
----
-19
-52
-61

query I rowsort
SELECT DISTINCT 14 + + - ( + col0 ) FROM tab0 AS cor0
----
-1
-73
-83

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE NOT + + col0 > col0 * - 6 + - col0
----

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

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

query I rowsort
SELECT ALL 91 FROM tab0 AS cor0 WHERE NULL < ( col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1298
SELECT + CAST( - 85 AS SIGNED ) * - MIN( - + col2 ) AS col2 FROM tab0 AS cor0
----
-8415

skipif mysql # not compatible
query I rowsort label-1298
SELECT + CAST ( - 85 AS INTEGER ) * - MIN ( - + col2 ) AS col2 FROM tab0 AS cor0
----
-8415

query I rowsort
SELECT 93 * col1 - col1 FROM tab2 AS cor0
----
4692
6164
7084

onlyif mysql # DIV for integer division: 
query I rowsort label-1300
SELECT + col2 - + col0 DIV - col1 FROM tab1 AS cor0
----
69
76
99

skipif mysql # not compatible
query I rowsort label-1300
SELECT + col2 - + col0 / - col1 FROM tab1 AS cor0
----
69
76
99

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1302
SELECT + col0 DIV + - col2 - + col1 - col2 + col2 FROM tab2 AS cor0
----
-53
-68
-78

skipif mysql # not compatible
query I rowsort label-1302
SELECT + col0 / + - col2 - + col1 - col2 + col2 FROM tab2 AS cor0
----
-53
-68
-78

query I rowsort
SELECT col2 - col0 + 42 + - + 33 FROM tab0 AS cor0
----
-68
11
41

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

query I rowsort
SELECT DISTINCT - col2 * - col1 FROM tab1 WHERE + col0 IS NOT NULL
----
1344
295
3196

query I rowsort
SELECT ALL 31 * col2 FROM tab2
----
1240
1798
713

query III rowsort
SELECT * FROM tab1 WHERE NOT - 18 <= NULL
----

query II rowsort
SELECT DISTINCT - 18 AS col2, - 1 AS col0 FROM tab0
----
-18
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1309
SELECT CAST( 81 AS SIGNED ) AS col1 FROM tab0
----
81
81
81

skipif mysql # not compatible
query I rowsort label-1309
SELECT CAST ( 81 AS INTEGER ) AS col1 FROM tab0
----
81
81
81

query II rowsort
SELECT + col2 AS col1, - 37 + + col2 AS col0 FROM tab1
----
59
22
68
31
96
59

onlyif mysql # aggregate syntax: 
query I rowsort label-1311
SELECT DISTINCT - - MIN( - 32 ) FROM tab1 AS cor0
----
-32

skipif mysql # not compatible
query I rowsort label-1311
SELECT DISTINCT - - MIN ( - 32 ) FROM tab1 AS cor0
----
-32

query I rowsort
SELECT + + 16 FROM tab0 cor0
----
16
16
16

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1314
SELECT 66 DIV + col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-1314
SELECT 66 / + col2 FROM tab0
----
0
1
6

onlyif mysql # aggregate syntax: 
query I rowsort label-1315
SELECT - 86 + - MIN( + + 38 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-124

skipif mysql # not compatible
query I rowsort label-1315
SELECT - 86 + - MIN ( + + 38 ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-124

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NOT + col1 <= 83 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE NOT + 81 IS NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1318
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 6 ) < - + CAST( + + ( + ( + + col2 ) ) AS SIGNED ) - + - 62 * col2
----

skipif mysql # not compatible
query III rowsort label-1318
SELECT * FROM tab0 AS cor0 WHERE NOT - ( - 6 ) < - + CAST ( + + ( + ( + + col2 ) ) AS INTEGER ) - + - 62 * col2
----

query I rowsort
SELECT - col2 * + + col0 FROM tab0 cor0
----
-705
-870
-9603

query I rowsort
SELECT + - 16 + - col1 + 41 FROM tab1 cor0
----
-22
11
20

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

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

query I rowsort
SELECT + col1 + + - col2 AS col1 FROM tab0 AS cor0
----
-98
11
34

onlyif mysql # DIV for integer division: 
query II rowsort label-1323
SELECT DISTINCT + col0 * + - col0 * 96 AS col0, col0 DIV + + col2 FROM tab2
----
-203136
2
-393216
1
-540000
1

skipif mysql # not compatible
query II rowsort label-1323
SELECT DISTINCT + col0 * + - col0 * 96 AS col0, col0 / + + col2 FROM tab2
----
-203136
2
-393216
1
-540000
1

query I rowsort
SELECT DISTINCT col1 * col0 AS col2 FROM tab1 WHERE NOT + col0 >= - + col1 + + + 11
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1325
SELECT DISTINCT + COUNT( * ) FROM tab2 WHERE + col2 BETWEEN + 72 + - + col1 * - col0 AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-1325
SELECT DISTINCT + COUNT ( * ) FROM tab2 WHERE + col2 BETWEEN + 72 + - + col1 * - col0 AND NULL
----
0

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

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

query I rowsort
SELECT 39 * 96 AS col2 FROM tab1
----
3744
3744
3744

query I rowsort
SELECT col2 * - - col0 * - + ( - + 98 ) / 53 + + 88 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1330
SELECT ALL - MIN( ALL + + col0 ) + + + 1 * COUNT( * ) FROM tab0 AS cor0
----
-12

skipif mysql # not compatible
query I rowsort label-1330
SELECT ALL - MIN ( ALL + + col0 ) + + + 1 * COUNT ( * ) FROM tab0 AS cor0
----
-12

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 cor1 WHERE NOT ( NULL ) > NULL
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab1 cor0 WHERE NOT NULL >= col0
----

query I rowsort
SELECT + 41 + - col0 * + 42 FROM tab0 AS cor0
----
-3613
-4033
-589

onlyif mysql # DIV for integer division: 
query I rowsort label-1334
SELECT DISTINCT + + col0 * - 13 * - col2 * + + col2 + 16 DIV + 53 AS col0 FROM tab1 AS cor0
----
3846505
5470192
6110208

skipif mysql # not compatible
query I rowsort label-1334
SELECT DISTINCT + + col0 * - 13 * - col2 * + + col2 + 16 / + 53 AS col0 FROM tab1 AS cor0
----
3846505
5470192
6110208

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

skipif mysql # not compatible
query I rowsort label-1335
SELECT DISTINCT + - SUM ( + - col0 ) FROM tab2 AS cor0
----
185

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

skipif mysql # not compatible
query I rowsort label-1336
SELECT + MIN ( - - col0 ) AS col2 FROM tab2 AS cor0
----
46

query II rowsort
SELECT DISTINCT - col0 AS col0, 71 * - - 28 FROM tab2 cor0
----
-46
1988
-64
1988
-75
1988

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( ( ( ( - col2 / col1 ) IS NULL ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-1340
SELECT col0 DIV + 39 FROM tab1 AS cor0
----
1
2
2

skipif mysql # not compatible
query I rowsort label-1340
SELECT col0 / + 39 FROM tab1 AS cor0
----
1
2
2

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1341
SELECT COUNT( * ) DIV - 9 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-1341
SELECT COUNT ( * ) / - 9 AS col1 FROM tab1
----
0

query II rowsort
SELECT - 99 * + - col1 * col0, col2 FROM tab0
----
120285
47
180873
10
9603
99

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + + 83 <> - ( 12 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1344
SELECT + CAST( - col2 AS SIGNED ) col2 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1344
SELECT + CAST ( - col2 AS INTEGER ) col2 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1345
SELECT - MIN( ALL + - ( - - col2 ) ) * - - MIN( + col0 ) FROM tab1 AS cor0
----
4896

skipif mysql # not compatible
query I rowsort label-1345
SELECT - MIN ( ALL + - ( - - col2 ) ) * - - MIN ( + col0 ) FROM tab1 AS cor0
----
4896

query I rowsort
SELECT ( - + 44 ) * - + col1 FROM tab2
----
2244
2948
3388

onlyif mysql # DIV for integer division: 
query I rowsort label-1347
SELECT 11 DIV 82 DIV - 75 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1347
SELECT 11 / 82 / - 75 FROM tab1
----
0
0
0

query I rowsort
SELECT 19 * 78 AS col0 FROM tab0
----
1482
1482
1482

onlyif mysql # aggregate syntax: 
query II rowsort label-1349
SELECT ALL SUM( + col0 ), 40 col1 FROM tab1
----
227
40

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1349
SELECT ALL SUM ( + col0 ), 40 col1 FROM tab1
----
227
40

query I rowsort
SELECT + + col2 + + + ( - 10 ) AS col0 FROM tab2 WHERE NULL IS NULL
----
13
30
48

query I rowsort
SELECT col0 AS col2 FROM tab0 WHERE - col0 - col2 IS NOT NULL
----
15
87
97

query I rowsort
SELECT ALL 5 * + 13 FROM tab0
----
65
65
65

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

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

query I rowsort
SELECT 81 AS col2 FROM ( tab0 AS cor0 CROSS JOIN tab0 cor1 )
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

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

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1357
SELECT - COUNT( * ) * - CAST( - - 83 AS SIGNED ) col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1357
SELECT - COUNT ( * ) * - CAST ( - - 83 AS INTEGER ) col0 FROM tab1 AS cor0 WHERE NOT NULL <> NULL
----
0

query I rowsort
SELECT - 6 * + col1 FROM tab2 AS cor0
----
-306
-402
-462

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + col1 + - - 5 + col2 col2 FROM tab0 AS cor0
----
1267
1842
201

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

query II rowsort
SELECT ALL + + 96 AS col2, ( + col0 ) AS col2 FROM tab0 AS cor0
----
96
15
96
87
96
97

query II rowsort
SELECT ALL col0, - col2 * col1 AS col0 FROM tab0
----
15
-3807
87
-210
97
-99

query II rowsort
SELECT 57 AS col2, col2 * + + 26 FROM tab2
----
57
1040
57
1508
57
598

query I rowsort
SELECT col2 * ( 7 ) FROM tab2
----
161
280
406

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col0 col0, 92 FROM tab1
----
51
92
85
92
91
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1367
SELECT DISTINCT + MIN( DISTINCT - col0 ) col0 FROM tab1
----
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1367
SELECT DISTINCT + MIN ( DISTINCT - col0 ) col0 FROM tab1
----
-91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col1, - 20 col0 FROM tab0
----
-1
-20
-21
-20
-81
-20

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( col0 ) > - - col2 / - col2 + - col0
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1371
SELECT col2 AS col0, - ( - col0 ) * - CAST( - col0 AS SIGNED ) FROM tab1 cor0
----
59
7225
68
8281
96
2601

skipif mysql # not compatible
query II rowsort label-1371
SELECT col2 AS col0, - ( - col0 ) * - CAST ( - col0 AS INTEGER ) FROM tab1 cor0
----
59
7225
68
8281
96
2601

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 34 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col0, col0 FROM tab2 AS cor0
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1374
SELECT + + COUNT( * ) * - - 32 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1374
SELECT + + COUNT ( * ) * - - 32 FROM tab0 AS cor0
----
96

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

query III rowsort
SELECT * FROM tab1 WHERE NOT - 51 + + col0 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1377
SELECT ALL + COUNT( - - ( - 17 ) ) + - - MIN( + col0 ) * - + CAST( 22 AS SIGNED ) FROM tab2 AS cor0
----
-1009

skipif mysql # not compatible
query I rowsort label-1377
SELECT ALL + COUNT ( - - ( - 17 ) ) + - - MIN ( + col0 ) * - + CAST ( 22 AS INTEGER ) FROM tab2 AS cor0
----
-1009

query I rowsort
SELECT DISTINCT + col2 * - col2 * + - col0 + - col1 * - 49 FROM tab1 AS cor0
----
296130
423087
470702

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

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

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

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

query II rowsort
SELECT ALL - col1 + - col1 + + col1 AS col0, - 0 AS col1 FROM tab2 cor0
----
-51
0
-67
0
-77
0

query I rowsort
SELECT DISTINCT + col1 + - 5 AS col2 FROM tab2 AS cor0
----
46
62
72

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

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

skipif mysql # not compatible
query II rowsort label-1384
SELECT DISTINCT COUNT ( * ) AS col1, COUNT ( * ) + + 17 AS col1 FROM tab1
----
3
20

query I rowsort
SELECT 81 FROM tab1 WHERE ( NOT 87 IS NOT NULL )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col2 col1, - 56 AS col1 FROM tab2
----
23
-56
40
-56
58
-56

query I rowsort
SELECT + 82 * + col2 FROM tab1
----
4838
5576
7872

onlyif mysql # aggregate syntax: 
query I rowsort label-1388
SELECT DISTINCT - ( + MIN( ALL - 48 ) ) FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-1388
SELECT DISTINCT - ( + MIN ( ALL - 48 ) ) FROM tab2
----
48

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

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1391
SELECT - 67 + - 79 - + - ( + + col2 ) + + - col0 * + CAST( NULL AS SIGNED ) / + col0 / - + 6 * + col1 + - col2 * col1 AS col0 FROM tab2 AS cor0 WHERE + col0 = col1 * 57
----

skipif mysql # not compatible
query I rowsort label-1391
SELECT - 67 + - 79 - + - ( + + col2 ) + + - col0 * + CAST ( NULL AS INTEGER ) / + col0 / - + 6 * + col1 + - col2 * col1 AS col0 FROM tab2 AS cor0 WHERE + col0 = col1 * 57
----

query I rowsort
SELECT ALL + + ( col1 ) * + 10 AS col0 FROM tab2 AS cor0
----
510
670
770

query I rowsort
SELECT DISTINCT + 77 + + 16 * - + col1 * + col1 AS col2 FROM tab2 cor0
----
-41539
-71747
-94787

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col0 + + - col0 * col1 col0 FROM tab0 AS cor0
----
-1200
-1740
0

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

skipif mysql # not compatible
query I rowsort label-1395
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) <> - col0 + ( - ( 95 ) )
----
0

query I rowsort
SELECT - 2 * - col1 AS col2 FROM tab1
----
10
28
94

query I rowsort
SELECT ALL - col2 + - 64 * 87 AS col2 FROM tab1
----
-5627
-5636
-5664

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1398
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( CAST( CAST( NULL AS SIGNED ) AS SIGNED ) / col0 )
----

skipif mysql # not compatible
query III rowsort label-1398
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) / col0 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1399
SELECT ALL col2 DIV - ( + col2 ) FROM tab1
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-1399
SELECT ALL col2 / - ( + col2 ) FROM tab1
----
-1
-1
-1

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

query I rowsort
SELECT col1 * + col2 + - ( + 80 ) * - 89 FROM tab1 WHERE - ( 37 ) IS NOT NULL
----
10316
7415
8464

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1402
SELECT MAX( - col0 ) + + COUNT( ALL + col1 ) FROM tab0 WHERE NOT - CAST( NULL AS SIGNED ) IS NOT NULL
----
-12

skipif mysql # not compatible
query I rowsort label-1402
SELECT MAX ( - col0 ) + + COUNT ( ALL + col1 ) FROM tab0 WHERE NOT - CAST ( NULL AS INTEGER ) IS NOT NULL
----
-12

query I rowsort
SELECT ALL col1 FROM tab0 WHERE NOT NULL = col0 + - ( ( col2 ) )
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1405
SELECT DISTINCT MIN( DISTINCT + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1406
SELECT ALL CAST( NULL AS SIGNED ) * col0 AS col2 FROM tab0 WHERE NOT ( - CAST( NULL AS SIGNED ) * col1 ) = - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-1406
SELECT ALL CAST ( NULL AS INTEGER ) * col0 AS col2 FROM tab0 WHERE NOT ( - CAST ( NULL AS INTEGER ) * col1 ) = - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT 11 + - col2 FROM tab1
----
-48
-57
-85

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

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

query I rowsort
SELECT ( 69 ) + - col0 AS col0 FROM tab0
----
-18
-28
54

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1410
SELECT CAST( NULL AS SIGNED ) + COUNT( col1 ) FROM tab1
----
NULL

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

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

query I rowsort
SELECT + 66 AS col2 FROM tab2 WHERE NOT 79 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1413
SELECT COUNT( DISTINCT col0 ) * + 73 - 76 FROM tab2
----
143

skipif mysql # not compatible
query I rowsort label-1413
SELECT COUNT ( DISTINCT col0 ) * + 73 - 76 FROM tab2
----
143

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

query I rowsort
SELECT col0 * 55 + col0 AS col0 FROM tab1
----
2856
4760
5096

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 22 col1 FROM tab2
----
-22
-22
-22

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col1 + + col2 col2 FROM tab2
----
117
125
74

query I rowsort
SELECT DISTINCT - col0 + 74 * - 9 AS col2 FROM tab2
----
-712
-730
-741

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

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) <> 7 / 24
----

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

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1422
SELECT - col0 + CAST ( NULL AS INTEGER ) col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 70 FROM tab1 WHERE NULL BETWEEN ( + col0 ) / 35 AND ( col1 )
----

query I rowsort
SELECT DISTINCT 85 - 29 FROM tab1
----
56

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1425
SELECT DISTINCT CAST( NULL AS SIGNED ) * + ( - 39 * + col1 ) AS col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

skipif mysql # not compatible
query I rowsort label-1425
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + ( - 39 * + col1 ) AS col0 FROM tab0 WHERE NULL BETWEEN ( NULL ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1426
SELECT - col2 AS col0 FROM tab2 WHERE NOT - CAST( col2 AS SIGNED ) + - 68 >= + 8
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-1426
SELECT - col2 AS col0 FROM tab2 WHERE NOT - CAST ( col2 AS INTEGER ) + - 68 >= + 8
----
-23
-40
-58

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

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

query I rowsort
SELECT ALL + 76 FROM tab1 WHERE ( NULL ) >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1429
SELECT MIN( ALL + col2 ) + - 97 FROM tab1
----
-38

skipif mysql # not compatible
query I rowsort label-1429
SELECT MIN ( ALL + col2 ) + - 97 FROM tab1
----
-38

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - ( col2 ) = col0 - - col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( - col1 ) >= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col1 * - 98 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1434
SELECT ALL + col1 * + ( col0 ) + + CAST( + 87 + 69 DIV 92 AS SIGNED ) AS col0 FROM tab0
----
1302
184
1914

skipif mysql # not compatible
query I rowsort label-1434
SELECT ALL + col1 * + ( col0 ) + + CAST ( + 87 + 69 / 92 AS INTEGER ) AS col0 FROM tab0
----
1302
184
1914

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 27 IN ( + 49 )
----

query I rowsort
SELECT ALL 7 * - 20 AS col1 FROM tab0 cor0
----
-140
-140
-140

onlyif mysql # DIV for integer division: 
query I rowsort label-1437
SELECT ALL col0 DIV 67 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1437
SELECT ALL col0 / 67 FROM tab2 AS cor0
----
0
0
1

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 15 * 96 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1439
SELECT MAX( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-1439
SELECT MAX ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + 43 FROM tab1 AS cor0
----
48
57
90

onlyif mysql # aggregate syntax: 
query I rowsort label-1441
SELECT DISTINCT ( 74 ) - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
65

skipif mysql # not compatible
query I rowsort label-1441
SELECT DISTINCT ( 74 ) - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-1442
SELECT ALL + MAX( 22 ) FROM tab0
----
22

skipif mysql # not compatible
query I rowsort label-1442
SELECT ALL + MAX ( 22 ) FROM tab0
----
22

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

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

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

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

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

query I rowsort
SELECT DISTINCT + col1 + col0 FROM tab2 cor0 WHERE NULL < NULL
----

query I rowsort
SELECT DISTINCT - col1 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

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

query I rowsort
SELECT ALL + 54 + 32 AS col1 FROM tab2 AS cor0
----
86
86
86

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - 2 = - col0 * + col0
----

query I rowsort
SELECT ALL + 74 + 72 FROM tab0 AS cor0
----
146
146
146

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

query I rowsort
SELECT DISTINCT - - 35 * col1 + - col1 AS col2 FROM tab1 AS cor0
----
1598
170
476

query I rowsort
SELECT ALL col0 * + ( - 83 ) FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 70 - col1 + col0 col1 FROM tab0
----
136
166
4

query I rowsort
SELECT DISTINCT col2 - + col1 + col2 FROM tab2
----
-5
3
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1457
SELECT COUNT( * ) DIV + - 85 - MAX( ALL 92 ) AS col1 FROM tab1
----
-92

skipif mysql # not compatible
query I rowsort label-1457
SELECT COUNT ( * ) / + - 85 - MAX ( ALL 92 ) AS col1 FROM tab1
----
-92

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col1 >= + col0 * - 70
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

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

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

query I rowsort
SELECT ALL AVG ( DISTINCT + col0 ) AS col2 FROM tab2 WHERE NOT 12 / 74 = NULL
----
NULL

query I rowsort
SELECT - ( + ( - col1 ) ) + + 76 FROM tab2
----
127
143
153

onlyif mysql # aggregate syntax: 
query I rowsort label-1462
SELECT - MAX( ALL - 74 ) + + 28 FROM tab0 cor0
----
102

skipif mysql # not compatible
query I rowsort label-1462
SELECT - MAX ( ALL - 74 ) + + 28 FROM tab0 cor0
----
102

query I rowsort
SELECT ALL - - ( - - 86 ) FROM tab0 AS cor0
----
86
86
86

onlyif mysql # aggregate syntax: 
query I rowsort label-1464
SELECT + COUNT( ALL col1 ) * + 83 FROM tab2 AS cor0
----
249

skipif mysql # not compatible
query I rowsort label-1464
SELECT + COUNT ( ALL col1 ) * + 83 FROM tab2 AS cor0
----
249

query I rowsort
SELECT DISTINCT + col1 - - col1 * 65 FROM tab1 AS cor0
----
3102
330
924

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1467
SELECT 57 DIV col1 AS col0 FROM tab0
----
0
2
57

skipif mysql # not compatible
query I rowsort label-1467
SELECT 57 / col1 AS col0 FROM tab0
----
0
2
57

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

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

query I rowsort
SELECT col1 * col2 + - - 16 * 1 FROM tab2 AS cor0
----
1189
3096
3902

query II rowsort
SELECT ALL + + col2 AS col1, 35 AS col0 FROM tab2 AS cor0
----
23
35
40
35
58
35

onlyif mysql # aggregate syntax: 
query I rowsort label-1471
SELECT 30 * COUNT( * ) FROM tab2 AS cor0
----
90

skipif mysql # not compatible
query I rowsort label-1471
SELECT 30 * COUNT ( * ) FROM tab2 AS cor0
----
90

onlyif mysql # DIV for integer division: 
query I rowsort label-1472
SELECT DISTINCT col0 DIV - 72 - col1 FROM tab2 AS cor0
----
-51
-68
-77

skipif mysql # not compatible
query I rowsort label-1472
SELECT DISTINCT col0 / - 72 - col1 FROM tab2 AS cor0
----
-51
-68
-77

query I rowsort
SELECT ALL + col2 AS col2 FROM tab2 AS cor0 WHERE NULL >= ( NULL )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-1474
SELECT - 66, SUM( + col1 ) AS col1 FROM tab1 cor0
----
-66
66

skipif mysql # not compatible
query II rowsort label-1474
SELECT - 66, SUM ( + col1 ) AS col1 FROM tab1 cor0
----
-66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-1475
SELECT 64 * + + COUNT( * ) col1 FROM tab2 AS cor0
----
192

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1475
SELECT 64 * + + COUNT ( * ) col1 FROM tab2 AS cor0
----
192

onlyif mysql # aggregate syntax: 
query I rowsort label-1476
SELECT - - MIN( ALL - col2 ) * - 30 AS col0 FROM tab1 AS cor0
----
2880

skipif mysql # not compatible
query I rowsort label-1476
SELECT - - MIN ( ALL - col2 ) * - 30 AS col0 FROM tab1 AS cor0
----
2880

query I rowsort
SELECT DISTINCT - - 28 AS col2 FROM tab0 cor0
----
28

onlyif mysql # aggregate syntax: 
query I rowsort label-1478
SELECT - + MIN( - 42 ) * + 36 FROM tab1 cor0
----
1512

skipif mysql # not compatible
query I rowsort label-1478
SELECT - + MIN ( - 42 ) * + 36 FROM tab1 cor0
----
1512

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1480
SELECT + col2 * - CAST( NULL AS SIGNED ) + col1 FROM tab0 WHERE NOT + col0 >= - 49 + + col1
----
NULL

skipif mysql # not compatible
query I rowsort label-1480
SELECT + col2 * - CAST ( NULL AS INTEGER ) + col1 FROM tab0 WHERE NOT + col0 >= - 49 + + col1
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1481
SELECT SUM( CAST( col0 AS SIGNED ) ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-1481
SELECT SUM ( CAST ( col0 AS INTEGER ) ) AS col2 FROM tab2
----
185

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-1482
SELECT - COUNT( ALL 9 ) FROM tab2 WHERE NOT NULL <> ( CAST( NULL AS SIGNED ) ) + CAST( NULL AS DECIMAL ) * - 4
----
0

skipif mysql # not compatible
query I rowsort label-1482
SELECT - COUNT ( ALL 9 ) FROM tab2 WHERE NOT NULL <> ( CAST ( NULL AS INTEGER ) ) + CAST ( NULL AS REAL ) * - 4
----
0

query I rowsort
SELECT DISTINCT + 90 AS col2 FROM tab2 WHERE - col1 + - col2 NOT BETWEEN col1 / - col2 AND NULL
----
90

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

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

query I rowsort
SELECT DISTINCT + col2 + - col1 AS col1 FROM tab1 WHERE ( + col0 ) * + col2 <= col0
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1486
SELECT ALL + 32 / - col1 + - - col0 col2 FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-1487
SELECT DISTINCT + - 46 * + COUNT( * ) FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-1487
SELECT DISTINCT + - 46 * + COUNT ( * ) FROM tab2 AS cor0
----
-138

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1488
SELECT * FROM tab0 AS cor0 WHERE col0 - + CAST( 92 AS DECIMAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1488
SELECT * FROM tab0 AS cor0 WHERE col0 - + CAST ( 92 AS REAL ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-1489
SELECT + MIN( + + 51 ) FROM tab2 cor0
----
51

skipif mysql # not compatible
query I rowsort label-1489
SELECT + MIN ( + + 51 ) FROM tab2 cor0
----
51

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

query I rowsort
SELECT - - 63 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c3eea92c46f2c49716f386a58b575025

onlyif mysql # DIV for integer division: 
query I rowsort label-1492
SELECT ALL col2 DIV col0 * col0 FROM tab0
----
0
45
97

skipif mysql # not compatible
query I rowsort label-1492
SELECT ALL col2 / col0 * col0 FROM tab0
----
0
45
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1493
SELECT ALL 45 * + - col2 + col2 + + - col0 + - - CAST( + col2 AS SIGNED ) FROM tab1 AS cor0
----
-2622
-3015
-4179

skipif mysql # not compatible
query I rowsort label-1493
SELECT ALL 45 * + - col2 + col2 + + - col0 + - - CAST ( + col2 AS INTEGER ) FROM tab1 AS cor0
----
-2622
-3015
-4179

query II rowsort
SELECT - col1 * - col2 + - - 53 AS col1, 20 AS col0 FROM tab2 AS cor0
----
1226
20
3133
20
3939
20

query I rowsort
SELECT ALL col2 + - + 51 FROM tab0 AS cor0
----
-4
-41
48

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 * col2 <> ( col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - + col2 * col0 + + ( ( col2 ) ) * col1 FROM tab0 AS cor0
----
-660
-9504
3102

query I rowsort
SELECT - ( - 73 ) + + 36 FROM tab2 AS cor0
----
109
109
109

query I rowsort
SELECT col2 + ( 64 ) AS col1 FROM tab2 WHERE 67 IN ( 57 / + - col1 + + col0 )
----

query I rowsort
SELECT ALL 37 - + col1 FROM tab0
----
-44
16
36

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 25 col1 FROM tab0 WHERE ( NULL ) >= col2 * - col0
----

query I rowsort
SELECT - 67 * + ( col1 ) FROM tab2 WHERE NULL NOT IN ( + col1 + + 47 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1503
SELECT DISTINCT 21 - - - MAX( - col0 ) AS col2 FROM tab2
----
67

skipif mysql # not compatible
query I rowsort label-1503
SELECT DISTINCT 21 - - - MAX ( - col0 ) AS col2 FROM tab2
----
67

query I rowsort
SELECT col2 * - + col2 - + col1 AS col1 FROM tab0
----
-121
-2290
-9802

onlyif mysql # aggregate syntax: 
query I rowsort label-1505
SELECT DISTINCT MAX( DISTINCT + 18 ) FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-1505
SELECT DISTINCT MAX ( DISTINCT + 18 ) FROM tab0
----
18

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

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

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

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

query I rowsort
SELECT - col0 + 70 AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT ( NULL ) NOT BETWEEN ( 33 ) AND - - col2 * + ( - col1 ) + - col0 / - 40 )
----

query I rowsort
SELECT + 86 AS col0 FROM tab0 cor0 WHERE NOT + col2 * - + col0 <> + col0
----

query I rowsort
SELECT ALL + ( + 2 ) AS col1 FROM tab1 AS cor0
----
2
2
2

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

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

query I rowsort
SELECT - + col2 * + + col2 * + ( + 56 ) AS col0 FROM tab1 AS cor0
----
-194936
-258944
-516096

query I rowsort
SELECT + 34 * + - col0 + - 63 FROM tab0 cor0
----
-3021
-3361
-573

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

query I rowsort
SELECT DISTINCT 28 * - + col0 AS col1 FROM tab2
----
-1288
-1792
-2100

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1516
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, - ( col0 ) DIV + 55 AS col2 FROM tab2
----
NULL
-1
NULL
-1
NULL
0

skipif mysql # not compatible
query II rowsort label-1516
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, - ( col0 ) / + 55 AS col2 FROM tab2
----
NULL
-1
NULL
-1
NULL
0

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

skipif mysql # not compatible
query I rowsort label-1517
SELECT DISTINCT COUNT ( ALL + 38 ) FROM tab1
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1518
SELECT COUNT( DISTINCT 51 ) DIV + + 2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1518
SELECT COUNT ( DISTINCT 51 ) / + + 2 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1519
SELECT + CAST( + 6 AS SIGNED ) AS col2 FROM tab0
----
6
6
6

skipif mysql # not compatible
query I rowsort label-1519
SELECT + CAST ( + 6 AS INTEGER ) AS col2 FROM tab0
----
6
6
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 21 col1, col0 + col0 FROM tab2
----
-21
128
-21
150
-21
92

onlyif mysql # aggregate syntax: 
query I rowsort label-1521
SELECT SUM( 20 ) FROM tab2 WHERE NOT - ( 73 ) IN ( ( + 51 ) * - + 2 * + + 36 * - 73 )
----
60

skipif mysql # not compatible
query I rowsort label-1521
SELECT SUM ( 20 ) FROM tab2 WHERE NOT - ( 73 ) IN ( ( + 51 ) * - + 2 * + + 36 * - 73 )
----
60

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col2 col1, + 43 FROM tab0 AS cor0
----
10
43
47
43
99
43

query II rowsort
SELECT ALL - - 66, 91 AS col1 FROM tab1 cor0
----
66
91
66
91
66
91

query I rowsort
SELECT + 82 AS col2 FROM tab2 AS cor0 WHERE col0 BETWEEN - 47 AND ( col0 )
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1526
SELECT + COUNT( * ) col2 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1526
SELECT + COUNT ( * ) col2 FROM tab2, tab1 AS cor0
----
9

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 82 IS NULL
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1529
SELECT 65 * - - ( ( - ( - COUNT( * ) ) ) ) FROM tab2
----
195

skipif mysql # not compatible
query I rowsort label-1529
SELECT 65 * - - ( ( - ( - COUNT ( * ) ) ) ) FROM tab2
----
195

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1530
SELECT + CAST ( NULL AS INTEGER ) / + 3 col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-1531
SELECT DISTINCT - ( - MIN( ALL - + 91 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

skipif mysql # not compatible
query I rowsort label-1531
SELECT DISTINCT - ( - MIN ( ALL - + 91 ) ) AS col0 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-91

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1534
SELECT + col2 DIV + 43 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1534
SELECT + col2 / + 43 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-1535
SELECT + - col1 DIV - col1 - - - col2 + col1 - + ( + col2 ) + col1 - 77 col2 FROM tab2 AS cor0
----
-2
-20
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1535
SELECT + - col1 / - col1 - - - col2 + col1 - + ( + col2 ) + col1 - 77 col2 FROM tab2 AS cor0
----
-2
-20
-58

query I rowsort
SELECT ALL - 85 + - col2 AS col1 FROM tab0 AS cor0
----
-132
-184
-95

query I rowsort
SELECT - + col1 FROM tab0 AS cor0 WHERE + 36 / - - col0 IS NULL OR NOT NULL IS NOT NULL
----
-1
-21
-81

query I rowsort
SELECT ALL + 21 - + 40 AS col1 FROM tab1
----
-19
-19
-19

onlyif mysql # aggregate syntax: 
query I rowsort label-1539
SELECT DISTINCT - SUM( + + 50 ) - - 42 AS col1 FROM tab0
----
-108

skipif mysql # not compatible
query I rowsort label-1539
SELECT DISTINCT - SUM ( + + 50 ) - - 42 AS col1 FROM tab0
----
-108

query I rowsort
SELECT 41 * - + ( - col1 ) FROM tab2
----
2091
2747
3157

query I rowsort
SELECT DISTINCT - 72 AS col0 FROM tab1 WHERE NOT 84 + col0 IS NOT NULL
----

query I rowsort
SELECT - col2 AS col1 FROM tab2 AS cor0 WHERE NOT - col2 * + ( - col0 ) < + - col1
----
-23
-40
-58

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

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN NULL AND col1 + + 91 + + col1 * col0 / col1 + - col1
----

query III rowsort
SELECT ALL * FROM tab0 WHERE - 22 + + 51 + + - col1 * - - col1 / col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-1546
SELECT ALL - - MAX( DISTINCT 63 ), ( + + SUM( col0 ) ) AS col0 FROM tab2 AS cor0
----
63
185

skipif mysql # not compatible
query II rowsort label-1546
SELECT ALL - - MAX ( DISTINCT 63 ), ( + + SUM ( col0 ) ) AS col0 FROM tab2 AS cor0
----
63
185

onlyif mysql # aggregate syntax: 
query I rowsort label-1547
SELECT + + SUM( 76 ) AS col1 FROM tab1 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-1547
SELECT + + SUM ( 76 ) AS col1 FROM tab1 AS cor0
----
228

query II rowsort
SELECT - 3, - 50 + + + col2 AS col0 FROM tab1 AS cor0
----
-3
18
-3
46
-3
9

onlyif mysql # DIV for integer division: 
query I rowsort label-1549
SELECT - 96 * 65 DIV + col2 + + ( - - col0 ) + - col1 - 51 * + 38 FROM tab1 AS cor0
----
-1963
-1966
-1985

skipif mysql # not compatible
query I rowsort label-1549
SELECT - 96 * 65 / + col2 + + ( - - col0 ) + - col1 - 51 * + 38 FROM tab1 AS cor0
----
-1963
-1966
-1985

query I rowsort
SELECT col0 + 56 AS col2 FROM tab1 AS cor0
----
107
141
147

query III rowsort
SELECT * FROM tab1 WHERE NOT 60 + ( col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1552
SELECT DISTINCT - SUM( ALL 27 ) AS col1 FROM tab2
----
-81

skipif mysql # not compatible
query I rowsort label-1552
SELECT DISTINCT - SUM ( ALL 27 ) AS col1 FROM tab2
----
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-1553
SELECT - MAX( ALL col2 ) FROM tab0 AS cor0 WHERE 9 * - - col0 + - col0 - - col1 IS NOT NULL
----
-99

skipif mysql # not compatible
query I rowsort label-1553
SELECT - MAX ( ALL col2 ) FROM tab0 AS cor0 WHERE 9 * - - col0 + - col0 - - col1 IS NOT NULL
----
-99

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab2 cor1 WHERE ( NULL ) <= NULL
----

query I rowsort
SELECT DISTINCT 81 * col1 + + + col1 * + 80 AS col0 FROM tab2
----
10787
12397
8211

onlyif mysql # aggregate syntax: 
query I rowsort label-1556
SELECT ALL ( + + COUNT( * ) ) * + + ( + 97 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
873

skipif mysql # not compatible
query I rowsort label-1556
SELECT ALL ( + + COUNT ( * ) ) * + + ( + 97 ) FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
873

onlyif mysql # DIV for integer division: 
query I rowsort label-1557
SELECT col1 + + ( col2 ) * col2 DIV - 22 FROM tab0
----
-19
-444
17

skipif mysql # not compatible
query I rowsort label-1557
SELECT col1 + + ( col2 ) * col2 / - 22 FROM tab0
----
-19
-444
17

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

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

query I rowsort
SELECT - + col0 + + + col0 * + ( col0 ) - + + col2 FROM tab2 AS cor0
----
2047
3992
5492

query I rowsort
SELECT ALL - - 76 * + col0 * - - col0 + - ( col2 ) AS col2 FROM tab2 cor0
----
160793
311256
427442

query I rowsort
SELECT DISTINCT 6 AS col2 FROM tab0 AS cor0 WHERE NULL > NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1563
SELECT ALL ( - col0 ) DIV + - 36 + - 12 + + col2 AS col1 FROM tab0
----
0
35
89

skipif mysql # not compatible
query I rowsort label-1563
SELECT ALL ( - col0 ) / + - 36 + - 12 + + col2 AS col1 FROM tab0
----
0
35
89

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1564
SELECT ALL * FROM tab2 WHERE NULL < + col0 * - col1 * - + col0 + + + CAST( NULL AS DECIMAL ) / - col2
----

skipif mysql # not compatible
query III rowsort label-1564
SELECT ALL * FROM tab2 WHERE NULL < + col0 * - col1 * - + col0 + + + CAST ( NULL AS REAL ) / - col2
----

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

query I rowsort
SELECT ALL 84 * 52 FROM tab0
----
4368
4368
4368

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1567
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN col0 AND + col1 + col0 - - 70 / + CAST( NULL AS SIGNED ) AND NOT + col0 + - col0 * col0 * - col0 + col2 + - 37 NOT BETWEEN ( col0 ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-1567
SELECT * FROM tab2 AS cor0 WHERE + col2 NOT BETWEEN col0 AND + col1 + col0 - - 70 / + CAST ( NULL AS INTEGER ) AND NOT + col0 + - col0 * col0 * - col0 + col2 + - 37 NOT BETWEEN ( col0 ) AND NULL
----

query I rowsort
SELECT ALL 71 + col0 FROM tab2 AS cor0 WHERE NOT NULL > NULL
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1570
SELECT COUNT( * ) * 5 AS col0 FROM tab0
----
15

skipif mysql # not compatible
query I rowsort label-1570
SELECT COUNT ( * ) * 5 AS col0 FROM tab0
----
15

query II rowsort
SELECT col2, 2 AS col0 FROM tab0 AS cor0
----
10
2
47
2
99
2

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

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

query I rowsort
SELECT col0 + - col1 + - + col1 * - 33 * - 55 * - col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( - + 99 )
----

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

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

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

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

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

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

query I rowsort
SELECT + col0 * 25 * 28 * col0 AS col0 FROM tab1 AS cor0
----
1820700
5057500
5796700

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1581
SELECT ALL 24 + + + 24 + - ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + 74 AND ( - - col2 / - 64 )
----

skipif mysql # not compatible
query I rowsort label-1581
SELECT ALL 24 + + + 24 + - ( + + col2 ) AS col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + 74 AND ( - - col2 / - 64 )
----

query II rowsort
SELECT - col1 AS col2, + 99 * col1 FROM tab0
----
-1
99
-21
2079
-81
8019

onlyif mysql # aggregate syntax: 
query II rowsort label-1583
SELECT + COUNT( * ), - 50 AS col2 FROM tab0
----
3
-50

skipif mysql # not compatible
query II rowsort label-1583
SELECT + COUNT ( * ), - 50 AS col2 FROM tab0
----
3
-50

onlyif mysql # aggregate syntax: 
query I rowsort label-1584
SELECT - MIN( DISTINCT + + col0 ) AS col1 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-1584
SELECT - MIN ( DISTINCT + + col0 ) AS col1 FROM tab1
----
-51

onlyif mysql # aggregate syntax: 
query I rowsort label-1585
SELECT - COUNT( * ) * - SUM( - - 56 ) AS col2 FROM tab1
----
504

skipif mysql # not compatible
query I rowsort label-1585
SELECT - COUNT ( * ) * - SUM ( - - 56 ) AS col2 FROM tab1
----
504

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

skipif mysql # not compatible
query I rowsort label-1586
SELECT ALL MIN ( ALL - - 2 ) AS col1 FROM tab1
----
2

query II rowsort
SELECT + col0 AS col0, + col0 * + + 81 FROM tab0
----
15
1215
87
7047
97
7857

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1589
SELECT DISTINCT ( + SUM( col1 ) ) * MIN( + col1 ) AS col1 FROM tab2
----
9945

skipif mysql # not compatible
query I rowsort label-1589
SELECT DISTINCT ( + SUM ( col1 ) ) * MIN ( + col1 ) AS col1 FROM tab2
----
9945

onlyif mysql # aggregate syntax: 
query I rowsort label-1590
SELECT ALL COUNT( * ) FROM tab1 WHERE NULL IN ( 11, - col1 ) AND ( NOT + col0 - - col0 BETWEEN - col1 AND ( - ( - + ( - + col1 ) ) * col2 * + - col1 + + + ( - - ( + ( 84 ) ) ) + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-1590
SELECT ALL COUNT ( * ) FROM tab1 WHERE NULL IN ( 11, - col1 ) AND ( NOT + col0 - - col0 BETWEEN - col1 AND ( - ( - + ( - + col1 ) ) * col2 * + - col1 + + + ( - - ( + ( 84 ) ) ) + col2 ) )
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1591
SELECT 50 + + + col2 + col1 + + col1 DIV 8 FROM tab1
----
114
161
170

skipif mysql # not compatible
query I rowsort label-1591
SELECT 50 + + + col2 + col1 + + col1 / 8 FROM tab1
----
114
161
170

onlyif mysql # DIV for integer division: 
query I rowsort label-1592
SELECT DISTINCT - - ( - col0 ) DIV 31 + 20 AS col0 FROM tab1 AS cor0
----
18
19

skipif mysql # not compatible
query I rowsort label-1592
SELECT DISTINCT - - ( - col0 ) / 31 + 20 AS col0 FROM tab1 AS cor0
----
18
19

onlyif mysql # DIV for integer division: 
query I rowsort label-1593
SELECT 36 DIV col0 + ( - 48 ) AS col2 FROM tab0 cor0
----
-46
-48
-48

skipif mysql # not compatible
query I rowsort label-1593
SELECT 36 / col0 + ( - 48 ) AS col2 FROM tab0 cor0
----
-46
-48
-48

query II rowsort
SELECT + col0 * - 79 - - + 20, col0 * - + 99 * + + ( + - 10 ) AS col0 FROM tab0 AS cor0 WHERE - col1 + + col0 + - col1 / + col2 * - col0 IS NOT NULL
----
-1165
14850
-6853
86130
-7643
96030

onlyif mysql # aggregate syntax: 
query I rowsort label-1595
SELECT + MAX( ALL 29 ) AS col0 FROM tab1
----
29

skipif mysql # not compatible
query I rowsort label-1595
SELECT + MAX ( ALL 29 ) AS col0 FROM tab1
----
29

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1597
SELECT - COUNT( * ) * - COUNT( * ) AS col0, - 76 AS col0 FROM tab1
----
9
-76

skipif mysql # not compatible
query II rowsort label-1597
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0, - 76 AS col0 FROM tab1
----
9
-76

query I rowsort
SELECT ALL col0 + - 43 + + col0 AS col1 FROM tab1 AS cor0
----
127
139
59

query I rowsort
SELECT - col2 + + 18 + + + col2 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT + 81 - + col0 AS col1 FROM tab1 AS cor0
----
-10
-4
30

onlyif mysql # DIV for integer division: 
query I rowsort label-1601
SELECT DISTINCT + 60 + + - col2 DIV 85 FROM tab0 AS cor0
----
59
60

skipif mysql # not compatible
query I rowsort label-1601
SELECT DISTINCT + 60 + + - col2 / 85 FROM tab0 AS cor0
----
59
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1602
SELECT ( + + MIN( DISTINCT + 39 ) ) AS col0 FROM tab1
----
39

skipif mysql # not compatible
query I rowsort label-1602
SELECT ( + + MIN ( DISTINCT + 39 ) ) AS col0 FROM tab1
----
39

onlyif mysql # aggregate syntax: 
query I rowsort label-1603
SELECT DISTINCT - 76 * + COUNT( * ) FROM tab2
----
-228

skipif mysql # not compatible
query I rowsort label-1603
SELECT DISTINCT - 76 * + COUNT ( * ) FROM tab2
----
-228

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL BETWEEN + col2 * 27 - + ( ( + col2 ) ) AND ( col0 * + 92 * 96 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL < 89
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT AVG ( DISTINCT + 56 ) col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1607
SELECT DISTINCT + + SUM( - 3 ) AS col1 FROM tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-1607
SELECT DISTINCT + + SUM ( - 3 ) AS col1 FROM tab1 AS cor0
----
-9

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

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

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

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

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

query I rowsort
SELECT ALL col1 + - - 91 + - col1 AS col2 FROM tab0 AS cor0
----
91
91
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1612
SELECT DISTINCT 29 + - MIN( ALL - col2 ) AS col2 FROM tab1 cor0 WHERE - col0 NOT BETWEEN NULL AND - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1612
SELECT DISTINCT 29 + - MIN ( ALL - col2 ) AS col2 FROM tab1 cor0 WHERE - col0 NOT BETWEEN NULL AND - col0
----
NULL

query I rowsort
SELECT - 33 + + col0 FROM tab2 AS cor0
----
13
31
42

query I rowsort
SELECT DISTINCT col0 + + - col1 AS col1 FROM tab1 AS cor0
----
37
44
80

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 NOT BETWEEN - - 36 + col0 AND + + col0
----

query I rowsort
SELECT DISTINCT 29 * - - col0 + + - col1 FROM tab2 WHERE NOT - 62 IS NULL
----
1283
1779
2108

query I rowsort
SELECT - 92 FROM tab0 WHERE NULL NOT BETWEEN + col1 AND ( + + col1 )
----

query I rowsort
SELECT 32 * 33 AS col1 FROM tab0
----
1056
1056
1056

query I rowsort
SELECT DISTINCT - + col1 FROM tab1 WHERE NOT 86 * - col0 * 15 IS NULL
----
-14
-47
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + + col2 ) col1 FROM tab2
----
23
40
58

query I rowsort
SELECT ALL col2 * + + ( + col2 ) + col0 AS col0 FROM tab1 AS cor0
----
3566
4715
9267

query I rowsort
SELECT 60 + - - col1 AS col0 FROM tab0
----
141
61
81

query I rowsort
SELECT + - ( - 84 ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
9 values hashing to cadd876c26338fc58b9297e74fc324d8

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1624
SELECT ALL - COUNT( DISTINCT CAST( + col2 AS SIGNED ) ) - - 97 AS col0 FROM tab0
----
94

skipif mysql # not compatible
query I rowsort label-1624
SELECT ALL - COUNT ( DISTINCT CAST ( + col2 AS INTEGER ) ) - - 97 AS col0 FROM tab0
----
94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1625
SELECT + 71 + COUNT( * ) / + COUNT( * ) + COUNT( * ) * - 45 * + + CAST( - - CAST( NULL AS SIGNED ) AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-1625
SELECT + 71 + COUNT ( * ) / + COUNT ( * ) + COUNT ( * ) * - 45 * + + CAST ( - - CAST ( NULL AS INTEGER ) AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-1626
SELECT ALL - 99 * - col2 DIV - - col2 col2 FROM tab1
----
99
99
99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1626
SELECT ALL - 99 * - col2 / - - col2 col2 FROM tab1
----
99
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 32 * + - col1 col1 FROM tab1 cor0
----
1504
160
448

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1628
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT - + col0 * + - col0 NOT IN ( + - 21 ) OR ( ( NOT col1 >= CAST( NULL AS SIGNED ) * col0 - 83 / col1 ) )
----

skipif mysql # not compatible
query I rowsort label-1628
SELECT - - col2 FROM tab1 AS cor0 WHERE NOT - + col0 * + - col0 NOT IN ( + - 21 ) OR ( ( NOT col1 >= CAST ( NULL AS INTEGER ) * col0 - 83 / col1 ) )
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1631
SELECT ( + - SUM( DISTINCT + 15 ) ) AS col1 FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-1631
SELECT ( + - SUM ( DISTINCT + 15 ) ) AS col1 FROM tab1
----
-15

query I rowsort
SELECT ALL col1 * + - col0 AS col2 FROM tab1
----
-425
-4277
-714

onlyif mysql # aggregate syntax: 
query I rowsort label-1633
SELECT 93 - COUNT( * ) + - COUNT( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
87

skipif mysql # not compatible
query I rowsort label-1633
SELECT 93 - COUNT ( * ) + - COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
87

query I rowsort
SELECT - - 99 AS col1 FROM tab2 cor0
----
99
99
99

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

query II rowsort
SELECT ALL + 55 * col0, - 53 * + - col2 + + ( + - col0 ) AS col2 FROM tab0 AS cor0
----
4785
443
5335
5150
825
2476

onlyif mysql # DIV for integer division: 
query I rowsort label-1637
SELECT + col2 DIV col1 + col0 + - col2 * col2 FROM tab1
----
-3385
-4532
-9159

skipif mysql # not compatible
query I rowsort label-1637
SELECT + col2 / col1 + col0 + - col2 * col2 FROM tab1
----
-3385
-4532
-9159

query I rowsort
SELECT DISTINCT ( col2 ) * 81 FROM tab2
----
1863
3240
4698

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

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

query I rowsort
SELECT col2 + + col2 - 94 AS col1 FROM tab1
----
24
42
98

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

query I rowsort
SELECT ALL + col1 * 12 + - 97 + + 91 * + - col0 * + 77 FROM tab1 cor0
----
-357286
-595632
-637170

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 + 89 + + col2 col2 FROM tab0 AS cor0
----
109
183
287

onlyif mysql # aggregate syntax: 
query I rowsort label-1644
SELECT ALL - 85 + + COUNT( * ) AS col0 FROM tab0 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-1644
SELECT ALL - 85 + + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
-82

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1646
SELECT MIN( DISTINCT + + ( - ( + + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-75

skipif mysql # not compatible
query I rowsort label-1646
SELECT MIN ( DISTINCT + + ( - ( + + col0 ) ) ) AS col0 FROM tab2 AS cor0
----
-75

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1648
SELECT ALL MAX( DISTINCT - ( + col1 ) ) AS col1 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-1648
SELECT ALL MAX ( DISTINCT - ( + col1 ) ) AS col1 FROM tab0
----
-1

query I rowsort
SELECT DISTINCT - col1 * + col0 + ( 52 ) AS col1 FROM tab1
----
-373
-4225
-662

query I rowsort
SELECT + - 64 FROM tab1 AS cor0 WHERE NULL = col2
----

query I rowsort
SELECT ALL + col1 + - 15 + - col2 + col0 * - col0 FROM tab1 AS cor0
----
-2698
-7294
-8317

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1652
SELECT + - SUM( ALL + col1 ) DIV - 57 AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-1652
SELECT + - SUM ( ALL + col1 ) / - 57 AS col1 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1653
SELECT DISTINCT + COUNT( * ) DIV + - 75 + - ( - - COUNT( * ) ) FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-1653
SELECT DISTINCT + COUNT ( * ) / + - 75 + - ( - - COUNT ( * ) ) FROM tab0
----
-3

query I rowsort
SELECT DISTINCT - 36 + - 45 + + col0 + - + col1 FROM tab1 WHERE col1 BETWEEN - col1 AND NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-1655
SELECT + 93, + ( col2 ) DIV + 46 + + 34 AS col1 FROM tab2 AS cor0
----
93
34
93
34
93
35

skipif mysql # not compatible
query II rowsort label-1655
SELECT + 93, + ( col2 ) / + 46 + + 34 AS col1 FROM tab2 AS cor0
----
93
34
93
34
93
35

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1657
SELECT col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NOT - 39 >= - col2
----

skipif mysql # not compatible
query I rowsort label-1657
SELECT col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NOT - 39 >= - col2
----

query I rowsort
SELECT - ( ( + 43 ) ) * - col2 FROM tab2 cor0
----
1720
2494
989

query II rowsort
SELECT - col1 * - col1 + + 28 AS col2, + col0 FROM tab0 AS cor0
----
29
97
469
87
6589
15

onlyif mysql # DIV for integer division: 
query I rowsort label-1660
SELECT - 21 DIV + 72 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-1660
SELECT - 21 / + 72 FROM tab1 AS cor0
----
0
0
0

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

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

query I rowsort
SELECT ALL + col1 * - - 81 FROM tab1
----
1134
3807
405

query I rowsort
SELECT - 51 FROM tab0 WHERE NOT NULL < + col2
----

query I rowsort
SELECT + 79 * + + col2 FROM tab0
----
3713
7821
790

onlyif mysql # DIV for integer division: 
query I rowsort label-1665
SELECT DISTINCT 18 DIV + col0 * col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1665
SELECT DISTINCT 18 / + col0 * col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1666
SELECT ALL + COUNT( DISTINCT - col1 ) * - + SUM( + 62 ) + + 42 FROM tab1
----
-516

skipif mysql # not compatible
query I rowsort label-1666
SELECT ALL + COUNT ( DISTINCT - col1 ) * - + SUM ( + 62 ) + + 42 FROM tab1
----
-516

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + + 60 + + 24 * col2 NOT BETWEEN ( col1 ) AND - col0 * - + ( - 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

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

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

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

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

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

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

query I rowsort
SELECT ALL - col0 * + col1 AS col2 FROM tab1 cor0
----
-425
-4277
-714

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

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

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

query I rowsort
SELECT ALL + 87 * col0 + + col2 FROM tab2 AS cor0
----
4025
5608
6583

query I rowsort
SELECT DISTINCT 92 AS col1 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
92

query I rowsort
SELECT - 11 FROM tab0 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 05cc989122d7724c7abefaba9625ef3d

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

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

query I rowsort
SELECT DISTINCT - 37 + 97 AS col2 FROM tab0 AS cor0
----
60

onlyif mysql # aggregate syntax: 
query I rowsort label-1680
SELECT COUNT( * ) + - 37 AS col2 FROM tab0 AS cor0
----
-34

skipif mysql # not compatible
query I rowsort label-1680
SELECT COUNT ( * ) + - 37 AS col2 FROM tab0 AS cor0
----
-34

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-1681
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + col1 col1, - col1 DIV - - col2 AS col1 FROM tab1 AS cor0
----
NULL
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1681
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + col1 col1, - col1 / - - col2 AS col1 FROM tab1 AS cor0
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-1682
SELECT ALL MAX( + col2 ) FROM tab0 AS cor0 WHERE + ( 90 ) / 52 + 45 >= + 73
----
NULL

skipif mysql # not compatible
query I rowsort label-1682
SELECT ALL MAX ( + col2 ) FROM tab0 AS cor0 WHERE + ( 90 ) / 52 + 45 >= + 73
----
NULL

query I rowsort
SELECT DISTINCT + col0 / col0 FROM tab2 WHERE NULL >= + - ( - - col0 )
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1685
SELECT DISTINCT col1 + col0 DIV + col2 FROM tab2
----
53
68
78

skipif mysql # not compatible
query I rowsort label-1685
SELECT DISTINCT col1 + col0 / + col2 FROM tab2
----
53
68
78

query III rowsort
SELECT ALL * FROM tab1 WHERE + + col0 <= col2
----
51
14
96

query II rowsort
SELECT 67 AS col0, col1 AS col2 FROM tab0
----
67
1
67
21
67
81

query II rowsort
SELECT ALL + col0, 37 FROM tab0
----
15
37
87
37
97
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1689
SELECT CAST( NULL AS SIGNED ) / col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-1689
SELECT CAST ( NULL AS INTEGER ) / col0 AS col2 FROM tab2
----
NULL
NULL
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1691
SELECT ALL - MIN( DISTINCT - 96 ) + + + MAX( + 93 ) col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1691
SELECT ALL - MIN ( DISTINCT - 96 ) + + + MAX ( + 93 ) col2 FROM tab2 WHERE NOT - col1 IS NOT NULL
----
NULL

query I rowsort
SELECT 63 * col0 AS col2 FROM tab0
----
5481
6111
945

query I rowsort
SELECT ALL + col0 - 73 AS col0 FROM tab0
----
-58
14
24

query I rowsort
SELECT - - col0 - - + col0 FROM tab2 cor0
----
128
150
92

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

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

query I rowsort
SELECT DISTINCT col1 + - - 3 * + - col0 FROM tab2 AS cor0
----
-115
-158
-87

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

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1700
SELECT - + SUM( - - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-1700
SELECT - + SUM ( - - col0 ) AS col2 FROM tab2 AS cor0
----
-185

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - - col0 + + 82 col0 FROM tab1 AS cor0
----
2683
7307
8363

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

query I rowsort
SELECT DISTINCT - 3 + - - 22 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
19

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

skipif mysql # not compatible
query II rowsort label-1704
SELECT ALL SUM ( ALL + col1 ) AS col2, COUNT ( * ) FROM tab1 AS cor0
----
66
3

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

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

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

skipif mysql # not compatible
query I rowsort label-1706
SELECT DISTINCT + SUM ( - - col0 ) FROM tab2 AS cor0
----
185

query I rowsort
SELECT 46 * + col0 FROM tab2
----
2116
2944
3450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 97 col0 FROM tab0
----
-97
-97
-97

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1710
SELECT + 63 DIV 25 FROM tab0
----
2
2
2

skipif mysql # not compatible
query I rowsort label-1710
SELECT + 63 / 25 FROM tab0
----
2
2
2

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( - - col2, col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1712
SELECT + MAX( DISTINCT + col2 ) * 22 FROM tab2
----
1276

skipif mysql # not compatible
query I rowsort label-1712
SELECT + MAX ( DISTINCT + col2 ) * 22 FROM tab2
----
1276

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1715
SELECT + - COUNT( * ) * + ( + SUM( DISTINCT - 28 ) ) + SUM( 20 ) FROM tab2 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-1715
SELECT + - COUNT ( * ) * + ( + SUM ( DISTINCT - 28 ) ) + SUM ( 20 ) FROM tab2 AS cor0
----
144

onlyif mysql # aggregate syntax: 
query II rowsort label-1716
SELECT ALL COUNT( DISTINCT + col2 ) + + MAX( ALL - ( + + col0 ) ), + COUNT( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-48
3

skipif mysql # not compatible
query II rowsort label-1716
SELECT ALL COUNT ( DISTINCT + col2 ) + + MAX ( ALL - ( + + col0 ) ), + COUNT ( DISTINCT - col2 ) AS col2 FROM tab1 AS cor0
----
-48
3

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1718
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * - - 37 + + + CAST( - - 53 AS SIGNED ) + + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-1718
SELECT ALL * FROM tab0 AS cor0 WHERE ( + col1 * - - 37 + + + CAST ( - - 53 AS INTEGER ) + + col1 IS NOT NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1720
SELECT ALL - 15 * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col2 * + 22 IS NOT NULL ) )
----
-45

skipif mysql # not compatible
query I rowsort label-1720
SELECT ALL - 15 * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT ( - col2 * + 22 IS NOT NULL ) )
----
-45

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + col0 - + col1 col0, 5 AS col0 FROM tab2 AS cor0
----
-13
5
-5
5
8
5

query I rowsort
SELECT - - col2 - - col1 - - 86 FROM tab2 AS cor0
----
160
203
211

query I rowsort
SELECT 25 * col2 - col0 FROM tab2
----
1375
529
936

query I rowsort
SELECT col0 FROM tab1 WHERE - col1 IS NULL
----

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-1727
SELECT ALL + CAST( NULL AS SIGNED ) * COUNT( * ) AS col1, + 1 AS col2 FROM tab1
----
NULL
1

skipif mysql # not compatible
query II rowsort label-1727
SELECT ALL + CAST ( NULL AS INTEGER ) * COUNT ( * ) AS col1, + 1 AS col2 FROM tab1
----
NULL
1

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1729
SELECT ALL * FROM tab0 WHERE + 66 * + - 44 / 93 = CAST( NULL AS DECIMAL ) * - - col1
----

skipif mysql # not compatible
query III rowsort label-1729
SELECT ALL * FROM tab0 WHERE + 66 * + - 44 / 93 = CAST ( NULL AS REAL ) * - - col1
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1731
SELECT 51 * SUM( + ( + 83 ) ) col1 FROM tab1 cor0
----
12699

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1731
SELECT 51 * SUM ( + ( + 83 ) ) col1 FROM tab1 cor0
----
12699

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 IS NULL
----
15
87
97

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1734
SELECT ALL - col1 DIV 33 FROM tab0 AS cor0
----
-2
0
0

skipif mysql # not compatible
query I rowsort label-1734
SELECT ALL - col1 / 33 FROM tab0 AS cor0
----
-2
0
0

onlyif mysql # DIV for integer division: 
query II rowsort label-1735
SELECT 1 DIV - col1, col1 AS col2 FROM tab0 AS cor0
----
-1
1
0
21
0
81

skipif mysql # not compatible
query II rowsort label-1735
SELECT 1 / - col1, col1 AS col2 FROM tab0 AS cor0
----
-1
1
0
21
0
81

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

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

query I rowsort
SELECT - col0 * 65 + - 2 - - + col0 * - 21 AS col0 FROM tab1 AS cor0
----
-4388
-7312
-7828

query I rowsort
SELECT + col0 AS col2 FROM tab0 AS cor0 WHERE NOT - col2 BETWEEN - col0 + - - 36 AND + 36 * col2
----
15
97

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 50 < NULL
----

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

onlyif mysql # DIV for integer division: 
query I rowsort label-1741
SELECT - 62 DIV + col0 AS col2 FROM tab2 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-1741
SELECT - 62 / + col0 AS col2 FROM tab2 AS cor0
----
-1
0
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-1742
SELECT - - COUNT( col0 ) DIV SUM( ALL col2 ) * + COUNT( col1 ) col0, - 29 AS col2 FROM tab1 AS cor0
----
0
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1742
SELECT - - COUNT ( col0 ) / SUM ( ALL col2 ) * + COUNT ( col1 ) col0, - 29 AS col2 FROM tab1 AS cor0
----
0
-29

query I rowsort
SELECT - + 5 FROM tab2 cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1744
SELECT ALL CAST( col1 AS SIGNED ) AS col1, + CAST( NULL AS SIGNED ) FROM tab0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-1744
SELECT ALL CAST ( col1 AS INTEGER ) AS col1, + CAST ( NULL AS INTEGER ) FROM tab0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-1745
SELECT ALL + MAX( DISTINCT + ( - col0 ) ) FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-1745
SELECT ALL + MAX ( DISTINCT + ( - col0 ) ) FROM tab0
----
-15

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1746
SELECT - col0 FROM tab2 cor0 WHERE CAST( - 14 AS SIGNED ) + 80 * + col0 IN ( + + col2, 7 )
----

skipif mysql # not compatible
query I rowsort label-1746
SELECT - col0 FROM tab2 cor0 WHERE CAST ( - 14 AS INTEGER ) + 80 * + col0 IN ( + + col2, 7 )
----

query I rowsort
SELECT - col0 + + + col2 FROM tab0
----
-77
2
32

query II rowsort
SELECT 98 + - + ( - - col1 ), + col0 FROM tab1 AS cor0
----
51
91
84
51
93
85

query I rowsort
SELECT DISTINCT + 92 + + col1 AS col0 FROM tab2 cor0
----
143
159
169

query I rowsort
SELECT ALL + 42 * - - col2 AS col2 FROM tab2 AS cor0
----
1680
2436
966

onlyif mysql # aggregate syntax: 
query I rowsort label-1751
SELECT DISTINCT + COUNT( * ) * - + COUNT( - - ( - 32 ) ) + - 78 + + - 17 FROM tab2 AS cor0
----
-104

skipif mysql # not compatible
query I rowsort label-1751
SELECT DISTINCT + COUNT ( * ) * - + COUNT ( - - ( - 32 ) ) + - 78 + + - 17 FROM tab2 AS cor0
----
-104

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1753
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + CAST( + + ( + 94 ) AS SIGNED ) + col2
----

skipif mysql # not compatible
query III rowsort label-1753
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT NULL > + CAST ( + + ( + 94 ) AS INTEGER ) + col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-1754
SELECT ALL col2 + + col1 DIV ( + col0 ) AS col1 FROM tab1 AS cor0
----
59
68
96

skipif mysql # not compatible
query I rowsort label-1754
SELECT ALL col2 + + col1 / ( + col0 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query I rowsort
SELECT 49 * - - 78 + - col0 * + 66 AS col1 FROM tab2 AS cor0
----
-1128
-402
786

query I rowsort
SELECT ALL + ( - col2 ) - - col1 FROM tab2 cor0
----
28
37
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1757
SELECT ALL 65 * - 25 * + COUNT( * ) AS col2 FROM tab1, tab2 AS cor0
----
-14625

skipif mysql # not compatible
query I rowsort label-1757
SELECT ALL 65 * - 25 * + COUNT ( * ) AS col2 FROM tab1, tab2 AS cor0
----
-14625

query III rowsort
SELECT * FROM tab1 WHERE NULL > - 23
----

query II rowsort
SELECT + col2 AS col1, - 89 FROM tab1
----
59
-89
68
-89
96
-89

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1760
SELECT DISTINCT + SUM( + - col2 ) DIV + 54 AS col1 FROM tab2
----
-2

skipif mysql # not compatible
query I rowsort label-1760
SELECT DISTINCT + SUM ( + - col2 ) / + 54 AS col1 FROM tab2
----
-2

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-1761
SELECT DISTINCT - col1 * + CAST( NULL AS DECIMAL ) AS col1, - 4 + col1 + + - ( - 88 ) * col1 col0 FROM tab2
----
NULL
4535
NULL
5959
NULL
6849

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1761
SELECT DISTINCT - col1 * + CAST ( NULL AS REAL ) AS col1, - 4 + col1 + + - ( - 88 ) * col1 col0 FROM tab2
----
NULL
4535
NULL
5959
NULL
6849

query II rowsort
SELECT + 36 AS col0, + 21 + + 52 + + - 2 FROM tab0
----
36
71
36
71
36
71

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1763
SELECT DISTINCT ( + COUNT( * ) ) DIV + + COUNT( ALL + col1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-1763
SELECT DISTINCT ( + COUNT ( * ) ) / + + COUNT ( ALL + col1 ) AS col1 FROM tab2
----
1

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

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NOT 85 <> 29
----

query I rowsort
SELECT + 69 * col1 FROM tab0
----
1449
5589
69

onlyif mysql # DIV for integer division: 
query I rowsort label-1767
SELECT col2 DIV + 39 FROM tab1
----
1
1
2

skipif mysql # not compatible
query I rowsort label-1767
SELECT col2 / + 39 FROM tab1
----
1
1
2

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

query I rowsort
SELECT DISTINCT - - col1 + + 15 AS col0 FROM tab1 AS cor0 WHERE NOT col2 * + + 12 * + 53 IS NOT NULL
----

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

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL >= col1 )
----

query I rowsort
SELECT ALL + 69 + - 80 - + 75 AS col2 FROM tab0 AS cor0
----
-86
-86
-86

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

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1774
SELECT ALL + CAST( - + 40 AS SIGNED ) + + 74 FROM tab2 AS cor0
----
34
34
34

skipif mysql # not compatible
query I rowsort label-1774
SELECT ALL + CAST ( - + 40 AS INTEGER ) + + 74 FROM tab2 AS cor0
----
34
34
34

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

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1776
SELECT COUNT( * ) * - 98 col2, SUM( ALL + col0 ) + + COUNT( * ) col1 FROM tab0 AS cor0
----
-294
202

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-1776
SELECT COUNT ( * ) * - 98 col2, SUM ( ALL + col0 ) + + COUNT ( * ) col1 FROM tab0 AS cor0
----
-294
202

query I rowsort
SELECT + 59 - + col1 FROM tab1 AS cor0 WHERE NOT - ( - col1 ) > - 26 - - 2 * col2 / col0 / - 89 + - ( 24 )
----

query II rowsort
SELECT - 75 AS col0, 38 FROM tab0
----
-75
38
-75
38
-75
38

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

query I rowsort
SELECT DISTINCT - col2 FROM tab2 WHERE + 95 * - + 98 + - - col1 = + col0
----

query I rowsort
SELECT ALL + col1 + - 89 AS col0 FROM tab1 cor0
----
-42
-75
-84

query I rowsort
SELECT DISTINCT 77 + 59 AS col2 FROM tab0 AS cor0
----
136

query I rowsort
SELECT + + col2 + - 4 AS col1 FROM tab1 AS cor0
----
55
64
92

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) BETWEEN + + 83 AND - 18
----

query I rowsort
SELECT + 19 FROM tab1 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 3dac30dc82c9e5acbbd3a5c5d1aeee11

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

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

query I rowsort
SELECT DISTINCT - 91 + + 32 * - col0 FROM tab1 AS cor0
----
-1723
-2811
-3003

onlyif mysql # aggregate syntax: 
query I rowsort label-1788
SELECT 58 - - COUNT( * ) FROM tab0 AS cor0
----
61

skipif mysql # not compatible
query I rowsort label-1788
SELECT 58 - - COUNT ( * ) FROM tab0 AS cor0
----
61

query I rowsort
SELECT ALL col1 + + 31 AS col2 FROM tab0 AS cor0
----
112
32
52

query I rowsort
SELECT ALL + 10 * 46 * + + col0 FROM tab2
----
21160
29440
34500

query I rowsort
SELECT DISTINCT 1 + - - 17 AS col2 FROM tab2 WHERE NULL NOT BETWEEN NULL AND ( NULL )
----

query I rowsort
SELECT DISTINCT 93 * + + col0 * + 61 FROM tab1
----
289323
482205
516243

query I rowsort
SELECT ALL 41 * - - col1 AS col1 FROM tab2
----
2091
2747
3157

query I rowsort
SELECT DISTINCT + ( col0 ) AS col0 FROM tab1 WHERE - + col0 IS NULL
----

query I rowsort
SELECT ALL - 30 FROM tab2 WHERE - + col0 * + - 85 + col0 + - col1 IS NOT NULL
----
-30
-30
-30

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

query I rowsort
SELECT - col0 + col0 + 12 + - col2 * - - col0 * - - col1 * + + col1 + - 89 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 + 0 IS NULL
----
-383747
-4625582
-9680

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

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1800
SELECT ALL - - 32 * COUNT( * ) AS col0 FROM tab0 cor0
----
96

skipif mysql # not compatible
query I rowsort label-1800
SELECT ALL - - 32 * COUNT ( * ) AS col0 FROM tab0 cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1801
SELECT - + COUNT( * ) - COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1801
SELECT - + COUNT ( * ) - COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-18

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

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

query I rowsort
SELECT DISTINCT 14 * - 26 FROM tab2
----
-364

query I rowsort
SELECT col2 * 37 * col0 FROM tab0
----
26085
32190
355311

onlyif mysql # aggregate syntax: 
query I rowsort label-1805
SELECT DISTINCT + + SUM( ALL col2 ) FROM tab0 cor0
----
156

skipif mysql # not compatible
query I rowsort label-1805
SELECT DISTINCT + + SUM ( ALL col2 ) FROM tab0 cor0
----
156

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

query I rowsort
SELECT - 25 * 4 + - col2 FROM tab2 AS cor0
----
-123
-140
-158

query II rowsort
SELECT ALL + + col1 + - col2 + - 99 - + col1 AS col1, col2 FROM tab0 AS cor0
----
-109
10
-146
47
-198
99

onlyif mysql # DIV for integer division: 
query I rowsort label-1809
SELECT ALL + 38 DIV col2 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-1809
SELECT ALL + 38 / col2 FROM tab2 AS cor0
----
0
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-1810
SELECT - MIN( DISTINCT - 82 ) AS col2 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-1810
SELECT - MIN ( DISTINCT - 82 ) AS col2 FROM tab0
----
82

onlyif mysql # aggregate syntax: 
query I rowsort label-1811
SELECT ALL MIN( DISTINCT col2 ) AS col1 FROM tab1
----
59

skipif mysql # not compatible
query I rowsort label-1811
SELECT ALL MIN ( DISTINCT col2 ) AS col1 FROM tab1
----
59

query I rowsort
SELECT DISTINCT col2 + - 23 + - - 92 FROM tab1
----
128
137
165

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

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

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

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1815
SELECT DISTINCT - 60 + - - COUNT( DISTINCT col2 ) DIV + - COUNT( * ) - + 50 FROM tab0
----
-111

skipif mysql # not compatible
query I rowsort label-1815
SELECT DISTINCT - 60 + - - COUNT ( DISTINCT col2 ) / + - COUNT ( * ) - + 50 FROM tab0
----
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1816
SELECT DISTINCT - 3 * + CAST( 72 AS SIGNED ) FROM tab2
----
-216

skipif mysql # not compatible
query I rowsort label-1816
SELECT DISTINCT - 3 * + CAST ( 72 AS INTEGER ) FROM tab2
----
-216

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 92 col1, col2 FROM tab1 AS cor0
----
92
59
92
68
92
96

onlyif mysql # aggregate syntax: 
query I rowsort label-1818
SELECT - ( - - 51 ) * - - COUNT( * ) * 98 FROM tab1 AS cor0
----
-14994

skipif mysql # not compatible
query I rowsort label-1818
SELECT - ( - - 51 ) * - - COUNT ( * ) * 98 FROM tab1 AS cor0
----
-14994

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 9 * 30 col2 FROM tab0 AS cor0
----
-270
-270
-270

onlyif mysql # aggregate syntax: 
query II rowsort label-1820
SELECT COUNT( * ) * ( 95 ), - 63 AS col1 FROM tab1 AS cor0
----
285
-63

skipif mysql # not compatible
query II rowsort label-1820
SELECT COUNT ( * ) * ( 95 ), - 63 AS col1 FROM tab1 AS cor0
----
285
-63

query I rowsort
SELECT + col0 * + + col1 AS col2 FROM tab1 AS cor0
----
425
4277
714

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

query II rowsort
SELECT + col1 * + 58 AS col2, - 27 FROM tab2
----
2958
-27
3886
-27
4466
-27

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

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

query I rowsort
SELECT + AVG ( ALL + + col0 ) AS col0 FROM tab1 WHERE NOT 97 * - 77 IS NOT NULL
----
NULL

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

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

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 4 * + - col0 IS NULL
----

query I rowsort
SELECT ALL - - 60 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to a97561e17ecaa618227c75a57b268f33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 * ( - ( col1 ) ) col0 FROM tab1
----
-196
-2209
-25

query I rowsort
SELECT DISTINCT + col1 + + + col1 AS col1 FROM tab0 AS cor0
----
162
2
42

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1832
SELECT ALL - 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-1832
SELECT ALL - COUNT ( * ) + - + COUNT ( * ) col0 FROM tab2 AS cor0
----
-6

query I rowsort
SELECT ALL - col2 * - 24 FROM tab2 AS cor0 WHERE col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1834
SELECT DISTINCT COUNT( * ) + + 93 FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-1834
SELECT DISTINCT COUNT ( * ) + + 93 FROM tab1 AS cor0
----
96

query I rowsort
SELECT + + col0 * + ( + + 59 ) AS col0 FROM tab0 AS cor0
----
5133
5723
885

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

onlyif mysql # aggregate syntax: 
query II rowsort label-1837
SELECT ALL + 85 AS col1, MIN( DISTINCT - + col2 ) FROM tab2
----
85
-58

skipif mysql # not compatible
query II rowsort label-1837
SELECT ALL + 85 AS col1, MIN ( DISTINCT - + col2 ) FROM tab2
----
85
-58

query II rowsort
SELECT DISTINCT col1 + - - 60 AS col2, 60 FROM tab2
----
111
60
127
60
137
60

onlyif mysql # aggregate syntax: 
query II rowsort label-1839
SELECT ALL - ( + 59 ) AS col2, 42 * - 43 * - + COUNT( * ) FROM tab0
----
-59
5418

skipif mysql # not compatible
query II rowsort label-1839
SELECT ALL - ( + 59 ) AS col2, 42 * - 43 * - + COUNT ( * ) FROM tab0
----
-59
5418

onlyif mysql # DIV for integer division: 
query I rowsort label-1840
SELECT col0 DIV col0 + - col0 * - + ( 61 ) FROM tab1
----
3112
5186
5552

skipif mysql # not compatible
query I rowsort label-1840
SELECT col0 / col0 + - col0 * - + ( 61 ) FROM tab1
----
3112
5186
5552

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 + col2 + col2 col1 FROM tab2
----
-5
3
49

query I rowsort
SELECT DISTINCT + ( - 12 ) AS col0 FROM tab1 AS cor0 WHERE 60 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1843
SELECT ALL col1 + CAST( - - 51 AS SIGNED ) + - - 71 * - col1 - - + 9 FROM tab1 cor0
----
-290
-3230
-920

skipif mysql # not compatible
query I rowsort label-1843
SELECT ALL col1 + CAST ( - - 51 AS INTEGER ) + - - 71 * - col1 - - + 9 FROM tab1 cor0
----
-290
-3230
-920

query I rowsort
SELECT ALL - col2 + 41 AS col1 FROM tab2 AS cor0
----
-17
1
18

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - + col0 - 11 col1 FROM tab2 cor0
----
2335
4917
5014

onlyif mysql # aggregate syntax: 
query I rowsort label-1847
SELECT ALL - SUM( DISTINCT - 78 ) AS col0 FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-1847
SELECT ALL - SUM ( DISTINCT - 78 ) AS col0 FROM tab1
----
78

onlyif mysql # DIV for integer division: 
query I rowsort label-1848
SELECT 80 * + + 22 + - col1 * col2 DIV - + col2 AS col2 FROM tab1 AS cor0
----
1765
1774
1807

skipif mysql # not compatible
query I rowsort label-1848
SELECT 80 * + + 22 + - col1 * col2 / - + col2 AS col2 FROM tab1 AS cor0
----
1765
1774
1807

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 96 <= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query II rowsort label-1850
SELECT DISTINCT ( CAST( NULL AS SIGNED ) ) / SUM( DISTINCT - - col1 ) + - 15 AS col1, CAST( NULL AS DECIMAL ) + + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

skipif mysql # not compatible
query II rowsort label-1850
SELECT DISTINCT ( CAST ( NULL AS INTEGER ) ) / SUM ( DISTINCT - - col1 ) + - 15 AS col1, CAST ( NULL AS REAL ) + + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL
NULL

query I rowsort
SELECT DISTINCT - 53 AS col1 FROM tab1, tab0 AS cor0
----
-53

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

query II rowsort
SELECT - - col0 AS col0, + 29 AS col2 FROM tab0 AS cor0
----
15
29
87
29
97
29

query I rowsort
SELECT - 13 * + col1 AS col2 FROM tab1 AS cor0
----
-182
-611
-65

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

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

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 92 IS NOT NULL
----

query I rowsort
SELECT + ( 72 ) AS col2 FROM tab1
----
72
72
72

query I rowsort
SELECT 39 AS col2 FROM tab2 WHERE + col1 - 27 * ( - col2 ) >= col2
----
39
39
39

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

query I rowsort
SELECT 91 + + 87 * col1 AS col2 FROM tab2
----
4528
5920
6790

onlyif mysql # aggregate syntax: 
query I rowsort label-1861
SELECT 28 + COUNT( * ) FROM tab1
----
31

skipif mysql # not compatible
query I rowsort label-1861
SELECT 28 + COUNT ( * ) FROM tab1
----
31

query I rowsort
SELECT 35 * 88 AS col1 FROM tab2
----
3080
3080
3080

onlyif mysql # aggregate syntax: 
query I rowsort label-1863
SELECT ( 71 ) + SUM( DISTINCT 10 - + 57 * + ( col1 - + col2 ) ) AS col0 FROM tab0
----
3122

skipif mysql # not compatible
query I rowsort label-1863
SELECT ( 71 ) + SUM ( DISTINCT 10 - + 57 * + ( col1 - + col2 ) ) AS col0 FROM tab0
----
3122

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

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL = 44
----

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE ( col2 ) IS NOT NULL
----
59
68
96

query I rowsort
SELECT ( 75 ) * ( ( + col2 ) * + col1 ) FROM tab2
----
231000
291450
87975

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - col2 col2 FROM tab2 WHERE 82 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL 82 * + col0 AS col2 FROM tab0
----
1230
7134
7954

query I rowsort
SELECT + ( - col0 ) AS col2 FROM tab0 WHERE NOT NULL >= ( - 47 )
----

query I rowsort
SELECT DISTINCT 72 * 90 FROM tab1
----
6480

query I rowsort
SELECT 99 AS col2 FROM tab0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT ALL + 82 * - col2 AS col1 FROM tab1 WHERE NOT col1 IS NULL
----
-4838
-5576
-7872

query I rowsort
SELECT ALL - 93 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1876
SELECT DISTINCT - COUNT( * ) DIV COUNT( - col1 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-1876
SELECT DISTINCT - COUNT ( * ) / COUNT ( - col1 ) FROM tab1
----
-1

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1878
SELECT - 52 - + MAX( col2 - col0 ) col1 FROM tab2
----
-35

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1878
SELECT - 52 - + MAX ( col2 - col0 ) col1 FROM tab2
----
-35

onlyif mysql # aggregate syntax: 
query I rowsort label-1879
SELECT + MIN( col2 ) - + 69 col1 FROM tab0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1879
SELECT + MIN ( col2 ) - + 69 col1 FROM tab0
----
-59

query I rowsort
SELECT ( 34 ) AS col1 FROM tab0
----
34
34
34

query III rowsort
SELECT * FROM tab2 cor0 WHERE + col2 < ( - col0 )
----

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

query I rowsort
SELECT 66 * - 17 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 4078cea221b1f59664b7a4d945c1ebd8

onlyif mysql # aggregate syntax: 
query I rowsort label-1884
SELECT 62 + - COUNT( * ) FROM tab2 WHERE NOT ( ( col2 ) ) < + col1
----
62

skipif mysql # not compatible
query I rowsort label-1884
SELECT 62 + - COUNT ( * ) FROM tab2 WHERE NOT ( ( col2 ) ) < + col1
----
62

query I rowsort
SELECT + 92 * - col2 FROM tab2
----
-2116
-3680
-5336

onlyif mysql # aggregate syntax: 
query I rowsort label-1886
SELECT ALL + MAX( + 87 ) * 95 FROM tab1
----
8265

skipif mysql # not compatible
query I rowsort label-1886
SELECT ALL + MAX ( + 87 ) * 95 FROM tab1
----
8265

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1888
SELECT - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 + col0 / col0 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-1888
SELECT - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT col0 + col0 / col0 IS NOT NULL
----
0

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1890
SELECT + + 15 * + AVG ( - CAST( NULL AS SIGNED ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-1890
SELECT + + 15 * + AVG ( - CAST ( NULL AS INTEGER ) ) FROM tab0 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1892
SELECT ALL + 75 DIV - COUNT( * ) FROM tab2 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-1892
SELECT ALL + 75 / - COUNT ( * ) FROM tab2 AS cor0
----
-25

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

query I rowsort
SELECT DISTINCT 41 * + col1 - 47 AS col1 FROM tab2 WHERE + 96 * 36 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( - - col2 ) col2 FROM tab2
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-1896
SELECT + MAX( ALL - col1 ) AS col0 FROM tab2
----
-51

skipif mysql # not compatible
query I rowsort label-1896
SELECT + MAX ( ALL - col1 ) AS col0 FROM tab2
----
-51

query I rowsort
SELECT - col2 * + 28 AS col2 FROM tab2 WHERE NOT ( + 36 * col0 + ( col2 + 61 * col0 ) ) NOT IN ( 8 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-1898
SELECT ALL CAST( 39 AS SIGNED ) DIV + MIN( + ( col1 ) ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-1898
SELECT ALL CAST ( 39 AS INTEGER ) / + MIN ( + ( col1 ) ) FROM tab2
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-1899
SELECT ALL col2 * col2 DIV 36 AS col2 FROM tab0
----
2
272
61

skipif mysql # not compatible
query I rowsort label-1899
SELECT ALL col2 * col2 / 36 AS col2 FROM tab0
----
2
272
61

onlyif mysql # aggregate syntax: 
query I rowsort label-1900
SELECT DISTINCT COUNT( ALL col2 ) * COUNT( * ) FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-1900
SELECT DISTINCT COUNT ( ALL col2 ) * COUNT ( * ) FROM tab2 cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1901
SELECT DISTINCT + ( - SUM( 90 ) ) FROM tab0 cor0
----
-270

skipif mysql # not compatible
query I rowsort label-1901
SELECT DISTINCT + ( - SUM ( 90 ) ) FROM tab0 cor0
----
-270

query I rowsort
SELECT ALL + 58 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL > NULL
----

query I rowsort
SELECT ALL 63 * + col0 + col2 * col2 FROM tab0 WHERE NOT NULL NOT BETWEEN NULL AND - - 30
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1904
SELECT - 6 * SUM( DISTINCT 12 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-72

skipif mysql # not compatible
query I rowsort label-1904
SELECT - 6 * SUM ( DISTINCT 12 ) FROM tab2 AS cor0 CROSS JOIN tab1 cor1
----
-72

query II rowsort
SELECT DISTINCT - 24, + col2 FROM tab1
----
-24
59
-24
68
-24
96

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NOT col0 + col2 / + col1 NOT BETWEEN ( NULL ) AND col0 * 33 )
----

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab1 cor1 WHERE NULL > NULL
----

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

skipif mysql # not compatible
query I rowsort label-1908
SELECT - COUNT ( * ) * + CAST ( NULL AS INTEGER ) * - ( + 60 ) AS col0 FROM tab0, tab2 AS cor0
----
NULL

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1910
SELECT DISTINCT COUNT( * ) * + 6 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 20 )
----
0

skipif mysql # not compatible
query I rowsort label-1910
SELECT DISTINCT COUNT ( * ) * + 6 AS col2 FROM tab2 AS cor0 WHERE NULL IN ( 20 )
----
0

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

query I rowsort
SELECT DISTINCT col0 + col0 + col0 AS col0 FROM tab2 cor0
----
138
192
225

query I rowsort
SELECT ALL 36 FROM tab0 AS cor0 WHERE + col0 + + 33 - col2 * + 39 > - col2
----

query I rowsort
SELECT - - col1 - + ( col0 ) * col2 FROM tab1 AS cor0
----
-4882
-5010
-6141

onlyif mysql # aggregate syntax: 
query I rowsort label-1915
SELECT DISTINCT + 82 + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
85

skipif mysql # not compatible
query I rowsort label-1915
SELECT DISTINCT + 82 + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
85

query I rowsort
SELECT - col2 - - - ( - - 39 ) + + 33 * - col1 AS col2 FROM tab1 AS cor0
----
-1658
-263
-597

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1918
SELECT ALL 77 * + - 87 + - - COUNT( * ) col1 FROM tab0
----
-6696

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1918
SELECT ALL 77 * + - 87 + - - COUNT ( * ) col1 FROM tab0
----
-6696

query I rowsort
SELECT - col2 + - + 72 AS col1 FROM tab1
----
-131
-140
-168

query I rowsort
SELECT ( - col0 ) + col2 * + 2 FROM tab2 WHERE NULL > + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-1921
SELECT + MIN( ALL + col2 ) FROM tab0 WHERE ( - col0 ) = + col0 * - 45 + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-1921
SELECT + MIN ( ALL + col2 ) FROM tab0 WHERE ( - col0 ) = + col0 * - 45 + col0
----
NULL

query I rowsort
SELECT col2 + + 63 - + col1 FROM tab1
----
117
145
84

query I rowsort
SELECT - 17 + + 13 FROM tab2
----
-4
-4
-4

query I rowsort
SELECT DISTINCT ( - 67 ) * col2 AS col0 FROM tab0
----
-3149
-6633
-670

onlyif mysql # DIV for integer division: 
query I rowsort label-1925
SELECT col2 + + col0 + - col1 DIV + col1 col2 FROM tab2
----
103
132
68

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1925
SELECT col2 + + col0 + - col1 / + col1 col2 FROM tab2
----
103
132
68

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL < ( + 8 )
----

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

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( + col2 / 11 IS NULL )
----

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

query I rowsort
SELECT + 74 * + col0 AS col1 FROM tab1 AS cor0
----
3774
6290
6734

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

skipif mysql # not compatible
query I rowsort label-1931
SELECT + + MIN ( + 1 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-1932
SELECT CAST( NULL AS SIGNED ) AS col2, + CAST( - - 49 AS SIGNED ) + - 58 AS col0 FROM tab2
----
NULL
-9
NULL
-9
NULL
-9

skipif mysql # not compatible
query II rowsort label-1932
SELECT CAST ( NULL AS INTEGER ) AS col2, + CAST ( - - 49 AS INTEGER ) + - 58 AS col0 FROM tab2
----
NULL
-9
NULL
-9
NULL
-9

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1934
SELECT DISTINCT - COUNT( * ) AS col1 FROM tab2 AS cor0 WHERE + col2 + col0 + + 94 = col2 + - col1
----
0

skipif mysql # not compatible
query I rowsort label-1934
SELECT DISTINCT - COUNT ( * ) AS col1 FROM tab2 AS cor0 WHERE + col2 + col0 + + 94 = col2 + - col1
----
0

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

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

query I rowsort
SELECT DISTINCT + ( - col1 ) * ( + 85 ) AS col2 FROM tab2 AS cor0
----
-4335
-5695
-6545

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 * - - 83 + col1 col0 FROM tab2 cor0
----
-1002
-1012
-1028

query I rowsort
SELECT + - col1 * 44 * - - col1 AS col0 FROM tab1 AS cor0
----
-1100
-8624
-97196

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

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

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

query I rowsort
SELECT + col0 * 8 * - 15 * + col1 FROM tab0 AS cor0
----
-11640
-145800
-219240

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-1943
SELECT - - 88 * ( - 14 ) DIV + COUNT( * ) FROM tab2 cor0
----
-410

skipif mysql # not compatible
query I rowsort label-1943
SELECT - - 88 * ( - 14 ) / + COUNT ( * ) FROM tab2 cor0
----
-410

query II rowsort
SELECT + ( + 65 ) * - col0 AS col0, col1 AS col0 FROM tab1 AS cor0
----
-3315
14
-5525
5
-5915
47

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

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

query I rowsort
SELECT DISTINCT ( + col1 ) * + 92 AS col1 FROM tab1
----
1288
4324
460

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

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

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

query I rowsort
SELECT 50 * ( - col1 ) AS col0 FROM tab0
----
-1050
-4050
-50

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 23 col2 FROM tab1 WHERE NOT NULL BETWEEN ( NULL ) AND - col0
----

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1953
SELECT DISTINCT - 52 + - + 23 * COUNT( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 61 * - CAST( NULL AS SIGNED ) IS NULL
----
-52

skipif mysql # not compatible
query I rowsort label-1953
SELECT DISTINCT - 52 + - + 23 * COUNT ( * ) AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT 61 * - CAST ( NULL AS INTEGER ) IS NULL
----
-52

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + + 70 + ( + + col1 ) col0 FROM tab0 AS cor0
----
151
71
91

onlyif mysql # aggregate syntax: 
query I rowsort label-1956
SELECT ALL - 34 + COUNT( ALL + 96 ) * - 70 FROM tab2 AS cor0
----
-244

skipif mysql # not compatible
query I rowsort label-1956
SELECT ALL - 34 + COUNT ( ALL + 96 ) * - 70 FROM tab2 AS cor0
----
-244

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + ( - + 68 ) / - - col2 * - col0 + + col2 * - ( + col0 ) + 64 <= + ( 54 ) - + 56 * + col1
----
75
67
58

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

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

query III rowsort
SELECT * FROM tab1 WHERE col2 * + - 23 = + col1
----

query I rowsort
SELECT ALL - ( + - ( + + col0 ) ) - + col2 FROM tab2
----
17
23
24

onlyif mysql # aggregate syntax: 
query I rowsort label-1962
SELECT DISTINCT SUM( + col0 ) * + 32 FROM tab1
----
7264

skipif mysql # not compatible
query I rowsort label-1962
SELECT DISTINCT SUM ( + col0 ) * + 32 FROM tab1
----
7264

onlyif mysql # aggregate syntax: 
query I rowsort label-1963
SELECT DISTINCT 27 - - MAX( + 12 ) FROM tab2
----
39

skipif mysql # not compatible
query I rowsort label-1963
SELECT DISTINCT 27 - - MAX ( + 12 ) FROM tab2
----
39

query II rowsort
SELECT - col0, col2 * - col1 AS col2 FROM tab0
----
-15
-3807
-87
-210
-97
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-1965
SELECT DISTINCT COUNT( ALL - 57 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-1965
SELECT DISTINCT COUNT ( ALL - 57 ) FROM tab1
----
3

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

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

query I rowsort
SELECT ALL - 46 AS col0 FROM tab0
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-1968
SELECT DISTINCT + CAST( - + col2 AS SIGNED ) + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

skipif mysql # not compatible
query I rowsort label-1968
SELECT DISTINCT + CAST ( - + col2 AS INTEGER ) + col0 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-2
-32
77

onlyif mysql # aggregate syntax: 
query I rowsort label-1969
SELECT COUNT( ALL 12 ) FROM tab2, tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-1969
SELECT COUNT ( ALL 12 ) FROM tab2, tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-1970
SELECT COUNT( * ) col0 FROM tab2, tab1 AS cor0
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1970
SELECT COUNT ( * ) col0 FROM tab2, tab1 AS cor0
----
9

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

skipif mysql # not compatible
query I rowsort label-1971
SELECT + + SUM ( + - col0 ) AS col0 FROM tab0 AS cor0
----
-199

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-1972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST( 3 AS DECIMAL ) <= + + 93
----

skipif mysql # not compatible
query III rowsort label-1972
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT CAST ( 3 AS REAL ) <= + + 93
----

query I rowsort
SELECT col1 FROM tab2 AS cor0 WHERE NOT ( NULL ) <= NULL
----

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

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-1975
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST( 48 AS SIGNED ) ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-1975
SELECT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( 48 AS INTEGER ) ) <= NULL
----

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

query III rowsort
SELECT * FROM tab2 WHERE NOT ( NULL ) BETWEEN ( + 9 ) AND + col1 + - ( - 38 )
----

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

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-1978
SELECT DISTINCT - col2 / - + col2 col1 FROM tab1
----
1

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1980
SELECT DISTINCT 18 * - MAX( + - 70 ) AS col1 FROM tab1
----
1260

skipif mysql # not compatible
query I rowsort label-1980
SELECT DISTINCT 18 * - MAX ( + - 70 ) AS col1 FROM tab1
----
1260

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

skipif mysql # not compatible
query I rowsort label-1981
SELECT DISTINCT + COUNT ( * ) * - 54 FROM tab1
----
-162

query II rowsort
SELECT DISTINCT 65 AS col1, + col0 * - 54 AS col1 FROM tab0
----
65
-4698
65
-5238
65
-810

query I rowsort
SELECT ALL col2 FROM tab0 WHERE - col1 * - + 48 - col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT DISTINCT ( - - col1 ) AS col2 FROM tab2 WHERE NULL IS NULL
----
51
67
77

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

query I rowsort
SELECT - + col2 + - 51 FROM tab0 AS cor0
----
-150
-61
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 7 * col0 col1 FROM tab2 AS cor0 WHERE NULL >= NULL
----

query I rowsort
SELECT + 58 + - - 68 * + 69 AS col0 FROM tab1
----
4750
4750
4750

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-1989
SELECT + MAX( 40 ) * - CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-1989
SELECT + MAX ( 40 ) * - CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE col0 / - col2 IS NOT NULL
----
51
67
77

query III rowsort
SELECT * FROM tab1 WHERE - ( + 30 ) IS NULL
----

query I rowsort
SELECT DISTINCT + col2 + 22 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT + 88 - + col2 + - + col1 AS col0 FROM tab2 AS cor0
----
-29
-37
14

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

onlyif mysql # aggregate syntax: 
query I rowsort label-1995
SELECT ALL 9 - - COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-1995
SELECT ALL 9 - - COUNT ( * ) FROM tab0
----
12

onlyif mysql # DIV for integer division: 
query I rowsort label-1996
SELECT + col0 + - - 54 + col0 * - col1 + 65 DIV + col1 FROM tab0
----
-1146
-1683
119

skipif mysql # not compatible
query I rowsort label-1996
SELECT + col0 + - - 54 + col0 * - col1 + 65 / + col1 FROM tab0
----
-1146
-1683
119

onlyif mysql # aggregate syntax: 
query I rowsort label-1997
SELECT ALL MAX( - 61 ) FROM tab2, tab0 AS cor0
----
-61

skipif mysql # not compatible
query I rowsort label-1997
SELECT ALL MAX ( - 61 ) FROM tab2, tab0 AS cor0
----
-61

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

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

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

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( - - col1 ) <= NULL
----

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2002
SELECT DISTINCT col2 DIV + col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
1
11
6

skipif mysql # not compatible
query I rowsort label-2002
SELECT DISTINCT col2 / + col1 FROM tab1 AS cor0 WHERE + col1 IS NOT NULL
----
1
11
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 70 col1, - 32 AS col1 FROM tab1 cor0
----
70
-32
70
-32
70
-32

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

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

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

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

query I rowsort
SELECT - - col1 * - 33 AS col0 FROM tab2 AS cor0
----
-1683
-2211
-2541

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

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

query I rowsort
SELECT col0 + + 47 AS col1 FROM tab2 AS cor0
----
111
122
93

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

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

query I rowsort
SELECT ALL ( 55 ) AS col1 FROM tab2
----
55
55
55

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2014
SELECT - COUNT( * ) AS col0 FROM tab2 WHERE - 28 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-2014
SELECT - COUNT ( * ) AS col0 FROM tab2 WHERE - 28 IS NULL
----
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2015
SELECT - AVG ( DISTINCT + col2 ) * - 31 AS col1 FROM tab2 WHERE NULL < + col1 + - ( - col0 ) + - CAST( NULL AS DECIMAL ) * 76 + - col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2015
SELECT - AVG ( DISTINCT + col2 ) * - 31 AS col1 FROM tab2 WHERE NULL < + col1 + - ( - col0 ) + - CAST ( NULL AS REAL ) * 76 + - col0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2016
SELECT + col1 DIV + - 12 col2 FROM tab2
----
-4
-5
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2016
SELECT + col1 / + - 12 col2 FROM tab2
----
-4
-5
-6

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2018
SELECT ALL + + 10 + col2 DIV + col1 AS col2 FROM tab1 AS cor0
----
11
16
21

skipif mysql # not compatible
query I rowsort label-2018
SELECT ALL + + 10 + col2 / + col1 AS col2 FROM tab1 AS cor0
----
11
16
21

query I rowsort
SELECT DISTINCT + + col0 + + col1 + + 4 * - col0 * + col2 FROM tab0 AS cor0
----
-2724
-3372
-38314

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

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

query III rowsort
SELECT * FROM tab1 WHERE NULL = 28 * + col0 * + col0 * col2 - - 13
----

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

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

query I rowsort
SELECT ( 85 ) AS col1 FROM tab2 AS cor0
----
85
85
85

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2025
SELECT - ( + CAST( col2 AS SIGNED ) ) FROM tab1 AS cor0
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-2025
SELECT - ( + CAST ( col2 AS INTEGER ) ) FROM tab1 AS cor0
----
-59
-68
-96

query I rowsort
SELECT - 20 FROM tab0 cor0 WHERE NULL IS NULL
----
-20
-20
-20

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2027
SELECT DISTINCT + + CAST( NULL AS SIGNED ) / 37 - + ( col0 ) + + - col2 * col1 * 95 + - 78 - + - col2 AS col0 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2027
SELECT DISTINCT + + CAST ( NULL AS INTEGER ) / 37 - + ( col0 ) + + - col2 * col1 * 95 + - 78 - + - col2 AS col0 FROM tab0 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-2028
SELECT DISTINCT col0 DIV + + 57 FROM tab0
----
0
1

skipif mysql # not compatible
query I rowsort label-2028
SELECT DISTINCT col0 / + + 57 FROM tab0
----
0
1

onlyif mysql # DIV for integer division: 
query I rowsort label-2029
SELECT - col2 DIV + - col2 FROM tab2
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2029
SELECT - col2 / + - col2 FROM tab2
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2030
SELECT 0 + + COUNT( * ) FROM tab2 WHERE NOT + col0 + - 55 * col1 + + + col1 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2030
SELECT 0 + + COUNT ( * ) FROM tab2 WHERE NOT + col0 + - 55 * col1 + + + col1 IS NOT NULL
----
0

query II rowsort
SELECT DISTINCT + col2, col2 AS col1 FROM tab1
----
59
59
68
68
96
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2032
SELECT DISTINCT + SUM( - col0 ) * - - 38 FROM tab2 AS cor0
----
-7030

skipif mysql # not compatible
query I rowsort label-2032
SELECT DISTINCT + SUM ( - col0 ) * - - 38 FROM tab2 AS cor0
----
-7030

query II rowsort
SELECT DISTINCT - + col1, 68 AS col1 FROM tab0 AS cor0
----
-1
68
-21
68
-81
68

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2035
SELECT - SUM( DISTINCT + 94 ) AS col1 FROM tab0
----
-94

skipif mysql # not compatible
query I rowsort label-2035
SELECT - SUM ( DISTINCT + 94 ) AS col1 FROM tab0
----
-94

query I rowsort
SELECT DISTINCT + col2 + + - ( + col1 ) AS col0 FROM tab1 AS cor0
----
21
54
82

query I rowsort
SELECT + col0 * + col1 - col2 FROM tab2 AS cor0 WHERE 41 IS NOT NULL
----
2323
4888
4967

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

skipif mysql # not compatible
query II rowsort label-2038
SELECT DISTINCT + ( - COUNT ( * ) ) AS col0, - 34 FROM tab2 AS cor0
----
-3
-34

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

query I rowsort
SELECT ALL col2 + 61 * - col2 AS col1 FROM tab2 AS cor0
----
-1380
-2400
-3480

onlyif mysql # aggregate syntax: 
query I rowsort label-2041
SELECT DISTINCT COUNT( 5 ) AS col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2041
SELECT DISTINCT COUNT ( 5 ) AS col0 FROM tab2 AS cor0
----
3

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

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

query I rowsort
SELECT - col2 * + col0 + col2 AS col1 FROM tab0
----
-658
-860
-9504

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 89 > col2 * - 1
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 25 + - - 84 col2 FROM tab2
----
59
59
59

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

skipif mysql # not compatible
query I rowsort label-2046
SELECT ALL + COUNT ( * ) AS col2 FROM tab2, tab0 cor0
----
9

query I rowsort
SELECT + col2 + + - ( - 59 ) + col0 * 8 AS col2 FROM tab0
----
226
765
934

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

onlyif mysql # aggregate syntax: 
query II rowsort label-2049
SELECT - COUNT( * ) AS col0, + COUNT( * ) + - + 91 FROM tab2 WHERE ( - 0 ) IS NULL
----
0
-91

skipif mysql # not compatible
query II rowsort label-2049
SELECT - COUNT ( * ) AS col0, + COUNT ( * ) + - + 91 FROM tab2 WHERE ( - 0 ) IS NULL
----
0
-91

query I rowsort
SELECT DISTINCT col0 - - col1 * + 87 AS col0 FROM tab1
----
1269
4180
520

query I rowsort
SELECT DISTINCT + ( - + 91 ) - - 9 FROM tab1
----
-82

onlyif mysql # aggregate syntax: 
query I rowsort label-2052
SELECT + SUM( ALL - col1 ) - + COUNT( * ) FROM tab1
----
-69

skipif mysql # not compatible
query I rowsort label-2052
SELECT + SUM ( ALL - col1 ) - + COUNT ( * ) FROM tab1
----
-69

onlyif mysql # DIV for integer division: 
query I rowsort label-2053
SELECT ALL + 22 DIV col0 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2053
SELECT ALL + 22 / col0 FROM tab1 AS cor0
----
0
0
0

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2055
SELECT + SUM( ALL + col1 ) AS col2 FROM tab2 cor0
----
195

skipif mysql # not compatible
query I rowsort label-2055
SELECT + SUM ( ALL + col1 ) AS col2 FROM tab2 cor0
----
195

onlyif mysql # DIV for integer division: 
query I rowsort label-2056
SELECT + - 49 DIV col1 DIV - col1 + col1 col2 FROM tab1 AS cor0
----
14
47
6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2056
SELECT + - 49 / col1 / - col1 + col1 col2 FROM tab1 AS cor0
----
14
47
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2057
SELECT ALL + CAST( NULL AS SIGNED ) / 57 * - 95 * - 30 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

skipif mysql # not compatible
query I rowsort label-2057
SELECT ALL + CAST ( NULL AS INTEGER ) / 57 * - 95 * - 30 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2058
SELECT + COUNT( 73 ) col0 FROM tab2
----
3

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2059
SELECT DISTINCT - CAST( NULL AS SIGNED ) * - + col1 * + col1 / 53 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-2059
SELECT DISTINCT - CAST ( NULL AS INTEGER ) * - + col1 * + col1 / 53 FROM tab0
----
NULL

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

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

query I rowsort
SELECT col2 * + 86 FROM tab2
----
1978
3440
4988

onlyif mysql # DIV for integer division: 
query I rowsort label-2062
SELECT DISTINCT + 98 DIV - col2 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

skipif mysql # not compatible
query I rowsort label-2062
SELECT DISTINCT + 98 / - col2 AS col1 FROM tab2 AS cor0
----
-1
-2
-4

query I rowsort
SELECT - + 4 * + - col1 + + 69 - - col2 AS col1 FROM tab0 AS cor0
----
163
172
440

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2065
SELECT ALL MIN( + + col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-2065
SELECT ALL MIN ( + + col2 ) AS col0 FROM tab2
----
23

query I rowsort
SELECT - - 66 AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query III rowsort
SELECT col1 AS col2, - col0 AS col1, - ( + ( - col1 ) ) FROM tab2 cor0
----
9 values hashing to be983e1dd9af8af86b10d7a05ab67a84

onlyif mysql # aggregate syntax: 
query I rowsort label-2068
SELECT + 38 + ( MIN( ALL + - col1 ) ) + 46 FROM tab1 AS cor0
----
37

skipif mysql # not compatible
query I rowsort label-2068
SELECT + 38 + ( MIN ( ALL + - col1 ) ) + 46 FROM tab1 AS cor0
----
37

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 + - 9 col0, - col1 + col2 AS col0 FROM tab2 AS cor0
----
42
-28
58
-9
68
-37

query I rowsort
SELECT ALL + - col1 + - ( - col2 ) FROM tab1 AS cor0
----
21
54
82

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

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

query I rowsort
SELECT 59 * col2 + - col0 AS col0 FROM tab2
----
1311
2296
3347

query I rowsort
SELECT DISTINCT 93 * - col2 * + 32 + + col1 FROM tab2
----
-118963
-172541
-68397

query I rowsort
SELECT DISTINCT 94 + - col1 AS col0 FROM tab1 AS cor0
----
47
80
89

query I rowsort
SELECT ALL + 45 + - 26 FROM tab0 cor0
----
19
19
19

query I rowsort
SELECT DISTINCT + + col2 - + col2 * + 57 + - - col0 - col1 FROM tab1 AS cor0
----
-3224
-3764
-5339

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query II rowsort label-2079
SELECT ALL 95 - - 70 + + + col1 DIV - 26, CAST( NULL AS SIGNED ) + + CAST( - col0 AS SIGNED ) - col1 * 34 AS col1 FROM tab2
----
163
NULL
163
NULL
164
NULL

skipif mysql # not compatible
query II rowsort label-2079
SELECT ALL 95 - - 70 + + + col1 / - 26, CAST ( NULL AS INTEGER ) + + CAST ( - col0 AS INTEGER ) - col1 * 34 AS col1 FROM tab2
----
163
NULL
163
NULL
164
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2080
SELECT + COUNT( col1 ) + 99 AS col0 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-2080
SELECT + COUNT ( col1 ) + 99 AS col0 FROM tab0
----
102

query II rowsort
SELECT + col1 * + 4 * + - 89 + col0 AS col0, - 41 FROM tab2 AS cor0
----
-18110
-41
-23777
-41
-27348
-41

query II rowsort
SELECT + 6 * - col2 + + 84 AS col1, col1 FROM tab2 AS cor0
----
-156
77
-264
67
-54
51

query I rowsort
SELECT ALL - - ( + 62 ) FROM tab2 cor0
----
62
62
62

onlyif mysql # aggregate syntax: 
query I rowsort label-2084
SELECT ALL - MIN( - col2 ) * - 25 AS col0 FROM tab1
----
-2400

skipif mysql # not compatible
query I rowsort label-2084
SELECT ALL - MIN ( - col2 ) * - 25 AS col0 FROM tab1
----
-2400

query I rowsort
SELECT col2 * - 66 * + 1 AS col0 FROM tab0
----
-3102
-6534
-660

query I rowsort
SELECT ALL col0 * - 81 AS col1 FROM tab0
----
-1215
-7047
-7857

query I rowsort
SELECT ALL - 78 * - + col1 FROM tab2
----
3978
5226
6006

query I rowsort
SELECT - col0 * + 83 + + 30 FROM tab0 WHERE NOT - col2 NOT BETWEEN NULL AND 66 * 6
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2089
SELECT DISTINCT - CAST( NULL AS SIGNED ) / - AVG ( ALL + - 69 ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2089
SELECT DISTINCT - CAST ( NULL AS INTEGER ) / - AVG ( ALL + - 69 ) AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2090
SELECT COUNT( * ) * + MAX( DISTINCT + 91 ) col1 FROM tab2 AS cor0
----
273

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2091
SELECT DISTINCT COUNT( * ) * + MAX( ALL + col0 ) FROM tab1 AS cor0
----
273

skipif mysql # not compatible
query I rowsort label-2091
SELECT DISTINCT COUNT ( * ) * + MAX ( ALL + col0 ) FROM tab1 AS cor0
----
273

query I rowsort
SELECT DISTINCT + ( - ( - col1 ) ) AS col0 FROM tab2
----
51
67
77

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2093
SELECT ALL 40 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> col1 / col1 * + - CAST( NULL AS DECIMAL ) * - - 67 + 12
----

skipif mysql # not compatible
query I rowsort label-2093
SELECT ALL 40 AS col2 FROM tab0 AS cor0 WHERE ( NULL ) <> col1 / col1 * + - CAST ( NULL AS REAL ) * - - 67 + 12
----

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2095
SELECT + MAX( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
47

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2095
SELECT + MAX ( DISTINCT col1 ) col2 FROM tab1 AS cor0
----
47

query I rowsort
SELECT + + 78 + col0 AS col2 FROM tab1 cor0 WHERE NULL = ( + col2 ) * - col2
----

query I rowsort
SELECT col2 - + - col2 * - col1 - + 27 FROM tab1
----
-1275
-263
-3155

onlyif mysql # aggregate syntax: 
query I rowsort label-2098
SELECT ALL 19 - + COUNT( * ) FROM tab0
----
16

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

query I rowsort
SELECT + col2 + - 35 * - col2 FROM tab2
----
1440
2088
828

query I rowsort
SELECT + ( + - col2 ) * - col2 + - col1 AS col2 FROM tab2
----
1523
3297
478

onlyif mysql # DIV for integer division: 
query I rowsort label-2101
SELECT DISTINCT + 72 DIV - - ( + col1 ) FROM tab2
----
0
1

skipif mysql # not compatible
query I rowsort label-2101
SELECT DISTINCT + 72 / - - ( + col1 ) FROM tab2
----
0
1

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

query I rowsort
SELECT 1 + - - col0 + - + col2 - - - ( col0 ) * - 8 AS col2 FROM tab2
----
392
537
618

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT BETWEEN 97 - - - col2 * + 25 AND - 0
----

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

query II rowsort
SELECT DISTINCT + ( + 81 ) * + - 5 + + + 49 AS col0, col1 + - ( 3 ) AS col2 FROM tab2
----
-356
48
-356
64
-356
74

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

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

query I rowsort
SELECT DISTINCT 24 + + - col2 AS col2 FROM tab2 AS cor0
----
-16
-34
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2110
SELECT COUNT( DISTINCT + col2 ) AS col2, - ( COUNT( * ) ) AS col0 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-2110
SELECT COUNT ( DISTINCT + col2 ) AS col2, - ( COUNT ( * ) ) AS col0 FROM tab2
----
3
-3

query I rowsort
SELECT col2 FROM tab0 WHERE NOT + + col1 + + col0 IS NULL
----
10
47
99

onlyif mysql # DIV for integer division: 
query II rowsort label-2112
SELECT + + ( + + col1 ), col0 DIV + col0 AS col2 FROM tab1 cor0
----
14
1
47
1
5
1

skipif mysql # not compatible
query II rowsort label-2112
SELECT + + ( + + col1 ), col0 / + col0 AS col2 FROM tab1 cor0
----
14
1
47
1
5
1

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + + 34 * - - 4 col1, + col0 * - col1 FROM tab2 AS cor0
----
136
-2346
136
-4928
136
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-2115
SELECT ALL - - SUM( DISTINCT + 2 ) * + + 57 AS col0 FROM tab1 AS cor0
----
114

skipif mysql # not compatible
query I rowsort label-2115
SELECT ALL - - SUM ( DISTINCT + 2 ) * + + 57 AS col0 FROM tab1 AS cor0
----
114

query I rowsort
SELECT - col2 * 38 + col1 FROM tab2 AS cor0
----
-1443
-2137
-823

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 - + + ( - col0 ) <> - 93
----

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 <= col2
----
87
21
10

onlyif mysql # DIV for integer division: 
query I rowsort label-2119
SELECT col0 DIV - 84 col2 FROM tab1
----
-1
-1
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2119
SELECT col0 / - 84 col2 FROM tab1
----
-1
-1
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2120
SELECT ALL - ( - MIN( ALL 76 ) ) * + CAST( NULL AS SIGNED ) - - + MIN( ALL col2 ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2120
SELECT ALL - ( - MIN ( ALL 76 ) ) * + CAST ( NULL AS INTEGER ) - - + MIN ( ALL col2 ) AS col1 FROM tab2
----
NULL

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

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

query II rowsort
SELECT ALL 1, col2 AS col2 FROM tab2
----
1
23
1
40
1
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2123
SELECT + ( MAX( 89 ) ) FROM tab0
----
89

skipif mysql # not compatible
query I rowsort label-2123
SELECT + ( MAX ( 89 ) ) FROM tab0
----
89

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

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

query I rowsort
SELECT + 59 * col0 FROM tab2 AS cor0
----
2714
3776
4425

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 50 + - - col0 col1 FROM tab0 AS cor0
----
-35
37
47

query I rowsort
SELECT ALL - 3 AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 33 + col2 col0 FROM tab0
----
-23
14
66

onlyif mysql # DIV for integer division: 
query I rowsort label-2129
SELECT DISTINCT + col0 + 82 DIV 81 FROM tab2 AS cor0
----
47
65
76

skipif mysql # not compatible
query I rowsort label-2129
SELECT DISTINCT + col0 + 82 / 81 FROM tab2 AS cor0
----
47
65
76

query I rowsort
SELECT DISTINCT + col0 FROM tab2 cor0 WHERE NOT 81 * - col1 IS NULL
----
46
64
75

query I rowsort
SELECT - 84 + - col0 AS col1 FROM tab1 AS cor0
----
-135
-169
-175

query I rowsort
SELECT DISTINCT col0 + + 74 + - 92 - + col2 * + col2 FROM tab0 AS cor0
----
-2212
-31
-9722

query I rowsort
SELECT + col2 FROM tab2 cor0 WHERE + col0 BETWEEN ( NULL ) AND - ( - col0 ) * col1
----

query I rowsort
SELECT - 94 + - 13 FROM tab0 AS cor0
----
-107
-107
-107

query I rowsort
SELECT DISTINCT - ( col1 ) + - - col0 AS col0 FROM tab1 AS cor0
----
37
44
80

onlyif mysql # aggregate syntax: 
query I rowsort label-2136
SELECT MIN( - - 92 ) FROM tab1
----
92

skipif mysql # not compatible
query I rowsort label-2136
SELECT MIN ( - - 92 ) FROM tab1
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query IIIIII rowsort label-2137
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL <= + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query IIIIII rowsort label-2137
SELECT DISTINCT * FROM tab0, tab2 AS cor0 WHERE NULL <= + CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT + 62 - - col1 AS col1 FROM tab1
----
109
67
76

onlyif mysql # aggregate syntax: 
query I rowsort label-2139
SELECT - COUNT( * ) - + 5 FROM tab2
----
-8

skipif mysql # not compatible
query I rowsort label-2139
SELECT - COUNT ( * ) - + 5 FROM tab2
----
-8

query I rowsort
SELECT ALL - + col2 FROM tab1 WHERE NOT - 58 IS NULL
----
-59
-68
-96

query I rowsort
SELECT + col1 - + 53 * - ( + 51 ) + - + col2 FROM tab1 AS cor0
----
2621
2649
2682

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 79 < col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

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

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL > - 56 - ( + col1 ) * - col1 * 45
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2145
SELECT - 20 col2, + COUNT( * ) AS col1 FROM tab0
----
-20
3

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

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

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

query I rowsort
SELECT ALL col0 * 22 FROM tab2 AS cor0
----
1012
1408
1650

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

query II rowsort
SELECT ALL + col2 AS col0, col2 * col2 * - 84 FROM tab2 AS cor0
----
23
-44436
40
-134400
58
-282576

onlyif mysql # aggregate syntax: 
query I rowsort label-2151
SELECT ALL + MAX( - col2 ) col2 FROM tab1 AS cor0
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2151
SELECT ALL + MAX ( - col2 ) col2 FROM tab1 AS cor0
----
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 col0 FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2153
SELECT - COUNT( col1 ) FROM tab0 WHERE NOT - ( 31 ) IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2153
SELECT - COUNT ( col1 ) FROM tab0 WHERE NOT - ( 31 ) IS NULL
----
-3

query I rowsort
SELECT ALL ( - 61 ) AS col0 FROM tab1
----
-61
-61
-61

onlyif mysql # aggregate syntax: 
query I rowsort label-2155
SELECT + 53 * - + MIN( col1 ) FROM tab0
----
-53

skipif mysql # not compatible
query I rowsort label-2155
SELECT + 53 * - + MIN ( col1 ) FROM tab0
----
-53

onlyif mysql # DIV for integer division: 
query I rowsort label-2156
SELECT ALL 47 DIV col1 + + col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2156
SELECT ALL 47 / col1 + + col0 FROM tab2
----
46
64
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col2 ) <> - 47 * + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-2158
SELECT DISTINCT + COUNT( DISTINCT 54 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-2158
SELECT DISTINCT + COUNT ( DISTINCT 54 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT 63 FROM tab0 AS cor0 WHERE col0 >= NULL
----

query I rowsort
SELECT DISTINCT - - ( - - 59 ) * + col0 * 35 + col1 FROM tab1 AS cor0
----
105329
175530
187962

query I rowsort
SELECT DISTINCT col2 + - - col2 AS col2 FROM tab0 AS cor0
----
198
20
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 9 - - col1 + col0 col2 FROM tab0 AS cor0
----
105
107
117

onlyif mysql # aggregate syntax: 
query I rowsort label-2163
SELECT - ( SUM( ALL - col2 ) ) + - MAX( col1 ) + - 20 AS col0 FROM tab0
----
55

skipif mysql # not compatible
query I rowsort label-2163
SELECT - ( SUM ( ALL - col2 ) ) + - MAX ( col1 ) + - 20 AS col0 FROM tab0
----
55

query I rowsort
SELECT 15 * - col0 + - - 45 * + col2 FROM tab1
----
1380
1695
3555

query I rowsort
SELECT + col1 * col2 + - col1 FROM tab0
----
189
3726
98

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2167
SELECT ALL + 8 DIV + 76 AS col2 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2167
SELECT ALL + 8 / + 76 AS col2 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2168
SELECT DISTINCT COUNT( + 77 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2168
SELECT DISTINCT COUNT ( + 77 ) FROM tab1 AS cor0
----
3

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

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2171
SELECT - - 94 DIV - col2 + + 84 + - col2 * - 61 * col1 AS col2 FROM tab0 cor0
----
12885
232309
6123

skipif mysql # not compatible
query I rowsort label-2171
SELECT - - 94 / - col2 + + 84 + - col2 * - 61 * col1 AS col2 FROM tab0 cor0
----
12885
232309
6123

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2173
SELECT ALL MIN( DISTINCT col2 ) FROM tab0 cor0
----
10

skipif mysql # not compatible
query I rowsort label-2173
SELECT ALL MIN ( DISTINCT col2 ) FROM tab0 cor0
----
10

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

query I rowsort
SELECT ALL + + 39 FROM tab2 AS cor0
----
39
39
39

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL = + col2 + + + col1 - + 23
----

query I rowsort
SELECT DISTINCT - 69 + - 56 FROM tab2, tab1 AS cor0
----
-125

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2178
SELECT DISTINCT - + col1 + CAST( + col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-11
-34
98

skipif mysql # not compatible
query I rowsort label-2178
SELECT DISTINCT - + col1 + CAST ( + col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-11
-34
98

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2180
SELECT + - MIN( DISTINCT - + col1 ) AS col2 FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-2180
SELECT + - MIN ( DISTINCT - + col1 ) AS col2 FROM tab1 cor0
----
47

query I rowsort
SELECT - col2 + 87 * + col0 * + 19 FROM tab0 AS cor0
----
143801
160242
24748

onlyif mysql # aggregate syntax: 
query I rowsort label-2182
SELECT ALL - + COUNT( * ) + 8 col0 FROM tab0 AS cor0
----
5

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

query I rowsort
SELECT + + col1 * - 76 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-3876
-5092
-5852

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col1 + + + col1 + + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2185
SELECT + COUNT( DISTINCT + 74 ) AS col1 FROM tab1
----
1

skipif mysql # not compatible
query I rowsort label-2185
SELECT + COUNT ( DISTINCT + 74 ) AS col1 FROM tab1
----
1

onlyif mysql # aggregate syntax: 
query II rowsort label-2186
SELECT DISTINCT + + 55, SUM( 32 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
55
NULL

skipif mysql # not compatible
query II rowsort label-2186
SELECT DISTINCT + + 55, SUM ( 32 ) AS col2 FROM tab1 WHERE NULL IS NOT NULL
----
55
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2187
SELECT - 8 - COUNT( * ) AS col2 FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-2187
SELECT - 8 - COUNT ( * ) AS col2 FROM tab0
----
-11

query II rowsort
SELECT ALL col0 * col0 * + + 40 AS col1, + col1 AS col2 FROM tab2
----
163840
77
225000
67
84640
51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col0 * 92 col0 FROM tab1
----
-4692
-7820
-8372

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2191
SELECT DISTINCT + 91 DIV - col2 FROM tab2 AS cor0
----
-1
-2
-3

skipif mysql # not compatible
query I rowsort label-2191
SELECT DISTINCT + 91 / - col2 FROM tab2 AS cor0
----
-1
-2
-3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2192
SELECT DISTINCT + COUNT( * ) DIV 61 * + - 42 + + ( - 44 ) - + 46 AS col2 FROM tab2 cor0
----
-90

skipif mysql # not compatible
query I rowsort label-2192
SELECT DISTINCT + COUNT ( * ) / 61 * + - 42 + + ( - 44 ) - + 46 AS col2 FROM tab2 cor0
----
-90

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

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

query I rowsort
SELECT ALL - 51 AS col2 FROM tab1 cor0 WHERE NOT + col1 / 68 * - col2 - + col1 IS NULL
----
-51
-51
-51

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

query I rowsort
SELECT ALL + col2 * - - col1 * - + 5 AS col1 FROM tab1
----
-1475
-15980
-6720

onlyif mysql # aggregate syntax: 
query I rowsort label-2197
SELECT ALL + COUNT( * ) * + + COUNT( + 97 ) * - 23 - + - 81 FROM tab1
----
-126

skipif mysql # not compatible
query I rowsort label-2197
SELECT ALL + COUNT ( * ) * + + COUNT ( + 97 ) * - 23 - + - 81 FROM tab1
----
-126

onlyif mysql # aggregate syntax: 
query I rowsort label-2198
SELECT DISTINCT - SUM( ALL - col1 ) FROM tab0
----
103

skipif mysql # not compatible
query I rowsort label-2198
SELECT DISTINCT - SUM ( ALL - col1 ) FROM tab0
----
103

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

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

query I rowsort
SELECT ALL + ( + - col1 ) * 88 * + col2 + + ( - col0 ) AS col1 FROM tab0 AS cor0
----
-18567
-335031
-8809

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 * 64 + - + col2 col2 FROM tab1 AS cor0
----
3717
4284
6048

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( 89 ) col0, - col0 - + + 21 * + + ( - col1 ) AS col2 FROM tab1 cor0
----
89
20
89
243
89
896

onlyif mysql # aggregate syntax: 
query I rowsort label-2203
SELECT + COUNT( + - col1 ) * + + 20 AS col1 FROM tab2
----
60

skipif mysql # not compatible
query I rowsort label-2203
SELECT + COUNT ( + - col1 ) * + + 20 AS col1 FROM tab2
----
60

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col0 + - 42 col2 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-129
-139
-57

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

skipif mysql # not compatible
query I rowsort label-2205
SELECT - 13 / - col0 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL + 89 * + - 61 FROM tab2
----
-5429
-5429
-5429

onlyif mysql # DIV for integer division: 
query I rowsort label-2207
SELECT ALL col0 DIV - - col1 FROM tab1
----
1
17
3

skipif mysql # not compatible
query I rowsort label-2207
SELECT ALL col0 / - - col1 FROM tab1
----
1
17
3

onlyif mysql # DIV for integer division: 
query I rowsort label-2208
SELECT + 79 DIV - + 92 col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2208
SELECT + 79 / - + 92 col1 FROM tab1
----
0
0
0

query I rowsort
SELECT col1 + 7 FROM tab1
----
12
21
54

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 + + + col2 col2 FROM tab1
----
144
147
159

onlyif mysql # DIV for integer division: 
query I rowsort label-2212
SELECT ALL + - 79 + 42 - + - 25 DIV - - 91 FROM tab0 AS cor0
----
-37
-37
-37

skipif mysql # not compatible
query I rowsort label-2212
SELECT ALL + - 79 + 42 - + - 25 / - - 91 FROM tab0 AS cor0
----
-37
-37
-37

onlyif mysql # aggregate syntax: 
query I rowsort label-2213
SELECT DISTINCT - SUM( - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2213
SELECT DISTINCT - SUM ( - col1 ) FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2214
SELECT DISTINCT + 19 DIV COUNT( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-2214
SELECT DISTINCT + 19 / COUNT ( * ) FROM tab1 AS cor0 WHERE NOT + col2 IS NULL
----
6

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

query I rowsort
SELECT ALL + 91 * + - 33 AS col1 FROM tab0 WHERE col0 + - - col2 IS NULL
----

query II rowsort
SELECT DISTINCT - 93 AS col2, + col0 AS col1 FROM tab2 WHERE NOT NULL IN ( + 20, col1, col1 * col0 * col1 + - + col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 61 col2, - col1 FROM tab2
----
61
-51
61
-67
61
-77

query I rowsort
SELECT + col2 AS col0 FROM tab2 WHERE col1 IS NOT NULL
----
23
40
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2220
SELECT DISTINCT CAST( + + SUM( DISTINCT col2 ) AS SIGNED ) FROM tab1
----
223

skipif mysql # not compatible
query I rowsort label-2220
SELECT DISTINCT CAST ( + + SUM ( DISTINCT col2 ) AS INTEGER ) FROM tab1
----
223

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + + 4 AS col2, - col0 col2 FROM tab0 cor0
----
4
-15
4
-87
4
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2223
SELECT 64 * + 43 / - 91 - - CAST( NULL AS SIGNED ) + - 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2223
SELECT 64 * + 43 / - 91 - - CAST ( NULL AS INTEGER ) + - 87 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL - 14 + - col2 + + + col2 FROM tab1 cor0
----
-14
-14
-14

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

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

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2226
SELECT SUM( col2 ) AS col1, ( + - MAX( DISTINCT - CAST( NULL AS SIGNED ) ) ) * - - AVG ( - col0 ) FROM tab1 AS cor0
----
223
NULL

skipif mysql # not compatible
query II rowsort label-2226
SELECT SUM ( col2 ) AS col1, ( + - MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) ) * - - AVG ( - col0 ) FROM tab1 AS cor0
----
223
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT col2 < + col1 * - + col0 * col0 * col1 / + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2228
SELECT * FROM tab1 WHERE NOT + 72 * - CAST( col0 AS SIGNED ) + + 8 < - 88 * 28
----

skipif mysql # not compatible
query III rowsort label-2228
SELECT * FROM tab1 WHERE NOT + 72 * - CAST ( col0 AS INTEGER ) + + 8 < - 88 * 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2229
SELECT ALL + + MAX( ALL + col1 ) AS col1 FROM tab0 WHERE - col1 - - + col0 * 90 IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2229
SELECT ALL + + MAX ( ALL + col1 ) AS col1 FROM tab0 WHERE - col1 - - + col0 * 90 IS NULL
----
NULL

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

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

onlyif mysql # CAST syntax: DECIMAL type: 
query IIIIII rowsort label-2231
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL >= CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query IIIIII rowsort label-2231
SELECT DISTINCT * FROM tab2, tab0 AS cor0 WHERE NOT NULL >= CAST ( NULL AS REAL )
----

query I rowsort
SELECT ALL col1 / col1 FROM tab2 AS cor0 WHERE NOT 35 NOT IN ( + - 35 )
----

query I rowsort
SELECT ALL col0 * + - 38 + - col1 FROM tab0 WHERE - - col1 IS NOT NULL
----
-3327
-3687
-651

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2235
SELECT ALL + col0 + col2 DIV - + col1 FROM tab1 AS cor0
----
45
74
90

skipif mysql # not compatible
query I rowsort label-2235
SELECT ALL + col0 + col2 / - + col1 FROM tab1 AS cor0
----
45
74
90

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2236
SELECT ALL * FROM tab1 cor0 WHERE ( col0 / CAST( NULL AS SIGNED ) * - 25 * - col2 - - 11 ) <= col2 + - col2
----

skipif mysql # not compatible
query III rowsort label-2236
SELECT ALL * FROM tab1 cor0 WHERE ( col0 / CAST ( NULL AS INTEGER ) * - 25 * - col2 - - 11 ) <= col2 + - col2
----

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2238
SELECT ALL - ( - 2 ) * - COUNT( * ) + 72 + - 3 AS col1 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-2238
SELECT ALL - ( - 2 ) * - COUNT ( * ) + 72 + - 3 AS col1 FROM tab0 AS cor0
----
63

query II rowsort
SELECT - col2 + + + col1 + + - col2, + col2 FROM tab2 AS cor0
----
-3
40
-49
58
5
23

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 + - + col0 + + 60 IS NOT NULL
----

query I rowsort
SELECT - 2 + + + 62 AS col0 FROM tab1 AS cor0
----
60
60
60

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2242
SELECT CAST( - - col1 AS SIGNED ) * col1 + col2 FROM tab1
----
2277
292
84

skipif mysql # not compatible
query I rowsort label-2242
SELECT CAST ( - - col1 AS INTEGER ) * col1 + col2 FROM tab1
----
2277
292
84

onlyif mysql # aggregate syntax: 
query I rowsort label-2243
SELECT COUNT( * ) * - 20 FROM tab1
----
-60

skipif mysql # not compatible
query I rowsort label-2243
SELECT COUNT ( * ) * - 20 FROM tab1
----
-60

onlyif mysql # DIV for integer division: 
query I rowsort label-2244
SELECT + + col0 DIV + col1 + col0 col1 FROM tab1 AS cor0
----
102
54
92

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2244
SELECT + + col0 / + col1 + col0 col1 FROM tab1 AS cor0
----
102
54
92

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2246
SELECT DISTINCT ( + MAX( ALL + 9 ) ) AS col1 FROM tab2 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-2246
SELECT DISTINCT ( + MAX ( ALL + 9 ) ) AS col1 FROM tab2 AS cor0
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-2247
SELECT ALL COUNT( * ) * - + 58 + - 61 AS col1 FROM tab1 AS cor0
----
-235

skipif mysql # not compatible
query I rowsort label-2247
SELECT ALL COUNT ( * ) * - + 58 + - 61 AS col1 FROM tab1 AS cor0
----
-235

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

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2249
SELECT + col2 FROM tab0 AS cor0 WHERE + col0 * - - col2 > - ( + CAST( - + col2 AS SIGNED ) )
----
10
47
99

skipif mysql # not compatible
query I rowsort label-2249
SELECT + col2 FROM tab0 AS cor0 WHERE + col0 * - - col2 > - ( + CAST ( - + col2 AS INTEGER ) )
----
10
47
99

onlyif mysql # aggregate syntax: 
query II rowsort label-2250
SELECT - ( - COUNT( * ) ) + 83 AS col1, - 13 FROM tab2
----
86
-13

skipif mysql # not compatible
query II rowsort label-2250
SELECT - ( - COUNT ( * ) ) + 83 AS col1, - 13 FROM tab2
----
86
-13

onlyif mysql # aggregate syntax: 
query I rowsort label-2251
SELECT - 35 * + COUNT( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-315

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2251
SELECT - 35 * + COUNT ( * ) col0 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-315

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-2252
SELECT + MAX( - col2 ) + + CAST( NULL AS DECIMAL ) AS col1, + MIN( - col0 ) FROM tab2
----
NULL
-75

skipif mysql # not compatible
query II rowsort label-2252
SELECT + MAX ( - col2 ) + + CAST ( NULL AS REAL ) AS col1, + MIN ( - col0 ) FROM tab2
----
NULL
-75

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

query I rowsort
SELECT - col0 * ( + + 68 ) AS col2 FROM tab2 cor0
----
-3128
-4352
-5100

onlyif mysql # aggregate syntax: 
query II rowsort label-2255
SELECT 41, - MIN( 42 ) * - COUNT( * ) + + COUNT( * ) * COUNT( * ) AS col0 FROM tab1
----
41
135

skipif mysql # not compatible
query II rowsort label-2255
SELECT 41, - MIN ( 42 ) * - COUNT ( * ) + + COUNT ( * ) * COUNT ( * ) AS col0 FROM tab1
----
41
135

query I rowsort
SELECT ALL - 12 * - - col2 FROM tab2
----
-276
-480
-696

query I rowsort
SELECT col0 * col2 FROM tab2 WHERE NOT + 97 / + + 50 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2258
SELECT + col1 AS col1, CAST( - 29 AS SIGNED ) + col1 FROM tab2
----
51
22
67
38
77
48

skipif mysql # not compatible
query II rowsort label-2258
SELECT + col1 AS col1, CAST ( - 29 AS INTEGER ) + col1 FROM tab2
----
51
22
67
38
77
48

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE + 22 > - + 35
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 36 col0, col2 + - col1 * col2 AS col2 FROM tab0
----
36
-200
36
-3760
36
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2261
SELECT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col1 ) >= col1
----
0

skipif mysql # not compatible
query I rowsort label-2261
SELECT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col1 ) >= col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2262
SELECT - ( SUM( ALL + col0 ) ) + COUNT( * ) + 11 AS col1 FROM tab1 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-2262
SELECT - ( SUM ( ALL + col0 ) ) + COUNT ( * ) + 11 AS col1 FROM tab1 AS cor0
----
-213

query I rowsort
SELECT ALL + + 46 FROM tab2 AS cor0 WHERE NOT ( NOT - col0 = col2 * + 11 )
----

query I rowsort
SELECT DISTINCT col2 + - 34 + + - 41 FROM tab2 AS cor0
----
-17
-35
-52

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

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

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

query II rowsort
SELECT - col1, - 25 AS col2 FROM tab2 cor0 WHERE NULL >= - col2 + - col1 / + 57
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2268
SELECT DISTINCT + 97 * + - COUNT( * ) + + - MIN( ALL 88 ) AS col1 FROM tab0 AS cor0
----
-379

skipif mysql # not compatible
query I rowsort label-2268
SELECT DISTINCT + 97 * + - COUNT ( * ) + + - MIN ( ALL 88 ) AS col1 FROM tab0 AS cor0
----
-379

query I rowsort
SELECT ALL - col0 * + - 48 AS col1 FROM tab0 AS cor0
----
4176
4656
720

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + 90 * + + 14 > + 26
----

query III rowsort
SELECT * FROM tab2 WHERE + col1 / + + col1 + - 22 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2272
SELECT DISTINCT - COUNT( * ) - ( - + MIN( DISTINCT col1 ) ) AS col1 FROM tab2
----
48

skipif mysql # not compatible
query I rowsort label-2272
SELECT DISTINCT - COUNT ( * ) - ( - + MIN ( DISTINCT col1 ) ) AS col1 FROM tab2
----
48

onlyif mysql # aggregate syntax: 
query I rowsort label-2273
SELECT ALL MIN( ALL col1 ) AS col1 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-2273
SELECT ALL MIN ( ALL col1 ) AS col1 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2274
SELECT ALL 24 + + - COUNT( * ) FROM tab1 AS cor0
----
21

skipif mysql # not compatible
query I rowsort label-2274
SELECT ALL 24 + + - COUNT ( * ) FROM tab1 AS cor0
----
21

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

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

onlyif mysql # DIV for integer division: 
query I rowsort label-2276
SELECT 4 DIV col0 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2276
SELECT 4 / col0 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2277
SELECT - COUNT( ALL col1 ) + - 45 FROM tab0
----
-48

skipif mysql # not compatible
query I rowsort label-2277
SELECT - COUNT ( ALL col1 ) + - 45 FROM tab0
----
-48

query I rowsort
SELECT ALL + 47 + + col1 AS col2 FROM tab1 WHERE + col0 + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2279
SELECT ALL - 78 - + COUNT( * ) col2 FROM tab0
----
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2279
SELECT ALL - 78 - + COUNT ( * ) col2 FROM tab0
----
-81

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

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN col0 * - 94 AND NULL
----

query I rowsort
SELECT DISTINCT + 49 * + col0 + + col0 FROM tab1
----
2550
4250
4550

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

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

onlyif mysql # aggregate syntax: 
query I rowsort label-2284
SELECT + COUNT( * ) + ( 63 ) FROM tab2
----
66

skipif mysql # not compatible
query I rowsort label-2284
SELECT + COUNT ( * ) + ( 63 ) FROM tab2
----
66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2285
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( - col2 ) IN ( + CAST( col0 AS SIGNED ) )
----
59
68
96

skipif mysql # not compatible
query I rowsort label-2285
SELECT DISTINCT col2 FROM tab1 WHERE NOT ( - col2 ) IN ( + CAST ( col0 AS INTEGER ) )
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2286
SELECT MIN( 65 ) FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-2286
SELECT MIN ( 65 ) FROM tab1
----
65

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT + 9 / - col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( 99 * ( col1 ) ) >= col2 * 85
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL col1 + 87 AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col2 / col2 + + 26
----

query I rowsort
SELECT col2 FROM tab0 WHERE NOT ( ( ( - 37 ) ) - 6 * + col2 ) <> ( 28 ) * - col0
----

query I rowsort
SELECT + 22 - 94 AS col1 FROM tab2
----
-72
-72
-72

query I rowsort
SELECT ALL - 57 + ( col2 ) FROM tab0
----
-10
-47
42

query I rowsort
SELECT ALL - 82 AS col0 FROM tab1 WHERE 98 IS NOT NULL
----
-82
-82
-82

query I rowsort
SELECT - col0 + + 4 FROM tab2
----
-42
-60
-71

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

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 34 <> NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( NULL ) < ( - 77 - 83 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2298
SELECT ALL - 72 + + COUNT( * ) FROM tab0
----
-69

skipif mysql # not compatible
query I rowsort label-2298
SELECT ALL - 72 + + COUNT ( * ) FROM tab0
----
-69

onlyif mysql # aggregate syntax: 
query I rowsort label-2299
SELECT + 8 + + COUNT( * ) * - COUNT( * ) FROM tab1 AS cor0 WHERE NOT NULL >= 62
----
8

skipif mysql # not compatible
query I rowsort label-2299
SELECT + 8 + + COUNT ( * ) * - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT NULL >= 62
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-2300
SELECT ALL - SUM( DISTINCT - col2 ) FROM tab0 AS cor0
----
156

skipif mysql # not compatible
query I rowsort label-2300
SELECT ALL - SUM ( DISTINCT - col2 ) FROM tab0 AS cor0
----
156

onlyif mysql # aggregate syntax: 
query I rowsort label-2301
SELECT ALL 25 * COUNT( * ) FROM tab1 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-2301
SELECT ALL 25 * COUNT ( * ) FROM tab1 AS cor0
----
75

onlyif mysql # DIV for integer division: 
query I rowsort label-2302
SELECT DISTINCT + ( 82 ) + 64 DIV + col2 FROM tab1 AS cor0
----
82
83

skipif mysql # not compatible
query I rowsort label-2302
SELECT DISTINCT + ( 82 ) + 64 / + col2 FROM tab1 AS cor0
----
82
83

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

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

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col1 + + col1 col1 FROM tab2 WHERE col0 * + col2 + - 54 IS NOT NULL
----
0

query I rowsort
SELECT - - col0 + 72 * col0 AS col2 FROM tab2 AS cor0
----
3358
4672
5475

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL BETWEEN - 56 * - col0 + 67 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2308
SELECT DISTINCT + col2 DIV + col2 + + col2 * - col0 FROM tab1 AS cor0
----
-4895
-5014
-6187

skipif mysql # not compatible
query I rowsort label-2308
SELECT DISTINCT + col2 / + col2 + + col2 * - col0 FROM tab1 AS cor0
----
-4895
-5014
-6187

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

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

query I rowsort
SELECT col0 FROM tab0 cor0 WHERE NULL >= col0
----

query I rowsort
SELECT + ( col1 ) + col1 * + 86 AS col1 FROM tab1 AS cor0
----
1218
4089
435

onlyif mysql # aggregate syntax: 
query I rowsort label-2312
SELECT + - COUNT( * ) + 56 FROM tab2 AS cor0
----
53

skipif mysql # not compatible
query I rowsort label-2312
SELECT + - COUNT ( * ) + 56 FROM tab2 AS cor0
----
53

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE col2 + + 87 IS NOT NULL
----
10
47
99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2314
SELECT col2 * 82 AS col2 FROM tab2 AS cor0 WHERE + CAST( NULL AS SIGNED ) * - col2 + 26 BETWEEN col0 * + 31 AND 99
----

skipif mysql # not compatible
query I rowsort label-2314
SELECT col2 * 82 AS col2 FROM tab2 AS cor0 WHERE + CAST ( NULL AS INTEGER ) * - col2 + 26 BETWEEN col0 * + 31 AND 99
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2315
SELECT + ( MAX( DISTINCT + col2 ) ) + 92 AS col2 FROM tab0 AS cor0
----
191

skipif mysql # not compatible
query I rowsort label-2315
SELECT + ( MAX ( DISTINCT + col2 ) ) + 92 AS col2 FROM tab0 AS cor0
----
191

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

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

query III rowsort
SELECT * FROM tab1 WHERE 14 IS NULL
----

query I rowsort
SELECT DISTINCT 83 + - 14 FROM tab0
----
69

onlyif mysql # aggregate syntax: 
query I rowsort label-2320
SELECT DISTINCT + MAX( + - 89 ) * + 95 FROM tab1
----
-8455

skipif mysql # not compatible
query I rowsort label-2320
SELECT DISTINCT + MAX ( + - 89 ) * + 95 FROM tab1
----
-8455

query I rowsort
SELECT + col2 * + ( + col1 ) * col2 AS col2 FROM tab1
----
129024
17405
217328

onlyif mysql # aggregate syntax: 
query I rowsort label-2322
SELECT DISTINCT + 62 + COUNT( * ) FROM tab2
----
65

skipif mysql # not compatible
query I rowsort label-2322
SELECT DISTINCT + 62 + COUNT ( * ) FROM tab2
----
65

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

query III rowsort
SELECT * FROM tab2 cor0 WHERE 65 = NULL AND NOT + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2325
SELECT + COUNT( 27 ) - - COUNT( * ) * 99 AS col0 FROM tab0 AS cor0
----
300

skipif mysql # not compatible
query I rowsort label-2325
SELECT + COUNT ( 27 ) - - COUNT ( * ) * 99 AS col0 FROM tab0 AS cor0
----
300

query I rowsort
SELECT ALL col1 * col0 * + col2 AS col0 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-2327
SELECT DISTINCT + SUM( ( 98 ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
882

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2327
SELECT DISTINCT + SUM ( ( 98 ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
882

query IIIIII rowsort
SELECT ALL * FROM tab1, tab0 AS cor0 WHERE NOT NULL = + 72
----

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

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

query II rowsort
SELECT col0 AS col0, col2 AS col1 FROM tab1 cor0
----
51
96
85
59
91
68

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 <> ( col1 + - col2 * 52 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2333
SELECT DISTINCT + - COUNT( * ) * + SUM( - col2 ) FROM tab0 AS cor0
----
468

skipif mysql # not compatible
query I rowsort label-2333
SELECT DISTINCT + - COUNT ( * ) * + SUM ( - col2 ) FROM tab0 AS cor0
----
468

query I rowsort
SELECT 65 * + col1 + + ( + col2 ) + col2 FROM tab2 AS cor0
----
3361
4471
5085

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2335
SELECT col1 FROM tab0 AS cor0 WHERE NOT ( - col2 ) NOT BETWEEN CAST( ( - col2 ) AS SIGNED ) AND ( NULL )
----

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

query I rowsort
SELECT DISTINCT 17 * + col1 FROM tab2 cor0
----
1139
1309
867

onlyif mysql # DIV for integer division: 
query I rowsort label-2337
SELECT ALL + - 59 DIV + - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-2337
SELECT ALL + - 59 / + - col1 AS col0 FROM tab2 AS cor0
----
0
0
1

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

query I rowsort
SELECT DISTINCT - - 35 FROM tab0 cor0
----
35

onlyif mysql # DIV for integer division: 
query II rowsort label-2340
SELECT + col0, col0 DIV - + col2 + + 55 FROM tab2 AS cor0
----
46
53
64
54
75
54

skipif mysql # not compatible
query II rowsort label-2340
SELECT + col0, col0 / - + col2 + + 55 FROM tab2 AS cor0
----
46
53
64
54
75
54

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

skipif mysql # not compatible
query I rowsort label-2341
SELECT + COUNT ( ALL + CAST ( 66 AS INTEGER ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2342
SELECT MIN( DISTINCT - col1 ) AS col0 FROM tab0
----
-81

skipif mysql # not compatible
query I rowsort label-2342
SELECT MIN ( DISTINCT - col1 ) AS col0 FROM tab0
----
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1 * + col1 col1, col2 FROM tab0
----
1
99
441
10
6561
47

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

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

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

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT ( NULL ) NOT IN ( 90 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2348
SELECT DISTINCT + MAX( ALL + ( + 81 ) ) + - + SUM( ALL 32 ) AS col0 FROM tab2 AS cor0
----
-15

skipif mysql # not compatible
query I rowsort label-2348
SELECT DISTINCT + MAX ( ALL + ( + 81 ) ) + - + SUM ( ALL 32 ) AS col0 FROM tab2 AS cor0
----
-15

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

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

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NULL < NULL
----

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

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

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

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

query I rowsort
SELECT DISTINCT col2 + + col1 - - 25 - - col0 * + - col0 * 41 + - col1 * col0 FROM tab1 AS cor0
----
-107220
-296561
-343658

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2354
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND ( NULL ) IN ( - col0 * - col0 + ( - 51 ) * + CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) / + CAST( CAST( NULL AS DECIMAL ) / 69 AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-2354
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL IS NULL AND ( NULL ) IN ( - col0 * - col0 + ( - 51 ) * + CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) / + CAST ( CAST ( NULL AS REAL ) / 69 AS REAL ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2355
SELECT - - 24 - - COUNT( * ) FROM tab0 cor0
----
27

skipif mysql # not compatible
query I rowsort label-2355
SELECT - - 24 - - COUNT ( * ) FROM tab0 cor0
----
27

query I rowsort
SELECT + col0 * - + 85 - - 41 AS col0 FROM tab0 AS cor0
----
-1234
-7354
-8204

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2357
SELECT + + 17 DIV - 53 + CAST( + COUNT( * ) AS SIGNED ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2357
SELECT + + 17 / - 53 + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT ALL - 5 + - ( - 91 ) AS col0 FROM tab2 AS cor0
----
86
86
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 8 + col0 col2 FROM tab0 AS cor0
----
7
79
89

query I rowsort
SELECT + - col1 AS col2 FROM tab1 WHERE NULL IS NULL
----
-14
-47
-5

query I rowsort
SELECT ALL + col0 * + col0 * - ( - col2 ) - + - col2 FROM tab1
----
249792
426334
563176

query II rowsort
SELECT - 7 + - 56, 66 AS col2 FROM tab2
----
-63
66
-63
66
-63
66

query I rowsort
SELECT DISTINCT 59 * 18 FROM tab2 WHERE NOT ( NOT ( NULL IN ( - col1 ) ) )
----

query I rowsort
SELECT - col1 + + col0 + + col1 * - 35 FROM tab0
----
-2901
-669
61

onlyif mysql # DIV for integer division: 
query II rowsort label-2365
SELECT DISTINCT - col1 AS col1, col2 DIV col0 + + - col2 - - 75 FROM tab2 AS cor0
----
-51
52
-67
17
-77
35

skipif mysql # not compatible
query II rowsort label-2365
SELECT DISTINCT - col1 AS col1, col2 / col0 + + - col2 - - 75 FROM tab2 AS cor0
----
-51
52
-67
17
-77
35

onlyif mysql # DIV for integer division: 
query I rowsort label-2366
SELECT + 44 DIV - - 56 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2366
SELECT + 44 / - - 56 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + col1 AS col0, - col1 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-2368
SELECT - + MIN( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2368
SELECT - + MIN ( ALL + col1 ) AS col0 FROM tab1 AS cor0
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-2369
SELECT + + COUNT( * ) AS col1 FROM tab2 WHERE NOT col1 - + 1 BETWEEN NULL AND - col1
----
3

skipif mysql # not compatible
query I rowsort label-2369
SELECT + + COUNT ( * ) AS col1 FROM tab2 WHERE NOT col1 - + 1 BETWEEN NULL AND - col1
----
3

query I rowsort
SELECT ALL - 39 * + - col0 FROM tab2 AS cor0
----
1794
2496
2925

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 <> col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col1 * - 75 * + col0 / - + 58 - col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2373
SELECT - 81 + - ( + col0 ) FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col2 * - - col1 / + 21 + - - col1 * - CAST( + col1 AS SIGNED ) )
----

skipif mysql # not compatible
query I rowsort label-2373
SELECT - 81 + - ( + col0 ) FROM tab2 AS cor0 WHERE NOT col2 NOT IN ( col2 * - - col1 / + 21 + - - col1 * - CAST ( + col1 AS INTEGER ) )
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 8 * - 15 + col0 IS NOT NULL
----

query II rowsort
SELECT - col0 * - col0 AS col1, col2 FROM tab0 AS cor0
----
225
47
7569
10
9409
99

query I rowsort
SELECT - 28 * - - col1 + - - col2 FROM tab1 AS cor0
----
-1248
-296
-81

query I rowsort
SELECT + + 46 * col2 AS col1 FROM tab0 AS cor0
----
2162
4554
460

query III rowsort
SELECT - col2 * - col0 AS col0, 67 AS col1, 69 * - + 20 + + col0 + - 73 * col1 AS col2 FROM tab1 AS cor0
----
9 values hashing to b6f0ed79d74f98f9a194b9ed52425414

query I rowsort
SELECT + col1 + - 94 AS col1 FROM tab2 cor0
----
-17
-27
-43

query II rowsort
SELECT ALL + 23, col2 + + 94 AS col0 FROM tab1
----
23
153
23
162
23
190

onlyif mysql # aggregate syntax: 
query I rowsort label-2381
SELECT ALL - COUNT( DISTINCT - col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-2381
SELECT ALL - COUNT ( DISTINCT - col2 ) AS col2 FROM tab0
----
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 * - + col2 col2 FROM tab2
----
1600
3364
529

onlyif mysql # aggregate syntax: 
query I rowsort label-2383
SELECT ALL COUNT( * ) * + + 55 AS col0 FROM tab2
----
165

skipif mysql # not compatible
query I rowsort label-2383
SELECT ALL COUNT ( * ) * + + 55 AS col0 FROM tab2
----
165

onlyif mysql # aggregate syntax: 
query II rowsort label-2384
SELECT - 66, + 93 + MIN( 50 ) AS col2 FROM tab0 AS cor0
----
-66
143

skipif mysql # not compatible
query II rowsort label-2384
SELECT - 66, + 93 + MIN ( 50 ) AS col2 FROM tab0 AS cor0
----
-66
143

query I rowsort
SELECT col0 * + col2 * 45 AS col1 FROM tab0 AS cor0
----
31725
39150
432135

onlyif mysql # aggregate syntax: 
query I rowsort label-2386
SELECT 10 + + + SUM( ALL + 10 ) + MAX( + col0 ) AS col0 FROM tab0
----
137

skipif mysql # not compatible
query I rowsort label-2386
SELECT 10 + + + SUM ( ALL + 10 ) + MAX ( + col0 ) AS col0 FROM tab0
----
137

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2387
SELECT ALL - 97 / - MIN( ALL + col0 ) + CAST( NULL AS SIGNED ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2387
SELECT ALL - 97 / - MIN ( ALL + col0 ) + CAST ( NULL AS INTEGER ) FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 * + ( - + 95 ) - col2 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2389
SELECT DISTINCT - COUNT( * ) - - - ( + MIN( ALL - + col0 ) ) + - COUNT( * ) col1 FROM tab0 cor0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2389
SELECT DISTINCT - COUNT ( * ) - - - ( + MIN ( ALL - + col0 ) ) + - COUNT ( * ) col1 FROM tab0 cor0
----
91

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2390
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 * CAST( NULL AS SIGNED ) <= ( - col1 )
----

skipif mysql # not compatible
query III rowsort label-2390
SELECT * FROM tab0 AS cor0 WHERE col1 * col1 * CAST ( NULL AS INTEGER ) <= ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2391
SELECT MAX( DISTINCT - + ( + + 63 ) ) AS col0 FROM tab1
----
-63

skipif mysql # not compatible
query I rowsort label-2391
SELECT MAX ( DISTINCT - + ( + + 63 ) ) AS col0 FROM tab1
----
-63

query I rowsort
SELECT DISTINCT - col0 - - 52 FROM tab1
----
-33
-39
1

query I rowsort
SELECT DISTINCT + col2 - + 37 AS col2 FROM tab2
----
-14
21
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2394
SELECT DISTINCT COUNT( * ) - - COUNT( * ) * - COUNT( * ) col1 FROM tab1
----
-6

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2394
SELECT DISTINCT COUNT ( * ) - - COUNT ( * ) * - COUNT ( * ) col1 FROM tab1
----
-6

query I rowsort
SELECT DISTINCT + col2 * - 54 AS col0 FROM tab0
----
-2538
-5346
-540

onlyif mysql # aggregate syntax: 
query I rowsort label-2396
SELECT ALL + SUM( - ( - col2 ) ) FROM tab2
----
121

skipif mysql # not compatible
query I rowsort label-2396
SELECT ALL + SUM ( - ( - col2 ) ) FROM tab2
----
121

onlyif mysql # aggregate syntax: 
query I rowsort label-2397
SELECT DISTINCT COUNT( * ) * - 42 AS col2 FROM tab2 AS cor0
----
-126

skipif mysql # not compatible
query I rowsort label-2397
SELECT DISTINCT COUNT ( * ) * - 42 AS col2 FROM tab2 AS cor0
----
-126

onlyif mysql # DIV for integer division: 
query I rowsort label-2398
SELECT ALL + 97 DIV 93 AS col2 FROM tab2 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2398
SELECT ALL + 97 / 93 AS col2 FROM tab2 AS cor0
----
1
1
1

query I rowsort
SELECT ALL + - 49 FROM tab1 AS cor0 WHERE NOT col0 * 35 * + + 55 IS NULL
----
-49
-49
-49

query II rowsort
SELECT ALL + + col2 AS col2, col2 FROM tab0 cor0
----
10
10
47
47
99
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2401
SELECT ALL - 19 AS col1, - col1 * col2, + + CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
9 values hashing to d882624d4354f5da0915dc73471e6f4e

skipif mysql # not compatible
query III rowsort label-2401
SELECT ALL - 19 AS col1, - col1 * col2, + + CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
9 values hashing to d882624d4354f5da0915dc73471e6f4e

query I rowsort
SELECT ALL - - 13 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to 184e52d7aa5aa66591291e39c67a3dfb

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2403
SELECT + COUNT( * ) col0, - CAST( NULL AS SIGNED ) FROM tab0
----
3
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2403
SELECT + COUNT ( * ) col0, - CAST ( NULL AS INTEGER ) FROM tab0
----
3
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2404
SELECT ALL + SUM( ALL CAST( - 81 AS SIGNED ) ) AS col0 FROM tab0
----
-243

skipif mysql # not compatible
query I rowsort label-2404
SELECT ALL + SUM ( ALL CAST ( - 81 AS INTEGER ) ) AS col0 FROM tab0
----
-243

onlyif mysql # aggregate syntax: 
query I rowsort label-2405
SELECT + MAX( + - col2 ) AS col2 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-2405
SELECT + MAX ( + - col2 ) AS col2 FROM tab2
----
-23

query I rowsort
SELECT DISTINCT - col2 * - 41 AS col2 FROM tab0 AS cor0
----
1927
4059
410

onlyif mysql # aggregate syntax: 
query I rowsort label-2407
SELECT DISTINCT + + MAX( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

skipif mysql # not compatible
query I rowsort label-2407
SELECT DISTINCT + + MAX ( DISTINCT + col2 ) AS col0 FROM tab2 AS cor0
----
58

query I rowsort
SELECT + + ( 30 ) FROM tab0 AS cor0
----
30
30
30

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 * - 83 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 * 91 * 10 FROM tab1 AS cor0
----
-46410
-77350
-82810

query II rowsort
SELECT ALL - 72 AS col2, col1 + + ( - col1 ) FROM tab1 AS cor0
----
-72
0
-72
0
-72
0

query I rowsort
SELECT DISTINCT - col1 + + + col1 AS col2 FROM tab0 cor0
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) <> col1 - + col0 + + col2
----

query I rowsort
SELECT + col2 * 58 FROM tab2
----
1334
2320
3364

query I rowsort
SELECT DISTINCT - ( 98 ) * + 98 * 44 FROM tab1
----
-422576

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2416
SELECT CAST( - - 7 AS SIGNED ) DIV COUNT( - + col2 ) DIV - - COUNT( * ) + - + COUNT( * ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-2416
SELECT CAST ( - - 7 AS INTEGER ) / COUNT ( - + col2 ) / - - COUNT ( * ) + - + COUNT ( * ) AS col1 FROM tab2
----
-3

query II rowsort
SELECT DISTINCT + col2 + col1, + col2 FROM tab1
----
110
96
115
68
64
59

query I rowsort
SELECT DISTINCT - ( + 94 ) AS col0 FROM tab1, tab1 AS cor0
----
-94

query I rowsort
SELECT DISTINCT + - 57 + col0 FROM tab0 cor0
----
-42
30
40

query I rowsort
SELECT DISTINCT 38 + col0 + + col1 AS col0 FROM tab2 AS cor0
----
135
179
180

query I rowsort
SELECT ALL + 29 + ( + - 49 ) AS col1 FROM tab2 AS cor0
----
-20
-20
-20

query I rowsort
SELECT - 1 - col1 * 82 AS col1 FROM tab1 AS cor0
----
-1149
-3855
-411

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 col0 FROM tab1 AS cor0 WHERE NOT ( NULL ) > 3
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2424
SELECT + + 85 - - SUM( + 52 ) AS col2 FROM tab1 AS cor0
----
241

skipif mysql # not compatible
query I rowsort label-2424
SELECT + + 85 - - SUM ( + 52 ) AS col2 FROM tab1 AS cor0
----
241

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2425
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < 23 * + + CAST( + 75 AS SIGNED ) + + col2
----

skipif mysql # not compatible
query III rowsort label-2425
SELECT ALL * FROM tab0 AS cor0 WHERE NOT ( NULL ) < 23 * + + CAST ( + 75 AS INTEGER ) + + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 + - ( 90 ) + - 10 col0 FROM tab2 cor0
----
-123
-140
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-2427
SELECT ALL - + 28 + + + COUNT( * ) FROM tab1 AS cor0
----
-25

skipif mysql # not compatible
query I rowsort label-2427
SELECT ALL - + 28 + + + COUNT ( * ) FROM tab1 AS cor0
----
-25

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT - col2 <> 52 * 21 * - 16 * 49
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2429
SELECT SUM( DISTINCT + col0 ) + + + COUNT( * ) FROM tab2
----
188

skipif mysql # not compatible
query I rowsort label-2429
SELECT SUM ( DISTINCT + col0 ) + + + COUNT ( * ) FROM tab2
----
188

query I rowsort
SELECT ALL - 74 + + col2 - col1 + - 9 FROM tab1
----
-1
-29
-62

query III rowsort
SELECT * FROM tab0 WHERE - 80 + + col0 * + col2 + + 46 IN ( col2, + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2432
SELECT COUNT( * ) * 82 + 0 AS col1 FROM tab1
----
246

skipif mysql # not compatible
query I rowsort label-2432
SELECT COUNT ( * ) * 82 + 0 AS col1 FROM tab1
----
246

query III rowsort
SELECT ALL * FROM tab0 WHERE + col2 <> col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2434
SELECT ALL MIN( ALL - col2 ) FROM tab0
----
-99

skipif mysql # not compatible
query I rowsort label-2434
SELECT ALL MIN ( ALL - col2 ) FROM tab0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-2435
SELECT ALL + ( + SUM( col2 ) ) * + COUNT( * ) AS col0 FROM tab2
----
363

skipif mysql # not compatible
query I rowsort label-2435
SELECT ALL + ( + SUM ( col2 ) ) * + COUNT ( * ) AS col0 FROM tab2
----
363

query I rowsort
SELECT col1 * col2 + - col0 - - - 79 FROM tab2 AS cor0
----
1048
2937
3732

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 71 <= NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL BETWEEN col2 AND + + col0
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2439
SELECT + CAST( NULL AS SIGNED ) / + 59 * - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2439
SELECT + CAST ( NULL AS INTEGER ) / + 59 * - + col2 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 * col0 * - - 72 AS col1 FROM tab0 AS cor0
----
-131544
-6984
-87480

query I rowsort
SELECT col0 * + - col1 AS col1 FROM tab0 AS cor0
----
-1215
-1827
-97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL 45 AS col1, - col0 * - + col2 col2 FROM tab2
----
45
1058
45
2560
45
4350

query II rowsort
SELECT ALL - col2 AS col1, 27 AS col0 FROM tab1 AS cor0
----
-59
27
-68
27
-96
27

query I rowsort
SELECT DISTINCT 38 / col1 FROM tab0 AS cor0 WHERE NULL < col1 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2445
SELECT - SUM( + col2 ) col2 FROM tab1 cor0
----
-223

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2445
SELECT - SUM ( + col2 ) col2 FROM tab1 cor0
----
-223

query I rowsort
SELECT 11 + 38 FROM tab2 AS cor0
----
49
49
49

query II rowsort
SELECT DISTINCT col2 + - col2 - + - 52 AS col1, - 28 FROM tab2 AS cor0
----
52
-28

onlyif mysql # aggregate syntax: 
query I rowsort label-2448
SELECT 47 + - - COUNT( * ) col0 FROM tab1 cor0
----
50

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2448
SELECT 47 + - - COUNT ( * ) col0 FROM tab1 cor0
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2449
SELECT CAST( + col2 AS SIGNED ) + + 79 FROM tab2 AS cor0
----
102
119
137

skipif mysql # not compatible
query I rowsort label-2449
SELECT CAST ( + col2 AS INTEGER ) + + 79 FROM tab2 AS cor0
----
102
119
137

query I rowsort
SELECT DISTINCT - 92 + + 57 + 96 - - + 94 AS col2 FROM tab2 AS cor0
----
155

query I rowsort
SELECT DISTINCT - + 88 * + + col2 AS col2 FROM tab0 AS cor0
----
-4136
-8712
-880

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 col2 FROM tab2
----
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 11 col1, - col2 AS col0 FROM tab2
----
11
-23
11
-40
11
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-2454
SELECT DISTINCT - 14 DIV - col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2454
SELECT DISTINCT - 14 / - col0 FROM tab2
----
0

query II rowsort
SELECT - 46, + 46 * + - col1 + col1 AS col0 FROM tab2
----
-46
-2295
-46
-3015
-46
-3465

query II rowsort
SELECT DISTINCT - col2 AS col0, - col0 FROM tab0
----
-10
-87
-47
-15
-99
-97

onlyif mysql # DIV for integer division: 
query I rowsort label-2457
SELECT ALL + ( + + 36 ) DIV + + col1 + - + col0 DIV - + col0 AS col2 FROM tab1 AS cor0
----
1
3
8

skipif mysql # not compatible
query I rowsort label-2457
SELECT ALL + ( + + 36 ) / + + col1 + - + col0 / - + col0 AS col2 FROM tab1 AS cor0
----
1
3
8

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2458
SELECT + - 1 DIV + COUNT( * ) AS col1 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2458
SELECT + - 1 / + COUNT ( * ) AS col1 FROM tab1 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2459
SELECT DISTINCT + CAST( NULL AS SIGNED ) + ( col2 ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2459
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + ( col2 ) + col2 AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( + col1 IS NULL )
----

query I rowsort
SELECT 2 + - 66 AS col2 FROM tab0
----
-64
-64
-64

query I rowsort
SELECT DISTINCT col1 FROM tab0 cor0 WHERE NOT NULL NOT IN ( col1 + - col2, col1, ( + col1 ) + - + col2 )
----

query I rowsort
SELECT + ( - + 29 ) FROM tab1 AS cor0
----
-29
-29
-29

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE ( col2 ) = NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE col0 NOT IN ( col2 * - col1 * col2 + col2 + col2, + 49 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL col0 AS col1, ( - + col0 ) + + col2 AS col0 FROM tab1
----
51
45
85
-26
91
-23

onlyif mysql # aggregate syntax: 
query I rowsort label-2467
SELECT DISTINCT + COUNT( ALL col0 ) col2 FROM tab0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2467
SELECT DISTINCT + COUNT ( ALL col0 ) col2 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-2468
SELECT + 85, - COUNT( * ) * + 95 AS col0 FROM tab2
----
85
-285

skipif mysql # not compatible
query II rowsort label-2468
SELECT + 85, - COUNT ( * ) * + 95 AS col0 FROM tab2
----
85
-285

query III rowsort
SELECT * FROM tab2 WHERE NOT + 40 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2470
SELECT DISTINCT 83 * col2 * CAST( NULL AS SIGNED ) AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2470
SELECT DISTINCT 83 * col2 * CAST ( NULL AS INTEGER ) AS col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-2471
SELECT - COUNT( * ), CAST( NULL AS SIGNED ) * 36 / - + 0 AS col1 FROM tab1
----
-3
NULL

skipif mysql # not compatible
query II rowsort label-2471
SELECT - COUNT ( * ), CAST ( NULL AS INTEGER ) * 36 / - + 0 AS col1 FROM tab1
----
-3
NULL

query II rowsort
SELECT - - col0 * + col1 + col1 AS col1, ( + - col1 ) AS col2 FROM tab1 AS cor0
----
430
-5
4324
-47
728
-14

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT 34 IS NOT NULL
----

query I rowsort
SELECT DISTINCT - col1 + - + col2 AS col0 FROM tab0 AS cor0 WHERE NOT ( - col0 ) * col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2475
SELECT + 6, + SUM( ALL + 55 ) * + 53 AS col2 FROM tab0 AS cor0
----
6
8745

skipif mysql # not compatible
query II rowsort label-2475
SELECT + 6, + SUM ( ALL + 55 ) * + 53 AS col2 FROM tab0 AS cor0
----
6
8745

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + col0 * + 12 + 99 * col1 + 95 + + 76 * - col0 * + 59 + col2 col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2477
SELECT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - 27 + - - col2
----
0

skipif mysql # not compatible
query I rowsort label-2477
SELECT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN col1 AND + - 27 + - - col2
----
0

query I rowsort
SELECT DISTINCT + - 1 + col0 FROM tab1 AS cor0
----
50
84
90

query I rowsort
SELECT DISTINCT - AVG ( col1 ) FROM tab1 cor0 WHERE NULL IS NOT NULL
----
NULL

query I rowsort
SELECT DISTINCT + - col0 + + + col2 FROM tab2 AS cor0
----
-17
-23
-24

query II rowsort
SELECT col2 * - col2 AS col1, col0 AS col2 FROM tab2 cor0
----
-1600
64
-3364
75
-529
46

query I rowsort
SELECT ALL - - 71 AS col1 FROM tab1 WHERE + col2 < NULL
----

query I rowsort
SELECT ALL ( - - 81 ) FROM tab1
----
81
81
81

query II rowsort
SELECT DISTINCT + 4 + col1 + 27 AS col0, col2 AS col2 FROM tab0
----
112
47
32
99
52
10

query I rowsort
SELECT - col1 + - + 76 AS col1 FROM tab2
----
-127
-143
-153

query I rowsort
SELECT ALL + + col1 AS col1 FROM tab1 WHERE NOT NULL <> NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2487
SELECT + col1 + + ( - - 41 ) DIV col0 * col0 AS col1 FROM tab2 cor0 WHERE - ( - col1 ) * col1 IS NOT NULL
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2487
SELECT + col1 + + ( - - 41 ) / col0 * col0 AS col1 FROM tab2 cor0 WHERE - ( - col1 ) * col1 IS NOT NULL
----
51
67
77

query I rowsort
SELECT DISTINCT 7 - ( + - 86 ) + + col1 AS col1 FROM tab0
----
114
174
94

query I rowsort
SELECT col2 * - 31 * + + 13 - + col1 + - - col1 FROM tab0
----
-18941
-39897
-4030

query I rowsort
SELECT DISTINCT col0 * 1 + col1 AS col2 FROM tab1 AS cor0
----
138
65
90

query I rowsort
SELECT DISTINCT + + col0 AS col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2493
SELECT - SUM( DISTINCT 76 ) FROM tab0 AS cor0
----
-76

skipif mysql # not compatible
query I rowsort label-2493
SELECT - SUM ( DISTINCT 76 ) FROM tab0 AS cor0
----
-76

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2494
SELECT + + CAST( - 89 AS SIGNED ) DIV col0 FROM tab2 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-2494
SELECT + + CAST ( - 89 AS INTEGER ) / col0 FROM tab2 AS cor0
----
-1
-1
-1

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2495
SELECT DISTINCT + COUNT( * ) DIV + + MIN( ALL - col1 ) DIV + ( - COUNT( * ) ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2495
SELECT DISTINCT + COUNT ( * ) / + + MIN ( ALL - col1 ) / + ( - COUNT ( * ) ) FROM tab2 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2496
SELECT ALL - - ( + col0 ) DIV + ( + 37 ) + col1 AS col2 FROM tab2 AS cor0
----
52
69
78

skipif mysql # not compatible
query I rowsort label-2496
SELECT ALL - - ( + col0 ) / + ( + 37 ) + col1 AS col2 FROM tab2 AS cor0
----
52
69
78

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2497
SELECT + - AVG ( + CAST( NULL AS SIGNED ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2497
SELECT + - AVG ( + CAST ( NULL AS INTEGER ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2498
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST( NULL AS SIGNED ) ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-2498
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( + CAST ( NULL AS INTEGER ) ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2499
SELECT - MIN( - - 94 ) FROM tab0 AS cor0
----
-94

skipif mysql # not compatible
query I rowsort label-2499
SELECT - MIN ( - - 94 ) FROM tab0 AS cor0
----
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-2500
SELECT ALL MAX( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2500
SELECT ALL MAX ( + col1 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - - col0 NOT BETWEEN - ( - col0 ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE col2 / + - col2 * - 66 + 97 > 21
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query II rowsort label-2503
SELECT DISTINCT + SUM( 80 ) col1, COUNT( * ) col2 FROM tab2
----
240
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2503
SELECT DISTINCT + SUM ( 80 ) col1, COUNT ( * ) col2 FROM tab2
----
240
3

query III rowsort
SELECT * FROM tab0 WHERE NOT ( NULL ) <= ( NULL ) AND ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 49 = NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2506
SELECT ALL + 63 DIV - col1 FROM tab2
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-2506
SELECT ALL + 63 / - col1 FROM tab2
----
-1
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2507
SELECT + - MAX( + col1 ) AS col0 FROM tab1 cor0
----
-47

skipif mysql # not compatible
query I rowsort label-2507
SELECT + - MAX ( + col1 ) AS col0 FROM tab1 cor0
----
-47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2508
SELECT + + 66 * - CAST( NULL AS SIGNED ) * col0 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2508
SELECT + + 66 * - CAST ( NULL AS INTEGER ) * col0 / - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT - col2, 65 AS col2 FROM tab2
----
-23
65
-40
65
-58
65

query I rowsort
SELECT DISTINCT - 36 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-36

query I rowsort
SELECT col2 FROM tab2 WHERE col1 NOT BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2512
SELECT + COUNT( * ) + + - COUNT( ALL col2 ) FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2512
SELECT + COUNT ( * ) + + - COUNT ( ALL col2 ) FROM tab2 AS cor0
----
0

query I rowsort
SELECT col0 * + 30 + - col1 + col1 * - - col1 FROM tab1 AS cor0
----
1712
2570
4892

onlyif mysql # DIV for integer division: 
query I rowsort label-2514
SELECT ALL - + col1 DIV 93 + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-2514
SELECT ALL - + col1 / 93 + col2 AS col1 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT DISTINCT - 46 + - col2 FROM tab2 AS cor0
----
-104
-69
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-2516
SELECT + 30 * + - COUNT( * ) + - 12 FROM tab1 AS cor0
----
-102

skipif mysql # not compatible
query I rowsort label-2516
SELECT + 30 * + - COUNT ( * ) + - 12 FROM tab1 AS cor0
----
-102

query I rowsort
SELECT ALL 23 + col2 FROM tab1 AS cor0
----
119
82
91

onlyif mysql # DIV for integer division: 
query I rowsort label-2518
SELECT 40 + - - col0 DIV col1 col2 FROM tab2 AS cor0
----
40
40
41

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2518
SELECT 40 + - - col0 / col1 col2 FROM tab2 AS cor0
----
40
40
41

onlyif mysql # DIV for integer division: 
query I rowsort label-2519
SELECT + col2 DIV - 65 + col1 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-2519
SELECT + col2 / - 65 + col1 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL - col2 AS col0 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
-23
-40
-58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2521
SELECT DISTINCT + CAST( NULL AS SIGNED ) AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2521
SELECT DISTINCT + CAST ( NULL AS INTEGER ) AS col0 FROM tab2 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + col0 < + col2 / + col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN - 96 AND col1
----

query I rowsort
SELECT ALL ( 82 ) AS col2 FROM tab2
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-2525
SELECT - + 47 - + COUNT( * ) FROM tab1 cor0
----
-50

skipif mysql # not compatible
query I rowsort label-2525
SELECT - + 47 - + COUNT ( * ) FROM tab1 cor0
----
-50

query I rowsort
SELECT + 69 - - col2 FROM tab1 AS cor0
----
128
137
165

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col0 + 7 * - col0 + + col1 col2 FROM tab2
----
1845
3725
5167

query II rowsort
SELECT DISTINCT - 59 - + col1 + + col2 AS col2, 91 AS col1 FROM tab2
----
-68
91
-87
91
-96
91

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2529
SELECT ALL 85 - - 75 * + - 24 AS col1 FROM tab0 WHERE NOT ( - - CAST( NULL AS SIGNED ) ) * col0 <> col2 / + - col2
----

skipif mysql # not compatible
query I rowsort label-2529
SELECT ALL 85 - - 75 * + - 24 AS col1 FROM tab0 WHERE NOT ( - - CAST ( NULL AS INTEGER ) ) * col0 <> col2 / + - col2
----

query I rowsort
SELECT col1 * + col2 * + - 92 FROM tab0
----
-19320
-350244
-9108

query I rowsort
SELECT DISTINCT - ( + + 48 ) * col2 * - 29 AS col2 FROM tab0 AS cor0
----
137808
13920
65424

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2532
SELECT ALL CAST( NULL AS SIGNED ), col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-2532
SELECT ALL CAST ( NULL AS INTEGER ), col2 AS col2 FROM tab1 AS cor0
----
NULL
59
NULL
68
NULL
96

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 7 * - 94 + 10 col0 FROM tab1 AS cor0
----
-648
-648
-648

query I rowsort
SELECT ALL - 63 * - col2 AS col0 FROM tab2 AS cor0
----
1449
2520
3654

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 84, + col1 col2 FROM tab1 AS cor0
----
84
14
84
47
84
5

query III rowsort
SELECT * FROM tab0 cor0 WHERE NOT 82 * + col2 * col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NULL >= + col0 / + 91 )
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2538
SELECT 29 AS col1, - COUNT( * ) FROM tab0
----
29
-3

skipif mysql # not compatible
query II rowsort label-2538
SELECT 29 AS col1, - COUNT ( * ) FROM tab0
----
29
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2539
SELECT + 38 * + COUNT( - - col1 ) AS col1 FROM tab1
----
114

skipif mysql # not compatible
query I rowsort label-2539
SELECT + 38 * + COUNT ( - - col1 ) AS col1 FROM tab1
----
114

query I rowsort
SELECT ( + + 85 ) AS col0 FROM tab0
----
85
85
85

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2541
SELECT DISTINCT COUNT( * ) * + - COUNT( * ) DIV + 33 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-2541
SELECT DISTINCT COUNT ( * ) * + - COUNT ( * ) / + 33 FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2542
SELECT DISTINCT 5 DIV + + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2542
SELECT DISTINCT 5 / + + col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2543
SELECT ALL * FROM tab1 WHERE NULL = - 96 * - col0 * CAST( NULL AS SIGNED ) * + col1
----

skipif mysql # not compatible
query III rowsort label-2543
SELECT ALL * FROM tab1 WHERE NULL = - 96 * - col0 * CAST ( NULL AS INTEGER ) * + col1
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 36 * + col1 col1 FROM tab2
----
-1836
-2412
-2772

onlyif mysql # DIV for integer division: 
query I rowsort label-2545
SELECT col2 DIV + 52 AS col0 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-2545
SELECT col2 / + 52 AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 * - ( - + col0 ) >= - col2
----

query II rowsort
SELECT + col2 AS col0, - ( col2 ) AS col1 FROM tab1
----
59
-59
68
-68
96
-96

query II rowsort
SELECT col0, col1 * + + 85 - - col2 FROM tab1
----
51
1286
85
484
91
4063

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query III rowsort label-2549
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( NULL AS SIGNED ) - - CAST( NULL AS DECIMAL ) / + col0 IS NULL
----

skipif mysql # not compatible
query III rowsort label-2549
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( NULL AS INTEGER ) - - CAST ( NULL AS REAL ) / + col0 IS NULL
----

query I rowsort
SELECT ALL + col0 + 95 + col1 FROM tab1 AS cor0
----
160
185
233

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2551
SELECT DISTINCT + 57 DIV ( + MIN( - 54 ) ) col0 FROM tab2
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2551
SELECT DISTINCT + 57 / ( + MIN ( - 54 ) ) col0 FROM tab2
----
-1

query IIIIII rowsort
SELECT DISTINCT * FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1 WHERE 67 IS NOT NULL
----
54 values hashing to 33a0493e77bf8151676c948b0676d6b9

onlyif mysql # aggregate syntax: 
query I rowsort label-2553
SELECT SUM( + col2 ) AS col0 FROM tab1 AS cor0 WHERE - 66 BETWEEN - 79 AND - col2
----
59

skipif mysql # not compatible
query I rowsort label-2553
SELECT SUM ( + col2 ) AS col0 FROM tab1 AS cor0 WHERE - 66 BETWEEN - 79 AND - col2
----
59

query I rowsort
SELECT - 6 * + col2 + - 43 AS col0 FROM tab0 AS cor0
----
-103
-325
-637

onlyif mysql # aggregate syntax: 
query I rowsort label-2555
SELECT - COUNT( * ) - 19 FROM tab0 AS cor0
----
-22

skipif mysql # not compatible
query I rowsort label-2555
SELECT - COUNT ( * ) - 19 FROM tab0 AS cor0
----
-22

onlyif mysql # aggregate syntax: 
query I rowsort label-2556
SELECT 0 + COUNT( * ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-2556
SELECT 0 + COUNT ( * ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2557
SELECT ALL COUNT( * ) - - - COUNT( * ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2557
SELECT ALL COUNT ( * ) - - - COUNT ( * ) FROM tab2
----
0

query I rowsort
SELECT ALL + + col1 FROM tab0 WHERE NOT + col2 * + + 8 + + - col2 + col1 < NULL
----

query I rowsort
SELECT DISTINCT 2 * - col1 + + col0 * + col0 FROM tab2
----
2014
3942
5491

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 55 NOT IN ( + col0 * - col2, col2 + - col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2561
SELECT DISTINCT 42 col0, - CAST( col1 AS SIGNED ) * - - 78 * + + 8 - - 18 + - - 31 * + - col0 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2561
SELECT DISTINCT 42 col0, - CAST ( col1 AS INTEGER ) * - - 78 * + + 8 - - 18 + - - 31 * + - col0 FROM tab2 AS cor0 WHERE NOT col0 <= NULL
----

query I rowsort
SELECT + col1 * - col1 + + 68 + + 60 * - col0 FROM tab2 cor0
----
-5293
-8921
-9701

onlyif mysql # DIV for integer division: 
query I rowsort label-2563
SELECT + 48 DIV + 52 FROM tab1 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2563
SELECT + 48 / + 52 FROM tab1 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2564
SELECT + SUM( ALL 96 ) AS col1 FROM tab0 AS cor0
----
288

skipif mysql # not compatible
query I rowsort label-2564
SELECT + SUM ( ALL 96 ) AS col1 FROM tab0 AS cor0
----
288

query I rowsort
SELECT + + ( - - 77 ) AS col2 FROM tab2 AS cor0
----
77
77
77

query III rowsort
SELECT DISTINCT * FROM tab2 cor0 WHERE NOT 73 * 96 + col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2567
SELECT + - CAST( NULL AS SIGNED ) * col0 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2567
SELECT + - CAST ( NULL AS INTEGER ) * col0 + + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col1 * - 84 FROM tab1 AS cor0
----
-1176
-3948
-420

query I rowsort
SELECT - col0 * + col1 FROM tab0 AS cor0 WHERE NOT NULL > NULL
----

query I rowsort
SELECT DISTINCT + 75 * + col0 AS col2 FROM tab1
----
3825
6375
6825

query I rowsort
SELECT DISTINCT + col2 AS col2 FROM tab1 WHERE NOT - - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2572
SELECT + + COUNT( * ) FROM tab2 WHERE NOT - 24 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-2572
SELECT + + COUNT ( * ) FROM tab2 WHERE NOT - 24 IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2573
SELECT DISTINCT - ( MIN( 29 ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-29

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2573
SELECT DISTINCT - ( MIN ( 29 ) ) col2 FROM tab1 AS cor0 WHERE NULL IS NULL
----
-29

query I rowsort
SELECT DISTINCT + - 72 + + col2 + + col0 * + - 35 AS col0 FROM tab0 AS cor0
----
-3107
-3368
-550

query I rowsort
SELECT ALL - 26 + 82 AS col1 FROM tab0 WHERE + - col0 * col2 NOT IN ( col0 - + - col0 + - 79 - col2, col0 * 64 )
----
56
56
56

query II rowsort
SELECT DISTINCT col2 AS col2, + 95 FROM tab2 AS cor0
----
23
95
40
95
58
95

query I rowsort
SELECT ALL + + col2 + ( col1 ) FROM tab0 AS cor0
----
100
128
31

query I rowsort
SELECT DISTINCT col0 - - + col0 AS col1 FROM tab2 AS cor0
----
128
150
92

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col1 < + col0 + - col0 + + ( + 0 )
----

query II rowsort
SELECT ALL + 59 - - col2 AS col2, - col0 * - 87 - + ( + 13 ) + - ( - 81 ) AS col0 FROM tab2 AS cor0
----
117
6593
82
4070
99
5636

onlyif mysql # aggregate syntax: 
query I rowsort label-2581
SELECT ALL + MIN( 84 ) - 73 FROM tab1 AS cor0
----
11

skipif mysql # not compatible
query I rowsort label-2581
SELECT ALL + MIN ( 84 ) - 73 FROM tab1 AS cor0
----
11

query I rowsort
SELECT ALL + 13 AS col2 FROM tab1 WHERE NULL <> NULL
----

query II rowsort
SELECT col0 - - col2, col1 FROM tab1
----
144
5
147
14
159
47

query I rowsort
SELECT + 9 * + - col1 * - col1 * + col1 * col2 - + + col2 FROM tab0
----
224799496
792
833480

query III rowsort
SELECT * FROM tab0 WHERE + col0 / + - ( col0 ) * - ( - + col1 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query II rowsort label-2586
SELECT DISTINCT - 35 * + + 25, COUNT( * ) AS col2 FROM tab0
----
-875
3

skipif mysql # not compatible
query II rowsort label-2586
SELECT DISTINCT - 35 * + + 25, COUNT ( * ) AS col2 FROM tab0
----
-875
3

query I rowsort
SELECT ALL + col0 * - + 47 * 12 + + col1 FROM tab0
----
-49047
-54707
-8379

onlyif mysql # aggregate syntax: 
query I rowsort label-2588
SELECT ALL SUM( ALL - col2 ) AS col0 FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-2588
SELECT ALL SUM ( ALL - col2 ) AS col0 FROM tab1
----
-223

query I rowsort
SELECT + 42 FROM tab2 AS cor0 WHERE NOT col1 < ( + col1 )
----
42
42
42

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT ( NOT + 36 IS NULL )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col0 - + + 0 IN ( - + col1 * + - col0 + + - col1 + - + col2 * ( - - col2 ) - - + col1 * + col0, col1 )
----

query II rowsort
SELECT ALL 91 AS col2, + col1 FROM tab2
----
91
51
91
67
91
77

onlyif mysql # aggregate syntax: 
query I rowsort label-2593
SELECT + SUM( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT - col2 >= - + 19
----
-185

skipif mysql # not compatible
query I rowsort label-2593
SELECT + SUM ( DISTINCT - col0 ) FROM tab2 AS cor0 WHERE NOT - col2 >= - + 19
----
-185

query I rowsort
SELECT ( - - 60 ) AS col2 FROM tab2 AS cor0
----
60
60
60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2595
SELECT - - COUNT( * ) DIV + + 20 FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-2595
SELECT - - COUNT ( * ) / + + 20 FROM tab2 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2596
SELECT DISTINCT + 45 * - COUNT( * ) AS col2 FROM tab1 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2596
SELECT DISTINCT + 45 * - COUNT ( * ) AS col2 FROM tab1 AS cor0
----
-135

query I rowsort
SELECT ALL + col2 FROM tab0 AS cor0 WHERE NOT 97 <= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2598
SELECT DISTINCT + CAST( - col1 AS SIGNED ) * + col1 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

skipif mysql # not compatible
query II rowsort label-2598
SELECT DISTINCT + CAST ( - col1 AS INTEGER ) * + col1 AS col0, + col1 AS col2 FROM tab1 AS cor0
----
-196
14
-2209
47
-25
5

onlyif mysql # DIV for integer division: 
query II rowsort label-2599
SELECT col1 * - col0 AS col2, col1 DIV - col2 + - + col2 FROM tab1
----
-425
-59
-4277
-68
-714
-96

skipif mysql # not compatible
query II rowsort label-2599
SELECT col1 * - col0 AS col2, col1 / - col2 + - + col2 FROM tab1
----
-425
-59
-4277
-68
-714
-96

query II rowsort
SELECT col1 * + col2 AS col0, + 19 + + 67 FROM tab2
----
1173
86
3080
86
3886
86

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 25 + - + 92 AS col0, 30 col1 FROM tab0
----
-67
30

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL < col1 + - col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2603
SELECT col1 + + CAST( + + CAST( + - col2 AS SIGNED ) AS SIGNED ) AS col1 FROM tab0 AS cor0
----
-98
11
34

skipif mysql # not compatible
query I rowsort label-2603
SELECT col1 + + CAST ( + + CAST ( + - col2 AS INTEGER ) AS INTEGER ) AS col1 FROM tab0 AS cor0
----
-98
11
34

query II rowsort
SELECT - 58, - 81 AS col1 FROM tab2
----
-58
-81
-58
-81
-58
-81

query I rowsort
SELECT ALL - + col2 AS col0 FROM tab1 WHERE NULL BETWEEN + 0 * + 83 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2606
SELECT ALL - MIN( + col1 ) col2 FROM tab2
----
-51

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2606
SELECT ALL - MIN ( + col1 ) col2 FROM tab2
----
-51

onlyif mysql # aggregate syntax: 
query II rowsort label-2607
SELECT DISTINCT - 56 AS col0, COUNT( DISTINCT + - 62 ) * + MIN( - col0 ) FROM tab1 AS cor0
----
-56
-91

skipif mysql # not compatible
query II rowsort label-2607
SELECT DISTINCT - 56 AS col0, COUNT ( DISTINCT + - 62 ) * + MIN ( - col0 ) FROM tab1 AS cor0
----
-56
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-2608
SELECT ALL - SUM( - col1 ) col1 FROM tab0 AS cor0
----
103

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2608
SELECT ALL - SUM ( - col1 ) col1 FROM tab0 AS cor0
----
103

query I rowsort
SELECT DISTINCT - 80 + + col2 - - - col2 * + - 33 FROM tab2 AS cor0
----
1280
1892
702

query I rowsort
SELECT - ( - col1 ) + - ( + - col2 ) AS col0 FROM tab1 cor0
----
110
115
64

query I rowsort
SELECT ALL - - col1 - + 19 AS col2 FROM tab2 AS cor0
----
32
48
58

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT + col2 + + 22 + - col0 AS col0 FROM tab0 AS cor0
----
-55
24
54

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2614
SELECT + CAST( - col1 AS SIGNED ) + - 23 AS col0 FROM tab0
----
-104
-24
-44

skipif mysql # not compatible
query I rowsort label-2614
SELECT + CAST ( - col1 AS INTEGER ) + - 23 AS col0 FROM tab0
----
-104
-24
-44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2615
SELECT ALL 30 - + MAX( - 70 ) DIV + + 91 FROM tab2
----
30

skipif mysql # not compatible
query I rowsort label-2615
SELECT ALL 30 - + MAX ( - 70 ) / + + 91 FROM tab2
----
30

query I rowsort
SELECT DISTINCT + col0 * - col0 + col2 FROM tab2
----
-2093
-4056
-5567

query I rowsort
SELECT 0 + col2 AS col0 FROM tab2
----
23
40
58

query I rowsort
SELECT DISTINCT - 7 - - 10 FROM tab0
----
3

query I rowsort
SELECT + + 49 FROM tab2 AS cor0 WHERE NOT 55 < + col1
----
49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2620
SELECT - COUNT( * ) DIV 27 AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2620
SELECT - COUNT ( * ) / 27 AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-2621
SELECT DISTINCT + - col0 DIV - + ( col2 ) FROM tab2 AS cor0
----
1
2

skipif mysql # not compatible
query I rowsort label-2621
SELECT DISTINCT + - col0 / - + ( col2 ) FROM tab2 AS cor0
----
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-2622
SELECT DISTINCT 35 * - SUM( DISTINCT + col1 ) * MAX( col0 ) FROM tab0 cor0
----
-349685

skipif mysql # not compatible
query I rowsort label-2622
SELECT DISTINCT 35 * - SUM ( DISTINCT + col1 ) * MAX ( col0 ) FROM tab0 cor0
----
-349685

query I rowsort
SELECT - ( + ( + col0 ) ) AS col0 FROM tab1 AS cor0
----
-51
-85
-91

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 3 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2625
SELECT ALL COUNT( DISTINCT - 82 ) AS col2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2625
SELECT ALL COUNT ( DISTINCT - 82 ) AS col2 FROM tab2 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-2626
SELECT + - 32 * - + MAX( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-1472

skipif mysql # not compatible
query I rowsort label-2626
SELECT + - 32 * - + MAX ( ALL - col0 ) AS col2 FROM tab2 AS cor0
----
-1472

query I rowsort
SELECT - - col2 * + col1 + - 82 - + col0 FROM tab1 AS cor0
----
1211
128
3023

query I rowsort
SELECT 35 FROM tab2 AS cor0 WHERE NOT 58 + - col0 - - + col0 IS NULL
----
35
35
35

query II rowsort
SELECT col1 + - - 22 AS col0, col0 AS col0 FROM tab0 AS cor0
----
103
15
23
97
43
87

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 AS cor0 WHERE NOT 46 < - - 91 + - + 19 + + - col1
----
51
67
77

query I rowsort
SELECT - + 46 FROM tab2 WHERE NOT - + col0 IS NULL
----
-46
-46
-46

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2632
SELECT * FROM tab0 WHERE + CAST( + CAST( + col1 AS SIGNED ) AS SIGNED ) + + col2 <> - + col0 * col2 * - 36 - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-2632
SELECT * FROM tab0 WHERE + CAST ( + CAST ( + col1 AS INTEGER ) AS INTEGER ) + + col2 <> - + col0 * col2 * - 36 - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 8 FROM tab1 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 91 + + col1 * + col2 NOT BETWEEN + - 93 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 46 col2 FROM tab1
----
-46
-46
-46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, col0 col1 FROM tab2
----
51
46
67
75
77
64

query I rowsort
SELECT 18 * + + col0 AS col2 FROM tab1 AS cor0
----
1530
1638
918

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE 41 + + - 24 NOT IN ( - col2 * 15, - col1 * + col1 * - 46, - - col2, + 26 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2639
SELECT ALL - 7 + - CAST( NULL AS DECIMAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2639
SELECT ALL - 7 + - CAST ( NULL AS REAL ) AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT DISTINCT - col2 + ( + + col1 ), col0 FROM tab2 AS cor0
----
28
46
37
64
9
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2641
SELECT DISTINCT COUNT( * ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2641
SELECT DISTINCT COUNT ( * ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
0

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2643
SELECT SUM( + col2 ) * - ( - 82 ) + + - COUNT( * ) AS col0 FROM tab1 AS cor0
----
18283

skipif mysql # not compatible
query I rowsort label-2643
SELECT SUM ( + col2 ) * - ( - 82 ) + + - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
18283

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col2 + 76 col1 FROM tab0 AS cor0
----
123
175
86

onlyif mysql # aggregate syntax: 
query I rowsort label-2645
SELECT COUNT( * ) * - 19 FROM tab1 cor0
----
-57

skipif mysql # not compatible
query I rowsort label-2645
SELECT COUNT ( * ) * - 19 FROM tab1 cor0
----
-57

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NULL NOT BETWEEN col0 * - + 85 + + col1 AND NULL
----

query II rowsort
SELECT - col0 * col0, col1 FROM tab1 AS cor0
----
-2601
14
-7225
5
-8281
47

onlyif mysql # aggregate syntax: 
query I rowsort label-2648
SELECT DISTINCT - 94 + - COUNT( 70 ) FROM tab2 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2648
SELECT DISTINCT - 94 + - COUNT ( 70 ) FROM tab2 AS cor0
----
-97

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2649
SELECT DISTINCT + COUNT( * ) DIV - - 38 AS col2 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-2649
SELECT DISTINCT + COUNT ( * ) / - - 38 AS col2 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - 36 AS col0 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-36
-36
-36

query I rowsort
SELECT ALL 6 + - + ( + col1 ) AS col2 FROM tab1 AS cor0
----
-41
-8
1

query I rowsort
SELECT + col2 + + + col2 AS col0 FROM tab1 WHERE NOT NULL = NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2653
SELECT DISTINCT 31 DIV - + COUNT( * ) col1 FROM tab0
----
-10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2653
SELECT DISTINCT 31 / - + COUNT ( * ) col1 FROM tab0
----
-10

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( + + 39 + - 3 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + 21 AS col0 FROM tab1 WHERE NOT NULL < + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2656
SELECT + SUM( + col0 ) * - ( 18 ) - - - 31 FROM tab2
----
-3361

skipif mysql # not compatible
query I rowsort label-2656
SELECT + SUM ( + col0 ) * - ( 18 ) - - - 31 FROM tab2
----
-3361

query I rowsort
SELECT ALL col0 * - col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2658
SELECT + ( - COUNT( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - + col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-2658
SELECT + ( - COUNT ( * ) ) AS col0 FROM tab2 AS cor0 WHERE NOT - col1 * - + col1 IS NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2659
SELECT DISTINCT + ( + + CAST( + col1 AS SIGNED ) ) + + ( + - ( + col0 ) ) FROM tab2 cor0
----
-8
13
5

skipif mysql # not compatible
query I rowsort label-2659
SELECT DISTINCT + ( + + CAST ( + col1 AS INTEGER ) ) + + ( + - ( + col0 ) ) FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT DISTINCT col0 AS col1 FROM tab0 WHERE NOT col2 + 98 * + + col1 IS NOT NULL
----

query I rowsort
SELECT col2 + + + ( + col1 ) FROM tab0
----
100
128
31

query I rowsort
SELECT DISTINCT + col2 - 97 AS col0 FROM tab1 AS cor0
----
-1
-29
-38

onlyif mysql # aggregate syntax: 
query I rowsort label-2663
SELECT DISTINCT - ( - + COUNT( * ) ) * + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-2663
SELECT DISTINCT - ( - + COUNT ( * ) ) * + COUNT ( * ) FROM tab2
----
9

onlyif mysql # DIV for integer division: 
query I rowsort label-2664
SELECT - 98 * - col2 + col2 * + - 64 + col1 + + - col1 DIV - col2 FROM tab2 AS cor0
----
1438
2040
835

skipif mysql # not compatible
query I rowsort label-2664
SELECT - 98 * - col2 + col2 * + - 64 + col1 + + - col1 / - col2 FROM tab2 AS cor0
----
1438
2040
835

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2665
SELECT ALL + col2 * - CAST( NULL AS SIGNED ) + + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2665
SELECT ALL + col2 * - CAST ( NULL AS INTEGER ) + + - col1 FROM tab1 cor0
----
NULL
NULL
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + col0 >= - 84
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 94 AS col0 FROM tab0 AS cor0 WHERE NOT ( NOT NULL <= - + 13 )
----

query II rowsort
SELECT - col1 AS col1, 73 AS col1 FROM tab2 AS cor0
----
-51
73
-67
73
-77
73

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 16, - 3 col1 FROM tab1 AS cor0
----
16
-3
16
-3
16
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2670
SELECT DISTINCT COUNT( - 61 ) AS col0 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-2670
SELECT DISTINCT COUNT ( - 61 ) AS col0 FROM tab2
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + - 91 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-2672
SELECT ALL + 98 * + + ( - + 54 ) * + COUNT( * ) FROM tab2
----
-15876

skipif mysql # not compatible
query I rowsort label-2672
SELECT ALL + 98 * + + ( - + 54 ) * + COUNT ( * ) FROM tab2
----
-15876

query I rowsort
SELECT + col1 * + + col2 * + - col2 FROM tab2 AS cor0
----
-123200
-225388
-26979

onlyif mysql # aggregate syntax: 
query I rowsort label-2674
SELECT - + SUM( + 83 ) FROM tab0 AS cor0
----
-249

skipif mysql # not compatible
query I rowsort label-2674
SELECT - + SUM ( + 83 ) FROM tab0 AS cor0
----
-249

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2675
SELECT ALL + CAST( + - col0 AS SIGNED ), col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

skipif mysql # not compatible
query II rowsort label-2675
SELECT ALL + CAST ( + - col0 AS INTEGER ), col0 FROM tab1 AS cor0
----
-51
51
-85
85
-91
91

query I rowsort
SELECT ALL - + col0 AS col0 FROM tab1 AS cor0 WHERE NULL >= + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2677
SELECT ALL + - MIN( ALL + - col2 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-2677
SELECT ALL + - MIN ( ALL + - col2 ) FROM tab1 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-2678
SELECT - COUNT( * ) + + - 84 AS col0 FROM tab1 AS cor0
----
-87

skipif mysql # not compatible
query I rowsort label-2678
SELECT - COUNT ( * ) + + - 84 AS col0 FROM tab1 AS cor0
----
-87

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2679
SELECT col2 * CAST( NULL AS SIGNED ) + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2679
SELECT col2 * CAST ( NULL AS INTEGER ) + col2 AS col0 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + col0 FROM tab0 cor0 WHERE + 90 * - col0 IS NOT NULL
----
-15
-87
-97

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2681
SELECT - col1 + CAST( NULL AS DECIMAL ) 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-2681
SELECT - col1 + CAST ( NULL AS REAL ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - + 63 + - col2 * - col0 * - 9 FROM tab1 AS cor0
----
-44127
-45198
-55755

query I rowsort
SELECT ALL + col1 + - col1 + - col2 * - 15 FROM tab0 AS cor0
----
1485
150
705

onlyif mysql # DIV for integer division: 
query I rowsort label-2684
SELECT - col1 DIV - 22 AS col0 FROM tab2
----
2
3
3

skipif mysql # not compatible
query I rowsort label-2684
SELECT - col1 / - 22 AS col0 FROM tab2
----
2
3
3

query II rowsort
SELECT DISTINCT col0 AS col0, - 38 FROM tab2
----
46
-38
64
-38
75
-38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2686
SELECT - MIN( - + CAST( - col0 AS SIGNED ) ) * + MAX( ALL + col1 ) * - - 96 FROM tab0
----
-116640

skipif mysql # not compatible
query I rowsort label-2686
SELECT - MIN ( - + CAST ( - col0 AS INTEGER ) ) * + MAX ( ALL + col1 ) * - - 96 FROM tab0
----
-116640

query II rowsort
SELECT col0 AS col1, - 31 FROM tab1
----
51
-31
85
-31
91
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE + col0 IS NOT NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-2689
SELECT ALL 14 DIV + col1 FROM tab0
----
0
0
14

skipif mysql # not compatible
query I rowsort label-2689
SELECT ALL 14 / + col1 FROM tab0
----
0
0
14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2690
SELECT + + CAST( + + 70 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
70
70
70

skipif mysql # not compatible
query I rowsort label-2690
SELECT + + CAST ( + + 70 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2691
SELECT - - CAST( - 45 AS SIGNED ) FROM tab2 AS cor0
----
-45
-45
-45

skipif mysql # not compatible
query I rowsort label-2691
SELECT - - CAST ( - 45 AS INTEGER ) FROM tab2 AS cor0
----
-45
-45
-45

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 18 + + col1 + col2 col2 FROM tab2 AS cor0
----
135
143
92

onlyif mysql # aggregate syntax: 
query I rowsort label-2693
SELECT DISTINCT - + COUNT( * ) + - 33 * 44 FROM tab0 AS cor0
----
-1455

skipif mysql # not compatible
query I rowsort label-2693
SELECT DISTINCT - + COUNT ( * ) + - 33 * 44 FROM tab0 AS cor0
----
-1455

query I rowsort
SELECT DISTINCT + + col0 + + - 52 + + col1 FROM tab1 AS cor0
----
13
38
86

onlyif mysql # DIV for integer division: 
query I rowsort label-2695
SELECT col2 + + - 66 DIV + col2 FROM tab0 AS cor0
----
4
46
99

skipif mysql # not compatible
query I rowsort label-2695
SELECT col2 + + - 66 / + col2 FROM tab0 AS cor0
----
4
46
99

query I rowsort
SELECT - col0 * - + ( ( col1 ) ) AS col1 FROM tab0
----
1215
1827
97

query II rowsort
SELECT + col2 * - col1 AS col2, - 64 AS col0 FROM tab0 AS cor0
----
-210
-64
-3807
-64
-99
-64

query II rowsort
SELECT - + col0 * col1 + - col0, col0 AS col0 FROM tab2 AS cor0
----
-2392
46
-4992
64
-5100
75

query II rowsort
SELECT ALL - col2 AS col0, - 58 FROM tab0
----
-10
-58
-47
-58
-99
-58

onlyif mysql # aggregate syntax: 
query I rowsort label-2700
SELECT DISTINCT MIN( DISTINCT - - 17 ) AS col1 FROM tab2
----
17

skipif mysql # not compatible
query I rowsort label-2700
SELECT DISTINCT MIN ( DISTINCT - - 17 ) AS col1 FROM tab2
----
17

query III rowsort
SELECT * FROM tab1 WHERE NOT col2 * + - col0 NOT IN ( - col1 * 78 - 27 / + col0 * - + col2 + + col1 - + col1 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2702
SELECT + CAST( - 28 AS SIGNED ) FROM tab1
----
-28
-28
-28

skipif mysql # not compatible
query I rowsort label-2702
SELECT + CAST ( - 28 AS INTEGER ) FROM tab1
----
-28
-28
-28

query I rowsort
SELECT DISTINCT - + 26 AS col0 FROM tab1 AS cor0
----
-26

query II rowsort
SELECT DISTINCT + 6 AS col1, - col0 FROM tab2 cor0
----
6
-46
6
-64
6
-75

query II rowsort
SELECT ALL - col1, 22 + 78 AS col1 FROM tab0 AS cor0
----
-1
100
-21
100
-81
100

query I rowsort
SELECT 56 + + col1 AS col0 FROM tab2 AS cor0
----
107
123
133

onlyif mysql # aggregate syntax: 
query I rowsort label-2707
SELECT + COUNT( * ) + - COUNT( + col2 ) AS col2 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-2707
SELECT + COUNT ( * ) + - COUNT ( + col2 ) AS col2 FROM tab1
----
0

query I rowsort
SELECT + 46 + col0 AS col0 FROM tab2
----
110
121
92

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE col1 + + 73 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 45 * + col0 AS col2 FROM tab0 WHERE NOT - 30 + - col0 * 59 > + 25
----
3915
4365
675

onlyif mysql # aggregate syntax: 
query I rowsort label-2711
SELECT 39 + - ( SUM( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-184

skipif mysql # not compatible
query I rowsort label-2711
SELECT 39 + - ( SUM ( DISTINCT + col2 ) ) AS col0 FROM tab1
----
-184

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2712
SELECT CAST( col0 AS SIGNED ) + - 11 AS col1 FROM tab0
----
4
76
86

skipif mysql # not compatible
query I rowsort label-2712
SELECT CAST ( col0 AS INTEGER ) + - 11 AS col1 FROM tab0
----
4
76
86

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NULL ) IN ( col1 + + col1 )
----

query I rowsort
SELECT DISTINCT 16 * col1 FROM tab2
----
1072
1232
816

query I rowsort
SELECT - 77 + 42 AS col0 FROM tab2
----
-35
-35
-35

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2716
SELECT ALL + COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-2716
SELECT ALL + COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT + 66 + + 89 * - 79 AS col1 FROM tab1
----
-6965
-6965
-6965

query I rowsort
SELECT ( ( - 17 ) ) FROM tab1
----
-17
-17
-17

query III rowsort
SELECT * FROM tab0 WHERE NULL NOT BETWEEN - 77 + col1 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE ( col2 / col2 ) NOT IN ( - col0 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + 35 FROM tab1
----
103
131
94

query I rowsort
SELECT 15 + - 28 * col0 AS col0 FROM tab0 WHERE NOT + col2 + - col1 / col2 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2723
SELECT ALL 20 DIV - col2 AS col2 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2723
SELECT ALL 20 / - col2 AS col2 FROM tab1
----
0
0
0

query I rowsort
SELECT ALL col2 - + col1 AS col1 FROM tab1 WHERE ( - col1 + col0 ) IS NOT NULL
----
21
54
82

query I rowsort
SELECT ALL + ( - col1 ) FROM tab0 WHERE col2 * - col0 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2726
SELECT - 95 * + CAST( CAST( NULL AS SIGNED ) * - col0 AS SIGNED ) AS col0 FROM tab0 WHERE NOT ( + 28 + + 17 ) IS NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2726
SELECT - 95 * + CAST ( CAST ( NULL AS INTEGER ) * - col0 AS INTEGER ) AS col0 FROM tab0 WHERE NOT ( + 28 + + 17 ) IS NULL
----
NULL
NULL
NULL

query I rowsort
SELECT ALL col0 AS col2 FROM tab2 WHERE + 70 < + col2 * 26
----
46
64
75

query I rowsort
SELECT - 9 * 50 FROM tab2
----
-450
-450
-450

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 col1 FROM tab2 WHERE NULL BETWEEN 4 AND ( col0 * col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2730
SELECT - SUM( - 26 ) * MIN( col2 ) AS col1 FROM tab1
----
4602

skipif mysql # not compatible
query I rowsort label-2730
SELECT - SUM ( - 26 ) * MIN ( col2 ) AS col1 FROM tab1
----
4602

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 + col1 * 38 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2732
SELECT + COUNT( * ) * ( 72 ) AS col1 FROM tab0
----
216

skipif mysql # not compatible
query I rowsort label-2732
SELECT + COUNT ( * ) * ( 72 ) AS col1 FROM tab0
----
216

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col1 NOT BETWEEN ( 24 + + col0 ) AND NULL
----
59
68
96

query I rowsort
SELECT - 99 * + col2 AS col2 FROM tab2
----
-2277
-3960
-5742

query III rowsort
SELECT * FROM tab0 WHERE NULL > - col2
----

query I rowsort
SELECT ALL 23 * - col2 + - 12 FROM tab1
----
-1369
-1576
-2220

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( col1 ) AND NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 > col2
----

query I rowsort
SELECT DISTINCT - ( + ( col1 ) ) - col2 FROM tab1 AS cor0
----
-110
-115
-64

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2740
SELECT DISTINCT AVG ( DISTINCT CAST( 56 AS SIGNED ) ) FROM tab0 AS cor0 WHERE col2 * - 71 > + col0
----
NULL

skipif mysql # not compatible
query I rowsort label-2740
SELECT DISTINCT AVG ( DISTINCT CAST ( 56 AS INTEGER ) ) FROM tab0 AS cor0 WHERE col2 * - 71 > + col0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE ( - col1 ) BETWEEN NULL AND ( col2 + 7 )
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE 10 NOT IN ( col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col1 * - col0 + col0 AS col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT - col1 + col2 * col1 AS col0 FROM tab0
----
189
3726
98

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 <= ( col2 + col1 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 >= ( NULL )
----

query I rowsort
SELECT ALL + col0 + + col1 * col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
4368
510
765

onlyif mysql # aggregate syntax: 
query I rowsort label-2748
SELECT - 45 * COUNT( * ) AS col0 FROM tab2 AS cor0
----
-135

skipif mysql # not compatible
query I rowsort label-2748
SELECT - 45 * COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-135

onlyif mysql # aggregate syntax: 
query I rowsort label-2749
SELECT + - MIN( - 21 ) * + 22 FROM tab1 AS cor0
----
462

skipif mysql # not compatible
query I rowsort label-2749
SELECT + - MIN ( - 21 ) * + 22 FROM tab1 AS cor0
----
462

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * 11 col1 FROM tab2 cor0
----
-253
-440
-638

query I rowsort
SELECT col0 AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + 17
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2752
SELECT ALL + MIN( - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-2752
SELECT ALL + MIN ( - ( col0 ) ) AS col1 FROM tab0 AS cor0
----
-97

query I rowsort
SELECT DISTINCT col1 * - 34 AS col1 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2754
SELECT - 40 * MAX( col0 + + col2 ) AS col1 FROM tab1 AS cor0
----
-6360

skipif mysql # not compatible
query I rowsort label-2754
SELECT - 40 * MAX ( col0 + + col2 ) AS col1 FROM tab1 AS cor0
----
-6360

onlyif mysql # aggregate syntax: 
query I rowsort label-2755
SELECT ALL + COUNT( DISTINCT - + col1 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2755
SELECT ALL + COUNT ( DISTINCT - + col1 ) AS col2 FROM tab0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 89 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - 32 FROM tab1 WHERE ( NULL ) NOT BETWEEN col2 * 4 + - 87 AND ( - 76 * 46 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2758
SELECT - ( - + CAST( + col0 AS SIGNED ) ) FROM tab2 AS cor0
----
46
64
75

skipif mysql # not compatible
query I rowsort label-2758
SELECT - ( - + CAST ( + col0 AS INTEGER ) ) FROM tab2 AS cor0
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-2759
SELECT COUNT( ( + 89 ) ) AS col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2759
SELECT COUNT ( ( + 89 ) ) AS col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * ( + col2 ) * + col2 AS col1 FROM tab1 AS cor0
----
205379
314432
884736

query I rowsort
SELECT - 18 AS col1 FROM tab0 AS cor0 WHERE NOT + col1 IS NULL
----
-18
-18
-18

query I rowsort
SELECT DISTINCT - + 51 AS col0 FROM tab2 AS cor0 CROSS JOIN tab1 AS cor1
----
-51

query I rowsort
SELECT DISTINCT 97 + 69 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
166

query I rowsort
SELECT DISTINCT + - 34 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
-34

query I rowsort
SELECT DISTINCT + - 0 + + 85 AS col2 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
85

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT 96 + + 27 NOT IN ( 2 + + 82 )
----

query I rowsort
SELECT DISTINCT + col0 * 95 AS col2 FROM tab1
----
4845
8075
8645

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2768
SELECT - 53 * MAX( DISTINCT - CAST( NULL AS SIGNED ) ) + - 38 AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2768
SELECT - 53 * MAX ( DISTINCT - CAST ( NULL AS INTEGER ) ) + - 38 AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2769
SELECT - COUNT( * ) + - CAST( + 21 AS SIGNED ) * + COUNT( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 30
----
0

skipif mysql # not compatible
query I rowsort label-2769
SELECT - COUNT ( * ) + - CAST ( + 21 AS INTEGER ) * + COUNT ( * ) FROM tab2 AS cor0 WHERE NULL NOT BETWEEN NULL AND + 30
----
0

query I rowsort
SELECT + 41 + + 12 + - col2 FROM tab2 AS cor0
----
-5
13
30

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2771
SELECT DISTINCT col1 + - col0 * col1 FROM tab0 AS cor0 WHERE + col0 BETWEEN - + CAST( - col1 AS DECIMAL ) AND col0 * + col1
----
-1806
-96

skipif mysql # not compatible
query I rowsort label-2771
SELECT DISTINCT col1 + - col0 * col1 FROM tab0 AS cor0 WHERE + col0 BETWEEN - + CAST ( - col1 AS REAL ) AND col0 * + col1
----
-1806
-96

query I rowsort
SELECT DISTINCT - 2 FROM tab1 AS cor0 WHERE NOT col1 NOT IN ( - 17 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2773
SELECT ALL - 44 + + - MAX( - col2 ) FROM tab2 AS cor0
----
-21

skipif mysql # not compatible
query I rowsort label-2773
SELECT ALL - 44 + + - MAX ( - col2 ) FROM tab2 AS cor0
----
-21

onlyif mysql # DIV for integer division: 
query I rowsort label-2774
SELECT - + col2 + ( + col1 ) - + col1 DIV col1 FROM tab0 AS cor0
----
-99
10
33

skipif mysql # not compatible
query I rowsort label-2774
SELECT - + col2 + ( + col1 ) - + col1 / col1 FROM tab0 AS cor0
----
-99
10
33

onlyif mysql # aggregate syntax: 
query I rowsort label-2775
SELECT SUM( DISTINCT - 95 ) * 68 + COUNT( * ) FROM tab2 AS cor0
----
-6457

skipif mysql # not compatible
query I rowsort label-2775
SELECT SUM ( DISTINCT - 95 ) * 68 + COUNT ( * ) FROM tab2 AS cor0
----
-6457

query I rowsort
SELECT ALL 27 + + col1 - - 85 * col1 FROM tab2 AS cor0
----
4413
5789
6649

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2777
SELECT + MAX( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + ( CAST( col0 AS SIGNED ) ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2777
SELECT + MAX ( col0 ) AS col0 FROM tab0 AS cor0 WHERE ( NULL ) NOT IN ( + ( CAST ( col0 AS INTEGER ) ) )
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-2778
SELECT COUNT( * ) FROM tab2 WHERE NULL NOT IN ( + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-2778
SELECT COUNT ( * ) FROM tab2 WHERE NULL NOT IN ( + - col1 )
----
0

query I rowsort
SELECT DISTINCT + - 0 FROM tab2 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + 64 * col2 + col1 FROM tab1 WHERE NOT ( - 75 + col2 ) BETWEEN 70 - col0 * + 80 AND col0 * 22 + col1 * col2
----

query I rowsort
SELECT col0 * 16 * + + col2 FROM tab0
----
11280
13920
153648

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2782
SELECT ALL col0 * + 24 + 3 FROM tab2 AS cor0 WHERE NOT col2 * 87 * - CAST( - col2 AS SIGNED ) <= CAST( NULL AS SIGNED ) * col2
----

skipif mysql # not compatible
query I rowsort label-2782
SELECT ALL col0 * + 24 + 3 FROM tab2 AS cor0 WHERE NOT col2 * 87 * - CAST ( - col2 AS INTEGER ) <= CAST ( NULL AS INTEGER ) * col2
----

query I rowsort
SELECT + col0 - - - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2784
SELECT * FROM tab0 AS cor0 WHERE ( + col0 / CAST( NULL AS SIGNED ) > NULL )
----

skipif mysql # not compatible
query III rowsort label-2784
SELECT * FROM tab0 AS cor0 WHERE ( + col0 / CAST ( NULL AS INTEGER ) > NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2785
SELECT COUNT( * ) * MIN( 12 * 24 ) AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----
NULL

skipif mysql # not compatible
query I rowsort label-2785
SELECT COUNT ( * ) * MIN ( 12 * 24 ) AS col0 FROM tab0 AS cor0 WHERE ( NOT ( NOT NULL IS NOT NULL ) )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NULL <= 21
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2787
SELECT DISTINCT AVG ( DISTINCT + 73 ) + CAST( NULL AS DECIMAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 * 97 >= NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-2787
SELECT DISTINCT AVG ( DISTINCT + 73 ) + CAST ( NULL AS REAL ) AS col2 FROM tab0 AS cor0 WHERE NOT ( + col0 * 97 >= NULL )
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( - 60 + - - col0 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2789
SELECT ALL 74, - ( - SUM( ALL - col2 ) ) col0 FROM tab0
----
74
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2789
SELECT ALL 74, - ( - SUM ( ALL - col2 ) ) col0 FROM tab0
----
74
-156

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1 WHERE NOT NULL >= + 33
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( col0, 56 * ( 51 ) )
----

query I rowsort
SELECT - 3 * - - 56 AS col0 FROM tab0 cor0
----
-168
-168
-168

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( + col1 + + 35 + + 88 ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2794
SELECT ALL - + ( + COUNT( * ) ) DIV - + COUNT( * ) AS col1 FROM tab2 cor0
----
1

skipif mysql # not compatible
query I rowsort label-2794
SELECT ALL - + ( + COUNT ( * ) ) / - + COUNT ( * ) AS col1 FROM tab2 cor0
----
1

query I rowsort
SELECT + ( + + 71 ) * col1 + col0 FROM tab2 AS cor0 WHERE NOT - col1 <= col2
----

query II rowsort
SELECT DISTINCT - + col2 AS col2, col2 * + ( col0 ) FROM tab1 AS cor0
----
-59
5015
-68
6188
-96
4896

onlyif mysql # aggregate syntax: 
query I rowsort label-2797
SELECT + COUNT( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2797
SELECT + COUNT ( - col1 ) AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NULL
----
3

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 86 BETWEEN + 52 AND ( NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2799
SELECT ALL * FROM tab2 AS cor0 WHERE CAST( NULL AS SIGNED ) NOT BETWEEN + ( col2 ) * + ( + col1 ) + col0 AND - 19
----

skipif mysql # not compatible
query III rowsort label-2799
SELECT ALL * FROM tab2 AS cor0 WHERE CAST ( NULL AS INTEGER ) NOT BETWEEN + ( col2 ) * + ( + col1 ) + col0 AND - 19
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 * - + 16 IS NOT NULL
----

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT - col1 * - col0 + + col1 IS NULL
----
51
85
91

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT 39 col2, 96 * col0 AS col0 FROM tab2
----
39
4416
39
6144
39
7200

query II rowsort
SELECT + col1, + col2 AS col0 FROM tab1
----
14
96
47
68
5
59

query II rowsort
SELECT - col2 * - col0 AS col1, col2 FROM tab1
----
4896
96
5015
59
6188
68

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL > - 41
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-2806
SELECT ALL 91 AS col1, - COUNT( * ) DIV 64 AS col0 FROM tab2
----
91
0

skipif mysql # not compatible
query II rowsort label-2806
SELECT ALL 91 AS col1, - COUNT ( * ) / 64 AS col0 FROM tab2
----
91
0

query I rowsort
SELECT ( + - ( - - 59 ) ) AS col2 FROM tab2
----
-59
-59
-59

query II rowsort
SELECT col2, + col2 AS col1 FROM tab0
----
10
10
47
47
99
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 51 col2 FROM tab2
----
-51
-51
-51

query III rowsort
SELECT * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN ( + col1 ) AND 37 / + + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2811
SELECT DISTINCT - - COUNT( + col1 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-2811
SELECT DISTINCT - - COUNT ( + col1 ) FROM tab1 AS cor0
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 74 col2 FROM tab0 cor0 WHERE NOT 77 NOT BETWEEN NULL AND ( - - 66 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2813
SELECT DISTINCT CAST( - AVG ( DISTINCT + col2 ) AS SIGNED ) FROM tab2 AS cor0 WHERE NOT ( - 71 ) <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-2813
SELECT DISTINCT CAST ( - AVG ( DISTINCT + col2 ) AS INTEGER ) FROM tab2 AS cor0 WHERE NOT ( - 71 ) <= NULL
----
NULL

query I rowsort
SELECT DISTINCT col1 + - 75 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + + ( + col0 ) ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + 65 * + + col2, col2 FROM tab0
----
3055
47
6435
99
650
10

query I rowsort
SELECT ALL + col2 * col2 * - col0 FROM tab1
----
-295885
-420784
-470016

query I rowsort
SELECT ALL - + 26 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2819
SELECT ALL SUM( ALL col0 ) * + 95 * 35 AS col1 FROM tab1 AS cor0
----
754775

skipif mysql # not compatible
query I rowsort label-2819
SELECT ALL SUM ( ALL col0 ) * + 95 * 35 AS col1 FROM tab1 AS cor0
----
754775

query I rowsort
SELECT ALL + col2 + + + col1 AS col2 FROM tab2 AS cor0
----
117
125
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2821
SELECT DISTINCT - + COUNT( * ) FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - 89 AND - + 87 * - - 18
----
-3

skipif mysql # not compatible
query I rowsort label-2821
SELECT DISTINCT - + COUNT ( * ) FROM tab1 AS cor0 WHERE col0 NOT BETWEEN - 89 AND - + 87 * - - 18
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-2822
SELECT DISTINCT COUNT( * ) + MAX( DISTINCT - col0 ) + - MIN( DISTINCT + 95 ) AS col1 FROM tab2 AS cor0
----
-138

skipif mysql # not compatible
query I rowsort label-2822
SELECT DISTINCT COUNT ( * ) + MAX ( DISTINCT - col0 ) + - MIN ( DISTINCT + 95 ) AS col1 FROM tab2 AS cor0
----
-138

onlyif mysql # DIV for integer division: 
query I rowsort label-2823
SELECT ALL 53 DIV ( + 61 ) - 89 + + - 83 * 27 + - - 84 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-4592
-7174
-7271

skipif mysql # not compatible
query I rowsort label-2823
SELECT ALL 53 / ( + 61 ) - 89 + + - 83 * 27 + - - 84 + - col1 * col0 AS col2 FROM tab2 AS cor0
----
-4592
-7174
-7271

query I rowsort
SELECT DISTINCT 19 * + + col0 - - col0 AS col0 FROM tab0
----
1740
1940
300

query I rowsort
SELECT 20 * + ( - col0 ) + - 64 * + 19 AS col0 FROM tab2
----
-2136
-2496
-2716

query I rowsort
SELECT 34 + 86 AS col1 FROM tab0
----
120
120
120

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-2827
SELECT ALL - 81 DIV COUNT( * ) FROM tab2 WHERE ( NOT ( - col2 + col2 + + + col1 * - CAST( NULL AS SIGNED ) ) > NULL ) OR NULL IS NULL
----
-27

skipif mysql # not compatible
query I rowsort label-2827
SELECT ALL - 81 / COUNT ( * ) FROM tab2 WHERE ( NOT ( - col2 + col2 + + + col1 * - CAST ( NULL AS INTEGER ) ) > NULL ) OR NULL IS NULL
----
-27

onlyif mysql # aggregate syntax: 
query I rowsort label-2828
SELECT SUM( col0 ) + - SUM( DISTINCT - + 70 ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-2828
SELECT SUM ( col0 ) + - SUM ( DISTINCT - + 70 ) FROM tab1
----
297

onlyif mysql # aggregate syntax: 
query I rowsort label-2829
SELECT ALL COUNT( * ) - + + 72 col1 FROM tab2
----
-69

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2829
SELECT ALL COUNT ( * ) - + + 72 col1 FROM tab2
----
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 58 col2 FROM tab2 WHERE col1 >= + col2
----
58

onlyif mysql # aggregate syntax: 
query I rowsort label-2831
SELECT DISTINCT 3 * COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-2831
SELECT DISTINCT 3 * COUNT ( * ) FROM tab0
----
9

query I rowsort
SELECT - col0 / + 53 * + col0 / - 55 AS col1 FROM tab1 AS cor0 WHERE NOT NULL IS NULL
----

query II rowsort
SELECT ALL col0 AS col1, col1 AS col0 FROM tab0 AS cor0
----
15
81
87
21
97
1

query I rowsort
SELECT ALL - 22 * + col0 AS col0 FROM tab1
----
-1122
-1870
-2002

onlyif mysql # aggregate syntax: 
query I rowsort label-2835
SELECT DISTINCT COUNT( * ) * - 20 FROM tab2
----
-60

skipif mysql # not compatible
query I rowsort label-2835
SELECT DISTINCT COUNT ( * ) * - 20 FROM tab2
----
-60

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2836
SELECT 28 * 58 DIV + - COUNT( * ) AS col2 FROM tab0
----
-541

skipif mysql # not compatible
query I rowsort label-2836
SELECT 28 * 58 / + - COUNT ( * ) AS col2 FROM tab0
----
-541

onlyif mysql # aggregate syntax: 
query I rowsort label-2837
SELECT + COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 33 * + 28 AND ( col0 + + 7 * 47 )
----
0

skipif mysql # not compatible
query I rowsort label-2837
SELECT + COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN 33 * + 28 AND ( col0 + + 7 * 47 )
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2838
SELECT - col2 * - + col2 + - - ( + - CAST( + col0 AS SIGNED ) ) FROM tab0 AS cor0
----
13
2194
9704

skipif mysql # not compatible
query I rowsort label-2838
SELECT - col2 * - + col2 + - - ( + - CAST ( + col0 AS INTEGER ) ) FROM tab0 AS cor0
----
13
2194
9704

query I rowsort
SELECT col0 * + - 41 FROM tab2 AS cor0
----
-1886
-2624
-3075

onlyif mysql # aggregate syntax: 
query II rowsort label-2840
SELECT - 90 * - 93, MAX( - + 79 ) AS col0 FROM tab1 AS cor0
----
8370
-79

skipif mysql # not compatible
query II rowsort label-2840
SELECT - 90 * - 93, MAX ( - + 79 ) AS col0 FROM tab1 AS cor0
----
8370
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-2841
SELECT MAX( + col2 ) * + 51 AS col2 FROM tab2 AS cor0
----
2958

skipif mysql # not compatible
query I rowsort label-2841
SELECT MAX ( + col2 ) * + 51 AS col2 FROM tab2 AS cor0
----
2958

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2842
SELECT + - CAST( NULL AS SIGNED ) * - CAST( - - col1 AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2842
SELECT + - CAST ( NULL AS INTEGER ) * - CAST ( - - col1 AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2843
SELECT DISTINCT + CAST( NULL AS SIGNED ) + - + col1 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2843
SELECT DISTINCT + CAST ( NULL AS INTEGER ) + - + col1 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT - col1 + - 9 * + + col0 FROM tab1 cor0
----
-473
-770
-866

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1 AS col1, - 36 col1 FROM tab1
----
14
-36
47
-36
5
-36

query I rowsort
SELECT DISTINCT - col0 + + - col2 * + 12 AS col0 FROM tab0 WHERE NOT NULL BETWEEN - col0 AND ( NULL )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT col1 >= + col2
----
97
1
99

query II rowsort
SELECT DISTINCT + col2, col2 AS col1 FROM tab0
----
10
10
47
47
99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-2849
SELECT ALL ( - + COUNT( + col1 ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-2849
SELECT ALL ( - + COUNT ( + col1 ) ) FROM tab1
----
-3

query I rowsort
SELECT ALL col1 AS col1 FROM tab1 WHERE NULL NOT BETWEEN col1 AND + - ( + col1 ) + col2
----

query I rowsort
SELECT DISTINCT ( - + 29 ) FROM tab0
----
-29

query I rowsort
SELECT + col1 * - + 69 + + - col1 * - + 89 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
100
280
940

onlyif mysql # aggregate syntax: 
query I rowsort label-2853
SELECT + SUM( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-2853
SELECT + SUM ( ALL - + col2 ) AS col2 FROM tab1 AS cor0
----
-223

query I rowsort
SELECT ALL - 9 + 88 AS col1 FROM tab0 AS cor0
----
79
79
79

query I rowsort
SELECT DISTINCT + col2 + - - 71 + - + col0 + + col1 FROM tab0 AS cor0
----
15
184
74

onlyif mysql # aggregate syntax: 
query I rowsort label-2856
SELECT DISTINCT - COUNT( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 - - + ( - - col1 ) * + 61 * col0 / + col2 ) NOT IN ( + col0 )
----
0

skipif mysql # not compatible
query I rowsort label-2856
SELECT DISTINCT - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT ( - col1 - - + ( - - col1 ) * + 61 * col0 / + col2 ) NOT IN ( + col0 )
----
0

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + 36 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-2858
SELECT ALL 71 + 65 * COUNT( * ) FROM tab0 AS cor0
----
266

skipif mysql # not compatible
query I rowsort label-2858
SELECT ALL 71 + 65 * COUNT ( * ) FROM tab0 AS cor0
----
266

query I rowsort
SELECT ALL 35 * + 44 - - + col2 * col0 FROM tab2
----
2598
4100
5890

query I rowsort
SELECT col2 - + ( + col0 ) AS col2 FROM tab0
----
-77
2
32

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2861
SELECT + 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > 3 - col0 + - 82 + - 31 + - col2 * - CAST( NULL AS DECIMAL ) * + 68 / - col1
----

skipif mysql # not compatible
query I rowsort label-2861
SELECT + 96 AS col0 FROM tab2 AS cor0 WHERE NOT NULL > 3 - col0 + - 82 + - 31 + - col2 * - CAST ( NULL AS REAL ) * + 68 / - col1
----

query II rowsort
SELECT DISTINCT - 80, col2 + 91 + - 0 AS col0 FROM tab1 AS cor0 WHERE NOT - 87 BETWEEN + 21 + + col0 + + + 86 * col2 AND NULL
----
-80
150
-80
159
-80
187

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( - ( + 20 ) ) IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE 69 * - col0 >= NULL
----

query I rowsort
SELECT 66 AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 29794915b585eea848ad670075452c88

query I rowsort
SELECT ALL - ( + 56 ) FROM tab0 AS cor0 INNER JOIN tab1 cor1 ON NULL IS NULL
----
9 values hashing to 3d3dab400eef93c098acbbba3fc9bdc6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-2867
SELECT DISTINCT - 89 * CAST( NULL AS DECIMAL ) * 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-2867
SELECT DISTINCT - 89 * CAST ( NULL AS REAL ) * 91 AS col2 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col0 > - col1
----
46
51
23
64
77
40

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) = - 52 + + col1
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2870
SELECT DISTINCT CAST( + + 58 AS SIGNED ) + - + COUNT( * ) AS col0 FROM tab2 AS cor0
----
55

skipif mysql # not compatible
query I rowsort label-2870
SELECT DISTINCT CAST ( + + 58 AS INTEGER ) + - + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
55

onlyif mysql # aggregate syntax: 
query I rowsort label-2871
SELECT COUNT( * ) * + 44 AS col2 FROM tab0
----
132

skipif mysql # not compatible
query I rowsort label-2871
SELECT COUNT ( * ) * + 44 AS col2 FROM tab0
----
132

onlyif mysql # aggregate syntax: 
query I rowsort label-2872
SELECT + MIN( ALL + + col0 ) FROM tab2
----
46

skipif mysql # not compatible
query I rowsort label-2872
SELECT + MIN ( ALL + + col0 ) FROM tab2
----
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * + col2 col2, - 95 FROM tab1
----
3481
-95
4624
-95
9216
-95

query I rowsort
SELECT ALL ( + col1 ) * - + col2 * + col1 FROM tab2 WHERE NULL IS NULL
----
-237160
-260362
-59823

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2875
SELECT col2 + - - col2 + - col2 * - col1 + col2 + - - CAST( NULL AS SIGNED ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2875
SELECT col2 + - - col2 + - col2 * - col1 + col2 + - - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - col2 * - col1 * - col1 AS col2 FROM tab1
----
-1480
-150259
-18830

query I rowsort
SELECT + 30 * + col1 + + + col2 AS col0 FROM tab0
----
129
2477
640

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * - col2 <= - - col2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2879
SELECT DISTINCT COUNT( * ) * - 37 + + + MAX( - CAST( NULL AS SIGNED ) ) AS col0 FROM tab1 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2879
SELECT DISTINCT COUNT ( * ) * - 37 + + + MAX ( - CAST ( NULL AS INTEGER ) ) AS col0 FROM tab1 cor0
----
NULL

query I rowsort
SELECT 45 AS col0 FROM tab2 WHERE NULL IS NULL
----
45
45
45

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2881
SELECT ALL CAST( NULL AS SIGNED ), col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-2881
SELECT ALL CAST ( NULL AS INTEGER ), col1 AS col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query II rowsort
SELECT col0 AS col1, col0 AS col0 FROM tab0
----
15
15
87
87
97
97

query III rowsort
SELECT * FROM tab1 WHERE NOT - + ( + col0 ) BETWEEN - col0 AND NULL
----

query I rowsort
SELECT ALL - col0 * 20 FROM tab2
----
-1280
-1500
-920

onlyif mysql # aggregate syntax: 
query I rowsort label-2885
SELECT MIN( 42 ) FROM tab2
----
42

skipif mysql # not compatible
query I rowsort label-2885
SELECT MIN ( 42 ) FROM tab2
----
42

query I rowsort
SELECT ALL - ( + - 19 ) FROM tab0
----
19
19
19

query I rowsort
SELECT DISTINCT - col0 * - - col2 AS col0 FROM tab1
----
-4896
-5015
-6188

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 65 col0 FROM tab0
----
-65

onlyif mysql # aggregate syntax: 
query II rowsort label-2889
SELECT COUNT( * ) col2, 43 FROM tab1 AS cor0
----
3
43

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2889
SELECT COUNT ( * ) col2, 43 FROM tab1 AS cor0
----
3
43

query II rowsort
SELECT DISTINCT col0, - col1 AS col2 FROM tab1 AS cor0
----
51
-14
85
-5
91
-47

query I rowsort
SELECT DISTINCT col0 * - col2 + col0 AS col1 FROM tab2 AS cor0
----
-1012
-2496
-4275

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2892
SELECT ( - - CAST( 84 AS SIGNED ) ) col2 FROM tab0
----
84
84
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2892
SELECT ( - - CAST ( 84 AS INTEGER ) ) col2 FROM tab0
----
84
84
84

query I rowsort
SELECT ALL + 86 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 2d8c3a0d19ea51447f83cd18b49fee19

query I rowsort
SELECT + 94 AS col0 FROM tab0 WHERE NOT + col2 IS NULL
----
94
94
94

query I rowsort
SELECT DISTINCT - 47 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 cor1
----
-47

query I rowsort
SELECT + col2 * + 20 - - + 6 AS col0 FROM tab1 AS cor0
----
1186
1366
1926

onlyif mysql # aggregate syntax: 
query I rowsort label-2897
SELECT DISTINCT - COUNT( * ) * - + 82 FROM tab0 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2897
SELECT DISTINCT - COUNT ( * ) * - + 82 FROM tab0 AS cor0
----
246

query I rowsort
SELECT + col1 + 25 - + col1 * - col1 FROM tab0 AS cor0
----
27
487
6667

query II rowsort
SELECT + 31 + + - col1, + col1 FROM tab2 AS cor0
----
-20
51
-36
67
-46
77

query I rowsort
SELECT DISTINCT + + col1 * + - col0 * + 79 FROM tab0 AS cor0
----
-144333
-7663
-95985

query I rowsort
SELECT - col2 + col1 * + ( col2 ) * - ( 14 ) * ( + col2 ) AS col0 FROM tab2 AS cor0
----
-1724840
-3155490
-377729

onlyif mysql # DIV for integer division: 
query I rowsort label-2902
SELECT DISTINCT + 16 DIV + col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2902
SELECT DISTINCT + 16 / + col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2903
SELECT ALL + 72 DIV - MAX( - - col1 ) FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-2903
SELECT ALL + 72 / - MAX ( - - col1 ) FROM tab2
----
0

query I rowsort
SELECT 86 AS col0 FROM tab0 WHERE + col2 IS NOT NULL
----
86
86
86

query I rowsort
SELECT DISTINCT col0 * - 50 FROM tab1
----
-2550
-4250
-4550

query I rowsort
SELECT DISTINCT - col2 + - - col0 FROM tab1 AS cor0
----
-45
23
26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 - + col2 col1 FROM tab2 AS cor0
----
28
37
9

query I rowsort
SELECT 49 - - col2 FROM tab1 AS cor0
----
108
117
145

onlyif mysql # aggregate syntax: 
query I rowsort label-2909
SELECT ALL + SUM( DISTINCT + col1 ) + COUNT( * ) FROM tab2 AS cor0
----
198

skipif mysql # not compatible
query I rowsort label-2909
SELECT ALL + SUM ( DISTINCT + col1 ) + COUNT ( * ) FROM tab2 AS cor0
----
198

query I rowsort
SELECT - - col2 + + + col0 - + - col0 AS col2 FROM tab0 AS cor0
----
184
293
77

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - col0 = col2
----

query I rowsort
SELECT DISTINCT col2 - - col2 + + + col1 FROM tab1 AS cor0
----
123
183
206

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * + col1 * - + col1 + - col2 * col1 + 80 col2 FROM tab2
----
-120739
-340481
-382456

query I rowsort
SELECT ALL + col1 FROM tab2 WHERE NOT ( + - col0 ) IS NOT NULL
----

query I rowsort
SELECT 58 + + col1 FROM tab2
----
109
125
135

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2916
SELECT - + 19 / CAST( NULL AS SIGNED ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2916
SELECT - + 19 / CAST ( NULL AS INTEGER ) + col0 AS col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT 33 * + col0 AS col2, col1 AS col2 FROM tab2 AS cor0
----
1518
51
2112
77
2475
67

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE ( + - col0 NOT IN ( - + col0 ) )
----

query I rowsort
SELECT + 41 + + col2 FROM tab0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2920
SELECT ALL + MIN( + ( 77 ) ) AS col2 FROM tab0
----
77

skipif mysql # not compatible
query I rowsort label-2920
SELECT ALL + MIN ( + ( 77 ) ) AS col2 FROM tab0
----
77

query II rowsort
SELECT + 63 AS col0, 89 * + 2 AS col2 FROM tab0
----
63
178
63
178
63
178

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - 87 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2923
SELECT - MIN( ALL 38 ) * - ( + ( CAST( NULL AS SIGNED ) ) ) / 13 FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2923
SELECT - MIN ( ALL 38 ) * - ( + ( CAST ( NULL AS INTEGER ) ) ) / 13 FROM tab0 cor0
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col0 + - 62 NOT BETWEEN NULL AND + + col0
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2925
SELECT col1 DIV + 83 AS col1 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2925
SELECT col1 / + 83 AS col1 FROM tab2
----
0
0
0

query II rowsort
SELECT - col0 AS col1, col2 + col1 AS col0 FROM tab1
----
-51
110
-85
64
-91
115

onlyif mysql # aggregate syntax: 
query I rowsort label-2927
SELECT COUNT( - - 28 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2927
SELECT COUNT ( - - 28 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT - + ( + col0 ) * + col1 + col0 FROM tab0 AS cor0
----
-1200
-1740
0

query I rowsort
SELECT DISTINCT col1 * + 13 * 42 * - - col1 + - 85 FROM tab1 AS cor0 WHERE 87 > + col0
----
106931
13565

onlyif mysql # aggregate syntax: 
query I rowsort label-2930
SELECT DISTINCT 15 + - COUNT( * ) FROM tab0 cor0
----
12

skipif mysql # not compatible
query I rowsort label-2930
SELECT DISTINCT 15 + - COUNT ( * ) FROM tab0 cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-2931
SELECT ALL + + 80 + COUNT( * ) FROM tab2 AS cor0
----
83

skipif mysql # not compatible
query I rowsort label-2931
SELECT ALL + + 80 + COUNT ( * ) FROM tab2 AS cor0
----
83

query I rowsort
SELECT DISTINCT + + col2 + - + col1 + + ( - 81 ) AS col1 FROM tab2 cor0
----
-109
-118
-90

query I rowsort
SELECT ( + + 66 ) * - col0 + + col2 FROM tab0
----
-5732
-6303
-943

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 17 + col2 + - col0 col2 FROM tab2
----
-6
-7
0

query I rowsort
SELECT 76 * + + col2 + 83 + col0 AS col2 FROM tab1
----
4652
5342
7430

onlyif mysql # aggregate syntax: 
query I rowsort label-2936
SELECT SUM( + - col1 ) + ( - + ( + + COUNT( * ) ) ) * - + 54 + + - MAX( + - col1 ) AS col1 FROM tab2
----
18

skipif mysql # not compatible
query I rowsort label-2936
SELECT SUM ( + - col1 ) + ( - + ( + + COUNT ( * ) ) ) * - + 54 + + - MAX ( + - col1 ) AS col1 FROM tab2
----
18

query I rowsort
SELECT col2 * - col0 + 43 FROM tab1
----
-4853
-4972
-6145

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 77 + - + col1 * - + col0 col2 FROM tab1 WHERE NOT + 79 > ( + + col1 + - col0 + - 12 - 96 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2939
SELECT - col1 + col0 DIV - col0 AS col2 FROM tab2
----
-52
-68
-78

skipif mysql # not compatible
query I rowsort label-2939
SELECT - col1 + col0 / - col0 AS col2 FROM tab2
----
-52
-68
-78

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2940
SELECT DISTINCT + CAST( NULL AS SIGNED ) * + + COUNT( * ) + + - 93 * - COUNT( * ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-2940
SELECT DISTINCT + CAST ( NULL AS INTEGER ) * + + COUNT ( * ) + + - 93 * - COUNT ( * ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( - col2 * + 24 IS NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2942
SELECT ALL col2 + - col0 DIV col2 FROM tab1 AS cor0
----
58
67
96

skipif mysql # not compatible
query I rowsort label-2942
SELECT ALL col2 + - col0 / col2 FROM tab1 AS cor0
----
58
67
96

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-2944
SELECT + col0 * col1 * + CAST( 81 AS SIGNED ) * + - 88 + - col2 + col0, col1 + - col1 col2 FROM tab1 AS cor0
----
-3029374
0
-30486433
0
-5089437
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-2944
SELECT + col0 * col1 * + CAST ( 81 AS INTEGER ) * + - 88 + - col2 + col0, col1 + - col1 col2 FROM tab1 AS cor0
----
-3029374
0
-30486433
0
-5089437
0

query I rowsort
SELECT DISTINCT col2 + + col0 + - col1 + + - col1 * + - col2 * + + 25 + + col2 AS col2 FROM tab2 AS cor0
----
29366
77067
97274

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - col2 + col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2947
SELECT - 59 - + - 45 DIV - col0 + + col0 FROM tab1
----
-8
26
32

skipif mysql # not compatible
query I rowsort label-2947
SELECT - 59 - + - 45 / - col0 + + col0 FROM tab1
----
-8
26
32

query I rowsort
SELECT DISTINCT + + ( - + 89 ) * col1 AS col2 FROM tab0 AS cor0
----
-1869
-7209
-89

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT + col0 * + 51 * - - ( + ( - col0 ) ) IS NOT NULL
----

query I rowsort
SELECT ALL - col1 * + col2 + + + col2 FROM tab0 AS cor0
----
-200
-3760
0

query I rowsort
SELECT DISTINCT 16 * col0 FROM tab0 AS cor0
----
1392
1552
240

onlyif mysql # DIV for integer division: 
query II rowsort label-2952
SELECT 66, + col0 DIV - + col1 AS col2 FROM tab0 AS cor0
----
66
-4
66
-97
66
0

skipif mysql # not compatible
query II rowsort label-2952
SELECT 66, + col0 / - + col1 AS col2 FROM tab0 AS cor0
----
66
-4
66
-97
66
0

onlyif mysql # aggregate syntax: 
query I rowsort label-2953
SELECT ALL - - COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 57 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-2953
SELECT ALL - - COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT 57 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-2954
SELECT + 99 * + MAX( - col1 ) * - 18 FROM tab2 AS cor0
----
90882

skipif mysql # not compatible
query I rowsort label-2954
SELECT + 99 * + MAX ( - col1 ) * - 18 FROM tab2 AS cor0
----
90882

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2955
SELECT DISTINCT CAST( col0 AS SIGNED ) col1 FROM tab1 AS cor0
----
51
85
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-2955
SELECT DISTINCT CAST ( col0 AS INTEGER ) col1 FROM tab1 AS cor0
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-2956
SELECT ALL COUNT( * ) * - SUM( DISTINCT - + 2 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-2956
SELECT ALL COUNT ( * ) * - SUM ( DISTINCT - + 2 ) FROM tab2
----
6

query I rowsort
SELECT col2 * + + ( - col0 ) FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 55 AS col2 FROM tab1 WHERE NOT ( col2 <> 25 )
----

query I rowsort
SELECT ALL 41 FROM tab1 WHERE - - ( + col1 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2960
SELECT ALL * FROM tab0 WHERE - col2 - 77 - + CAST( NULL AS SIGNED ) BETWEEN NULL AND 94
----

skipif mysql # not compatible
query III rowsort label-2960
SELECT ALL * FROM tab0 WHERE - col2 - 77 - + CAST ( NULL AS INTEGER ) BETWEEN NULL AND 94
----

onlyif mysql # aggregate syntax: 
query I rowsort label-2961
SELECT ALL + MIN( - 39 ) AS col1 FROM tab2
----
-39

skipif mysql # not compatible
query I rowsort label-2961
SELECT ALL + MIN ( - 39 ) AS col1 FROM tab2
----
-39

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2962
SELECT ALL - COUNT( ALL - ( + + col0 ) ) DIV - COUNT( ALL col2 ) FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-2962
SELECT ALL - COUNT ( ALL - ( + + col0 ) ) / - COUNT ( ALL col2 ) FROM tab1 AS cor0
----
1

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-2963
SELECT * FROM tab2 AS cor0 WHERE NOT CAST( - - 54 AS SIGNED ) NOT BETWEEN + - col0 * - 59 AND NULL
----

skipif mysql # not compatible
query III rowsort label-2963
SELECT * FROM tab2 AS cor0 WHERE NOT CAST ( - - 54 AS INTEGER ) NOT BETWEEN + - col0 * - 59 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2964
SELECT + + 29 DIV + col2 FROM tab0 AS cor0
----
0
0
2

skipif mysql # not compatible
query I rowsort label-2964
SELECT + + 29 / + col2 FROM tab0 AS cor0
----
0
0
2

query I rowsort
SELECT - 42 * + col1 * - col2 AS col0 FROM tab1 AS cor0
----
12390
134232
56448

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2966
SELECT + MAX( DISTINCT + 78 ) DIV - COUNT( * ) FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-2966
SELECT + MAX ( DISTINCT + 78 ) / - COUNT ( * ) FROM tab1
----
-26

query I rowsort
SELECT + 11 + + + 9 * + + col0 AS col2 FROM tab2 AS cor0
----
425
587
686

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - col2 * col0 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2969
SELECT DISTINCT MIN( DISTINCT + - CAST( NULL AS SIGNED ) ) + COUNT( DISTINCT + col2 ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-2969
SELECT DISTINCT MIN ( DISTINCT + - CAST ( NULL AS INTEGER ) ) + COUNT ( DISTINCT + col2 ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT ALL + + 44 + + col0 FROM tab0 cor0 WHERE - col2 IS NULL
----

query I rowsort
SELECT - 73 AS col2 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL + 61 + + 79 FROM tab0 AS cor0
----
140
140
140

query I rowsort
SELECT DISTINCT - + 59 + col0 FROM tab0 cor0
----
-44
28
38

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE col1 * col0 * + col1 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - col0 + - + col1 * col1 + - col0 AS col1 FROM tab2 AS cor0
----
-2693
-4639
-6057

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 * col2 IS NULL
----

query I rowsort
SELECT ALL + - 6 + + col1 FROM tab1 WHERE NOT + + col1 IS NULL
----
-1
41
8

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 - - + 99 + - 0 col1 FROM tab1
----
104
113
146

query II rowsort
SELECT col1, - col0 + + - 16 FROM tab2
----
51
-62
67
-91
77
-80

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2980
SELECT DISTINCT CAST( + + COUNT( * ) AS SIGNED ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-2980
SELECT DISTINCT CAST ( + + COUNT ( * ) AS INTEGER ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT col2 * + - col0 AS col1 FROM tab2
----
-1058
-2560
-4350

query I rowsort
SELECT DISTINCT - col2 + - col1 + - - col1 FROM tab1
----
-59
-68
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-2983
SELECT ALL COUNT( * ) + + COUNT( ALL + col2 ) AS col2 FROM tab0
----
6

skipif mysql # not compatible
query I rowsort label-2983
SELECT ALL COUNT ( * ) + + COUNT ( ALL + col2 ) AS col2 FROM tab0
----
6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-2984
SELECT - CAST( NULL AS SIGNED ) - + + 55 - - + ( 9 ) * - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-2984
SELECT - CAST ( NULL AS INTEGER ) - + + 55 - - + ( 9 ) * - + col0 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-2985
SELECT ALL - - MIN( ALL - - col0 ) * COUNT( * ) - CAST( - 93 AS SIGNED ) FROM tab1 AS cor0
----
246

skipif mysql # not compatible
query I rowsort label-2985
SELECT ALL - - MIN ( ALL - - col0 ) * COUNT ( * ) - CAST ( - 93 AS INTEGER ) FROM tab1 AS cor0
----
246

query I rowsort
SELECT ALL + col2 - + - col1 * - col2 AS col0 FROM tab1
----
-1248
-236
-3128

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT - 39 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 49 * - col2 + + 97 + + - col1 * - 10 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-2989
SELECT DISTINCT + 52, MAX( DISTINCT + col0 ) AS col2 FROM tab1
----
52
91

skipif mysql # not compatible
query II rowsort label-2989
SELECT DISTINCT + 52, MAX ( DISTINCT + col0 ) AS col2 FROM tab1
----
52
91

query I rowsort
SELECT - + 32 FROM tab0 WHERE NOT col2 = NULL
----

query I rowsort
SELECT col1 * - 77 FROM tab2
----
-3927
-5159
-5929

onlyif mysql # DIV for integer division: 
query I rowsort label-2992
SELECT col0 DIV col0 * - 3 FROM tab2
----
-3
-3
-3

skipif mysql # not compatible
query I rowsort label-2992
SELECT col0 / col0 * - 3 FROM tab2
----
-3
-3
-3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 77, - 16 col1 FROM tab1
----
-77
-16
-77
-16
-77
-16

query I rowsort
SELECT DISTINCT - 11 + - 11 AS col0 FROM tab2 AS cor0
----
-22

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-2995
SELECT DISTINCT - + 15 DIV COUNT( * ) FROM tab2 cor0
----
-5

skipif mysql # not compatible
query I rowsort label-2995
SELECT DISTINCT - + 15 / COUNT ( * ) FROM tab2 cor0
----
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-2996
SELECT + 49 DIV - + 60 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-2996
SELECT + 49 / - + 60 FROM tab2
----
0
0
0

query I rowsort
SELECT - 90 AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to f6f26b9a04da14807208b93d507095c5

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - - 68 * - 35 + - col0 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-2999
SELECT ALL + - col0 + col0 - col2 + - 94 DIV 8 DIV + col2 AS col2 FROM tab0 AS cor0
----
-11
-47
-99

skipif mysql # not compatible
query I rowsort label-2999
SELECT ALL + - col0 + col0 - col2 + - 94 / 8 / + col2 AS col2 FROM tab0 AS cor0
----
-11
-47
-99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3000
SELECT - 86 - - CAST( NULL AS SIGNED ) + 15 * - COUNT( * ) + - COUNT( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3000
SELECT - 86 - - CAST ( NULL AS INTEGER ) + 15 * - COUNT ( * ) + - COUNT ( * ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col2 * 39 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3002
SELECT - col2 - - + col0 * CAST( - + col2 AS SIGNED ) FROM tab1 AS cor0
----
-4992
-5074
-6256

skipif mysql # not compatible
query I rowsort label-3002
SELECT - col2 - - + col0 * CAST ( - + col2 AS INTEGER ) FROM tab1 AS cor0
----
-4992
-5074
-6256

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3003
SELECT + - CAST( NULL AS DECIMAL ) * + col1 + - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3003
SELECT + - CAST ( NULL AS REAL ) * + col1 + - - col2 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3004
SELECT ALL + 39 - - COUNT( * ) * - - ( + COUNT( * ) ) FROM tab0 AS cor0
----
48

skipif mysql # not compatible
query I rowsort label-3004
SELECT ALL + 39 - - COUNT ( * ) * - - ( + COUNT ( * ) ) FROM tab0 AS cor0
----
48

query I rowsort
SELECT + col1 + - + 25 * + - col2 AS col2 FROM tab1 AS cor0
----
1480
1747
2414

onlyif mysql # aggregate syntax: 
query I rowsort label-3006
SELECT ALL 0 + COUNT( * ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3006
SELECT ALL 0 + COUNT ( * ) AS col2 FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3007
SELECT - CAST( NULL AS SIGNED ) + + COUNT( * ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3007
SELECT - CAST ( NULL AS INTEGER ) + + COUNT ( * ) FROM tab1
----
NULL

query I rowsort
SELECT col2 + - + 67 + - + col2 FROM tab2
----
-67
-67
-67

query I rowsort
SELECT DISTINCT - col1 - col0 + - - col2 FROM tab2
----
-101
-74
-84

query I rowsort
SELECT DISTINCT - 28 * col0 FROM tab1
----
-1428
-2380
-2548

query III rowsort
SELECT * FROM tab1 WHERE - col0 + col1 < NULL
----

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE NULL BETWEEN NULL AND + 30
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3013
SELECT ALL - + 80 + 13 * - col0 - + - col0 * col2, + 77 DIV - col0 AS col1 FROM tab0 AS cor0
----
-341
0
430
-5
8262
0

skipif mysql # not compatible
query II rowsort label-3013
SELECT ALL - + 80 + 13 * - col0 - + - col0 * col2, + 77 / - col0 AS col1 FROM tab0 AS cor0
----
-341
0
430
-5
8262
0

query II rowsort
SELECT 12 AS col0, - col1 FROM tab0 AS cor0
----
12
-1
12
-21
12
-81

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 96 col0, 26 AS col0 FROM tab2 AS cor0
----
96
26

query I rowsort
SELECT DISTINCT 52 * + - col0 FROM tab2
----
-2392
-3328
-3900

query I rowsort
SELECT DISTINCT 97 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, col2 AS col2 FROM tab1
----
59
59
68
68
96
96

query II rowsort
SELECT ALL + col0 * - + col2, 18 * - 1 AS col1 FROM tab1
----
-4896
-18
-5015
-18
-6188
-18

onlyif mysql # aggregate syntax: 
query I rowsort label-3020
SELECT - 96 + - + COUNT( - col1 ) FROM tab1 cor0 WHERE NOT ( - ( - col2 ) ) IS NULL
----
-99

skipif mysql # not compatible
query I rowsort label-3020
SELECT - 96 + - + COUNT ( - col1 ) FROM tab1 cor0 WHERE NOT ( - ( - col2 ) ) IS NULL
----
-99

query II rowsort
SELECT DISTINCT - - 71, col0 AS col0 FROM tab2 AS cor0
----
71
46
71
64
71
75

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - 53 >= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col0 col2, - 20 AS col0 FROM tab2 cor0
----
-46
-20
-64
-20
-75
-20

onlyif mysql # aggregate syntax: 
query I rowsort label-3024
SELECT - COUNT( ALL ( - + 21 ) ) AS col2 FROM tab1 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-3024
SELECT - COUNT ( ALL ( - + 21 ) ) AS col2 FROM tab1 AS cor0
----
-3

query II rowsort
SELECT - - col1 AS col1, + 23 * col0 AS col0 FROM tab1 cor0
----
14
1173
47
2093
5
1955

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL NOT BETWEEN ( ( - - 63 ) ) + + col2 AND + 48
----

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT + 84 = - - ( + + col0 ) + - 13 * - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3028
SELECT + CAST( + CAST( + 82 AS SIGNED ) AS SIGNED ) AS col2 FROM tab1 AS cor0
----
82
82
82

skipif mysql # not compatible
query I rowsort label-3028
SELECT + CAST ( + CAST ( + 82 AS INTEGER ) AS INTEGER ) AS col2 FROM tab1 AS cor0
----
82
82
82

query I rowsort
SELECT - ( - 81 ) FROM tab2 AS cor0
----
81
81
81

onlyif mysql # DIV for integer division: 
query I rowsort label-3030
SELECT 16 DIV - col1 AS col2 FROM tab1
----
-1
-3
0

skipif mysql # not compatible
query I rowsort label-3030
SELECT 16 / - col1 AS col2 FROM tab1
----
-1
-3
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3031
SELECT DISTINCT COUNT( * ) DIV MIN( DISTINCT + 22 ) * MIN( - CAST( - col2 AS SIGNED ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3031
SELECT DISTINCT COUNT ( * ) / MIN ( DISTINCT + 22 ) * MIN ( - CAST ( - col2 AS INTEGER ) ) FROM tab0
----
0

onlyif mysql # DIV for integer division: 
query I rowsort label-3032
SELECT DISTINCT - col1 DIV + - col2 AS col2 FROM tab0
----
0
1
2

skipif mysql # not compatible
query I rowsort label-3032
SELECT DISTINCT - col1 / + - col2 AS col2 FROM tab0
----
0
1
2

query I rowsort
SELECT DISTINCT 92 * + col2 FROM tab2
----
2116
3680
5336

query I rowsort
SELECT DISTINCT + 38 + - 21 AS col2 FROM tab1 WHERE NOT + 27 NOT BETWEEN + col2 AND + + col0 OR NOT - col0 * + + 28 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3035
SELECT ALL ( - - MIN( col0 ) ) + 56 FROM tab2 AS cor0
----
102

skipif mysql # not compatible
query I rowsort label-3035
SELECT ALL ( - - MIN ( col0 ) ) + 56 FROM tab2 AS cor0
----
102

query I rowsort
SELECT DISTINCT - 55 * 95 FROM tab2
----
-5225

query IIIIII rowsort
SELECT * FROM ( tab2 AS cor0 CROSS JOIN tab2 AS cor1 ) WHERE NULL IS NULL
----
54 values hashing to ee5129bae5293935ae558ebe95290e29

query I rowsort
SELECT + col1 * col0 * + col2 + + + col2 FROM tab0 AS cor0
----
18280
57152
9702

onlyif mysql # aggregate syntax: 
query I rowsort label-3039
SELECT DISTINCT + - COUNT( * ) + 43 AS col1 FROM tab2 AS cor0
----
40

skipif mysql # not compatible
query I rowsort label-3039
SELECT DISTINCT + - COUNT ( * ) + 43 AS col1 FROM tab2 AS cor0
----
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3040
SELECT ALL + col0 + - col1 * CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3040
SELECT ALL + col0 + - col1 * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3041
SELECT DISTINCT - COUNT( * ) + - 36 FROM tab0 AS cor0
----
-39

skipif mysql # not compatible
query I rowsort label-3041
SELECT DISTINCT - COUNT ( * ) + - 36 FROM tab0 AS cor0
----
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3042
SELECT ALL - 60 + - - COUNT( * ) FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
query I rowsort label-3042
SELECT ALL - 60 + - - COUNT ( * ) FROM tab1 AS cor0
----
-57

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3043
SELECT DISTINCT + + CAST( - - 75 AS SIGNED ) + + col0 AS col2 FROM tab0 AS cor0
----
162
172
90

skipif mysql # not compatible
query I rowsort label-3043
SELECT DISTINCT + + CAST ( - - 75 AS INTEGER ) + + col0 AS col2 FROM tab0 AS cor0
----
162
172
90

query II rowsort
SELECT ( - col0 ) * 40 AS col1, + 96 AS col2 FROM tab1 cor0
----
-2040
96
-3400
96
-3640
96

query II rowsort
SELECT - col0, 28 AS col0 FROM tab2 AS cor0
----
-46
28
-64
28
-75
28

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3046
SELECT ALL - + CAST( NULL AS SIGNED ) * + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST( NULL AS SIGNED ), col0 - - 38 )
----

skipif mysql # not compatible
query I rowsort label-3046
SELECT ALL - + CAST ( NULL AS INTEGER ) * + - col0 AS col1 FROM tab1 AS cor0 WHERE NULL NOT IN ( CAST ( NULL AS INTEGER ), col0 - - 38 )
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - col1 >= + col0
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE + 15 = + + 71 * 10
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3050
SELECT COUNT( * ) - + - 62 AS col2 FROM tab1
----
65

skipif mysql # not compatible
query I rowsort label-3050
SELECT COUNT ( * ) - + - 62 AS col2 FROM tab1
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3051
SELECT DISTINCT + 99 - - - COUNT( * ) - + - COUNT( * ) AS col1 FROM tab2
----
99

skipif mysql # not compatible
query I rowsort label-3051
SELECT DISTINCT + 99 - - - COUNT ( * ) - + - COUNT ( * ) AS col1 FROM tab2
----
99

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3052
SELECT - col0 DIV - CAST( - col0 AS SIGNED ) - + 77 FROM tab0
----
-78
-78
-78

skipif mysql # not compatible
query I rowsort label-3052
SELECT - col0 / - CAST ( - col0 AS INTEGER ) - + 77 FROM tab0
----
-78
-78
-78

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3053
SELECT 63 * COUNT( ALL + CAST( NULL AS DECIMAL ) ) - - + ( + 59 ) FROM tab2
----
59

skipif mysql # not compatible
query I rowsort label-3053
SELECT 63 * COUNT ( ALL + CAST ( NULL AS REAL ) ) - - + ( + 59 ) FROM tab2
----
59

onlyif mysql # aggregate syntax: 
query I rowsort label-3054
SELECT + MIN( DISTINCT - + 80 ) * + + ( + - 28 ) + + MAX( ALL + 86 ) + - - 15 FROM tab2 AS cor0
----
2341

skipif mysql # not compatible
query I rowsort label-3054
SELECT + MIN ( DISTINCT - + 80 ) * + + ( + - 28 ) + + MAX ( ALL + 86 ) + - - 15 FROM tab2 AS cor0
----
2341

onlyif mysql # aggregate syntax: 
query I rowsort label-3055
SELECT COUNT( ALL + - 85 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3055
SELECT COUNT ( ALL + - 85 ) FROM tab0
----
3

query I rowsort
SELECT DISTINCT 34 * col2 * - - col2 AS col1 FROM tab1 AS cor0
----
118354
157216
313344

query I rowsort
SELECT ALL 49 * + - col2 AS col2 FROM tab0
----
-2303
-4851
-490

onlyif mysql # DIV for integer division: 
query II rowsort label-3058
SELECT 85 DIV + col1 AS col1, - 97 + - + col2 AS col0 FROM tab2
----
1
-120
1
-137
1
-155

skipif mysql # not compatible
query II rowsort label-3058
SELECT 85 / + col1 AS col1, - 97 + - + col2 AS col0 FROM tab2
----
1
-120
1
-137
1
-155

onlyif mysql # aggregate syntax: 
query I rowsort label-3059
SELECT + 68 * COUNT( * ) FROM tab1
----
204

skipif mysql # not compatible
query I rowsort label-3059
SELECT + 68 * COUNT ( * ) FROM tab1
----
204

query I rowsort
SELECT ALL - col2 + - 4 FROM tab2
----
-27
-44
-62

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 AS col2, col1 col2 FROM tab0
----
1
1
21
21
81
81

query I rowsort
SELECT ALL + col0 * col0 FROM tab2 AS cor0 WHERE - col2 IS NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 < - col1
----

query II rowsort
SELECT - + col2 AS col0, - 53 AS col2 FROM tab1 cor0
----
-59
-53
-68
-53
-96
-53

query I rowsort
SELECT ALL - 94 + - + col1 * + + ( - col0 ) FROM tab1
----
331
4183
620

query II rowsort
SELECT - 68 * col2 AS col0, col0 AS col1 FROM tab1
----
-4012
85
-4624
91
-6528
51

query II rowsort
SELECT ALL ( + + 99 ), col0 * - col1 + + col1 AS col0 FROM tab2 cor0
----
99
-2295
99
-4851
99
-4958

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col0 * - col2 col1, - ( 39 ) FROM tab2 AS cor0
----
-1058
-39
-2560
-39
-4350
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-3069
SELECT ALL + MAX( + 46 ) + 88 FROM tab1 AS cor0
----
134

skipif mysql # not compatible
query I rowsort label-3069
SELECT ALL + MAX ( + 46 ) + 88 FROM tab1 AS cor0
----
134

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * - 99 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * - + col1 + + + col2 col2 FROM tab1 AS cor0
----
-366
-4209
-618

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3072
SELECT - SUM( + + ( + col2 ) ) + + ( COUNT( * ) ), - CAST( NULL AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-118
NULL

skipif mysql # not compatible
query II rowsort label-3072
SELECT - SUM ( + + ( + col2 ) ) + + ( COUNT ( * ) ), - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-118
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3073
SELECT col1 + + col0 * 41 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3073
SELECT col1 + + col0 * 41 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query II rowsort
SELECT ALL + col2 + - col2, - col1 + - col0 * - col2 AS col0 FROM tab0 AS cor0
----
0
624
0
849
0
9602

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-3075
SELECT + CAST( NULL AS DECIMAL ) AS col2, col1 * - 28 FROM tab1
----
NULL
-1316
NULL
-140
NULL
-392

skipif mysql # not compatible
query II rowsort label-3075
SELECT + CAST ( NULL AS REAL ) AS col2, col1 * - 28 FROM tab1
----
NULL
-1316
NULL
-140
NULL
-392

query I rowsort
SELECT + + 66 AS col2 FROM tab2 WHERE NULL IS NOT NULL
----

query II rowsort
SELECT ALL col2 AS col0, - col2 AS col2 FROM tab0
----
10
-10
47
-47
99
-99

query II rowsort
SELECT - 43 AS col0, + col1 FROM tab2
----
-43
51
-43
67
-43
77

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col0 * col1 + - col1 - + 16 col1 FROM tab0 AS cor0 WHERE NOT - col0 * - 82 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3080
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + + col0 * - CAST( - col1 AS SIGNED ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3080
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col0 * + + col0 * - CAST ( - col1 AS INTEGER ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT - + 66 AS col2 FROM tab0 cor0
----
-66

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3082
SELECT - + col1 / - col2 - + CAST( NULL AS SIGNED ) + - col1 - - - 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3082
SELECT - + col1 / - col2 - + CAST ( NULL AS INTEGER ) + - col1 - - - 98 FROM tab2 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( NULL ) <> col0 - col1
----

query I rowsort
SELECT ALL + col1 + - col2 + 75 * col2 FROM tab1 AS cor0
----
4371
5079
7118

onlyif mysql # aggregate syntax: 
query I rowsort label-3085
SELECT ALL + COUNT( + col1 ) + - - 49 AS col0 FROM tab1 AS cor0
----
52

skipif mysql # not compatible
query I rowsort label-3085
SELECT ALL + COUNT ( + col1 ) + - - 49 AS col0 FROM tab1 AS cor0
----
52

query I rowsort
SELECT + col2 * 25 + - col2 FROM tab1 AS cor0
----
1416
1632
2304

onlyif mysql # DIV for integer division: 
query I rowsort label-3087
SELECT - col2 + col2 DIV col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif mysql # not compatible
query I rowsort label-3087
SELECT - col2 + col2 / col2 FROM tab1 AS cor0
----
-58
-67
-95

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col0 FROM tab2 AS cor0
----
91
91
91

query II rowsort
SELECT DISTINCT + - col2 * 88 AS col1, ( col0 ) AS col2 FROM tab2 AS cor0
----
-2024
46
-3520
64
-5104
75

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT ( + col2 / - 68 ) >= + ( + col1 ) * + 48 + + col0
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-3091
SELECT - 46 DIV + 17 FROM tab1
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-3091
SELECT - 46 / + 17 FROM tab1
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 WHERE col0 + 99 = - - col0
----

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE ( - + col0 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * + - ( col0 ) + + col0 - + col1 FROM tab0 AS cor0
----
-291
-7503
-9313

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3095
SELECT + ( CAST( NULL AS DECIMAL ) ) 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-3095
SELECT + ( CAST ( NULL AS REAL ) ) col1 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3096
SELECT DISTINCT - MAX( DISTINCT - col0 ) * - 40 - + 81 AS col1 FROM tab0 AS cor0
----
-681

skipif mysql # not compatible
query I rowsort label-3096
SELECT DISTINCT - MAX ( DISTINCT - col0 ) * - 40 - + 81 AS col1 FROM tab0 AS cor0
----
-681

query I rowsort
SELECT DISTINCT + 7 + ( + 94 ) FROM tab0 cor0
----
101

query I rowsort
SELECT DISTINCT 31 * 19 AS col1 FROM tab0
----
589

onlyif mysql # aggregate syntax: 
query I rowsort label-3099
SELECT ALL - COUNT( * ) * 7 AS col1 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3099
SELECT ALL - COUNT ( * ) * 7 AS col1 FROM tab2
----
-21

onlyif mysql # aggregate syntax: 
query I rowsort label-3100
SELECT + - 75 * COUNT( * ) FROM tab0 AS cor0
----
-225

skipif mysql # not compatible
query I rowsort label-3100
SELECT + - 75 * COUNT ( * ) FROM tab0 AS cor0
----
-225

query I rowsort
SELECT + 84 * - 13 AS col1 FROM tab2 AS cor0
----
-1092
-1092
-1092

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 * col1 + - col2 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col2 + + col0 * + ( col0 ) * col1 AS col0 FROM tab2 AS cor0
----
107939
315432
376933

query I rowsort
SELECT - + 2 * col0 FROM tab0 AS cor0
----
-174
-194
-30

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col1 <= - 19
----

query I rowsort
SELECT ALL + - col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3107
SELECT ALL - - 18 * - + col2 + - col2 DIV CAST( + col1 AS SIGNED ) * - - 79 * - 50 FROM tab2 AS cor0
----
-1044
-414
-720

skipif mysql # not compatible
query I rowsort label-3107
SELECT ALL - - 18 * - + col2 + - col2 / CAST ( + col1 AS INTEGER ) * - - 79 * - 50 FROM tab2 AS cor0
----
-1044
-414
-720

query I rowsort
SELECT ALL + col1 - ( + col0 ) AS col0 FROM tab1 AS cor0
----
-37
-44
-80

onlyif mysql # aggregate syntax: 
query II rowsort label-3109
SELECT + ( 42 ) AS col1, COUNT( * ) + + - 47 AS col2 FROM tab2
----
42
-44

skipif mysql # not compatible
query II rowsort label-3109
SELECT + ( 42 ) AS col1, COUNT ( * ) + + - 47 AS col2 FROM tab2
----
42
-44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3110
SELECT DISTINCT CAST( NULL AS SIGNED ) * + - ( - + col0 ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3110
SELECT DISTINCT CAST ( NULL AS INTEGER ) * + - ( - + col0 ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3111
SELECT ALL COUNT( * ) DIV + 38 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3111
SELECT ALL COUNT ( * ) / + 38 AS col2 FROM tab0
----
0

query III rowsort
SELECT * FROM tab2 WHERE NOT ( - 99 ) * + col0 + + - col1 NOT BETWEEN col0 AND - ( - 6 ) / col0
----

query I rowsort
SELECT DISTINCT - 11 * - col2 AS col0 FROM tab2 AS cor0
----
253
440
638

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 + - col2 / - 88 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3115
SELECT - COUNT( * ) * + MIN( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
-153

skipif mysql # not compatible
query I rowsort label-3115
SELECT - COUNT ( * ) * + MIN ( DISTINCT col1 ) AS col1 FROM tab2 cor0
----
-153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3116
SELECT ALL 38 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3116
SELECT ALL 38 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
12

query I rowsort
SELECT DISTINCT - col2 * - ( + + col0 ) AS col0 FROM tab0
----
705
870
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col2 AS col1, col2 col1 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

query I rowsort
SELECT - 40 + 76 + + col2 FROM tab1 WHERE NULL IS NULL
----
104
132
95

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3120
SELECT ( - CAST( - - ( - 5 ) AS SIGNED ) ) * + 69 * - col0 FROM tab2
----
-15870
-22080
-25875

skipif mysql # not compatible
query I rowsort label-3120
SELECT ( - CAST ( - - ( - 5 ) AS INTEGER ) ) * + 69 * - col0 FROM tab2
----
-15870
-22080
-25875

onlyif mysql # aggregate syntax: 
query I rowsort label-3121
SELECT + 61 + - - MIN( 35 ) FROM tab2
----
96

skipif mysql # not compatible
query I rowsort label-3121
SELECT + 61 + - - MIN ( 35 ) FROM tab2
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3122
SELECT SUM( + - ( col0 ) ) + - 4 FROM tab1
----
-231

skipif mysql # not compatible
query I rowsort label-3122
SELECT SUM ( + - ( col0 ) ) + - 4 FROM tab1
----
-231

query I rowsort
SELECT col1 + + col0 + - col1 * + + col0 AS col0 FROM tab0
----
-1119
-1719
1

query I rowsort
SELECT - col0 + - 27 + + col0 AS col0 FROM tab0
----
-27
-27
-27

query II rowsort
SELECT - - col0 + + - 43 AS col2, 34 FROM tab0 WHERE NULL >= NULL
----

query II rowsort
SELECT 18 + + - col2, - col0 AS col1 FROM tab1
----
-41
-85
-50
-91
-78
-51

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 + - - col0 col1 FROM tab2 cor0
----
104
133
69

query II rowsort
SELECT 93 AS col0, 18 FROM tab2
----
93
18
93
18
93
18

query I rowsort
SELECT col1 * - + 75 FROM tab2
----
-3825
-5025
-5775

onlyif mysql # aggregate syntax: 
query I rowsort label-3130
SELECT DISTINCT 15 - SUM( + col2 ) AS col2 FROM tab2
----
-106

skipif mysql # not compatible
query I rowsort label-3130
SELECT DISTINCT 15 - SUM ( + col2 ) AS col2 FROM tab2
----
-106

query I rowsort
SELECT ( - + col1 ) FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: 
query I rowsort label-3132
SELECT 89 * + COUNT( * ) - - COUNT( * ) FROM tab0
----
270

skipif mysql # not compatible
query I rowsort label-3132
SELECT 89 * + COUNT ( * ) - - COUNT ( * ) FROM tab0
----
270

query I rowsort
SELECT DISTINCT - col0 * + - col2 FROM tab0 AS cor0
----
705
870
9603

query I rowsort
SELECT - + 33 * + + col2 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + - ( - + 83 ) * + col0 * + + ( - ( - col1 ) ) AS col1 FROM tab2 AS cor0
----
194718
409024
417075

onlyif mysql # aggregate syntax: 
query I rowsort label-3136
SELECT + 53 * + COUNT( * ) FROM tab0 AS cor0
----
159

skipif mysql # not compatible
query I rowsort label-3136
SELECT + 53 * + COUNT ( * ) FROM tab0 AS cor0
----
159

onlyif mysql # DIV for integer division: 
query I rowsort label-3137
SELECT + 65 DIV col1 * col0 FROM tab0 AS cor0
----
0
261
6305

skipif mysql # not compatible
query I rowsort label-3137
SELECT + 65 / col1 * col0 FROM tab0 AS cor0
----
0
261
6305

query II rowsort
SELECT col2, + col1 * - 91 AS col2 FROM tab0
----
10
-1911
47
-7371
99
-91

query I rowsort
SELECT ALL + - 26 FROM tab1 WHERE NOT NULL NOT BETWEEN 85 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3140
SELECT ALL COUNT( * ) * 52 FROM tab0
----
156

skipif mysql # not compatible
query I rowsort label-3140
SELECT ALL COUNT ( * ) * 52 FROM tab0
----
156

query I rowsort
SELECT col1 * - - 87 + col1 FROM tab2 WHERE NOT NULL NOT BETWEEN - ( - 35 ) AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3142
SELECT DISTINCT - col2 * - col1 DIV - col1 AS col2 FROM tab2
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-3142
SELECT DISTINCT - col2 * - col1 / - col1 AS col2 FROM tab2
----
-23
-40
-58

query II rowsort
SELECT col1 AS col2, + 94 * + 8 FROM tab1
----
14
752
47
752
5
752

onlyif mysql # DIV for integer division: 
query I rowsort label-3144
SELECT DISTINCT col1 DIV + col2 col2 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3144
SELECT DISTINCT col1 / + col2 col2 FROM tab1
----
0

query I rowsort
SELECT ALL 33 * - col0 FROM tab1
----
-1683
-2805
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3146
SELECT CAST( - 22 AS SIGNED ) * ( - col2 ) + col0 AS col2 FROM tab0 cor0
----
1049
2275
307

skipif mysql # not compatible
query I rowsort label-3146
SELECT CAST ( - 22 AS INTEGER ) * ( - col2 ) + col0 AS col2 FROM tab0 cor0
----
1049
2275
307

query I rowsort
SELECT - ( col2 ) * - - 27 AS col2 FROM tab2 cor0
----
-1080
-1566
-621

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3148
SELECT - + col2 AS col1, CAST( NULL AS SIGNED ) * + col1 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

skipif mysql # not compatible
query II rowsort label-3148
SELECT - + col2 AS col1, CAST ( NULL AS INTEGER ) * + col1 AS col2 FROM tab0 AS cor0
----
-10
NULL
-47
NULL
-99
NULL

query I rowsort
SELECT + 91 * + col0 FROM tab2 AS cor0
----
4186
5824
6825

query II rowsort
SELECT + col2 AS col2, col0 AS col0 FROM tab0 AS cor0
----
10
87
47
15
99
97

onlyif mysql # DIV for integer division: 
query I rowsort label-3151
SELECT ALL + col2 * - col1 DIV - - col1 FROM tab1
----
-59
-68
-96

skipif mysql # not compatible
query I rowsort label-3151
SELECT ALL + col2 * - col1 / - - col1 FROM tab1
----
-59
-68
-96

query II rowsort
SELECT DISTINCT 5 + - col2 AS col2, col1 FROM tab1
----
-54
5
-63
47
-91
14

onlyif mysql # DIV for integer division: 
query I rowsort label-3153
SELECT DISTINCT + col2 DIV + 50 + - - col1 FROM tab1 AS cor0
----
15
48
6

skipif mysql # not compatible
query I rowsort label-3153
SELECT DISTINCT + col2 / + 50 + - - col1 FROM tab1 AS cor0
----
15
48
6

onlyif mysql # aggregate syntax: 
query I rowsort label-3154
SELECT ALL 48 + COUNT( * ) AS col0 FROM tab0 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3154
SELECT ALL 48 + COUNT ( * ) AS col0 FROM tab0 AS cor0
----
51

query I rowsort
SELECT ALL - + 85 AS col1 FROM tab0 cor0
----
-85
-85
-85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 + - 51 col1 FROM tab0 AS cor0
----
-36
36
46

query I rowsort
SELECT ( ( 9 ) ) + col1 FROM tab0 AS cor0
----
10
30
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3158
SELECT DISTINCT MIN( DISTINCT - - col2 ) col0 FROM tab0
----
10

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3158
SELECT DISTINCT MIN ( DISTINCT - - col2 ) col0 FROM tab0
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-3159
SELECT DISTINCT col0 DIV + 1 AS col1 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-3159
SELECT DISTINCT col0 / + 1 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT col1 - - col2 - - col0 * - col2 FROM tab2 AS cor0
----
-2443
-4225
-984

query I rowsort
SELECT 22 * + 10 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3162
SELECT - 98 - MIN( + col0 ) FROM tab0 AS cor0
----
-113

skipif mysql # not compatible
query I rowsort label-3162
SELECT - 98 - MIN ( + col0 ) FROM tab0 AS cor0
----
-113

query I rowsort
SELECT 71 + - - col1 AS col1 FROM tab2 AS cor0
----
122
138
148

query I rowsort
SELECT - col1 + + 41 - - col1 + - 52 FROM tab2 cor0
----
-11
-11
-11

query I rowsort
SELECT col0 + 25 AS col2 FROM tab0 AS cor0
----
112
122
40

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3166
SELECT ALL + CAST( + col2 AS SIGNED ) + col0 - + col0 AS col0 FROM tab2 AS cor0
----
23
40
58

skipif mysql # not compatible
query I rowsort label-3166
SELECT ALL + CAST ( + col2 AS INTEGER ) + col0 - + col0 AS col0 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + 52 - col2 AS col0 FROM tab2 AS cor0
----
-6
12
29

query I rowsort
SELECT col2 FROM tab2 WHERE NOT - 53 IN ( + col2 )
----
23
40
58

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 78 ) > col2 + 19
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 5 + col0 * col0 FROM tab0
----
230
7574
9414

onlyif mysql # aggregate syntax: 
query I rowsort label-3171
SELECT + COUNT( * ) + 63 AS col1 FROM tab1 WHERE col0 NOT BETWEEN col1 AND col0 + col2
----
63

skipif mysql # not compatible
query I rowsort label-3171
SELECT + COUNT ( * ) + 63 AS col1 FROM tab1 WHERE col0 NOT BETWEEN col1 AND col0 + col2
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-3172
SELECT ALL - MAX( - 98 ) AS col0 FROM tab2
----
98

skipif mysql # not compatible
query I rowsort label-3172
SELECT ALL - MAX ( - 98 ) AS col0 FROM tab2
----
98

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3173
SELECT AVG ( col2 ) * + CAST( NULL AS DECIMAL ) + - 32 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-3173
SELECT AVG ( col2 ) * + CAST ( NULL AS REAL ) + - 32 FROM tab0
----
NULL

query I rowsort
SELECT 15 * col1 + col2 FROM tab1
----
134
306
773

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3175
SELECT DISTINCT + 58 DIV + COUNT( ALL col0 ) FROM tab2
----
19

skipif mysql # not compatible
query I rowsort label-3175
SELECT DISTINCT + 58 / + COUNT ( ALL col0 ) FROM tab2
----
19

query I rowsort
SELECT ALL col0 FROM tab1 WHERE NOT - 26 / - col2 IS NULL
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-3177
SELECT DISTINCT - SUM( col2 ) col0 FROM tab0
----
-156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3177
SELECT DISTINCT - SUM ( col2 ) col0 FROM tab0
----
-156

query I rowsort
SELECT DISTINCT col2 AS col1 FROM tab0 WHERE NOT col2 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( 72 ) IS NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3180
SELECT + COUNT( + CAST( col1 AS SIGNED ) ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3180
SELECT + COUNT ( + CAST ( col1 AS INTEGER ) ) FROM tab1
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3181
SELECT ALL + MAX( - 76 ) + - COUNT( * ) FROM tab2
----
-79

skipif mysql # not compatible
query I rowsort label-3181
SELECT ALL + MAX ( - 76 ) + - COUNT ( * ) FROM tab2
----
-79

onlyif mysql # DIV for integer division: 
query I rowsort label-3182
SELECT + col2 DIV 96 + - col0 * 85 AS col1 FROM tab2
----
-3910
-5440
-6375

skipif mysql # not compatible
query I rowsort label-3182
SELECT + col2 / 96 + - col0 * 85 AS col1 FROM tab2
----
-3910
-5440
-6375

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NULL NOT IN ( + 18 * + ( - col1 * + 54 ) + col0 * + col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3184
SELECT DISTINCT col2 col0 FROM tab0 WHERE + CAST( + 35 AS SIGNED ) / col0 - col2 IN ( 88 * col1 )
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3184
SELECT DISTINCT col2 col0 FROM tab0 WHERE + CAST ( + 35 AS INTEGER ) / col0 - col2 IN ( 88 * col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( col2 ) = - 71 / col2 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3186
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab2 WHERE + 8 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3186
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab2 WHERE + 8 <= NULL
----
0

query I rowsort
SELECT col0 - + 13 FROM tab0
----
2
74
84

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL NOT BETWEEN - 52 AND - col1 + + 32 / 27
----

query I rowsort
SELECT DISTINCT col0 + + 24 FROM tab1
----
109
115
75

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 95 BETWEEN - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - col0 BETWEEN + col2 + + col1 / + ( - col0 ) AND 29
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT NULL NOT IN ( 45 * 83 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 WHERE NOT NULL < NULL
----

query I rowsort
SELECT ( 38 ) AS col2 FROM tab2
----
38
38
38

query I rowsort
SELECT col1 * - 73 + + col1 FROM tab1 WHERE NOT ( 83 + col1 ) = NULL
----

query I rowsort
SELECT - ( + 11 ) AS col0 FROM tab0
----
-11
-11
-11

onlyif mysql # aggregate syntax: 
query I rowsort label-3197
SELECT DISTINCT - COUNT( * ) * 94 FROM tab0 AS cor0
----
-282

skipif mysql # not compatible
query I rowsort label-3197
SELECT DISTINCT - COUNT ( * ) * 94 FROM tab0 AS cor0
----
-282

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col2 / col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 45 * - col1 AS col1 FROM tab0 AS cor0
----
-3645
-45
-945

query I rowsort
SELECT - 99 FROM tab1 AS cor0 CROSS JOIN tab1
----
9 values hashing to 64d06513850a26495bc6c2fddeb254b7

query I rowsort
SELECT col0 - col0 * 57 FROM tab1 WHERE NOT NULL BETWEEN ( col0 ) AND col1 * - ( - ( col1 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3202
SELECT ALL + COUNT( * ) DIV 50 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3202
SELECT ALL + COUNT ( * ) / 50 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3203
SELECT DISTINCT COUNT( ALL 43 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3203
SELECT DISTINCT COUNT ( ALL 43 ) FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3204
SELECT ALL CAST( NULL AS SIGNED ) + - 94 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3204
SELECT ALL CAST ( NULL AS INTEGER ) + - 94 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 cor0 WHERE col1 * + col1 = NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3206
SELECT ALL - 14 + + COUNT( * ) FROM tab0 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-3206
SELECT ALL - 14 + + COUNT ( * ) FROM tab0 AS cor0
----
-11

onlyif mysql # DIV for integer division: 
query I rowsort label-3207
SELECT DISTINCT + - col0 DIV 55 FROM tab2 AS cor0
----
-1
0

skipif mysql # not compatible
query I rowsort label-3207
SELECT DISTINCT + - col0 / 55 FROM tab2 AS cor0
----
-1
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3208
SELECT DISTINCT COUNT( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3208
SELECT DISTINCT COUNT ( * ) FROM tab2 cor0 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3209
SELECT 93 + CAST( 96 AS SIGNED ) col1 FROM tab1 AS cor0
----
189
189
189

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3209
SELECT 93 + CAST ( 96 AS INTEGER ) col1 FROM tab1 AS cor0
----
189
189
189

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE 73 = 38
----

query I rowsort
SELECT - 11 + - col1 AS col2 FROM tab0 cor0
----
-12
-32
-92

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT BETWEEN - col2 AND + col2
----

query III rowsort
SELECT * FROM tab0 WHERE 25 NOT BETWEEN - col0 AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + 2 * + col2 > ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3215
SELECT + 82 + COUNT( * ) col0 FROM tab0
----
85

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3215
SELECT + 82 + COUNT ( * ) col0 FROM tab0
----
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3216
SELECT ALL + COUNT( * ) * + + 41 FROM tab0
----
123

skipif mysql # not compatible
query I rowsort label-3216
SELECT ALL + COUNT ( * ) * + + 41 FROM tab0
----
123

query I rowsort
SELECT 88 AS col2 FROM tab1 WHERE ( + ( + col2 ) ) IS NULL
----

query I rowsort
SELECT - col0 + + + col2 + + col2 FROM tab1
----
141
33
45

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3219
SELECT col2 * ( col2 ) * CAST( NULL AS SIGNED ) + - 5 / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3219
SELECT col2 * ( col2 ) * CAST ( NULL AS INTEGER ) + - 5 / col2 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col1 + - 56 * col1 AS col2 FROM tab0
----
-1197
-4617
-57

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 59 + + + ( 7 ) + - col2 col2 FROM tab1
----
-2
-30
7

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-3222
SELECT col2 DIV + col1 + - col1 * CAST( - col1 AS SIGNED ) AS col1 FROM tab0
----
100
441
6561

skipif mysql # not compatible
query I rowsort label-3222
SELECT col2 / + col1 + - col1 * CAST ( - col1 AS INTEGER ) AS col1 FROM tab0
----
100
441
6561

query I rowsort
SELECT DISTINCT + col1 - + 18 FROM tab0
----
-17
3
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3224
SELECT DISTINCT col1 * col2 AS col2 FROM tab2 WHERE ( CAST( NULL AS SIGNED ) + + 13 * col1 ) <= ( col1 )
----

skipif mysql # not compatible
query I rowsort label-3224
SELECT DISTINCT col1 * col2 AS col2 FROM tab2 WHERE ( CAST ( NULL AS INTEGER ) + + 13 * col1 ) <= ( col1 )
----

query I rowsort
SELECT ALL + 82 AS col2 FROM tab2
----
82
82
82

onlyif mysql # aggregate syntax: 
query I rowsort label-3226
SELECT ALL COUNT( * ) * + 88 AS col0 FROM tab1 WHERE NOT ( col1 + - col1 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3226
SELECT ALL COUNT ( * ) * + 88 AS col0 FROM tab1 WHERE NOT ( col1 + - col1 ) IS NOT NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT ( + 38 ) col2 FROM tab2 AS cor0 WHERE ( - 78 - 19 ) <> ( + col2 + 88 )
----
38

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE 65 <> - 91
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3229
SELECT ALL * FROM tab1 AS cor0 WHERE 45 = + col0 * - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3229
SELECT ALL * FROM tab1 AS cor0 WHERE 45 = + col0 * - CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT ( col1 ) * + col0 AS col0 FROM tab1 AS cor0 WHERE - col1 > ( + 77 + + ( col1 ) )
----

query I rowsort
SELECT - 94 AS col0 FROM tab2 WHERE - - 80 IN ( - 5 + col1 * + col1 )
----

query I rowsort
SELECT ALL + col2 AS col1 FROM tab0 WHERE ( - - col0 ) IS NOT NULL
----
10
47
99

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 - col1 IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NOT ( + 64 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3235
SELECT DISTINCT - - 10 DIV - 17 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

skipif mysql # not compatible
query I rowsort label-3235
SELECT DISTINCT - - 10 / - 17 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
0

query III rowsort
SELECT ALL * FROM tab2 WHERE NULL NOT IN ( + ( 1 ) * col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3237
SELECT - + 31, - CAST( - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-31
23
-31
40
-31
58

skipif mysql # not compatible
query II rowsort label-3237
SELECT - + 31, - CAST ( - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-31
23
-31
40
-31
58

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 + + col1 = ( + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3239
SELECT COUNT( * ) FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND col0
----
1

skipif mysql # not compatible
query I rowsort label-3239
SELECT COUNT ( * ) FROM tab1 AS cor0 WHERE NOT ( col2 ) BETWEEN col1 AND col0
----
1

query I rowsort
SELECT 36 * - - 70 * - - col2 * col2 FROM tab2 AS cor0
----
1333080
4032000
8477280

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 <= - col1 * col1 + + col2 * - 3 OR NOT NULL >= col2 + - col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col1 col0 FROM tab2 AS cor0
----
-2346
-4928
-5025

onlyif mysql # aggregate syntax: 
query I rowsort label-3243
SELECT - - SUM( ALL - 62 ) FROM tab2 cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3243
SELECT - - SUM ( ALL - 62 ) FROM tab2 cor0
----
-186

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - + col2 col0, col2 AS col1 FROM tab2 AS cor0
----
-23
23
-40
40
-58
58

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col0 NOT BETWEEN - + col0 - + ( + col2 + col2 ) AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3246
SELECT ALL * FROM tab0 WHERE + col0 - + CAST( NULL AS SIGNED ) IN ( - col1 + col1 )
----

skipif mysql # not compatible
query III rowsort label-3246
SELECT ALL * FROM tab0 WHERE + col0 - + CAST ( NULL AS INTEGER ) IN ( - col1 + col1 )
----

query I rowsort
SELECT ALL ( - 14 ) FROM tab2
----
-14
-14
-14

query I rowsort
SELECT DISTINCT - 42 FROM tab1 WHERE NULL <> NULL
----

query I rowsort
SELECT + col2 AS col2 FROM tab1 WHERE col2 - - + col0 + 58 * col0 IS NOT NULL AND NOT ( NULL ) IS NOT NULL
----
59
68
96

query III rowsort
SELECT ALL * FROM tab0 WHERE NULL NOT BETWEEN NULL AND + - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3251
SELECT ALL - COUNT( ALL + - col0 ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-3251
SELECT ALL - COUNT ( ALL + - col0 ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT col1 / col1 + col0 AS col0 FROM tab0 AS cor0 WHERE NULL NOT BETWEEN ( ( col2 ) ) AND ( 21 / 62 + col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3253
SELECT - SUM( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-3253
SELECT - SUM ( DISTINCT + col0 ) AS col1 FROM tab2 AS cor0
----
-185

onlyif mysql # DIV for integer division: 
query I rowsort label-3254
SELECT DISTINCT + col2 DIV + + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

skipif mysql # not compatible
query I rowsort label-3254
SELECT DISTINCT + col2 / + + col0 + - + col0 AS col0 FROM tab2 AS cor0
----
-46
-64
-75

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3255
SELECT * FROM tab1 WHERE 23 + + + 49 / + ( + col0 ) * col0 + - CAST( NULL AS SIGNED ) NOT BETWEEN NULL AND ( col1 + col1 )
----

skipif mysql # not compatible
query III rowsort label-3255
SELECT * FROM tab1 WHERE 23 + + + 49 / + ( + col0 ) * col0 + - CAST ( NULL AS INTEGER ) NOT BETWEEN NULL AND ( col1 + col1 )
----

query I rowsort
SELECT - - 80 * + - 39 FROM tab2 cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c389d123f0bd59101c814dd5dbb2c109

onlyif mysql # DIV for integer division: 
query I rowsort label-3257
SELECT DISTINCT 94 DIV - + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3257
SELECT DISTINCT 94 / - + col2 FROM tab1
----
-1
0

query I rowsort
SELECT 95 FROM tab0 WHERE + 38 <= ( + col1 )
----
95

onlyif mysql # aggregate syntax: 
query II rowsort label-3259
SELECT 81 + - SUM( + 91 ) AS col2, - 73 FROM tab2 AS cor0
----
-192
-73

skipif mysql # not compatible
query II rowsort label-3259
SELECT 81 + - SUM ( + 91 ) AS col2, - 73 FROM tab2 AS cor0
----
-192
-73

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 42 >= - - col0
----

query I rowsort
SELECT - 12 + col0 AS col2 FROM tab1 AS cor0
----
39
73
79

query II rowsort
SELECT - 30 * col2 + col0, 45 AS col2 FROM tab2 cor0
----
-1136
45
-1665
45
-644
45

onlyif mysql # aggregate syntax: 
query I rowsort label-3263
SELECT COUNT( * ) + 56 FROM tab0 AS cor0
----
59

skipif mysql # not compatible
query I rowsort label-3263
SELECT COUNT ( * ) + 56 FROM tab0 AS cor0
----
59

query I rowsort
SELECT col1 * 26 AS col1 FROM tab0 cor0
----
2106
26
546

query I rowsort
SELECT DISTINCT - col2 + - - col0 AS col1 FROM tab1 AS cor0
----
-45
23
26

query I rowsort
SELECT DISTINCT - + col1 + + + col2 AS col2 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT ALL 97 - + col2 AS col2 FROM tab0 AS cor0
----
-2
50
87

query I rowsort
SELECT + 78 * + - 51 AS col1 FROM tab0 AS cor0 WHERE NULL IN ( - col1 )
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( col2 ) NOT BETWEEN col1 * - col2 AND - col0 - - 29
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # DIV for integer division: 
query I rowsort label-3270
SELECT DISTINCT 25 - col2 DIV + - 13 + - 46 FROM tab2
----
-17
-18
-20

skipif mysql # not compatible
query I rowsort label-3270
SELECT DISTINCT 25 - col2 / + - 13 + - 46 FROM tab2
----
-17
-18
-20

query I rowsort
SELECT ALL 27 * ( + 86 ) + - + 64 * 3 FROM tab2
----
2130
2130
2130

query I rowsort
SELECT ALL - col2 - + 39 FROM tab1
----
-107
-135
-98

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 col0 FROM tab2 WHERE - col2 * - col1 + - col0 + + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 46 * col0 col0 FROM tab0
----
4002
4462
690

onlyif mysql # aggregate syntax: 
query I rowsort label-3275
SELECT 79 * - ( SUM( DISTINCT - + col2 ) ) - - ( + - ( + 79 ) ) * - 20 AS col1 FROM tab0
----
13904

skipif mysql # not compatible
query I rowsort label-3275
SELECT 79 * - ( SUM ( DISTINCT - + col2 ) ) - - ( + - ( + 79 ) ) * - 20 AS col1 FROM tab0
----
13904

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3276
SELECT + CAST( NULL AS SIGNED ) - - - 25 AS col1 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3276
SELECT + CAST ( NULL AS INTEGER ) - - - 25 AS col1 FROM tab2
----
NULL
NULL
NULL

query II rowsort
SELECT + col2 + - - col0, col2 AS col0 FROM tab0 AS cor0
----
196
99
62
47
97
10

query III rowsort
SELECT * FROM tab2 cor0 WHERE - 14 * - col0 <> 4
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT col0 * 0 + + col1 FROM tab0 AS cor0
----
1
21
81

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT 44 * + col0 * - col1 IS NOT NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 AS cor0 WHERE NOT + 91 + - col0 IS NULL
----
23
40
58

onlyif mysql # DIV for integer division: 
query I rowsort label-3282
SELECT 36 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3282
SELECT 36 / + - col0 FROM tab2 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3283
SELECT + SUM( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
199

skipif mysql # not compatible
query I rowsort label-3283
SELECT + SUM ( DISTINCT + col0 ) AS col2 FROM tab0 AS cor0
----
199

query II rowsort
SELECT - 79 * + 79 AS col0, 28 FROM tab1 cor0
----
-6241
28
-6241
28
-6241
28

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL BETWEEN ( col0 * + 45 * + 51 ) AND - col2 * + 82 * + 57 + col0
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3286
SELECT COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 62 + + col2 * + 24 BETWEEN NULL AND - - col1 * - CAST( 19 + col2 AS SIGNED ) )
----
0

skipif mysql # not compatible
query I rowsort label-3286
SELECT COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT ( NOT 62 + + col2 * + 24 BETWEEN NULL AND - - col1 * - CAST ( 19 + col2 AS INTEGER ) )
----
0

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 - - + 72 + + col2 - + col1 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3288
SELECT DISTINCT - COUNT( ALL 81 ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-3288
SELECT DISTINCT - COUNT ( ALL 81 ) FROM tab1
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3289
SELECT + CAST( 30 AS SIGNED ) col0 FROM tab1
----
30
30
30

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3289
SELECT + CAST ( 30 AS INTEGER ) col0 FROM tab1
----
30
30
30

query II rowsort
SELECT col0 AS col0, 49 + + 69 AS col2 FROM tab0
----
15
118
87
118
97
118

query I rowsort
SELECT - col1 + col2 + - col2 FROM tab2
----
-51
-67
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3292
SELECT DISTINCT + CAST( + - 99 AS SIGNED ), MIN( + CAST( NULL AS SIGNED ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-99
NULL

skipif mysql # not compatible
query II rowsort label-3292
SELECT DISTINCT + CAST ( + - 99 AS INTEGER ), MIN ( + CAST ( NULL AS INTEGER ) ) AS col1 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-99
NULL

query II rowsort
SELECT DISTINCT + col0 AS col0, + 16 + - 51 * col0 FROM tab0 AS cor0
----
15
-749
87
-4421
97
-4931

query III rowsort
SELECT * FROM tab2 WHERE col2 + + col2 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3295
SELECT COUNT( * ) * - COUNT( DISTINCT + + col0 ) AS col0 FROM tab2
----
-9

skipif mysql # not compatible
query I rowsort label-3295
SELECT COUNT ( * ) * - COUNT ( DISTINCT + + col0 ) AS col0 FROM tab2
----
-9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3296
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 * + + 34 * ( + col1 ) ) <> - col1 * - - col1 * + CAST( col0 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3296
SELECT DISTINCT * FROM tab1 WHERE NOT ( + col0 * + + 34 * ( + col1 ) ) <> - col1 * - - col1 * + CAST ( col0 AS INTEGER )
----

query I rowsort
SELECT col2 * 73 FROM tab0
----
3431
7227
730

query III rowsort
SELECT * FROM tab2 WHERE ( NOT ( NULL ) = ( col0 ) )
----

query I rowsort
SELECT - ( + col0 ) / - + col0 FROM tab2 cor0 WHERE 9 BETWEEN NULL AND - - col2 * - + col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - 95 + + col1, 30 - - 13 col0 FROM tab0 AS cor0
----
-14
43
-74
43
-94
43

query I rowsort
SELECT ALL + col1 + - + col2 + - - 26 AS col1 FROM tab2 AS cor0
----
35
54
63

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE ( col0 * - col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col0 * + col2 + - + col1 AS col2 FROM tab0 AS cor0
----
624
849
9602

query I rowsort
SELECT ALL ( + col0 ) + - ( - col1 ) AS col0 FROM tab1 AS cor0
----
138
65
90

onlyif mysql # aggregate syntax: 
query I rowsort label-3305
SELECT + COUNT( * ) + - 85 AS col0 FROM tab2 AS cor0
----
-82

skipif mysql # not compatible
query I rowsort label-3305
SELECT + COUNT ( * ) + - 85 AS col0 FROM tab2 AS cor0
----
-82

query III rowsort
SELECT * FROM tab2 WHERE ( ( - col2 ) * + col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3307
SELECT col1 / 4 + col1 - + CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3307
SELECT col1 / 4 + col1 - + CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3308
SELECT ALL - 52 * 88 - + - COUNT( * ) FROM tab0
----
-4573

skipif mysql # not compatible
query I rowsort label-3308
SELECT ALL - 52 * 88 - + - COUNT ( * ) FROM tab0
----
-4573

query I rowsort
SELECT 82 + + col0 * - col1 FROM tab0
----
-1133
-15
-1745

onlyif mysql # aggregate syntax: 
query I rowsort label-3310
SELECT - COUNT( * ) * 7 FROM tab2
----
-21

skipif mysql # not compatible
query I rowsort label-3310
SELECT - COUNT ( * ) * 7 FROM tab2
----
-21

query I rowsort
SELECT ALL + ( - col0 ) - - col2 + - col0 FROM tab1
----
-111
-114
-6

query I rowsort
SELECT col1 * + col1 * ( col0 ) FROM tab1
----
201019
2125
9996

query I rowsort
SELECT DISTINCT - - 3 * - col1 FROM tab0 AS cor0
----
-243
-3
-63

query I rowsort
SELECT DISTINCT - 4 * col0 FROM tab2 cor0
----
-184
-256
-300

onlyif mysql # DIV for integer division: 
query I rowsort label-3315
SELECT ALL 36 DIV col1 AS col0 FROM tab1 AS cor0
----
0
2
7

skipif mysql # not compatible
query I rowsort label-3315
SELECT ALL 36 / col1 AS col0 FROM tab1 AS cor0
----
0
2
7

onlyif mysql # aggregate syntax: 
query II rowsort label-3316
SELECT DISTINCT 14 AS col0, MIN( 38 ) AS col0 FROM tab0 AS cor0
----
14
38

skipif mysql # not compatible
query II rowsort label-3316
SELECT DISTINCT 14 AS col0, MIN ( 38 ) AS col0 FROM tab0 AS cor0
----
14
38

onlyif mysql # aggregate syntax: 
query I rowsort label-3317
SELECT DISTINCT - - MAX( - - 68 ) FROM tab0 AS cor0
----
68

skipif mysql # not compatible
query I rowsort label-3317
SELECT DISTINCT - - MAX ( - - 68 ) FROM tab0 AS cor0
----
68

query I rowsort
SELECT ALL + - 24 * + + col2 * - + col2 AS col1 FROM tab2 AS cor0
----
12696
38400
80736

query I rowsort
SELECT ALL - col0 AS col1 FROM tab1 WHERE ( NULL ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3320
SELECT col2 col1, + 52 + col1 DIV col2 * - col0 FROM tab0
----
10
-122
47
37
99
52

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3320
SELECT col2 col1, + 52 + col1 / col2 * - col0 FROM tab0
----
10
-122
47
37
99
52

query I rowsort
SELECT + - col2 * - 70 * - col0 FROM tab2 AS cor0
----
-179200
-304500
-74060

onlyif mysql # aggregate syntax: 
query I rowsort label-3322
SELECT DISTINCT COUNT( - 80 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3322
SELECT DISTINCT COUNT ( - 80 ) FROM tab2 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3323
SELECT - + CAST( NULL AS DECIMAL ) + + SUM( CAST( - 60 AS DECIMAL ) ) FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3323
SELECT - + CAST ( NULL AS REAL ) + + SUM ( CAST ( - 60 AS REAL ) ) FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL + - col2 + - 87, + col2 AS col2 FROM tab2 AS cor0
----
-110
23
-127
40
-145
58

query II rowsort
SELECT DISTINCT - 77 AS col2, col2 * - col2 AS col1 FROM tab1 AS cor0
----
-77
-3481
-77
-4624
-77
-9216

onlyif mysql # aggregate syntax: 
query I rowsort label-3326
SELECT + + 32 * - - COUNT( * ) col0 FROM tab0 AS cor0
----
96

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3326
SELECT + + 32 * - - COUNT ( * ) col0 FROM tab0 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3327
SELECT + - MAX( + 77 ) FROM tab2 AS cor0
----
-77

skipif mysql # not compatible
query I rowsort label-3327
SELECT + - MAX ( + 77 ) FROM tab2 AS cor0
----
-77

query I rowsort
SELECT - col0 * + - col1 * col1 * - + 79 AS col1 FROM tab1
----
-15880501
-167875
-789684

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT + - 4 BETWEEN - - 13 - - col0 AND + col0 + + - 25
----
46
64
75

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3330
SELECT DISTINCT col2 + CAST( NULL AS SIGNED ) + - - col0 * - 31 / - col1 * 17 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-3330
SELECT DISTINCT col2 + CAST ( NULL AS INTEGER ) + - - col0 * - 31 / - col1 * 17 FROM tab2
----
NULL

query I rowsort
SELECT ALL 47 * + 35 * - col2 AS col1 FROM tab0
----
-162855
-16450
-77315

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + col2 / + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL ( + col2 ) AS col1, col2 AS col1 FROM tab2 AS cor0
----
23
23
40
40
58
58

query I rowsort
SELECT DISTINCT + col1 * + 15 + - col0 AS col2 FROM tab0 AS cor0
----
-82
1200
228

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE NULL >= + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3336
SELECT + COUNT( ALL - 15 ) col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3336
SELECT + COUNT ( ALL - 15 ) col2 FROM tab1 AS cor0 WHERE - col2 IS NULL
----
0

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab2 cor1 WHERE + 5 IS NOT NULL
----
54 values hashing to c419dc2a653bccd84f7a2da103315187

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3338
SELECT + col1 * - CAST( NULL AS SIGNED ) + - 51 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3338
SELECT + col1 * - CAST ( NULL AS INTEGER ) + - 51 AS col2 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT + col1 * - col0 + 20 FROM tab1 AS cor0
----
-405
-4257
-694

query I rowsort
SELECT - col1 * 39 AS col0 FROM tab2 AS cor0 WHERE ( NULL IS NULL )
----
-1989
-2613
-3003

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3341
SELECT DISTINCT + col2 + col2 - CAST( + col0 AS SIGNED ) * - - col0 FROM tab2 AS cor0
----
-2070
-4016
-5509

skipif mysql # not compatible
query I rowsort label-3341
SELECT DISTINCT + col2 + col2 - CAST ( + col0 AS INTEGER ) * - - col0 FROM tab2 AS cor0
----
-2070
-4016
-5509

query I rowsort
SELECT - - ( - 3 ) FROM tab1 AS cor0
----
-3
-3
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3343
SELECT DISTINCT + MIN( + + col2 ) + + - ( + COUNT( * ) ) AS col1 FROM tab0 AS cor0
----
7

skipif mysql # not compatible
query I rowsort label-3343
SELECT DISTINCT + MIN ( + + col2 ) + + - ( + COUNT ( * ) ) AS col1 FROM tab0 AS cor0
----
7

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3344
SELECT DISTINCT CAST( COUNT( * ) AS SIGNED ) FROM tab0 AS cor0 WHERE + col1 <= NULL
----
0

skipif mysql # not compatible
query I rowsort label-3344
SELECT DISTINCT CAST ( COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0 WHERE + col1 <= NULL
----
0

query I rowsort
SELECT ALL col2 * + col2 + + + 60 * + + col2 FROM tab2
----
1909
4000
6844

query III rowsort
SELECT ALL * FROM tab1 WHERE - 91 BETWEEN NULL AND - - 8
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3347
SELECT DISTINCT COUNT( * ) - + 5 FROM tab1
----
-2

skipif mysql # not compatible
query I rowsort label-3347
SELECT DISTINCT COUNT ( * ) - + 5 FROM tab1
----
-2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 91 - - col1 col1 FROM tab0
----
-10
-70
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-3349
SELECT ALL 7 * MAX( DISTINCT 64 ) AS col0 FROM tab0
----
448

skipif mysql # not compatible
query I rowsort label-3349
SELECT ALL 7 * MAX ( DISTINCT 64 ) AS col0 FROM tab0
----
448

query I rowsort
SELECT ALL + 19 * - col1 FROM tab0 WHERE ( NULL ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT + col0 + - 27 + - - col2 NOT IN ( - 90, col0 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - + col1 )
----

query I rowsort
SELECT ALL - col2 * col1 * - + col2 * - col1 FROM tab1
----
-10214416
-1806336
-87025

query II rowsort
SELECT col0 AS col1, + 50 FROM tab2
----
46
50
64
50
75
50

query II rowsort
SELECT DISTINCT + 99 AS col2, - col2 FROM tab2 AS cor0
----
99
-23
99
-40
99
-58

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 <> NULL
----

query I rowsort
SELECT DISTINCT col2 * - - 92 FROM tab2 AS cor0
----
2116
3680
5336

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( 85 / + col2 * col1 + 93 ) IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3359
SELECT ALL + CAST( NULL AS SIGNED ) * col0 FROM tab1 AS cor0 WHERE NOT col0 >= - + CAST( NULL AS SIGNED ) / - + 79 + + col1 - col0
----

skipif mysql # not compatible
query I rowsort label-3359
SELECT ALL + CAST ( NULL AS INTEGER ) * col0 FROM tab1 AS cor0 WHERE NOT col0 >= - + CAST ( NULL AS INTEGER ) / - + 79 + + col1 - col0
----

query I rowsort
SELECT ALL + + col0 * + - 52 * + + col0 AS col1 FROM tab1 AS cor0
----
-135252
-375700
-430612

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - ( + + 78 ) / col1 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3362
SELECT DISTINCT + col2, CAST( CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab2
----
23
NULL
40
NULL
58
NULL

skipif mysql # not compatible
query II rowsort label-3362
SELECT DISTINCT + col2, CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab2
----
23
NULL
40
NULL
58
NULL

query I rowsort
SELECT 42 + - col0 AS col1 FROM tab0
----
-45
-55
27

onlyif mysql # aggregate syntax: 
query I rowsort label-3364
SELECT DISTINCT + COUNT( ( + col2 ) ) AS col1 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3364
SELECT DISTINCT + COUNT ( ( + col2 ) ) AS col1 FROM tab0
----
3

onlyif mysql # aggregate syntax: 
query II rowsort label-3365
SELECT + 63 + + 16, - COUNT( + + 38 ) AS col0 FROM tab2
----
79
-3

skipif mysql # not compatible
query II rowsort label-3365
SELECT + 63 + + 16, - COUNT ( + + 38 ) AS col0 FROM tab2
----
79
-3

query I rowsort
SELECT + - 40 FROM tab0 WHERE - + col0 IS NULL
----

query I rowsort
SELECT + 90 + + + 57 FROM tab0
----
147
147
147

query I rowsort
SELECT + col2 * - - col1 + + + col1 AS col1 FROM tab2
----
1224
3157
3953

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3369
SELECT ALL - - CAST( NULL AS SIGNED ) * + 51 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3369
SELECT ALL - - CAST ( NULL AS INTEGER ) * + 51 + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - col0 + - 83 AS col0 FROM tab2 cor0
----
-129
-147
-158

onlyif mysql # aggregate syntax: 
query I rowsort label-3371
SELECT ALL + + 66 - MAX( + + col1 ) * + 11 AS col0 FROM tab2 AS cor0
----
-781

skipif mysql # not compatible
query I rowsort label-3371
SELECT ALL + + 66 - MAX ( + + col1 ) * + 11 AS col0 FROM tab2 AS cor0
----
-781

onlyif mysql # aggregate syntax: 
query I rowsort label-3372
SELECT ALL - 67 + + + ( - COUNT( * ) ) FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-3372
SELECT ALL - 67 + + + ( - COUNT ( * ) ) FROM tab0
----
-70

onlyif mysql # aggregate syntax: 
query I rowsort label-3373
SELECT COUNT( * ) + - - COUNT( ALL - col0 ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3373
SELECT COUNT ( * ) + - - COUNT ( ALL - col0 ) FROM tab0 cor0
----
6

query I rowsort
SELECT 89 * 1 FROM tab0
----
89
89
89

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 48 col1 FROM tab0
----
-48
-48
-48

query I rowsort
SELECT 15 * + - col1 AS col0 FROM tab2 AS cor0
----
-1005
-1155
-765

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3377
SELECT + ( COUNT( * ) ) DIV COUNT( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
1

skipif mysql # not compatible
query I rowsort label-3377
SELECT + ( COUNT ( * ) ) / COUNT ( * ) AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
1

query I rowsort
SELECT ALL - col2 + col0 + col0 FROM tab0 cor0
----
-17
164
95

query I rowsort
SELECT col0 * col1 + - col0 * - col2 + + 41 AS col1 FROM tab0 AS cor0
----
1961
2738
9741

onlyif mysql # aggregate syntax: 
query I rowsort label-3380
SELECT ALL - COUNT( * ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-3380
SELECT ALL - COUNT ( * ) AS col2 FROM tab0 AS cor0 WHERE col1 IS NOT NULL
----
-3

query I rowsort
SELECT 19 + + 91 FROM tab2 AS cor0
----
110
110
110

query I rowsort
SELECT ALL - col0 + - + ( - col0 ) FROM tab2 AS cor0 WHERE + ( + col0 ) + + col0 * col0 * col2 NOT IN ( 84 * 24 )
----
0
0
0

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3383
SELECT DISTINCT - 79 / - MAX( DISTINCT + - 28 ) * - + CAST( + 52 AS DECIMAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3383
SELECT DISTINCT - 79 / - MAX ( DISTINCT + - 28 ) * - + CAST ( + 52 AS REAL ) FROM tab2 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3384
SELECT DISTINCT 51 + - CAST( + col2 AS SIGNED ) + - 1 * + + 47 FROM tab2 AS cor0
----
-19
-36
-54

skipif mysql # not compatible
query I rowsort label-3384
SELECT DISTINCT 51 + - CAST ( + col2 AS INTEGER ) + - 1 * + + 47 FROM tab2 AS cor0
----
-19
-36
-54

query I rowsort
SELECT 35 + col0 + + - col0 + - 52 AS col2 FROM tab1 AS cor0
----
-17
-17
-17

onlyif mysql # aggregate syntax: 
query I rowsort label-3386
SELECT 70 + MAX( col1 ) FROM tab0 cor0
----
151

skipif mysql # not compatible
query I rowsort label-3386
SELECT 70 + MAX ( col1 ) FROM tab0 cor0
----
151

onlyif mysql # aggregate syntax: 
query I rowsort label-3387
SELECT ALL + - 64 * + ( - COUNT( * ) ) + - COUNT( * ) FROM tab1 AS cor0
----
189

skipif mysql # not compatible
query I rowsort label-3387
SELECT ALL + - 64 * + ( - COUNT ( * ) ) + - COUNT ( * ) FROM tab1 AS cor0
----
189

query I rowsort
SELECT + 65 + 93 AS col0 FROM tab1 AS cor0 WHERE ( - + col0 IS NULL )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3389
SELECT * FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) <> - col2
----

skipif mysql # not compatible
query III rowsort label-3389
SELECT * FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) <> - col2
----

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT 14 < col1 - + 33
----
87
21
10
97
1
99

query I rowsort
SELECT 75 + - col0 FROM tab0 WHERE col1 + + 84 + + col1 + + 92 IS NOT NULL
----
-12
-22
60

onlyif mysql # aggregate syntax: 
query II rowsort label-3392
SELECT - COUNT( * ) AS col1, 17 FROM tab2
----
-3
17

skipif mysql # not compatible
query II rowsort label-3392
SELECT - COUNT ( * ) AS col1, 17 FROM tab2
----
-3
17

query I rowsort
SELECT - 70 * - col1 - + col0 - - col0 AS col1 FROM tab2 AS cor0
----
3570
4690
5390

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3394
SELECT - col2 - - CAST( + - 7 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-30
-47
-65

skipif mysql # not compatible
query I rowsort label-3394
SELECT - col2 - - CAST ( + - 7 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-30
-47
-65

query I rowsort
SELECT ALL - 90 * - + col0 + + col1 AS col2 FROM tab0 AS cor0
----
1431
7851
8731

onlyif mysql # aggregate syntax: 
query I rowsort label-3396
SELECT - COUNT( * ) - 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif mysql # not compatible
query I rowsort label-3396
SELECT - COUNT ( * ) - 29 AS col0 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
-38

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 31 col0, ( col2 ) * - col0 + + col0 AS col2 FROM tab1
----
31
-4845
31
-4930
31
-6097

query I rowsort
SELECT ALL + 95 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to e57d8ed879dfd04d04aae87725c970d3

query I rowsort
SELECT ALL + ( + - 64 ) AS col2 FROM tab2 AS cor0
----
-64
-64
-64

query I rowsort
SELECT + 50 AS col0 FROM tab1 cor0 WHERE NULL <= NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 79 col0 FROM tab1 AS cor0
----
-79
-79
-79

query II rowsort
SELECT - 2 AS col2, - 39 FROM tab2 cor0
----
-2
-39
-2
-39
-2
-39

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + - 14 col2, col1 * + + col2 AS col2 FROM tab0 cor0
----
-14
210
-14
3807
-14
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + col1 col0, col2 col2 FROM tab1 AS cor0
----
14
96
47
68
5
59

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3405
SELECT COUNT( + ( - col0 ) ) DIV - 2 FROM tab1 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-3405
SELECT COUNT ( + ( - col0 ) ) / - 2 FROM tab1 AS cor0
----
-1

query II rowsort
SELECT - col0 AS col1, + 30 AS col2 FROM tab1 AS cor0
----
-51
30
-85
30
-91
30

onlyif mysql # DIV for integer division: 
query I rowsort label-3407
SELECT + col1 DIV - + col0 FROM tab2 AS cor0
----
-1
-1
0

skipif mysql # not compatible
query I rowsort label-3407
SELECT + col1 / - + col0 FROM tab2 AS cor0
----
-1
-1
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab0 cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3409
SELECT ALL + - col1 DIV + - 25 FROM tab1 cor0
----
0
0
1

skipif mysql # not compatible
query I rowsort label-3409
SELECT ALL + - col1 / + - 25 FROM tab1 cor0
----
0
0
1

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - ( + col1 ) * + - col0 * - col2 + + col1 IS NULL
----

query II rowsort
SELECT - col2 * + col2, col2 FROM tab0
----
-100
10
-2209
47
-9801
99

query I rowsort
SELECT + ( + 60 ) * + col2 FROM tab1
----
3540
4080
5760

query I rowsort
SELECT 59 * + col0 AS col0 FROM tab0
----
5133
5723
885

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3414
SELECT DISTINCT + CAST( ( COUNT( * ) ) AS SIGNED ) col0 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3414
SELECT DISTINCT + CAST ( ( COUNT ( * ) ) AS INTEGER ) col0 FROM tab2 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3415
SELECT ALL - COUNT( * ) * + ( + MIN( - col1 ) ) FROM tab0 cor0
----
243

skipif mysql # not compatible
query I rowsort label-3415
SELECT ALL - COUNT ( * ) * + ( + MIN ( - col1 ) ) FROM tab0 cor0
----
243

query II rowsort
SELECT + ( - ( col2 ) ) AS col1, 76 AS col2 FROM tab0 AS cor0
----
-10
76
-47
76
-99
76

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3417
SELECT ALL - - CAST( NULL AS SIGNED ) + COUNT( * ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3417
SELECT ALL - - CAST ( NULL AS INTEGER ) + COUNT ( * ) AS col1 FROM tab0 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col1 + - col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - col0 * col1 + - + col1 FROM tab0 AS cor0
----
-1296
-1848
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3420
SELECT - 32 + - SUM( ALL col0 ) AS col1 FROM tab1
----
-259

skipif mysql # not compatible
query I rowsort label-3420
SELECT - 32 + - SUM ( ALL col0 ) AS col1 FROM tab1
----
-259

query I rowsort
SELECT 42 + - + col1 + - 51 + + - 60 FROM tab2
----
-120
-136
-146

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL > col0 / - col2 )
----

query I rowsort
SELECT ALL col1 * 11 AS col2 FROM tab0
----
11
231
891

onlyif mysql # DIV for integer division: 
query I rowsort label-3424
SELECT + 59 DIV + 49 + 53 AS col0 FROM tab0
----
54
54
54

skipif mysql # not compatible
query I rowsort label-3424
SELECT + 59 / + 49 + 53 AS col0 FROM tab0
----
54
54
54

query I rowsort
SELECT - col0 + + 17 AS col0 FROM tab2 AS cor0
----
-29
-47
-58

query I rowsort
SELECT DISTINCT + col2 + + - 13 AS col2 FROM tab0 cor0
----
-3
34
86

query I rowsort
SELECT col2 - 88 FROM tab2
----
-30
-48
-65

query I rowsort
SELECT col0 * - 33 * + col0 - + - col1 AS col1 FROM tab1
----
-238420
-273226
-85819

query I rowsort
SELECT + 41 * - 21 - - ( + 42 ) FROM tab0
----
-819
-819
-819

query I rowsort
SELECT DISTINCT + 90 * - 95 AS col2 FROM tab1
----
-8550

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL = - 82 + col0 * - - col1
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3432
SELECT ALL + col2 DIV - 95 col1 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3432
SELECT ALL + col2 / - 95 col1 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT ALL 74 * 20 + + 24 + + col0 AS col2 FROM tab0 AS cor0
----
1519
1591
1601

query I rowsort
SELECT DISTINCT + col1 AS col2 FROM tab2 AS cor0 WHERE NOT - col0 >= NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT col1 / + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3436
SELECT - MIN( DISTINCT + - col0 ) FROM tab1 AS cor0
----
91

skipif mysql # not compatible
query I rowsort label-3436
SELECT - MIN ( DISTINCT + - col0 ) FROM tab1 AS cor0
----
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3437
SELECT + + SUM( DISTINCT CAST( NULL AS SIGNED ) ) * + + COUNT( * ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3437
SELECT + + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) * + + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
NULL

query II rowsort
SELECT ALL - 11 * - col0 + - col0, col2 FROM tab1 AS cor0
----
510
96
850
59
910
68

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col2 * 56 * - col2 + - 90 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3440
SELECT ALL + 82 DIV + SUM( ALL - col2 ) AS col2 FROM tab0 cor0
----
0

skipif mysql # not compatible
query I rowsort label-3440
SELECT ALL + 82 / + SUM ( ALL - col2 ) AS col2 FROM tab0 cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3441
SELECT + MAX( ALL + 2 ) AS col0 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3441
SELECT + MAX ( ALL + 2 ) AS col0 FROM tab0 AS cor0
----
2

onlyif mysql # DIV for integer division: 
query I rowsort label-3442
SELECT 33 DIV + + 56 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3442
SELECT 33 / + + 56 AS col0 FROM tab2
----
0
0
0

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 <= 22
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3444
SELECT + MIN( DISTINCT 56 ) AS col2 FROM tab0
----
56

skipif mysql # not compatible
query I rowsort label-3444
SELECT + MIN ( DISTINCT 56 ) AS col2 FROM tab0
----
56

query II rowsort
SELECT DISTINCT - col0 AS col0, + col1 AS col0 FROM tab1
----
-51
14
-85
5
-91
47

query III rowsort
SELECT * FROM tab1 WHERE NOT + col0 <> - + col1 + col1
----

query I rowsort
SELECT DISTINCT + ( - - 33 ) FROM tab1
----
33

onlyif mysql # DIV for integer division: 
query I rowsort label-3448
SELECT DISTINCT - col2 DIV + + col0 AS col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-3448
SELECT DISTINCT - col2 / + + col0 AS col2 FROM tab1
----
-1
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3449
SELECT + COUNT( * ) * + + COUNT( * ) DIV + 70 * + - COUNT( * ) AS col2, COUNT( * ) AS col1 FROM tab1
----
0
3

skipif mysql # not compatible
query II rowsort label-3449
SELECT + COUNT ( * ) * + + COUNT ( * ) / + 70 * + - COUNT ( * ) AS col2, COUNT ( * ) AS col1 FROM tab1
----
0
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col0 * 39 col2, + col0 FROM tab2 AS cor0 WHERE NOT NULL BETWEEN NULL AND col1
----

query II rowsort
SELECT DISTINCT + 27 AS col1, col2 - - - col1 + col0 + + - 73 + + - col1 FROM tab1 AS cor0
----
27
-8
27
46
27
61

query I rowsort
SELECT DISTINCT col2 * + - col0 + - - col1 AS col1 FROM tab2 AS cor0
----
-1007
-2483
-4283

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3453
SELECT col2 * 77 / - CAST( - col2 AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - 71 * + col1 * - 0 + - 64 + - col0 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3453
SELECT col2 * 77 / - CAST ( - col2 AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - 71 * + col1 * - 0 + - 64 + - col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3454
SELECT ALL + COUNT( 5 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3454
SELECT ALL + COUNT ( 5 ) FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-3455
SELECT COUNT( * ) + - ( + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3455
SELECT COUNT ( * ) + - ( + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3456
SELECT DISTINCT - - 65 + + COUNT( * ) * - + 86 FROM tab1 AS cor0
----
-193

skipif mysql # not compatible
query I rowsort label-3456
SELECT DISTINCT - - 65 + + COUNT ( * ) * - + 86 FROM tab1 AS cor0
----
-193

query I rowsort
SELECT ALL + - 83 AS col0 FROM tab1 AS cor0 WHERE NULL >= - 52
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3458
SELECT ALL - SUM( 74 ) FROM tab0 AS cor0 WHERE - 58 NOT BETWEEN ( NULL ) AND + col1 * + 97
----
NULL

skipif mysql # not compatible
query I rowsort label-3458
SELECT ALL - SUM ( 74 ) FROM tab0 AS cor0 WHERE - 58 NOT BETWEEN ( NULL ) AND + col1 * + 97
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3459
SELECT ALL + MIN( + col0 ) AS col0 FROM tab2 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-3459
SELECT ALL + MIN ( + col0 ) AS col0 FROM tab2 AS cor0
----
46

query II rowsort
SELECT - ( - - col2 ) AS col0, col0 FROM tab1 AS cor0
----
-59
85
-68
91
-96
51

query II rowsort
SELECT DISTINCT + + col0 - 24 AS col0, col0 AS col0 FROM tab2 AS cor0
----
22
46
40
64
51
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3462
SELECT ( COUNT( * ) ) AS col0 FROM tab1 AS cor0 WHERE + 93 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3462
SELECT ( COUNT ( * ) ) AS col0 FROM tab1 AS cor0 WHERE + 93 IS NULL
----
0

query II rowsort
SELECT DISTINCT col1 * 40 + + 9 * - - col0 AS col0, col0 FROM tab1
----
1019
51
2699
91
965
85

onlyif mysql # aggregate syntax: 
query I rowsort label-3464
SELECT ALL - COUNT( - col2 ) AS col2 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-3464
SELECT ALL - COUNT ( - col2 ) AS col2 FROM tab0
----
-3

query I rowsort
SELECT - ( 85 ) AS col2 FROM tab1
----
-85
-85
-85

onlyif mysql # aggregate syntax: 
query I rowsort label-3466
SELECT ALL MAX( DISTINCT col1 ) col0 FROM tab2
----
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3466
SELECT ALL MAX ( DISTINCT col1 ) col0 FROM tab2
----
77

onlyif mysql # aggregate syntax: 
query I rowsort label-3467
SELECT - 15 - COUNT( * ) AS col2 FROM tab0
----
-18

skipif mysql # not compatible
query I rowsort label-3467
SELECT - 15 - COUNT ( * ) AS col2 FROM tab0
----
-18

query I rowsort
SELECT + col0 * - - 85 + - col0 FROM tab0 AS cor0
----
1260
7308
8148

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE + 84 IS NULL
----

query I rowsort
SELECT DISTINCT - - col1 + - ( - col1 ) FROM tab0 AS cor0
----
162
2
42

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 * - + col2 * 88 col0 FROM tab0
----
-62040
-76560
-845064

query I rowsort
SELECT DISTINCT + 88 * 0 AS col2 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3473
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 - - col1 + col1 * CAST( NULL AS SIGNED ) + ( - col0 ) + - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif mysql # not compatible
query III rowsort label-3473
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( - col0 - - col1 + col1 * CAST ( NULL AS INTEGER ) + ( - col0 ) + - col2 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT 22 = + 48
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3475
SELECT + SUM( + 62 ) col1 FROM tab2 cor0
----
186

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3475
SELECT + SUM ( + 62 ) col1 FROM tab2 cor0
----
186

query I rowsort
SELECT DISTINCT + col2 + + - col0 + + ( + col0 ) * col2 FROM tab2 AS cor0 WHERE NOT ( NULL ) <> - ( col2 ) + + - 62
----

onlyif mysql # aggregate syntax: 
query II rowsort label-3477
SELECT 91 AS col1, + COUNT( * ) + - ( - - ( + COUNT( * ) ) ) AS col2 FROM tab1
----
91
0

skipif mysql # not compatible
query II rowsort label-3477
SELECT 91 AS col1, + COUNT ( * ) + - ( - - ( + COUNT ( * ) ) ) AS col2 FROM tab1
----
91
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3478
SELECT MAX( + 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-3478
SELECT MAX ( + CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3479
SELECT - COUNT( * ) DIV + 60 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3479
SELECT - COUNT ( * ) / + 60 FROM tab1
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 19 * - - 31 col2 FROM tab1
----
589

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3481
SELECT DISTINCT COUNT( + + col2 ) DIV + ( + 72 ) AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-3481
SELECT DISTINCT COUNT ( + + col2 ) / + ( + 72 ) AS col1 FROM tab2
----
0

query I rowsort
SELECT 56 FROM tab1 AS cor0 WHERE NOT ( NULL ) IS NULL
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3483
SELECT ALL col2 FROM tab0 cor0 WHERE NOT CAST( NULL AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query I rowsort label-3483
SELECT ALL col2 FROM tab0 cor0 WHERE NOT CAST ( NULL AS REAL ) IS NULL
----

query I rowsort
SELECT - 9 + - - 75 FROM tab2 AS cor0
----
66
66
66

onlyif mysql # DIV for integer division: 
query I rowsort label-3485
SELECT 95 DIV + 89 * 1 AS col1 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3485
SELECT 95 / + 89 * 1 AS col1 FROM tab0 AS cor0
----
1
1
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3486
SELECT + COUNT( * ) * - MAX( - col1 ) FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3486
SELECT + COUNT ( * ) * - MAX ( - col1 ) FROM tab0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3487
SELECT MIN( - CAST( - col1 AS SIGNED ) ) AS col2 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-3487
SELECT MIN ( - CAST ( - col1 AS INTEGER ) ) AS col2 FROM tab0
----
1

query I rowsort
SELECT ALL - + col2 + col2 * - 25 FROM tab0 AS cor0
----
-1222
-2574
-260

query I rowsort
SELECT DISTINCT + - col1 + - - col2 AS col2 FROM tab2 cor0
----
-28
-37
-9

query I rowsort
SELECT + 37 + + ( - + 10 ) + + col0 FROM tab0 cor0
----
114
124
42

onlyif mysql # aggregate syntax: 
query I rowsort label-3491
SELECT ALL - + MAX( + col2 ) * - MIN( DISTINCT - - 4 ) - + - 92 AS col2 FROM tab0 AS cor0
----
488

skipif mysql # not compatible
query I rowsort label-3491
SELECT ALL - + MAX ( + col2 ) * - MIN ( DISTINCT - - 4 ) - + - 92 AS col2 FROM tab0 AS cor0
----
488

query I rowsort
SELECT DISTINCT col0 * col0 - + - 47 FROM tab2
----
2163
4143
5672

query I rowsort
SELECT ALL + 91 + - 54 + col2 FROM tab2
----
60
77
95

query II rowsort
SELECT - 25 + col0 AS col0, - col2 * 83 FROM tab2
----
21
-1909
39
-3320
50
-4814

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 85 * - col0 - + col2 col1 FROM tab2
----
-3933
-5480
-6433

query I rowsort
SELECT + col1 + + 61 FROM tab2
----
112
128
138

query I rowsort
SELECT col1 + - 13 + + col1 AS col1 FROM tab1
----
-3
15
81

query III rowsort
SELECT * FROM tab1 WHERE ( + - 77 ) = ( col0 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT - ( + col2 ) > - ( - col0 ) * col2
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-3500
SELECT - COUNT( * ) FROM tab0 WHERE col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3500
SELECT - COUNT ( * ) FROM tab0 WHERE col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3501
SELECT DISTINCT - MIN( DISTINCT + 24 ) FROM tab2 AS cor0
----
-24

skipif mysql # not compatible
query I rowsort label-3501
SELECT DISTINCT - MIN ( DISTINCT + 24 ) FROM tab2 AS cor0
----
-24

query I rowsort
SELECT ( col2 ) * + 25 FROM tab2 AS cor0
----
1000
1450
575

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3503
SELECT ALL CAST( - col0 AS SIGNED ) col2 FROM tab0
----
-15
-87
-97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3503
SELECT ALL CAST ( - col0 AS INTEGER ) col2 FROM tab0
----
-15
-87
-97

query II rowsort
SELECT 81, - 19 AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
18 values hashing to c4cd81ee1c7f77a83071f3912cbfffe6

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE - 25 IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

onlyif mysql # aggregate syntax: 
query II rowsort label-3506
SELECT DISTINCT - COUNT( * ) col0, - 2 FROM tab2 cor0
----
-3
-2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3506
SELECT DISTINCT - COUNT ( * ) col0, - 2 FROM tab2 cor0
----
-3
-2

query II rowsort
SELECT DISTINCT col2 AS col1, col1 * 49 * + + 48 FROM tab2 AS cor0 WHERE - col1 * - - col1 IS NULL
----

query I rowsort
SELECT DISTINCT - ( - ( - col1 ) ) FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT - + 61 AS col2 FROM tab1 cor0
----
-61
-61
-61

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3510
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + CAST( - - 4 AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3510
SELECT * FROM tab1 AS cor0 WHERE NOT NULL < + CAST ( - - 4 AS INTEGER )
----

query I rowsort
SELECT col1 * - 79 AS col1 FROM tab0 AS cor0
----
-1659
-6399
-79

query II rowsort
SELECT - + 76, 77 AS col2 FROM tab1 AS cor0
----
-76
77
-76
77
-76
77

query II rowsort
SELECT ( col0 ), + col2 AS col2 FROM tab2
----
46
23
64
40
75
58

onlyif mysql # aggregate syntax: 
query I rowsort label-3514
SELECT ALL - 90 * + COUNT( * ) * 82 col2 FROM tab0
----
-22140

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3514
SELECT ALL - 90 * + COUNT ( * ) * 82 col2 FROM tab0
----
-22140

query I rowsort
SELECT DISTINCT 24 + + - 94 FROM tab0 WHERE NOT ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT ALL + 89 * - ( - + 83 ) * 21 + - - col1 FROM tab1
----
155132
155141
155174

query I rowsort
SELECT - col2 FROM tab2 WHERE NOT ( + col0 ) IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3518
SELECT + col1 * + 84 AS col0, col1 DIV - - col0 AS col2 FROM tab2 cor0
----
4284
1
5628
0
6468
1

skipif mysql # not compatible
query II rowsort label-3518
SELECT + col1 * + 84 AS col0, col1 / - - col0 AS col2 FROM tab2 cor0
----
4284
1
5628
0
6468
1

query III rowsort
SELECT * FROM tab1 cor0 WHERE col2 * col1 + col0 + + 96 <= - 60 + col2
----

query I rowsort
SELECT + - 36 * 62 + 10 * col1 FROM tab2 AS cor0
----
-1462
-1562
-1722

query I rowsort
SELECT + 47 * - col2 * - col2 FROM tab2 AS cor0
----
158108
24863
75200

query I rowsort
SELECT - + 52 AS col0 FROM tab0 AS cor0
----
-52
-52
-52

onlyif mysql # aggregate syntax: 
query I rowsort label-3523
SELECT + MIN( + 2 ) AS col2 FROM tab2 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-3523
SELECT + MIN ( + 2 ) AS col2 FROM tab2 AS cor0
----
2

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 33 + col0 col2 FROM tab0 AS cor0
----
120
130
48

query I rowsort
SELECT DISTINCT - - col2 FROM tab0 AS cor0 WHERE col0 * 64 >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3526
SELECT MAX( ALL - 71 ) AS col1 FROM tab1 AS cor0
----
-71

skipif mysql # not compatible
query I rowsort label-3526
SELECT MAX ( ALL - 71 ) AS col1 FROM tab1 AS cor0
----
-71

query I rowsort
SELECT ALL - - col0 AS col2 FROM tab2 AS cor0 WHERE NULL > 39 * - col1 * - + col0
----

query I rowsort
SELECT ALL col0 + - col2 * ( - 43 ) FROM tab0 AS cor0
----
2036
4354
517

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE + 37 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3530
SELECT DISTINCT - 44 + COUNT( * ) * 89 FROM tab2 cor0
----
223

skipif mysql # not compatible
query I rowsort label-3530
SELECT DISTINCT - 44 + COUNT ( * ) * 89 FROM tab2 cor0
----
223

query I rowsort
SELECT DISTINCT col1 + 22 + - col1 + col2 AS col1 FROM tab1 AS cor0
----
118
81
90

query III rowsort
SELECT * FROM tab2 WHERE 9 < + col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3533
SELECT ALL ( + col2 ) - + col2 + col1 DIV col2 * + ( + col2 ) FROM tab2
----
40
46
58

skipif mysql # not compatible
query I rowsort label-3533
SELECT ALL ( + col2 ) - + col2 + col1 / col2 * + ( + col2 ) FROM tab2
----
40
46
58

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3534
SELECT DISTINCT col0 FROM tab2 WHERE NULL > + col2 + + ( - CAST( - col0 AS SIGNED ) ) + - 10 + - + col1
----

skipif mysql # not compatible
query I rowsort label-3534
SELECT DISTINCT col0 FROM tab2 WHERE NULL > + col2 + + ( - CAST ( - col0 AS INTEGER ) ) + - 10 + - + col1
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3535
SELECT col2 - + 12 * + + 8 + + + col0 col2 FROM tab2 WHERE - CAST( NULL AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3535
SELECT col2 - + 12 * + + 8 + + + col0 col2 FROM tab2 WHERE - CAST ( NULL AS INTEGER ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + - 65 + - col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3537
SELECT COUNT( * ) + - COUNT( * ) - - 39 col1 FROM tab2
----
39

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3537
SELECT COUNT ( * ) + - COUNT ( * ) - - 39 col1 FROM tab2
----
39

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + - 69 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3539
SELECT ALL + - SUM( DISTINCT CAST( NULL AS SIGNED ) ) AS col1 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3539
SELECT ALL + - SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) AS col1 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3540
SELECT + ( - - MAX( ALL - 58 ) ) FROM tab1 AS cor0
----
-58

skipif mysql # not compatible
query I rowsort label-3540
SELECT + ( - - MAX ( ALL - 58 ) ) FROM tab1 AS cor0
----
-58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3541
SELECT + ( ( - + 23 ) ) * + col0 - - col0 + - 88, col0 + + CAST( NULL AS SIGNED ) col1 FROM tab1 AS cor0
----
-1210
NULL
-1958
NULL
-2090
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3541
SELECT + ( ( - + 23 ) ) * + col0 - - col0 + - 88, col0 + + CAST ( NULL AS INTEGER ) col1 FROM tab1 AS cor0
----
-1210
NULL
-1958
NULL
-2090
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3542
SELECT + 93 DIV COUNT( * ) AS col2 FROM tab2 AS cor0
----
31

skipif mysql # not compatible
query I rowsort label-3542
SELECT + 93 / COUNT ( * ) AS col2 FROM tab2 AS cor0
----
31

onlyif mysql # aggregate syntax: 
query I rowsort label-3543
SELECT - COUNT( * ) * 20 AS col0 FROM tab2 cor0
----
-60

skipif mysql # not compatible
query I rowsort label-3543
SELECT - COUNT ( * ) * 20 AS col0 FROM tab2 cor0
----
-60

onlyif mysql # aggregate syntax: 
query I rowsort label-3544
SELECT DISTINCT + - ( - MIN( - + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3544
SELECT DISTINCT + - ( - MIN ( - + col2 ) ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3545
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= - col0 - - - CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-3545
SELECT * FROM tab1 AS cor0 WHERE NOT + col0 >= - col0 - - - CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL NOT IN ( - 48 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3547
SELECT ALL CAST( ( col2 ) AS SIGNED ) AS col0 FROM tab0 AS cor0
----
10
47
99

skipif mysql # not compatible
query I rowsort label-3547
SELECT ALL CAST ( ( col2 ) AS INTEGER ) AS col0 FROM tab0 AS cor0
----
10
47
99

query I rowsort
SELECT DISTINCT + 20 + + col1 - 45 FROM tab2 AS cor0
----
26
42
52

query I rowsort
SELECT ALL + 90 * col0 + 63 AS col1 FROM tab1 AS cor0
----
4653
7713
8253

onlyif mysql # aggregate syntax: 
query I rowsort label-3550
SELECT DISTINCT - MAX( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT - ( 89 ) IS NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3550
SELECT DISTINCT - MAX ( - col1 ) FROM tab0 AS cor0 WHERE NOT ( NOT - ( 89 ) IS NULL )
----
NULL

query II rowsort
SELECT col1, col0 FROM tab2 AS cor0 WHERE NOT NULL IN ( ( - - col2 ) + - col1 + + + col2, col1, - + col2 )
----

query I rowsort
SELECT ALL + - col1 * 47 FROM tab1 AS cor0
----
-2209
-235
-658

onlyif mysql # aggregate syntax: 
query I rowsort label-3553
SELECT + COUNT( col2 ) * - - COUNT( * ) - COUNT( * ) FROM tab0 cor0
----
6

skipif mysql # not compatible
query I rowsort label-3553
SELECT + COUNT ( col2 ) * - - COUNT ( * ) - COUNT ( * ) FROM tab0 cor0
----
6

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NOT + - 24 IS NOT NULL )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-3555
SELECT DISTINCT COUNT( * ), COUNT( + col0 ) AS col1 FROM tab1
----
3
3

skipif mysql # not compatible
query II rowsort label-3555
SELECT DISTINCT COUNT ( * ), COUNT ( + col0 ) AS col1 FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-3556
SELECT ALL + MAX( + col0 ) * + + 64 FROM tab2
----
4800

skipif mysql # not compatible
query I rowsort label-3556
SELECT ALL + MAX ( + col0 ) * + + 64 FROM tab2
----
4800

query I rowsort
SELECT 94 + - col2 FROM tab2
----
36
54
71

query I rowsort
SELECT DISTINCT 14 * + 21 FROM tab1
----
294

query II rowsort
SELECT DISTINCT 34 AS col1, col0 * + + 93 * + col1 FROM tab0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3560
SELECT + 43 * + - 5 + CAST( NULL AS SIGNED ) + - col1 * col1 - col2, col2 + + ( + 88 ) AS col1 FROM tab1
----
NULL
147
NULL
156
NULL
184

skipif mysql # not compatible
query II rowsort label-3560
SELECT + 43 * + - 5 + CAST ( NULL AS INTEGER ) + - col1 * col1 - col2, col2 + + ( + 88 ) AS col1 FROM tab1
----
NULL
147
NULL
156
NULL
184

onlyif mysql # DIV for integer division: 
query I rowsort label-3561
SELECT ( 9 ) DIV col1 + + col0 col0 FROM tab2
----
46
64
75

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3561
SELECT ( 9 ) / col1 + + col0 col0 FROM tab2
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3562
SELECT ALL - COUNT( * ) + - ( - 73 ) FROM tab2 WHERE - 79 IS NOT NULL
----
70

skipif mysql # not compatible
query I rowsort label-3562
SELECT ALL - COUNT ( * ) + - ( - 73 ) FROM tab2 WHERE - 79 IS NOT NULL
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3563
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST( NULL AS SIGNED ) NOT BETWEEN + - CAST( NULL AS SIGNED ) AND NULL
----

skipif mysql # not compatible
query III rowsort label-3563
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - CAST ( NULL AS INTEGER ) NOT BETWEEN + - CAST ( NULL AS INTEGER ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3564
SELECT DISTINCT 26 + COUNT( * ) FROM tab1 AS cor0
----
29

skipif mysql # not compatible
query I rowsort label-3564
SELECT DISTINCT 26 + COUNT ( * ) FROM tab1 AS cor0
----
29

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3565
SELECT DISTINCT + CAST( - 43 AS SIGNED ) FROM tab1
----
-43

skipif mysql # not compatible
query I rowsort label-3565
SELECT DISTINCT + CAST ( - 43 AS INTEGER ) FROM tab1
----
-43

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE col0 IS NULL OR NOT + col1 IS NULL
----
14
47
5

query I rowsort
SELECT ALL + col2 * col2 - - + col2 FROM tab2 AS cor0
----
1640
3422
552

query I rowsort
SELECT DISTINCT + col1 + + + col1 * col1 FROM tab2 AS cor0
----
2652
4556
6006

query I rowsort
SELECT ALL - col1 - - + col0 FROM tab1
----
37
44
80

query III rowsort
SELECT ALL * FROM tab0 WHERE + + 59 * - - col1 >= + - col1 * + 98
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3571
SELECT - - COUNT( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-3571
SELECT - - COUNT ( * ) FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

query II rowsort
SELECT ALL - col2, 9 * - 54 AS col2 FROM tab1
----
-59
-486
-68
-486
-96
-486

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT ( NOT 32 * - 32 + - - 1 IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3574
SELECT DISTINCT COUNT( * ) * - 24 * + COUNT( * ) FROM tab0 AS cor0
----
-216

skipif mysql # not compatible
query I rowsort label-3574
SELECT DISTINCT COUNT ( * ) * - 24 * + COUNT ( * ) FROM tab0 AS cor0
----
-216

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3575
SELECT + 9 + - col0 FROM tab2 AS cor0 WHERE NOT + col2 + - 37 >= + + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-3575
SELECT + 9 + - col0 FROM tab2 AS cor0 WHERE NOT + col2 + - 37 >= + + CAST ( NULL AS INTEGER )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3576
SELECT + - col1 * CAST( + 24 AS SIGNED ) FROM tab2 AS cor0
----
-1224
-1608
-1848

skipif mysql # not compatible
query I rowsort label-3576
SELECT + - col1 * CAST ( + 24 AS INTEGER ) FROM tab2 AS cor0
----
-1224
-1608
-1848

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - ( + 50 ) / + - 18 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3578
SELECT + MIN( + col0 ) AS col1 FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3578
SELECT + MIN ( + col0 ) AS col1 FROM tab1 AS cor0
----
51

query II rowsort
SELECT + col0 AS col1, col2 FROM tab1 cor0
----
51
96
85
59
91
68

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab0 WHERE NULL IS NOT NULL OR NOT ( NULL ) IS NOT NULL
----
10
47
99

query II rowsort
SELECT - col0 * - - 42 AS col0, - col0 + - col2 FROM tab0
----
-3654
-97
-4074
-196
-630
-62

onlyif mysql # aggregate syntax: 
query I rowsort label-3582
SELECT ALL MAX( DISTINCT col0 ) FROM tab1 WHERE - col0 - - 1 + 16 * - ( + ( - - col1 ) ) = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3582
SELECT ALL MAX ( DISTINCT col0 ) FROM tab1 WHERE - col0 - - 1 + 16 * - ( + ( - - col1 ) ) = NULL
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3583
SELECT - - COUNT( * ) + + 26 * - CAST( 0 AS SIGNED ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-3583
SELECT - - COUNT ( * ) + + 26 * - CAST ( 0 AS INTEGER ) AS col1 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9

query IIIIII rowsort
SELECT ALL * FROM tab2 cor0 CROSS JOIN tab1 cor1 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3585
SELECT ( SUM( ALL + col0 ) ) FROM tab0 cor0
----
199

skipif mysql # not compatible
query I rowsort label-3585
SELECT ( SUM ( ALL + col0 ) ) FROM tab0 cor0
----
199

onlyif mysql # aggregate syntax: 
query I rowsort label-3586
SELECT DISTINCT + 87 * - + 1 + COUNT( * ) col1 FROM tab0 AS cor0
----
-84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3586
SELECT DISTINCT + 87 * - + 1 + COUNT ( * ) col1 FROM tab0 AS cor0
----
-84

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col0 * - 87 * - col0 + col2 + - + col2 col1 FROM tab2 AS cor0
----
184092
356352
489375

query I rowsort
SELECT col2 AS col2 FROM tab2 AS cor0 WHERE NOT + 13 * col0 > NULL
----

query II rowsort
SELECT ALL col0, - 35 FROM tab1 AS cor0
----
51
-35
85
-35
91
-35

onlyif mysql # DIV for integer division: 
query I rowsort label-3590
SELECT - 97 + - ( - 46 ) + col0 - col1 DIV + 37 + - col2 * + 75 FROM tab1 AS cor0
----
-4391
-5061
-7200

skipif mysql # not compatible
query I rowsort label-3590
SELECT - 97 + - ( - 46 ) + col0 - col1 / + 37 + - col2 * + 75 FROM tab1 AS cor0
----
-4391
-5061
-7200

query I rowsort
SELECT + 38 FROM tab2 AS cor0 WHERE NOT NULL IN ( col1 + - - col2, col2, 43 * 3 * - col0 )
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query II rowsort label-3592
SELECT + CAST( NULL AS DECIMAL ) * + 55 AS col0, + COUNT( * ) FROM tab2 cor0
----
NULL
3

skipif mysql # not compatible
query II rowsort label-3592
SELECT + CAST ( NULL AS REAL ) * + 55 AS col0, + COUNT ( * ) FROM tab2 cor0
----
NULL
3

query I rowsort
SELECT + col1 * - col2 * - col0 FROM tab0 AS cor0
----
18270
57105
9603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 94 col0 FROM tab0 WHERE NULL IS NULL
----
94
94
94

query I rowsort
SELECT DISTINCT - col2 + - 13 AS col2 FROM tab0 AS cor0
----
-112
-23
-60

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT - 93 >= NULL
----

query I rowsort
SELECT - 63 FROM tab1 cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 5a7845ef6e239561caf9a17a28e274b5

onlyif mysql # aggregate syntax: 
query I rowsort label-3598
SELECT DISTINCT + - ( - + 80 ) + + 13 - - COUNT( ALL + 76 ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-3598
SELECT DISTINCT + - ( - + 80 ) + + 13 - - COUNT ( ALL + 76 ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3599
SELECT ALL ( MAX( + + 3 ) ) + ( 72 ) FROM tab2 AS cor0
----
75

skipif mysql # not compatible
query I rowsort label-3599
SELECT ALL ( MAX ( + + 3 ) ) + ( 72 ) FROM tab2 AS cor0
----
75

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3600
SELECT ALL - col2 + 12 * - col0 * - ( + col2 ) * - + 49 + + CAST( NULL AS DECIMAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3600
SELECT ALL - col2 + 12 * - col0 * - ( + col2 ) * - + 49 + + CAST ( NULL AS REAL ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-3601
SELECT DISTINCT + MIN( DISTINCT col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-3601
SELECT DISTINCT + MIN ( DISTINCT col2 ) FROM tab0 AS cor0
----
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3602
SELECT DISTINCT + 65 FROM tab0 cor0 WHERE NOT ( + CAST( - + 3 AS SIGNED ) IS NOT NULL )
----

skipif mysql # not compatible
query I rowsort label-3602
SELECT DISTINCT + 65 FROM tab0 cor0 WHERE NOT ( + CAST ( - + 3 AS INTEGER ) IS NOT NULL )
----

query I rowsort
SELECT col2 AS col0 FROM tab2 WHERE NOT col1 / + col2 < NULL
----

query I rowsort
SELECT DISTINCT col2 * 50 AS col0 FROM tab1
----
2950
3400
4800

onlyif mysql # aggregate syntax: 
query I rowsort label-3605
SELECT DISTINCT COUNT( DISTINCT + - col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3605
SELECT DISTINCT COUNT ( DISTINCT + - col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT - ( - 88 ) AS col0 FROM tab0
----
88
88
88

query I rowsort
SELECT + 61 * + col2 FROM tab0
----
2867
6039
610

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT col1 <> - col2 + - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3609
SELECT ALL - 42 DIV - 90 * + 17 col0 FROM tab0 WHERE NOT + col2 * + col2 DIV + 4 + - + col2 IS NULL
----
0
0
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3609
SELECT ALL - 42 / - 90 * + 17 col0 FROM tab0 WHERE NOT + col2 * + col2 / + 4 + - + col2 IS NULL
----
0
0
0

query I rowsort
SELECT 85 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to aafa8e5cfb9e02cea8717833e7581f7b

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT NULL NOT BETWEEN NULL AND 96
----

query II rowsort
SELECT - 84, col0 * - + 45 * - - 66 * + col0 FROM tab0 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 78 col1 FROM tab0 cor0 WHERE - 50 * col2 IS NOT NULL
----
-78
-78
-78

query I rowsort
SELECT - 39 + + 96 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
57
57
57

onlyif mysql # aggregate syntax: 
query I rowsort label-3615
SELECT - 86 + COUNT( * ) FROM tab0
----
-83

skipif mysql # not compatible
query I rowsort label-3615
SELECT - 86 + COUNT ( * ) FROM tab0
----
-83

query I rowsort
SELECT col0 FROM tab1 WHERE NULL = + 40 - + col1 / + col2 + 56 * - 90
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3617
SELECT ALL + 53 + - COUNT( * ) - + 14 AS col0 FROM tab2
----
36

skipif mysql # not compatible
query I rowsort label-3617
SELECT ALL + 53 + - COUNT ( * ) - + 14 AS col0 FROM tab2
----
36

onlyif mysql # aggregate syntax: 
query I rowsort label-3618
SELECT ALL SUM( ALL - ( - - col2 ) ) FROM tab1
----
-223

skipif mysql # not compatible
query I rowsort label-3618
SELECT ALL SUM ( ALL - ( - - col2 ) ) FROM tab1
----
-223

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 76 + col2 col1 FROM tab2
----
116
134
99

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3620
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( + CAST( - ( - + col1 ) AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-3620
SELECT ALL * FROM tab2 WHERE NOT NULL <= ( + CAST ( - ( - + col1 ) AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3621
SELECT - ( 93 ) + + SUM( ALL + col2 ) AS col0 FROM tab0
----
63

skipif mysql # not compatible
query I rowsort label-3621
SELECT - ( 93 ) + + SUM ( ALL + col2 ) AS col0 FROM tab0
----
63

onlyif mysql # DIV for integer division: 
query I rowsort label-3622
SELECT + col2 + + + col2 DIV col1 AS col1 FROM tab0
----
10
198
47

skipif mysql # not compatible
query I rowsort label-3622
SELECT + col2 + + + col2 / col1 AS col1 FROM tab0
----
10
198
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 91 col0 FROM tab2
----
91
91
91

query II rowsort
SELECT ALL col0 + - 39 * + + col0 + - col1 AS col1, + 73 AS col1 FROM tab1
----
-1952
73
-3235
73
-3505
73

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 WHERE NULL <> + col2
----

query II rowsort
SELECT - + col0 + + col1, col2 AS col1 FROM tab1 AS cor0
----
-37
96
-44
68
-80
59

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3627
SELECT ALL - col2 + CAST( - col0 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-196
-62
-97

skipif mysql # not compatible
query I rowsort label-3627
SELECT ALL - col2 + CAST ( - col0 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT DISTINCT - - col1 + - ( + + col2 ) AS col0 FROM tab2 cor0
----
28
37
9

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3629
SELECT ALL * FROM tab1 WHERE NOT + CAST( + ( 63 ) AS SIGNED ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3629
SELECT ALL * FROM tab1 WHERE NOT + CAST ( + ( 63 ) AS INTEGER ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3630
SELECT + col0 / - + CAST( NULL AS SIGNED ) - + - ( - col0 ) * + - 10 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3630
SELECT + col0 / - + CAST ( NULL AS INTEGER ) - + - ( - col0 ) * + - 10 FROM tab1
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col0 BETWEEN - col2 * - - col1 + - col2 AND + col2 * - 17
----

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 83 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3633
SELECT DISTINCT + COUNT( DISTINCT - + col1 ) * + COUNT( * ) FROM tab0 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-3633
SELECT DISTINCT + COUNT ( DISTINCT - + col1 ) * + COUNT ( * ) FROM tab0 AS cor0
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT ( + - 71 ) col0, + 38 FROM tab2 AS cor0
----
-71
38

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3635
SELECT + COUNT( * ) * - CAST( NULL AS SIGNED ) AS col2 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3635
SELECT + COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col2 FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT + col1 * + 95 FROM tab2 cor0
----
4845
6365
7315

query I rowsort
SELECT ( + col0 ) * 96 * 42 AS col1 FROM tab2 AS cor0
----
185472
258048
302400

query I rowsort
SELECT ALL - col2 * + 13 * col1 FROM tab1 AS cor0
----
-17472
-3835
-41548

onlyif mysql # aggregate syntax: 
query I rowsort label-3639
SELECT + MAX( 52 ) AS col0 FROM tab2
----
52

skipif mysql # not compatible
query I rowsort label-3639
SELECT + MAX ( 52 ) AS col0 FROM tab2
----
52

query I rowsort
SELECT ALL + 79 FROM tab2 WHERE ( NOT NULL <> NULL )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL = - col0 / + - 39
----

query I rowsort
SELECT ALL 25 * - - 60 AS col1 FROM tab1
----
1500
1500
1500

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col0 * + 90 * + col1 col2 FROM tab2 AS cor0
----
211140
443520
452250

onlyif mysql # DIV for integer division: 
query I rowsort label-3644
SELECT + col1 * col0 DIV col2 + - 19 * + + ( + 91 ) AS col1 FROM tab2 AS cor0
----
-1606
-1627
-1643

skipif mysql # not compatible
query I rowsort label-3644
SELECT + col1 * col0 / col2 + - 19 * + + ( + 91 ) AS col1 FROM tab2 AS cor0
----
-1606
-1627
-1643

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( col0 ) IN ( 76 - + col0 * - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3646
SELECT DISTINCT SUM( DISTINCT 40 ) FROM tab1
----
40

skipif mysql # not compatible
query I rowsort label-3646
SELECT DISTINCT SUM ( DISTINCT 40 ) FROM tab1
----
40

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 / col1 + - col2 < NULL
----

query I rowsort
SELECT 68 * col0 AS col0 FROM tab0
----
1020
5916
6596

onlyif mysql # aggregate syntax: 
query I rowsort label-3649
SELECT 5 * - COUNT( * ) FROM tab1
----
-15

skipif mysql # not compatible
query I rowsort label-3649
SELECT 5 * - COUNT ( * ) FROM tab1
----
-15

query I rowsort
SELECT 74 + - col1 * col0 AS col2 FROM tab2
----
-2272
-4854
-4951

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3651
SELECT ALL * FROM tab2 WHERE - ( CAST( NULL AS SIGNED ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3651
SELECT ALL * FROM tab2 WHERE - ( CAST ( NULL AS INTEGER ) ) IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT * FROM tab1 WHERE ( - col2 * col2 ) IN ( 99 * 82 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT BETWEEN NULL AND + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3654
SELECT ALL + ( - MIN( - col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3654
SELECT ALL + ( - MIN ( - col2 ) ) FROM tab1
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-3655
SELECT ALL 95 + MIN( - ( 55 ) ) AS col1 FROM tab0
----
40

skipif mysql # not compatible
query I rowsort label-3655
SELECT ALL 95 + MIN ( - ( 55 ) ) AS col1 FROM tab0
----
40

query I rowsort
SELECT + 51 + col2 * col0 FROM tab0
----
756
921
9654

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - 63 + + col2 > NULL
----

query I rowsort
SELECT - ( 81 ) AS col1 FROM tab0
----
-81
-81
-81

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3659
SELECT - ( 6 ) + CAST( 80 AS SIGNED ) FROM tab1 WHERE NULL IS NULL
----
74
74
74

skipif mysql # not compatible
query I rowsort label-3659
SELECT - ( 6 ) + CAST ( 80 AS INTEGER ) FROM tab1 WHERE NULL IS NULL
----
74
74
74

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 7 * + col1 col0 FROM tab1
----
-329
-35
-98

onlyif mysql # aggregate syntax: 
query I rowsort label-3661
SELECT DISTINCT COUNT( * ) * 66 AS col1 FROM tab2
----
198

skipif mysql # not compatible
query I rowsort label-3661
SELECT DISTINCT COUNT ( * ) * 66 AS col1 FROM tab2
----
198

onlyif mysql # aggregate syntax: 
query I rowsort label-3662
SELECT + COUNT( * ) - - COUNT( * ) FROM tab1 WHERE NULL IS NULL
----
6

skipif mysql # not compatible
query I rowsort label-3662
SELECT + COUNT ( * ) - - COUNT ( * ) FROM tab1 WHERE NULL IS NULL
----
6

query III rowsort
SELECT * FROM tab2 WHERE NOT 45 IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE + col2 * + 67 IN ( + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3665
SELECT + col1 DIV - ( - 37 ) + 80 col1 FROM tab0
----
80
80
82

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3665
SELECT + col1 / - ( - 37 ) + 80 col1 FROM tab0
----
80
80
82

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( 56 ) NOT IN ( col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3667
SELECT DISTINCT + COUNT( 13 ) + - COUNT( ALL - ( col2 ) ) AS col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-3667
SELECT DISTINCT + COUNT ( 13 ) + - COUNT ( ALL - ( col2 ) ) AS col1 FROM tab1 WHERE NOT ( col2 ) IS NOT NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3668
SELECT 58 + + COUNT( ALL + 53 ) * + COUNT( * ) FROM tab1
----
67

skipif mysql # not compatible
query I rowsort label-3668
SELECT 58 + + COUNT ( ALL + 53 ) * + COUNT ( * ) FROM tab1
----
67

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3669
SELECT * FROM tab2 WHERE - CAST( NULL AS SIGNED ) / 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-3669
SELECT * FROM tab2 WHERE - CAST ( NULL AS INTEGER ) / 81 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # DIV for integer division: 
query I rowsort label-3670
SELECT col0 DIV 64 FROM tab1
----
0
1
1

skipif mysql # not compatible
query I rowsort label-3670
SELECT col0 / 64 FROM tab1
----
0
1
1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3671
SELECT col2 + - CAST( - CAST( NULL AS SIGNED ) AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3671
SELECT col2 + - CAST ( - CAST ( NULL AS INTEGER ) AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3672
SELECT + 72 * col2 + + CAST( col0 AS SIGNED ) AS col1 FROM tab2 AS cor0
----
1702
2944
4251

skipif mysql # not compatible
query I rowsort label-3672
SELECT + 72 * col2 + + CAST ( col0 AS INTEGER ) AS col1 FROM tab2 AS cor0
----
1702
2944
4251

query I rowsort
SELECT col1 + + 30 FROM tab2 AS cor0
----
107
81
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3674
SELECT ( + col0 ) FROM tab0 WHERE + ( col1 ) / CAST( NULL AS SIGNED ) = - col1 + 68
----

skipif mysql # not compatible
query I rowsort label-3674
SELECT ( + col0 ) FROM tab0 WHERE + ( col1 ) / CAST ( NULL AS INTEGER ) = - col1 + 68
----

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL BETWEEN 32 / 76 AND ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3676
SELECT - COUNT( * ) * - 34 FROM tab0
----
102

skipif mysql # not compatible
query I rowsort label-3676
SELECT - COUNT ( * ) * - 34 FROM tab0
----
102

query I rowsort
SELECT + - 94 * + col0 AS col2 FROM tab0 AS cor0
----
-1410
-8178
-9118

onlyif mysql # aggregate syntax: 
query I rowsort label-3678
SELECT DISTINCT + COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( col1 + col2 * - 77 ) IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-3678
SELECT DISTINCT + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( col1 + col2 * - 77 ) IS NULL
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3679
SELECT - col1 DIV + 10 col0 FROM tab2 AS cor0
----
-5
-6
-7

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3679
SELECT - col1 / + 10 col0 FROM tab2 AS cor0
----
-5
-6
-7

query I rowsort
SELECT DISTINCT - + 21 AS col0 FROM tab1 cor0
----
-21

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL NOT IN ( + 39 )
----

query I rowsort
SELECT DISTINCT - - col0 * - 39 FROM tab0 AS cor0
----
-3393
-3783
-585

query I rowsort
SELECT + - col2 * 4 AS col1 FROM tab1 AS cor0
----
-236
-272
-384

query I rowsort
SELECT - 33 * col2 AS col1 FROM tab2 AS cor0
----
-1320
-1914
-759

onlyif mysql # aggregate syntax: 
query I rowsort label-3685
SELECT ALL + COUNT( * ) + - 8 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * col2 <= - col2 / col1
----
-5

skipif mysql # not compatible
query I rowsort label-3685
SELECT ALL + COUNT ( * ) + - 8 AS col2 FROM tab0 AS cor0 WHERE NOT + col1 * col2 <= - col2 / col1
----
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-3686
SELECT DISTINCT 35 + - COUNT( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 49 * 18 )
----
35

skipif mysql # not compatible
query I rowsort label-3686
SELECT DISTINCT 35 + - COUNT ( * ) FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + 49 * 18 )
----
35

query I rowsort
SELECT - col0 + 95 AS col1 FROM tab1 AS cor0 WHERE NOT - col1 BETWEEN - 30 AND + ( col1 )
----
4

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col0 IN ( 23 + - col0 * col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + 93 * - 57 AS col1 FROM tab2
----
-5301

onlyif mysql # aggregate syntax: 
query I rowsort label-3690
SELECT DISTINCT 22 * COUNT( * ) FROM tab1
----
66

skipif mysql # not compatible
query I rowsort label-3690
SELECT DISTINCT 22 * COUNT ( * ) FROM tab1
----
66

query III rowsort
SELECT ALL * FROM tab1 WHERE 34 BETWEEN 9 AND 17
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-3692
SELECT * FROM tab2 WHERE NOT CAST( NULL AS DECIMAL ) <= NULL
----

skipif mysql # not compatible
query III rowsort label-3692
SELECT * FROM tab2 WHERE NOT CAST ( NULL AS REAL ) <= NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT ( ( + col0 ) ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3694
SELECT ( + MAX( ALL + ( + col0 ) ) ) AS col1 FROM tab2
----
75

skipif mysql # not compatible
query I rowsort label-3694
SELECT ( + MAX ( ALL + ( + col0 ) ) ) AS col1 FROM tab2
----
75

query III rowsort
SELECT * FROM tab0 WHERE NOT col2 BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT * FROM tab2 WHERE NOT col0 - col2 * + 41 IN ( - col2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col2 AS col1 FROM tab0 WHERE NOT col1 NOT IN ( col0 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3698
SELECT DISTINCT MIN( DISTINCT + col2 ) * 16 FROM tab2
----
368

skipif mysql # not compatible
query I rowsort label-3698
SELECT DISTINCT MIN ( DISTINCT + col2 ) * 16 FROM tab2
----
368

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN ( NULL ) AND ( col1 ) OR NOT 69 * col2 - - col2 <= NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - col1 NOT BETWEEN + col0 AND col0
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3701
SELECT DISTINCT + 42 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3701
SELECT DISTINCT + 42 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NULL IS NULL
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( NULL ) >= ( col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3703
SELECT ALL + COUNT( * ) * + 51 FROM tab0
----
153

skipif mysql # not compatible
query I rowsort label-3703
SELECT ALL + COUNT ( * ) * + 51 FROM tab0
----
153

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3704
SELECT + - COUNT( * ) DIV + - 12 AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3704
SELECT + - COUNT ( * ) / + - 12 AS col1 FROM tab2 AS cor0
----
0

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE col0 + col0 + col2 IS NULL
----

query I rowsort
SELECT col2 FROM tab1 AS cor0 WHERE NULL <> ( col0 )
----

query I rowsort
SELECT DISTINCT AVG ( + col0 ) FROM tab1 AS cor0 WHERE ( NULL ) IN ( - col2 + 56 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3708
SELECT DISTINCT - CAST( NULL AS SIGNED ) + 90 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3708
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + 90 FROM tab1 AS cor0
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - ( - col2 ) + 86 * col0 NOT BETWEEN ( + 59 ) + 92 AND col2 / col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3710
SELECT DISTINCT - ( COUNT( * ) ) DIV - - MAX( 23 ) + 12 AS col2 FROM tab1 AS cor0
----
12

skipif mysql # not compatible
query I rowsort label-3710
SELECT DISTINCT - ( COUNT ( * ) ) / - - MAX ( 23 ) + 12 AS col2 FROM tab1 AS cor0
----
12

onlyif mysql # aggregate syntax: 
query I rowsort label-3711
SELECT ALL - - 81 + MAX( - 10 ) FROM tab0 AS cor0
----
71

skipif mysql # not compatible
query I rowsort label-3711
SELECT ALL - - 81 + MAX ( - 10 ) FROM tab0 AS cor0
----
71

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col1 IS NOT NULL OR ( col1 ) > - col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3713
SELECT SUM( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3713
SELECT SUM ( - col0 ) FROM tab2 AS cor0 WHERE ( NULL ) NOT BETWEEN ( NULL ) AND NULL
----
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col2 >= - col2 * col2 + - col1 * - ( col0 )
----
15
81
47
97
1
99

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3715
SELECT ALL + CAST( AVG ( DISTINCT + - 81 ) AS SIGNED ) * SUM( DISTINCT + col0 + col1 ) + - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3715
SELECT ALL + CAST ( AVG ( DISTINCT + - 81 ) AS INTEGER ) * SUM ( DISTINCT + col0 + col1 ) + - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col1 FROM tab2 AS cor0 WHERE + 84 NOT IN ( 5 )
----
51
67
77

query I rowsort
SELECT ALL col0 AS col1 FROM tab2 WHERE NOT ( col0 ) IS NOT NULL
----

query III rowsort
SELECT * FROM tab2 WHERE ( + 0 * - col1 + col1 ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT + col1 + - 59 AS col0 FROM tab2 AS cor0
----
-8
18
8

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * - - 64 < NULL
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE 42 <> + 2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-3722
SELECT - ( + + 47 ) - - + SUM( col2 ) FROM tab2 AS cor0
----
74

skipif mysql # not compatible
query I rowsort label-3722
SELECT - ( + + 47 ) - - + SUM ( col2 ) FROM tab2 AS cor0
----
74

onlyif mysql # aggregate syntax: 
query I rowsort label-3723
SELECT DISTINCT - - 46 - - MAX( - - 52 ) FROM tab2 AS cor0
----
98

skipif mysql # not compatible
query I rowsort label-3723
SELECT DISTINCT - - 46 - - MAX ( - - 52 ) FROM tab2 AS cor0
----
98

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( - 35 ) < ( NULL )
----

query I rowsort
SELECT ( - 69 ) FROM tab1
----
-69
-69
-69

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 13 col2 FROM tab2
----
13
13
13

query II rowsort
SELECT ALL + col1, 70 FROM tab1
----
14
70
47
70
5
70

query I rowsort
SELECT - - col1 * - + col1 AS col1 FROM tab1 AS cor0
----
-196
-2209
-25

query I rowsort
SELECT + - 67 * + 3 * + - col0 FROM tab1 AS cor0
----
10251
17085
18291

query I rowsort
SELECT DISTINCT + col1 * col1 + - 90 AS col2 FROM tab0 AS cor0
----
-89
351
6471

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3731
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( - + CAST( NULL AS SIGNED ) + col1 )
----

skipif mysql # not compatible
query III rowsort label-3731
SELECT * FROM tab2 AS cor0 WHERE NOT ( - col0 ) IN ( - + CAST ( NULL AS INTEGER ) + col1 )
----

query I rowsort
SELECT - - col0 * - - 62 FROM tab2 AS cor0
----
2852
3968
4650

query I rowsort
SELECT - 32 * - 8 FROM tab0
----
256
256
256

query II rowsort
SELECT + col2 AS col1, 24 FROM tab2
----
23
24
40
24
58
24

query III rowsort
SELECT * FROM tab0 WHERE NOT 28 + - - col2 NOT BETWEEN NULL AND + 14
----

query I rowsort
SELECT DISTINCT ( - - 31 ) AS col2 FROM tab2
----
31

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3737
SELECT DISTINCT CAST( NULL AS DECIMAL ) * - COUNT( * ) AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3737
SELECT DISTINCT CAST ( NULL AS REAL ) * - COUNT ( * ) AS col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL + ( - - 52 ) FROM tab1 AS cor0
----
52
52
52

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3739
SELECT DISTINCT CAST( 38 AS SIGNED ) * + + col0 AS col1 FROM tab2 AS cor0
----
1748
2432
2850

skipif mysql # not compatible
query I rowsort label-3739
SELECT DISTINCT CAST ( 38 AS INTEGER ) * + + col0 AS col1 FROM tab2 AS cor0
----
1748
2432
2850

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3740
SELECT + - ( - CAST( - - COUNT( - col2 ) AS SIGNED ) ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-3740
SELECT + - ( - CAST ( - - COUNT ( - col2 ) AS INTEGER ) ) AS col0 FROM tab1 cor0
----
3

query I rowsort
SELECT DISTINCT ( - 74 ) FROM tab0
----
-74

onlyif mysql # DIV for integer division: 
query I rowsort label-3742
SELECT DISTINCT 4 DIV - + col1 * col0 AS col0 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-3742
SELECT DISTINCT 4 / - + col1 * col0 AS col0 FROM tab1
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3743
SELECT ( CAST( NULL AS SIGNED ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3743
SELECT ( CAST ( NULL AS INTEGER ) ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT ALL + 56, col1 / - col2 FROM tab2 WHERE NOT + col0 NOT IN ( + 37 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3745
SELECT DISTINCT - 98 + + 71 + + - MIN( col1 ) AS col1 FROM tab2 cor0
----
-78

skipif mysql # not compatible
query I rowsort label-3745
SELECT DISTINCT - 98 + + 71 + + - MIN ( col1 ) AS col1 FROM tab2 cor0
----
-78

query I rowsort
SELECT DISTINCT - col1 + - 61 FROM tab1 AS cor0
----
-108
-66
-75

query I rowsort
SELECT + ( - - 88 ) FROM tab1 AS cor0
----
88
88
88

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3748
SELECT * FROM tab1 AS cor0 WHERE 7 NOT IN ( - + CAST( - col2 AS SIGNED ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-3748
SELECT * FROM tab1 AS cor0 WHERE 7 NOT IN ( - + CAST ( - col2 AS INTEGER ), col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NULL ) IN ( - + col1 - - col0 + + - col1 / - 49 / + ( col2 ) + - col0 )
----

query I rowsort
SELECT ALL col0 - - + 1 * + - col2 + col2 * col2 AS col2 FROM tab2 AS cor0
----
1624
3381
552

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3751
SELECT DISTINCT - + CAST( NULL AS SIGNED ) + - + 38 AS col0 FROM tab2 AS cor0 WHERE - col2 / + CAST( NULL AS SIGNED ) >= - 49
----

skipif mysql # not compatible
query I rowsort label-3751
SELECT DISTINCT - + CAST ( NULL AS INTEGER ) + - + 38 AS col0 FROM tab2 AS cor0 WHERE - col2 / + CAST ( NULL AS INTEGER ) >= - 49
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT + col0 >= 71 + - col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3753
SELECT - COUNT( * ) FROM tab2 WHERE + 55 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-3753
SELECT - COUNT ( * ) FROM tab2 WHERE + 55 IS NULL
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT NULL < - 44
----

query III rowsort
SELECT * FROM tab1 WHERE - ( - + 20 ) * + col0 IS NULL
----

query I rowsort
SELECT ALL 4 - + - col2 FROM tab0
----
103
14
51

query I rowsort
SELECT 84 + + col1 AS col0 FROM tab1
----
131
89
98

query I rowsort
SELECT DISTINCT + 84 + - + col2 AS col1 FROM tab0 AS cor0
----
-15
37
74

query I rowsort
SELECT + col1 FROM tab1 AS cor0 WHERE NOT - 68 IS NULL
----
14
47
5

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( - + col2 * - 69 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 58, - 26 col0 FROM tab1 AS cor0
----
-58
-26
-58
-26
-58
-26

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + - col2, 38 col2 FROM tab0 AS cor0
----
-10
38
-47
38
-99
38

query I rowsort
SELECT ALL + col0 * + col2 * - col1 FROM tab1
----
-25075
-290836
-68544

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 40 col1 FROM tab0
----
-40
-40
-40

query I rowsort
SELECT + 80 * - 12 FROM tab0 AS cor0
----
-960
-960
-960

query II rowsort
SELECT + col0 * + 23, col2 AS col2 FROM tab0 cor0
----
2001
10
2231
99
345
47

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - ( + - 18 ) * + col1 NOT BETWEEN + - col1 AND - + 48
----

query I rowsort
SELECT ( + - col0 ) * - + col1 + - + col2 + - col2 FROM tab1 AS cor0
----
307
4141
522

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3769
SELECT ALL - CAST( - 35 AS SIGNED ) FROM tab0 cor0
----
35
35
35

skipif mysql # not compatible
query I rowsort label-3769
SELECT ALL - CAST ( - 35 AS INTEGER ) FROM tab0 cor0
----
35
35
35

query III rowsort
SELECT * FROM tab0 WHERE NOT + col0 NOT IN ( - col1, - col0 * 40 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 15 + col2 IS NOT NULL
----

query I rowsort
SELECT - col1 + + - 12 FROM tab2 AS cor0
----
-63
-79
-89

query I rowsort
SELECT DISTINCT + col2 FROM tab0 AS cor0 WHERE NOT + 54 > - 69
----

query I rowsort
SELECT ALL - 3 AS col2 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 95b6b9b4aae5cc2d9545db9f8940b2dc

query II rowsort
SELECT ALL - col1 + + - col1, col1 FROM tab0 AS cor0
----
-162
81
-2
1
-42
21

onlyif mysql # aggregate syntax: 
query II rowsort label-3776
SELECT ALL - + 53 AS col2, - MAX( - col1 ) AS col1 FROM tab0 AS cor0
----
-53
1

skipif mysql # not compatible
query II rowsort label-3776
SELECT ALL - + 53 AS col2, - MAX ( - col1 ) AS col1 FROM tab0 AS cor0
----
-53
1

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE 52 * + col0 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 15 - + col0 col0 FROM tab0
----
-72
-82
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3779
SELECT 66 * + MAX( DISTINCT - CAST( col1 AS SIGNED ) ) * MIN( DISTINCT - 74 ) FROM tab0
----
4884

skipif mysql # not compatible
query I rowsort label-3779
SELECT 66 * + MAX ( DISTINCT - CAST ( col1 AS INTEGER ) ) * MIN ( DISTINCT - 74 ) FROM tab0
----
4884

query I rowsort
SELECT DISTINCT + col2 - - + col0 FROM tab2
----
104
133
69

query II rowsort
SELECT col0 * - col0 AS col0, col2 FROM tab0
----
-225
47
-7569
10
-9409
99

onlyif mysql # aggregate syntax: 
query I rowsort label-3782
SELECT DISTINCT 86 * - COUNT( * ) AS col1 FROM tab1
----
-258

skipif mysql # not compatible
query I rowsort label-3782
SELECT DISTINCT 86 * - COUNT ( * ) AS col1 FROM tab1
----
-258

query I rowsort
SELECT ALL - ( + - 20 ) - col2 FROM tab0
----
-27
-79
10

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3784
SELECT - col0 * - - CAST( NULL AS SIGNED ) AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3784
SELECT - col0 * - - CAST ( NULL AS INTEGER ) AS col0 FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 77 * - col0 FROM tab2 cor0
----
-3542
-4928
-5775

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - col0 + - - col2 NOT BETWEEN - - col0 + + + ( + - col0 ) AND 89 + 14 + - 49
----
15
81
47
97
1
99

query I rowsort
SELECT + ( 70 ) AS col0 FROM tab1
----
70
70
70

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-3788
SELECT ALL - CAST( NULL AS SIGNED ) * col1 * + - col1, col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3788
SELECT ALL - CAST ( NULL AS INTEGER ) * col1 * + - col1, col1 col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT + 58 FROM tab0 AS cor0 WHERE NOT ( col2 ) IS NULL
----
58
58
58

onlyif mysql # aggregate syntax: 
query II rowsort label-3790
SELECT ALL - COUNT( * ) AS col1, 61 AS col2 FROM tab0 AS cor0
----
-3
61

skipif mysql # not compatible
query II rowsort label-3790
SELECT ALL - COUNT ( * ) AS col1, 61 AS col2 FROM tab0 AS cor0
----
-3
61

onlyif mysql # aggregate syntax: 
query I rowsort label-3791
SELECT COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - col1, + col1, - - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-3791
SELECT COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( - col1 * - col1, + col1, - - col1 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3792
SELECT ALL COUNT( * ) * - 62 AS col1 FROM tab0 AS cor0
----
-186

skipif mysql # not compatible
query I rowsort label-3792
SELECT ALL COUNT ( * ) * - 62 AS col1 FROM tab0 AS cor0
----
-186

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE ( NOT - + col0 * + col2 / col2 < + 92 )
----

query I rowsort
SELECT + 54 * - 97 AS col0 FROM tab0 AS cor0
----
-5238
-5238
-5238

onlyif mysql # DIV for integer division: 
query I rowsort label-3795
SELECT DISTINCT - - col1 DIV + col0 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-3795
SELECT DISTINCT - - col1 / + col0 FROM tab2 AS cor0
----
0
1

onlyif mysql # aggregate syntax: 
query I rowsort label-3796
SELECT ALL - MAX( ALL + - col0 ) FROM tab1 AS cor0
----
51

skipif mysql # not compatible
query I rowsort label-3796
SELECT ALL - MAX ( ALL + - col0 ) FROM tab1 AS cor0
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3797
SELECT CAST( - - ( col1 ) AS SIGNED ) AS col1 FROM tab2 cor0 WHERE NOT 46 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3797
SELECT CAST ( - - ( col1 ) AS INTEGER ) AS col1 FROM tab2 cor0 WHERE NOT 46 IS NOT NULL
----

query I rowsort
SELECT + - 21 AS col1 FROM tab1 cor0
----
-21
-21
-21

query II rowsort
SELECT - col1 AS col1, - col1 * - 44 + - col2 FROM tab0 AS cor0
----
-1
-55
-21
914
-81
3517

onlyif mysql # aggregate syntax: 
query I rowsort label-3800
SELECT DISTINCT - + SUM( 74 ) AS col1 FROM tab1 AS cor0 WHERE 94 / - + 13 * + + 86 * + col2 >= 66
----
NULL

skipif mysql # not compatible
query I rowsort label-3800
SELECT DISTINCT - + SUM ( 74 ) AS col1 FROM tab1 AS cor0 WHERE 94 / - + 13 * + + 86 * + col2 >= 66
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT NULL BETWEEN 8 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-3802
SELECT + COUNT( * ) * - + ( - CAST( NULL AS DECIMAL ) ) * + - ( - COUNT( * ) ) FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3802
SELECT + COUNT ( * ) * - + ( - CAST ( NULL AS REAL ) ) * + - ( - COUNT ( * ) ) FROM tab2 AS cor0
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3803
SELECT DISTINCT - CAST( + 56 AS SIGNED ) FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-3803
SELECT DISTINCT - CAST ( + 56 AS INTEGER ) FROM tab1 WHERE NOT + + col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-3804
SELECT DISTINCT 91 DIV col1 AS col1 FROM tab0
----
1
4
91

skipif mysql # not compatible
query I rowsort label-3804
SELECT DISTINCT 91 / col1 AS col1 FROM tab0
----
1
4
91

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE + 18 NOT BETWEEN + 5 AND + 22
----

query I rowsort
SELECT DISTINCT + col0 - - - 73 AS col1 FROM tab0 AS cor0 WHERE 24 + + + 57 IS NOT NULL
----
-58
14
24

query I rowsort
SELECT ( + col1 ) * - - col1 + - col0 + - col0 AS col1 FROM tab0 AS cor0
----
-193
267
6531

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 89 + - + col1 - col2 col2 FROM tab1 cor0
----
-153
-199
-204

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) > ( + 37 )
----

query I rowsort
SELECT DISTINCT - col2 * - col2 + - 5 FROM tab1 WHERE NOT + + col0 / + col1 * 63 + 83 * - 5 <> - - col1
----

query I rowsort
SELECT ( 16 ) FROM tab1 cor0 CROSS JOIN tab1 cor1
----
9 values hashing to 3fdb08ec2e3d4b642dd4594778cca8b3

onlyif mysql # aggregate syntax: 
query I rowsort label-3812
SELECT COUNT( col2 ) col0 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3812
SELECT COUNT ( col2 ) col0 FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + col2 * + col0 FROM tab1 AS cor0 WHERE NOT col2 / ( - + col1 ) + col1 >= - + col2
----

query I rowsort
SELECT ALL - 75 AS col1 FROM tab0 AS cor0 WHERE + col2 NOT IN ( - ( col1 ), + col0 )
----
-75
-75
-75

query I rowsort
SELECT + + 46 AS col2 FROM tab1 cor0
----
46
46
46

query II rowsort
SELECT ALL - 0 AS col1, + col1 FROM tab0 cor0 WHERE NOT col0 < NULL
----

query I rowsort
SELECT ALL + + col0 - - - 67 AS col0 FROM tab2 cor0
----
-21
-3
8

query I rowsort
SELECT - - col0 - - 20 FROM tab1 AS cor0
----
105
111
71

query I rowsort
SELECT DISTINCT + col1 * + + 17 + - col2 FROM tab2 cor0
----
1081
1269
844

query II rowsort
SELECT ALL col1 - - col2 AS col1, + col0 AS col2 FROM tab0
----
100
97
128
15
31
87

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 * col1 AS col2, - 13 + 87 + + col0 col2 FROM tab0 WHERE NOT + col1 / - col1 NOT BETWEEN - 25 AND NULL
----

query I rowsort
SELECT ALL + ( + + col0 ) * + col1 AS col2 FROM tab1
----
425
4277
714

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3823
SELECT ALL + 53 * - CAST( + COUNT( * ) AS SIGNED ) FROM tab1
----
-159

skipif mysql # not compatible
query I rowsort label-3823
SELECT ALL + 53 * - CAST ( + COUNT ( * ) AS INTEGER ) FROM tab1
----
-159

query I rowsort
SELECT + - col2 AS col1 FROM tab0 WHERE NOT + + 91 IS NULL
----
-10
-47
-99

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NULL > + 75
----

query I rowsort
SELECT DISTINCT col0 * col2 * + 5 AS col0 FROM tab1 AS cor0 WHERE NOT NULL >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3827
SELECT ALL - MIN( + - 63 ) AS col1 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-3827
SELECT ALL - MIN ( + - 63 ) AS col1 FROM tab1 AS cor0
----
63

query I rowsort
SELECT ALL - col1 * - + 20 FROM tab2
----
1020
1340
1540

query I rowsort
SELECT - col0 + + 16 AS col2 FROM tab0
----
-71
-81
1

query I rowsort
SELECT 59 + - col2 + col0 AS col2 FROM tab1
----
14
82
85

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 + + col0 * - ( - - col2 ) col1 FROM tab2
----
-1007
-2483
-4283

query I rowsort
SELECT + 68 + + + col2 FROM tab0
----
115
167
78

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE - col1 = - - 2
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-3834
SELECT COUNT( * ) * + ( - - CAST( 13 AS SIGNED ) ) - - COUNT( * ) FROM tab0
----
42

skipif mysql # not compatible
query I rowsort label-3834
SELECT COUNT ( * ) * + ( - - CAST ( 13 AS INTEGER ) ) - - COUNT ( * ) FROM tab0
----
42

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3835
SELECT - + col1 * + col2 * col0 + + + col0 * + + CAST( NULL AS SIGNED ) + - 75 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3835
SELECT - + col1 * + col2 * col0 + + + col0 * + + CAST ( NULL AS INTEGER ) + - 75 FROM tab0 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE ( NOT - - col1 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 14 + 17 + col0 AS col0 FROM tab2 cor0
----
106
77
95

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3838
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + 38 + + CAST( NULL AS SIGNED ) <> ( - col1 + - col1 )
----

skipif mysql # not compatible
query III rowsort label-3838
SELECT ALL * FROM tab2 AS cor0 WHERE NOT - col1 + + 38 + + CAST ( NULL AS INTEGER ) <> ( - col1 + - col1 )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 82 / + 28 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - - col1 * 24 + - - 96 FROM tab2 AS cor0
----
1320
1704
1944

onlyif mysql # aggregate syntax: 
query I rowsort label-3841
SELECT ALL MIN( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-3841
SELECT ALL MIN ( ALL - col2 ) AS col0 FROM tab1 AS cor0
----
-96

query II rowsort
SELECT ALL + col0, + 93 + 68 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3843
SELECT ALL MAX( - 19 ) FROM tab0
----
-19

skipif mysql # not compatible
query I rowsort label-3843
SELECT ALL MAX ( - 19 ) FROM tab0
----
-19

query I rowsort
SELECT ALL + col2 * + col2 AS col2 FROM tab0 WHERE - - 93 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + ( - 22 ) + col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3846
SELECT DISTINCT + COUNT( * ) * + + COUNT( * ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-3846
SELECT DISTINCT + COUNT ( * ) * + + COUNT ( * ) FROM tab2
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3847
SELECT DISTINCT - CAST( + CAST( NULL AS SIGNED ) AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3847
SELECT DISTINCT - CAST ( + CAST ( NULL AS INTEGER ) AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - 77 >= + ( 90 ) + col0 - + + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3849
SELECT - ( + 31 ) + - CAST( NULL AS SIGNED ) FROM tab0 AS cor0 WHERE NOT - CAST( col0 AS SIGNED ) = ( - col1 )
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3849
SELECT - ( + 31 ) + - CAST ( NULL AS INTEGER ) FROM tab0 AS cor0 WHERE NOT - CAST ( col0 AS INTEGER ) = ( - col1 )
----
NULL
NULL
NULL

query II rowsort
SELECT - 58, col1 AS col2 FROM tab1 cor0
----
-58
14
-58
47
-58
5

onlyif mysql # aggregate syntax: 
query I rowsort label-3851
SELECT - 80 + + - COUNT( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----
-80

skipif mysql # not compatible
query I rowsort label-3851
SELECT - 80 + + - COUNT ( * ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1 WHERE ( NULL IS NOT NULL )
----
-80

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE col2 NOT BETWEEN + - 63 + + + col2 AND NULL
----

query I rowsort
SELECT + col1 + - 49 * - col1 FROM tab1 AS cor0
----
2350
250
700

query I rowsort
SELECT ALL + + ( ( + ( + col2 ) ) ) FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT ALL + 5 AS col2 FROM tab1 AS cor0 WHERE + col0 + + col0 BETWEEN + col0 + - col2 * + 43 * - + 15 AND + 63
----

query I rowsort
SELECT ALL - + col2 * + col0 AS col2 FROM tab0 AS cor0
----
-705
-870
-9603

query I rowsort
SELECT DISTINCT - ( + col0 ) * + col0 AS col1 FROM tab2 AS cor0
----
-2116
-4096
-5625

query I rowsort
SELECT + - col0 * - 56 * + col1 AS col1 FROM tab1 AS cor0
----
23800
239512
39984

query III rowsort
SELECT * FROM tab2 WHERE - col1 BETWEEN NULL AND - 47
----

query I rowsort
SELECT ALL col0 + - 87 FROM tab1
----
-2
-36
4

onlyif mysql # aggregate syntax: 
query I rowsort label-3861
SELECT DISTINCT + COUNT( DISTINCT - + col0 ) AS col2 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-3861
SELECT DISTINCT + COUNT ( DISTINCT - + col0 ) AS col2 FROM tab0
----
3

query II rowsort
SELECT ALL - 86 * - 9 AS col1, + col1 + col1 FROM tab1
----
774
10
774
28
774
94

query III rowsort
SELECT * FROM tab0 WHERE - 67 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + ( - 63 ) * col0 BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3865
SELECT DISTINCT - SUM( + + col1 ) AS col2 FROM tab1
----
-66

skipif mysql # not compatible
query I rowsort label-3865
SELECT DISTINCT - SUM ( + + col1 ) AS col2 FROM tab1
----
-66

query I rowsort
SELECT + 64 + + - col1 * - + 76 AS col2 FROM tab2 cor0
----
3940
5156
5916

query I rowsort
SELECT - + ( + 67 ) + + col0 AS col1 FROM tab2 AS cor0
----
-21
-3
8

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3868
SELECT DISTINCT - + CAST( - ( - col1 ) AS SIGNED ) + + 43 AS col1 FROM tab1 AS cor0
----
-4
29
38

skipif mysql # not compatible
query I rowsort label-3868
SELECT DISTINCT - + CAST ( - ( - col1 ) AS INTEGER ) + + 43 AS col1 FROM tab1 AS cor0
----
-4
29
38

onlyif mysql # aggregate syntax: 
query II rowsort label-3869
SELECT ALL COUNT( * ), + 35 AS col1 FROM tab0
----
3
35

skipif mysql # not compatible
query II rowsort label-3869
SELECT ALL COUNT ( * ), + 35 AS col1 FROM tab0
----
3
35

query III rowsort
SELECT * FROM tab0 WHERE col0 + - 34 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3871
SELECT + MIN( - 88 ) FROM tab1
----
-88

skipif mysql # not compatible
query I rowsort label-3871
SELECT + MIN ( - 88 ) FROM tab1
----
-88

query II rowsort
SELECT DISTINCT - col0 AS col2, - col2 * - col0 FROM tab1 AS cor0 WHERE NOT NULL >= col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3873
SELECT - + MIN( ALL + 30 ) FROM tab1 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-3873
SELECT - + MIN ( ALL + 30 ) FROM tab1 AS cor0
----
-30

onlyif mysql # aggregate syntax: DIV for integer division: 
query II rowsort label-3874
SELECT ALL 26 AS col1, COUNT( * ) DIV COUNT( * ) * COUNT( * ) AS col1 FROM tab2 AS cor0
----
26
3

skipif mysql # not compatible
query II rowsort label-3874
SELECT ALL 26 AS col1, COUNT ( * ) / COUNT ( * ) * COUNT ( * ) AS col1 FROM tab2 AS cor0
----
26
3

query III rowsort
SELECT - col1 AS col0, + 83 * col2 + - col0 AS col0, + col1 FROM tab1 AS cor0
----
9 values hashing to 19811f49e692f39ce371b956304d2fbb

query II rowsort
SELECT DISTINCT col1 * - 57, col2 AS col2 FROM tab2 AS cor0 WHERE NOT col2 - 31 + - col2 BETWEEN NULL AND - - ( - 80 ) * - - col1 / - + col0 / - - ( ( + + col2 ) )
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( NULL ) <> + + 7
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN 93 AND + col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3879
SELECT DISTINCT - - SUM( - col2 ) FROM tab2 cor0
----
-121

skipif mysql # not compatible
query I rowsort label-3879
SELECT DISTINCT - - SUM ( - col2 ) FROM tab2 cor0
----
-121

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 * 7 col2 FROM tab2
----
161
280
406

query I rowsort
SELECT col2 * - 2 FROM tab0
----
-198
-20
-94

onlyif mysql # aggregate syntax: 
query I rowsort label-3882
SELECT DISTINCT - COUNT( ALL + - 39 ) col0 FROM tab2
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3882
SELECT DISTINCT - COUNT ( ALL + - 39 ) col0 FROM tab2
----
-3

query I rowsort
SELECT ALL + - col0 FROM tab2 AS cor0 WHERE NOT col2 >= - + col0 - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3884
SELECT - COUNT( * ) * 0 AS col2 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3884
SELECT - COUNT ( * ) * 0 AS col2 FROM tab0
----
0

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT 40 <= + 7
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3886
SELECT + ( + COUNT( DISTINCT - ( + ( col2 ) ) ) ) AS col2 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-3886
SELECT + ( + COUNT ( DISTINCT - ( + ( col2 ) ) ) ) AS col2 FROM tab1
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-3887
SELECT col2 DIV + 62 AS col0 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3887
SELECT col2 / + 62 AS col0 FROM tab2
----
0
0
0

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3888
SELECT ALL + - col1 * - + 37 - - col1 + + - CAST( NULL AS DECIMAL ) * + - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3888
SELECT ALL + - col1 * - + 37 - - col1 + + - CAST ( NULL AS REAL ) * + - 0 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT + - 11 + - col0 AS col1 FROM tab2 AS cor0
----
-57
-75
-86

query I rowsort
SELECT DISTINCT ( col0 ) + + col1 * - + col1 - col0 + + col2 AS col1 FROM tab2 cor0
----
-2578
-4431
-5889

query I rowsort
SELECT ALL - col1 + - + ( - - col1 ) FROM tab2 AS cor0
----
-102
-134
-154

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col0 <> + col1
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT + 77 + col1 * - + col0 AS col2, + col1 * + col2 AS col1 FROM tab0 AS cor0
----
-1138
3807
-1750
210
-20
99

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - - col2 IN ( col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col2 + + + col1, col2 FROM tab1
----
110
96
115
68
64
59

onlyif mysql # DIV for integer division: 
query I rowsort label-3896
SELECT col0 DIV - col1 + - col2 FROM tab0
----
-14
-196
-47

skipif mysql # not compatible
query I rowsort label-3896
SELECT col0 / - col1 + - col2 FROM tab0
----
-14
-196
-47

query I rowsort
SELECT 57 * 25 + - - 92 AS col0 FROM tab1
----
1517
1517
1517

query I rowsort
SELECT DISTINCT - 73 - + col2 FROM tab2 WHERE + ( + + col1 ) + - - col0 IS NULL
----

query I rowsort
SELECT DISTINCT + 63 * - 13 + - 66 FROM tab1
----
-885

query II rowsort
SELECT DISTINCT - col1 * - - col2, 72 AS col2 FROM tab1 AS cor0
----
-1344
72
-295
72
-3196
72

onlyif mysql # aggregate syntax: 
query I rowsort label-3901
SELECT ALL - - 78 + + COUNT( - - col0 ) AS col1 FROM tab2 AS cor0
----
81

skipif mysql # not compatible
query I rowsort label-3901
SELECT ALL - - 78 + + COUNT ( - - col0 ) AS col1 FROM tab2 AS cor0
----
81

onlyif mysql # aggregate syntax: 
query I rowsort label-3902
SELECT ALL COUNT( * ) + 52 FROM tab1
----
55

skipif mysql # not compatible
query I rowsort label-3902
SELECT ALL COUNT ( * ) + 52 FROM tab1
----
55

query I rowsort
SELECT ALL 64 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9 values hashing to 60ab040e931c5c85db7ba19364eacc8e

query I rowsort
SELECT ALL - + col2 * + col1 FROM tab0 WHERE NOT + - col2 >= col0
----
-210
-3807
-99

query III rowsort
SELECT * FROM tab2 WHERE NOT + - col1 <= - col1
----

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT - col1 < - - col0
----

query I rowsort
SELECT DISTINCT - ( 83 ) * + col2 AS col1 FROM tab2 cor0
----
-1909
-3320
-4814

onlyif mysql # aggregate syntax: 
query I rowsort label-3908
SELECT ALL - MIN( col1 ) col1 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3908
SELECT ALL - MIN ( col1 ) col1 FROM tab0 AS cor0
----
-1

query I rowsort
SELECT + 71 * + ( - col0 ) AS col1 FROM tab2 cor0
----
-3266
-4544
-5325

onlyif mysql # aggregate syntax: 
query I rowsort label-3910
SELECT 81 * - 27 * + ( + COUNT( * ) ) FROM tab2
----
-6561

skipif mysql # not compatible
query I rowsort label-3910
SELECT 81 * - 27 * + ( + COUNT ( * ) ) FROM tab2
----
-6561

query I rowsort
SELECT + 89 + - 24 FROM tab0 WHERE NOT col1 = + 92
----
65
65
65

onlyif mysql # aggregate syntax: 
query I rowsort label-3912
SELECT ALL - - MAX( col1 ) / - + 59 FROM tab0 WHERE NULL <= NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-3912
SELECT ALL - - MAX ( col1 ) / - + 59 FROM tab0 WHERE NULL <= NULL
----
NULL

query I rowsort
SELECT ALL + col2 + - - col0 + - - ( + col2 ) FROM tab0 AS cor0
----
107
109
295

query I rowsort
SELECT ALL - col2 * ( + 80 ) AS col2 FROM tab2 AS cor0
----
-1840
-3200
-4640

onlyif mysql # aggregate syntax: 
query I rowsort label-3915
SELECT ALL 19 + + COUNT( * ) FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-3915
SELECT ALL 19 + + COUNT ( * ) FROM tab2
----
22

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-3916
SELECT DISTINCT - CAST( NULL AS DECIMAL ) * + ( col1 ) + + 76 + col1 AS col0 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-3916
SELECT DISTINCT - CAST ( NULL AS REAL ) * + ( col1 ) + + 76 + col1 AS col0 FROM tab1 AS cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-3917
SELECT - + 15 DIV + 74 + + col1 col2 FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3917
SELECT - + 15 / + 74 + + col1 col2 FROM tab2 AS cor0
----
51
67
77

query I rowsort
SELECT ALL + 50 + + 21 * - col2 - - col1 AS col1 FROM tab0 AS cor0
----
-139
-2028
-856

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE - col2 / - col0 IS NULL
----

query I rowsort
SELECT ALL + col2 + + ( col2 ) FROM tab2 AS cor0
----
116
46
80

onlyif mysql # aggregate syntax: 
query II rowsort label-3921
SELECT ALL + 77 col1, - COUNT( * ) col0 FROM tab1
----
77
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3921
SELECT ALL + 77 col1, - COUNT ( * ) col0 FROM tab1
----
77
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-3922
SELECT ALL MIN( ALL - - ( + 0 ) ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3922
SELECT ALL MIN ( ALL - - ( + 0 ) ) FROM tab0
----
0

query III rowsort
SELECT * FROM tab1 WHERE ( + col1 + 59 * + col2 = - + ( - + col1 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3924
SELECT DISTINCT + MAX( ( - col1 ) ) + - + AVG ( ALL + + col1 ) AS col0 FROM tab2 cor0 WHERE NULL BETWEEN + col1 AND + - 49
----
NULL

skipif mysql # not compatible
query I rowsort label-3924
SELECT DISTINCT + MAX ( ( - col1 ) ) + - + AVG ( ALL + + col1 ) AS col0 FROM tab2 cor0 WHERE NULL BETWEEN + col1 AND + - 49
----
NULL

query I rowsort
SELECT ALL - 70 * + - 91 FROM tab2 AS cor0
----
6370
6370
6370

query I rowsort
SELECT DISTINCT - 90 * + col1 + 62 AS col0 FROM tab0 AS cor0
----
-1828
-28
-7228

query I rowsort
SELECT + 15 + + 56 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to c1aace5d5fe27721cc925552513c85c0

query IIIIII rowsort
SELECT ALL * FROM tab2 AS cor0 CROSS JOIN tab0 cor1 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 38882227cfc7c3bf621ed1f30345739c

query IIIIII rowsort
SELECT ALL * FROM tab0 AS cor0 INNER JOIN tab0 AS cor1 ON NOT NULL IS NOT NULL
----
54 values hashing to 42daa03e48aa6755defd0a3206e51d8e

query II rowsort
SELECT col1, - col1 * - - 76 AS col1 FROM tab1 AS cor0
----
14
-1064
47
-3572
5
-380

query I rowsort
SELECT ALL - + col1 * + col2 * - 8 + + 52 FROM tab0 AS cor0
----
1732
30508
844

onlyif mysql # aggregate syntax: 
query I rowsort label-3932
SELECT - 49 * - + COUNT( * ) AS col1 FROM tab2 AS cor0
----
147

skipif mysql # not compatible
query I rowsort label-3932
SELECT - 49 * - + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
147

query I rowsort
SELECT + + col1 + + col1 * - - col1 * + ( - 36 ) FROM tab2 AS cor0 WHERE NOT ( ( col2 + + col0 >= - 62 ) )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3934
SELECT DISTINCT - + MIN( + col2 ) DIV - MIN( - - col0 ) AS col1 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-3934
SELECT DISTINCT - + MIN ( + col2 ) / - MIN ( - - col0 ) AS col1 FROM tab2 AS cor0
----
0

query II rowsort
SELECT DISTINCT + col2, - ( - col2 ) AS col2 FROM tab1 cor0
----
59
59
68
68
96
96

query I rowsort
SELECT ALL - col1 * + 57 AS col2 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3937
SELECT ALL + SUM( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-199

skipif mysql # not compatible
query I rowsort label-3937
SELECT ALL + SUM ( DISTINCT - col0 ) AS col1 FROM tab0 cor0
----
-199

onlyif mysql # aggregate syntax: 
query I rowsort label-3938
SELECT ALL - COUNT( * ) * - MIN( 25 ) FROM tab1
----
75

skipif mysql # not compatible
query I rowsort label-3938
SELECT ALL - COUNT ( * ) * - MIN ( 25 ) FROM tab1
----
75

onlyif mysql # aggregate syntax: 
query I rowsort label-3939
SELECT - COUNT( * ) * + SUM( - - 13 ) FROM tab1
----
-117

skipif mysql # not compatible
query I rowsort label-3939
SELECT - COUNT ( * ) * + SUM ( - - 13 ) FROM tab1
----
-117

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-3940
SELECT ALL 11 * COUNT( * ) col1, + CAST( NULL AS SIGNED ) AS col2 FROM tab1
----
33
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-3940
SELECT ALL 11 * COUNT ( * ) col1, + CAST ( NULL AS INTEGER ) AS col2 FROM tab1
----
33
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-3941
SELECT DISTINCT MIN( DISTINCT - - ( - col1 ) ) DIV - 88 AS col1 FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-3941
SELECT DISTINCT MIN ( DISTINCT - - ( - col1 ) ) / - 88 AS col1 FROM tab0
----
0

query I rowsort
SELECT ALL - col2 + + 6 AS col0 FROM tab2
----
-17
-34
-52

query I rowsort
SELECT + 77 + - col0 AS col1 FROM tab2
----
13
2
31

query I rowsort
SELECT col2 + col0 * 42 AS col0 FROM tab1
----
2238
3629
3890

onlyif mysql # aggregate syntax: 
query I rowsort label-3945
SELECT - MIN( ALL + - col1 ) + + COUNT( + ( + + col2 ) ) FROM tab1 AS cor0
----
50

skipif mysql # not compatible
query I rowsort label-3945
SELECT - MIN ( ALL + - col1 ) + + COUNT ( + ( + + col2 ) ) FROM tab1 AS cor0
----
50

query IIIIII rowsort
SELECT * FROM tab1 cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL = ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3947
SELECT DISTINCT col0 * - CAST( NULL AS SIGNED ) AS col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-3947
SELECT DISTINCT col0 * - CAST ( NULL AS INTEGER ) AS col0 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab1 WHERE 99 IS NULL
----

query I rowsort
SELECT ALL 49 FROM tab0 cor0 WHERE NULL NOT IN ( col2, col2, - - col1, - col2 )
----

query I rowsort
SELECT col1 - + + col0 AS col1 FROM tab1 AS cor0
----
-37
-44
-80

query II rowsort
SELECT ALL + + col2 * - + col0 + col2 + - col1 AS col0, - 0 FROM tab2 AS cor0
----
-1086
0
-2597
0
-4359
0

query I rowsort
SELECT col2 + - 64 FROM tab2 AS cor0
----
-24
-41
-6

query I rowsort
SELECT 60 + - - 47 AS col1 FROM tab2 cor0
----
107
107
107

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT + col1 + + 98 + + + 21 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT - - col1 + col0 + - col0 AS col0 FROM tab1 AS cor0
----
14
47
5

query III rowsort
SELECT * FROM tab1 WHERE NULL < - + 20
----

query I rowsort
SELECT - 48 + - col1 AS col1 FROM tab2
----
-115
-125
-99

query I rowsort
SELECT ( - - 93 ) AS col2 FROM tab2
----
93
93
93

onlyif mysql # aggregate syntax: 
query I rowsort label-3959
SELECT DISTINCT 2 - + COUNT( ALL + - col0 ) FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-3959
SELECT DISTINCT 2 - + COUNT ( ALL + - col0 ) FROM tab0
----
-1

query I rowsort
SELECT + - col1 AS col0 FROM tab0 WHERE NULL > + - ( - col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3961
SELECT MIN( DISTINCT - 24 ) AS col0 FROM tab2
----
-24

skipif mysql # not compatible
query I rowsort label-3961
SELECT MIN ( DISTINCT - 24 ) AS col0 FROM tab2
----
-24

query III rowsort
SELECT * FROM tab0 WHERE - col2 * - col1 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-3963
SELECT DISTINCT + ( + MAX( + + col2 ) ) FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-3963
SELECT DISTINCT + ( + MAX ( + + col2 ) ) FROM tab1
----
96

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT col0 IS NOT NULL )
----

query I rowsort
SELECT ALL + + 38 * - col1 AS col1 FROM tab0 AS cor0 WHERE NOT NULL >= col2
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3966
SELECT ALL + ( + - MIN( col0 ) ) FROM tab1 AS cor0
----
-51

skipif mysql # not compatible
query I rowsort label-3966
SELECT ALL + ( + - MIN ( col0 ) ) FROM tab1 AS cor0
----
-51

query I rowsort
SELECT + col2 * + + 93 + col2 AS col0 FROM tab2 AS cor0
----
2162
3760
5452

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3968
SELECT - + CAST( NULL AS SIGNED ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-3968
SELECT - + CAST ( NULL AS INTEGER ) AS col2 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query I rowsort
SELECT - col1 + - - col0 AS col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-13
-5
8

onlyif mysql # aggregate syntax: 
query I rowsort label-3970
SELECT DISTINCT ( + - SUM( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

skipif mysql # not compatible
query I rowsort label-3970
SELECT DISTINCT ( + - SUM ( + + col2 ) ) AS col2 FROM tab1 AS cor0
----
-223

onlyif mysql # DIV for integer division: 
query I rowsort label-3971
SELECT col2 DIV + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif mysql # not compatible
query I rowsort label-3971
SELECT col2 / + + col2 FROM tab2 AS cor0 WHERE NOT NULL IS NOT NULL
----
1
1
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col0 col0, + col1 FROM tab0 AS cor0
----
-15
81
-87
21
-97
1

onlyif mysql # DIV for integer division: 
query I rowsort label-3973
SELECT - - 19 DIV - 80 FROM tab0 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-3973
SELECT - - 19 / - 80 FROM tab0 AS cor0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-3974
SELECT ALL COUNT( - ( col1 ) ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-3974
SELECT ALL COUNT ( - ( col1 ) ) FROM tab0 AS cor0
----
3

query I rowsort
SELECT DISTINCT + + 81 * 6 FROM tab2 AS cor0
----
486

onlyif mysql # DIV for integer division: 
query I rowsort label-3976
SELECT + - 50 DIV + col0 + col0 AS col1 FROM tab0 AS cor0
----
12
87
97

skipif mysql # not compatible
query I rowsort label-3976
SELECT + - 50 / + col0 + col0 AS col1 FROM tab0 AS cor0
----
12
87
97

query I rowsort
SELECT + col2 * 32 FROM tab2 AS cor0
----
1280
1856
736

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT col1 * col0 NOT BETWEEN ( + 83 * col1 ) AND - 66 * + 77
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3979
SELECT DISTINCT + COUNT( * ) * 76 * - MIN( - - col2 ) FROM tab0
----
-2280

skipif mysql # not compatible
query I rowsort label-3979
SELECT DISTINCT + COUNT ( * ) * 76 * - MIN ( - - col2 ) FROM tab0
----
-2280

onlyif mysql # DIV for integer division: 
query I rowsort label-3980
SELECT ALL col1 DIV - 40 AS col1 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-3980
SELECT ALL col1 / - 40 AS col1 FROM tab2
----
-1
-1
-1

query I rowsort
SELECT ALL - col2 + + 26 + + - col0 FROM tab0 WHERE NOT col1 + 90 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-3982
SELECT COUNT( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

skipif mysql # not compatible
query I rowsort label-3982
SELECT COUNT ( * ) AS col0 FROM tab2, tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
9

query I rowsort
SELECT DISTINCT 93 * - + 85 AS col0 FROM tab2
----
-7905

onlyif mysql # DIV for integer division: 
query I rowsort label-3984
SELECT ALL + col1 DIV + col2 col2 FROM tab2
----
1
1
2

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-3984
SELECT ALL + col1 / + col2 col2 FROM tab2
----
1
1
2

onlyif mysql # aggregate syntax: 
query I rowsort label-3985
SELECT - - MAX( ALL - col0 ) AS col1 FROM tab2 WHERE NOT ( 61 IS NOT NULL )
----
NULL

skipif mysql # not compatible
query I rowsort label-3985
SELECT - - MAX ( ALL - col0 ) AS col1 FROM tab2 WHERE NOT ( 61 IS NOT NULL )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-3986
SELECT + 85 * + CAST( NULL AS SIGNED ) AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-3986
SELECT + 85 * + CAST ( NULL AS INTEGER ) AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT col0 AS col1 FROM tab2 WHERE NOT + - 46 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-3988
SELECT + 41, + col1 DIV + - 60 AS col2 FROM tab2 AS cor0
----
41
-1
41
-1
41
0

skipif mysql # not compatible
query II rowsort label-3988
SELECT + 41, + col1 / + - 60 AS col2 FROM tab2 AS cor0
----
41
-1
41
-1
41
0

onlyif mysql # aggregate syntax: 
query II rowsort label-3989
SELECT + + COUNT( * ) AS col1, SUM( + - col0 ) AS col1 FROM tab1 AS cor0
----
3
-227

skipif mysql # not compatible
query II rowsort label-3989
SELECT + + COUNT ( * ) AS col1, SUM ( + - col0 ) AS col1 FROM tab1 AS cor0
----
3
-227

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-3990
SELECT * FROM tab2 cor0 WHERE - CAST( - 86 AS SIGNED ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-3990
SELECT * FROM tab2 cor0 WHERE - CAST ( - 86 AS INTEGER ) IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NULL >= col1 * ( + 37 )
----

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 15 >= col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - ( + ( + 46 ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT + col2 * 82 * - col2 + + col0 AS col1 FROM tab2 AS cor0
----
-131136
-275773
-43332

query I rowsort
SELECT DISTINCT col2 + - col0 + - + col1 FROM tab2 AS cor0
----
-101
-74
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-3996
SELECT DISTINCT 94 + + + COUNT( * ) AS col0 FROM tab2 AS cor0
----
97

skipif mysql # not compatible
query I rowsort label-3996
SELECT DISTINCT 94 + + + COUNT ( * ) AS col0 FROM tab2 AS cor0
----
97

query I rowsort
SELECT + ( + - 34 ) AS col1 FROM tab0 AS cor0
----
-34
-34
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-3998
SELECT - MAX( + + col2 ) - - COUNT( * ) FROM tab2 AS cor0
----
-55

skipif mysql # not compatible
query I rowsort label-3998
SELECT - MAX ( + + col2 ) - - COUNT ( * ) FROM tab2 AS cor0
----
-55

query I rowsort
SELECT ALL col1 + + - 55 FROM tab1 AS cor0
----
-41
-50
-8

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 AS cor0 WHERE NULL <> ( NULL )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4001
SELECT ALL - col1 * + + CAST( + + col2 AS SIGNED ) - col2 FROM tab0
----
-198
-220
-3854

skipif mysql # not compatible
query I rowsort label-4001
SELECT ALL - col1 * + + CAST ( + + col2 AS INTEGER ) - col2 FROM tab0
----
-198
-220
-3854

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE - - 13 > NULL
----

query III rowsort
SELECT * FROM tab1 WHERE - 60 NOT BETWEEN NULL AND - col0 * - + col2 + col2 + 61
----

query I rowsort
SELECT DISTINCT - - ( col2 ) AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT + 31 FROM tab2 WHERE NULL IS NOT NULL
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - 74 * + 52 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4007
SELECT 33 * COUNT( * ) FROM tab1
----
99

skipif mysql # not compatible
query I rowsort label-4007
SELECT 33 * COUNT ( * ) FROM tab1
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4008
SELECT COUNT( * ) * - + 88 FROM tab0 AS cor0
----
-264

skipif mysql # not compatible
query I rowsort label-4008
SELECT COUNT ( * ) * - + 88 FROM tab0 AS cor0
----
-264

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4009
SELECT ALL - ( + CAST( + + 58 AS SIGNED ) ) AS col1, 57 AS col1 FROM tab1 AS cor0
----
-58
57
-58
57
-58
57

skipif mysql # not compatible
query II rowsort label-4009
SELECT ALL - ( + CAST ( + + 58 AS INTEGER ) ) AS col1, 57 AS col1 FROM tab1 AS cor0
----
-58
57
-58
57
-58
57

onlyif mysql # DIV for integer division: 
query I rowsort label-4010
SELECT + + col2 DIV - col1 * - col2 + ( - 18 ) FROM tab2 AS cor0
----
-18
-18
-18

skipif mysql # not compatible
query I rowsort label-4010
SELECT + + col2 / - col1 * - col2 + ( - 18 ) FROM tab2 AS cor0
----
-18
-18
-18

query I rowsort
SELECT + ( - 5 ) AS col1 FROM tab0 AS cor0
----
-5
-5
-5

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4012
SELECT DISTINCT MIN( - col2 ) * - + COUNT( - - col1 ) + + + ( + ( + CAST( NULL AS SIGNED ) ) ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4012
SELECT DISTINCT MIN ( - col2 ) * - + COUNT ( - - col1 ) + + + ( + ( + CAST ( NULL AS INTEGER ) ) ) FROM tab1 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4013
SELECT COUNT( DISTINCT - + col0 ), - COUNT( * ) AS col1 FROM tab2
----
3
-3

skipif mysql # not compatible
query II rowsort label-4013
SELECT COUNT ( DISTINCT - + col0 ), - COUNT ( * ) AS col1 FROM tab2
----
3
-3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE NOT - ( + col1 ) > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4015
SELECT - - MAX( - - 32 ) AS col1 FROM tab1 AS cor0
----
32

skipif mysql # not compatible
query I rowsort label-4015
SELECT - - MAX ( - - 32 ) AS col1 FROM tab1 AS cor0
----
32

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4016
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * col0 ) < col1 * + col2 * - + CAST( NULL AS SIGNED ) * + 57 * - - col2 * - ( + 98 )
----

skipif mysql # not compatible
query III rowsort label-4016
SELECT * FROM tab2 AS cor0 WHERE NOT ( col0 * col0 ) < col1 * + col2 * - + CAST ( NULL AS INTEGER ) * + 57 * - - col2 * - ( + 98 )
----

query I rowsort
SELECT DISTINCT + 7 * - + 4 + - col2 FROM tab1 AS cor0
----
-124
-87
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-4018
SELECT ALL MIN( DISTINCT 40 ) * 55 FROM tab2 AS cor0
----
2200

skipif mysql # not compatible
query I rowsort label-4018
SELECT ALL MIN ( DISTINCT 40 ) * 55 FROM tab2 AS cor0
----
2200

query I rowsort
SELECT DISTINCT - + col1 * - col1 + - col2 FROM tab2 AS cor0
----
2578
4431
5889

query I rowsort
SELECT + 69 * - - col0 FROM tab2
----
3174
4416
5175

query I rowsort
SELECT + 36 + - col1 + + + ( - 15 ) AS col0 FROM tab0
----
-60
0
20

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT col1, col2 col0 FROM tab0
----
1
99
21
10
81
47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4023
SELECT + COUNT( ALL - col0 ) + - CAST( NULL AS SIGNED ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4023
SELECT + COUNT ( ALL - col0 ) + - CAST ( NULL AS INTEGER ) FROM tab2
----
NULL

query III rowsort
SELECT * FROM tab0 WHERE + col0 + - 3 IS NULL AND 19 >= - col0
----

query I rowsort
SELECT 32 + + + col0 FROM tab2
----
107
78
96

onlyif mysql # DIV for integer division: 
query I rowsort label-4026
SELECT col1 DIV ( - col1 ) + + + col0 FROM tab0
----
14
86
96

skipif mysql # not compatible
query I rowsort label-4026
SELECT col1 / ( - col1 ) + + + col0 FROM tab0
----
14
86
96

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4027
SELECT COUNT( * ) FROM tab1 WHERE + - CAST( - 45 AS DECIMAL ) * - + col0 + - col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4027
SELECT COUNT ( * ) FROM tab1 WHERE + - CAST ( - 45 AS REAL ) * - + col0 + - col1 IS NOT NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4028
SELECT - MIN( DISTINCT + col2 ) / + COUNT( - 19 ) - + CAST( NULL AS SIGNED ) + - SUM( + - col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4028
SELECT - MIN ( DISTINCT + col2 ) / + COUNT ( - 19 ) - + CAST ( NULL AS INTEGER ) + - SUM ( + - col0 ) FROM tab0
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE 26 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT + col0 * - 63, + col0 FROM tab1
----
-3213
51
-5355
85
-5733
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4031
SELECT ALL - col2 + CAST( col1 AS SIGNED ) * - ( + col0 ) * col2, col2 FROM tab2 AS cor0
----
-197160
40
-291508
58
-53981
23

skipif mysql # not compatible
query II rowsort label-4031
SELECT ALL - col2 + CAST ( col1 AS INTEGER ) * - ( + col0 ) * col2, col2 FROM tab2 AS cor0
----
-197160
40
-291508
58
-53981
23

query I rowsort
SELECT ALL + col2 + + 71 FROM tab0 AS cor0
----
118
170
81

query I rowsort
SELECT DISTINCT + col2 + - + 67 FROM tab2 AS cor0
----
-27
-44
-9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + ( 66 ) col2 FROM tab0
----
66
66
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4035
SELECT - MAX( + col2 ) AS col2 FROM tab1
----
-96

skipif mysql # not compatible
query I rowsort label-4035
SELECT - MAX ( + col2 ) AS col2 FROM tab1
----
-96

query I rowsort
SELECT DISTINCT - col1 AS col0 FROM tab2 WHERE NULL IS NULL
----
-51
-67
-77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4037
SELECT ALL - SUM( DISTINCT + col0 ) * 46 DIV + + ( + 25 ) FROM tab2
----
-340

skipif mysql # not compatible
query I rowsort label-4037
SELECT ALL - SUM ( DISTINCT + col0 ) * 46 / + + ( + 25 ) FROM tab2
----
-340

onlyif mysql # DIV for integer division: 
query I rowsort label-4038
SELECT - col2 DIV - ( - col0 ) * - - col2 + col2 + + 99 * + col0 FROM tab2 AS cor0
----
4577
6376
7483

skipif mysql # not compatible
query I rowsort label-4038
SELECT - col2 / - ( - col0 ) * - - col2 + col2 + + 99 * + col0 FROM tab2 AS cor0
----
4577
6376
7483

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4039
SELECT - col0 DIV + - CAST( col1 AS SIGNED ) AS col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4039
SELECT - col0 / + - CAST ( col1 AS INTEGER ) AS col1 FROM tab0 AS cor0
----
0
4
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4040
SELECT MIN( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-4040
SELECT MIN ( - col0 ) AS col1 FROM tab1 AS cor0 WHERE NOT NULL IN ( col1 )
----
NULL

query II rowsort
SELECT DISTINCT 64 AS col0, col0 AS col2 FROM tab0
----
64
15
64
87
64
97

query I rowsort
SELECT DISTINCT - ( 92 ) FROM ( tab2 AS cor0 CROSS JOIN tab1 AS cor1 )
----
-92

query I rowsort
SELECT ALL - - ( - - 97 ) FROM tab1 cor0
----
97
97
97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4044
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( - CAST( 82 AS SIGNED ) * col1 ) < NULL
----

skipif mysql # not compatible
query I rowsort label-4044
SELECT + col2 FROM tab2 AS cor0 WHERE NOT ( - CAST ( 82 AS INTEGER ) * col1 ) < NULL
----

query II rowsort
SELECT col0, 74 * col1 FROM tab0 AS cor0
----
15
5994
87
1554
97
74

query I rowsort
SELECT col1 * + + col2 AS col1 FROM tab0 AS cor0
----
210
3807
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4047
SELECT DISTINCT - ( - 28 ) + - MIN( DISTINCT - col1 ) * + COUNT( * ) FROM tab1 AS cor0
----
169

skipif mysql # not compatible
query I rowsort label-4047
SELECT DISTINCT - ( - 28 ) + - MIN ( DISTINCT - col1 ) * + COUNT ( * ) FROM tab1 AS cor0
----
169

query II rowsort
SELECT DISTINCT 51 AS col2, + 83 * - col2 AS col1 FROM tab0 AS cor0
----
51
-3901
51
-8217
51
-830

query II rowsort
SELECT 58 AS col0, - col1 FROM tab1 AS cor0
----
58
-14
58
-47
58
-5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query III rowsort
SELECT + col2 AS col0, + 59 / col2 * col1, - col0 * col1 col2 FROM tab1 AS cor0 WHERE col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4051
SELECT DISTINCT + SUM( + col2 ) * + 76 FROM tab0
----
11856

skipif mysql # not compatible
query I rowsort label-4051
SELECT DISTINCT + SUM ( + col2 ) * + 76 FROM tab0
----
11856

query I rowsort
SELECT col2 * + col0 * 42 FROM tab2
----
107520
182700
44436

query II rowsort
SELECT - ( col2 ) AS col0, col2 FROM tab0 WHERE NULL IS NULL
----
-10
10
-47
47
-99
99

query I rowsort
SELECT ALL - ( + 10 ) FROM tab1
----
-10
-10
-10

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + - col2 + - col0 col0 FROM tab1 AS cor0
----
-144
-147
-159

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4056
SELECT CAST( NULL AS DECIMAL ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4056
SELECT CAST ( NULL AS REAL ) + col1 FROM tab2 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4057
SELECT DISTINCT 80 * + COUNT( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
720

skipif mysql # not compatible
query I rowsort label-4057
SELECT DISTINCT 80 * + COUNT ( * ) AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
720

query II rowsort
SELECT 68 AS col1, col2 * - 15 * - + col0 + - 66 FROM tab0 AS cor0 WHERE NULL BETWEEN col0 AND NULL
----

query I rowsort
SELECT + ( + ( - col2 ) ) * - + col2 AS col0 FROM tab1 AS cor0
----
3481
4624
9216

onlyif mysql # aggregate syntax: 
query I rowsort label-4060
SELECT - + 56 - ( - - SUM( ALL + 43 ) ) FROM tab2 AS cor0
----
-185

skipif mysql # not compatible
query I rowsort label-4060
SELECT - + 56 - ( - - SUM ( ALL + 43 ) ) FROM tab2 AS cor0
----
-185

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4061
SELECT DISTINCT + col1 * col2 * - CAST( NULL AS SIGNED ) * - - ( + col1 ) - - col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4061
SELECT DISTINCT + col1 * col2 * - CAST ( NULL AS INTEGER ) * - - ( + col1 ) - - col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 43 * col1 * 23 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4063
SELECT DISTINCT - MIN( DISTINCT - 9 ) AS col1 FROM tab2 cor0
----
9

skipif mysql # not compatible
query I rowsort label-4063
SELECT DISTINCT - MIN ( DISTINCT - 9 ) AS col1 FROM tab2 cor0
----
9

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col2 * - ( - col0 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL 4 * 43 FROM tab2
----
172
172
172

onlyif mysql # aggregate syntax: 
query I rowsort label-4066
SELECT ALL + COUNT( * ) * - - 81 FROM tab2
----
243

skipif mysql # not compatible
query I rowsort label-4066
SELECT ALL + COUNT ( * ) * - - 81 FROM tab2
----
243

onlyif mysql # DIV for integer division: 
query I rowsort label-4067
SELECT ALL + col1 DIV + 90 AS col1 FROM tab1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-4067
SELECT ALL + col1 / + 90 AS col1 FROM tab1
----
0
0
0

query I rowsort
SELECT DISTINCT + + col0 FROM tab1 WHERE NOT + col1 = 69
----
51
85
91

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4069
SELECT CAST( NULL AS SIGNED ), - col2 * + col1 AS col0 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

skipif mysql # not compatible
query II rowsort label-4069
SELECT CAST ( NULL AS INTEGER ), - col2 * + col1 AS col0 FROM tab2
----
NULL
-1173
NULL
-3080
NULL
-3886

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4070
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT CAST( NULL AS DECIMAL ) / 83 IS NOT NULL )
----

skipif mysql # not compatible
query III rowsort label-4070
SELECT DISTINCT * FROM tab0 cor0 WHERE NOT ( NOT CAST ( NULL AS REAL ) / 83 IS NOT NULL )
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4071
SELECT + COUNT( * ) DIV + + COUNT( * ) AS col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4071
SELECT + COUNT ( * ) / + + COUNT ( * ) AS col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT + 12 AS col1 FROM tab1 AS cor0 WHERE NOT col2 = + + col1
----
12
12
12

onlyif mysql # aggregate syntax: 
query I rowsort label-4073
SELECT DISTINCT - + COUNT( * ) - + + 45 FROM tab1 AS cor0 WHERE + col2 * - col1 = NULL
----
-45

skipif mysql # not compatible
query I rowsort label-4073
SELECT DISTINCT - + COUNT ( * ) - + + 45 FROM tab1 AS cor0 WHERE + col2 * - col1 = NULL
----
-45

query I rowsort
SELECT + 79 * - - col0 + - col2 FROM tab1 cor0 WHERE NULL BETWEEN ( NULL ) AND + 77
----

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4075
SELECT * FROM tab0 cor0 WHERE + col2 NOT IN ( ( + col2 ), col0 / + CAST( NULL AS DECIMAL ) / - 85 )
----

skipif mysql # not compatible
query III rowsort label-4075
SELECT * FROM tab0 cor0 WHERE + col2 NOT IN ( ( + col2 ), col0 / + CAST ( NULL AS REAL ) / - 85 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4076
SELECT + - col2 DIV + col0 + - + col1 AS col0 FROM tab1 AS cor0
----
-15
-47
-5

skipif mysql # not compatible
query I rowsort label-4076
SELECT + - col2 / + col0 + - + col1 AS col0 FROM tab1 AS cor0
----
-15
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-4077
SELECT ALL - COUNT( * ) + + 45 AS col0 FROM tab2 cor0
----
42

skipif mysql # not compatible
query I rowsort label-4077
SELECT ALL - COUNT ( * ) + + 45 AS col0 FROM tab2 cor0
----
42

query I rowsort
SELECT DISTINCT 46 + - 46 FROM tab2 AS cor0
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4079
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-4079
SELECT ALL * FROM tab1 WHERE NOT + + CAST ( NULL AS INTEGER ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT DISTINCT 95 AS col1, 8 FROM tab0
----
95
8

query I rowsort
SELECT 91 + - 89 AS col0 FROM tab1
----
2
2
2

query I rowsort
SELECT ( + col1 ) + 55 AS col2 FROM tab1
----
102
60
69

query I rowsort
SELECT 32 + - - col0 FROM tab1
----
117
123
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4084
SELECT DISTINCT + SUM( - + 44 ) FROM tab1
----
-132

skipif mysql # not compatible
query I rowsort label-4084
SELECT DISTINCT + SUM ( - + 44 ) FROM tab1
----
-132

query I rowsort
SELECT 67 AS col2 FROM tab0, tab0 AS cor0
----
9 values hashing to b56f8a4f1fcebc9802481256df61e97c

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT ( 71 * - col2 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + 11 AS col1 FROM tab1 AS cor0 WHERE col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 86 - - 94 AS col1 FROM tab0 AS cor0
----
180

query I rowsort
SELECT DISTINCT - col1 + - ( + ( col1 ) ) * - col1 AS col0 FROM tab0 cor0
----
0
420
6480

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4091
SELECT CAST( NULL AS SIGNED ) / - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4091
SELECT CAST ( NULL AS INTEGER ) / - col2 AS col1 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT col2 FROM tab1 WHERE col0 IS NOT NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4093
SELECT ALL MIN( 43 ) - - ( + 1 ) AS col1 FROM tab1
----
44

skipif mysql # not compatible
query I rowsort label-4093
SELECT ALL MIN ( 43 ) - - ( + 1 ) AS col1 FROM tab1
----
44

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4094
SELECT - COUNT( * ) DIV 25 AS col1 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4094
SELECT - COUNT ( * ) / 25 AS col1 FROM tab2
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4095
SELECT DISTINCT 24 - + COUNT( * ) DIV MAX( - col0 * - col2 ) AS col2 FROM tab2
----
24

skipif mysql # not compatible
query I rowsort label-4095
SELECT DISTINCT 24 - + COUNT ( * ) / MAX ( - col0 * - col2 ) AS col2 FROM tab2
----
24

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4096
SELECT ALL - col2 + CAST( 12 AS SIGNED ) FROM tab1
----
-47
-56
-84

skipif mysql # not compatible
query I rowsort label-4096
SELECT ALL - col2 + CAST ( 12 AS INTEGER ) FROM tab1
----
-47
-56
-84

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4097
SELECT 20 FROM tab2 WHERE NOT 87 + + ( + CAST( + col0 AS SIGNED ) ) IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4097
SELECT 20 FROM tab2 WHERE NOT 87 + + ( + CAST ( + col0 AS INTEGER ) ) IS NOT NULL
----

query I rowsort
SELECT col1 + col1 AS col2 FROM tab0 WHERE 38 - col0 IS NOT NULL
----
162
2
42

query I rowsort
SELECT 54 + + 11 FROM tab1
----
65
65
65

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT + col0 > ( ( 92 ) + col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - 60 + col1 FROM tab2 WHERE - col0 + - col1 IS NULL
----

query I rowsort
SELECT + col0 + 64 AS col2 FROM tab0
----
151
161
79

query I rowsort
SELECT ( 76 ) AS col1 FROM tab1
----
76
76
76

query I rowsort
SELECT - 11 - + 28 AS col0 FROM tab2
----
-39
-39
-39

onlyif mysql # aggregate syntax: 
query I rowsort label-4105
SELECT DISTINCT SUM( + 16 ) FROM tab0
----
48

skipif mysql # not compatible
query I rowsort label-4105
SELECT DISTINCT SUM ( + 16 ) FROM tab0
----
48

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( - col0 * col0 ) NOT IN ( + col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4107
SELECT COUNT( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND 66
----
0

skipif mysql # not compatible
query I rowsort label-4107
SELECT COUNT ( * ) FROM tab1 WHERE NOT ( NULL ) BETWEEN NULL AND 66
----
0

query I rowsort
SELECT ALL 96 + + col0 FROM tab0 WHERE NOT col0 <= ( + 81 )
----
183
193

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4109
SELECT col0 AS col0 FROM tab0 WHERE NOT - ( + 22 ) + CAST( NULL AS SIGNED ) BETWEEN 99 * - col2 AND NULL
----

skipif mysql # not compatible
query I rowsort label-4109
SELECT col0 AS col0 FROM tab0 WHERE NOT - ( + 22 ) + CAST ( NULL AS INTEGER ) BETWEEN 99 * - col2 AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 15 + 94 >= NULL
----

query I rowsort
SELECT DISTINCT 41 + ( ( col1 ) ) FROM tab2
----
108
118
92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col0 col1 FROM tab2 WHERE NOT - 8 BETWEEN NULL AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL NOT BETWEEN NULL AND col1 * col2 - col1 * col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4114
SELECT 50 DIV ( - col2 ) FROM tab0 AS cor0
----
-1
-5
0

skipif mysql # not compatible
query I rowsort label-4114
SELECT 50 / ( - col2 ) FROM tab0 AS cor0
----
-1
-5
0

query IIIIII rowsort
SELECT DISTINCT * FROM tab1 AS cor0 CROSS JOIN tab1 WHERE NOT ( - 73 ) IS NULL
----
54 values hashing to 375f372843089b03f23b00160007527a

onlyif mysql # aggregate syntax: 
query I rowsort label-4116
SELECT COUNT( ( - 15 ) ) + COUNT( DISTINCT 46 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
10

skipif mysql # not compatible
query I rowsort label-4116
SELECT COUNT ( ( - 15 ) ) + COUNT ( DISTINCT 46 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2
----
10

onlyif mysql # DIV for integer division: 
query I rowsort label-4117
SELECT DISTINCT ( col1 ) DIV - 75 col1 FROM tab1
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4117
SELECT DISTINCT ( col1 ) / - 75 col1 FROM tab1
----
0

query I rowsort
SELECT + ( col1 ) + 82 AS col1 FROM tab2
----
133
149
159

query I rowsort
SELECT ALL 97 / - AVG ( DISTINCT - 73 ) AS col0 FROM tab0 AS cor0 WHERE col1 > + col1 + + col2
----
NULL

query I rowsort
SELECT 22 + + col0 * - col2 FROM tab2 AS cor0
----
-1036
-2538
-4328

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4121
SELECT DISTINCT col0 * ( - CAST( NULL AS SIGNED ) + col0 / col0 ) + + ( col1 ) col0 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4121
SELECT DISTINCT col0 * ( - CAST ( NULL AS INTEGER ) + col0 / col0 ) + + ( col1 ) col0 FROM tab2 AS cor0
----
NULL

query I rowsort
SELECT ALL - 67 FROM tab1 AS cor0 WHERE NOT ( 69 ) IS NOT NULL
----

query I rowsort
SELECT - + 92 AS col0 FROM tab2 AS cor0
----
-92
-92
-92

onlyif mysql # aggregate syntax: 
query I rowsort label-4124
SELECT ALL 32 * - COUNT( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND NULL
----
0

skipif mysql # not compatible
query I rowsort label-4124
SELECT ALL 32 * - COUNT ( * ) FROM tab0 AS cor0 WHERE NOT ( NULL ) BETWEEN ( + col1 ) AND NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4125
SELECT DISTINCT + COUNT( ALL - col0 ) * 94 FROM tab0 AS cor0
----
282

skipif mysql # not compatible
query I rowsort label-4125
SELECT DISTINCT + COUNT ( ALL - col0 ) * 94 FROM tab0 AS cor0
----
282

query I rowsort
SELECT ALL - + col2 + - 80 FROM tab0 AS cor0
----
-127
-179
-90

onlyif mysql # aggregate syntax: 
query I rowsort label-4127
SELECT DISTINCT - ( - COUNT( * ) ) col1 FROM tab0 WHERE 70 >= - ( - ( + 80 ) )
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4127
SELECT DISTINCT - ( - COUNT ( * ) ) col1 FROM tab0 WHERE 70 >= - ( - ( + 80 ) )
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL BETWEEN NULL AND ( ( - col2 ) / col1 )
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 2 + + col0 NOT IN ( col1 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4130
SELECT + MAX( - 66 ) FROM tab0 WHERE + ( + col2 ) NOT BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4130
SELECT + MAX ( - 66 ) FROM tab0 WHERE + ( + col2 ) NOT BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT - 46 AS col0 FROM tab0 WHERE ( - col2 ) BETWEEN ( col0 + col0 ) AND 38 + 77 * col2
----

query I rowsort
SELECT DISTINCT 94 AS col0 FROM tab2 WHERE NOT col2 = - col0 * 56
----
94

query I rowsort
SELECT + 40 - col0 AS col0 FROM tab2
----
-24
-35
-6

query I rowsort
SELECT ALL col0 * + + 51 * 30 AS col2 FROM tab2
----
114750
70380
97920

query I rowsort
SELECT + col2 - + col1 * - col2 AS col2 FROM tab0
----
198
220
3854

query I rowsort
SELECT col1 * + - col1 + - 5 * col1 AS col1 FROM tab1
----
-2444
-266
-50

query III rowsort
SELECT * FROM tab2 WHERE NULL BETWEEN col0 / - col2 + col1 AND NULL
----

query I rowsort
SELECT ALL - + 21 + + - 32 FROM tab1 AS cor0
----
-53
-53
-53

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + col2 + ( col2 ) col0 FROM tab0 cor0
----
198
20
94

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE - 57 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4141
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + + CAST( col0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-4141
SELECT ALL * FROM tab0 WHERE NULL NOT IN ( + + CAST ( col0 AS INTEGER ) )
----

query I rowsort
SELECT DISTINCT col2 - 50 AS col0 FROM tab0 WHERE NULL <= NULL
----

query I rowsort
SELECT 68 * col2 AS col1 FROM tab0 WHERE 52 BETWEEN ( 90 + col2 ) AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4144
SELECT ALL MAX( col2 ) - - CAST( ( - 39 ) AS SIGNED ) + COUNT( * ) AS col0 FROM tab2
----
22

skipif mysql # not compatible
query I rowsort label-4144
SELECT ALL MAX ( col2 ) - - CAST ( ( - 39 ) AS INTEGER ) + COUNT ( * ) AS col0 FROM tab2
----
22

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4145
SELECT CAST( - MAX( DISTINCT + col2 ) AS SIGNED ) FROM tab2
----
-58

skipif mysql # not compatible
query I rowsort label-4145
SELECT CAST ( - MAX ( DISTINCT + col2 ) AS INTEGER ) FROM tab2
----
-58

query I rowsort
SELECT 87 * + - 37 FROM tab2
----
-3219
-3219
-3219

onlyif mysql # aggregate syntax: 
query I rowsort label-4147
SELECT DISTINCT 11 * + + MIN( + + col1 ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
558

skipif mysql # not compatible
query I rowsort label-4147
SELECT DISTINCT 11 * + + MIN ( + + col1 ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
558

onlyif mysql # aggregate syntax: 
query I rowsort label-4148
SELECT DISTINCT - - MIN( DISTINCT + - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
query I rowsort label-4148
SELECT DISTINCT - - MIN ( DISTINCT + - ( + col2 ) ) AS col0 FROM tab0 AS cor0
----
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4149
SELECT ALL COUNT( + 29 ) FROM tab0 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4149
SELECT ALL COUNT ( + 29 ) FROM tab0 AS cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4150
SELECT 52 * - COUNT( * ) * CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4150
SELECT 52 * - COUNT ( * ) * CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
NULL

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN + - col2 AND + col2 OR NOT + col2 + + 48 NOT BETWEEN NULL AND NULL
----

query II rowsort
SELECT - 51 AS col1, + col2 FROM tab1 AS cor0
----
-51
59
-51
68
-51
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4153
SELECT ALL + SUM( - + 41 ) FROM tab0 AS cor0
----
-123

skipif mysql # not compatible
query I rowsort label-4153
SELECT ALL + SUM ( - + 41 ) FROM tab0 AS cor0
----
-123

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4154
SELECT ALL + CAST( - - col1 AS SIGNED ) FROM tab2 AS cor0
----
51
67
77

skipif mysql # not compatible
query I rowsort label-4154
SELECT ALL + CAST ( - - col1 AS INTEGER ) FROM tab2 AS cor0
----
51
67
77

query II rowsort
SELECT DISTINCT + - col2 AS col2, - col1 FROM tab2 cor0
----
-23
-51
-40
-77
-58
-67

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4156
SELECT * FROM tab2 WHERE NOT ( + 15 ) + col1 BETWEEN ( NULL ) AND - CAST( NULL AS DECIMAL )
----

skipif mysql # not compatible
query III rowsort label-4156
SELECT * FROM tab2 WHERE NOT ( + 15 ) + col1 BETWEEN ( NULL ) AND - CAST ( NULL AS REAL )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4157
SELECT ALL SUM( ALL - 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-4157
SELECT ALL SUM ( ALL - CAST ( NULL AS INTEGER ) ) col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4158
SELECT ALL COUNT( * ) FROM tab0 WHERE - col0 * + col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4158
SELECT ALL COUNT ( * ) FROM tab0 WHERE - col0 * + col2 IS NULL
----
0

query I rowsort
SELECT - AVG ( + col2 ) FROM tab1 WHERE NOT + 45 + - - col0 BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT col1 FROM tab1 WHERE NOT ( NULL ) IS NOT NULL
----
14
47
5

onlyif mysql # aggregate syntax: 
query II rowsort label-4161
SELECT + ( - 46 ) AS col0, + 9 + COUNT( - col2 ) FROM tab2
----
-46
12

skipif mysql # not compatible
query II rowsort label-4161
SELECT + ( - 46 ) AS col0, + 9 + COUNT ( - col2 ) FROM tab2
----
-46
12

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4162
SELECT DISTINCT MAX( ALL CAST( NULL AS DECIMAL ) ) col0 FROM tab1 WHERE ( - + 56 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4162
SELECT DISTINCT MAX ( ALL CAST ( NULL AS REAL ) ) col0 FROM tab1 WHERE ( - + 56 ) IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4163
SELECT DISTINCT 56 * + - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-168

skipif mysql # not compatible
query I rowsort label-4163
SELECT DISTINCT 56 * + - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-168

onlyif mysql # aggregate syntax: 
query I rowsort label-4164
SELECT ALL - + SUM( ALL - 37 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
333

skipif mysql # not compatible
query I rowsort label-4164
SELECT ALL - + SUM ( ALL - 37 ) FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
333

query I rowsort
SELECT DISTINCT - col2 * + col0 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 17 + - col2 FROM tab2
----
-23
-41
-6

query II rowsort
SELECT DISTINCT - 84 + + col2 + + col1, col2 FROM tab0 cor0
----
-53
10
16
99
44
47

onlyif mysql # aggregate syntax: 
query I rowsort label-4168
SELECT DISTINCT + COUNT( * ) - + COUNT( * ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4168
SELECT DISTINCT + COUNT ( * ) - + COUNT ( * ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT ALL - col1 * - 78 - col1 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND + col2 * + 3
----

query I rowsort
SELECT + 50 + col0 FROM tab2
----
114
125
96

query I rowsort
SELECT ALL col1 FROM tab2 WHERE NOT ( NULL ) NOT BETWEEN NULL AND col2
----

query I rowsort
SELECT - 30 + - col1 AS col0 FROM tab1
----
-35
-44
-77

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4173
SELECT DISTINCT CAST( NULL AS SIGNED ) - - COUNT( * ) + COUNT( * ) - 74 * + 37 * + COUNT( * ) col2 FROM tab1
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4173
SELECT DISTINCT CAST ( NULL AS INTEGER ) - - COUNT ( * ) + COUNT ( * ) - 74 * + 37 * + COUNT ( * ) col2 FROM tab1
----
NULL

query I rowsort
SELECT ALL 50 * - col2 AS col0 FROM tab1
----
-2950
-3400
-4800

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT + 85 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4176
SELECT DISTINCT CAST( + MIN( ( CAST( - col1 AS SIGNED ) ) ) AS SIGNED ) + - SUM( 78 ) col2 FROM tab1 cor0
----
-281

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4176
SELECT DISTINCT CAST ( + MIN ( ( CAST ( - col1 AS INTEGER ) ) ) AS INTEGER ) + - SUM ( 78 ) col2 FROM tab1 cor0
----
-281

query I rowsort
SELECT ( - - 7 ) AS col0 FROM tab1 AS cor0
----
7
7
7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4178
SELECT DISTINCT + AVG ( + 79 ) * CAST( NULL AS SIGNED ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

skipif mysql # not compatible
query I rowsort label-4178
SELECT DISTINCT + AVG ( + 79 ) * CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
NULL

query III rowsort
SELECT ALL + ( + 71 ), col2, + + col2 AS col1 FROM tab2
----
9 values hashing to 48b5f6cd79fefb9c65f94aa17662f9d7

query III rowsort
SELECT * FROM tab1 WHERE NOT - col1 + col0 + + 34 IN ( col0 * + + 56 + - col1 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT ALL * FROM tab1 WHERE - 11 BETWEEN col1 AND NULL
----

query I rowsort
SELECT + col0 FROM tab2 AS cor0 WHERE NOT ( ( 90 ) = col1 )
----
46
64
75

query I rowsort
SELECT 47 FROM tab2 AS cor0 WHERE NOT ( NULL ) = col0 * + 87
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4184
SELECT col0 * - col0 AS col0, CAST( + + 67 AS SIGNED ) - - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0
----
-2116
NULL
-4096
NULL
-5625
NULL

skipif mysql # not compatible
query II rowsort label-4184
SELECT col0 * - col0 AS col0, CAST ( + + 67 AS INTEGER ) - - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0
----
-2116
NULL
-4096
NULL
-5625
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4185
SELECT DISTINCT + 64 FROM tab0 AS cor0 WHERE NOT ( - col1 DIV - col0 * col0 ) > ( - 58 DIV - 87 )
----
64

skipif mysql # not compatible
query I rowsort label-4185
SELECT DISTINCT + 64 FROM tab0 AS cor0 WHERE NOT ( - col1 / - col0 * col0 ) > ( - 58 / - 87 )
----
64

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4186
SELECT ALL - col2 * + - CAST( NULL AS DECIMAL ) AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4186
SELECT ALL - col2 * + - CAST ( NULL AS REAL ) AS col1, col2 FROM tab2 AS cor0
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT 54 * + 83 AS col2 FROM tab2
----
4482
4482
4482

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE + + col2 * - col2 + col2 IS NULL
----

query I rowsort
SELECT DISTINCT - 20 + - col2 AS col0 FROM tab1 cor0
----
-116
-79
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4190
SELECT DISTINCT + - MAX( DISTINCT - 24 ) + + COUNT( * ) / 49 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND 15 * - 87 + 36
----
NULL

skipif mysql # not compatible
query I rowsort label-4190
SELECT DISTINCT + - MAX ( DISTINCT - 24 ) + + COUNT ( * ) / 49 AS col1 FROM tab1 AS cor0 WHERE NULL NOT BETWEEN col1 AND 15 * - 87 + 36
----
NULL

query I rowsort
SELECT col0 FROM tab1 AS cor0 WHERE NOT col1 = 64
----
51
85
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4192
SELECT DISTINCT - COUNT( * ) + - CAST( NULL AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NOT ( - 96 * - - 21 ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4192
SELECT DISTINCT - COUNT ( * ) + - CAST ( NULL AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NOT ( - 96 * - - 21 ) IS NOT NULL
----
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4193
SELECT * FROM tab2 WHERE - col2 * CAST( - col2 AS DECIMAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

skipif mysql # not compatible
query III rowsort label-4193
SELECT * FROM tab2 WHERE - col2 * CAST ( - col2 AS REAL ) IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT DISTINCT - 72 AS col1 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
-72

onlyif mysql # aggregate syntax: 
query I rowsort label-4195
SELECT ALL - COUNT( * ) + - 3 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4195
SELECT ALL - COUNT ( * ) + - 3 FROM tab0, tab0 AS cor0 WHERE NOT NULL IS NULL
----
-3

query I rowsort
SELECT ALL + col2 * - col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query I rowsort
SELECT DISTINCT + - col0 + 26 FROM tab1 AS cor0
----
-25
-59
-65

onlyif mysql # aggregate syntax: 
query I rowsort label-4198
SELECT - COUNT( DISTINCT + + col1 ) AS col2 FROM tab1 cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4198
SELECT - COUNT ( DISTINCT + + col1 ) AS col2 FROM tab1 cor0
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4199
SELECT + CAST( - - 90 AS SIGNED ) AS col1 FROM tab1 AS cor0
----
90
90
90

skipif mysql # not compatible
query I rowsort label-4199
SELECT + CAST ( - - 90 AS INTEGER ) AS col1 FROM tab1 AS cor0
----
90
90
90

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 52 * - col2 IN ( ( - + col0 ) + - 0 )
----

query I rowsort
SELECT - col2 AS col0 FROM tab2 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + 39 + + col1 FROM tab2
----
106
116
90

query I rowsort
SELECT + 8 - + col1 FROM tab1
----
-39
-6
3

query I rowsort
SELECT DISTINCT ( col1 ) * + col1 + col1 AS col0 FROM tab2 WHERE NOT col2 BETWEEN + col1 AND NULL AND NOT - 97 IN ( + - col1 / + - col0 )
----
2652
4556
6006

query III rowsort
SELECT * FROM tab1 WHERE + - 35 * - col2 * + - col1 + + col2 IS NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col2 IS NOT NULL AND NOT ( col1 ) <> + 40
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4207
SELECT ALL - COUNT( * ) - - COUNT( * ) col2 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4207
SELECT ALL - COUNT ( * ) - - COUNT ( * ) col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4208
SELECT - COUNT( * ) * COUNT( * ) + + 82 AS col0 FROM tab0
----
73

skipif mysql # not compatible
query I rowsort label-4208
SELECT - COUNT ( * ) * COUNT ( * ) + + 82 AS col0 FROM tab0
----
73

onlyif mysql # aggregate syntax: 
query I rowsort label-4209
SELECT + MAX( - 29 ) FROM tab1 AS cor0
----
-29

skipif mysql # not compatible
query I rowsort label-4209
SELECT + MAX ( - 29 ) FROM tab1 AS cor0
----
-29

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE col0 + col2 = - ( + col0 )
----

query I rowsort
SELECT DISTINCT col0 AS col2 FROM tab2 AS cor0 WHERE ( NULL ) IS NULL
----
46
64
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4212
SELECT DISTINCT COUNT( - 48 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4212
SELECT DISTINCT COUNT ( - 48 ) FROM tab1 AS cor0
----
3

query II rowsort
SELECT + 3 AS col2, - 43 FROM tab1 AS cor0
----
3
-43
3
-43
3
-43

query I rowsort
SELECT ALL 67 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
-3149
-6633
-670

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 * - + col1 * - 78 * - col0 col1 FROM tab0 cor0
----
1425060
4454190
749034

query I rowsort
SELECT ALL col1 FROM tab0 AS cor0 WHERE NOT NULL BETWEEN + 56 AND - - 8
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4217
SELECT + MIN( ALL col0 ), 98 * + - COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - 99, col1 )
----
NULL
0

skipif mysql # not compatible
query II rowsort label-4217
SELECT + MIN ( ALL col0 ), 98 * + - COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT ( NULL ) IN ( + - 99, col1 )
----
NULL
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4218
SELECT DISTINCT + COUNT( * ) * - 17 FROM tab1
----
-51

skipif mysql # not compatible
query I rowsort label-4218
SELECT DISTINCT + COUNT ( * ) * - 17 FROM tab1
----
-51

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - col1 + 29 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 + ( col0 ), col1 col1 FROM tab2
----
104
77
133
67
69
51

query I rowsort
SELECT + col0 * 29 + - col0 + - col0 FROM tab2
----
1242
1728
2025

query I rowsort
SELECT - 20 + - col0 FROM tab2
----
-66
-84
-95

query II rowsort
SELECT 84 + + + 94, col2 AS col2 FROM tab0
----
178
10
178
47
178
99

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 33 + + + col2 col1 FROM tab2 AS cor0
----
56
73
91

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE - col2 * + col0 <= ( NULL )
----

query I rowsort
SELECT ALL - col1 FROM tab0 AS cor0 WHERE + col0 IS NOT NULL
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query II rowsort label-4227
SELECT + COUNT( * ), + COUNT( * ) + - 54 + - + 57 - + - 68 AS col2 FROM tab0
----
3
-40

skipif mysql # not compatible
query II rowsort label-4227
SELECT + COUNT ( * ), + COUNT ( * ) + - 54 + - + 57 - + - 68 AS col2 FROM tab0
----
3
-40

onlyif mysql # aggregate syntax: 
query I rowsort label-4228
SELECT DISTINCT + COUNT( ALL + + 94 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

skipif mysql # not compatible
query I rowsort label-4228
SELECT DISTINCT + COUNT ( ALL + + 94 ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
9

onlyif mysql # aggregate syntax: 
query I rowsort label-4229
SELECT 60 * - - 63 * - - 76 * - ( COUNT( * ) ) FROM tab2
----
-861840

skipif mysql # not compatible
query I rowsort label-4229
SELECT 60 * - - 63 * - - 76 * - ( COUNT ( * ) ) FROM tab2
----
-861840

query III rowsort
SELECT * FROM tab0 WHERE NULL BETWEEN - 46 AND NULL
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE - 77 <> - ( 53 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT ALL + 88, 6 * col1 AS col1 FROM tab1 cor0
----
88
282
88
30
88
84

query III rowsort
SELECT * FROM tab0 cor0 WHERE - col0 + + 90 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4234
SELECT ALL + MIN( + col0 ) * - - 43 - COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0
----
636

skipif mysql # not compatible
query I rowsort label-4234
SELECT ALL + MIN ( + col0 ) * - - 43 - COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0
----
636

query I rowsort
SELECT DISTINCT ( col1 ) + - 85 FROM tab1 AS cor0
----
-38
-71
-80

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4236
SELECT ALL + col0 - + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4236
SELECT ALL + col0 - + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT - 40 - - 87 FROM tab2
----
47

query III rowsort
SELECT * FROM tab1 WHERE + 44 IS NULL
----

query I rowsort
SELECT - ( 51 ) FROM tab0
----
-51
-51
-51

query I rowsort
SELECT DISTINCT col0 * - 37 AS col0 FROM tab0
----
-3219
-3589
-555

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4241
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( - col0 * + CAST( NULL AS SIGNED ) + + col2 )
----

skipif mysql # not compatible
query III rowsort label-4241
SELECT ALL * FROM tab0 WHERE NOT NULL <= ( - col0 * + CAST ( NULL AS INTEGER ) + + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4242
SELECT COUNT( * ) * + - COUNT( * ) AS col2 FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4242
SELECT COUNT ( * ) * + - COUNT ( * ) AS col2 FROM tab0
----
-9

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4243
SELECT DISTINCT + COUNT( * ) DIV - MIN( - col0 ) AS col0 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4243
SELECT DISTINCT + COUNT ( * ) / - MIN ( - col0 ) AS col0 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query II rowsort label-4244
SELECT - SUM( ( col1 ) ) * COUNT( * ) AS col1, + 51 AS col0 FROM tab0 AS cor0
----
-309
51

skipif mysql # not compatible
query II rowsort label-4244
SELECT - SUM ( ( col1 ) ) * COUNT ( * ) AS col1, + 51 AS col0 FROM tab0 AS cor0
----
-309
51

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( + col0 ) IN ( + col2, ( + - col2 ) + - 33 + - col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT 48 + - ( - col1 ) AS col0 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4247
SELECT DISTINCT - SUM( - - col0 ) FROM tab1 AS cor0
----
-227

skipif mysql # not compatible
query I rowsort label-4247
SELECT DISTINCT - SUM ( - - col0 ) FROM tab1 AS cor0
----
-227

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4248
SELECT - 23 * ( - + CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4248
SELECT - 23 * ( - + CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL
NULL
NULL

query I rowsort
SELECT - col0 + + 65 * - 31 FROM tab0 WHERE NOT NULL <> col0 * + + 95
----

query I rowsort
SELECT - 71 AS col0 FROM tab1 AS cor0 CROSS JOIN tab0 AS cor1
----
9 values hashing to e72f95c346714d3065a96d67a6fd5062

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4251
SELECT DISTINCT + COUNT( * ) DIV + COUNT( * ) col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4251
SELECT DISTINCT + COUNT ( * ) / + COUNT ( * ) col1 FROM tab0 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4252
SELECT + COUNT( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 >= ( + + col2 * 44 )
----
3

skipif mysql # not compatible
query I rowsort label-4252
SELECT + COUNT ( * ) AS col1 FROM tab0 AS cor0 WHERE NOT - col2 >= ( + + col2 * 44 )
----
3

query I rowsort
SELECT + - 71 * + 98 FROM tab0 AS cor0
----
-6958
-6958
-6958

query I rowsort
SELECT ALL - + 24 AS col2 FROM tab2 cor0
----
-24
-24
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-4255
SELECT ALL + + COUNT( - - 22 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4255
SELECT ALL + + COUNT ( - - 22 ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4256
SELECT - - COUNT( * ) * - 36 FROM tab0 AS cor0
----
-108

skipif mysql # not compatible
query I rowsort label-4256
SELECT - - COUNT ( * ) * - 36 FROM tab0 AS cor0
----
-108

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE col2 = ( col1 * - col1 )
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4258
SELECT ALL - MAX( ( CAST( - col2 AS SIGNED ) ) ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4258
SELECT ALL - MAX ( ( CAST ( - col2 AS INTEGER ) ) ) FROM tab0 AS cor0
----
10

query I rowsort
SELECT ALL - ( 84 ) AS col1 FROM tab2 AS cor0
----
-84
-84
-84

query I rowsort
SELECT + + col0 * - + col2 * - - 21 FROM tab1 cor0
----
-102816
-105315
-129948

onlyif mysql # aggregate syntax: 
query I rowsort label-4261
SELECT ALL MAX( + - col0 ) col2 FROM tab0
----
-15

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4261
SELECT ALL MAX ( + - col0 ) col2 FROM tab0
----
-15

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4262
SELECT DISTINCT + 60 - + + 80 * - 44 FROM tab2 WHERE 20 + + col2 <> - + CAST( 94 AS DECIMAL ) + + + col1
----
3580

skipif mysql # not compatible
query I rowsort label-4262
SELECT DISTINCT + 60 - + + 80 * - 44 FROM tab2 WHERE 20 + + col2 <> - + CAST ( 94 AS REAL ) + + + col1
----
3580

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4263
SELECT DISTINCT - CAST( + - COUNT( ALL - + col1 ) AS SIGNED ) + - 92 FROM tab1
----
-89

skipif mysql # not compatible
query I rowsort label-4263
SELECT DISTINCT - CAST ( + - COUNT ( ALL - + col1 ) AS INTEGER ) + - 92 FROM tab1
----
-89

query I rowsort
SELECT ALL col0 * 65 FROM tab0 AS cor0
----
5655
6305
975

query I rowsort
SELECT ALL + col0 + col2 + - 52 FROM tab2 AS cor0
----
17
52
81

query I rowsort
SELECT DISTINCT - - col2 AS col2 FROM tab0 AS cor0 WHERE NULL BETWEEN 96 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4267
SELECT DISTINCT 15 - CAST( NULL AS DECIMAL ) + - COUNT( * ) AS col0 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4267
SELECT DISTINCT 15 - CAST ( NULL AS REAL ) + - COUNT ( * ) AS col0 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4268
SELECT ( + CAST( + 9 AS SIGNED ) ) AS col2, 36 FROM tab1
----
9
36
9
36
9
36

skipif mysql # not compatible
query II rowsort label-4268
SELECT ( + CAST ( + 9 AS INTEGER ) ) AS col2, 36 FROM tab1
----
9
36
9
36
9
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4269
SELECT ALL - COUNT( * ) FROM tab0 WHERE NOT 88 >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4269
SELECT ALL - COUNT ( * ) FROM tab0 WHERE NOT 88 >= NULL
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4270
SELECT - COUNT( * ) DIV - COUNT( * ) AS col0 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4270
SELECT - COUNT ( * ) / - COUNT ( * ) AS col0 FROM tab1 AS cor0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4271
SELECT DISTINCT MAX( DISTINCT + + 42 ) * + + ( - - SUM( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-9366

skipif mysql # not compatible
query I rowsort label-4271
SELECT DISTINCT MAX ( DISTINCT + + 42 ) * + + ( - - SUM ( DISTINCT - col2 ) ) FROM tab1 AS cor0
----
-9366

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - ( + col0 ) - - ( - + col2 ) col2 FROM tab2 AS cor0
----
-104
-133
-69

query I rowsort
SELECT DISTINCT + ( - col2 ) + - col1 AS col0 FROM tab2 AS cor0
----
-117
-125
-74

query I rowsort
SELECT DISTINCT + col0 * 28 * col2 + - col1 FROM tab2 AS cor0
----
121733
29573
71603

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 13 col2 FROM tab1 WHERE NOT NULL BETWEEN + 97 - - col0 AND - - 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4276
SELECT DISTINCT + 5 * COUNT( * ) FROM tab2
----
15

skipif mysql # not compatible
query I rowsort label-4276
SELECT DISTINCT + 5 * COUNT ( * ) FROM tab2
----
15

query I rowsort
SELECT ALL - - col2 AS col0 FROM tab2 WHERE NULL IS NULL
----
23
40
58

query I rowsort
SELECT DISTINCT 6 * 15 FROM tab2
----
90

onlyif mysql # aggregate syntax: 
query I rowsort label-4279
SELECT - MIN( ALL col2 ) AS col1 FROM tab2
----
-23

skipif mysql # not compatible
query I rowsort label-4279
SELECT - MIN ( ALL col2 ) AS col1 FROM tab2
----
-23

query I rowsort
SELECT 67 * + - col1 * 35 FROM tab0
----
-189945
-2345
-49245

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4281
SELECT ALL 61 DIV - MAX( DISTINCT + 71 ) AS col0 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4281
SELECT ALL 61 / - MAX ( DISTINCT + 71 ) AS col0 FROM tab0 AS cor0
----
0

query I rowsort
SELECT col1 * 82 AS col1 FROM tab2 AS cor0
----
4182
5494
6314

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 - - + 19 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query IIIIII rowsort
SELECT * FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1 WHERE NOT NULL BETWEEN NULL AND ( NULL )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4285
SELECT DISTINCT - 8 DIV - col2 - + 95 + col1 AS col0 FROM tab1 AS cor0
----
-48
-81
-90

skipif mysql # not compatible
query I rowsort label-4285
SELECT DISTINCT - 8 / - col2 - + 95 + col1 AS col0 FROM tab1 AS cor0
----
-48
-81
-90

query I rowsort
SELECT ALL - 49 + - 28 - - - col2 AS col0 FROM tab2 AS cor0
----
-100
-117
-135

query I rowsort
SELECT DISTINCT + ( + 36 ) AS col1 FROM tab2 AS cor0 WHERE NOT NULL <= ( + - ( col2 ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4288
SELECT - - COUNT( * ) FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4288
SELECT - - COUNT ( * ) FROM tab1 AS cor0 WHERE NOT 35 IS NULL
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - ( + + 14 ) col1 FROM tab1 AS cor0
----
-14
-14
-14

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4290
SELECT ALL + 79 + CAST( NULL AS SIGNED ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4290
SELECT ALL + 79 + CAST ( NULL AS INTEGER ) AS col2 FROM tab2 cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL 41 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
41
41
41

query I rowsort
SELECT + 92 + - col0 AS col0 FROM tab1
----
1
41
7

onlyif mysql # aggregate syntax: 
query I rowsort label-4293
SELECT - MAX( ALL - 41 ) + + + 54 - 42 AS col0 FROM tab2
----
53

skipif mysql # not compatible
query I rowsort label-4293
SELECT - MAX ( ALL - 41 ) + + + 54 - 42 AS col0 FROM tab2
----
53

query I rowsort
SELECT DISTINCT col2 + + 82 AS col2 FROM tab1 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT * FROM tab0 WHERE ( NULL ) BETWEEN - col2 AND - col2
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4296
SELECT - COUNT( * ) + 35 + + COUNT( * ) DIV 36 AS col2 FROM tab0
----
32

skipif mysql # not compatible
query I rowsort label-4296
SELECT - COUNT ( * ) + 35 + + COUNT ( * ) / 36 AS col2 FROM tab0
----
32

query I rowsort
SELECT col2 + col1 - ( + col2 ) AS col0 FROM tab0
----
1
21
81

query I rowsort
SELECT - col1 + + + col2 FROM tab2
----
-28
-37
-9

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <= + col2 * + - 53 / - - col1 + + 32
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4300
SELECT DISTINCT col0 DIV + - col0 FROM tab2 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4300
SELECT DISTINCT col0 / + - col0 FROM tab2 AS cor0
----
-1

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4301
SELECT DISTINCT + CAST( NULL AS DECIMAL ) + + 23 + + + 32 * + + COUNT( * ) AS col2 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4301
SELECT DISTINCT + CAST ( NULL AS REAL ) + + 23 + + + 32 * + + COUNT ( * ) AS col2 FROM tab2 cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col0 * + 47 * + col2, col1 col1 FROM tab1 cor0
----
-230112
14
-235705
5
-290836
47

query I rowsort
SELECT ALL col0 + + 30 FROM tab1
----
115
121
81

query I rowsort
SELECT DISTINCT + - col0 + col2 FROM tab1 WHERE - col0 IS NULL
----

query IIIIII rowsort
SELECT DISTINCT * FROM tab0, tab1 AS cor0 WHERE NOT - - ( + 61 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4306
SELECT DISTINCT MIN( DISTINCT + - col0 ) FROM tab2
----
-75

skipif mysql # not compatible
query I rowsort label-4306
SELECT DISTINCT MIN ( DISTINCT + - col0 ) FROM tab2
----
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-4307
SELECT ALL COUNT( DISTINCT + ( + + col2 ) ) AS col1 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4307
SELECT ALL COUNT ( DISTINCT + ( + + col2 ) ) AS col1 FROM tab1
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4308
SELECT ALL - - CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4308
SELECT ALL - - CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4309
SELECT DISTINCT col0 AS col2, CAST( NULL AS SIGNED ) / col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

skipif mysql # not compatible
query II rowsort label-4309
SELECT DISTINCT col0 AS col2, CAST ( NULL AS INTEGER ) / col2 FROM tab0 AS cor0
----
15
NULL
87
NULL
97
NULL

query I rowsort
SELECT ALL + - col2 + col1 * col0 AS col1 FROM tab2 cor0
----
2323
4888
4967

onlyif mysql # aggregate syntax: 
query I rowsort label-4311
SELECT ALL COUNT( DISTINCT + 84 ) col1 FROM tab1
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4311
SELECT ALL COUNT ( DISTINCT + 84 ) col1 FROM tab1
----
1

query II rowsort
SELECT DISTINCT + ( - - col1 ) AS col1, + 2 AS col0 FROM tab2
----
51
2
67
2
77
2

query I rowsort
SELECT col0 + + - col1 + + 8 FROM tab2 WHERE NOT ( col2 * + col0 ) IS NULL
----
-5
16
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4314
SELECT ALL - CAST( + col2 AS SIGNED ) * - ( col1 ) AS col0 FROM tab0
----
210
3807
99

skipif mysql # not compatible
query I rowsort label-4314
SELECT ALL - CAST ( + col2 AS INTEGER ) * - ( col1 ) AS col0 FROM tab0
----
210
3807
99

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4315
SELECT + CAST( NULL AS DECIMAL ) * + - SUM( + col2 ) * + COUNT( * ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4315
SELECT + CAST ( NULL AS REAL ) * + - SUM ( + col2 ) * + COUNT ( * ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4316
SELECT DISTINCT + COUNT( DISTINCT col1 ) AS col0 FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-4316
SELECT DISTINCT + COUNT ( DISTINCT col1 ) AS col0 FROM tab1
----
3

query I rowsort
SELECT + col2 * + 26 AS col2 FROM tab2 AS cor0
----
1040
1508
598

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT col2 >= 93 * - col0 + col0
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4319
SELECT + COUNT( * ) * - MIN( ALL - col2 ) + + 49 FROM tab0 AS cor0
----
346

skipif mysql # not compatible
query I rowsort label-4319
SELECT + COUNT ( * ) * - MIN ( ALL - col2 ) + + 49 FROM tab0 AS cor0
----
346

onlyif mysql # aggregate syntax: 
query II rowsort label-4320
SELECT DISTINCT - 72 * - + COUNT( * ) AS col1, - COUNT( * ) FROM tab1 AS cor0
----
216
-3

skipif mysql # not compatible
query II rowsort label-4320
SELECT DISTINCT - 72 * - + COUNT ( * ) AS col1, - COUNT ( * ) FROM tab1 AS cor0
----
216
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4321
SELECT - MAX( - + col1 ) FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4321
SELECT - MAX ( - + col1 ) FROM tab0
----
1

query I rowsort
SELECT ALL 67 FROM tab1 WHERE ( + col1 ) IS NOT NULL
----
67
67
67

query II rowsort
SELECT + 7, + 67 AS col2 FROM tab2 AS cor0
----
7
67
7
67
7
67

onlyif mysql # aggregate syntax: 
query I rowsort label-4324
SELECT - SUM( DISTINCT - 97 ) col1 FROM tab1 AS cor0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4324
SELECT - SUM ( DISTINCT - 97 ) col1 FROM tab1 AS cor0
----
97

query I rowsort
SELECT DISTINCT - 77 + + col1 + 66 * + col1 FROM tab0 AS cor0
----
-10
1330
5350

query II rowsort
SELECT - 71, 36 AS col1 FROM tab1 AS cor0
----
-71
36
-71
36
-71
36

onlyif mysql # aggregate syntax: 
query I rowsort label-4327
SELECT ALL + COUNT( * ) * 48 AS col1 FROM tab1 AS cor0
----
144

skipif mysql # not compatible
query I rowsort label-4327
SELECT ALL + COUNT ( * ) * 48 AS col1 FROM tab1 AS cor0
----
144

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col1 * + 66 * - - 67 col2 FROM tab1
----
207834
22110
61908

query I rowsort
SELECT col1 * col2 * + + col1 AS col2 FROM tab1
----
1475
150212
18816

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - col2 + - 70 * - - col1 * + - ( + col2 ) col1 FROM tab1
----
20591
223652
93984

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + col1 + 86 BETWEEN - 30 AND NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4332
SELECT DISTINCT col0 + - col1 + + + col0 DIV col0 + - ( - ( 16 ) ) FROM tab0
----
-49
113
83

skipif mysql # not compatible
query I rowsort label-4332
SELECT DISTINCT col0 + - col1 + + + col0 / col0 + - ( - ( 16 ) ) FROM tab0
----
-49
113
83

onlyif mysql # aggregate syntax: 
query I rowsort label-4333
SELECT + COUNT( * ) + - 83 AS col2 FROM tab2 AS cor0
----
-80

skipif mysql # not compatible
query I rowsort label-4333
SELECT + COUNT ( * ) + - 83 AS col2 FROM tab2 AS cor0
----
-80

query I rowsort
SELECT + 44 + - + col2 FROM tab2 cor0
----
-14
21
4

query I rowsort
SELECT - col2 + ( - 3 ) AS col2 FROM tab2 AS cor0
----
-26
-43
-61

onlyif mysql # DIV for integer division: 
query II rowsort label-4336
SELECT ALL ( + col2 ) + col0 DIV + - 67, col1 FROM tab0 AS cor0
----
47
81
9
21
98
1

skipif mysql # not compatible
query II rowsort label-4336
SELECT ALL ( + col2 ) + col0 / + - 67, col1 FROM tab0 AS cor0
----
47
81
9
21
98
1

query I rowsort
SELECT DISTINCT - 59 + - 84 AS col2 FROM tab0 AS cor0
----
-143

onlyif mysql # aggregate syntax: 
query I rowsort label-4338
SELECT ALL ( - COUNT( - ( - - 66 ) ) ) AS col2 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4338
SELECT ALL ( - COUNT ( - ( - - 66 ) ) ) AS col2 FROM tab2
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4339
SELECT DISTINCT ( - - COUNT( * ) ) * - + 99 AS col0 FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-4339
SELECT DISTINCT ( - - COUNT ( * ) ) * - + 99 AS col0 FROM tab2
----
-297

onlyif mysql # DIV for integer division: 
query II rowsort label-4340
SELECT ALL + col0, - 85 DIV - 51 FROM tab1
----
51
1
85
1
91
1

skipif mysql # not compatible
query II rowsort label-4340
SELECT ALL + col0, - 85 / - 51 FROM tab1
----
51
1
85
1
91
1

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 27 col2 FROM tab2
----
27
27
27

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4342
SELECT DISTINCT CAST( + - col0 AS SIGNED ), col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-15
81
-87
21
-97
1

skipif mysql # not compatible
query II rowsort label-4342
SELECT DISTINCT CAST ( + - col0 AS INTEGER ), col1 AS col1 FROM tab0 WHERE NULL IS NULL
----
-15
81
-87
21
-97
1

query II rowsort
SELECT DISTINCT + col1, + col1 * - col0 AS col0 FROM tab2 WHERE NOT + - col1 * + col1 * col1 IS NOT NULL
----

query II rowsort
SELECT ALL col1 AS col0, 66 AS col0 FROM tab2
----
51
66
67
66
77
66

query I rowsort
SELECT ALL + col1 * - - 46 FROM tab0 AS cor0
----
3726
46
966

query II rowsort
SELECT DISTINCT - 79, 25 AS col0 FROM tab1 AS cor0
----
-79
25

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4347
SELECT + 34 DIV - COUNT( * ) FROM tab0
----
-11

skipif mysql # not compatible
query I rowsort label-4347
SELECT + 34 / - COUNT ( * ) FROM tab0
----
-11

query II rowsort
SELECT DISTINCT + 96 AS col0, 21 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab0 AS cor1 )
----
96
21

onlyif mysql # aggregate syntax: 
query I rowsort label-4349
SELECT ALL + MIN( ALL + ( - col1 ) ) + + + 96 FROM tab1
----
49

skipif mysql # not compatible
query I rowsort label-4349
SELECT ALL + MIN ( ALL + ( - col1 ) ) + + + 96 FROM tab1
----
49

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4350
SELECT + CAST( + ( + 68 ) AS SIGNED ) AS col2 FROM tab1
----
68
68
68

skipif mysql # not compatible
query I rowsort label-4350
SELECT + CAST ( + ( + 68 ) AS INTEGER ) AS col2 FROM tab1
----
68
68
68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4351
SELECT SUM( ALL + CAST( + 62 AS SIGNED ) ) AS col0 FROM tab2 AS cor0
----
186

skipif mysql # not compatible
query I rowsort label-4351
SELECT SUM ( ALL + CAST ( + 62 AS INTEGER ) ) AS col0 FROM tab2 AS cor0
----
186

query I rowsort
SELECT ALL - - col1 + col1 AS col2 FROM tab0 cor0
----
162
2
42

query I rowsort
SELECT col1 * + - 6 + - 78 FROM tab2
----
-384
-480
-540

query I rowsort
SELECT ALL + 20 AS col2 FROM tab0 WHERE NOT NULL >= NULL
----

query II rowsort
SELECT ALL + 32, ( col2 ) FROM tab2
----
32
23
32
40
32
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4356
SELECT CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab2
----
-3

skipif mysql # not compatible
query I rowsort label-4356
SELECT CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab2
----
-3

query I rowsort
SELECT DISTINCT - - ( + 99 ) FROM tab1 AS cor0
----
99

onlyif mysql # aggregate syntax: 
query I rowsort label-4358
SELECT DISTINCT - + 37 + - + SUM( ALL 25 ) FROM tab0 AS cor0
----
-112

skipif mysql # not compatible
query I rowsort label-4358
SELECT DISTINCT - + 37 + - + SUM ( ALL 25 ) FROM tab0 AS cor0
----
-112

query II rowsort
SELECT 64 / - - ( + 29 ) AS col0, 29 AS col0 FROM tab0 AS cor0 WHERE NOT NULL <> - col1
----

query I rowsort
SELECT + + col0 FROM tab1 AS cor0 WHERE NOT - 9 / + + col0 BETWEEN NULL AND - col1
----
51
85
91

onlyif mysql # aggregate syntax: 
query I rowsort label-4361
SELECT - COUNT( + col1 ) col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4361
SELECT - COUNT ( + col1 ) col2 FROM tab1 AS cor0 WHERE NOT NULL = NULL
----
0

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col0 FROM tab0 AS cor0 WHERE NOT + 74 IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4363
SELECT - CAST( - + col0 AS SIGNED ) AS col2 FROM tab1 cor0
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4363
SELECT - CAST ( - + col0 AS INTEGER ) AS col2 FROM tab1 cor0
----
51
85
91

onlyif mysql # DIV for integer division: 
query II rowsort label-4364
SELECT + 39 DIV + 98, col2 AS col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

skipif mysql # not compatible
query II rowsort label-4364
SELECT + 39 / + 98, col2 AS col2 FROM tab2 AS cor0
----
0
23
0
40
0
58

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DECIMAL type: 
query I rowsort label-4365
SELECT ALL + CAST( - 14 AS SIGNED ) - COUNT( * ) * + ( - AVG ( ( col1 ) ) ) FROM tab0 WHERE + 41 - + CAST( - 98 AS DECIMAL ) + col2 > NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4365
SELECT ALL + CAST ( - 14 AS INTEGER ) - COUNT ( * ) * + ( - AVG ( ( col1 ) ) ) FROM tab0 WHERE + 41 - + CAST ( - 98 AS REAL ) + col2 > NULL
----
NULL

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT + col2 / - + col1 NOT BETWEEN + col2 AND col0
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - - col1 * - 94 col1 FROM tab2 AS cor0
----
-4794
-6298
-7238

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4368
SELECT ALL 53 + + CAST( NULL AS DECIMAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4368
SELECT ALL 53 + + CAST ( NULL AS REAL ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4369
SELECT ALL 85, MIN( 9 ) AS col2 FROM tab1
----
85
9

skipif mysql # not compatible
query II rowsort label-4369
SELECT ALL 85, MIN ( 9 ) AS col2 FROM tab1
----
85
9

query I rowsort
SELECT - 49 FROM tab0 cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 01b1fa22fee872a7ba64f90d6046ffae

query I rowsort
SELECT ALL + col1 FROM tab1 AS cor0 WHERE col1 + + - col0 + - + col1 * + - col2 / + - col0 IS NULL
----

query I rowsort
SELECT DISTINCT - 62 + - 24 FROM tab0 AS cor0
----
-86

query I rowsort
SELECT ALL + - col1 + - 72 FROM tab2 AS cor0
----
-123
-139
-149

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col1 + + col0 / - 66 IS NULL
----

query I rowsort
SELECT + - col0 * + - 67 FROM tab0 cor0
----
1005
5829
6499

query I rowsort
SELECT DISTINCT - + 69 - - 39 FROM tab1 AS cor0
----
-30

query I rowsort
SELECT ALL 11 + col2 * - col0 AS col0 FROM tab1 AS cor0
----
-4885
-5004
-6177

onlyif mysql # aggregate syntax: 
query I rowsort label-4378
SELECT ALL - COUNT( - - 85 ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-4378
SELECT ALL - COUNT ( - - 85 ) FROM tab0 AS cor0
----
-3

query II rowsort
SELECT ALL col0 - - 42 AS col0, col0 FROM tab0
----
129
87
139
97
57
15

onlyif mysql # aggregate syntax: 
query I rowsort label-4380
SELECT ALL COUNT( * ) AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

skipif mysql # not compatible
query I rowsort label-4380
SELECT ALL COUNT ( * ) AS col2 FROM tab2 WHERE NOT + col2 IS NOT NULL
----
0

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4381
SELECT - 16 - + - ( - + CAST( NULL AS SIGNED ) ) - - COUNT( * ) * - COUNT( * ) * - CAST( NULL AS SIGNED ) AS col1 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4381
SELECT - 16 - + - ( - + CAST ( NULL AS INTEGER ) ) - - COUNT ( * ) * - COUNT ( * ) * - CAST ( NULL AS INTEGER ) AS col1 FROM tab1
----
NULL

query I rowsort
SELECT DISTINCT col0 - - 97 AS col0 FROM tab2
----
143
161
172

query I rowsort
SELECT col0 FROM tab0 WHERE col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4384
SELECT ALL - MIN( ALL col2 ) col2 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4384
SELECT ALL - MIN ( ALL col2 ) col2 FROM tab1
----
-59

query I rowsort
SELECT DISTINCT - 40 * - ( + + col0 ) AS col2 FROM tab0
----
3480
3880
600

query I rowsort
SELECT ALL ( - col0 ) * + - col2 * - col0 AS col0 FROM tab2 cor0
----
-163840
-326250
-48668

onlyif mysql # aggregate syntax: 
query II rowsort label-4387
SELECT 73 + + 78 AS col0, COUNT( * ) FROM tab1 cor0
----
151
3

skipif mysql # not compatible
query II rowsort label-4387
SELECT 73 + + 78 AS col0, COUNT ( * ) FROM tab1 cor0
----
151
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4388
SELECT DISTINCT SUM( ALL 54 ) FROM tab2 AS cor0
----
162

skipif mysql # not compatible
query I rowsort label-4388
SELECT DISTINCT SUM ( ALL 54 ) FROM tab2 AS cor0
----
162

onlyif mysql # aggregate syntax: 
query I rowsort label-4389
SELECT MIN( 45 ) col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4389
SELECT MIN ( 45 ) col1 FROM tab0 AS cor0 WHERE NOT col0 IS NULL
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4390
SELECT - ( - 72 ) + - + COUNT( * ) AS col0 FROM tab0, tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4390
SELECT - ( - 72 ) + - + COUNT ( * ) AS col0 FROM tab0, tab0 AS cor0
----
63

query I rowsort
SELECT 59 * 41 FROM tab0 cor0
----
2419
2419
2419

onlyif mysql # DIV for integer division: 
query I rowsort label-4392
SELECT ALL - 49 DIV 22 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

skipif mysql # not compatible
query I rowsort label-4392
SELECT ALL - 49 / 22 AS col2 FROM tab2 AS cor0
----
-2
-2
-2

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 72 BETWEEN 61 AND + col1
----
87
21
10
97
1
99

query II rowsort
SELECT + col2, + 89 FROM tab1 AS cor0
----
59
89
68
89
96
89

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4395
SELECT + col1, CAST( NULL AS SIGNED ) FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

skipif mysql # not compatible
query II rowsort label-4395
SELECT + col1, CAST ( NULL AS INTEGER ) FROM tab0 cor0
----
1
NULL
21
NULL
81
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4396
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 74 + + + col0 * - col1 * - + 13 > - - CAST( NULL AS DECIMAL ) + - 43 * col1
----

skipif mysql # not compatible
query III rowsort label-4396
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT 74 + + + col0 * - col1 * - + 13 > - - CAST ( NULL AS REAL ) + - 43 * col1
----

query I rowsort
SELECT ALL 81 * - col2 FROM tab0 AS cor0 WHERE NOT NULL IN ( + 68, + col0 * - 24, + + 18 ) OR NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4398
SELECT ALL + MAX( col1 ) * 23 AS col0 FROM tab2
----
1771

skipif mysql # not compatible
query I rowsort label-4398
SELECT ALL + MAX ( col1 ) * 23 AS col0 FROM tab2
----
1771

query I rowsort
SELECT col2 * col1 * col1 AS col1 FROM tab2
----
237160
260362
59823

query I rowsort
SELECT ALL + col0 * - - col1 AS col2 FROM tab2 WHERE NOT 51 / + - col1 BETWEEN + 42 AND ( 90 )
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4401
SELECT ALL + MAX( col0 ) col0 FROM tab0
----
97

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4401
SELECT ALL + MAX ( col0 ) col0 FROM tab0
----
97

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 52 col0 FROM tab0 AS cor0
----
52

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 col2 FROM tab1 AS cor0 WHERE NOT ( 31 ) BETWEEN NULL AND NULL
----

query I rowsort
SELECT DISTINCT 52 + + 42 AS col1 FROM tab2 AS cor0
----
94

query I rowsort
SELECT + col1 + - 9 FROM tab2 WHERE NULL IS NULL OR NOT NULL BETWEEN + 28 * - - col1 AND col0 * + col2
----
42
58
68

query I rowsort
SELECT DISTINCT 75 * - 93 FROM tab1
----
-6975

query I rowsort
SELECT + 53 * - col2 FROM tab2
----
-1219
-2120
-3074

query I rowsort
SELECT DISTINCT - col1 * - + col2 AS col2 FROM tab1 cor0
----
1344
295
3196

query I rowsort
SELECT ALL - col2 + - ( - ( + 3 ) ) * ( col2 ) AS col1 FROM tab0 AS cor0
----
198
20
94

query I rowsort
SELECT ( + col0 ) FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query III rowsort label-4411
SELECT ALL + 36 + - - col2 * col2 * + + CAST( col1 AS SIGNED ) + col0 AS col0, - col1 DIV - col1, + - 94 AS col2 FROM tab1 AS cor0
----
9 values hashing to c1e5df30f6e18a5858efcf00b9c0593c

skipif mysql # not compatible
query III rowsort label-4411
SELECT ALL + 36 + - - col2 * col2 * + + CAST ( col1 AS INTEGER ) + col0 AS col0, - col1 / - col1, + - 94 AS col2 FROM tab1 AS cor0
----
9 values hashing to c1e5df30f6e18a5858efcf00b9c0593c

onlyif mysql # aggregate syntax: 
query I rowsort label-4412
SELECT DISTINCT ( + COUNT( * ) ) FROM tab0 AS cor0 WHERE NOT ( - ( + col1 ) * - 58 ) >= ( NULL ) AND NULL IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4412
SELECT DISTINCT ( + COUNT ( * ) ) FROM tab0 AS cor0 WHERE NOT ( - ( + col1 ) * - 58 ) >= ( NULL ) AND NULL IS NULL
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4413
SELECT DISTINCT + 33 * - col0 * col1 + + col0 + + - CAST( col1 AS SIGNED ) * col1 - + col0 - + 27 FROM tab0 AS cor0
----
-3229
-46683
-60759

skipif mysql # not compatible
query I rowsort label-4413
SELECT DISTINCT + 33 * - col0 * col1 + + col0 + + - CAST ( col1 AS INTEGER ) * col1 - + col0 - + 27 FROM tab0 AS cor0
----
-3229
-46683
-60759

query I rowsort
SELECT - col1 * - col1 + - ( + col2 ) AS col2 FROM tab0 AS cor0
----
-98
431
6514

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4415
SELECT col2 FROM tab2 AS cor0 WHERE CAST( NULL AS DECIMAL ) * + col1 >= NULL
----

skipif mysql # not compatible
query I rowsort label-4415
SELECT col2 FROM tab2 AS cor0 WHERE CAST ( NULL AS REAL ) * + col1 >= NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4416
SELECT ALL CAST( - COUNT( CAST( NULL AS SIGNED ) ) AS SIGNED ) FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4416
SELECT ALL CAST ( - COUNT ( CAST ( NULL AS INTEGER ) ) AS INTEGER ) FROM tab1
----
0

query II rowsort
SELECT + col0 AS col0, - col2 AS col2 FROM tab0
----
15
-47
87
-10
97
-99

query II rowsort
SELECT col0 AS col2, col2 AS col2 FROM tab0
----
15
47
87
10
97
99

query III rowsort
SELECT ALL * FROM tab0 WHERE + - 14 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4420
SELECT + SUM( DISTINCT + ( 78 ) ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-4420
SELECT + SUM ( DISTINCT + ( 78 ) ) FROM tab1
----
78

query II rowsort
SELECT col0, 7 FROM tab1
----
51
7
85
7
91
7

query I rowsort
SELECT DISTINCT 39 * - + col0 AS col0 FROM tab2
----
-1794
-2496
-2925

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT ( 81 ) IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + - 5 AS col0 FROM tab1 AS cor0 WHERE NOT 90 IS NULL
----
-5
-5
-5

query I rowsort
SELECT ALL - col0 * + col1 * 72 * - + col0 FROM tab2 cor0
----
22708224
27135000
7769952

query I rowsort
SELECT AVG ( ALL + col1 ) FROM tab1 AS cor0 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4427
SELECT + ( - COUNT( - col2 ) ) * - - COUNT( * ) AS col0 FROM tab2 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4427
SELECT + ( - COUNT ( - col2 ) ) * - - COUNT ( * ) AS col0 FROM tab2 AS cor0
----
-9

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE col2 = NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4429
SELECT 20 * + + CAST( AVG ( ALL - - col2 ) AS SIGNED ) FROM tab0 AS cor0
----
1040

skipif mysql # not compatible
query I rowsort label-4429
SELECT 20 * + + CAST ( AVG ( ALL - - col2 ) AS INTEGER ) FROM tab0 AS cor0
----
1040

query I rowsort
SELECT ALL - col0 * 50 AS col1 FROM tab0 AS cor0
----
-4350
-4850
-750

onlyif mysql # aggregate syntax: 
query I rowsort label-4431
SELECT ALL - 73 * COUNT( * ) AS col2 FROM tab0
----
-219

skipif mysql # not compatible
query I rowsort label-4431
SELECT ALL - 73 * COUNT ( * ) AS col2 FROM tab0
----
-219

onlyif mysql # DIV for integer division: 
query I rowsort label-4432
SELECT + 63 DIV col2 FROM tab0
----
0
1
6

skipif mysql # not compatible
query I rowsort label-4432
SELECT + 63 / col2 FROM tab0
----
0
1
6

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4433
SELECT DISTINCT CAST( NULL AS DECIMAL ) / - col2 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4433
SELECT DISTINCT CAST ( NULL AS REAL ) / - col2 AS col1 FROM tab2
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4434
SELECT COUNT( - col0 ) * - ( + 61 ) FROM tab1
----
-183

skipif mysql # not compatible
query I rowsort label-4434
SELECT COUNT ( - col0 ) * - ( + 61 ) FROM tab1
----
-183

onlyif mysql # DIV for integer division: 
query II rowsort label-4435
SELECT DISTINCT col0 AS col2, col2 DIV + col0 FROM tab1
----
51
1
85
0
91
0

skipif mysql # not compatible
query II rowsort label-4435
SELECT DISTINCT col0 AS col2, col2 / + col0 FROM tab1
----
51
1
85
0
91
0

query II rowsort
SELECT col0 * 67, - col1 * col0 AS col0 FROM tab1 WHERE col2 BETWEEN ( col1 ) AND 83 * col1
----
3417
-714
5695
-425
6097
-4277

onlyif mysql # aggregate syntax: 
query II rowsort label-4437
SELECT + 21, COUNT( * ) AS col0 FROM tab2
----
21
3

skipif mysql # not compatible
query II rowsort label-4437
SELECT + 21, COUNT ( * ) AS col0 FROM tab2
----
21
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - col2 col0, col1 * + col2 FROM tab2 AS cor0 WHERE NULL BETWEEN NULL AND - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4439
SELECT COUNT( * ) + + SUM( + 4 ) * - 36 FROM tab2 cor0
----
-429

skipif mysql # not compatible
query I rowsort label-4439
SELECT COUNT ( * ) + + SUM ( + 4 ) * - 36 FROM tab2 cor0
----
-429

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4440
SELECT DISTINCT + ( + ( - CAST( + + COUNT( * ) AS SIGNED ) ) ) col0 FROM tab0 cor0 WHERE NOT - 83 IS NOT NULL AND ( NULL ) <> - 5
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4440
SELECT DISTINCT + ( + ( - CAST ( + + COUNT ( * ) AS INTEGER ) ) ) col0 FROM tab0 cor0 WHERE NOT - 83 IS NOT NULL AND ( NULL ) <> - 5
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4441
SELECT ALL + - col0 + + + CAST( NULL AS SIGNED ) FROM tab2 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4441
SELECT ALL + - col0 + + + CAST ( NULL AS INTEGER ) FROM tab2 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 96 + - 68 FROM tab1 WHERE ( ( NULL ) IS NOT NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NULL BETWEEN + 13 AND NULL
----

query I rowsort
SELECT - col0 * 66 * col1 + - col0 * - - col1 FROM tab2 WHERE + 35 IS NOT NULL
----
-157182
-330176
-336675

query I rowsort
SELECT ALL ( - + 92 ) AS col2 FROM tab1
----
-92
-92
-92

query I rowsort
SELECT ALL - 0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

query I rowsort
SELECT col1 + - 50 FROM tab1 AS cor0 WHERE ( NULL ) IS NOT NULL
----

query I rowsort
SELECT ALL + + col0 + + - 2 + + col1 FROM tab2 AS cor0
----
139
140
95

onlyif mysql # DIV for integer division: 
query I rowsort label-4449
SELECT + + col0 DIV - - col1 FROM tab0 AS cor0
----
0
4
97

skipif mysql # not compatible
query I rowsort label-4449
SELECT + + col0 / - - col1 FROM tab0 AS cor0
----
0
4
97

query I rowsort
SELECT + col0 * - - 86 FROM tab2 AS cor0
----
3956
5504
6450

query I rowsort
SELECT DISTINCT - - col2 * + + col1 + + 74 FROM tab2 AS cor0
----
1247
3154
3960

query I rowsort
SELECT DISTINCT - col0 - - col0 * - ( - col2 ) FROM tab1 AS cor0
----
4845
4930
6097

query I rowsort
SELECT DISTINCT + + col2 * - 81 - col2 AS col0 FROM tab0 AS cor0 WHERE + 87 IS NULL
----

query I rowsort
SELECT ALL + - ( 83 ) - col2 FROM tab0 AS cor0
----
-130
-182
-93

query I rowsort
SELECT + col1 - + - col2 AS col1 FROM tab2 AS cor0
----
117
125
74

query I rowsort
SELECT ALL col0 - - 46 AS col1 FROM tab0 AS cor0
----
133
143
61

query I rowsort
SELECT 9 - col2 FROM tab1
----
-50
-59
-87

onlyif mysql # aggregate syntax: 
query I rowsort label-4458
SELECT ALL MIN( DISTINCT - - col2 ) FROM tab0
----
10

skipif mysql # not compatible
query I rowsort label-4458
SELECT ALL MIN ( DISTINCT - - col2 ) FROM tab0
----
10

onlyif mysql # aggregate syntax: 
query I rowsort label-4459
SELECT ALL + SUM( + col0 ) AS col2 FROM tab2
----
185

skipif mysql # not compatible
query I rowsort label-4459
SELECT ALL + SUM ( + col0 ) AS col2 FROM tab2
----
185

onlyif mysql # aggregate syntax: 
query I rowsort label-4460
SELECT + + COUNT( DISTINCT - col0 ) col1 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4460
SELECT + + COUNT ( DISTINCT - col0 ) col1 FROM tab2 AS cor0
----
3

onlyif mysql # DIV for integer division: 
query I rowsort label-4461
SELECT + ( + col1 ) DIV + col0 + col1 DIV - 81 + col1 * col1 AS col2 FROM tab2 AS cor0
----
2602
4489
5930

skipif mysql # not compatible
query I rowsort label-4461
SELECT + ( + col1 ) / + col0 + col1 / - 81 + col1 * col1 AS col2 FROM tab2 AS cor0
----
2602
4489
5930

query I rowsort
SELECT - + col0 * + + 2 FROM tab1 AS cor0
----
-102
-170
-182

query I rowsort
SELECT - - col0 + + 57 AS col1 FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE - 35 IS NOT NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query II rowsort label-4465
SELECT DISTINCT - COUNT( * ), 58 col1 FROM tab0
----
-3
58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4465
SELECT DISTINCT - COUNT ( * ), 58 col1 FROM tab0
----
-3
58

query I rowsort
SELECT ALL + col2 * - - 3 * + col0 AS col1 FROM tab1
----
14688
15045
18564

query III rowsort
SELECT * FROM tab0 WHERE NOT col0 + + + 56 - col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4468
SELECT ALL - COUNT( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

skipif mysql # not compatible
query I rowsort label-4468
SELECT ALL - COUNT ( * ) FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
-9

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4469
SELECT - CAST( NULL AS SIGNED ) * + + COUNT( * ) AS col0 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4469
SELECT - CAST ( NULL AS INTEGER ) * + + COUNT ( * ) AS col0 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4470
SELECT DISTINCT - + col0, - col0 DIV ( + col0 ) AS col2 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

skipif mysql # not compatible
query II rowsort label-4470
SELECT DISTINCT - + col0, - col0 / ( + col0 ) AS col2 FROM tab2 AS cor0
----
-46
-1
-64
-1
-75
-1

query III rowsort
SELECT ALL * FROM tab1 cor0 WHERE NOT col0 >= NULL
----

query I rowsort
SELECT ALL - - ( 7 ) AS col0 FROM tab0 AS cor0
----
7
7
7

query I rowsort
SELECT - 7 AS col0 FROM tab2 cor0
----
-7
-7
-7

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab0 AS cor0 WHERE NOT NULL < NULL
----

query II rowsort
SELECT 46, - col1 AS col0 FROM tab1 cor0
----
46
-14
46
-47
46
-5

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4476
SELECT 0 + CAST( NULL AS SIGNED ) AS col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4476
SELECT 0 + CAST ( NULL AS INTEGER ) AS col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4477
SELECT COUNT( * ) + - - CAST( NULL AS DECIMAL ) + - 89 AS col2 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4477
SELECT COUNT ( * ) + - - CAST ( NULL AS REAL ) + - 89 AS col2 FROM tab1
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4478
SELECT DISTINCT 42 DIV + MIN( - col1 ) FROM tab0
----
0

skipif mysql # not compatible
query I rowsort label-4478
SELECT DISTINCT 42 / + MIN ( - col1 ) FROM tab0
----
0

query I rowsort
SELECT DISTINCT + ( - 56 ) FROM tab2 WHERE NOT ( col1 ) IS NULL
----
-56

onlyif mysql # aggregate syntax: 
query I rowsort label-4480
SELECT ALL 13 * - - COUNT( * ) * 20 AS col1 FROM tab0
----
780

skipif mysql # not compatible
query I rowsort label-4480
SELECT ALL 13 * - - COUNT ( * ) * 20 AS col1 FROM tab0
----
780

query I rowsort
SELECT 49 + + - col0 FROM tab1
----
-2
-36
-42

query I rowsort
SELECT - col0 + + col0 + + col0 AS col1 FROM tab1
----
51
85
91

query I rowsort
SELECT 57 + - ( + col1 ) * - 58 AS col0 FROM tab0
----
115
1275
4755

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE - 58 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4485
SELECT ALL - CAST( - COUNT( * ) AS SIGNED ) + 66 * + COUNT( - col2 ) FROM tab0 cor0
----
201

skipif mysql # not compatible
query I rowsort label-4485
SELECT ALL - CAST ( - COUNT ( * ) AS INTEGER ) + 66 * + COUNT ( - col2 ) FROM tab0 cor0
----
201

query II rowsort
SELECT col2, - 11 + - col1 + - + 4 + + + ( - col1 ) AS col1 FROM tab1
----
59
-25
68
-109
96
-43

onlyif mysql # aggregate syntax: 
query I rowsort label-4487
SELECT MIN( col2 ) AS col0 FROM tab2
----
23

skipif mysql # not compatible
query I rowsort label-4487
SELECT MIN ( col2 ) AS col0 FROM tab2
----
23

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4488
SELECT col2 * + CAST( - + 1 AS SIGNED ), ( 59 ) AS col1 FROM tab1
----
-59
59
-68
59
-96
59

skipif mysql # not compatible
query II rowsort label-4488
SELECT col2 * + CAST ( - + 1 AS INTEGER ), ( 59 ) AS col1 FROM tab1
----
-59
59
-68
59
-96
59

onlyif mysql # DIV for integer division: 
query I rowsort label-4489
SELECT DISTINCT + - ( - + col0 ) + - col2 + + 51 DIV + col2 * + col2 col1 FROM tab1 AS cor0
----
-45
23
26

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4489
SELECT DISTINCT + - ( - + col0 ) + - col2 + + 51 / + col2 * + col2 col1 FROM tab1 AS cor0
----
-45
23
26

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT col0 + - 97 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 34 col1, + col1 * + 54 AS col0 FROM tab1 AS cor0
----
34
2538
34
270
34
756

onlyif mysql # CAST syntax: SIGNED type: DECIMAL type: 
query II rowsort label-4492
SELECT ( CAST( CAST( NULL AS SIGNED ) AS DECIMAL ) ) * + 63 AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-4492
SELECT ( CAST ( CAST ( NULL AS INTEGER ) AS REAL ) ) * + 63 AS col0, col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 + - + col0 col0 FROM tab2 WHERE NOT + col2 / + ( + col2 ) + + - col0 IS NULL
----
-128
-150
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT - col1 * 10 col0, - col0 AS col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4495
SELECT DISTINCT - MIN( DISTINCT col1 ) AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4495
SELECT DISTINCT - MIN ( DISTINCT col1 ) AS col2 FROM tab0
----
-1

onlyif mysql # aggregate syntax: 
query I rowsort label-4496
SELECT COUNT( * ) * + + 21 FROM tab0 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4496
SELECT COUNT ( * ) * + + 21 FROM tab0 AS cor0
----
63

query II rowsort
SELECT - - col0 * + col2, col1 AS col2 FROM tab2 AS cor0
----
1058
51
2560
77
4350
67

query I rowsort
SELECT DISTINCT 37 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
37

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4499
SELECT DISTINCT - ( CAST( 81 AS SIGNED ) ) FROM tab2, tab2 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4499
SELECT DISTINCT - ( CAST ( 81 AS INTEGER ) ) FROM tab2, tab2 AS cor0
----
-81

query I rowsort
SELECT col2 + + col1 + + col1 * - - 39 + col0 AS col2 FROM tab0 AS cor0
----
236
3302
937

query I rowsort
SELECT ALL + col0 AS col2 FROM tab0 AS cor0 WHERE NULL IS NULL
----
15
87
97

onlyif mysql # aggregate syntax: 
query I rowsort label-4502
SELECT ALL + COUNT( * ) + - COUNT( * ) FROM tab2 cor0
----
0

skipif mysql # not compatible
query I rowsort label-4502
SELECT ALL + COUNT ( * ) + - COUNT ( * ) FROM tab2 cor0
----
0

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NULL BETWEEN ( NULL ) AND + 25
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4504
SELECT DISTINCT - MIN( 90 ) * 23 + - - 99 AS col1 FROM tab2 AS cor0
----
-1971

skipif mysql # not compatible
query I rowsort label-4504
SELECT DISTINCT - MIN ( 90 ) * 23 + - - 99 AS col1 FROM tab2 AS cor0
----
-1971

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col2 - - col2 + - col2 <> NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4506
SELECT - SUM( + - col2 ) AS col2 FROM tab1 AS cor0
----
223

skipif mysql # not compatible
query I rowsort label-4506
SELECT - SUM ( + - col2 ) AS col2 FROM tab1 AS cor0
----
223

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT NULL NOT BETWEEN 57 AND - col2
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4508
SELECT DISTINCT - 14 DIV - - 90 FROM tab0 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4508
SELECT DISTINCT - 14 / - - 90 FROM tab0 AS cor0
----
0

query I rowsort
SELECT + col0 * + 24 + - col2 + + - 32 FROM tab1 AS cor0
----
1096
1949
2084

query III rowsort
SELECT * FROM tab2 WHERE col2 + - 62 IN ( + + col0 * + 73 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4511
SELECT DISTINCT - col1 DIV - - col1 AS col2 FROM tab0
----
-1

skipif mysql # not compatible
query I rowsort label-4511
SELECT DISTINCT - col1 / - - col1 AS col2 FROM tab0
----
-1

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT + - col1 * + col2 * col1 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-4513
SELECT - 52 * + - COUNT( * ) col2 FROM tab1
----
156

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4513
SELECT - 52 * + - COUNT ( * ) col2 FROM tab1
----
156

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT - 58 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT ALL col2 AS col1, 45 AS col2 FROM tab0
----
10
45
47
45
99
45

query II rowsort
SELECT DISTINCT - 69 AS col2, + col0 * + col1 FROM tab1
----
-69
425
-69
4277
-69
714

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4517
SELECT DISTINCT - + 74 * col0 + + col1 + + + CAST( - col1 AS SIGNED ) * - col0 * - col0 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
-111269
-46
-320051
-64
-382358
-75

skipif mysql # not compatible
query II rowsort label-4517
SELECT DISTINCT - + 74 * col0 + + col1 + + + CAST ( - col1 AS INTEGER ) * - col0 * - col0 AS col1, - col0 AS col2 FROM tab2 AS cor0
----
-111269
-46
-320051
-64
-382358
-75

query I rowsort
SELECT ALL 43 * + col0 + - + col2 * - + col2 + + - 26 AS col0 FROM tab1 AS cor0
----
11383
7110
8511

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4519
SELECT CAST( NULL AS SIGNED ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4519
SELECT CAST ( NULL AS INTEGER ) + + + col2 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + 90 + - - col2 FROM tab1 AS cor0
----
149
158
186

query I rowsort
SELECT DISTINCT + col0 - - col0 + + + col1 + col2 + col0 FROM tab1 cor0
----
263
319
388

query I rowsort
SELECT DISTINCT + 98 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 AS cor1
----
98

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4523
SELECT - CAST( 3 AS SIGNED ) - - - col2 AS col0 FROM tab2 AS cor0
----
-26
-43
-61

skipif mysql # not compatible
query I rowsort label-4523
SELECT - CAST ( 3 AS INTEGER ) - - - col2 AS col0 FROM tab2 AS cor0
----
-26
-43
-61

query I rowsort
SELECT ALL + + ( - + col1 ) * ( + + 13 ) AS col2 FROM tab2 AS cor0
----
-1001
-663
-871

query II rowsort
SELECT col1 - col0, 59 AS col2 FROM tab2 AS cor0
----
-8
59
13
59
5
59

query I rowsort
SELECT ALL - 49 * - ( + + col1 ) AS col0 FROM tab2 AS cor0
----
2499
3283
3773

onlyif mysql # aggregate syntax: 
query I rowsort label-4527
SELECT DISTINCT COUNT( * ) * + COUNT( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
9

skipif mysql # not compatible
query I rowsort label-4527
SELECT DISTINCT COUNT ( * ) * + COUNT ( * ) FROM tab0 AS cor0 WHERE ( NULL ) IS NULL
----
9

query II rowsort
SELECT col1 * - col0 - + 8 / col0, col1 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4529
SELECT DISTINCT MIN( 58 ) FROM tab1
----
58

skipif mysql # not compatible
query I rowsort label-4529
SELECT DISTINCT MIN ( 58 ) FROM tab1
----
58

query II rowsort
SELECT DISTINCT - 43 AS col2, + col1 AS col2 FROM tab1
----
-43
14
-43
47
-43
5

query III rowsort
SELECT ALL * FROM tab0 WHERE + 73 >= + 0 * col2
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col2 * - + col2 AS col1 FROM tab0
----
-100
-2209
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4533
SELECT - CAST( + - 45 AS SIGNED ) AS col2 FROM tab2
----
45
45
45

skipif mysql # not compatible
query I rowsort label-4533
SELECT - CAST ( + - 45 AS INTEGER ) AS col2 FROM tab2
----
45
45
45

query II rowsort
SELECT ALL col1, + col1 * - + 10 AS col2 FROM tab1
----
14
-140
47
-470
5
-50

query I rowsort
SELECT ALL + col2 * col2 + - col1 AS col1 FROM tab2 AS cor0
----
1523
3297
478

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * - col1 + - col2 col0 FROM tab2 AS cor0
----
-2624
-4547
-5969

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + 77 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4538
SELECT ALL - MAX( col2 ) AS col2 FROM tab1 AS cor0
----
-96

skipif mysql # not compatible
query I rowsort label-4538
SELECT ALL - MAX ( col2 ) AS col2 FROM tab1 AS cor0
----
-96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4539
SELECT - CAST( NULL AS SIGNED ) FROM tab2 WHERE col2 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4539
SELECT - CAST ( NULL AS INTEGER ) FROM tab2 WHERE col2 IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 23 col2 FROM tab2
----
-23
-23
-23

onlyif mysql # DIV for integer division: 
query I rowsort label-4541
SELECT + col1 DIV - col0 + col1 AS col0 FROM tab0
----
1
21
76

skipif mysql # not compatible
query I rowsort label-4541
SELECT + col1 / - col0 + col1 AS col0 FROM tab0
----
1
21
76

onlyif mysql # DIV for integer division: 
query I rowsort label-4542
SELECT - col1 DIV col2 + col2 FROM tab1
----
59
68
96

skipif mysql # not compatible
query I rowsort label-4542
SELECT - col1 / col2 + col2 FROM tab1
----
59
68
96

query I rowsort
SELECT + 66 + + col0 AS col2 FROM tab2
----
112
130
141

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT 15 + - col1 IN ( ( ( + 84 ) ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT * FROM tab2 WHERE ( NULL ) >= + col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 96 + + col2 col0 FROM tab0
----
-49
-86
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4547
SELECT DISTINCT - COUNT( * ) + + COUNT( col0 ) * + 38 FROM tab0
----
111

skipif mysql # not compatible
query I rowsort label-4547
SELECT DISTINCT - COUNT ( * ) + + COUNT ( col0 ) * + 38 FROM tab0
----
111

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4548
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 38 AND col2 + CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query III rowsort label-4548
SELECT * FROM tab0 WHERE NOT NULL BETWEEN - 38 AND col2 + CAST ( NULL AS INTEGER )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4549
SELECT 78 + SUM( 92 ) AS col1 FROM tab2
----
354

skipif mysql # not compatible
query I rowsort label-4549
SELECT 78 + SUM ( 92 ) AS col1 FROM tab2
----
354

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - 54 BETWEEN NULL AND col0
----

query I rowsort
SELECT DISTINCT col0 * - 16 FROM tab2
----
-1024
-1200
-736

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4552
SELECT * FROM tab2 WHERE NOT - col1 * CAST( NULL AS SIGNED ) BETWEEN 58 * + col0 AND NULL
----

skipif mysql # not compatible
query III rowsort label-4552
SELECT * FROM tab2 WHERE NOT - col1 * CAST ( NULL AS INTEGER ) BETWEEN 58 * + col0 AND NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4553
SELECT CAST( NULL AS SIGNED ) - + MAX( ALL - col2 + 17 ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4553
SELECT CAST ( NULL AS INTEGER ) - + MAX ( ALL - col2 + 17 ) AS col1 FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4554
SELECT COUNT( * ) * 14 + + MAX( - col2 + col1 ) AS col0 FROM tab0
----
76

skipif mysql # not compatible
query I rowsort label-4554
SELECT COUNT ( * ) * 14 + + MAX ( - col2 + col1 ) AS col0 FROM tab0
----
76

query I rowsort
SELECT ALL col1 * col1 AS col1 FROM tab2 WHERE col2 <> - ( 62 )
----
2601
4489
5929

query I rowsort
SELECT ALL - col2 AS col1 FROM tab1 WHERE col2 IS NOT NULL
----
-59
-68
-96

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL BETWEEN + col2 AND - col0 * + col0 + 33
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4558
SELECT 1 + + MIN( ALL + 91 ) / - COUNT( * ) FROM tab2 WHERE - CAST( CAST( NULL AS SIGNED ) AS SIGNED ) IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-4558
SELECT 1 + + MIN ( ALL + 91 ) / - COUNT ( * ) FROM tab2 WHERE - CAST ( CAST ( NULL AS INTEGER ) AS INTEGER ) IS NOT NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4559
SELECT DISTINCT + col2 * + 8 + - 80 DIV + col2 FROM tab2
----
181
318
463

skipif mysql # not compatible
query I rowsort label-4559
SELECT DISTINCT + col2 * + 8 + - 80 / + col2 FROM tab2
----
181
318
463

query III rowsort
SELECT ALL * FROM tab2 WHERE ( col0 ) IN ( col2 * + col0 )
----

query I rowsort
SELECT - col0 * + 56 AS col2 FROM tab2
----
-2576
-3584
-4200

onlyif mysql # aggregate syntax: 
query I rowsort label-4562
SELECT 24 * - ( MIN( DISTINCT - col1 ) ) FROM tab1
----
1128

skipif mysql # not compatible
query I rowsort label-4562
SELECT 24 * - ( MIN ( DISTINCT - col1 ) ) FROM tab1
----
1128

query I rowsort
SELECT + col0 * 9 AS col1 FROM tab2
----
414
576
675

query I rowsort
SELECT 73 AS col1 FROM tab0 WHERE NOT - col2 = NULL
----

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 WHERE NOT NULL <> - col2
----

query I rowsort
SELECT DISTINCT 55 FROM tab0 WHERE NOT - ( + col2 ) > ( col2 )
----
55

query I rowsort
SELECT DISTINCT - 25 * col0 FROM tab0 AS cor0
----
-2175
-2425
-375

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 99 col1 FROM tab1 AS cor0 WHERE ( col2 ) IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4569
SELECT - CAST( + CAST( col1 AS SIGNED ) AS SIGNED ) AS col0 FROM tab2 cor0 WHERE NULL IN ( + col1 )
----

skipif mysql # not compatible
query I rowsort label-4569
SELECT - CAST ( + CAST ( col1 AS INTEGER ) AS INTEGER ) AS col0 FROM tab2 cor0 WHERE NULL IN ( + col1 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col2 - col1 col1 FROM tab1
----
21
54
82

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4571
SELECT + 12 * - COUNT( * ) - CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4571
SELECT + 12 * - COUNT ( * ) - CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 * 14 col2 FROM tab1 cor0
----
-1344
-826
-952

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT ( NULL ) BETWEEN - col1 AND NULL
----

query I rowsort
SELECT 72 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4575
SELECT DISTINCT - 92 DIV ( 53 ) AS col2 FROM tab0 cor0
----
-1

skipif mysql # not compatible
query I rowsort label-4575
SELECT DISTINCT - 92 / ( 53 ) AS col2 FROM tab0 cor0
----
-1

query I rowsort
SELECT ALL + 77 AS col0 FROM tab1 AS cor0 WHERE ( NULL ) IS NULL
----
77
77
77

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4577
SELECT ALL - + COUNT( * ) DIV - 43 FROM tab2 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4577
SELECT ALL - + COUNT ( * ) / - 43 FROM tab2 AS cor0
----
0

query I rowsort
SELECT + - 88 * + col1 FROM tab0 AS cor0
----
-1848
-7128
-88

onlyif mysql # aggregate syntax: 
query I rowsort label-4579
SELECT + MIN( + 70 ) AS col0 FROM tab0 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-4579
SELECT + MIN ( + 70 ) AS col0 FROM tab0 AS cor0
----
70

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - 73 + + col0 IS NOT NULL
----

query I rowsort
SELECT ALL + col0 * col0 * + col1 FROM tab1
----
36125
36414
389207

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4582
SELECT 63 DIV + - COUNT( * ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-4582
SELECT 63 / + - COUNT ( * ) AS col0 FROM tab0
----
-21

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE ( + 34 ) IS NULL OR ( - col0 + - 93 * 18 ) BETWEEN NULL AND 56
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col0 col1 FROM tab1 WHERE NULL BETWEEN 80 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4585
SELECT - MAX( - 7 ) AS col0 FROM tab2
----
7

skipif mysql # not compatible
query I rowsort label-4585
SELECT - MAX ( - 7 ) AS col0 FROM tab2
----
7

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE col0 NOT IN ( - col2 / + ( + col2 * 13 ) )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL 93 * col1 * col1 AS col0 FROM tab1
----
18228
205437
2325

query III rowsort
SELECT ALL * FROM tab0 WHERE ( - ( ( col2 ) ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4589
SELECT ( + MIN( col1 ) ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4589
SELECT ( + MIN ( col1 ) ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4590
SELECT - COUNT( * ) + AVG ( ALL + col1 + 76 * col2 ) * COUNT( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN + ( col2 ) AND - col2
----
NULL

skipif mysql # not compatible
query I rowsort label-4590
SELECT - COUNT ( * ) + AVG ( ALL + col1 + 76 * col2 ) * COUNT ( * ) AS col1 FROM tab1 WHERE NOT NULL BETWEEN + ( col2 ) AND - col2
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT + 44 + + 42 NOT IN ( - 77 )
----

query III rowsort
SELECT * FROM tab0 WHERE NOT - col2 IN ( + col2 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT col2 AS col0 FROM tab1 AS cor0 WHERE NOT col2 IS NULL
----
59
68
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4594
SELECT ALL + ( ( + COUNT( * ) ) ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4594
SELECT ALL + ( ( + COUNT ( * ) ) ) FROM tab1 AS cor0
----
3

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4595
SELECT ALL - COUNT( - - col2 ) DIV + MAX( DISTINCT col1 ) FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-4595
SELECT ALL - COUNT ( - - col2 ) / + MAX ( DISTINCT col1 ) FROM tab1 AS cor0
----
0

query I rowsort
SELECT col2 * + + col1 + col1 AS col1 FROM tab2 AS cor0
----
1224
3157
3953

query I rowsort
SELECT 86 * + + 70 AS col1 FROM tab0
----
6020
6020
6020

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL NOT BETWEEN 40 AND ( col2 )
----

query I rowsort
SELECT ALL 89 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 5c8428e9f1e7de3d09cb0814b4cc1743

onlyif mysql # aggregate syntax: 
query I rowsort label-4600
SELECT - COUNT( - 12 ) FROM tab2, tab1 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-4600
SELECT - COUNT ( - 12 ) FROM tab2, tab1 AS cor0
----
-9

query II rowsort
SELECT ALL col0 AS col1, + 53 AS col0 FROM tab1
----
51
53
85
53
91
53

query III rowsort
SELECT * FROM tab2 WHERE col1 - - 74 * col0 = ( - col0 )
----

query I rowsort
SELECT - 10 FROM tab2 WHERE - + col0 NOT BETWEEN ( col1 * col1 ) AND NULL
----
-10
-10
-10

query I rowsort
SELECT col1 FROM tab1 WHERE - 64 * 23 IS NOT NULL
----
14
47
5

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE - col0 / col0 + + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT col2 * - - col1 + - col0 FROM tab2 AS cor0
----
1127
3016
3811

onlyif mysql # aggregate syntax: 
query I rowsort label-4607
SELECT - - MIN( DISTINCT - - col2 ) FROM tab0 AS cor0
----
10

skipif mysql # not compatible
query I rowsort label-4607
SELECT - - MIN ( DISTINCT - - col2 ) FROM tab0 AS cor0
----
10

query II rowsort
SELECT - 12, 66 AS col0 FROM tab2 AS cor0
----
-12
66
-12
66
-12
66

onlyif mysql # aggregate syntax: 
query I rowsort label-4609
SELECT ALL + COUNT( * ) * 61 FROM tab0 AS cor0 WHERE ( NULL ) >= + + col0
----
0

skipif mysql # not compatible
query I rowsort label-4609
SELECT ALL + COUNT ( * ) * 61 FROM tab0 AS cor0 WHERE ( NULL ) >= + + col0
----
0

query I rowsort
SELECT DISTINCT col1 + - col0 * - col1 * col1 AS col0 FROM tab0 AS cor0
----
38388
98
98496

query I rowsort
SELECT + + 72 FROM tab2 cor0
----
72
72
72

onlyif mysql # DIV for integer division: 
query I rowsort label-4612
SELECT DISTINCT + - 42 * 37 DIV - col0 + col2 + - 38 FROM tab0 AS cor0
----
-11
112
77

skipif mysql # not compatible
query I rowsort label-4612
SELECT DISTINCT + - 42 * 37 / - col0 + col2 + - 38 FROM tab0 AS cor0
----
-11
112
77

query II rowsort
SELECT - col2 AS col1, col2 * col1 AS col0 FROM tab0 AS cor0
----
-10
210
-47
3807
-99
99

query I rowsort
SELECT - col1 * + ( + - col0 ) FROM tab2
----
2346
4928
5025

onlyif mysql # aggregate syntax: 
query I rowsort label-4615
SELECT DISTINCT + COUNT( * ) - 35 FROM tab1
----
-32

skipif mysql # not compatible
query I rowsort label-4615
SELECT DISTINCT + COUNT ( * ) - 35 FROM tab1
----
-32

query I rowsort
SELECT + 50 + - col2 + 76 * - 58 - - 86 AS col2 FROM tab2
----
-4295
-4312
-4330

query I rowsort
SELECT col2 FROM tab2 WHERE NOT ( - col1 ) IS NULL AND ( NULL ) IS NULL
----
23
40
58

query I rowsort
SELECT + col2 FROM tab1 WHERE - 7 NOT IN ( 54 )
----
59
68
96

query I rowsort
SELECT 23 + col2 * + col2 * - + 46 AS col0 FROM tab2 cor0
----
-154721
-24311
-73577

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4620
SELECT + COUNT( * ) DIV 33 + 63 AS col2 FROM tab1 AS cor0
----
63

skipif mysql # not compatible
query I rowsort label-4620
SELECT + COUNT ( * ) / 33 + 63 AS col2 FROM tab1 AS cor0
----
63

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4621
SELECT - CAST( + - 67 AS SIGNED ) + + - col2 AS col0 FROM tab1 AS cor0
----
-1
-29
8

skipif mysql # not compatible
query I rowsort label-4621
SELECT - CAST ( + - 67 AS INTEGER ) + + - col2 AS col0 FROM tab1 AS cor0
----
-1
-29
8

query I rowsort
SELECT ALL col1 + 83 FROM tab2 AS cor0
----
134
150
160

onlyif mysql # aggregate syntax: 
query I rowsort label-4623
SELECT + MIN( DISTINCT + - col1 ) FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-4623
SELECT + MIN ( DISTINCT + - col1 ) FROM tab1
----
-47

query III rowsort
SELECT * FROM tab0 WHERE NOT + + 93 <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4625
SELECT DISTINCT + ( - COUNT( * ) ) * - - COUNT( * ) AS col2 FROM tab1
----
-9

skipif mysql # not compatible
query I rowsort label-4625
SELECT DISTINCT + ( - COUNT ( * ) ) * - - COUNT ( * ) AS col2 FROM tab1
----
-9

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT col1 + - 64 BETWEEN col0 AND ( ( 9 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4627
SELECT DISTINCT - col2 AS col2, + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

skipif mysql # not compatible
query II rowsort label-4627
SELECT DISTINCT - col2 AS col2, + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
-59
NULL
-68
NULL
-96
NULL

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col1 NOT IN ( + col1 * - - col0 - 53 )
----

query I rowsort
SELECT ALL - + 86 AS col1 FROM tab1 AS cor0
----
-86
-86
-86

onlyif mysql # aggregate syntax: 
query I rowsort label-4630
SELECT ALL + COUNT( * ) + + 50 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
50

skipif mysql # not compatible
query I rowsort label-4630
SELECT ALL + COUNT ( * ) + + 50 FROM tab1 cor0 WHERE NOT col1 IS NOT NULL
----
50

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4631
SELECT - AVG ( DISTINCT - col2 ) * + CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4631
SELECT - AVG ( DISTINCT - col2 ) * + CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL 23 * col1 col1 FROM tab2 cor0 WHERE NOT ( NULL ) < + col2 + + + col2 * - 95
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4633
SELECT ALL + + COUNT( * ) FROM tab0 WHERE col0 * - - col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4633
SELECT ALL + + COUNT ( * ) FROM tab0 WHERE col0 * - - col2 IS NULL
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4634
SELECT ALL - COUNT( * ) * 2 AS col1 FROM tab0
----
-6

skipif mysql # not compatible
query I rowsort label-4634
SELECT ALL - COUNT ( * ) * 2 AS col1 FROM tab0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4635
SELECT DISTINCT + CAST( NULL AS SIGNED ) / - CAST( NULL AS SIGNED ) * - col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-4635
SELECT DISTINCT + CAST ( NULL AS INTEGER ) / - CAST ( NULL AS INTEGER ) * - col1 FROM tab2
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4636
SELECT ALL CAST( NULL AS SIGNED ) - - col0 FROM tab2 WHERE ( NOT + 78 NOT IN ( - col1 + col1 + col1 ) )
----

skipif mysql # not compatible
query I rowsort label-4636
SELECT ALL CAST ( NULL AS INTEGER ) - - col0 FROM tab2 WHERE ( NOT + 78 NOT IN ( - col1 + col1 + col1 ) )
----

query I rowsort
SELECT DISTINCT col1 * + 15 AS col1 FROM tab2
----
1005
1155
765

onlyif mysql # aggregate syntax: 
query I rowsort label-4638
SELECT COUNT( * ) * - COUNT( * ) AS col0 FROM tab1, tab1 AS cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4638
SELECT COUNT ( * ) * - COUNT ( * ) AS col0 FROM tab1, tab1 AS cor0
----
-81

query I rowsort
SELECT ALL + col2 + + + 49 AS col2 FROM tab1 AS cor0 WHERE NULL IN ( col2, + col2 )
----

query II rowsort
SELECT DISTINCT 41, col0 FROM tab0 AS cor0
----
41
15
41
87
41
97

query I rowsort
SELECT ( - + col0 ) * - col2 + col1 FROM tab0
----
786
891
9604

query II rowsort
SELECT ( col1 ) AS col0, col2 - + col1 FROM tab0
----
1
98
21
-11
81
-34

onlyif mysql # aggregate syntax: 
query I rowsort label-4643
SELECT + - 3 * - + COUNT( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

skipif mysql # not compatible
query I rowsort label-4643
SELECT + - 3 * - + COUNT ( * ) AS col0 FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
27

query I rowsort
SELECT col1 + - - 75 + + + col1 FROM tab2 AS cor0
----
177
209
229

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4645
SELECT - col0 FROM tab0 cor0 WHERE col2 - + - col0 * col0 + + 11 + + CAST( NULL AS SIGNED ) IS NULL
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4645
SELECT - col0 FROM tab0 cor0 WHERE col2 - + - col0 * col0 + + 11 + + CAST ( NULL AS INTEGER ) IS NULL
----
-15
-87
-97

query I rowsort
SELECT DISTINCT 88 + - + col0 + + col1 * + col1 + - + col2 * - ( + 2 ) * 8 FROM tab0 AS cor0
----
1576
602
7386

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 IN ( col2 )
----

query I rowsort
SELECT 23 + - + col2 FROM tab0
----
-24
-76
13

query III rowsort
SELECT * FROM tab1 WHERE + ( col0 ) * - 31 <> 77 + + 38 + 17
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4650
SELECT + MIN( + 69 ) AS col2 FROM tab2
----
69

skipif mysql # not compatible
query I rowsort label-4650
SELECT + MIN ( + 69 ) AS col2 FROM tab2
----
69

query I rowsort
SELECT ALL - ( + 45 ) FROM tab1
----
-45
-45
-45

query I rowsort
SELECT ( + 26 ) FROM tab2
----
26
26
26

onlyif mysql # aggregate syntax: 
query I rowsort label-4653
SELECT DISTINCT SUM( DISTINCT - + col0 ) AS col2 FROM tab1
----
-227

skipif mysql # not compatible
query I rowsort label-4653
SELECT DISTINCT SUM ( DISTINCT - + col0 ) AS col2 FROM tab1
----
-227

query I rowsort
SELECT + col1 AS col1 FROM tab2 WHERE NULL IN ( col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4655
SELECT + col2 * - - CAST( - 89 AS SIGNED ) * 20 FROM tab0
----
-176220
-17800
-83660

skipif mysql # not compatible
query I rowsort label-4655
SELECT + col2 * - - CAST ( - 89 AS INTEGER ) * 20 FROM tab0
----
-176220
-17800
-83660

query III rowsort
SELECT * FROM tab0 WHERE col1 * + 46 BETWEEN NULL AND + - 99 * + 20
----

query I rowsort
SELECT 61 * col0 AS col2 FROM tab2
----
2806
3904
4575

onlyif mysql # aggregate syntax: 
query I rowsort label-4658
SELECT COUNT( * ) * - - 17 AS col0 FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-4658
SELECT COUNT ( * ) * - - 17 AS col0 FROM tab2
----
51

query I rowsort
SELECT - - 80 * 91 FROM tab1 WHERE NOT NULL < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4660
SELECT - COUNT( * ) + 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
21

skipif mysql # not compatible
query I rowsort label-4660
SELECT - COUNT ( * ) + 30 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
21

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4661
SELECT + + CAST( NULL AS DECIMAL ) AS col1 FROM tab2 WHERE NOT + 56 + + 93 IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-4661
SELECT + + CAST ( NULL AS REAL ) AS col1 FROM tab2 WHERE NOT + 56 + + 93 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4662
SELECT COUNT( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4662
SELECT COUNT ( * ) col0 FROM ( tab1 AS cor0 CROSS JOIN tab1 AS cor1 )
----
9

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL ( - 89 ) col2, col0 AS col1 FROM tab2 AS cor0
----
-89
46
-89
64
-89
75

query I rowsort
SELECT - 80 * + 97 + + 38 + - + col2 + - 87 FROM tab1 AS cor0
----
-7868
-7877
-7905

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT 41 * col1 IS NOT NULL
----

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - 83 ) IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4667
SELECT SUM( ALL - - ( + - col2 ) ) FROM tab0 AS cor0
----
-156

skipif mysql # not compatible
query I rowsort label-4667
SELECT SUM ( ALL - - ( + - col2 ) ) FROM tab0 AS cor0
----
-156

onlyif mysql # aggregate syntax: 
query II rowsort label-4668
SELECT DISTINCT + 28 AS col2, COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
28
0

skipif mysql # not compatible
query II rowsort label-4668
SELECT DISTINCT + 28 AS col2, COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL >= NULL
----
28
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4669
SELECT DISTINCT COUNT( * ) * ( + - ( - SUM( DISTINCT + - col1 ) ) ) FROM tab2 AS cor0
----
-585

skipif mysql # not compatible
query I rowsort label-4669
SELECT DISTINCT COUNT ( * ) * ( + - ( - SUM ( DISTINCT + - col1 ) ) ) FROM tab2 AS cor0
----
-585

onlyif mysql # aggregate syntax: 
query I rowsort label-4670
SELECT ALL COUNT( * ) * - 92 AS col0 FROM tab2
----
-276

skipif mysql # not compatible
query I rowsort label-4670
SELECT ALL COUNT ( * ) * - 92 AS col0 FROM tab2
----
-276

onlyif mysql # aggregate syntax: 
query I rowsort label-4671
SELECT - 99 * COUNT( * ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-4671
SELECT - 99 * COUNT ( * ) FROM tab2
----
-297

onlyif mysql # DIV for integer division: 
query I rowsort label-4672
SELECT DISTINCT - 92 DIV + col2 FROM tab1
----
-1
0

skipif mysql # not compatible
query I rowsort label-4672
SELECT DISTINCT - 92 / + col2 FROM tab1
----
-1
0

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4673
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST( NULL AS DECIMAL ) )
----

skipif mysql # not compatible
query III rowsort label-4673
SELECT ALL * FROM tab1 WHERE NULL NOT IN ( + CAST ( NULL AS REAL ) )
----

query I rowsort
SELECT ALL + ( col2 ) * + + 34 FROM tab2
----
1360
1972
782

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4675
SELECT DISTINCT CAST( NULL AS SIGNED ) * MAX( ALL 32 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4675
SELECT DISTINCT CAST ( NULL AS INTEGER ) * MAX ( ALL 32 ) FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4676
SELECT 70 DIV col2 FROM tab0
----
0
1
7

skipif mysql # not compatible
query I rowsort label-4676
SELECT 70 / col2 FROM tab0
----
0
1
7

query II rowsort
SELECT DISTINCT col0, - col1 AS col1 FROM tab2
----
46
-51
64
-77
75
-67

query III rowsort
SELECT ALL * FROM tab2 WHERE 75 * + + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4679
SELECT ALL 12 * - SUM( DISTINCT + 78 ) col0 FROM tab0
----
-936

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4679
SELECT ALL 12 * - SUM ( DISTINCT + 78 ) col0 FROM tab0
----
-936

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4680
SELECT - col0, + 49 * + col0 * + CAST( + - col2 AS SIGNED ) AS col2 FROM tab0 AS cor0
----
-15
-34545
-87
-42630
-97
-470547

skipif mysql # not compatible
query II rowsort label-4680
SELECT - col0, + 49 * + col0 * + CAST ( + - col2 AS INTEGER ) AS col2 FROM tab0 AS cor0
----
-15
-34545
-87
-42630
-97
-470547

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - ( - col1 ) IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4682
SELECT - col0 + - col1 + + col2 DIV - col2 AS col1 FROM tab0 AS cor0
----
-109
-97
-99

skipif mysql # not compatible
query I rowsort label-4682
SELECT - col0 + - col1 + + col2 / - col2 AS col1 FROM tab0 AS cor0
----
-109
-97
-99

query I rowsort
SELECT - ( + ( col0 ) ) AS col0 FROM tab1
----
-51
-85
-91

onlyif mysql # aggregate syntax: 
query I rowsort label-4684
SELECT COUNT( - ( 83 ) ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4684
SELECT COUNT ( - ( 83 ) ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - + 91 + - col1 FROM tab0 AS cor0
----
-112
-172
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( 71 ) col1 FROM tab1 AS cor0
----
71
71
71

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, - col0 col1 FROM tab1 AS cor0
----
59
-85
68
-91
96
-51

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE 34 / col1 NOT BETWEEN NULL AND ( + col2 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4689
SELECT 10 - MIN( DISTINCT col2 ) + MAX( - - col2 ) FROM tab2 AS cor0
----
45

skipif mysql # not compatible
query I rowsort label-4689
SELECT 10 - MIN ( DISTINCT col2 ) + MAX ( - - col2 ) FROM tab2 AS cor0
----
45

onlyif mysql # aggregate syntax: 
query I rowsort label-4690
SELECT ALL COUNT( * ) + + ( - - COUNT( - + col0 ) ) FROM tab2 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-4690
SELECT ALL COUNT ( * ) + + ( - - COUNT ( - + col0 ) ) FROM tab2 AS cor0
----
6

query II rowsort
SELECT ALL - 64 + - + 9, col1 FROM tab1
----
-73
14
-73
47
-73
5

query III rowsort
SELECT * FROM tab1 WHERE + 23 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query II rowsort
SELECT col1 - + + col2 + + - col0 * + col1 + - 7 * - 26 * + + col1 AS col0, col1 AS col2 FROM tab0
----
-13
1
13561
81
2006
21

query I rowsort
SELECT ALL - ( + + 94 ) - + col0 FROM tab2
----
-140
-158
-169

query I rowsort
SELECT ALL ( 33 ) AS col0 FROM tab2 AS cor0
----
33
33
33

onlyif mysql # aggregate syntax: 
query I rowsort label-4696
SELECT - COUNT( * ) * 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-315

skipif mysql # not compatible
query I rowsort label-4696
SELECT - COUNT ( * ) * 35 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-315

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4697
SELECT + CAST( - + COUNT( * ) AS SIGNED ) AS col1 FROM tab0
----
-3

skipif mysql # not compatible
query I rowsort label-4697
SELECT + CAST ( - + COUNT ( * ) AS INTEGER ) AS col1 FROM tab0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-4698
SELECT ALL 65 - + SUM( ALL + - 59 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
596

skipif mysql # not compatible
query I rowsort label-4698
SELECT ALL 65 - + SUM ( ALL + - 59 ) FROM tab2 AS cor0 CROSS JOIN tab0 AS cor1
----
596

onlyif mysql # aggregate syntax: 
query I rowsort label-4699
SELECT ALL + SUM( ALL + 28 ) FROM tab1 AS cor0
----
84

skipif mysql # not compatible
query I rowsort label-4699
SELECT ALL + SUM ( ALL + 28 ) FROM tab1 AS cor0
----
84

query I rowsort
SELECT col2 * 80 - - 80 FROM tab1 AS cor0
----
4800
5520
7760

query I rowsort
SELECT 90 AS col2 FROM tab1 cor0
----
90
90
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 * - - col0 * col1 col1 FROM tab1 AS cor0
----
25075
290836
68544

onlyif mysql # aggregate syntax: 
query I rowsort label-4703
SELECT ALL ( - - COUNT( * ) ) AS col2 FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4703
SELECT ALL ( - - COUNT ( * ) ) AS col2 FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT col0 + - 17 AS col0 FROM tab0 AS cor0 WHERE NOT ( col0 ) IS NULL
----
-2
70
80

query II rowsort
SELECT DISTINCT - - 43, + 65 AS col1 FROM tab0 cor0
----
43
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4706
SELECT ALL + + COUNT( DISTINCT + col0 ) * + + COUNT( * ) AS col2 FROM tab1 AS cor0
----
9

skipif mysql # not compatible
query I rowsort label-4706
SELECT ALL + + COUNT ( DISTINCT + col0 ) * + + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + + col0 IN ( - 57 + + - 83 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT 91 + 92 FROM tab2
----
183
183
183

query II rowsort
SELECT col0 * - - col1, col0 + col0 FROM tab1 WHERE NOT NULL IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4710
SELECT 0 * + + ( - col1 ) FROM tab0 WHERE + - CAST( col0 AS SIGNED ) >= NULL
----

skipif mysql # not compatible
query I rowsort label-4710
SELECT 0 * + + ( - col1 ) FROM tab0 WHERE + - CAST ( col0 AS INTEGER ) >= NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4711
SELECT CAST( NULL AS SIGNED ) + + + 89 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4711
SELECT CAST ( NULL AS INTEGER ) + + + 89 col0 FROM tab0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query II rowsort label-4712
SELECT DISTINCT - 30 + col2 + col2 DIV + - col1 AS col2, col1 AS col2 FROM tab2
----
-7
51
10
77
28
67

skipif mysql # not compatible
query II rowsort label-4712
SELECT DISTINCT - 30 + col2 + col2 / + - col1 AS col2, col1 AS col2 FROM tab2
----
-7
51
10
77
28
67

query I rowsort
SELECT ALL - - col2 + + - col1 AS col0 FROM tab2 AS cor0 WHERE NULL = col2 + - col2
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col2 col2, 40 AS col2 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4715
SELECT ALL MIN( DISTINCT 66 ) FROM tab0
----
66

skipif mysql # not compatible
query I rowsort label-4715
SELECT ALL MIN ( DISTINCT 66 ) FROM tab0
----
66

query I rowsort
SELECT 36 - - col0 AS col2 FROM tab0
----
123
133
51

onlyif mysql # aggregate syntax: 
query II rowsort label-4717
SELECT + 29 AS col0, COUNT( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
29
9

skipif mysql # not compatible
query II rowsort label-4717
SELECT + 29 AS col0, COUNT ( * ) AS col0 FROM tab1 AS cor0 CROSS JOIN tab2 cor1
----
29
9

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NULL IN ( col0, - col2, col0 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col2 + - 51 col2 FROM tab2 AS cor0
----
-11
-28
7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE + 16 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + col1 + + - 5 FROM tab1 AS cor0
----
0
42
9

query I rowsort
SELECT + - 19 AS col0 FROM tab0 AS cor0
----
-19
-19
-19

query I rowsort
SELECT - col2 * ( col2 ) AS col0 FROM tab0 WHERE - ( col0 ) IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4724
SELECT + 80 * + MIN( ALL - col0 ) AS col1 FROM tab1
----
-7280

skipif mysql # not compatible
query I rowsort label-4724
SELECT + 80 * + MIN ( ALL - col0 ) AS col1 FROM tab1
----
-7280

query I rowsort
SELECT + col1 * - 41 * 62 FROM tab1
----
-119474
-12710
-35588

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4726
SELECT COUNT( * ) * - COUNT( * ) DIV + + 39 AS col1 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-4726
SELECT COUNT ( * ) * - COUNT ( * ) / + + 39 AS col1 FROM tab1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4727
SELECT ALL + 3 * + + COUNT( * ) FROM tab0
----
9

skipif mysql # not compatible
query I rowsort label-4727
SELECT ALL + 3 * + + COUNT ( * ) FROM tab0
----
9

onlyif mysql # aggregate syntax: 
query II rowsort label-4728
SELECT ALL 36, SUM( - col1 ) col0 FROM tab1
----
36
-66

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4728
SELECT ALL 36, SUM ( - col1 ) col0 FROM tab1
----
36
-66

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-4729
SELECT - + COUNT( * ) AS col1 FROM tab0 WHERE NOT CAST( 63 AS DECIMAL ) >= NULL
----
0

skipif mysql # not compatible
query I rowsort label-4729
SELECT - + COUNT ( * ) AS col1 FROM tab0 WHERE NOT CAST ( 63 AS REAL ) >= NULL
----
0

query I rowsort
SELECT DISTINCT col0 * + + 58 AS col1 FROM tab0 AS cor0
----
5046
5626
870

query I rowsort
SELECT DISTINCT col1 + col0 AS col0 FROM tab2 AS cor0 WHERE NOT col2 IS NOT NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + 75 col2 FROM tab0 cor0
----
75
75
75

onlyif mysql # DIV for integer division: 
query I rowsort label-4733
SELECT 99 DIV col2 AS col2 FROM tab2
----
1
2
4

skipif mysql # not compatible
query I rowsort label-4733
SELECT 99 / col2 AS col2 FROM tab2
----
1
2
4

query I rowsort
SELECT DISTINCT + ( - 93 ) * 47 * col1 * + 97 FROM tab1
----
-19927389
-2119935
-5935818

query I rowsort
SELECT DISTINCT ( col1 ) * - col2 + + col0 + - + col1 AS col2 FROM tab1
----
-1307
-215
-3152

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4736
SELECT DISTINCT CAST( 65 AS SIGNED ) AS col1 FROM tab0
----
65

skipif mysql # not compatible
query I rowsort label-4736
SELECT DISTINCT CAST ( 65 AS INTEGER ) AS col1 FROM tab0
----
65

onlyif mysql # aggregate syntax: 
query I rowsort label-4737
SELECT DISTINCT - - COUNT( * ) * - + 59 AS col0 FROM tab1 AS cor0 WHERE 78 * col2 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4737
SELECT DISTINCT - - COUNT ( * ) * - + 59 AS col0 FROM tab1 AS cor0 WHERE 78 * col2 IS NULL
----
0

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT 31 IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4739
SELECT DISTINCT + COUNT( * ) * - + 32 * ( - CAST( - 20 AS SIGNED ) ) AS col0 FROM tab0 AS cor0
----
-1920

skipif mysql # not compatible
query I rowsort label-4739
SELECT DISTINCT + COUNT ( * ) * - + 32 * ( - CAST ( - 20 AS INTEGER ) ) AS col0 FROM tab0 AS cor0
----
-1920

query I rowsort
SELECT ALL + + 38 + - ( - col2 ) AS col0 FROM tab0 AS cor0
----
137
48
85

onlyif mysql # aggregate syntax: 
query I rowsort label-4741
SELECT 77 * - - MAX( + 80 ) FROM tab1 AS cor0
----
6160

skipif mysql # not compatible
query I rowsort label-4741
SELECT 77 * - - MAX ( + 80 ) FROM tab1 AS cor0
----
6160

query III rowsort
SELECT ALL * FROM tab2 cor0 WHERE NOT 59 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4743
SELECT 78 * + 96 * SUM( ALL - col2 ) FROM tab2 AS cor0
----
-906048

skipif mysql # not compatible
query I rowsort label-4743
SELECT 78 * + 96 * SUM ( ALL - col2 ) FROM tab2 AS cor0
----
-906048

onlyif mysql # aggregate syntax: 
query I rowsort label-4744
SELECT ALL SUM( + - 76 ) FROM tab2 AS cor0
----
-228

skipif mysql # not compatible
query I rowsort label-4744
SELECT ALL SUM ( + - 76 ) FROM tab2 AS cor0
----
-228

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4745
SELECT ALL - 55, - col2 * + + CAST( NULL AS SIGNED ) + + 2 AS col1 FROM tab0
----
-55
NULL
-55
NULL
-55
NULL

skipif mysql # not compatible
query II rowsort label-4745
SELECT ALL - 55, - col2 * + + CAST ( NULL AS INTEGER ) + + 2 AS col1 FROM tab0
----
-55
NULL
-55
NULL
-55
NULL

query I rowsort
SELECT - col2 FROM tab2 WHERE NULL >= 88
----

query I rowsort
SELECT ALL 71 * + + col1 + col2 + 8 AS col1 FROM tab0
----
1509
178
5806

onlyif mysql # aggregate syntax: 
query I rowsort label-4748
SELECT - - COUNT( * ) + + 13 AS col2 FROM tab2 AS cor0
----
16

skipif mysql # not compatible
query I rowsort label-4748
SELECT - - COUNT ( * ) + + 13 AS col2 FROM tab2 AS cor0
----
16

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE NOT - ( col0 ) IN ( - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL col0 + - - col0 AS col2 FROM tab1 AS cor0
----
102
170
182

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4751
SELECT - - col2 + - ( + col0 ) + CAST( - col2 AS SIGNED ) FROM tab0 cor0
----
-15
-87
-97

skipif mysql # not compatible
query I rowsort label-4751
SELECT - - col2 + - ( + col0 ) + CAST ( - col2 AS INTEGER ) FROM tab0 cor0
----
-15
-87
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4752
SELECT MAX( ALL + 3 ) * - + COUNT( * ) FROM tab0
----
-9

skipif mysql # not compatible
query I rowsort label-4752
SELECT MAX ( ALL + 3 ) * - + COUNT ( * ) FROM tab0
----
-9

query I rowsort
SELECT 79 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to 40a2261caa2c5cdbfd80965d7df1231f

query III rowsort
SELECT * FROM tab0 cor0 WHERE ( NOT NULL >= + 61 )
----

query I rowsort
SELECT ALL 13 + - col2 FROM tab0 AS cor0
----
-34
-86
3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4756
SELECT ALL col1 + CAST( NULL AS SIGNED ) * + 5 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4756
SELECT ALL col1 + CAST ( NULL AS INTEGER ) * + 5 AS col2 FROM tab0 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT + col0 - 92 + col1 * - + col2 FROM tab2 AS cor0
----
-1219
-3108
-3903

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-4758
SELECT * FROM tab0 AS cor0 WHERE - CAST( - - col1 AS DECIMAL ) IS NULL
----

skipif mysql # not compatible
query III rowsort label-4758
SELECT * FROM tab0 AS cor0 WHERE - CAST ( - - col1 AS REAL ) IS NULL
----

query I rowsort
SELECT ALL col1 * + 32 * - 27 FROM tab2 AS cor0 WHERE NOT - 58 <= NULL
----

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE col0 * + col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4761
SELECT + 1 * 42 - - 47 + + MIN( - col1 ) col1 FROM tab1 AS cor0
----
42

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4761
SELECT + 1 * 42 - - 47 + + MIN ( - col1 ) col1 FROM tab1 AS cor0
----
42

query I rowsort
SELECT - - 39 AS col2 FROM tab1 cor0
----
39
39
39

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-4763
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( CAST( NULL AS SIGNED ), 38 + - - ( + + col2 ) )
----

skipif mysql # not compatible
query III rowsort label-4763
SELECT DISTINCT * FROM tab1 WHERE NOT NULL NOT IN ( CAST ( NULL AS INTEGER ), 38 + - - ( + + col2 ) )
----

query I rowsort
SELECT - 56 FROM tab1 WHERE NOT NULL BETWEEN NULL AND NULL
----

query I rowsort
SELECT + 64 * - col2 FROM tab1
----
-3776
-4352
-6144

onlyif mysql # DIV for integer division: 
query I rowsort label-4766
SELECT DISTINCT col1 DIV 23 * + col0 AS col1 FROM tab1
----
0
182

skipif mysql # not compatible
query I rowsort label-4766
SELECT DISTINCT col1 / 23 * + col0 AS col1 FROM tab1
----
0
182

onlyif mysql # aggregate syntax: 
query I rowsort label-4767
SELECT ALL + 92 * COUNT( * ) AS col1 FROM tab1
----
276

skipif mysql # not compatible
query I rowsort label-4767
SELECT ALL + 92 * COUNT ( * ) AS col1 FROM tab1
----
276

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4768
SELECT ALL + COUNT( ALL + + 81 ) DIV COUNT( * ) * - MIN( ALL - col1 ) + + + MIN( DISTINCT ( col2 ) ) col0 FROM tab0
----
91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4768
SELECT ALL + COUNT ( ALL + + 81 ) / COUNT ( * ) * - MIN ( ALL - col1 ) + + + MIN ( DISTINCT ( col2 ) ) col0 FROM tab0
----
91

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( + ( col2 ) + - 28 * ( + 35 ) ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT + col1 IN ( col0 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-4771
SELECT DISTINCT + CAST( NULL AS DECIMAL ) AS col1, - col0 * - col2 * - - col2 - - col2 + + col1 FROM tab1
----
NULL
295949
NULL
420899
NULL
470126

skipif mysql # not compatible
query II rowsort label-4771
SELECT DISTINCT + CAST ( NULL AS REAL ) AS col1, - col0 * - col2 * - - col2 - - col2 + + col1 FROM tab1
----
NULL
295949
NULL
420899
NULL
470126

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4772
SELECT ALL CAST( NULL AS SIGNED ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4772
SELECT ALL CAST ( NULL AS INTEGER ) AS col2 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1 WHERE ( NOT ( NULL IS NOT NULL ) )
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

query II rowsort
SELECT col1 AS col1, col0 AS col0 FROM tab0
----
1
97
21
87
81
15

query I rowsort
SELECT - col1 FROM tab0 WHERE NOT 83 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4775
SELECT DISTINCT - - COUNT( - col2 ) FROM tab1 WHERE NULL IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-4775
SELECT DISTINCT - - COUNT ( - col2 ) FROM tab1 WHERE NULL IS NULL
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4776
SELECT + + MIN( + CAST( 94 AS SIGNED ) ) AS col1 FROM tab1 AS cor0
----
94

skipif mysql # not compatible
query I rowsort label-4776
SELECT + + MIN ( + CAST ( 94 AS INTEGER ) ) AS col1 FROM tab1 AS cor0
----
94

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 78 * - col1 + - col0 col1 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
-1143
-3757
-475

query I rowsort
SELECT ALL + - ( + 33 ) AS col2 FROM tab1 cor0
----
-33
-33
-33

query I rowsort
SELECT - ( + 29 ) + + 36 FROM tab1 AS cor0
----
7
7
7

query I rowsort
SELECT ALL - col2 + - + col1 AS col1 FROM tab0 cor0
----
-100
-128
-31

onlyif mysql # aggregate syntax: 
query I rowsort label-4781
SELECT DISTINCT - - COUNT( * ) * + 94 + 74 FROM tab2 WHERE NOT + col1 IS NULL
----
356

skipif mysql # not compatible
query I rowsort label-4781
SELECT DISTINCT - - COUNT ( * ) * + 94 + 74 FROM tab2 WHERE NOT + col1 IS NULL
----
356

onlyif mysql # aggregate syntax: 
query I rowsort label-4782
SELECT - COUNT( * ) + - COUNT( ALL - + col1 ) + - COUNT( DISTINCT - 79 ) FROM tab2
----
-7

skipif mysql # not compatible
query I rowsort label-4782
SELECT - COUNT ( * ) + - COUNT ( ALL - + col1 ) + - COUNT ( DISTINCT - 79 ) FROM tab2
----
-7

query I rowsort
SELECT - col1 * + - ( - col2 ) + + - 88 AS col2 FROM tab0
----
-187
-298
-3895

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4784
SELECT 24 DIV + COUNT( * ) FROM tab1
----
8

skipif mysql # not compatible
query I rowsort label-4784
SELECT 24 / + COUNT ( * ) FROM tab1
----
8

query I rowsort
SELECT - 29 AS col0 FROM tab0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ( - 2 ) FROM tab0
----
-2
-2
-2

query I rowsort
SELECT ALL + ( - col0 ) * - + col1 + - 27 AS col1 FROM tab2 AS cor0
----
2319
4901
4998

onlyif mysql # aggregate syntax: 
query I rowsort label-4788
SELECT DISTINCT 43 + COUNT( * ) AS col2 FROM tab0 AS cor0
----
46

skipif mysql # not compatible
query I rowsort label-4788
SELECT DISTINCT 43 + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4789
SELECT ALL + 14 * + col2 + - CAST( - 84 AS SIGNED ) FROM tab2 cor0
----
406
644
896

skipif mysql # not compatible
query I rowsort label-4789
SELECT ALL + 14 * + col2 + - CAST ( - 84 AS INTEGER ) FROM tab2 cor0
----
406
644
896

onlyif mysql # aggregate syntax: 
query I rowsort label-4790
SELECT ALL - COUNT( * ) FROM tab1 AS cor0 WHERE col0 + + col1 IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-4790
SELECT ALL - COUNT ( * ) FROM tab1 AS cor0 WHERE col0 + + col1 IS NOT NULL
----
-3

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4791
SELECT col1 - + - CAST( NULL AS SIGNED ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4791
SELECT col1 - + - CAST ( NULL AS INTEGER ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-4792
SELECT ALL + - COUNT( * ) AS col0 FROM tab2 WHERE 71 + col0 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-4792
SELECT ALL + - COUNT ( * ) AS col0 FROM tab2 WHERE 71 + col0 IS NULL
----
0

query I rowsort
SELECT ALL 35 + + + col2 AS col1 FROM tab2
----
58
75
93

query I rowsort
SELECT ALL + col2 * + col0 * + + 7 FROM tab0 AS cor0
----
4935
6090
67221

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE col1 * + 71 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4796
SELECT DISTINCT CAST( 96 AS SIGNED ) FROM tab2 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-4796
SELECT DISTINCT CAST ( 96 AS INTEGER ) FROM tab2 AS cor0
----
96

onlyif mysql # aggregate syntax: 
query I rowsort label-4797
SELECT - - MIN( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-81

skipif mysql # not compatible
query I rowsort label-4797
SELECT - - MIN ( DISTINCT - col1 ) AS col2 FROM tab0 cor0
----
-81

query I rowsort
SELECT - 23 * - 26 AS col1 FROM tab2
----
598
598
598

onlyif mysql # DIV for integer division: 
query I rowsort label-4799
SELECT DISTINCT 7 DIV - 14 * - 78 * col1 * col2 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-4799
SELECT DISTINCT 7 / - 14 * - 78 * col1 * col2 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4800
SELECT ALL + SUM( col2 ) * 64 FROM tab0
----
9984

skipif mysql # not compatible
query I rowsort label-4800
SELECT ALL + SUM ( col2 ) * 64 FROM tab0
----
9984

query I rowsort
SELECT + 79 FROM tab1 WHERE NOT NULL IS NOT NULL
----
79
79
79

query I rowsort
SELECT ALL ( - - col2 ) AS col1 FROM tab1 AS cor0
----
59
68
96

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + 58 NOT BETWEEN + 84 AND ( col0 )
----

query I rowsort
SELECT - col0 + - - col0 - + col1 FROM tab0
----
-1
-21
-81

onlyif mysql # aggregate syntax: 
query I rowsort label-4805
SELECT + - SUM( ( - 5 ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4805
SELECT + - SUM ( ( - 5 ) ) col1 FROM tab1 AS cor0 CROSS JOIN tab2 AS cor1
----
45

query I rowsort
SELECT ALL + - 84 FROM tab0 WHERE 61 IS NULL
----

query I rowsort
SELECT ALL + 25 AS col1 FROM tab0
----
25
25
25

onlyif mysql # DIV for integer division: 
query I rowsort label-4808
SELECT + 73 + + col1 + - + col2 + + 22 * 16 DIV - - 72 FROM tab0
----
-21
111
88

skipif mysql # not compatible
query I rowsort label-4808
SELECT + 73 + + col1 + - + col2 + + 22 * 16 / - - 72 FROM tab0
----
-21
111
88

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4809
SELECT ALL CAST( + col0 AS SIGNED ), - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-4809
SELECT ALL CAST ( + col0 AS INTEGER ), - col1 FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - ( + col1 ) + - - col2 - 34 FROM tab1 AS cor0
----
-13
20
48

query I rowsort
SELECT - col0 * - col0 FROM tab2 AS cor0 WHERE 95 - - ( col1 ) * - - col1 IS NULL
----

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - 67 * - + col0 - - + 47 + + col1 <= NULL
----

query I rowsort
SELECT + col2 * + 13 AS col1 FROM tab1 AS cor0
----
1248
767
884

onlyif mysql # aggregate syntax: 
query I rowsort label-4814
SELECT + COUNT( ALL + 52 ) FROM tab1 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-4814
SELECT + COUNT ( ALL + 52 ) FROM tab1 AS cor0
----
3

query I rowsort
SELECT ALL + + 46 AS col0 FROM tab1 AS cor0
----
46
46
46

query I rowsort
SELECT DISTINCT + 25 + 16 FROM tab1
----
41

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4817
SELECT ALL COUNT( * ) + + - CAST( NULL AS SIGNED ) / - + COUNT( * ) - - + CAST( - 55 AS SIGNED ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-4817
SELECT ALL COUNT ( * ) + + - CAST ( NULL AS INTEGER ) / - + COUNT ( * ) - - + CAST ( - 55 AS INTEGER ) FROM tab0
----
NULL

onlyif mysql # aggregate syntax: 
query II rowsort label-4818
SELECT ALL MAX( DISTINCT + col1 ) AS col2, COUNT( * ) * - COUNT( * ) AS col2 FROM tab2
----
77
-9

skipif mysql # not compatible
query II rowsort label-4818
SELECT ALL MAX ( DISTINCT + col1 ) AS col2, COUNT ( * ) * - COUNT ( * ) AS col2 FROM tab2
----
77
-9

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT + + col2 BETWEEN - + col2 AND col2 - + col1
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4820
SELECT ALL MIN( ALL - + col2 ) col2 FROM tab0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4820
SELECT ALL MIN ( ALL - + col2 ) col2 FROM tab0
----
-99

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NULL NOT BETWEEN NULL AND 96 / col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE ( NOT 6 IS NULL )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4823
SELECT DISTINCT MIN( + + col0 ) AS col1 FROM tab0 WHERE ( NOT 58 = + 16 * + col1 )
----
15

skipif mysql # not compatible
query I rowsort label-4823
SELECT DISTINCT MIN ( + + col0 ) AS col1 FROM tab0 WHERE ( NOT 58 = + 16 * + col1 )
----
15

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col2 col2 FROM tab1 WHERE NOT NULL IS NOT NULL
----
110
115
64

onlyif mysql # aggregate syntax: 
query II rowsort label-4825
SELECT ALL - MIN( ALL + 5 ) col1, - 91 AS col1 FROM tab0 AS cor0
----
-5
-91

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4825
SELECT ALL - MIN ( ALL + 5 ) col1, - 91 AS col1 FROM tab0 AS cor0
----
-5
-91

query I rowsort
SELECT DISTINCT + col0 FROM tab1 cor0 WHERE NULL IS NULL
----
51
85
91

query I rowsort
SELECT ALL + - 47 AS col2 FROM tab0 AS cor0
----
-47
-47
-47

query II rowsort
SELECT ALL + col2 * + 43 AS col0, + col2 FROM tab2 cor0
----
1720
40
2494
58
989
23

query I rowsort
SELECT + + 46 FROM tab2 WHERE NOT ( + col1 ) IS NULL
----
46
46
46

query I rowsort
SELECT 74 * + + col0 * - col0 FROM tab2
----
-156584
-303104
-416250

onlyif mysql # aggregate syntax: 
query I rowsort label-4831
SELECT + MAX( DISTINCT 43 ) AS col1 FROM tab1
----
43

skipif mysql # not compatible
query I rowsort label-4831
SELECT + MAX ( DISTINCT 43 ) AS col1 FROM tab1
----
43

query II rowsort
SELECT + col1 AS col0, - ( - col1 ) + col2 * col2 * - col0 * col1 AS col0 FROM tab2
----
51
-1240983
67
-16904033
77
-7884723

query I rowsort
SELECT DISTINCT - 0 * - col0 AS col1 FROM tab0 WHERE NOT NULL > + col2 * + - col0 * + 83 + + - col1 * + col0 * col0 * + col1
----

onlyif mysql # aggregate syntax: 
query II rowsort label-4834
SELECT ALL + 13 + COUNT( * ), 81 col1 FROM tab2
----
16
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4834
SELECT ALL + 13 + COUNT ( * ), 81 col1 FROM tab2
----
16
81

query III rowsort
SELECT ALL * FROM tab0 AS cor0 WHERE - col1 * - + col2 <= col1
----

query I rowsort
SELECT ALL + - col0 + - - col1 AS col2 FROM tab2 cor0
----
-8
13
5

query I rowsort
SELECT - col2 + + - col0 AS col2 FROM tab0 cor0
----
-196
-62
-97

onlyif mysql # aggregate syntax: 
query I rowsort label-4838
SELECT DISTINCT - MIN( ALL - 90 ) FROM tab0
----
90

skipif mysql # not compatible
query I rowsort label-4838
SELECT DISTINCT - MIN ( ALL - 90 ) FROM tab0
----
90

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT + ( - 81 ) * - - 84 col2, + col1 FROM tab1
----
-6804
14
-6804
47
-6804
5

query I rowsort
SELECT ( - - 23 ) FROM tab1 AS cor0
----
23
23
23

query I rowsort
SELECT ALL + col1 FROM tab2 AS cor0 WHERE NULL = - 20 * + col0 + 41 * + col1
----

query III rowsort
SELECT * FROM tab1 cor0 WHERE NOT NULL <= col0 * col1 / - col2
----

query II rowsort
SELECT 31, - col2 AS col1 FROM tab2 AS cor0
----
31
-23
31
-40
31
-58

query I rowsort
SELECT DISTINCT col2 AS col0 FROM tab1 AS cor0 WHERE NOT - col1 / + col1 * + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4845
SELECT DISTINCT 88 + COUNT( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
91

skipif mysql # not compatible
query I rowsort label-4845
SELECT DISTINCT 88 + COUNT ( * ) FROM tab0 AS cor0 WHERE NOT NULL IS NOT NULL
----
91

query II rowsort
SELECT DISTINCT + 55 AS col0, - 80 + - - col2 AS col2 FROM tab0 AS cor0
----
55
-33
55
-70
55
19

query I rowsort
SELECT + col0 AS col1 FROM tab2 AS cor0 WHERE NOT ( NOT NULL IS NOT NULL )
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL BETWEEN + ( - col1 ) - - + col2 + + col0 / - col2 * - 73 AND NULL
----

query I rowsort
SELECT ALL ( ( + col2 ) ) AS col2 FROM tab2 AS cor0
----
23
40
58

query I rowsort
SELECT - col1 * + + col0 + col1 + + col0 AS col2 FROM tab0 AS cor0
----
-1119
-1719
1

query II rowsort
SELECT - 67 AS col0, col0 * + 12 * - + 6 FROM tab0 WHERE NOT + col0 + + + 39 IS NULL
----
-67
-1080
-67
-6264
-67
-6984

query II rowsort
SELECT - 4 * + col0 AS col2, - col1 AS col0 FROM tab2 WHERE NOT col0 - - col0 / - col1 / - 51 IS NOT NULL
----

query I rowsort
SELECT col2 * - ( 95 ) FROM tab0
----
-4465
-9405
-950

query III rowsort
SELECT ALL * FROM tab0 WHERE - - 70 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-4855
SELECT + SUM( DISTINCT - col0 ) * - MIN( + 21 ) FROM tab1 AS cor0
----
4767

skipif mysql # not compatible
query I rowsort label-4855
SELECT + SUM ( DISTINCT - col0 ) * - MIN ( + 21 ) FROM tab1 AS cor0
----
4767

query II rowsort
SELECT ALL + ( ( - col1 ) ) AS col0, - col2 * - 21 FROM tab2 AS cor0
----
-51
483
-67
1218
-77
840

onlyif mysql # aggregate syntax: 
query I rowsort label-4857
SELECT + 35 * + ( COUNT( * ) ) + - + MIN( DISTINCT - 72 ) FROM tab2 AS cor0
----
177

skipif mysql # not compatible
query I rowsort label-4857
SELECT + 35 * + ( COUNT ( * ) ) + - + MIN ( DISTINCT - 72 ) FROM tab2 AS cor0
----
177

query I rowsort
SELECT 2 + - col1 AS col2 FROM tab1 WHERE + + col0 IN ( + 84, 69 )
----

query I rowsort
SELECT DISTINCT - 35 + + col1 + + col2 FROM tab2 AS cor0
----
39
82
90

query I rowsort
SELECT ALL 22 + + + col2 AS col2 FROM tab0 AS cor0
----
121
32
69

query I rowsort
SELECT ALL - col1 + + + col1 AS col0 FROM tab1 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 * + col2 IS NULL
----

query I rowsort
SELECT ALL 21 - + + col0 FROM tab2
----
-25
-43
-54

query I rowsort
SELECT col2 AS col2 FROM tab1 WHERE + col2 > NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4865
SELECT DISTINCT - - 73 + COUNT( * ) * 62 + COUNT( * ) AS col2 FROM tab1 AS cor0
----
262

skipif mysql # not compatible
query I rowsort label-4865
SELECT DISTINCT - - 73 + COUNT ( * ) * 62 + COUNT ( * ) AS col2 FROM tab1 AS cor0
----
262

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4866
SELECT - - col1 + + + CAST( NULL AS SIGNED ) - - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4866
SELECT - - col1 + + + CAST ( NULL AS INTEGER ) - - + col0 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4867
SELECT - - COUNT( + - 98 ) DIV + + 2 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4867
SELECT - - COUNT ( + - 98 ) / + + 2 FROM tab2 AS cor0
----
1

query IIIIII rowsort
SELECT * FROM tab2 AS cor0 INNER JOIN tab1 AS cor1 ON NOT NULL IS NULL
----

query I rowsort
SELECT + col2 * + 27 AS col0 FROM tab2
----
1080
1566
621

onlyif mysql # aggregate syntax: 
query I rowsort label-4870
SELECT ALL - MIN( - - 32 ) FROM tab0
----
-32

skipif mysql # not compatible
query I rowsort label-4870
SELECT ALL - MIN ( - - 32 ) FROM tab0
----
-32

onlyif mysql # aggregate syntax: 
query I rowsort label-4871
SELECT ALL + - MIN( DISTINCT 92 ) FROM tab2 AS cor0
----
-92

skipif mysql # not compatible
query I rowsort label-4871
SELECT ALL + - MIN ( DISTINCT 92 ) FROM tab2 AS cor0
----
-92

query II rowsort
SELECT ALL + col0 AS col1, col0 + - col0 AS col0 FROM tab1 AS cor0
----
51
0
85
0
91
0

query II rowsort
SELECT col0 AS col1, ( + - col2 ) FROM tab1 AS cor0
----
51
-96
85
-59
91
-68

query I rowsort
SELECT col1 FROM tab0 cor0 WHERE NOT 92 IS NOT NULL
----

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4875
SELECT ALL - 57 DIV ( + + COUNT( * ) ) AS col2 FROM tab1 AS cor0
----
-19

skipif mysql # not compatible
query I rowsort label-4875
SELECT ALL - 57 / ( + + COUNT ( * ) ) AS col2 FROM tab1 AS cor0
----
-19

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col1 col1, - col1 AS col0 FROM tab0 AS cor0
----
1
-1
21
-21
81
-81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-4877
SELECT + 24 DIV + + COUNT( * ) AS col2 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
8

skipif mysql # not compatible
query I rowsort label-4877
SELECT + 24 / + + COUNT ( * ) AS col2 FROM tab1 cor0 WHERE NOT col1 IS NULL
----
8

onlyif mysql # DIV for integer division: 
query I rowsort label-4878
SELECT + col2 DIV - col1 * + col1 * - - col1 FROM tab0 AS cor0
----
-99
0
0

skipif mysql # not compatible
query I rowsort label-4878
SELECT + col2 / - col1 * + col1 * - - col1 FROM tab0 AS cor0
----
-99
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-4879
SELECT DISTINCT + MAX( - + 99 ) col2 FROM tab0 AS cor0
----
-99

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4879
SELECT DISTINCT + MAX ( - + 99 ) col2 FROM tab0 AS cor0
----
-99

onlyif mysql # DIV for integer division: 
query I rowsort label-4880
SELECT col2 DIV 40 * + - col1 AS col2 FROM tab0 AS cor0
----
-2
-81
0

skipif mysql # not compatible
query I rowsort label-4880
SELECT col2 / 40 * + - col1 AS col2 FROM tab0 AS cor0
----
-2
-81
0

query I rowsort
SELECT DISTINCT 86 FROM tab2 AS cor0 WHERE NOT col0 IS NOT NULL
----

query II rowsort
SELECT DISTINCT - col0 AS col1, col1 FROM tab1
----
-51
14
-85
5
-91
47

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + 92 col1, col1 + + col1 FROM tab2
----
92
102
92
134
92
154

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4884
SELECT ALL + CAST( NULL AS DECIMAL ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-4884
SELECT ALL + CAST ( NULL AS REAL ) FROM tab0, tab1 cor0
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # aggregate syntax: 
query I rowsort label-4885
SELECT - COUNT( * ) FROM tab0 WHERE NOT + col1 < - col2
----
-3

skipif mysql # not compatible
query I rowsort label-4885
SELECT - COUNT ( * ) FROM tab0 WHERE NOT + col1 < - col2
----
-3

query I rowsort
SELECT + col1 + - 64 + - 97 FROM tab1
----
-114
-147
-156

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4887
SELECT + 59 + + 51 + - + CAST( 19 AS SIGNED ), col1 * - col0 AS col0 FROM tab0
----
91
-1215
91
-1827
91
-97

skipif mysql # not compatible
query II rowsort label-4887
SELECT + 59 + + 51 + - + CAST ( 19 AS INTEGER ), col1 * - col0 AS col0 FROM tab0
----
91
-1215
91
-1827
91
-97

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4888
SELECT 74 + + col1 + - col0 + - - col1 * - + col0 * - 32 * + CAST( + 61 AS SIGNED ) FROM tab0
----
189322
2371820
3566312

skipif mysql # not compatible
query I rowsort label-4888
SELECT 74 + + col1 + - col0 + - - col1 * - + col0 * - 32 * + CAST ( + 61 AS INTEGER ) FROM tab0
----
189322
2371820
3566312

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 90, col1 col2 FROM tab1 AS cor0
----
90
14
90
47
90
5

query I rowsort
SELECT DISTINCT + col0 + + - col0 AS col1 FROM tab2 AS cor0
----
0

query I rowsort
SELECT - - 81 AS col1 FROM tab1 cor0
----
81
81
81

onlyif mysql # aggregate syntax: 
query I rowsort label-4892
SELECT ALL - MIN( DISTINCT - 68 ) + COUNT( * ) AS col2 FROM tab0
----
71

skipif mysql # not compatible
query I rowsort label-4892
SELECT ALL - MIN ( DISTINCT - 68 ) + COUNT ( * ) AS col2 FROM tab0
----
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4893
SELECT DISTINCT - ( + COUNT( DISTINCT ( col0 ) ) ) FROM tab1
----
-3

skipif mysql # not compatible
query I rowsort label-4893
SELECT DISTINCT - ( + COUNT ( DISTINCT ( col0 ) ) ) FROM tab1
----
-3

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE + ( + 6 ) * + col2 - + - col0 + + - col2 = NULL
----

query I rowsort
SELECT col1 + 52 + + col1 AS col2 FROM tab0 cor0
----
214
54
94

onlyif mysql # aggregate syntax: 
query I rowsort label-4896
SELECT DISTINCT 4 - MAX( - 22 ) FROM tab2 AS cor0
----
26

skipif mysql # not compatible
query I rowsort label-4896
SELECT DISTINCT 4 - MAX ( - 22 ) FROM tab2 AS cor0
----
26

query I rowsort
SELECT DISTINCT + col0 + + - 58 AS col2 FROM tab1 AS cor0
----
-7
27
33

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4898
SELECT DISTINCT - ( - - col1 ) AS col0, 2 * - 33 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IN ( - - 99 - - CAST( - 32 AS SIGNED ) )
----
-1
-66
-21
-66
-81
-66

skipif mysql # not compatible
query II rowsort label-4898
SELECT DISTINCT - ( - - col1 ) AS col0, 2 * - 33 AS col2 FROM tab0 AS cor0 WHERE NOT col2 IN ( - - 99 - - CAST ( - 32 AS INTEGER ) )
----
-1
-66
-21
-66
-81
-66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT 31 * 89 col0 FROM tab2
----
2759

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE - col0 / + col0 IS NULL
----

query I rowsort
SELECT - 79 AS col1 FROM tab2 WHERE NULL < - - 35
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + ( - col2 ) - + col0 col1, + 48 AS col0 FROM tab0
----
-196
48
-62
48
-97
48

query I rowsort
SELECT ALL + col0 * 64 AS col2 FROM tab1
----
3264
5440
5824

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col1 * 13 col2 FROM tab0
----
1053
13
273

onlyif mysql # aggregate syntax: 
query I rowsort label-4905
SELECT - 90 * - COUNT( * ) * COUNT( DISTINCT + 0 ) - 91 FROM tab0
----
179

skipif mysql # not compatible
query I rowsort label-4905
SELECT - 90 * - COUNT ( * ) * COUNT ( DISTINCT + 0 ) - 91 FROM tab0
----
179

query III rowsort
SELECT * FROM tab0 WHERE NOT + col2 * col1 * + col2 * - + col1 + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4907
SELECT DISTINCT + - 0 * col1 * + + col0 * - - col2 DIV 21 + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

skipif mysql # not compatible
query I rowsort label-4907
SELECT DISTINCT + - 0 * col1 * + + col0 * - - col2 / 21 + + col2 * - col1 AS col1 FROM tab0 AS cor0
----
-210
-3807
-99

onlyif mysql # aggregate syntax: 
query I rowsort label-4908
SELECT ALL - COUNT( * ) * - 37 FROM tab2 AS cor0
----
111

skipif mysql # not compatible
query I rowsort label-4908
SELECT ALL - COUNT ( * ) * - 37 FROM tab2 AS cor0
----
111

query I rowsort
SELECT ( 15 ) AS col2 FROM tab2, tab0 AS cor0
----
9 values hashing to d1d280d38bf9c2d5d5ec90dd43aeaffd

query II rowsort
SELECT DISTINCT + col0 AS col1, col0 FROM tab2 WHERE ( + col0 IS NOT NULL )
----
46
46
64
64
75
75

onlyif mysql # aggregate syntax: 
query I rowsort label-4911
SELECT DISTINCT + COUNT( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4911
SELECT DISTINCT + COUNT ( * ) AS col0 FROM tab1 AS cor0 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4912
SELECT ALL - - 72 * COUNT( + col1 ) FROM tab1 AS cor0
----
216

skipif mysql # not compatible
query I rowsort label-4912
SELECT ALL - - 72 * COUNT ( + col1 ) FROM tab1 AS cor0
----
216

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-4913
SELECT + col1 * + + CAST( NULL AS DECIMAL ) + - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-4913
SELECT + col1 * + + CAST ( NULL AS REAL ) + - + col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4914
SELECT - + 31 DIV - col2 AS col1 FROM tab0 cor0
----
0
0
3

skipif mysql # not compatible
query I rowsort label-4914
SELECT - + 31 / - col2 AS col1 FROM tab0 cor0
----
0
0
3

query I rowsort
SELECT + + 16 * 79 FROM tab2 cor0
----
1264
1264
1264

query I rowsort
SELECT + col0 / - col0 + - - col0 * + col2 * + 79 FROM tab1 AS cor0 WHERE NOT NULL BETWEEN NULL AND 57 * + col2
----

query I rowsort
SELECT + 69 * 29 FROM tab2
----
2001
2001
2001

query III rowsort
SELECT * FROM tab0 WHERE NOT + 29 * - col2 * + col1 + - - col2 < NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE + col2 + col0 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT ALL + ( + 55 ) FROM tab2
----
55
55
55

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4921
SELECT ALL - + 65 + CAST( + 26 AS SIGNED ) FROM tab0 WHERE NOT + CAST( NULL AS SIGNED ) * - col1 IS NULL
----

skipif mysql # not compatible
query I rowsort label-4921
SELECT ALL - + 65 + CAST ( + 26 AS INTEGER ) FROM tab0 WHERE NOT + CAST ( NULL AS INTEGER ) * - col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4922
SELECT COUNT( * ) AS col0 FROM tab0 WHERE + + col1 IS NOT NULL
----
3

skipif mysql # not compatible
query I rowsort label-4922
SELECT COUNT ( * ) AS col0 FROM tab0 WHERE + + col1 IS NOT NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4923
SELECT DISTINCT + - 60 + + MIN( DISTINCT + 0 ) FROM tab2 AS cor0
----
-60

skipif mysql # not compatible
query I rowsort label-4923
SELECT DISTINCT + - 60 + + MIN ( DISTINCT + 0 ) FROM tab2 AS cor0
----
-60

query I rowsort
SELECT + + col2 * + ( - - col1 ) + + 84 AS col2 FROM tab1 AS cor0
----
1428
3280
379

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT ( NOT ( - 50 ) + + - 99 * col1 * 56 IS NOT NULL ) )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # DIV for integer division: 
query I rowsort label-4926
SELECT ALL col1 - + ( + + col1 ) DIV + col1 - - + col1 FROM tab1
----
27
9
93

skipif mysql # not compatible
query I rowsort label-4926
SELECT ALL col1 - + ( + + col1 ) / + col1 - - + col1 FROM tab1
----
27
9
93

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + - col1 + + - col1 col1 FROM tab0 AS cor0
----
-162
-2
-42

onlyif mysql # aggregate syntax: 
query II rowsort label-4928
SELECT + 61, COUNT( * ) * + COUNT( * ) col2 FROM tab1 AS cor0
----
61
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4928
SELECT + 61, COUNT ( * ) * + COUNT ( * ) col2 FROM tab1 AS cor0
----
61
9

query I rowsort
SELECT - 87 * + col0 AS col0 FROM tab2 AS cor0
----
-4002
-5568
-6525

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col2 - 8 col1 FROM tab1 AS cor0
----
-104
-67
-76

query I rowsort
SELECT ALL 66 + col1 FROM tab1 AS cor0
----
113
71
80

onlyif mysql # DIV for integer division: 
query I rowsort label-4932
SELECT DISTINCT + col2 DIV col1 * - - col2 + + col2 + + col0 col2 FROM tab0 AS cor0
----
62
97
9997

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4932
SELECT DISTINCT + col2 / col1 * - - col2 + + col2 + + col0 col2 FROM tab0 AS cor0
----
62
97
9997

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4933
SELECT COUNT( * ) / - + CAST( NULL AS SIGNED ) * COUNT( + - col1 ) - - MAX( + - col0 ) + + + 92 * - COUNT( + 0 ) AS col1 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-4933
SELECT COUNT ( * ) / - + CAST ( NULL AS INTEGER ) * COUNT ( + - col1 ) - - MAX ( + - col0 ) + + + 92 * - COUNT ( + 0 ) AS col1 FROM tab2 cor0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-4934
SELECT ALL - col0 DIV 14 + - col1 col0 FROM tab2
----
-54
-72
-81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4934
SELECT ALL - col0 / 14 + - col1 col0 FROM tab2
----
-54
-72
-81

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE NOT NULL BETWEEN + + col2 AND - col1
----

query III rowsort
SELECT ALL * FROM tab1 WHERE - 35 + col2 * col0 + + 5 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4937
SELECT DISTINCT + col1 - - col0 + CAST( NULL AS SIGNED ) * + 50 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-4937
SELECT DISTINCT + col1 - - col0 + CAST ( NULL AS INTEGER ) * + 50 FROM tab1
----
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL IN ( + - 74 )
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - col0 NOT BETWEEN NULL AND NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4940
SELECT CAST( - + ( - col0 ) AS SIGNED ) AS col2 FROM tab1
----
51
85
91

skipif mysql # not compatible
query I rowsort label-4940
SELECT CAST ( - + ( - col0 ) AS INTEGER ) AS col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL BETWEEN + 15 * + - 73 AND - col0 * + - 5
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4942
SELECT COUNT( * ) * - SUM( - 25 ) FROM tab0 AS cor0
----
225

skipif mysql # not compatible
query I rowsort label-4942
SELECT COUNT ( * ) * - SUM ( - 25 ) FROM tab0 AS cor0
----
225

onlyif mysql # aggregate syntax: 
query I rowsort label-4943
SELECT ALL MIN( ALL - 78 ) * 7 FROM tab2 cor0
----
-546

skipif mysql # not compatible
query I rowsort label-4943
SELECT ALL MIN ( ALL - 78 ) * 7 FROM tab2 cor0
----
-546

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-4944
SELECT + CAST( - - COUNT( * ) AS SIGNED ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4944
SELECT + CAST ( - - COUNT ( * ) AS INTEGER ) col1 FROM tab1
----
3

query I rowsort
SELECT ALL 32 * + + col2 AS col0 FROM tab0
----
1504
3168
320

onlyif mysql # aggregate syntax: 
query I rowsort label-4946
SELECT ALL + COUNT( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4946
SELECT ALL + COUNT ( DISTINCT - col0 ) col2 FROM tab1 AS cor0
----
3

query III rowsort
SELECT DISTINCT * FROM tab1 cor0 WHERE 54 * col2 NOT BETWEEN NULL AND - + col0
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-4948
SELECT + COUNT( DISTINCT 69 ) AS col1 FROM tab1 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-4948
SELECT + COUNT ( DISTINCT 69 ) AS col1 FROM tab1 AS cor0
----
1

query I rowsort
SELECT ALL - col0 + + col1 * + 73 AS col2 FROM tab1 AS cor0
----
280
3340
971

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( NOT 51 = + col2 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4951
SELECT ALL + - col0 AS col2, 1 + col2 AS col1 FROM tab1 WHERE NOT - CAST( NULL AS SIGNED ) * + col0 < NULL
----

skipif mysql # not compatible
query II rowsort label-4951
SELECT ALL + - col0 AS col2, 1 + col2 AS col1 FROM tab1 WHERE NOT - CAST ( NULL AS INTEGER ) * + col0 < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-4952
SELECT ALL COUNT( DISTINCT + col1 ) col1 FROM tab1
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4952
SELECT ALL COUNT ( DISTINCT + col1 ) col1 FROM tab1
----
3

query I rowsort
SELECT DISTINCT - 52 * - + col1 AS col2 FROM tab1
----
2444
260
728

query I rowsort
SELECT + col1 + + - col2 + + - col1 FROM tab0
----
-10
-47
-99

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NOT - ( - 60 ) IS NOT NULL
----

query I rowsort
SELECT + col0 * - + col1 + - col0 FROM tab2
----
-2392
-4992
-5100

query I rowsort
SELECT DISTINCT 32 * + + 72 AS col2 FROM tab2
----
2304

onlyif mysql # aggregate syntax: 
query I rowsort label-4958
SELECT - 1 * + - MAX( ALL + 30 ) col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-4958
SELECT - 1 * + - MAX ( ALL + 30 ) col0 FROM tab2 WHERE NULL BETWEEN NULL AND NULL
----
NULL

query I rowsort
SELECT ( col1 ) * col2 * - col2 + - col2 * - col1 FROM tab1
----
-127680
-17110
-214132

query I rowsort
SELECT DISTINCT col2 + + + 48 AS col0 FROM tab1 WHERE - 7 IS NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-4961
SELECT DISTINCT + 35 DIV - 64 + + col1 FROM tab1
----
14
47
5

skipif mysql # not compatible
query I rowsort label-4961
SELECT DISTINCT + 35 / - 64 + + col1 FROM tab1
----
14
47
5

query I rowsort
SELECT DISTINCT ( + + col0 ) + - + 92 FROM tab2 AS cor0
----
-17
-28
-46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4963
SELECT ALL + + col1 * - - CAST( col1 AS SIGNED ) - - 93 FROM tab0 AS cor0
----
534
6654
94

skipif mysql # not compatible
query I rowsort label-4963
SELECT ALL + + col1 * - - CAST ( col1 AS INTEGER ) - - 93 FROM tab0 AS cor0
----
534
6654
94

query I rowsort
SELECT DISTINCT - 18 FROM tab2 WHERE NULL NOT BETWEEN 83 AND + 64
----

query IIIIII rowsort
SELECT * FROM tab0, tab2 cor0 WHERE NOT - 99 < NULL
----

query I rowsort
SELECT - 18 + - 4 + - - 61 AS col0 FROM tab1
----
39
39
39

query I rowsort
SELECT DISTINCT - 80 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1 WHERE NULL BETWEEN ( NULL ) AND NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 = NULL
----

query I rowsort
SELECT - 59 AS col2 FROM tab2 AS cor0 WHERE NULL IS NULL
----
-59
-59
-59

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL col2 - + + 25 col1 FROM tab1 cor0
----
34
43
71

onlyif mysql # aggregate syntax: 
query I rowsort label-4971
SELECT SUM( + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif mysql # not compatible
query I rowsort label-4971
SELECT SUM ( + col1 ) AS col1 FROM tab1 AS cor0
----
66

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + + 45 col0 FROM tab0 AS cor0
----
45
45
45

query I rowsort
SELECT ( + 22 ) FROM tab0 AS cor0
----
22
22
22

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NULL < - ( - col0 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4975
SELECT DISTINCT CAST( NULL AS SIGNED ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

skipif mysql # not compatible
query II rowsort label-4975
SELECT DISTINCT CAST ( NULL AS INTEGER ), col2 FROM tab2
----
NULL
23
NULL
40
NULL
58

query I rowsort
SELECT DISTINCT - col1 * + col0 AS col1 FROM tab2 WHERE ( NULL ) >= NULL
----

query II rowsort
SELECT - col2 AS col2, col0 AS col0 FROM tab1
----
-59
85
-68
91
-96
51

query II rowsort
SELECT col1, - 48 * col2 FROM tab2
----
51
-1104
67
-2784
77
-1920

query I rowsort
SELECT + 58 * + col1 AS col1 FROM tab0
----
1218
4698
58

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-4980
SELECT DISTINCT CAST( NULL AS SIGNED ), + 74 * - col0 AS col2 FROM tab1
----
NULL
-3774
NULL
-6290
NULL
-6734

skipif mysql # not compatible
query II rowsort label-4980
SELECT DISTINCT CAST ( NULL AS INTEGER ), + 74 * - col0 AS col2 FROM tab1
----
NULL
-3774
NULL
-6290
NULL
-6734

query II rowsort
SELECT + 52 AS col0, 80 FROM tab0
----
52
80
52
80
52
80

onlyif mysql # aggregate syntax: 
query II rowsort label-4982
SELECT DISTINCT + COUNT( * ) col0, COUNT( * ) FROM tab1
----
3
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-4982
SELECT DISTINCT + COUNT ( * ) col0, COUNT ( * ) FROM tab1
----
3
3

onlyif mysql # aggregate syntax: 
query I rowsort label-4983
SELECT ALL + MIN( DISTINCT col1 ) AS col0 FROM tab0
----
1

skipif mysql # not compatible
query I rowsort label-4983
SELECT ALL + MIN ( DISTINCT col1 ) AS col0 FROM tab0
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-4984
SELECT DISTINCT SUM( ALL - 62 ) FROM tab2
----
-186

skipif mysql # not compatible
query I rowsort label-4984
SELECT DISTINCT SUM ( ALL - 62 ) FROM tab2
----
-186

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4985
SELECT + CAST( + - col2 AS SIGNED ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

skipif mysql # not compatible
query I rowsort label-4985
SELECT + CAST ( + - col2 AS INTEGER ) AS col0 FROM tab2 AS cor0
----
-23
-40
-58

onlyif mysql # aggregate syntax: 
query II rowsort label-4986
SELECT DISTINCT + COUNT( * ) AS col1, - 63 AS col0 FROM tab0 AS cor0
----
3
-63

skipif mysql # not compatible
query II rowsort label-4986
SELECT DISTINCT + COUNT ( * ) AS col1, - 63 AS col0 FROM tab0 AS cor0
----
3
-63

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( NULL ) BETWEEN + - ( 29 ) AND col2 + + col2
----

query III rowsort
SELECT * FROM tab1 WHERE NOT + 4 + + 26 < - col0 * 0 + + - col2
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT DISTINCT - col0 FROM tab0 AS cor0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-4990
SELECT + + 99 FROM tab0 AS cor0 WHERE NOT NULL > CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-4990
SELECT + + 99 FROM tab0 AS cor0 WHERE NOT NULL > CAST ( NULL AS INTEGER )
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE ( 36 * - + 39 + 13 ) IN ( - 8, 70 * + + col0 - col0, col1 / + col1 )
----

query I rowsort
SELECT ALL - ( ( + 88 ) ) * - 12 * - col2 AS col0 FROM tab1 AS cor0 WHERE NOT 56 + + col0 * + col1 - - col1 NOT BETWEEN - 65 AND + 51 - - - col2
----

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-4993
SELECT CAST( + - 18 AS SIGNED ) * 70 DIV col1 * + col2 FROM tab2 AS cor0
----
-1044
-552
-640

skipif mysql # not compatible
query I rowsort label-4993
SELECT CAST ( + - 18 AS INTEGER ) * 70 / col1 * + col2 FROM tab2 AS cor0
----
-1044
-552
-640

onlyif mysql # DIV for integer division: 
query I rowsort label-4994
SELECT ALL + col0 DIV - col2 + 36 - - - 92 + + col0 * col1 FROM tab0 AS cor0
----
1159
1763
41

skipif mysql # not compatible
query I rowsort label-4994
SELECT ALL + col0 / - col2 + 36 - - - 92 + + col0 * col1 FROM tab0 AS cor0
----
1159
1763
41

query I rowsort
SELECT - col2 * - col0 * - 28 FROM tab1 AS cor0
----
-137088
-140420
-173264

query I rowsort
SELECT DISTINCT + ( col0 ) * - - ( + col0 ) AS col2 FROM tab1
----
2601
7225
8281

onlyif mysql # aggregate syntax: 
query I rowsort label-4997
SELECT ALL + COUNT( ALL + col2 ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-4997
SELECT ALL + COUNT ( ALL + col2 ) AS col0 FROM tab0
----
3

query I rowsort
SELECT DISTINCT - 19 * - - 3 FROM tab0 WHERE NOT NULL >= + col1
----

query III rowsort
SELECT * FROM tab0 WHERE 85 * + 49 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT DISTINCT col0 + 53 * - col1 FROM tab2
----
-2657
-3476
-4017

onlyif mysql # aggregate syntax: 
query I rowsort label-5001
SELECT DISTINCT + COUNT( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5001
SELECT DISTINCT + COUNT ( * ) col0 FROM tab1 AS cor0 WHERE NOT NULL >= col2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5002
SELECT DISTINCT + SUM( ALL - + 20 ) + + 46 - + - ( - + 30 ) AS col1 FROM tab1 AS cor0
----
-44

skipif mysql # not compatible
query I rowsort label-5002
SELECT DISTINCT + SUM ( ALL - + 20 ) + + 46 - + - ( - + 30 ) AS col1 FROM tab1 AS cor0
----
-44

onlyif mysql # aggregate syntax: 
query I rowsort label-5003
SELECT + MAX( - col0 ) + 64 * 39 FROM tab1
----
2445

skipif mysql # not compatible
query I rowsort label-5003
SELECT + MAX ( - col0 ) + 64 * 39 FROM tab1
----
2445

query I rowsort
SELECT - col1 FROM tab0 WHERE - col0 BETWEEN 77 - + col2 AND ( NULL )
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( - 20 * col2 ) BETWEEN ( NULL ) AND + 79
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5006
SELECT - CAST( NULL AS SIGNED ) + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5006
SELECT - CAST ( NULL AS INTEGER ) + + col2 AS col2 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5007
SELECT DISTINCT + 6 DIV - 67 AS col0 FROM tab2
----
0

skipif mysql # not compatible
query I rowsort label-5007
SELECT DISTINCT + 6 / - 67 AS col0 FROM tab2
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5008
SELECT - MAX( 35 ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5008
SELECT - MAX ( 35 ) FROM tab1 WHERE NOT col1 IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5009
SELECT ALL COUNT( * ) DIV + 56 FROM tab1
----
0

skipif mysql # not compatible
query I rowsort label-5009
SELECT ALL COUNT ( * ) / + 56 FROM tab1
----
0

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5010
SELECT COUNT( * ) DIV + 39 col0 FROM tab2
----
0

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5010
SELECT COUNT ( * ) / + 39 col0 FROM tab2
----
0

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5011
SELECT + col0 + col2 / 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-5011
SELECT + col0 + col2 / CAST ( NULL AS INTEGER ) col1 FROM tab2
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: DECIMAL type: 
query III rowsort label-5012
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * + CAST( 0 * + 26 AS DECIMAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif mysql # not compatible
query III rowsort label-5012
SELECT DISTINCT * FROM tab1 WHERE ( - col1 * + CAST ( 0 * + 26 AS REAL ) ) IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + ( + 72 ) BETWEEN - col1 / - col0 AND NULL
----

query I rowsort
SELECT DISTINCT col2 FROM tab2 WHERE + col2 * col1 + col0 * - col0 BETWEEN + ( + col1 ) AND - 46 * col2
----

query I rowsort
SELECT ALL ( ( + col1 ) ) + col2 FROM tab1
----
110
115
64

onlyif mysql # aggregate syntax: 
query I rowsort label-5016
SELECT MAX( 78 ) FROM tab1
----
78

skipif mysql # not compatible
query I rowsort label-5016
SELECT MAX ( 78 ) FROM tab1
----
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5017
SELECT DISTINCT + COUNT( ALL 19 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5017
SELECT DISTINCT + COUNT ( ALL 19 ) FROM tab2
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5018
SELECT ALL * FROM tab2 WHERE col1 + 16 NOT IN ( - CAST( NULL AS SIGNED ) * col1 )
----

skipif mysql # not compatible
query III rowsort label-5018
SELECT ALL * FROM tab2 WHERE col1 + 16 NOT IN ( - CAST ( NULL AS INTEGER ) * col1 )
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) >= 7
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5020
SELECT ALL 73 * CAST( 36 AS SIGNED ) + col2 * - ( 14 - col1 * col1 ) FROM tab0 WHERE NOT 63 + col2 * 89 <= ( NULL )
----

skipif mysql # not compatible
query I rowsort label-5020
SELECT ALL 73 * CAST ( 36 AS INTEGER ) + col2 * - ( 14 - col1 * col1 ) FROM tab0 WHERE NOT 63 + col2 * 89 <= ( NULL )
----

query I rowsort
SELECT + col2 AS col2 FROM tab2 WHERE NOT NULL > + 95 + ( - 29 )
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT col2 col0 FROM tab2 WHERE col1 = ( NULL )
----

query I rowsort
SELECT - col1 + + 4 FROM tab1
----
-1
-10
-43

query I rowsort
SELECT - 15 - col2 FROM tab2
----
-38
-55
-73

onlyif mysql # aggregate syntax: 
query I rowsort label-5025
SELECT - ( + MIN( DISTINCT col0 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51

skipif mysql # not compatible
query I rowsort label-5025
SELECT - ( + MIN ( DISTINCT col0 ) ) AS col0 FROM tab1 WHERE NOT NULL IS NOT NULL
----
-51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5026
SELECT CAST( NULL AS SIGNED ) FROM tab2 WHERE NOT NULL IS NULL
----

skipif mysql # not compatible
query I rowsort label-5026
SELECT CAST ( NULL AS INTEGER ) FROM tab2 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 NOT BETWEEN ( col1 ) AND NULL
----

query I rowsort
SELECT DISTINCT + ( - col1 ) AS col2 FROM tab1 WHERE NOT NULL BETWEEN NULL AND + col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5029
SELECT ALL 6 * + COUNT( * ) FROM tab0 AS cor0
----
18

skipif mysql # not compatible
query I rowsort label-5029
SELECT ALL 6 * + COUNT ( * ) FROM tab0 AS cor0
----
18

onlyif mysql # DIV for integer division: 
query I rowsort label-5030
SELECT ALL + col0 DIV 84 AS col0 FROM tab2 AS cor0 WHERE NOT 94 + + col1 <= + col1
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5030
SELECT ALL + col0 / 84 AS col0 FROM tab2 AS cor0 WHERE NOT 94 + + col1 <= + col1
----
0
0
0

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5031
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( col2 ) ) IN ( col1 / CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5031
SELECT * FROM tab1 AS cor0 WHERE NOT ( + ( col2 ) ) IN ( col1 / CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5032
SELECT ALL - SUM( col1 ) AS col0 FROM tab2 AS cor0
----
-195

skipif mysql # not compatible
query I rowsort label-5032
SELECT ALL - SUM ( col1 ) AS col0 FROM tab2 AS cor0
----
-195

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5033
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST( col0 AS SIGNED ) IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5033
SELECT ALL * FROM tab2 cor0 WHERE NOT - CAST ( col0 AS INTEGER ) IS NOT NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5034
SELECT - + CAST( + COUNT( * ) AS SIGNED ) FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5034
SELECT - + CAST ( + COUNT ( * ) AS INTEGER ) FROM tab0 AS cor0
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5035
SELECT - - 82 * + ( - COUNT( ALL 1 ) ) FROM tab1 cor0
----
-246

skipif mysql # not compatible
query I rowsort label-5035
SELECT - - 82 * + ( - COUNT ( ALL 1 ) ) FROM tab1 cor0
----
-246

query I rowsort
SELECT ( 43 ) AS col0 FROM tab2 AS cor0
----
43
43
43

query I rowsort
SELECT ALL + - ( + 59 ) FROM tab1 AS cor0
----
-59
-59
-59

onlyif mysql # aggregate syntax: 
query I rowsort label-5038
SELECT ALL SUM( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * + col1 )
----
NULL

skipif mysql # not compatible
query I rowsort label-5038
SELECT ALL SUM ( - col0 ) AS col2 FROM tab2 AS cor0 WHERE NULL IN ( - col0 * + col1 )
----
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5039
SELECT DISTINCT + col0 + + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5039
SELECT DISTINCT + col0 + + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL

query I rowsort
SELECT DISTINCT col1 AS col2 FROM tab1 AS cor0 WHERE ( col0 ) BETWEEN ( NULL ) AND + 70
----

query I rowsort
SELECT DISTINCT - AVG ( ALL - 31 ) FROM tab2 WHERE NOT NULL >= col1
----
NULL

query I rowsort
SELECT col0 + + col2 + - col2 FROM tab1
----
51
85
91

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 * 37 ) BETWEEN NULL AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5044
SELECT SUM( 9 ) + + ( COUNT( 65 ) + + COUNT( * ) ) AS col2 FROM tab0
----
33

skipif mysql # not compatible
query I rowsort label-5044
SELECT SUM ( 9 ) + + ( COUNT ( 65 ) + + COUNT ( * ) ) AS col2 FROM tab0
----
33

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5045
SELECT 38 + - 60 + 18 DIV CAST( COUNT( * ) AS SIGNED ) FROM tab2
----
-16

skipif mysql # not compatible
query I rowsort label-5045
SELECT 38 + - 60 + 18 / CAST ( COUNT ( * ) AS INTEGER ) FROM tab2
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5046
SELECT DISTINCT + ( - - COUNT( * ) ) * - 52 FROM tab0
----
-156

skipif mysql # not compatible
query I rowsort label-5046
SELECT DISTINCT + ( - - COUNT ( * ) ) * - 52 FROM tab0
----
-156

onlyif mysql # DIV for integer division: 
query I rowsort label-5047
SELECT 79 DIV - 40 FROM tab2
----
-1
-1
-1

skipif mysql # not compatible
query I rowsort label-5047
SELECT 79 / - 40 FROM tab2
----
-1
-1
-1

query III rowsort
SELECT * FROM tab2 WHERE + 55 * 24 NOT BETWEEN col2 * ( ( 86 ) ) AND NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT + col2 AS col2 FROM tab1 AS cor0 WHERE ( 30 ) <> NULL AND ( - col2 ) IN ( col2 )
----

query I rowsort
SELECT ALL - 78 AS col0 FROM tab2 AS cor0 WHERE NOT ( + col0 ) IS NOT NULL AND + col0 + col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5051
SELECT DISTINCT - COUNT( * ) - 71 AS col0 FROM tab2 AS cor0
----
-74

skipif mysql # not compatible
query I rowsort label-5051
SELECT DISTINCT - COUNT ( * ) - 71 AS col0 FROM tab2 AS cor0
----
-74

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5052
SELECT ALL - - col0 * - col0 * col1 + CAST( + 5 AS SIGNED ) FROM tab1 AS cor0
----
-36120
-36409
-389202

skipif mysql # not compatible
query I rowsort label-5052
SELECT ALL - - col0 * - col0 * col1 + CAST ( + 5 AS INTEGER ) FROM tab1 AS cor0
----
-36120
-36409
-389202

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5053
SELECT + CAST( NULL AS SIGNED ) - col0 col0 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5053
SELECT + CAST ( NULL AS INTEGER ) - col0 col0 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 25 - + - col1 AS col1 FROM tab1
----
30
39
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5055
SELECT ALL COUNT( * ) - - 36 AS col0 FROM tab0
----
39

skipif mysql # not compatible
query I rowsort label-5055
SELECT ALL COUNT ( * ) - - 36 AS col0 FROM tab0
----
39

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5056
SELECT CAST( NULL AS SIGNED ) + - 23 AS col0 FROM tab1 cor0 JOIN tab2 AS cor1 ON NOT - 75 BETWEEN ( NULL ) AND - 41 * CAST( NULL AS SIGNED )
----

skipif mysql # not compatible
query I rowsort label-5056
SELECT CAST ( NULL AS INTEGER ) + - 23 AS col0 FROM tab1 cor0 JOIN tab2 AS cor1 ON NOT - 75 BETWEEN ( NULL ) AND - 41 * CAST ( NULL AS INTEGER )
----

query I rowsort
SELECT DISTINCT - ( ( + 25 ) ) - - 27 AS col2 FROM tab1 WHERE - col0 IS NOT NULL
----
2

query I rowsort
SELECT + 94 AS col0 FROM tab2 cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to b0ffb7527f4fbf44f30945e1ccb58c24

query I rowsort
SELECT - col0 + col2 FROM tab0 AS cor0 WHERE NOT ( NULL ) NOT IN ( + + col1 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5060
SELECT ALL - + col2 DIV - 7 FROM tab0 AS cor0
----
1
14
6

skipif mysql # not compatible
query I rowsort label-5060
SELECT ALL - + col2 / - 7 FROM tab0 AS cor0
----
1
14
6

query I rowsort
SELECT + col1 * - col2 - 48 FROM tab2 AS cor0
----
-1221
-3128
-3934

query I rowsort
SELECT ALL - 24 AS col1 FROM tab2 AS cor0 WHERE NOT - 85 + + - col2 + - col2 >= ( - col1 )
----
-24
-24
-24

query I rowsort
SELECT col0 * - 21 + - + 84 * + col1 FROM tab1 AS cor0
----
-2205
-2247
-5859

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT ( - col1 ) * 78 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5065
SELECT DISTINCT - 33 FROM tab1 AS cor0 WHERE NOT 69 NOT BETWEEN - + 37 AND ( col1 + + CAST( col1 + 43 AS DECIMAL ) )
----
-33

skipif mysql # not compatible
query I rowsort label-5065
SELECT DISTINCT - 33 FROM tab1 AS cor0 WHERE NOT 69 NOT BETWEEN - + 37 AND ( col1 + + CAST ( col1 + 43 AS REAL ) )
----
-33

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + AVG ( ALL col1 ) col0 FROM tab0 AS cor0 WHERE - col0 + - + col2 + - col1 IS NULL
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5067
SELECT ALL - - ( - col0 ) DIV + col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5067
SELECT ALL - - ( - col0 ) / + col0 col1 FROM tab1 AS cor0
----
-1
-1
-1

query II rowsort
SELECT DISTINCT - - 77 AS col0, - 20 AS col0 FROM tab0 AS cor0
----
77
-20

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5069
SELECT + CAST( + col2 AS SIGNED ) DIV + + col2 FROM tab1
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5069
SELECT + CAST ( + col2 AS INTEGER ) / + + col2 FROM tab1
----
1
1
1

onlyif mysql # DIV for integer division: 
query II rowsort label-5070
SELECT col0 * + - col2, 8 DIV 29 AS col1 FROM tab1
----
-4896
0
-5015
0
-6188
0

skipif mysql # not compatible
query II rowsort label-5070
SELECT col0 * + - col2, 8 / 29 AS col1 FROM tab1
----
-4896
0
-5015
0
-6188
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col1 + ( col0 ) <> ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5072
SELECT DISTINCT - COUNT( - 12 ) col2 FROM tab0
----
-3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5072
SELECT DISTINCT - COUNT ( - 12 ) col2 FROM tab0
----
-3

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE ( NULL ) <> col2 * + 87 + + col2
----

query I rowsort
SELECT DISTINCT col1 * + col0 * + col1 AS col2 FROM tab2
----
119646
336675
379456

query III rowsort
SELECT * FROM tab1 WHERE NOT - - col0 > NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 col1 FROM tab1 WHERE NULL <= - - col0 * + 93 * - col2 + 28
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5077
SELECT - COUNT( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( + + col2 ) )
----
0

skipif mysql # not compatible
query I rowsort label-5077
SELECT - COUNT ( * ) AS col2 FROM tab2 AS cor0 WHERE NOT NULL NOT IN ( + ( + + col2 ) )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5078
SELECT - 33 * - COUNT( * ) FROM tab2 cor0
----
99

skipif mysql # not compatible
query I rowsort label-5078
SELECT - 33 * - COUNT ( * ) FROM tab2 cor0
----
99

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE ( ( col0 ) <> 52 + + col2 )
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT col2 / - 85 + col0 FROM tab0 AS cor0 WHERE NOT NULL IS NULL
----

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT 51 + + + 92 NOT BETWEEN ( - col2 ) AND ( - 54 )
----

query I rowsort
SELECT ALL - col2 + - + col1 AS col1 FROM tab0
----
-100
-128
-31

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL - 72 AS col2, col1 col0 FROM tab2 AS cor0 WHERE + col2 >= ( NULL )
----

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE col0 * col0 IS NULL
----

query I rowsort
SELECT DISTINCT - - 9 + - + 72 AS col2 FROM tab1 AS cor0
----
-63

query I rowsort
SELECT ALL - col0 * col2 + + col1 * - 81 + + - 15 * col1 AS col2 FROM tab1 AS cor0
----
-10700
-5495
-6240

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5087
SELECT DISTINCT - CAST( NULL AS SIGNED ) + + 42 FROM tab0 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5087
SELECT DISTINCT - CAST ( NULL AS INTEGER ) + + 42 FROM tab0 AS cor0
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5088
SELECT + + SUM( - col2 ) FROM tab1 cor0
----
-223

skipif mysql # not compatible
query I rowsort label-5088
SELECT + + SUM ( - col2 ) FROM tab1 cor0
----
-223

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5089
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( - CAST( NULL AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5089
SELECT * FROM tab0 AS cor0 WHERE ( col0 ) NOT IN ( - CAST ( NULL AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5090
SELECT + 71 * + - COUNT( * ) FROM tab2 AS cor0
----
-213

skipif mysql # not compatible
query I rowsort label-5090
SELECT + 71 * + - COUNT ( * ) FROM tab2 AS cor0
----
-213

onlyif mysql # DIV for integer division: 
query I rowsort label-5091
SELECT ALL + col0 DIV + + col2 + - 37 AS col1 FROM tab2 AS cor0
----
-35
-36
-36

skipif mysql # not compatible
query I rowsort label-5091
SELECT ALL + col0 / + + col2 + - 37 AS col1 FROM tab2 AS cor0
----
-35
-36
-36

onlyif mysql # aggregate syntax: 
query I rowsort label-5092
SELECT - MIN( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-46

skipif mysql # not compatible
query I rowsort label-5092
SELECT - MIN ( DISTINCT col0 ) AS col0 FROM tab2 AS cor0
----
-46

query I rowsort
SELECT ALL + col2 * col0 + + col1 + - - col0 * + - col0 FROM tab2 AS cor0
----
-1007
-1208
-1459

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT - - col2 NOT BETWEEN - + col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5095
SELECT 86 - - COUNT( ALL - + col0 ) col2 FROM tab1
----
89

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5095
SELECT 86 - - COUNT ( ALL - + col0 ) col2 FROM tab1
----
89

query I rowsort
SELECT ALL - 1 FROM tab2 WHERE NOT NULL IS NOT NULL
----
-1
-1
-1

query III rowsort
SELECT * FROM tab0 WHERE - ( col2 ) * + - col1 NOT BETWEEN NULL AND NULL
----

query III rowsort
SELECT * FROM tab1 WHERE ( NOT NULL BETWEEN ( col2 ) AND ( - col2 ) )
----

query I rowsort
SELECT + ( - 68 ) + 86 + + + col1 AS col2 FROM tab2
----
69
85
95

query I rowsort
SELECT - - 32 + col1 FROM tab1 AS cor0
----
37
46
79

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5101
SELECT DISTINCT + SUM( + 77 ) * - CAST( NULL AS SIGNED ) + CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5101
SELECT DISTINCT + SUM ( + 77 ) * - CAST ( NULL AS INTEGER ) + CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0 WHERE NOT NULL = NULL
----
NULL

query I rowsort
SELECT ALL - 77 - col2 AS col2 FROM tab1 AS cor0
----
-136
-145
-173

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col0 * - + col1 + 50 col2 FROM tab2 AS cor0
----
2396
4978
5075

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5104
SELECT + MAX( + + col2 ) DIV + 39 FROM tab0 AS cor0
----
2

skipif mysql # not compatible
query I rowsort label-5104
SELECT + MAX ( + + col2 ) / + 39 FROM tab0 AS cor0
----
2

query II rowsort
SELECT + - col0 AS col2, 27 AS col1 FROM tab2 cor0
----
-46
27
-64
27
-75
27

query III rowsort
SELECT ALL * FROM tab0 cor0 WHERE ( - col2 * + 91 * col0 ) IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT ALL + ( - col2 ) * - - col0 AS col0 FROM tab0
----
-705
-870
-9603

query I rowsort
SELECT + 50 AS col1 FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
9 values hashing to dea2d1b74e0cdf67806af8c417324f52

onlyif mysql # aggregate syntax: 
query I rowsort label-5109
SELECT ALL + - COUNT( DISTINCT + + 87 ) AS col0 FROM tab0 AS cor0
----
-1

skipif mysql # not compatible
query I rowsort label-5109
SELECT ALL + - COUNT ( DISTINCT + + 87 ) AS col0 FROM tab0 AS cor0
----
-1

query III rowsort
SELECT * FROM tab2 cor0 WHERE NOT col1 * col2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5111
SELECT - COUNT( * ) * + 86 AS col2 FROM tab2 AS cor0
----
-258

skipif mysql # not compatible
query I rowsort label-5111
SELECT - COUNT ( * ) * + 86 AS col2 FROM tab2 AS cor0
----
-258

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5112
SELECT ALL + CAST( NULL AS SIGNED ) AS col0, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

skipif mysql # not compatible
query II rowsort label-5112
SELECT ALL + CAST ( NULL AS INTEGER ) AS col0, col1 FROM tab2
----
NULL
51
NULL
67
NULL
77

query I rowsort
SELECT - 13 + - + col0 FROM tab2
----
-59
-77
-88

query I rowsort
SELECT - col2 - - col0 FROM tab0 WHERE NOT - 2 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5115
SELECT + MIN( + ( - 49 ) ) FROM tab1
----
-49

skipif mysql # not compatible
query I rowsort label-5115
SELECT + MIN ( + ( - 49 ) ) FROM tab1
----
-49

query I rowsort
SELECT DISTINCT - col2 AS col2 FROM tab0 WHERE col0 IS NOT NULL
----
-10
-47
-99

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5117
SELECT + col2 * + col1 + + 27 AS col2 FROM tab2 WHERE NOT + CAST( NULL AS SIGNED ) IS NOT NULL
----
1200
3107
3913

skipif mysql # not compatible
query I rowsort label-5117
SELECT + col2 * + col1 + + 27 AS col2 FROM tab2 WHERE NOT + CAST ( NULL AS INTEGER ) IS NOT NULL
----
1200
3107
3913

onlyif mysql # DIV for integer division: 
query I rowsort label-5118
SELECT ALL col0 DIV 12 AS col0 FROM tab0
----
1
7
8

skipif mysql # not compatible
query I rowsort label-5118
SELECT ALL col0 / 12 AS col0 FROM tab0
----
1
7
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5119
SELECT MIN( DISTINCT + 92 ) AS col0 FROM tab2
----
92

skipif mysql # not compatible
query I rowsort label-5119
SELECT MIN ( DISTINCT + 92 ) AS col0 FROM tab2
----
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5120
SELECT DISTINCT col0 + - + CAST( NULL AS SIGNED ) col0 FROM tab2
----
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5120
SELECT DISTINCT col0 + - + CAST ( NULL AS INTEGER ) col0 FROM tab2
----
NULL

query I rowsort
SELECT - + col0 / + 27 + - col0 FROM tab1 AS cor0 WHERE NOT - 86 IS NOT NULL
----

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL > 93 + + ( 51 )
----

query I rowsort
SELECT DISTINCT - + 41 * + 89 AS col0 FROM tab2 cor0
----
-3649

query I rowsort
SELECT DISTINCT + 60 * + col2 FROM tab2 cor0
----
1380
2400
3480

query I rowsort
SELECT DISTINCT - 55 AS col0 FROM tab2 AS cor0 CROSS JOIN tab2 cor1
----
-55

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL + col1 + col1, - 89 + + col1 col0 FROM tab0 AS cor0
----
162
-8
2
-88
42
-68

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5127
SELECT SUM( ALL - CAST( NULL AS SIGNED ) ) + - 37 AS col0 FROM tab2 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5127
SELECT SUM ( ALL - CAST ( NULL AS INTEGER ) ) + - 37 AS col0 FROM tab2 cor0
----
NULL

query I rowsort
SELECT ALL + 63 * - col0 + col2 * + 42 AS col0 FROM tab2 AS cor0
----
-1932
-2289
-2352

query I rowsort
SELECT DISTINCT + + 38 + 2 * - col2 AS col1 FROM tab2 AS cor0
----
-42
-78
-8

query I rowsort
SELECT DISTINCT - - 88 AS col2 FROM tab1 AS cor0 WHERE - col2 >= - + 59
----
88

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5131
SELECT ALL + col1 * col1 + 2 FROM tab0 AS cor0 WHERE + col0 > - col2 / - col1 OR NOT - 89 / col2 > CAST( + col0 AS SIGNED ) + col1
----
3
443
6563

skipif mysql # not compatible
query I rowsort label-5131
SELECT ALL + col1 * col1 + 2 FROM tab0 AS cor0 WHERE + col0 > - col2 / - col1 OR NOT - 89 / col2 > CAST ( + col0 AS INTEGER ) + col1
----
3
443
6563

query I rowsort
SELECT DISTINCT 60 FROM tab2 WHERE NOT + col2 + - - 68 * col1 <= ( NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5133
SELECT DISTINCT MAX( DISTINCT + + 1 ) AS col1 FROM tab2
----
1

skipif mysql # not compatible
query I rowsort label-5133
SELECT DISTINCT MAX ( DISTINCT + + 1 ) AS col1 FROM tab2
----
1

onlyif mysql # aggregate syntax: 
query I rowsort label-5134
SELECT ALL COUNT( * ) - + - COUNT( + col1 ) FROM tab2
----
6

skipif mysql # not compatible
query I rowsort label-5134
SELECT ALL COUNT ( * ) - + - COUNT ( + col1 ) FROM tab2
----
6

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT 63 col1, - col0 AS col2 FROM tab1
----
63
-51
63
-85
63
-91

query I rowsort
SELECT DISTINCT - + col1 AS col0 FROM tab1 WHERE - + col2 IS NOT NULL
----
-14
-47
-5

onlyif mysql # aggregate syntax: 
query I rowsort label-5137
SELECT ( SUM( - col2 ) ) AS col1 FROM tab2
----
-121

skipif mysql # not compatible
query I rowsort label-5137
SELECT ( SUM ( - col2 ) ) AS col1 FROM tab2
----
-121

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5138
SELECT - COUNT( * ) AS col0 FROM tab0 WHERE - CAST( - + ( + col1 ) AS SIGNED ) / - col1 * col2 + + + ( - + col2 ) * + ( + 53 ) IS NOT NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5138
SELECT - COUNT ( * ) AS col0 FROM tab0 WHERE - CAST ( - + ( + col1 ) AS INTEGER ) / - col1 * col2 + + + ( - + col2 ) * + ( + 53 ) IS NOT NULL
----
-3

onlyif mysql # aggregate syntax: 
query I rowsort label-5139
SELECT DISTINCT SUM( ALL - 65 ) AS col2 FROM tab0
----
-195

skipif mysql # not compatible
query I rowsort label-5139
SELECT DISTINCT SUM ( ALL - 65 ) AS col2 FROM tab0
----
-195

onlyif mysql # DIV for integer division: 
query I rowsort label-5140
SELECT ALL - col2 DIV 94 - + col0 + - col0 * + col0 AS col0 FROM tab0
----
-240
-7656
-9507

skipif mysql # not compatible
query I rowsort label-5140
SELECT ALL - col2 / 94 - + col0 + - col0 * + col0 AS col0 FROM tab0
----
-240
-7656
-9507

query II rowsort
SELECT - col2, 75 + - + 97 AS col2 FROM tab2
----
-23
-22
-40
-22
-58
-22

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5142
SELECT DISTINCT CAST( - - col0 AS SIGNED ) FROM tab2
----
46
64
75

skipif mysql # not compatible
query I rowsort label-5142
SELECT DISTINCT CAST ( - - col0 AS INTEGER ) FROM tab2
----
46
64
75

query III rowsort
SELECT * FROM tab0 WHERE - - 29 - - + col1 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5144
SELECT + - MIN( ALL - col1 ) FROM tab2 AS cor0
----
77

skipif mysql # not compatible
query I rowsort label-5144
SELECT + - MIN ( ALL - col1 ) FROM tab2 AS cor0
----
77

query I rowsort
SELECT - 36 AS col1 FROM tab1 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to afecaf209e79e23b6674a73fffa3e837

query II rowsort
SELECT col0, ( + + ( col1 ) ) AS col1 FROM tab1
----
51
14
85
5
91
47

onlyif mysql # aggregate syntax: 
query I rowsort label-5147
SELECT ALL - COUNT( * ) * + 98 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-882

skipif mysql # not compatible
query I rowsort label-5147
SELECT ALL - COUNT ( * ) * + 98 FROM tab0 AS cor0 CROSS JOIN tab0 cor1
----
-882

query I rowsort
SELECT - col1 - - 32 AS col0 FROM tab2 AS cor0 WHERE NOT NULL IS NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT DISTINCT + 77 col2, + col1 FROM tab2 AS cor0
----
77
51
77
67
77
77

query I rowsort
SELECT + 36 + 50 AS col2 FROM tab0 AS cor0 WHERE NOT - col0 = NULL AND NOT ( NULL ) < NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5151
SELECT - + COUNT( * ) * - 84 * 61 AS col0 FROM tab0 AS cor0
----
15372

skipif mysql # not compatible
query I rowsort label-5151
SELECT - + COUNT ( * ) * - 84 * 61 AS col0 FROM tab0 AS cor0
----
15372

query I rowsort
SELECT + + 56 * + 73 AS col0 FROM tab1 AS cor0
----
4088
4088
4088

onlyif mysql # aggregate syntax: 
query I rowsort label-5153
SELECT - 42 * 48 * + COUNT( * ) FROM tab0 AS cor0
----
-6048

skipif mysql # not compatible
query I rowsort label-5153
SELECT - 42 * 48 * + COUNT ( * ) FROM tab0 AS cor0
----
-6048

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5154
SELECT col2 * - col1 * - + CAST( + col1 AS DECIMAL ) + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

skipif mysql # not compatible
query I rowsort label-5154
SELECT col2 * - col1 * - + CAST ( + col1 AS REAL ) + col0 AS col1 FROM tab1 AS cor0 WHERE NOT NULL <= NULL
----

query I rowsort
SELECT DISTINCT + - col0 * + 93 * - col1 FROM tab0 AS cor0
----
112995
169911
9021

query I rowsort
SELECT ALL - + col0 * - - col1 * + ( - 90 ) FROM tab2 AS cor0
----
211140
443520
452250

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5157
SELECT - col1 / - col2 * + + ( col2 ) * col0 - CAST( NULL AS DECIMAL ) FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5157
SELECT - col1 / - col2 * + + ( col2 ) * col0 - CAST ( NULL AS REAL ) FROM tab0
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5158
SELECT ALL 4 * COUNT( * ) FROM tab0
----
12

skipif mysql # not compatible
query I rowsort label-5158
SELECT ALL 4 * COUNT ( * ) FROM tab0
----
12

query III rowsort
SELECT ALL * FROM tab1 WHERE - col2 + + + col0 IS NULL
----

query I rowsort
SELECT DISTINCT col2 + - 87 AS col0 FROM tab1
----
-19
-28
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5161
SELECT DISTINCT + + col2 + + col2 + + 61 + - col2 * 59 * + CAST( NULL AS SIGNED ) / - + col1 + col0 * + col0 * + + 73 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query I rowsort label-5161
SELECT DISTINCT + + col2 + + col2 + + 61 + - col2 * 59 * + CAST ( NULL AS INTEGER ) / - + col1 + col0 * + col0 * + + 73 AS col1 FROM tab1 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT - + col0 / - 57 AS col2 FROM tab0 AS cor0 WHERE NULL >= col1 / - + col1
----

query I rowsort
SELECT + 78 + + + ( - col1 ) + col2 FROM tab2 AS cor0
----
41
50
69

query I rowsort
SELECT + 82 + - - col1 * col2 * col2 * - + col2 FROM tab1 cor0
----
-1026813
-12386222
-14778222

query I rowsort
SELECT ( - 1 ) + + col0 FROM tab2 AS cor0
----
45
63
74

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5166
SELECT ALL - CAST( NULL AS DECIMAL ) + - SUM( ALL - 54 ) AS col1 FROM tab1 AS cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5166
SELECT ALL - CAST ( NULL AS REAL ) + - SUM ( ALL - 54 ) AS col1 FROM tab1 AS cor0
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5167
SELECT ALL + COUNT( * ) * - - CAST( NULL AS SIGNED ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5167
SELECT ALL + COUNT ( * ) * - - CAST ( NULL AS INTEGER ) FROM tab1 AS cor0 WHERE NULL IS NOT NULL
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5168
SELECT - COUNT( * ) + - MAX( - col2 ) * 21 AS col2 FROM tab0 AS cor0
----
207

skipif mysql # not compatible
query I rowsort label-5168
SELECT - COUNT ( * ) + - MAX ( - col2 ) * 21 AS col2 FROM tab0 AS cor0
----
207

query I rowsort
SELECT 4 FROM tab0 WHERE col2 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5170
SELECT + - CAST( NULL AS SIGNED ) AS col0, 43 AS col1 FROM tab0 cor0
----
NULL
43
NULL
43
NULL
43

skipif mysql # not compatible
query II rowsort label-5170
SELECT + - CAST ( NULL AS INTEGER ) AS col0, 43 AS col1 FROM tab0 cor0
----
NULL
43
NULL
43
NULL
43

query III rowsort
SELECT * FROM tab1 cor0 WHERE + 88 + + col0 < col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5172
SELECT + COUNT( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5172
SELECT + COUNT ( DISTINCT - col2 ) col1 FROM tab1 AS cor0
----
3

query I rowsort
SELECT DISTINCT - 83 + - - col0 FROM tab2 AS cor0
----
-19
-37
-8

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5174
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( 79 + + CAST( + + 0 AS SIGNED ) )
----

skipif mysql # not compatible
query III rowsort label-5174
SELECT ALL * FROM tab2 cor0 WHERE NULL NOT IN ( 79 + + CAST ( + + 0 AS INTEGER ) )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5175
SELECT COUNT( * ) - + 14 AS col1 FROM tab1 AS cor0
----
-11

skipif mysql # not compatible
query I rowsort label-5175
SELECT COUNT ( * ) - + 14 AS col1 FROM tab1 AS cor0
----
-11

query I rowsort
SELECT - - col1 - - col0 AS col1 FROM tab0 cor0
----
108
96
98

query I rowsort
SELECT + + col2 FROM tab0 WHERE - + col2 IS NOT NULL
----
10
47
99

query I rowsort
SELECT + 76 - + col1 + - + col0 FROM tab0
----
-20
-22
-32

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5179
SELECT col2 * col1 / CAST( NULL AS SIGNED ) FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5179
SELECT col2 * col1 / CAST ( NULL AS INTEGER ) FROM tab1
----
NULL
NULL
NULL

query II rowsort
SELECT col1 AS col0, col0 AS col0 FROM tab2 AS cor0 WHERE NOT ( - col1 ) BETWEEN NULL AND + col0 / col0 + 36
----

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NULL >= col2 * col1
----

query II rowsort
SELECT ALL + 58 AS col1, + col0 FROM tab1 WHERE NULL <= NULL
----

query I rowsort
SELECT - 12 FROM tab0 WHERE NOT NULL IS NOT NULL
----
-12
-12
-12

query I rowsort
SELECT + 15 * + col0 AS col2 FROM tab1 AS cor0
----
1275
1365
765

query I rowsort
SELECT - ( - + 52 ) * ( - 26 ) FROM tab0 AS cor0
----
-1352
-1352
-1352

onlyif mysql # aggregate syntax: 
query I rowsort label-5186
SELECT ALL MAX( 25 ) * + + COUNT( * ) + - 74 + - - 3 + - + SUM( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
70

skipif mysql # not compatible
query I rowsort label-5186
SELECT ALL MAX ( 25 ) * + + COUNT ( * ) + - 74 + - - 3 + - + SUM ( ALL - col1 ) AS col0 FROM tab1 AS cor0
----
70

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5187
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 44 / col2 BETWEEN + 74 + + 60 - + CAST( - - col1 AS SIGNED ) AND NULL
----
14
47
5

skipif mysql # not compatible
query I rowsort label-5187
SELECT col1 AS col2 FROM tab1 AS cor0 WHERE NOT - 44 / col2 BETWEEN + 74 + + 60 - + CAST ( - - col1 AS INTEGER ) AND NULL
----
14
47
5

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT col2 / + col0 * + + col2 IS NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 * + col2 FROM tab1 cor0 WHERE NOT 35 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query II rowsort label-5190
SELECT DISTINCT col1 AS col1, col2 DIV col0 * - + 10 + - + col1 FROM tab0
----
1
-11
21
-21
81
-111

skipif mysql # not compatible
query II rowsort label-5190
SELECT DISTINCT col1 AS col1, col2 / col0 * - + 10 + - + col1 FROM tab0
----
1
-11
21
-21
81
-111

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5191
SELECT ALL - 20 * - ( - - 18 ) * + - col1 * + CAST( + 12 AS SIGNED ) FROM tab0
----
-349920
-4320
-90720

skipif mysql # not compatible
query I rowsort label-5191
SELECT ALL - 20 * - ( - - 18 ) * + - col1 * + CAST ( + 12 AS INTEGER ) FROM tab0
----
-349920
-4320
-90720

query I rowsort
SELECT 82 + - 10 FROM tab1
----
72
72
72

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - 29 IN ( + ( + col1 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5194
SELECT ALL COUNT( * ) AS col0 FROM tab1 WHERE NOT - col2 <> + + col1
----
0

skipif mysql # not compatible
query I rowsort label-5194
SELECT ALL COUNT ( * ) AS col0 FROM tab1 WHERE NOT - col2 <> + + col1
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5195
SELECT DISTINCT - MIN( DISTINCT col2 ) col1 FROM tab1
----
-59

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5195
SELECT DISTINCT - MIN ( DISTINCT col2 ) col1 FROM tab1
----
-59

query II rowsort
SELECT DISTINCT + 5 AS col2, 92 AS col0 FROM tab2
----
5
92

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5197
SELECT CAST( - 89 AS SIGNED ) AS col2 FROM tab1
----
-89
-89
-89

skipif mysql # not compatible
query I rowsort label-5197
SELECT CAST ( - 89 AS INTEGER ) AS col2 FROM tab1
----
-89
-89
-89

onlyif mysql # aggregate syntax: 
query I rowsort label-5198
SELECT + COUNT( ALL + col1 ) AS col1 FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5198
SELECT + COUNT ( ALL + col1 ) AS col1 FROM tab2
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT col1, + col1 col1 FROM tab0 AS cor0
----
1
1
21
21
81
81

query I rowsort
SELECT + 85 + + - 9 + + - col2 FROM tab2
----
18
36
53

query I rowsort
SELECT - 47 / + 46 FROM tab2 AS cor0 WHERE - ( - 74 ) >= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5202
SELECT ALL + 4 * - MIN( DISTINCT - col1 ) FROM tab0 AS cor0
----
324

skipif mysql # not compatible
query I rowsort label-5202
SELECT ALL + 4 * - MIN ( DISTINCT - col1 ) FROM tab0 AS cor0
----
324

query I rowsort
SELECT - - 54 + + - 6 + col1 FROM tab2 AS cor0
----
115
125
99

onlyif mysql # DIV for integer division: 
query I rowsort label-5204
SELECT ALL + - 74 DIV - - 38 + - ( - - col0 ) - + + col0 FROM tab1 AS cor0
----
-103
-171
-183

skipif mysql # not compatible
query I rowsort label-5204
SELECT ALL + - 74 / - - 38 + - ( - - col0 ) - + + col0 FROM tab1 AS cor0
----
-103
-171
-183

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5205
SELECT ALL col2 + - col0 * - - CAST( NULL AS SIGNED ) * - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5205
SELECT ALL col2 + - col0 * - - CAST ( NULL AS INTEGER ) * - - col1 FROM tab1 cor0
----
NULL
NULL
NULL

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5206
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL = + CAST( + ( + - col0 ) AS SIGNED ) * col0 * - 58 + - col0 + - col1
----

skipif mysql # not compatible
query I rowsort label-5206
SELECT ALL + - col0 FROM tab1 AS cor0 WHERE NULL = + CAST ( + ( + - col0 ) AS INTEGER ) * col0 * - 58 + - col0 + - col1
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5207
SELECT DISTINCT + COUNT( * ) + - COUNT( * ) + 28 * - COUNT( * ) AS col1 FROM tab1 AS cor0
----
-84

skipif mysql # not compatible
query I rowsort label-5207
SELECT DISTINCT + COUNT ( * ) + - COUNT ( * ) + 28 * - COUNT ( * ) AS col1 FROM tab1 AS cor0
----
-84

onlyif mysql # aggregate syntax: 
query I rowsort label-5208
SELECT ALL + + COUNT( * ) + - COUNT( * ) * + COUNT( * ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5208
SELECT ALL + + COUNT ( * ) + - COUNT ( * ) * + COUNT ( * ) FROM tab1 AS cor0
----
-6

query I rowsort
SELECT ALL - col0 - - col2 FROM tab0 cor0
----
-77
2
32

query I rowsort
SELECT ALL + col0 * - col1 AS col0 FROM tab2 AS cor0 WHERE col1 IS NULL
----

query II rowsort
SELECT DISTINCT - col1 + - col1 + ( ( col0 ) ) * 53 * 0 - + col0, col0 FROM tab0 AS cor0
----
-129
87
-177
15
-99
97

onlyif mysql # aggregate syntax: 
query I rowsort label-5212
SELECT ALL COUNT( * ) + 89 FROM tab2 AS cor0
----
92

skipif mysql # not compatible
query I rowsort label-5212
SELECT ALL COUNT ( * ) + 89 FROM tab2 AS cor0
----
92

onlyif mysql # aggregate syntax: 
query I rowsort label-5213
SELECT ALL MIN( - ( - ( - 70 ) ) ) AS col2 FROM tab2, tab2 AS cor0
----
-70

skipif mysql # not compatible
query I rowsort label-5213
SELECT ALL MIN ( - ( - ( - 70 ) ) ) AS col2 FROM tab2, tab2 AS cor0
----
-70

query II rowsort
SELECT - col0 AS col0, 90 + col2 AS col0 FROM tab0
----
-15
137
-87
100
-97
189

query I rowsort
SELECT ( - 8 ) * + 60 + + col1 FROM tab1
----
-433
-466
-475

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT ( NULL ) NOT IN ( + col0, + col0 + + + 19 * + 92, ( + col1 ) )
----

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5217
SELECT CAST( NULL AS DECIMAL ) * - col1 col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5217
SELECT CAST ( NULL AS REAL ) * - col1 col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + 70 * 54 AS col2 FROM tab0 AS cor0
----
3780
3780
3780

query II rowsort
SELECT col2, col2 * - 42 + + col0 AS col2 FROM tab2 AS cor0
----
23
-920
40
-1616
58
-2361

query II rowsort
SELECT DISTINCT + - col2 AS col2, + col2 AS col0 FROM tab0 AS cor0
----
-10
10
-47
47
-99
99

onlyif mysql # aggregate syntax: 
query I rowsort label-5221
SELECT - MIN( DISTINCT + - col2 ) AS col1 FROM tab1
----
96

skipif mysql # not compatible
query I rowsort label-5221
SELECT - MIN ( DISTINCT + - col2 ) AS col1 FROM tab1
----
96

onlyif mysql # DIV for integer division: 
query I rowsort label-5222
SELECT ALL col1 DIV 8 AS col0 FROM tab0 AS cor0
----
0
10
2

skipif mysql # not compatible
query I rowsort label-5222
SELECT ALL col1 / 8 AS col0 FROM tab0 AS cor0
----
0
10
2

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT ( - col0 IN ( + 69 * - col0 + col0 * - - 43 ) )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

onlyif mysql # aggregate syntax: 
query I rowsort label-5224
SELECT + SUM( - - 76 ) AS col0 FROM tab2 AS cor0
----
228

skipif mysql # not compatible
query I rowsort label-5224
SELECT + SUM ( - - 76 ) AS col0 FROM tab2 AS cor0
----
228

onlyif mysql # aggregate syntax: 
query I rowsort label-5225
SELECT - - COUNT( * ) * - 24 FROM tab0 AS cor0
----
-72

skipif mysql # not compatible
query I rowsort label-5225
SELECT - - COUNT ( * ) * - 24 FROM tab0 AS cor0
----
-72

query III rowsort
SELECT * FROM tab2 WHERE + 87 IS NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5227
SELECT ALL + CAST( NULL AS SIGNED ) * - col2 col2 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5227
SELECT ALL + CAST ( NULL AS INTEGER ) * - col2 col2 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5228
SELECT 21 DIV + 90 AS col0 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5228
SELECT 21 / + 90 AS col0 FROM tab0
----
0
0
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5229
SELECT DISTINCT + MAX( 26 ) * 25 AS col0 FROM tab1
----
650

skipif mysql # not compatible
query I rowsort label-5229
SELECT DISTINCT + MAX ( 26 ) * 25 AS col0 FROM tab1
----
650

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE ( - - 28 ) > 37 - + 84 + + + 61
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE + col0 / + 51 + - col1 - 74 IS NOT NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT 93 + col2 + - - col0 * - col2 * - 47 FROM tab0 AS cor0
----
33275
40993
451533

query I rowsort
SELECT 44 + col1 AS col2 FROM tab2 AS cor0
----
111
121
95

query III rowsort
SELECT DISTINCT * FROM tab1 WHERE 97 - + col2 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

onlyif mysql # aggregate syntax: 
query I rowsort label-5235
SELECT DISTINCT - + MAX( ALL + col0 ) FROM tab0 AS cor0
----
-97

skipif mysql # not compatible
query I rowsort label-5235
SELECT DISTINCT - + MAX ( ALL + col0 ) FROM tab0 AS cor0
----
-97

query I rowsort
SELECT + + col0 AS col0 FROM tab1 AS cor0 WHERE col2 * 5 + 53 + col1 * - + col0 * - 92 * - - col0 IS NOT NULL
----
51
85
91

query I rowsort
SELECT DISTINCT + col2 + + col2 * col2 AS col0 FROM tab2 AS cor0
----
1640
3422
552

onlyif mysql # aggregate syntax: 
query II rowsort label-5238
SELECT + 22 AS col2, MIN( ALL + 79 ) FROM tab1 AS cor0
----
22
79

skipif mysql # not compatible
query II rowsort label-5238
SELECT + 22 AS col2, MIN ( ALL + 79 ) FROM tab1 AS cor0
----
22
79

query II rowsort
SELECT - - 37, + col0 * + - col0 + + col2 AS col2 FROM tab2 cor0
----
37
-2093
37
-4056
37
-5567

query I rowsort
SELECT DISTINCT - + ( + ( + + col1 ) ) AS col2 FROM tab0 AS cor0
----
-1
-21
-81

query I rowsort
SELECT ALL col0 * ( + + col2 ) FROM tab2
----
1058
2560
4350

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + 58 col2 FROM tab1
----
58

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL > + - col0 * col1
----

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col1 >= - + 83 - - - 44
----

query III rowsort
SELECT * FROM tab2 WHERE NOT - 54 + + 41 / - col0 * + 46 <= - 44
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5246
SELECT 99 * + + COUNT( * ) FROM tab1
----
297

skipif mysql # not compatible
query I rowsort label-5246
SELECT 99 * + + COUNT ( * ) FROM tab1
----
297

query I rowsort
SELECT DISTINCT ( + 1 ) * 72 AS col0 FROM tab2
----
72

onlyif mysql # aggregate syntax: 
query I rowsort label-5248
SELECT COUNT( * ) * - 58 FROM tab1 AS cor0
----
-174

skipif mysql # not compatible
query I rowsort label-5248
SELECT COUNT ( * ) * - 58 FROM tab1 AS cor0
----
-174

query I rowsort
SELECT DISTINCT 33 * col1 * + - 52 + - col0 FROM tab2 AS cor0
----
-115047
-132196
-87562

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5250
SELECT ALL + COUNT( * ) DIV + 80 FROM tab1 AS cor0
----
0

skipif mysql # not compatible
query I rowsort label-5250
SELECT ALL + COUNT ( * ) / + 80 FROM tab1 AS cor0
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5251
SELECT - + MAX( DISTINCT - 96 ) FROM tab1 AS cor0
----
96

skipif mysql # not compatible
query I rowsort label-5251
SELECT - + MAX ( DISTINCT - 96 ) FROM tab1 AS cor0
----
96

query I rowsort
SELECT - + 0 AS col1 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 8b75136b2b51c77345c03804ec1cda5c

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT 78 * - col0 col2 FROM tab0
----
-1170
-6786
-7566

query II rowsort
SELECT col2, col1 * - ( + col2 ) FROM tab0
----
10
-210
47
-3807
99
-99

query I rowsort
SELECT DISTINCT col2 * 73 * - col1 + 64 FROM tab0
----
-15266
-277847
-7163

onlyif mysql # CAST syntax: DECIMAL type: 
query II rowsort label-5256
SELECT ALL + col0 AS col0, CAST( NULL AS DECIMAL ) - - col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

skipif mysql # not compatible
query II rowsort label-5256
SELECT ALL + col0 AS col0, CAST ( NULL AS REAL ) - - col2 FROM tab2 AS cor0
----
46
NULL
64
NULL
75
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5257
SELECT + MIN( - col2 ) * - - 84 AS col2 FROM tab2 AS cor0
----
-4872

skipif mysql # not compatible
query I rowsort label-5257
SELECT + MIN ( - col2 ) * - - 84 AS col2 FROM tab2 AS cor0
----
-4872

query I rowsort
SELECT DISTINCT 17 FROM tab1 AS cor0 WHERE NULL > NULL
----

query I rowsort
SELECT + 93 + col0 FROM tab2 AS cor0
----
139
157
168

query II rowsort
SELECT DISTINCT + ( - + col2 ), 80 - + col2 AS col2 FROM tab1
----
-59
21
-68
12
-96
-16

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - 72 col2 FROM tab0
----
-72

query I rowsort
SELECT DISTINCT + - 23 FROM tab2 WHERE NOT ( NOT NULL NOT BETWEEN col1 AND col2 )
----

query II rowsort
SELECT + col2 * col2 AS col1, 91 * col2 AS col0 FROM tab0
----
100
910
2209
4277
9801
9009

query I rowsort
SELECT - ( - + 61 ) AS col1 FROM tab2 WHERE NULL BETWEEN NULL AND - - 48
----

query I rowsort
SELECT - col0 * + + 10 FROM tab0
----
-150
-870
-970

onlyif mysql # aggregate syntax: 
query I rowsort label-5266
SELECT + + ( + - MIN( DISTINCT - col1 ) ) FROM tab1 cor0
----
47

skipif mysql # not compatible
query I rowsort label-5266
SELECT + + ( + - MIN ( DISTINCT - col1 ) ) FROM tab1 cor0
----
47

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5267
SELECT ALL + col2 * CAST( col0 AS SIGNED ) + - col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

skipif mysql # not compatible
query I rowsort label-5267
SELECT ALL + col2 * CAST ( col0 AS INTEGER ) + - col2 AS col1 FROM tab2 AS cor0
----
1035
2520
4292

onlyif mysql # aggregate syntax: 
query I rowsort label-5268
SELECT DISTINCT MIN( ALL col2 ) * - 33 + COUNT( * ) + - COUNT( * ) AS col2 FROM tab2 AS cor0
----
-759

skipif mysql # not compatible
query I rowsort label-5268
SELECT DISTINCT MIN ( ALL col2 ) * - 33 + COUNT ( * ) + - COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-759

query I rowsort
SELECT col0 + 26 + col2 + + col2 FROM tab2
----
118
170
217

query I rowsort
SELECT ALL + col2 + - - col1 AS col1 FROM tab2 WHERE NOT NULL < NULL
----

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT - col2 - col0 IS NULL
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query II rowsort
SELECT ALL 20 AS col2, + col1 FROM tab1 AS cor0
----
20
14
20
47
20
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5273
SELECT - + ( - + COUNT( * ) ) FROM tab2 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5273
SELECT - + ( - + COUNT ( * ) ) FROM tab2 cor0
----
3

query I rowsort
SELECT ALL + col2 * + + col2 AS col1 FROM tab1 cor0
----
3481
4624
9216

query I rowsort
SELECT ALL + 87 * - - 3 + - col0 AS col0 FROM tab1 AS cor0
----
170
176
210

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5276
SELECT COUNT( * ) DIV + COUNT( * ) AS col2 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5276
SELECT COUNT ( * ) / + COUNT ( * ) AS col2 FROM tab0 AS cor0
----
1

query II rowsort
SELECT col2 AS col2, + col1 FROM tab2
----
23
51
40
77
58
67

query III rowsort
SELECT * FROM tab0 WHERE NOT - + col1 + - col2 >= + 38
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # aggregate syntax: 
query I rowsort label-5279
SELECT ALL COUNT( * ) * + SUM( col1 ) FROM tab1
----
198

skipif mysql # not compatible
query I rowsort label-5279
SELECT ALL COUNT ( * ) * + SUM ( col1 ) FROM tab1
----
198

query II rowsort
SELECT DISTINCT col0 AS col0, 32 FROM tab0
----
15
32
87
32
97
32

query II rowsort
SELECT 15, + ( + col2 ) FROM tab1
----
15
59
15
68
15
96

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5282
SELECT ALL - CAST( + col1 AS SIGNED ) * - col1 FROM tab1
----
196
2209
25

skipif mysql # not compatible
query I rowsort label-5282
SELECT ALL - CAST ( + col1 AS INTEGER ) * - col1 FROM tab1
----
196
2209
25

query I rowsort
SELECT ALL col1 * + 82 * 29 AS col1 FROM tab2
----
121278
159326
183106

query I rowsort
SELECT DISTINCT + 32 FROM tab2 WHERE col0 IS NOT NULL
----
32

skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort
SELECT ALL col0 col1, - col1 + + col2 AS col2 FROM tab0
----
15
-34
87
-11
97
98

onlyif mysql # aggregate syntax: 
query I rowsort label-5286
SELECT ( - COUNT( * ) ) * 57 AS col2 FROM tab0 AS cor0
----
-171

skipif mysql # not compatible
query I rowsort label-5286
SELECT ( - COUNT ( * ) ) * 57 AS col2 FROM tab0 AS cor0
----
-171

query IIIIII rowsort
SELECT ALL * FROM tab2, tab0 cor0 WHERE NOT NULL >= NULL
----

query III rowsort
SELECT col2 AS col1, 84 - + 73 / - col0 AS col2, col2 AS col1 FROM tab0 cor0 WHERE NULL IS NOT NULL
----

query I rowsort
SELECT ALL - - col2 * ( - col0 ) * - + col0 - - col2 * + + 68 + - 19 AS col0 FROM tab2 AS cor0
----
166541
330175
50213

onlyif mysql # aggregate syntax: 
query I rowsort label-5290
SELECT DISTINCT - + COUNT( * ) * + 18 + 21 + + COUNT( * ) AS col2 FROM tab2 AS cor0
----
-30

skipif mysql # not compatible
query I rowsort label-5290
SELECT DISTINCT - + COUNT ( * ) * + 18 + 21 + + COUNT ( * ) AS col2 FROM tab2 AS cor0
----
-30

onlyif mysql # aggregate syntax: 
query I rowsort label-5291
SELECT + COUNT( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

skipif mysql # not compatible
query I rowsort label-5291
SELECT + COUNT ( DISTINCT - col2 ) FROM tab2 AS cor0
----
3

query I rowsort
SELECT DISTINCT - col1 * + col2 + - col2 + 36 AS col1 FROM tab1 AS cor0
----
-1404
-318
-3228

onlyif mysql # DIV for integer division: 
query I rowsort label-5293
SELECT ALL col1 DIV col2 * - col2 AS col0 FROM tab2
----
-40
-46
-58

skipif mysql # not compatible
query I rowsort label-5293
SELECT ALL col1 / col2 * - col2 AS col0 FROM tab2
----
-40
-46
-58

onlyif mysql # DIV for integer division: 
query I rowsort label-5294
SELECT ALL 18 DIV - ( col2 ) AS col2 FROM tab2
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5294
SELECT ALL 18 / - ( col2 ) AS col2 FROM tab2
----
0
0
0

query I rowsort
SELECT - ( col0 ) + + col2 - + + col0 + + col2 FROM tab0
----
-154
4
64

query I rowsort
SELECT DISTINCT ( - 10 ) AS col0 FROM tab0
----
-10

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT NULL <= 36 AND NULL IS NOT NULL
----

query III rowsort
SELECT ALL * FROM tab1 WHERE NULL <> + - 89 * - - col1 + col2 + col0
----

query I rowsort
SELECT + col1 FROM tab0 AS cor0 WHERE NOT col2 * + col2 IS NULL
----
1
21
81

query III rowsort
SELECT ALL * FROM tab2 AS cor0 WHERE NOT + 6 IS NOT NULL
----

query I rowsort
SELECT - col0 * col1 * 66 + + 83 AS col0 FROM tab2 AS cor0
----
-154753
-325165
-331567

onlyif mysql # DIV for integer division: 
query I rowsort label-5302
SELECT - ( col1 ) DIV + - col0 AS col2 FROM tab0 AS cor0
----
0
0
5

skipif mysql # not compatible
query I rowsort label-5302
SELECT - ( col1 ) / + - col0 AS col2 FROM tab0 AS cor0
----
0
0
5

query I rowsort
SELECT - ( 39 ) FROM tab0 AS cor0
----
-39
-39
-39

onlyif mysql # DIV for integer division: 
query II rowsort label-5304
SELECT + 29 DIV + - 1, col0 AS col1 FROM tab1 AS cor0
----
-29
51
-29
85
-29
91

skipif mysql # not compatible
query II rowsort label-5304
SELECT + 29 / + - 1, col0 AS col1 FROM tab1 AS cor0
----
-29
51
-29
85
-29
91

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5305
SELECT + 32 * - + AVG ( + 47 ) - - COUNT( * ) + + CAST( NULL AS SIGNED ) + + COUNT( * ) * - MAX( - - col2 ) + + COUNT( * ) FROM tab0 cor0
----
NULL

skipif mysql # not compatible
query I rowsort label-5305
SELECT + 32 * - + AVG ( + 47 ) - - COUNT ( * ) + + CAST ( NULL AS INTEGER ) + + COUNT ( * ) * - MAX ( - - col2 ) + + COUNT ( * ) FROM tab0 cor0
----
NULL

query I rowsort
SELECT DISTINCT ( - + col1 ) AS col2 FROM tab0 AS cor0 WHERE NOT NULL <= + col1 + + ( + + col0 )
----

query I rowsort
SELECT DISTINCT - 58 + - col1 FROM tab0 AS cor0 WHERE NOT col2 <= - col0
----
-139
-59
-79

onlyif mysql # aggregate syntax: 
query I rowsort label-5308
SELECT + + ( - COUNT( * ) ) * - - COUNT( DISTINCT + col1 ) FROM tab0 AS cor0
----
-9

skipif mysql # not compatible
query I rowsort label-5308
SELECT + + ( - COUNT ( * ) ) * - - COUNT ( DISTINCT + col1 ) FROM tab0 AS cor0
----
-9

onlyif mysql # aggregate syntax: 
query I rowsort label-5309
SELECT ALL MIN( DISTINCT - + col2 ) col2 FROM tab2
----
-58

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5309
SELECT ALL MIN ( DISTINCT - + col2 ) col2 FROM tab2
----
-58

query III rowsort
SELECT DISTINCT * FROM tab0 WHERE NULL NOT BETWEEN - 64 * 69 * - 83 AND NULL
----

query I rowsort
SELECT ALL 9 * - 88 * + col2 AS col1 FROM tab1
----
-46728
-53856
-76032

onlyif mysql # aggregate syntax: 
query I rowsort label-5312
SELECT DISTINCT ( + COUNT( * ) ) + + COUNT( * ) FROM tab1 AS cor0
----
6

skipif mysql # not compatible
query I rowsort label-5312
SELECT DISTINCT ( + COUNT ( * ) ) + + COUNT ( * ) FROM tab1 AS cor0
----
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5313
SELECT - MAX( + - 35 ) * + - MIN( DISTINCT + col1 ) FROM tab0 cor0
----
-35

skipif mysql # not compatible
query I rowsort label-5313
SELECT - MAX ( + - 35 ) * + - MIN ( DISTINCT + col1 ) FROM tab0 cor0
----
-35

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT - col0 < + - 66
----
51
14
96

query I rowsort
SELECT ALL - + 81 * + col0 AS col1 FROM tab1 AS cor0
----
-4131
-6885
-7371

query I rowsort
SELECT DISTINCT - 38 + col1 AS col0 FROM tab2
----
13
29
39

query I rowsort
SELECT ALL + + col1 + 43 AS col0 FROM tab1 AS cor0
----
48
57
90

query I rowsort
SELECT DISTINCT + 15 + - - ( + - 52 ) * col1 + + + 6 * + col2 * + col2 * ( - col1 ) * - - 71 FROM tab1 AS cor0
----
-54964937
-7414775
-92584157

onlyif mysql # aggregate syntax: 
query I rowsort label-5319
SELECT ALL - 65 + + COUNT( * ) * COUNT( * ) FROM tab1 AS cor0
----
-56

skipif mysql # not compatible
query I rowsort label-5319
SELECT ALL - 65 + + COUNT ( * ) * COUNT ( * ) FROM tab1 AS cor0
----
-56

query II rowsort
SELECT ALL col0 + - - col0 AS col1, col0 AS col1 FROM tab2 AS cor0
----
128
64
150
75
92
46

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5321
SELECT DISTINCT CAST( AVG ( + - col2 ) AS SIGNED ) AS col2 FROM tab0
----
-52

skipif mysql # not compatible
query I rowsort label-5321
SELECT DISTINCT CAST ( AVG ( + - col2 ) AS INTEGER ) AS col2 FROM tab0
----
-52

onlyif mysql # aggregate syntax: 
query II rowsort label-5322
SELECT 13 * 15 - 84 - COUNT( * ) col1, COUNT( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
108
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5322
SELECT 13 * 15 - 84 - COUNT ( * ) col1, COUNT ( * ) FROM tab2 WHERE + col0 IS NOT NULL
----
108
3

onlyif mysql # DIV for integer division: 
query II rowsort label-5323
SELECT ALL + col0 DIV 46, + 51 + - + col1 col1 FROM tab1
----
1
37
1
4
1
46

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5323
SELECT ALL + col0 / 46, + 51 + - + col1 col1 FROM tab1
----
1
37
1
4
1
46

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + + col2 + + 48 col1 FROM tab1 WHERE NULL IS NULL
----
107
116
144

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5325
SELECT + CAST( NULL AS SIGNED ) / - - col0 AS col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

skipif mysql # not compatible
query II rowsort label-5325
SELECT + CAST ( NULL AS INTEGER ) / - - col0 AS col0, col2 FROM tab1
----
NULL
59
NULL
68
NULL
96

query II rowsort
SELECT 13 * - + col1 AS col2, - 69 * - + col0 * + 3 * - 95 AS col2 FROM tab2
----
-1001
-1258560
-663
-904590
-871
-1474875

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5327
SELECT DISTINCT + 48 * + - 6 - + + CAST( NULL AS SIGNED ) * 81 / COUNT( col0 ) FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5327
SELECT DISTINCT + 48 * + - 6 - + + CAST ( NULL AS INTEGER ) * 81 / COUNT ( col0 ) FROM tab0
----
NULL

query II rowsort
SELECT col2 * col0, col1 FROM tab2
----
1058
51
2560
77
4350
67

query I rowsort
SELECT DISTINCT - col1 FROM tab1 WHERE NOT col2 IS NULL
----
-14
-47
-5

onlyif mysql # DIV for integer division: 
query I rowsort label-5330
SELECT DISTINCT + ( 88 ) + - 44 DIV + + 11 col1 FROM tab1
----
84

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5330
SELECT DISTINCT + ( 88 ) + - 44 / + + 11 col1 FROM tab1
----
84

query II rowsort
SELECT - ( 81 ) AS col1, - col0 FROM tab2
----
-81
-46
-81
-64
-81
-75

onlyif mysql # aggregate syntax: 
query I rowsort label-5332
SELECT COUNT( + 33 ) FROM tab2
----
3

skipif mysql # not compatible
query I rowsort label-5332
SELECT COUNT ( + 33 ) FROM tab2
----
3

query I rowsort
SELECT ALL + col0 FROM tab0 WHERE NOT - ( - - col0 ) IS NOT NULL
----

query I rowsort
SELECT DISTINCT + - col0 + - 46 AS col0 FROM tab2 AS cor0
----
-110
-121
-92

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + 1 + 56 col0 FROM tab1 AS cor0
----
57
57
57

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT + col0 IS NOT NULL AND NOT NULL IS NOT NULL
----

query I rowsort
SELECT DISTINCT col1 * - 89 FROM tab0
----
-1869
-7209
-89

query I rowsort
SELECT - ( - + 1 ) AS col0 FROM tab1
----
1
1
1

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT NULL NOT IN ( + col1 * + 52 )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5340
SELECT - - 67 DIV + + col1 FROM tab1 AS cor0
----
1
13
4

skipif mysql # not compatible
query I rowsort label-5340
SELECT - - 67 / + + col1 FROM tab1 AS cor0
----
1
13
4

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT 37 <= NULL
----

query II rowsort
SELECT DISTINCT + + col1, + col1 + - col2 + col2 AS col2 FROM tab1 AS cor0
----
14
14
47
47
5
5

query I rowsort
SELECT + - col1 * 18 AS col1 FROM tab0 AS cor0
----
-1458
-18
-378

onlyif mysql # aggregate syntax: 
query I rowsort label-5344
SELECT ALL MAX( DISTINCT - col0 ) AS col1 FROM tab0
----
-15

skipif mysql # not compatible
query I rowsort label-5344
SELECT ALL MAX ( DISTINCT - col0 ) AS col1 FROM tab0
----
-15

onlyif mysql # DIV for integer division: 
query I rowsort label-5345
SELECT + col1 DIV 84 * + col0 * - col2 FROM tab0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5345
SELECT + col1 / 84 * + col0 * - col2 FROM tab0
----
0
0
0

query I rowsort
SELECT ALL + col0 * 47 AS col0 FROM tab0
----
4089
4559
705

query I rowsort
SELECT ALL + col1 AS col2 FROM tab2 WHERE + ( + + 66 ) + col0 IS NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5348
SELECT - COUNT( * ) * - COUNT( * ) AS col0, + COUNT( + + 57 ) FROM tab2
----
9
3

skipif mysql # not compatible
query II rowsort label-5348
SELECT - COUNT ( * ) * - COUNT ( * ) AS col0, + COUNT ( + + 57 ) FROM tab2
----
9
3

query I rowsort
SELECT ALL col0 + + 5 + + - ( + 97 ) FROM tab2
----
-17
-28
-46

onlyif mysql # aggregate syntax: 
query I rowsort label-5350
SELECT ALL + 88 * MIN( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-8712

skipif mysql # not compatible
query I rowsort label-5350
SELECT ALL + 88 * MIN ( DISTINCT - + col2 ) FROM tab0 AS cor0
----
-8712

query I rowsort
SELECT + - col0 + ( - col2 ) AS col2 FROM tab0 AS cor0
----
-196
-62
-97

query I rowsort
SELECT ALL + - col2 * - - ( + col2 ) * col1 AS col0 FROM tab0 AS cor0
----
-178929
-2100
-9801

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5353
SELECT DISTINCT + - 51 - CAST( col1 AS SIGNED ) AS col0 FROM tab0 AS cor0
----
-132
-52
-72

skipif mysql # not compatible
query I rowsort label-5353
SELECT DISTINCT + - 51 - CAST ( col1 AS INTEGER ) AS col0 FROM tab0 AS cor0
----
-132
-52
-72

query I rowsort
SELECT DISTINCT 57 * col0 * - col0 + - - ( - + col1 ) FROM tab0 AS cor0
----
-12906
-431454
-536314

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5355
SELECT DISTINCT - CAST( - 20 AS SIGNED ) AS col1 FROM tab2
----
20

skipif mysql # not compatible
query I rowsort label-5355
SELECT DISTINCT - CAST ( - 20 AS INTEGER ) AS col1 FROM tab2
----
20

query I rowsort
SELECT - col2 * col1 - 98 FROM tab1
----
-1442
-3294
-393

query II rowsort
SELECT ALL - 33 AS col1, 48 * 43 + - + col1 FROM tab2
----
-33
1987
-33
1997
-33
2013

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT + 24 * + col0 + - - col1 <= NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5359
SELECT - COUNT( * ) + - + COUNT( DISTINCT - col0 ) FROM tab1 AS cor0
----
-6

skipif mysql # not compatible
query I rowsort label-5359
SELECT - COUNT ( * ) + - + COUNT ( DISTINCT - col0 ) FROM tab1 AS cor0
----
-6

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5360
SELECT - col2 + - CAST( NULL AS SIGNED ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5360
SELECT - col2 + - CAST ( NULL AS INTEGER ) AS col1 FROM tab0 AS cor0
----
NULL
NULL
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5361
SELECT 15 DIV - col2 AS col2 FROM tab0 AS cor0
----
-1
0
0

skipif mysql # not compatible
query I rowsort label-5361
SELECT 15 / - col2 AS col2 FROM tab0 AS cor0
----
-1
0
0

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT NULL NOT BETWEEN ( NULL ) AND 13
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5363
SELECT - - MIN( DISTINCT - col2 ) AS col1, COUNT( * ) FROM tab0 AS cor0
----
-99
3

skipif mysql # not compatible
query II rowsort label-5363
SELECT - - MIN ( DISTINCT - col2 ) AS col1, COUNT ( * ) FROM tab0 AS cor0
----
-99
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5364
SELECT ALL + ( + COUNT( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

skipif mysql # not compatible
query I rowsort label-5364
SELECT ALL + ( + COUNT ( * ) ) AS col0 FROM ( tab0 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <> - + col1 / - 74
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5366
SELECT DISTINCT - SUM( - ( + + 73 ) ) AS col2 FROM tab2 AS cor0 WHERE ( NOT ( col0 IS NULL ) )
----
219

skipif mysql # not compatible
query I rowsort label-5366
SELECT DISTINCT - SUM ( - ( + + 73 ) ) AS col2 FROM tab2 AS cor0 WHERE ( NOT ( col0 IS NULL ) )
----
219

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE NOT + col1 <= NULL
----

query I rowsort
SELECT ALL col1 * - - 28 AS col2 FROM tab1 cor0 WHERE NOT ( NULL IS NULL )
----

query I rowsort
SELECT col0 * + + col1 * - + 0 FROM tab2 AS cor0
----
0
0
0

query I rowsort
SELECT + + col0 * 77 FROM tab1 AS cor0 WHERE NOT 70 IS NULL
----
3927
6545
7007

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - + 96 * + 0 - + - 32 col0 FROM tab2 AS cor0
----
32
32
32

query II rowsort
SELECT DISTINCT + 7, + col2 FROM tab1
----
7
59
7
68
7
96

query III rowsort
SELECT * FROM tab1 WHERE NOT ( col1 / 37 + + col2 ) < NULL
----

query I rowsort
SELECT col1 + - 39 AS col0 FROM tab1
----
-25
-34
8

onlyif mysql # DIV for integer division: 
query I rowsort label-5375
SELECT col2 DIV 38 + + col1 FROM tab2
----
51
68
78

skipif mysql # not compatible
query I rowsort label-5375
SELECT col2 / 38 + + col1 FROM tab2
----
51
68
78

query I rowsort
SELECT ALL col0 * - - col2 AS col2 FROM tab2
----
1058
2560
4350

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5377
SELECT + - 0 AS col1 FROM tab2 WHERE NOT ( CAST( NULL AS DECIMAL ) ) * + 8 + - col2 - + 71 + + col0 + + col1 > NULL
----

skipif mysql # not compatible
query I rowsort label-5377
SELECT + - 0 AS col1 FROM tab2 WHERE NOT ( CAST ( NULL AS REAL ) ) * + 8 + - col2 - + 71 + + col0 + + col1 > NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5378
SELECT DISTINCT CAST( - MAX( - ( + col1 ) ) AS SIGNED ) FROM tab2
----
51

skipif mysql # not compatible
query I rowsort label-5378
SELECT DISTINCT CAST ( - MAX ( - ( + col1 ) ) AS INTEGER ) FROM tab2
----
51

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5379
SELECT + col2 + CAST( NULL AS SIGNED ) / - 25 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5379
SELECT + col2 + CAST ( NULL AS INTEGER ) / - 25 * col2 AS col0 FROM tab2
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab2 WHERE NOT NULL >= col0 - 91
----

query I rowsort
SELECT DISTINCT + col2 * - col2 + - col1 + + ( - - col1 ) FROM tab1
----
-3481
-4624
-9216

onlyif mysql # aggregate syntax: 
query II rowsort label-5382
SELECT DISTINCT + 65, COUNT( * ) AS col2 FROM tab1
----
65
3

skipif mysql # not compatible
query II rowsort label-5382
SELECT DISTINCT + 65, COUNT ( * ) AS col2 FROM tab1
----
65
3

query I rowsort
SELECT ALL + 20 + - col2 FROM tab1 AS cor0
----
-39
-48
-76

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5384
SELECT DISTINCT + CAST( - - 44 AS SIGNED ) FROM tab1 cor0
----
44

skipif mysql # not compatible
query I rowsort label-5384
SELECT DISTINCT + CAST ( - - 44 AS INTEGER ) FROM tab1 cor0
----
44

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5385
SELECT CAST( NULL AS SIGNED ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

skipif mysql # not compatible
query I rowsort label-5385
SELECT CAST ( NULL AS INTEGER ) AS col2 FROM tab2 AS cor0 CROSS JOIN tab0 cor1
----
9 values hashing to cd7a7901e47c15155404aff0d216fe0b

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5386
SELECT DISTINCT + + 54 * + CAST( - + COUNT( * ) AS SIGNED ) * - 0 + - COUNT( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

skipif mysql # not compatible
query I rowsort label-5386
SELECT DISTINCT + + 54 * + CAST ( - + COUNT ( * ) AS INTEGER ) * - 0 + - COUNT ( * ) FROM tab0 AS cor0 CROSS JOIN tab2 AS cor1
----
-9

query IIIIII rowsort
SELECT * FROM tab0 AS cor0 CROSS JOIN tab2 cor1 WHERE 57 IS NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5388
SELECT - + ( - COUNT( * ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5388
SELECT - + ( - COUNT ( * ) ) col1 FROM tab0 AS cor0 CROSS JOIN tab2 cor1
----
9

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5389
SELECT - col2 * - 59 + 34 + CAST( NULL AS SIGNED ) + - col2 + - col2 * + col1 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5389
SELECT - col2 * - 59 + 34 + CAST ( NULL AS INTEGER ) + - col2 + - col2 * + col1 FROM tab1
----
NULL
NULL
NULL

query I rowsort
SELECT ALL + col1 * - ( - - 77 ) AS col0 FROM tab0
----
-1617
-6237
-77

query III rowsort
SELECT * FROM tab2 WHERE - col1 <= + 31
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT col2 + - + col2 + col0 FROM tab1
----
51
85
91

query I rowsort
SELECT DISTINCT + col1 * col1 + + - col2 AS col2 FROM tab2 AS cor0
----
2578
4431
5889

query I rowsort
SELECT + 80 + - - col1 + - 87 FROM tab1 AS cor0
----
-2
40
7

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT col1 + + col1 + - + 11 col2 FROM tab1 AS cor0
----
-1
17
83

onlyif mysql # DIV for integer division: 
query I rowsort label-5396
SELECT ALL - - col2 + + + col2 DIV col2 AS col1 FROM tab0 AS cor0
----
100
11
48

skipif mysql # not compatible
query I rowsort label-5396
SELECT ALL - - col2 + + + col2 / col2 AS col1 FROM tab0 AS cor0
----
100
11
48

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT - col2 + - 18 col0 FROM tab2 cor0
----
-41
-58
-76

query II rowsort
SELECT DISTINCT + + col2 + col0 AS col0, col2 FROM tab2 AS cor0
----
104
40
133
58
69
23

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5399
SELECT ALL CAST( NULL AS SIGNED ) * + col1 / + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5399
SELECT ALL CAST ( NULL AS INTEGER ) * + col1 / + col2 AS col2 FROM tab0
----
NULL
NULL
NULL

query I rowsort
SELECT DISTINCT 40 * + - col0 FROM tab2
----
-1840
-2560
-3000

onlyif mysql # aggregate syntax: 
query I rowsort label-5401
SELECT ALL 93 - + 92 * MAX( DISTINCT - + 76 ) FROM tab2
----
7085

skipif mysql # not compatible
query I rowsort label-5401
SELECT ALL 93 - + 92 * MAX ( DISTINCT - + 76 ) FROM tab2
----
7085

onlyif mysql # aggregate syntax: 
query I rowsort label-5402
SELECT + MIN( DISTINCT + - col1 ) AS col2 FROM tab1
----
-47

skipif mysql # not compatible
query I rowsort label-5402
SELECT + MIN ( DISTINCT + - col1 ) AS col2 FROM tab1
----
-47

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5403
SELECT - SUM( ALL CAST( NULL AS SIGNED ) ) FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5403
SELECT - SUM ( ALL CAST ( NULL AS INTEGER ) ) FROM tab2
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: DECIMAL type: 
query I rowsort label-5404
SELECT DISTINCT ( ( + COUNT( * ) ) ) * + CAST( NULL AS DECIMAL ) AS col1 FROM tab0
----
NULL

skipif mysql # not compatible
query I rowsort label-5404
SELECT DISTINCT ( ( + COUNT ( * ) ) ) * + CAST ( NULL AS REAL ) AS col1 FROM tab0
----
NULL

onlyif mysql # DIV for integer division: 
query I rowsort label-5405
SELECT ALL - 16 DIV + - col0 FROM tab2 AS cor0
----
0
0
0

skipif mysql # not compatible
query I rowsort label-5405
SELECT ALL - 16 / + - col0 FROM tab2 AS cor0
----
0
0
0

query II rowsort
SELECT ALL + col0, + col2 FROM tab1 AS cor0
----
51
96
85
59
91
68

query II rowsort
SELECT DISTINCT + + col2, - 70 FROM tab0 AS cor0
----
10
-70
47
-70
99
-70

query I rowsort
SELECT DISTINCT col2 * + + 9 FROM tab0
----
423
891
90

query II rowsort
SELECT ALL - 48 AS col1, + col0 FROM tab2
----
-48
46
-48
64
-48
75

query I rowsort
SELECT + 36 / - col2 AS col0 FROM tab0 WHERE NOT + col0 IS NOT NULL
----

query I rowsort
SELECT DISTINCT 58 + - col1 AS col2 FROM tab2 AS cor0
----
-19
-9
7

query I rowsort
SELECT - + 89 + + col2 * - + 43 FROM tab2 AS cor0 WHERE NOT ( NULL ) IS NULL
----

query I rowsort
SELECT col0 * - 10 FROM tab0 AS cor0
----
-150
-870
-970

query III rowsort
SELECT * FROM tab2 AS cor0 WHERE NOT col1 <= ( + 49 + - + 31 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT - col1 * + col1 * - 23 AS col1 FROM tab1 AS cor0
----
4508
50807
575

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5416
SELECT + - COUNT( * ), + CAST( + 41 AS SIGNED ) AS col2 FROM tab1 AS cor0
----
-3
41

skipif mysql # not compatible
query II rowsort label-5416
SELECT + - COUNT ( * ), + CAST ( + 41 AS INTEGER ) AS col2 FROM tab1 AS cor0
----
-3
41

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5417
SELECT col1 * 81 * + - CAST( - - 84 AS SIGNED ) FROM tab1
----
-319788
-34020
-95256

skipif mysql # not compatible
query I rowsort label-5417
SELECT col1 * 81 * + - CAST ( - - 84 AS INTEGER ) FROM tab1
----
-319788
-34020
-95256

query I rowsort
SELECT DISTINCT col1 * + col2 * + 42 AS col1 FROM tab1
----
12390
134232
56448

onlyif mysql # DIV for integer division: 
query I rowsort label-5419
SELECT DISTINCT + 46 * - + col0 + - 62 - - col1 DIV + 64 - - col0 FROM tab1 cor0
----
-2357
-3887
-4157

skipif mysql # not compatible
query I rowsort label-5419
SELECT DISTINCT + 46 * - + col0 + - 62 - - col1 / + 64 - - col0 FROM tab1 cor0
----
-2357
-3887
-4157

query I rowsort
SELECT DISTINCT - 3 + - - col1 AS col1 FROM tab1 AS cor0
----
11
2
44

query I rowsort
SELECT - col0 + 71 * + 61 FROM tab2 AS cor0
----
4256
4267
4285

onlyif mysql # aggregate syntax: 
query I rowsort label-5422
SELECT 29 * MAX( col2 ) + + 94 * 54 FROM tab2 AS cor0
----
6758

skipif mysql # not compatible
query I rowsort label-5422
SELECT 29 * MAX ( col2 ) + + 94 * 54 FROM tab2 AS cor0
----
6758

query I rowsort
SELECT ALL ( - + col1 ) * - + col0 + - col0 + - 37 AS col1 FROM tab1 AS cor0
----
303
4149
626

query I rowsort
SELECT ALL - col0 - + - 73 FROM tab0
----
-14
-24
58

query II rowsort
SELECT DISTINCT col2, 78 AS col1 FROM tab2
----
23
78
40
78
58
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5426
SELECT COUNT( * ) * + 65 AS col0 FROM tab1 WHERE + col2 + col1 <= - 45
----
0

skipif mysql # not compatible
query I rowsort label-5426
SELECT COUNT ( * ) * + 65 AS col0 FROM tab1 WHERE + col2 + col1 <= - 45
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE - 70 <> NULL
----

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5428
SELECT CAST( + 78 AS SIGNED ) - + 91 + - COUNT( * ) FROM tab2 AS cor0
----
-16

skipif mysql # not compatible
query I rowsort label-5428
SELECT CAST ( + 78 AS INTEGER ) - + 91 + - COUNT ( * ) FROM tab2 AS cor0
----
-16

onlyif mysql # aggregate syntax: 
query I rowsort label-5429
SELECT ALL + COUNT( * ) - 2 col1 FROM tab0 AS cor0
----
1

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5429
SELECT ALL + COUNT ( * ) - 2 col1 FROM tab0 AS cor0
----
1

query I rowsort
SELECT DISTINCT - 70 + + col1 AS col0 FROM tab0 AS cor0
----
-49
-69
11

query I rowsort
SELECT DISTINCT + - col0 - + - col2 AS col0 FROM tab2 AS cor0
----
-17
-23
-24

onlyif mysql # aggregate syntax: 
query I rowsort label-5432
SELECT DISTINCT - SUM( col0 ) * + COUNT( * ) FROM tab2
----
-555

skipif mysql # not compatible
query I rowsort label-5432
SELECT DISTINCT - SUM ( col0 ) * + COUNT ( * ) FROM tab2
----
-555

onlyif mysql # aggregate syntax: 
query I rowsort label-5433
SELECT MAX( DISTINCT + + 21 ) FROM tab1
----
21

skipif mysql # not compatible
query I rowsort label-5433
SELECT MAX ( DISTINCT + + 21 ) FROM tab1
----
21

onlyif mysql # aggregate syntax: 
query I rowsort label-5434
SELECT ALL COUNT( * ) * - - ( - - ( + COUNT( * ) ) ) FROM tab2
----
9

skipif mysql # not compatible
query I rowsort label-5434
SELECT ALL COUNT ( * ) * - - ( - - ( + COUNT ( * ) ) ) FROM tab2
----
9

query III rowsort
SELECT * FROM tab2 WHERE NOT + col2 * ( - 48 ) IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query II rowsort label-5436
SELECT ALL + - SUM( ALL - col0 ) AS col0, + 0 AS col1 FROM tab1 AS cor0
----
227
0

skipif mysql # not compatible
query II rowsort label-5436
SELECT ALL + - SUM ( ALL - col0 ) AS col0, + 0 AS col1 FROM tab1 AS cor0
----
227
0

query II rowsort
SELECT ALL col2, 6 FROM tab0
----
10
6
47
6
99
6

onlyif mysql # aggregate syntax: 
query I rowsort label-5438
SELECT DISTINCT MAX( ALL + 13 ) FROM tab0
----
13

skipif mysql # not compatible
query I rowsort label-5438
SELECT DISTINCT MAX ( ALL + 13 ) FROM tab0
----
13

query I rowsort
SELECT ALL col2 * col1 + - - col2 AS col2 FROM tab2
----
1196
3120
3944

onlyif mysql # aggregate syntax: 
query I rowsort label-5440
SELECT ALL SUM( DISTINCT 45 ) FROM tab2
----
45

skipif mysql # not compatible
query I rowsort label-5440
SELECT ALL SUM ( DISTINCT 45 ) FROM tab2
----
45

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT + 11 + + ( - - ( + col0 ) ) + + col0 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT - + ( + 78 ) FROM tab1 cor0
----
-78
-78
-78

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 39 / - col0 = - 4
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

query I rowsort
SELECT + col2 + - + 44 AS col2 FROM tab2
----
-21
-4
14

query III rowsort
SELECT * FROM tab1 WHERE col1 - - col1 IS NOT NULL
----
9 values hashing to c6c0a4111b36d04dbc811a11e4d54cad

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT + 0 col1 FROM tab2 AS cor0
----
0
0
0

query III rowsort
SELECT DISTINCT * FROM tab1 AS cor0 WHERE + col1 NOT BETWEEN NULL AND NULL
----

query I rowsort
SELECT ALL - col0 + - + 42 FROM tab1 AS cor0
----
-127
-133
-93

query I rowsort
SELECT DISTINCT - - col0 + - ( - + 70 ) * + - ( - col0 ) AS col0 FROM tab1 cor0
----
3621
6035
6461

query I rowsort
SELECT DISTINCT col2 * - col0 - + col1 * - 66 AS col2 FROM tab1
----
-3086
-3972
-4685

query I rowsort
SELECT col1 + - 53 + + col1 - + col1 FROM tab0
----
-32
-52
28

onlyif mysql # DIV for integer division: 
query I rowsort label-5452
SELECT DISTINCT col0 DIV + 79 + 19 + + + col0 FROM tab2 AS cor0
----
65
83
94

skipif mysql # not compatible
query I rowsort label-5452
SELECT DISTINCT col0 / + 79 + 19 + + + col0 FROM tab2 AS cor0
----
65
83
94

query I rowsort
SELECT DISTINCT + - ( - - 75 ) FROM tab0 AS cor0
----
-75

query I rowsort
SELECT DISTINCT col2 FROM tab0 AS cor0 WHERE + 86 = - col0
----

query II rowsort
SELECT col1, + ( - - col2 ) AS col2 FROM tab1
----
14
96
47
68
5
59

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query II rowsort label-5456
SELECT ALL + COUNT( * ) col0, SUM( DISTINCT + CAST( col2 AS SIGNED ) ) AS col1 FROM tab2
----
3
121

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query II rowsort label-5456
SELECT ALL + COUNT ( * ) col0, SUM ( DISTINCT + CAST ( col2 AS INTEGER ) ) AS col1 FROM tab2
----
3
121

query I rowsort
SELECT ALL 99 * - col2 AS col1 FROM tab1
----
-5841
-6732
-9504

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( + col1 ) * - 62 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5459
SELECT DISTINCT CAST( NULL AS SIGNED ) + + 72 * col0 FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5459
SELECT DISTINCT CAST ( NULL AS INTEGER ) + + 72 * col0 FROM tab1
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - 58 - + col2 col2 FROM tab2
----
-116
-81
-98

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5461
SELECT + SUM( col0 ) + CAST( NULL AS SIGNED ) FROM tab1
----
NULL

skipif mysql # not compatible
query I rowsort label-5461
SELECT + SUM ( col0 ) + CAST ( NULL AS INTEGER ) FROM tab1
----
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5462
SELECT - ( + 59 ) * + COUNT( * ) col2 FROM tab0
----
-177

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5462
SELECT - ( + 59 ) * + COUNT ( * ) col2 FROM tab0
----
-177

query I rowsort
SELECT ALL col0 * col2 AS col0 FROM tab1 WHERE 66 * col1 IS NULL
----

query III rowsort
SELECT * FROM tab1 WHERE NOT ( ( 12 ) + col0 ) NOT BETWEEN - 7 + - col0 AND NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5465
SELECT - MIN( - 81 ) + 1 FROM tab0
----
82

skipif mysql # not compatible
query I rowsort label-5465
SELECT - MIN ( - 81 ) + 1 FROM tab0
----
82

query I rowsort
SELECT ( 37 ) AS col2 FROM tab1
----
37
37
37

query I rowsort
SELECT - 54 + + col0 AS col2 FROM tab2
----
-8
10
21

query I rowsort
SELECT col1 FROM tab1 WHERE NOT + col1 / - 64 IS NOT NULL
----

query I rowsort
SELECT - col2 * col1 AS col1 FROM tab2 WHERE NOT NULL IN ( - 66 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5470
SELECT ALL ( ( COUNT( * ) ) ) AS col0 FROM tab0
----
3

skipif mysql # not compatible
query I rowsort label-5470
SELECT ALL ( ( COUNT ( * ) ) ) AS col0 FROM tab0
----
3

query I rowsort
SELECT - AVG ( - col1 ) AS col2 FROM tab0 WHERE NOT NULL NOT IN ( - 48 )
----
NULL

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5472
SELECT COUNT( * ) - - CAST( - COUNT( * ) AS SIGNED ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
0

skipif mysql # not compatible
query I rowsort label-5472
SELECT COUNT ( * ) - - CAST ( - COUNT ( * ) AS INTEGER ) AS col1 FROM tab2 WHERE - col1 IS NULL
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 WHERE NOT col0 IN ( - 2 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query I rowsort
SELECT ALL - 2 FROM tab0 WHERE NOT NULL NOT IN ( 75 )
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5475
SELECT col0 + CAST( NULL AS SIGNED ) col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5475
SELECT col0 + CAST ( NULL AS INTEGER ) col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5476
SELECT ALL + COUNT( * ) FROM tab2 WHERE NOT col0 IS NULL
----
3

skipif mysql # not compatible
query I rowsort label-5476
SELECT ALL + COUNT ( * ) FROM tab2 WHERE NOT col0 IS NULL
----
3

onlyif mysql # aggregate syntax: 
query I rowsort label-5477
SELECT DISTINCT SUM( - 99 ) FROM tab2
----
-297

skipif mysql # not compatible
query I rowsort label-5477
SELECT DISTINCT SUM ( - 99 ) FROM tab2
----
-297

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT NULL >= + 64
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5479
SELECT ALL COUNT( 8 ) FROM tab1
----
3

skipif mysql # not compatible
query I rowsort label-5479
SELECT ALL COUNT ( 8 ) FROM tab1
----
3

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - col1 * - ( 89 ) col1 FROM tab1 WHERE NOT 12 + + col1 IS NULL
----
1246
4183
445

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5481
SELECT - CAST( col0 AS SIGNED ) - + col1 DIV 30 AS col0 FROM tab0
----
-17
-87
-97

skipif mysql # not compatible
query I rowsort label-5481
SELECT - CAST ( col0 AS INTEGER ) - + col1 / 30 AS col0 FROM tab0
----
-17
-87
-97

query I rowsort
SELECT - 2 * + col2 AS col2 FROM tab0
----
-198
-20
-94

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5483
SELECT ALL + SUM( DISTINCT CAST( NULL AS SIGNED ) ) + + COUNT( * ) * 97 AS col1 FROM tab2
----
NULL

skipif mysql # not compatible
query I rowsort label-5483
SELECT ALL + SUM ( DISTINCT CAST ( NULL AS INTEGER ) ) + + COUNT ( * ) * 97 AS col1 FROM tab2
----
NULL

query I rowsort
SELECT DISTINCT - col0 FROM tab2 WHERE col0 - col0 IS NOT NULL
----
-46
-64
-75

query I rowsort
SELECT - 20 * - 19 FROM tab1
----
380
380
380

query I rowsort
SELECT col1 - col2 FROM tab1 AS cor0 WHERE 32 NOT BETWEEN NULL AND ( - col2 * + 62 )
----
-21
-54
-82

onlyif mysql # DIV for integer division: 
query I rowsort label-5487
SELECT col2 DIV - col2 + + col2 * - col1 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif mysql # not compatible
query I rowsort label-5487
SELECT col2 / - col2 + + col2 * - col1 FROM tab1 AS cor0
----
-1345
-296
-3197

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT - 62 col1 FROM tab2 AS cor0 WHERE col1 <> - col1 * - 88
----
-62
-62
-62

query I rowsort
SELECT col2 + - 87 * + 61 AS col2 FROM tab2 AS cor0
----
-5249
-5267
-5284

onlyif mysql # aggregate syntax: 
query I rowsort label-5490
SELECT DISTINCT + AVG ( DISTINCT - 25 ) * COUNT( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5490
SELECT DISTINCT + AVG ( DISTINCT - 25 ) * COUNT ( * ) AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----
NULL

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT DISTINCT + col1 - col1 col1 FROM tab0 AS cor0
----
0

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL >= col2
----

query I rowsort
SELECT ALL + 39 + 28 FROM tab2
----
67
67
67

query I rowsort
SELECT - 26 - + 81 AS col0 FROM tab0
----
-107
-107
-107

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ( + col2 ) col0 FROM tab2 AS cor0
----
23
40
58

onlyif mysql # aggregate syntax: 
query I rowsort label-5496
SELECT SUM( - ( - col2 ) ) FROM tab0 AS cor0 WHERE NOT ( + 10 ) < NULL
----
NULL

skipif mysql # not compatible
query I rowsort label-5496
SELECT SUM ( - ( - col2 ) ) FROM tab0 AS cor0 WHERE NOT ( + 10 ) < NULL
----
NULL

query III rowsort
SELECT ALL * FROM tab1 AS cor0 WHERE NOT + 97 IS NOT NULL
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5498
SELECT DISTINCT + + 96 DIV + col1 FROM tab2 AS cor0
----
1

skipif mysql # not compatible
query I rowsort label-5498
SELECT DISTINCT + + 96 / + col1 FROM tab2 AS cor0
----
1

query I rowsort
SELECT ALL + 30 * + col2 AS col1 FROM tab0 AS cor0
----
1410
2970
300

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5500
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( col0 ) + - col2 * + col0 NOT IN ( + CAST( NULL AS SIGNED ) + + ( - 74 ) )
----

skipif mysql # not compatible
query I rowsort label-5500
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE NOT - ( col0 ) + - col2 * + col0 NOT IN ( + CAST ( NULL AS INTEGER ) + + ( - 74 ) )
----

onlyif mysql # DIV for integer division: 
query I rowsort label-5501
SELECT DISTINCT + + col0 DIV 54 AS col2 FROM tab2 AS cor0
----
0
1

skipif mysql # not compatible
query I rowsort label-5501
SELECT DISTINCT + + col0 / 54 AS col2 FROM tab2 AS cor0
----
0
1

query III rowsort
SELECT * FROM tab1 AS cor0 WHERE NOT ( - col2 * 13 ) IS NOT NULL
----

query I rowsort
SELECT ALL + - col0 * 99 AS col1 FROM tab2 AS cor0
----
-4554
-6336
-7425

query I rowsort
SELECT - + 96 AS col0 FROM tab0 cor0
----
-96
-96
-96

onlyif mysql # aggregate syntax: 
query I rowsort label-5505
SELECT ALL COUNT( col1 ) AS col0 FROM tab1 cor0
----
3

skipif mysql # not compatible
query I rowsort label-5505
SELECT ALL COUNT ( col1 ) AS col0 FROM tab1 cor0
----
3

onlyif mysql # CAST syntax: aggregate syntax: SIGNED type: 
query I rowsort label-5506
SELECT ALL MAX( ALL - CAST( col1 AS SIGNED ) ) FROM tab0 AS cor0 WHERE + col0 NOT IN ( - col1 )
----
-1

skipif mysql # not compatible
query I rowsort label-5506
SELECT ALL MAX ( ALL - CAST ( col1 AS INTEGER ) ) FROM tab0 AS cor0 WHERE + col0 NOT IN ( - col1 )
----
-1

query I rowsort
SELECT DISTINCT - col2 * col0 FROM tab0 WHERE + 97 * 76 - 92 / col0 <= ( 98 * col0 )
----
-870
-9603

onlyif mysql # aggregate syntax: 
query I rowsort label-5508
SELECT MAX( - + 26 ) AS col2 FROM tab1
----
-26

skipif mysql # not compatible
query I rowsort label-5508
SELECT MAX ( - + 26 ) AS col2 FROM tab1
----
-26

query I rowsort
SELECT col0 * 95 AS col2 FROM tab1 WHERE NOT + 16 NOT BETWEEN NULL AND col2
----

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5510
SELECT DISTINCT CAST( 90 AS SIGNED ) FROM tab2
----
90

skipif mysql # not compatible
query I rowsort label-5510
SELECT DISTINCT CAST ( 90 AS INTEGER ) FROM tab2
----
90

query I rowsort
SELECT - col0 FROM tab0 WHERE NOT col0 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5512
SELECT ALL + MAX( - 21 ) AS col0 FROM tab0
----
-21

skipif mysql # not compatible
query I rowsort label-5512
SELECT ALL + MAX ( - 21 ) AS col0 FROM tab0
----
-21

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5513
SELECT DISTINCT - CAST( col1 AS SIGNED ) AS col0 FROM tab1 WHERE + col0 <> 67
----
-14
-47
-5

skipif mysql # not compatible
query I rowsort label-5513
SELECT DISTINCT - CAST ( col1 AS INTEGER ) AS col0 FROM tab1 WHERE + col0 <> 67
----
-14
-47
-5

query I rowsort
SELECT col2 * 28 AS col2 FROM tab0
----
1316
2772
280

query I rowsort
SELECT - ( ( - 2 ) ) FROM tab1
----
2
2
2

query III rowsort
SELECT * FROM tab0 WHERE NOT ( 89 ) NOT BETWEEN NULL AND ( - col0 * col1 )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5517
SELECT - COUNT( DISTINCT - 72 ) FROM tab1
----
-1

skipif mysql # not compatible
query I rowsort label-5517
SELECT - COUNT ( DISTINCT - 72 ) FROM tab1
----
-1

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5518
SELECT - col2 * + 78 * + CAST( NULL AS SIGNED ) FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5518
SELECT - col2 * + 78 * + CAST ( NULL AS INTEGER ) FROM tab1 AS cor0
----
NULL
NULL
NULL

query I rowsort
SELECT - 29 * - + col0 AS col1 FROM tab2 AS cor0
----
1334
1856
2175

query I rowsort
SELECT ALL col2 * 62 AS col1 FROM tab0 AS cor0
----
2914
6138
620

onlyif mysql # DIV for integer division: 
query I rowsort label-5521
SELECT ALL - ( - ( + 80 ) ) + + 74 DIV + 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif mysql # not compatible
query I rowsort label-5521
SELECT ALL - ( - ( + 80 ) ) + + 74 / + 73 FROM tab0 AS cor0 CROSS JOIN tab1 AS cor1
----
9 values hashing to 7a8ea30c6803aeddc5fca5b5821d8267

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL - - col1 col0 FROM tab0 WHERE NULL IS NOT NULL
----

query IIIIII rowsort
SELECT * FROM tab0, tab1 AS cor0 WHERE NOT ( NULL ) IS NOT NULL
----
54 values hashing to 9cf5329ae50920f4c6e297c9f5b652fd

query I rowsort
SELECT col2 FROM tab0 AS cor0 WHERE col2 = + 35
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5525
SELECT ALL ( - MAX( DISTINCT + - col2 ) ) * + 98 + 68 FROM tab0 AS cor0
----
1048

skipif mysql # not compatible
query I rowsort label-5525
SELECT ALL ( - MAX ( DISTINCT + - col2 ) ) * + 98 + 68 FROM tab0 AS cor0
----
1048

query I rowsort
SELECT ALL + + col1 + - col1 + - col0 * col1 AS col2 FROM tab0 AS cor0
----
-1215
-1827
-97

query I rowsort
SELECT DISTINCT + 78 FROM tab0 AS cor0 WHERE col0 IS NULL
----

query I rowsort
SELECT + col2 + - 89 AS col0 FROM tab0 AS cor0
----
-42
-79
10

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5529
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST( + col1 AS SIGNED ) - - col1 IS NOT NULL
----

skipif mysql # not compatible
query III rowsort label-5529
SELECT ALL * FROM tab1 AS cor0 WHERE NOT - CAST ( + col1 AS INTEGER ) - - col1 IS NOT NULL
----

query II rowsort
SELECT ALL + + col1, + col2 * - - col2 - col1 FROM tab0 AS cor0
----
1
9800
21
79
81
2128

onlyif mysql # DIV for integer division: 
query I rowsort label-5531
SELECT DISTINCT 76 + 33 DIV 79 AS col2 FROM tab1 AS cor0
----
76

skipif mysql # not compatible
query I rowsort label-5531
SELECT DISTINCT 76 + 33 / 79 AS col2 FROM tab1 AS cor0
----
76

onlyif mysql # aggregate syntax: 
query I rowsort label-5532
SELECT - - COUNT( * ) + - COUNT( * ) * - COUNT( DISTINCT col1 ) FROM tab1 WHERE NULL IS NULL
----
12

skipif mysql # not compatible
query I rowsort label-5532
SELECT - - COUNT ( * ) + - COUNT ( * ) * - COUNT ( DISTINCT col1 ) FROM tab1 WHERE NULL IS NULL
----
12

query I rowsort
SELECT DISTINCT 3 - 91 AS col0 FROM tab2
----
-88

onlyif mysql # CAST syntax: DECIMAL type: 
query I rowsort label-5534
SELECT ALL - CAST( NULL AS DECIMAL ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5534
SELECT ALL - CAST ( NULL AS REAL ) * + col1 AS col0 FROM tab1
----
NULL
NULL
NULL

onlyif mysql # aggregate syntax: 
query I rowsort label-5535
SELECT DISTINCT + MIN( ALL 18 ) AS col1 FROM tab0
----
18

skipif mysql # not compatible
query I rowsort label-5535
SELECT DISTINCT + MIN ( ALL 18 ) AS col1 FROM tab0
----
18

query I rowsort
SELECT ( - col2 ) * - 27 FROM tab0
----
1269
2673
270

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT ( - col0 ) IN ( 95 )
----
9 values hashing to 75c998aa53ac83218cbf2feb962d0a49

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT col1 + + col1 <= ( + + col0 + col0 * - col1 )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + 22 - col0 + - col2 AS col0 FROM tab1 AS cor0
----
-122
-125
-137

query I rowsort
SELECT - 87 AS col0 FROM ( tab1 AS cor0 CROSS JOIN tab2 AS cor1 )
----
9 values hashing to 84bcab58a965cc8ae97b39d2d01b3d23

onlyif mysql # aggregate syntax: 
query I rowsort label-5541
SELECT DISTINCT + - 29 - - MAX( - 93 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-122

skipif mysql # not compatible
query I rowsort label-5541
SELECT DISTINCT + - 29 - - MAX ( - 93 ) FROM tab1 cor0 CROSS JOIN tab0 AS cor1
----
-122

query I rowsort
SELECT DISTINCT + 63 AS col1 FROM tab1 cor0
----
63

onlyif mysql # aggregate syntax: 
query I rowsort label-5543
SELECT ALL - COUNT( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 / 27 * - col1 IS NULL
----
-3

skipif mysql # not compatible
query I rowsort label-5543
SELECT ALL - COUNT ( * ) AS col2 FROM tab1 AS cor0 WHERE NOT - col2 / 27 * - col1 IS NULL
----
-3

query II rowsort
SELECT + 60 AS col2, col1 FROM tab0 cor0
----
60
1
60
21
60
81

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5545
SELECT DISTINCT - - 25 DIV COUNT( * ) AS col0 FROM tab1 AS cor0
----
8

skipif mysql # not compatible
query I rowsort label-5545
SELECT DISTINCT - - 25 / COUNT ( * ) AS col0 FROM tab1 AS cor0
----
8

onlyif mysql # aggregate syntax: 
query I rowsort label-5546
SELECT - ( + MIN( + col1 ) ) * - - 73 + - COUNT( * ) FROM tab0 cor0
----
-76

skipif mysql # not compatible
query I rowsort label-5546
SELECT - ( + MIN ( + col1 ) ) * - - 73 + - COUNT ( * ) FROM tab0 cor0
----
-76

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE NOT - col2 + + + col1 + 67 + + 2 IS NULL
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query II rowsort
SELECT - col1 AS col1, col2 AS col1 FROM tab0
----
-1
99
-21
10
-81
47

onlyif mysql # aggregate syntax: 
query II rowsort label-5549
SELECT COUNT( * ) AS col1, - SUM( DISTINCT col2 ) + + - 39 FROM tab1
----
3
-262

skipif mysql # not compatible
query II rowsort label-5549
SELECT COUNT ( * ) AS col1, - SUM ( DISTINCT col2 ) + + - 39 FROM tab1
----
3
-262

onlyif mysql # aggregate syntax: 
query I rowsort label-5550
SELECT ALL + COUNT( * ) AS col0 FROM tab2 WHERE NULL IN ( + col1 * + - 74, - col2 + col2 )
----
0

skipif mysql # not compatible
query I rowsort label-5550
SELECT ALL + COUNT ( * ) AS col0 FROM tab2 WHERE NULL IN ( + col1 * + - 74, - col2 + col2 )
----
0

onlyif mysql # aggregate syntax: 
query I rowsort label-5551
SELECT - COUNT( + 19 ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( 59 + + - col1 )
----
0

skipif mysql # not compatible
query I rowsort label-5551
SELECT - COUNT ( + 19 ) AS col0 FROM tab0 WHERE NOT NULL NOT IN ( 59 + + - col1 )
----
0

query III rowsort
SELECT ALL * FROM tab1 WHERE ( + 79 ) = - ( ( col0 ) )
----

query II rowsort
SELECT col2, - col2 * - col2 AS col0 FROM tab2
----
23
529
40
1600
58
3364

query III rowsort
SELECT DISTINCT * FROM tab0 AS cor0 WHERE NOT - col2 / + col2 BETWEEN - 8 AND NULL
----

skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort
SELECT ALL + col2 + + - 21 col1 FROM tab0 AS cor0
----
-11
26
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5556
SELECT COUNT( * ) * + 47 FROM tab1 AS cor0
----
141

skipif mysql # not compatible
query I rowsort label-5556
SELECT COUNT ( * ) * + 47 FROM tab1 AS cor0
----
141

query I rowsort
SELECT 96 + col2 AS col1 FROM tab0 AS cor0 WHERE NOT - 78 * ( + col2 ) / + col1 + col1 IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5558
SELECT DISTINCT COUNT( 57 ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5558
SELECT DISTINCT COUNT ( 57 ) col2 FROM tab2 WHERE NOT NULL IS NOT NULL
----
3

onlyif mysql # CAST syntax: SIGNED type: 
query III rowsort label-5559
SELECT * FROM tab0 WHERE NULL IN ( - + col2 * + + CAST( + + col0 AS SIGNED ) / - - col2 + - ( CAST( NULL AS SIGNED ) ) + + col1 )
----

skipif mysql # not compatible
query III rowsort label-5559
SELECT * FROM tab0 WHERE NULL IN ( - + col2 * + + CAST ( + + col0 AS INTEGER ) / - - col2 + - ( CAST ( NULL AS INTEGER ) ) + + col1 )
----

query II rowsort
SELECT DISTINCT + col1 + - - col1 + + 20 AS col2, + 78 AS col2 FROM tab1 AS cor0
----
114
78
30
78
48
78

onlyif mysql # aggregate syntax: 
query I rowsort label-5561
SELECT + - ( ( + COUNT( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

skipif mysql # not compatible
query I rowsort label-5561
SELECT + - ( ( + COUNT ( * ) ) ) AS col2 FROM tab0 AS cor0
----
-3

query II rowsort
SELECT DISTINCT col1, + col0 AS col0 FROM tab0 AS cor0 WHERE NULL IS NOT NULL
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5563
SELECT DISTINCT + - 91 + SUM( - + col2 ) + COUNT( * ) FROM tab0 AS cor0
----
-244

skipif mysql # not compatible
query I rowsort label-5563
SELECT DISTINCT + - 91 + SUM ( - + col2 ) + COUNT ( * ) FROM tab0 AS cor0
----
-244

onlyif mysql # aggregate syntax: 
query I rowsort label-5564
SELECT - - SUM( + + 27 ) col2 FROM tab0 AS cor0
----
81

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5564
SELECT - - SUM ( + + 27 ) col2 FROM tab0 AS cor0
----
81

query I rowsort
SELECT DISTINCT 48 + + col1 FROM tab2 AS cor0
----
115
125
99

query III rowsort
SELECT ALL * FROM tab1 WHERE NOT - + col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT col2 + + 67 + - 22 - + 28 AS col0 FROM tab0
----
116
27
64

query I rowsort
SELECT DISTINCT + col1 - + 2 AS col0 FROM tab1
----
12
3
45

query III rowsort
SELECT ALL * FROM tab2 WHERE NOT col0 + + + col0 - col1 BETWEEN NULL AND NULL
----

query I rowsort
SELECT - - col1 * col2 + - col2 - - ( - col2 ) AS col2 FROM tab0 WHERE NULL NOT BETWEEN NULL AND - 74
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5571
SELECT + col2, - CAST( NULL AS SIGNED ) / - col1 * 25 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

skipif mysql # not compatible
query II rowsort label-5571
SELECT + col2, - CAST ( NULL AS INTEGER ) / - col1 * 25 AS col0 FROM tab1 WHERE NULL IS NOT NULL
----

onlyif mysql # CAST syntax: SIGNED type: 
query II rowsort label-5572
SELECT DISTINCT CAST( NULL AS SIGNED ) AS col1, col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

skipif mysql # not compatible
query II rowsort label-5572
SELECT DISTINCT CAST ( NULL AS INTEGER ) AS col1, col1 AS col1 FROM tab1
----
NULL
14
NULL
47
NULL
5

onlyif mysql # aggregate syntax: 
query I rowsort label-5573
SELECT DISTINCT - 73 + COUNT( ALL + col2 ) AS col2 FROM tab0
----
-70

skipif mysql # not compatible
query I rowsort label-5573
SELECT DISTINCT - 73 + COUNT ( ALL + col2 ) AS col2 FROM tab0
----
-70

query III rowsort
SELECT DISTINCT * FROM tab2 AS cor0 WHERE NOT NULL IN ( ( - - 6 ), + 29 )
----

query I rowsort
SELECT DISTINCT - 12 * col2 + - + ( + + col0 ) AS col1 FROM tab1 AS cor0
----
-1203
-793
-907

query III rowsort
SELECT ALL * FROM tab0 WHERE NOT ( NOT ( 10 ) IS NULL )
----

onlyif mysql # aggregate syntax: 
query I rowsort label-5577
SELECT - ( + + MIN( - 82 ) ) FROM tab2 cor0
----
82

skipif mysql # not compatible
query I rowsort label-5577
SELECT - ( + + MIN ( - 82 ) ) FROM tab2 cor0
----
82

onlyif mysql # CAST syntax: SIGNED type: DIV for integer division: 
query I rowsort label-5578
SELECT ALL + CAST( col0 AS SIGNED ) DIV + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

skipif mysql # not compatible
query I rowsort label-5578
SELECT ALL + CAST ( col0 AS INTEGER ) / + col0 AS col2 FROM tab0 AS cor0
----
1
1
1

query I rowsort
SELECT - + col0 * - 94 FROM tab0 AS cor0
----
1410
8178
9118

onlyif mysql # aggregate syntax: DIV for integer division: 
query I rowsort label-5580
SELECT DISTINCT COUNT( * ) * + - ( 95 ) DIV ( + MIN( ALL + + col1 ) ) col2 FROM tab1 AS cor0
----
-57

skipif mysql # not compatible
skipif postgresql # PostgreSQL requires AS when renaming output columns
query I rowsort label-5580
SELECT DISTINCT COUNT ( * ) * + - ( 95 ) / ( + MIN ( ALL + + col1 ) ) col2 FROM tab1 AS cor0
----
-57

query III rowsort
SELECT * FROM tab1 WHERE NOT NULL >= 64 + - - 63 + col1
----

query I rowsort
SELECT ALL - ( col2 ) * - + col0 AS col1 FROM tab1
----
4896
5015
6188

onlyif mysql # DIV for integer division: 
query I rowsort label-5583
SELECT DISTINCT - 45 DIV - + 21 AS col0 FROM tab0
----
2

skipif mysql # not compatible
query I rowsort label-5583
SELECT DISTINCT - 45 / - + 21 AS col0 FROM tab0
----
2

onlyif mysql # aggregate syntax: 
query I rowsort label-5584
SELECT - MIN( 65 ) AS col1 FROM tab0
----
-65

skipif mysql # not compatible
query I rowsort label-5584
SELECT - MIN ( 65 ) AS col1 FROM tab0
----
-65

query II rowsort
SELECT DISTINCT 89 AS col0, - col2 FROM tab2
----
89
-23
89
-40
89
-58

query I rowsort
SELECT ALL + col0 + 88 FROM tab2 AS cor0
----
134
152
163

onlyif mysql # CAST syntax: SIGNED type: 
query I rowsort label-5587
SELECT - 13 * - 73 * + - CAST( NULL AS SIGNED ) - + - 33 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

skipif mysql # not compatible
query I rowsort label-5587
SELECT - 13 * - 73 * + - CAST ( NULL AS INTEGER ) - + - 33 AS col2 FROM tab1 AS cor0
----
NULL
NULL
NULL

query III rowsort
SELECT * FROM tab0 AS cor0 WHERE ( NOT - 30 IS NULL )
----
9 values hashing to c4b42765dff94eaaa46040e537fb43b7

query I rowsort
SELECT + col0 AS col2 FROM tab2 AS cor0 WHERE ( col1 * ( + col0 ) ) IS NULL
----

query I rowsort
SELECT DISTINCT - 71 + + 63 + 96 AS col0 FROM tab2 AS cor0
----
88

query II rowsort
SELECT DISTINCT + 62 AS col1, 53 FROM tab0 cor0
----
62
53

onlyif mysql # aggregate syntax: 
query I rowsort label-5592
SELECT ALL + + COUNT( * ) - - + 16 FROM tab0 AS cor0
----
19

skipif mysql # not compatible
query I rowsort label-5592
SELECT ALL + + CO